diff options
author | delphij <delphij@FreeBSD.org> | 2009-12-13 03:14:06 +0000 |
---|---|---|
committer | delphij <delphij@FreeBSD.org> | 2009-12-13 03:14:06 +0000 |
commit | 0842b7d53ffede64468e775f5c79965e3d9e48ae (patch) | |
tree | ec0e60a06ede057b5afe3f1a6eccc05036f5c424 /usr.bin/xinstall | |
parent | 7510724a04e34e0c4cdf7551cd6e74fb053368e8 (diff) | |
download | FreeBSD-src-0842b7d53ffede64468e775f5c79965e3d9e48ae.zip FreeBSD-src-0842b7d53ffede64468e775f5c79965e3d9e48ae.tar.gz |
Revert most part of 200420 as requested, as more review and polish is
needed.
Diffstat (limited to 'usr.bin/xinstall')
-rw-r--r-- | usr.bin/xinstall/xinstall.c | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/usr.bin/xinstall/xinstall.c b/usr.bin/xinstall/xinstall.c index 35f6a60..49e47c6 100644 --- a/usr.bin/xinstall/xinstall.c +++ b/usr.bin/xinstall/xinstall.c @@ -53,6 +53,7 @@ __FBSDID("$FreeBSD$"); #include <sys/time.h> #include <sys/wait.h> +#include <ctype.h> #include <err.h> #include <errno.h> #include <fcntl.h> @@ -85,16 +86,16 @@ int dobackup, docompare, dodir, dopreserve, dostrip, nommap, safecopy, verbose; mode_t mode = S_IRWXU | S_IRGRP | S_IXGRP | S_IROTH | S_IXOTH; const char *suffix = BACKUP_SUFFIX; -static void copy(int, const char *, int, const char *, off_t); -static int compare(int, const char *, size_t, int, const char *, size_t); -static int create_newfile(const char *, int, struct stat *); -static int create_tempfile(const char *, char *, size_t); -static void install(const char *, const char *, u_long, u_int); -static void install_dir(char *); -static u_long numeric_id(const char *, const char *); -static void strip(const char *); -static int trymmap(int); -static void usage(void); +void copy(int, const char *, int, const char *, off_t); +int compare(int, const char *, size_t, int, const char *, size_t); +int create_newfile(const char *, int, struct stat *); +int create_tempfile(const char *, char *, size_t); +void install(const char *, const char *, u_long, u_int); +void install_dir(char *); +u_long numeric_id(const char *, const char *); +void strip(const char *); +int trymmap(int); +void usage(void); int main(int argc, char *argv[]) |