summaryrefslogtreecommitdiff
path: root/lib/fopen.c
Commit message (Collapse)AuthorAgeFilesLines
* openat: Work around compilation error with OSF/1 5.1 DTK cc.Bruno Haible2011-09-081-1/+3
| | | | | | | | | | * lib/fopen.c: Use different syntax for include of <stdio.h>. * lib/freopen.c: Likewise. * lib/fstatat.c: Use different syntax for include of <sys/stat.h>. * lib/lstat.c: Likewise. * lib/stat.c: Likewise. * lib/open.c: Use different syntax for include of <fcntl.h>. * lib/openat.c: Include fcntl.h again, explicitly.
* Avoid endless recursions if config.h includes some header files.Bruno Haible2011-08-301-1/+4
| | | | | | | | | * lib/fopen.c (__need_FILE): Define already before including config.h. * lib/freopen.c (__need_FILE): Likewise. * lib/open.c (__need_system_fcntl_h): Likewise. * lib/stat.c (__need_system_sys_stat_h): Likewise. * lib/lstat.c (__need_system_sys_stat_h): Likewise. Reported by Michael Goffioul <michael.goffioul@gmail.com>.
* maint: update almost all copyright ranges to include 2011Jim Meyering2011-01-011-1/+1
| | | | Run the new "make update-copyright" rule.
* update nearly all FSF copyright year lists to include 2010Jim Meyering2010-01-011-1/+1
| | | | | Use the same procedure as for 2009, outlined in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
* Use spaces for indentation, not tabs.Bruno Haible2009-12-101-29/+29
|
* Fix compilation error on HP-UX 11.00.Bruno Haible2009-01-171-1/+3
|
* Override fopen more carefully.Bruno Haible2008-09-281-2/+12
|
* open, fopen: close fd leak in last patchEric Blake2008-09-241-0/+1
| | | | | | | | | | | * lib/open.c (rpl_open): Close fd before returning error. * lib/fopen.c (rpl_fopen): Close fd before returning error. * doc/posix-functions/open.texi (open): Document that Irix also has the bug. * doc/posix-functions/fopen.texi (fopen): Likewise. Reported by Paolo Bonzini. Signed-off-by: Eric Blake <ebb9@byu.net>
* Ensure that a filename ending in a slash cannot be used to access a ↵Bruno Haible2008-09-241-13/+40
| | | | non-directory.
* Work around bug with trailing slash on Solaris 9 and HP-UX 11.00.Bruno Haible2008-08-301-1/+30
|
* Use rpl_ prefix for functions, so as to avoid endless recursions in weird cases.Bruno Haible2007-10-151-1/+1
|
* Change copyright notice from GPLv2+ to GPLv3+.Bruno Haible2007-10-071-6/+5
|
* New modules 'fopen' and 'freopen'.Bruno Haible2007-10-071-0/+37