Lines Matching defs:openMode
758 FileCookie(int openMode) : fOpenMode(openMode), fLastNotificationTime(0) {}
783 ramfs_create(fs_volume* _volume, fs_vnode* _dir, const char *name, int openMode,
787 FUNCTION(("name: `%s', open mode: %x, mode: %x\n", name, openMode, mode));
812 cookie = new(nothrow) FileCookie(openMode);
822 if (openMode & O_EXCL) {
830 if (openMode & O_TRUNC)
877 ramfs_open(fs_volume* _volume, fs_vnode* _node, int openMode, void** _cookie)
887 if (node->IsDirectory() && (openMode & O_RWMASK) != O_RDONLY)
889 if (error == B_OK && (openMode & O_DIRECTORY) != 0 && !node->IsDirectory())
892 int accessMode = open_mode_to_access(openMode);
894 if (error == B_OK && (openMode & O_TRUNC))
902 cookie = new(nothrow) FileCookie(openMode);
907 if (error == B_OK && (openMode & O_TRUNC))
1475 status_t Init(const char* name, int openMode)
1479 fOpenMode = openMode;
1511 uint32 type, int openMode, void** _cookie)
1522 // in case the attribute exists we fail if required by the openMode
1523 if (attribute && (openMode & O_EXCL))
1527 int accessMode = open_mode_to_access(openMode);
1528 if (!attribute || (openMode & O_TRUNC))
1543 error = cookie->Init(name, openMode);
1559 } else if (openMode & O_TRUNC) {
1582 int openMode, void** _cookie)
1598 int accessMode = open_mode_to_access(openMode);
1599 if (error == B_OK && (openMode & O_TRUNC))
1611 SET_ERROR(error, cookie->Init(name, openMode));
1618 if (error == B_OK && (openMode & O_TRUNC)) {