Article View: de.comp.gnu
Article #24Re: Probleme mit gdb 4.4
From: Frank Patz
Date: Wed, 26 Aug 1992 12:41
Date: Wed, 26 Aug 1992 12:41
87 lines
3196 bytes
3196 bytes
styx@eurom.rhein-main.de (Ruediger Merz) writes: : : Hi, : : wer kann mir bei dem folgenden Problem helfen ? : : ---------------------------------------------------- : sigsetmask.c:31: parse error before `sigsetmask' : sigsetmask.c:32: parse error before `*' : sigsetmask.c: In function `sigsetmask': : sigsetmask.c:34: `sigset_t' undeclared (first use this function) : sigsetmask.c:34: (Each undeclared identifier is reported only once : sigsetmask.c:34: for each function it appears in.) : sigsetmask.c:34: parse error before `old' : sigsetmask.c:36: `SIG_SETMASK' undeclared (first use this function) : sigsetmask.c:36: `set' undeclared (first use this function) : sigsetmask.c:36: `old' undeclared (first use this function) : ------------------------------------------------------ : Wir haben auf unserem System (ESIX SysV 3.2) alles nach sigset_t : und SIG_SETMASK durchsucht. : Wo und wie sind die normalerweise deklariert ? Auf unserm System (SunOS 4.1.2) sieht das folgendermassen aus: in signal.h: ... #define SIG_SETMASK 0x0004 ... #include <sys/stdtypes.h> /* for sigset_t */ ... in sys/stdtypes.h: ... typedef int sigset_t; ... Dazu ist in der POSIX Norm folgendes zu lesen: (nach ISO/IEC 9945-1:1990) 3.3.1.1 Signal Names [...] The type sigset_t is used to represent set of signals. It is always an integral or structure type. Several functions used to manipulate objects of type sigset_t are defined in 3.3.3. [...] 3.3.5 Examine and Change Blocked Signals Function: sigprocmask() 3.3.5.1 Synopsis #include <signal.h> int sigprocmask(int how, const sigset_t *set, sigset_t *oset); 3.3.5.2 Description The sigprocmask() function is used to examine or change (or both) the signal mask of the calling process. If the value of the argument set is not NULL, it points to a set of signals to be used to change the currently blocked set. The value of the argument how indicates the manner in which the set is changed and shall consist of one of the following values, as defined in the header <signal.h>: NAME DESCRIPTIOM SIG_BLOCK The resulting set shall be the union of the current set and the signal set pointed to by the argument set. SIG_UNBLOCK The resulting set shall be the intersection of the current set and the complement of the signal set pointed to by the argument set. SIG_SETMASK The resulting set shall be the signal set pointed to by the argument SET [...] In der Beziehung sollte ein SysV POSIX kompatibel sein und ueber ein konformes <signal.h> verfuegen. Ich hoffe das hilft dir weiter.... Frank Patz patz@ipc1.rrzn.uni-hannover.de
Technical Details
Message-ID:
<1992Aug26.124116.26102@newsserver.rrzn.uni-hannover.de>Path:
arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!darwin.sura.net!Sirius.dfn.de!solaris.rz.tu-clausthal.de!news!patzReferences:
<1992Aug25.063629.8378@eurom.rhein-main.de>Show Full Headers
Complete Article Headers
Newsgroups: de.comp.gnu Path: arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!darwin.sura.net!Sirius.dfn.de!solaris.rz.tu-clausthal.de!news!patz From: patz@ipc1.rrzn.uni-hannover.de (Frank Patz) Subject: Re: Probleme mit gdb 4.4 Message-ID: <1992Aug26.124116.26102@newsserver.rrzn.uni-hannover.de> Sender: news@newsserver.rrzn.uni-hannover.de (News Service) Organization: RRZN X-Newsreader: Tin 1.1 PL4 References: <1992Aug25.063629.8378@eurom.rhein-main.de> Date: Wed, 26 Aug 1992 12:41:16 GMT Lines: 87