summaryrefslogtreecommitdiff
path: root/lib/getusershell.c
AgeCommit message (Collapse)Author
2005-04-11Include stdio-safer.h.Paul Eggert
(getusershell): Use fopen_safer.
2004-10-04Sync from gnulib, to remove dependencies of other modules on unlocked-io.Paul Eggert
2004-04-04Sync from gnulib.Jim Meyering
2003-09-10Include <stdlib.h> unconditionally.Jim Meyering
(getusershell, setusershell, endusershell, readname, main): Define with prototypes. (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.
2003-04-11Remove anachronistic casts of xmalloc, xrealloc, and xcalloc return values.Jim Meyering
2001-11-17Include unlocked-io.h.Jim Meyering
2000-12-16[!SHELLS_FILE && __DJGPP__]: DefineJim Meyering
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.
2000-11-07(setusershell): Use rewind rather thanJim Meyering
fseek/fseeko, to avoid configuration hassles with fseeko. Don't bother opening SHELLS_FILE if shellstream is NULL; it's not necessary.
2000-10-28(setusershell) [HAVE_FSEEKO]: Use fseek0.Jim Meyering
Patch by Ulrich Drepper.
2000-06-25(xmalloc, xrealloc): Remove functions.Jim Meyering
Include xalloc.h. Don't include <stdlib.h>. Don't declare malloc, realloc.
1997-09-21(IN_CTYPE_DOMAIN): Define.Jim Meyering
(ISSPACE): Define. (readname): Use ISSPACE, not isspace.
1996-11-24remove trailing blanksJim Meyering
1996-07-15indent cpp-directivesJim Meyering
1996-07-15update FSF address in copyrightJim Meyering
1994-09-27merge with 1.10n1Jim Meyering
1993-10-24merge with 1.8.1hJim Meyering
1993-10-12merge with 1.8.1dJim Meyering
1992-11-12Make tables static and const when possible.Jim Meyering
getdate.c (getdate_yyerr, getdate_yylex): Declare these functions static.
1992-11-01Initial revisionJim Meyering