/illumos-gate/usr/src/uts/common/syscall/ |
H A D | ioctl.c | 61 ioctl(int fdes, int cmd, intptr_t arg) argument 70 if ((fp = getf(fdes)) == NULL) 94 releasef(fdes); 99 releasef(fdes); 102 releasef(fdes); 108 releasef(fdes); 117 releasef(fdes); 131 releasef(fdes); 137 releasef(fdes); 151 releasef(fdes); 159 stty(int fdes, intptr_t arg) argument 165 gtty(int fdes, intptr_t arg) argument [all...] |
H A D | strcalls.c | 53 int getmsg(int fdes, struct strbuf *ctl, struct strbuf *data, int *flagsp); 54 int putmsg(int fdes, struct strbuf *ctl, struct strbuf *data, int flags); 55 int getpmsg(int fdes, struct strbuf *ctl, struct strbuf *data, int *prip, 57 int putpmsg(int fdes, struct strbuf *ctl, struct strbuf *data, int pri, 60 static int msgio(int fdes, struct strbuf *ctl, struct strbuf *data, int *rval, 64 getmsg(int fdes, struct strbuf *ctl, struct strbuf *data, int *flagsp) argument 90 if ((error = msgio(fdes, ctl, data, &rv, FREAD, &pri, 108 putmsg(int fdes, struct strbuf *ctl, struct strbuf *data, int flags) argument 132 error = msgio(fdes, ctl, data, &rv, FWRITE, &pri, &realflags); 140 getpmsg(int fdes, struc argument 168 putpmsg(int fdes, struct strbuf *ctl, struct strbuf *data, int intpri, int flags) argument 190 msgio(int fdes, struct strbuf *ctl, struct strbuf *data, int *rval, int mode, unsigned char *prip, int *flagsp) argument 293 getmsg32(int fdes, struct strbuf32 *ctl, struct strbuf32 *data, int32_t *flagsp) argument 337 putmsg32(int fdes, struct strbuf32 *ctl, struct strbuf32 *data, int32_t flags) argument 369 getpmsg32(int fdes, struct strbuf32 *ctl, struct strbuf32 *data, int32_t *prip, int32_t *flagsp) argument 397 putpmsg32(int fdes, struct strbuf32 *ctl, struct strbuf32 *data, int32_t intpri, int32_t flags) argument 419 msgio32(int fdes, struct strbuf32 *ctl, struct strbuf32 *data, int *rval, int mode, unsigned char *prip, int *flagsp) argument [all...] |
H A D | close.c | 51 close(int fdes) argument 55 if ((error = closeandsetf(fdes, NULL)) != 0)
|
H A D | lseek.c | 206 lseek32(int32_t fdes, off32_t off, int32_t stype) argument 212 if ((fp = getf(fdes)) == NULL) 234 releasef(fdes); 244 llseek32(int32_t fdes, uint32_t off1, uint32_t off2, int stype) argument 255 if ((fp = getf(fdes)) == NULL) 259 releasef(fdes); 274 lseek64(int fdes, off_t off, int stype) argument 283 if ((fp = getf(fdes)) == NULL) 330 releasef(fdes); 360 releasef(fdes); [all...] |
H A D | statvfs.c | 190 fstatvfs(int fdes, struct statvfs *sbp) argument 195 if ((fp = getf(fdes)) == NULL) 202 releasef(fdes); 241 fstatvfs64(int fdes, struct statvfs64 *sbp) argument 246 if ((fp = getf(fdes)) == NULL) 249 releasef(fdes); 315 fstatvfs32(int fdes, struct statvfs32 *sbp) argument 320 if ((fp = getf(fdes)) == NULL) 323 releasef(fdes); 356 fstatvfs64_32(int fdes, struc argument [all...] |
H A D | pathconf.c | 128 fpathconf(int fdes, int name) argument 133 if ((fp = getf(fdes)) == NULL) 136 releasef(fdes);
|
H A D | rw.c | 75 read(int fdes, void *cbuf, size_t count) argument 90 if ((fp = getf(fdes)) == NULL) 201 releasef(fdes); 211 write(int fdes, void *cbuf, size_t count) argument 226 if ((fp = getf(fdes)) == NULL) 330 releasef(fdes); 337 pread(int fdes, void *cbuf, size_t count, off_t offset) argument 359 if ((fp = getf(fdes)) == NULL) 470 releasef(fdes); 477 pwrite(int fdes, voi argument 619 readv(int fdes, struct iovec *iovp, int iovcnt) argument 777 writev(int fdes, struct iovec *iovp, int iovcnt) argument 926 preadv(int fdes, struct iovec *iovp, int iovcnt, off_t offset, off_t extended_offset) argument 1108 pwritev(int fdes, struct iovec *iovp, int iovcnt, off_t offset, off_t extended_offset) argument 1322 pread64(int fdes, void *cbuf, size32_t count, uint32_t offset_1, uint32_t offset_2) argument 1445 pwrite64(int fdes, void *cbuf, size32_t count, uint32_t offset_1, uint32_t offset_2) argument 1593 read32(int32_t fdes, caddr32_t cbuf, size32_t count) argument 1600 write32(int32_t fdes, caddr32_t cbuf, size32_t count) argument 1607 pread32(int32_t fdes, caddr32_t cbuf, size32_t count, off32_t offset) argument 1615 pwrite32(int32_t fdes, caddr32_t cbuf, size32_t count, off32_t offset) argument 1623 readv32(int32_t fdes, caddr32_t iovp, int32_t iovcnt) argument 1629 writev32(int32_t fdes, caddr32_t iovp, int32_t iovcnt) argument [all...] |
H A D | statfs.c | 93 fstatfs32(int32_t fdes, struct statfs32 *sbp, int32_t len, int32_t fstyp) argument 100 if ((fp = getf(fdes)) == NULL) 103 releasef(fdes);
|
H A D | acl.c | 99 facl(int fdes, int cmd, int nentries, void *aclbufp) argument 105 if ((fp = getf(fdes)) == NULL) 108 releasef(fdes); 113 releasef(fdes);
|
H A D | fcntl.c | 65 fcntl(int fdes, int cmd, intptr_t arg) argument 104 if ((error = f_getfd_error(fdes, &flag)) == 0) 109 error = f_setfd_error(fdes, (int)arg); 114 if ((error = f_getfl(fdes, &flag)) == 0) { 124 if ((error = f_getfl(fdes, &flag)) == 0) { 132 if ((error = f_badfd(fdes, &fdres, (int)arg)) == 0) 141 if ((fp = getf(fdes)) == NULL) { 185 if (fdes == iarg) { 194 if (fdes == iarg) { 202 * We can't hold our getf(fdes) acros [all...] |
/illumos-gate/usr/src/lib/libc/inc/ |
H A D | asyncio.h | 215 #define VALID_FD(fdes) ((fdes) >= 0 && (fdes) < MAX_KAIO_FDS) 217 #define KAIO_SUPPORTED(fdes) \ 218 (!VALID_FD(fdes) || \ 219 ((_kaio_supported[(fdes) / KAIO_FDARRAY_ELEM_SIZE] & \ 220 (uint32_t)(1 << ((fdes) % KAIO_FDARRAY_ELEM_SIZE))) == 0)) 222 #define SET_KAIO_NOT_SUPPORTED(fdes) \ 223 if (VALID_FD(fdes)) \ 224 _kaio_supported[(fdes) / KAIO_FDARRAY_ELEM_SIZ [all...] |
/illumos-gate/usr/src/uts/common/io/scsi/adapters/iscsi/ |
H A D | nvfile.c | 90 static file_t *nvf_getf(int fdes); 91 static void nvf_releasef(int fdes); 95 static int nvf_close(int fdes); 98 static ssize_t nvf_read(int fdes, void *cbuf, ssize_t count); 99 static ssize_t nvf_write(int fdes, void *cbuf, ssize_t count); 1216 nvf_getf(int fdes) argument 1221 if ((fdes >= 0) && (fdes < NVF_GETF)) { 1222 fp = nvf_fd[fdes]; 1235 nvf_releasef(int fdes) argument 1270 nvf_freef(int fdes) argument 1295 int fdes = -1; local 1347 nvf_close(int fdes) argument 1389 nvf_rw(int fdes, void *cbuf, ssize_t count, enum uio_rw rw) argument 1416 nvf_write(int fdes, void *cbuf, ssize_t count) argument 1425 nvf_read(int fdes, void *cbuf, ssize_t count) argument [all...] |
/illumos-gate/usr/src/cmd/sh/ |
H A D | word.c | 375 if (f->feof || f->fdes < 0){ 382 if (f->fdes != input || !isatty(input)) { 383 close(f->fdes); 384 f->fdes = -1; 428 } while ((len = read(f->fdes, f->fbuf + rest, toread)) < 0 && trapnote); 437 ((fflags = fcntl(f->fdes, F_GETFL, 0)) & O_NDELAY)) { 439 fcntl(f->fdes, F_SETFL, fflags); 444 fflags = fcntl(f->fdes, F_GETFL, 0); 446 fcntl(f->fdes, F_SETFL, fflags);
|
H A D | mode.h | 96 int fdes; member in struct:fileblk 111 int fdes; member in struct:tempblk 119 int fdes; member in struct:filehdr
|
H A D | io.c | 51 f->fdes = fd; 65 (f = standin)->fdes = -1; 90 if (f->fdes >= 0) 91 close(f->fdes); 103 tb->fdes = fd; 112 close(tmpfptr->fdes);
|
H A D | defs.h | 339 #define input (standin->fdes)
|
/illumos-gate/usr/src/cmd/make/bin/ |
H A D | state.cc | 168 int fdes = mkstemp(buffer); local 169 if ((fdes < 0) || (fd = fdopen(fdes, "w")) == NULL) { 215 int fdes = mkstemp(buffer); local 216 if ((fdes < 0) || (fd = fdopen(fdes, "w")) == NULL) {
|
/illumos-gate/usr/src/lib/brand/solaris10/s10_brand/common/ |
H A D | s10_brand.c | 137 sysret_t *rval, int fdes, int cmd, intptr_t arg) 149 if ((*err = __systemcall(rval, SYS_fstatat + 1024, fdes, 157 *err = (__systemcall(rval, SYS_ioctl + 1024, fdes, cmd, arg)); 289 mntfs_ioctl(sysret_t *rval, int fdes, int cmd, intptr_t arg) argument 298 return (__systemcall(rval, SYS_ioctl + 1024, fdes, cmd, arg)); 302 fdes, NULL, &statbuf, 0)) != 0) 305 return (__systemcall(rval, SYS_ioctl + 1024, fdes, cmd, arg)); 327 if ((err = __systemcall(rval, SYS_ioctl + 1024, fdes, 450 crypto_ioctl(sysret_t *rval, int fdes, int cmd, intptr_t arg) argument 458 rval, fdes, cm 136 passthru_otherdev_ioctl(dev_t *majordev, const char *devname, int *err, sysret_t *rval, int fdes, int cmd, intptr_t arg) argument 575 ctfs_ioctl(sysret_t *rval, int fdes, int cmd, intptr_t arg) argument 611 zfs_ioctl(sysret_t *rval, int fdes, int cmd, intptr_t arg) argument 632 lofi_ioctl(sysret_t *rval, int fdes, int cmd, intptr_t arg) argument 680 s10_ioctl(sysret_t *rval, int fdes, int cmd, intptr_t arg) argument 1165 s10_facl(sysret_t *rval, int fdes, int cmd, int nentries, void *aclbufp) argument [all...] |
/illumos-gate/usr/src/cmd/fs.d/ufs/volcopy/ |
H A D | volcopy.c | 196 g_init(int *devtype, int *fdes) argument 204 if (fstat64(*fdes, &st_buf) == -1) 212 if (fstatvfs64(*fdes, &stfs_buf) < 0) { 226 * g_read: Read nbytes of data from fdes (of type devtype) and place 233 g_read(int devtype, int fdes, void *buf, size_t nbytes) argument 237 rv = read(fdes, buf, nbytes); 249 * g_write: Write nbytes of data to fdes (of type devtype) from 256 g_write(int devtype, int fdes, void *buf, size_t nbytes) argument 260 rv = write(fdes, buf, nbytes);
|
/illumos-gate/usr/src/uts/common/os/ |
H A D | aio.c | 1938 int fdes, 1961 if ((fp = getf(fdes)) == NULL) { 1969 releasef(fdes); 1976 releasef(fdes); 1980 aiocb.aio_fildes = fdes; 1987 aiocb64.aio_fildes = fdes; 1995 releasef(fdes); 2007 clear_active_fd(fdes); 2021 releasef(fdes); 2030 clear_active_fd(fdes); 1936 arw( int opcode, int fdes, char *bufp, int bufsize, offset_t offset, aio_result_t *resultp, int mode) argument [all...] |
/illumos-gate/usr/src/uts/common/c2/ |
H A D | audit_event.c | 1427 long fdes; member in struct:a 2630 long fdes; member in struct:a 2636 fd = (uint32_t)uap->fdes; 2668 long fdes; member in struct:a 2675 fd = (uint32_t)uap->fdes; 2710 long fdes; member in struct:a 2716 fd = (uint32_t)uap->fdes; 2751 long fdes; member in struct:a 2758 fd = (uint32_t)uap->fdes;
|
H A D | audit.c | 1338 int fdes; member in struct:fcntla
|
/illumos-gate/usr/src/cmd/cpio/ |
H A D | cpio.c | 185 static int g_init(int *devtype, int *fdes); 2660 * and write(2) it to the open fdes gotten from openout(). If proc_mode == 7868 g_init(int *devtype, int *fdes) argument 7876 if (fstat(*fdes, &st_buf) == -1) 7884 if (fstatvfs(*fdes, &stfs_buf) < 0) { 7903 if (is_tape(*fdes)) { 7906 } else if (is_floppy(*fdes)) { 7920 * g_read: Read nbytes of data from fdes (of type devtype) and place 7927 g_read(int devtype, int fdes, char *buf, unsigned nbytes) argument 7936 rv = read(fdes, bu 7960 g_write(int devtype, int fdes, char *buf, unsigned nbytes) argument [all...] |