summaryrefslogtreecommitdiff
path: root/coreutils
diff options
context:
space:
mode:
authorDenys Vlasenko2017-08-03 03:29:32 +0200
committerDenys Vlasenko2017-08-03 03:29:32 +0200
commit819b47aa357c33bf84919495795b36f8c1faa3ac (patch)
tree7ba0ddb384c2e7fdf581989f66085b95a78e0976 /coreutils
parent39701204cfa0f261beb2dc056024634e4c3afd71 (diff)
downloadbusybox-819b47aa357c33bf84919495795b36f8c1faa3ac.zip
busybox-819b47aa357c33bf84919495795b36f8c1faa3ac.tar.gz
new NOFORKs: clear, nproc, tty, uname, arch, unlink, which
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'coreutils')
-rw-r--r--coreutils/nproc.c2
-rw-r--r--coreutils/tty.c2
-rw-r--r--coreutils/uname.c6
-rw-r--r--coreutils/unlink.c2
4 files changed, 6 insertions, 6 deletions
diff --git a/coreutils/nproc.c b/coreutils/nproc.c
index 68a8318..0ae55e7 100644
--- a/coreutils/nproc.c
+++ b/coreutils/nproc.c
@@ -9,7 +9,7 @@
//config: help
//config: Print number of CPUs
-//applet:IF_NPROC(APPLET(nproc, BB_DIR_USR_BIN, BB_SUID_DROP))
+//applet:IF_NPROC(APPLET_NOFORK(nproc, nproc, BB_DIR_USR_BIN, BB_SUID_DROP, nproc))
//kbuild:lib-$(CONFIG_NPROC) += nproc.o
diff --git a/coreutils/tty.c b/coreutils/tty.c
index 331941a..18ad7c5 100644
--- a/coreutils/tty.c
+++ b/coreutils/tty.c
@@ -13,7 +13,7 @@
//config: tty is used to print the name of the current terminal to
//config: standard output.
-//applet:IF_TTY(APPLET(tty, BB_DIR_USR_BIN, BB_SUID_DROP))
+//applet:IF_TTY(APPLET_NOFORK(tty, tty, BB_DIR_USR_BIN, BB_SUID_DROP, tty))
//kbuild:lib-$(CONFIG_TTY) += tty.o
diff --git a/coreutils/uname.c b/coreutils/uname.c
index aad58ca..d6e447e 100644
--- a/coreutils/uname.c
+++ b/coreutils/uname.c
@@ -63,9 +63,9 @@
//config: help
//config: Same as uname -m.
-//applet:IF_UNAME(APPLET(uname, BB_DIR_BIN, BB_SUID_DROP))
-// APPLET_ODDNAME:name main location suid_type help
-//applet:IF_BB_ARCH(APPLET_ODDNAME(arch, uname, BB_DIR_BIN, BB_SUID_DROP, arch))
+// APPLET_NOFORK:name main location suid_type help
+//applet:IF_UNAME(APPLET_NOFORK( uname, uname, BB_DIR_BIN, BB_SUID_DROP, uname))
+//applet:IF_BB_ARCH(APPLET_NOFORK(arch, uname, BB_DIR_BIN, BB_SUID_DROP, arch))
//kbuild:lib-$(CONFIG_UNAME) += uname.o
//kbuild:lib-$(CONFIG_BB_ARCH) += uname.o
diff --git a/coreutils/unlink.c b/coreutils/unlink.c
index 3322d5b..e32a974 100644
--- a/coreutils/unlink.c
+++ b/coreutils/unlink.c
@@ -11,7 +11,7 @@
//config: help
//config: unlink deletes a file by calling unlink()
-//applet:IF_UNLINK(APPLET(unlink, BB_DIR_USR_BIN, BB_SUID_DROP))
+//applet:IF_UNLINK(APPLET_NOFORK(unlink, unlink, BB_DIR_USR_BIN, BB_SUID_DROP, unlink))
//kbuild:lib-$(CONFIG_UNLINK) += unlink.o