aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorRon Yorston <rmy@pobox.com>2021-03-01 11:48:04 +0000
committerRon Yorston <rmy@pobox.com>2021-03-01 11:48:04 +0000
commite2e8e16b465d34759678b8170c44ce62c5b74eb0 (patch)
treeabc31e3e2c1d0de089ae5e1e6d37672394757af9 /include
parentb5cd41cdf4e6afd475fe34b755f99578e20b08ca (diff)
parent9b6bcfda0e11c0e73a966a77110f6c68425cff34 (diff)
downloadbusybox-w32-e2e8e16b465d34759678b8170c44ce62c5b74eb0.tar.gz
busybox-w32-e2e8e16b465d34759678b8170c44ce62c5b74eb0.tar.bz2
busybox-w32-e2e8e16b465d34759678b8170c44ce62c5b74eb0.zip
Merge branch 'busybox' into merge
Diffstat (limited to 'include')
-rw-r--r--include/libbb.h1
-rw-r--r--include/platform.h8
2 files changed, 9 insertions, 0 deletions
diff --git a/include/libbb.h b/include/libbb.h
index 5e1d1fc5b..63e99cfe2 100644
--- a/include/libbb.h
+++ b/include/libbb.h
@@ -1262,6 +1262,7 @@ void run_noexec_applet_and_exit(int a, const char *name, char **argv) NORETURN F
1262int find_applet_by_name(const char *name) FAST_FUNC; 1262int find_applet_by_name(const char *name) FAST_FUNC;
1263void run_applet_no_and_exit(int a, const char *name, char **argv) NORETURN FAST_FUNC; 1263void run_applet_no_and_exit(int a, const char *name, char **argv) NORETURN FAST_FUNC;
1264#endif 1264#endif
1265void show_usage_if_dash_dash_help(int applet_no, char **argv) FAST_FUNC;
1265#if defined(__linux__) 1266#if defined(__linux__)
1266void set_task_comm(const char *comm) FAST_FUNC; 1267void set_task_comm(const char *comm) FAST_FUNC;
1267#else 1268#else
diff --git a/include/platform.h b/include/platform.h
index 0fc270fab..dc4a63ed4 100644
--- a/include/platform.h
+++ b/include/platform.h
@@ -428,6 +428,7 @@ typedef unsigned smalluint;
428#define HAVE_SETBIT 1 428#define HAVE_SETBIT 1
429#define HAVE_SIGHANDLER_T 1 429#define HAVE_SIGHANDLER_T 1
430#define HAVE_STPCPY 1 430#define HAVE_STPCPY 1
431#define HAVE_STPNCPY 1
431#define HAVE_MEMPCPY 1 432#define HAVE_MEMPCPY 1
432#define HAVE_STRCASESTR 1 433#define HAVE_STRCASESTR 1
433#define HAVE_STRCHRNUL 1 434#define HAVE_STRCHRNUL 1
@@ -484,6 +485,7 @@ typedef unsigned smalluint;
484# undef HAVE_MKDTEMP 485# undef HAVE_MKDTEMP
485# undef HAVE_SETBIT 486# undef HAVE_SETBIT
486# undef HAVE_STPCPY 487# undef HAVE_STPCPY
488# undef HAVE_STPNCPY
487# undef HAVE_STRCASESTR 489# undef HAVE_STRCASESTR
488# undef HAVE_STRCHRNUL 490# undef HAVE_STRCHRNUL
489# undef HAVE_STRSEP 491# undef HAVE_STRSEP
@@ -556,6 +558,7 @@ typedef unsigned smalluint;
556 558
557#if defined(__digital__) && defined(__unix__) 559#if defined(__digital__) && defined(__unix__)
558# undef HAVE_STPCPY 560# undef HAVE_STPCPY
561# undef HAVE_STPNCPY
559#endif 562#endif
560 563
561#if defined(ANDROID) || defined(__ANDROID__) 564#if defined(ANDROID) || defined(__ANDROID__)
@@ -572,6 +575,7 @@ typedef unsigned smalluint;
572# undef HAVE_TTYNAME_R 575# undef HAVE_TTYNAME_R
573# undef HAVE_GETLINE 576# undef HAVE_GETLINE
574# undef HAVE_STPCPY 577# undef HAVE_STPCPY
578# undef HAVE_STPNCPY
575# endif 579# endif
576# undef HAVE_MEMPCPY 580# undef HAVE_MEMPCPY
577# undef HAVE_STRCHRNUL 581# undef HAVE_STRCHRNUL
@@ -617,6 +621,10 @@ typedef void (*sighandler_t)(int);
617extern char *stpcpy(char *p, const char *to_add) FAST_FUNC; 621extern char *stpcpy(char *p, const char *to_add) FAST_FUNC;
618#endif 622#endif
619 623
624#ifndef HAVE_STPNCPY
625extern char *stpncpy(char *p, const char *to_add, size_t n) FAST_FUNC;
626#endif
627
620#ifndef HAVE_MEMPCPY 628#ifndef HAVE_MEMPCPY
621#include <string.h> 629#include <string.h>
622/* In case we are wrong about !HAVE_MEMPCPY, and toolchain _does_ have 630/* In case we are wrong about !HAVE_MEMPCPY, and toolchain _does_ have