summaryrefslogtreecommitdiff
path: root/lib
AgeCommit message (Collapse)Author
2005-09-24Include <config.h> from strintcmp.c, not from here.Jim Meyering
2005-09-24Include <config.h> here, not from strnumcmp-in.h.Jim Meyering
2005-09-23*** empty log message ***Jim Meyering
2005-09-23(verify_type__): Use `unsigned int' as the bitfield typeJim Meyering
so we can once again use a positive bitfield width of 1 -- now we don't have to explain why we were using a bitfield width of 2.
2005-09-23*** empty log message ***Jim Meyering
2005-09-23Use 2, not 1, for bitfield size in verify.h.Paul Eggert
2005-09-23(verify_type__): Use 2, not 1, for bitfield size, to avoidPaul Eggert
a warning with Irix 6.5 cc.
2005-09-23Log recent changes.Paul Eggert
2005-09-23.Jim Meyering
2005-09-23* lib/utimens.c (futimens): Use futimesat if available.Paul Eggert
Prefer it to futimes since it doesn't have the futimes bug. * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
2005-09-23Fix typo in comment.Paul Eggert
2005-09-23(GL_CONCAT0, GL_CONCAT): Remove.Paul Eggert
(verify): Don't use the __LINE__ trick, as it doesn't work in general. Instead, declare a function that returns a pointer to an array, and use verify_type__ to declare the size of the array. Problem and germ of a solution reported by Bruno Haible.
2005-09-23*** empty log message ***Jim Meyering
2005-09-23Include <config.h>. Otherwise builds with strictJim Meyering
C89 (e.g., Sun's /opt/SUNWspro/bin/c89) would fail due to the use of `inline'.
2005-09-23* lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.Paul Eggert
Problem reported by Eric Blake. (getaddrinfo): Initialize se so that it's not garbage. Redo internal storage allocation so that it doesn't make unportable assumptions about alignment. Fix a memory leak.
2005-09-22.Jim Meyering
2005-09-22Regenerate.Paul Eggert
2005-09-22Sync from gnulib.Paul Eggert
2005-09-22(libcoreutils_a_SOURCES): Add getaddrinfo.h,Paul Eggert
mbchar.c, mbchar.h, mbuiter.h, strcase.h, strlen1.c, strnlen1.h, strstr.h.
2005-09-22Nontrivial sync from gnulib.Paul Eggert
2005-09-22Add getline.h, getpass.cPaul Eggert
2005-09-22(GL_CONCAT): Remove.Paul Eggert
Include "verify.h" instead. (ARGMATCH_CONSTRAINT, ARGMATCH_ASSERT): Remove. (ARGMATCH_VERIFY): Rewrite in terms of new verify macros.
2005-09-22(VERIFY_EXPR, X2NREALLOC, X2REALLOC): Remove.Paul Eggert
The latter two macros are moving to ../src/system.h for now. This reverts this file to the gnulib version.
2005-09-22Remove; no longer used.Paul Eggert
2005-09-22New file, from gnulib.Paul Eggert
2005-09-22Add getaddrinfo.h, getdelim.h, mbchar.h,Paul Eggert
mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
2005-09-22Sync from gnulib.Paul Eggert
2005-09-22Sort.Paul Eggert
2005-09-22(ENOSYS): Define to EEXIST if not defined.Paul Eggert
(make_dir_parents): Treat ENOSYS like EEXIST.
2005-09-21.Jim Meyering
2005-09-20*** empty log message ***Jim Meyering
2005-09-20(fdopendir): Be sure to close the suppliedJim Meyering
file descriptor before returning. This makes our replacement implementation a little closer to Solaris's, where fdopendir ties the file descriptor to the returned DIR* pointer.
2005-09-19*** empty log message ***Jim Meyering
2005-09-19(unlinkat): New function.Jim Meyering
2005-09-19(unlinkat): Add prototype.Jim Meyering
2005-09-17(set_stat_atime, set_stat_ctime, set_stat_mtime): Remove; they werePaul Eggert
buggy in the HAVE_STRUCT_STAT_ST_SPARE1 case, and they were dubious anyway. I rewrote 'tar' to not use them any more.
2005-09-16Regenerate.Paul Eggert
2005-09-16Import file time stamp resolution improvements from gnulib.Paul Eggert
2005-09-16Include stat-time.h.Paul Eggert
(SYSCALL_RESOLUTION): Depend on whether various struct stat members exist, not on the obsolescent ST_MTIM_NSEC. (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
2005-09-16(ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):Paul Eggert
(MTIME_CMP, TIMESPEC_NS): Remove. Now done by stat-time.h, in a different way. (timespec_cmp): New function.
2005-09-16New file.Paul Eggert
2005-09-16Add stat-time.h.Paul Eggert
2005-09-16*** empty log message ***Jim Meyering
2005-09-16(libcoreutils_a_SOURCES): Add fprintftime.c and fprintftime.h.Jim Meyering
2005-09-16*** empty log message ***Jim Meyering
2005-09-16[FPRINTFTIME] (fprintftime): Provide a new interface:Jim Meyering
size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm, int utc, int nanoseconds); Background: date should not have to allocate a megabyte of virtual memory to handle a format argument like +%1048575T. When implemented with strftime, it must allocate such a buffer, use strftime to fill it in, print it, then free it. With fprintftime, it simply prints everything and exits. With no need for memory allocation, that's one fewer way to fail.
2005-09-16*** empty log message ***Jim Meyering
2005-09-15Rewrite previous strftime change slightly.Paul Eggert
2005-09-15(my_strftime): Rewrite the previous change slightly,Paul Eggert
to make it a bit faster and (I hope) clearer.
2005-09-14*** empty log message ***Jim Meyering