Changeset 21402 for trunk/src/msvcrt/file.c
- Timestamp:
- Jul 30, 2010, 1:01:07 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/msvcrt/file.c
r21395 r21402 35 35 #include <time.h> 36 36 37 #ifndef __MINIVCRT__ 37 38 38 39 #include "winternl.h" … … 59 60 WINE_DEFAULT_DEBUG_CHANNEL(msvcrt); 60 61 62 #else /* !__MINIVCRT__ */ 63 64 #include <fcntl.h> 65 #include <sys/stat.h> 66 #include <wctype.h> 67 68 #include <winerror.h> 69 70 #include "minivcrt.h" 71 #include "minivcrt_internal.h" 72 73 #include "winternl.h" 74 #include "wine/unicode.h" 75 76 #endif /* !__MINIVCRT__ */ 77 78 #ifndef __MINIVCRT__ 79 61 80 /* for stat mode, permissions apply to all,owner and group */ 62 81 #define MSVCRT_S_IREAD (_S_IREAD | (_S_IREAD >> 3) | (_S_IREAD >> 6)) … … 66 85 /* _access() bit flags FIXME: incomplete */ 67 86 #define MSVCRT_W_OK 0x02 68 69 87 70 88 /* FIXME: Make this dynamic */ … … 94 112 static const unsigned int COM = 'c' << 16 | 'o' << 8 | 'm'; 95 113 114 #else /* !__MINIVCRT__ */ 115 116 /* for stat mode, permissions apply to all,owner and group */ 117 #define MSVCRT_S_IREAD (S_IRUSR | S_IRGRP | S_IROTH) 118 #define MSVCRT_S_IWRITE (S_IWUSR | S_IWGRP | S_IWOTH) 119 #define MSVCRT_S_IEXEC (S_IXUSR | S_IXGRP | S_IXOTH) 120 121 #define MSVCRT_W_OK W_OK 122 #define _S_IWRITE S_IWUSR 123 #define _S_IFDIR S_IFDIR 124 #define _S_IFREG S_IFREG 125 126 #define MSVCRT_iswalpha iswalpha 127 128 #endif /* !__MINIVCRT__ */ 129 96 130 #define TOUL(x) (ULONGLONG)(x) 97 131 static const ULONGLONG WCEXE = TOUL('e') << 32 | TOUL('x') << 16 | TOUL('e'); … … 99 133 static const ULONGLONG WCCMD = TOUL('c') << 32 | TOUL('m') << 16 | TOUL('d'); 100 134 static const ULONGLONG WCCOM = TOUL('c') << 32 | TOUL('o') << 16 | TOUL('m'); 135 136 #ifndef __MINIVCRT__ 101 137 102 138 extern CRITICAL_SECTION MSVCRT_file_cs; … … 296 332 } 297 333 334 #endif /* !__MINIVCRT__ */ 335 298 336 /********************************************************************* 299 337 * _waccess (MSVCRT.@) … … 318 356 } 319 357 358 #ifndef __MINIVCRT__ 359 320 360 /********************************************************************* 321 361 * _chmod (MSVCRT.@) … … 339 379 } 340 380 381 #endif /* !__MINIVCRT__ */ 382 341 383 /********************************************************************* 342 384 * _wchmod (MSVCRT.@) … … 359 401 return -1; 360 402 } 403 404 #ifndef __MINIVCRT__ 361 405 362 406 /********************************************************************* … … 373 417 } 374 418 419 #endif /* !__MINIVCRT__ */ 420 375 421 /********************************************************************* 376 422 * _wunlink (MSVCRT.@) … … 385 431 return -1; 386 432 } 433 434 #ifndef __MINIVCRT__ 387 435 388 436 /********************************************************************* … … 870 918 } 871 919 920 #endif /* !__MINIVCRT__ */ 921 872 922 /********************************************************************* 873 923 * _wmktemp (MSVCRT.@) … … 903 953 return NULL; 904 954 } 955 956 #ifndef __MINIVCRT__ 905 957 906 958 /********************************************************************* … … 1310 1362 } 1311 1363 1364 #endif /* !__MINIVCRT__ */ 1365 1312 1366 /********************************************************************* 1313 1367 * _wstat (MSVCRT.@) … … 1371 1425 } 1372 1426 1427 #ifndef __MINIVCRT__ 1428 1373 1429 /********************************************************************* 1374 1430 * _tell (MSVCRT.@) … … 1396 1452 } 1397 1453 1454 #endif /* !__MINIVCRT__ */ 1455 1398 1456 /********************************************************************* 1399 1457 * _wtempnam (MSVCRT.@) … … 1412 1470 return NULL; 1413 1471 } 1472 1473 #ifndef __MINIVCRT__ 1414 1474 1415 1475 /********************************************************************* … … 2241 2301 } 2242 2302 2303 #endif /* !__MINIVCRT__ */ 2304 2243 2305 /********************************************************************* 2244 2306 * _wremove (MSVCRT.@) … … 2254 2316 } 2255 2317 2318 #ifndef __MINIVCRT__ 2319 2256 2320 /********************************************************************* 2257 2321 * scanf (MSVCRT.@) … … 2295 2359 } 2296 2360 2361 #endif /* !__MINIVCRT__ */ 2362 2297 2363 /********************************************************************* 2298 2364 * _wrename (MSVCRT.@) … … 2307 2373 return -1; 2308 2374 } 2375 2376 #ifndef __MINIVCRT__ 2309 2377 2310 2378 /********************************************************************* … … 2545 2613 return 0; 2546 2614 } 2615 2616 #endif /* !__MINIVCRT__ */
Note:
See TracChangeset
for help on using the changeset viewer.