Home
last modified time | relevance | path

Searched refs:oflags (Results 1 – 11 of 11) sorted by relevance

/components/libc/posix/io/aio/
A Daio.c330 int len, oflags; in aio_write_work() local
337 oflags = fcntl(cb->aio_fildes, F_GETFL, 0); in aio_write_work()
338 if ((oflags & O_APPEND) == 0) in aio_write_work()
398 int oflags; in aio_write() local
404 oflags = fcntl(cb->aio_fildes, F_GETFL, 0); in aio_write()
406 if ((oflags & O_ACCMODE) != O_WRONLY && in aio_write()
407 (oflags & O_ACCMODE) != O_RDWR) in aio_write()
/components/dfs/dfs_v2/include/
A Ddfs.h90 rt_inline int dfs_fflags(int oflags) in dfs_fflags() argument
92 int rw = oflags & O_ACCMODE; in dfs_fflags()
94 oflags &= ~O_ACCMODE; in dfs_fflags()
95 return (rw + 1) | oflags; in dfs_fflags()
/components/lwp/terminal/
A Dtty_ptmx.c27 rt_uint32_t oflags = file->flags; in ptm_fops_open() local
35 if ((oflags & ~(O_RDWR | O_NOCTTY | O_CLOEXEC | O_LARGEFILE)) == 0) in ptm_fops_open()
37 rc = pts_alloc(FFLAGS(oflags & O_ACCMODE), cur_thr, file); in ptm_fops_open()
85 int oflags = file->flags; in ptm_fops_read() local
103 bsd_ptsdev_methods.fo_read(tp, &uio, 0, oflags, rt_thread_self()); in ptm_fops_read()
126 int oflags = file->flags; in ptm_fops_write() local
144 bsd_ptsdev_methods.fo_write(tp, &uio, 0, oflags, rt_thread_self()); in ptm_fops_write()
A Dbsd_porting.h201 typedef int d_open_t(struct lwp_tty *tp, int oflags, int devtype,
203 typedef int d_fdopen_t(struct lwp_tty *tp, int oflags, struct rt_thread *td,
663 #define FFLAGS(oflags) ((oflags)&O_EXEC ? (oflags) : (oflags) + 1) argument
A Dtty_device.c134 int oflags = file->flags; in tty_fops_read() local
143 if (oflags & O_NONBLOCK) in tty_fops_read()
185 int oflags = file->flags; in tty_fops_write() local
194 if (oflags & O_NONBLOCK) in tty_fops_write()
A Dtty_internal.h45 int lwp_tty_ioctl_adapter(lwp_tty_t tp, int cmd, int oflags, void *args, rt_thread_t td);
/components/dfs/dfs_v2/src/
A Ddfs_file.c570 int fflags = dfs_fflags(oflags); in dfs_file_open()
600 if (oflags & O_NOFOLLOW) in dfs_file_open()
622 if (oflags & O_DIRECTORY) in dfs_file_open()
644 if (oflags & O_CREAT) in dfs_file_open()
648 oflags &= ~O_CREAT; in dfs_file_open()
650 if (oflags & O_EXCL) in dfs_file_open()
652 oflags &= ~O_EXCL; in dfs_file_open()
702 file->flags = oflags; in dfs_file_open()
705 if (!(oflags & O_CREAT)) in dfs_file_open()
723 if (oflags & O_EXEC) in dfs_file_open()
[all …]
/components/drivers/serial/
A Dserial_tty.c204 int oflags; in serial_tty_open() local
211 rt_device_control(&serial->parent, RT_DEVICE_CTRL_CONSOLE_OFLAG, &oflags); in serial_tty_open()
213 error = rt_device_open(&serial->parent, oflags); in serial_tty_open()
/components/lwp/terminal/freebsd/
A Dtty_pts.c85 struct ucred *active_cred, int oflags, in ptsdev_read() argument
148 if (oflags & O_NONBLOCK) in ptsdev_read()
164 struct ucred *active_cred, int oflags, in ptsdev_write() argument
212 if (oflags & O_NONBLOCK) in ptsdev_write()
A Dtty_compat.c338 int lwp_tty_ioctl_adapter(lwp_tty_t tp, int cmd, int oflags, void *args, rt_thread_t td) in lwp_tty_ioctl_adapter() argument
340 long fflags = FFLAGS(oflags); in lwp_tty_ioctl_adapter()
A Dtty.c258 static int ttydev_open(struct lwp_tty *tp, int oflags, int devtype, in ttydev_open() argument
346 if ((oflags & O_NONBLOCK) == 0 && (tp->t_termios.c_cflag & CLOCAL) == 0) in ttydev_open()

Completed in 22 milliseconds