/illumos-gate/usr/src/cmd/fm/modules/sun4u/cpumem-diagnosis/ |
H A D | cmd_ecache.c | 70 int fd; local 77 if ((fd = open(path, O_RDONLY)) < 0) 81 if (ioctl(fd, MCIOC_CTRLCONF, &mcc) >= 0 || errno != EINVAL || 83 (void) close(fd); 87 (void) close(fd); 131 int fd; local 133 if ((fd = open(cmd.cmd_ecache_dev, O_RDONLY)) < 0) { 142 (fd = open(cmd.cmd_ecache_dev, O_RDONLY)) < 0) 146 if (ioctl(fd, MCIOC_ECFLUSH, cpuid) < 0) { 148 (void) close(fd); [all...] |
/illumos-gate/usr/src/cmd/runat/ |
H A D | runat.c | 55 int fd; local 68 if ((fd = open64(argv[1], O_RDONLY)) == -1) { 75 if ((dirfd = openat64(fd, ".", O_RDONLY|O_XATTR)) == -1) { 82 (void) close(fd);
|
/illumos-gate/usr/src/cmd/sendmail/libsm/ |
H A D | fvwrite.c | 69 int fd; local 82 SM_CONVERT_TIME(fp, fd, timeout, &to); 100 if (IS_IO_ERROR(fd, w, timeout)) 104 SM_IO_WR_TIMEOUT(fp, fd, timeout); 186 if (IS_IO_ERROR(fd, w, timeout)) 190 SM_IO_WR_TIMEOUT(fp, fd, timeout); 248 if (IS_IO_ERROR(fd, w, timeout)) 252 SM_IO_WR_TIMEOUT(fp, fd, timeout);
|
/illumos-gate/usr/src/cmd/sendmail/src/ |
H A D | stats.c | 137 int fd; local 157 fd = safeopen(sfile, O_RDWR, 0600, sff); 158 if (fd < 0) 167 if (read(fd, (char *) &stats, sizeof(stats)) == sizeof(stats) && 193 (void) lseek(fd, (off_t) 0, 0); 194 (void) write(fd, (char *) &stats, sizeof(stats)); 195 (void) close(fd);
|
/illumos-gate/usr/src/cmd/sgs/crle/common/ |
H A D | dump.c | 89 FILE *fd; local 93 if ((fd = fdopen(fildes[0], MSG_ORIG(MSG_STR_READ))) != NULL) { 97 while (fgets(buffer, PATH_MAX, fd) != NULL) { 125 (void) fclose(fd);
|
/illumos-gate/usr/src/cmd/sgs/elfwrap/common/ |
H A D | lintsup.c | 50 output32(const char *prog, int fd, const char *ofile, ushort_t mach, argument 53 return (output64(prog, fd, ofile, mach, odp)); 63 output64(const char *prog, int fd, const char *ofile, ushort_t mach, argument 66 return (output32(prog, fd, ofile, mach, odp));
|
H A D | main.c | 53 int fd, var; local 163 if ((fd = open(ofile, (O_RDWR | O_CREAT | O_TRUNC), 0666)) < 0) { 179 return (output64(prog, fd, ofile, mach, &odesc)); 181 return (output32(prog, fd, ofile, mach, &odesc));
|
/illumos-gate/usr/src/cmd/acct/ |
H A D | accton.c | 82 int fd; local 84 if ((fd = open(admfile, O_RDONLY|O_CREAT, 0644)) == ERR) { 88 if (fstat(fd, s) == ERR) { 94 if (fchown(fd, admuid, (gid_t)admuid) == ERR) { 100 if (fchmod(fd, S_IRUSR|S_IWUSR|S_IRGRP|S_IWUSR|S_IROTH) == ERR) { 104 (void) close(fd);
|
/illumos-gate/usr/src/cmd/avs/rdc/ |
H A D | rdc_ioctl.c | 48 int fd = open(__rdc_dev, O_RDONLY); local 50 if (fd < 0) 53 return (__rdc_fd = fd);
|
/illumos-gate/usr/src/cmd/boot/common/ |
H A D | boot_utils.c | 57 write_out(int fd, void *buffer, size_t size, off_t off) argument 71 ret = pwrite(fd, buf, size, off); 90 read_in(int fd, void *buffer, size_t size, off_t off) argument 100 ret = pread(fd, buf, size, off);
|
/illumos-gate/usr/src/cmd/cdrw/ |
H A D | transport.c | 57 uscsi(int fd, struct uscsi_cmd *scmd) argument 119 ret = ioctl(fd, USCSICMD, scmd);
|
/illumos-gate/usr/src/cmd/fs.d/smbclnt/lsacl/ |
H A D | lsacl.c | 102 int error, fd; local 104 fd = open(file, O_RDONLY, 0); 105 if (fd < 0) { 111 error = smbfs_acl_getsd(fd, selector, &sd); 112 (void) close(fd);
|
/illumos-gate/usr/src/cmd/fs.d/zfs/fstyp/ |
H A D | fstyp.c | 45 int fd; member in struct:fstyp_zfs 49 int fstyp_mod_init(int fd, off_t offset, fstyp_mod_handle_t *handle); 55 fstyp_mod_init(int fd, off_t offset, fstyp_mod_handle_t *handle) argument 66 h->fd = fd; 92 if (zpool_read_label(h->fd, &h->config) != 0 ||
|
/illumos-gate/usr/src/cmd/hal/hald-runner/ |
H A D | utils.c | 56 get_string_array_from_fd(int fd) argument 67 io = g_io_channel_unix_new(fd);
|
/illumos-gate/usr/src/cmd/ipf/lib/common/ |
H A D | kmem.c | 83 int fd; local 90 fd = open(core, mode); 91 if (fd == -1) 95 close(fd); 98 *k = fd;
|
/illumos-gate/usr/src/cmd/ipf/tools/ |
H A D | ipfzone.c | 124 setzone(int fd) argument 142 if (ioctl(fd, SIOCIPFZONESET, &ipzo) == -1) {
|
/illumos-gate/usr/src/cmd/keyserv/ |
H A D | key_generic.c | 85 int fd; local 114 if ((fd = t_open(nconf->nc_device, O_RDWR, NULL)) < 0) { 127 if (__rpc_negotiate_uid(fd) != 0) { 131 t_close(fd); 135 bind_addr = (struct t_bind *)t_alloc(fd, T_BIND, T_ADDR); 137 t_close(fd); 158 xprt = svc_tli_create(fd, nconf, bind_addr, 0, 0);
|
/illumos-gate/usr/src/cmd/srptsvc/ |
H A D | srptsvc.c | 49 int fd = -1; local 69 fd = open(SRPT_NODE, O_RDONLY); 70 if (fd < 0) { 96 ret = ioctl(fd, srpt_ioctl, NULL); 108 (void) close(fd);
|
/illumos-gate/usr/src/cmd/krb5/kwarn/ |
H A D | kwarnd_generic.c | 43 int fd; local 57 if ((fd = t_open(nconf->nc_device, O_RDWR, NULL)) < 0) { 70 if (__rpc_negotiate_uid(fd) != 0) { 75 t_close(fd); 80 bind_addr = (struct t_bind *) t_alloc(fd, T_BIND, T_ADDR); 82 (void) t_close(fd); 105 xprt = svc_tli_create(fd, nconf, bind_addr, 0, 0); 109 (void) t_close(fd); 121 SVC_DESTROY(xprt); /* also t_closes fd */
|
/illumos-gate/usr/src/cmd/lastcomm/ |
H A D | lc_pacct.c | 47 int fd; local 49 if ((fd = open(name, O_RDONLY)) < 0) { 54 (void) fstat(fd, &sb); 63 if (lseek(fd, (unsigned)bn * BUF_SIZ, 0) == -1) { 67 cc = read(fd, buf, BUF_SIZ);
|
/illumos-gate/usr/src/cmd/tip/aculib/ |
H A D | hayes.c | 110 hayes_sync(int fd) argument 121 (void) ioctl(fd, TIOCMBIC, &dtr); 123 (void) ioctl(fd, TIOCMBIS, &dtr); 136 (void) write(fd, "ATV0Q0E0S0=1S2=255S12=255\r", 26); 139 (void) ioctl(fd, TCFLSH, TCIOFLUSH); 141 (void) write(fd, "AT\r", 3);
|
/illumos-gate/usr/src/ucblib/libucb/port/gen/ |
H A D | statfs.c | 57 fstatfs64(int fd, struct statfs64 *buf) argument 62 if ((ret = fstatvfs64(fd, &vbuf)) != -1) 100 fstatfs(int fd, struct statfs *buf) argument 105 if ((ret = fstatvfs(fd, &vbuf)) != -1)
|
/illumos-gate/usr/src/ucblib/libucb/port/stdio/ |
H A D | fopen.c | 57 int plus, oflag, fd; local 77 fd = open64(file, oflag, 0666); /* mapped to open() for V9 */ 79 fd = open(file, oflag, 0666); 81 if (fd < 0) 85 iop->_file = fd; 87 if (fd <= _FILE_FD_MAX) { 88 SET_FILE(iop, fd); 89 } else if (_file_set(iop, fd, mode) != 0) { 91 (void) close(fd); 97 if ((lseek64(fd, [all...] |
/illumos-gate/usr/src/lib/sun_fc/common/ |
H A D | Sun_fcAdapterCreateWWN.cc | 41 int fd = open("/dev/urandom", O_RDONLY); local 46 bytes = read(fd, ptr, resid); 50 close (fd);
|
/illumos-gate/usr/src/test/zfs-tests/cmd/devname2devid/ |
H A D | devname2devid.c | 58 int fd; local 74 if ((fd = open(device, O_RDONLY|O_NDELAY)) < 0) { 78 if (devid_get(fd, &devid) != 0) { 82 if (devid_get_minor_name(fd, &minor_name) != 0) {
|