| /components/libc/posix/io/aio/ |
| A D | aio.c | 330 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 D | dfs.h | 90 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 D | tty_ptmx.c | 27 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 D | bsd_porting.h | 201 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 D | tty_device.c | 134 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 D | tty_internal.h | 45 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 D | dfs_file.c | 570 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 D | serial_tty.c | 204 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 D | tty_pts.c | 85 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 D | tty_compat.c | 338 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 D | tty.c | 258 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()
|