| From: | Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> |
|---|---|
| To: | "Jeroen Ruigrok/asmodai" <asmodai(at)wxs(dot)nl> |
| Cc: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org> |
| Subject: | Re: _GNU_SOURCE |
| Date: | 2003-09-28 16:37:25 |
| Message-ID: | 200309281637.h8SGbPm09649@candle.pha.pa.us |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers |
Jeroen Ruigrok/asmodai wrote:
> -On [20030928 17:52], Tom Lane (tgl(at)sss(dot)pgh(dot)pa(dot)us) wrote:
> >Hm. So is crypt_r() a GNU extension? I would've thought it was
> >specified by some standard or other. Perhaps the real issue here
> >is that /usr/include/crypt.h is using the wrong control symbol.
> >At least in RHL 8.0, it definitely uses __USE_GNU to hide crypt_r
> >and the associated struct type.
>
> crypt() is a 4.3 BSD, SVID 3, Unix 95, Unix 98.
>
> crypt_r() though, is a GNU extension:
> http://lists.debian.org/lsb-discuss/2001/lsb-discuss-200103/msg00026.html
> and from:
> http://docs.mandragor.org/files/Programming_languages/C/glibc-2.2.3/libc_32.html#SEC661
>
> "The crypt_r function is a GNU extension."
BSD/OS doesn't have crypt_r(), and crypt() manual page says:
The crypt() function may not be safely called concurrently from multiple
threads, e.g., the interfaces described by pthreads(3).
--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Tom Lane | 2003-09-28 16:53:36 | Re: _GNU_SOURCE |
| Previous Message | Jeroen Ruigrok/asmodai | 2003-09-28 16:05:02 | Re: _GNU_SOURCE |