/glibc-2.36/bits/ |
D | waitstatus.h | 28 #define __WEXITSTATUS(status) (((status) & 0xff00) >> 8) argument 31 #define __WTERMSIG(status) ((status) & 0x7f) argument 34 #define __WSTOPSIG(status) __WEXITSTATUS(status) argument 37 #define __WIFEXITED(status) (__WTERMSIG(status) == 0) argument 40 #define __WIFSIGNALED(status) \ argument 41 (((signed char) (((status) & 0x7f) + 1) >> 1) > 0) 44 #define __WIFSTOPPED(status) (((status) & 0xff) == 0x7f) argument 49 # define __WIFCONTINUED(status) ((status) == __W_CONTINUED) argument 53 #define __WCOREDUMP(status) ((status) & __WCOREFLAG) argument
|
/glibc-2.36/wcsmbs/ |
D | mbsrtowcs_l.c | 44 int status; in __mbsrtowcs_l() local 83 status = DL_CALL_FCT (fct, (towc, &data, &inbuf, srcend, NULL, in __mbsrtowcs_l() 88 while (status == __GCONV_FULL_OUTPUT); in __mbsrtowcs_l() 90 if (status == __GCONV_OK || status == __GCONV_EMPTY_INPUT) in __mbsrtowcs_l() 109 status = __GCONV_FULL_OUTPUT; in __mbsrtowcs_l() 117 status = DL_CALL_FCT (fct, (towc, &data, &srcp, srcend, NULL, in __mbsrtowcs_l() 119 if ((status != __GCONV_EMPTY_INPUT in __mbsrtowcs_l() 120 && status != __GCONV_INCOMPLETE_INPUT) in __mbsrtowcs_l() 137 if ((status == __GCONV_OK || status == __GCONV_EMPTY_INPUT) in __mbsrtowcs_l() 149 assert (status == __GCONV_OK || status == __GCONV_EMPTY_INPUT in __mbsrtowcs_l() [all …]
|
D | mbsnrtowcs.c | 46 int status; in __mbsnrtowcs() local 88 status = DL_CALL_FCT (fct, (towc, &data, &inbuf, srcend, NULL, in __mbsnrtowcs() 93 while (status == __GCONV_FULL_OUTPUT); in __mbsnrtowcs() 95 if ((status == __GCONV_OK || status == __GCONV_EMPTY_INPUT) in __mbsnrtowcs() 108 status = DL_CALL_FCT (fct, in __mbsnrtowcs() 116 if ((status == __GCONV_OK || status == __GCONV_EMPTY_INPUT) in __mbsnrtowcs() 128 assert (status == __GCONV_OK || status == __GCONV_EMPTY_INPUT in __mbsnrtowcs() 129 || status == __GCONV_ILLEGAL_INPUT in __mbsnrtowcs() 130 || status == __GCONV_INCOMPLETE_INPUT in __mbsnrtowcs() 131 || status == __GCONV_FULL_OUTPUT); in __mbsnrtowcs() [all …]
|
D | wcsnrtombs.c | 44 int status; in __wcsnrtombs() local 88 status = DL_CALL_FCT (fct, (tomb, &data, &inbuf, in __wcsnrtombs() 95 while (status == __GCONV_FULL_OUTPUT); in __wcsnrtombs() 97 if ((status == __GCONV_OK || status == __GCONV_EMPTY_INPUT) in __wcsnrtombs() 112 status = DL_CALL_FCT (fct, (tomb, &data, (const unsigned char **) src, in __wcsnrtombs() 121 if ((status == __GCONV_OK || status == __GCONV_EMPTY_INPUT) in __wcsnrtombs() 133 assert (status == __GCONV_OK || status == __GCONV_EMPTY_INPUT in __wcsnrtombs() 134 || status == __GCONV_ILLEGAL_INPUT in __wcsnrtombs() 135 || status == __GCONV_INCOMPLETE_INPUT in __wcsnrtombs() 136 || status == __GCONV_FULL_OUTPUT); in __wcsnrtombs() [all …]
|
D | wcsrtombs.c | 40 int status; in __wcsrtombs() local 81 status = DL_CALL_FCT (fct, (tomb, &data, &inbuf, in __wcsrtombs() 88 while (status == __GCONV_FULL_OUTPUT); in __wcsrtombs() 90 if (status == __GCONV_OK || status == __GCONV_EMPTY_INPUT) in __wcsrtombs() 109 status = DL_CALL_FCT (fct, (tomb, &data, (const unsigned char **) src, in __wcsrtombs() 118 if ((status == __GCONV_OK || status == __GCONV_EMPTY_INPUT) in __wcsrtombs() 130 assert (status == __GCONV_OK || status == __GCONV_EMPTY_INPUT in __wcsrtombs() 131 || status == __GCONV_ILLEGAL_INPUT in __wcsrtombs() 132 || status == __GCONV_INCOMPLETE_INPUT in __wcsrtombs() 133 || status == __GCONV_FULL_OUTPUT); in __wcsrtombs() [all …]
|
D | wcrtomb.c | 43 int status; in __wcrtomb_internal() local 76 status = DL_CALL_FCT (fct, (fcts->tomb, &data, NULL, NULL, in __wcrtomb_internal() 79 if (status == __GCONV_OK || status == __GCONV_EMPTY_INPUT) in __wcrtomb_internal() 87 status = DL_CALL_FCT (fct, in __wcrtomb_internal() 96 assert (status == __GCONV_OK || status == __GCONV_EMPTY_INPUT in __wcrtomb_internal() 97 || status == __GCONV_ILLEGAL_INPUT in __wcrtomb_internal() 98 || status == __GCONV_INCOMPLETE_INPUT in __wcrtomb_internal() 99 || status == __GCONV_FULL_OUTPUT); in __wcrtomb_internal() 101 if (status == __GCONV_OK || status == __GCONV_EMPTY_INPUT in __wcrtomb_internal() 102 || status == __GCONV_FULL_OUTPUT) in __wcrtomb_internal()
|
D | mbrtowc.c | 39 int status; in __mbrtowc() local 85 status = DL_CALL_FCT (fct, (fcts->towc, &data, &inbuf, endbuf, in __mbrtowc() 92 assert (status == __GCONV_OK || status == __GCONV_EMPTY_INPUT in __mbrtowc() 93 || status == __GCONV_ILLEGAL_INPUT in __mbrtowc() 94 || status == __GCONV_INCOMPLETE_INPUT in __mbrtowc() 95 || status == __GCONV_FULL_OUTPUT); in __mbrtowc() 97 if (status == __GCONV_OK || status == __GCONV_EMPTY_INPUT in __mbrtowc() 98 || status == __GCONV_FULL_OUTPUT) in __mbrtowc() 110 else if (status == __GCONV_INCOMPLETE_INPUT) in __mbrtowc()
|
/glibc-2.36/support/ |
D | tst-support_record_failure.c | 64 int status = support_report_failure (0); in check_failure_reporting() local 65 if (status != zero) in check_failure_reporting() 68 phase, status); in check_failure_reporting() 71 status = support_report_failure (1); in check_failure_reporting() 72 if (status != 1) in check_failure_reporting() 75 phase, status); in check_failure_reporting() 78 status = support_report_failure (2); in check_failure_reporting() 79 if (status != 2) in check_failure_reporting() 82 phase, status); in check_failure_reporting() 85 status = support_report_failure (EXIT_UNSUPPORTED); in check_failure_reporting() [all …]
|
D | support_test_main.c | 114 int status; in signal_handler() local 133 killed = waitpid (test_pid, &status, WNOHANG|WUNTRACED); in signal_handler() 161 if (killed == 0 || (WIFSIGNALED (status) && WTERMSIG (status) == SIGKILL)) in signal_handler() 163 else if (WIFSTOPPED (status)) in signal_handler() 165 strsignal (WSTOPSIG (status))); in signal_handler() 166 else if (WIFSIGNALED (status)) in signal_handler() 168 strsignal (WTERMSIG (status))); in signal_handler() 171 WEXITSTATUS (status)); in signal_handler() 262 adjust_exit_status (int status) in adjust_exit_status() argument 265 return support_report_failure (status); in adjust_exit_status() [all …]
|
D | support_capture_subprocess_check.c | 38 if (WIFEXITED (proc->status)) in print_actual_status() 40 WEXITSTATUS (proc->status), proc->status); in print_actual_status() 41 else if (WIFSIGNALED (proc->status)) in print_actual_status() 43 WTERMSIG (proc->status), proc->status); in print_actual_status() 45 printf ("error: actual undecoded exit status: [0x%x]\n", proc->status); in print_actual_status() 64 if (!(WIFEXITED (proc->status) in support_capture_subprocess_check() 65 && WEXITSTATUS (proc->status) == status_or_signal)) in support_capture_subprocess_check() 75 if (!(WIFSIGNALED (proc->status) in support_capture_subprocess_check() 76 && WTERMSIG (proc->status) == -status_or_signal)) in support_capture_subprocess_check()
|
/glibc-2.36/nss/nss_db/ |
D | db-XXX.c | 68 enum nss_status status; in CONCAT() local 72 status = internal_setent (DBFILE, &state); in CONCAT() 74 if (status == NSS_STATUS_SUCCESS) in CONCAT() 85 return status; in CONCAT() 138 enum nss_status status = internal_setent (DBFILE, &state); \ 139 if (status != NSS_STATUS_SUCCESS) \ 143 return status; \ 153 status = NSS_STATUS_UNAVAIL; \ 176 status = NSS_STATUS_NOTFOUND; \ 186 status = NSS_STATUS_TRYAGAIN; \ [all …]
|
/glibc-2.36/posix/sys/ |
D | wait.h | 54 # define WEXITSTATUS(status) __WEXITSTATUS (status) argument 55 # define WTERMSIG(status) __WTERMSIG (status) argument 56 # define WSTOPSIG(status) __WSTOPSIG (status) argument 57 # define WIFEXITED(status) __WIFEXITED (status) argument 58 # define WIFSIGNALED(status) __WIFSIGNALED (status) argument 59 # define WIFSTOPPED(status) __WIFSTOPPED (status) argument 61 # define WIFCONTINUED(status) __WIFCONTINUED (status) argument 67 # define WCOREDUMP(status) __WCOREDUMP (status) argument
|
/glibc-2.36/nss/nss_compat/ |
D | compat-pwd.c | 205 enum nss_status status = NSS_STATUS_SUCCESS; in internal_setpwent() local 229 status = errno == EAGAIN ? NSS_STATUS_TRYAGAIN : NSS_STATUS_UNAVAIL; in internal_setpwent() 236 if (needent && status == NSS_STATUS_SUCCESS && setpwent_impl) in internal_setpwent() 239 return status; in internal_setpwent() 322 int status; in getpwent_next_nss_netgr() local 339 status = __internal_getnetgrent_r (&host, &user, &domain, in getpwent_next_nss_netgr() 342 if (status != 1) in getpwent_next_nss_netgr() 403 enum nss_status status; in getpwent_next_nss() local 429 if ((status = getpwent_r_impl (result, buffer, buflen, errnop)) in getpwent_next_nss() 431 return status; in getpwent_next_nss() [all …]
|
D | compat-spwd.c | 161 enum nss_status status = NSS_STATUS_SUCCESS; in internal_setspent() local 184 status = errno == EAGAIN ? NSS_STATUS_TRYAGAIN : NSS_STATUS_UNAVAIL; in internal_setspent() 191 if (needent && status == NSS_STATUS_SUCCESS && setspent_impl) in internal_setspent() 194 return status; in internal_setspent() 295 enum nss_status status; in getspent_next_nss_netgr() local 297 status = __internal_getnetgrent_r (&host, &user, &domain, in getspent_next_nss_netgr() 300 if (status != 1) in getspent_next_nss_netgr() 361 enum nss_status status; in getspent_next_nss() local 378 if ((status = getspent_r_impl (result, buffer, buflen, errnop)) in getspent_next_nss() 380 return status; in getspent_next_nss() [all …]
|
D | compat-grp.c | 96 enum nss_status status = NSS_STATUS_SUCCESS; in internal_setgrent() local 114 status = errno == EAGAIN ? NSS_STATUS_TRYAGAIN : NSS_STATUS_UNAVAIL; in internal_setgrent() 119 if (needent && status == NSS_STATUS_SUCCESS && setgrent_impl) in internal_setgrent() 122 return status; in internal_setgrent() 205 enum nss_status status; in getgrent_next_nss() local 207 if ((status = getgrent_r_impl (result, buffer, buflen, errnop)) in getgrent_next_nss() 209 return status; in getgrent_next_nss() 224 enum nss_status status = getgrnam_r_impl (name, result, buffer, buflen, in getgrnam_plusgroup() local 226 if (status != NSS_STATUS_SUCCESS) in getgrnam_plusgroup() 227 return status; in getgrnam_plusgroup() [all …]
|
/glibc-2.36/nss/ |
D | getnssent_r.c | 81 enum nss_status status; in __nss_setent() local 84 status = DL_CALL_FCT (fct.f, (*stayopen_tmp)); in __nss_setent() 86 status = DL_CALL_FCT (fct.f, (0)); in __nss_setent() 95 if (nss_next_action (*nip, status) == NSS_ACTION_MERGE) in __nss_setent() 98 no_more = __nss_next2 (nip, func_name, NULL, &fct.ptr, status, 0); in __nss_setent() 168 enum nss_status status; in __nss_getent_r() local 183 status = NSS_STATUS_NOTFOUND; in __nss_getent_r() 194 status = DL_CALL_FCT (fct.f, in __nss_getent_r() 202 if (status == NSS_STATUS_TRYAGAIN in __nss_getent_r() 215 if (status == NSS_STATUS_SUCCESS in __nss_getent_r() [all …]
|
D | getXXbyYY_r.c | 158 #define CHECK_MERGE(err, status) \ argument 166 status = NSS_STATUS_TRYAGAIN; \ 168 status = NSS_STATUS_UNAVAIL; \ 202 enum nss_status status = NSS_STATUS_UNAVAIL; in libc_hidden_proto() local 229 buflen, result, &status, AF_VAL, in libc_hidden_proto() 273 status = DL_CALL_FCT (fct.l, (ADD_VARIABLES, resbuf, buffer, buflen, in libc_hidden_proto() 281 if (status == NSS_STATUS_TRYAGAIN in libc_hidden_proto() 291 if (status == NSS_STATUS_SUCCESS) in libc_hidden_proto() 297 CHECK_MERGE (err,status); in libc_hidden_proto() 313 CHECK_MERGE (err, status); in libc_hidden_proto() [all …]
|
D | nss_files_data.c | 79 enum nss_status status = NSS_STATUS_SUCCESS; in __nss_files_data_internal_open() local 86 status = errno == EAGAIN ? NSS_STATUS_TRYAGAIN : NSS_STATUS_UNAVAIL; in __nss_files_data_internal_open() 89 return status; in __nss_files_data_internal_open() 98 enum nss_status status = __nss_files_data_get (pdata, file, errnop, herrnop); in __nss_files_data_open() local 99 if (status != NSS_STATUS_SUCCESS) in __nss_files_data_open() 100 return status; in __nss_files_data_open() 106 status = __nss_files_data_internal_open (*pdata, path); in __nss_files_data_open() 108 if (status != NSS_STATUS_SUCCESS) in __nss_files_data_open() 112 return status; in __nss_files_data_open() 128 enum nss_status status = __nss_files_data_get (&data, file, NULL, NULL); in libc_hidden_def() local [all …]
|
/glibc-2.36/nss/nss_files/ |
D | files-hosts.c | 133 enum nss_status status; in gethostbyname3_multi() local 154 status = internal_getent (stream, &tmp_result_buf, tmp_buffer.data, in gethostbyname3_multi() 157 if (status == NSS_STATUS_TRYAGAIN && *herrnop == NETDB_INTERNAL in gethostbyname3_multi() 168 else if (status == NSS_STATUS_SUCCESS) in gethostbyname3_multi() 215 status = NSS_STATUS_TRYAGAIN; in gethostbyname3_multi() 248 status = NSS_STATUS_UNAVAIL; in gethostbyname3_multi() 257 status = NSS_STATUS_TRYAGAIN; in gethostbyname3_multi() 277 if (status != NSS_STATUS_TRYAGAIN) in gethostbyname3_multi() 278 status = NSS_STATUS_SUCCESS; in gethostbyname3_multi() 280 if (status == NSS_STATUS_SUCCESS) in gethostbyname3_multi() [all …]
|
D | files-alias.c | 41 enum nss_status status = NSS_STATUS_SUCCESS; in internal_setent() local 48 status = errno == EAGAIN ? NSS_STATUS_TRYAGAIN : NSS_STATUS_UNAVAIL; in internal_setent() 53 return status; in internal_setent() 77 enum nss_status status = NSS_STATUS_NOTFOUND; in libc_hidden_def() local 109 status = NSS_STATUS_TRYAGAIN; in libc_hidden_def() 296 status = (result->alias_members_len == 0 in libc_hidden_def() 324 if (status != NSS_STATUS_NOTFOUND) in libc_hidden_def() 329 return status; in libc_hidden_def() 340 enum nss_status status = __nss_files_data_open (&data, nss_file_aliasent, in _nss_files_getaliasent_r() local 342 if (status != NSS_STATUS_SUCCESS) in _nss_files_getaliasent_r() [all …]
|
/glibc-2.36/posix/ |
D | tst-spawn4-compat.c | 48 int status; in do_test() local 52 status = posix_spawn (&pid, scriptname, NULL, NULL, (char *[]) { 0 }, in do_test() 54 TEST_VERIFY_EXIT (status == 0); in do_test() 56 TEST_VERIFY_EXIT (waitpid (pid, &status, 0) == pid); in do_test() 57 TEST_VERIFY_EXIT (WIFEXITED (status) == 1 && WEXITSTATUS (status) == 65); in do_test() 59 status = posix_spawnp (&pid, scriptname, NULL, NULL, (char *[]) { 0 }, in do_test() 61 TEST_VERIFY_EXIT (status == 0); in do_test() 63 TEST_VERIFY_EXIT (waitpid (pid, &status, 0) == pid); in do_test() 64 TEST_VERIFY_EXIT (WIFEXITED (status) == 1 && WEXITSTATUS (status) == 65); in do_test()
|
/glibc-2.36/htl/ |
D | pt-join.c | 28 __pthread_join_common (pthread_t thread, void **status, int try, in __pthread_join_common() argument 70 if (status != NULL) in __pthread_join_common() 71 *status = pthread->status; in __pthread_join_common() 89 __pthread_join (pthread_t thread, void **status) in __pthread_join() argument 91 return __pthread_join_common (thread, status, 0, CLOCK_REALTIME, NULL); in __pthread_join() 96 __pthread_tryjoin_np (pthread_t thread, void **status) in __pthread_tryjoin_np() argument 98 return __pthread_join_common (thread, status, 1, CLOCK_REALTIME, NULL); in __pthread_tryjoin_np() 103 __pthread_timedjoin_np (pthread_t thread, void **status, in __pthread_timedjoin_np() argument 106 return __pthread_join_common (thread, status, 0, CLOCK_REALTIME, abstime); in __pthread_timedjoin_np() 111 __pthread_clockjoin_np (pthread_t thread, void **status, in __pthread_clockjoin_np() argument [all …]
|
/glibc-2.36/nis/ |
D | nis_error.c | 55 nis_sperrno (const nis_error status) in nis_sperrno() argument 57 if (status >= sizeof (msgidx) / sizeof (msgidx[0])) in nis_sperrno() 60 return gettext (msgstr.str + msgidx[status]); in nis_sperrno() 65 nis_perror (const nis_error status, const char *label) in libnsl_hidden_nolink_def() 67 fprintf (stderr, "%s: %s\n", label, nis_sperrno (status)); in libnsl_hidden_nolink_def() 72 nis_lerror (const nis_error status, const char *label) in libnsl_hidden_nolink_def() 74 syslog (LOG_ERR, "%s: %s", label, nis_sperrno (status)); in libnsl_hidden_nolink_def() 79 nis_sperror_r (const nis_error status, const char *label, in libnsl_hidden_nolink_def() 82 if (snprintf (buffer, buflen, "%s: %s", label, nis_sperrno (status)) in libnsl_hidden_nolink_def() 94 nis_sperror (const nis_error status, const char *label) in libnsl_hidden_nolink_def() [all …]
|
/glibc-2.36/sysdeps/mach/hurd/ |
D | waitid.c | 35 int status; in __waitid() local 73 &status, &sigcode, in __waitid() 78 &status, &sigcode, in __waitid() 102 if (WIFEXITED (status)) in __waitid() 105 infop->si_status = WEXITSTATUS (status); in __waitid() 107 else if (WIFSIGNALED (status)) in __waitid() 109 infop->si_code = WCOREDUMP (status) ? CLD_DUMPED : CLD_KILLED; in __waitid() 110 infop->si_status = WTERMSIG (status); in __waitid() 112 else if (WIFSTOPPED (status)) in __waitid() 115 infop->si_status = WSTOPSIG (status); in __waitid() [all …]
|
/glibc-2.36/sysdeps/x86/ |
D | tst-strncmp-rtm.c | 88 int status = do_test_1 (TEST_NAME, LOOP, prepare, function); in do_test() local 89 if (status != EXIT_SUCCESS) in do_test() 90 return status; in do_test() 91 status = do_test_1 (TEST_NAME, LOOP, prepare, function_overflow); in do_test() 92 if (status != EXIT_SUCCESS) in do_test() 93 return status; in do_test() 94 status = do_test_1 (TEST_NAME, LOOP, prepare, function_overflow2); in do_test() 95 if (status != EXIT_SUCCESS) in do_test() 96 return status; in do_test() 97 return status; in do_test()
|