Lines Matching refs:flags

2361                 f->type == LFS_TYPE_REG && (f->flags & LFS_F_INLINE) &&  in lfs_dir_orphaningcommit()
3013 const char *path, int flags, argument
3017 if ((flags & LFS_O_WRONLY) == LFS_O_WRONLY) {
3024 LFS_ASSERT((flags & LFS_O_RDONLY) == LFS_O_RDONLY);
3030 file->flags = flags;
3052 if (!(flags & LFS_O_CREAT)) {
3078 } else if (flags & LFS_O_EXCL) {
3086 } else if (flags & LFS_O_TRUNC) {
3089 file->flags |= LFS_F_DIRTY;
3105 if ((file->flags & LFS_O_RDONLY) == LFS_O_RDONLY) {
3119 if ((file->flags & LFS_O_WRONLY) == LFS_O_WRONLY) {
3125 file->flags |= LFS_F_DIRTY;
3148 file->flags |= LFS_F_INLINE;
3172 file->flags |= LFS_F_ERRED;
3180 const char *path, int flags) { argument
3182 int err = lfs_file_rawopencfg(lfs, file, path, flags, &defaults);
3227 if (file->flags & LFS_F_INLINE) {
3265 file->flags |= LFS_F_WRITING;
3286 file->flags &= ~LFS_F_INLINE;
3292 if (file->flags & LFS_F_READING) {
3293 if (!(file->flags & LFS_F_INLINE)) {
3296 file->flags &= ~LFS_F_READING;
3300 if (file->flags & LFS_F_WRITING) {
3303 if (!(file->flags & LFS_F_INLINE)) {
3308 .flags = LFS_O_RDONLY,
3361 file->flags &= ~LFS_F_WRITING;
3362 file->flags |= LFS_F_DIRTY;
3373 if (file->flags & LFS_F_ERRED) {
3380 file->flags |= LFS_F_ERRED;
3385 if ((file->flags & LFS_F_DIRTY) &&
3392 if (file->flags & LFS_F_INLINE) {
3413 file->flags |= LFS_F_ERRED;
3417 file->flags &= ~LFS_F_DIRTY;
3439 if (!(file->flags & LFS_F_READING) ||
3441 if (!(file->flags & LFS_F_INLINE)) {
3453 file->flags |= LFS_F_READING;
3458 if (file->flags & LFS_F_INLINE) {
3487 LFS_ASSERT((file->flags & LFS_O_RDONLY) == LFS_O_RDONLY);
3490 if (file->flags & LFS_F_WRITING) {
3509 if ((file->flags & LFS_F_INLINE) &&
3518 file->flags |= LFS_F_ERRED;
3525 if (!(file->flags & LFS_F_WRITING) ||
3527 if (!(file->flags & LFS_F_INLINE)) {
3528 if (!(file->flags & LFS_F_WRITING) && file->pos > 0) {
3534 file->flags |= LFS_F_ERRED;
3548 file->flags |= LFS_F_ERRED;
3556 file->flags |= LFS_F_WRITING;
3568 file->flags |= LFS_F_ERRED;
3576 file->flags |= LFS_F_ERRED;
3594 LFS_ASSERT((file->flags & LFS_O_WRONLY) == LFS_O_WRONLY);
3596 if (file->flags & LFS_F_READING) {
3604 if ((file->flags & LFS_O_APPEND) && file->pos < file->ctz.size) {
3613 if (!(file->flags & LFS_F_WRITING) && file->pos > file->ctz.size) {
3631 file->flags &= ~LFS_F_ERRED;
3671 !(file->flags & LFS_F_WRITING)
3701 LFS_ASSERT((file->flags & LFS_O_WRONLY) == LFS_O_WRONLY);
3731 file->flags |= LFS_F_DIRTY | LFS_F_READING | LFS_F_INLINE;
3757 file->flags |= LFS_F_DIRTY | LFS_F_READING;
3803 if (file->flags & LFS_F_WRITING) {
4628 if ((f->flags & LFS_F_DIRTY) && !(f->flags & LFS_F_INLINE)) {
4636 if ((f->flags & LFS_F_WRITING) && !(f->flags & LFS_F_INLINE)) {
5928 int lfs_file_open(lfs_t *lfs, lfs_file_t *file, const char *path, int flags) { argument
5934 (void*)lfs, (void*)file, path, flags);
5937 err = lfs_file_rawopen(lfs, file, path, flags);
5946 const char *path, int flags, argument
5954 (void*)lfs, (void*)file, path, flags,
5958 err = lfs_file_rawopencfg(lfs, file, path, flags, cfg);