diff options
author | Arnold D. Robbins <arnold@skeeve.com> | 2011-01-02 22:06:59 +0200 |
---|---|---|
committer | Arnold D. Robbins <arnold@skeeve.com> | 2011-01-02 22:06:59 +0200 |
commit | fb6fd355f19270e615c178612f640536a1d2345c (patch) | |
tree | 2a2c2b8e68367df5ac9df4e0c5f1346de2790b14 /extension/filefuncs.c | |
parent | 001c8d1eb6130aeaa16b35bcf17141f0667e58fb (diff) | |
download | egawk-fb6fd355f19270e615c178612f640536a1d2345c.tar.gz egawk-fb6fd355f19270e615c178612f640536a1d2345c.tar.bz2 egawk-fb6fd355f19270e615c178612f640536a1d2345c.zip |
Lots more doc updates.
Diffstat (limited to 'extension/filefuncs.c')
-rw-r--r-- | extension/filefuncs.c | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/extension/filefuncs.c b/extension/filefuncs.c index c1268508..46873f1f 100644 --- a/extension/filefuncs.c +++ b/extension/filefuncs.c @@ -7,7 +7,7 @@ */ /* - * Copyright (C) 2001, 2004, 2005 the Free Software Foundation, Inc. + * Copyright (C) 2001, 2004, 2005, 2010, 2011 the Free Software Foundation, Inc. * * This file is part of GAWK, the GNU implementation of the * AWK Programming Language. @@ -56,8 +56,7 @@ do_chdir(int nargs) /* format_mode --- turn a stat mode field into something readable */ static char * -format_mode(fmode) -unsigned long fmode; +format_mode(unsigned long fmode) { static char outbuf[12]; int i; @@ -185,7 +184,7 @@ do_stat(int nargs) ret = lstat(file->stptr, & sbuf); if (ret < 0) { update_ERRNO(); - return make_number((AWKNUM) 0); + return make_number((AWKNUM) ret); } /* fill in the array */ @@ -327,9 +326,7 @@ do_stat(int nargs) /* dlload --- load new builtins in this library */ NODE * -dlload(tree, dl) -NODE *tree; -void *dl; +dlload(NODE *tree, void *dl) { make_builtin("chdir", do_chdir, 1); make_builtin("stat", do_stat, 2); |