From: Glynn Clements <glynn.clements@virgin.net>
To: xlp <xlp@emtel.net.co>
Cc: linux-c-programming@vger.kernel.org
Subject: Re: Offtopic.
Date: Tue, 30 Jul 2002 07:44:41 +0100 [thread overview]
Message-ID: <15686.13785.543964.140592@cerise.nosuchdomain.co.uk> (raw)
In-Reply-To: <20020729082601.C896@nietzsche.metrotel.net.co>
xlp wrote:
> I read a documentain that describe signals and It says there are 4 types of
> 'signal handling enviroments': BSD, SysV unreliable, SysV reliable y POSIX.
> What does that means? What are those 'enviroments'?
I'm only aware of two of those.
The (unreliable) SysV signal() implementation is equivalent to using
sigaction() with the SA_ONESHOT and SA_NODEFER flags.
The BSD signal() implementation is equivalent to using sigaction() with
the SA_RESTART flag.
> How can I know which enivorement use certain OS ?
Check the signal(2) manpage. However, it may be wrong; e.g. my version
(from RedHat 6.2) describes the SysV semantics, although glibc-2
actually uses the BSD semantics by default.
The easiest solution is simply not to use signal(), but to use
sigaction() instead.
> What is "POSIX"?
It's a family of IEEE standards which define a common Unix-like API.
The original POSIX.1 standard (which specifies the base API) has
largely been superseded; first by the XPG standards and, more
recently, via the Single Unix Specification.
You can read the Single Unix Specification online at www.opengroup.org
(free registration required). AFAIK, the other standards aren't
available online (and copies are very expensive).
--
Glynn Clements <glynn.clements@virgin.net>
next prev parent reply other threads:[~2002-07-30 6:44 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-07-29 13:26 Offtopic xlp
2002-07-29 13:29 ` Offtopic Carlos Fernandez Sanz
2002-07-29 16:33 ` Offtopic Darío Mariani
2002-07-29 17:43 ` Offtopic xlp
2002-07-30 6:44 ` Glynn Clements [this message]
-- strict thread matches above, loose matches on Subject: below --
2003-06-25 19:56 offtopic Fabio Miranda Hamburger
2003-06-25 20:43 ` offtopic Jan-Benedict Glaw
2003-06-26 16:57 ` offtopic Fabio Miranda Hamburger
2003-06-26 22:43 ` offtopic Glynn Clements
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=15686.13785.543964.140592@cerise.nosuchdomain.co.uk \
--to=glynn.clements@virgin.net \
--cc=linux-c-programming@vger.kernel.org \
--cc=xlp@emtel.net.co \
/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).