Searched defs:fd (Results 126 - 150 of 1651) sorted by relevance

1234567891011>>

/illumos-gate/usr/src/cmd/lp/lib/msgs/
H A Dfifo_buffs.c53 ResetFifoBuffer(int fd) argument
58 if (fd >= FifoBufferTableSize)
61 if (FifoBufferTable [fd]) {
62 FifoBufferTable [fd]->full = 0;
63 FifoBufferTable [fd]->psave =
64 FifoBufferTable [fd]->psave_end =
65 FifoBufferTable [fd]->save;
72 GetFifoBuffer(int fd) argument
74 if (fd < 0) {
78 if ((fd >
113 GrowFifoBufferTable(int fd) argument
130 NewFifoBuffer(int fd) argument
[all...]
/illumos-gate/usr/src/cmd/lp/lib/requests/
H A Dgetrequest.c68 int fd; local
102 if ((fd = open_locked(path, "r", 0)) < 0) {
113 while (fdgets(buf, BUFSIZ, fd)) {
229 close(fd);
233 close(fd);
H A Dputrequest.c67 int fd; local
119 if ((fd = open_locked(path, "w", MODE_NOREAD)) < 0) {
130 (void)fdprintf(fd, "%s%d\n", HEAD, reqbufp->copies);
134 (void)fdprintf(fd, "%s%s\n", HEAD, reqbufp->destination);
139 (void)fdprintf(fd, "%s%s\n", HEAD, *pp);
144 (void)fdprintf(fd, "%s%s\n", HEAD, reqbufp->form);
149 (void)fdprintf(fd, "%s%s\n", HEAD, NAME_IMMEDIATE);
151 (void)fdprintf(fd, "%s%s\n", HEAD, NAME_RESUME);
153 (void)fdprintf(fd, "%s%s\n", HEAD, NAME_HOLD);
158 (void)fdprintf(fd, "
[all...]
/illumos-gate/usr/src/cmd/mdb/common/mdb/
H A Dmdb_ctf_open.c59 int fd, ret; local
61 if ((fd = open(filename, O_RDWR | O_CREAT | O_TRUNC, 0644)) < 0)
64 if (ctf_write(fp, fd) == CTF_ERR) {
65 (void) close(fd);
69 ret = close(fd);
/illumos-gate/usr/src/lib/libc/port/sys/
H A Deventfd.c27 int fd; local
40 if ((fd = open("/dev/eventfd", oflags)) < 0)
44 ioctl(fd, EVENTFDIOC_SEMAPHORE, 0) != 0) {
45 (void) close(fd);
49 if (write(fd, &val, sizeof (val)) < sizeof (val)) {
50 (void) close(fd);
54 return (fd);
58 eventfd_read(int fd, eventfd_t *valp) argument
60 return (read(fd, valp, sizeof (*valp)) < sizeof (*valp) ? -1 : 0);
64 eventfd_write(int fd, eventfd_ argument
[all...]
/illumos-gate/usr/src/boot/lib/libstand/
H A Dlseek.c69 lseek(int fd, off_t offset, int where) argument
72 struct open_file *f = &files[fd];
74 if ((unsigned)fd >= SOPEN_MAX || f->f_flags == 0) {
H A Dread.c70 read(int fd, void *dest, size_t bcount) argument
72 struct open_file *f = &files[fd];
75 if ((unsigned)fd >= SOPEN_MAX || !(f->f_flags & F_READ)) {
/illumos-gate/usr/src/lib/print/libipp-listener/common/
H A Dset-job-attributes.c39 papi_attribute_t ***response, ipp_reader_t iread, void *fd)
38 ipp_set_job_attributes(papi_service_t svc, papi_attribute_t **request, papi_attribute_t ***response, ipp_reader_t iread, void *fd) argument
H A Dset-printer-attributes.c39 papi_attribute_t ***response, ipp_reader_t iread, void *fd)
38 ipp_set_printer_attributes(papi_service_t svc, papi_attribute_t **request, papi_attribute_t ***response, ipp_reader_t iread, void *fd) argument
H A Dvalidate-job.c40 papi_attribute_t ***response, ipp_reader_t iread, void *fd)
39 ipp_validate_job(papi_service_t svc, papi_attribute_t **request, papi_attribute_t ***response, ipp_reader_t iread, void *fd) argument
/illumos-gate/usr/src/lib/print/libpapi-lpd/common/
H A Dlpd-cancel.c41 int fd; local
52 if ((fd = lpd_open(svc, 'c', list, 15)) < 0)
56 if (fdgets(buf, sizeof (buf), fd) != NULL) {
68 close(fd);
77 int fd; local
84 if ((fd = lpd_open(svc, 'c', NULL, 15)) < 0)
91 while (fdgets(buf, sizeof (buf), fd) != NULL) {
118 close(fd);
/illumos-gate/usr/src/lib/efcode/efdaemon/
H A Defdaemon.c57 int c, fd, nbytes, status; local
81 if ((fd = open(dev_fcode_file, O_RDONLY)) < 0) {
92 close(fd);
125 while ((fd = open(dev_fcode_file, O_RDONLY)) < 0) {
137 nbytes = read(fd, &tc, sizeof (tc));
141 close(fd);
174 if (ioctl(fd, FC_SET_FCODE_ERROR, &error) < 0) {
181 close(fd);
187 fcntl(fd, F_DUP2FD, 0);
/illumos-gate/usr/src/lib/fm/topo/modules/common/disk/
H A Ddisk_mptsas.c39 int fd, err, i; local
46 if ((fd = open(devctl, O_RDWR)) == -1) {
52 if (ioctl(fd, MPTIOCTL_GET_DISK_INFO, &gdi) == -1) {
55 (void) close(fd);
64 (void) close(fd);
68 if (ioctl(fd, MPTIOCTL_GET_DISK_INFO, &gdi) == -1) {
72 (void) close(fd);
90 (void) close(fd);
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/krb5/os/
H A Dlock_file.c65 krb5_lock_file(krb5_context context, int fd, int mode) argument
111 if (fcntl(fd, lock_cmd, &lock_arg) == -1) {
123 if (flock(fd, lock_flag) == -1)
132 krb5_lock_file(context, fd, mode)
134 int fd;
H A Dsafechown.c26 int fd; local
30 if ((fd = open(src, O_RDONLY, 0)) == -1)
33 if (fstat(fd, &fdbuf)) {
34 close(fd);
40 close(fd);
45 close(fd);
53 close(fd);
58 if (fchown(fd, uid, gid)) {
59 close(fd);
64 if (fchmod(fd, (mode_
[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/lib/libsocket/socket/
H A Dsocket.c95 int fd; local
107 fd = _so_socket(family, type, protocol, NULL, version);
108 if (fd == -1) {
131 fd = _so_socket(family, type, protocol, devpath, version);
133 if (fd == -1) {
138 if (_setsockopt(fd, SOL_SOCKET, SO_PROTOTYPE,
140 (void) close(fd);
151 return (fd);
/illumos-gate/usr/src/lib/lvm/libmeta/common/
H A Dmeta_admin.c76 /* return fd */
103 int fd; local
106 fd = open_admin(&status);
107 assert(fd >= 0);
128 int fd; local
131 fd = open_admin(&status);
133 assert(fd >= 0);
/illumos-gate/usr/src/lib/libnls/common/
H A Dnlsrequest.c65 nlsrequest(int fd, char *svc_code) argument
93 if (t_snd(fd, buf, len, 0) < len) {
108 if (t_rcv(fd, p, sizeof(char), &flags) != sizeof(char)) {
/illumos-gate/usr/src/lib/libnsl/nsl/
H A D_conn_util.c64 int fd; local
67 fd = tiptr->ti_fd;
74 if (_t_is_event(fd, tiptr) < 0)
132 if (putmsg(fd, ctlbufp,
138 if (_t_is_ok(fd, tiptr, T_CONN_REQ) < 0)
160 int retval, fd, sv_errno; local
165 fd = tiptr->ti_fd;
194 if ((retval = getmsg(fd, ctlbufp, &databuf, &flg)) < 0) {
H A Dt_accept.c50 int fd,
66 if ((tiptr = _t_checkfd(fd, 0, api_semantics)) == NULL)
92 * For fd == resfd, state should be T_INCON
93 * For fd != resfd,
94 * fd state should be T_INCON
100 if ((fd == resfd && tiptr->ti_state != T_INCON) ||
101 (fd != resfd &&
113 * If fd != resfd, and a resfd bound to a protocol address is
118 if (fd != resfd && restiptr->ti_state == T_IDLE &&
126 if (fd
49 _tx_accept( int fd, int resfd, const struct t_call *call, int api_semantics ) argument
[all...]
H A Dt_bind.c49 int fd,
65 if ((tiptr = _t_checkfd(fd, 0, api_semantics)) == NULL)
133 if (_t_do_ioctl(fd, ctlbuf.buf, size, TI_BIND, &retlen) < 0) {
163 (void) _tx_unbind_locked(fd, tiptr, &ctlbuf);
48 _tx_bind( int fd, const struct t_bind *req, struct t_bind *ret, int api_semantics ) argument
H A Dt_connect.c55 int fd,
68 if ((tiptr = _t_checkfd(fd, 0, api_semantics)) == NULL)
118 if ((fctlflg = fcntl(fd, F_GETFL, 0)) < 0) {
157 if (_t_do_postconn_sync(fd, tiptr) < 0)
54 _tx_connect( int fd, const struct t_call *sndcall, struct t_call *rcvcall, int api_semantics ) argument
H A Dt_getinfo.c54 _tx_getinfo(int fd, struct t_info *info, int api_semantics) argument
63 if ((tiptr = _t_checkfd(fd, 0, api_semantics)) == 0)
84 retval = _t_do_ioctl(fd, ctlbuf.buf,
H A Dt_listen.c47 _tx_listen(int fd, struct t_call *call, int api_semantics) argument
58 if ((tiptr = _t_checkfd(fd, 0, api_semantics)) == NULL)
140 if ((retval = getmsg(fd, &ctlbuf, &databuf, &flg)) < 0) {

Completed in 520 milliseconds

1234567891011>>