/osnet-11/usr/src/lib/libc/port/gen/ |
H A D | _xftw.c | 283 int fd, cfd; local 290 * Traverse the path using openat() to get the fd for 298 if ((fd = openat(AT_FDCWD, dirp, 305 if ((cfd = openat(fd, token, 307 (void) close(fd); 312 (void) close(fd); 313 fd = cfd; 316 return (fdopendir(fd)); 332 int fd, cfd; local 341 /* Traverse path using openat() to get fd fo [all...] |
H A D | getvfsent.c | 69 getvfsspec(FILE *fd, struct vfstab *vgetp, char *special) argument 85 while ((ret = getvfsent(fd, vgetp)) == 0 && 99 getvfsfile(FILE *fd, struct vfstab *vp, char *mountp) argument 105 return (getvfsany(fd, vp, &vv)); 109 getvfsany(FILE *fd, struct vfstab *vgetp, struct vfstab *vrefp) argument 115 off64_t start = ftello64(fd); 118 while ((ret = getvfsent(fd, vgetp)) == 0 && 136 (void) fseeko64(fd, start, SEEK_SET); 154 while ((ret = getvfsent(fd, vgetp)) == 0 && 169 getvfsent(FILE *fd, struc argument 199 getaline(char *lp, FILE *fd) argument [all...] |
H A D | gtxt.c | 110 int fd; local 160 if ((fd = open(pathname, O_RDONLY)) != -1 && 161 fstat64(fd, &sb) != -1 && 162 (addr = mmap(NULL, sb.st_size, PROT_READ, MAP_SHARED, fd, 0L)) != 168 if (fd != -1) 169 (void) close(fd);
|
/osnet-11/usr/src/lib/libc/port/rt/ |
H A D | sem.c | 61 int fd = 0; local 93 if ((fd = __pos4obj_open(path, SEM_DATA_TYPE, 103 if (fstat64(fd, &statbuf) < 0) 108 if (ftruncate64(fd, (off64_t)sizeof (sem_t)) < 0) 119 (void) __close_nc(fd); 137 MAP_SHARED, fd, (off64_t)0); 138 (void) __close_nc(fd); 168 (void) __close_nc(fd);
|
/osnet-11/usr/src/lib/libc/port/stdio/ |
H A D | popen.c | 62 int fd; member in struct:node 98 int fd; local 168 if ((fd = curr->fd) != myside && fd != yourside && 169 fcntl(fd, F_GETFD) >= 0) 170 error = posix_spawn_file_actions_addclose(&fact, fd); 292 _insert_nolock(pid_t pid, int fd, node_t *new) argument 299 * curr->fd can equal fd i 328 _insert(pid_t pid, int fd) argument 344 _delete(int fd) argument [all...] |
/osnet-11/usr/src/lib/libsqlite/src/ |
H A D | test2.c | 497 OsFile fd; local 505 rc = sqliteOsOpenReadWrite(argv[2], &fd, &readOnly); 512 rc = sqliteOsSeek(&fd, offset); 517 rc = sqliteOsWrite(&fd, "Hello, World!", 14); 518 sqliteOsClose(&fd);
|
/osnet-11/usr/src/lib/libxcurses2/src/libc/xcurses/ |
H A D | newterm.c | 456 typeahead(int fd) argument 459 if (fd != -1) { 460 if (isatty(fd)) { 461 __m_screen->_kfd = fd;
|
/osnet-11/usr/src/lib/libzonecfg/common/ |
H A D | scratchops.c | 70 lock_op(int fd, int type) argument 79 return (fcntl(fd, F_SETLKW, &lock)); 87 int fd, flags; local 97 if ((fd = open(mapfile, flags, 0644)) == -1) { 109 fd = open(mapfile, O_RDWR); 110 if (fd == -1) 112 if (fstat(fd, &fbuf) == -1) 119 if (lock_op(fd, F_RDLCK) == -1) 122 if ((fp = fdopen(fd, "r+")) == NULL) 123 (void) close(fd); [all...] |
/osnet-11/usr/src/lib/lvm/libmeta/common/ |
H A D | meta_repartition.c | 59 int fd; local 64 if ((fd = open(rname, (O_RDONLY|O_NDELAY), 0)) < 0) { 75 fd = open(n, (O_RDONLY|O_NDELAY), 0); 78 if (fd < 0) { 88 ioctl_return = ioctl(fd, DKIOCGGEOM, &geom); 91 (void) close(fd);
|
/osnet-11/usr/src/lib/lvm/libpreen/common/ |
H A D | mdpreen.c | 240 int fd; local 302 if ((fd = open(devname, O_RDONLY, 0)) < 0) { 314 if (ioctl(fd, DKIOCINFO, &cinfo) != 0) { 316 (void) close(fd); 321 (void) close(fd); /* sd/ssd bug */
|
/osnet-11/usr/src/lib/pam_modules/list/ |
H A D | list.c | 86 FILE *fd; local 238 if ((fd = fopen(allowdeny_filename, "rF")) == NULL) { 244 while (fgets(buf, BUFSIZ, fd) != NULL) { 248 while ((fgetc(fd) != '\n') && (!feof(fd))) { 282 (void) fclose(fd); 291 (void) fclose(fd); 371 (void) fclose(fd);
|
/osnet-11/usr/src/lib/sun_fc/common/ |
H A D | HBA.cc | 334 int fd; local 336 if ((fd = open(path.c_str(), flag)) < 0) { 353 return (fd); 362 void HBA::_ioctl(int fd, int type, uchar_t *arg) { argument 374 if (ioctl(fd, type, arg) != 0) {
|
H A D | TgtFCHBA.cc | 84 int fd; local 97 if ((fd = open(FCT_DRIVER_PATH.c_str(), O_NDELAY | O_RDONLY)) == -1) { 132 if (ioctl(fd, FCTIO_CMD, &fctio) != 0) { 133 close(fd); 144 close(fd); 167 int fd; local 173 if ((fd = open(FCT_DRIVER_PATH.c_str(), O_NDELAY | O_RDONLY)) == -1) { 204 if (ioctl(fd, FCTIO_CMD, &fctio) != 0) { 205 close(fd); 216 close(fd); 226 int fd; local [all...] |
H A D | TgtFCHBAPort.cc | 466 int fd = HBA::_open(FCT_DRIVER_PATH, O_NDELAY | O_RDONLY); local 468 HBA::_ioctl(fd, cmd, (uchar_t *)fctio); 469 close(fd); 474 close(fd);
|
/osnet-11/usr/src/lib/sun_sas/common/ |
H A D | Sun_sasSendSMPPassThru.c | 36 int fd; local 52 if ((fd = open(devpath, O_RDONLY | O_NONBLOCK)) == -1) { 62 if (ioctl(fd, USMPFUNC, &ucmd_buf) == -1) { 73 (void) close(fd); 77 (void) close(fd);
|
H A D | sun_sas.c | 384 int fd; local 392 if ((fd = open(devpath, O_RDONLY | O_NDELAY)) == -1) { 398 if (ioctl(fd, USCSICMD, ucmd) == -1) { 409 (void) close(fd); 413 (void) close(fd);
|
/osnet-11/usr/src/lib/libpp/common/ |
H A D | ppop.c | 108 int fd; local 147 if ((fd = ppsearch(file, INC_LOCAL, SEARCH_INCLUDE)) < 0) 149 PUSH_FILE(file, fd); 231 * return non-0 if file is identical to fd 235 identical(char* file, int fd) argument 240 return !stat(file, &a) && !fstat(fd, &b) && a.st_dev == b.st_dev && a.st_ino == b.st_ino;
|
H A D | ppsearch.c | 117 int fd; local 471 fd = 0; 481 fd = (flags & SEARCH_INCLUDE) ? open(pp.path, O_RDONLY) : eaccess(pp.path, R_OK); 483 if (fd >= 0) 543 if (fd > 0) 544 close(fd); 565 return fd; 605 int fd; local 611 fd = -1; 664 if ((fd [all...] |
/osnet-11/usr/src/lib/libproc/common/ |
H A D | Plwpregs.c | 69 int fd; local 74 if ((fd = open(fname, O_RDONLY)) >= 0) { 75 if (read(fd, rp, n) > 0) { 76 (void) close(fd); 79 (void) close(fd); 134 int fd; local 173 if ((fd = open(fname, O_WRONLY)) >= 0) { 174 if (writev(fd, iov, 2) > 0) { 175 (void) close(fd); 178 (void) close(fd); [all...] |
H A D | proc_arg.c | 51 int fd; local 63 * Attempt to open the psinfo file, and return the fd if we can 66 if ((fd = open64(path, O_RDONLY)) >= 0) { 67 if (fstat64(fd, &st) != 0 || !S_ISREG(st.st_mode) || 69 (void) close(fd); 70 fd = -1; 75 return (fd); 87 int fd; local 91 * Attempt to open the core file, and return the fd if we can confirm 94 if ((fd 135 int fd; local 439 int fd, i; local [all...] |
/osnet-11/usr/src/lib/librcm/ |
H A D | librcm_event.c | 332 int service_door, fd; local 336 fd = open(door_name, O_EXCL|O_CREAT, S_IREAD|S_IWRITE); 337 if ((fd == -1) && (errno != EEXIST)) { 340 (void) close(fd); 379 revoke_event_service(int fd) argument 384 if (door_info(fd, &info) == -1) { 388 if (door_revoke(fd) != 0) {
|
/osnet-11/usr/src/lib/librdc/common/ |
H A D | netaddrs.c | 346 int fd = -1; local 352 if ((fd = t_open(nconf->nc_device, O_RDWR, tinfo)) == -1) 355 if ((tbind = (struct t_bind *)t_alloc(fd, T_BIND, T_ADDR)) == NULL) 376 cl = clnt_tli_create(fd, nconf, &tbind->addr, prog, vers, 0, 0); 498 if (fd >= 0) 499 (void) t_close(fd);
|
H A D | rdcpersist.c | 137 int fd; local 154 fd = open(SV_DEVICE, O_RDONLY); 155 if (fd < 0) { 163 if (ioctl(fd, SVIOC_ENABLE, &svc) < 0) { 173 close(fd); 186 int fd = -1; local 212 fd = open(SV_DEVICE, O_RDONLY); 213 if (fd < 0) 220 if (ioctl(fd, SVIOC_ENABLE, &svcv) < 0) { 234 if (ioctl(fd, SVIOC_ENABL [all...] |
/osnet-11/usr/src/lib/libresolv2/common/isc/ |
H A D | ev_connects.c | 57 static void listener(evContext ctx, void *uap, int fd, int evmask); 58 static void connector(evContext ctx, void *uap, int fd, int evmask); 63 evListen(evContext opaqueCtx, int fd, int maxconn, argument 72 OKFREE(mode = fcntl(fd, F_GETFL, NULL), new); /*%< side effect: validate fd. */ 75 * has not been done to this fd, or that if it has then the caller 83 OKFREE(ioctl(fd, FIONBIO, (char *)&on), new); 85 OKFREE(fcntl(fd, F_SETFL, mode | PORT_NONBLOCK), new); 89 OKFREE(listen(fd, maxconn), new); 90 if (evSelectFD(opaqueCtx, fd, EV_REA 112 evConnect(evContext opaqueCtx, int fd, const void *ra, int ralen, evConnFunc func, void *uap, evConnID *id) argument 280 listener(evContext opaqueCtx, void *uap, int fd, int evmask) argument 316 connector(evContext opaqueCtx, void *uap, int fd, int evmask) argument [all...] |
/osnet-11/usr/src/lib/libsasl/lib/ |
H A D | checkpw.c | 349 * Keep calling the writev() system call with 'fd', 'iov', and 'iovcnt' 352 static int retry_writev(int fd, struct iovec *iov, int iovcnt) argument 377 n = writev(fd, iov, iovcnt > iov_max ? iov_max : iovcnt); 469 * Keep calling the read() system call with 'fd', 'buf', and 'nbyte' 472 static int retry_read(int fd, void *buf0, unsigned nbyte) argument 481 n = read(fd, buf, nbyte);
|