mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 10:04:49 +00:00
Not sure quite how these changed seeing as they're to go shortly I just want to clear my CVS for now.
svn path=/trunk/; revision=3776
This commit is contained in:
parent
1b66fde766
commit
29f20a14b6
17 changed files with 127 additions and 105 deletions
|
@ -25,9 +25,9 @@
|
|||
* DISCLAMED. This includes but is not limited to warranties of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
||||
*
|
||||
* $Revision: 1.2 $
|
||||
* $Author: ariadne $
|
||||
* $Date: 1999/04/14 07:10:15 $
|
||||
* $Revision: 1.3 $
|
||||
* $Author: robd $
|
||||
* $Date: 2002/11/24 18:09:56 $
|
||||
*
|
||||
*/
|
||||
|
||||
|
|
|
@ -18,9 +18,9 @@
|
|||
* DISCLAMED. This includes but is not limited to warranties of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
||||
*
|
||||
* $Revision: 1.3 $
|
||||
* $Author: ariadne $
|
||||
* $Date: 1999/04/02 21:42:06 $
|
||||
* $Revision: 1.4 $
|
||||
* $Author: robd $
|
||||
* $Date: 2002/11/24 18:09:56 $
|
||||
*
|
||||
*/
|
||||
|
||||
|
|
|
@ -19,9 +19,9 @@
|
|||
* DISCLAMED. This includes but is not limited to warranties of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
||||
*
|
||||
* $Revision: 1.4 $
|
||||
* $Author: ariadne $
|
||||
* $Date: 1999/04/27 06:16:04 $
|
||||
* $Revision: 1.5 $
|
||||
* $Author: robd $
|
||||
* $Date: 2002/11/24 18:09:56 $
|
||||
*
|
||||
*/
|
||||
|
||||
|
|
|
@ -18,9 +18,9 @@
|
|||
* DISCLAMED. This includes but is not limited to warranties of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
||||
*
|
||||
* $Revision: 1.3 $
|
||||
* $Author: ariadne $
|
||||
* $Date: 1999/04/02 21:42:06 $
|
||||
* $Revision: 1.4 $
|
||||
* $Author: robd $
|
||||
* $Date: 2002/11/24 18:09:56 $
|
||||
*
|
||||
*/
|
||||
|
||||
|
@ -72,9 +72,9 @@ struct _finddata_t
|
|||
* _findclose calls. _findnext also returns -1 if no match could be found,
|
||||
* and 0 if a match was found. Call _findclose when you are finished.
|
||||
*/
|
||||
int _findclose (int nHandle);
|
||||
int _findfirst (const char* szFilespec, struct _finddata_t* find);
|
||||
int _findnext (int nHandle, struct _finddata_t* find);
|
||||
int _findclose (int nHandle);
|
||||
|
||||
int _chdir (const char* szPath);
|
||||
char* _getcwd (char* caBuffer, int nBufferSize);
|
||||
|
|
|
@ -19,9 +19,9 @@
|
|||
* DISCLAMED. This includes but is not limited to warranties of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
||||
*
|
||||
* $Revision: 1.1 $
|
||||
* $Author: ariadne $
|
||||
* $Date: 1999/05/22 07:28:28 $
|
||||
* $Revision: 1.2 $
|
||||
* $Author: robd $
|
||||
* $Date: 2002/11/24 18:09:56 $
|
||||
*
|
||||
*/
|
||||
|
||||
|
|
|
@ -21,9 +21,9 @@
|
|||
* DISCLAMED. This includes but is not limited to warranties of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
||||
*
|
||||
* $Revision: 1.1 $
|
||||
* $Author: ariadne $
|
||||
* $Date: 1999/04/02 21:42:06 $
|
||||
* $Revision: 1.2 $
|
||||
* $Author: robd $
|
||||
* $Date: 2002/11/24 18:09:56 $
|
||||
*
|
||||
*/
|
||||
|
||||
|
|
|
@ -18,9 +18,9 @@
|
|||
* DISCLAMED. This includes but is not limited to warranties of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
||||
*
|
||||
* $Revision: 1.5 $
|
||||
* $Author: ariadne $
|
||||
* $Date: 1999/04/23 18:43:00 $
|
||||
* $Revision: 1.6 $
|
||||
* $Author: robd $
|
||||
* $Date: 2002/11/24 18:09:56 $
|
||||
*
|
||||
*/
|
||||
// added modfl
|
||||
|
|
|
@ -37,6 +37,8 @@ extern "C" {
|
|||
|
||||
extern char _jctype[257];
|
||||
|
||||
|
||||
int _ismbbkalnum( unsigned int c );
|
||||
int _ismbbkana( unsigned char c );
|
||||
|
||||
|
||||
|
|
|
@ -18,9 +18,9 @@
|
|||
* DISCLAMED. This includes but is not limited to warranties of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
||||
*
|
||||
* $Revision: 1.2 $
|
||||
* $Author: rex $
|
||||
* $Date: 1999/03/19 05:55:09 $
|
||||
* $Revision: 1.3 $
|
||||
* $Author: robd $
|
||||
* $Date: 2002/11/24 18:09:56 $
|
||||
*
|
||||
*/
|
||||
/* added some extra signal constants */
|
||||
|
|
|
@ -22,9 +22,9 @@
|
|||
* DISCLAMED. This includes but is not limited to warranties of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
||||
*
|
||||
* $Revision: 1.12 $
|
||||
* $Author: jean $
|
||||
* $Date: 2001/01/25 18:51:26 $
|
||||
* $Revision: 1.13 $
|
||||
* $Author: robd $
|
||||
* $Date: 2002/11/24 18:09:56 $
|
||||
*
|
||||
*/
|
||||
/* Appropriated for Reactos Crtdll by Ariadne */
|
||||
|
@ -50,10 +50,14 @@ extern "C" {
|
|||
#define _IOREAD 0x000010
|
||||
#define _IOWRT 0x000020
|
||||
#define _IOMYBUF 0x000040
|
||||
|
||||
#define _IOEOF 0x000100
|
||||
#define _IOERR 0x000200
|
||||
#define _IOSTRG 0x000400
|
||||
|
||||
#define _IOBINARY 0x000800
|
||||
#define _IOTEXT 0x000000
|
||||
|
||||
#define _IOAPPEND 0x002000
|
||||
#define _IORMONCL 0x004000 /* remove on close, for temp files */
|
||||
/* if _flag & _IORMONCL, ._name_to_remove needs freeing */
|
||||
|
|
|
@ -18,9 +18,9 @@
|
|||
* DISCLAMED. This includes but is not limited to warranties of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
||||
*
|
||||
* $Revision: 1.1 $
|
||||
* $Author: ariadne $
|
||||
* $Date: 1999/04/02 21:42:07 $
|
||||
* $Revision: 1.2 $
|
||||
* $Author: robd $
|
||||
* $Date: 2002/11/24 18:09:56 $
|
||||
*
|
||||
*/
|
||||
|
||||
|
|
|
@ -19,9 +19,9 @@
|
|||
* DISCLAMED. This includes but is not limited to warranties of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
||||
*
|
||||
* $Revision: 1.6 $
|
||||
* $Author: ekohl $
|
||||
* $Date: 2001/07/03 13:14:18 $
|
||||
* $Revision: 1.7 $
|
||||
* $Author: robd $
|
||||
* $Date: 2002/11/24 18:09:56 $
|
||||
*
|
||||
*/
|
||||
|
||||
|
@ -32,9 +32,6 @@
|
|||
|
||||
#include <crtdll/sys/types.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/*
|
||||
* Constants for the stat st_mode member.
|
||||
|
@ -89,6 +86,10 @@ struct stat
|
|||
time_t st_ctime; /* Creation time */
|
||||
};
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
|
||||
int _fstat (int nFileNo, struct stat* pstat);
|
||||
int _chmod (const char* szPath, int nMode);
|
||||
|
|
|
@ -15,12 +15,12 @@
|
|||
*
|
||||
* This code is distributed in the hope that it will be useful but
|
||||
* WITHOUT ANY WARRANTY. ALL WARRANTIES, EXPRESS OR IMPLIED ARE HEREBY
|
||||
* DISCLAMED. This includes but is not limited to warranties of
|
||||
* DISCLAIMED. This includes but is not limited to warranties of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
||||
*
|
||||
* $Revision: 1.1 $
|
||||
* $Author: ariadne $
|
||||
* $Date: 1999/04/02 21:42:07 $
|
||||
* $Revision: 1.2 $
|
||||
* $Author: robd $
|
||||
* $Date: 2002/11/24 18:09:57 $
|
||||
*
|
||||
*/
|
||||
|
||||
|
@ -29,9 +29,6 @@
|
|||
#ifndef _TIMEB_H_
|
||||
#define _TIMEB_H_
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/*
|
||||
* TODO: Structure not tested.
|
||||
|
@ -44,6 +41,10 @@ struct timeb
|
|||
short dstflag;
|
||||
};
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/* TODO: Not tested. */
|
||||
void _ftime (struct timeb* timebBuffer);
|
||||
|
||||
|
|
|
@ -15,12 +15,12 @@
|
|||
*
|
||||
* This code is distributed in the hope that it will be useful but
|
||||
* WITHOUT ANY WARRANTY. ALL WARRENTIES, EXPRESS OR IMPLIED ARE HEREBY
|
||||
* DISCLAMED. This includes but is not limited to warrenties of
|
||||
* DISCLAIMED. This includes but is not limited to warrenties of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
||||
*
|
||||
* $Revision: 1.3 $
|
||||
* $Author: ariadne $
|
||||
* $Date: 1999/04/02 21:42:07 $
|
||||
* $Revision: 1.4 $
|
||||
* $Author: robd $
|
||||
* $Date: 2002/11/24 18:09:57 $
|
||||
*
|
||||
*/
|
||||
|
||||
|
|
|
@ -15,12 +15,12 @@
|
|||
*
|
||||
* This code is distributed in the hope that it will be useful but
|
||||
* WITHOUT ANY WARRANTY. ALL WARRANTIES, EXPRESS OR IMPLIED ARE HEREBY
|
||||
* DISCLAMED. This includes but is not limited to warranties of
|
||||
* DISCLAIMED. This includes but is not limited to warranties of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
||||
*
|
||||
* $Revision: 1.3 $
|
||||
* $Author: ekohl $
|
||||
* $Date: 2001/07/03 13:14:18 $
|
||||
* $Revision: 1.4 $
|
||||
* $Author: robd $
|
||||
* $Date: 2002/11/24 18:09:57 $
|
||||
*
|
||||
*/
|
||||
|
||||
|
@ -34,9 +34,6 @@
|
|||
#include <crtdll/stddef.h>
|
||||
#include <crtdll/sys/types.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/*
|
||||
* Structure used by _utime function.
|
||||
|
@ -47,11 +44,6 @@ struct _utimbuf
|
|||
time_t modtime; /* Modification time */
|
||||
};
|
||||
|
||||
int _utime (const char* szFileName, struct _utimbuf* pTimes);
|
||||
int _futime (int nHandle, struct _utimbuf *pTimes);
|
||||
|
||||
/* Wide character version */
|
||||
int _wutime (const wchar_t *szFileName, struct _utimbuf *times);
|
||||
|
||||
#ifndef _NO_OLDNAMES
|
||||
|
||||
|
@ -61,9 +53,22 @@ struct utimbuf
|
|||
time_t actime;
|
||||
time_t modtime;
|
||||
};
|
||||
#endif /* Not _NO_OLDNAMES */
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
int _utime (const char* szFileName, struct _utimbuf* pTimes);
|
||||
int _futime (int nHandle, struct _utimbuf *pTimes);
|
||||
|
||||
/* The wide character version, only available for MSVCRT versions of the
|
||||
* C runtime library. */
|
||||
int _wutime (const wchar_t *szFileName, struct _utimbuf *times);
|
||||
|
||||
|
||||
#ifndef _NO_OLDNAMES
|
||||
int utime (const char* szFileName, struct utimbuf* pTimes);
|
||||
|
||||
#endif /* Not _NO_OLDNAMES */
|
||||
|
||||
|
||||
|
|
|
@ -15,12 +15,12 @@
|
|||
*
|
||||
* This code is distributed in the hope that it will be useful but
|
||||
* WITHOUT ANY WARRANTY. ALL WARRANTIES, EXPRESS OR IMPLIED ARE HEREBY
|
||||
* DISCLAMED. This includes but is not limited to warranties of
|
||||
* DISCLAIMED. This includes but is not limited to warranties of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
||||
*
|
||||
* $Revision: 1.3 $
|
||||
* $Author: ariadne $
|
||||
* $Date: 1999/04/02 21:42:06 $
|
||||
* $Revision: 1.4 $
|
||||
* $Author: robd $
|
||||
* $Date: 2002/11/24 18:09:56 $
|
||||
*
|
||||
*/
|
||||
/* Appropriated for Reactos Crtdll by Ariadne */
|
||||
|
@ -31,9 +31,6 @@
|
|||
#define __need_size_t
|
||||
#include <crtdll/stddef.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/*
|
||||
* Number of clock ticks per second. A clock tick is the unit by which
|
||||
|
@ -42,13 +39,6 @@ extern "C" {
|
|||
#define CLOCKS_PER_SEC 1000.0
|
||||
#define CLK_TICK CLOCKS_PER_SEC
|
||||
|
||||
/*
|
||||
* A type for measuring processor time (in clock ticks).
|
||||
*/
|
||||
#ifndef _CLOCK_T_
|
||||
#define _CLOCK_T_
|
||||
typedef long clock_t;
|
||||
#endif
|
||||
|
||||
/*
|
||||
* Need a definition of time_t.
|
||||
|
@ -61,34 +51,46 @@ typedef long clock_t;
|
|||
* NOTE: Normally this is defined by the above include of sys/types.h
|
||||
*/
|
||||
#ifndef _TIME_T_
|
||||
#define _TIME_T_
|
||||
typedef long time_t;
|
||||
#define _TIME_T_
|
||||
#endif
|
||||
|
||||
/*
|
||||
* A type for measuring processor time (in clock ticks).
|
||||
*/
|
||||
#ifndef _CLOCK_T_
|
||||
typedef long clock_t;
|
||||
#define _CLOCK_T_
|
||||
#endif
|
||||
|
||||
/*
|
||||
* A structure for storing all kinds of useful information about the
|
||||
* current (or another) time.
|
||||
*/
|
||||
struct tm {
|
||||
int tm_sec;
|
||||
int tm_min;
|
||||
int tm_hour;
|
||||
int tm_mday;
|
||||
int tm_mon;
|
||||
int tm_year;
|
||||
int tm_wday;
|
||||
int tm_yday;
|
||||
int tm_isdst;
|
||||
char *tm_zone;
|
||||
int tm_gmtoff;
|
||||
struct tm
|
||||
{
|
||||
int tm_sec; /* Seconds: 0-59 (K&R says 0-61?) */
|
||||
int tm_min; /* Minutes: 0-59 */
|
||||
int tm_hour; /* Hours since midnight: 0-23 */
|
||||
int tm_mday; /* Day of the month: 1-31 */
|
||||
int tm_mon; /* Months *since* january: 0-11 */
|
||||
int tm_year; /* Years since 1900 */
|
||||
int tm_wday; /* Days since Sunday (0-6) */
|
||||
int tm_yday; /* Days since Jan. 1: 0-365 */
|
||||
int tm_isdst; /* +1 Daylight Savings Time, 0 No DST,
|
||||
* -1 don't know */
|
||||
char *tm_zone;
|
||||
int tm_gmtoff;
|
||||
};
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
clock_t clock (void);
|
||||
time_t time (time_t* tp);
|
||||
double difftime (time_t t2, time_t t1);
|
||||
time_t mktime (struct tm* tmsp);
|
||||
time_t time (time_t*);
|
||||
double difftime (time_t, time_t);
|
||||
time_t mktime (struct tm*);
|
||||
|
||||
/*
|
||||
* These functions write to and return pointers to static buffers that may
|
||||
|
@ -100,20 +102,19 @@ time_t mktime (struct tm* tmsp);
|
|||
* Fault and crap out your program. Guess how I know. Hint: stat called on
|
||||
* a directory gives 'invalid' times in st_atime etc...
|
||||
*/
|
||||
char* asctime (const struct tm* tmsp);
|
||||
char* ctime (const time_t* tp);
|
||||
struct tm* gmtime (const time_t* tm);
|
||||
struct tm* localtime (const time_t* tm);
|
||||
char* asctime (const struct tm*);
|
||||
char* ctime (const time_t*);
|
||||
struct tm* gmtime (const time_t*);
|
||||
struct tm* localtime (const time_t*);
|
||||
|
||||
|
||||
size_t strftime (char* caBuffer, size_t sizeMax, const char* szFormat,
|
||||
const struct tm* tpPrint);
|
||||
size_t strftime (char*, size_t, const char*, const struct tm*);
|
||||
|
||||
size_t wcsftime (wchar_t* wcaBuffer, size_t sizeMax,
|
||||
const wchar_t* wsFormat, const struct tm* tpPrint);
|
||||
size_t wcsftime (wchar_t*, size_t, const wchar_t*, const struct tm*);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
#endif /* Not _TIME_H_ */
|
||||
|
||||
|
|
|
@ -15,18 +15,26 @@
|
|||
*
|
||||
* This code is distributed in the hope that it will be useful but
|
||||
* WITHOUT ANY WARRANTY. ALL WARRANTIES, EXPRESS OR IMPLIED ARE HEREBY
|
||||
* DISCLAMED. This includes but is not limited to warranties of
|
||||
* DISCLAIMED. This includes but is not limited to warranties of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
||||
*
|
||||
* $Revision: 1.1 $
|
||||
* $Author: ariadne $
|
||||
* $Date: 1999/04/02 21:42:06 $
|
||||
* $Revision: 1.2 $
|
||||
* $Author: robd $
|
||||
* $Date: 2002/11/24 18:09:56 $
|
||||
*
|
||||
*/
|
||||
|
||||
#ifndef _WCHAR_H_
|
||||
#define _WCHAR_H_
|
||||
|
||||
|
||||
#include <crtdll/ctype.h>
|
||||
#include <crtdll/stdio.h>
|
||||
#include <crtdll/stdlib.h>
|
||||
#include <crtdll/string.h>
|
||||
#include <crtdll/time.h>
|
||||
|
||||
#endif /* not _WCHAR_H_ */
|
||||
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue