Changeset View
Changeset View
Standalone View
Standalone View
lib/libc/include/compat.h
Show All 31 Lines | |||||
/* | /* | ||||
* This file defines compatibility symbol versions for old system calls. It | * This file defines compatibility symbol versions for old system calls. It | ||||
* is included in all generated system call files. | * is included in all generated system call files. | ||||
*/ | */ | ||||
#ifndef __LIBC_COMPAT_H__ | #ifndef __LIBC_COMPAT_H__ | ||||
#define __LIBC_COMPAT_H__ | #define __LIBC_COMPAT_H__ | ||||
#define __sym_compat(sym,impl,verid) \ | #define __sym_compat(sym, impl, verid) \ | ||||
.symver impl, sym@verid | .symver impl, sym@verid | ||||
#ifndef NO_COMPAT7 | #ifndef NO_COMPAT7 | ||||
__sym_compat(__semctl, freebsd7___semctl, FBSD_1.0); | __sym_compat(__semctl, freebsd7___semctl, FBSD_1.0); | ||||
__sym_compat(msgctl, freebsd7_msgctl, FBSD_1.0); | __sym_compat(msgctl, freebsd7_msgctl, FBSD_1.0); | ||||
__sym_compat(shmctl, freebsd7_shmctl, FBSD_1.0); | __sym_compat(shmctl, freebsd7_shmctl, FBSD_1.0); | ||||
#endif | #endif | ||||
Show All 20 Lines | |||||
__sym_compat(kevent, freebsd11_kevent, FBSD_1.0); | __sym_compat(kevent, freebsd11_kevent, FBSD_1.0); | ||||
#undef __sym_compat | #undef __sym_compat | ||||
#define __weak_reference(sym,alias) \ | #define __weak_reference(sym,alias) \ | ||||
.weak alias;.equ alias,sym | .weak alias;.equ alias,sym | ||||
__weak_reference(__sys_fcntl,__fcntl_compat) | __weak_reference(__sys_fcntl, __fcntl_compat) | ||||
#undef __weak_reference | #undef __weak_reference | ||||
#endif /* __LIBC_COMPAT_H__ */ | #endif /* __LIBC_COMPAT_H__ */ | ||||