Changeset 2703 in kBuild
- Timestamp:
- Nov 21, 2013 12:26:35 AM (11 years ago)
- Location:
- trunk/src/lib/nt
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/nt/nthlpcore.c
r2702 r2703 34 34 #include <errno.h> 35 35 #include "nthlp.h" 36 #if 136 #ifndef NDEBUG 37 37 # include <stdio.h> 38 38 #endif … … 223 223 return EEXIST; 224 224 /* EXDEV = 18 */ 225 case STATUS_NOT_SAME_DEVICE: 226 return EXDEV; 225 227 /* ENODEV = 19 */ 226 228 /* ENOTDIR = 20 */ … … 344 346 } 345 347 346 #if 1348 #ifndef NDEBUG 347 349 __debugbreak(); 348 350 fprintf(stderr, "rcNt=%#x (%d)\n", rcNt, rcNt); … … 410 412 case ERROR_TOO_MANY_LINKS: errno = EMLINK; break; 411 413 #endif 414 415 case ERROR_SHARING_VIOLATION: 416 errno = ETXTBSY; 417 break; 412 418 } 413 419 -
trunk/src/lib/nt/nthlpfs.c
r2702 r2703 168 168 case FILE_OVERWRITE_IF: fW32Disp = CREATE_ALWAYS; break; 169 169 default: 170 # ifndef NDEBUG 170 171 __debugbreak(); 172 # endif 171 173 return INVALID_HANDLE_VALUE; 172 174 } … … 195 197 birdSetErrnoFromWin32(dwErr); 196 198 197 #else 199 #else /* !BIRD_USE_WIN32 */ 200 198 201 /* 199 202 * Call the NT API directly. … … 230 233 } 231 234 232 #endif 235 #endif /* !BIRD_USE_WIN32 */ 233 236 return INVALID_HANDLE_VALUE; 234 237 } -
trunk/src/lib/nt/ntstat.c
r2702 r2703 358 358 359 359 /* On things like pagefile.sys we may get sharing violation. */ 360 if ( GetLastError() == ERROR_SHARING_VIOLATION)360 if (errno == ETXTBSY) 361 361 { 362 362 /** @todo Fall back on the parent directory enum if we run into a sharing … … 365 365 rc = -1; 366 366 } 367 368 #if 1369 if (strchr(pszPath, ';'))370 __debugbreak();371 #endif372 367 373 368 return rc;
Note:
See TracChangeset
for help on using the changeset viewer.