Searched refs:fd (Results 351 - 375 of 835) sorted by relevance

<<11121314151617181920>>

/osnet-11/usr/src/lib/auditd_plugins/remote/
H A Dtransport.c278 DPRINT((dfile, "Socket created, fd=%d, connecting..\n", sock));
286 DPRINT((dfile, "Connected to %s via fd=%d\n", host->h_name,
419 int fd; local
427 fd = *fdptr;
444 if (send_timeout(fd, out_buf, (lensz + tok->length))) {
458 recv_token(int fd, gss_buffer_t tok) argument
462 if (recv_timeout(fd, (char *)&len, sizeof (len))) {
483 if (recv_timeout(fd, tok->value, len)) {
523 fds.fd = sockfd;
552 send_timeout(int fd, cons argument
601 recv_timeout(int fd, char *buf, size_t len) argument
651 read_fd(int fd, char *buf, size_t len) argument
685 write_fd(int fd, char *buf, size_t len) argument
1237 init_poll(int fd) argument
[all...]
/osnet-11/usr/src/cmd/perl/5.8.4/distrib/ext/POSIX/
H A DPOSIX.xs107 # define ttyname(fd) (isatty(fd) > 0 ? getname(fd,ttnambuf,0) : NULL)
634 getattr(termios_ref, fd = 0)
636 int fd
638 RETVAL = tcgetattr(fd, termios_ref);
643 setattr(termios_ref, fd = 0, optional_actions = 0)
645 int fd
648 RETVAL = tcsetattr(fd, optional_actions, termios_ref);
1418 close(fd)
[all...]
/osnet-11/usr/src/lib/madv/common/
H A Dmadv.c171 int fd = open("/proc/self/auxv", O_RDONLY); local
173 if (fd >= 0) {
174 while (read(fd, &auxb, sizeof (auxv_t)) == sizeof (auxv_t)) {
180 (void) close(fd);
191 int fd; local
195 fd = open("/proc/self/status", O_RDONLY);
197 if (fd >= 0) {
198 if (read(fd, &ps, sizeof (ps)) == sizeof (ps)) {
205 (void) close(fd);
251 int fd; local
724 mmap(void *addr, size_t len, int prot, int flags, int fd, off_t pos) argument
776 mmap64(void *addr, size_t len, int prot, int flags, int fd, off64_t pos) argument
[all...]
/osnet-11/usr/src/lib/libc/port/aio/
H A Daio.c235 _aio_close(int fd) argument
237 if (fd < 0) /* avoid cancelling everything */
243 (void) aiocancel_all(fd);
250 CLEAR_KAIO_SUPPORTED(fd);
314 aioread(int fd, caddr_t buf, int bufsz, off_t offset, int whence, argument
317 return (_aiorw(fd, buf, bufsz, offset, whence, resultp, AIOREAD));
321 aiowrite(int fd, caddr_t buf, int bufsz, off_t offset, int whence, argument
324 return (_aiorw(fd, buf, bufsz, offset, whence, resultp, AIOWRITE));
329 aioread64(int fd, caddr_t buf, int bufsz, off64_t offset, int whence, argument
332 return (_aiorw(fd, bu
336 aiowrite64(int fd, caddr_t buf, int bufsz, off64_t offset, int whence, aio_result_t *resultp) argument
344 _aiorw(int fd, caddr_t buf, int bufsz, offset_t offset, int whence, aio_result_t *resultp, int mode) argument
685 aiocancel_all(int fd) argument
761 _aio_cancel_work(aio_worker_t *aiowp, int fd, int *canceled, int *done) argument
[all...]
/osnet-11/usr/src/lib/librcm/
H A Dlibrcm_event.c332 int service_door, fd; local
336 fd = open(door_name, O_EXCL|O_CREAT, S_IREAD|S_IWRITE);
337 if ((fd == -1) && (errno != EEXIST)) {
340 (void) close(fd);
379 revoke_event_service(int fd) argument
384 if (door_info(fd, &info) == -1) {
388 if (door_revoke(fd) != 0) {
/osnet-11/usr/src/lib/libshell/common/bltins/
H A Dpoll_solaris.c49 "poll examines the given file descriptor in the subscript \b.fd\b "
59 "[+?\b.fd\b # file descriptor]"
101 "[+POLLNVAL?The specified fd value does not belong to an "
108 "[+?If the value fd is less than 0, events is ignored and "
246 int fd; local
324 np = nv_open_fmt(shp->var_tree, NV_NOFAIL|NV_NOADD, "%s[%s].fd", varname, subname);
326 errormsg(SH_DICT, ERROR_system(1), "missing pollfd %s[%s].fd", varname, subname);
327 fd = (int)nv_getnum(np);
328 if (fd < 0 || fd > OPEN_MA
[all...]
/osnet-11/usr/src/lib/libsmbfs/common/
H A Dsmbfs_keychain.c61 int err, fd, sz; local
66 fd = -1;
121 fd = smbfs_open_driver();
122 if (fd < 0) {
128 if (ioctl(fd, cmd, &pk) < 0) {
141 if (fd != -1)
142 (void) close(fd);
H A Dsmbfs_file.c73 smbfs_fh_close(int fd) argument
77 if (ioctl(fd, SMBIOC_CLOSEFH, NULL) == -1)
80 (void) close(fd);
99 * Get fd then duplicate the driver session and tree bindings.
144 int fd = -1; local
246 fd = smbfs_fh_ntcreate(ctx, ntpath, req_acc,
255 return (fd);
311 smbfs_fh_read(int fd, void *buf, size_t count, off_t offset) argument
321 if (ioctl(fd, SMBIOC_READ, &rwrq) == -1)
328 smbfs_fh_write(int fd, cons argument
354 smbfs_fh_xactnp(int fd, int tdlen, const char *tdata, int *rdlen, char *rdata, int *more) argument
[all...]
/osnet-11/usr/src/lib/libc/port/gen/
H A Dattrat.c58 __openattrdirat(int fd, const char *name) argument
60 return (syscall(SYS_openat, fd, name, FXATTRDIROPEN, 0));
176 cgetattr(int fd, nvlist_t **response) argument
186 if ((error = fstat(fd, &buf)) != 0)
192 bytesread = read(fd, nv_response, nv_responselen);
210 csetattr(int fd, nvlist_t *request) argument
223 byteswritten = write(fd, nv_request, nv_requestlen);
H A Dnlspath_checks.c87 int fd; local
101 fd = open(path, O_RDONLY);
103 if (fd < 0)
106 if (fstat64(fd, statbuf) == -1) {
107 (void) close(fd);
189 (void) close(fd);
202 return (fd);
/osnet-11/usr/src/cmd/perl/5.8.4/distrib/
H A Dperlio.c133 * the translation mode of the fd in the Borland RTL (heavy
257 int fd = PerlLIO_dup(PerlIO_fileno(f));
258 if (fd >= 0) {
260 int omode = fcntl(fd, F_GETFL);
266 return PerlIO_fdopen(fd, mode);
285 PerlIO_openn(pTHX_ const char *layers, const char *mode, int fd, argument
297 fd = PerlLIO_open3(name, imode, perm);
298 if (fd >= 0)
299 return PerlIO_fdopen(fd, (char *) mode + 1);
310 return PerlIO_fdopen(fd, (cha
398 int fd = fileno(stdio); local
408 int fd = PerlIO_fileno(pio); local
1476 PerlIO_openn(pTHX_ const char *layers, const char *mode, int fd, int imode, int perm, PerlIO *f, int narg, SV **args) argument
1870 PerlIORaw_open(pTHX_ PerlIO_funcs *self, PerlIO_list_t *layers, IV n, const char *mode, int fd, int imode, int perm, PerlIO *old, int narg, SV **args) argument
2209 PerlIOUnix_refcnt_inc(int fd) argument
2224 PerlIOUnix_refcnt_dec(int fd) argument
2276 int fd; /* UNIX like file descriptor */ member in struct:__anon95
2343 PerlIOUnix_setfd(pTHX_ PerlIO *f, int fd, int imode) argument
2386 int fd = PerlIOSelf(f, PerlIOUnix)->fd; local
2406 PerlIOUnix_open(pTHX_ PerlIO_funcs *self, PerlIO_list_t *layers, IV n, const char *mode, int fd, int imode, int perm, PerlIO *f, int narg, SV **args) argument
2457 int fd = os->fd; local
2476 int fd = PerlIOSelf(f, PerlIOUnix)->fd; local
2502 int fd = PerlIOSelf(f, PerlIOUnix)->fd; local
2527 int fd = PerlIOSelf(f, PerlIOUnix)->fd; local
2639 int fd = PerlIO_fileno(n); local
2672 int fd = PerlLIO_dup(fileno(stdio)); local
2696 PerlIOStdio_open(pTHX_ PerlIO_funcs *self, PerlIO_list_t *layers, IV n, const char *mode, int fd, int imode, int perm, PerlIO *f, int narg, SV **args) argument
2799 int fd = fileno(stdio); local
2896 int fd = fileno(stdio); local
3390 int fd = PerlIO_fileno(f); local
3404 PerlIOBuf_open(pTHX_ PerlIO_funcs *self, PerlIO_list_t *layers, IV n, const char *mode, int fd, int imode, int perm, PerlIO *f, int narg, SV **args) argument
4364 int fd = PerlIO_fileno(f); local
4717 PerlIO_fdopen(int fd, const char *mode) argument
4847 int fd = -1; local
4972 vfprintf(FILE *fd, char *pat, char *args) argument
[all...]
/osnet-11/usr/src/lib/storage/liba5k/common/
H A Dmon.c105 int status, size, fd; local
116 if ((fd = g_object_open(path, O_NDELAY | O_RDWR)) == -1)
124 (void) close(fd);
128 if (status = g_scsi_mode_sense_cmd(fd, *pg_buf, size,
130 (void) close(fd);
139 (void) close(fd);
143 if (status = g_scsi_mode_sense_cmd(fd, *pg_buf, size,
145 (void) close(fd);
149 (void) close(fd);
526 int err, write, fd, front_inde local
1188 int fd, status, err; local
1316 int fd, status; local
1375 int fd, status; local
1482 int fd, status; local
2303 l_get_envsen_page(int fd, uchar_t *buf, int buf_size, uchar_t page_code, int verbose) argument
2375 int fd, rval; local
2664 l_persistent_check(int fd, struct l_disk_state_struct *l_disk_state, int verbose) argument
2731 int fd, status = 0, local_state = 0; local
4086 check_file(int fd, int verbose, uchar_t **buf_ptr, int dl_info_offset) argument
4176 check_dpm_file(int fd) argument
4274 ib_download_code_cmd(int fd, int promid, int off, uchar_t *buf_ptr, int buf_len, int sp) argument
4309 dak_download_code_cmd(int fd, uchar_t *buf_ptr, int buf_len) argument
4571 int fd, status; local
4648 int j, al_pa, al_pa1, box_id, fd, disk_flag = 0; local
[all...]
/osnet-11/usr/src/lib/cfgadm_plugins/pci/common/
H A Dcfga.c275 int fd; local
283 if ((fd = open(ap_id, O_RDWR)) == -1) {
284 DBG(2, ("open = ap_id%s, fd%d\n", ap_id, fd));
289 if (fstat(fd, &statbuf) == -1) {
291 (void) close(fd);
294 (void) close(fd);
877 int fd; local
886 if ((fd = open(ap_id, O_RDWR)) == -1) {
887 DBG(2, ("open = ap_id%s, fd
1008 int len, fd, i = 0, repeat = 0; local
1483 int fd; local
1510 int fd; local
[all...]
/osnet-11/usr/src/cmd/sendmail/aux/
H A Dmailstats.c55 int ch, fd; local
222 fd = open(sfile, O_RDONLY, 0600);
223 if ((fd < 0) || (i = read(fd, &stats, sizeof stats)) < 0)
234 if ((i = read(fd, &stats, sizeof stats)) < 0)
341 (void) close(fd);
344 fd = open(sfile, O_RDWR | O_TRUNC, 0600);
345 if (fd >= 0)
346 (void) close(fd);
/osnet-11/usr/src/lib/mpss/common/
H A Dmpss.c116 int fd = open("/proc/self/auxv", O_RDONLY); local
118 if (fd >= 0) {
119 while (read(fd, &auxb, sizeof (auxv_t)) == sizeof (auxv_t)) {
125 (void) close(fd);
256 int fd; local
262 fd = open("/proc/self/psinfo", O_RDONLY);
264 if (fd >= 0) {
265 if (read(fd, &pi, sizeof (pi)) == sizeof (pi)) {
281 (void) close(fd);
/osnet-11/usr/src/lib/libproc/common/
H A Dpr_mmap.c40 void *addr, size_t len, int prot, int flags, int fd, off_t off)
48 return (mmap(addr, len, prot, flags, fd, off));
78 adp++; /* fd argument */
79 adp->arg_value = (long)fd;
39 pr_mmap(struct ps_prochandle *Pr, void *addr, size_t len, int prot, int flags, int fd, off_t off) argument
/osnet-11/usr/src/lib/libnsl/dial/
H A Ddial.c35 * dial() returns an fd for an open tty-line connected to the
129 static int rlfd; /* fd for remote comm line */
253 * undial(fd)
256 undial(int fd) argument
258 sethup(fd);
260 cleanup(fd);
/osnet-11/usr/src/lib/libnsl/nsl/
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,
/osnet-11/usr/src/lib/libnsl/rpc/
H A Dclnt_simple.c126 int fd; local
147 if (CLNT_CONTROL(rcp->client, CLGET_FD, (char *)&fd))
148 (void) fcntl(fd, F_SETFD, 1); /* close on exec */
/osnet-11/usr/src/lib/libdladm/common/
H A Dflowattr.c84 dladm_check_ip_addr(char *addr_str, boolean_t local, flow_desc_t *fd) argument
114 addr = &fd->fd_local_addr;
115 netmask = (uchar_t *)&fd->fd_local_netmask;
118 addr = &fd->fd_remote_addr;
119 netmask = (uchar_t *)&fd->fd_remote_netmask;
125 fd->fd_ipversion = IPV4_VERSION;
131 fd->fd_ipversion = IPV6_VERSION;
143 fd->fd_mask |= mask;
302 dladm_check_dsfield(char *str, flow_desc_t *fd) argument
321 fd
[all...]
/osnet-11/usr/src/lib/gss_mechs/mech_krb5/krb5/os/
H A Dgenaddrs.c85 SOCKET fd = (SOCKET) infd; local
95 if ((retval = getsockname(fd, (GETSOCKNAME_ARG2_TYPE *) &lsaddr,
115 if ((retval = getpeername(fd, (GETPEERNAME_ARG2_TYPE *) &rsaddr,
/osnet-11/usr/src/lib/krb5/plugins/kdb/db2/libdb2/btree/
H A Dbt_close.c68 int fd; local
103 fd = t->bt_fd;
106 return (close(fd) ? RET_ERROR : RET_SUCCESS);
/osnet-11/usr/src/lib/krb5/ss/
H A Dlist_rqs.c48 int fd; local
81 fd = ss_pager_create();
82 output = fdopen(fd, "w");
/osnet-11/usr/src/grub/grub2/grub-core/gnulib/
H A Dstdio-write.c51 int fd = fileno (stream); \
52 if (fd >= 0 \
53 && GetFileType ((HANDLE) _get_osfhandle (fd)) == FILE_TYPE_PIPE)\
/osnet-11/usr/src/cmd/perl/5.8.4/distrib/ext/Cwd/
H A DCwd.xs82 int fd;
84 if ((fd = open(".", O_RDONLY)) < 0) {
180 if (fchdir(fd) < 0) {
191 /* It's okay if the close fails, what's an fd more or less? */
193 (void)close(fd);
199 (void)fchdir(fd);
206 (void)close(fd);

Completed in 97 milliseconds

<<11121314151617181920>>