delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/2001/01/03/02:11:55

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 <dj AT delorie DOT com>
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

> In the libc manual for open() there's this piece:
> "	#include <fcntl.h>
> 	#include <sys/stat.h> /* 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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019