Article View: comp.sys.sgi.misc
Article #334sproc man page bug?
From: Fernando D. Mato Mira
Date: Fri, 10 Nov 1995 21:06
Date: Fri, 10 Nov 1995 21:06
27 lines
1252 bytes
1252 bytes
The sproc man page says:
int sproc (void (*entry) (void *), unsigned inh, ...);
Type of optional third argument:
void *arg;
and later
If created via sproc the new process will be invoked as follows:
entry(void *arg)
But it doesn't say what happens if `arg' was not passed.
Is there a standard SGI trick to detect the presence of a single optional argument?
I guess what this means is that the new process is called with stack trash otherwise, right?
Thanks in advance,
--
Fernando D. Mato Mira http://ligwww.epfl.ch/matomira.html
Computer Graphics Lab
Swiss Federal Institute of Technology (EPFL) Phone : +41 (21) 693 - 5248
CH-1015 Lausanne FAX : +41 (21) 693 - 5328
Switzerland E-mail : matomira@di.epfl.ch
Technical Details
Message-ID:
<480esd$106@info.epfl.ch>Path:
arc1-ca.pugleaf.net!ligsg2.epfl.ch!matomiraShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!ligsg2.epfl.ch!matomira From: matomira@lig.di.epfl.ch (Fernando D. Mato Mira) Newsgroups: comp.sys.sgi.misc,comp.sys.sgi.bugs,comp.lang.c Subject: sproc man page bug? Date: 10 Nov 1995 21:06:21 GMT Organization: Ecole Polytechnique Federale de Lausanne Distribution: world Message-ID: <480esd$106@info.epfl.ch> NNTP-Posting-Host: ligsg19.epfl.ch