Searched refs:fd (Results 176 - 200 of 1995) sorted by relevance

1234567891011>>

/illumos-gate/usr/src/uts/common/avs/ns/nsctl/
H A Dnsc_dev.c544 nsc_fd_t *fd; local
550 for (fd = iodev->si_open; fd; fd = fd->sf_next) {
551 if (!(rc = _nsc_reopen_fd(fd, flag | try)))
557 if (!_nsc_relock_dev(dev, fd, iodev))
568 for (fd = dev->nsc_close; fd; fd
603 _nsc_relock_dev(nsc_dev_t *dev, nsc_fd_t *fd, nsc_iodev_t *iodev) argument
728 nsc_fd_t *fd; local
1068 nsc_set_owner(nsc_fd_t *fd, nsc_iodev_t *iodev) argument
1109 nsc_fdpathcmp(nsc_fd_t *fd, uint64_t phash, char *path) argument
1382 nsc_setval(nsc_fd_t *fd, char *name, int val) argument
1409 nsc_getval(nsc_fd_t *fd, char *name, int *vp) argument
1727 nsc_fd_t *fd; local
1808 _nsc_relink_fd(nsc_fd_t *fd, nsc_fd_t **from, nsc_fd_t **to, nsc_iodev_t *iodev) argument
[all...]
/illumos-gate/usr/src/cmd/sgs/rtld.4.x/
H A Drtsubrs.c67 fprintf(fd, fmt, va_alist)
68 int fd;
75 prf(fd, fmt, x1);
119 prf(fd, fmt, adx)
120 int fd;
126 doprf(fd, fmt, adx, linebuf);
130 doprf(fd, fmt, adx, linebuf)
131 int fd;
144 _write(fd, linebuf, lbp - &linebuf[0]); \
154 _write(fd, linebu
[all...]
/illumos-gate/usr/src/lib/libresolv2/common/bsd/
H A Dwritev.c21 __writev(int fd, struct iovec *iov, int iovlen) argument
25 if (fstat(fd, &statbuf) < 0)
41 return (sendmsg(fd, &mesg, 0));
47 rcode = write(fd, tv->iov_base, tv->iov_len);
65 __writev(fd, vp, vpcount)
66 int fd;
73 int written = write(fd, vp->iov_base, vp->iov_len);
/illumos-gate/usr/src/test/zfs-tests/cmd/largest_file/
H A Dlargest_file.c56 int fd = 0; local
73 fd = open(testfile, O_CREAT | O_RDWR, mode);
74 if (fd < 0) {
80 llseek_ret = llseek(fd, offset, SEEK_SET);
87 write_ret = write(fd, mybuf, 1);
95 llseek_ret = llseek(fd, offset, SEEK_CUR);
102 write_ret = write(fd, mybuf, 1);
/illumos-gate/usr/src/lib/libcontract/common/
H A Dlibcontract.c41 ct_tmpl_activate(int fd) argument
43 if (ioctl(fd, CT_TACTIVATE) == -1)
49 ct_tmpl_clear(int fd) argument
51 if (ioctl(fd, CT_TCLEAR) == -1)
57 ct_tmpl_create(int fd, ctid_t *ctidp) argument
59 ctid_t ctid = ioctl(fd, CT_TCREATE);
67 ct_tmpl_set_internal(int fd, uint_t id, uintptr_t value) argument
75 if (ioctl(fd, CT_TSET, &param) == -1)
82 ct_tmpl_set_internal_string(int fd, uint_t id, const char *value) argument
91 if (ioctl(fd, CT_TSE
98 ct_tmpl_set_critical(int fd, uint_t events) argument
104 ct_tmpl_set_informative(int fd, uint_t events) argument
110 ct_tmpl_set_cookie(int fd, uint64_t cookie) argument
124 ct_tmpl_get_internal(int fd, uint_t id, uint_t *value) argument
139 ct_tmpl_get_internal_string(int fd, uint32_t id, char *buf, size_t size) argument
152 ct_tmpl_get_critical(int fd, uint_t *events) argument
158 ct_tmpl_get_informative(int fd, uint_t *events) argument
164 ct_tmpl_get_cookie(int fd, uint64_t *cookie) argument
181 ct_ctl_adopt(int fd) argument
189 ct_ctl_abandon(int fd) argument
206 ct_ctl_ack(int fd, ctevid_t event) argument
214 ct_ctl_nack(int fd, ctevid_t event) argument
222 ct_ctl_qack(int fd, ctevid_t event) argument
234 ct_status_read(int fd, int detail, ct_stathdl_t *stathdl) argument
412 ct_event_read_internal(int fd, int cmd, ct_evthdl_t *evt) argument
475 ct_event_read(int fd, ct_evthdl_t *evthdl) argument
481 ct_event_read_critical(int fd, ct_evthdl_t *evthdl) argument
487 ct_event_reset(int fd) argument
495 ct_event_reliable(int fd) argument
[all...]
/illumos-gate/usr/src/lib/libcryptoutil/common/
H A Dkeyfile.c49 int fd = -1; local
59 if ((fd = open(filename, O_RDONLY | O_NONBLOCK)) == -1) {
65 if (fstat(fd, &statbuf) == -1) {
88 (void) close(fd);
102 if (read(fd, filebuf, filesize) != filesize) {
117 nread = read(fd, marker, left);
140 (void) close(fd);
146 if (fd != -1)
147 (void) close(fd);
/illumos-gate/usr/src/test/zfs-tests/cmd/rm_lnkcnt_zero_file/
H A Drm_lnkcnt_zero_file.c102 int *fd = (int *)a; local
105 (void) close (*fd);
106 *fd = open(filebase, O_APPEND | O_RDWR | O_CREAT, 0644);
107 if (*fd < 0)
109 (void) write(*fd, "test\n", 5);
118 int fd; local
127 fd = open(filebase, O_APPEND | O_RDWR | O_CREAT, 0644);
128 if (fd < 0) {
136 (void) pthread_create(&tid, NULL, writer, (void *) &fd);
/illumos-gate/usr/src/uts/common/os/
H A Dfio.c89 * support fcntl(fd, F_DUPFD, minfd).
95 * We then descend that subtree in a binary search for the smallest fd.
97 * of every subtree containing the newly-allocated fd. Freeing an fd
100 * descent to find lowest fd, ascent to update allocation counts) is
103 * We don't implement the fd tree using the customary left/right/parent
108 * fd 0; we'll deal with that later.
187 * Finally, to accommodate fd 0 we must adjust all of our results by +/-1 to
188 * move the fd range from [1, 2^n) to [0, 2^n - 1). This is straightforward,
212 * (2) Find the smallest fd i
260 int size, ralloc, fd; local
282 fd_reserve(uf_info_t *fip, int fd, int incr) argument
302 int fd; local
321 int fd; local
491 set_active_fd(int fd) argument
541 clear_active_fd(int fd) argument
559 is_active_fd(kthread_t *t, int fd) argument
584 getf(int fd) argument
627 closeandsetf(int fd, file_t *newfp) argument
809 releasef(int fd) argument
826 areleasef(int fd, uf_info_t *fip) argument
843 int fd, nfiles; local
887 int fd; local
994 int fd; local
1093 int fd; local
1170 setf(int fd, file_t *fp) argument
1200 f_getfl(int fd, int *flagp) argument
1238 f_getfd_error(int fd, int *flagp) argument
1269 f_getfd(int fd) argument
1282 f_setfd_error(int fd, int flags) argument
1304 f_setfd(int fd, char flags) argument
1380 int fd; local
1432 int fd; local
1492 fgetstartvp(int fd, char *path, vnode_t **startvpp) argument
1538 fsetattrat(int fd, char *path, int flags, struct vattr *vap) argument
1593 int fd; local
1621 int fd; local
1671 int fd; local
1691 infpollinfo(int fd) argument
1711 addfpollinfo(int fd) argument
1738 delfpollinfo(int fd) argument
1769 addfd_port(int fd, portfd_t *pfd) argument
1792 delfd_port(int fd, portfd_t *pfd) argument
[all...]
/illumos-gate/usr/src/lib/libc/port/gen/
H A Dpt.c66 * Check that fd argument is a file descriptor of an opened master.
68 * will fail if:(1) fd is not a valid file descriptor.(2) the file
69 * represented by fd does not understand ISPTM(not a master device).
75 ptsdev(int fd) argument
85 if (ioctl(fd, I_STR, &istr) < 0 || fstat64(fd, &status) < 0)
92 ptsname(int fd) argument
97 if ((dev = ptsdev(fd)) == NODEV)
121 unlockpt(int fd) argument
130 if (ioctl(fd, I_ST
137 grantpt(int fd) argument
173 zonept(int fd, zoneid_t zoneid) argument
[all...]
H A Dposix_fadvise.c49 posix_fadvise(int fd, off_t offset, off_t len, int advice) argument
66 if (fstat64(fd, &statb) != 0)
77 posix_fadvise64(int fd, off64_t offset, off64_t len, int advice) argument
94 if (fstat64(fd, &statb) != 0)
/illumos-gate/usr/src/cmd/bnu/
H A Dulockf.c117 int fd; local
119 fd = open(name, O_RDONLY);
121 if (fd == -1) {
127 ret = read(fd, (char *) alpid, SIZEOFPID+1); /* +1 for '\n' */
128 (void) close(fd);
301 register int fd; local
304 fd=creat(tempfile, (mode_t) 0444);
305 if(fd < 0){
313 if (write(fd, pid, SIZEOFPID+1) != (SIZEOFPID+1)) {
321 (void) close(fd);
[all...]
/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...]
/illumos-gate/usr/src/boot/sys/boot/i386/libi386/
H A Dpread.c54 pread(fd, dest, size)
55 int fd;
67 got = read(fd, buf, count);
/illumos-gate/usr/src/cmd/devinfo/
H A Ddevinfo.c62 static void partinfo(int fd, char *device);
63 static void devinfo(struct dk_geom *geom, int fd, char *device);
64 static int readvtoc(int fd, char *name, struct extvtoc *vtoc);
72 int errflg, iflg, pflg, fd, c; local
101 if ((fd = open(device, O_RDONLY)) < 0) {
108 if (ioctl(fd, DKIOCGGEOM, &geom) == -1) {
116 (void) close(fd);
119 devinfo(&geom, fd, device);
122 partinfo(fd, device);
123 (void) close(fd);
128 partinfo(int fd, char *device) argument
166 devinfo(struct dk_geom *geom, int fd, char *device) argument
209 readvtoc(int fd, char *name, struct extvtoc *vtoc) argument
[all...]
/illumos-gate/usr/src/cmd/fs.d/pcfs/fsck/
H A Dfsck_pcfs.h175 extern struct pcdir *addRootDirEnt(int fd, struct pcdir *copyme);
183 extern void truncChainWithBadCluster(int fd, struct pcdir *dp,
187 extern void scanAndFixMetadata(int fd);
190 extern void createCHKNameList(int fd);
193 extern void getRootDirectory(int fd);
194 extern void writeClusterMods(int fd);
195 extern void writeRootDirMods(int fd);
196 extern void traverseFromRoot(int fd, int depth, int descend, int operation,
199 extern void findBadClusters(int fd);
207 extern void writeFATMods(int fd);
[all...]
/illumos-gate/usr/src/cmd/lp/lib/secure/
H A Dsecure.c54 int fd; local
66 if ((fd = open_locked(path, "r", MODE_NOREAD)) < 0) {
78 fld < SC_MAX && fdgets(buf, BUFSIZ, fd);
117 close(fd);
121 close(fd);
151 int fd; local
162 if ((fd = open_locked(path, "w", MODE_NOREAD)) < 0) {
179 (void)fdprintf(fd, "%s\n", secbufp->req_id);
183 (void)fdprintf(fd, "%u\n", secbufp->uid);
187 (void)fdprintf(fd, "
[all...]
/illumos-gate/usr/src/cmd/fs.d/nfs/lib/
H A Dnfs_tbind.c128 static int setopt(int fd, int level, int name, int value);
129 static int get_opt(int fd, int level, int name);
130 static void nfslib_set_sockbuf(int fd);
140 int fd; local
152 fd = t_open(nconf->nc_device, O_RDWR, (struct t_info *)NULL);
153 if (fd == -1) {
157 fd = t_open(nconf->nc_device, O_RDWR,
160 if (fd == -1) {
171 if (ioctl(fd, I_POP, 0) < 0) {
173 (void) t_close(fd);
248 nfslib_set_sockbuf(int fd) argument
285 int fd; local
451 get_opt(int fd, int level, int name) argument
480 setopt(int fd, int level, int name, int value) argument
510 reuseaddr(int fd) argument
516 recvucred(int fd) argument
522 anonmlp(int fd) argument
528 nfslib_log_tli_error(char *tli_name, int fd, struct netconfig *nconf) argument
764 add_to_poll_list(int fd, struct netconfig *nconf) argument
841 remove_from_poll_list(int fd) argument
872 do_poll_clts_action(int fd, int conn_index) argument
1172 int fd; local
1214 conn_get(int fd, struct netconfig *nconf, struct conn_ind **connp) argument
1266 discon_get(int fd, struct netconfig *nconf, struct conn_ind **connp) argument
1303 cots_listen_event(int fd, int conn_index) argument
1480 do_poll_cots_action(int fd, int conn_index) argument
1707 set_addrmask(int fd, struct netconfig *nconf, struct netbuf *mask) argument
[all...]
/illumos-gate/usr/src/lib/libdhcpagent/common/
H A Ddhcp_stable.c65 int fd; local
70 if ((fd = open(DUID_FILE, O_RDONLY)) == -1)
72 if (fstat(fd, &sb) != -1 && S_ISREG(sb.st_mode) &&
74 retv = read(fd, duid, sb.st_size);
88 (void) close(fd);
103 int fd; local
107 if ((fd = open(DUID_FILE, O_WRONLY | O_CREAT, 0644)) == -1)
109 retv = write(fd, duid, duidlen);
111 return (close(fd));
113 (void) close(fd);
195 int fd; local
220 int fd; local
263 int fd; local
[all...]
/illumos-gate/usr/src/cmd/lp/cmd/lpsched/
H A Dstatus.c96 int fd; local
106 if ((fd = open_locked(pstatus, "r", 0)) >= 0) {
119 (f < PST_MAX) && (tmp = fdgets(buf, BUFSIZ, fd));
205 close(fd);
244 if (fd >= 0) {
246 close(fd);
250 close(fd);
284 int fd; local
296 if ((fd = open_locked(fault_status, "r", 0)) >= 0) {
297 while (fdgets(buf, BUFSIZ, fd)) {
349 int fd; local
562 int fd; local
629 int fd; local
654 int fd; local
702 put_multi_line(int fd, char *buf) argument
[all...]
/illumos-gate/usr/src/lib/libsmbfs/smb/
H A Diod_cl.c93 int fd, rc; local
97 fd = open(path, O_RDONLY, 0);
98 if (fd < 0)
108 rc = door_call(fd, &da);
111 close(fd);
115 close(fd);
120 (void) fcntl(fd, F_SETFD, FD_CLOEXEC);
122 *fdp = fd;
136 int fd, rc; local
138 fd
169 int fd = -1; local
[all...]
/illumos-gate/usr/src/lib/libdiskmgt/common/
H A Dinuse_dump.c59 int fd; local
79 fd = dump_fd;
83 if (fd != -1) {
84 if (ioctl(fd, DIOCGETDEV, device) != -1) {
/illumos-gate/usr/src/lib/libdtrace/common/
H A Ddlink_init.c72 int fd; local
74 if ((fd = open64(devname, O_RDWR)) < 0) {
79 if ((gen = ioctl(fd, DTRACEHIOC_REMOVE, gen)) == -1)
84 (void) close(fd);
/illumos-gate/usr/src/lib/libnsl/dial/
H A Dulockf.c97 int fd; local
99 fd = open(name, O_RDONLY);
101 if (fd == -1) {
109 ret = read(fd, (char *)alpid, SIZEOFPID + 1); /* +1 for '\n' */
110 (void) close(fd);
198 int fd; local
201 fd = creat(tempfile, (mode_t)0444);
202 if (fd < 0) {
211 if (write(fd, pid, SIZEOFPID+1) != (SIZEOFPID+1)) {
220 (void) close(fd);
248 fd_mklock(int fd) argument
288 fd_rmlock(int fd) argument
[all...]
/illumos-gate/usr/src/lib/libbc/inc/include/sys/
H A Dfile.h89 #define GETF(fp, fd) { \
90 if ((fd) < 0 || (fd) > u.u_lastfile || \
91 ((fp) = u.u_ofile[fd]) == NULL) { \
/illumos-gate/usr/src/cmd/perl/contrib/Sun/Solaris/Intrs/
H A DIntrs.xs64 int fd, ret;
68 if ((fd = open_dev(path)) == -1) {
77 ret = ioctl(fd, PCITOOL_DEVICE_SET_INTR, &iset);
82 (void) close(fd);
90 int fd, ret;
94 if ((fd = open_dev(path)) == -1) {
99 ret = ioctl(fd, PCITOOL_SYSTEM_INTR_INFO, &iinfo);
100 (void) close(fd);

Completed in 830 milliseconds

1234567891011>>