diff options
author | luther <luther@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2000-07-15 03:51:17 +0000 |
---|---|---|
committer | luther <luther@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2000-07-15 03:51:17 +0000 |
commit | c0b56448ab4d45903bb4be176f01f9fba5e4dbc6 (patch) | |
tree | 6b252b498ef4746117b4fcd327cbef47a9063127 /PACE/pace/win32 | |
parent | b41fea0097bcd9acdea0a96afcb390d83e0f5f54 (diff) | |
download | ATCD-c0b56448ab4d45903bb4be176f01f9fba5e4dbc6.tar.gz |
Fri Jul 14 22:41:53 2000 Luther J Baker <luther@cs.wustl.edu>
Diffstat (limited to 'PACE/pace/win32')
-rw-r--r-- | PACE/pace/win32/fcntl.inl | 11 | ||||
-rw-r--r-- | PACE/pace/win32/stat.h | 2 |
2 files changed, 7 insertions, 6 deletions
diff --git a/PACE/pace/win32/fcntl.inl b/PACE/pace/win32/fcntl.inl index d7fdc704af6..01bfccb7a4d 100644 --- a/PACE/pace/win32/fcntl.inl +++ b/PACE/pace/win32/fcntl.inl @@ -146,12 +146,13 @@ pace_win32_emulation_creat (const char * path, pace_mode_t mode) } else { - /* POSIX needs an integer - return h; - Should return lowest unused file descriptor but windows - doesn't do that. So we return a (int) casted HANDLE. + /* return h; + + POSIX returns lowest unused file descriptor but windows + doesn't handle files in the same manner. + We return -1 for failure and 1 for success. */ - return (int)*h; + return 1; } } #endif /* PACE_HAS_POSIX_FS_UOF */ diff --git a/PACE/pace/win32/stat.h b/PACE/pace/win32/stat.h index 431b016154b..e04f9fabedf 100644 --- a/PACE/pace/win32/stat.h +++ b/PACE/pace/win32/stat.h @@ -50,7 +50,7 @@ extern "C" { #ifndef PACE_STAT #define PACE_STAT - typedef struct stat pace_stat; + typedef struct stat pace_stat_s; #endif /* PACE_STAT */ #if defined (PACE_HAS_CPLUSPLUS) |