coreutils/lib
Jim Meyering 521f5344c8 (FILESYSTEM_PREFIX_LEN, ISSLASH): Remove; now in dirname.h.
Include <string.h> instead of <stdlib.h>.
Do not include <assert.h>; no longer needed.
Include xalloc.h.
(memrchr): Remove decl.
(dir_name_r): Remove.
(dir_len): Renamed from dirlen.  All callers changed.
Rewrite in terms of base_name, for simplicity and consistency.
(dir_name): Never return NULL.  All callers changed.
Do not include <stdlib.h> in test program; no longer needed.
return 0; is fine for test program.
2001-05-12 15:38:00 +00:00
..
__fpending.c *** empty log message *** 2000-08-26 12:04:46 +00:00
__fpending.h declare __fpending only if necessary 2000-08-28 14:55:18 +00:00
.cppi-disable *** empty log message *** 2000-11-03 08:44:12 +00:00
.cvsignore *** empty log message *** 2000-03-22 21:46:50 +00:00
.gdb-history . 2000-10-22 13:03:06 +00:00
addext.c (ISSLASH, base_name): Remove; now in dirname.h. 2001-05-12 14:13:36 +00:00
alloca.c (malloc): Undef before defining, since stdlib.h may have defined it. 2001-02-16 19:28:43 +00:00
argmatch.c back out Copyright date changes for files with no changes year 2000-08-07 15:48:18 +00:00
argmatch.h back out Copyright date changes for files with no changes year 2000-08-07 15:48:18 +00:00
atexit.c remove ifdef 2000-05-06 14:33:46 +00:00
backupfile.c (base_name): Remove; now in dirname.h. 2001-05-12 14:20:43 +00:00
backupfile.h back out Copyright date changes for files with no changes year 2000-08-07 15:48:18 +00:00
basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Remove; now in dirname.h. 2001-05-12 14:23:49 +00:00
bcopy.c Initial revision 1992-11-08 02:50:43 +00:00
bumpalloc.h comment fix 2000-08-07 17:03:20 +00:00
canon-host.c (canon_host): Use malloc and memcpy to copy an 2000-06-21 13:00:49 +00:00
ChangeLog *** empty log message *** 2001-04-08 20:00:14 +00:00
chown.c back out Copyright date changes for files with no changes year 2000-08-07 15:48:18 +00:00
closeout.c Include "__fpending.h". 2000-08-26 12:05:50 +00:00
closeout.h Make idempotent, to avoid some obscure warnings. 2000-12-02 20:45:30 +00:00
config.charset (BeOS): Use wildcard syntax. 2001-03-15 14:50:16 +00:00
diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS. 2000-07-29 17:06:00 +00:00
diacrit.h back out Copyright date changes for files with no changes year 2000-08-07 15:48:18 +00:00
dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Remove; now in dirname.h. 2001-05-12 15:38:00 +00:00
dirname.h (dir_name_r): Remove prototype. 2000-12-07 11:50:35 +00:00
dup2.c back out Copyright date changes for files with no changes year 2000-08-07 15:48:18 +00:00
dup-safer.c from Paul Eggert 2001-03-03 19:05:36 +00:00
error.c Add a couple #includes, merging from GNU libc version. 2000-11-11 14:32:00 +00:00
error.h Remove "2000" from Copyright line, as the file hasn't been 2000-10-31 07:09:02 +00:00
euidaccess.c Sync with the GNU C library. 2000-01-07 14:29:26 +00:00
exclude.c Sync to the slightly more general version of GNU tar. 2000-01-12 06:37:30 +00:00
exclude.h back out Copyright date changes for files with no changes year 2000-08-07 15:48:18 +00:00
fatal.c . 2000-04-30 16:25:54 +00:00
fatal.h *** empty log message *** 2000-04-30 16:25:24 +00:00
fileblocks.c back out Copyright date changes for files with no changes year 2000-08-07 15:48:18 +00:00
filemode.c Use C' to denote so-called contiguous' files, the same way that tar does. 2000-04-15 21:54:46 +00:00
filemode.h <config.h>, <sys/types.h>: Include for mode_t. 1999-04-26 13:13:36 +00:00
fnmatch.c cppi 2000-11-03 08:44:06 +00:00
fnmatch.h back out Copyright date changes for files with no changes year 2000-08-07 15:48:18 +00:00
fopen-safer.c from Paul Eggert 2001-03-03 19:05:36 +00:00
fsusage.c back out Copyright date changes for files with no changes year 2000-08-07 15:48:18 +00:00
fsusage.h back out Copyright date changes for files with no changes year 2000-08-07 15:48:18 +00:00
ftruncate.c ansideclify 1998-12-07 03:12:10 +00:00
full-write.c (full_write): Remove `FIXME' part of comment. 2000-05-01 14:40:08 +00:00
getdate.h back out Copyright date changes for files with no changes year 2000-08-07 15:48:18 +00:00
getdate.y that's necessary when the offset spans a DST transition. 2001-04-08 19:58:59 +00:00
getgroups.c back out Copyright date changes for files with no changes year 2000-08-07 15:48:18 +00:00
gethostname.c back out Copyright date changes for files with no changes year 2000-08-07 15:48:18 +00:00
getline.c include getstr.h 2000-06-21 09:56:42 +00:00
getline.h Remove "2000" from Copyright line, as the file hasn't been 2000-10-31 07:09:02 +00:00
getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define. 2000-06-19 07:25:01 +00:00
getopt1.c Update from libc. 2000-10-28 07:56:12 +00:00
getopt.c Update from libc. 2000-10-17 06:45:49 +00:00
getopt.h back out Copyright date changes for files with no changes year 2000-08-07 15:48:18 +00:00
getpagesize.h add comment 2000-04-18 13:41:26 +00:00
getpass.c ansideclify 2000-06-21 20:21:03 +00:00
getstr.c New file, extracted from getline.c, with the following 2000-06-21 09:09:22 +00:00
getstr.h *** empty log message *** 2000-06-21 09:09:57 +00:00
getugroups.c (getugroups): Cast -1 to gid_t, for systems like 2000-06-04 06:47:31 +00:00
getusershell.c [!SHELLS_FILE && __DJGPP__]: Define 2000-12-16 22:25:44 +00:00
getversion.c update copyright date 2000-07-09 07:22:43 +00:00
group-member.c back out Copyright date changes for files with no changes year 2000-08-07 15:48:18 +00:00
group-member.h define PARAMS 1997-12-28 09:48:26 +00:00
hard-locale.c (hard_locale): Revert last change -- it was simply 2000-10-24 08:20:13 +00:00
hard-locale.h . 1999-07-04 10:38:37 +00:00
hash.c whoops. revert last change 2001-01-20 09:36:19 +00:00
hash.h back out Copyright date changes for files with no changes year 2000-08-07 15:48:18 +00:00
human.c (adjust_value): New function. 2000-06-16 12:51:28 +00:00
human.h (enum human_inexact_style): New enum. 1999-07-04 08:47:49 +00:00
idcache.c *** empty log message *** 1998-12-19 17:21:00 +00:00
isdir.c back out Copyright date changes for files with no changes year 2000-08-07 15:48:18 +00:00
lchown.c back out Copyright date changes for files with no changes year 2000-08-07 15:48:18 +00:00
lchown.h (ENOSYS): Don't use ENOMSG; it's not in NeXTStep3.3. 1999-09-05 06:56:50 +00:00
linebuffer.c back out Copyright date changes for files with no changes year 2000-08-07 15:48:18 +00:00
linebuffer.h back out Copyright date changes for files with no changes year 2000-08-07 15:48:18 +00:00
localcharset.c (locale_charset): Allow wildcard syntax. Also resolve 2001-03-15 14:49:56 +00:00
long-options.c Include <stdlib.h>, for declaration of exit. 2000-06-29 11:24:09 +00:00
long-options.h back out Copyright date changes for files with no changes year 2000-08-07 15:48:18 +00:00
Makefile.am (libfetish_a_SOURCES): Add dup-safer.c, fopen-safer.c. 2001-03-03 19:06:54 +00:00
Makefile.in . 2001-05-12 10:04:13 +00:00
makepath.c Include dirname.h. 2001-05-12 10:05:15 +00:00
makepath.h (make_dir): Declare. 2000-11-05 15:04:39 +00:00
malloc.c back out Copyright date changes for files with no changes year 2000-08-07 15:48:18 +00:00
mbswidth.c (mbrtowc, mbsinit): 2001-02-17 10:39:17 +00:00
mbswidth.h (mbswidth): Also define as macro, to avoid prototype clash. 2001-02-17 12:43:57 +00:00
md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC. 2000-10-22 21:09:43 +00:00
md5.h remove useless parens 2000-11-27 09:33:53 +00:00
memcasecmp.c Use #if' instead of #ifdef' for `HAVE_CONFIG_H'. 2000-01-07 06:59:36 +00:00
memcasecmp.h Make PARAMS-defining conditionals consistent. 1998-01-16 08:51:39 +00:00
memchr.c Update from libc. 2000-10-28 08:22:11 +00:00
memcmp.c Update from libc. 2000-10-28 08:24:44 +00:00
memcoll.c Include sys/types.h. From Werner Almesberger. 2000-11-26 16:52:29 +00:00
memcoll.h . 1999-07-04 10:38:37 +00:00
memcpy.c (memcpy): Protoize. 2000-01-11 14:05:28 +00:00
memmove.c libitize 1996-10-17 03:05:09 +00:00
memrchr.c Include <config.h> before any system include file. 2000-12-02 09:58:31 +00:00
memset.c back out Copyright date changes for files with no changes year 2000-08-07 15:48:18 +00:00
mkstemp.c from GNU libc 2001-03-02 03:12:47 +00:00
mktime.c back out Copyright date changes for files with no changes year 2000-08-07 15:48:18 +00:00
modechange.c normalize spelling in comment 2001-01-07 09:20:47 +00:00
modechange.h back out Copyright date changes for files with no changes year 2000-08-07 15:48:18 +00:00
mountlist.c Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV, 2000-07-01 13:35:28 +00:00
mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored fs_type strings. 2000-06-02 11:20:30 +00:00
nanosleep.c (SIGCONT): Define if not already defined. 2000-07-02 18:23:51 +00:00
nanosleep.h Don't include config.h. 2000-02-10 09:38:31 +00:00
obstack.c Update from GNU libc. 2000-11-10 11:13:32 +00:00
obstack.h tweak a comment 2000-11-18 09:53:33 +00:00
path-concat.c (path_concat) [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: 2001-03-13 15:57:15 +00:00
path-concat.h Use PARAMS, not __P. 1997-12-21 11:22:51 +00:00
pathmax.h back out Copyright date changes for files with no changes year 2000-08-07 15:48:18 +00:00
physmem.c *** empty log message *** 2000-12-19 08:22:18 +00:00
physmem.h *** empty log message *** 2000-12-19 08:22:18 +00:00
posixtm.c [HAVE_STDLIB_H]: Include stdlib.h. 2000-06-26 10:55:18 +00:00
posixtm.h (PARAMS): Define and use. 1998-09-17 13:48:20 +00:00
putenv.c Move inclusion of errno.h so it follows that of sys/types.h, 2000-04-07 09:24:18 +00:00
quote.c Include stddef.h. 2001-01-26 11:15:37 +00:00
quote.h [PARAMS]: Define and use. 2000-10-17 08:45:07 +00:00
quotearg.c (mbrtowc, mbsinit): 2001-02-17 10:39:43 +00:00
quotearg.h (enum quoting style): New enum clocale_quoting_style. 2000-07-14 11:27:00 +00:00
README *** empty log message *** 2000-04-18 17:28:34 +00:00
readtokens.c (readtoken, readtokens): Protoize. 1999-04-11 13:25:52 +00:00
readtokens.h indent cpp-directives 1996-07-15 03:56:06 +00:00
readutmp.c Include sys/types.h before sys/stat.h. 2000-04-05 15:00:11 +00:00
readutmp.h [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H. 2000-07-04 08:44:28 +00:00
realloc.c back out Copyright date changes for files with no changes year 2000-08-07 15:48:18 +00:00
ref-add.sin renamed from ref-add.sed.in 2000-04-04 12:50:44 +00:00
ref-del.sin renamed from ref-del.sed.in 2000-04-04 12:50:59 +00:00
regex.c Update from GNU libc. 2001-04-02 08:31:28 +00:00
regex.h Update from GNU libc. 2001-04-02 08:31:28 +00:00
rename.c Include dirname.h. 2001-05-12 10:05:42 +00:00
rmdir.c back out Copyright date changes for files with no changes year 2000-08-07 15:48:18 +00:00
rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to avoid 2000-04-28 16:49:38 +00:00
safe-read.c back out Copyright date changes for files with no changes year 2000-08-07 15:48:18 +00:00
safe-read.h Update prototype. 1998-07-16 23:02:19 +00:00
same.c (same_name): Invoke xalloc_die instead of printing our own message. 2000-08-07 16:55:57 +00:00
same.h add copyright/no-warranty comment 2000-01-07 07:33:19 +00:00
save-cwd.c (O_DIRECTORY): Define, if needed. 2000-10-22 06:57:42 +00:00
save-cwd.h Guard PARAMS-enabling definition with 1998-01-03 11:56:09 +00:00
savedir.c savedir now sets errno on failure and invokes xmalloc to get memory. 2000-06-27 07:08:48 +00:00
savedir.h update prototype 1999-08-08 10:12:55 +00:00
setenv.c update copyright date 2000-07-09 07:22:43 +00:00
setenv.h indent cpp-directives 1996-07-15 03:56:06 +00:00
sha.c Give credit (GnuPG) where due. 2000-09-24 23:59:39 +00:00
sha.h *** empty log message *** 2000-09-20 08:06:06 +00:00
stdio-safer.h from Paul Eggert 2001-03-03 19:05:36 +00:00
stime.c back out Copyright date changes for files with no changes year 2000-08-07 15:48:18 +00:00
stpcpy.c back out Copyright date changes for files with no changes year 2000-08-07 15:48:18 +00:00
strcasecmp.c back out Copyright date changes for files with no changes year 2000-08-07 15:48:18 +00:00
strcspn.c back out Copyright date changes for files with no changes year 2000-08-07 15:48:18 +00:00
strdup.c back out Copyright date changes for files with no changes year 2000-08-07 15:48:18 +00:00
strftime.c update comments from libc 2001-02-17 16:50:27 +00:00
stripslash.c convert a > expression to the equivalent < one 2000-12-07 14:13:51 +00:00
strncasecmp.c *** empty log message *** 1999-01-02 15:55:44 +00:00
strndup.c [!HAVE_DECL_STRNLEN]: Declare strnlen. 2000-07-04 17:37:43 +00:00
strnlen.c (__strnlen): Merge in a change from GNU libc. 2001-02-17 16:53:33 +00:00
strpbrk.c (strpbrk): Ansideclify. 2000-01-07 07:01:45 +00:00
strstr.c Update from GNU libc. 2000-11-17 08:19:01 +00:00
strtod.c back out Copyright date changes for files with no changes year 2000-08-07 15:48:18 +00:00
strtol.c back out Copyright date changes for files with no changes year 2000-08-07 15:48:18 +00:00
strtoul.c Sync from GNU libc. Use double quotes, not <...> 2001-02-17 16:56:20 +00:00
strtoull.c back out Copyright date changes for files with no changes year 2000-08-07 15:48:18 +00:00
strtoumax.c back out Copyright date changes for files with no changes year 2000-08-07 15:48:18 +00:00
strverscmp.c Incorporate weak-alias-related changes from glibc. 2000-11-16 10:15:54 +00:00
strverscmp.h Use PARAMS, not __P. 1997-12-21 11:22:51 +00:00
tempname.c (uint64_t): Define to uintmax_t if 2001-03-16 12:02:22 +00:00
TODO . 1998-05-04 00:28:35 +00:00
unicodeio.c (print_unicode_char): Simplify accordingly. 2001-03-06 18:11:01 +00:00
unicodeio.h (PARAMS): Define. 2000-03-05 10:21:58 +00:00
unistd-safer.h from Paul Eggert 2001-03-03 19:05:36 +00:00
userspec.c This bug had a serious impact on chown: `chown N:M FILE' (for integer 2000-12-16 13:28:13 +00:00
utime.c back out Copyright date changes for files with no changes year 2000-08-07 15:48:18 +00:00
version-etc.c (version_etc_copyright): Update to 2001. 2001-03-19 11:52:29 +00:00
version-etc.h back out Copyright date changes for files with no changes year 2000-08-07 15:48:18 +00:00
xalloc.h Add "2000" to Copyright line, as this file was changed this year. 2000-10-31 07:09:56 +00:00
xgetcwd.c (xgetcwd): If the required pathname length is smaller 2000-06-21 20:16:03 +00:00
xgethostname.c (ENAMETOOLONG): Define to an unlikely value if not defined. 2000-07-09 07:26:34 +00:00
xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking 2001-01-26 11:13:28 +00:00
xstat.in Fix grammar in comment. 2000-10-29 11:03:01 +00:00
xstrdup.c back out Copyright date changes for files with no changes year 2000-08-07 15:48:18 +00:00
xstrtod.c Add #pragma STDC FENV_ACCESS ON if C99. 2000-01-06 21:01:06 +00:00
xstrtod.h Make PARAMS-defining conditionals consistent. 1998-01-16 08:51:39 +00:00
xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and 2000-12-19 08:35:20 +00:00
xstrtol.h (__xstrtol, __strtol, __unsigned): Remove macro decls. 1999-04-18 23:16:23 +00:00
xstrtoul.c (STRING_TO_UNSIGNED): Remove. 1999-04-18 23:15:02 +00:00
xstrtoumax.c back out Copyright date changes for files with no changes year 2000-08-07 15:48:18 +00:00
yesno.c back out Copyright date changes for files with no changes year 2000-08-07 15:48:18 +00:00

The files in this directory are shared between the fileutils, sh-utils,
and textutils packages.  Not all files are used by each package.
The autoconf tests required for these files are in ../m4.

The library name, fetish, is a permutation of the first two
letters of each of the package names: FIleutils, TExtutils, SH-utils.