/illumos-gate/usr/src/uts/sun4u/io/i2c/misc/ |
H A D | i2c_svc.c | 38 int error; local 40 if ((error = mod_install(&i2c_modlinkage)) == 0) { 44 return (error); 50 int error; local 52 if ((error = mod_remove(&i2c_modlinkage)) == 0) { 56 return (error);
|
/illumos-gate/usr/src/uts/intel/io/ |
H A D | pit_beep.c | 113 int error; local 116 if ((error = ddi_soft_state_init(&pit_beep_statep, 119 return (error); 123 if ((error = mod_install(&modlinkage)) != 0) { 127 return (error); 140 int error; local 142 error = mod_remove(&modlinkage); 144 if (error == 0) { 149 return (error); 218 int instance, error; local [all...] |
/illumos-gate/usr/src/uts/intel/os/ |
H A D | ddi_arch.c | 56 int error; local 166 if ((error = i_ddi_apply_range(dip, rdip, mp->map_obj.rp)) != 0) 167 return (error);
|
/illumos-gate/usr/src/uts/sparc/os/ |
H A D | ddi_arch.c | 66 int error; local 131 if ((error = i_ddi_apply_range(dip, rdip, mp->map_obj.rp)) != 0) 132 return (error);
|
/illumos-gate/usr/src/cmd/lvm/metassist/common/ |
H A D | volume_nvpair.c | 77 int error; local 82 error = ENOENT; 84 error = nvpair_value_uint16(match, val); 87 return (error); 117 int error = 0; local 119 if ((error = nvlist_add_uint16(attrs, which, val)) != 0) { 121 gettext("nvlist_add_int16(%s) failed: %d\n"), which, error); 124 return (error); 151 int error; local 156 error 191 int error = 0; local 225 int error; local 265 int error = 0; local 333 int error; local 371 int error; local 411 int error = 0; local 449 int error; local 493 int error = 0; local 533 int error; local 577 int error = 0; local 617 int error; local 661 int error = 0; local [all...] |
H A D | volume_string.c | 159 int error = 0; local 163 error = -1; 175 error = -2; 181 return (error); 210 int error = 0; local 214 error = errno; 220 return (error); 240 * if an error occurred. Use get_error_string() to 241 * retrieve the associated error message. 251 int error local 319 int i, len, error = 0; local [all...] |
/illumos-gate/usr/src/lib/smbsrv/libfksmbsrv/common/ |
H A D | fake_lookup.c | 89 int error; local 128 error = ENOTDIR; 138 if (error = pn_getcomponent(pnp, component)) { 173 * error (EBUSY). 226 error = VOP_LOOKUP(vp, component, &tvp, pnp, lookup_flags, 230 * Retry with kcred - If crossing mount points & error is EACCES. 243 if ((error == EACCES) && retry_with_kcred) 244 error = VOP_LOOKUP(vp, component, &tvp, pnp, lookup_flags, 248 if (error) { 251 * On error, retur 495 int error = 0; local [all...] |
/illumos-gate/usr/src/uts/common/fs/ |
H A D | pathname.c | 107 int error; local 112 error = copyinstr(str, pnp->pn_path, bufsize, &pnp->pn_pathlen); 114 error = copystr(str, pnp->pn_path, bufsize, &pnp->pn_pathlen); 115 if (error) 116 return (error); 127 int error; local 131 if ((error = pn_get_buf(str, seg, pnp, buf, MAXPATHLEN)) != 0) 133 return (error); 140 * On error, all fields except pn_buf will be undefined. 145 int error; local 205 int error; local [all...] |
/illumos-gate/usr/src/uts/common/fs/smbsrv/ |
H A D | smb_sd.c | 133 int error; local 139 error = smb_fsop_sdread(sr, sr->user_cr, node, &fs_sd); 140 if (error) 141 return (smb_errno2status(error)); 163 int error; local 175 error = smb_fsop_sdwrite(sr, sr->user_cr, node, &fs_sd, 0); 178 if (error) { 179 if (error == EBADE) 181 return (smb_errno2status(error));
|
/illumos-gate/usr/src/uts/common/os/ |
H A D | urw.c | 187 int error = 0; local 265 * protect against memory error correction faults. 275 error = ENXIO; 278 error = ENXIO; 287 error = EIO; 310 return (error);
|
/illumos-gate/usr/src/uts/common/syscall/ |
H A D | rlimit.c | 90 int error = 0; local 102 if (error = rctl_rlimit_set(rctlproc_legacy[RLIMIT_FSIZE], p, 107 return (set_errno(error)); 277 * Most apps don't check error returns from getrlimit or setrlimit 371 int error; local 427 if (error = rctl_rlimit_set(rctlproc_legacy[resource], p, &rlim64, gp, 431 return (set_errno(error)); 464 int error; local 475 if (error = rctl_rlimit_set(rctlproc_legacy[resource], p, &rlim64, gp, 479 return (set_errno(error)); [all...] |
H A D | fcntl.c | 68 int error = 0; local 104 if ((error = f_getfd_error(fdes, &flag)) == 0) 109 error = f_setfd_error(fdes, (int)arg); 114 if ((error = f_getfl(fdes, &flag)) == 0) { 124 if ((error = f_getfl(fdes, &flag)) == 0) { 132 if ((error = f_badfd(fdes, &fdres, (int)arg)) == 0) 142 error = EBADF; 154 error = EINVAL; 176 error = EMFILE; 186 error 835 int error; local 905 int error; local [all...] |
/illumos-gate/usr/src/cmd/prtconf/ |
H A D | prtconf.c | 266 int error; local 281 if (error = stat(path, &sinfo)) { 292 error = 0; 304 error = 1; 309 error = 0; 312 error = 1; 316 error = 0; 321 error = 1; 324 if (error) {
|
/illumos-gate/usr/src/uts/common/exec/intp/ |
H A D | intp.c | 105 int error; local 112 if (error = vn_rdwr(UIO_READ, vp, linep, INTPSZ, (offset_t)0, 114 return (error); 175 * and we can return an error. If an intermediate nested interpreter is setid 195 int error = 0; 204 error = ELOOP; 217 if (error = getintphead(vp, &idata)) 223 if (error = pn_get(idata.intp_name[0], UIO_SYSSPACE, &intppn)) 226 if (error = lookuppn(&intppn, &resolvepn, FOLLOW, NULLVPP, &nvp)) { 263 error [all...] |
/illumos-gate/usr/src/uts/common/exec/shbin/ |
H A D | shbin.c | 88 #error "Unrecognized platform/CPU (use /usr/bin/ksh93 when in doubt)." 136 int error; local 144 if (error = vn_rdwr(UIO_READ, vp, linep, sizeof (linep), (offset_t)0, 146 return (error); 169 int error = 0; 179 error = ENOEXEC; 188 if (error = checkshbinmagic(vp)) 197 error = pn_get(shell_list[i], UIO_SYSSPACE, &intppn); 198 if (error != 0) { 202 error [all...] |
/illumos-gate/usr/src/uts/common/fs/zfs/ |
H A D | dmu_diff.c | 46 int da_err; /* error that stopped diff search */ 166 int error; local 173 error = dsl_pool_hold(tosnap_name, FTAG, &dp); 174 if (error != 0) 175 return (error); 177 error = dsl_dataset_hold(dp, tosnap_name, FTAG, &tosnap); 178 if (error != 0) { 180 return (error); 183 error = dsl_dataset_hold(dp, fromsnap_name, FTAG, &fromsnap); 184 if (error ! [all...] |
H A D | zio_checksum.c | 382 int error; local 389 error = zio_checksum_error_impl(spa, bp, checksum, data, size, 392 if (zio_injection_enabled && error == 0 && zio->io_error == 0) { 393 error = zio_handle_fault_injection(zio, ECKSUM); 394 if (error != 0) 398 return (error);
|
/illumos-gate/usr/src/lib/libc/port/threads/ |
H A D | pthr_mutex.c | 245 int error; local 250 error = mutex_lock_internal(mp, NULL, MUTEX_LOCK | MUTEX_NOCEIL); 251 if (error == 0 || error == EOWNERDEAD || error == ELOCKUNMAPPED) { 255 error = mutex_unlock_internal(mp, 1); 257 return (error);
|
/illumos-gate/usr/src/uts/common/fs/nfs/ |
H A D | nfs4_dispatch.c | 290 * should error out this request and force the client to 384 int error = 0; local 450 if (rv) /* short ckt sendreply on error */ 483 if (rv) /* short ckt sendreply on error */ 500 error++; 527 return (error);
|
/illumos-gate/usr/src/boot/sys/boot/common/ |
H A D | boot.c | 299 int fd, error; local 304 error = 1; 366 error = 0; 372 if (error) { 380 error = 0; 384 return(error);
|
H A D | dev_net.c | 117 int error = 0; local 150 error = net_getparams(netdev_sock); 151 if (error) { 156 return (error); 175 return (error);
|
H A D | install.c | 77 int count, error, idx; local 95 error = setpath(*what + idx, val); 96 if (error) 97 return (error); 110 int error; local 121 * Return an error if this is not possible. 127 error = 0; 129 while (!error && *tag != '\0') { 132 error = EINVAL; 138 error 191 int error, fd, i, local; local [all...] |
/illumos-gate/usr/src/lib/lvm/libsvm/common/ |
H A D | metainterfaces.c | 237 md_error_t error = mdnullerror; local 246 if ((max_sets = get_max_sets(&error)) == 0) { 248 mdclrerror(&error); 257 if ((sr = metad_getsetbynum(i, &error)) == NULL) { 258 mdclrerror(&error); 456 md_error_t error = mdnullerror; local 469 if ((sp = metasetnosetname(setnum, &error)) == NULL || 470 !mdisok(&error))
|
/illumos-gate/usr/src/lib/nsswitch/dns/common/ |
H A D | gethostent6.c | 97 int error, *errp; local 102 errp = &error; 137 int error, *errp; local 142 errp = &error; 216 int error, *errp; local 221 errp = &error;
|
/illumos-gate/usr/src/lib/pam_modules/unix_account/ |
H A D | unix_acct.c | 278 * Returns: module error or specific error on failure 291 int error = PAM_ACCT_EXPIRED; local 318 if ((error = pam_get_item(pamh, PAM_USER, (void **)&user)) 323 error = PAM_USER_UNKNOWN; 328 if ((error = pam_get_item(pamh, PAM_REPOSITORY, (void **)&auth_rep)) 336 error = PAM_BUF_ERR; 353 error = PAM_USER_UNKNOWN; 356 error = PAM_PERM_DENIED; 359 error [all...] |