diff options
| author | David Chisnall <theraven@FreeBSD.org> | 2014-04-02 16:07:48 +0000 |
|---|---|---|
| committer | David Chisnall <theraven@FreeBSD.org> | 2014-04-02 16:07:48 +0000 |
| commit | 46cdc14062f7b52d86bd3791220019ebc8c9c120 (patch) | |
| tree | 6b79951e49825ea224053fd3b29a53481afa5e00 /include | |
| parent | cfc4b56b571f75e9b13eda2756bbd72a0c187a7a (diff) | |
Notes
Diffstat (limited to 'include')
| -rw-r--r-- | include/dirent.h | 5 | ||||
| -rw-r--r-- | include/stdlib.h | 13 |
2 files changed, 18 insertions, 0 deletions
diff --git a/include/dirent.h b/include/dirent.h index d0b0a9a43aef..f43210c7ddb6 100644 --- a/include/dirent.h +++ b/include/dirent.h @@ -95,6 +95,11 @@ void rewinddir(DIR *); int scandir(const char *, struct dirent ***, int (*)(const struct dirent *), int (*)(const struct dirent **, const struct dirent **)); +#ifdef __BLOCKS__ +int scandir_b(const char *, struct dirent ***, + int (^)(const struct dirent *), + int (^)(const struct dirent **, const struct dirent **)); +#endif #endif #if __XSI_VISIBLE void seekdir(DIR *, long); diff --git a/include/stdlib.h b/include/stdlib.h index 3ed07f398b47..4aa372becb46 100644 --- a/include/stdlib.h +++ b/include/stdlib.h @@ -82,6 +82,9 @@ extern int ___mb_cur_max(void); _Noreturn void abort(void); int abs(int) __pure2; int atexit(void (*)(void)); +#ifdef __BLOCKS__ +int atexit_b(void (^)(void)); +#endif double atof(const char *); int atoi(const char *); long atol(const char *); @@ -100,6 +103,10 @@ size_t mbstowcs(wchar_t * __restrict , const char * __restrict, size_t); int mbtowc(wchar_t * __restrict, const char * __restrict, size_t); void qsort(void *, size_t, size_t, int (*)(const void *, const void *)); +#ifdef __BLOCKS__ +void qsort_b(void *, size_t, size_t, + int (^)(const void *, const void *)); +#endif int rand(void); void *realloc(void *, size_t); void srand(unsigned); @@ -280,8 +287,14 @@ const char * getprogname(void); int heapsort(void *, size_t, size_t, int (*)(const void *, const void *)); +#ifdef __BLOCKS__ +int heapsort_b(void *, size_t, size_t, int (^)(const void *, const void *)); +#endif int l64a_r(long, char *, int); int mergesort(void *, size_t, size_t, int (*)(const void *, const void *)); +#ifdef __BLOCKS__ +int mergesort_b(void *, size_t, size_t, int (^)(const void *, const void *)); +#endif int mkostemp(char *, int); int mkostemps(char *, int, int); void qsort_r(void *, size_t, size_t, void *, |
