Home
last modified time | relevance | path

Searched refs:retval (Results 1 – 25 of 754) sorted by relevance

12345678910>>...31

/freebsd/sys/compat/linuxkpi/common/src/
H A Dlinux_xarray.c51 void *retval; in __xa_erase() local
55 retval = radix_tree_delete(&xa->xa_head, index); in __xa_erase()
56 if (retval == NULL_VALUE) in __xa_erase()
57 retval = NULL; in __xa_erase()
59 return (retval); in __xa_erase()
65 void *retval; in xa_erase() local
68 retval = __xa_erase(xa, index); in xa_erase()
71 return (retval); in xa_erase()
81 void *retval; in xa_load() local
84 retval in xa_load()
120 int retval; __xa_alloc() local
159 int retval; xa_alloc() local
181 int retval; __xa_alloc_cyclic() local
227 int retval; xa_alloc_cyclic() local
246 int retval; __xa_insert() local
270 int retval; xa_insert() local
290 int retval; __xa_store() local
320 void *retval; xa_store() local
375 bool retval; xa_empty() local
394 void *retval; __xa_next() local
421 void *retval; xa_next() local
[all...]
/freebsd/contrib/ntp/libparse/
H A Dbinio.c44 long retval; in get_lsb_short() local
46 retval = *((*bufpp)++); in get_lsb_short()
47 retval |= *((*bufpp)++) << 8; in get_lsb_short()
49 return (retval & 0x8000) ? (~0xFFFF | retval) : retval; in get_lsb_short()
67 long retval; in get_lsb_long() local
69 retval = *((*bufpp)++); in get_lsb_long()
70 retval |= *((*bufpp)++) << 8; in get_lsb_long()
71 retval |= *((*bufpp)++) << 16; in get_lsb_long()
72 retval |= (u_long)*((*bufpp)++) << 24; in get_lsb_long()
74 return retval; in get_lsb_long()
[all …]
/freebsd/lib/libpam/modules/pam_krb5/
H A Dpam_krb5.c124 int retval; in pam_sm_authenticate() local
130 retval = pam_get_user(pamh, &user, USER_PROMPT); in pam_sm_authenticate()
131 if (retval != PAM_SUCCESS) in pam_sm_authenticate()
132 return (retval); in pam_sm_authenticate()
136 retval = pam_get_item(pamh, PAM_RUSER, &sourceuser); in pam_sm_authenticate()
137 if (retval != PAM_SUCCESS) in pam_sm_authenticate()
138 return (retval); in pam_sm_authenticate()
150 retval = PAM_BUF_ERR; in pam_sm_authenticate()
157 retval = PAM_SERVICE_ERR; in pam_sm_authenticate()
175 retval = PAM_SERVICE_ERR; in pam_sm_authenticate()
[all …]
/freebsd/lib/libpam/modules/pam_unix/
H A Dpam_unix.c92 int retval; in pam_sm_authenticate() local
99 retval = pam_get_user(pamh, &user, NULL); in pam_sm_authenticate()
100 if (retval != PAM_SUCCESS) in pam_sm_authenticate()
101 return (retval); in pam_sm_authenticate()
133 retval = pam_get_authtok(pamh, PAM_AUTHTOK, &pass, prompt); in pam_sm_authenticate()
135 if (retval != PAM_SUCCESS) in pam_sm_authenticate()
136 return (retval); in pam_sm_authenticate()
169 int retval; in pam_sm_acct_mgmt() local
174 retval = pam_get_user(pamh, &user, NULL); in pam_sm_acct_mgmt()
175 if (retval != PAM_SUCCESS) in pam_sm_acct_mgmt()
[all …]
/freebsd/usr.sbin/nscd/
H A Dcacheplcs.c84 struct cache_queue_policy_item_ *retval; in cache_queue_policy_create_item() local
87 retval = calloc(1, in cache_queue_policy_create_item()
88 sizeof(*retval)); in cache_queue_policy_create_item()
89 assert(retval != NULL); in cache_queue_policy_create_item()
92 return ((struct cache_policy_item_ *)retval); in cache_queue_policy_create_item()
190 struct cache_queue_policy_ *retval; in init_cache_queue_policy() local
193 retval = calloc(1, in init_cache_queue_policy()
194 sizeof(*retval)); in init_cache_queue_policy()
195 assert(retval != NULL); in init_cache_queue_policy()
197 retval->parent_data.create_item_func = cache_queue_policy_create_item; in init_cache_queue_policy()
[all …]
H A Dconfig.c116 struct configuration_entry *retval; in create_configuration_entry() local
126 retval = calloc(1, in create_configuration_entry()
127 sizeof(*retval)); in create_configuration_entry()
128 assert(retval != NULL); in create_configuration_entry()
130 res = pthread_mutex_init(&retval->positive_cache_lock, NULL); in create_configuration_entry()
132 free(retval); in create_configuration_entry()
139 res = pthread_mutex_init(&retval->negative_cache_lock, NULL); in create_configuration_entry()
141 pthread_mutex_destroy(&retval->positive_cache_lock); in create_configuration_entry()
142 free(retval); in create_configuration_entry()
149 res = pthread_mutex_init(&retval->mp_cache_lock, NULL); in create_configuration_entry()
[all …]
/freebsd/lib/libpam/modules/pam_tacplus/
H A Dpam_tacplus.c68 int retval; in do_item() local
71 retval = pam_get_item(pamh, item, &value); in do_item()
72 if (retval != PAM_SUCCESS) in do_item()
73 return retval; in do_item()
111 int retval; in pam_sm_authenticate() local
137 retval = do_item(pamh, tach, PAM_USER, tac_set_user, "tac_set_user"); in pam_sm_authenticate()
138 if (retval != PAM_SUCCESS) in pam_sm_authenticate()
139 return (retval); in pam_sm_authenticate()
143 retval = do_item(pamh, tach, PAM_TTY, tac_set_port, "tac_set_port"); in pam_sm_authenticate()
144 if (retval != PAM_SUCCESS) in pam_sm_authenticate()
[all …]
/freebsd/tools/tools/usbtest/
H A Dusbtest.c89 uint8_t retval; in usb_ts_show_menu() local
127 retval = 255; in usb_ts_show_menu()
129 retval = atoi(buf); in usb_ts_show_menu()
131 usb_ts_select[level] = retval; in usb_ts_show_menu()
133 return (retval); in usb_ts_show_menu()
191 int retval; in show_default_audio_select() local
232 retval = usb_ts_show_menu(level, "Default Audio Settings", in show_default_audio_select()
248 switch (retval) { in show_default_audio_select()
278 uint8_t retval; in show_device_audio_select() local
282 retval = usb_ts_show_menu(level, "Select Audio Device Model", in show_device_audio_select()
[all …]
/freebsd/usr.sbin/ctladm/
H A Dctladm.c287 int num_entries, len, lun = -1, retval = 0; in cctl_dump_ooa() local
311 retval = 1; in cctl_dump_ooa()
325 retval = 1; in cctl_dump_ooa()
367 return (retval); in cctl_dump_ooa()
408 int retval = 0; in cctl_port() local
461 retval = 1; in cctl_port()
474 retval = 1; in cctl_port()
481 retval = 1; in cctl_port()
493 retval = 1; in cctl_port()
513 retval in cctl_port()
735 int retval; cctl_delay() local
857 int retval = 0; cctl_error_inject() local
1081 int retval; cctl_lunlist() local
1153 int retval; cctl_sync_cache() local
1238 int retval, c; cctl_start_stop() local
1301 int pc = -1, cdbsize, retval, dbd = 0, subpage = -1; cctl_mode_sense() local
1516 int cdbsize = -1, retval; cctl_read_capacity() local
1645 int retval; cctl_read_write() local
1819 int retval; cctl_get_luns() local
1887 int retval; cctl_report_luns() local
1972 int retval; cctl_get_inquiry() local
2015 int retval; cctl_inquiry() local
2043 int retval; cctl_req_sense() local
2091 int retval; cctl_report_target_port_group() local
2156 int retval; cctl_inquiry_vpd_devid() local
2225 int retval; cctl_persistent_reserve_in() local
2327 int retval; cctl_persistent_reserve_out() local
2427 int retval = 0, c; cctl_create_lun() local
2591 int retval = 0, c; cctl_rm_lun() local
2694 int retval = 0, c; cctl_modify_lun() local
2980 int c, retval, verbose = 0; cctl_islist() local
3089 int retval = 0, c; cctl_islogout() local
3162 int retval = 0, c; cctl_isterminate() local
3398 int retval, c; cctl_devlist() local
3681 int retval, c; cctl_portlist() local
3822 int retval = 0, c; cctl_lunmap() local
4001 int c, retval, verbose = 0; cctl_nvlist() local
4101 int retval = 0, c; cctl_nvterminate() local
4320 int retval, fd; main() local
[all...]
/freebsd/tools/regression/geom_gpt/
H A Dgctl_test_helper.c38 struct retval { struct
39 struct retval *retval; argument
44 static struct retval *retval; argument
109 struct retval *rv; in main()
135 rv = malloc(sizeof(struct retval)); in main()
139 rv->retval = retval; in main()
140 retval = rv; in main()
155 while (retval != NULL) { in main()
156 rv = retval->retval; in main()
157 printf(" %s=%s", retval->param, retval->value); in main()
[all …]
/freebsd/contrib/llvm-project/compiler-rt/lib/sanitizer_common/
H A Dsanitizer_syscall_linux_x86_64.inc16 u64 retval;
17 asm volatile("syscall" : "=a"(retval) : "a"(nr) : "rcx", "r11",
19 return retval;
24 u64 retval;
25 asm volatile("syscall" : "=a"(retval) : "a"(nr), "D"((u64)arg1) :
27 return retval;
32 u64 retval;
33 asm volatile("syscall" : "=a"(retval) : "a"(nr), "D"((u64)arg1),
35 return retval;
40 u64 retval;
[all …]
/freebsd/sys/dev/mwl/
H A Dmwlhal.c562 int retval, minrev; in mwl_hal_gethwspecs() local
569 retval = mwlExecuteCmd(mh, HostCmd_CMD_GET_HW_SPEC); in mwl_hal_gethwspecs()
570 if (retval == 0) { in mwl_hal_gethwspecs()
597 return retval; in mwl_hal_gethwspecs()
610 int retval; in mwl_hal_sethwdma() local
631 retval = mwlExecuteCmd(mh, HostCmd_CMD_SET_HW_SPEC); in mwl_hal_sethwdma()
632 if (retval == 0) { in mwl_hal_sethwdma()
639 return retval; in mwl_hal_sethwdma()
651 int retval; in mwl_hal_gethwstats() local
657 retval = mwlExecuteCmd(mh, HostCmd_CMD_802_11_GET_STAT); in mwl_hal_gethwstats()
[all …]
/freebsd/usr.sbin/rpc.lockd/
H A Dlockd_lock.c499 enum split_status retval; in region_compare() local
501 retval = SPL_DISJOINT; in region_compare()
520 retval = SPL_CONTAINED; in region_compare()
522 retval = SPL_LOCK1; in region_compare()
551 retval |= SPL_LOCK1; in region_compare()
558 retval |= SPL_LOCK2; in region_compare()
566 retval = SPL_CONTAINED; in region_compare()
567 return retval; in region_compare()
570 retval = SPL_CONTAINED; in region_compare()
571 return retval; in region_compare()
[all …]
/freebsd/stand/libsa/
H A Dprintf.c70 int retval; in printf() local
73 retval = kvprintf(fmt, putchar_wrapper, NULL, 10, ap); in printf()
75 return retval; in printf()
88 int retval; in sprintf() local
92 retval = kvprintf(cfmt, NULL, (void *)buf, 10, ap); in sprintf()
93 buf[retval] = '\0'; in sprintf()
95 return retval; in sprintf()
122 int retval; in asprintf() local
128 retval = kvprintf(cfmt, NULL, NULL, 10, ap); in asprintf()
130 if (retval <= 0) in asprintf()
[all …]
/freebsd/lib/libc/net/
H A Dnss_compat.c81 int __nss_compat_getgrnam_r(void *retval, void *mdata, va_list ap);
82 int __nss_compat_getgrgid_r(void *retval, void *mdata, va_list ap);
83 int __nss_compat_getgrent_r(void *retval, void *mdata, va_list ap);
84 int __nss_compat_setgrent(void *retval, void *mdata, va_list ap);
85 int __nss_compat_endgrent(void *retval, void *mdata, va_list ap);
86 int __nss_compat_getpwnam_r(void *retval, void *mdata, va_list ap);
87 int __nss_compat_getpwuid_r(void *retval, void *mdata, va_list ap);
88 int __nss_compat_getpwent_r(void *retval, void *mdata, va_list ap);
89 int __nss_compat_setpwent(void *retval, void *mdata, va_list ap);
90 int __nss_compat_endpwent(void *retval, void *mdata, va_list ap);
[all …]
/freebsd/sys/dev/sound/midi/
H A Dmidi.c637 int retval; in midi_open() local
647 retval = 0; in midi_open()
651 retval = ENXIO; in midi_open()
653 retval = EBUSY; in midi_open()
654 if (retval) in midi_open()
659 retval = ENXIO; in midi_open()
661 retval = EBUSY; in midi_open()
662 if (retval) in midi_open()
689 return retval; in midi_open()
696 int retval; in midi_close() local
[all …]
/freebsd/usr.sbin/nscd/agents/
H A Dgroup.c222 struct common_agent *retval; in init_group_agent() local
225 retval = calloc(1, sizeof(*retval)); in init_group_agent()
226 assert(retval != NULL); in init_group_agent()
228 retval->parent.name = strdup("group"); in init_group_agent()
229 assert(retval->parent.name != NULL); in init_group_agent()
231 retval->parent.type = COMMON_AGENT; in init_group_agent()
232 retval->lookup_func = group_lookup_func; in init_group_agent()
235 return ((struct agent *)retval); in init_group_agent()
241 struct multipart_agent *retval; in init_group_mp_agent() local
244 retval = calloc(1, in init_group_mp_agent()
[all …]
H A Dservices.c243 struct common_agent *retval; in init_services_agent() local
246 retval = calloc(1, sizeof(*retval)); in init_services_agent()
247 assert(retval != NULL); in init_services_agent()
249 retval->parent.name = strdup("services"); in init_services_agent()
250 assert(retval->parent.name != NULL); in init_services_agent()
252 retval->parent.type = COMMON_AGENT; in init_services_agent()
253 retval->lookup_func = services_lookup_func; in init_services_agent()
256 return ((struct agent *)retval); in init_services_agent()
262 struct multipart_agent *retval; in init_services_mp_agent() local
265 retval = calloc(1, in init_services_mp_agent()
[all …]
H A Dpasswd.c230 struct common_agent *retval; in init_passwd_agent() local
233 retval = calloc(1, sizeof(*retval)); in init_passwd_agent()
234 assert(retval != NULL); in init_passwd_agent()
236 retval->parent.name = strdup("passwd"); in init_passwd_agent()
237 assert(retval->parent.name != NULL); in init_passwd_agent()
239 retval->parent.type = COMMON_AGENT; in init_passwd_agent()
240 retval->lookup_func = passwd_lookup_func; in init_passwd_agent()
243 return ((struct agent *)retval); in init_passwd_agent()
249 struct multipart_agent *retval; in init_passwd_mp_agent() local
252 retval = calloc(1, in init_passwd_mp_agent()
[all …]
/freebsd/sys/compat/linuxkpi/common/include/linux/
H A Dstring.h62 void *retval; in memdup_user() local
65 retval = malloc(len, M_KMALLOC, M_WAITOK); in memdup_user()
66 error = linux_copyin(ptr, retval, len); in memdup_user()
68 free(retval, M_KMALLOC); in memdup_user()
71 return (retval); in memdup_user()
77 char *retval; in memdup_user_nul() local
80 retval = malloc(len + 1, M_KMALLOC, M_WAITOK); in memdup_user_nul()
81 error = linux_copyin(ptr, retval, len); in memdup_user_nul()
83 free(retval, M_KMALLOC); in memdup_user_nul()
86 retval[len] = '\0'; in memdup_user_nul()
[all …]
/freebsd/sbin/camcontrol/
H A Dfwdownload.c335 int retval = 0; in fw_get_timeout() local
354 retval = scsigetopcodes(/*device*/ cam_dev, in fw_get_timeout()
371 if (retval != 0) { in fw_get_timeout()
372 retval = 0; in fw_get_timeout()
416 return (retval); in fw_get_timeout()
463 int retval = 1; in fw_validate_ibm() local
557 retval = 0; in fw_validate_ibm()
561 return (retval); in fw_validate_ibm()
664 int retval = 0; in fw_check_device_ready() local
670 retval = -1; in fw_check_device_ready()
[all …]
/freebsd/usr.sbin/camdd/
H A Dcamdd.c575 int retval = 0; in camdd_alloc_dev() local
595 retval = pthread_mutex_init(&dev->mutex, NULL); in camdd_alloc_dev()
596 if (retval != 0) { in camdd_alloc_dev()
597 warnc(retval, "%s: failed to initialize mutex", __func__); in camdd_alloc_dev()
601 retval = pthread_cond_init(&dev->cond, NULL); in camdd_alloc_dev()
602 if (retval != 0) { in camdd_alloc_dev()
603 warnc(retval, "%s: failed to initialize condition variable", in camdd_alloc_dev()
630 retval = kevent(dev->kq, ke, num_ke, NULL, 0, NULL); in camdd_alloc_dev()
631 if (retval == -1) { in camdd_alloc_dev()
802 int i, retval = 0; in camdd_buf_sg_create() local
[all …]
/freebsd/contrib/libedit/
H A Dhistory.c837 int i = -1, retval; in history_save_fp() local
853 for (retval = HFIRST(h, &ev); retval != -1 && nelem-- > 0; in history_save_fp()
854 retval = HNEXT(h, &ev)) in history_save_fp()
857 retval = -1; in history_save_fp()
859 if (retval == -1) in history_save_fp()
860 retval = HLAST(h, &ev); in history_save_fp()
862 for (i = 0; retval != -1; retval = HPREV(h, &ev), i++) { in history_save_fp()
910 int retval; in history_prev_event() local
912 for (retval = HCURR(h, ev); retval != -1; retval = HPREV(h, ev)) in history_prev_event()
924 int retval; in history_next_evdata() local
[all …]
/freebsd/tests/sys/cddl/zfs/tests/migration/
H A Dmigration.kshlib46 typeset -i retval=0
87 typeset -i retval=0
102 retval=1
107 retval=1
112 return $retval
121 typeset -i retval=0
136 retval=1
141 retval=1
146 return $retval
/freebsd/sys/x86/isa/
H A Dnmi.c54 int retval = 0; in isa_nmi() local
62 retval = 1; in isa_nmi()
67 retval = 1; in isa_nmi()
76 return(retval); in isa_nmi()
80 retval = 1; in isa_nmi()
85 retval = 1; in isa_nmi()
90 retval = 1; in isa_nmi()
93 return(retval); in isa_nmi()

12345678910>>...31