modules


Log

Author Commit Date CI Message
Simon Josefsson 392a1c16 2006-06-19T11:18:39 2006-06-19 Yoann Vandoorselaere <yoann.v@prelude-ids.com> * modules/sys_socket, modules/socklen: Include sys/types since FreeBSD 4.x's sys/socket.h needs it.
Simon Josefsson 08c03e59 2006-06-16T19:40:12 Add read-file module.
Bruno Haible ca228dfa 2006-06-16T13:29:51 Rewrite module 'stdint' to be fully autoconfiguring.
Bruno Haible d9def6e7 2006-06-16T13:29:04 New module 'stdint-tests'.
Bruno Haible f46a1e87 2006-05-09T17:26:15 Recognize the special case of a string concatenation in xvasprintf.
Bruno Haible 4f9bc0db 2006-05-08T13:13:13 New module 'stdarg'.
Paul Eggert 27c30603 2006-05-02T23:48:20 * modules/inttypes (Maintainer): Change from Derek Price to 'all'. * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next test from here... * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
Bruno Haible eb750bc6 2006-04-24T11:38:06 Include <unistd.h> unconditionally.
Bruno Haible 69494ad3 2006-04-24T11:35:07 Support for packages that use "gettextize --intl". From Claudio Fontana.
Derek R. Price d58cf1a8 2006-04-18T17:20:47 * modules/inttypes: New file. * modules/strtoimax, modules/strtoumax: Depend on inttypes. * lib/inttypes.h: New file. * lib/strtoimax.c: Assume <inttypes.h>. * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next: New files.
Eric Blake d5552a12 2006-04-12T16:50:51 * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this is now done automatically by the corresponding Autoconf macro.
Paul Eggert 8335a4d6 2006-04-10T06:43:33 Merge regex changes from libc, removing some of our POSIX-conformance changes that were rejected and redoing them in a less-intrusive way. * lib/regcomp.c (re_compile_internal, init_dfa): Length arg is now size_t, not Idx. All uses changed. (peek_token): Forward decl now says internal_function. (__re_error_msgid, __re_error_msgid_idx): Now static rather than extern with attribute_hidden. (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn. For some reason libc prefers K&R style defns for external functions. (regerror) [!defined _LIBC]: Likewise. (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp): (seek_collating_symbol_entry, lookup_collation_sequence_value): (build_range_exp, build_collating_symbol): Use K&R-style defn. (re_compile_fastmap): Use '\0' to memset, not 0. (utf8_sb_map): Make the calculations more obvious. (init_dfa, parse_bracket_exp, build_charclass_op): Call calloc and cast result, as glibc does. (init_word_char, fetch_token, peek_token, peek_token_bracket): (build_range_exp, build_collating_symbol): Now internal functions. * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers. * lib/regex.h (__USE_GNU_REGEX): New macro. Don't depend on _REGEX_SOURCE any more; depend on _GNU_SOURCE instead. Don't depend on VMS; depend on __VMS instead, for POSIX namespace cleanness. (regoff_t): Define to ssize_t, not long int. Remove the REG_ macros named below. Instead, make the old names (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if __USE_GNU_REGEX. (REG_BACKSLASH_ESCAPE_IN_LISTS): (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS): (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS): (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE): (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT): (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS): (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES): (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING): (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD): (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE): (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS): (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK): (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP): (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON): (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC): (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED): (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED): (REG_NREGS): Remove. All uses replaced by the old RE_* names. (RE_BACKSLASH_ESCAPE_IN_LISTS): (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS): (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS): (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE): (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT): (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS): (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES): (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING): (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD): (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE): (RE_CONTEXT_INVALID_DUP, RE_NO_SUB): Don't bother having these macros be independent of each others' values, since they no longer exist in the POSIX name space. Rename the following member names back to their old names, unless !__USE_GNU_REGEX. All uses changed back. (buffer): Renamed from re_buffer. (allocated): Renamed from re_allocated. (used): Renamed from re_used. (syntax): Renamed from re_syntax. (fastmap): Renamed from re_fastmap. (translate): Renamed from re_translate. (can_be_null): Renamed from re_can_be_null. (regs_allocated): Renamed from re_regs_allocated. (fastmap_accurate): Renamed from re_fastmap_accurate. (no_sub): Renamed from re_no_sub. (not_bol): Renamed from re_not_bol. (not_eol): Renamed from re_not_eol. (newline_anchor): Renamed from re_newline_anchor. (num_regs): Renamed from rm_num_regs. (start): Renamed from rm_start. (end): Renamed from rm_end. (free_state): Move up a bit. * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]: #define to be empty. (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2 when that is what is intended. (SBC_MAX): Define to UCHAR_MAX + 1, not 256. (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed. (MAX): New macro. (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove. All uses changed back to re_malloc, etc. It's now the caller's responsibility to check for overflow; all callers changed. (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc): (re_x2nrealloc): Remove. (free_state): Remove decl. * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2): (re_set_registers, re_exec): Use K&R-style defn. 2006-01-31 Roland McGrath <roland@redhat.com> * lib/regcomp.c (calc_eclosure_iter): Remove dead variables. Reported by Mike Frysinger <vapier@gentoo.org>. 2006-01-15 Andreas Jaeger <aj@suse.de> [BZ #1950] * lib/regex_internal.c (re_string_reconstruct): Adjust for build_wcs_upper_buffer change. (build_wcs_upper_buffer): Change return type. 2005-12-10 Ulrich Drepper <drepper@redhat.com> * lib/regex_internal.h: Include <stdint.h> if available. 2005-12-06 Paolo Bonzini <bonzini@gnu.org> * lib/regex_internal.h (SIZE_MAX): Provide a default definition. 2005-10-14 Ulrich Drepper <drepper@redhat.com> * lib/regcomp.c: Adjust for changed secondary hash function. 2005-09-30 Ulrich Drepper <drepper@redhat.com> * lib/regex.h: Pretty printing. Clean up namespace a bit. 2005-09-30 Jakub Jelinek <jakub@redhat.com> * lib/regexec.c (update_cur_sifted_state, check_arrival, check_arrival_add_next_nodes): Avoid using uninitialized variable. 2005-09-06 Paul Eggert <eggert@cs.ucla.edu> Ulrich Drepper <drepper@redhat.com> [BZ #1302] * lib/regex_internal.h (bitset_t): Renamed from bitset. All uses changed. (bitset_word_t): Renamed from bitset_word. All uses changed. 2005-09-22 Ulrich Drepper <drepper@redhat.com> [BZ #281] * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *. * lib/regcomp.c: Remove unnecessary uses of unsigned RE_TRANSLATE_TYPE. * lib/regex_internal.h: Likewise. * lib/regex_internal.c: Likewise. * lib/regexec.c: Likewise. Based on a patch by Stepan Kasal <kasal@ucw.cz>. 2005-09-07 Ulrich Drepper <drepper@redhat.com> * lib/regexec.c (find_recover_state): Remove unnecessary initialization. (transit_state_bkref): Make DFA a const pointer. (get_subexp): Likewise. (check_arrival): Likewise. (update_cur_sifted_state): Likewise. (re_search_internal): Likewise. (prune_impossible_nodes): Likewise. (acquire_init_state_context): Likewise. (proceed_next_node): Likewise. (set_regs): Likewise. (free_fail_stack_return): Likewise. (check_arrival_expand_ecl): Mark DFA parameter as const. (check_arrival_expand_ecl_sub): Likewise. (check_subexp_limits): Likewise. (sub_epsilon_src_nodes): Likewise. (add_epsilon_src_nodes): Likewise. (merge_state_array): Likewise. (update_regs): Likewise. (build_trtable): Likewise. (sift_states_backward): Mark MCTX parameter as const. (build_sifted_states): Likewise. (update_cur_sifted_state): Likewise. (sift_states_mkref): Likewise. (check_arrival_expand_ecl): Mark eclosure as const. (check_dst_limits_calc_pos_1): Likewise. * lib/regex_internal.h (re_match_context_t): Make dfa a const pointer. 2005-09-06 Ulrich Drepper <drepper@redhat.com> * lib/regexec.c (merge_state_with_log): Define dfa as const pointer. (transit_state_sb): Likewise. (transit_state_mb): Likewise. (sift_states_iter_mb): Likewise. (check_arrival_add_next_nodes): Likewise. (check_node_accept_bytes): Change first parameter to pointer-to-const. [_LIBC] (re_search_2_stub): Use mempcpy. * lib/regex_internal.c (re_string_reconstruct): Avoid calling mbrtowc for very simple UTF-8 case. * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg a pointer-to-const. (re_acquire_state_context): Likewise. * lib/regex_internal.h: Adjust prototypes. * lib/regex.c: Prevent using C++ compilers. * lib/regex_internal.c (re_acquire_state): Minor code rearrangement. (re_acquire_state_context): Likewise.
Paul Eggert 15a8db51 2006-03-08T01:37:15 * lib/c-stack.c: Include unistd.h unconditionally, since we now assume the unistd module. * lib/getlogin_r.c: Likewise. * lib/getlogin_r.h: Likewise. * lib/glob.c: Likewise. * lib/pagealign_alloc.c: Likewise. * lib/unistd_.h: Remove; no longer needed. * modules/c-stack (Depends-on): Add unistd. * modules/getlogin_r: Likewise. * modules/glob: Likewise. * modules/pagealign_alloc: Likewise. * modules/unistd (Files): Remove lib/unistd_.h. (EXTRA_DIST): Remove. (unistd.h): Create using 'echo' rather than 'cp', so that we don't need unistd_.h. (MOSTLYCLEANFILES): Remove unistd.h-t.
Simon Josefsson 767e884e 2006-03-07T13:44:24 Fix typo.
Simon Josefsson 266f4849 2006-03-07T13:30:51 Fix use of unistd.h in getopt through a new unistd module.
Simon Josefsson 216c04af 2006-03-07T13:17:10 Split off gc-random from gc, and only warn on missing devices.
Paul Eggert 5af41bb2 2006-03-02T07:36:41 * modules/gettime (Depends-on): Add extensions module. * modules/nanosleep (Depends-on): Likewise. * modules/settime (Depends-on): Likewise. * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS, not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled pedantically. * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise. * m4/timespec.m4 (gl_TIMESPEC): Likewise.
Paul Eggert 266a433b 2006-02-26T08:45:03 * modules/intprops: New file. * MODULES.html.sh (Numeric conversion functions <stdlib.h>): Add intprops. * modules/getloadavg (Files): Remove lib/intprops.h. (Depends-on): Add intprops. * modules/human: Likewise. * modules/inttostr: Likewise. * modules/openat: Likewise. * modules/sig2str: Likewise. * modules/userspec: Likewise. * modules/utimecmp: Likewise. * modules/xnanosleep: Likewise. * modules/xstrtol: Likewise.
Paul Eggert bb469ee6 2006-02-25T05:07:39 * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES. * modules/lock-tests (TESTS): Use $(EXEEXT). * modules/tls-tests: Likewise. * modules/argp-tests: Likewise. (check_PROGRAMS): New var, replacing... (noinst_PROGRAMS, test_argp_SOURCES): Remove.
Simon Josefsson 8343fb1a 2006-02-16T09:47:28 * modules/getaddrinfo (Depends-on): Add sys_socket.
Paul Eggert 28fe652e 2006-02-14T23:00:23 Sync from coreutils. * modules/lstat (Depends-on): Don't depend on xalloc. (License): Change from GPL to LGPL, since this is now simply a replacement for a libc function. Eliminate the unwelcome (albeit unlikely) possibility of xmalloc failure on deficient systems, and simplify gnulib lgpl dependencies. * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the xmalloc/lstat combination. Based on a patch from Bruno Haible. * lib/xalloc-die.c: Remove unused definition of N_. * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke AC_CHECK_FUNCS(getmntent) unconditionally so that tests of $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not double-quote uses of that variable, to accommodate the rare case in which getmntent is available in none of the libraries checked. This happens at least on FreeBSD 5.0.
Simon Josefsson d1e0901e 2006-02-14T12:53:58 * modules/maintainer-makefile (Files): Rename.
Simon Josefsson 80bdb2b0 2006-02-14T11:25:31 * modules/maintainer-makefile: New module. * build-aux/Makefile.maint: New file, from GNU CoreUtils, although severaly stripped to make it possible to build it up from scratch with reliable tests. * build-aux/GNUmakefile: New file, from GNU CoreUtils with some fixes to permit overriding the default actions when configure and makefile are not available.
Paul Eggert 0949378b 2006-02-08T00:04:08 * modules/closeout (Depends-on): Remove atexit.
Paul Eggert 3fd5ff34 2006-01-25T00:16:39 /tmp/cvsY9fTYA
Jim Meyering 6e893aef 2006-01-24T19:17:13 (Files): Add lib/intprops.h. From Mark D. Baushke.
Bruno Haible 740b6ed2 2006-01-23T20:38:51 Simplify.
Sergey Poznyakoff 6e714e7a 2006-01-21T19:09:06 Test suite for argp module
Simon Josefsson 1899ce45 2006-01-20T12:59:10 Fix inet_ntop on mingw32.
Simon Josefsson efc1f57b 2006-01-19T09:05:56 Simplify my *-tests modules.
Paul Eggert d49d2d4e 2006-01-19T04:40:47 filesystem -> file system (the POSIX spelling)
Simon Josefsson 70540418 2006-01-18T13:02:28 Add to TESTS variable, for mingw32.
Simon Josefsson 148d38eb 2006-01-18T08:52:56 * modules/socklen (Depends-on): Depend on sys_socket.
Bruno Haible 947ae067 2006-01-17T19:07:56 Need to include <sys/types.h> in order to get ssize_t on most systems.
Simon Josefsson 6df3877a 2006-01-17T17:22:37 * modules/socklen (Include): Need sys/socket.h.
Bruno Haible 1f695719 2006-01-12T13:04:57 New module 'ldd'.
Paul Eggert 929af186 2006-01-10T22:02:14 * modules/readutmp (Maintainer): Add Paul Eggert. * modules/strtok_r: Depend on module restrict. * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE. Use a module dependency instead.
Bruno Haible 6a346100 2006-01-10T18:07:16 Depend on 'free' module.
Simon Josefsson b8dff30e 2006-01-10T14:28:52 Add sys_socket module.
Bruno Haible 3a6c1c38 2006-01-10T13:35:24 Avoid a failure from autoreconf.
Paul Eggert 14bf04a5 2006-01-09T23:13:56 Sync from coreutils. * doc/getdate.texi (General date syntax): Invalid dates are rejected. (Time of day items): Mention the possibility of leap seconds. Problem reported by Dr. David Alan Gilbert. * lib/chdir-long.c (cdb_free): Don't bother trying to open directory for write access: POSIX says that must fail. * lib/fts.c (diropen): Likewise. * lib/save-cwd.c (save_cwd): Likewise. * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as well, for minor improvements on hosts that lack O_DIRECTORY. * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]: Report an error at compile-time if only a 1-second nominal clock resolution is found. * lib/lchmod.h: New file. * lib/mkdir-p.c: Include lchmod.h, lchown.h. (make_dir_parents): Use lchown rather than chown, and lchmod rather than chmod. * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are dummies too. Problem with "none" reported by Bob Proulx. Problem with "proc" reported by n0dalus. * lib/mountlist.c: Include <limits.h>. (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. * lib/posixtm.h (PDS_PRE_2000): New macro. * lib/posixtm.c (year): Arg is now syntax_bits rather than allow_century. All usages changed. Reject dates outside the range 1969-1999 if PDS_PRE_2000 is used. * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h, chdir-safer.m4, lchmod.m4. * modules/openat: Add mkdirat.c, openat-priv.h. * modules/lib-ignore: New file. * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006. Rewrite fts.c not to change the current working directory, by using openat, fstatat, fdopendir, etc.. * lib/fts.c [! _LIBC]: Include "openat.h", "unistd--.h", and "fcntl--.h". [_LIBC] (fchdir): Don't undef or define; no longer used. (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir. Now, this `function' always succeeds, and consumes its file descriptor parameter -- so callers must not close such FDs. Update callers. (diropen_fd, opendirat, cwd_advance_fd): New functions. (diropen): Add parameter, SP. Adjust all callers. Implement using diropen_fd, rather than open. (fts_open): Initialize new member, fts_cwd_fd. Remove fts_rft-setting code. (fts_close): Close fts_cwd_fd, if necessary. (__opendir2): Define in terms of opendir or opendirat, depending on whether the FST_NOCHDIR flag is set. (fts_build): Since fts_safe_changedir consumes its FD, and since this code must do `closedir(dirp)', dup the dirfd(dirp) argument, and close the dup'd file descriptor upon failure. (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat. (fts_safe_changedir): Tweak semantics to reflect that this function now calls cwd_advance_fd and hence consumes its FD argument. * lib/fts_.h [struct FTS] (fts_cwd_fd): New member. (fts_rft): Remove now-unused member. * lib/openat.c (fchownat): New function. * lib/openat.h (fchmodat, fchownat): Declare. (chmodat, lchmodat): Define convenience functions. (chownat, lchownat): Likewise. * lib/chdir-safer.h, chdir-safer.c: New files. * lib/modechange.c (mode_compile): Reject an invalid mode string that starts with an octal digit. From Andreas Gruenbacher. * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open and dup to open_safer and dup_safer, respectively. (openat_permissive): Fix typo in comment. * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>, "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. * lib/openat.h: Revamp code so that function macros depend on __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. * lib/openat-priv.h: New file, defining macros used by mkdirat.c and openat.c. * lib/mkdirat.c: Include openat-priv.h. Remove definitions of macros defined therein. * lib/openat.c: Likewise. * lib/mkdirat.c (mkdirat): New file and function. * lib/openat.h (mkdirat): Declare. * lib/openat.c (fdopendir): Don't change errno when returning non-NULL. * lib/openat.h (openat_permissive): Declare. (openat_ro): Define. * lib/openat.c (EXPECTED_ERRNO): New macro. (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. Emulate openat-family functions using Linux's procfs, if possible. Idea and some code based on Ulrich Drepper's glibc changes. * lib/openat.c: (BUILD_PROC_NAME): New macro. Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h". (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s, before falling back on save_cwd and restore_cwd. (fdopendir, fstatat, unlinkat): Likewise. * lib/openat.c (fstatat, unlinkat): Perform the syscall directly, skipping the save_cwd...restore_cwd overhead, if FILE is absolute. * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t, as second argument to va_arg. Otherwise, some versions of gcc warn that `if this code is reached, the program will abort'. Add POSIX ACL support * lib/acl.h (copy_acl, set_acl): Add declarations. * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL 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. * m4/lib-ignore.m4: New file. * m4/lchmod.m4: New file. * m4/chdir-safer.m4: New file. * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c. Require openat-priv.h. * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
Bruno Haible c637d03c 2006-01-09T21:40:18 Recommend to use strnlen.h.
Simon Josefsson 6be5a9a7 2006-01-09T14:22:01 Make inet_ntop depend on restrict.
Simon Josefsson 549f2f18 2006-01-09T14:10:09 LGPL self tests, suggested by Bruno.
Bruno Haible f01f97db 2006-01-09T13:54:59 Move the *.sh.in scripts to build-aux/.
Jim Meyering b86c766f 2005-12-16T15:04:59 New module.
Simon Josefsson eb506356 2005-12-15T09:13:08 Fix socklen module.
Sergey Poznyakoff 0b638ecf 2005-12-09T12:31:34 (Files): Add argp-pin.c (Depends-on): dirname (lib_SOURCES): Add argp-pin.c
Bruno Haible 7213602d 2005-12-02T17:55:34 Depend on javacomp-script.
Bruno Haible 816163dd 2005-12-02T17:55:22 Depend on csharpcomp-script.
Bruno Haible 43a123cb 2005-12-02T13:36:59 Build tool portion of csharpcomp.
Bruno Haible cddbeafc 2005-12-02T13:36:42 Build tool portion of javacomp module.
Paul Eggert 0e54d613 2005-11-29T18:47:35 * modules/savedir (Depends-on): Add openat. * lib/savedir.h (fdsavedir): New decl. * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter contains most of the former guts of savedir. (savedir): Use savedirstream. Include "openat.h".
Paul Eggert 9651a2cc 2005-11-26T04:25:15 * modules/obstack (Files): Add m4/ulonglong.m4.
Paul Eggert 6512f0a4 2005-11-10T20:19:37 * modules/gethrxtime (Depends-on): Add gettime. * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time / time business. (gethrxtime) [! (HAVE_NANOUPTIME || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME) || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling our own approximation. * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME or gettimeofday; no longer needed.
Simon Josefsson c5d8261e 2005-10-28T12:09:31 Add MD2 and hash fixes.
Paul Eggert bff9be21 2005-10-27T17:46:54 * modules/verify (License): Change from GPL to LGPL. This is a tiny module and there are apparently near-equivalents that are under the BSD license.
Simon Josefsson d87348d5 2005-10-24T11:49:43 Relicense sha1 to LGPL.
Simon Josefsson a0326dc6 2005-10-22T16:45:57 Fix arcfour module.
Simon Josefsson 8d4cf5e2 2005-10-21T13:14:34 * gnulib-tool: Define automake conditional GL_COND_LIBTOOL if libtool is used (to be used by modules Makefile.am snippet), suggested by Bruno Haible <bruno@clisp.org>. * modules/gc (Makefile.am): Use it.
Simon Josefsson 6a58cb3f 2005-10-21T12:28:18 Add des, des-tests, gc-des, gc-des-tests modules.
Simon Josefsson 853ca59f 2005-10-21T12:03:17 Add arctwo, arctwo-tests, gc-arctwo, gc-arctwo-tests modules.
Simon Josefsson c4f00b7d 2005-10-19T15:40:26 Add gc-arcfour and gc-arcfour-tests modules.
Simon Josefsson 76990ea3 2005-10-19T14:54:32 Add gc-rijndael and gc-rijndael-tests modules.
Simon Josefsson eecf6279 2005-10-18T23:35:50 Add gc-md4 and gc-md4-tests modules.
Simon Josefsson 82c1692f 2005-10-18T22:59:17 Add md4 module.
Simon Josefsson bc6749e1 2005-10-18T14:10:27 Add md5-tests module.
Simon Josefsson d0b7edd0 2005-10-17T14:48:31 Add gc-sha1-tests module.
Simon Josefsson 8523c738 2005-10-17T12:55:00 Separate sha1 from md5. Use stdint.h in both modules.
Simon Josefsson b1d63f6a 2005-10-15T18:21:58 Add rijndael module.
Simon Josefsson 13083d5c 2005-10-15T18:19:44 Add arcfour module.
Paul Eggert b9e4e1bf 2005-10-14T00:59:45 * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
Simon Josefsson f6d39688 2005-10-13T08:12:04 2005-10-13 Simon Josefsson <jas@extundo.com> * modules/gc-hmac-md5-tests: New file. * tests/test-gc-hmac-sha1.c: New file.
Simon Josefsson d81362ec 2005-10-13T08:06:07 2005-10-13 Simon Josefsson <jas@extundo.com> * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests. * modules/gc-hmac-md5-tests: New file. * tests/test-gc-md5.c: New file. * modules/gc-md5-tests: New file.
Simon Josefsson 9045e5f8 2005-10-12T13:13:29 Add gc-pbkdf2-sha1 module.
Simon Josefsson 289769e8 2005-10-12T13:05:44 Fix typo.
Simon Josefsson 3ebed7b6 2005-10-12T09:28:48 Add gc-hmac-sha1.
Simon Josefsson ea3ee2b5 2005-10-12T01:42:54 Add gc-sha1 module.
Simon Josefsson 9a2b952a 2005-10-12T01:33:44 Add hmac-sha1 module.
Simon Josefsson bb504c0f 2005-10-12T01:09:32 Split parts of the gc module into gc-md5 and gc-hmac-md5 modules.
Bruno Haible c62f7618 2005-10-11T18:50:36 New module 'c-strcasestr'.
Bruno Haible 89e15da6 2005-10-11T18:48:53 New module 'c-strcase'.
Simon Josefsson 563da075 2005-10-11T18:25:51 Add crc module.
Paul Eggert 3eef4232 2005-10-11T06:53:48 * modules/mempcpy (License): GPL -> LGPL. * modules/strchrnul (License): Likewise. * modules/sysexits (License): Likewise.
Simon Josefsson 5a01cacc 2005-10-08T08:33:07 Add generic crypto module.
Simon Josefsson f6800ee0 2005-10-06T15:58:26 Add hmac-md5 module.
Bruno Haible 8dc4be82 2005-10-05T16:15:35 Relicense under LGPL.
Simon Josefsson 8ee4abda 2005-10-05T13:29:53 Add memxor.
Simon Josefsson 72a09f7c 2005-10-05T13:21:37 * modules/iconv (Files): Move config.rpath to havelib, it is used there. * modules/havelib (Files): Add config.rpath.
Paul Eggert b15acb39 2005-10-03T04:28:00 (Makefile.am): Remove lib_SOURCES.
Paul Eggert 52116d15 2005-10-02T22:44:15 * modules/exclude (Depends-on): Depend on verify. * modules/strtoimax (Depends-on): Likewise. * modules/utimecmp (Depends-on): Likewise. * lib/exclude.c: Include verify.h. (verify): Remove. All callers changed to use verify.h's version. * lib/strtoimax.c: Likewise. * lib/utimecmp.c: Likewis.e
Paul Eggert de205206 2005-09-27T22:25:55 (Depends-on): Add strcase.
Paul Eggert 700f01ab 2005-09-27T21:37:06 * modules/gethostname (Licence): Change from GPL to LGPL, since gethostname.c is a trivial implementation of a standard library function. * modules/poll (License): Change from GPL to LGPL, since it's derived from LGPL code.
Bruno Haible be4b03ff 2005-09-26T13:58:51 Deal with the fact that mbchar.h, mbfile.h, mbiter.h, mbuiter.h can only be #included conditionally.
Jim Meyering 782db259 2005-09-25T08:17:38 (Depends-on): Add socklen, since inet_ntop.c also uses socklen_t.
Jim Meyering dabcd619 2005-09-23T15:48:18 (Depends-on): Add socklen.
Paul Eggert 7c3f8da8 2005-09-23T04:15:13 Sync from coreutils. * .cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h, stat-time.h. * argmatch.h: Include verify.h (ARGMATCH_VERIFY): Use verify rather than rolling our own. (ARGMATCH_ASSERT): Remove; unused. * canonicalize.c: Assume STDC_HEADERS. * exclude.c: Include "strcase.h". * regex_internal.h [!defined _LIBC]: Likewise. * getusershell.c: Include stdio--.h rather than stdio.h and stdio-safer.h. (getusershell): Call fopen, not fopen_safer. * save-cwd.c: Include fcntl--.h rather than fcntl.h. Do not include unistd-safer.h. (save_cwd): Don't call fd_safer; no longer needed now that we include fcntl--.h. * modules/argmatch (Depends-on): Add verify. * modules/getloadavg (Depends-on): Depend on fcntl-safer, not unistd-safer. * modules/save-cwd (Depends-on): Likewise. * backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4: * fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4: * getugroups.m4, group-member.m4, idcache.m4, link-follow.m4: * mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4: * physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4: * save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4: * userspec.m4, xgetcwd.m4, xreadlink.m4: Don't bother checking for string.h, stdlib.h, unistd.h. * fts.m4 (gl_FUNC_FTS_CORE): Don't require AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat module's job. * jm-macros.m4 (gl_MACROS): Likewise. * prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT. * backupfile.c: Use ARGMATCH_VERIFY, just in case. * posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just the .tm_year member, since otherwise gcc-4.0 would now warn about tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday. * quotearg.c (quotearg_n_options): Change code to be suboptimal, in order to avoid an unsuppressible warning from gcc on 64-bit systems. * lstat.m4 (gl_FUNC_LSTAT): Use AC_LIBSOURCES to require lstat.c and lstat.h. Remove obsolete comment. * xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ. * xstrtod.m4: Likewise.
Paul Eggert 357e1c26 2005-09-22T23:30:37 * modules/openat (Files): Add lib/openat-die.c. (Depends-on): Remove error, exitfail. Add dirname. * lib/openat.c (fdopendir): Be sure to close the supplied 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. * lib/openat.c (unlinkat): New function. * lib/openat.h (unlinkat): Add prototype. * lib/openat-die.c (openat_save_fail): Rename from openat_save_die. (openat_restore_fail): Rename from openat_restore_die. * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming. Provide an alternative to exiting immediately upon save_cwd or restore_cwd failure. Now, an application can arrange e.g., to perform a longjump in that case. * lib/openat.c: Include dirname.h. Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash. (rpl_openat, fdopendir, fstatat): Call openat_save_die and openat_restore_die rather than calling error directly. Don't include "error.h" or "exitfail.h"; they're no longer needed. * lib/openat-die.c (openat_save_die, openat_restore_die): New file. * lib/openat.h (openat_save_die, openat_restore_die): Declare and define. * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
Paul Eggert ad97909a 2005-09-22T22:56:28 * modules/verify: New file. * lib/verify.h: New file. * MODULES.html.sh (Diagnostics <assert.h>): New section, with "verify" module.
Jim Meyering 1b5a0c6a 2005-09-19T17:44:46 (License): Change to LGPL.