| /onnv/onnv-gate/usr/src/cmd/sgs/0@0/common/ |
| 0@0.c | 46 int fd; local 48 if ((fd = open("/dev/zero", O_RDWR)) < 0) 50 (void) mmap(0, 1, PROT_READ, MAP_PRIVATE|MAP_FIXED, fd, 0); 51 (void) close(fd);
|
| /onnv/onnv-gate/usr/src/lib/libbc/libc/gen/common/ |
| closedir.c | 39 int fd; local 43 fd = dirp->dd_fd; 48 return (close(fd));
|
| opendir.c | 43 register int fd; local 49 if ((fd = open(name, O_RDONLY | O_NDELAY)) == -1) 51 if (fstat(fd, &sb) == -1) { 52 (void) close(fd); 57 (void) close(fd); 64 (void) close(fd); 67 dirp->dd_fd = fd; 72 (void) fcntl(fd, F_SETFD, FD_CLOEXEC);
|
| /onnv/onnv-gate/usr/src/lib/libbc/libc/gen/sys5/ |
| nlist.c | 39 int fd; local 41 fd = open(name, O_RDONLY, 0); 42 (void) _nlist(fd, list); 43 close(fd);
|
| /onnv/onnv-gate/usr/src/lib/libbc/libc/sys/common/ |
| _creat.c | 38 int fd; local 46 if ((fd = _syscall(SYS_creat, "/var/adm/wtmpx", mode)) >= 0) 47 fd_add(fd, UTMPX_MAGIC_FLAG); 48 return (fd); 52 if ((fd = _syscall(SYS_creat, "/var/adm/utmpx", mode)) >= 0) 53 fd_add(fd, UTMPX_MAGIC_FLAG); 54 return (fd);
|
| /onnv/onnv-gate/usr/src/cmd/ipf/lib/common/ |
| kvatoname.c | 12 int fd; local 16 fd = -1; 19 fd = open(IPL_NAME, O_RDONLY); 20 if (fd == -1) 23 (void) (*iocfunc)(fd, SIOCFUNCL, &res); 24 if (fd >= 0) 25 close(fd);
|
| nametokva.c | 11 int fd; local 15 fd = -1; 18 fd = open(IPL_NAME, O_RDONLY); 19 if (fd == -1) 22 (void) (*iocfunc)(fd, SIOCFUNCL, &res); 23 if (fd >= 0) 24 close(fd);
|
| /onnv/onnv-gate/usr/src/cmd/lp/lib/class/ |
| putclass.c | 50 int fd; local 69 if ((fd = open_locked(file, "w", MODE_READ)) < 0) { 76 fdprintlist(fd, clsbufp->members); 78 close(fd); 81 close(fd);
|
| /onnv/onnv-gate/usr/src/cmd/lp/lib/printers/ |
| default.c | 56 int fd; local 61 if ((fd = open_locked(Lp_Default, "w", MODE_READ)) < 0) 64 fdprintf(fd, "%s\n", dflt); 66 close(fd);
|
| /onnv/onnv-gate/usr/src/cmd/vt/ |
| vtinfo.c | 43 int fd; local 45 if ((fd = open("/dev/vt/0", O_RDONLY)) < 0) 48 if (ioctl(fd, VT_ENABLED, &result) != 0) { 49 (void) close(fd); 53 (void) close(fd);
|
| /onnv/onnv-gate/usr/src/lib/gss_mechs/mech_krb5/krb5/os/ |
| write_msg.c | 37 int fd = *( (int *) fdp); local 40 if (krb5_net_write(context, fd, (char *)&len, 4) < 0) { 43 if (outbuf->length && (krb5_net_write(context, fd, outbuf->data, outbuf->length) < 0)) {
|
| /onnv/onnv-gate/usr/src/lib/libbc/csu/common/ |
| alloc_pbuf.c | 36 int fd; local 38 if((fd = open("/dev/zero",O_RDONLY)) == -1 ) { 41 buf = (char*) mmap(0, size, PROT_READ|PROT_WRITE, MAP_PRIVATE, fd, 0); 42 close(fd);
|
| /onnv/onnv-gate/usr/src/lib/libbc/libc/gen/4.2/ |
| nlist.c | 39 int fd; local 42 fd = open(name, O_RDONLY, 0); 43 e = _nlist(fd, list); 44 close(fd);
|
| /onnv/onnv-gate/usr/src/lib/libbc/libc/sys/4.2/ |
| truncate.c | 39 int fd, ret = 0; local 47 if ((fd = open(path, O_WRONLY)) == -1) { 51 if (ftruncate(fd, length) == -1) { 52 close(fd); 55 close(fd);
|
| /onnv/onnv-gate/usr/src/lib/libbc/libc/sys/sys5/ |
| truncate.c | 38 int fd, ret = 0; local 44 if ((fd = open(path, O_WRONLY)) == -1) { 48 if (ftruncate(fd, length) == -1) { 49 close(fd); 52 close(fd);
|
| /onnv/onnv-gate/usr/src/lib/libc/port/gen/ |
| closedir.c | 52 int fd = dirp->dd_fd; local 57 return (close(fd));
|
| opendir.c | 51 int fd; local 54 if ((fd = openat(AT_FDCWD, filename, 57 if ((dirp = fdopendir(fd)) == NULL) 58 (void) close(fd);
|
| daemon.c | 45 int retv, fd; local 77 if ((fd = open("/dev/null", O_RDWR)) == -1) 86 if ((fd != STDIN_FILENO) && (dup2(fd, STDIN_FILENO) < 0)) { 87 (void) close(fd); 90 if ((fd != STDOUT_FILENO) && (dup2(fd, STDOUT_FILENO) < 0)) { 91 (void) close(fd); 94 if ((fd != STDERR_FILENO) && (dup2(fd, STDERR_FILENO) < 0)) [all...] |
| /onnv/onnv-gate/usr/src/lib/libnsl/rpc/ |
| can_use_af.c | 48 int fd; local 50 if ((fd = open("/dev/udp", O_RDONLY)) < 0) 56 if (ioctl(fd, SIOCGLIFNUM, &lifn, sizeof (lifn)) < 0) 59 (void) close(fd);
|
| /onnv/onnv-gate/usr/src/lib/libxcurses/src/libc/xcurses/ |
| flushinp.c | 53 int fd; local 63 fd = cur_term->_ifd; 65 fd = cur_term->_ofd; 67 fd = -1; 69 if (0 <= fd) 70 (void) tcflush(fd, TCIFLUSH);
|
| /onnv/onnv-gate/usr/src/lib/libxcurses2/src/libc/xcurses/ |
| flushinp.c | 58 int fd; local 64 fd = cur_term->_ifd; 66 fd = cur_term->_ofd; 68 fd = -1; 70 if (0 <= fd) 71 (void) tcflush(fd, TCIFLUSH);
|
| /onnv/onnv-gate/usr/src/cmd/cmd-crypto/cryptoadm/ |
| start_stop.c | 57 int fd = -1; local 62 if ((fd = open(_PATH_KCFD_DOOR, O_RDONLY)) == -1) { 69 if (door_info(fd, &dinfo) == -1 || dinfo.di_target == -1) { 85 if (fd != -1) 86 (void) close(fd);
|
| /onnv/onnv-gate/usr/src/cmd/lp/lib/filters/ |
| filtertable.c | 70 int fd; local 79 fd = open_locked(file, mode, MODE_READ); 84 return (fd);
|
| /onnv/onnv-gate/usr/src/cmd/lp/lib/forms/ |
| getform.c | 54 int fd; local 82 if ((fd = open_locked(path, "r", 0)) < 0) { 88 if (rdform(name, formp, fd, 0, (int *)0) == -1) { 89 close(fd); 92 close(fd);
|
| /onnv/onnv-gate/usr/src/cmd/rcap/common/ |
| rcapd_stat.c | 42 int fd; local 47 if ((fd = open(file, O_RDONLY)) < 0) 50 if (read(fd, &hdr, sizeof (hdr)) != sizeof (hdr)) { 51 (void) close(fd); 54 (void) close(fd);
|