Changeset 2085 for Whitix/branches/netchannel/user/posix/file/file.c
- Timestamp:
- 05/20/10 16:05:25 (2 years ago)
- Files:
-
- 1 modified
-
Whitix/branches/netchannel/user/posix/file/file.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
Whitix/branches/netchannel/user/posix/file/file.c
r1362 r2085 10 10 #include <syscalls.h> 11 11 12 #include "internal.h" 13 12 14 /* Sanity check these functions */ 13 15 … … 89 91 int close(int fd) 90 92 { 91 return SysClose(fd); 93 struct PosixFile* file = PosixHandleToFile(fd); 94 int ret = -1; 95 96 if (file && file->type && file->type->close) 97 { 98 ret = file->type->close(file); 99 100 if (ret == 0) 101 { 102 printf("close: free entry in table.\n"); 103 } 104 } 105 106 return ret; 92 107 } 93 108
