summaryrefslogtreecommitdiff
path: root/lib/save-cwd.c
AgeCommit message (Collapse)Author
2005-05-14Update FSF postal mail address.Jim Meyering
2005-04-11Include unistd-safer.h.Paul Eggert
(save_cwd): Use fd_safer.
2005-03-09[!HAVE_FCHDIR]: Define open, fchdir, and chdir_longJim Meyering
so that this module works on systems without fchdir.
2005-01-20(save_cwd): Remove code to support the casePaul Eggert
where fchdir is missing or flaky.
2004-12-03save-cwd.c: Include "save-cwd.h" before other include files.Paul Eggert
(O_DIRECTORY): Remove; not needed here, since "." must be a directory. All uses removed. (save_cwd): Use __sgi || __sun, not sun || __sun. __sun is universal on Suns, and we also need to test for IRIX. Revamp code to use 'if' rather than '#if'. Avoid unnecessary comparison of cwd->desc to 0.
2004-11-30Include chdir-long.h rather than chdir.h.Jim Meyering
(restore_cwd): Use chdir_long, not chdir.
2004-11-28Include "chdir.h", so that if save_cwd/getcwdJim Meyering
saves a name longer than PATH_MAX, restore_cwd's chdir can use it.
2004-08-02Include <stdbool.h>.Paul Eggert
(errno): Remove decl; we now assume C89 or better. (save_cwd): Use bool for booleans. (save_cwd, restore_cwd): Return -1 on failure, not 1, since we set errno on failure.
2004-05-11(save_cwd): If opening `.' read-only fails, try write-only.Jim Meyering
2004-05-11(save_cwd) [HAVE_FCHDIR]: Don't fail justJim Meyering
because opening `.' failed. Resort to using xgetcwd.
2003-09-11Include <stdlib.h> unconditionally.Jim Meyering
2003-07-23Normalize naming of Sun operating systems, e.g., SunOS4 -> SunOS 4,Jim Meyering
Solaris5.9 -> Solaris 9. From Paul Eggert.
2003-07-12Don't emit diagnostics. Let callers do that.Jim Meyering
Don't include "error.h". (save_cwd): Don't call error. Ensure that errno is valid when returning nonzero.
2003-03-05commentsJim Meyering
2003-03-04(restore_cwd): Remove two parameters.Jim Meyering
Simplify. Don't call error upon failure. Let callers do that. (save_cwd): Mention that Irix 5.3 has the same problem as SunOS4 when auditing is enabled. But don't bother updating the #if.
2003-01-10Include "xgetcwd.h".Jim Meyering
2000-10-22(O_DIRECTORY): Define, if needed.Jim Meyering
(save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".". Suggestion from Ulrich Drepper.
2000-08-07back out Copyright date changes for files with no changes yearJim Meyering
2000-07-09update copyright dateJim Meyering
1998-12-07ansideclifyJim Meyering
1998-03-15Use #if, not #ifdef with HAVE_ macrosJim Meyering
1997-12-21Use PARAMS, not __P.Jim Meyering
1997-06-12remove blank line at end and add copyrightJim Meyering
tweak cpp indentation
1996-07-15update FSF address in copyrightJim Meyering
1995-12-08.Jim Meyering
1995-12-08Add copyright.Jim Meyering
1995-08-04.Jim Meyering