[uClinux-dev] system call for process file name

Kendrick Hamilton hamilton at sedsystems.ca
Wed Mar 26 16:17:29 EST 2003


I don't know if there is one but you may want to use argv[0]. main is 
typicalled called
int main(int argc, char **argv);
argv[0] is the first parameter used to run the program. This does not have 
to be the filename of the executable (look at busybox for an example of it 
not).


-- 
Kendrick Hamilton E.I.T.
SED Systems, a division of Calian Ltd.
18 Innovation Blvd.
PO Box 1464
Saskatoon, Saskatchewan
Canada
S7N 3R1

Hamilton at sedsystems.ca
Tel: (306) 933-1453
Fax: (306) 933-1486




More information about the uClinux-dev mailing list