include/stdlib: alignment function definitions
Change-Id: Id12ed4241698c8d4426907ca72eef334894ee1f3 Signed-off-by: chao.an <anchao@xiaomi.com>
This commit is contained in:
parent
0826b827ee
commit
7816b5ec8c
@ -170,13 +170,13 @@ double strtod(FAR const char *str, FAR char **endptr);
|
|||||||
long double strtold(FAR const char *str, FAR char **endptr);
|
long double strtold(FAR const char *str, FAR char **endptr);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
int atoi(FAR const char *nptr);
|
int atoi(FAR const char *nptr);
|
||||||
long atol(FAR const char *nptr);
|
long atol(FAR const char *nptr);
|
||||||
#ifdef CONFIG_HAVE_LONG_LONG
|
#ifdef CONFIG_HAVE_LONG_LONG
|
||||||
long long atoll(FAR const char *nptr);
|
long long atoll(FAR const char *nptr);
|
||||||
#endif
|
#endif
|
||||||
#ifdef CONFIG_HAVE_DOUBLE
|
#ifdef CONFIG_HAVE_DOUBLE
|
||||||
double atof(FAR const char *nptr);
|
double atof(FAR const char *nptr);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Binary to string conversions */
|
/* Binary to string conversions */
|
||||||
@ -202,17 +202,17 @@ FAR void *memalign(size_t, size_t);
|
|||||||
FAR void *zalloc(size_t);
|
FAR void *zalloc(size_t);
|
||||||
FAR void *calloc(size_t, size_t);
|
FAR void *calloc(size_t, size_t);
|
||||||
FAR void *aligned_alloc(size_t, size_t);
|
FAR void *aligned_alloc(size_t, size_t);
|
||||||
int posix_memalign(FAR void **, size_t, size_t);
|
int posix_memalign(FAR void **, size_t, size_t);
|
||||||
|
|
||||||
/* Pseudo-Terminals */
|
/* Pseudo-Terminals */
|
||||||
|
|
||||||
#ifdef CONFIG_PSEUDOTERM_SUSV1
|
#ifdef CONFIG_PSEUDOTERM_SUSV1
|
||||||
FAR char *ptsname(int fd);
|
FAR char *ptsname(int fd);
|
||||||
int ptsname_r(int fd, FAR char *buf, size_t buflen);
|
int ptsname_r(int fd, FAR char *buf, size_t buflen);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef CONFIG_PSEUDOTERM
|
#ifdef CONFIG_PSEUDOTERM
|
||||||
int unlockpt(int fd);
|
int unlockpt(int fd);
|
||||||
|
|
||||||
/* int grantpt(int fd); Not implemented */
|
/* int grantpt(int fd); Not implemented */
|
||||||
|
|
||||||
@ -221,33 +221,33 @@ int unlockpt(int fd);
|
|||||||
|
|
||||||
/* Arithmetic */
|
/* Arithmetic */
|
||||||
|
|
||||||
int abs(int j);
|
int abs(int j);
|
||||||
long int labs(long int j);
|
long int labs(long int j);
|
||||||
#ifdef CONFIG_HAVE_LONG_LONG
|
#ifdef CONFIG_HAVE_LONG_LONG
|
||||||
long long int llabs(long long int j);
|
long long int llabs(long long int j);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
div_t div(int number, int denom);
|
div_t div(int number, int denom);
|
||||||
ldiv_t ldiv(long number, long denom);
|
ldiv_t ldiv(long number, long denom);
|
||||||
#ifdef CONFIG_HAVE_LONG_LONG
|
#ifdef CONFIG_HAVE_LONG_LONG
|
||||||
lldiv_t lldiv(long long number, long long denom);
|
lldiv_t lldiv(long long number, long long denom);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Temporary files */
|
/* Temporary files */
|
||||||
|
|
||||||
int mktemp(FAR char *path_template);
|
int mktemp(FAR char *path_template);
|
||||||
int mkstemp(FAR char *path_template);
|
int mkstemp(FAR char *path_template);
|
||||||
|
|
||||||
/* Sorting */
|
/* Sorting */
|
||||||
|
|
||||||
void qsort(FAR void *base, size_t nel, size_t width,
|
void qsort(FAR void *base, size_t nel, size_t width,
|
||||||
CODE int (*compar)(FAR const void *, FAR const void *));
|
CODE int (*compar)(FAR const void *, FAR const void *));
|
||||||
|
|
||||||
/* Binary search */
|
/* Binary search */
|
||||||
|
|
||||||
FAR void *bsearch(FAR const void *key, FAR const void *base, size_t nel,
|
FAR void *bsearch(FAR const void *key, FAR const void *base, size_t nel,
|
||||||
size_t width, CODE int (*compar)(FAR const void *,
|
size_t width, CODE int (*compar)(FAR const void *,
|
||||||
FAR const void *));
|
FAR const void *));
|
||||||
|
|
||||||
#undef EXTERN
|
#undef EXTERN
|
||||||
#if defined(__cplusplus)
|
#if defined(__cplusplus)
|
||||||
|
Loading…
Reference in New Issue
Block a user