]> 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 23c0098e8eeebd794178603f32c398eef344fb69..b4db82ebbaa47bc7e1afcad274251e668f2c0cae 100644 (file)
 #include <os/api.h>
 #include <sys/cdefs.h>
 
+#if DARWIN_TAPI
+#include "tapi.h"
+#endif
+
 __BEGIN_DECLS;
 
 /*!
@@ -93,6 +97,21 @@ 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