Processed: Bug#119974: Bug confirmed

2007-04-15 Thread Debian Bug Tracking System
Processing commands for [EMAIL PROTECTED]: tag 119974 + pending Bug#119974: libc6-dev: fsync() doesn't get declared on unistd.h without __USE_BSD or __USE_XOPEN Tags were: pending Tags added: pending thanks Stopping processing here. Please contact me if you need assistance. Debian bug

Bug#119974: Bug confirmed

2007-04-15 Thread Pierre HABOUZIT
tag 119974 + pending thanks I checked in the POSIX doc, FWIW here is what I found: fsync was first introduced it seems as an XOPEN extension. Hence the __USE_XOPEN guard, and defining _XOPEN_SOURCE indeed works. Else, wrt POSIX, fsync last updates are in posix 1003.1-2001. Just saying

Bug#119974: Bug confirmed

2007-04-15 Thread Pierre HABOUZIT
tag 119974 + pending thanks I checked in the POSIX doc, FWIW here is what I found: fsync was first introduced it seems as an XOPEN extension. Hence the __USE_XOPEN guard, and defining _XOPEN_SOURCE indeed works. Else, wrt POSIX, fsync last updates are in posix 1003.1-2001. Just saying

Processed: Re: Bug#119974: Bug confirmed

2007-04-15 Thread Debian Bug Tracking System
Processing commands for [EMAIL PROTECTED]: tag 119974 + pending Bug#119974: libc6-dev: fsync() doesn't get declared on unistd.h without __USE_BSD or __USE_XOPEN There were no tags set. Tags added: pending thanks Stopping processing here. Please contact me if you need assistance. Debian bug

Bug#119974: Bug confirmed

2003-01-13 Thread José Luis González González
On Mon, Jan 13, 2003 at 08:02:14AM -0500, H. S. Teoh wrote: So you're saying that even if you ask for POSIX.1b, you still don't get fsync()? Yes. Try this: $ cat test.c #include unistd.h void foo (void) { fsync(0); } $ gcc -Wall -D_POSIX_C_SOURCE=199309L -c test.c test.c: In function `foo':

Bug#119974: Bug confirmed

2002-12-28 Thread H. S. Teoh
Hi, I've just tested this bug, and observed something rather interesting: % cpp /usr/include/unistd.h |grep fsync extern int fsync (int __fd) ; % cpp -D_POSIX_SOURCE /usr/include/unistd.h | grep fsync % So it gets included in the default header file, but not when _POSIX_SOURCE is defined. Now

Bug#119974: Bug confirmed

2002-12-28 Thread Daniel Jacobowitz
On Sat, Dec 28, 2002 at 12:07:14PM -0500, H. S. Teoh wrote: Hi, I've just tested this bug, and observed something rather interesting: % cpp /usr/include/unistd.h |grep fsync extern int fsync (int __fd) ; % cpp -D_POSIX_SOURCE /usr/include/unistd.h | grep fsync % So it gets included in

Bug#119974: Bug confirmed

2002-12-28 Thread H. S. Teoh
On Sat, Dec 28, 2002 at 07:23:06PM -0500, Daniel Jacobowitz wrote: [snip] It's guarded by: #if defined __USE_BSD || defined __USE_XOPEN _POSIX_SOURCE is: _POSIX_SOURCEIEEE Std 1003.1. i.e. not 1b. Ahh, that explains it. On the other hand, given: _POSIX_C_SOURCE If

Bug#119974: Bug confirmed

2002-12-28 Thread Daniel Jacobowitz
On Sat, Dec 28, 2002 at 08:03:40PM -0500, H. S. Teoh wrote: On Sat, Dec 28, 2002 at 07:23:06PM -0500, Daniel Jacobowitz wrote: [snip] It's guarded by: #if defined __USE_BSD || defined __USE_XOPEN _POSIX_SOURCE is: _POSIX_SOURCEIEEE Std 1003.1. i.e. not 1b. Ahh, that

Bug#119974: Bug confirmed

2002-12-28 Thread H. S. Teoh
Hi, I've just tested this bug, and observed something rather interesting: % cpp /usr/include/unistd.h |grep fsync extern int fsync (int __fd) ; % cpp -D_POSIX_SOURCE /usr/include/unistd.h | grep fsync % So it gets included in the default header file, but not when _POSIX_SOURCE is defined. Now

Bug#119974: Bug confirmed

2002-12-28 Thread Daniel Jacobowitz
On Sat, Dec 28, 2002 at 12:07:14PM -0500, H. S. Teoh wrote: Hi, I've just tested this bug, and observed something rather interesting: % cpp /usr/include/unistd.h |grep fsync extern int fsync (int __fd) ; % cpp -D_POSIX_SOURCE /usr/include/unistd.h | grep fsync % So it gets included in

Bug#119974: Bug confirmed

2002-12-28 Thread H. S. Teoh
On Sat, Dec 28, 2002 at 07:23:06PM -0500, Daniel Jacobowitz wrote: [snip] It's guarded by: #if defined __USE_BSD || defined __USE_XOPEN _POSIX_SOURCE is: _POSIX_SOURCEIEEE Std 1003.1. i.e. not 1b. Ahh, that explains it. On the other hand, given: _POSIX_C_SOURCE If

Bug#119974: Bug confirmed

2002-12-28 Thread Daniel Jacobowitz
On Sat, Dec 28, 2002 at 08:03:40PM -0500, H. S. Teoh wrote: On Sat, Dec 28, 2002 at 07:23:06PM -0500, Daniel Jacobowitz wrote: [snip] It's guarded by: #if defined __USE_BSD || defined __USE_XOPEN _POSIX_SOURCE is: _POSIX_SOURCEIEEE Std 1003.1. i.e. not 1b. Ahh, that