/illumos-gate/usr/src/uts/common/syscall/ |
H A D | strcalls.c | 50 int getmsg(int fdes, struct strbuf *ctl, struct strbuf *data, int *flagsp); 51 int putmsg(int fdes, struct strbuf *ctl, struct strbuf *data, int flags); 52 int getpmsg(int fdes, struct strbuf *ctl, struct strbuf *data, int *prip, 54 int putpmsg(int fdes, struct strbuf *ctl, struct strbuf *data, int pri, 57 static int msgio(int fdes, struct strbuf *ctl, struct strbuf *data, int *rval, 61 getmsg(int fdes, struct strbuf *ctl, struct strbuf *data, int *flagsp) in getmsg() argument 87 if ((error = msgio(fdes, ctl, data, &rv, FREAD, &pri, in getmsg() 105 putmsg(int fdes, struct strbuf *ctl, struct strbuf *data, int flags) in putmsg() argument 129 error = msgio(fdes, ctl, data, &rv, FWRITE, &pri, &realflags); in putmsg() 137 getpmsg(int fdes, struct strbuf *ctl, struct strbuf *data, int *prip, in getpmsg() argument [all …]
|
H A D | ioctl.c | 59 ioctl(int fdes, int cmd, intptr_t arg) in ioctl() argument 68 if ((fp = getf(fdes)) == NULL) in ioctl() 92 releasef(fdes); in ioctl() 97 releasef(fdes); in ioctl() 100 releasef(fdes); in ioctl() 106 releasef(fdes); in ioctl() 115 releasef(fdes); in ioctl() 129 releasef(fdes); in ioctl() 135 releasef(fdes); in ioctl() 149 releasef(fdes); in ioctl() [all …]
|
H A D | lseek.c | 204 lseek32(int32_t fdes, off32_t off, int32_t stype) in lseek32() argument 210 if ((fp = getf(fdes)) == NULL) in lseek32() 232 releasef(fdes); in lseek32() 242 llseek32(int32_t fdes, uint32_t off1, uint32_t off2, int stype) in llseek32() argument 253 if ((fp = getf(fdes)) == NULL) in llseek32() 257 releasef(fdes); in llseek32() 272 lseek64(int fdes, off_t off, int stype) in lseek64() argument 281 if ((fp = getf(fdes)) == NULL) in lseek64() 328 releasef(fdes); in lseek64() 358 releasef(fdes); in lseek64() [all …]
|
H A D | statvfs.c | 188 fstatvfs(int fdes, struct statvfs *sbp) in fstatvfs() argument 193 if ((fp = getf(fdes)) == NULL) in fstatvfs() 200 releasef(fdes); in fstatvfs() 239 fstatvfs64(int fdes, struct statvfs64 *sbp) in fstatvfs64() argument 244 if ((fp = getf(fdes)) == NULL) in fstatvfs64() 247 releasef(fdes); in fstatvfs64() 313 fstatvfs32(int fdes, struct statvfs32 *sbp) in fstatvfs32() argument 318 if ((fp = getf(fdes)) == NULL) in fstatvfs32() 321 releasef(fdes); in fstatvfs32() 354 fstatvfs64_32(int fdes, struct statvfs64_32 *sbp) in fstatvfs64_32() argument [all …]
|
H A D | rw.c | 76 read(int fdes, void *cbuf, size_t count) in read() argument 91 if ((fp = getf(fdes)) == NULL) in read() 202 releasef(fdes); in read() 212 write(int fdes, void *cbuf, size_t count) in write() argument 227 if ((fp = getf(fdes)) == NULL) in write() 331 releasef(fdes); in write() 338 pread(int fdes, void *cbuf, size_t count, off_t offset) in pread() argument 360 if ((fp = getf(fdes)) == NULL) in pread() 471 releasef(fdes); in pread() 478 pwrite(int fdes, void *cbuf, size_t count, off_t offset) in pwrite() argument [all …]
|
H A D | pathconf.c | 126 fpathconf(int fdes, int name) in fpathconf() argument 131 if ((fp = getf(fdes)) == NULL) in fpathconf() 134 releasef(fdes); in fpathconf()
|
H A D | close.c | 51 close(int fdes) in close() argument 55 if ((error = closeandsetf(fdes, NULL)) != 0) in close()
|
H A D | fcntl.c | 66 fcntl(int fdes, int cmd, intptr_t arg, intptr_t arg1) in fcntl() argument 126 if ((error = f_getfd_error(fdes, &flag)) == 0) in fcntl() 131 error = f_setfd_error(fdes, (int)arg); in fcntl() 136 if ((error = f_getfl(fdes, &flag)) == 0) { in fcntl() 146 if ((error = f_getfl(fdes, &flag)) == 0) { in fcntl() 154 if ((error = f_badfd(fdes, &fdres, (int)arg)) == 0) in fcntl() 163 if ((fp = getf(fdes)) == NULL) { in fcntl() 213 if (fdes == iarg) { in fcntl() 223 if (fdes == iarg) { in fcntl() 246 releasef(fdes); in fcntl() [all …]
|
H A D | statfs.c | 91 fstatfs32(int32_t fdes, struct statfs32 *sbp, int32_t len, int32_t fstyp) in fstatfs32() argument 98 if ((fp = getf(fdes)) == NULL) in fstatfs32() 101 releasef(fdes); in fstatfs32()
|
H A D | acl.c | 97 facl(int fdes, int cmd, int nentries, void *aclbufp) in facl() argument 103 if ((fp = getf(fdes)) == NULL) in facl() 106 releasef(fdes); in facl() 111 releasef(fdes); in facl()
|
/illumos-gate/usr/src/lib/libc/inc/ |
H A D | asyncio.h | 213 #define VALID_FD(fdes) ((fdes) >= 0 && (fdes) < MAX_KAIO_FDS) argument 215 #define KAIO_SUPPORTED(fdes) \ argument 216 (!VALID_FD(fdes) || \ 217 ((_kaio_supported[(fdes) / KAIO_FDARRAY_ELEM_SIZE] & \ 218 (uint32_t)(1 << ((fdes) % KAIO_FDARRAY_ELEM_SIZE))) == 0)) 220 #define SET_KAIO_NOT_SUPPORTED(fdes) \ argument 221 if (VALID_FD(fdes)) \ 222 _kaio_supported[(fdes) / KAIO_FDARRAY_ELEM_SIZE] |= \ 223 (uint32_t)(1 << ((fdes) % KAIO_FDARRAY_ELEM_SIZE)) 225 #define CLEAR_KAIO_SUPPORTED(fdes) \ argument [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) in nvf_getf() argument 1221 if ((fdes >= 0) && (fdes < NVF_GETF)) { in nvf_getf() 1222 fp = nvf_fd[fdes]; in nvf_getf() 1235 nvf_releasef(int fdes) in nvf_releasef() argument 1240 if ((fdes >= 0) && (fdes < NVF_GETF)) { in nvf_releasef() [all …]
|
/illumos-gate/usr/src/cmd/sh/ |
H A D | word.c | 374 if (f->feof || f->fdes < 0){ in readwc() 381 if (f->fdes != input || !isatty(input)) { in readwc() 382 close(f->fdes); in readwc() 383 f->fdes = -1; in readwc() 427 } while ((len = read(f->fdes, f->fbuf + rest, toread)) < 0 && trapnote); in readb() 436 ((fflags = fcntl(f->fdes, F_GETFL, 0)) & O_NDELAY)) { in readb() 438 fcntl(f->fdes, F_SETFL, fflags); in readb() 443 fflags = fcntl(f->fdes, F_GETFL, 0); in readb() 445 fcntl(f->fdes, F_SETFL, fflags); in readb()
|
H A D | io.c | 51 f->fdes = fd; in initf() 65 (f = standin)->fdes = -1; in estabf() 90 if (f->fdes >= 0) in pop() 91 close(f->fdes); in pop() 103 tb->fdes = fd; in pushtemp() 112 close(tmpfptr->fdes); in poptemp()
|
H A D | mode.h | 96 int fdes; member 111 int fdes; member 119 int fdes; member
|
H A D | defs.h | 339 #define input (standin->fdes)
|
/illumos-gate/usr/src/lib/brand/solaris10/s10_brand/common/ |
H A D | s10_brand.c | 139 sysret_t *rval, int fdes, int cmd, intptr_t arg) in passthru_otherdev_ioctl() argument 151 if ((*err = __systemcall(rval, SYS_fstatat + 1024, fdes, in passthru_otherdev_ioctl() 159 *err = (__systemcall(rval, SYS_ioctl + 1024, fdes, cmd, arg)); in passthru_otherdev_ioctl() 291 mntfs_ioctl(sysret_t *rval, int fdes, int cmd, intptr_t arg) in mntfs_ioctl() argument 300 return (__systemcall(rval, SYS_ioctl + 1024, fdes, cmd, arg)); in mntfs_ioctl() 304 fdes, NULL, &statbuf, 0)) != 0) in mntfs_ioctl() 307 return (__systemcall(rval, SYS_ioctl + 1024, fdes, cmd, arg)); in mntfs_ioctl() 329 if ((err = __systemcall(rval, SYS_ioctl + 1024, fdes, in mntfs_ioctl() 452 crypto_ioctl(sysret_t *rval, int fdes, int cmd, intptr_t arg) in crypto_ioctl() argument 460 rval, fdes, cmd, arg) == 1) in crypto_ioctl() [all …]
|
/illumos-gate/usr/src/cmd/make/bin/ |
H A D | state.cc | 168 int fdes = mkstemp(buffer); in write_state_file() local 169 if ((fdes < 0) || (fd = fdopen(fdes, "w")) == NULL) { in write_state_file() 215 int fdes = mkstemp(buffer); in write_state_file() local 216 if ((fdes < 0) || (fd = fdopen(fdes, "w")) == NULL) { in write_state_file()
|
/illumos-gate/usr/src/cmd/fs.d/ufs/volcopy/ |
H A D | volcopy.c | 194 g_init(int *devtype, int *fdes) in g_init() argument 202 if (fstat64(*fdes, &st_buf) == -1) in g_init() 210 if (fstatvfs64(*fdes, &stfs_buf) < 0) { in g_init() 231 g_read(int devtype, int fdes, void *buf, size_t nbytes) in g_read() argument 235 rv = read(fdes, buf, nbytes); in g_read() 254 g_write(int devtype, int fdes, void *buf, size_t nbytes) in g_write() argument 258 rv = write(fdes, buf, nbytes); in g_write()
|
/illumos-gate/usr/src/uts/common/os/ |
H A D | aio.c | 1930 int fdes, in arw() argument 1953 if ((fp = getf(fdes)) == NULL) { in arw() 1961 releasef(fdes); in arw() 1968 releasef(fdes); in arw() 1972 aiocb.aio_fildes = fdes; in arw() 1979 aiocb64.aio_fildes = fdes; in arw() 1987 releasef(fdes); in arw() 1999 clear_active_fd(fdes); in arw() 2013 releasef(fdes); in arw() 2022 clear_active_fd(fdes); in arw()
|
/illumos-gate/usr/src/uts/common/c2/ |
H A D | audit_event.c | 1431 long fdes; in aui_fcntl() member 2672 long fdes; in aus_putmsg() member 2678 fd = (uint32_t)uap->fdes; in aus_putmsg() 2710 long fdes; in aus_putpmsg() member 2717 fd = (uint32_t)uap->fdes; in aus_putpmsg() 2752 long fdes; in aus_getmsg() member 2758 fd = (uint32_t)uap->fdes; in aus_getmsg() 2793 long fdes; in aus_getpmsg() member 2800 fd = (uint32_t)uap->fdes; in aus_getpmsg()
|
H A D | audit.c | 1337 int fdes; member
|
/illumos-gate/usr/src/cmd/cpio/ |
H A D | cpio.c | 194 static int g_init(int *devtype, int *fdes); 7887 g_init(int *devtype, int *fdes) in g_init() argument 7895 if (fstat(*fdes, &st_buf) == -1) in g_init() 7903 if (fstatvfs(*fdes, &stfs_buf) < 0) { in g_init() 7922 if (is_tape(*fdes)) { in g_init() 7925 } else if (is_floppy(*fdes)) { in g_init() 7946 g_read(int devtype, int fdes, char *buf, unsigned nbytes) in g_read() argument 7955 rv = read(fdes, buf, nbytes); in g_read() 7979 g_write(int devtype, int fdes, char *buf, unsigned nbytes) in g_write() argument 7988 rv = write(fdes, buf, nbytes); in g_write()
|