lib


Log

Author Commit Date CI Message
Jim Meyering feb5808b 1999-05-23T21:06:36 .
Jim Meyering 25ee20d5 1999-05-23T20:44:48 .
Jim Meyering 4099aee5 1999-05-23T20:40:59 (libfu_a_SOURCES): Add same.c. (noinst_HEADERS): Add same.h.
Jim Meyering 5052916e 1999-05-23T19:43:10 *** empty log message ***
Jim Meyering 1fe04cba 1999-05-23T19:42:59 New file (function extracted from ln.c).
Jim Meyering 85023021 1999-05-21T20:47:18 remove trailing newline
Jim Meyering e850d55e 1999-05-20T03:49:25 add the comment to go with last change
Jim Meyering 85a3961e 1999-05-20T03:47:24 (get_date): Let mktime deduce tm_isdst if we have an absolute timestamp, or if the relative timestamp mentions days, months, or years.
Jim Meyering 615e02f2 1999-05-17T13:03:46 (human_readable): Allow from_block_size to be zero.
Jim Meyering 6b76fb10 1999-05-15T05:46:45 .
Jim Meyering 94076e90 1999-05-15T04:50:26 (getugroups): Don't dereference a null pointer when running `id USER' for some USER that is listed on the RHS in /etc/group. From Sander van Malssen. Add some curly braces, use STREQ, reverse the sense of a test and use `continue' to save a level of nesting.
Jim Meyering dc96af69 1999-05-14T17:11:03 (version_etc): Put version info and author names on the first two lines respectively rather than putting the three lines of copyright info between them.
Jim Meyering 150e3921 1999-05-13T20:48:44 Include <string.h> or <strings.h> for strlen prototype.
Jim Meyering d9ae4251 1999-05-13T20:44:45 [__GLIBC__ >= 2]: #if-out prototypes.
Jim Meyering e481f380 1999-05-10T04:24:49 Update from libc.
Jim Meyering 957049c4 1999-05-07T18:52:35 .
Jim Meyering d5907e80 1999-05-06T02:10:34 (make_dir): When reporting a mkdir failure and the target cannot be `stat'ed, use the errno from the failed mkdir call, not the one from the stat call. Before this change, running `mkdir -p /no-dir/no-dir' as an unprivileged user would wrongly elicit `No such file or directory' instead of `Permission denied'.
Jim Meyering 5ed8adaa 1999-05-05T13:34:18 (read_utmp): Use the new definitions.
Jim Meyering 65bc9985 1999-05-05T13:34:02 Add definitions to help read utmpx on systems with utmpname. (UTMP_NAME_FUNCTION): Define. (SET_UTMP_ENT): Likewise. (GET_UTMP_ENT): Likewise. (END_UTMP_ENT): Likewise.
Jim Meyering 310f220f 1999-05-05T13:21:29 (TYPE_SIGNED, TYPE_MAXIMUM, TYPE_MINIMUM): Define. (ULONG_LONG_MAX, LONG_LONG_MAX, LONG_LONG_MIN): Define if not defined. Based on a patch from Kaveh Ghazi.
Jim Meyering 90182dd6 1999-05-05T03:05:11 Include makepath.h libintl.h, not after it. Otherwise, we'd get the wrong definition of PARAMS from libintl.h. (The method of defining PARAMS in libintl.h doesn't check PROTOTYPES, which is necessary on Irix4 since cc doesn't define __STDC__.) From Kaveh Ghazi.
Jim Meyering ceaf650f 1999-05-03T02:38:50 (read_utmp): Ignore the return value from utmpname.
Jim Meyering d1cfafba 1999-05-01T04:13:56 *** empty log message ***
Jim Meyering 40e284d3 1999-04-26T13:25:08 (utime_null): Don't pass 0666 to open; it's not needed and isn't guaranteed to be portable.
Jim Meyering f2ab7f35 1999-04-26T13:22:23 (S_IRWXU, S_IRWXG, S_IRWXO): Define if not defined. Use proper mode_t types and macros. Don't assume the traditional Unix values for mode bits.
Jim Meyering 050d93b8 1999-04-26T13:19:37 (make_node_op_equals, mode_compile, mode_create_from_ref, mode_adjust): Use proper mode_t types and macros. Don't assume the traditional Unix values for mode bits. modechange.h now includes sys/types.h. Include xstrtol.h. (isodigit, oatoi): Remove. (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR, S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRWXU, S_IRWXG, S_IRWXO): Define if not defined. (CHMOD_MODE_BITS): New macro. (mode_compile): Convert from octal with xstrtoul, not our own routine.
Jim Meyering 06b7dd0c 1999-04-26T13:13:59 Include <config.h>, <sys/types.h> for mode_t. (struct mode_change): Members affected and value are now mode_t instead of unsigned short.
Jim Meyering 11a9ce21 1999-04-26T13:13:36 <config.h>, <sys/types.h>: Include for mode_t. (mode_string): Now takes mode_t.
Jim Meyering 60cbbda7 1999-04-26T13:13:00 (make_path): Use proper mode_t types and macros. Don't assume the traditional Unix values for mode bits. (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRWXU): Define if not defined.
Jim Meyering 3eeca80e 1999-04-26T13:10:11 (setst, ftypelet, mode_string): Use proper mode_t types and macros. Don't assume the traditional Unix values for mode bits. (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH): Define if not defined. <config.h>, <sys/types.h>: Include for mode_t. (mode_string): Now takes mode_t.
Jim Meyering 665e1726 1999-04-25T19:20:18 <inttypes.h>: Include it here instead. <config.h>: Include it here too.
Jim Meyering 4abb9676 1999-04-25T19:18:55 Don't include inttypes.h here.
Jim Meyering 9322c078 1999-04-22T14:35:59 Guard strong_alias and weak_alias with #ifdef _LIBC.
Jim Meyering 9ca3e52e 1999-04-21T04:30:22 .
Jim Meyering 5cda9cf9 1999-04-21T04:28:36 Remove the temporary strtoumax replacement; we now have a true replacement in strtoumax.c. (__strtol): Always define to strtoumax. (<stdlib.h>): No need to include. (PARAMS): Remove. (my_strtoumax): Move this to strtoumax.c, rename it to strtoumax, and simplify.
Jim Meyering 333f20ca 1999-04-21T04:27:24 Update to glibc 2.1.1 version.
Jim Meyering 59660f86 1999-04-21T04:24:39 .
Jim Meyering 842f1922 1999-04-21T02:29:50 .
Jim Meyering 93627d90 1999-04-20T13:24:14 (my_strtoumax): Fix typo in computing whether overflow occurred. Improve overflow-detection to use only one conditional branch total, rather than 2N+1 conditional branches for an N-digit number.
Jim Meyering 953ff42a 1999-04-19T00:20:36 *** empty log message ***
Jim Meyering 7cc21036 1999-04-18T23:18:32 Include xstrtol.h, not xstrtoul.h, since xstrtol.h now defines all the xstrto... functions.
Jim Meyering 224dcca3 1999-04-18T23:17:30 <stdlib.h>: Include if HAVE_STDLIB_H, since bison 1.27 invokes "free". (LookupWord, yylex): Don't pass negative char to ctype macros.
Jim Meyering 34e6caa6 1999-04-18T23:17:05 (xalloc_fail): Pass xalloc_msg_memory_exhausted through gettext.
Jim Meyering 48eedd56 1999-04-18T23:16:49 (libfu_a_SOURCES): Add xstrtoumax.c. (noinst_HEADERS): Remove xstrtoul.h.
Jim Meyering c35eaf64 1999-04-18T23:16:23 (__xstrtol, __strtol, __unsigned): Remove macro decls. <inttypes.h>: Include if HAVE_INTTYPES_H. (_DECLARE_XSTRTOL): New macro. (xstrtol, xstrtoul, xstrtoumax): Declare all three functions, so that we need only one include file, not three. (_STRTOL_ERROR): Do not undef, as this is no longer needed. Reword overflow message so that it's independent of type.
Jim Meyering c52f4d0c 1999-04-18T23:15:34 (__strtol, __strtol_t, __xstrtol): New macros to specify the underlying function, its returned type, and our function. Default to values suitable for xstrtol. Include <ctype.h>, since we use its macros. (ULONG_MAX, LONG_MAX, ISBLANK): Remove: no longer needed. (ISSPACE): New macro. (bkm_scale, bkm_scale_by_power, __xstrtol, main): __unsigned long int -> __strtol_t. (__xstrtol): Depend on whether __strtol_t is an unsigned type, not on whether STRING_TO_UNSIGNED is defined. Skip isspace chars, not isblank chars, to match strtol. When returning LONGINT_INVALID_SUFFIX_CHAR, store the value that we computed into *val.
Jim Meyering a49ce973 1999-04-18T23:15:02 (STRING_TO_UNSIGNED): Remove. (__strtol, __strtol_t, __xstrtol): New macros.
Jim Meyering 20f509fc 1999-04-15T14:09:04 .
Jim Meyering dc60b429 1999-04-11T13:25:52 (readtoken, readtokens): Protoize.
Jim Meyering 2a2630ca 1999-04-07T17:43:36 (difftm): Protoize.
Jim Meyering a3134787 1999-04-07T17:41:57 .
Jim Meyering 6dca64d7 1999-04-06T14:22:06 Update from master source in libc, removing %f.
Jim Meyering 9ab56599 1999-04-04T14:30:30 fix comments add FIXME
Jim Meyering 143e3054 1999-03-30T04:52:57 .
Jim Meyering 23f5c010 1999-03-30T04:51:08 (make_node_op_equals): New function. (mode_append_entry): Likewise. (mode_compile): When none of [ugoa] is specified in an `=OP' change mode request, insert a `=0' entry into the linked list so that all bits are cleared first. Use the new functions.
Jim Meyering f77f4c44 1999-03-30T04:48:41 (rmdir): Use pid_t instead of int; check status against zero. This is to improve portability.
Jim Meyering 6d18b595 1999-03-30T04:48:17 (rename): Use pid_t instead of int; check status against zero. This is to improve portability.
Jim Meyering 0bb0c42b 1999-03-30T04:47:52 (mkdir): Use pid_t instead of int; check status against zero. This is to improve portability.
Jim Meyering dc062ad0 1999-03-28T20:58:51 (get_date): Reuse tm_isdst of first localtime call; this is an improvement on a bug fix suggested by martin@dresden.nacamar.de. Do not assume that localtime and gmtime return non-null. From Paul Eggert.
Jim Meyering 833b6069 1999-03-28T05:44:33 (mode_compile): Upon allocation failure, free everything starting with the head, not the tail.
Jim Meyering d7fb9eaa 1999-03-26T04:23:01 .
Jim Meyering 2d128598 1999-03-26T04:20:23 (libfu_a_SOURCES): Add version-etc.c. (noinst_HEADERS): Add version-etc.h.
Jim Meyering bda142ee 1999-03-26T04:19:07 (parse_long_options): Remove version-, copyright-, and author-printing code. Do it via version_etc.
Jim Meyering acca1028 1999-03-26T04:17:33 *** empty log message ***
Jim Meyering b6044c6a 1999-03-17T14:07:34 (is_prime): Return bool rather than int.
Jim Meyering 9166d49f 1999-03-15T16:52:22 tweak comments add curlies use assert(0) in place of abort
Jim Meyering 6ad0acb4 1999-03-15T15:50:31 Revamp to allow fine-tuning to control when and by how much the table grows and shrinks. (next_prime): Don't assert. (hash_reset_tuning): New function. (check_tuning): New function. (hash_initialize): Accept and use new tuning parameter. (hash_rehash): Rewrite, updating for tuning. (hash_insert): Honor tuning semantics. (hash_delete): Likewise. From François Pinard.
Jim Meyering cac600a7 1999-03-15T15:41:59 (struct hash_tuning): Define. (struct hash_table) [tuning]: Add member. (hash_initialize): Add `tuning' parameter.
Jim Meyering b6e565ac 1999-03-15T15:33:21 (hash_insert): Update prototype.
Jim Meyering 21382cf3 1999-03-15T15:33:01 (hash_insert): Remove last parameter and change semantics. (hash_insert): Don't increment n_entries unconditionally -- otherwise, we'd do so even when the insertion failed. From François Pinard.
Jim Meyering cd988caa 1999-03-13T16:19:18 *** empty log message ***
Jim Meyering 19a0a43a 1999-03-13T16:09:00 (base_name): If NAME is all slashes, return `/' (in conformance with the single unix spec). Reported by Peter Moulder.
Jim Meyering 47dfd672 1999-03-10T15:39:02 (canon_host): Don't use he->h_addr directly. Based on a patch from Savochkin Andrey Vladimirovich.
Jim Meyering 4527d5ce 1999-03-10T15:35:47 (getugroups): Take new parameter, gid. Add gid to the list of groups. From Ulrich Drepper.
Jim Meyering 7cb0d126 1999-03-09T18:53:54 fix typo in comment.
Jim Meyering b7b9b901 1999-03-09T16:10:30 fix small thinko
Jim Meyering 1ef07171 1999-03-09T16:07:49 (getugroups): Take new parameter, gid. Add gid to the list of groups. From Ulrich Drepper.
Jim Meyering a52b3661 1999-03-09T16:07:16 protoize
Jim Meyering c073723b 1999-03-08T02:43:14 (xalloc_fail): Use "%s" format so the message doesn't have to be scanned for % signs. Suggestion from François Pinard.
Jim Meyering 84015099 1999-03-07T17:48:10 restore blank lines in --version output
Jim Meyering 83af9954 1999-03-07T16:43:15 (parse_long_options): Include `Copyright...' line in --version output.
Jim Meyering ebe0827f 1999-03-07T15:53:20 (parse_long_options): Add the `...NO warranty...' message.
Jim Meyering e29fbaee 1999-03-06T22:00:09 .
Jim Meyering 1d594fbf 1999-03-04T05:08:21 Update prototype.
Jim Meyering b18bd420 1999-03-04T05:08:01 (_): Define it. (parse_long_options): Accept new parameter, authors, and print it.
Jim Meyering e62fae45 1999-03-02T13:53:33 (read_utmp) [HAVE_UTMPNAME]: Rewrite.
Jim Meyering f4e36b57 1999-02-19T07:31:48 <alloca.h>: Include if HAVE_ALLOCA_H, not FORCE_ALLOCA_H. The FORCE_ALLOCA_H was a relic of the bad old pre-autoconf Emacs days.
Jim Meyering b0aca2f6 1999-02-17T14:58:41 tweak comment
Jim Meyering f979eb04 1999-02-16T21:35:48 new version from Uli
Jim Meyering c98e5027 1999-02-08T03:32:38 Don't include stdio.h.
Jim Meyering 735ac731 1999-02-08T03:32:06 Include stdio.h.
Jim Meyering 74771611 1999-02-08T00:00:44 *** empty log message ***
Jim Meyering 84bac78d 1999-02-03T05:15:07 (ftypelet): Handle doors. (S_ISDOOR): Define if missing.
Jim Meyering 7d6f71cd 1999-02-01T13:50:12 (STRXCASECMP_FUNCTION): Don't increment within macro argument list. From Akim Demaille.
Jim Meyering 3679b7f3 1999-01-31T16:54:00 Include locale.h. [!HAVE_SETLOCALE]: Define-away setlocale. (getloadavg): Ensure the sscanf of /proc/getloadavg data uses the `C' numeric locale. Restore afterwards.
Jim Meyering aa8a4dc8 1999-01-31T15:28:48 Protoize.
Jim Meyering e9721c2f 1999-01-31T14:46:08 Declare chown manually.
Jim Meyering 76cea646 1999-01-31T05:39:01 .
Jim Meyering 5be2c8c5 1999-01-25T14:52:13 (ARRAY_CARDINALITY): Define. (ARGMATCH_ASSERT): New macro.
Jim Meyering 37b53952 1999-01-25T14:09:45 .