Making a gpg library
Wesley J Landaker
wjl at mindless.com
Thu Oct 26 09:14:30 CEST 2000
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Wednesday 25 October 2000 11:20pm, Florian Weimer wrote:
> raf <raf at comdyn.com.au> writes:
> > the real problem would arise when a user on a system that doesn't
> > have a special /dev directory (e.g. mswin) creates a /dev directory
> > and a /dev/fd directory and ... and then wonders why gpg hangs
> > instead of reading the normal file /dev/fd/0 (contrived but
> > possible).
> I don't think you can create a \DEV directory on MS Windows. There's
> already a hidden pseudo-directory of this name which contains
> \DEV\NUL, \DEV\CON, and so on.
Actually, the reserved file names "con" and "nul" are there in Windows
(and, surprisingly enough, DOS), but they have nothing to do with a dev
directory. (On my window's system, I have a "\dev" directory that
contains all my config.sys device drivers.)
So on Windows, "dev" isn't anything reserved, but "con" and "nul" and
"clock$" (and a few others) are.
Anyway, this has been mentioned, but I think it's really bad practice
to assume any special file handles exist *by name* is programming
anything like this up. Much better to rely on standard clib system
calls that you know will give you the "right thing".
- --
Wesley J. Landaker - wjl at mindless.com ICQ# 17241646
http://wjl.cjb.net PGP DSS/DH Key: 0x0F338E07
PGPKey FP: 3AAA 424B B488 198E B68B C0E5 390A BACA 0F33 8E07
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.4 (GNU/Linux)
Comment: See www.gnupg.org or www.pgpi.com to obtain PGP software
iEYEARECAAYFAjn4SrgACgkQOQq6yg8zjgcIQACdHRLKhNc6VSi2G5S3YSFVRRMp
OAIAoPzTRK+Jy2/dkGYWkM+JXkOegB7kiEYEARECAAYFAjn4SrgACgkQOQq6yg8z
jgcIQACfV5r7qiQPq/UmEjm0WfTFQJF+3asAnjI99tYACAqpKBVJC8RgwRdAcwDZ
=WfJC
-----END PGP SIGNATURE-----
More information about the Gnupg-devel
mailing list