libc_private.h (276681) | libc_private.h (277032) |
---|---|
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 276681 2015-01-05 01:06:54Z kib $ | 29 * $FreeBSD: head/lib/libc/include/libc_private.h 277032 2015-01-11 22:16:31Z kib $ |
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> --- 144 unchanged lines hidden (view full) --- 182extern interpos_func_t __libc_interposing[] __hidden; 183 184enum { 185 INTERPOS_accept, 186 INTERPOS_accept4, 187 INTERPOS_aio_suspend, 188 INTERPOS_close, 189 INTERPOS_connect, | 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> --- 144 unchanged lines hidden (view full) --- 182extern interpos_func_t __libc_interposing[] __hidden; 183 184enum { 185 INTERPOS_accept, 186 INTERPOS_accept4, 187 INTERPOS_aio_suspend, 188 INTERPOS_close, 189 INTERPOS_connect, |
190 INTERPOS_creat, | |
191 INTERPOS_fcntl, 192 INTERPOS_fsync, 193 INTERPOS_fork, 194 INTERPOS_msync, 195 INTERPOS_nanosleep, | 190 INTERPOS_fcntl, 191 INTERPOS_fsync, 192 INTERPOS_fork, 193 INTERPOS_msync, 194 INTERPOS_nanosleep, |
196 INTERPOS_open, | |
197 INTERPOS_openat, 198 INTERPOS_poll, 199 INTERPOS_pselect, | 195 INTERPOS_openat, 196 INTERPOS_poll, 197 INTERPOS_pselect, |
200 INTERPOS_raise, | |
201 INTERPOS_recvfrom, 202 INTERPOS_recvmsg, 203 INTERPOS_select, 204 INTERPOS_sendmsg, 205 INTERPOS_sendto, 206 INTERPOS_setcontext, 207 INTERPOS_sigaction, 208 INTERPOS_sigprocmask, 209 INTERPOS_sigsuspend, 210 INTERPOS_sigwait, 211 INTERPOS_sigtimedwait, 212 INTERPOS_sigwaitinfo, 213 INTERPOS_swapcontext, 214 INTERPOS_system, | 198 INTERPOS_recvfrom, 199 INTERPOS_recvmsg, 200 INTERPOS_select, 201 INTERPOS_sendmsg, 202 INTERPOS_sendto, 203 INTERPOS_setcontext, 204 INTERPOS_sigaction, 205 INTERPOS_sigprocmask, 206 INTERPOS_sigsuspend, 207 INTERPOS_sigwait, 208 INTERPOS_sigtimedwait, 209 INTERPOS_sigwaitinfo, 210 INTERPOS_swapcontext, 211 INTERPOS_system, |
215 INTERPOS_sleep, | |
216 INTERPOS_tcdrain, | 212 INTERPOS_tcdrain, |
217 INTERPOS_usleep, 218 INTERPOS_pause, | |
219 INTERPOS_read, 220 INTERPOS_readv, | 213 INTERPOS_read, 214 INTERPOS_readv, |
221 INTERPOS_wait, 222 INTERPOS_wait3, | |
223 INTERPOS_wait4, | 215 INTERPOS_wait4, |
224 INTERPOS_waitpid, | |
225 INTERPOS_write, 226 INTERPOS_writev, 227 INTERPOS__pthread_mutex_init_calloc_cb, 228 INTERPOS_MAX 229}; 230 231/* 232 * yplib internal interfaces --- 115 unchanged lines hidden (view full) --- 348int __sys_sigprocmask(int, const __sigset_t *, __sigset_t *); 349int __sys_sigsuspend(const __sigset_t *); 350int __sys_sigtimedwait(const __sigset_t *, struct __siginfo *, 351 const struct timespec *); 352int __sys_sigwait(const __sigset_t *, int *); 353int __sys_sigwaitinfo(const __sigset_t *, struct __siginfo *); 354int __sys_swapcontext(struct __ucontext *, 355 const struct __ucontext *); | 216 INTERPOS_write, 217 INTERPOS_writev, 218 INTERPOS__pthread_mutex_init_calloc_cb, 219 INTERPOS_MAX 220}; 221 222/* 223 * yplib internal interfaces --- 115 unchanged lines hidden (view full) --- 339int __sys_sigprocmask(int, const __sigset_t *, __sigset_t *); 340int __sys_sigsuspend(const __sigset_t *); 341int __sys_sigtimedwait(const __sigset_t *, struct __siginfo *, 342 const struct timespec *); 343int __sys_sigwait(const __sigset_t *, int *); 344int __sys_sigwaitinfo(const __sigset_t *, struct __siginfo *); 345int __sys_swapcontext(struct __ucontext *, 346 const struct __ucontext *); |
347int __sys_thr_kill(long, int); 348int __sys_thr_self(long *); |
|
356int __sys_truncate(const char *, __off_t); 357__pid_t __sys_wait4(__pid_t, int *, int, struct rusage *); 358__ssize_t __sys_write(int, const void *, __size_t); 359__ssize_t __sys_writev(int, const struct iovec *, int); 360 | 349int __sys_truncate(const char *, __off_t); 350__pid_t __sys_wait4(__pid_t, int *, int, struct rusage *); 351__ssize_t __sys_write(int, const void *, __size_t); 352__ssize_t __sys_writev(int, const struct iovec *, int); 353 |
361int __libc_creat(const char *path, __mode_t mode); 362int __libc_pause(void); 363int __libc_raise(int); | |
364int __libc_sigwait(const __sigset_t * __restrict, 365 int * restrict sig); 366int __libc_system(const char *); | 354int __libc_sigwait(const __sigset_t * __restrict, 355 int * restrict sig); 356int __libc_system(const char *); |
367unsigned int __libc_sleep(unsigned int); | |
368int __libc_tcdrain(int); | 357int __libc_tcdrain(int); |
369int __libc_usleep(__useconds_t); 370__pid_t __libc_wait(int *); 371__pid_t __libc_wait3(int *, int, struct rusage *); 372__pid_t __libc_waitpid(__pid_t, int *, int); | |
373int __fcntl_compat(int fd, int cmd, ...); 374 375/* execve() with PATH processing to implement posix_spawnp() */ 376int _execvpe(const char *, char * const *, char * const *); 377 378int _elf_aux_info(int aux, void *buf, int buflen); 379struct dl_phdr_info; 380int __elf_phdr_match_addr(struct dl_phdr_info *, void *); 381void __init_elf_aux_vector(void); 382 383void _pthread_cancel_enter(int); 384void _pthread_cancel_leave(int); 385 386#endif /* _LIBC_PRIVATE_H_ */ | 358int __fcntl_compat(int fd, int cmd, ...); 359 360/* execve() with PATH processing to implement posix_spawnp() */ 361int _execvpe(const char *, char * const *, char * const *); 362 363int _elf_aux_info(int aux, void *buf, int buflen); 364struct dl_phdr_info; 365int __elf_phdr_match_addr(struct dl_phdr_info *, void *); 366void __init_elf_aux_vector(void); 367 368void _pthread_cancel_enter(int); 369void _pthread_cancel_leave(int); 370 371#endif /* _LIBC_PRIVATE_H_ */ |