diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/malloc_np.h | 7 | ||||
-rw-r--r-- | include/pthread.h | 2 | ||||
-rw-r--r-- | include/rpc/rpcent.h | 2 | ||||
-rw-r--r-- | include/unistd.h | 2 |
4 files changed, 10 insertions, 3 deletions
diff --git a/include/malloc_np.h b/include/malloc_np.h index 24b3148..88919a4 100644 --- a/include/malloc_np.h +++ b/include/malloc_np.h @@ -86,6 +86,13 @@ void __free(void *ptr); int __posix_memalign(void **ptr, size_t alignment, size_t size); void *__aligned_alloc(size_t alignment, size_t size); size_t __malloc_usable_size(const void *ptr); +void __malloc_stats_print(void (*write_cb)(void *, const char *), + void *cbopaque, const char *opts); +int __mallctl(const char *name, void *oldp, size_t *oldlenp, void *newp, + size_t newlen); +int __mallctlnametomib(const char *name, size_t *mibp, size_t *miblenp); +int __mallctlbymib(const size_t *mib, size_t miblen, void *oldp, + size_t *oldlenp, void *newp, size_t newlen); void *__mallocx(size_t size, int flags); void *__rallocx(void *ptr, size_t size, int flags); size_t __xallocx(void *ptr, size_t size, size_t extra, int flags); diff --git a/include/pthread.h b/include/pthread.h index 8b59223..8078bcb 100644 --- a/include/pthread.h +++ b/include/pthread.h @@ -69,7 +69,7 @@ #define PTHREAD_EXPLICIT_SCHED 0 /* - * Flags for read/write lock attributes + * Values for process shared/private attributes. */ #define PTHREAD_PROCESS_PRIVATE 0 #define PTHREAD_PROCESS_SHARED 1 diff --git a/include/rpc/rpcent.h b/include/rpc/rpcent.h index 405ba67..c1650fa 100644 --- a/include/rpc/rpcent.h +++ b/include/rpc/rpcent.h @@ -56,7 +56,7 @@ __BEGIN_DECLS * These interfaces are currently implemented through nsswitch and are * MT-safe. */ -extern struct rpcent *getrpcbyname(char *); +extern struct rpcent *getrpcbyname(const char *); extern struct rpcent *getrpcbynumber(int); extern struct rpcent *getrpcent(void); extern void setrpcent(int); diff --git a/include/unistd.h b/include/unistd.h index 4c26a04..0d20027 100644 --- a/include/unistd.h +++ b/include/unistd.h @@ -112,7 +112,7 @@ typedef __useconds_t useconds_t; #define _POSIX_THREAD_PRIO_INHERIT 200112L #define _POSIX_THREAD_PRIO_PROTECT 200112L #define _POSIX_THREAD_PRIORITY_SCHEDULING 200112L -#define _POSIX_THREAD_PROCESS_SHARED -1 +#define _POSIX_THREAD_PROCESS_SHARED 200112L #define _POSIX_THREAD_SAFE_FUNCTIONS -1 #define _POSIX_THREAD_SPORADIC_SERVER -1 #define _POSIX_THREADS 200112L |