summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorGlenn L McGrath <bug1@ihug.co.nz>2003-06-22 15:32:41 +0000
committerGlenn L McGrath <bug1@ihug.co.nz>2003-06-22 15:32:41 +0000
commit655d814d753535f04f42b268b76455a46e98102d (patch)
treeda9ec9f8e8d88c3dd37da027df6c219a5f947b2c /include
parenta0b3705fa12280f29cde2b4c8d272b703735715f (diff)
downloadbusybox-w32-655d814d753535f04f42b268b76455a46e98102d.tar.gz
busybox-w32-655d814d753535f04f42b268b76455a46e98102d.tar.bz2
busybox-w32-655d814d753535f04f42b268b76455a46e98102d.zip
New applet: patch, applies a unified diff
Diffstat (limited to 'include')
-rw-r--r--include/applets.h3
-rw-r--r--include/usage.h7
2 files changed, 10 insertions, 0 deletions
diff --git a/include/applets.h b/include/applets.h
index 01cfb8629..cfb278123 100644
--- a/include/applets.h
+++ b/include/applets.h
@@ -421,6 +421,9 @@
421#ifdef CONFIG_PASSWD 421#ifdef CONFIG_PASSWD
422 APPLET(passwd, passwd_main, _BB_DIR_USR_BIN, _BB_SUID_ALWAYS) 422 APPLET(passwd, passwd_main, _BB_DIR_USR_BIN, _BB_SUID_ALWAYS)
423#endif 423#endif
424#ifdef CONFIG_PATCH
425 APPLET(patch, patch_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
426#endif
424#ifdef CONFIG_PIDFILEHACK 427#ifdef CONFIG_PIDFILEHACK
425 APPLET(pidfilehack, pidfilehack_main, _BB_DIR_BIN, _BB_SUID_NEVER) 428 APPLET(pidfilehack, pidfilehack_main, _BB_DIR_BIN, _BB_SUID_NEVER)
426#endif 429#endif
diff --git a/include/usage.h b/include/usage.h
index d60a4dc78..701b40daa 100644
--- a/include/usage.h
+++ b/include/usage.h
@@ -1696,6 +1696,13 @@
1696 "\t-l\tLocks (disables) the specified user account.\n" \ 1696 "\t-l\tLocks (disables) the specified user account.\n" \
1697 "\t-u\tUnlocks (re-enables) the specified user account." 1697 "\t-u\tUnlocks (re-enables) the specified user account."
1698 1698
1699#define patch_trivial_usage \
1700 "[-p<num>]"
1701#define patch_full_usage \
1702 "[-p<num>]"
1703#define patch_example_usage \
1704 "$ patch -p1 <example.diff"
1705
1699#define pidfilehack_trivial_usage \ 1706#define pidfilehack_trivial_usage \
1700 "[daemon.pid] [daemon]" 1707 "[daemon.pid] [daemon]"
1701#define pidfilehack_full_usage \ 1708#define pidfilehack_full_usage \