Re: [issue1555] [PATCH] dma: changes for Linux compilation
This is an OpenPGP/MIME signed message (RFC 2440 and 3156)
--------------enig055A8B6881266714BDB20380
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
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
>=20
> 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,
--=20
Thomas E. Spanjaard
tgen@netphreax.net
tgen@deepbone.net
--------------enig055A8B6881266714BDB20380
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (NetBSD)
iEYEARECAAYFAkrHktsACgkQ6xCMwBJ+1+s9lQCeKlqJy4TREFy99z3wkktk2NBh
HX8An1qPuqgiBX2yk4TKTK43smoCBc10
=Bpx9
-----END PGP SIGNATURE-----
--------------enig055A8B6881266714BDB20380--
討論串 (同標題文章)
完整討論串 (本文為第 3 之 3 篇):