projects
/
gnulib.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add a GPL copyright notice.
[gnulib.git]
/
lib
/
rmdir.c
diff --git
a/lib/rmdir.c
b/lib/rmdir.c
index
2a92803
..
ddb5c30
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, 2004 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
@@
-21,19
+22,9
@@
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <sys/stat.h>
-
#include <errno.h>
#include <errno.h>
-#ifndef errno
-extern int errno;
-#endif
-#if STAT_MACROS_BROKEN
-# undef S_ISDIR
-#endif
-
-#if !defined(S_ISDIR) && defined(S_IFDIR)
-# define S_ISDIR(m) (((m) & S_IFMT) == S_IFDIR)
-#endif
+#include "stat-macros.h"
/* rmdir adapted from GNU tar. */
/* rmdir adapted from GNU tar. */
@@
-41,8
+32,7
@@
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)
{
pid_t cpid;
int status;
{
pid_t cpid;
int status;