This is the mail archive of the
newlib@sourceware.org
mailing list for the newlib project.
[PATCH] Cygwin: declare get_current_dir_name(3)
- From: "Yaakov (Cygwin/X)" <yselkowitz at users dot sourceforge dot net>
- To: newlib <newlib at sources dot redhat dot com>
- Date: Sun, 01 Jan 2012 11:42:43 -0600
- Subject: [PATCH] Cygwin: declare get_current_dir_name(3)
This patch declares a new function for Cygwin only. The actual
implementation has already been approved.
Yaakov
Cygwin/X
2011-12-31 Yaakov Selkowitz <yselkowitz@...>
* libc/include/sys/unistd.h [__CYGWIN__] (get_current_dir_name):
Declare.
Index: libc/include/sys/unistd.h
===================================================================
RCS file: /cvs/src/src/newlib/libc/include/sys/unistd.h,v
retrieving revision 1.79
diff -u -p -r1.79 unistd.h
--- libc/include/sys/unistd.h 19 Aug 2011 14:29:34 -0000 1.79
+++ libc/include/sys/unistd.h 27 Dec 2011 11:30:24 -0000
@@ -71,6 +71,9 @@ pid_t _EXFUN(fork, (void ));
long _EXFUN(fpathconf, (int __fd, int __name ));
int _EXFUN(fsync, (int __fd));
int _EXFUN(fdatasync, (int __fd));
+#if defined(__CYGWIN__)
+char * _EXFUN(get_current_dir_name, (void));
+#endif
char * _EXFUN(getcwd, (char *__buf, size_t __size ));
#if defined(__CYGWIN__)
int _EXFUN(getdomainname ,(char *__name, size_t __len));