Mail Archives: djgpp-workers/2001/02/28/17:08:54
>> > 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 -