Article View: comp.sys.sun
Article #12692Re: drawing to the root window (hack hack)
From: Guy Harris
Date: Tue, 09 May 1989 09:06
Date: Tue, 09 May 1989 09:06
22 lines
1538 bytes
1538 bytes
>By the way, O_* are defined in <sys/file.h>. (Actually in
><sys/fcntlcom.h>, but that's included by <sys/file.h> [SunOS 4.0*].)
They are properly defined by including <fcntl.h> (note that the 4.0 "open"
and "fcntl" man pages indicate this - it's true of pre-4.0 releases as
well); Berkeley screwed up by documenting <sys/file.h> as the place from
which to get them:
1) they first appeared in System III, and the documentation there
said to get them from <fcntl.h>, so there was prior art;
2) POSIX says to get them from <fcntl.h>;
3) getting them from <fcntl.h> works on 4.[23]BSD as well;
getting them from <sys/file.h> will probably *not* work on S3
or S5.
O_NDELAY is defined in SunOS 4.0 *only* by including <fcntl.h>, since
there are two flavors of no-delay mode, and thus two versions of <fcntl.h>
- the 4BSD-environment one ("/usr/include/fcntl.h") defines it one way,
and the S5-environment one ("/usr/5include/fcntl.h") defines it another
way.
Technical Details
Message-ID:
<1515@auspex.auspex.com>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!husc6!rice!sun-spots-requestReferences:
<8903311702.AA03117@lti.com>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!husc6!rice!sun-spots-request From: auspex!guy@uunet.uu.net (Guy Harris) Newsgroups: comp.sys.sun Subject: Re: drawing to the root window (hack hack) Keywords: Software Message-ID: <1515@auspex.auspex.com> Date: 9 May 89 09:06:42 GMT References: <8903311702.AA03117@lti.com> Sender: usenet@rice.edu Organization: Auspex Systems, Santa Clara Lines: 22 Approved: Sun-Spots@rice.edu Original-Date: 28 Apr 89 11:20:32 GMT X-Sun-Spots-Digest: Volume 7, Issue 278, message 11 of 24