mkdir
extern int mkdir(const char *path, mode_t mode);
int (*mkdir) (const char *, mode_t);
int (*mkdir) (const char *, mode_t);
int (*mkdir) (const char *, mode_t);
int (*mkdir) (const char *, mode_t);
int (*mkdir) (const char *, mode_t);
void (*mkdir) (fuse_req_t req, fuse_ino_t parent, const char *name,
void (*mkdir) (fuse_req_t req, fuse_ino_t parent, const char *name,
void (*mkdir) (fuse_req_t req, fuse_ino_t parent, const char *name,
op_mkdir *mkdir;
mkdir("/etc/launch_cache", 0755);
mkdir(path, 0755);
if (mkdir(path.GetPath(), request->mode) < 0)
fNodeCapabilities.Set(FS_VNODE_CAPABILITY_CREATE_DIR, fFSOps->mkdir);
if (!fFSOps->mkdir)
return fFSOps->mkdir(fVolumeCookie, dir, name, mode);
beos_op_mkdir *mkdir;
fNodeCapabilities.Set(FS_VNODE_CAPABILITY_CREATE_DIR, fLowLevelOps.mkdir);
fNodeCapabilities.Set(FS_VNODE_CAPABILITY_CREATE_DIR, fFS->ops.mkdir);
if (ops->mkdir == NULL)
ops->mkdir(&request, parent, name, mode);
if (fs->ops.mkdir == NULL)
return fs->ops.mkdir(path, mode);
static int websearchfs_create_gen(fs_volume *_volume, fs_node *dir, const char *name, int omode, int perms, ino_t *vnid, fs_node **node, struct attr_entry *iattrs, bool mkdir, bool uniq);
static int websearchfs_create_gen(fs_volume *_volume, fs_node *dir, const char *name, int omode, int perms, ino_t *vnid, fs_node **node, struct attr_entry *iattrs, bool mkdir, bool uniq)
TRACE("create_gen(%" B_PRId32 ", %" B_PRId64 ", '%s', 0x%08x, %c, %c)\n", ns->nsid, dir->vnid, name, omode, mkdir?'t':'f', uniq?'t':'f');
if (n && (uniq || mkdir)) /* still there! */
fill_default_stat(&n->st, ns->nsid, n->vnid, (perms & ~S_IFMT) | (mkdir?S_IFDIR:S_IFREG));
new_lock(&(n->l), mkdir?"websearchfs dir":"websearchfs file");
mkdir(gOptions.callgrind_directory, S_IRWXU | S_IRWXG | S_IROTH | S_IXOTH);
if (mkdir (OutputDirectoryPathName, 0777))
else if (mkdir(name, 0777) < 0)
if (mkdir(buildpath, 0777) == -1) { /* create the directory */
if (mkdir(tmproot, 0777) == -1) {
if (mkdir(prettyPath.String(), 0755) < 0) {
if (mkdir(buffer, mode) < 0)
if (mkdir(realPath.c_str(), perms) < 0)
if (mkdir(realPath.c_str(), perms) < 0)
if (mkdir(attrDirPath.c_str(), S_IRWXU | S_IRWXG | S_IRWXO) < 0)
if (mkdir(sAttributeDirBasePath, S_IRWXU | S_IRWXG | S_IRWXO) < 0)
return mkdir(path, mode);
return mkdir(fullPath, mode);
if (mkdir(path->Path(), 0755) != 0)
mkdir(ptr, 0777);
mkdir(ptr, 0777);
if (mkdir(mountPoint, S_IRWXU | S_IRWXG | S_IRWXO) < 0)
if (mkdir(markerPath.Path(), S_IRWXU | S_IRWXG | S_IRWXO) < 0) {
mkdir(tmpPath.Path(), 0777);
if (mkdir(path.Path(), 0777) < 0)
return mkdir(path->Path(), 0777) ? B_OK : errno;
mkdir(path.Path(), 0777);
&& (mkdir(path.Path(), 0777) == 0 || errno == EEXIST)) {
mkdir(path.Path(), 0777);
mkdir(path.Path(), 0755);
if (mkdir(dir, 0777) && errno != EEXIST)
mkdir(mountPath, S_IRWXU | S_IRWXG | S_IRWXO);
if (mkdir(buffer, mode) < 0)
bool created = mkdir(path, 0755);
if (mkdir(path, 0700) == 0)
mkdir(path, 0755);
if (mkdir("__directory", 0755) != 0)
mkdir("fragments", 0777);
if (mkdir(name.c_str(), 0777) != 0)
if (mkdir(base.name.c_str(), 0777) != 0 && errno != EEXIST) {
fuseOps->mkdir = fuse_mkdir;
return mkdir(path, to_platform_mode(mode));