From: Ulrich Drepper Date: Mon, 26 Nov 2007 12:53:17 +0000 (+0000) Subject: Declare fsync also for Unix98. X-Git-Tag: upstream/2.30~14452 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ae4287f8b28853c6c51b5b5aae5807d23730d1d5;p=external%2Fglibc.git Declare fsync also for Unix98. 2007-11-26 Ulrich Drepper * posix/unistd.h: Declare fsync also for Unix98. --- diff --git a/ChangeLog b/ChangeLog index a1e856d..3b75f0a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2007-11-26 Ulrich Drepper + + * posix/unistd.h: Declare fsync also for Unix98. + 2007-11-25 Ulrich Drepper * nscd/nscd.h (MAX_STACK_USE): Define. diff --git a/nscd/cache.c b/nscd/cache.c index 4065dac..12c4f01 100644 --- a/nscd/cache.c +++ b/nscd/cache.c @@ -488,7 +488,7 @@ prune_cache (struct database_dyn *table, time_t now, int fd) } } - if (__builtin_expect (mark_use_alloca, 0)) + if (__builtin_expect (! mark_use_alloca, 0)) free (mark); /* Run garbage collection if any entry has been removed or replaced. */ diff --git a/posix/unistd.h b/posix/unistd.h index 476c1f3..16dae00 100644 --- a/posix/unistd.h +++ b/posix/unistd.h @@ -915,13 +915,13 @@ extern char *getpass (__const char *__prompt) __nonnull ((1)); #endif /* Use BSD || X/Open. */ -#if defined __USE_BSD || defined __USE_XOPEN +#if defined __USE_BSD || defined __USE_XOPEN || defined __USE_UNIX98 /* Make all changes done to FD actually appear on disk. This function is a cancellation point and therefore not marked with __THROW. */ extern int fsync (int __fd); -#endif /* Use BSD || X/Open. */ +#endif /* Use BSD || X/Open || Unix98. */ #if defined __USE_BSD || defined __USE_XOPEN_EXTENDED