svcadm(8)을 검색하려면 섹션에서 8 을 선택하고, 맨 페이지 이름에 svcadm을 입력하고 검색을 누른다.
strerrordesc_np(3c)
strerrordesc_np(3C) Standard C Library Functions strerrordesc_np(3C)
NAME
strerrordesc_np, strerrorname_np - get error name and message strings
SYNOPSIS
#include <string.h>
const char *strerrordesc_np(int errnum);
const char *strerrorname_np(int errnum);
DESCRIPTION
The strerrordesc_np() function maps the error number in errnum to the
corresponding error message string. It differs from the standard str‐
error() function in 2 respects: The returned string is not translated
according to the current locale, and strerrordesc_np() returns a NULL
result for unknown error codes, rather than a generated descriptive
string. See strerror(3C).
The strerrorname_np() function maps the error number in errnum to the
corresponding error name. For example, given EPERM, strerrorname_np()
returns a pointer to the string "EPERM".
RETURN VALUES
Upon successful completion, strerrordesc_np() returns a pointer to the
error message string. It returns NULL if errnum is not a valid error
number.
Upon successful completion, strerrorname_np() returns a pointer to the
error name string. It returns NULL if errnum is not a valid error num‐
ber.
USAGE
The strings returned from these functions are not localized, and are
unaffected by the native language specified by the LC_MESSAGES locale
category.
ATTRIBUTES
See attributes(7) for descriptions of the following attributes:
tab() box; cw(2.75i) |cw(2.75i) lw(2.75i) |lw(2.75i) ATTRIBUTE TYPEAT‐
TRIBUTE VALUE _ Interface StabilityCommitted _ MT-LevelSafe _ Standard‐
None
SEE ALSO
Intro(2), perror(3C), strerror(3C)
HISTORY
The strerrordesc_np() and strerrorname_np() functions were defined in
GNU glibc 2.32, and were added to Oracle Solaris in the Oracle Solaris
11.4.30 release.
Oracle Solaris 11.4 28 Feb 2022 strerrordesc_np(3C)