/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/lib/brand/solaris10/s10_brand/common/ |
H A D | s10_brand.c | 302 fdes, NULL, &statbuf, 0)) != 0) in mntfs_ioctl() 458 rval, fdes, cmd, arg) == 1) in crypto_ioctl() 583 fdes, NULL, &statbuf, 0)) != 0) in ctfs_ioctl() 617 rval, fdes, cmd, arg) == 1) in zfs_ioctl() 640 rval, fdes, cmd, arg) == 1) in lofi_ioctl() 684 return (crypto_ioctl(rval, fdes, cmd, arg)); in s10_ioctl() 688 return (ctfs_ioctl(rval, fdes, cmd, arg)); in s10_ioctl() 694 return (mntfs_ioctl(rval, fdes, cmd, arg)); in s10_ioctl() 699 return (zfs_ioctl(rval, fdes, cmd, arg)); in s10_ioctl() 702 return (lofi_ioctl(rval, fdes, cmd, arg)); in s10_ioctl() [all …]
|
/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()
|
/illumos-gate/usr/src/uts/common/syscall/ |
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 | 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() 359 if ((fp = getf(fdes)) == NULL) in fstatvfs64_32() [all …]
|
H A D | strcalls.c | 201 releasef(fdes); in msgio() 212 releasef(fdes); in msgio() 217 releasef(fdes); in msgio() 222 releasef(fdes); in msgio() 227 releasef(fdes); in msgio() 247 releasef(fdes); in msgio() 259 releasef(fdes); in msgio() 277 releasef(fdes); in msgio() 431 releasef(fdes); in msgio32() 447 releasef(fdes); in msgio32() [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 | 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() 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() 369 releasef(fdes); in lseek64() [all …]
|
H A D | ioctl.c | 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() 157 stty(int fdes, intptr_t arg) in stty() argument [all …]
|
H A D | rw.c | 202 releasef(fdes); in read() 331 releasef(fdes); in write() 471 releasef(fdes); in pread() 605 releasef(fdes); in pwrite() 796 releasef(fdes); in readv() 979 releasef(fdes); in writev() 1189 releasef(fdes); in preadv() 1403 releasef(fdes); in pwritev() 1530 releasef(fdes); in pread64() 1658 releasef(fdes); in pwrite64() [all …]
|
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 | 65 fcntl(int fdes, int cmd, intptr_t arg) in fcntl() argument 104 if ((error = f_getfd_error(fdes, &flag)) == 0) in fcntl() 109 error = f_setfd_error(fdes, (int)arg); in fcntl() 114 if ((error = f_getfl(fdes, &flag)) == 0) { in fcntl() 124 if ((error = f_getfl(fdes, &flag)) == 0) { in fcntl() 132 if ((error = f_badfd(fdes, &fdres, (int)arg)) == 0) in fcntl() 141 if ((fp = getf(fdes)) == NULL) { in fcntl() 185 if (fdes == iarg) { in fcntl() 194 if (fdes == iarg) { in fcntl() 217 releasef(fdes); in fcntl() [all …]
|
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) || \ 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 226 if (VALID_FD(fdes)) \ 227 _kaio_supported[(fdes) / KAIO_FDARRAY_ELEM_SIZE] &= \ [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 | mode.h | 96 int fdes; member 111 int fdes; member 119 int fdes; member
|
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 | defs.h | 339 #define input (standin->fdes)
|
/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/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/io/scsi/adapters/iscsi/ |
H A D | nvfile.c | 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() 1240 if ((fdes >= 0) && (fdes < NVF_GETF)) { in nvf_releasef() 1241 fp = nvf_fd[fdes]; in nvf_releasef() 1270 nvf_freef(int fdes) in nvf_freef() argument 1275 if ((fdes >= 0) && (fdes < NVF_GETF)) { in nvf_freef() 1295 int fdes = -1; in nvf_open() local 1340 return (fdes); in nvf_open() 1347 nvf_close(int fdes) in nvf_close() argument [all …]
|
/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()
|