[issue1555] [PATCH] dma: changes for Linux compilation

Thomas E. Spanjaard tgen at netphreax.net
Sat Oct 3 11:09:02 PDT 2009


Simon 'corecode' Schubert wrote:
> Michel Salim (via DragonFly issue tracker) wrote:
>> - My simplistic definition of getprogname() -- is it safe to just make
>> it always
>>   return "dma" ? Linux has no functional equivalent
> 
> No, you can't.  dma can also act as "mailq", and should do so if called
> with this name.  It seems that glibc provides
> program_invocation_short_name.

What about just taking argv[0] early on?

Cheers,
-- 
	Thomas E. Spanjaard
	tgen at netphreax.net
	tgen at deepbone.net

Attachment:
signature.asc
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pgp00000.pgp
Type: application/octet-stream
Size: 194 bytes
Desc: "Description: OpenPGP digital signature"
URL: <http://lists.dragonflybsd.org/pipermail/bugs/attachments/20091003/efd39590/attachment-0022.obj>


More information about the Bugs mailing list