Browse Source

add restrict to strtol like functions. ok guenther

OPENBSD_5_7
tedu 9 years ago
parent
commit
e8e1175e68
1 changed files with 10 additions and 10 deletions
  1. +10
    -10
      src/include/stdlib.h

+ 10
- 10
src/include/stdlib.h View File

@ -1,4 +1,4 @@
/* $OpenBSD: stdlib.h,v 1.63 2015/01/15 19:55:58 tedu Exp $ */
/* $OpenBSD: stdlib.h,v 1.64 2015/02/08 02:58:50 tedu Exp $ */
/* $NetBSD: stdlib.h,v 1.25 1995/12/27 21:19:08 jtc Exp $ */ /* $NetBSD: stdlib.h,v 1.25 1995/12/27 21:19:08 jtc Exp $ */
/*- /*-
@ -132,13 +132,13 @@ int rand(void);
void *realloc(void *, size_t); void *realloc(void *, size_t);
void srand(unsigned); void srand(unsigned);
void srand_deterministic(unsigned); void srand_deterministic(unsigned);
double strtod(const char *, char **);
float strtof(const char *, char **);
long strtol(const char *, char **, int);
double strtod(const char *__restrict, char **__restrict);
float strtof(const char *__restrict, char **__restrict);
long strtol(const char *__restrict, char **__restrict, int);
long double long double
strtold(const char *, char **);
strtold(const char *__restrict, char **__restrict);
unsigned long unsigned long
strtoul(const char *, char **, int);
strtoul(const char *__restrict, char **__restrict, int);
int system(const char *); int system(const char *);
/* these are currently just stubs */ /* these are currently just stubs */
@ -226,9 +226,9 @@ long long
lldiv_t lldiv_t
lldiv(long long, long long); lldiv(long long, long long);
long long long long
strtoll(const char *, char **, int);
strtoll(const char *__restrict, char **__restrict, int);
unsigned long long unsigned long long
strtoull(const char *, char **, int);
strtoull(const char *__restrict, char **__restrict, int);
#endif #endif
/* /*
@ -311,8 +311,8 @@ void setproctitle(const char *, ...)
quad_t qabs(quad_t); quad_t qabs(quad_t);
qdiv_t qdiv(quad_t, quad_t); qdiv_t qdiv(quad_t, quad_t);
quad_t strtoq(const char *, char **, int);
u_quad_t strtouq(const char *, char **, int);
quad_t strtoq(const char *__restrict, char **__restrict, int);
u_quad_t strtouq(const char *__restrict, char **__restrict, int);
uint32_t arc4random(void); uint32_t arc4random(void);
uint32_t arc4random_uniform(uint32_t); uint32_t arc4random_uniform(uint32_t);


Loading…
Cancel
Save