summaryrefslogtreecommitdiff
path: root/lib
AgeCommit message (Collapse)Author
2005-06-30Add copyright.Jim Meyering
Include <fcntl.h> and <unistd.h> unconditionally -- it seems to be ok to do this, these days.
2005-06-30*** empty log message ***Jim Meyering
2005-06-30*** empty log message ***Jim Meyering
2005-06-30Rewritten by Paul Eggert.Jim Meyering
Now, the minimum overhead is just two system calls: dup and close.
2005-06-30New file. As yet unused.Jim Meyering
2005-06-30*** empty log message ***Jim Meyering
2005-06-30*** empty log message ***Jim Meyering
2005-06-30[!VERIFY] (VERIFY): Define.Jim Meyering
(ARGMATCH_VERIFY): Use it, so this macro may be used more than once in any given scope.
2005-06-30(VERIFY_EXPR): Undef and add a comment.Jim Meyering
2005-06-29*** empty log message ***Jim Meyering
2005-06-29(getuser, getuidbyname, getgroup, getgidbyname): Likewise.Jim Meyering
2005-06-29*** empty log message ***Jim Meyering
2005-06-29(make_dir_parents): Don't apply sizeof to a hard-coded type name.Jim Meyering
Use the variable name instead.
2005-06-29*** empty log message ***Jim Meyering
2005-06-29(VERIFY_EXPR): Define.Jim Meyering
(X2REALLOC): New macro, to make using x2realloc a little safer.
2005-06-27.Jim Meyering
2005-06-27.Jim Meyering
2005-06-26(libcoreutils_a_SOURCES): Remove diacrit.c and diacrit.h.Jim Meyering
2005-06-25*** empty log message ***Jim Meyering
2005-06-25(libcoreutils_a_SOURCES): Remove version-etc.c version-etc.hJim Meyering
and version-etc-fsf.c.
2005-06-25(libcoreutils_a_SOURCES): Remove dev-ino.h too, now that weJim Meyering
get it via root-dev-ino.m4
2005-06-25Remove dev-ino.h, now that we get it via root-dev-ino.m4Jim Meyering
2005-06-25*** empty log message ***Jim Meyering
2005-06-25(libcoreutils_a_SOURCES): Remove root-dev-ino.c and root-dev-ino.h.Jim Meyering
2005-06-24(canon_host) [HAVE_GETADDRINFO]: Use `= { 0, };' to initialize local `hint'.Paul Eggert
2005-06-24.Jim Meyering
2005-06-23*** empty log message ***Jim Meyering
2005-06-23(libcoreutils_a_SOURCES): Remove xstrtod.c and xstrtod.h.Jim Meyering
2005-06-23.Jim Meyering
2005-06-23(libcoreutils_a_SOURCES): Remove xreadlink.c and xreadlink.h.Jim Meyering
2005-06-23*** empty log message ***Jim Meyering
2005-06-23(backup_args): Change a `0' to NULL.Jim Meyering
2005-06-22mktime fix to avoid a diagnostic.Paul Eggert
2005-06-22Include <string.h> even if !DEBUG. (From glibc.)Paul Eggert
(ranged_convert): Don't save conversion in a temporary struct. This causes a warning with GCC 4.0.0, and anyway in the typical case it's not worth the extra 100 bytes or so of code. (ranged_convert, __mktime_internal): When calling a function via a pointer P, use P () rather than (*P) (), as we now assume C89 or better.
2005-06-22(desirable_utmp_entry): Fix bug where "who -b" and "who -r"Paul Eggert
failed to give output.
2005-06-22From gnulib:Jim Meyering
(HAVE_GNU_CALLOC): New constant. (xcalloc): Use it to avoid needless tests.
2005-06-22*** empty log message ***Jim Meyering
2005-06-20.Jim Meyering
2005-06-19*** empty log message ***Jim Meyering
2005-06-19(libcoreutils_a_SOURCES): Remove xgetcwd.c, xgetcwd.h, xfts.c and xfts.h.Jim Meyering
2005-06-16*** empty log message ***Jim Meyering
2005-06-16(rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)Jim Meyering
when either N or S is zero.
2005-06-15Reflect s/_die/_fail/ renaming.Jim Meyering
2005-06-15*** empty log message ***Jim Meyering
2005-06-15(make_dir_parents): Don't let a failed chdir($PWD)Jim Meyering
stop us from restricting permissions of just-created absolute-named directories.
2005-06-14Improve diagnostics for restore_cwd failure.Paul Eggert
2005-06-14(make_dir): Remove. All uses replaced by mkdir.Paul Eggert
(make_dir_parents): Last arg is now int * (for errno), not bool *. Rewrite "mkdir -p" algorithm to avoid the need for "stat" each time through the loop. Do not diagnose restore_cwd failure; that is the caller's job (and perhaps the caller does not care).
2005-06-14(make_dir): Remove. All uses replaced by mkdir.Paul Eggert
(make_dir_parents): Last arg is now int * (for errno), not bool *.
2005-06-14mkdir-p cleanup.Paul Eggert
2005-06-14(CLEANUP_CWD, CLEANUP): Remove.Paul Eggert
(make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP. If the file already exists but is not a directory, don't bother to try to make its parents. Close potential file descriptor leak if we can't chdir("/") (!). Don't always return true if chdir($PWD) fails; return true only if the requested action was done successfully (except for the chdir($PWD)). Don't log final directory unless we actually made it. Refactor to avoid duplicate code to fix up permissions. Don't attempt to fix up parent permissions if chdir($PWD) fails.