freebsd32_util.h (246e7a2b6494cd991b08ac669ed761ecea0cc98c) | freebsd32_util.h (e015b1ab0a428e65297e44471d257d7eb589b383) |
---|---|
1/*- 2 * Copyright (c) 1998-1999 Andrew Gallatin 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 --- 84 unchanged lines hidden (view full) --- 93 .sy_narg = (sizeof(struct syscallname ## _args ) \ 94 / sizeof(register_t)), \ 95 .sy_call = (sy_call_t *)& sys_ ## syscallname, \ 96 }, \ 97 .syscall_no = FREEBSD32_SYS_##syscallname \ 98} 99 100int syscall32_register(int *offset, struct sysent *new_sysent, | 1/*- 2 * Copyright (c) 1998-1999 Andrew Gallatin 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 --- 84 unchanged lines hidden (view full) --- 93 .sy_narg = (sizeof(struct syscallname ## _args ) \ 94 / sizeof(register_t)), \ 95 .sy_call = (sy_call_t *)& sys_ ## syscallname, \ 96 }, \ 97 .syscall_no = FREEBSD32_SYS_##syscallname \ 98} 99 100int syscall32_register(int *offset, struct sysent *new_sysent, |
101 struct sysent *old_sysent); | 101 struct sysent *old_sysent, int flags); |
102int syscall32_deregister(int *offset, struct sysent *old_sysent); 103int syscall32_module_handler(struct module *mod, int what, void *arg); | 102int syscall32_deregister(int *offset, struct sysent *old_sysent); 103int syscall32_module_handler(struct module *mod, int what, void *arg); |
104int syscall32_helper_register(struct syscall_helper_data *sd); | 104int syscall32_helper_register(struct syscall_helper_data *sd, int flags); |
105int syscall32_helper_unregister(struct syscall_helper_data *sd); 106 107struct iovec32; 108struct rusage32; 109register_t *freebsd32_copyout_strings(struct image_params *imgp); 110int freebsd32_copyiniov(struct iovec32 *iovp, u_int iovcnt, 111 struct iovec **iov, int error); 112void freebsd32_rusage_out(const struct rusage *s, struct rusage32 *s32); 113 114struct image_args; 115int freebsd32_exec_copyin_args(struct image_args *args, char *fname, 116 enum uio_seg segflg, u_int32_t *argv, u_int32_t *envv); 117 118#endif /* !_COMPAT_FREEBSD32_FREEBSD32_UTIL_H_ */ | 105int syscall32_helper_unregister(struct syscall_helper_data *sd); 106 107struct iovec32; 108struct rusage32; 109register_t *freebsd32_copyout_strings(struct image_params *imgp); 110int freebsd32_copyiniov(struct iovec32 *iovp, u_int iovcnt, 111 struct iovec **iov, int error); 112void freebsd32_rusage_out(const struct rusage *s, struct rusage32 *s32); 113 114struct image_args; 115int freebsd32_exec_copyin_args(struct image_args *args, char *fname, 116 enum uio_seg segflg, u_int32_t *argv, u_int32_t *envv); 117 118#endif /* !_COMPAT_FREEBSD32_FREEBSD32_UTIL_H_ */ |