MCPcopy Create free account
hub / github.com/F-Stack/f-stack / mqfs_create_dir

Function mqfs_create_dir

freebsd/kern/uipc_mqueue.c:516–533  ·  view source on GitHub ↗

* Create a directory */

Source from the content-addressed store, hash-verified

514 * Create a directory
515 */
516static struct mqfs_node *
517mqfs_create_dir(struct mqfs_node *parent, const char *name, int namelen,
518 struct ucred *cred, int mode)
519{
520 struct mqfs_node *node;
521
522 node = mqfs_create_node(name, namelen, cred, mode, mqfstype_dir);
523 if (mqfs_add_node(parent, node) != 0) {
524 mqnode_free(node);
525 return (NULL);
526 }
527
528 if (mqfs_fixup_dir(node) != 0) {
529 mqfs_destroy(node);
530 return (NULL);
531 }
532 return (node);
533}
534
535/*
536 * Create a symlink

Callers 1

mqfs_mkdirFunction · 0.85

Calls 5

mqfs_create_nodeFunction · 0.85
mqfs_add_nodeFunction · 0.85
mqnode_freeFunction · 0.85
mqfs_fixup_dirFunction · 0.85
mqfs_destroyFunction · 0.85

Tested by

no test coverage detected