Searched refs:ret (Results 201 - 225 of 3155) sorted by relevance

1234567891011>>

/illumos-gate/usr/src/cmd/bnu/
H A Dgio.c144 int ret; local
154 ret = gwrblk(bufr, len);
155 if (ret != len) {
161 ret = gwrblk(bufr, 0);
170 int ret = SUCCESS; local
187 if ( ret == SUCCESS && write( fd2, bufr, len ) != len) {
188 ret = errno;
194 return(ret);
203 int i, ret; local
205 for (i = 0; i < len; i += ret) {
[all...]
H A Dxio.c147 int len, ret; local
156 ret = (*Write)(fn, bufr, len);
157 if (ret != len) {
163 ret = (*Write)(fn, bufr, 0);
182 int ret = SUCCESS; local
195 if( ret == SUCCESS && write( fd2, bufr, len ) != len )
196 ret = errno;
200 return(ret);
217 int i, ret; local
223 for (i = 0; i < len; i += ret) {
[all...]
/illumos-gate/usr/src/lib/libnisdb/
H A Dldap_cto.c48 int ret; local
63 ret = (*fptr) (domain, type, protocol);
65 if (ret >= 0 && timeout > 0) {
66 if (setsockopt(ret, IPPROTO_TCP, TCP_CONN_ABORT_THRESHOLD,
73 return (ret);
H A Ddb_log.cc119 int l, ret = 0; local
133 ret = -1;
139 ret = l;
141 WRITEUNLOCK(f, ret, "wu f db_log::copy");
142 return (ret);
214 int from, to, ret = 0; local
226 ret = errno;
228 return (ret);
243 ret = errno;
250 if (ret !
317 int ret; local
346 bool_t ret; local
[all...]
H A Dnisdb_rw.c43 int ret; local
52 if ((ret = mutex_init(&rw->mutex, USYNC_THREAD, 0)) != 0)
53 return (ret);
54 if ((ret = cond_init(&rw->cv, USYNC_THREAD, 0)) != 0)
55 return (ret);
108 int ret; local
116 if ((ret = mutex_lock(&rw->mutex)) != 0)
117 return (ret);
125 ret = 0;
127 ret
138 int ret; local
166 int ret; local
346 int ret; local
413 int ret; local
462 int ret; local
552 int ret; local
591 int ret; local
645 int ret; local
[all...]
/illumos-gate/usr/src/uts/common/io/ib/clients/rdsv3/
H A Drdsv3_ddi.c103 int ret; local
122 ret = rdsv3_init();
123 if (ret) {
124 RDSV3_DPRINTF2("rdsv3_attach", "rdsv3_init failed: %d", ret);
131 ret = rdsv3_sock_init();
132 if (ret) {
140 ret = ddi_create_minor_node(dip, "rdsv3", S_IFCHR, 0, DDI_PSEUDO, 0);
141 if (ret != DDI_SUCCESS) {
142 cmn_err(CE_CONT, "ddi_create_minor_node failed: %d", ret);
179 int ret local
262 int ret; local
286 int ret; local
[all...]
/illumos-gate/usr/src/test/os-tests/tests/sdevfs/
H A Dsdevfs_eisdir.c36 int ret; local
60 ret = open(SD_TEST_DIR, O_RDWR, 0);
61 VERIFY3S(ret, ==, -1);
68 ret = open(SD_TEST_DIR, O_RDWR | O_CREAT, 0);
69 VERIFY3S(ret, ==, -1);
/illumos-gate/usr/src/test/zfs-tests/tests/functional/alloc_class/
H A Dalloc_class.kshlib50 typeset -i ret=0
52 ret=$?
55 ((ret |= $?))
62 ((ret |= $?))
66 return $ret
/illumos-gate/usr/src/test/libc-tests/tests/stdio/
H A Dftello_12768.c32 int ret = EXIT_SUCCESS; local
54 ret = EXIT_FAILURE;
61 ret = EXIT_FAILURE;
68 ret = EXIT_FAILURE;
72 return (ret);
/illumos-gate/usr/src/tools/smatch/src/
H A Dsmatch_sval.c37 sval_t *ret; local
39 ret = __alloc_sval(0);
40 *ret = sval;
41 return ret;
46 sval_t *ret; local
48 ret = malloc(sizeof(*ret));
49 *ret = sval;
50 return ret;
55 sval_t ret; local
67 sval_t ret; local
79 sval_t ret; local
88 sval_t ret; local
99 sval_t ret; local
339 sval_t ret = {}; local
387 sval_t ret = {}; local
404 sval_t ret; local
464 sval_t ret; local
519 sval_t ret; local
576 sval_t ret; local
614 sval_t ret; local
863 sval_t ret; local
[all...]
/illumos-gate/usr/src/cmd/sendmail/db/txn/
H A Dtxn_rec.c79 int ret; local
87 if ((ret = __txn_regop_read(dbtp->data, &argp)) != 0)
88 return (ret);
91 ret = EINVAL;
94 ret = __db_txnlist_add(info, argp->txnid->txnid);
96 if (ret == 0)
100 return (ret);
118 int ret; local
126 if ((ret = __txn_xa_regop_read(dbtp->data, &argp)) != 0)
127 return (ret);
178 int ret; local
219 int ret; local
267 int ret; local
[all...]
/illumos-gate/usr/src/lib/libcryptoutil/common/
H A Dkeyfile.c54 int ret = 0; local
60 ret = errno;
66 ret = errno;
95 ret = errno;
96 cryptoerror(LOG_STDERR, gettext("malloc: %s"), strerror(ret));
103 ret = errno;
106 strerror(ret));
129 ret = errno;
132 filename, strerror(ret));
149 return (ret);
[all...]
/illumos-gate/usr/src/cmd/fm/modules/common/eversholt/
H A Dipath.c170 struct ipath *ret; local
172 ret = ipp;
176 return (ret);
178 ret = MALLOC(sizeof (*ret) * 2);
179 ret[0].s = np->u.name.last->u.name.s;
180 ret[0].i = 0;
181 ret[1].s = NULL;
182 if ((ipp = lut_lookup(Ipaths, (void *)ret,
184 FREE(ret);
196 struct ipath *ret, *ipp; local
225 struct ipath *ret; local
291 char *ret; local
[all...]
/illumos-gate/usr/src/ucblib/librpcsoc/
H A Dget_myaddress.c57 int ret; local
65 ret = ioctl(s, SIOCGIFNUM, (char *)&numifs);
66 } while (ret < 0 && (errno == EINTR || errno == EAGAIN));
67 if (ret < 0) {
79 ret = ioctl(s, SIOCGIFCONF, (char *)&ifc);
80 } while (ret < 0 && (errno == EINTR || errno == EAGAIN));
81 if (ret < 0) {
98 ret = ioctl(s, SIOCGIFFLAGS, (char *)&ifreq);
99 } while (ret < 0 && (errno == EINTR || errno == EAGAIN));
100 if (ret <
[all...]
/illumos-gate/usr/src/lib/krb5/kadm5/clnt/
H A Dchpw.c24 krb5_error_code ret = 0; local
32 if ((ret = krb5_auth_con_setflags(context, auth_context,
39 if ((ret = krb5_mk_priv(context, auth_context,
47 ret = ENOMEM;
83 return(ret);
93 krb5_error_code ret; local
122 if ((ret = krb5_rd_error(context, packet, &krberror)))
123 return(ret);
126 ret = ERROR_TABLE_BASE_krb5 + (krb5_error_code) krberror->error;
128 return (ret);
[all...]
/illumos-gate/usr/src/lib/cfgadm_plugins/scsi/common/
H A Dcfga_rcm.c44 scfga_ret_t ret = SCFGA_OK; local
48 return (ret);
50 if ((ret = scsi_rcm_init(0, errstring, &rcm_handle))
52 return (ret);
71 ret = SCFGA_BUSY;
74 return (ret);
87 scfga_ret_t ret = SCFGA_OK; local
91 return (ret);
93 if ((ret = scsi_rcm_init(0, errstring, &rcm_handle))
95 return (ret);
120 scfga_ret_t ret = SCFGA_OK; local
156 scfga_ret_t ret = SCFGA_OK; local
201 scfga_ret_t ret = SCFGA_OK; local
[all...]
H A Dcfga_scsi.c67 scfga_ret_t ret; local
86 if ((ret = apidt_create(ap_id, &apidt, errstring)) != SCFGA_OK) {
87 return (err_cvt(ret));
95 ret = dev_change_state(state_change_cmd, &apidt, flags,
98 ret = bus_change_state(state_change_cmd, &apidt, confp, flags,
103 return (err_cvt(ret));
119 scfga_ret_t ret; local
137 if ((ret = apidt_create(ap_id, &apidt, errstring)) != SCFGA_OK) {
138 return (err_cvt(ret));
154 ret
195 scfga_ret_t ret; local
[all...]
/illumos-gate/usr/src/lib/krb5/plugins/kdb/ldap/libkdb_ldap/
H A Dldap_service_stash.c196 tohex(in, ret)
198 krb5_data *ret;
202 ret->length = 0;
203 ret->data = NULL;
205 ret->data = malloc((unsigned int)in.length * 2 + 1 /*Null termination */);
206 if (ret->data == NULL) {
210 ret->length = in.length * 2;
211 ret->data[ret->length] = 0;
214 sprintf(ret
238 dec_password(struct data pwd, struct data *ret) argument
[all...]
/illumos-gate/usr/src/cmd/krb5/kadmin/dbutil/
H A Dkadm5_create.c190 krb5_error_code ret = 0; local
201 if ((ret = add_admin_old_princ(handle, context,
208 if ((ret = add_admin_old_princ(handle, context,
215 if ((ret = add_admin_sname_princ(handle, context,
221 if ((ret = add_admin_sname_princ(handle, context,
228 if ((ret = add_admin_sname_princ(handle, context,
236 return ret;
271 krb5_error_code ret; local
283 ret = kadm5_create_principal(handle, &ent,
287 if (ret) {
384 krb5_error_code ret; local
400 krb5_error_code ret; local
[all...]
/illumos-gate/usr/src/test/crypto-tests/tests/common/
H A Dtestfuncs.c125 int ret; local
152 if ((ret = get_mech_info(crypto_op)) != CRYPTO_SUCCESS) {
154 return (ret);
157 if ((ret = get_hsession_by_mech(crypto_op)) != CRYPTO_SUCCESS) {
159 return (ret);
172 int ret; local
176 if ((ret = test_setup(args, funcs, &crypto_op)) != CRYPTO_SUCCESS) {
177 (void) fprintf(stderr, " fatal error %d\n", ret);
214 if ((ret = funcs->tf_init(crypto_op)) != CRYPTO_SUCCESS) {
215 (void) fprintf(stderr, " fatal error %d\n", ret);
272 int ret; local
[all...]
/illumos-gate/usr/src/cmd/print/printmgr/com/sun/admin/pm/server/
H A DPrinterUtil.java80 String ret = DoPrinterUtil.getDefault(nsarg);
81 if (ret == null) {
84 return (new String(ret));
97 String ret[] = DoPrinterUtil.getDevices();
98 if (ret == null) {
101 return (ret);
115 String ret[] = DoPrinterUtil.getMakes();
116 if (ret == null) {
119 return (ret);
131 String ret[]
[all...]
/illumos-gate/usr/src/uts/common/io/usb/hcd/xhci/
H A Dxhci_command.c162 int ret; local
167 if ((ret = xhci_ring_alloc(xhcip, &xcr->xcr_ring)) != 0)
168 return (ret);
171 if ((ret = xhci_ring_reset(xhcip, &xcr->xcr_ring)) != 0)
172 return (ret);
238 int ret; local
240 ret = cv_reltimedwait(&xcr->xcr_cv, &xcr->xcr_lock, delay,
242 if (ret == -1) {
400 int ret; local
461 ret
472 int ret; local
518 int ret, code; local
549 int ret, code; local
585 int ret, code; local
633 int ret, code; local
677 int ret, code; local
735 int ret, code; local
797 int ret, code; local
[all...]
/illumos-gate/usr/src/test/os-tests/tests/sockfs/
H A Dconn.c45 int ret; local
64 ret = recvmsg(sock, &msg, 0);
65 if (ret == -1) {
82 int ret; local
93 ret = bind(lsock, (struct sockaddr *)addr, sizeof (*addr));
94 if (ret == -1) {
99 ret = listen(lsock, 5);
100 if (ret == -1) {
114 ret = pthread_create(NULL, NULL, server, (void *)asock);
115 if (ret
134 int ret; local
[all...]
/illumos-gate/usr/src/lib/cfgadm_plugins/fp/common/
H A Dcfga_rcm.c42 fpcfga_ret_t ret; member in struct:__anon2510
68 fpcfga_ret_t ret = FPCFGA_OK; local
70 if ((ret = fp_rcm_init(rsrc, flags, errstring, &rflags, &rsrc_fixed))
72 return (ret);
83 ret = FPCFGA_BUSY;
88 return (ret);
101 fpcfga_ret_t ret = FPCFGA_OK; local
103 if ((ret = fp_rcm_init(rsrc, flags, errstring, NULL, &rsrc_fixed))
105 return (ret);
112 ret
130 fpcfga_ret_t ret = FPCFGA_OK; local
166 fpcfga_ret_t ret = FPCFGA_OK; local
266 fpcfga_ret_t ret = FPCFGA_OK; local
354 fpcfga_ret_t ret = FPCFGA_OK; local
434 fpcfga_ret_t ret = FPCFGA_OK; local
[all...]
/illumos-gate/usr/src/cmd/sendmail/db/log/
H A Dlog.c47 int ret; local
55 if ((ret = __db_fchk(dbenv, "log_open", flags, OKFLAGS)) != 0)
56 return (ret);
59 if ((ret = __os_calloc(1, sizeof(DB_LOG), &dblp)) != 0)
60 return (ret);
62 if (path != NULL && (ret = __os_strdup(path, &dblp->dir)) != 0)
83 if ((ret = __os_strdup(path, &dblp->reginfo.path)) != 0)
90 if ((ret = __db_rattach(&dblp->reginfo)) != 0)
122 if ((ret = __db_shalloc(dblp->addr,
133 (ret
184 int cnt, found_checkpoint, ret; local
303 int cnt, fcnt, ret; local
373 int fd, ret; local
436 int ret, t_ret; local
490 int ret; local
515 int ret; local
[all...]

Completed in 86 milliseconds

1234567891011>>