Re: [PATCH] Add get_current_dir_name(3)

2012-01-02 Thread Eric Blake
On 01/01/2012 12:13 AM, Yaakov (Cygwin/X) wrote: You have to check st_dev here too don't you? Of course. Revised patch for winsup/cygwin attached. +extern C char * +get_current_dir_name (void) +{ + char *pwd = getenv (PWD); + char *cwd = getcwd (NULL, 0); + + if (pwd) +{ +

Re: [PATCH] Add get_current_dir_name(3)

2012-01-02 Thread Christopher Faylor
On Mon, Jan 02, 2012 at 05:56:26AM -0700, Eric Blake wrote: On 01/01/2012 12:13 AM, Yaakov (Cygwin/X) wrote: You have to check st_dev here too don't you? Of course. Revised patch for winsup/cygwin attached. +extern C char * +get_current_dir_name (void) +{ + char *pwd = getenv (PWD); +

Re: [PATCH] Add pthread_sigqueue(3)

2012-01-02 Thread Christopher Faylor
On Sun, Jan 01, 2012 at 12:59:00PM -0600, Yaakov (Cygwin/X) wrote: This patchset adds pthread_sigqueue(3), a GNU extension: http://www.kernel.org/doc/man-pages/online/pages/man3/pthread_sigqueue.3.html The implementation is based on the existing sigqueue(2) and pthread_kill(3) code. Patches for

Re: [PATCH] Add pthread_sigqueue(3)

2012-01-02 Thread Daniel Colascione
On 1/2/12 9:59 AM, Christopher Faylor wrote: On Sun, Jan 01, 2012 at 12:59:00PM -0600, Yaakov (Cygwin/X) wrote: I guess this can go in since I already implemented sigqueue but SI_QUEUE isn't actually fully functional. Cygwin doesn't queue signals and I don't believe it handles the sigval

Re: [PATCH] Add pthread_sigqueue(3)

2012-01-02 Thread Christopher Faylor
On Mon, Jan 02, 2012 at 10:09:21AM -0800, Daniel Colascione wrote: On 1/2/12 9:59 AM, Christopher Faylor wrote: On Sun, Jan 01, 2012 at 12:59:00PM -0600, Yaakov (Cygwin/X) wrote: I guess this can go in since I already implemented sigqueue but SI_QUEUE isn't actually fully functional. Cygwin