Newlib: update to version 3.0.0
This commit is contained in:
parent
a3d94f168b
commit
875aaabebe
50 changed files with 1536 additions and 1651 deletions
|
|
@ -53,19 +53,19 @@ struct tm
|
|||
#endif
|
||||
};
|
||||
|
||||
clock_t _EXFUN(clock, (void));
|
||||
double _EXFUN(difftime, (time_t _time2, time_t _time1));
|
||||
time_t _EXFUN(mktime, (struct tm *_timeptr));
|
||||
time_t _EXFUN(time, (time_t *_timer));
|
||||
clock_t clock (void);
|
||||
double difftime (time_t _time2, time_t _time1);
|
||||
time_t mktime (struct tm *_timeptr);
|
||||
time_t time (time_t *_timer);
|
||||
#ifndef _REENT_ONLY
|
||||
char *_EXFUN(asctime, (const struct tm *_tblock));
|
||||
char *_EXFUN(ctime, (const time_t *_time));
|
||||
struct tm *_EXFUN(gmtime, (const time_t *_timer));
|
||||
struct tm *_EXFUN(localtime,(const time_t *_timer));
|
||||
char *asctime (const struct tm *_tblock);
|
||||
char *ctime (const time_t *_time);
|
||||
struct tm *gmtime (const time_t *_timer);
|
||||
struct tm *localtime (const time_t *_timer);
|
||||
#endif
|
||||
size_t _EXFUN(strftime, (char *__restrict _s,
|
||||
size_t strftime (char *__restrict _s,
|
||||
size_t _maxsize, const char *__restrict _fmt,
|
||||
const struct tm *__restrict _t));
|
||||
const struct tm *__restrict _t);
|
||||
|
||||
#if __POSIX_VISIBLE >= 200809
|
||||
extern size_t strftime_l (char *__restrict _s, size_t _maxsize,
|
||||
|
|
@ -73,13 +73,13 @@ extern size_t strftime_l (char *__restrict _s, size_t _maxsize,
|
|||
const struct tm *__restrict _t, locale_t _l);
|
||||
#endif
|
||||
|
||||
char *_EXFUN(asctime_r, (const struct tm *__restrict,
|
||||
char *__restrict));
|
||||
char *_EXFUN(ctime_r, (const time_t *, char *));
|
||||
struct tm *_EXFUN(gmtime_r, (const time_t *__restrict,
|
||||
struct tm *__restrict));
|
||||
struct tm *_EXFUN(localtime_r, (const time_t *__restrict,
|
||||
struct tm *__restrict));
|
||||
char *asctime_r (const struct tm *__restrict,
|
||||
char *__restrict);
|
||||
char *ctime_r (const time_t *, char *);
|
||||
struct tm *gmtime_r (const time_t *__restrict,
|
||||
struct tm *__restrict);
|
||||
struct tm *localtime_r (const time_t *__restrict,
|
||||
struct tm *__restrict);
|
||||
|
||||
_END_STD_C
|
||||
|
||||
|
|
@ -88,9 +88,9 @@ extern "C" {
|
|||
#endif
|
||||
|
||||
#if __XSI_VISIBLE
|
||||
char *_EXFUN(strptime, (const char *__restrict,
|
||||
char *strptime (const char *__restrict,
|
||||
const char *__restrict,
|
||||
struct tm *__restrict));
|
||||
struct tm *__restrict);
|
||||
#endif
|
||||
#if __GNU_VISIBLE
|
||||
char *strptime_l (const char *__restrict, const char *__restrict,
|
||||
|
|
@ -98,9 +98,9 @@ char *strptime_l (const char *__restrict, const char *__restrict,
|
|||
#endif
|
||||
|
||||
#if __POSIX_VISIBLE
|
||||
_VOID _EXFUN(tzset, (_VOID));
|
||||
void tzset (void);
|
||||
#endif
|
||||
_VOID _EXFUN(_tzset_r, (struct _reent *));
|
||||
void _tzset_r (struct _reent *);
|
||||
|
||||
typedef struct __tzrule_struct
|
||||
{
|
||||
|
|
@ -120,7 +120,7 @@ typedef struct __tzinfo_struct
|
|||
__tzrule_type __tzrule[2];
|
||||
} __tzinfo_type;
|
||||
|
||||
__tzinfo_type *_EXFUN (__gettzinfo, (_VOID));
|
||||
__tzinfo_type *__gettzinfo (void);
|
||||
|
||||
/* getdate functions */
|
||||
|
||||
|
|
@ -128,9 +128,9 @@ __tzinfo_type *_EXFUN (__gettzinfo, (_VOID));
|
|||
#if __XSI_VISIBLE >= 4
|
||||
#ifndef _REENT_ONLY
|
||||
#define getdate_err (*__getdate_err())
|
||||
int *_EXFUN(__getdate_err,(_VOID));
|
||||
int *__getdate_err (void);
|
||||
|
||||
struct tm * _EXFUN(getdate, (const char *));
|
||||
struct tm * getdate (const char *);
|
||||
/* getdate_err is set to one of the following values to indicate the error.
|
||||
1 the DATEMSK environment variable is null or undefined,
|
||||
2 the template file cannot be opened for reading,
|
||||
|
|
@ -145,7 +145,7 @@ struct tm * _EXFUN(getdate, (const char *));
|
|||
|
||||
#if __GNU_VISIBLE
|
||||
/* getdate_r returns the error code as above */
|
||||
int _EXFUN(getdate_r, (const char *, struct tm *));
|
||||
int getdate_r (const char *, struct tm *);
|
||||
#endif /* __GNU_VISIBLE */
|
||||
#endif /* HAVE_GETDATE */
|
||||
|
||||
|
|
@ -183,33 +183,31 @@ extern "C" {
|
|||
|
||||
/* Clocks, P1003.1b-1993, p. 263 */
|
||||
|
||||
int _EXFUN(clock_settime, (clockid_t clock_id, const struct timespec *tp));
|
||||
int _EXFUN(clock_gettime, (clockid_t clock_id, struct timespec *tp));
|
||||
int _EXFUN(clock_getres, (clockid_t clock_id, struct timespec *res));
|
||||
int clock_settime (clockid_t clock_id, const struct timespec *tp);
|
||||
int clock_gettime (clockid_t clock_id, struct timespec *tp);
|
||||
int clock_getres (clockid_t clock_id, struct timespec *res);
|
||||
|
||||
/* Create a Per-Process Timer, P1003.1b-1993, p. 264 */
|
||||
|
||||
int _EXFUN(timer_create,
|
||||
(clockid_t clock_id,
|
||||
int timer_create (clockid_t clock_id,
|
||||
struct sigevent *__restrict evp,
|
||||
timer_t *__restrict timerid));
|
||||
timer_t *__restrict timerid);
|
||||
|
||||
/* Delete a Per_process Timer, P1003.1b-1993, p. 266 */
|
||||
|
||||
int _EXFUN(timer_delete, (timer_t timerid));
|
||||
int timer_delete (timer_t timerid);
|
||||
|
||||
/* Per-Process Timers, P1003.1b-1993, p. 267 */
|
||||
|
||||
int _EXFUN(timer_settime,
|
||||
(timer_t timerid, int flags,
|
||||
int timer_settime (timer_t timerid, int flags,
|
||||
const struct itimerspec *__restrict value,
|
||||
struct itimerspec *__restrict ovalue));
|
||||
int _EXFUN(timer_gettime, (timer_t timerid, struct itimerspec *value));
|
||||
int _EXFUN(timer_getoverrun, (timer_t timerid));
|
||||
struct itimerspec *__restrict ovalue);
|
||||
int timer_gettime (timer_t timerid, struct itimerspec *value);
|
||||
int timer_getoverrun (timer_t timerid);
|
||||
|
||||
/* High Resolution Sleep, P1003.1b-1993, p. 269 */
|
||||
|
||||
int _EXFUN(nanosleep, (const struct timespec *rqtp, struct timespec *rmtp));
|
||||
int nanosleep (const struct timespec *rqtp, struct timespec *rmtp);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
|
@ -222,9 +220,8 @@ int _EXFUN(nanosleep, (const struct timespec *rqtp, struct timespec *rmtp));
|
|||
extern "C" {
|
||||
#endif
|
||||
|
||||
int _EXFUN(clock_nanosleep,
|
||||
(clockid_t clock_id, int flags, const struct timespec *rqtp,
|
||||
struct timespec *rmtp));
|
||||
int clock_nanosleep (clockid_t clock_id, int flags,
|
||||
const struct timespec *rqtp, struct timespec *rmtp);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
|
@ -297,7 +294,7 @@ extern "C" {
|
|||
|
||||
/* Accessing a Process CPU-time CLock, P1003.4b/D8, p. 55 */
|
||||
|
||||
int _EXFUN(clock_getcpuclockid, (pid_t pid, clockid_t *clock_id));
|
||||
int clock_getcpuclockid (pid_t pid, clockid_t *clock_id);
|
||||
|
||||
#endif /* _POSIX_CPUTIME */
|
||||
|
||||
|
|
@ -305,8 +302,8 @@ int _EXFUN(clock_getcpuclockid, (pid_t pid, clockid_t *clock_id));
|
|||
|
||||
/* CPU-time Clock Attribute Access, P1003.4b/D8, p. 56 */
|
||||
|
||||
int _EXFUN(clock_setenable_attr, (clockid_t clock_id, int attr));
|
||||
int _EXFUN(clock_getenable_attr, (clockid_t clock_id, int *attr));
|
||||
int clock_setenable_attr (clockid_t clock_id, int attr);
|
||||
int clock_getenable_attr (clockid_t clock_id, int *attr);
|
||||
|
||||
#endif /* _POSIX_CPUTIME or _POSIX_THREAD_CPUTIME */
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue