libc_private.h (234657) | libc_private.h (237434) |
---|---|
1/* 2 * Copyright (c) 1998 John Birrell <jb@cimlogic.com.au>. 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 12 unchanged lines hidden (view full) --- 21 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 22 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 23 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 24 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 27 * SUCH DAMAGE. 28 * | 1/* 2 * Copyright (c) 1998 John Birrell <jb@cimlogic.com.au>. 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 12 unchanged lines hidden (view full) --- 21 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 22 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 23 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 24 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 27 * SUCH DAMAGE. 28 * |
29 * $FreeBSD: head/lib/libc/include/libc_private.h 234657 2012-04-24 17:51:36Z kib $ | 29 * $FreeBSD: head/lib/libc/include/libc_private.h 237434 2012-06-22 07:13:30Z kib $ |
30 * 31 * Private definitions for libc, libc_r and libpthread. 32 * 33 */ 34 35#ifndef _LIBC_PRIVATE_H_ 36#define _LIBC_PRIVATE_H_ | 30 * 31 * Private definitions for libc, libc_r and libpthread. 32 * 33 */ 34 35#ifndef _LIBC_PRIVATE_H_ 36#define _LIBC_PRIVATE_H_ |
37#include <sys/_types.h> |
|
37#include <sys/_pthreadtypes.h> 38 39/* 40 * This global flag is non-zero when a process has created one 41 * or more threads. It is used to avoid calling locking functions 42 * when they are not required. 43 */ 44extern int __isthreaded; --- 195 unchanged lines hidden (view full) --- 240extern int __sys_freebsd6_truncate(const char *, int, __off_t); 241extern __ssize_t __sys_freebsd6_pread(int, void *, __size_t, int, __off_t); 242extern __ssize_t __sys_freebsd6_pwrite(int, const void *, __size_t, int, __off_t); 243extern void * __sys_freebsd6_mmap(void *, __size_t, int, int, int, int, __off_t); 244 245/* Without back-compat translation */ 246extern int __sys_fcntl(int, int, ...); 247 | 38#include <sys/_pthreadtypes.h> 39 40/* 41 * This global flag is non-zero when a process has created one 42 * or more threads. It is used to avoid calling locking functions 43 * when they are not required. 44 */ 45extern int __isthreaded; --- 195 unchanged lines hidden (view full) --- 241extern int __sys_freebsd6_truncate(const char *, int, __off_t); 242extern __ssize_t __sys_freebsd6_pread(int, void *, __size_t, int, __off_t); 243extern __ssize_t __sys_freebsd6_pwrite(int, const void *, __size_t, int, __off_t); 244extern void * __sys_freebsd6_mmap(void *, __size_t, int, int, int, int, __off_t); 245 246/* Without back-compat translation */ 247extern int __sys_fcntl(int, int, ...); 248 |
249struct timespec; 250struct timeval; 251struct timezone; 252int __sys_gettimeofday(struct timeval *, struct timezone *); 253int __sys_clock_gettime(__clockid_t, struct timespec *ts); 254 |
|
248/* execve() with PATH processing to implement posix_spawnp() */ 249int _execvpe(const char *, char * const *, char * const *); 250 251int _elf_aux_info(int aux, void *buf, int buflen); 252struct dl_phdr_info; 253int __elf_phdr_match_addr(struct dl_phdr_info *, void *); 254void __init_elf_aux_vector(void); 255 256void _pthread_cancel_enter(int); 257void _pthread_cancel_leave(int); 258 259#endif /* _LIBC_PRIVATE_H_ */ | 255/* execve() with PATH processing to implement posix_spawnp() */ 256int _execvpe(const char *, char * const *, char * const *); 257 258int _elf_aux_info(int aux, void *buf, int buflen); 259struct dl_phdr_info; 260int __elf_phdr_match_addr(struct dl_phdr_info *, void *); 261void __init_elf_aux_vector(void); 262 263void _pthread_cancel_enter(int); 264void _pthread_cancel_leave(int); 265 266#endif /* _LIBC_PRIVATE_H_ */ |