lib/fopen.c


Log

Author Commit Date CI Message
Jim Meyering 1602f0af 2012-01-01T10:04:58 maint: update all copyright year number ranges Run "make update-copyright".
Bruno Haible 6563cd76 2011-09-08T00:03:50 openat: Work around compilation error with OSF/1 5.1 DTK cc. * 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.
Bruno Haible c29a7464 2011-08-30T09:57:33 Avoid endless recursions if config.h includes some header files. * 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>.
Jim Meyering d60f3b0c 2011-01-01T20:17:23 maint: update almost all copyright ranges to include 2011 Run the new "make update-copyright" rule.
Jim Meyering b2e2010c 2010-01-01T10:31:12 update nearly all FSF copyright year lists to include 2010 Use the same procedure as for 2009, outlined in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
Bruno Haible 441aa304 2009-12-10T20:28:30 Use spaces for indentation, not tabs.
Bruno Haible fc75b897 2009-01-17T17:12:42 Fix compilation error on HP-UX 11.00.
Bruno Haible 6608ac42 2008-09-28T16:12:20 Override fopen more carefully.
Eric Blake 810a812b 2008-09-24T10:55:19 open, fopen: close fd leak in last patch * 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>
Bruno Haible 955345eb 2008-09-24T13:50:02 Ensure that a filename ending in a slash cannot be used to access a non-directory.
Bruno Haible bf22d71a 2008-08-30T14:38:47 Work around bug with trailing slash on Solaris 9 and HP-UX 11.00.
Bruno Haible e8168034 2007-10-15T22:40:19 Use rpl_ prefix for functions, so as to avoid endless recursions in weird cases.
Bruno Haible 57fdfd3f 2007-10-07T19:14:58 Change copyright notice from GPLv2+ to GPLv3+.
Bruno Haible 86f87b49 2007-10-07T04:46:57 New modules 'fopen' and 'freopen'.