sigprocmask



Liczniki odwiedzin | Księgi gości | Metal Lyrics | Znaczenie imion | Konwerter | Wolne domeny | Informacje o samochodach | Zakupy w UK | | | | | | | wyposażenie warsztatów | Wypoczynek nad jeziorami




NAME

       sigaction,  sigprocmask,  sigpending,  sigsuspend  - POSIX
       signal handling functions.



SYNOPSIS

       #include <signal.h>


       int sigaction(int signum,  const  struct  sigaction  *act,
       struct sigaction *oldact);

       int  sigprocmask(int  how,  const  sigset_t *set, sigset_t
       *oldset);

       int sigpending(sigset_t *set);

       int sigsuspend(const sigset_t *mask);



DESCRIPTION

       The sigaction system call is used to change the action for
       a  signal.   If act is non-null, the new action for signal
       signum is installed from act.  If oldact is non-null,  the
       previous action is saved in oldact.

       The sigaction structure is defined as

              struct sigaction {
                  void (*sa_handler)();
                  sigset_t sa_mask;
                  int sa_flags;
                  void (*sa_restorer)(void);
              }

       sa_handler  may be SIG_DFL for the default action, SIG_IGN
       to ignore this signal, or a pointer to a  signal  handling
       function.

       sa_mask  gives  a  mask of signals which should be blocked
       during execution of the signal handler.

       sa_flags is the bitwise OR of zero or more of the  follow-
       ing flags

              SA_NOCLDSTOP
                     Do  not  generate SIGCHLD signals when child
                     processes terminate.

              SA_ONESHOT
                     Restore the signal  action  to  the  default
                     state  once  the  signal  handler  has  been
                     called.  This is the default behavior.

              SA_RESTART
                     The opposite to SA_ONESHOT, do  not  restore
                     the  signal  action.  This provides behavior
                     compatible with BSD signal semantics.

              SA_NOMASK
                     Do  not  prevent  the  signal   from   being
                     received from within its own signal handler.

       The sa_restorer element is  obsolete  and  should  not  be
       used.

       The  sigprocmask  call  is used to change the list of cur-
       rently blocked signals. The behavior of the call is depen-
       dent on the value of how, as follows.

              SIG_BLOCK
                     The  set  of blocked signals is the union of
                     the current set and the set argument.

              SIG_UNBLOCK
                     The signals in set are removed from the cur-
                     rent set of blocked signals.  It is legal to
                     attempt to unblock a  signal  which  is  not
                     blocked.

              SIG_SETMASK
                     The  set  of  blocked  signals is set to the
                     argument set.

       If oldset is non-null, the previous value  of  the  signal
       mask is stored in oldset.

       The sigpending call allows the examination of pending sig-
       nals (ones which have been  raised  while  blocked).   The
       signal mask of pending signals is stored in set.

       The  sigsuspend  call temporarily replaces the signal mask
       for the process with that given by mask and then  suspends
       the process until a signal is received.



RETURN VALUES

       sigaction, sigprocmask, sigpending and sigsuspend return 0
       on success and -1 on error.



ERRORS

       EINVAL An invalid signal was specified.  This will also be
              generated  if  an  attempt  is  made  to change the
              action for SIGKILL  or  SIGSTOP,  which  cannot  be
              caught.

       EFAULT act,  oldact  or the signal handler point to memory
              which is not a valid part of  the  process  address
              space.

       EINTR  System call was interrupted.



NOTES

       It  is  not  possible to block SIGKILL or SIGSTOP with the
       sigprocmask call.  Attempts to  do  so  will  be  silently
       ignored.

       The   POSIX   spec  only  defines  SA_NOCLDSTOP.   Use  of
       SA_ONESHOT and SA_RESTART is non-portable.

       sigaction can be called with a  null  second  argument  to
       query  the  current signal handler. It can also be used to
       check whether a given signal  is  valid  for  the  current
       machine  by  calling  it  with null second and third argu-
       ments.

       See sigsetops(3) for details on manipulating signal  sets.


CONFORMING TO

       POSIX



SEE ALSO

       kill(1), kill(2), killpg(2), pause(2), raise(3), siginter-
       rupt(3), signal(2), signal(7), sigsetops(3), sigvec(2)

  Księgarnia

- Oferta księgarni Mentis
- Oferta księgarni Onepress
- Linux Manual (english)
- Konstytucje
- Kręgosłup, bóle karku
- Elektroniczne książki
- Prasa elektroniczna
- Gry RPG, figurki
- darmowy słownik on-line
- jubiler - biżuteria
- polityka prywatności





Linux - Welsh Matt, Dalheimer Matthias Kalle, Kaufman Lar Linux
Autor: Welsh Matt, Dalheimer Matthias Kalle, Kaufman Lar
Cena: 85.44
Rok wydania: 2000
Wydawnictwo: Read Me
Ilość stron: 700
Linux - bezpieczeństwo serwerów - Michael D.Bauer Linux - bezpieczeństwo serwerów
Autor: Michael D.Bauer
Cena: 58.88
Rok wydania: 2003
Wydawnictwo: Read Me
Ilość stron: 488
Linux kernel - Daniel P. Bovet, Marco Cesati Linux kernel
Autor: Daniel P. Bovet, Marco Cesati
Cena: 85.44
Rok wydania: 2001
Wydawnictwo: Read Me
Ilość stron: 634
Linux. Programowanie dla zaawansowanych - Mark Mitchell. Jeffrey Oldham, Alex Samuel Linux. Programowanie dla zaawansowanych
Autor: Mark Mitchell. Jeffrey Oldham, Alex Samuel
Cena: 42.32
Rok wydania: 2002
Wydawnictwo: Read Me
Ilość stron: 300
Linux: Systemy plików - Moshe Bar Linux: Systemy plików
Autor: Moshe Bar
Cena: 51.52
Rok wydania: 2002
Wydawnictwo: Read Me
Ilość stron: 332
Linux. Archiwizacja danych - Leszek Madeja Linux. Archiwizacja danych
Autor: Leszek Madeja
Cena: 17.60
Rok wydania: 2003
Wydawnictwo: Mikom
Ilość stron:
Linux i galanteria SCSI - Leszek Madeja Linux i galanteria SCSI
Autor: Leszek Madeja
Cena: 10.80
Rok wydania: 2003
Wydawnictwo: Mikom
Ilość stron: 88
Bezpieczeństwo systemu Linux - Ramón J. Honta&ntilde;ón Bezpieczeństwo systemu Linux
Autor: Ramón J. Honta&ntilde;ón
Cena: 44.62
Rok wydania: 2002
Wydawnictwo: Mikom
Ilość stron: 464
Korzystanie z drukarki. Ćwiczenia z systemu Linux - Leszek Madeja Korzystanie z drukarki. Ćwiczenia z systemu Linux
Autor: Leszek Madeja
Cena: 16.80
Rok wydania: 2000
Wydawnictwo: Mikom
Ilość stron: 192
Korzystanie z pomocy. Ćwiczenia z systemu Linux - Leszek Madeja Korzystanie z pomocy. Ćwiczenia z systemu Linux
Autor: Leszek Madeja
Cena: 15.40
Rok wydania: 2000
Wydawnictwo: Mikom
Ilość stron: 152
Linux - książka kucharska - Michael Stutz Linux - książka kucharska
Autor: Michael Stutz
Cena: 47.84
Rok wydania: 2002
Wydawnictwo: Mikom
Ilość stron: 488
Linux. Gniazda w programowaniu - Woren W. Gay Linux. Gniazda w programowaniu
Autor: Woren W. Gay
Cena: 47.29
Rok wydania: 2001
Wydawnictwo: Mikom
Ilość stron: 552
LINUX. Rozwiązywanie problemów - Brian Ward LINUX. Rozwiązywanie problemów
Autor: Brian Ward
Cena: 33.92
Rok wydania: 2001
Wydawnictwo: Mikom
Ilość stron: 312
Midnight Commander. Ćwiczenia z systemu Linux - Leszek Madeja Midnight Commander. Ćwiczenia z systemu Linux
Autor: Leszek Madeja
Cena: 23.80
Rok wydania: 2000
Wydawnictwo: Mikom
Ilość stron: 272
Red Hat Linux 6.2 same konkrety - Bob Rankin Red Hat Linux 6.2 same konkrety
Autor: Bob Rankin
Cena: 39.74
Rok wydania: 2000
Wydawnictwo: Mikom
Ilość stron: 372
Caldera Linux 2.3 dla każdego - Bill Ball Caldera Linux 2.3 dla każdego
Autor: Bill Ball
Cena: 49.00
Rok wydania: 2000
Wydawnictwo: Helion
Ilość stron: 400
Linux. Praktyczne rozwiązania - Adam Podstawczyński Linux. Praktyczne rozwiązania
Autor: Adam Podstawczyński
Cena: 35.00
Rok wydania: 2000
Wydawnictwo: Helion
Ilość stron: 248
Red Hat Linux 7.3. Księga eksperta - Bill Ball Red Hat Linux 7.3. Księga eksperta
Autor: Bill Ball
Cena: 110.00
Rok wydania: 2002
Wydawnictwo: Helion
Ilość stron: 752
Linux w sieci - Adam Podstawczyński Linux w sieci
Autor: Adam Podstawczyński
Cena: 39.00
Rok wydania: 2002
Wydawnictwo: Helion
Ilość stron: 224
Red Hat Linux 7.2. Ćwiczenia praktyczne - Jerzy Marczyński Red Hat Linux 7.2. Ćwiczenia praktyczne
Autor: Jerzy Marczyński
Cena: 18.00
Rok wydania: 2002
Wydawnictwo: Helion
Ilość stron: 176






ksiegarnia.pila.pl exists since 2005 year.
Provided by: Przemysław Krajniak, PHP Scripts