- Timestamp:
- Nov 22, 2000, 3:30:49 PM (25 years ago)
- Location:
- trunk/src/crtdll
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/crtdll/crtdll.def
r4671 r4675 1 ; $Id: crtdll.def,v 1.1 5 2000-11-22 00:49:55phaller Exp $1 ; $Id: crtdll.def,v 1.16 2000-11-22 14:30:48 phaller Exp $ 2 2 3 3 ; … … 113 113 _findfirst = _CRTDLL__findfirst @99 114 114 _findnext = _CRTDLL__findnext @100 115 116 115 _finite = _CRTDLL__finite @101 117 116 _flsbuf = _CRTDLL__flsbuf @102 … … 179 178 _isnan = _CRTDLL__isnan @164 180 179 _itoa = _CRTDLL__itoa @165 180 _itow = _CRTDLL__itow @600 ; @@@PH fix ordinal 181 181 _j0 = _CRTDLL__j0 @166 182 182 _j1 = _CRTDLL__j1 @167 … … 193 193 _lseek = _CRTDLL__lseek @178 194 194 _ltoa = _CRTDLL__ltoa @179 195 _ltow = _CRTDLL__ltow @601 ; @@@PH ordinal missing! 195 196 _makepath = _CRTDLL__makepath @180 196 197 _matherr = _CRTDLL__matherr @181 … … 213 214 _mbscpy = _CRTDLL__mbscpy @198 214 215 _mbscspn = _CRTDLL__mbscspn @199 215 216 216 _mbsdec = _CRTDLL__mbsdec @200 217 217 _mbsdup = _CRTDLL__mbsdup @201 … … 314 314 _strupr = _CRTDLL__strupr @298 315 315 _swab = _CRTDLL__swab @299 316 317 316 _sys_errlist = CRTDLL_sys_errlist @300 318 317 _sys_nerr_dll = CRTDLL_sys_nerr_dll @301 … … 325 324 _tzset = _CRTDLL__tzset @308 326 325 _ultoa = _CRTDLL__ultoa @309 326 _ultow = _CRTDLL__ultow @602 ; @@@PH ordinal missing 327 327 _umask = _CRTDLL__umask @310 328 328 _ungetch = _CRTDLL__ungetch @311 … … 415 415 isprint = _CRTDLL_isprint @398 416 416 ispunct = _CRTDLL_ispunct @399 417 418 417 isspace = _CRTDLL_isspace @400 419 418 isupper = _CRTDLL_isupper @401 … … 516 515 vswprintf = _CRTDLL_vswprintf @498 517 516 vwprintf = _CRTDLL_vwprintf @499 518 519 517 wcscat = _CRTDLL_wcscat @500 520 518 wcschr = _CRTDLL_wcschr @501 … … 542 540 wscanf = _CRTDLL_wscanf @523 543 541 544 _itow = _CRTDLL__itow @600 545 _setjmp3 = _CRTDLL__setjmp3 @601 542 _setjmp3 = _CRTDLL__setjmp3 @603 -
trunk/src/crtdll/dir.c
r4672 r4675 62 62 INT CDECL CRTDLL__chdir(LPCSTR newdir) 63 63 { 64 dprintf(("CRTDLL: _chdir(%s)\n", 65 newdir)); 66 64 67 if (!SetCurrentDirectoryA(newdir)) 65 68 { … … 88 91 char buffer[3] = "A:"; 89 92 buffer[0] += newdrive - 1; 93 94 dprintf(("CRTDLL: _chdrive(%s)\n", 95 buffer)); 96 90 97 if (!SetCurrentDirectoryA( buffer )) 91 98 { … … 114 121 INT CDECL CRTDLL__findclose(DWORD hand) 115 122 { 116 TRACE(":handle %ld\n",hand); 123 dprintf(("CRTDLL: _findclose(%08xh)\n", 124 hand)); 125 117 126 if (!FindClose((HANDLE)hand)) 118 127 { … … 146 155 WIN32_FIND_DATAA find_data; 147 156 HANDLE hfind; 157 158 dprintf(("CRTDLL: _findfirst(%s)\n", 159 fspec)); 148 160 149 161 hfind = FindFirstFileA(fspec, &find_data); … … 178 190 { 179 191 WIN32_FIND_DATAA find_data; 180 192 193 dprintf(("CRTDLL: _findnext(%08xh)\n", 194 hand)); 195 181 196 if (!FindNextFileA(hand, &find_data)) 182 197 { … … 212 227 char dir[_MAX_PATH]; 213 228 int dir_len = GetCurrentDirectoryA(_MAX_PATH,dir); 214 229 230 dprintf(("CRTDLL: _getcwd()\n")); 231 215 232 if (dir_len < 1) 216 233 return NULL; /* FIXME: Real return value untested */ … … 243 260 244 261 static CHAR* dummy; 245 262 263 dprintf(("CRTDLL: _getdcwd()\n")); 264 246 265 if (!drive || drive == CRTDLL__getdrive()) 247 266 return CRTDLL__getcwd(buf,size); /* current */ … … 286 305 DWORD ret[4]; 287 306 UINT err; 288 307 308 dprintf(("CRTDLL: _getdiskfree(%08xh)\n", disk)); 309 289 310 if (disk > 26) 290 311 return ERROR_INVALID_PARAMETER; /* CRTDLL doesn't set errno here */ … … 315 336 // return DRIVE_GetCurrentDrive() + 1; 316 337 317 char buffer[MAX_PATH]; 318 if (!GetCurrentDirectoryA( sizeof(buffer), buffer )) return 0; 319 if (buffer[1] != ':') return 0; 320 return toupper(buffer[0]) - 'A' + 1; 338 char buffer[MAX_PATH]; 339 340 dprintf(("CRTDLL: _getdrive()\n")); 341 342 if (!GetCurrentDirectoryA( sizeof(buffer), buffer )) 343 return 0; 344 if (buffer[1] != ':') 345 return 0; 346 return toupper(buffer[0]) - 'A' + 1; 321 347 } 322 348 … … 329 355 INT CDECL CRTDLL__mkdir(LPCSTR newdir) 330 356 { 357 dprintf(("CRTDLL: _mkdir(%s)\n", 358 newdir)); 359 331 360 if (CreateDirectoryA(newdir,NULL)) 332 361 return 0; … … 344 373 INT CDECL CRTDLL__rmdir(LPSTR dir) 345 374 { 375 dprintf(("CRTDLL: _rmdir(%s)\n", 376 dir)); 377 346 378 if (RemoveDirectoryA(dir)) 347 379 return 0;
Note:
See TracChangeset
for help on using the changeset viewer.