bug-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: getproc() and zsh


From: Roland McGrath
Subject: Re: getproc() and zsh
Date: Mon, 27 Jun 2011 13:05:10 -0700 (PDT)

> zsh started failing to build it static variant on hurd-i386 since we
> added the sendmsg(SCM_RIGHTS) patch. This is because it uses getauth(),
> which thus pulls hurdports.o from libcrt.a, and thus getproc(), for
> which zsh already provides a symbol, and they hence conflict.
> 
> Emilio, do you remember why using getauth(), and not one of
> _hurd_id.rid_auth or __USEPORT?

Using nearly any libc function without a __ prefix in a function like
sendmsg is bogus.  Namespace troubles aside, any libc-internal code
really ought to be using __USEPORT/HURD_PORT_USE rather than paying
the syscall overhead of mach_port_mod_refs+mach_port_deallocate calls.


Thanks,
Roland




reply via email to

[Prev in Thread] Current Thread [Next in Thread]