lib


Log

Author Commit Date CI Message
Jim Meyering 5c363a56 1999-08-10T11:00:12 (ARGMATCH_QUOTING_STYLE): Change from escape_quoting_style to locale_quoting_style. (argmatch_invalid): Use new quotearg_style primitive for simplicity. Also, use ARGMATCH_QUOTING_STYLE to quote, instead of quoting ourselves.
Jim Meyering cbc709a9 1999-08-10T10:58:01 (locale_quoting_style): New enum value. (quotearg_n_style, quotearg_style): New decls.
Jim Meyering 66bec62b 1999-08-10T10:50:18 Include <libintl.h> if ENABLE_NLS. (_): New macro. (quoting_style_args, quoting_style_v, quotearg_buffer): Add support for locale_quoting_style, using _("`") and _("'") for open and close quote symbols. Do not quote spaces in escape_quoting_style. (quotearg_n_style, quotearg_style): New functions.
Jim Meyering 14e721e5 1999-08-08T10:16:53 fix typo
Jim Meyering d9bc7df3 1999-08-08T10:12:55 update prototype
Jim Meyering 8e2cc070 1999-08-08T10:12:43 (savedir): Change type of name_size parameter to off_t.
Jim Meyering 70686f64 1999-08-07T09:50:34 (OtherTable[]): Use tDAY_UNIT for `tomorrow,' `yesterday,' `today,' and `now' rather than tMINUTE_UNIT. Of course with correspondingly smaller numbers for tomorrow and yesterday. This change does not change the way the code works, since the grammar rules for the two symbols are analogous.
Jim Meyering 3c3d25cd 1999-08-01T07:44:39 (quotearg_buffer): Don't quote spaces if C quoting style.
Jim Meyering 13413b31 1999-07-30T21:15:01 .
Jim Meyering d59ff2bd 1999-07-30T19:29:27 Include <sys/types.h> now that linebuffer.h uses size_t. This is required on at least SunOS4. From Kaveh Ghazi.
Jim Meyering c6a5094f 1999-07-26T06:52:28 *** empty log message ***
Jim Meyering 12c637b4 1999-07-20T18:52:05 update comments
Jim Meyering 34bd051e 1999-07-20T18:41:58 (translate_040_to_space) [MOUNTED_GETMNTENT1]: New function. (read_filesystem_list) [MOUNTED_GETMNTENT1]: Use it.
Jim Meyering 9aed1cf1 1999-07-18T11:21:58 .
Jim Meyering 0a0f3598 1999-07-15T16:16:24 (noinst_HEADERS): Add getpagesize.h.
Jim Meyering 3dba1682 1999-07-15T09:31:44 .
Jim Meyering d1d0f73f 1999-07-15T09:31:34 *** empty log message ***
Jim Meyering eab7ca83 1999-07-15T07:50:06 (get_fs_usage) [STATFS_TRUNCATES_BLOCK_COUNTS]: Work around SunOS botch also when block size is different from 1k.
Jim Meyering d929a80e 1999-07-10T16:40:33 *** empty log message ***
Jim Meyering c966cc7a 1999-07-10T16:40:16 cpp indent and split a long line
Jim Meyering 41868d18 1999-07-10T16:36:56 use a space, not TAB after #define
Jim Meyering 906522d1 1999-07-10T16:36:11 cpp indent
Jim Meyering f60f9281 1999-07-04T10:40:04 [!defined strtoumax]: Declare strtoumax.
Jim Meyering 8b13b403 1999-07-04T10:38:37 .
Jim Meyering 9d80c0d4 1999-07-04T10:31:01 (readline): Leave room for an extra byte after the newline; comm needs this for memcoll.
Jim Meyering 17448795 1999-07-04T10:08:56 [struct linebuffer] (size): Declare to be of type size_t, not long. [struct linebuffer] (length): Likewise.
Jim Meyering ade79def 1999-07-04T10:06:42 (readline): Append trailing newline to line.
Jim Meyering e389e12a 1999-07-04T08:47:49 (enum human_inexact_style): New enum. (human_readable_inexact): New decl.
Jim Meyering f1d77440 1999-07-04T08:47:28 (human_readable): New function. (human_readable_inexact): Renamed from human_readable, with new arg INEXACT_STYLE. Add support for ceiling and floor.
Jim Meyering e911cfd7 1999-07-04T08:34:31 (__strtol): Remove decl; it doesn't work if __strtol expands to a macro, which occurs in HP-UX 10.20 with strtoumax. (strtol, strtoul): New decls (for pre-ANSI hosts), to replace the above decl.
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.