diff options
author | Karel Zak | 2006-12-07 00:25:34 +0100 |
---|---|---|
committer | Karel Zak | 2006-12-07 00:25:34 +0100 |
commit | fd6b7a7ffc50400704beb41d5a23af5f9edb1eed (patch) | |
tree | 997c0ca2abc018369babd7da59bcd0afe492068e /misc-utils/namei.c | |
parent | Imported from util-linux-2.5 tarball. (diff) | |
download | kernel-qcow2-util-linux-fd6b7a7ffc50400704beb41d5a23af5f9edb1eed.tar.gz kernel-qcow2-util-linux-fd6b7a7ffc50400704beb41d5a23af5f9edb1eed.tar.xz kernel-qcow2-util-linux-fd6b7a7ffc50400704beb41d5a23af5f9edb1eed.zip |
Imported from util-linux-2.7.1 tarball.
Diffstat (limited to 'misc-utils/namei.c')
-rw-r--r-- | misc-utils/namei.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/misc-utils/namei.c b/misc-utils/namei.c index 750576187..2c9850028 100644 --- a/misc-utils/namei.c +++ b/misc-utils/namei.c @@ -42,15 +42,20 @@ chdir to /, or if it encounters an unknown file type. -------------------------------------------------------------*/ #ifndef lint -static char *RCSid = "$Id: namei.c,v 1.4 1995/03/12 01:35:45 faith Exp $"; +static char *RCSid = "$Id: namei.c,v 1.6 1997/07/06 00:13:09 aebr Exp $"; #endif #include <stdio.h> +#include <unistd.h> +#include <string.h> #include <sys/types.h> #include <sys/stat.h> #include <sys/param.h> +#ifndef __GNU_LIBRARY__ extern char *sys_errlist[]; +#endif + extern int errno; #define ERR sys_errlist[errno],errno @@ -64,6 +69,7 @@ int xflag = 0; static char *pperm(); +int main(argc, argv) int argc; char *argv[]; @@ -110,7 +116,7 @@ char *argv[]; exit(1); } } - exit(0); + return 0; } void |