This is the mail archive of the libc-hacker@sourceware.cygnus.com mailing list for the glibc project.

Note that libc-hacker is a closed list. You may look at the archives of this list, but subscription and posting are not open.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

__rmdir/__mkdir: Duplicate declaration in include/unistd.h



Here's a patch to remove two prototypes:  __rmdir was twice defined in
unisted.h and __mkdir is defined in include/sys/stat.h.

Andreas

2000-03-28  Andreas Jaeger  <aj@suse.de>

	* include/unistd.h: Remove duplicate entry for __rmdir.
	Remove declaration of __mkdir since __mkdir is declared in
	sys/stat.h.

============================================================
Index: include/unistd.h
--- include/unistd.h	2000/02/29 01:34:34	1.13
+++ include/unistd.h	2000/03/28 08:43:24
@@ -32,7 +32,6 @@
 extern int __chdir (__const char *__path);
 extern int __fchdir (int __fd);
 extern char *__getcwd (char *__buf, size_t __size);
-extern int __mkdir (const char *__path, __mode_t __mode);
 extern int __rmdir (const char *__path);
 
 /* Get the canonical absolute name of the named directory, and put it in SIZE
@@ -71,7 +70,6 @@
 extern int __symlink (__const char *__from, __const char *__to);
 extern int __readlink (__const char *__path, char *__buf, size_t __len);
 extern int __unlink (__const char *__name);
-extern int __rmdir (__const char *__path);
 extern int __gethostname (char *__name, size_t __len);
 extern int __profil (unsigned short int *__sample_buffer, size_t __size,
 		     size_t __offset, unsigned int __scale);

-- 
 Andreas Jaeger
  SuSE Labs aj@suse.de
   private aj@arthur.rhein-neckar.de

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]