Ignore:
Timestamp:
Jul 30, 2010, 1:01:07 PM (15 years ago)
Author:
dmik
Message:

Added more wide character versions of RT functions to minivcrt.lib.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/msvcrt/file.c

    r21395 r21402  
    3535#include <time.h>
    3636
     37#ifndef __MINIVCRT__
    3738
    3839#include "winternl.h"
     
    5960WINE_DEFAULT_DEBUG_CHANNEL(msvcrt);
    6061
     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
    6180/* for stat mode, permissions apply to all,owner and group */
    6281#define MSVCRT_S_IREAD  (_S_IREAD  | (_S_IREAD  >> 3) | (_S_IREAD  >> 6))
     
    6685/* _access() bit flags FIXME: incomplete */
    6786#define MSVCRT_W_OK      0x02
    68 
    6987
    7088/* FIXME: Make this dynamic */
     
    94112static const unsigned int COM = 'c' << 16 | 'o' << 8 | 'm';
    95113
     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
    96130#define TOUL(x) (ULONGLONG)(x)
    97131static const ULONGLONG WCEXE = TOUL('e') << 32 | TOUL('x') << 16 | TOUL('e');
     
    99133static const ULONGLONG WCCMD = TOUL('c') << 32 | TOUL('m') << 16 | TOUL('d');
    100134static const ULONGLONG WCCOM = TOUL('c') << 32 | TOUL('o') << 16 | TOUL('m');
     135
     136#ifndef __MINIVCRT__
    101137
    102138extern CRITICAL_SECTION MSVCRT_file_cs;
     
    296332}
    297333
     334#endif /* !__MINIVCRT__ */
     335
    298336/*********************************************************************
    299337 *              _waccess (MSVCRT.@)
     
    318356}
    319357
     358#ifndef __MINIVCRT__
     359
    320360/*********************************************************************
    321361 *              _chmod (MSVCRT.@)
     
    339379}
    340380
     381#endif /* !__MINIVCRT__ */
     382
    341383/*********************************************************************
    342384 *              _wchmod (MSVCRT.@)
     
    359401  return -1;
    360402}
     403
     404#ifndef __MINIVCRT__
    361405
    362406/*********************************************************************
     
    373417}
    374418
     419#endif /* !__MINIVCRT__ */
     420
    375421/*********************************************************************
    376422 *              _wunlink (MSVCRT.@)
     
    385431  return -1;
    386432}
     433
     434#ifndef __MINIVCRT__
    387435
    388436/*********************************************************************
     
    870918}
    871919
     920#endif /* !__MINIVCRT__ */
     921
    872922/*********************************************************************
    873923 *              _wmktemp (MSVCRT.@)
     
    903953  return NULL;
    904954}
     955
     956#ifndef __MINIVCRT__
    905957
    906958/*********************************************************************
     
    13101362}
    13111363
     1364#endif /* !__MINIVCRT__ */
     1365
    13121366/*********************************************************************
    13131367 *              _wstat (MSVCRT.@)
     
    13711425}
    13721426
     1427#ifndef __MINIVCRT__
     1428
    13731429/*********************************************************************
    13741430 *              _tell (MSVCRT.@)
     
    13961452}
    13971453
     1454#endif /* !__MINIVCRT__ */
     1455
    13981456/*********************************************************************
    13991457 *              _wtempnam (MSVCRT.@)
     
    14121470  return NULL;
    14131471}
     1472
     1473#ifndef __MINIVCRT__
    14141474
    14151475/*********************************************************************
     
    22412301}
    22422302
     2303#endif /* !__MINIVCRT__ */
     2304
    22432305/*********************************************************************
    22442306 *              _wremove (MSVCRT.@)
     
    22542316}
    22552317
     2318#ifndef __MINIVCRT__
     2319
    22562320/*********************************************************************
    22572321 *              scanf (MSVCRT.@)
     
    22952359}
    22962360
     2361#endif /* !__MINIVCRT__ */
     2362
    22972363/*********************************************************************
    22982364 *              _wrename (MSVCRT.@)
     
    23072373  return -1;
    23082374}
     2375
     2376#ifndef __MINIVCRT__
    23092377
    23102378/*********************************************************************
     
    25452613  return 0;
    25462614}
     2615
     2616#endif /* !__MINIVCRT__ */
Note: See TracChangeset for help on using the changeset viewer.