diff options
Diffstat (limited to 'ports')
-rw-r--r-- | ports/darwin/guts/sync_file_range.c | 13 | ||||
-rw-r--r-- | ports/darwin/wrapfuncs.in | 1 | ||||
-rw-r--r-- | ports/unix/guts/unlinkat.c | 2 |
3 files changed, 15 insertions, 1 deletions
diff --git a/ports/darwin/guts/sync_file_range.c b/ports/darwin/guts/sync_file_range.c new file mode 100644 index 0000000..e0a31a4 --- /dev/null +++ b/ports/darwin/guts/sync_file_range.c @@ -0,0 +1,13 @@ +/* + * Copyright (c) 2013 Wind River Systems; see + * guts/COPYRIGHT for information. + * + * int sync_file_range(int fd, off_t offset, off_t nbytes, unsigned int flags) + * int rc = -1; + */ + + rc = real_sync_file_range(fd, offset, nbytes, flags); + +/* return rc; + * } + */ diff --git a/ports/darwin/wrapfuncs.in b/ports/darwin/wrapfuncs.in index 5cc4aaf..c1c00b7 100644 --- a/ports/darwin/wrapfuncs.in +++ b/ports/darwin/wrapfuncs.in @@ -23,3 +23,4 @@ int fgetgrent_r(FILE *fp, struct group *gbuf, char *buf, size_t buflen, struct g int fgetpwent_r(FILE *fp, struct passwd *pbuf, char *buf, size_t buflen, struct passwd **pbufp); /* real_func=pseudo_fgetpwent_r */ int getpwent_r(struct passwd *pwbuf, char *buf, size_t buflen, struct passwd **pwbufp); /* real_func=pseudo_getpwent_r */ int getgrent_r(struct group *gbuf, char *buf, size_t buflen, struct group **gbufp); /* real_func=pseudo_getgrent_r */ +int sync_file_range(int fd, off_t offset, off_t nbytes, unsigned int flags); /* async_skip=0 */ diff --git a/ports/unix/guts/unlinkat.c b/ports/unix/guts/unlinkat.c index 8a359d1..bd51b09 100644 --- a/ports/unix/guts/unlinkat.c +++ b/ports/unix/guts/unlinkat.c @@ -9,7 +9,7 @@ pseudo_msg_t *msg; int save_errno; PSEUDO_STATBUF buf; - int old_db_entry; + int old_db_entry = 0; #ifdef PSEUDO_NO_REAL_AT_FUNCTIONS if (dirfd != AT_FDCWD) { |