Home
last modified time | relevance | path

Searched refs:fdes (Results 1 – 23 of 23) sorted by relevance

/illumos-gate/usr/src/uts/common/syscall/
H A Dstrcalls.c204 releasef(fdes); in msgio()
215 releasef(fdes); in msgio()
220 releasef(fdes); in msgio()
225 releasef(fdes); in msgio()
230 releasef(fdes); in msgio()
250 releasef(fdes); in msgio()
262 releasef(fdes); in msgio()
280 releasef(fdes); in msgio()
434 releasef(fdes); in msgio32()
450 releasef(fdes); in msgio32()
[all …]
H A Dioctl.c70 if ((fp = getf(fdes)) == NULL) in ioctl()
94 releasef(fdes); in ioctl()
99 releasef(fdes); in ioctl()
102 releasef(fdes); in ioctl()
108 releasef(fdes); in ioctl()
117 releasef(fdes); in ioctl()
131 releasef(fdes); in ioctl()
137 releasef(fdes); in ioctl()
151 releasef(fdes); in ioctl()
159 stty(int fdes, intptr_t arg) in stty() argument
[all …]
H A Dlseek.c206 lseek32(int32_t fdes, off32_t off, int32_t stype) in lseek32() argument
212 if ((fp = getf(fdes)) == NULL) in lseek32()
234 releasef(fdes); in lseek32()
255 if ((fp = getf(fdes)) == NULL) in llseek32()
259 releasef(fdes); in llseek32()
274 lseek64(int fdes, off_t off, int stype) in lseek64() argument
283 if ((fp = getf(fdes)) == NULL) in lseek64()
330 releasef(fdes); in lseek64()
360 releasef(fdes); in lseek64()
371 releasef(fdes); in lseek64()
[all …]
H A Dstatvfs.c190 fstatvfs(int fdes, struct statvfs *sbp) in fstatvfs() argument
195 if ((fp = getf(fdes)) == NULL) in fstatvfs()
202 releasef(fdes); in fstatvfs()
241 fstatvfs64(int fdes, struct statvfs64 *sbp) in fstatvfs64() argument
246 if ((fp = getf(fdes)) == NULL) in fstatvfs64()
249 releasef(fdes); in fstatvfs64()
315 fstatvfs32(int fdes, struct statvfs32 *sbp) in fstatvfs32() argument
320 if ((fp = getf(fdes)) == NULL) in fstatvfs32()
323 releasef(fdes); in fstatvfs32()
361 if ((fp = getf(fdes)) == NULL) in fstatvfs64_32()
[all …]
H A Drw.c202 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 Dpathconf.c128 fpathconf(int fdes, int name) in fpathconf() argument
133 if ((fp = getf(fdes)) == NULL) in fpathconf()
136 releasef(fdes); in fpathconf()
H A Dclose.c51 close(int fdes) in close() argument
55 if ((error = closeandsetf(fdes, NULL)) != 0) in close()
H A Dfcntl.c65 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 Dstatfs.c93 fstatfs32(int32_t fdes, struct statfs32 *sbp, int32_t len, int32_t fstyp) in fstatfs32() argument
100 if ((fp = getf(fdes)) == NULL) in fstatfs32()
103 releasef(fdes); in fstatfs32()
H A Dacl.c97 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 Dasyncio.h215 #define VALID_FD(fdes) ((fdes) >= 0 && (fdes) < MAX_KAIO_FDS) argument
217 #define KAIO_SUPPORTED(fdes) \ argument
218 (!VALID_FD(fdes) || \
222 #define SET_KAIO_NOT_SUPPORTED(fdes) \ argument
223 if (VALID_FD(fdes)) \
224 _kaio_supported[(fdes) / KAIO_FDARRAY_ELEM_SIZE] |= \
225 (uint32_t)(1 << ((fdes) % KAIO_FDARRAY_ELEM_SIZE))
227 #define CLEAR_KAIO_SUPPORTED(fdes) \ argument
228 if (VALID_FD(fdes)) \
229 _kaio_supported[(fdes) / KAIO_FDARRAY_ELEM_SIZE] &= \
[all …]
/illumos-gate/usr/src/uts/common/io/scsi/adapters/iscsi/
H A Dnvfile.c1216 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/sh/
H A Dword.c375 if (f->feof || f->fdes < 0){ in readwc()
382 if (f->fdes != input || !isatty(input)) { in readwc()
383 close(f->fdes); in readwc()
384 f->fdes = -1; in readwc()
428 } while ((len = read(f->fdes, f->fbuf + rest, toread)) < 0 && trapnote); in readb()
437 ((fflags = fcntl(f->fdes, F_GETFL, 0)) & O_NDELAY)) { in readb()
439 fcntl(f->fdes, F_SETFL, fflags); in readb()
444 fflags = fcntl(f->fdes, F_GETFL, 0); in readb()
446 fcntl(f->fdes, F_SETFL, fflags); in readb()
H A Dio.c51 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 Dmode.h96 int fdes; member
111 int fdes; member
119 int fdes; member
H A Ddefs.h339 #define input (standin->fdes)
/illumos-gate/usr/src/lib/brand/solaris10/s10_brand/common/
H A Ds10_brand.c302 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/make/bin/
H A Dstate.cc168 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 Dvolcopy.c194 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 Daio.c1930 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 Daudit_event.c1428 long fdes; in aui_fcntl() member
2630 long fdes; in aus_putmsg() member
2636 fd = (uint32_t)uap->fdes; in aus_putmsg()
2668 long fdes; in aus_putpmsg() member
2675 fd = (uint32_t)uap->fdes; in aus_putpmsg()
2710 long fdes; in aus_getmsg() member
2716 fd = (uint32_t)uap->fdes; in aus_getmsg()
2751 long fdes; in aus_getpmsg() member
2758 fd = (uint32_t)uap->fdes; in aus_getpmsg()
H A Daudit.c1338 int fdes; member
/illumos-gate/usr/src/cmd/cpio/
H A Dcpio.c185 static int g_init(int *devtype, int *fdes);
7867 g_init(int *devtype, int *fdes) in g_init() argument
7875 if (fstat(*fdes, &st_buf) == -1) in g_init()
7883 if (fstatvfs(*fdes, &stfs_buf) < 0) { in g_init()
7902 if (is_tape(*fdes)) { in g_init()
7905 } else if (is_floppy(*fdes)) { in g_init()
7926 g_read(int devtype, int fdes, char *buf, unsigned nbytes) in g_read() argument
7935 rv = read(fdes, buf, nbytes); in g_read()
7959 g_write(int devtype, int fdes, char *buf, unsigned nbytes) in g_write() argument
7968 rv = write(fdes, buf, nbytes); in g_write()