# UTILS ## **Overview** Provides functions and data structures related to system operations, such as string conversion and I/O, string operations, process operations and so on. **Since:** 1.0 **Version:** 1.0 ## **Summary** ## Files
Creates a queue from the doubly linked list for insque and remque. |
|
Too many opened files in system (the maximum number exceeded) |
|
Too many opened files in a process (the maximum number exceeded) |
|
The pipe file is incorrect or the read end of the pipe is closed during the write operation. |
|
Domain error. The value of at least one input parameter is out of the parameter range. |
|
EWOULDBLOCK EAGAIN |
Operation would block (the same value as EAGAIN) |
EDEADLOCK EDEADLK |
Resource deadlock (the same value as EDEADLK) |
ENOTSUP EOPNOTSUPP |
Operation not supported on socket. The value is the same as that of EOPNOTSUPP. |
_tolower(a) ((a)|0x20) |
|
_toupper(a) ((a)&0x5f) |
|
isascii(a) (0 ? isascii(a) : (unsigned)(a) < 128) |
|
No severity level is set, equivalent to MM_NULLSEV. |
|
If this flag is set, a slash (/) in string can be matched by a slash (/) in pattern, but not by an asterisk (*), or a question mark (?), or a bracket expression ([]) containing a slash. |
|
If this flag is set, the backslash () is treated as an ordinary character, instead of an escape character. |
|
If this flag is set, a leading period (.) in string can be exactly matched by the period (.) in pattern. A period is considered to be leading if it is the first character in string, or if both FNM_PATHNAME is set and the period immediately follows a slash. |
|
If this flag is set, a trailing sequence of characters starting with a slash (/) is ignored in string. For example, if this flag is set, either foo* or foobar as a pattern would match the string foobar/frobozz. |
|
If this flag is set, the pattern is matched case-insensitively. |
|
FNM_FILE_NAME FNM_PATHNAME |
The definition is similar to that of FNM_PATHNAME. |
LONG_MIN (-LONG_MAX-1) |
|
LONG_MAX __LONG_MAX |
|
ULONG_MAX (2UL*LONG_MAX+1) |
|
LLONG_MIN (-LLONG_MAX-1) |
|
ULLONG_MAX (2ULL*LLONG_MAX+1) |
|
SSIZE_MAX LONG_MAX |
|
PAGE_SIZE PAGESIZE |
|
va_start(v, l) __builtin_va_start(v,l) |
Defines the start position of the variable-length argument list. |
va_end(v) __builtin_va_end(v) |
|
va_arg(v, l) __builtin_va_arg(v,l) |
Obtains the next argument in the variable-length argument list. |
va_copy(d, s) __builtin_va_copy(d,s) |
Copies the previously initialized variable argument list s to d. |
Relocation starts from the position of the currently accessed file. |
|
typedef struct entry |
crypt (const char *key, const char *setting) |
|
isalnum (int c) |
Checks whether a parameter is an alphabetic character or a decimal digit. |
isalpha (int c) |
|
isblank (int c) |
Checks whether a parameter is a blank character (space or tap). |
iscntrl (int c) |
Checks whether a parameter is a control character. A control character is invisible and does not occupy a printing position on a display. |
isdigit (int c) |
|
isgraph (int c) |
Checks whether a parameter is any printable character except the space character. |
islower (int c) |
|
isprint (int c) |
Checks whether a parameter is a printable character (including space). |
ispunct (int c) |
Checks whether a parameter is a punctuation or special character. |
isspace (int c) |
|
isupper (int c) |
|
isxdigit (int c) |
|
tolower (int c) |
Converts an uppercase letter specified by c to its lowercase equivalent. |
toupper (int c) |
Converts a lowercase letter specified by c to its uppercase equivalent. |
isalnum_l (int c, locale_t locale) |
Checks whether a parameter is an alphabetic character or digit for the specified locale. |
isalpha_l (int c, locale_t locale) |
Checks whether a parameter is an alphabetic character for the specified locale. |
isblank_l (int c, locale_t locale) |
Checks whether a parameter is a blank character (including spaces and tabs) for the specified locale. |
iscntrl_l (int c, locale_t locale) |
Checks whether a parameter is a control character for the specified locale. |
isdigit_l (int c, locale_t locale) |
Checks whether a parameter is a decimal digit for the specified locale. |
isgraph_l (int c, locale_t locale) |
Checks whether a parameter is any printable character except the space character for the specified locale. |
islower_l (int c, locale_t locale) |
Checks whether a parameter is a character of lowercase letters for the specified locale. |
isprint_l (int c, locale_t locale) |
Checks whether a parameter is a printable character (including space) for the specified locale. A printable character is visible and occupies a printing position on a display. |
ispunct_l (int c, locale_t locale) |
Checks whether a parameter is a punctuation or special character for the specified locale. |
isspace_l (int c, locale_t locale) |
Checks whether a parameter is a blank character for the specified locale. |
isupper_l (int c, locale_t locale) |
Checks whether a parameter is a character of uppercase letters for the specified locale. |
isxdigit_l (int c, locale_t locale) |
Checks whether a parameter is a hexadecimal digit for the specified locale. |
tolower_l (int c, locale_t locale) |
Converts an upper letter specified by c to its lowercase equivalent for the specified locale. |
toupper_l (int c, locale_t locale) |
Converts a lowercase letter specified by c to its uppercase equivalent for the specified locale. |
toascii (int c) |
|
fmtmsg (long classification, const char *label, int severity, const char *text, const char *action, const char *tag) |
|
fnmatch (const char *pattern, const char *string, int flags) |
|
getopt_long (int argc, char *const *argv, const char *optstring, const struct option *longopts, int *longindex) |
|
getopt_long_only (int argc, char *const *argv, const char *optstring, const struct option *longopts, int *longindex) |
|
imaxabs (intmax_t j) |
Calculates the absolute value of an input parameter of the integer type. |
imaxdiv (intmax_t numerator, intmax_t denominator) |
Calculates the quotient and remainder after the division operation is performed on an integer. |
strtoimax (const char *str, char **endptr, int base) |
|
strtoumax (const char *str, char **endptr, int base) |
|
wcstoimax (const wchar_t *str, wchar_t **endptr, int base) |
|
wcstoumax (const wchar_t *str, wchar_t **endptr, int base) |
|
strfmon (char *s, size_t max, const char *format,...) |
|
hcreate (size_t nel) |
|
hdestroy (void) |
|
ENTRY * |
|
hcreate_r (size_t nel, struct hsearch_data *htab) |
Creates a hash table based on the number of entries and its description. |
hdestroy_r (struct hsearch_data *htab) |
|
hsearch_r (ENTRY item, ACTION action, ENTRY **retval, struct hsearch_data *htab) |
|
insque (void *element, void *pred) |
|
remque (void *elem) |
|
lsearch (const void *key, const void *base, size_t *nelp, size_t width, int(*compar)(const void *, const void *)) |
Performs a linear search for a key in the array and adds a key to the end of the array if the key is not found. |
lfind (const void *key, const void *base, size_t *nelp, size_t width, int(*compar)(const void *, const void *)) |
|
tdelete (const void *key, void **rootp, int(*compar)(const void *, const void *)) |
|
tfind (const void *key, void *const *rootp, int(*compar)(const void *, const void *)) |
|
tsearch (const void *key, void *const *rootp, int(*compar)(const void *, const void *)) |
Searches for a key in the binary tree and adds a key to the tree if the key is not found. |
twalk (const void *root, void(*action)(const void *nodep, VISIT which, int depth)) |
|
tdestroy (void *root, void(*free_node)(void *nodep)) |
|
atoi (const char *nptr) |
|
atol (const char *nptr) |
|
atoll (const char *nptr) |
|
atof (const char *nptr) |
Converts an input string to a double-precision floating-point number. |
strtof (const char *nptr, char **endptr) |
|
strtod (const char *nptr, char **endptr) |
|
strtold (const char *nptr, char **endptr) |
|
strtol (const char *nptr, char **endptr, int base) |
Converts a string to a long integer according to the given base. |
strtoul (const char *nptr, char **endptr, int base) |
Converts a string to an unsigned long integer according to the given base. |
strtoll (const char *nptr, char **endptr, int base) |
Converts a string to a long long integer according to the given base. |
strtoull (const char *nptr, char **endptr, int base) |
Converts a string to an unsigned long long integer according to the given base. |
rand (void) |
|
srand (unsigned int seed) |
|
malloc (size_t size) |
|
calloc (size_t nmemb, size_t size) |
|
realloc (void *ptr, size_t size) |
Changes the size of the memory block pointed to by ptr to size bytes. |
free (void *ptr) |
|
abort (void) |
Terminates an abnormal process and sends the SIGABRT signal to the caller. |
atexit (void(*func)(void)) |
|
exit (int status) |
Terminates the calling process, clears the used memory space and various data structures in the kernel, and sends the process end status to the parent process. All functions registered with atexit and on_exit are called in the reverse order. |
getenv (const char *name) |
|
_Exit (int status) |
Terminates the calling process, clears the used memory space and various data structures in the kernel, and sends the process end status to the parent process. |
assert (scalar expression) |
|
secure_getenv (const char *name) |
|
bsearch (const void *key, const void *base, size_t nel, size_t width, int(*compar)(const void *, const void *)) |
Searches for key using the binary search algorithm from the array element base[0] to base[num-1]. |
qsort (const void *base, size_t nel, size_t width, int(*compar)(const void *, const void *)) |
Sorts array elements base[0] to base[num-1] based on the comparison rules of compar. |
abs (int i) |
|
labs (long i) |
|
llabs (long long i) |
|
div (int numerator, int denominator) |
Calculates the quotient and remainder of an integer after division. |
ldiv (long numerator, long denominator) |
Calculates the quotient and remainder of a long integer after division. |
lldiv (long long numerator, long long denominator) |
Calculates the quotient and remainder of a long long integer after division. |
mblen (const char *s, size_t n) |
|
mbtowc (wchar_t *pwc, const char *s, size_t n) |
|
wctomb (char *s, wchar_t wc) |
Converts a wide character to its multi-byte sequence and stores it in a character array. |
mbstowcs (wchar_t *dest, const char *src, size_t n) |
|
wcstombs (char *dest, const wchar_t *src, size_t n) |
|
posix_memalign (void **memptr, size_t alignment, size_t size) |
Allocates memory with the specified size based on the given alignment. |
setenv (const char *name, const char *value, int overwrite) |
|
unsetenv (const char *name) |
|
mkstemp (char *template) |
|
mkostemp (char *template, int flags) |
|
mkdtemp (char *template) |
|
getsubopt (char **optionp, char *const *tokens, char **valuep) |
|
rand_r (unsigned *seedp) |
|
realpath (const char *__restrict path, char *__restrict resolved) |
|
random (void) |
|
srandom (unsigned int seed) |
|
initstate (unsigned int seed, char *state, size_t n) |
|
setstate (char *state) |
|
putenv (char *s) |
|
unlockpt (int fd) |
Unlocks the secondary pseudo terminal corresponding to a primary pseudo terminal. |
ptsname (int fd) |
|
l64a (long value) |
|
a64l (const char *str64) |
Converts between a 32-bit long integer and a little-endian 64-bit ASCII string. |
drand48 (void) |
|
erand48 (unsigned short xsubi[3]) |
|
lrand48 (void) |
Generates pseudo-random numbers evenly distributed between [0, 2^31). |
nrand48 (unsigned short xsubi[3]) |
Generates pseudo-random numbers evenly distributed between [0, 2^31). |
mrand48 (void) |
Generates pseudo-random numbers evenly distributed between [-2^31, 2^31). |
jrand48 (unsigned short xsubi[3]) |
Generates pseudo-random numbers evenly distributed between [-2^31, 2^31). |
srand48 (long int seedval) |
Sets the start seed value for the pseudo-random number generator. |
seed48 (unsigned short[3]) |
|
lcong48 (unsigned short param[7]) |
Sets the seed and related algorithm parameters for the pseudo-random number generator. |
mktemp (char *template) |
|
mkstemps (char *template, int suffixlen) |
|
mkostemps (char *template, int suffixlen, int flags) |
|
valloc (size_t size) |
Allocates memory with the specified size and aligns the allocated memory by page size. |
ecvt (double number, int ndigits, int *decpt, int *sign) |
Converts a double-precision floating-point number into a string. |
fcvt (double number, int ndigits, int *decpt, int *sign) |
|
gcvt (double x, int n, char *b) |
|
memcpy (void *__restrict dest, const void *__restrict src, size_t n) |
|
memmove (void *dest, const void *src, size_t n) |
|
memset (void *s, int c, size_t n) |
|
memcmp (const void *s1, const void *s2, size_t n) |
|
memchr (const void *s, int c, size_t n) |
|
strcpy (char *dest, const char *src) |
|
strncpy (char *dest, const char *src, size_t n) |
|
strcat (char *dest, const char *src) |
|
strncat (char *dest, const char *src, size_t n) |
|
strcmp (const char *s1, const char *s2) |
|
strncmp (const char *s1, const char *s2, size_t n) |
|
strcoll (const char *s1, const char *s2) |
Compares two strings by character for the program's current locale. |
strcoll_l (const char *s1, const char *s2, locale_t locale) |
|
strxfrm (char *dest, const char *src, size_t n) |
Converts the first n characters of the source string pointed to by src based on the program's current locale specified by LC_COLLATE, and places them in the destination string pointed to by dest. |
strchr (const char *s, int c) |
|
strrchr (const char *s, int c) |
|
strcspn (const char *s, const char *reject) |
Obtains the length of the initial segment of a string that contains characters not in reject. |
Obtains the length of the initial segment of a string that contains characters in accept. |
|
strstr (const char *haystack, const char *needle) |
|
strtok (char *str, const char *delim) |
Separates a string into a series of tokens separated by a delimiter. |
strlen (const char *s) |
|
strerror (int errnum) |
Obtains an error description string of the specified error code. |
strtok_r (char *str, const char *delim, char **saveptr) |
Separates a string into a series of tokens separated by a delimiter, with the saveptr parameter specified. |
strerror_l (int errnum, locale_t locale) |
Obtains an error description string of the specified error code for the specified locale. |
strerror_r (int errnum, char *buf, size_t buflen) |
Obtains an error description string of the specified error code. |
stpcpy (char *dest, const char *src) |
|
stpncpy (char *dest, const char *src, size_t n) |
|
strnlen (const char *s, size_t maxlen) |
|
strdup (const char *s) |
|
strndup (const char *s, size_t n) |
|
strsignal (int sig) |
|
memccpy (void *__restrict dest, const void *__restrict src, int c, size_t n) |
|
strsep (char **stringp, const char *delim) |
Separates a string into a series of tokens separated by a delimiter. |
strlcat (char *d, const char *s, size_t n) |
|
strlcpy (char *d, const char *s, size_t n) |
|
strverscmp (const char *s1, const char *s2) |
Compares strings of two versions (string 1 and string 2) and returns the comparison result. |
strcasestr (const char *haystack, const char *needle) |
Searches for a needle string in its haystack string and returns a pointer. |
memmem (const void *haystack, size_t haystacklen, const void *needle, size_t needlelen) |
|
memrchr (const void *s, int c, size_t n) |
|
mempcpy (void *dest, const void *src, size_t n) |
|
bcmp (const void *s1, const void *s2, size_t n) |
|
bcopy (const void *src, void *dest, size_t n) |
|
bzero (void *s, size_t n) |
|
index (const char *s, int c) |
Searches for the first position of the matched character in a string. |
rindex (const char *s, int c) |
Searches for the last position of the matched character in a string. |
ffs (int i) |
|
ffsl (long int i) |
Searches for the first bit in a word of the long integer type. |
ffsll (long long int i) |
Searches for the first bit in a word of the 8-byte long integer type. |
strcasecmp (const char *_l, const char *_r) |
Compares two strings (string 1 and string 2), regardless of the letter case. |
strncasecmp (const char *_l, const char *_r, size_t n) |
Compares a specified length of two strings (string 1 and string 2), regardless of the letter case. |
pipe (int pipefd[2]) |
|
close (int fd) |
|
dup (int oldfd) |
|
dup2 (int oldfd, int newfd) |
Copies the descriptor of the target file to a specified descriptor. |
lseek (int fd, off_t offset, int whence) |
|
fsync (int fd) |
Synchronizes a file associated with a specified file descriptor to the storage device. |
read (int fd, void *buf, size_t size) |
Reads the file contents and saves them in a specified buffer location. |
write (int fd, const void *buf, size_t size) |
|
pread (int fd, void *buf, size_t count, off_t offset) |
Reads data whose offset is offset and length is count from fd to the buffer. |
pwrite (int fd, const void *buf, size_t count, off_t offset) |
Writes data from the buffer to fd whose offset is offset and length is count. |
unlink (const char *path) |
|
unlinkat (int fd, const char *path, int flag) |
|
rmdir (const char *path) |
|
truncate (const char *path, off_t length) |
Truncates a file to a specified size based on the file path. |
ftruncate (int fd, off_t length) |
|
access (const char *path, int mode) |
|
chdir (const char *path) |
Switches the current working directory to a specified directory. |
getcwd (char *buf, size_t size) |
|
alarm (unsigned int seconds) |
Arranges a signal to be sent to the current process after the number of seconds specified by seconds. |
sleep (unsigned seconds) |
|
pause (void) |
|
fork (void) |
Creates a new process that inherits from the user-mode data of its parent process. |
execve (const char *path, char *const arg[], char *const envp[]) |
|
execv (const char *path, char *const arg[]) |
|
execle (const char *path, const char *arg,...) |
|
execl (const char *path, const char *arg,...) |
|
execvp (const char *path, char *const arg[]) |
|
execlp (const char *path, const char *arg,...) |
|
_exit (int status) |
Exits the process immediately and closes all opened file descriptors in the process. |
swab (const void *from, void *to, ssize_t n) |
|
getpid (void) |
|
getppid (void) |
|
getpgrp (void) |
|
getpgid (pid_t pid) |
Obtains the ID of the process group whose process ID is specified by pid. |
setpgid (pid_t pid, pid_t pgid) |
Sets the ID of the process group whose process ID is specified by pid. |
getopt (int argc, char *const argv[], const char *optstring) |
Parses command-line arguments based on the specified option. |
getuid (void) |
|
geteuid (void) |
|
getgid (void) |
|
getegid (void) |
Obtains the effective group ID (GID) of the calling process. |
getgroups (int size, gid_t list[]) |
Obtains a list of supplementary user group IDs specific to the calling process. |
setuid (uid_t uid) |
|
seteuid (uid_t euid) |
|
setgid (gid_t gid) |
|
setegid (gid_t egid) |
|
pathconf (const char *path, int name) |
|
setreuid (uid_t ruid, uid_t euid) |
Sets the real and effective user IDs of the calling process. |
setregid (gid_t rgid, gid_t egid) |
Sets the real and effective user group IDs of the calling process. |
setpgrp (void) |
|
usleep (unsigned useconds) |
|
ualarm (unsigned value, unsigned interval) |
|
setgroups (size_t size, const gid_t *list) |
Sets the supplementary user group list of the calling process. |
setresuid (uid_t ruid, uid_t euid, uid_t suid) |
Sets the real, effective, and saved user IDs of the calling process. |
setresgid (gid_t rgid, gid_t egid, gid_t sgid) |
Sets the real, effective, and saved group IDs of the calling process. |
getresuid (uid_t *ruid, uid_t *euid, uid_t *suid) |
Obtains the real, effective, and saved user IDs of the calling process. |
getresgid (gid_t *rgid, gid_t *egid, gid_t *sgid) |
Obtains the real, effective, and saved user group IDs of the calling process. |
get_current_dir_name (void) |
|
sbrk (intptr_t increment) |
|
getpagesize (void) |
|
chown (const char *pathname, uid_t owner, gid_t group) |
|
wcscpy (wchar_t *dest, const wchar_t *src) |
Copies the wide characters pointed to by src to the wide character array pointed to by dest, including the terminating null character '\0'. . |
wcsncpy (wchar_t *dest, const wchar_t *src, size_t n) |
Copies the first n wide characters pointed to by src to the wide character array pointed to by dest. |
wcscat (wchar_t *dest, const wchar_t *src) |
Appends a copy of the wide characters pointed to by src to the end of the wide character array pointed to by dest and adds a terminating null character '\0'. |
wcsncat (wchar_t *dest, const wchar_t *src, size_t n) |
Appends a copy of the first n wide characters pointed to by src to the end of the wide characters pointed to by dest and adds a terminating null character '\0'. |
wcscmp (const wchar_t *s1, const wchar_t *s2) |
Compares each character in the string pointed to by s1 with that in the string pointed to by s2 in ASCII-code order. |
wcsncmp (const wchar_t *s1, const wchar_t *s2, size_t n) |
Compares the first n characters in the string pointed to by s1 with those in the string pointed to by s2 in ASCII-code order. |
wcscoll (const wchar_t *ws1, const wchar_t *ws2) |
Compares the wide characters in the string pointed to by ws1 with those in the string pointed to by ws2 based on the specified locale LC_COLLATE. |
wcsxfrm (wchar_t *s1, const wchar_t *s2, size_t n) |
Compares the first n wide characters in the string pointed to by s1 with those in the string pointed to by s2. |
wcschr (const wchar_t *wcs, wchar_t wc) |
Locates the first occurrence of the wide character pointed to by wc in the wide character string pointed to by wcs. |
wcsrchr (const wchar_t *wcs, wchar_t wc) |
Locates the last occurrence of the wide character pointed to by wc in the wide character string pointed to by wcs. |
Scans the wide character string pointed to by wcs for any wide characters specified in reject and obtains the number of unmatched characters in wcs. |
|
Scans the wide character string pointed to by wcs for any wide characters specified in reject and obtains the number matched characters in wcs. |
|
Scans the wide character string pointed to by wcs for any wide characters specified in accept and obtains the first occurrence of the matched character. |
|
wcstok (wchar_t *wcs, const wchar_t *delim, wchar_t **ptr) |
Splits a wide character string pointed to by wcs into tokens using the given delimiter. |
wcslen (const wchar_t *s) |
Calculates the length of a wide character string pointed to by s. |
wcswcs (const wchar_t *haystack, const wchar_t *needle) |
Searches the wide character string pointed to by dest for the first occurrence of the wide character string pointed to by src. |
wmemchr (const wchar_t *s, wchar_t c, size_t n) |
Searches for the first position of the matched wide character within the specified number of characters in a wide character string. |
wmemcmp (const wchar_t *lhs, const wchar_t *rhs, size_t count) |
Compares the first count characters in the string pointed to by lhs with the first count characters in the string pointed to by rhs. |
wmemcpy (wchar_t *dest, const wchar_t *src, size_t count) |
Copies count successive characters from the wide character array pointed to by src to the wide character array pointed to by dest. |
wmemmove (wchar_t *dest, const wchar_t *src, size_t count) |
Copies count successive characters from the wide character array pointed to by src to the wide character array pointed to by dest (with possible array overlapping). |
wmemset (wchar_t *dest, wchar_t ch, size_t count) |
Fills count characters specified by ch to the wide character array pointed to by dest. |
btowc (int c) |
Converts a single-byte character c into its wide-character representation. |
wctob (wint_t c) |
Converts a wide character c into its single-byte representation. |
mbsinit (const mbstate_t *ps) |
Checks whether the mbstate_t object pointed to by ps is in the initial state. |
wcrtomb (char *s, wchar_t wc, mbstate_t *ps) |
Converts the wide character specified by wc into a character string and stores the string to the beginning of the character array pointed to by s. |
mbrlen (const char *s, size_t n, mbstate_t *ps) |
Determines the number of bytes in a character string pointed to by s. |
mbsrtowcs (wchar_t *dest, const char **src, size_t len, mbstate_t *ps) |
Converts a multi-byte character string with a length of len into a wide character string. |
wcsrtombs (char *dest, const wchar_t **src, size_t len, mbstate_t *ps) |
|
wcstof (const wchar_t *str, wchar_t **endptr) |
Converts a wide character string pointed to by str into a floating-point value and assigns the next character in str after the floating-point value to endptr. |
wcstod (const wchar_t *str, wchar_t **endptr) |
Converts a wide character string pointed to by str into a double value and assigns the next character in str after the double value to endptr. |
wcstold (const wchar_t *str, wchar_t **endptr) |
Converts a wide character string pointed to by str into a long double value and assigns the next character in str after the long double value to endptr. |
wcstol (const wchar_t *str, wchar_t **endptr, int base) |
Converts a wide character string pointed to by str into a long value. |
wcstoul (const wchar_t *str, wchar_t **endptr, int base) |
Converts a wide character string pointed to by str into an unsigned long value of a specified base. |
wcstoll (const wchar_t *str, wchar_t **endptr, int base) |
Converts a wide character string pointed to by str into a long long value of a specified base. |
wcstoull (const wchar_t *str, wchar_t **endptr, int base) |
Converts a wide character string pointed to by str into an unsigned long long value of a specified base. |
wprintf (const wchar_t *format,...) |
|
fwprintf (FILE *__restrict fp, const wchar_t *__restrict fmt,...) |
|
swprintf (wchar_t *wcs, size_t maxlen, const wchar_t *format,...) |
|
vwprintf (const wchar_t *format, va_list args) |
Prints formatted data from a variable argument list to the standard output (stdout). |
vfwprintf (FILE *stream, const wchar_t *format, __isoc_va_list args) |
Prints formatted data from a variable argument list specified by args to a specified file stream. |
vswprintf (wchar_t *wcs, size_t maxlen, const wchar_t *format, __isoc_va_list args) |
Prints formatted data from a variable argument list specified by args to a specified string. |
wscanf (const wchar_t *format,...) |
Reads formatted data from the standard input (stdin) and stores it based on the wide string format into the locations pointed to by the variable arguments. |
Reads formatted data from a specified stream and stores it based on the wide string format into the locations pointed to by the variable arguments. |
|
swscanf (const wchar_t *ws, const wchar_t *format,...) |
Reads data from a wide character string pointed to by ws and stores it based on the wide string format into the locations pointed to by the variable arguments. |
vwscanf (const wchar_t *format, va_list arg) |
Reads data from the stdin and stores it based on the wide string format into the locations pointed to by the elements in the variable argument list identified by arg. |
Reads data from a specified file stream and stores it based on the wide string format into the locations pointed to by the elements in the variable argument list identified by arg. |
|
vswscanf (const wchar_t *ws, const wchar_t *format, va_list arg) |
Reads data from a string pointed to by ws and stores it based on the wide string format into the locations pointed to by the elements in the variable argument list identified by arg. |
Reads the first wide character from a specified file stream. |
|
getwchar (void) |
|
putwchar (wchar_t wc) |
|
Writes a wide string pointed to by ws to a specified file stream. |
|
mbrtowc (wchar_t *pwc, const char *s, size_t n, mbstate_t *ps) |
Converts a multi-byte character string with a length of n into a wide character string. |
mbsnrtowcs (wchar_t *dest, const char **src, size_t nwc, size_t len, mbstate_t *ps) |
Converts a multi-byte character string with a length of n into a wide character string that can hold a total of nwc wide characters. |
wcsnrtombs (char *dest, const wchar_t **src, size_t nwc, size_t len, mbstate_t *ps) |
Converts nwc wide characters in the string pointed to by src into a character string. |
wcsdup (const wchar_t *s) |
Copies a specified wide character string to a newly allocated buffer. |
wcsnlen (const wchar_t *s, size_t maxlen) |
Calculates the length of a wide character string pointed to by s. |
wcpcpy (wchar_t *dest, const wchar_t *src) |
Copies the wide characters (including the terminating null character '\0') pointed to by src to the wide character array pointed to by dest. |
wcpncpy (wchar_t *dest, const wchar_t *src, size_t n) |
Copies n wide characters (including the terminating null character '\0') pointed to by src to the wide character array pointed to by dest. |
wcscasecmp (const wchar_t *s1, const wchar_t *s2) |
Compares the wide characters in the string pointed to by s1 with those in the string pointed to by s2, with their case differences ignored. |
wcscasecmp_l (const wchar_t *s1, const wchar_t *s2, locale_t locale) |
Compares the wide characters in the string pointed to by s1 with those in the string pointed to by s2 based on the specified locale environment, with their case differences ignored. |
wcsncasecmp (const wchar_t *s1, const wchar_t *s2, size_t n) |
Compares a maximum of n wide characters in the string pointed to by s1 with those in the string pointed to by s2, with their case differences ignored. |
wcsncasecmp_l (const wchar_t *s1, const wchar_t *s2, size_t n, locale_t locale) |
Compares a maximum of n wide characters in the string pointed to by s1 with those in the string pointed to by s2 based on the specified locale environment, with their case differences ignored. |
wcscoll_l (const wchar_t *s1, const wchar_t *s2, locale_t locale) |
Compares wide characters in the string pointed to by s1 with those in the string pointed to by s2 based on the specified locale environment. |
wcsftime (wchar_t *__restrict wcs, size_t n, const wchar_t *__restrict f, const struct tm *__restrict tm) |
Converts the date and time in the tm structure to a wide character string. |
wcsxfrm_l (wchar_t *s1, const wchar_t *s2, size_t n, locale_t locale) |
Compares the first n wide characters in the string pointed to by s1 with those in the string pointed to by s2 based on the specified locale environment. |
iswalnum (wint_t wc) |
|
iswalpha (wint_t wc) |
|
iswblank (wint_t wc) |
Checks whether a wide character is a space or tab character (\t). |
iswcntrl (wint_t wc) |
|
iswdigit (wint_t wc) |
|
iswgraph (wint_t wc) |
|
iswlower (wint_t wc) |
|
iswprint (wint_t wc) |
|
iswpunct (wint_t wc) |
|
iswupper (wint_t wc) |
|
iswxdigit (wint_t wc) |
|
iswctype (wint_t wc, wctype_t desc) |
Checks whether the character specified by wc belongs to the desc class. |
Translates the type of a wide character based on the conversion mapping relationship. |
|
towlower (wint_t wc) |
|
towupper (wint_t wc) |
|
wctrans (const char *name) |
Determines a mapping which can map a wide character to another wide character. |
wctype (const char *name) |
Checks whether a wide character type exists in the LC_CTYPE locale. |
iswalnum_l (wint_t wc, locale_t locale) |
Checks whether a wide character is a letter or digit for the specified locale. |
iswalpha_l (wint_t wc, locale_t locale) |
Checks whether a wide character is alphabetic for the specified locale. |
iswblank_l (wint_t wc, locale_t locale) |
Checks whether a wide character is a blank or \t character for the specified locale. |
iswcntrl_l (wint_t wc, locale_t locale) |
Checks whether a wide character is a control character for the specified locale. |
iswdigit_l (wint_t wc, locale_t locale) |
Checks whether a wide character is a decimal digit for the specified locale. |
iswgraph_l (wint_t wc, locale_t locale) |
Checks whether a wide character is visible for the specified locale. |
iswlower_l (wint_t wc, locale_t locale) |
Checks whether a wide character is in lowercase for the specified locale. |
iswprint_l (wint_t wc, locale_t locale) |
Checks whether a wide character is printable for the specified locale. |
iswpunct_l (wint_t wc, locale_t locale) |
Checks whether wc is a punctuation wide character for the specified locale. |
iswspace (wint_t wc) |
Checks whether a wide character belongs to the wide-character class space. |
iswspace_l (wint_t wc, locale_t locale) |
Checks whether a wide character belongs to the wide-character class space for the specified locale. |
iswupper_l (wint_t wc, locale_t locale) |
Checks whether a wide character is in uppercase for the specified locale. |
iswxdigit_l (wint_t wc, locale_t locale) |
Checks whether a wide character is a hexadecimal digit for the specified locale. |
iswctype_l (wint_t wc, wctype_t desc, locale_t locale) |
Checks whether the character specified by wc belongs to the desc class for the specified locale. |
towlower_l (wint_t wc, locale_t locale) |
Converts an uppercase wide character to lowercase for the specified locale. |
towupper_l (wint_t wc, locale_t locale) |
Converts a lowercase wide character to uppercase for the specified locale. |
towctrans_l (wint_t wc, wctype_t desc, locale_t locale) |
Translates the type of a wide character based on the translation mapping relationship for the specified locale. |
wctrans_l (const char *name, locale_t locale) |
Determines a mapping which can map a wide character to another wide character. |
wctype_l (const char *name, locale_t locale) |
Checks whether a wide character type exists for the specified locale. |
a | Indicates the parameter to convert. |
a | Indicates the parameter to convert. |
a | Indicates the parameter to check. |
v | Indicates the va_list v initialized by va_start(). Each call to va_arg() modifies v so that the next call returns the next argument. |
l | Indicates the name of the last argument before the variable argument list, that is, the last argument of which the calling function knows the type. |
d | Indicates the destination variable. |
s | Indicates the source variable. |
v | Indicates the va_list v initialized by va_start(). |
v | Indicates the argument to be initialized. |
l | Indicates the name of the last argument before the variable argument list, that is, the last argument of which the calling function knows the type. |
status | Indicates the status sent to the parent process when the calling process ends. |
status | Indicates the exit status of the process. The status is returned to the parent process of the current process and can be collected by the wait() series functions. |
str64 | Indicates the pointer to the character constant. |
i | Indicates the integer value. |
path | Indicates the path of the file to be checked. |
mode | Indicates the access permission to be checked. |
seconds | Indicates an unsigned integer seconds needs to be transferred. |
expression | Indicates the condition variable. If the value of expression is false, an error message is displayed and the process is terminated. |
func | Indicates the pointer to the termination function to be called. |
nptr | Indicates the string to be converted. |
nptr | Indicates the string to be converted. |
nptr | Indicates the string to be converted. |
nptr | Indicates the string to be converted. |
s1 | Indicates the pointer to byte sequence 1 for comparison. |
s2 | Indicates the pointer to byte sequence 2 for comparison. |
n | Indicates the number of bytes to be compared. |
src | Indicates the pointer to the source memory area. |
dest | Indicates the pointer to the destination memory area. |
n | Indicates the number of bytes to be copied. |
key | Indicates the pointer to the keyword to be searched. |
base | Indicates the array to be searched. |
nel | Indicates the number of elements in the array to be searched. |
width | Indicates the length of each element, in bytes. |
compare | Indicates the pointer to the comparison subfunction used to define comparison rules. |
c | Indicates the character to be converted. |
s | Indicates the pointer to the first token in the byte sequence to be set to zero. |
n | Indicates the number of bytes to be set to zero. |
nmemb | Indicates the number of memory blocks to be allocated. |
size | Indicates the size of the memory block to be allocated. |
path | Indicates the target working directory. |
The length of the path name is greater than PATH_MAX. |
|
pathname | Indicates the pointer to the file path. |
owner | Indicates the new file owner. |
group | Indicates the new file group. |
The permission bit of the file mode does not allow the requested access, or the search permission is denied on the path prefix directory. |
|
The length of the path name is greater than NAME_MAX. |
|
A component of the path prefix is the name of an existing file, which is neither a directory nor a symbolic link of a directory. |
|
The operation is not allowed or access is denied because the access is prohibited or the directory is full. |
|
fd | Indicates the descriptor of the file to be closed. |
key | Indicates the data to be encrypted. |
setting | Indicates the description of the encryption mode. The description consists of the encryption prefix and random characters, which are selected from (., /, 0-9, A-Z, a-z). The details are as follows: |
numerator | Indicates the numerator. |
denominator | Indicates the denominator. |
oldfd | Indicates the file descriptor to be copied. |
Failed to allocate file descriptors because too many files are opened. |
|
The index node cannot be found based on the path name associated with oldfd. |
|
oldfd | Indicates the file descriptor to be copied. |
newfd | Indicates the new file descriptor for copying. |
Failed to allocate file descriptors because too many files are opened. |
|
The index node cannot be found based on the path name associated with oldfd. |
|
number | Indicates the double-precision floating-point number to be converted. |
ndigits | Indicates the number of valid digits to be stored. |
decpt | Indicates the decimal point position. |
sign | Indicates the symbol of the number to be converted. |
xsubi | Indicates the array of the initialized value of Xi. |
path | Indicates the full path of the ELF file. |
arg | Indicates the list of parameters required by the program, ending with a null pointer. |
path | Indicates the name or path name of the program file to be executed. |
arg | Indicates the list of parameters required by the program, ending with a null pointer. |
path | Indicates the full path of the ELF file. |
arg | Indicates the list of program parameters maintained by the pointer to the array. The last element of the array must be a null pointer. |
path | Indicates the full path of the ELF file. |
arg | Indicates the list of program parameters maintained by the pointer to the array. The last element of the array must be a null pointer. |
envp | Indicates the pointer to the string for storing new environment variables. |
path | Indicates the name or path name of the program file to be executed. |
arg | Indicates the list of parameters required by the program, ending with a null pointer. |
status | Indicates the status sent to the parent process when the calling process ends. |
i | Indicates the long integer to be searched. |
i | Indicates the long integer to be searched. |
i | Indicates the 8-byte long integer to be searched. |
stream | Indicates the pointer to the file object that identifies a stream. |
ws | Indicates the pointer to the wide character array that stores the characters to read. |
n | Indicates the number of characters to read. |
stream | Indicates the pointer to the file object that identifies a stream. |
classification | Indicates four types of information, including the output device, error source, problem detector, and problem severity. This parameter is of the long integer type. |
label | Indicates the pointer to the message source. This parameter consists of two fields separated by a colon (:). The first field is up to 10 characters, the second is up to 14 characters. |
severity | Indicates the severity level of an error message. For details, see MM_HALT, MM_ERROR, MM_WARNING, MM_INFO, and MM_NOOSEV. |
text | Indicates the condition of the error. |
action | Describes possible steps to recover from the error. |
tag | Indicates the referenced online documents where more information can be found. |
MM_PRINT, MM_CONSOLE or both |
|
pattern | Indicates the pointer to the pattern to match. |
string | Indicates the pointer to the string to match against pattern. |
flags | Indicates a combination of flag bits that specify the matching rule. For details, see FNM_NOESCAPE, FNM_PATHNAME, FNM_PERIOD, FNM_LEADING_DIR, FNM_CASEFOLD, and FNM_FILE_NAME. |
wc | Indicates the wide character to write. |
stream | Indicates the pointer to the file object that identifies a stream. |
ws | Indicates the pointer to the wide string to write. |
stream | Indicates the pointer to the file object that identifies a stream. |
ptr | Indicates the pointer to the memory space to be released. |
fd | Indicates the descriptor of the file to be synchronized. |
fd | Indicates the file descriptor. |
length | Indicates the length of the file to be truncated. |
Failed to obtain the file structure corresponding to the file specified by path, or the file access is rejected. |
fp | Indicates the pointer to the stream to print data. |
fmt | Indicates the pointer to the output format of the data. |
stream | Indicates the pointer to the file object that identifies a stream. |
format | Indicates the pointer to the string that may contain the format specifiers. |
... | Indicates the variable arguments storing the input data. |
x | Indicates the floating-point number to convert. |
n | Indicates the number of decimal places. |
b | Indicates the pointer to the output conversion result. |
buf | Indicates the pointer to the buffer of the array for storing the absolute path name of the current working directory. |
size | Indicates the size of the array to which the buffer points. |
size is less than the length of the current working directory (including the terminating null byte \0). |
|
Failed to copy the name of the current working directory to the buffer using memcpy_s. |
name | Indicates the pointer to the name of the environment variable whose value needs to be obtained. |
Only characters that indicate different options are available. |
abc indicates that the file has three options -a, -b, and -c. |
b indicates that -b must be followed by an argument in the executable file that contains the getopt() function. |
|
b indicates that -b can be followed by or without the corresponding argument in the executable file that contains the getopt() function. |
Only characters that indicate different options are available. |
abc indicates that the file has three options -a, -b, and -c. |
b indicates that -b must be followed by an argument in the executable file that contains the getopt() function. |
|
b indicates that -b can be followed by or without the corresponding argument in the executable file that contains the getopt() function. |
Only characters that indicate different options are available. |
abc indicates that the file has three options -a, -b, and -c. |
b indicates that -b must be followed by an argument in the executable file that contains the getopt() function. |
|
b indicates that -b can be followed by or without the corresponding argument in the executable file that contains the getopt() function. |
pid | Indicates the process ID. If the value is 0, the process group ID of the current process is obtained. |
rgid | Indicates the pointer to the real user group ID. |
egid | Indicates the pointer to the effective user group ID. |
sgid | Indicates the pointer to the saved user group ID. |
ruid | Indicates the pointer to the real user ID. |
euid | Indicates the pointer to the effective user ID. |
suid | Indicates the pointer to the saved user ID. |
optionp | Indicates the command word option. |
tokens | Indicates the pointer to the queried token. |
valuep | Indicates the suboption of the command word value. |
stream | Indicates the pointer to the file object that identifies a stream. |
nel | Indicates the maximum number of entries allowed in the hash table. |
nel | Indicates the maximum number of entries allowed in the hash table. |
htab | Indicates the hash table. |
htab | Indicates the hash table. |
j | Indicates the input parameter. |
numerator | Indicates the numerator. |
denominator | Indicates the denominator. |
s | Indicates the pointer to the string to be searched. |
c | Indicates the character to be matched. |
seed | Indicates the seed for initialization, which specifies the start point of the random number sequence and provides the information for restarting at the same point. |
Indicates | the state array used to generate random numbers. |
n | Indicates the length of the state array. |
element | Indicates the element to be added to the queue. |
pred | After the position of prev to add the element. |
c | Indicates the parameter to check. |
c | Indicates the parameter to check. |
locale | Indicates the locale. This parameter is ignored currently. |
c | Indicates the parameter to check. |
c | Indicates the parameter to check. |
locale | Indicates the locale. This parameter is ignored currently. |
c | Indicates the parameter to check. |
c | Indicates the parameter to check. |
locale | Indicates the locale. This parameter is ignored currently. |
c | Indicates the parameter to check. |
c | Indicates the parameter to check. |
locale | Indicates the locale. This parameter is ignored currently. |
c | Indicates the parameter to check. |
c | Indicates the parameter to check. |
locale | Indicates the locale. This parameter is ignored currently. |
c | Indicates the parameter to check. |
c | Indicates the parameter to check. |
locale | Indicates the locale. This parameter is ignored currently. |
c | Indicates the parameter to check. |
c | Indicates the parameter to check. |
locale | Indicates the locale. This parameter is ignored currently. |
c | Indicates the parameter to check. |
c | Indicates the parameter to check. |
locale | Indicates the locale. This parameter is ignored currently. |
c | Indicates the parameter to check. |
c | Indicates the parameter to check. |
locale | Indicates the locale. This parameter is ignored currently. |
c | Indicates the parameter to check. |
c | Indicates the parameter to check. |
locale | Indicates the locale. This parameter is ignored currently. |
c | Indicates the parameter to check. |
c | Indicates the parameter to check. |
locale | Indicates the locale. This parameter is ignored currently. |
wc | Indicates the wide character. |
wc | Indicates the wide character. |
locale | Indicates the locale. This parameter is ignored currently. |
wc | Indicates the wide character. |
wc | Indicates the wide character. |
locale | Indicates the locale. This parameter is ignored currently. |
wc | Indicates the wide character. |
wc | Indicates the wide character. |
locale | Indicates the locale. This parameter is ignored currently. |
wc | Indicates the wide character. |
wc | Indicates the wide character. |
locale | Indicates the locale. This parameter is ignored currently. |
wc | Indicates the wide character. |
desc | Indicates the wide character class. |
wc | Indicates the wide character. |
desc | Indicates the wide character class. |
locale | Indicates the locale. This parameter is ignored currently. |
wc | Indicates the wide character. |
wc | Indicates the wide character. |
locale | Indicates the locale. This parameter is ignored currently. |
wc | Indicates the wide character. |
wc | Indicates the wide character. |
locale | Indicates the locale. This parameter is ignored currently. |
wc | Indicates the wide character. |
wc | Indicates the wide character. |
locale | Indicates the locale. This parameter is ignored currently. |
wc | Indicates the wide character. |
wc | Indicates the wide character. |
locale | Indicates the locale. This parameter is ignored currently. |
wc | Indicates the wide character. |
wc | Indicates the wide character. |
locale | Indicates the locale. This parameter is ignored currently. |
wc | Indicates the wide character. |
wc | Indicates the wide character. |
locale | Indicates the locale. This parameter is ignored currently. |
wc | Indicates the wide character. |
wc | Indicates the wide character. |
locale | Indicates the locale. This parameter is ignored currently. |
wc | Indicates the wide character. |
wc | Indicates the wide character. |
locale | Indicates the locale. This parameter is ignored currently. |
c | Indicates the parameter to check. |
c | Indicates the parameter to check. |
locale | Indicates the locale. This parameter is ignored currently. |
xsubi[3] | Indicates the array of the initialized value of Xi. |
value | Indicates the long integer to be converted. |
i | Indicates the long integer to be converted. |
param[7] | Indicates the parameters of the random number generator. |
numerator | Indicates the numerator. |
denominator | Indicates the denominator. |
key | Indicates the pointer to the key to be searched. |
base | Indicates the pointer to the array buffer. |
nelp | Indicates the pointer to the linear search length. |
width | Indicates the pointer to the array buffer width. |
compar | Indicates the pointer to the function to match. |
i | Indicates the long long integer to be converted. |
numerator | Indicates the numerator. |
denominator | Indicates the denominator. |
key | Indicates the pointer to the key to be searched. |
base | Indicates the pointer to the array buffer. |
nelp | Indicates the pointer to the linear search length. |
width | Indicates the pointer to the array buffer width. |
compar | Indicates the pointer to the function to match. |
size | Indicates the size of the memory block to be allocated. |
s | Indicates the pointer to a string constant. |
n | Indicates the number of bytes to be checked. The value cannot be greater than MB_CUR_MAX. |
s | Indicates the pointer to the string to check. |
n | Indicates the maximum number of bytes to check. |
ps | Indicates the pointer to the mbstate_t object describing the conversion state. |
ps | Indicates the pointer to the mbstate_t object to check. |
dest | Indicates the pointer to the destination memory area. |
src | Indicates the pointer to the source memory area. |
c | Indicates the character for stopping copying. |
n | Indicates the size of the string to be copied, in bytes. |
s | Indicates the pointer to the start of the bytes to be searched. |
c | Indicates the character to be searched for. |
n | Indicates the length of the memory area to be searched. |
s1 | Indicates the pointer to memory area 1 for comparison. |
s2 | Indicates the pointer to memory area 2 for comparison. |
n | Indicates the size of the memory area to be compared, in bytes. |
dest | Indicates the pointer to the destination memory area. |
src | Indicates the pointer to the source memory area. |
n | Indicates the size of the string to be copied, in bytes. |
haystack | Indicates the pointer to the start position of the memory area to be searched. |
haystacklen | Indicates the length (in bytes) of the memory area to be searched. |
needle | Indicates the pointer to the start position of the needle string to be searched for. |
needlelen | Indicates the length (in bytes) of the needle string to be searched for. |
dest | Indicates the pointer to the destination memory area. |
src | Indicates the pointer to the source memory area. |
n | Indicates the size of the string to be copied, in bytes. |
dest | Indicates the pointer to the destination memory area. |
src | Indicates the pointer to the source memory area. |
n | Indicates the size of the string to be copied, in bytes. |
s | Indicates the pointer to the start of the bytes to be searched. |
c | Indicates the character to be searched for. |
n | Indicates the length of the memory area to be searched. |
s | Indicates the pointer to the memory area to hold the character. |
c | Indicates the character to be copied. |
n | Indicates the size of the memory area. |
template | Indicates the name of the directory to be created. The last six characters must be XXXXXX. |
For details, see mkdir. |
template | Indicates the name of the file to be created. The last six characters must be XXXXXX. |
flags | Indicates the flag for creating a file. For details, see open. |
For details, see open(). |
template | Indicates the name of the file to be created. |
suffixlen | Indicates the length of the placeholder suffix XXXXXX. |
flags | Indicates the flag for creating a file. |
The template length is less than (6 + suffixlen), or the last six characters of template are not XXXXXX. |
|
For details, see open(). |
template | Indicates the name of the file to be created. The last six characters must be XXXXXX. |
For details, see open(). |
template | Indicates the name of the file to be created. |
suffixlen | Indicates the length of the placeholder suffix XXXXXX. |
The template length is less than (6 + suffixlen), or the last six characters of template are not XXXXXX. |
|
For details, see open(). |
template | Indicates the name of the file to be created. The last six characters are XXXXXX. |
xsubi[3] | Indicates the array of the initialized value of Xi. |
path | Indicates the file path. |
name | Indicates the name of the configuration value. |
The value of name does not match any existing configuration option. |
Failed to create an anonymous pipe because the number of anonymous pipes has reached the upper limit. |
memptr | Indicates the double pointer to the allocated memory block. |
alignment | Indicates the alignment size of the allocated memory block. |
size | Indicates the size of the memory block to be allocated. |
The value of alignment is not a power of 2, or is not a multiple of sizeof(void *). |
|
fd | Indicates the file descriptor to read. |
buf | Indicates the pointer to the buffer for storing data. |
count | Indicates the length of the data to read. |
offset | Indicates the offset of the file descriptor to read. |
fd | Indicates the terminal descriptor. |
s | Indicates the content of the environment variable to configure. |
wc | Indicates the wide character to write. |
stream | Indicates the pointer to the file object that identifies a stream. |
wc | Indicates the wide character to write. |
fd | Indicates the file descriptor to write. |
buf | Indicates the pointer to the buffer to which data is written. |
count | Indicates the size of the data to write. |
offset | Indicates the offset of the file to write. |
base | Indicates the array to be sorted. |
nel | Indicates the number of elements in the array to be searched. |
width | Indicates the length of each element, in bytes. |
compare | Indicates the pointer to the comparison subfunction used to define comparison rules. |
seedp | Indicates the random number seed. |
fd | Indicates the descriptor of the file to read. |
buf | Indicates the pointer to the buffer for storing the data read. |
size | Indicates the length of the content to read. If the length exceeds that of the buffer, memory corruption may occur. |
ptr | Indicates the pointer to the memory block to be adjusted. |
size | Indicates the new size of the memory block. |
path | Indicates the name of the absolute path to be obtained. |
resolved | Indicates the pointer to the obtained absolute path. |
Read or search permission is denied on a component of the path prefix. |
|
Too many symbolic links are encountered when the path name is parsed. |
|
element | Indicates the element to be removed from the queue. |
s | Indicates the pointer to the string to be searched. |
c | Indicates the character to be matched. |
path | Indicates the name of the directory to be deleted. |
The length of the path name is greater than PATH_MAX. |
|
The path is a mount point, or it is neither a directory nor a file. |
|
increment | Indicates the size of the memory space to obtain. |
name | Indicates the pointer to the name of the environment variable whose value needs to be obtained. |
seed16v | Indicates the 48-bit seed. |
egid | Indicates the effective user group ID to set. |
The name is NULL, or its length is zero, or contains an "=" character. |
|
euid | Indicates the effective user ID to set. |
gid | Indicates the user group ID to set. |
size | Indicates the maximum size of the supplementary user group list. If the value is 0, the list is cleared. The maximum value is 255. |
list | Indicates the target supplementary group list. |
pid | Indicates the process ID. If the value is 0, the process group ID of the current process is obtained. |
pgid | Indicates the process group ID. |
The child process has performed exec, and the parent process does not have the operation permission. |
state | Indicates the pointer to the state list. |
uid | Indicates the user ID to set. |
seconds | Indicates the sleeping seconds. |
seed | Indicates the seed for generating a pseudo-random number. |
seedval | Indicates the 48-bit start seed value. |
seed | Indicates the seed for generating a pseudo-random number. |
dest | Indicates the pointer to the destination string. |
src | Indicates the pointer to the source string. |
dest | Indicates the pointer to the destination string. |
src | Indicates the pointer to the source string. |
n | Indicates the number of characters to be copied. |
_l | Indicates the pointer to string 1 for comparison. |
_r | Indicates the pointer to string 2 for comparison. |
haystack | Indicates the pointer to the haystack string. |
needle | Indicates the pointer to the needle string. |
dest | Indicates the pointer to the destination string. |
src | Indicates the pointer to the source string. |
s | Indicates the pointer to the string to be searched. |
c | Indicates the character to be searched for. |
s1 | Indicates the pointer to string 1 for comparison. |
s2 | Indicates the pointer to string 2 for comparison. |
s1 | Indicates the pointer to string 1 for comparison. |
s2 | Indicates the pointer to string 2 for comparison. |
s1 | Indicates the pointer to string 1 for comparison. |
s2 | Indicates the pointer to string 2 for comparison. |
locale | Indicates the locale. This parameter is ignored currently |
dest | Indicates the pointer to the destination string. |
src | Indicates the pointer to the source string. |
s | Indicates the pointer to the string to be retrieved. |
reject | Indicates the pointer to the string containing all unmatched characters. |
s | Indicates the pointer to the string to be copied. |
errnum | Indicates the error code. |
errnum | Indicates the error code. |
locale | Indicates the locale. This parameter is ignored currently. |
The buffer is insufficient to contain the error description string. |
errnum | Indicates the error code. |
buf | Indicates the pointer to the buffer for storing the error description string. |
buflen | Indicates the length of the buf parameter. |
The buffer is insufficient to contain the error description string. |
s | Indicates the pointer to the target string. |
max | Indicates the maximum length of the target string. |
format | Indicates the pointer to the format of the string. |
... | Indicates the parameters corresponding to the format. |
d | Indicates the pointer to the destination string. |
s | Indicates the pointer to the source string. |
n | Indicates the number of characters to be copied from the source string. |
d | Indicates the pointer to the destination string. |
s | Indicates the pointer to the source string. |
n | Indicates the number of characters to be copied from the source string. |
s | Indicates the pointer to the string. |
_l | Indicates the pointer to string 1 for comparison. |
_r | Indicates the pointer to string 2 for comparison. |
n | Indicates the string length to be compared. |
dest | Indicates the pointer to the destination string. |
src | Indicates the pointer to the source string. |
n | Indicates the number of bytes to be appended. |
s1 | Indicates the pointer to string 1 for comparison. |
s2 | Indicates the pointer to string 2 for comparison. |
n | Indicates the number of characters for comparison. |
dest | Indicates the pointer to the destination string. |
src | Indicates the pointer to the source string. |
n | Indicates the number of characters to be copied from the source string. |
s | Indicates the pointer to the string to be copied. |
n | Indicates the total number of characters to be copied. |
s | Indicates the pointer to the string. |
maxlen | Indicates the maximum length of the string. |
s | Indicates the pointer to the string to be searched. |
accept | Indicates the pointer to the string containing all matched characters. |
s | Indicates the pointer to the string to be searched. |
c | Indicates the character to be searched for. |
stringp | Indicates the pointer to the first token of the source string. |
delim | Indicates the pointer to the string representing the delimiter. |
sig | Indicates the signal number to be parsed. |
s | Indicates the pointer to the string to be retrieved. |
accept | Indicates the pointer to the string containing all matched characters. |
haystack | Indicates the pointer to the haystack string. |
needle | Indicates the pointer to the needle string. |
nptr | Indicates the input string. |
endptr | Indicates the double pointer to the first unrecognized character. |
nptr | Indicates the input string. |
endptr | Indicates the double pointer to the first unrecognized character. |
nptr | Indicates the input string. |
endptr | Indicates the first character that is unrecognized. |
base | Indicates the number system. |
nptr | Indicates the input string. |
endptr | Indicates the double pointer to the first unrecognized character. |
nptr | Indicates the input string. |
endptr | Indicates the first character that is unrecognized. |
base | Indicates the number system. |
nptr | Indicates the input string. |
endptr | Indicates the first character that is unrecognized. |
base | Indicates the number system. |
nptr | Indicates the input string. |
endptr | Indicates the first character that is unrecognized. |
base | Indicates the number system. |
str | Indicates the pointer to the string to parse. |
endptr | Indicates the double pointer to the first character following the integer obtained from str. |
base | Indicates the conversion of number system. |
s1 | Indicates the pointer to string 1 for comparison. |
s2 | Indicates the pointer to string 2 for comparison. |
The values for the first n characters of string 1 and string 2 are the same. |
dest | Indicates the pointer to the destination string. |
src | Indicates the pointer to the source string. |
n | Indicates the maximum string space. |
from | source array. |
to | destination array. |
n | number of bytes. |
wcs | Indicates the pointer to the destination string. |
maxlen | Indicates the maximum length of the destination string. |
format | Indicates the pointer to the format string that contains the formatted data. |
.... | Indicates the variable arguments written to the formatted data. |
ws | Indicates the pointer to the wide character string to read. |
format | Indicates the pointer to the format string that contains the formatted data. |
.... | Indicates the variable arguments specifying the data to store. |
root | Indicates the pointer to the root node of the binary tree to be released. |
free_node | Indicates the callback function each time when a node is released. |
c | Indicates the parameter to convert. |
c | Indicates the parameter to convert. |
c | Indicates the parameter to convert. |
locale | Indicates the locale. This parameter is ignored currently. |
c | Indicates the parameter to convert. |
c | Indicates the parameter to convert. |
locale | Indicates the locale. This parameter is ignored currently. |
wc | Indicates the wide character. |
desc | Indicates the mapping relationship, which can be obtained from wctrans(). |
wc | Indicates the wide character. |
desc | Indicates the mapping relationship, which can be obtained from wctrans_l(). |
locale | Indicates the locale. This parameter is ignored currently. |
wc | Indicates the wide character. |
wc | Indicates the wide character. |
locale | Indicates the locale. This parameter is ignored currently. |
wc | Indicates the wide character. |
wc | Indicates the wide character. |
locale | Indicates the locale. This parameter is ignored currently. |
path | Indicates the path of the file to be truncated. |
length | Indicates the length of the file to be truncated. |
Failed to open the file because the length of path is greater than PATH_MAX. |
|
Failed to obtain the file structure corresponding to the file descriptor when opening the file. |
|
Failed to open the file because the maximum number of files that can be opened has been reached. |
|
Failed to obtain the file structure corresponding to the file specified by path, or the file access is rejected. |
value | Indicates the number of microseconds to be set for the timer. The precision unit is tick, and the deviation is ±1 tick. |
interval | Indicates the interval for triggering the timer. The precision unit is tick, and the deviation is ±1 tick. |
ch | Indicates the character to push back. |
stream | Indicates the pointer to the file object that identifies a stream. |
path | Indicates the path of the file to be deleted. |
The length of the path name is greater than NAME_MAX. |
|
The path is a pseudo file used as a directory, or the directory is not empty. |
|
The search permission on the path prefix component is denied, or the write permission of the directory in the path is denied. |
fd | Indicates the descriptor of the directory where the file to be deleted is located. Currently, this parameter can only be set to AT_FDCWD. |
path | Indicates the path of the file to be deleted. This parameter must be set to an absolute path. |
flag | Indicates the operation flag. The value can only be 0 (deleting a file) or AT_REMOVEDIR (deleting a directory, equivalent to rmdir). If this parameter is set to other values, the function will fail. |
The length of the path name is greater than NAME_MAX. |
|
The path is a pseudo file used as a directory, or the directory is not empty. |
|
The search permission on the path prefix component is denied, or the write permission of the directory in the path is denied. |
fd | Indicates the primary terminal descriptor. |
name | Indicates the name of environment variable to be deleted. if overwrite is zero, then the value of name remains unchanged. |
useconds | Indicates the sleeping time in microseconds. The precision unit is tick, and the deviation is less than 2 ticks. |
size | Indicates the size of the memory block to be allocated. |
format | Indicates the pointer to the string that may contain the format specifiers. |
args | Indicates a value identifying a variable argument list initialized by using va_start. |
format | Indicates the pointer to the string that may contain the format specifiers. |
arg | Indicates a value identifying a variable argument list initialized by using va_start. |
dest | Indicates the pointer to the wide character array to copy the wide characters to. |
src | Indicates the pointer to the wide characters to copy. |
dest | Indicates the pointer to the array to accommodate the copied wide characters. |
src | Indicates the pointer to the wide character string to be copied. |
n | Indicates the maximum number of wide characters to be copied. |
s | Indicates the pointer to the address storing the converted string. |
wc | Indicates the wide character to be converted. |
ps | Indicates the pointer to the mbstate_t object describing the conversion state. |
s1 | Indicates the pointer to wide character string 1 for comparison. |
s2 | Indicates the pointer to wide character string 2 for comparison. |
s1 | Indicates the pointer to wide character string 1 for comparison. |
s2 | Indicates the pointer to wide character string 2 for comparison. |
locale | Indicates the locale. |
dest | Indicates the pointer to the array to accommodate the concatenated wide characters. |
src | Indicates the pointer to the wide characters to be concatenated. |
wcs | Indicates the pointer to the wide character string to match the specified wide character. |
wc | Indicates the wide character to be located. |
s1 | Indicates the pointer to string 1 for comparison. |
s2 | Indicates the pointer to string 2 for comparison. |
ws1 | Indicates the pointer to string 1 for comparison. |
ws2 | Indicates the pointer to string 2 for comparison. |
s1 | Indicates the pointer to wide character string 1 for comparison. |
s2 | Indicates the pointer to wide character string 2 for comparison. |
locale | Indicates the locale. |
wcs | Indicates the pointer to the wide character string to be scanned. |
accept | Indicates the pointer to the wide characters to be matched with the string. |
s | Indicates the pointer to the wide character string to copy. |
s | Indicates the pointer to the wide character string to be calculated. This parameter cannot be NULL. |
s1 | Indicates the pointer to wide character string 1 for comparison. |
s2 | Indicates the pointer to wide character string 2 for comparison. |
n | Indicates the maximum number of wide characters to be compared. |
s1 | Indicates the pointer to wide character string 1 for comparison. |
s2 | Indicates the pointer to wide character string 2 for comparison. |
n | Indicates the maximum number of wide characters to be compared. |
locale | Indicates the locale. |
dest | Indicates the pointer to the array to accommodate the concatenated wide characters. |
src | Indicates the pointer to the wide characters to be concatenated. |
n | Indicates the maximum number of wide characters to be concatenated. |
s1 | Indicates the pointer to string 1 for comparison. |
s2 | Indicates the pointer to string 2 for comparison. |
n | Indicates the maximum number of characters to be compared. |
dest | Indicates the pointer to the array to accommodate the copied wide characters. |
src | Indicates the pointer to the wide characters to be copied. |
n | Indicates the maximum number of wide characters to be copied. |
s | Indicates the pointer to the wide character string whose length is to be calculated. |
maxlen | Indicates the maximum length of the string whose length is to be calculated. |
wcs | Indicates the pointer to the wide character string to be scanned. |
accept | Indicates the pointer to the wide characters to be matched with the string. |
wcs | Indicates the pointer to the wide character string to match the specified wide character. |
wc | Indicates the wide character to be located. |
wcs | Indicates the pointer to the wide character string to be scanned. |
accept | Indicates the pointer to the wide characters to be matched with the string. |
str | Indicates the pointer to the wide character string to be converted. |
endptr | Indicates the double pointer to the next character in str after the double value. |
str | Indicates the pointer to the wide character string to be converted. |
endptr | Indicates the double pointer to the next character in str after the floating-point value. |
str | Indicates the pointer to the string to parse. |
endptr | Indicates the double pointer to the first character following the integer obtained from str. |
base | Indicates the conversion of number system. |
str | Indicates the pointer to the wide character string to be converted. |
endptr | Indicates the double pointer to the next character in str after the long double value. |
str | Indicates the pointer to the string to parse. |
endptr | Indicates the double pointer to the first character following the integer obtained from str. |
base | Indicates the conversion of number system. |
haystack | Indicates the pointer to the wide character string to be searched. |
needle | Indicates the pointer to the wide character string to match. |
haystack | Indicates the pointer to the wide character string to be searched. |
needle | Indicates the pointer to the wide character to be matched. |
s1 | Indicates the pointer to wide character string 1 for comparison. |
s2 | Indicates the pointer to wide character string 2 for comparison. |
n | Indicates the maximum number of wide characters to be compared. |
s1 | Indicates the pointer to wide character string 1 for comparison. |
s2 | Indicates the pointer to wide character string 2 for comparison. |
n | Indicates the maximum number of wide characters to be compared. |
locale | Indicates the locale. |
c | Indicates the wide character to be converted. |
s | Indicates the pointer to an array that can store multi-byte characters. |
wc | Indicates the wide character to be converted. |
A non-zero value if the code has shift state or 0 if the code is stateless. |
name | Indicates the mapping name. The value can only be tolower (converting an uppercase wide character to lowercase) or toupper (converting a lowercase wide character to uppercase). |
name | Indicates the pointer to the wide character type. |
name | Indicates the pointer to the wide character type. |
locale | Indicates the locale. This parameter is ignored currently. |
s | Indicates the pointer to the wide character string to be searched. |
c | Indicates the wide character to be matched. |
n | Indicates the number of characters to be searched in the wide character string. |
lhs | Indicates the pointer to string 1 for comparison. |
rhs | Indicates the pointer to string 2 for comparison. |
count | Indicates the number of characters to compare. |
dest | Indicates the pointer to the wide character array to copy characters to. |
src | Indicates the pointer to the wide character array to copy characters from. |
count | Indicates the number of wide characters to copy. |
dest | Indicates the pointer to the wide character array to copy characters to. |
src | Indicates the pointer to the wide character array to copy characters from. |
count | Indicates the number of wide characters to copy. |
dest | Indicates the pointer to the wide character array to fill characters to. |
ch | Indicates the wide characters to be filled. |
count | Indicates the number of wide characters to be filled. |
format | Indicates the pointer to the string that may contain the format specifiers. |
... | Indicates the variable arguments specifying the data to print. |
fd | Indicates the descriptor of the file into which content is to be written. |
buf | Indicates the pointer to the content to be written to the file. |
size | Indicates the length of the written data in the unit of bytes. |
format | Indicates the pointer to the string that may contain the format specifiers. |
... | Indicates the variable arguments specifying the data to read. |