getpwuid() on an embedded system

Hello,
i’ve tried to embedd apache but there is error when it try to do a
getpwuid().
In which .so file is that fct ??
And doesn’t it work on an OS image ??
If not, i can specify the user/group in the conf file… what user/group
should i specify ??
Thanks

Manu <manu@inpres.be> wrote:

Hello,
i’ve tried to embedd apache but there is error when it try to do a
getpwuid().
In which .so file is that fct ??
And doesn’t it work on an OS image ??
If not, i can specify the user/group in the conf file… what user/group
should i specify ??

Do you have a password file? The getpw* functions all expect there to
be a password file at /etc/passwd

If you don’t have one, they will fail.

You can, at least for initial testing, put something in your build file
for the OS image like:

/etc/passwd=/project/sample_passwd

This says to take the host file /project/sample_passwd, include it in
the image, and after booting from the image, have it visible as /etc/passwd.
Of course, this will be a READ-ONLY passwd file.

-David

QNX Training Services
http://www.qnx.com/support/training/
Please followup in this newsgroup if you have further questions.