[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
It should work as expected.
What does execlp return?
What is errno?
What does perror("execlp failed"); print?
Can you send us a piece of code that fails?
What kernel version are you using?
Which compiler version?
From: firstname.lastname@example.org">mailto:email@example.com] On Behalf Of Eric Chapman
Sent: Wednesday, June 02, 2004 9:20 AM
Anyone familiar with the execlp system call:
int execlp(file, arg0 [ , arg1,... , argn ] (char *)0) ?
I am experiencing problems using it in the etrax environment. Compiling the code in question for my host, everything works just fine. But as soon as I compile it with cris and transfer it to a devboard, the call no longer works (everything else works perfectly)
I read something in the C-Standard stating that it very much depends on the implementation how the null-pointer is actually defined, meaning that not all bits must be necessairly 0
Additionally it can be defined as:
#define NULL (void*) 0
#define NULL (0)
Any clues on this?
Lehrstuhl für Nachrichtentechnik
Universität des Saarlandes
Postfach 15 11 50
Tel: +49 681 302 3975
Fax: +49 681 302 3972