mirror of
https://git.rtems.org/rtems-libbsd/
synced 2025-10-14 07:15:58 +08:00
Update to FreeBSD head 2018-12-20
Git mirror commit 19a6ceb89dbacf74697d493e48c388767126d418. It includes an update of wpa_supplicant to version 2.7. It includes an update of the OpenSSL baseline to version 1.1.1a. Update #3472.
This commit is contained in:
@@ -71,7 +71,7 @@
|
||||
extern u_int audit_dtrace_enabled;
|
||||
extern int audit_trail_enabled;
|
||||
extern int audit_trail_suspended;
|
||||
extern int audit_syscalls_enabled;
|
||||
extern bool audit_syscalls_enabled;
|
||||
|
||||
void audit_syscall_enter(unsigned short code, struct thread *td);
|
||||
void audit_syscall_exit(int error, struct thread *td);
|
||||
@@ -150,7 +150,7 @@ void audit_thread_free(struct thread *td);
|
||||
* Define macros to wrap the audit_arg_* calls by checking the global
|
||||
* audit_syscalls_enabled flag before performing the actual call.
|
||||
*/
|
||||
#define AUDITING_TD(td) ((td)->td_pflags & TDP_AUDITREC)
|
||||
#define AUDITING_TD(td) (__predict_false((td)->td_pflags & TDP_AUDITREC))
|
||||
|
||||
#define AUDIT_ARG_ADDR(addr) do { \
|
||||
if (AUDITING_TD(curthread)) \
|
||||
@@ -389,7 +389,7 @@ void audit_thread_free(struct thread *td);
|
||||
* auditing is disabled, so we don't just check audit_syscalls_enabled here.
|
||||
*/
|
||||
#define AUDIT_SYSCALL_EXIT(error, td) do { \
|
||||
if (td->td_pflags & TDP_AUDITREC) \
|
||||
if (AUDITING_TD(td)) \
|
||||
audit_syscall_exit(error, td); \
|
||||
} while (0)
|
||||
|
||||
@@ -397,7 +397,7 @@ void audit_thread_free(struct thread *td);
|
||||
* A Macro to wrap the audit_sysclose() function.
|
||||
*/
|
||||
#define AUDIT_SYSCLOSE(td, fd) do { \
|
||||
if (td->td_pflags & TDP_AUDITREC) \
|
||||
if (AUDITING_TD(td)) \
|
||||
audit_sysclose(td, fd); \
|
||||
} while (0)
|
||||
|
||||
|
Reference in New Issue
Block a user