Searched defs:fd (Results 301 - 325 of 1651) sorted by relevance

<<11121314151617181920>>

/illumos-gate/usr/src/cmd/sgs/libelf/demo/
H A Dacom.c182 int fd; local
187 if ((fd = open(elf_fname, O_RDWR)) == -1) {
196 if ((elf = elf_begin(fd, ELF_C_RDWR, 0)) == NULL) {
199 (void) close(fd);
212 (void) close(fd);
/illumos-gate/usr/src/cmd/sgs/libelf/misc/
H A Dnlist.c52 end_elf_job(int fd, Elf * elfdes) argument
55 (void) close(fd);
61 _elf_nlist(int fd, struct nlist * list) argument
74 (void) close(fd);
77 elfdes = elf_begin(fd, ELF_C_READ, (Elf *)0);
79 return (end_elf_job(fd, elfdes));
83 return (end_elf_job(fd, elfdes));
88 return (end_elf_job(fd, elfdes));
118 (void) close(fd);
130 int fd; local
[all...]
/illumos-gate/usr/src/cmd/audio/utilities/
H A Dzmalloc.c103 int fd; local
110 if ((fd = open("/dev/zero", O_RDWR)) < 0) {
115 mbuf = mmap(0, size, PROT_READ|PROT_WRITE, MAP_SHARED, fd, 0);
116 (void) close(fd);
/illumos-gate/usr/src/cmd/avs/sdbc/
H A Dsdbc_ioctl.c54 int fd; local
56 fd = open("/dev/nsctl", O_RDONLY);
57 if (fd >= 0)
58 (void) close(fd);
60 fd = open(__sdbc_dev, O_RDONLY);
61 if (fd < 0)
64 return (__sdbc_fd = fd);
74 static int fd = -1; local
76 if (fd < 0)
77 fd
[all...]
/illumos-gate/usr/src/cmd/bnu/
H A Dlogent.c134 int fd; local
139 fd = open(CMDLOG, O_WRONLY | O_APPEND);
141 fd = creat(CMDLOG, LOGFILEMODE);
144 if (fd < 0 || (_Cf = fdopen(fd, "a")) == NULL) {
H A Dsetmode.c28 setmode(modes, fd)
30 int fd;
33 setty(fd);
341 setty(int fd) argument
345 if ((*Ioctl)(fd, TCGETS, &termios) < 0) {
359 if ((*Ioctl)(fd, TCSETSF, &termios) < 0) {
/illumos-gate/usr/src/cmd/boot/symdef/
H A Dsymdef.c59 int fd = 0; local
76 fd = open(argv[1], O_RDONLY);
77 if (fd == -1) {
87 elfp = elf_begin(fd, ELF_C_READ, NULL);
114 if (fd != -1)
115 (void) close(fd);
/illumos-gate/usr/src/cmd/cdrw/
H A Dtoshiba.c55 read_toc_as_per_8020(int fd, int format, int trackno, int buflen, uchar_t *buf) argument
70 if (uscsi(fd, scmd) < 0)
/illumos-gate/usr/src/cmd/fs.d/smbclnt/chacl/
H A Dchacl.c32 * i.e. chacl A=everyone@:full_set:fd:allow /mnt/foo
164 int error, fd; local
172 fd = open(file, O_RDONLY, 0);
173 if (fd < 0) {
184 if (fstat(fd, &st) != 0) {
228 error = smbfs_acl_setsd(fd, selector, sd);
229 (void) close(fd);
/illumos-gate/usr/src/cmd/fs.d/ufs/fsirand/
H A Dfsirand.c63 int fd; local
86 fd = open64(dev, pflag ? O_RDONLY : O_RDWR);
87 if (fd == -1) {
92 if (llseek(fd, (offset_t)SBLOCK * DEV_BSIZE, 0) == -1) {
99 if ((n = read(fd, (char *)fs, SBSIZE)) != SBSIZE) {
140 if (llseek(fd, seekaddr, 0) == -1) {
147 n = read(fd, (char *)dibuf, bsize);
164 if (llseek(fd, seekaddr, 0) == -1) {
172 n = write(fd, (char *)dibuf, bsize);
185 if (llseek(fd, (offset_
[all...]
/illumos-gate/usr/src/cmd/sgs/libldmake/common/
H A Dlock.c93 int fd; local
135 fd = creat(tmpname, 0666);
136 if (fd != -1) {
137 (void) close(fd);
/illumos-gate/usr/src/cmd/svc/configd/
H A Dmaindoor.c60 int fd; local
112 fd = -1;
114 arg_size, &fd);
116 assert(fd == -1);
119 assert(fd != -1);
121 reply_desc.d_data.d_desc.d_descriptor = fd;
145 int fd; local
172 fd = open(doorpath, O_RDWR | O_CREAT | O_EXCL, 0644);
175 if (fd >= 0)
176 (void) close(fd);
[all...]
/illumos-gate/usr/src/cmd/svc/startd/
H A Dmisc.c51 startd_close(int fd) argument
53 if (close(fd) == 0)
56 log_error(LOG_WARNING, "close(%d) failed: %s\n", fd, strerror(errno));
/illumos-gate/usr/src/cmd/tip/
H A Dtipout.c131 int fd; local
134 if ((fd = open(DV, O_RDWR)) >= 0) {
135 if (fd != FD)
136 (void) close(fd);
/illumos-gate/usr/src/cmd/ttymon/
H A Dtmautobaud.c80 auto_termio(int fd) argument
85 if (ioctl(fd, TCGETS, &termios) == -1) {
86 if (ioctl(fd, TCGETA, &termio) == -1) {
87 log("auto_termio: ioctl TCGETA failed, fd = %d: %s", fd,
100 if (ioctl(fd, TCSETAF, &termio) == -1) {
101 log("auto_termio: ioctl TCSETAF failed, fd = %d: %s",
102 fd, strerror(errno));
116 if (ioctl(fd, TCSETSF, &termios) == -1) {
117 log("auto_termio: ioctl TCSETSF failed, fd
134 autobaud(int fd, int timeout) argument
[all...]
H A Dtmlock.c78 * tm_lock(fd) - set advisory lock on the device
81 tm_lock(int fd) argument
84 return (fd_mklock(fd));
91 tm_checklock(int fd) argument
94 return (fd_cklock(fd));
98 * check_session(fd) - check if a session established on fd
103 check_session(int fd) argument
107 if (ioctl(fd, TIOCGSID, &sid) == -1)
H A Dtmpeek.c77 fds[0].fd = 0;
100 ptr = do_peek(fds[0].fd, 255);
102 return(process(fds[0].fd,ptr));
119 int fd, /* fd to read data from if necessary */
127 (void) read(fd, junk, i+1);
131 (void) read(fd, junk, ptr->len);
153 do_peek(fd,n)
154 int fd; /* fd t
118 process( int fd, struct strbuf *ptr) argument
[all...]
/illumos-gate/usr/src/tools/mbh_patch/
H A Dmbh_patch.c162 int fd; local
181 if ((fd = open(fname, O_RDWR)) < 0) {
191 image = mmap(NULL, 8192, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0);
/illumos-gate/usr/src/lib/sun_fc/common/
H A DFCHBANPIVPort.cc107 int fd = HBA::_open(path, O_NDELAY | O_RDONLY); local
111 HBA::_ioctl(fd, cmd, (uchar_t *)fcio);
114 HBA::_ioctl(fd, cmd, (uchar_t *)fcio);
119 close(fd);
124 close(fd);
H A DTrace.cc70 int fd; local
76 fd = open(DEBUG_FILE, O_WRONLY|O_APPEND); /* will only open if exists */
77 if (fd == -1) {
82 fd = open(LOG_FILE, O_WRONLY|O_APPEND);
109 if (fd != -1) {
122 write(fd, message, strlen(message));
123 close(fd);
/illumos-gate/usr/src/psm/promif/ieee1275/common/
H A Dprom_io.c74 prom_seek(int fd, unsigned long long offset) argument
81 ci[3] = p1275_uint2cell((uint_t)fd); /* Arg1: ihandle */
95 prom_read(ihandle_t fd, caddr_t buf, size_t len, uint_t startblk, char devtype) argument
116 ci[3] = p1275_size2cell((uint_t)fd); /* Arg1: ihandle */
143 prom_write(ihandle_t fd, caddr_t buf, size_t len, uint_t startblk, char devtype) argument
160 if (promif_redirect != NULL && fd == prom_stdout_ihandle()) {
221 ci[3] = p1275_uint2cell((uint_t)fd); /* Arg1: ihandle */
241 prom_close(int fd) argument
249 ci[3] = p1275_uint2cell((uint_t)fd); /* Arg1: ihandle */
/illumos-gate/usr/src/psm/promif/ieee1275/sun4/
H A Dprom_fio.c76 return (p1275_cell2int(ci[9])); /* Res2: fd */
123 return (p1275_cell2int(ci[9])); /* Res2: fd */
127 prom_fseek(ihandle_t fsih, int fd, unsigned long long offset) argument
136 ci[5] = p1275_int2cell(fd); /* Arg3: file desc */
154 prom_fread(ihandle_t fsih, int fd, caddr_t buf, size_t len) argument
175 ci[5] = p1275_int2cell(fd); /* Arg3: file desc */
197 prom_fsize(ihandle_t fsih, int fd, size_t *size) argument
208 ci[5] = p1275_int2cell(fd); /* Arg3: file desc */
223 prom_compinfo(ihandle_t fsih, int fd, int *iscmp, size_t *fsize, size_t *bsize) argument
234 ci[5] = p1275_int2cell(fd); /* Arg
250 prom_fclose(ihandle_t fsih, int fd) argument
[all...]
/illumos-gate/usr/src/psm/stand/boot/sparc/common/
H A Dinetboot.c65 read_and_boot_ramdisk(int fd) argument
72 if ((fstat(fd, &st) != 0) ||
77 if ((size = xread(fd, (char *)virt, st.st_size)) != st.st_size) {
93 int fd; local
125 fd = openfile(fn);
130 fd = openfile(fn);
135 if ((fd = openfile(fn)) == FAILURE) {
139 fd = openfile(fn);
150 if (fd == FAILURE) {
161 (void) read_and_boot_ramdisk(fd);
[all...]
/illumos-gate/usr/src/stand/lib/fs/common/
H A Dpromfs.c41 static int promfs_close(int fd);
42 static ssize_t promfs_read(int fd, caddr_t buf, size_t size);
43 static off_t promfs_lseek(int fd, off_t offset, int whence);
44 static int promfs_fstat(int fd, struct bootstat *stp);
85 promfs_close(int fd) argument
87 prom_fclose(fsih, fd);
92 promfs_read(int fd, caddr_t buf, size_t size) argument
94 return (prom_fread(fsih, fd, buf, size));
99 promfs_lseek(int fd, off_t offset, int whence) argument
101 return (prom_fseek(fsih, fd, offse
105 promfs_fstat(int fd, struct bootstat *stp) argument
[all...]
/illumos-gate/usr/src/test/zfs-tests/cmd/dir_rd_update/
H A Ddir_rd_update.c87 int fd = open(dirpath, O_RDONLY|O_RSYNC|O_SYNC|O_DSYNC); local
94 rdret = read(fd, buf, 16);
101 int fd = open(dirpath, O_RDONLY); local
107 chownret = fchown(fd, 0, 0);

Completed in 68 milliseconds

<<11121314151617181920>>