projects
/
gnulib.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Mention that the 'free' module, LIA-1.
[gnulib.git]
/
lib
/
rmdir.c
diff --git
a/lib/rmdir.c
b/lib/rmdir.c
index
58b2edb
..
5315711
100644
(file)
--- a/
lib/rmdir.c
+++ b/
lib/rmdir.c
@@
-1,5
+1,6
@@
/* BSD compatible remove directory function for System V
/* BSD compatible remove directory function for System V
- Copyright (C) 1988, 1990 Free Software Foundation, Inc.
+
+ Copyright (C) 1988, 1990, 1999, 2003 Free Software Foundation, Inc.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@
-41,10
+42,10
@@
extern int errno;
Return 0 if successful, -1 if not. */
int
Return 0 if successful, -1 if not. */
int
-rmdir (dpath)
- char *dpath;
+rmdir (char const *dpath)
{
{
- int cpid, status;
+ pid_t cpid;
+ int status;
struct stat statbuf;
if (stat (dpath, &statbuf) != 0)
struct stat statbuf;
if (stat (dpath, &statbuf) != 0)
@@
-73,7
+74,7
@@
rmdir (dpath)
while (wait (&status) != cpid)
/* Do nothing. */ ;
while (wait (&status) != cpid)
/* Do nothing. */ ;
- if (status
& 0xFFFF
)
+ if (status)
{
/* /bin/rmdir failed. */
{
/* /bin/rmdir failed. */