Changeset 1222 in kBuild for trunk/src/kash/shfile.c
- Timestamp:
- Oct 8, 2007 12:24:31 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/kash/shfile.c
r1218 r1222 2 2 /** @file 3 3 * 4 * File management. 4 * File management. 5 5 * 6 6 * Copyright (c) 2007 knut st. osmundsen <[email protected]> … … 26 26 27 27 #include "shfile.h" 28 #include <stdlib.h> 28 29 29 #include <stdlib.h> 30 #include <unistd.h> 30 #ifdef KBUILD_OS_WINDOWS 31 //# include <io.h> 32 #else 33 # include <unistd.h> 34 # include <fcntl.h> 35 #endif 31 36 32 37 33 int shfile_open(shfdtab *pfdtab, const char *name, unsigned flags )38 int shfile_open(shfdtab *pfdtab, const char *name, unsigned flags, mode_t mode) 34 39 { 35 return open(name, flags); 40 // return open(name, flags); 41 return -1; 36 42 } 37 43 … … 39 45 int shfile_close(shfdtab *pfdtab, unsigned fd) 40 46 { 41 return close(fd); 47 // return close(fd); 48 return -1; 42 49 } 43 50
Note:
See TracChangeset
for help on using the changeset viewer.