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

Side by Side Diff: src/trusted/desc/nacl_desc_quota.c

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/trusted/desc/nacl_desc_null.c ('k') | src/trusted/desc/nacl_desc_semaphore.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 #include <string.h> 7 #include <string.h>
8 8
9 #include "native_client/src/include/build_config.h" 9 #include "native_client/src/include/build_config.h"
10 #include "native_client/src/include/portability.h" 10 #include "native_client/src/include/portability.h"
(...skipping 248 matching lines...) Expand 10 before | Expand all | Expand 10 after
259 return rv; 259 return rv;
260 } 260 }
261 261
262 int NaClDescQuotaFstat(struct NaClDesc *vself, 262 int NaClDescQuotaFstat(struct NaClDesc *vself,
263 struct nacl_abi_stat *statbuf) { 263 struct nacl_abi_stat *statbuf) {
264 struct NaClDescQuota *self = (struct NaClDescQuota *) vself; 264 struct NaClDescQuota *self = (struct NaClDescQuota *) vself;
265 265
266 return (*NACL_VTBL(NaClDesc, self->desc)->Fstat)(self->desc, statbuf); 266 return (*NACL_VTBL(NaClDesc, self->desc)->Fstat)(self->desc, statbuf);
267 } 267 }
268 268
269 int NaClDescQuotaFchdir(struct NaClDesc *vself) {
270 struct NaClDescQuota *self = (struct NaClDescQuota *) vself;
271
272 return (*NACL_VTBL(NaClDesc, self->desc)->Fchdir)(self->desc);
273 }
274
275 int NaClDescQuotaFchmod(struct NaClDesc *vself,
276 int mode) {
277 struct NaClDescQuota *self = (struct NaClDescQuota *) vself;
278
279 return (*NACL_VTBL(NaClDesc, self->desc)->Fchmod)(self->desc, mode);
280 }
281
282 int NaClDescQuotaFsync(struct NaClDesc *vself) {
283 struct NaClDescQuota *self = (struct NaClDescQuota *) vself;
284
285 return (*NACL_VTBL(NaClDesc, self->desc)->Fsync)(self->desc);
286 }
287
288 int NaClDescQuotaFdatasync(struct NaClDesc *vself) {
289 struct NaClDescQuota *self = (struct NaClDescQuota *) vself;
290
291 return (*NACL_VTBL(NaClDesc, self->desc)->Fdatasync)(self->desc);
292 }
293
294 int NaClDescQuotaFtruncate(struct NaClDesc *vself,
295 nacl_abi_off_t length) {
296 struct NaClDescQuota *self = (struct NaClDescQuota *) vself;
297
298 return (*NACL_VTBL(NaClDesc, self->desc)->Ftruncate)(self->desc, length);
299 }
300
269 ssize_t NaClDescQuotaGetdents(struct NaClDesc *vself, 301 ssize_t NaClDescQuotaGetdents(struct NaClDesc *vself,
270 void *dirp, 302 void *dirp,
271 size_t count) { 303 size_t count) {
272 struct NaClDescQuota *self = (struct NaClDescQuota *) vself; 304 struct NaClDescQuota *self = (struct NaClDescQuota *) vself;
273 305
274 return (*NACL_VTBL(NaClDesc, self->desc)->Getdents)(self->desc, dirp, count); 306 return (*NACL_VTBL(NaClDesc, self->desc)->Getdents)(self->desc, dirp, count);
275 } 307 }
276 308
277 int NaClDescQuotaLock(struct NaClDesc *vself) { 309 int NaClDescQuotaLock(struct NaClDesc *vself) {
278 struct NaClDescQuota *self = (struct NaClDescQuota *) vself; 310 struct NaClDescQuota *self = (struct NaClDescQuota *) vself;
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after
427 NaClDescQuotaUnmapUnsafe, 459 NaClDescQuotaUnmapUnsafe,
428 #else 460 #else
429 NACL_DESC_UNMAP_NOT_IMPLEMENTED 461 NACL_DESC_UNMAP_NOT_IMPLEMENTED
430 #endif 462 #endif
431 NaClDescQuotaRead, 463 NaClDescQuotaRead,
432 NaClDescQuotaWrite, 464 NaClDescQuotaWrite,
433 NaClDescQuotaSeek, 465 NaClDescQuotaSeek,
434 NaClDescQuotaPRead, 466 NaClDescQuotaPRead,
435 NaClDescQuotaPWrite, 467 NaClDescQuotaPWrite,
436 NaClDescQuotaFstat, 468 NaClDescQuotaFstat,
469 NaClDescQuotaFchdir,
470 NaClDescQuotaFchmod,
471 NaClDescQuotaFsync,
472 NaClDescQuotaFdatasync,
473 NaClDescQuotaFtruncate,
437 NaClDescQuotaGetdents, 474 NaClDescQuotaGetdents,
438 NaClDescExternalizeSizeNotImplemented, 475 NaClDescExternalizeSizeNotImplemented,
439 NaClDescExternalizeNotImplemented, 476 NaClDescExternalizeNotImplemented,
440 NaClDescQuotaLock, 477 NaClDescQuotaLock,
441 NaClDescQuotaTryLock, 478 NaClDescQuotaTryLock,
442 NaClDescQuotaUnlock, 479 NaClDescQuotaUnlock,
443 NaClDescQuotaWait, 480 NaClDescQuotaWait,
444 NaClDescQuotaTimedWaitAbs, 481 NaClDescQuotaTimedWaitAbs,
445 NaClDescQuotaSignal, 482 NaClDescQuotaSignal,
446 NaClDescQuotaBroadcast, 483 NaClDescQuotaBroadcast,
447 NaClDescQuotaSendMsg, 484 NaClDescQuotaSendMsg,
448 NaClDescQuotaRecvMsg, 485 NaClDescQuotaRecvMsg,
449 NaClDescQuotaLowLevelSendMsg, 486 NaClDescQuotaLowLevelSendMsg,
450 NaClDescQuotaLowLevelRecvMsg, 487 NaClDescQuotaLowLevelRecvMsg,
451 NaClDescQuotaConnectAddr, 488 NaClDescQuotaConnectAddr,
452 NaClDescQuotaAcceptConn, 489 NaClDescQuotaAcceptConn,
453 NaClDescQuotaPost, 490 NaClDescQuotaPost,
454 NaClDescQuotaSemWait, 491 NaClDescQuotaSemWait,
455 NaClDescQuotaGetValue, 492 NaClDescQuotaGetValue,
456 NaClDescQuotaSetMetadata, 493 NaClDescQuotaSetMetadata,
457 NaClDescQuotaGetMetadata, 494 NaClDescQuotaGetMetadata,
458 NaClDescQuotaSetFlags, 495 NaClDescQuotaSetFlags,
459 NaClDescQuotaGetFlags, 496 NaClDescQuotaGetFlags,
460 NaClDescIsattyNotImplemented, 497 NaClDescIsattyNotImplemented,
461 NACL_DESC_QUOTA, 498 NACL_DESC_QUOTA,
462 }; 499 };
OLDNEW
« no previous file with comments | « src/trusted/desc/nacl_desc_null.c ('k') | src/trusted/desc/nacl_desc_semaphore.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698