Searched refs:fdes (Results 1 - 22 of 22) sorted by relevance

/opensolaris-onvv-gate/usr/src/uts/common/syscall/
H A Dioctl.c61 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 Dstrcalls.c53 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 Dclose.c51 close(int fdes) argument
55 if ((error = closeandsetf(fdes, NULL)) != 0)
H A Dlseek.c206 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 Dstatvfs.c190 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 Drw.c76 read(int fdes, void *cbuf, size_t count) argument
91 if ((fp = getf(fdes)) == NULL)
202 releasef(fdes);
212 write(int fdes, void *cbuf, size_t count) argument
227 if ((fp = getf(fdes)) == NULL)
331 releasef(fdes);
338 pread(int fdes, void *cbuf, size_t count, off_t offset) argument
360 if ((fp = getf(fdes)) == NULL)
471 releasef(fdes);
478 pwrite(int fdes, voi argument
620 readv(int fdes, struct iovec *iovp, int iovcnt) argument
778 writev(int fdes, struct iovec *iovp, int iovcnt) argument
932 pread64(int fdes, void *cbuf, size32_t count, uint32_t offset_1, uint32_t offset_2) argument
1055 pwrite64(int fdes, void *cbuf, size32_t count, uint32_t offset_1, uint32_t offset_2) argument
1203 read32(int32_t fdes, caddr32_t cbuf, size32_t count) argument
1210 write32(int32_t fdes, caddr32_t cbuf, size32_t count) argument
1217 pread32(int32_t fdes, caddr32_t cbuf, size32_t count, off32_t offset) argument
1225 pwrite32(int32_t fdes, caddr32_t cbuf, size32_t count, off32_t offset) argument
1233 readv32(int32_t fdes, caddr32_t iovp, int32_t iovcnt) argument
1239 writev32(int32_t fdes, caddr32_t iovp, int32_t iovcnt) argument
[all...]
H A Dpathconf.c128 fpathconf(int fdes, int name) argument
133 if ((fp = getf(fdes)) == NULL)
136 releasef(fdes);
H A Dstatfs.c93 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 Dfcntl.c68 fcntl(int fdes, int cmd, intptr_t arg) argument
107 if ((error = f_getfd_error(fdes, &flag)) == 0)
112 error = f_setfd_error(fdes, (int)arg);
117 if ((error = f_getfl(fdes, &flag)) == 0) {
127 if ((error = f_getfl(fdes, &flag)) == 0) {
135 if ((error = f_badfd(fdes, &fdres, (int)arg)) == 0)
144 if ((fp = getf(fdes)) == NULL) {
186 if (fdes == iarg) {
194 * We can't hold our getf(fdes) across the call to
200 * (which we have to do anyway), then releasef(fdes),
[all...]
H A Dacl.c99 facl(int fdes, int cmd, int nentries, void *aclbufp) argument
105 if ((fp = getf(fdes)) == NULL)
108 releasef(fdes);
113 releasef(fdes);
/opensolaris-onvv-gate/usr/src/lib/libc/inc/
H A Dasyncio.h215 #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...]
/opensolaris-onvv-gate/usr/src/uts/common/io/scsi/adapters/iscsi/
H A Dnvfile.c90 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...]
/opensolaris-onvv-gate/usr/src/cmd/sh/
H A Dword.c375 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 Dmode.h96 int fdes; member in struct:fileblk
111 int fdes; member in struct:tempblk
119 int fdes; member in struct:filehdr
H A Dio.c51 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 Ddefs.h339 #define input (standin->fdes)
/opensolaris-onvv-gate/usr/src/lib/brand/solaris10/s10_brand/common/
H A Ds10_brand.c134 sysret_t *rval, int fdes, int cmd, intptr_t arg)
146 if ((*err = __systemcall(rval, SYS_fstatat + 1024, fdes,
154 *err = (__systemcall(rval, SYS_ioctl + 1024, fdes, cmd, arg));
286 mntfs_ioctl(sysret_t *rval, int fdes, int cmd, intptr_t arg) argument
295 return (__systemcall(rval, SYS_ioctl + 1024, fdes, cmd, arg));
299 fdes, NULL, &statbuf, 0)) != 0)
302 return (__systemcall(rval, SYS_ioctl + 1024, fdes, cmd, arg));
324 if ((err = __systemcall(rval, SYS_ioctl + 1024, fdes,
447 crypto_ioctl(sysret_t *rval, int fdes, int cmd, intptr_t arg) argument
455 rval, fdes, cm
133 passthru_otherdev_ioctl(dev_t *majordev, const char *devname, int *err, sysret_t *rval, int fdes, int cmd, intptr_t arg) argument
572 ctfs_ioctl(sysret_t *rval, int fdes, int cmd, intptr_t arg) argument
608 zfs_ioctl(sysret_t *rval, int fdes, int cmd, intptr_t arg) argument
629 lofi_ioctl(sysret_t *rval, int fdes, int cmd, intptr_t arg) argument
677 s10_ioctl(sysret_t *rval, int fdes, int cmd, intptr_t arg) argument
1162 s10_facl(sysret_t *rval, int fdes, int cmd, int nentries, void *aclbufp) argument
[all...]
/opensolaris-onvv-gate/usr/src/cmd/fs.d/ufs/volcopy/
H A Dvolcopy.c196 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);
/opensolaris-onvv-gate/usr/src/uts/common/os/
H A Daio.c1938 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...]
/opensolaris-onvv-gate/usr/src/uts/common/c2/
H A Daudit_event.c1426 long fdes; member in struct:a
2629 long fdes; member in struct:a
2635 fd = (uint32_t)uap->fdes;
2667 long fdes; member in struct:a
2674 fd = (uint32_t)uap->fdes;
2709 long fdes; member in struct:a
2715 fd = (uint32_t)uap->fdes;
2750 long fdes; member in struct:a
2757 fd = (uint32_t)uap->fdes;
H A Daudit.c1338 int fdes; member in struct:fcntla
/opensolaris-onvv-gate/usr/src/cmd/cpio/
H A Dcpio.c183 static int g_init(int *devtype, int *fdes);
2655 * and write(2) it to the open fdes gotten from openout(). If proc_mode ==
7860 g_init(int *devtype, int *fdes) argument
7868 if (fstat(*fdes, &st_buf) == -1)
7876 if (fstatvfs(*fdes, &stfs_buf) < 0) {
7895 if (is_tape(*fdes)) {
7898 } else if (is_floppy(*fdes)) {
7912 * g_read: Read nbytes of data from fdes (of type devtype) and place
7919 g_read(int devtype, int fdes, char *buf, unsigned nbytes) argument
7928 rv = read(fdes, bu
7952 g_write(int devtype, int fdes, char *buf, unsigned nbytes) argument
[all...]

Completed in 282 milliseconds