Linux-Development-Sys Digest #53, Volume #8 Sat, 29 Jul 00 18:13:19 EDT
Contents:
Re: siginfo->si_pid and siginfo->si_gid always zero? ("Frank V. Castellucci")
QUES: serial line, select stalling (Tom J)
Re: library to implement NFS (J.H.M. Dassen (Ray))
ISDN TA driver (Peter Pan)
Re: library to implement NFS (J.H.M. Dassen (Ray))
Re: library to implement NFS (Kaz Kylheku)
GCC 2.95.2 problems on RedHat 6.2 -- help anyone ? (Michael Meding)
Re: siginfo->si_pid and siginfo->si_gid always zero? (Noam Koren)
----------------------------------------------------------------------------
Date: Sat, 29 Jul 2000 10:12:09 -0400
From: "Frank V. Castellucci" <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.development.apps
Subject: Re: siginfo->si_pid and siginfo->si_gid always zero?
Noam Koren wrote:
>
> Hi,
>
> I wrote a signal handler that uses the SA_SIGINFO flag and was installed
> using the sa_sigaction parameter. I did this in order to make use of the
> siginfo_t which should be passed to the handler (see: man sigaction).
> However, when the handler is invoked (after a kill(pid,SIGUSR1) in a
> child process), only the si_signo is filled correctly in the siginfo_t
> struct (si_uid and si_pid are 0).
>
> Any ideas?
>
> The handler begins like this:
> void handler(int signo, siginfo_t * siginfo,ucontext * uc){
> int a;
> pid_t b;
> uid_t c;
>
> a=siginfo->si_signo;
> b=siginfo->si_pid; // this always returns 0
> c=siginfo->si_uid; // this always returns 0 (yes, even when I am not
> root...)
> ...
> ...
>
> }
>
> Thanks in advance,
> Noam
What kernel version, distributions, etc. are you working with?
--
Frank V. Castellucci
------------------------------
From: [EMAIL PROTECTED] (Tom J)
Subject: QUES: serial line, select stalling
Date: Sat, 29 Jul 2000 15:06:06 GMT
Hi. I had successfully used select() for many years under the
proprietary LynxOS (TM) and fairly well under linux, but I find that
select() stalls and never exits on the serial lines if called again
too quickly. I am using a zero timeout time. I can prevent the
problem by putting in little delays so that select() is not called
again too soon, but this is too slow because the minimum delays is too
long and the animation application calls it very frequently (don't
ask, it's a port from DOS and I can't change the big interfaces yet).
The animation is too slow. Obviously, the DOS application original
had to multi-task by itself and periodically check the serial line
because DOS can't multitask (I don't know why they didn't use
interrupts, maybe the commercial serial library couldn't do it).
My options are:
1. Re-read everything on select to see what I missed (e.g., the
timeout value might be changed after the call of select() kind of
thing).
2. Change my ported-from-DOS serial line library to start a thread to
do blocking reads on a serial line and put the read data into a FIFO
or ring buffer. This is what I'm going to do on Monday. Then
check of the ring buffer should be low-cost.
3. In a year or two change the application's large partition
interfaces so that the animation app has a thread to do just animation
that communications with a thread that does blocking reads on the
seria line, using whatever inter-thread communication mechanism, POSIX
events for no-cost checking, or a mutex-protected flag ("data
available"), etc.
4. Start instrumenting the select entry point in the serial driver
with printk's and watch it.
5. Take a vacation.
Why does select stall if called again too soon? Some semaphore not
signalled?
Thanks
--
Tom J.; tej at world.std.com Massachusetts USA; Systems Programmer
Dist. Real-Time Data Acquisition S/W for Science and Eng. under POSIX,
C, C++, X, Motif, Graphics, Audio http://world.std.com/~tej
------------------------------
From: [EMAIL PROTECTED] (J.H.M. Dassen (Ray))
Crossposted-To: comp.unix.programmer,comp.os.linux.development.apps
Subject: Re: library to implement NFS
Date: Sat, 29 Jul 2000 10:22:01 +0200
phil hunt <[EMAIL PROTECTED]> wrote:
>I'm looking for software that will enable me to implement a filing system
>that communicates using the NFS protocol.
"Pgfs" (Postgres filesystem) is an NFS interface to a PostgreSQL database;
unfortunately I don't have a pointer to it handy.
HTH,
--
Ray Dassen <[EMAIL PROTECTED]>
------------------------------
From: Peter Pan <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.hardware,comp.os.linux.networking
Subject: ISDN TA driver
Date: Sat, 29 Jul 2000 17:33:14 +0200
Hi everybody.
I have a Philips ISDN PCA 128 Modem, and as it's about 4 years old, I
can't get any support from Philips. They don't remember anything about
it.
It seems that there's currently no driver available for it under linux,
so I would like to write one myself. The problem is that I can't get the
specs of the card. I know that it uses a MB86701 PnP controller
(Fujitsu), a SAB 82525 HDLC controller (Siemens), and an AM79C32AJC ISDN
controller (AMD). I'd like to avoid having to redraw the schematic of
the card and try to understand how it works, so could anyone give me
some help ? Anything is welcome, either an idea or a more complete
solution.
I have a Win95 driver, but once again I'd like to avoid having to
dissassemble it and try to understand the assembly code.
The card is and ISA PnP (works fine with isapnptools), and uses the
following resources :
IO : 0x140 - 0x14F
IRQ : 3
Thanks in advance for your help.
Laurent
------------------------------
From: [EMAIL PROTECTED] (J.H.M. Dassen (Ray))
Subject: Re: library to implement NFS
Date: 29 Jul 2000 15:55:03 GMT
J.H.M. Dassen (Ray) <[EMAIL PROTECTED]> wrote:
>"Pgfs" (Postgres filesystem) is an NFS interface to a PostgreSQL database;
>unfortunately I don't have a pointer to it handy.
Found it: http://noframes.linuxjournal.com/lj-issues/issue42/1383.html
HTH,
Ray
--
LWN normally tries to avoid talking much about Microsoft - it is simply
irrelevant to the free software world most of the time.
http://www.lwn.net/2000/0406/
------------------------------
From: [EMAIL PROTECTED] (Kaz Kylheku)
Subject: Re: library to implement NFS
Reply-To: [EMAIL PROTECTED]
Date: Sat, 29 Jul 2000 17:50:30 GMT
On Sat, 29 Jul 2000 10:22:01 +0200, J.H.M. Dassen (Ray) <[EMAIL PROTECTED]> wrote:
>phil hunt <[EMAIL PROTECTED]> wrote:
>>I'm looking for software that will enable me to implement a filing system
>>that communicates using the NFS protocol.
>
>"Pgfs" (Postgres filesystem) is an NFS interface to a PostgreSQL database;
>unfortunately I don't have a pointer to it handy.
CFS (cryptographic filesystem) is also software that provides an NFS
interface, in this case a plaintext view to some encrypted files.
--
Any hyperlinks appearing in this article were inserted by the unscrupulous
operators of a Usenet-to-web gateway, without obtaining the proper permission
of the author, who does not endorse any of the linked-to products or services.
------------------------------
From: Michael Meding <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.development.apps
Subject: GCC 2.95.2 problems on RedHat 6.2 -- help anyone ?
Date: Sat, 29 Jul 2000 22:27:02 +0200
Reply-To: [EMAIL PROTECTED]
Hi there!
I have problems using gcc 2.95.2 which I bootstrapped on RH6.2.
System is AMD Duron on VIA KT-133 MSI-6330. LAtest binutils are used,
kernel is 2.4.0-test5.
During compile of XF4.01 some targets are not made and I can't find out
why. I have also problems bootstrapping gcc 2.95.2. Sometimes gcc
bootstrapped fine, another run right after this stopped with sig11.
XF4.01 does not build consistently.
The system has 100 Mhz SDRAMS which are, to reduce error possibilities
at the moment clocked at 66Mhz. The system uses very conservative
settings in the bios. The Duron is a 600Mhz one, which is not
overclocked.
Please see attached the logs I have taken from my system. The string2.h
warnings are extracted from make World >&World.log of the build of
XF4.01 as is the error log via a quick grep.
I have attached configuration files. Maybe I screwed up during the
upgrade from egcs 1.1.2 to gcc 2.95.2 or there is a missing link to
header or library files that I am not aware of that could possibly
explain my problems.
If I compile the kernel though, I do not have problems at all, even If I
run it several times in a row. Consistently I will get a working new
kernel.
Thanks for any tips / hints / pointings of my stupidness or else in
advance :-).
With best regards
Michael Meding
Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/2.95.2/specs
gcc version 2.95.2 19991024 (release)
/usr/lib/gcc-lib/i386-redhat-linux/2.95.2/cpp -lang-c -v -D__ELF__
-Dunix -D__i386__ -Dlinux -D__ELF__ -D__unix__ -D__i386__ -D__linux__
-D__unix -D__linux -Asystem(posix) -Acpu(i386) -Amachine(i386) -Di386
-D__i386 -D__i386__ -
GNU CPP version 2.95.2 19991024 (release) (i386 Linux/ELF)
#include "..." search starts here:
#include <...> search starts here:
/usr/local/include
/usr/lib/gcc-lib/i386-redhat-linux/2.95.2/../../../../i386-redhat-linux/include
/usr/lib/gcc-lib/i386-redhat-linux/2.95.2/include
/usr/include
End of search list.
The following default directories have been omitted from the search
path:
/usr/lib/gcc-lib/i386-redhat-linux/2.95.2/../../../../include/g++-3
End of omitted list.
../../../config/makedepend/makedepend -- -I../../../include/fonts
-I../include -I../../../include -I../../.. -I../../../exports/include
-Dlinux -D__i386__ -D_POSIX_C_SOURCE=199309L -D_POSIX_SOURCE
-D_XOPEN_SOURCE -D_BSD_SOURCE -D_SVID_SOURCE -D_GNU_SOURCE -DSHAPE
-DXINPUT -DXKB -DLBX -DXAPPGROUP -DXCSECURITY -DTOGCUP -DXF86BIGFONT
-DDPMSExtension -DPANORAMIX -DGCCUSESGAS -DAVOID_GLYPHBLT -DPIXPRIV
-DSINGLEDEPTH -DXFreeXDGA -DXvExtension -DXFree86LOADER -DXFree86Server
-DXF86VIDMODE -DSMART_SCHEDULE -DX_BYTE_ORDER=X_LITTLE_ENDIAN
-DNDEBUG -DFUNCPROTO=15 -DNARROWPROTO -- cauthgen.c csignal.c
delfntcid.c errorf.c fatalerror.c findoldfnt.c getcres.c
getdefptsize.c getnewfntcid.c gettime.c initfshdl.c regfpefunc.c
rmfshdl.c servclient.c setfntauth.c stfntcfnt.c xpstubs.c
../../../../../config/makedepend/makedepend -- -I../../include
-I../../../../../programs/Xserver/include
-I../../../../../exports/include/X11
-I../../../../../include/extensions -I../../../../..
-I../../../../../exports/include -Dlinux -D__i386__
-D_POSIX_C_SOURCE=199309L -D_POSIX_SOURCE -D_XOPEN_SOURCE -D_BSD_SOURCE
-D_SVID_SOURCE -D_GNU_SOURCE -DSHAPE -DXINPUT -DXKB -DLBX -DXAPPGROUP
-DXCSECURITY -DTOGCUP -DXF86BIGFONT -DDPMSExtension -DPANORAMIX
-DGCCUSESGAS -DAVOID_GLYPHBLT -DPIXPRIV -DSINGLEDEPTH -DXFreeXDGA
-DXvExtension -DXFree86LOADER -DXFree86Server -DXF86VIDMODE
-DSMART_SCHEDULE -DX_BYTE_ORDER=X_LITTLE_ENDIAN -DNDEBUG
-DFUNCPROTO=15 -DNARROWPROTO -DIN_MODULE -DIN_MODULE -- difloat.c
error.c event.c flo.c lut.c memory.c photomap.c protoflo.c
session.c tables.c technq.c colorlst.c roi.c
../../../../../config/makedepend/makedepend -- -I.
-I../../../../../programs/Xserver/hw/xfree86/common
-I../../../../../programs/Xserver/hw/xfree86/os-support
-I../../../../../programs/Xserver/include
-I../../../../../exports/include/X11 -I../../../../..
-I../../../../../exports/include -Dlinux -D__i386__
-D_POSIX_C_SOURCE=199309L -D_POSIX_SOURCE -D_XOPEN_SOURCE -D_BSD_SOURCE
-D_SVID_SOURCE -D_GNU_SOURCE -DSHAPE -DXINPUT -DXKB -DLBX -DXAPPGROUP
-DXCSECURITY -DTOGCUP -DXF86BIGFONT -DDPMSExtension -DPANORAMIX
-DGCCUSESGAS -DAVOID_GLYPHBLT -DPIXPRIV -DSINGLEDEPTH -DXFreeXDGA
-DXvExtension -DXFree86LOADER -DXFree86Server -DXF86VIDMODE
-DSMART_SCHEDULE -DX_BYTE_ORDER=X_LITTLE_ENDIAN -DNDEBUG
-DFUNCPROTO=15 -DNARROWPROTO -- fatalerror.c getvalidbios.c
pcitestmulti.c verrorf.c verrorfverb.c xalloc.c
xf86allocscripi.c xf86drvmsg.c xf86drvmsgverb.c
xf86errorf.c xf86errorfverb.c xf86getpagesize.c
xf86getverb.c xf86info.c xf86msg.c xf86msgverb.c
xf86opt.c xf86screens.c xf86servisinit.c xf86verbose.c
XMultibuf.c:82: warning: `error_string' was used with no prototype
before its definition
XShm.c:82: warning: `error_string' was used with no prototype before its
definition
XSync.c:102: warning: `error_string' was used with no prototype before
its definition
Xdbe.c:101: warning: `error_string' was used with no prototype before
its definition
XLbx.c:68: warning: `error_string' was used with no prototype before its
definition
XSecurity.c:84: warning: `error_string' was used with no prototype
before its definition
Xv.c:101: warning: `xv_error_string' was used with no prototype before
its definition
rm -f errorf.o
gcc -c -O2 -ansi -Wall -Wpointer-arith -Wstrict-prototypes
-Wmissing-prototypes -Wmissing-declarations -Wnested-externs -pipe -g
-I../../../include/fonts -I../include -I../../../include -I../../..
-I../../../exports/include -Dlinux -D__i386__ -D_POSIX_C_SOURCE=199309L
-D_POSIX_SOURCE -D_XOPEN_SOURCE -D_BSD_SOURCE -D_SVID_SOURCE
-D_GNU_SOURCE -DSHAPE -DXINPUT -DXKB -DLBX -DXAPPGROUP -DXCSECURITY
-DTOGCUP -DXF86BIGFONT -DDPMSExtension -DPANORAMIX -DGCCUSESGAS
-DAVOID_GLYPHBLT -DPIXPRIV -DSINGLEDEPTH -DXFreeXDGA -DXvExtension
-DXFree86LOADER -DXFree86Server -DXF86VIDMODE -DSMART_SCHEDULE
-DX_BYTE_ORDER=X_LITTLE_ENDIAN -DNDEBUG -DFUNCPROTO=15
-DNARROWPROTO errorf.c
from errorf.c:3:
errorf.c: At top level:
errorf.c:7: warning: no previous prototype for `ErrorF'
rm -f fatalerror.o
gcc -c -O2 -ansi -Wall -Wpointer-arith -Wstrict-prototypes
-Wmissing-prototypes -Wmissing-declarations -Wnested-externs -pipe -g
-I../../../include/fonts -I../include -I../../../include -I../../..
-I../../../exports/include -Dlinux -D__i386__ -D_POSIX_C_SOURCE=199309L
-D_POSIX_SOURCE -D_XOPEN_SOURCE -D_BSD_SOURCE -D_SVID_SOURCE
-D_GNU_SOURCE -DSHAPE -DXINPUT -DXKB -DLBX -DXAPPGROUP -DXCSECURITY
-DTOGCUP -DXF86BIGFONT -DDPMSExtension -DPANORAMIX -DGCCUSESGAS
-DAVOID_GLYPHBLT -DPIXPRIV -DSINGLEDEPTH -DXFreeXDGA -DXvExtension
-DXFree86LOADER -DXFree86Server -DXF86VIDMODE -DSMART_SCHEDULE
-DX_BYTE_ORDER=X_LITTLE_ENDIAN -DNDEBUG -DFUNCPROTO=15
-DNARROWPROTO fatalerror.c
from fatalerror.c:3:
fatalerror.c: At top level:
fatalerror.c:7: warning: no previous prototype for `FatalError'
ar clq libfntstubs.a cauthgen.o csignal.o delfntcid.o errorf.o
fatalerror.o findoldfnt.o getcres.o getdefptsize.o getnewfntcid.o
gettime.o initfshdl.o regfpefunc.o rmfshdl.o servclient.o
setfntauth.o stfntcfnt.o xpstubs.o
In file included from ../../include/error.h:74,
rm -f error.o
gcc -c -O2 -ansi -Wall -Wpointer-arith -Wstrict-prototypes
-Wmissing-prototypes -Wmissing-declarations -Wnested-externs -pipe -g
-I../../include -I../../../../../programs/Xserver/include
-I../../../../../exports/include/X11
-I../../../../../include/extensions -I../../../../..
-I../../../../../exports/include -Dlinux -D__i386__
-D_POSIX_C_SOURCE=199309L -D_POSIX_SOURCE -D_XOPEN_SOURCE -D_BSD_SOURCE
-D_SVID_SOURCE -D_GNU_SOURCE -DSHAPE -DXINPUT -DXKB -DLBX -DXAPPGROUP
-DXCSECURITY -DTOGCUP -DXF86BIGFONT -DDPMSExtension -DPANORAMIX
-DGCCUSESGAS -DAVOID_GLYPHBLT -DPIXPRIV -DSINGLEDEPTH -DXFreeXDGA
-DXvExtension -DXFree86LOADER -DXFree86Server -DXF86VIDMODE
-DSMART_SCHEDULE -DX_BYTE_ORDER=X_LITTLE_ENDIAN -DNDEBUG
-DFUNCPROTO=15 -DNARROWPROTO -DIN_MODULE -DIN_MODULE error.c
In file included from error.c:84:
In file included from error.c:88:
In file included from ../../include/error.h:74,
from error.c:89:
In file included from ../../include/error.h:74,
In file included from ../../include/error.h:74,
In file included from ../../include/error.h:74,
In file included from ../../include/error.h:74,
In file included from ../../include/error.h:74,
In file included from ../../include/error.h:74,
In file included from ../../include/error.h:74,
In file included from ../../include/error.h:74,
In file included from ../../include/error.h:74,
In file included from ../../include/error.h:74,
In file included from ../../include/error.h:74,
In file included from ../../include/error.h:74,
In file included from ../../include/error.h:74,
In file included from ../../include/error.h:74,
In file included from ../../include/error.h:74,
In file included from ../../include/error.h:74,
In file included from ../../include/error.h:74,
In file included from ../../include/error.h:74,
In file included from ../../include/error.h:74,
In file included from ../../include/error.h:74,
In file included from ../../include/error.h:74,
In file included from ../../include/error.h:74,
In file included from ../../include/error.h:74,
In file included from ../../include/error.h:74,
In file included from ../../include/error.h:74,
In file included from ../../include/error.h:74,
In file included from ../../include/error.h:74,
In file included from ../../include/error.h:74,
In file included from ../../include/error.h:74,
In file included from ../../include/error.h:74,
In file included from ../../include/error.h:74,
In file included from ../../include/error.h:74,
In file included from ../../include/error.h:74,
In file included from ../../include/error.h:74,
In file included from ../../include/error.h:74,
In file included from ../../include/error.h:74,
In file included from ../../include/error.h:74,
In file included from ../../include/error.h:74,
In file included from ../../include/error.h:74,
In file included from ../../include/error.h:74,
In file included from ../../include/error.h:74,
In file included from ../../include/error.h:74,
In file included from ../../include/error.h:74,
In file included from ../../include/error.h:74,
In file included from ../../include/error.h:74,
In file included from ../../include/error.h:74,
In file included from ../../include/error.h:74,
In file included from ../../include/error.h:74,
In file included from ../../include/error.h:74,
In file included from ../../include/error.h:74,
In file included from ../../include/error.h:74,
In file included from ../../include/error.h:74,
In file included from ../../include/error.h:74,
In file included from ../../include/error.h:74,
In file included from ../../include/error.h:74,
In file included from ../../include/error.h:74,
In file included from ../../include/error.h:74,
In file included from ../../include/error.h:74,
In file included from ../../include/error.h:74,
In file included from ../../include/error.h:74,
In file included from ../../include/error.h:74,
In file included from ../../include/error.h:74,
In file included from ../../include/error.h:74,
In file included from ../../include/error.h:74,
In file included from ../../include/error.h:74,
In file included from ../../include/error.h:74,
In file included from ../../include/error.h:74,
In file included from ../../include/error.h:74,
make[8]: Target `all' not remade because of errors.
make[7]: Target `all' not remade because of errors.
make[5]: Target `all' not remade because of errors.
../../../../../../programs/Xserver/hw/xfree86/os-support/linux/agpgart.h:66:
parse error before `off_t'
../../../../../../programs/Xserver/hw/xfree86/os-support/linux/agpgart.h:68:
parse error before `pg_total'
../../../../../../programs/Xserver/hw/xfree86/os-support/linux/agpgart.h:69:
parse error before `pg_system'
../../../../../../programs/Xserver/hw/xfree86/os-support/linux/agpgart.h:70:
parse error before `pg_used'
../../../../../../programs/Xserver/hw/xfree86/os-support/linux/agpgart.h:81:
parse error before `off_t'
../../../../../../programs/Xserver/hw/xfree86/os-support/linux/agpgart.h:84:
parse error before `}'
../../../../../../programs/Xserver/hw/xfree86/os-support/linux/agpgart.h:87:
parse error before `pid_t'
../../../../../../programs/Xserver/hw/xfree86/os-support/linux/agpgart.h:90:
parse error before `}'
../../../../../../programs/Xserver/hw/xfree86/os-support/linux/agpgart.h:94:
parse error before `size_t'
../../../../../../programs/Xserver/hw/xfree86/os-support/linux/agpgart.h:100:
parse error before `}'
../../../../../../programs/Xserver/hw/xfree86/os-support/linux/agpgart.h:104:
parse error before `off_t'
i810_memory.c:108: parse error before `)'
i810_memory.c:129: parse error before `)'
i810_memory.c:137: parse error before `bind'
i810_memory.c:140: parse error before `)'
i810_memory.c:171: parse error before `)'
i810_memory.c:174: parse error before `bind'
i810_memory.c:177: parse error before `)'
i810_memory.c:198: parse error before `)'
i810_memory.c:205: parse error before `bind'
i810_memory.c:208: parse error before `)'
i810_memory.c:325: parse error before `pI810'
i810_memory.c:327: parse error before `)'
i810_memory.c:329: parse error before `pI810'
i810_memory.c:331: parse error before `)'
i810_memory.c:333: parse error before `pI810'
i810_memory.c:335: parse error before `)'
make[7]: Target `all' not remade because of errors.
rm -f fatalerror.o
gcc -c -O2 -ansi -Wall -Wpointer-arith -Wstrict-prototypes
-Wmissing-prototypes -Wmissing-declarations -Wnested-externs -pipe -g
-I. -I../../../../../programs/Xserver/hw/xfree86/common
-I../../../../../programs/Xserver/hw/xfree86/os-support
-I../../../../../programs/Xserver/include
-I../../../../../exports/include/X11 -I../../../../..
-I../../../../../exports/include -Dlinux -D__i386__
-D_POSIX_C_SOURCE=199309L -D_POSIX_SOURCE -D_XOPEN_SOURCE -D_BSD_SOURCE
-D_SVID_SOURCE -D_GNU_SOURCE -DSHAPE -DXINPUT -DXKB -DLBX -DXAPPGROUP
-DXCSECURITY -DTOGCUP -DXF86BIGFONT -DDPMSExtension -DPANORAMIX
-DGCCUSESGAS -DAVOID_GLYPHBLT -DPIXPRIV -DSINGLEDEPTH -DXFreeXDGA
-DXvExtension -DXFree86LOADER -DXFree86Server -DXF86VIDMODE
-DSMART_SCHEDULE -DX_BYTE_ORDER=X_LITTLE_ENDIAN -DNDEBUG
-DFUNCPROTO=15 -DNARROWPROTO fatalerror.c
from fatalerror.c:4:
rm -f verrorf.o
gcc -c -O2 -ansi -Wall -Wpointer-arith -Wstrict-prototypes
-Wmissing-prototypes -Wmissing-declarations -Wnested-externs -pipe -g
-I. -I../../../../../programs/Xserver/hw/xfree86/common
-I../../../../../programs/Xserver/hw/xfree86/os-support
-I../../../../../programs/Xserver/include
-I../../../../../exports/include/X11 -I../../../../..
-I../../../../../exports/include -Dlinux -D__i386__
-D_POSIX_C_SOURCE=199309L -D_POSIX_SOURCE -D_XOPEN_SOURCE -D_BSD_SOURCE
-D_SVID_SOURCE -D_GNU_SOURCE -DSHAPE -DXINPUT -DXKB -DLBX -DXAPPGROUP
-DXCSECURITY -DTOGCUP -DXF86BIGFONT -DDPMSExtension -DPANORAMIX
-DGCCUSESGAS -DAVOID_GLYPHBLT -DPIXPRIV -DSINGLEDEPTH -DXFreeXDGA
-DXvExtension -DXFree86LOADER -DXFree86Server -DXF86VIDMODE
-DSMART_SCHEDULE -DX_BYTE_ORDER=X_LITTLE_ENDIAN -DNDEBUG
-DFUNCPROTO=15 -DNARROWPROTO verrorf.c
from verrorf.c:4:
rm -f verrorfverb.o
gcc -c -O2 -ansi -Wall -Wpointer-arith -Wstrict-prototypes
-Wmissing-prototypes -Wmissing-declarations -Wnested-externs -pipe -g
-I. -I../../../../../programs/Xserver/hw/xfree86/common
-I../../../../../programs/Xserver/hw/xfree86/os-support
-I../../../../../programs/Xserver/include
-I../../../../../exports/include/X11 -I../../../../..
-I../../../../../exports/include -Dlinux -D__i386__
-D_POSIX_C_SOURCE=199309L -D_POSIX_SOURCE -D_XOPEN_SOURCE -D_BSD_SOURCE
-D_SVID_SOURCE -D_GNU_SOURCE -DSHAPE -DXINPUT -DXKB -DLBX -DXAPPGROUP
-DXCSECURITY -DTOGCUP -DXF86BIGFONT -DDPMSExtension -DPANORAMIX
-DGCCUSESGAS -DAVOID_GLYPHBLT -DPIXPRIV -DSINGLEDEPTH -DXFreeXDGA
-DXvExtension -DXFree86LOADER -DXFree86Server -DXF86VIDMODE
-DSMART_SCHEDULE -DX_BYTE_ORDER=X_LITTLE_ENDIAN -DNDEBUG
-DFUNCPROTO=15 -DNARROWPROTO verrorfverb.c
from verrorfverb.c:4:
verrorfverb.c: At top level:
verrorfverb.c:14: warning: no previous prototype for `VErrorFVerb'
rm -f xf86errorf.o
gcc -c -O2 -ansi -Wall -Wpointer-arith -Wstrict-prototypes
-Wmissing-prototypes -Wmissing-declarations -Wnested-externs -pipe -g
-I. -I../../../../../programs/Xserver/hw/xfree86/common
-I../../../../../programs/Xserver/hw/xfree86/os-support
-I../../../../../programs/Xserver/include
-I../../../../../exports/include/X11 -I../../../../..
-I../../../../../exports/include -Dlinux -D__i386__
-D_POSIX_C_SOURCE=199309L -D_POSIX_SOURCE -D_XOPEN_SOURCE -D_BSD_SOURCE
-D_SVID_SOURCE -D_GNU_SOURCE -DSHAPE -DXINPUT -DXKB -DLBX -DXAPPGROUP
-DXCSECURITY -DTOGCUP -DXF86BIGFONT -DDPMSExtension -DPANORAMIX
-DGCCUSESGAS -DAVOID_GLYPHBLT -DPIXPRIV -DSINGLEDEPTH -DXFreeXDGA
-DXvExtension -DXFree86LOADER -DXFree86Server -DXF86VIDMODE
-DSMART_SCHEDULE -DX_BYTE_ORDER=X_LITTLE_ENDIAN -DNDEBUG
-DFUNCPROTO=15 -DNARROWPROTO xf86errorf.c
from xf86errorf.c:4:
rm -f xf86errorfverb.o
gcc -c -O2 -ansi -Wall -Wpointer-arith -Wstrict-prototypes
-Wmissing-prototypes -Wmissing-declarations -Wnested-externs -pipe -g
-I. -I../../../../../programs/Xserver/hw/xfree86/common
-I../../../../../programs/Xserver/hw/xfree86/os-support
-I../../../../../programs/Xserver/include
-I../../../../../exports/include/X11 -I../../../../..
-I../../../../../exports/include -Dlinux -D__i386__
-D_POSIX_C_SOURCE=199309L -D_POSIX_SOURCE -D_XOPEN_SOURCE -D_BSD_SOURCE
-D_SVID_SOURCE -D_GNU_SOURCE -DSHAPE -DXINPUT -DXKB -DLBX -DXAPPGROUP
-DXCSECURITY -DTOGCUP -DXF86BIGFONT -DDPMSExtension -DPANORAMIX
-DGCCUSESGAS -DAVOID_GLYPHBLT -DPIXPRIV -DSINGLEDEPTH -DXFreeXDGA
-DXvExtension -DXFree86LOADER -DXFree86Server -DXF86VIDMODE
-DSMART_SCHEDULE -DX_BYTE_ORDER=X_LITTLE_ENDIAN -DNDEBUG
-DFUNCPROTO=15 -DNARROWPROTO xf86errorfverb.c
from xf86errorfverb.c:4:
ar clq libdummy.a fatalerror.o getvalidbios.o pcitestmulti.o
verrorf.o verrorfverb.o xalloc.o xf86allocscripi.o
xf86drvmsg.o xf86drvmsgverb.o xf86errorf.o
xf86errorfverb.o xf86getpagesize.o xf86getverb.o
xf86info.o xf86msg.o xf86msgverb.o xf86opt.o
xf86screens.o xf86servisinit.o xf86verbose.o
make[4]: Target `all' not remade because of errors.
Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/2.95.2/specs
gcc version 2.95.2 19991024 (release)
/usr/X11R6/lib
/usr/kerberos/lib
/usr/i486-linux-libc5/lib
/usr/lib
/usr/include/bits/string2.h: In function `__mempcpy_small':
/usr/include/bits/string2.h:238: warning: pointer of type `void *' used
in arithmetic
/usr/include/bits/string2.h:242: warning: pointer of type `void *' used
in arithmetic
/usr/include/bits/string2.h:246: warning: pointer of type `void *' used
in arithmetic
/usr/include/bits/string2.h:248: warning: pointer of type `void *' used
in arithmetic
/usr/include/bits/string2.h:252: warning: pointer of type `void *' used
in arithmetic
/usr/include/bits/string2.h:256: warning: pointer of type `void *' used
in arithmetic
/usr/include/bits/string2.h:258: warning: pointer of type `void *' used
in arithmetic
/usr/include/bits/string2.h:262: warning: pointer of type `void *' used
in arithmetic
/usr/include/bits/string2.h:264: warning: pointer of type `void *' used
in arithmetic
/usr/include/bits/string2.h:268: warning: pointer of type `void *' used
in arithmetic
/usr/include/bits/string2.h:270: warning: pointer of type `void *' used
in arithmetic
/usr/include/bits/string2.h:272: warning: pointer of type `void *' used
in arithmetic
/usr/include/bits/string2.h:276: warning: pointer of type `void *' used
in arithmetic
/usr/include/bits/string2.h:278: warning: pointer of type `void *' used
in arithmetic
-- Versions installed: (if some fields are empty or look
-- unusual then possibly you have very old versions)
Linux HAL 2.4.0-test5 #3 Sam Jul 29 19:30:59 CEST 2000 i686 unknown
Kernel modules 2.3.11
Gnu C 2.95.2
Binutils 2.10.0.18
Linux C Library 2.1.3
Dynamic linker ldd (GNU libc) 2.1.3
Procps 2.0.6
Mount 2.10f
Net-tools 1.54
Console-tools 0.3.3
Sh-utils 2.0
Modules Loaded mga
------------------------------
From: Noam Koren <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.development.apps
Subject: Re: siginfo->si_pid and siginfo->si_gid always zero?
Date: Sat, 29 Jul 2000 23:49:04 +0300
The kernel version is 2.2.14-5.0
Noam
Frank V. Castellucci wrote:
> Noam Koren wrote:
> >
> > Hi,
> >
> > I wrote a signal handler that uses the SA_SIGINFO flag and was installed
> > using the sa_sigaction parameter. I did this in order to make use of the
> > siginfo_t which should be passed to the handler (see: man sigaction).
> > However, when the handler is invoked (after a kill(pid,SIGUSR1) in a
> > child process), only the si_signo is filled correctly in the siginfo_t
> > struct (si_uid and si_pid are 0).
> >
> > Any ideas?
> >
> > The handler begins like this:
> > void handler(int signo, siginfo_t * siginfo,ucontext * uc){
> > int a;
> > pid_t b;
> > uid_t c;
> >
> > a=siginfo->si_signo;
> > b=siginfo->si_pid; // this always returns 0
> > c=siginfo->si_uid; // this always returns 0 (yes, even when I am not
> > root...)
> > ...
> > ...
> >
> > }
> >
> > Thanks in advance,
> > Noam
>
> What kernel version, distributions, etc. are you working with?
>
> --
> Frank V. Castellucci
------------------------------
** FOR YOUR REFERENCE **
The service address, to which questions about the list itself and requests
to be added to or deleted from it should be directed, is:
Internet: [EMAIL PROTECTED]
You can send mail to the entire list (and comp.os.linux.development.system) via:
Internet: [EMAIL PROTECTED]
Linux may be obtained via one of these FTP sites:
ftp.funet.fi pub/Linux
tsx-11.mit.edu pub/linux
sunsite.unc.edu pub/Linux
End of Linux-Development-System Digest
******************************