/illumos-gate/usr/src/lib/libc/port/gen/ |
H A D | daemon.c | 45 int retv, fd; local 51 retv = fork(); 52 if (retv == -1) 54 if (retv != 0) 63 retv = fork(); 64 if (retv == -1) 66 if (retv != 0)
|
/illumos-gate/usr/src/uts/common/io/ppp/sppptun/ |
H A D | sppptun_mod.c | 128 int retv; local 131 if ((retv = mod_install(&modlinkage)) == 0) 133 return (retv); 139 int retv; local 141 if ((retv = sppptun_tcl_fintest()) != 0) 142 return (retv); 143 retv = mod_remove(&modlinkage); 144 if (retv != 0) 145 return (retv);
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.lib/bridged/ |
H A D | door.c | 62 int retv = EINVAL; local 71 (void) door_return((char *)&retv, sizeof (retv), NULL, 0); 77 if ((retv = STP_IN_stpm_get_cfg(0, &bdcf.bdcf_cfg)) != 0) 85 if ((retv = STP_IN_stpm_get_state(0, &smstate)) != 0) 127 retv = STP_IN_port_get_cfg(0, pdp->port_index, &portcfg); 128 if (retv != 0) 138 if ((retv = STP_IN_port_get_state(0, &portstate)) != 0) 161 (void) door_return((char *)&retv, sizeof (retv), NUL [all...] |
H A D | main.c | 87 int retv; local 94 if ((retv = ioctl(fd, I_STR, &ic)) != 0) 95 return (retv);
|
H A D | events.c | 450 ssize_t retv; local 454 retv = read(control_fd, &bc, sizeof (bc)); 455 if (retv != sizeof (bc))
|
/illumos-gate/usr/src/lib/libdhcpagent/common/ |
H A D | dhcp_stable.c | 66 ssize_t retv; local 74 retv = read(fd, duid, sb.st_size); 75 if (retv == sb.st_size) { 83 if (retv >= 0) 104 ssize_t retv; local 109 retv = write(fd, duid, duidlen); 110 if (retv == duidlen) { 114 if (retv >= 0) 222 ssize_t retv; local 240 retv [all...] |
H A D | dhcpagent_ipc.c | 979 int retv; local 988 retv = poll(&pollfd, 1, *msec); 989 if (retv == 0) { 1002 if (retv == -1) {
|
/illumos-gate/usr/src/lib/libzonecfg/common/ |
H A D | getzoneent.c | 63 char *cp = *cpp, *retv; local 72 retv = cp; 87 return (retv);
|
/illumos-gate/usr/src/lib/libm/common/C/ |
H A D | _SVID_error.c | 959 volatile double one = 1.0, zero = 0.0, retv; local 963 retv = copysign(one / zero, x); 966 retv = DBL_MIN * copysign(DBL_MIN, x); 969 retv = DBL_MAX * copysign(DBL_MAX, x); 972 retv = zero * Inf; /* for Cheetah */ 975 return (retv);
|
/illumos-gate/usr/src/cmd/mdb/common/modules/genunix/ |
H A D | tsol.c | 212 int retv; local 219 retv = modent_walk_step(wsp); 224 return (retv);
|
H A D | modhash.c | 144 int retv; local 176 retv = mdb_vread(hwp->hwalk_hash.mh_entries + 1, 180 if (retv == -1) { 280 int retv = DCMD_OK; local 295 return (retv); 301 return (retv); 306 return (retv); 310 return (retv); 318 retv = modent_print(addr, msd->msd_hash_index, 322 return (retv); [all...] |
/illumos-gate/usr/src/uts/common/io/drm/ |
H A D | drm_ioctl.c | 317 drm_set_version_t retv; local 322 retv.drm_di_major = DRM_IF_MAJOR; 323 retv.drm_di_minor = DRM_IF_MINOR; 324 retv.drm_dd_major = dev->driver->driver_major; 325 retv.drm_dd_minor = dev->driver->driver_minor; 327 DRM_COPYTO_WITH_RETURN((void *)data, &retv, sizeof (sv));
|
/illumos-gate/usr/src/uts/common/syscall/ |
H A D | ppriv.c | 376 int retv; local 391 retv = setpflags((uint_t)op, (uint_t)type, NULL); 392 return (retv != 0 ? set_errno(retv) : 0); 394 retv = (int)getpflags((uint_t)op, CRED()); 395 return (retv == -1 ? set_errno(EINVAL) : retv);
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/pppd/plugins/ |
H A D | pppoe.c | 50 static int (*old_sys_read_packet)(int retv, struct strbuf *ctrl, 92 int retv; /* return value */ local 112 retv = strioctl(tstfd, PPPTUN_GDATA, &ptn, 0, sizeof (ptn)); 114 if (retv == -1) { 120 retv = strioctl(0, PPPIO_GTYPE, &intv, 0, sizeof (intv)); 121 if (retv == -1) { 125 retv = strioctl(0, PPPTUN_GDATA, &ptn, 0, sizeof (ptn)); 126 if (retv == -1) { 430 pppoe_sys_read_packet(int retv, struct strbuf *ctrl, struct strbuf *data, argument 435 if (retv > [all...] |
/illumos-gate/usr/src/cmd/cmd-inet/usr.lib/pppoe/ |
H A D | logging.c | 64 int retv; local 68 retv = write(fd, bp, len); 69 if (retv == 0) { 72 if (retv == -1) { 76 bp += retv; 77 len -= retv; 82 return (retv); 114 int retv; local 181 if ((retv = dowrite(curlogfd, timbuf, timlen)) > 0) 182 retv [all...] |
H A D | pppoed.c | 261 int retv; local 338 retv = locate_service(poep, datalen, ptc->ptc_name, &ptc->ptc_address, 343 if (retv != 1) { 345 if (retv <= 0 && poep->poep_code == POECODE_PADI) { 349 if (retv == 0)
|
H A D | common.c | 97 int retv; local 107 retv = getmsg(fd, ctrl, data, flags); 108 } while (retv > 0 || (retv < 0 && errno == EINTR)); 115 return (retv < 0 ? retv : hadflags);
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/ifconfig/ |
H A D | revarp.c | 332 int retv; local 341 retv = dlpi_get_physaddr(dh, DL_CURR_PHYS_ADDR, physaddr, &physaddrlen); 342 if (retv != DLPI_SUCCESS) { 343 Perrdlpi("dlpi_get_physaddr failed", linkname, retv); 348 retv = dlpi_info(dh, &dlinfo, 0); 349 if (retv != DLPI_SUCCESS) { 350 Perrdlpi("dlpi_info failed", linkname, retv);
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/ |
H A D | ipaddrsel.c | 490 int retv; local 497 while ((retv = ioctl(fd, I_STR, &str)) == -1) { 501 return (retv);
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/sppptun/ |
H A D | sppptun.c | 91 int retv; local 96 if ((retv = dlpi_open(linkname, &dh, 0)) != DLPI_SUCCESS) { 98 myname, linkname, dlpi_strerror(retv)); 106 if ((retv = dlpi_bind(dh, adata->sap, NULL)) != DLPI_SUCCESS) { 109 myname, linkname, dlpi_strerror(retv)); 115 if ((retv = dlpi_get_physaddr(dh, DL_CURR_PHYS_ADDR, &adata->localaddr, 119 dlpi_strerror(retv));
|
/illumos-gate/usr/src/cmd/mandoc/ |
H A D | mdoc_argv.c | 283 struct mdoc_argv **retv; local 364 retv = &(*reta)->argv; 365 *retv = mandoc_reallocarray(*retv, retc, sizeof(**retv)); 366 memcpy(*retv + retc - 1, &tmpv, sizeof(**retv));
|
/illumos-gate/usr/src/cmd/rcm_daemon/common/ |
H A D | bridge_rcm.c | 203 int retv; local 207 if ((retv = cache_update(hd)) != RCM_SUCCESS) 208 return (retv); 215 retv = rcm_register_event(hd, RCM_RESOURCE_LINK_NEW, 0, NULL); 216 if (retv != RCM_SUCCESS) { 227 return (retv); 237 int retv = RCM_SUCCESS; local 245 retv = rcm_unregister_interest(hd, node->vc_resource, 0); 246 if (retv != RCM_SUCCESS) 253 if (retv ! [all...] |
/illumos-gate/usr/src/uts/common/io/ppp/spppcomp/ |
H A D | deflate.c | 1005 int retv; local 1030 retv = deflateParams(&xstate->strm, effortlevel, Z_DEFAULT_STRATEGY); 1031 return (retv == Z_OK ? 0 : EINVAL);
|
/illumos-gate/usr/src/uts/common/fs/smbclnt/smbfs/ |
H A D | smbfs_vfsops.c | 958 int retv; local 968 retv = EACCES; /* assume the worst */ 1002 retv = -1; /* read-only */ 1004 retv = 0; /* access OK */ 1006 retv = -1; /* read-only */ 1008 retv = EACCES; 1021 return (retv);
|
/illumos-gate/usr/src/lib/libipadm/common/ |
H A D | libipadm.c | 349 ipadm_status_t retv; local 357 retv = i_ipadm_get_index(handle, lifname, af, &index); 358 if (retv != IPADM_SUCCESS) 359 return (retv); 378 retv = i_ipadm_get_flags(handle, lifname, af, &flags); 379 if (retv != IPADM_SUCCESS) 380 return (retv);
|