Porting from OpenBSD/Linux to Solaris : daemon(3)

Discussion in 'C Programming' started by Steph L, Oct 27, 2003.

  1. Steph L

    Steph L Guest

    Hi,

    A given Milter program compiles ok on OpenBSD/FreeBSD/Linux but not on
    Solaris : it uses daemon(3)

    http://www.openbsd.org/cgi-bin/man.cgi?query=daemon&apropos=0&sektion
    =0&manpath=OpenBSD+Current&arch=i386&format=html
    http://www.freebsd.org/cgi/man.cgi?query=daemon&sektion=3&apropos=0
    &manpath=FreeBSD+5.1-RELEASE

    What would be the Solaris alternative or POSIX solution to the BSD daemon(3) ?

    SL/

    PS : Solaris does not have __progname nor vasprintf ... what a pity !

    ---
    Stephane Lentz
    Alcanet International, Internet Services
    Steph L, Oct 27, 2003
    #1
    1. Advertising

  2. Steph L <> wrote in
    news:bnk388$o8v$:

    > Hi,
    >
    > A given Milter program compiles ok on OpenBSD/FreeBSD/Linux but not on
    > Solaris : it uses daemon(3)
    >

    [snip]
    >
    > What would be the Solaris alternative or POSIX solution to the BSD
    > daemon(3) ?


    Why ask in a C newsgroup where this is off-topic when there is
    comp.unix.programmer?

    --
    - Mark ->
    --
    Mark A. Odell, Oct 27, 2003
    #2
    1. Advertising

  3. Steph L <> writes in comp.unix.solaris:
    |What would be the Solaris alternative or POSIX solution to the BSD daemon(3) ?

    Why not just borrow the daemon function from the BSD libc sources?

    --
    ________________________________________________________________________
    Alan Coopersmith
    http://www.CSUA.Berkeley.EDU/~alanc/ aka:
    Working for, but definitely not speaking for, Sun Microsystems, Inc.
    Alan Coopersmith, Oct 28, 2003
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. nitin
    Replies:
    2
    Views:
    415
    Ron Natalie
    Jul 14, 2003
  2. Ryan Liu
    Replies:
    2
    Views:
    640
    Prateek R Karandikar
    Jun 12, 2004
  3. Ganesh Tiwari
    Replies:
    1
    Views:
    427
    Victor Bazarov
    Aug 10, 2004
  4. Replies:
    1
    Views:
    284
    Michael Torrie
    Jul 29, 2007
  5. Steven Backus
    Replies:
    0
    Views:
    373
    Steven Backus
    Aug 15, 2008
Loading...

Share This Page