new NOFORKs: clear, nproc, tty, uname, arch, unlink, which
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
+1
-1
@@ -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
|
||||
|
||||
|
||||
+1
-1
@@ -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
|
||||
|
||||
|
||||
+3
-3
@@ -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
|
||||
|
||||
+1
-1
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user