Home
last modified time | relevance | path

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

/titanic_41/usr/src/uts/common/syscall/
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) in getmsg() argument
90 if ((error = msgio(fdes, ctl, data, &rv, FREAD, &pri, in getmsg()
108 putmsg(int fdes, struct strbuf *ctl, struct strbuf *data, int flags) in putmsg() argument
132 error = msgio(fdes, ctl, data, &rv, FWRITE, &pri, &realflags); in putmsg()
140 getpmsg(int fdes, struct strbuf *ctl, struct strbuf *data, int *prip, in getpmsg() argument
[all …]
H A Dioctl.c61 ioctl(int fdes, int cmd, intptr_t arg) in ioctl() argument
70 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()
[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()
244 llseek32(int32_t fdes, uint32_t off1, uint32_t off2, int stype) in llseek32() argument
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()
[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()
356 fstatvfs64_32(int fdes, struct statvfs64_32 *sbp) in fstatvfs64_32() argument
[all …]
H A Drw.c75 read(int fdes, void *cbuf, size_t count) in read() argument
90 if ((fp = getf(fdes)) == NULL) in read()
201 releasef(fdes); in read()
211 write(int fdes, void *cbuf, size_t count) in write() argument
226 if ((fp = getf(fdes)) == NULL) in write()
330 releasef(fdes); in write()
337 pread(int fdes, void *cbuf, size_t count, off_t offset) in pread() argument
359 if ((fp = getf(fdes)) == NULL) in pread()
470 releasef(fdes); in pread()
477 pwrite(int fdes, void *cbuf, size_t count, off_t offset) in pwrite() argument
[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.c64 fcntl(int fdes, int cmd, intptr_t arg) in fcntl() argument
103 if ((error = f_getfd_error(fdes, &flag)) == 0) in fcntl()
108 error = f_setfd_error(fdes, (int)arg); in fcntl()
113 if ((error = f_getfl(fdes, &flag)) == 0) { in fcntl()
123 if ((error = f_getfl(fdes, &flag)) == 0) { in fcntl()
131 if ((error = f_badfd(fdes, &fdres, (int)arg)) == 0) in fcntl()
140 if ((fp = getf(fdes)) == NULL) { in fcntl()
184 if (fdes == iarg) { in fcntl()
193 if (fdes == iarg) { in fcntl()
216 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.c99 facl(int fdes, int cmd, int nentries, void *aclbufp) in facl() argument
105 if ((fp = getf(fdes)) == NULL) in facl()
108 releasef(fdes); in facl()
113 releasef(fdes); in facl()
/titanic_41/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) || \
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) \ 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
[all …]
/titanic_41/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) 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 …]
/titanic_41/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)
/titanic_41/usr/src/lib/brand/solaris10/s10_brand/common/
H A Ds10_brand.c136 sysret_t *rval, int fdes, int cmd, intptr_t arg) in passthru_otherdev_ioctl() argument
148 if ((*err = __systemcall(rval, SYS_fstatat + 1024, fdes, in passthru_otherdev_ioctl()
156 *err = (__systemcall(rval, SYS_ioctl + 1024, fdes, cmd, arg)); in passthru_otherdev_ioctl()
288 mntfs_ioctl(sysret_t *rval, int fdes, int cmd, intptr_t arg) in mntfs_ioctl() argument
297 return (__systemcall(rval, SYS_ioctl + 1024, fdes, cmd, arg)); in mntfs_ioctl()
301 fdes, NULL, &statbuf, 0)) != 0) in mntfs_ioctl()
304 return (__systemcall(rval, SYS_ioctl + 1024, fdes, cmd, arg)); in mntfs_ioctl()
326 if ((err = __systemcall(rval, SYS_ioctl + 1024, fdes, in mntfs_ioctl()
449 crypto_ioctl(sysret_t *rval, int fdes, int cmd, intptr_t arg) in crypto_ioctl() argument
457 rval, fdes, cmd, arg) == 1) in crypto_ioctl()
[all …]
/titanic_41/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()
/titanic_41/usr/src/cmd/fs.d/ufs/volcopy/
H A Dvolcopy.c196 g_init(int *devtype, int *fdes) in g_init() argument
204 if (fstat64(*fdes, &st_buf) == -1) in g_init()
212 if (fstatvfs64(*fdes, &stfs_buf) < 0) { in g_init()
233 g_read(int devtype, int fdes, void *buf, size_t nbytes) in g_read() argument
237 rv = read(fdes, buf, nbytes); in g_read()
256 g_write(int devtype, int fdes, void *buf, size_t nbytes) in g_write() argument
260 rv = write(fdes, buf, nbytes); in g_write()
/titanic_41/usr/src/uts/common/os/
H A Daio.c1938 int fdes, in arw() argument
1961 if ((fp = getf(fdes)) == NULL) { in arw()
1969 releasef(fdes); in arw()
1976 releasef(fdes); in arw()
1980 aiocb.aio_fildes = fdes; in arw()
1987 aiocb64.aio_fildes = fdes; in arw()
1995 releasef(fdes); in arw()
2007 clear_active_fd(fdes); in arw()
2021 releasef(fdes); in arw()
2030 clear_active_fd(fdes); in arw()
/titanic_41/usr/src/uts/common/c2/
H A Daudit_event.c1424 long fdes; in aui_fcntl() member
2627 long fdes; in aus_putmsg() member
2633 fd = (uint32_t)uap->fdes; in aus_putmsg()
2665 long fdes; in aus_putpmsg() member
2672 fd = (uint32_t)uap->fdes; in aus_putpmsg()
2707 long fdes; in aus_getmsg() member
2713 fd = (uint32_t)uap->fdes; in aus_getmsg()
2748 long fdes; in aus_getpmsg() member
2755 fd = (uint32_t)uap->fdes; in aus_getpmsg()
H A Daudit.c1338 int fdes; member
/titanic_41/usr/src/cmd/cpio/
H A Dcpio.c185 static int g_init(int *devtype, int *fdes);
7868 g_init(int *devtype, int *fdes) in g_init() argument
7876 if (fstat(*fdes, &st_buf) == -1) in g_init()
7884 if (fstatvfs(*fdes, &stfs_buf) < 0) { in g_init()
7903 if (is_tape(*fdes)) { in g_init()
7906 } else if (is_floppy(*fdes)) { in g_init()
7927 g_read(int devtype, int fdes, char *buf, unsigned nbytes) in g_read() argument
7936 rv = read(fdes, buf, nbytes); in g_read()
7960 g_write(int devtype, int fdes, char *buf, unsigned nbytes) in g_write() argument
7969 rv = write(fdes, buf, nbytes); in g_write()