Home
last modified time | relevance | path

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

12345678910>>...38

/freebsd-11-stable/lib/libpam/modules/pam_krb5/
HDpam_krb5.c117 int retval; in pam_sm_authenticate() local
123 retval = pam_get_user(pamh, &user, USER_PROMPT); in pam_sm_authenticate()
124 if (retval != PAM_SUCCESS) in pam_sm_authenticate()
125 return (retval); in pam_sm_authenticate()
129 retval = pam_get_item(pamh, PAM_RUSER, &sourceuser); in pam_sm_authenticate()
130 if (retval != PAM_SUCCESS) in pam_sm_authenticate()
131 return (retval); in pam_sm_authenticate()
153 retval = PAM_SERVICE_ERR; in pam_sm_authenticate()
172 retval = PAM_SERVICE_ERR; in pam_sm_authenticate()
185 retval = PAM_SERVICE_ERR; in pam_sm_authenticate()
[all …]
/freebsd-11-stable/sys/compat/linuxkpi/common/src/
HDlinux_xarray.c49 void *retval; in xa_erase() local
52 retval = __xa_erase(xa, index); in xa_erase()
55 return (retval); in xa_erase()
65 void *retval; in xa_load() local
68 retval = radix_tree_lookup(&xa->root, index); in xa_load()
71 return (retval); in xa_load()
101 int retval; in __xa_alloc() local
113 retval = radix_tree_insert(&xa->root, *pindex, ptr); in __xa_alloc()
115 switch (retval) { in __xa_alloc()
121 retval = -ENOMEM; in __xa_alloc()
[all …]
/freebsd-11-stable/contrib/ntp/libparse/
HDbinio.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-11-stable/lib/libpam/modules/pam_unix/
HDpam_unix.c93 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()
124 retval = pam_get_authtok(pamh, PAM_AUTHTOK, &pass, prompt); in pam_sm_authenticate()
126 if (retval != PAM_SUCCESS) in pam_sm_authenticate()
127 return (retval); in pam_sm_authenticate()
160 int retval; in pam_sm_acct_mgmt() local
165 retval = pam_get_user(pamh, &user, NULL); in pam_sm_acct_mgmt()
166 if (retval != PAM_SUCCESS) in pam_sm_acct_mgmt()
[all …]
/freebsd-11-stable/sys/compat/linuxkpi/common/include/linux/
HDstring.h61 void *retval; in memdup_user() local
64 retval = malloc(len, M_KMALLOC, M_WAITOK); in memdup_user()
65 error = linux_copyin(ptr, retval, len); in memdup_user()
67 free(retval, M_KMALLOC); in memdup_user()
70 return (retval); in memdup_user()
76 char *retval; in memdup_user_nul() local
79 retval = malloc(len + 1, M_KMALLOC, M_WAITOK); in memdup_user_nul()
80 error = linux_copyin(ptr, retval, len); in memdup_user_nul()
82 free(retval, M_KMALLOC); in memdup_user_nul()
85 retval[len] = '\0'; in memdup_user_nul()
[all …]
/freebsd-11-stable/usr.sbin/nscd/
HDcacheplcs.c86 struct cache_queue_policy_item_ *retval; in cache_queue_policy_create_item() local
89 retval = calloc(1, in cache_queue_policy_create_item()
90 sizeof(*retval)); in cache_queue_policy_create_item()
91 assert(retval != NULL); in cache_queue_policy_create_item()
94 return ((struct cache_policy_item_ *)retval); in cache_queue_policy_create_item()
196 struct cache_queue_policy_ *retval; in init_cache_queue_policy() local
199 retval = calloc(1, in init_cache_queue_policy()
200 sizeof(*retval)); in init_cache_queue_policy()
201 assert(retval != NULL); in init_cache_queue_policy()
203 retval->parent_data.create_item_func = cache_queue_policy_create_item; in init_cache_queue_policy()
[all …]
HDconfig.c118 struct configuration_entry *retval; in create_configuration_entry() local
128 retval = calloc(1, in create_configuration_entry()
129 sizeof(*retval)); in create_configuration_entry()
130 assert(retval != NULL); in create_configuration_entry()
132 res = pthread_mutex_init(&retval->positive_cache_lock, NULL); in create_configuration_entry()
134 free(retval); in create_configuration_entry()
141 res = pthread_mutex_init(&retval->negative_cache_lock, NULL); in create_configuration_entry()
143 pthread_mutex_destroy(&retval->positive_cache_lock); in create_configuration_entry()
144 free(retval); in create_configuration_entry()
151 res = pthread_mutex_init(&retval->mp_cache_lock, NULL); in create_configuration_entry()
[all …]
/freebsd-11-stable/lib/libpam/modules/pam_tacplus/
HDpam_tacplus.c69 int retval; in do_item() local
72 retval = pam_get_item(pamh, item, &value); in do_item()
73 if (retval != PAM_SUCCESS) in do_item()
74 return retval; in do_item()
112 int retval; in pam_sm_authenticate() local
138 retval = do_item(pamh, tach, PAM_USER, tac_set_user, "tac_set_user"); in pam_sm_authenticate()
139 if (retval != PAM_SUCCESS) in pam_sm_authenticate()
140 return (retval); in pam_sm_authenticate()
144 retval = do_item(pamh, tach, PAM_TTY, tac_set_port, "tac_set_port"); in pam_sm_authenticate()
145 if (retval != PAM_SUCCESS) in pam_sm_authenticate()
[all …]
/freebsd-11-stable/tools/tools/usbtest/
HDusbtest.c90 uint8_t retval; in usb_ts_show_menu() local
128 retval = 255; in usb_ts_show_menu()
130 retval = atoi(buf); in usb_ts_show_menu()
132 usb_ts_select[level] = retval; in usb_ts_show_menu()
134 return (retval); in usb_ts_show_menu()
192 int retval; in show_default_audio_select() local
233 retval = usb_ts_show_menu(level, "Default Audio Settings", in show_default_audio_select()
249 switch (retval) { in show_default_audio_select()
279 uint8_t retval; in show_device_audio_select() local
283 retval = usb_ts_show_menu(level, "Select Audio Device Model", in show_device_audio_select()
[all …]
/freebsd-11-stable/usr.sbin/ctladm/
HDctladm.c277 int num_entries, len, lun = -1, retval = 0; in cctl_dump_ooa() local
301 retval = 1; in cctl_dump_ooa()
315 retval = 1; in cctl_dump_ooa()
354 return (retval); in cctl_dump_ooa()
390 int retval = 0; in cctl_port() local
418 retval = 1; in cctl_port()
439 retval = 1; in cctl_port()
444 retval = 1; in cctl_port()
488 retval = 1; in cctl_port()
521 retval = 1; in cctl_port()
[all …]
/freebsd-11-stable/sys/dev/mwl/
HDmwlhal.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-11-stable/tools/regression/geom_gpt/
HDgctl_test_helper.c41 struct retval { struct
42 struct retval *retval; argument
47 static struct retval *retval; variable
112 struct retval *rv; in main()
138 rv = malloc(sizeof(struct retval)); in main()
142 rv->retval = retval; in main()
143 retval = rv; in main()
158 while (retval != NULL) { in main()
159 rv = retval->retval; in main()
160 printf(" %s=%s", retval->param, retval->value); in main()
[all …]
/freebsd-11-stable/contrib/llvm-project/compiler-rt/lib/sanitizer_common/
HDsanitizer_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-11-stable/stand/libsa/
HDprintf.c75 int retval; in printf() local
78 retval = kvprintf(fmt, putchar_wrapper, NULL, 10, ap); in printf()
80 return retval; in printf()
93 int retval; in sprintf() local
97 retval = kvprintf(cfmt, NULL, (void *)buf, 10, ap); in sprintf()
98 buf[retval] = '\0'; in sprintf()
100 return retval; in sprintf()
127 int retval; in asprintf() local
133 retval = kvprintf(cfmt, NULL, NULL, 10, ap); in asprintf()
135 if (retval <= 0) in asprintf()
[all …]
/freebsd-11-stable/lib/libc/net/
HDnss_compat.c82 int __nss_compat_getgrnam_r(void *retval, void *mdata, va_list ap);
83 int __nss_compat_getgrgid_r(void *retval, void *mdata, va_list ap);
84 int __nss_compat_getgrent_r(void *retval, void *mdata, va_list ap);
85 int __nss_compat_setgrent(void *retval, void *mdata, va_list ap);
86 int __nss_compat_endgrent(void *retval, void *mdata, va_list ap);
87 int __nss_compat_getpwnam_r(void *retval, void *mdata, va_list ap);
88 int __nss_compat_getpwuid_r(void *retval, void *mdata, va_list ap);
89 int __nss_compat_getpwent_r(void *retval, void *mdata, va_list ap);
90 int __nss_compat_setpwent(void *retval, void *mdata, va_list ap);
91 int __nss_compat_endpwent(void *retval, void *mdata, va_list ap);
[all …]
/freebsd-11-stable/sys/dev/sound/midi/
HDmidi.c628 int retval; in midi_open() local
638 retval = 0; in midi_open()
642 retval = ENXIO; in midi_open()
644 retval = EBUSY; in midi_open()
645 if (retval) in midi_open()
650 retval = ENXIO; in midi_open()
652 retval = EBUSY; in midi_open()
653 if (retval) in midi_open()
680 return retval; in midi_open()
687 int retval; in midi_close() local
[all …]
/freebsd-11-stable/usr.sbin/rpc.lockd/
HDlockd_lock.c518 enum split_status retval; local
520 retval = SPL_DISJOINT;
539 retval = SPL_CONTAINED;
541 retval = SPL_LOCK1;
570 retval |= SPL_LOCK1;
577 retval |= SPL_LOCK2;
585 retval = SPL_CONTAINED;
586 return retval;
589 retval = SPL_CONTAINED;
590 return retval;
[all …]
/freebsd-11-stable/sys/compat/svr4/
HDsvr4_misc.c439 int ncookies = 0, *retval = td->td_retval; local
544 *retval = uap->nbytes - resid;
561 int *retval; local
563 retval = td->td_retval;
656 svr4_mknod(td, retval, path, mode, dev) in svr4_mknod() argument
658 register_t *retval;
685 int *retval = td->td_retval; local
686 return svr4_mknod(td, retval,
697 int *retval = td->td_retval; local
698 return svr4_mknod(td, retval,
[all …]
/freebsd-11-stable/contrib/gdb/gdb/
HDtarget.c1718 ptid_t retval; in debug_to_wait() local
1720 retval = debug_target.to_wait (ptid, status); in debug_to_wait()
1724 PIDGET (retval)); in debug_to_wait()
1760 return retval; in debug_to_wait()
1829 int retval; in debug_to_xfer_memory() local
1831 retval = debug_target.to_xfer_memory (memaddr, myaddr, len, write, in debug_to_xfer_memory()
1837 len, write ? "write" : "read", retval); in debug_to_xfer_memory()
1841 if (retval > 0) in debug_to_xfer_memory()
1846 for (i = 0; i < retval; i++) in debug_to_xfer_memory()
1856 return retval; in debug_to_xfer_memory()
[all …]
/freebsd-11-stable/sys/dev/drm/
HDsis_mm.c60 int i, retval = 0; in add_alloc_set() local
64 retval = setAdd(global_ppriv[i].sets[type], val); in add_alloc_set()
68 return retval; in add_alloc_set()
73 int i, retval = 0; in del_alloc_set() local
77 retval = setDel(global_ppriv[i].sets[type], val); in del_alloc_set()
81 return retval; in del_alloc_set()
96 int retval = 0; in sis_fb_alloc() local
107 retval = -EINVAL; in sis_fb_alloc()
117 return retval; in sis_fb_alloc()
123 int retval = 0; in sis_fb_free() local
[all …]
/freebsd-11-stable/usr.sbin/nscd/agents/
HDgroup.c225 struct common_agent *retval; in init_group_agent() local
228 retval = calloc(1, sizeof(*retval)); in init_group_agent()
229 assert(retval != NULL); in init_group_agent()
231 retval->parent.name = strdup("group"); in init_group_agent()
232 assert(retval->parent.name != NULL); in init_group_agent()
234 retval->parent.type = COMMON_AGENT; in init_group_agent()
235 retval->lookup_func = group_lookup_func; in init_group_agent()
238 return ((struct agent *)retval); in init_group_agent()
244 struct multipart_agent *retval; in init_group_mp_agent() local
247 retval = calloc(1, in init_group_mp_agent()
[all …]
HDservices.c246 struct common_agent *retval; in init_services_agent() local
249 retval = calloc(1, sizeof(*retval)); in init_services_agent()
250 assert(retval != NULL); in init_services_agent()
252 retval->parent.name = strdup("services"); in init_services_agent()
253 assert(retval->parent.name != NULL); in init_services_agent()
255 retval->parent.type = COMMON_AGENT; in init_services_agent()
256 retval->lookup_func = services_lookup_func; in init_services_agent()
259 return ((struct agent *)retval); in init_services_agent()
265 struct multipart_agent *retval; in init_services_mp_agent() local
268 retval = calloc(1, in init_services_mp_agent()
[all …]
HDpasswd.c233 struct common_agent *retval; in init_passwd_agent() local
236 retval = calloc(1, sizeof(*retval)); in init_passwd_agent()
237 assert(retval != NULL); in init_passwd_agent()
239 retval->parent.name = strdup("passwd"); in init_passwd_agent()
240 assert(retval->parent.name != NULL); in init_passwd_agent()
242 retval->parent.type = COMMON_AGENT; in init_passwd_agent()
243 retval->lookup_func = passwd_lookup_func; in init_passwd_agent()
246 return ((struct agent *)retval); in init_passwd_agent()
252 struct multipart_agent *retval; in init_passwd_mp_agent() local
255 retval = calloc(1, in init_passwd_mp_agent()
[all …]
/freebsd-11-stable/sbin/camcontrol/
HDfwdownload.c332 int retval = 0; in fw_get_timeout() local
351 retval = scsigetopcodes(/*device*/ cam_dev, in fw_get_timeout()
368 if (retval != 0) { in fw_get_timeout()
369 retval = 0; in fw_get_timeout()
413 return (retval); in fw_get_timeout()
460 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-11-stable/usr.sbin/camdd/
HDcamdd.c592 int retval = 0; in camdd_alloc_dev() local
612 retval = pthread_mutex_init(&dev->mutex, NULL); in camdd_alloc_dev()
613 if (retval != 0) { in camdd_alloc_dev()
614 warnc(retval, "%s: failed to initialize mutex", __func__); in camdd_alloc_dev()
618 retval = pthread_cond_init(&dev->cond, NULL); in camdd_alloc_dev()
619 if (retval != 0) { in camdd_alloc_dev()
620 warnc(retval, "%s: failed to initialize condition variable", in camdd_alloc_dev()
647 retval = kevent(dev->kq, ke, num_ke, NULL, 0, NULL); in camdd_alloc_dev()
648 if (retval == -1) { in camdd_alloc_dev()
818 int i, retval = 0; in camdd_buf_sg_create() local
[all …]

12345678910>>...38