os/ossrv/genericopenlibs/openenvcore/include/wchar.h
author sl
Tue, 10 Jun 2014 14:32:02 +0200
changeset 1 260cb5ec6c19
permissions -rw-r--r--
Update contrib.
sl@0
     1
/*-
sl@0
     2
 * Copyright (c)1999 Citrus Project,
sl@0
     3
 * All rights reserved.
sl@0
     4
 *
sl@0
     5
 * Redistribution and use in source and binary forms, with or without
sl@0
     6
 * modification, are permitted provided that the following conditions
sl@0
     7
 * are met:
sl@0
     8
 * 1. Redistributions of source code must retain the above copyright
sl@0
     9
 *    notice, this list of conditions and the following disclaimer.
sl@0
    10
 * 2. Redistributions in binary form must reproduce the above copyright
sl@0
    11
 *    notice, this list of conditions and the following disclaimer in the
sl@0
    12
 *    documentation and/or other materials provided with the distribution.
sl@0
    13
 *
sl@0
    14
 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
sl@0
    15
 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
sl@0
    16
 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
sl@0
    17
 * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
sl@0
    18
 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
sl@0
    19
 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
sl@0
    20
 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
sl@0
    21
 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
sl@0
    22
 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
sl@0
    23
 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
sl@0
    24
 * SUCH DAMAGE.
sl@0
    25
 *
sl@0
    26
 * $FreeBSD: src/include/wchar.h,v 1.45 2004/08/12 12:19:10 tjr Exp $
sl@0
    27
 *
sl@0
    28
 * © Portions Copyright (c) 2006-2007 Nokia Corporation and/or its subsidiary(-ies). All rights reserved.
sl@0
    29
 */
sl@0
    30
sl@0
    31
/*-
sl@0
    32
 * Copyright (c) 1999, 2000 The NetBSD Foundation, Inc.
sl@0
    33
 * All rights reserved.
sl@0
    34
 *
sl@0
    35
 * This code is derived from software contributed to The NetBSD Foundation
sl@0
    36
 * by Julian Coleman.
sl@0
    37
 *
sl@0
    38
 * Redistribution and use in source and binary forms, with or without
sl@0
    39
 * modification, are permitted provided that the following conditions
sl@0
    40
 * are met:
sl@0
    41
 * 1. Redistributions of source code must retain the above copyright
sl@0
    42
 *    notice, this list of conditions and the following disclaimer.
sl@0
    43
 * 2. Redistributions in binary form must reproduce the above copyright
sl@0
    44
 *    notice, this list of conditions and the following disclaimer in the
sl@0
    45
 *    documentation and/or other materials provided with the distribution.
sl@0
    46
 * 4. Neither the name of The NetBSD Foundation nor the names of its
sl@0
    47
 *    contributors may be used to endorse or promote products derived
sl@0
    48
 *    from this software without specific prior written permission.
sl@0
    49
 *
sl@0
    50
 * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
sl@0
    51
 * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
sl@0
    52
 * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
sl@0
    53
 * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
sl@0
    54
 * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
sl@0
    55
 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
sl@0
    56
 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
sl@0
    57
 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
sl@0
    58
 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
sl@0
    59
 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
sl@0
    60
 * POSSIBILITY OF SUCH DAMAGE.
sl@0
    61
 *
sl@0
    62
 *	$NetBSD: wchar.h,v 1.8 2000/12/22 05:31:42 itojun Exp $
sl@0
    63
 */
sl@0
    64
sl@0
    65
#ifndef _WCHAR_H_
sl@0
    66
#define _WCHAR_H_
sl@0
    67
sl@0
    68
#ifdef __cplusplus
sl@0
    69
extern "C"
sl@0
    70
{
sl@0
    71
#endif //__cplusplus
sl@0
    72
sl@0
    73
#include <sys/cdefs.h>
sl@0
    74
#include <sys/_null.h>
sl@0
    75
#include <sys/_types.h>
sl@0
    76
#include <sys/stat.h>
sl@0
    77
#include <stdapis/machine/_limits.h>
sl@0
    78
#include <_ctype.h>
sl@0
    79
#include <_ansi.h>
sl@0
    80
#include <stdio.h>
sl@0
    81
#include <sys/dirent.h>
sl@0
    82
#ifdef __SYMBIAN32__
sl@0
    83
#include <stdarg.h>
sl@0
    84
#ifdef __WINSCW__
sl@0
    85
#ifndef __SOFTFP
sl@0
    86
#define __SOFTFP
sl@0
    87
#endif /* __SOFTFP */
sl@0
    88
#endif//__WINSCW__
sl@0
    89
#endif //__SYMBIAN32__
sl@0
    90
sl@0
    91
#ifndef _MBSTATE_T_DECLARED
sl@0
    92
typedef	__mbstate_t	mbstate_t;
sl@0
    93
#define	_MBSTATE_T_DECLARED
sl@0
    94
#endif
sl@0
    95
sl@0
    96
#ifndef _SIZE_T_DECLARED
sl@0
    97
typedef	__size_t	size_t;
sl@0
    98
#define	_SIZE_T_DECLARED
sl@0
    99
#endif
sl@0
   100
sl@0
   101
#ifndef __SYMBIAN32__
sl@0
   102
#ifndef	__cplusplus
sl@0
   103
#ifndef _WCHAR_T_DECLARED
sl@0
   104
typedef	__wchar_t	wchar_t;
sl@0
   105
#define	_WCHAR_T_DECLARED
sl@0
   106
#endif //_WCHAR_T_DECLARED
sl@0
   107
#endif //__cplusplus
sl@0
   108
#else //__SYMBIAN32__
sl@0
   109
//C++ built-in wchar data type which doesn't clash with the definition of wchar
sl@0
   110
#if !defined _WCHAR_T_DECLARED && defined __cplusplus && defined __WINSCW__
sl@0
   111
#if __option(wchar_type)
sl@0
   112
#define	_WCHAR_T_DECLARED
sl@0
   113
#endif //__option (wchar_type)
sl@0
   114
#endif //__WINSCW__
sl@0
   115
sl@0
   116
#if !defined _WCHAR_T_DECLARED && !defined __wchar_t_defined
sl@0
   117
#if defined __cplusplus
sl@0
   118
#if defined __WINSCW__
sl@0
   119
typedef unsigned short int wchar_t;
sl@0
   120
#define	_WCHAR_T_DECLARED
sl@0
   121
#endif // __WINSCW__
sl@0
   122
#else
sl@0
   123
typedef unsigned short int wchar_t;
sl@0
   124
#define	_WCHAR_T_DECLARED
sl@0
   125
#endif // __cplusplus 
sl@0
   126
#endif // __wchar_t_defined
sl@0
   127
#endif //__SYMBIAN32__
sl@0
   128
sl@0
   129
#ifndef _WINT_T_DECLARED
sl@0
   130
typedef	__wint_t	wint_t;
sl@0
   131
#define	_WINT_T_DECLARED
sl@0
   132
#endif
sl@0
   133
sl@0
   134
#ifndef	WCHAR_MIN 
sl@0
   135
#define	WCHAR_MIN	(wchar_t)__INT_MIN
sl@0
   136
#define	WCHAR_MAX	(wchar_t)__INT_MAX
sl@0
   137
#endif
sl@0
   138
sl@0
   139
#ifndef WEOF
sl@0
   140
#define	WEOF 	((wint_t)-1)
sl@0
   141
#endif
sl@0
   142
sl@0
   143
struct __sFILE;
sl@0
   144
struct tm;
sl@0
   145
sl@0
   146
__BEGIN_DECLS
sl@0
   147
IMPORT_C wint_t	btowc(int);
sl@0
   148
IMPORT_C wint_t	fgetwc(struct __sFILE *);
sl@0
   149
IMPORT_C wchar_t	*
sl@0
   150
	fgetws(wchar_t * __restrict, int, struct __sFILE * __restrict);
sl@0
   151
IMPORT_C wint_t	fputwc(wchar_t, struct __sFILE *);
sl@0
   152
IMPORT_C int	fputws(const wchar_t * __restrict, struct __sFILE * __restrict);
sl@0
   153
IMPORT_C int	fwide(struct __sFILE *, int);
sl@0
   154
IMPORT_C int	fwprintf(struct __sFILE * __restrict, const wchar_t * __restrict, ...);
sl@0
   155
IMPORT_C int	fwscanf(struct __sFILE * __restrict, const wchar_t * __restrict, ...);
sl@0
   156
IMPORT_C wint_t	getwc(struct __sFILE *);
sl@0
   157
IMPORT_C wint_t	getwchar(void);
sl@0
   158
IMPORT_C size_t	mbrlen(const char * __restrict, size_t, mbstate_t * __restrict);
sl@0
   159
IMPORT_C size_t	mbrtowc(wchar_t * __restrict, const char * __restrict, size_t,
sl@0
   160
	    mbstate_t * __restrict);
sl@0
   161
IMPORT_C int	mbsinit(const mbstate_t *);
sl@0
   162
IMPORT_C size_t	mbsrtowcs(wchar_t * __restrict, const char ** __restrict, size_t,
sl@0
   163
	    mbstate_t * __restrict);
sl@0
   164
IMPORT_C wint_t	putwc(wchar_t, struct __sFILE *);
sl@0
   165
IMPORT_C wint_t	putwchar(wchar_t);
sl@0
   166
IMPORT_C int	swprintf(wchar_t * __restrict, size_t n, const wchar_t * __restrict,
sl@0
   167
	    ...);
sl@0
   168
IMPORT_C int	swscanf(const wchar_t * __restrict, const wchar_t * __restrict, ...);
sl@0
   169
IMPORT_C wint_t	ungetwc(wint_t, struct __sFILE *);
sl@0
   170
IMPORT_C int	vfwprintf(struct __sFILE * __restrict, const wchar_t * __restrict,
sl@0
   171
	    va_list);
sl@0
   172
IMPORT_C int	vswprintf(wchar_t * __restrict, size_t n, const wchar_t * __restrict,
sl@0
   173
	    va_list);
sl@0
   174
IMPORT_C int	vwprintf(const wchar_t * __restrict, va_list);
sl@0
   175
IMPORT_C size_t	wcrtomb(char * __restrict, wchar_t, mbstate_t * __restrict);
sl@0
   176
IMPORT_C wchar_t	*wcscat(wchar_t * __restrict, const wchar_t * __restrict);
sl@0
   177
IMPORT_C wchar_t	*wcschr(const wchar_t *, wchar_t) __pure;
sl@0
   178
IMPORT_C int	wcscmp(const wchar_t *, const wchar_t *) __pure;
sl@0
   179
IMPORT_C int	wcscoll(const wchar_t *, const wchar_t *);
sl@0
   180
IMPORT_C wchar_t	*wcscpy(wchar_t * __restrict, const wchar_t * __restrict);
sl@0
   181
IMPORT_C size_t	wcscspn(const wchar_t *, const wchar_t *) __pure;
sl@0
   182
IMPORT_C size_t	wcsftime(wchar_t * __restrict, size_t, const wchar_t * __restrict,
sl@0
   183
	    const struct tm * __restrict);
sl@0
   184
IMPORT_C size_t	wcslen(const wchar_t *) __pure;
sl@0
   185
IMPORT_C wchar_t	*wcsncat(wchar_t * __restrict, const wchar_t * __restrict,
sl@0
   186
	    size_t);
sl@0
   187
IMPORT_C int	wcsncmp(const wchar_t *, const wchar_t *, size_t) __pure;
sl@0
   188
IMPORT_C wchar_t	*wcsncpy(wchar_t * __restrict , const wchar_t * __restrict, size_t);
sl@0
   189
IMPORT_C wchar_t	*wcspbrk(const wchar_t *, const wchar_t *) __pure;
sl@0
   190
IMPORT_C wchar_t	*wcsrchr(const wchar_t *, wchar_t) __pure;
sl@0
   191
IMPORT_C size_t	wcsrtombs(char * __restrict, const wchar_t ** __restrict, size_t,
sl@0
   192
	    mbstate_t * __restrict);
sl@0
   193
IMPORT_C size_t	wcsspn(const wchar_t *, const wchar_t *) __pure;
sl@0
   194
IMPORT_C wchar_t	*wcsstr(const wchar_t * __restrict, const wchar_t * __restrict)
sl@0
   195
	    __pure;
sl@0
   196
IMPORT_C size_t	wcsxfrm(wchar_t * __restrict, const wchar_t * __restrict, size_t);
sl@0
   197
IMPORT_C int	wctob(wint_t);
sl@0
   198
IMPORT_C double	wcstod(const wchar_t * __restrict, wchar_t ** __restrict) __SOFTFP;
sl@0
   199
IMPORT_C wchar_t	*wcstok(wchar_t * __restrict, const wchar_t * __restrict,
sl@0
   200
	    wchar_t ** __restrict);
sl@0
   201
IMPORT_C long	 wcstol(const wchar_t * __restrict, wchar_t ** __restrict, int);
sl@0
   202
IMPORT_C unsigned long
sl@0
   203
	 wcstoul(const wchar_t * __restrict, wchar_t ** __restrict, int);
sl@0
   204
IMPORT_C wchar_t	*wmemchr(const wchar_t *, wchar_t, size_t) __pure;
sl@0
   205
IMPORT_C int	wmemcmp(const wchar_t *, const wchar_t *, size_t) __pure;
sl@0
   206
IMPORT_C wchar_t	*wmemcpy(wchar_t * __restrict, const wchar_t * __restrict, size_t);
sl@0
   207
IMPORT_C wchar_t	*wmemmove(wchar_t *, const wchar_t *, size_t);
sl@0
   208
IMPORT_C wchar_t	*wmemset(wchar_t *, wchar_t, size_t);
sl@0
   209
IMPORT_C int	wprintf(const wchar_t * __restrict, ...);
sl@0
   210
IMPORT_C int	wscanf(const wchar_t * __restrict, ...);
sl@0
   211
#ifdef __SYMBIAN32__
sl@0
   212
IMPORT_C long long 	 wcstoq(const wchar_t * __restrict, wchar_t ** __restrict, int);
sl@0
   213
IMPORT_C unsigned long long wcstouq(const wchar_t * __restrict, wchar_t ** __restrict, int);
sl@0
   214
IMPORT_C wchar_t *wcswcs(const wchar_t * __restrict s, const wchar_t * __restrict find);
sl@0
   215
IMPORT_C int wpopen3 (const wchar_t* file, const wchar_t* cmd, wchar_t** env, int fids[3]);
sl@0
   216
#endif //__SYMBIAN32__
sl@0
   217
sl@0
   218
#ifndef _STDSTREAM_DECLARED
sl@0
   219
extern struct __sFILE *__stdinp;
sl@0
   220
extern struct __sFILE *__stdoutp;
sl@0
   221
extern struct __sFILE *__stderrp;
sl@0
   222
#define	_STDSTREAM_DECLARED
sl@0
   223
#endif
sl@0
   224
sl@0
   225
#ifndef __SYMBIAN32__
sl@0
   226
#define	getwc(fp)	fgetwc(fp)
sl@0
   227
#define	getwchar()	fgetwc(__stdinp)
sl@0
   228
#define	putwc(wc, fp)	fputwc(wc, fp)
sl@0
   229
#define	putwchar(wc)	fputwc(wc, __stdoutp)
sl@0
   230
#else //__SYMBIAN32__
sl@0
   231
IMPORT_C wint_t	getwc(struct __sFILE *);
sl@0
   232
IMPORT_C wint_t	getwchar(void);
sl@0
   233
IMPORT_C wint_t	putwc(wchar_t, struct __sFILE *);
sl@0
   234
IMPORT_C wint_t	putwchar(wchar_t);
sl@0
   235
#endif //__SYMBIAN32__
sl@0
   236
sl@0
   237
sl@0
   238
#if __ISO_C_VISIBLE >= 1999
sl@0
   239
IMPORT_C int	vfwscanf(struct __sFILE * __restrict, const wchar_t * __restrict,
sl@0
   240
	    va_list);
sl@0
   241
IMPORT_C int	vswscanf(const wchar_t * __restrict, const wchar_t * __restrict,
sl@0
   242
	    va_list);
sl@0
   243
IMPORT_C int	vwscanf(const wchar_t * __restrict, va_list);
sl@0
   244
IMPORT_C float	wcstof(const wchar_t * __restrict, wchar_t ** __restrict) __SOFTFP;
sl@0
   245
IMPORT_C long double
sl@0
   246
	wcstold(const wchar_t * __restrict, wchar_t ** __restrict) __SOFTFP;
sl@0
   247
#ifdef __LONG_LONG_SUPPORTED
sl@0
   248
/* LONGLONG */
sl@0
   249
IMPORT_C long long
sl@0
   250
	wcstoll(const wchar_t * __restrict, wchar_t ** __restrict, int);
sl@0
   251
/* LONGLONG */
sl@0
   252
IMPORT_C unsigned long long
sl@0
   253
	 wcstoull(const wchar_t * __restrict, wchar_t ** __restrict, int);
sl@0
   254
#endif
sl@0
   255
#endif	/* __ISO_C_VISIBLE >= 1999 */
sl@0
   256
sl@0
   257
#if __XSI_VISIBLE
sl@0
   258
IMPORT_C int	wcswidth(const wchar_t *, size_t);
sl@0
   259
IMPORT_C int	wcwidth(wchar_t);
sl@0
   260
#ifndef __SYMBIAN32__
sl@0
   261
#define	wcwidth(_c)	__wcwidth(_c)
sl@0
   262
#endif //__SYMBIAN32__
sl@0
   263
#endif
sl@0
   264
sl@0
   265
#if __BSD_VISIBLE
sl@0
   266
sl@0
   267
#ifdef __SYMBIAN_COMPILE_UNUSED__
sl@0
   268
wchar_t	*fgetwln(struct __sFILE * __restrict, size_t * __restrict);
sl@0
   269
#endif
sl@0
   270
sl@0
   271
IMPORT_C size_t	mbsnrtowcs(wchar_t * __restrict, const char ** __restrict, size_t,
sl@0
   272
	    size_t, mbstate_t * __restrict);
sl@0
   273
IMPORT_C size_t	wcsnrtombs(char * __restrict, const wchar_t ** __restrict, size_t,
sl@0
   274
	    size_t, mbstate_t * __restrict);
sl@0
   275
#endif
sl@0
   276
#ifdef __SYMBIAN32__
sl@0
   277
IMPORT_C wchar_t *wcpcpy(wchar_t *dst, const wchar_t *src);
sl@0
   278
IMPORT_C wchar_t *wcpncpy(wchar_t * dst, const wchar_t * src, size_t n);
sl@0
   279
IMPORT_C int wcscasecmp(const wchar_t *s1, const wchar_t *s2);
sl@0
   280
IMPORT_C wchar_t *wcsdup (const wchar_t *srcwcs);
sl@0
   281
IMPORT_C int wcsncasecmp(const wchar_t *s1, const wchar_t *s2, size_t n);
sl@0
   282
IMPORT_C size_t wcsnlen(const wchar_t *s, size_t maxlen);
sl@0
   283
sl@0
   284
IMPORT_C wchar_t* wrealpath (const wchar_t* , wchar_t* );
sl@0
   285
IMPORT_C int wrmdir (const wchar_t *);
sl@0
   286
IMPORT_C int wstat (const wchar_t *name, struct stat *st);
sl@0
   287
IMPORT_C int wsystem (const wchar_t* );
sl@0
   288
IMPORT_C int wunlink (const wchar_t *);
sl@0
   289
IMPORT_C FILE* wpopen( const wchar_t* command, const wchar_t* mode );
sl@0
   290
sl@0
   291
IMPORT_C int wopen(const wchar_t *, int, ...);
sl@0
   292
IMPORT_C FILE 	*wfopen(const wchar_t * __restrict,	const wchar_t * __restrict);
sl@0
   293
IMPORT_C int wrename (const wchar_t *oldpath, const wchar_t *newpath);
sl@0
   294
IMPORT_C int wchdir (const wchar_t *_path);
sl@0
   295
IMPORT_C int wchmod (const wchar_t *_path, mode_t _mode);
sl@0
   296
IMPORT_C  wchar_t* wgetcwd (wchar_t *_buf, size_t _size);
sl@0
   297
IMPORT_C int wmkdir (const wchar_t *_path, mode_t _mode);
sl@0
   298
IMPORT_C int wclosedir (WDIR *dp);
sl@0
   299
IMPORT_C struct wdirent *wreaddir (WDIR *dp);
sl@0
   300
IMPORT_C void wrewinddir (WDIR *dp);
sl@0
   301
IMPORT_C int waccess(const wchar_t *fn, int flags);
sl@0
   302
IMPORT_C int wcreat(const wchar_t* file, mode_t mode);
sl@0
   303
IMPORT_C void wseekdir(WDIR *dp,off_t index);
sl@0
   304
IMPORT_C  off_t wtelldir(const WDIR *dp);
sl@0
   305
IMPORT_C WDIR *wopendir (const wchar_t *_path);
sl@0
   306
sl@0
   307
#define _wcsupr(wcs) 						wcsupr(wcs)
sl@0
   308
#define _wcslwr(wcs) 						wcslwr(wcs)
sl@0
   309
#define _wcsset(wcs, wc) 				wcsset(wcs,wc)
sl@0
   310
#define _wcsnset(wcs, wc, size) 	wcsnset(wcs, wc, size)
sl@0
   311
#define _wcsrev(wcs) 						wcsrev(wcs)
sl@0
   312
#define _wcsicmp(wcs1, wcs2) 		wcsicmp(wcs1, wcs2)
sl@0
   313
#define _wstrdate(datestr) 			wstrdate(datestr)
sl@0
   314
#define _wstrtime(timestr) 			wstrtime(timestr)
sl@0
   315
sl@0
   316
IMPORT_C wchar_t* wcsupr(wchar_t *wcs);
sl@0
   317
IMPORT_C wchar_t* wcslwr(wchar_t *wcs);
sl@0
   318
IMPORT_C wchar_t* wcsset (wchar_t* wcs, wchar_t wc);
sl@0
   319
IMPORT_C wchar_t* wcsnset (wchar_t* wcs, wchar_t wc, size_t maxSize);
sl@0
   320
IMPORT_C wchar_t* wcsrev(wchar_t *wcs);
sl@0
   321
IMPORT_C int wcsicmp(const wchar_t* wcs1,const wchar_t * wcs2);
sl@0
   322
IMPORT_C wchar_t* wstrdate( const wchar_t *dateStr );
sl@0
   323
IMPORT_C wchar_t* wstrtime(const wchar_t *timeStr);
sl@0
   324
IMPORT_C FILE * wfdopen (int fd, const wchar_t *mode);
sl@0
   325
IMPORT_C FILE * wfreopen(const wchar_t * file,const wchar_t * mode,FILE *fp);	
sl@0
   326
IMPORT_C wchar_t* getws(wchar_t* str);
sl@0
   327
IMPORT_C int wremove(const wchar_t *file);
sl@0
   328
IMPORT_C int putws(wchar_t* str);
sl@0
   329
sl@0
   330
struct _wfinddata_t 
sl@0
   331
{
sl@0
   332
    unsigned    attrib;
sl@0
   333
    time_t      time_create;    /* -1 for symbian */
sl@0
   334
    time_t      time_access;    /* -1 for symbian*/
sl@0
   335
    time_t      time_write;
sl@0
   336
    size_t    	size;
sl@0
   337
    wchar_t     name[260];
sl@0
   338
};
sl@0
   339
sl@0
   340
#define _A_ARCH   0x0020		//Archive. Set whenever the file is changed and cleared by the BACKUP command. Value: 0x20.
sl@0
   341
#define _A_HIDDEN 0x0002 		//Hidden file. Not normally seen with the DIR command, unless the /AH option is used. Returns information about normal files and files with this attribute. Value: 0x02.
sl@0
   342
#define _A_NORMAL 0x0000	//Normal. File has no other attributes set and can be read or written to without restriction. Value: 0x00.
sl@0
   343
#define _A_RDONLY 0x0001		//Read-only. File cannot be opened for writing and a file with the same name cannot be created. Value: 0x01.
sl@0
   344
#define _A_SYSTEM  0x0004		//System file. Not normally seen with the DIR command, unless the /A or /A:S option is used
sl@0
   345
#define _A_SUBDIR 0x0010        // Subdirectory.        
sl@0
   346
sl@0
   347
IMPORT_C size_t	wcslcat(wchar_t *, const wchar_t *, size_t);
sl@0
   348
IMPORT_C size_t	 wcslcpy(wchar_t *, const wchar_t *, size_t);
sl@0
   349
IMPORT_C wchar_t *wasctime(const struct tm *);
sl@0
   350
IMPORT_C wchar_t *wctime(const time_t *);
sl@0
   351
IMPORT_C wchar_t *wsetlocale(int, const wchar_t *);
sl@0
   352
IMPORT_C void wperror(const wchar_t *);
sl@0
   353
IMPORT_C wchar_t*	wcserror(int num);
sl@0
   354
IMPORT_C int wfindnext(intptr_t, struct _wfinddata_t *); 
sl@0
   355
IMPORT_C intptr_t wfindfirst(const wchar_t* , struct _wfinddata_t* );
sl@0
   356
IMPORT_C	int findclose( intptr_t handle);
sl@0
   357
sl@0
   358
#define snwprintf swprintf
sl@0
   359
#define vsnwprintf vswprintf
sl@0
   360
sl@0
   361
IMPORT_C int wcsnicmp (const wchar_t *wcs1, const wchar_t *wcs2, size_t n);
sl@0
   362
IMPORT_C int wcsicoll(const wchar_t *wcs1, const wchar_t *wcs2);
sl@0
   363
IMPORT_C int wcsncoll(const wchar_t* wcs1, const wchar_t* wcs2, size_t n);
sl@0
   364
IMPORT_C int wcsnicoll(const wchar_t* wcs1, const wchar_t* wcs2, size_t n);
sl@0
   365
IMPORT_C wchar_t* wtmpnam(wchar_t *s);
sl@0
   366
sl@0
   367
#if defined(SYMBIAN_OE_LARGE_FILE_SUPPORT) && !defined(SYMBIAN_OE_NO_LFS)
sl@0
   368
#define	wfopen64	wfopen
sl@0
   369
#define wfreopen64	wfreopen
sl@0
   370
#define wstat64		wstat
sl@0
   371
#define wcreat64	wcreat
sl@0
   372
#define wopen64		wopen
sl@0
   373
#define wreaddir64	wreaddir
sl@0
   374
#endif /* SYMBIAN_OE_LARGE_FILE_SUPPORT && !SYMBIAN_OE_NO_LFS */
sl@0
   375
	
sl@0
   376
sl@0
   377
#endif //__SYMBIAN32__
sl@0
   378
__END_DECLS
sl@0
   379
sl@0
   380
#ifdef __cplusplus
sl@0
   381
}
sl@0
   382
#endif //__cplusplus
sl@0
   383
#endif /* !_WCHAR_H_ */