DragonFly BSD
DragonFly bugs List (threaded) for 2009-10
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

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


From: "Thomas E. Spanjaard" <tgen@xxxxxxxxxxxxx>
Date: Sat, 03 Oct 2009 18:07:18 +0000

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@netphreax.net
	tgen@deepbone.net

Attachment: signature.asc
Description: OpenPGP digital signature



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