aboutsummaryrefslogtreecommitdiff
path: root/procps/free.c
diff options
context:
space:
mode:
Diffstat (limited to 'procps/free.c')
-rw-r--r--procps/free.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/procps/free.c b/procps/free.c
index 618664e08..b57e4a322 100644
--- a/procps/free.c
+++ b/procps/free.c
@@ -15,7 +15,7 @@
15//config: memory in the system, as well as the buffers used by the kernel. 15//config: memory in the system, as well as the buffers used by the kernel.
16//config: The shared memory column should be ignored; it is obsolete. 16//config: The shared memory column should be ignored; it is obsolete.
17 17
18//applet:IF_FREE(APPLET(free, BB_DIR_USR_BIN, BB_SUID_DROP)) 18//applet:IF_FREE(APPLET_NOEXEC(free, free, BB_DIR_USR_BIN, BB_SUID_DROP, free))
19 19
20//kbuild:lib-$(CONFIG_FREE) += free.o 20//kbuild:lib-$(CONFIG_FREE) += free.o
21 21
@@ -47,7 +47,10 @@ struct globals {
47#endif 47#endif
48} FIX_ALIASING; 48} FIX_ALIASING;
49#define G (*(struct globals*)bb_common_bufsiz1) 49#define G (*(struct globals*)bb_common_bufsiz1)
50#define INIT_G() do { setup_common_bufsiz(); } while (0) 50#define INIT_G() do { \
51 setup_common_bufsiz(); \
52 /* NB: noexec applet - globals not zeroed */ \
53} while (0)
51 54
52 55
53static unsigned long long scale(unsigned long d) 56static unsigned long long scale(unsigned long d)