lib/getusershell.c


Log

Author Commit Date CI Message
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 267a39ba 2005-05-14T06:03:57 *** empty log message ***
Paul Eggert 8b03458e 2005-05-02T07:00:50 Merge from coreutils.
Paul Eggert 917752ad 2004-10-04T20:17:39 Remove dependencies on unlocked-io.
Paul Eggert 0c0be7e5 2003-10-30T00:36:03 Simplify the code by using new xalloc.h features.
Paul Eggert 15d3d56a 2003-09-09T19:26:25 (readname, default_index, line_size, readname): Use size_t, not int, for sizes. (readname): If the size overflows, report an error instead of looping forever.
Paul Eggert 0a7a9905 2003-09-09T19:23:55 Remove K&R cruft.
Paul Eggert 4e12d425 2003-08-14T22:04:35 (readname): Remove casts no longer required in C89.
Jim Meyering 92f1833a 2001-11-17T13:29:42 Include unlocked-io.h.
Jim Meyering c53667dc 2000-12-16T22:25:44 [!SHELLS_FILE && __DJGPP__]: Define SHELLS_FILE to a file name that's useful on djgpp systems. Include stdlib.h. (ADDITIONAL_DEFAULT_SHELLS): Define. (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS. Based mostly on a patch from Prashant TR.
Jim Meyering 3e391882 2000-11-07T15:35:15 (setusershell): Use rewind rather than fseek/fseeko, to avoid configuration hassles with fseeko. Don't bother opening SHELLS_FILE if shellstream is NULL; it's not necessary.
Jim Meyering 985743b6 2000-10-28T07:47:04 (setusershell) [HAVE_FSEEKO]: Use fseek0. Patch by Ulrich Drepper.
Jim Meyering c81ef04f 2000-06-25T21:17:32 (xmalloc, xrealloc): Remove functions. Include xalloc.h. Don't include <stdlib.h>. Don't declare malloc, realloc.
Jim Meyering 89f0bcab 1997-09-21T13:15:48 (IN_CTYPE_DOMAIN): Define. (ISSPACE): Define. (readname): Use ISSPACE, not isspace.
Jim Meyering ebbec490 1996-11-24T03:04:12 remove trailing blanks
Jim Meyering 783c1624 1996-07-15T03:56:06 indent cpp-directives
Jim Meyering 5d08444e 1996-07-15T03:43:36 update FSF address in copyright
Jim Meyering 8f16c54c 1994-09-27T20:52:18 merge with 1.10n1
Jim Meyering 86464e34 1993-10-24T21:30:11 merge with 1.8.1h
Jim Meyering 10074829 1993-10-12T14:49:15 merge with 1.8.1d
Jim Meyering 29e59276 1992-11-12T04:13:46 Make tables static and const when possible. getdate.c (getdate_yyerr, getdate_yylex): Declare these functions static.
Jim Meyering 43e78b97 1992-11-01T05:44:30 Initial revision