Searched defs:fd (Results 76 - 100 of 1651) sorted by relevance

1234567891011>>

/illumos-gate/usr/src/boot/sys/boot/efi/loader/arch/i386/
H A Di386_copy.c56 i386_readin(const int fd, vm_offset_t dest, const size_t len) argument
58 return (read(fd, PTOV(dest), len));
/illumos-gate/usr/src/boot/sys/boot/i386/libi386/
H A Di386_copy.c65 i386_readin(const int fd, vm_offset_t dest, const size_t len) argument
72 return (read(fd, PTOV(dest), len));
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/krb5/os/
H A Dkrbfileio.c19 int fd; local
31 fd = open(pathname, open_flag | O_BINARY, 0600);
32 if (fd == -1) {
35 close(fd);
H A Dread_msg.c39 int fd = *( (int *) fdp); local
41 if ((len2 = krb5_net_read(context, fd, (char *)&len, 4)) != 4)
56 if ((len2 = krb5_net_read(context, fd, buf, ilen)) != ilen) {
/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/libwanbootutil/common/
H A Dwbio.c35 * Write `buflen' bytes from `buffer' to the file represented by `fd'.
39 wbio_nwrite(int fd, const void *buffer, size_t buflen) argument
46 nbytes = write(fd, &buf[nwritten], buflen - nwritten);
55 * Read `buflen' bytes into `buffer' from the file represented by `fd'.
59 wbio_nread(int fd, void *buffer, size_t buflen) argument
66 nbytes = read(fd, &buf[nread], buflen - nread);
81 int fd; local
83 if ((fd = open("/dev/urandom", O_RDONLY)) == -1) {
87 if (wbio_nread(fd, buffer, buflen) != 0) {
88 (void) close(fd);
[all...]
/illumos-gate/usr/src/lib/lvm/libmeta/common/
H A Dmeta_devstamp.c43 int fd; local
52 if ((fd = open(np->rname, O_RDONLY | O_NDELAY, 0)) < 0)
56 if (meta_getvtoc(fd, np->cname, &vtocbuf, &partno, ep) == -1) {
57 (void) close(fd);
62 (void) close(fd); /* sd/ssd bug */
82 int fd; local
92 if ((fd = open(np->rname, O_RDWR | O_NDELAY, 0)) < 0)
95 if (meta_getvtoc(fd, np->cname, &vtocbuf, &partno, ep) == -1) {
96 (void) close(fd);
105 if (meta_setvtoc(fd, n
[all...]
/illumos-gate/usr/src/lib/libnsl/nsl/
H A Dt_rcvconnect.c52 _tx_rcvconnect(int fd, struct t_call *call, int api_semantics) argument
59 if ((tiptr = _t_checkfd(fd, 0, api_semantics)) == NULL)
100 if (_t_do_postconn_sync(fd, tiptr) < 0)
H A Dt_sndreldata.c47 _tx_sndreldata(int fd, struct t_discon *discon, int api_semantics) argument
54 if ((tiptr = _t_checkfd(fd, 0, api_semantics)) == NULL)
71 if (_t_look_locked(fd, tiptr, 0,
104 if (putmsg(fd, &ctlbuf, NULL, 0) < 0) {
/illumos-gate/usr/src/lib/libnsl/rpc/
H A Drpc_td.c44 __td_setnodelay(int fd) argument
54 if ((state = t_getstate(fd)) == -1)
92 rval = t_optmgmt(fd, &t_optreq, &t_optret);
/illumos-gate/usr/src/lib/libproc/common/
H A Dpr_fcntl.c40 pr_fcntl(struct ps_prochandle *Pr, int fd, int cmd, void *argp) argument
48 return (fcntl(fd, cmd, argp));
51 adp->arg_value = fd;
H A Dpr_ioctl.c39 pr_ioctl(struct ps_prochandle *Pr, int fd, int code, void *buf, size_t size) argument
47 return (ioctl(fd, code, buf));
49 adp->arg_value = fd;
/illumos-gate/usr/src/lib/libresolv2/common/bsd/
H A Dftruncate.c32 __ftruncate(int fd, long wantsize) { argument
36 if ((cursize = lseek(fd, 0L, 2)) == -1)
41 if (lseek(fd, wantsize - 1, 0) == -1 ||
42 write(fd, "", 1) == -1) {
56 return (fcntl(fd, F_FREESP, &fl));
/illumos-gate/usr/src/lib/libbc/libc/stdio/4.2/
H A Dfopen.c57 int plus, oflag, fd; local
75 if ((fd = open(file, oflag, 0666)) < 0)
78 iop->_file = fd;
81 if ((lseek(fd,0L,2)) < 0) {
82 (void) close(fd);
/illumos-gate/usr/src/lib/libbc/libc/stdio/sys5/
H A Dfopen.c51 int plus, oflag, fd; local
69 if ((fd = open(file, oflag, 0666)) < 0)
72 iop->_file = fd;
78 if ((lseek(fd,0L,2)) < 0) {
79 (void) close(fd);
/illumos-gate/usr/src/lib/libbsm/common/
H A Daudit_settid.c42 audit_settid(int fd) argument
55 if (getpeername(fd, (struct sockaddr *)&peer, (socklen_t *)&peerlen)
61 if (getsockname(fd, (struct sockaddr *)&sock, (socklen_t *)&socklen)
/illumos-gate/usr/src/lib/libc/i386/sys/
H A Dxstat.c63 _fxstat(int version, int fd, struct stat *statb) argument
69 return (fstat(fd, statb));
/illumos-gate/usr/src/lib/libc/port/gen/
H A Dfdopendir.c50 fdopendir(int fd) argument
64 if (fcntl(fd, F_SETFD, FD_CLOEXEC) < 0)
66 if (fstat64(fd, &sbuf) < 0)
73 dirp->dd_fd = fd;
H A Dposix_fallocate.c39 fallocate_errno(int fd) argument
44 if (fstat64(fd, &statb) != 0) /* can't happen? */
57 posix_fallocate(int fd, off_t offset, off_t len) argument
70 if (fcntl(fd, F_ALLOCSP, &lck) == -1) {
72 error = fallocate_errno(fd);
83 posix_fallocate64(int fd, off64_t offset, off64_t len) argument
96 if (fcntl(fd, F_ALLOCSP64, &lck) == -1) {
98 error = fallocate_errno(fd);
/illumos-gate/usr/src/lib/libc/port/rt/
H A Dshm.c41 int fd; local
51 fd = __pos4obj_open(path, SHM_DATA_TYPE, oflag, mode, &crflag);
53 if (fd < 0) {
58 if ((flags = fcntl(fd, F_GETFD)) < 0 ||
59 fcntl(fd, F_SETFD, flags | FD_CLOEXEC) < 0) {
61 (void) __close_nc(fd);
67 (void) __close_nc(fd);
71 return (fd);
/illumos-gate/usr/src/lib/libc/port/stdio/
H A D_findbuf.c54 int fd = GET_FD(iop); local
66 if (fd < _NFILE)
67 buf = _smbuf[fd];
73 else if (fd < 2 && (tty = isatty(fd))) {
74 buf = (fd == 0) ? _sibuf : _sobuf; /* special buffer */
85 if (fstat64(fd, &stbuf) == 0 && stbuf.st_blksize > 0)
100 if (!(iop->_flag & _IONBF) && ((tty != -1) ? tty : isatty(fd)))
H A Dfdopen.c56 fdopen(int fd, const char *type) /* associate file desc. with stream */ argument
64 if (fcntl(fd, F_GETFD) == -1)
81 (void) lseek64(fd, (off64_t)0, SEEK_END);
94 iop->_file = fd;
96 if (fd <= _FILE_FD_MAX) {
97 SET_FILE(iop, fd);
98 } else if (_file_set(iop, fd, type) != 0) {
H A Dsetvbuf.c50 int fd = GET_FD(iop); local
59 if (fd < 2) {
61 buf = (fd == 0) ? _sibuf : _sobuf;
65 if (fd < _NFILE) {
66 buf = _smbuf[fd];
/illumos-gate/usr/src/lib/libc/port/sys/
H A Dchmod.c35 fchmodat(int fd, const char *path, mode_t mode, int flag) argument
37 return (syscall(SYS_fchmodat, fd, path, mode, flag));
53 fchmod(int fd, mode_t mode) argument
56 return (syscall(SYS_fchmod, fd, mode));
58 return (fchmodat(fd, NULL, mode, 0));
H A Dfcntl.c62 s_ioctl(int fd, int cmd, intptr_t arg) argument
64 return (ioctl(fd, cmd, arg));
69 __fcntl(int fd, int cmd, ...) argument
83 return (ioctl(fd, FIOSETOWN, &pid));
86 if (ioctl(fd, FIOGETOWN, &res) < 0)
91 return (syscall(SYS_fcntl, fd, cmd, arg));

Completed in 108 milliseconds

1234567891011>>