diff options
author | Jim Meyering <jim@meyering.net> | 1995-02-11 13:53:39 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 1995-02-11 13:53:39 +0000 |
commit | b743f8afc31d1dcf51ad741ea0b37cadd5f5d0e9 (patch) | |
tree | f4f3af3ad5a11ea0f595f9df0a9be661ad434405 /src | |
parent | f299c4e0f6e0c55c71522df0cac70bee5e3d4fb4 (diff) | |
download | coreutils-b743f8afc31d1dcf51ad741ea0b37cadd5f5d0e9.tar.xz |
Remove index/rindex and bcmp/bcopy/bzero references.
Separate errno declaration from STDC_HEADERS.
Diffstat (limited to 'src')
-rw-r--r-- | src/system.h | 21 |
1 files changed, 8 insertions, 13 deletions
diff --git a/src/system.h b/src/system.h index 5e49683c2..f67bbf014 100644 --- a/src/system.h +++ b/src/system.h @@ -149,32 +149,27 @@ struct utimbuf }; #endif +/* Don't use bcopy! Use memmove if source and destination may overlap, + memcpy otherwise. */ + #ifdef HAVE_STRING_H # include <string.h> -# ifndef bcopy -# define bcopy(from, to, len) memcpy ((to), (from), (len)) -# endif -# ifndef bzero -# define bzero(s, n) memset ((s), 0, (n)) -# endif #else # include <strings.h> -# ifndef strrchr -# define strrchr rindex -# endif -# ifndef strchr -# define strchr index -# endif +char *memchr (); #endif #include <errno.h> +#ifndef errno +extern int errno; +#endif + #ifdef STDC_HEADERS #define getopt system_getopt #include <stdlib.h> #undef getopt #else /* not STDC_HEADERS */ char *getenv (); -extern int errno; #endif /* STDC_HEADERS */ #ifdef HAVE_FCNTL_H |