summaryrefslogtreecommitdiff
path: root/lib
AgeCommit message (Collapse)Author
2005-12-20(fchmod_new): Don't try to close fd if it's < 0.Jim Meyering
2005-12-19.Jim Meyering
2005-12-19.Jim Meyering
2005-12-17.Jim Meyering
2005-12-17*** empty log message ***Jim Meyering
2005-12-17(acl_entries): Add fallback implementation for POSIX ACLJim Meyering
systems other than Linux. (chmod_or_fchmod): New function: use fchmod when possible, and chmod otherwise. (file_has_acl): Add a POSIX ACL implementation, with a Linux-specific subcase. (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and S_ISVTX from one file to another. Fall back to fchmod/chmod when acls are unsupported. (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and S_ISVTX to a defined value. Fall back to fchmod/chmod when acls are unsupported.
2005-12-17(copy_acl, set_acl): Add declarations.Jim Meyering
2005-12-17remove/openat cleanupPaul Eggert
2005-12-17Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,Paul Eggert
"gettext.h"; either no longer needed or are guaranteed by openat.h. (_): Remove; no longer needed. (openat): Renamed from rpl_openat; no need for rpl_openat since openat.h renames openat for us. Replace most of the body with a call to openat_permissive, to avoid duplicate code. Port to (probably hypothetical) environments were mode_t is wider than int. (openat_permissive): Require mode arg, so that we can check types better. Put it just after flags. Change cwd failure indicator from pointer-to-bool to pointer-to-errno-value. All callers changed. Invoke openat_save_fail and/or openat_restore_fail if cwd_errno is null, so that openat can call us. (openat_permissive, fdopendir, fstatat, unlinkat): Simplify errno handling to avoid some duplicate code, as it's OK to set errno on success.
2005-12-17Revamp code so that function macros depend onPaul Eggert
__OPENAT_PREFIX only, not also on AT_FDCWD. (openat_ro): Remove. Caller changed to use openat_permissive. (openat_permissive): Now a macro, if not a function. (openat_restore_fail, openat_save_fail): Now always functions, since mkdirat needs them even if __OPENAT_PREFIX is defined.
2005-12-15.Jim Meyering
2005-12-14*** empty log message ***Jim Meyering
2005-12-14(libcoreutils_a_SOURCES): Remove fprintftime.cJim Meyering
and fprintftime.h. Now they're pulled in via the .m4 file.
2005-12-14* Makefile.am (stdbool.h): Resurrect the 'sed' that goes alongPaul Eggert
with '#if !@HAVE_BOOL@".
2005-12-14(stdbool.h): Resurrect the 'sed' that goes along with '#if !@HAVE_BOOL@".Paul Eggert
2005-12-13(_Bool): Resurrect the "#if !@HAVE__BOOL@" check, toPaul Eggert
work around compilers that have a (possibly-broken) _Bool but lack a working <stdbool.h>.
2005-12-07* lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check forPaul Eggert
TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3 porting problem reported by Georg Schwarz in <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>. * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
2005-12-05Mention reporters for "none" and "proc" mounts.Paul Eggert
2005-12-04*** empty log message ***Jim Meyering
2005-12-04(EXPECTED_ERRNO): Add ENOSYS, for Solaris 8.Jim Meyering
Paul Eggert reported that unlink/rmdir vs. e.g., /proc/self/fd/N/FILE fails with ENOSYS. This makes openat revert to using save-cwd.c functions in that case.
2005-12-03.Jim Meyering
2005-12-02*** empty log message ***Jim Meyering
2005-12-02Import from gnulib.Paul Eggert
2005-11-30*** empty log message ***Jim Meyering
2005-11-30Include openat-priv.h.Jim Meyering
Remove definitions of macros defined therein.
2005-11-30Define macros used by mkdirat.c and openat.c.Jim Meyering
2005-11-30*** empty log message ***Jim Meyering
2005-11-30(mkdirat): Declare.Jim Meyering
2005-11-30*** empty log message ***Jim Meyering
2005-11-30(mkdirat): New file and function.Jim Meyering
2005-11-26Log today's changes.Paul Eggert
2005-11-26(ME_DUMMY): "none" and "proc" file systems are dummiesPaul Eggert
too.
2005-11-26Include <limits.h>.Paul Eggert
(dev_from_mount_options) [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: New function. It no longer assumes "dev=" has the System V meaning on Linux (since it doesn't). It also parses "dev=" more carefully. (read_file_system_list) [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it. MOUNTED_GETMNTENT2 is new here; the code didn't used to look for dev= in that case.
2005-11-26(MOSTLYCLEANFILES): Clean stdbool.h-t, not stdbool.ht.Paul Eggert
2005-11-26(stdbool.h): Fix typo in previous change.Paul Eggert
2005-11-26(stdbool.h): Just copy stdbool_.h; no need to sed any more.Paul Eggert
2005-11-26Simplify greatly, under the assumption that thesePaul Eggert
days most people use C99-compatible compilers to debug, so it's not worth worrying about catering to older compilers for that. This works around some porting problems with HP-UX compilers. (false, true) [defined __BEOS__]: Don't #undef; no longer needed. (_Bool): typedef to bool if C++ or BeOS, and #define to signed char otherwise.
2005-11-26(gettime) [!defined OK_TO_USE_1S_CLOCK]:Paul Eggert
Report an error at compile-time if only a 1-second nominal clock resolution is found.
2005-11-24Add buffer-lcm.Paul Eggert
2005-11-24(libcoreutils_a_SOURCES): Add buffer-lcm.c, buffer-lcm.h.Paul Eggert
2005-11-24Initial versionPaul Eggert
2005-11-24Initial version, from diffutilsPaul Eggert
2005-11-23tweak grammar in commentsJim Meyering
2005-11-23*** empty log message ***Jim Meyering
2005-11-23(fdopendir): Don't change errno when returning non-NULL.Jim Meyering
2005-11-22.Jim Meyering
2005-11-22*** empty log message ***Jim Meyering
2005-11-22(openat_permissive): Declare.Jim Meyering
(openat_ro): Define.
2005-11-22(EXPECTED_ERRNO): New macro.Jim Meyering
(openat_permissive): New function -- used in remove.c rewrite. (all functions): Set errno just before returning, only if there was an actual failure. Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
2005-11-20*** empty log message ***Jim Meyering