Changeset 4675 for trunk/src


Ignore:
Timestamp:
Nov 22, 2000, 3:30:49 PM (25 years ago)
Author:
phaller
Message:

.

Location:
trunk/src/crtdll
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/crtdll/crtdll.def

    r4671 r4675  
    1 ; $Id: crtdll.def,v 1.15 2000-11-22 00:49:55 phaller Exp $
     1; $Id: crtdll.def,v 1.16 2000-11-22 14:30:48 phaller Exp $
    22
    33;
     
    113113    _findfirst                  = _CRTDLL__findfirst            @99
    114114    _findnext                   = _CRTDLL__findnext             @100
    115 
    116115    _finite                     = _CRTDLL__finite               @101
    117116    _flsbuf                     = _CRTDLL__flsbuf               @102
     
    179178    _isnan                      = _CRTDLL__isnan                @164
    180179    _itoa                       = _CRTDLL__itoa                 @165
     180    _itow                       = _CRTDLL__itow                 @600 ; @@@PH fix ordinal
    181181    _j0                         = _CRTDLL__j0                   @166
    182182    _j1                         = _CRTDLL__j1                   @167
     
    193193    _lseek                      = _CRTDLL__lseek                @178
    194194    _ltoa                       = _CRTDLL__ltoa                 @179
     195    _ltow                       = _CRTDLL__ltow                 @601   ; @@@PH ordinal missing!
    195196    _makepath                   = _CRTDLL__makepath             @180
    196197    _matherr                    = _CRTDLL__matherr              @181
     
    213214    _mbscpy                     = _CRTDLL__mbscpy               @198
    214215    _mbscspn                    = _CRTDLL__mbscspn              @199
    215 
    216216    _mbsdec                     = _CRTDLL__mbsdec               @200
    217217    _mbsdup                     = _CRTDLL__mbsdup               @201
     
    314314    _strupr                     = _CRTDLL__strupr               @298
    315315    _swab                       = _CRTDLL__swab                 @299
    316 
    317316    _sys_errlist                = CRTDLL_sys_errlist            @300
    318317    _sys_nerr_dll               = CRTDLL_sys_nerr_dll           @301
     
    325324    _tzset                      = _CRTDLL__tzset                @308
    326325    _ultoa                      = _CRTDLL__ultoa                @309
     326    _ultow                      = _CRTDLL__ultow                @602 ; @@@PH ordinal missing
    327327    _umask                      = _CRTDLL__umask                @310
    328328    _ungetch                    = _CRTDLL__ungetch              @311
     
    415415    isprint                     = _CRTDLL_isprint               @398
    416416    ispunct                     = _CRTDLL_ispunct               @399
    417 
    418417    isspace                     = _CRTDLL_isspace               @400
    419418    isupper                     = _CRTDLL_isupper               @401
     
    516515    vswprintf                   = _CRTDLL_vswprintf             @498
    517516    vwprintf                    = _CRTDLL_vwprintf              @499
    518 
    519517    wcscat                      = _CRTDLL_wcscat                @500
    520518    wcschr                      = _CRTDLL_wcschr                @501
     
    542540    wscanf                      = _CRTDLL_wscanf                @523
    543541
    544     _itow                       = _CRTDLL__itow                 @600
    545     _setjmp3                    = _CRTDLL__setjmp3              @601
     542    _setjmp3                    = _CRTDLL__setjmp3              @603
  • trunk/src/crtdll/dir.c

    r4672 r4675  
    6262INT CDECL CRTDLL__chdir(LPCSTR newdir)
    6363{
     64  dprintf(("CRTDLL: _chdir(%s)\n",
     65          newdir));
     66 
    6467  if (!SetCurrentDirectoryA(newdir))
    6568  {
     
    8891  char buffer[3] = "A:";
    8992  buffer[0] += newdrive - 1;
     93 
     94  dprintf(("CRTDLL: _chdrive(%s)\n",
     95          buffer));
     96 
    9097  if (!SetCurrentDirectoryA( buffer ))
    9198  {
     
    114121INT CDECL CRTDLL__findclose(DWORD hand)
    115122{
    116   TRACE(":handle %ld\n",hand);
     123  dprintf(("CRTDLL: _findclose(%08xh)\n",
     124          hand));
     125 
    117126  if (!FindClose((HANDLE)hand))
    118127  {
     
    146155  WIN32_FIND_DATAA find_data;
    147156  HANDLE hfind;
     157 
     158  dprintf(("CRTDLL: _findfirst(%s)\n",
     159          fspec));
    148160
    149161  hfind  = FindFirstFileA(fspec, &find_data);
     
    178190{
    179191  WIN32_FIND_DATAA find_data;
    180 
     192 
     193  dprintf(("CRTDLL: _findnext(%08xh)\n",
     194          hand));
     195 
    181196  if (!FindNextFileA(hand, &find_data))
    182197  {
     
    212227  char dir[_MAX_PATH];
    213228  int dir_len = GetCurrentDirectoryA(_MAX_PATH,dir);
    214 
     229 
     230  dprintf(("CRTDLL: _getcwd()\n"));
     231 
    215232  if (dir_len < 1)
    216233    return NULL; /* FIXME: Real return value untested */
     
    243260 
    244261  static CHAR* dummy;
    245 
     262 
     263  dprintf(("CRTDLL: _getdcwd()\n"));
     264 
    246265  if (!drive || drive == CRTDLL__getdrive())
    247266    return CRTDLL__getcwd(buf,size); /* current */
     
    286305  DWORD ret[4];
    287306  UINT err;
    288 
     307 
     308  dprintf(("CRTDLL: _getdiskfree(%08xh)\n", disk));
     309 
    289310  if (disk > 26)
    290311    return ERROR_INVALID_PARAMETER; /* CRTDLL doesn't set errno here */
     
    315336  // return DRIVE_GetCurrentDrive() + 1;
    316337 
    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;
    321347}
    322348
     
    329355INT CDECL CRTDLL__mkdir(LPCSTR newdir)
    330356{
     357  dprintf(("CRTDLL: _mkdir(%s)\n",
     358          newdir));
     359 
    331360  if (CreateDirectoryA(newdir,NULL))
    332361    return 0;
     
    344373INT CDECL CRTDLL__rmdir(LPSTR dir)
    345374{
     375  dprintf(("CRTDLL: _rmdir(%s)\n",
     376          dir));
     377 
    346378  if (RemoveDirectoryA(dir))
    347379    return 0;
Note: See TracChangeset for help on using the changeset viewer.