]> git.saurik.com Git - apple/libc.git/blobdiff - libdarwin/h/string.h
Libc-1439.100.3.tar.gz
[apple/libc.git] / libdarwin / h / string.h
index 8d16ac1b28ad597bc3a37657e26da9fe1bce6761..b4db82ebbaa47bc7e1afcad274251e668f2c0cae 100644 (file)
 #include <os/api.h>
 #include <sys/cdefs.h>
 
+#if DARWIN_TAPI
+#include "tapi.h"
+#endif
+
 __BEGIN_DECLS;
 
 /*!
@@ -89,10 +93,25 @@ typedef os_flag_t os_flagset_t[OS_FLAGSET_COUNT];
  * is given, this is equivalent to a call to strerror(3).
  */
 DARWIN_API_AVAILABLE_20170407
-OS_EXPORT OS_WARN_RESULT OS_PURE
+OS_EXPORT OS_COLD OS_WARN_RESULT OS_PURE
 const char *
 strerror_np(int code);
 
+/*!
+ * @function strexit_np
+ * Returns a human-readable string for the given sysexits(3) code.
+ *
+ * @param code
+ * The exit code for which to obtain the string.
+ *
+ * @result
+ * A human-readable string describing the exit condition.
+ */
+DARWIN_API_AVAILABLE_20190830
+OS_EXPORT OS_COLD OS_WARN_RESULT OS_PURE
+const char *
+strexit_np(int code);
+
 /*!
  * @function symerror_np
  * Returns the token name of the given {@link errno_t} or POSIX error
@@ -106,7 +125,7 @@ strerror_np(int code);
  * string "EPERM" is returned.
  */
 DARWIN_API_AVAILABLE_20170407
-OS_EXPORT OS_WARN_RESULT OS_PURE
+OS_EXPORT OS_COLD OS_WARN_RESULT OS_PURE
 const char *
 symerror_np(int code);
 
@@ -124,7 +143,7 @@ symerror_np(int code);
  * exit code.
  */
 DARWIN_API_AVAILABLE_20170407
-OS_EXPORT OS_WARN_RESULT OS_PURE
+OS_EXPORT OS_COLD OS_WARN_RESULT OS_PURE
 const char *
 symexit_np(int code);