linux-c-programming.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: crincon@et.com.mx (Cesar Rincon)
To: Glynn Clements <glynn.clements@virgin.net>
Cc: linux-c-programming@vger.kernel.org
Subject: Re: accept() and signals
Date: Wed, 31 Mar 2004 21:08:17 -0600	[thread overview]
Message-ID: <20040401030817.GF24581@et.com.mx> (raw)
In-Reply-To: <16491.26952.611460.119076@cerise.nosuchdomain.co.uk>

Ipsissima verba Glynn Clements:
> It used to be. Versions of libc based upon GNU libc 1.x (i.e. up to
> and including libc-5) used the SysV semantics by default. It was
> changed because:
...

Sounds reasonable.

> Actually, my signal(2) manpage (English, supplied with RedHat 6.2,
> which uses GNU libc 2.1.3) says:
> 
>        Unlike  on  BSD  systems, signals under Linux are reset to
>        their default  behavior  when  raised.   However,  if  you
>        include  <bsd/signal.h>  instead of <signal.h> then signal
>        is redefined as __bsd_signal and signal has the BSD seman­
>        tics.   Both versions of signal are library routines built
>        on top of sigaction(2).
>
> Which is incorrect. So it may not be just the translation which is
> outdated.

For what it's worth, my English manpage (supplied by Debian Sid, libc
2.3.2), does not include that text.  It pretty much explains what
you've told me here, and other interesting information (including the
list of POSIX "safe functions" for use in signal handlers).

And my Spanish manpage (btw, a *completely* different one) actually
says that from libc6 on, signal() uses BSD semantics, and points to
"sysv_signal()" if SysV semantics are required (which the English
manpage qualifies as "not recommended").  The sigaction(2) manpage,
though, seems to be much older.

> A large part of the problem is that the GNU project officially
> favours texinfo documentation over traditional manual pages. The
> manpages for most of the libc functions were written by third
> parties (and some of them are taken directly from BSD).

I see.  This is, IMO, somewhat unfortunate.  I never really got the
hang of the texinfo thing.  But, given the state of the manpages, I
think I better teach me to like it soon :-/

 -CR

-- 
Ceterum censeo: SCO delenda est.
-
To unsubscribe from this list: send the line "unsubscribe linux-c-programming" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

      reply	other threads:[~2004-04-01  3:08 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-03-31 20:59 accept() and signals Cesar Rincon
2004-03-31 22:21 ` Glynn Clements
2004-03-31 23:54   ` Cesar Rincon
2004-04-01  0:58     ` Glynn Clements
2004-04-01  3:08       ` Cesar Rincon [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20040401030817.GF24581@et.com.mx \
    --to=crincon@et.com.mx \
    --cc=glynn.clements@virgin.net \
    --cc=linux-c-programming@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).