Changeset 1957 for trunk


Ignore:
Timestamp:
May 2, 2005, 6:23:28 AM (20 years ago)
Author:
bird
Message:

O_BINARY is a good idea.

Location:
trunk/src/emx/src/lib/bsd/db
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/emx/src/lib/bsd/db/hash/hash.c

    • Property cvs2svn:cvs-rev changed from 1.2 to 1.3
    r1956 r1957  
    133133        }
    134134        if (file) {
     135#ifdef __EMX__
     136                if ((hashp->fp = _open(file, flags, mode | O_BINARY)) == -1)
     137#else
    135138                if ((hashp->fp = _open(file, flags, mode)) == -1)
     139#endif
    136140                        RETURN_ERROR(errno, error0);
    137141
  • trunk/src/emx/src/lib/bsd/db/recno/rec_open.c

    • Property cvs2svn:cvs-rev changed from 1.3 to 1.4
    r1956 r1957  
    7171
    7272        /* Open the user's file -- if this fails, we're done. */
     73#ifdef __EMX__
     74        if (fname != NULL && (rfd = _open(fname, flags, mode | O_BINARY)) < 0)
     75#else
    7376        if (fname != NULL && (rfd = _open(fname, flags, mode)) < 0)
     77#endif
    7478                return (NULL);
    7579
Note: See TracChangeset for help on using the changeset viewer.