>PS: May be the getprotobyname doesn't look directly in /etc/protocols, but 
>first in /etc/nsswitch.conf ?

If you are using libc 6 then yes, calls like getprotobyname use nsswitch.conf 
to determine where to look.  I don't think this is the case with libc 4, 
though I could be wrong about that.

You can probably find out what's going on by using strace on the failing 
program.

>programs use an another function called getservbyname ( it is more or less the
>same than getprotobyname, except looking in /etc/services). I tried to find
>where these functions are defined, but they are both defined as "extern", and
>there is no more definition. Does anybody know what does that mean ? It is
>defined in a module that should be inserted in the kernel ?

They are provided by the shared C library.  See the glibc manual.

p.


unsubscribe: body of `unsubscribe linux-arm' to [EMAIL PROTECTED]

Reply via email to