delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/2001/02/28/17:08:54

From: "Mark E." <snowball3 AT bigfoot DOT com>
To: "Eli Zaretskii" <eliz AT is DOT elta DOT co DOT il>, djgpp-workers AT delorie DOT com
Date: Wed, 28 Feb 2001 17:08:54 -0500
MIME-Version: 1.0
Subject: Re: O_TEMPORARY v3
Message-ID: <3A9D30A6.22494.7A725@localhost>
In-reply-to: <1659-Wed28Feb2001232200+0200-eliz@is.elta.co.il>
References: <3A9D10EE DOT 3225 DOT 494F82 AT localhost> (snowball3 AT bigfoot DOT com)
X-mailer: Pegasus Mail for Win32 (v3.12c)
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

>> > however I'm not sure about one change I made:
> > 
> > *************** open(const char* filename, int oflag, .. *** 107,113 ****
> > }  
> > 
> >     if (should_create)
> > !     fd = _creatnew(real_name, dmode, oflag & 0xff);
> >     else
> >     {
> >       fd = _open(real_name, oflag);
> > --- 109,115 ----
> >       }
> > 
> >     if (should_create)
> > !     fd = _creatnew(real_name, dmode, oflag);
> >     else
> >     {
> >       fd = _open(real_name, oflag);
> > 
> > 
> > If the masking with 0xff is neccessary, I can rework that part.
> 
> What is the value of O_TEMPORARY?  (Btw, I don't see the diffs for
> fcntl.h in the patches.)

Here it is:
*** fcntl.h	2001/02/01 19:17:17	1.5
--- fcntl.h	2001/02/28 22:04:12
*************** int	fcntl(int _fildes, int _cmd, ...);
*** 77,82 ****
--- 77,84 ----
  #define O_NOLINK        0x4000
  #define O_NOFOLLOW      0x8000
  
+ #define O_TEMPORARY	0x10000 /* Delete file after closing.  */
+ 
  #define SH_COMPAT	0x0000
  #define SH_DENYRW	0x0010
  #define SH_DENYWR	0x0020

> > + See also @ref{__set_fd_properties} and @ref{__dup_fd_properties}.
> 
> You cannot use "@ref" on its own, you have to say "see" or something
> else.

I'm confused here. Are you saying the phrase "See also" isn't enough?

Mark

- Raw text -


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