Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(246)

Side by Side Diff: src/trusted/desc/nacl_desc_base.h

Issue 1235633004: DON'T USE THIS -- Providing some missing POSIX File syscalls. (Closed) Base URL: https://chromium.googlesource.com/native_client/src/native_client.git@master
Patch Set: Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/shared/platform/win/nacl_host_dir.c ('k') | src/trusted/desc/nacl_desc_base.c » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2012 The Native Client Authors. All rights reserved. 2 * Copyright (c) 2012 The Native Client Authors. All rights reserved.
3 * Use of this source code is governed by a BSD-style license that can be 3 * Use of this source code is governed by a BSD-style license that can be
4 * found in the LICENSE file. 4 * found in the LICENSE file.
5 */ 5 */
6 6
7 /* 7 /*
8 * NaCl Service Runtime. I/O Descriptor / Handle abstraction. 8 * NaCl Service Runtime. I/O Descriptor / Handle abstraction.
9 */ 9 */
10 10
(...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after
212 nacl_off64_t offset) NACL_WUR; 212 nacl_off64_t offset) NACL_WUR;
213 213
214 ssize_t (*PWrite)(struct NaClDesc *vself, 214 ssize_t (*PWrite)(struct NaClDesc *vself,
215 void const *buf, 215 void const *buf,
216 size_t len, 216 size_t len,
217 nacl_off64_t offset) NACL_WUR; 217 nacl_off64_t offset) NACL_WUR;
218 218
219 int (*Fstat)(struct NaClDesc *vself, 219 int (*Fstat)(struct NaClDesc *vself,
220 struct nacl_abi_stat *statbuf); 220 struct nacl_abi_stat *statbuf);
221 221
222 int (*Fchdir)(struct NaClDesc *vself) NACL_WUR;
223
224 int (*Fchmod)(struct NaClDesc *vself,
225 int mode) NACL_WUR;
226
227 int (*Fsync)(struct NaClDesc *vself) NACL_WUR;
228
229 int (*Fdatasync)(struct NaClDesc *vself) NACL_WUR;
230
231 int (*Ftruncate)(struct NaClDesc *vself,
232 nacl_abi_off_t length) NACL_WUR;
233
222 /* 234 /*
223 * Directory access support. Directories require support for getdents. 235 * Directory access support. Directories require support for getdents.
224 */ 236 */
225 ssize_t (*Getdents)(struct NaClDesc *vself, 237 ssize_t (*Getdents)(struct NaClDesc *vself,
226 void *dirp, 238 void *dirp,
227 size_t count) NACL_WUR; 239 size_t count) NACL_WUR;
228 240
229 /* 241 /*
230 * Externalization queries this for how many data bytes and how many 242 * Externalization queries this for how many data bytes and how many
231 * handles are needed to transfer the "this" or "self" descriptor 243 * handles are needed to transfer the "this" or "self" descriptor
(...skipping 347 matching lines...) Expand 10 before | Expand all | Expand 10 after
579 nacl_off64_t offset); 591 nacl_off64_t offset);
580 592
581 ssize_t NaClDescPWriteNotImplemented(struct NaClDesc *vself, 593 ssize_t NaClDescPWriteNotImplemented(struct NaClDesc *vself,
582 void const *buf, 594 void const *buf,
583 size_t len, 595 size_t len,
584 nacl_off64_t offset); 596 nacl_off64_t offset);
585 597
586 int NaClDescFstatNotImplemented(struct NaClDesc *vself, 598 int NaClDescFstatNotImplemented(struct NaClDesc *vself,
587 struct nacl_abi_stat *statbuf); 599 struct nacl_abi_stat *statbuf);
588 600
601 int NaClDescFchdirNotImplemented(struct NaClDesc *vself);
602
603 int NaClDescFchmodNotImplemented(struct NaClDesc *vself,
604 int mode);
605
606 int NaClDescFsyncNotImplemented(struct NaClDesc *vself);
607
608 int NaClDescFdatasyncNotImplemented(struct NaClDesc *vself);
609
610 int NaClDescFtruncateNotImplemented(struct NaClDesc *vself,
611 nacl_abi_off_t length);
612
589 ssize_t NaClDescGetdentsNotImplemented(struct NaClDesc *vself, 613 ssize_t NaClDescGetdentsNotImplemented(struct NaClDesc *vself,
590 void *dirp, 614 void *dirp,
591 size_t count); 615 size_t count);
592 616
593 int NaClDescExternalizeSizeNotImplemented(struct NaClDesc *vself, 617 int NaClDescExternalizeSizeNotImplemented(struct NaClDesc *vself,
594 size_t *nbytes, 618 size_t *nbytes,
595 size_t *nhandles); 619 size_t *nhandles);
596 620
597 int NaClDescExternalizeNotImplemented(struct NaClDesc *vself, 621 int NaClDescExternalizeNotImplemented(struct NaClDesc *vself,
598 struct NaClDescXferState *xfer); 622 struct NaClDescXferState *xfer);
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
653 677
654 int NaClSafeCloseNaClHandle(NaClHandle h); 678 int NaClSafeCloseNaClHandle(NaClHandle h);
655 679
656 int NaClDescIsSafeForMmap(struct NaClDesc *self); 680 int NaClDescIsSafeForMmap(struct NaClDesc *self);
657 681
658 void NaClDescMarkSafeForMmap(struct NaClDesc *self); 682 void NaClDescMarkSafeForMmap(struct NaClDesc *self);
659 683
660 EXTERN_C_END 684 EXTERN_C_END
661 685
662 #endif // NATIVE_CLIENT_SRC_TRUSTED_DESC_NACL_DESC_BASE_H_ 686 #endif // NATIVE_CLIENT_SRC_TRUSTED_DESC_NACL_DESC_BASE_H_
OLDNEW
« no previous file with comments | « src/shared/platform/win/nacl_host_dir.c ('k') | src/trusted/desc/nacl_desc_base.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698