Path: 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 >By the way, O_* are defined in . (Actually in >, but that's included by [SunOS 4.0*].) They are properly defined by including (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 as the place from which to get them: 1) they first appeared in System III, and the documentation there said to get them from , so there was prior art; 2) POSIX says to get them from ; 3) getting them from works on 4.[23]BSD as well; getting them from will probably *not* work on S3 or S5. O_NDELAY is defined in SunOS 4.0 *only* by including , since there are two flavors of no-delay mode, and thus two versions of - 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.