source: trunk/dports/editors/jove/files/patch-io.c.diff @ 2311

Last change on this file since 2311 was 2311, checked in by michaelm, 17 years ago

new port: Jove.
Bug: 387
Submitted by: vivek@…
Reviewed by:
Approved by:
Obtained from:

  • Property svn:eol-style set to native
File size: 465 bytes
  • io.c

    old new  
    11931193#endif
    11941194                );
    11951195        tfname = copystr(buf);
     1196#ifdef NO_MKSTEMP
    11961197        tfname = mktemp(tfname);
     1198#endif
    11971199#ifndef MSFILESYSTEM
     1200#ifndef NO_MKSTEMP
     1201        tmpfd = mkstemp(tfname);
     1202#else
    11981203        (void) close(creat(tfname, 0600));
    11991204        tmpfd = open(tfname, 2);
     1205#endif
    12001206#else /* MSFILESYSTEM */
    12011207        tmpfd = open(tfname, O_CREAT|O_EXCL|O_BINARY|O_RDWR, S_IWRITE|S_IREAD);
    12021208#endif /* MSFILESYSTEM */
Note: See TracBrowser for help on using the repository browser.