From e2a3387cf777c5b190d70475e98ada83b9abbc4a Mon Sep 17 00:00:00 2001 From: Sean Whitton Date: Sat, 16 Apr 2022 15:29:29 -0700 Subject: drop plus signs & use underscores in C preprocessor constants Signed-off-by: Sean Whitton --- src/libcap.lisp | 82 ++++++++++++++++++++++++++++----------------------------- 1 file changed, 41 insertions(+), 41 deletions(-) (limited to 'src/libcap.lisp') diff --git a/src/libcap.lisp b/src/libcap.lisp index 96f850e..567de23 100644 --- a/src/libcap.lisp +++ b/src/libcap.lisp @@ -11,47 +11,47 @@ ((:cap-inheritable "CAP_INHERITABLE"))) (cenum cap_flag_value_t ((:cap-set "CAP_SET")) ((:cap-clear "CAP_CLEAR"))) -(constant (+CAP-CHOWN+ "CAP_CHOWN")) -(constant (+CAP-DAC-OVERRIDE+ "CAP_DAC_OVERRIDE")) -(constant (+CAP-DAC-READ-SEARCH+ "CAP_DAC_READ_SEARCH")) -(constant (+CAP-FOWNER+ "CAP_FOWNER")) -(constant (+CAP-FSETID+ "CAP_FSETID")) -(constant (+CAP-KILL+ "CAP_KILL")) -(constant (+CAP-SETGID+ "CAP_SETGID")) -(constant (+CAP-SETUID+ "CAP_SETUID")) +(constant (CAP_CHOWN "CAP_CHOWN")) +(constant (CAP_DAC_OVERRIDE "CAP_DAC_OVERRIDE")) +(constant (CAP_DAC_READ_SEARCH "CAP_DAC_READ_SEARCH")) +(constant (CAP_FOWNER "CAP_FOWNER")) +(constant (CAP_FSETID "CAP_FSETID")) +(constant (CAP_KILL "CAP_KILL")) +(constant (CAP_SETGID "CAP_SETGID")) +(constant (CAP_SETUID "CAP_SETUID")) #+linux (progn - (constant (+CAP-SETPCAP+ "CAP_SETPCAP")) - (constant (+CAP-LINUX-IMMUTABLE+ "CAP_LINUX_IMMUTABLE")) - (constant (+CAP-NET-BIND-SERVICE+ "CAP_NET_BIND_SERVICE")) - (constant (+CAP-NET-BROADCAST+ "CAP_NET_BROADCAST")) - (constant (+CAP-NET-ADMIN+ "CAP_NET_ADMIN")) - (constant (+CAP-NET-RAW+ "CAP_NET_RAW")) - (constant (+CAP-IPC-LOCK+ "CAP_IPC_LOCK")) - (constant (+CAP-IPC-OWNER+ "CAP_IPC_OWNER")) - (constant (+CAP-SYS-MODULE+ "CAP_SYS_MODULE")) - (constant (+CAP-SYS-RAWIO+ "CAP_SYS_RAWIO")) - (constant (+CAP-SYS-CHROOT+ "CAP_SYS_CHROOT")) - (constant (+CAP-SYS-PTRACE+ "CAP_SYS_PTRACE")) - (constant (+CAP-SYS-PACCT+ "CAP_SYS_PACCT")) - (constant (+CAP-SYS-ADMIN+ "CAP_SYS_ADMIN")) - (constant (+CAP-SYS-BOOT+ "CAP_SYS_BOOT")) - (constant (+CAP-SYS-NICE+ "CAP_SYS_NICE")) - (constant (+CAP-SYS-RESOURCE+ "CAP_SYS_RESOURCE")) - (constant (+CAP-SYS-TIME+ "CAP_SYS_TIME")) - (constant (+CAP-SYS-TTY-CONFIG+ "CAP_SYS_TTY_CONFIG")) - (constant (+CAP-MKNOD+ "CAP_MKNOD")) - (constant (+CAP-LEASE+ "CAP_LEASE")) - (constant (+CAP-AUDIT-WRITE+ "CAP_AUDIT_WRITE")) - (constant (+CAP-AUDIT-CONTROL+ "CAP_AUDIT_CONTROL")) - (constant (+CAP-SETFCAP+ "CAP_SETFCAP")) - (constant (+CAP-MAC-OVERRIDE+ "CAP_MAC_OVERRIDE")) - (constant (+CAP-MAC-ADMIN+ "CAP_MAC_ADMIN")) - (constant (+CAP-SYSLOG+ "CAP_SYSLOG")) - (constant (+CAP-WAKE-ALARM+ "CAP_WAKE_ALARM")) - (constant (+CAP-BLOCK-SUSPEND+ "CAP_BLOCK_SUSPEND")) - (constant (+CAP-AUDIT-READ+ "CAP_AUDIT_READ")) - (constant (+CAP-PERFMON+ "CAP_PERFMON")) - (constant (+CAP-BPF+ "CAP_BPF")) - (constant (+CAP-CHECKPOINT-RESTORE+ "CAP_CHECKPOINT_RESTORE"))) + (constant (CAP_SETPCAP "CAP_SETPCAP")) + (constant (CAP_LINUX_IMMUTABLE "CAP_LINUX_IMMUTABLE")) + (constant (CAP_NET_BIND_SERVICE "CAP_NET_BIND_SERVICE")) + (constant (CAP_NET_BROADCAST "CAP_NET_BROADCAST")) + (constant (CAP_NET_ADMIN "CAP_NET_ADMIN")) + (constant (CAP_NET_RAW "CAP_NET_RAW")) + (constant (CAP_IPC_LOCK "CAP_IPC_LOCK")) + (constant (CAP_IPC_OWNER "CAP_IPC_OWNER")) + (constant (CAP_SYS_MODULE "CAP_SYS_MODULE")) + (constant (CAP_SYS_RAWIO "CAP_SYS_RAWIO")) + (constant (CAP_SYS_CHROOT "CAP_SYS_CHROOT")) + (constant (CAP_SYS_PTRACE "CAP_SYS_PTRACE")) + (constant (CAP_SYS_PACCT "CAP_SYS_PACCT")) + (constant (CAP_SYS_ADMIN "CAP_SYS_ADMIN")) + (constant (CAP_SYS_BOOT "CAP_SYS_BOOT")) + (constant (CAP_SYS_NICE "CAP_SYS_NICE")) + (constant (CAP_SYS_RESOURCE "CAP_SYS_RESOURCE")) + (constant (CAP_SYS_TIME "CAP_SYS_TIME")) + (constant (CAP_SYS_TTY_CONFIG "CAP_SYS_TTY_CONFIG")) + (constant (CAP_MKNOD "CAP_MKNOD")) + (constant (CAP_LEASE "CAP_LEASE")) + (constant (CAP_AUDIT_WRITE "CAP_AUDIT_WRITE")) + (constant (CAP_AUDIT_CONTROL "CAP_AUDIT_CONTROL")) + (constant (CAP_SETFCAP "CAP_SETFCAP")) + (constant (CAP_MAC_OVERRIDE "CAP_MAC_OVERRIDE")) + (constant (CAP_MAC_ADMIN "CAP_MAC_ADMIN")) + (constant (CAP_SYSLOG "CAP_SYSLOG")) + (constant (CAP_WAKE_ALARM "CAP_WAKE_ALARM")) + (constant (CAP_BLOCK_SUSPEND "CAP_BLOCK_SUSPEND")) + (constant (CAP_AUDIT_READ "CAP_AUDIT_READ")) + (constant (CAP_PERFMON "CAP_PERFMON")) + (constant (CAP_BPF "CAP_BPF")) + (constant (CAP_CHECKPOINT_RESTORE "CAP_CHECKPOINT_RESTORE"))) -- cgit v1.2.3