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

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

Issue 24889002: Provides some of the missing POSIX file syscalls Base URL: svn://svn.chromium.org/native_client/trunk/src/native_client
Patch Set: Created 7 years, 2 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 | Annotate | Revision Log
« no previous file with comments | « src/trusted/desc/linux/nacl_desc_sysv_shm.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 211 matching lines...) Expand 10 before | Expand all | Expand 10 after
222 * Also, request determines arg size and whether it is an input or 222 * Also, request determines arg size and whether it is an input or
223 * output arg! 223 * output arg!
224 */ 224 */
225 int (*Ioctl)(struct NaClDesc *vself, 225 int (*Ioctl)(struct NaClDesc *vself,
226 int request, 226 int request,
227 void *arg) NACL_WUR; 227 void *arg) NACL_WUR;
228 228
229 int (*Fstat)(struct NaClDesc *vself, 229 int (*Fstat)(struct NaClDesc *vself,
230 struct nacl_abi_stat *statbuf); 230 struct nacl_abi_stat *statbuf);
231 231
232 int (*Fchdir)(struct NaClDesc *vself) NACL_WUR;
233
234 int (*Fchmod)(struct NaClDesc *vself,
235 int mode) NACL_WUR;
236
237 int (*Fsync)(struct NaClDesc *vself) NACL_WUR;
238
239 int (*Fdatasync)(struct NaClDesc *vself) NACL_WUR;
240
241 int (*Ftruncate)(struct NaClDesc *vself,
242 nacl_abi_off_t length) NACL_WUR;
243
232 /* 244 /*
233 * Directory access support. Directories require support for getdents. 245 * Directory access support. Directories require support for getdents.
234 */ 246 */
235 ssize_t (*Getdents)(struct NaClDesc *vself, 247 ssize_t (*Getdents)(struct NaClDesc *vself,
236 void *dirp, 248 void *dirp,
237 size_t count) NACL_WUR; 249 size_t count) NACL_WUR;
238 250
239 /* 251 /*
240 * Externalization queries this for how many data bytes and how many 252 * Externalization queries this for how many data bytes and how many
241 * handles are needed to transfer the "this" or "self" descriptor 253 * handles are needed to transfer the "this" or "self" descriptor
(...skipping 355 matching lines...) Expand 10 before | Expand all | Expand 10 after
597 size_t len, 609 size_t len,
598 nacl_off64_t offset); 610 nacl_off64_t offset);
599 611
600 int NaClDescIoctlNotImplemented(struct NaClDesc *vself, 612 int NaClDescIoctlNotImplemented(struct NaClDesc *vself,
601 int request, 613 int request,
602 void *arg); 614 void *arg);
603 615
604 int NaClDescFstatNotImplemented(struct NaClDesc *vself, 616 int NaClDescFstatNotImplemented(struct NaClDesc *vself,
605 struct nacl_abi_stat *statbuf); 617 struct nacl_abi_stat *statbuf);
606 618
619 int NaClDescFchdirNotImplemented(struct NaClDesc *vself);
620
621 int NaClDescFchmodNotImplemented(struct NaClDesc *vself,
622 int mode);
623
624 int NaClDescFsyncNotImplemented(struct NaClDesc *vself);
625
626 int NaClDescFdatasyncNotImplemented(struct NaClDesc *vself);
627
628 int NaClDescFtruncateNotImplemented(struct NaClDesc *vself,
629 nacl_abi_off_t length);
630
607 ssize_t NaClDescGetdentsNotImplemented(struct NaClDesc *vself, 631 ssize_t NaClDescGetdentsNotImplemented(struct NaClDesc *vself,
608 void *dirp, 632 void *dirp,
609 size_t count); 633 size_t count);
610 634
611 int NaClDescExternalizeSizeNotImplemented(struct NaClDesc *vself, 635 int NaClDescExternalizeSizeNotImplemented(struct NaClDesc *vself,
612 size_t *nbytes, 636 size_t *nbytes,
613 size_t *nhandles); 637 size_t *nhandles);
614 638
615 int NaClDescExternalizeNotImplemented(struct NaClDesc *vself, 639 int NaClDescExternalizeNotImplemented(struct NaClDesc *vself,
616 struct NaClDescXferState *xfer); 640 struct NaClDescXferState *xfer);
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
671 struct NaClDescQuotaInterface *quota_interface); 695 struct NaClDescQuotaInterface *quota_interface);
672 696
673 697
674 int NaClSafeCloseNaClHandle(NaClHandle h); 698 int NaClSafeCloseNaClHandle(NaClHandle h);
675 699
676 int NaClDescIsSafeForMmap(struct NaClDesc *vself); 700 int NaClDescIsSafeForMmap(struct NaClDesc *vself);
677 701
678 EXTERN_C_END 702 EXTERN_C_END
679 703
680 #endif // NATIVE_CLIENT_SRC_TRUSTED_DESC_NACL_DESC_BASE_H_ 704 #endif // NATIVE_CLIENT_SRC_TRUSTED_DESC_NACL_DESC_BASE_H_
OLDNEW
« no previous file with comments | « src/trusted/desc/linux/nacl_desc_sysv_shm.c ('k') | src/trusted/desc/nacl_desc_base.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698