Date: Wed, 3 Jan 2001 02:11:48 -0500 Message-Id: <200101030711.CAA04923@envy.delorie.com> X-Authentication-Warning: envy.delorie.com: dj set sender to dj AT envy DOT delorie DOT com using -f From: DJ Delorie To: djgpp-workers AT delorie DOT com In-reply-to: <200101030709.IAA01523@father.ludd.luth.se> (message from Martin Str|mberg on Wed, 3 Jan 2001 08:09:35 +0100 (MET)) Subject: Re: Nitpicking: open docs and "for mode definitions" References: <200101030709 DOT IAA01523 AT father DOT ludd DOT luth DOT se> Reply-To: djgpp-workers AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: djgpp-workers AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk > In the libc manual for open() there's this piece: > " #include > #include /* for mode definitions */" > > Now it seems the mode definitions are in fcntl.h and not in > sys/stat.h. Does it matter? No, these, for the third parameter: #define S_IRUSR 00400 #define S_IRGRP 00040 #define S_IROTH 00004 #define S_IWUSR 00200 #define S_IWGRP 00020 #define S_IWOTH 00002 #define S_IXUSR 00100 #define S_IXGRP 00010 #define S_IXOTH 00001 #define S_IRWXU 00700 #define S_IRWXG 00070 #define S_IRWXO 00007