« Return to Thread: [PATCH] Cygwin: declare get_current_dir_name(3)

Re: [PATCH] Cygwin: declare get_current_dir_name(3)

by Christopher Faylor-9 :: Rate this Message:

| View in Thread

On Sun, Jan 01, 2012 at 12:32:53PM -0600, Yaakov (Cygwin/X) wrote:

>On Sun, 2012-01-01 at 13:25 -0500, Christopher Faylor wrote:
>> On Sun, Jan 01, 2012 at 11:42:43AM -0600, Yaakov (Cygwin/X) wrote:
>> >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));
>>
>> I didn't notice this before but couldn't you just move this declaration
>> into the #if defined below?
>
>I put it there because that section is alphabetized.

I got that.  I thought that "_" came after "c" but I see now that
it doesn't.

cgf

 « Return to Thread: [PATCH] Cygwin: declare get_current_dir_name(3)