Re: fcntl example
Tue, 17 May 1994 11:33:39 +0200

> well, you asked for it :) This is the file generated by h2py on the
> Solaris 2.3 version of /usr/include/sys/fcntl.h.

Thanks. I think in the next release there will be a standard way to
regenerate these files from the system headers (though it will be a
while before it will work on all paltforms...).

> (personally, I like the module name more than FCNTL since it
> is more descriptive of what is in there and I hate upper case file names
> unless it really means something. However, I understand the need for
> portability so I will call it whatever it is called in the distribution.)

The idea is that the module is in all uppercase because all (or at
least most) of the identifiers it defines are in all uppercase, so you

There are also a number of hand-produced modules (most SGI specific)
that have the comon prefgix stripped of their symbols, so you can
write e.g. AL.STEREO to correspond with C's AL_STEREO.

--Guido van Rossum, CWI, Amsterdam <>
URL: <>