summaryrefslogtreecommitdiff
path: root/lib
AgeCommit message (Collapse)Author
2006-08-19.Jim Meyering
2006-08-18Add support for NetBSD 3.0.Paul Eggert
* src/stat.c (USE_STATVFS): Set to 1 if 'struct statvfs' has a field f_fstypename. (STATXFS_FILE_SYSTEM_TYPE_MEMBER_NAME): Define also if 'struct statvfs' has a field f_fstypename. This undoes the 2006-08-15 to src/stat.c. * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h. (ME_DUMMY): Treat "kernfs" as a dummy. (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement. * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for sys/statvfs.h. When getmntinfo was found, check its declaration and set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it. * m4/stat-prog.m4 (cu_PREREQ_STAT_PROG): Test also for f_fstypename in struct statvfs.
2006-08-17Add/fix copyright notices and adjust to latest GNU FDL.Paul Eggert
2006-08-16(memcoll): Set errno = 0 in the shortcut case, too.Paul Eggert
2006-08-16* fts.c (fts_children): Remove obsolete "// FIXME ..." comment.Jim Meyering
Reported by Bruno Haible.
2006-08-15[./]Jim Meyering
* .x-sc_require_config_h: Add lib/at-func.c. [lib/] * at-func.c: New file, with the logic of all emulated at-functions. * openat-priv.h: Include <errno.h> and define ENOSYS, in support of the EXPECTED_ERRNO macro. * openat.c (fstatat, unlinkat, fchownat): Remove function definitions. Instead, define the appropriate symbols and include "at-func.c". * mkdirat.c (mkdirat): Likewise. * fchmodat.c (fchmodat): Likewise. (ENOSYS): Remove definition. * openat.c: Don't include <errno.h>, now that "openat-priv.h" does it. Don't include "unistd--.h" -- it wasn't ever used. [m4/] * openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
2006-08-15.Jim Meyering
2006-08-15commit, for the record. May never be used.Jim Meyering
2006-08-14(memcoll): Optimize for the common case where thePaul Eggert
arguments are bytewise equal.
2006-08-11* pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->Paul Eggert
HAVE_PIPE. Fix a file descriptor leak when fd_safer fails.
2006-08-11(re_string_skip_chars): Don't assume WEOF fits in wchar_t.Paul Eggert
2006-08-11Fix typo in previous checkin: len -> lenbuf.Paul Eggert
2006-08-11(snprintf): memcpy LEN bytes, not SIZE - 1, whenPaul Eggert
LEN is smaller than SIZE. Suggested by Bruno Haible. Also, help the compiler to keep LEN in a register.
2006-08-10Import regex changes from libc via gnulib.Paul Eggert
2006-08-10Accommodate new getaddrinfo implementation in gnulib.Paul Eggert
(libcoreutils_a_SOURCES): Add inet_ntop.h, snprintf.h. (MOSTLYCLEANDIRS): New macro. (BUILT_SOURCES): Add $(ARPA_INET_H), $(SYS_SOCKET_H), $(NETINET_IN_H). (arpa/inet.h, netinet/in.h, sys/socket.h): New rules. (MOSTLYCLEANFILES): Add arpa/inet.h, arpa/inet.h-t, netinet/in.h, netinet/in.h-t, sys/socket.h, sys/socket.h-t. (EXTRA_DIST): Add socket_.h.
2006-08-10Import from gnulib, to support new getaddrinfo implementation of gnulib.Paul Eggert
2006-08-10Add snprintf.h, socket_.h.Paul Eggert
2006-08-09Regenerate.Paul Eggert
2006-08-09Sync from gnulib.Paul Eggert
2006-08-09Regenerate.Paul Eggert
2006-08-09Fix too-long line in 2006-08-08 checkin, and an encoding errorPaul Eggert
in 2006-07-19 checkin.
2006-08-09Include <config.h>.Jim Meyering
2006-08-08Add shuf, better random number generation, and fix sort -R inPaul Eggert
funny locales.
2006-08-08New file, introduced for shuf, sort -R, and/or shred.Paul Eggert
2006-08-08(libcoreutils_a_SOURCES): Add xmemxfrm.c, xmemxfrm.h.Paul Eggert
2006-07-28chmod 0755 DIR and chmod 755 DIR are now equivalent.Paul Eggert
2006-07-28Remove obsolete comment about masks.Paul Eggert
2006-07-28(mode_compile): Numeric modes now affect setuid andPaul Eggert
setgid on directories only if they set these bits.
2006-07-22Split closeout into close-stream and closeout.Paul Eggert
2006-07-22(close_stdout): Use new function close_stream.Paul Eggert
2006-07-22Initial revision.Paul Eggert
2006-07-20*** empty log message ***Jim Meyering
2006-07-20[ME_REMOTE]: Filter out cifs.Jim Meyering
Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
2006-07-20*** empty log message ***Jim Meyering
2006-07-20(ME_REMOTE): Compare strchr's result to NULL, not 0, for better readability.Jim Meyering
2006-07-17In comment: bits bits -> bits.Paul Eggert
2006-07-17Regenerate.Paul Eggert
2006-07-17chmod, install, and mkdir now leave setgid and setuid bitsPaul Eggert
of directories alone unless you specify them explicitly. install and mkdir now implement X correctly. install now creates parent directories with mode 755, without changing their owner or group.
2006-07-17(mode_adjust): New API.Paul Eggert
2006-07-17(octal_to_mode): New function.Paul Eggert
(struct mode_change): New member mentioned. (make_node_op_equals): New arg mentioned. All callers changed. (mode_compile): Keep track of which mode bits the user has explicitly mentioned. (mode_adjust): New arg DIR, so that we implement the X op correctly. New arg PMODE_BITS, to keep track of which mode bits the user mentioned; it treats S_ISUID and S_ISGID speciall. All callers changed.
2006-07-17Adjust to new make_dir_parents API.Paul Eggert
2006-07-17Don't include alloca.h, stdio.h, sys/types.h,Paul Eggert
unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h, save-cwd.h. Instead, include dirchownmod.h and mkancesdirs.h. (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE, MODE_BITS. Remove options VERBOSE_FMT_STRING, CWD_ERRNO. All callers changed. Revamp internals significantly, by not attempting to create directories that are temporarily more permissive than the final results. Do not attempt to use save_cwd/restore_cwd; it isn't worth it for mkdir and install. This removes some race conditions, fixes some bugs, and simplifies things. Use new dirchownmod function to do owner and mode changes.
2006-07-17Initial version.Paul Eggert
2006-07-16* userspec.c (parse_with_separator): Say "invalid spec" rather thanJim Meyering
the sometimes erroneous "cannot get the login group of a numeric UID" for a spec like "not-a-username:" or "1:". Reported by suckfish@ihug.co.nz in https://bugzilla.redhat.com/bugzilla/199027.
2006-07-11Sync from gnulib.Paul Eggert
2006-07-09Update from gnulib.Paul Eggert
2006-07-09(stdint.h): FULL_PATH_STDINT_H -> ABSOLUTE_STDINT_H,Paul Eggert
to accommodate update from gnulib.
2006-07-08(getndelim2): Remove doubled "after" in comment.Jim Meyering
2006-07-04Really add wcwidth.h.Jim Meyering
2006-07-04*** empty log message ***Jim Meyering