James Carlson wrote:
> On Aug 17, 2009, at 7:29 PM, Nicolas Williams <Nicolas.Williams at sun.com> 
> wrote:
>>> If I've misunderstood about the availability of daemon() in Linux,
>>> please feel free to correct me.  Otherwise I'd be punching the derail
>>> button on this case.
>>
>> It's there in libc in RHEL5.
> 
> It's older and more common than that. It's a BSD-ism.

Yep, the beast is quite old. The daemon() function is present in libc 
sources of 4.4BSD-Lite with a date of 1993. It can be also found in 
4.3BSD-Reno with a date of 1990 but not in libc (in libutil).

As for the other OSes and their libc's I made couple of source code 
tours and this is what I found:

  OS              present in libc since
--------------+---------------------------
  OpenBSD         1.0 (1995)
  NetBSD          1.0 (1993)
  FreeBSD         2.0_ALPHA (1993)
  glibc           1.09.1 (1996, from BSD)

 From the Linux systems I have access to, it's present in Fedora 11 and 
Gentoo 1.12.11.1 and Ubuntu Dapper Drake.

As for the other OSes where source code is not generally available, I 
also found it in the documentation of:

  OS              documented in
--------------+--------------------------
  Mac OS X        10.4.11 (verified)
  QNX             6.3.0SP3


v.

Reply via email to