Searched refs:T_DIR (Results 1 – 5 of 5) sorted by relevance
1 #define T_DIR 1 // Directory macro
134 if(ip->type == T_DIR){ in sys_link()213 if(ip->type == T_DIR && !isdirempty(ip)){ in sys_unlink()221 if(ip->type == T_DIR){ in sys_unlink()269 if(type == T_DIR){ // Create . and .. entries. in create()310 if(ip->type == T_DIR && omode != O_RDONLY){ in sys_open()342 if(argstr(0, &path) < 0 || (ip = create(path, T_DIR, 0, 0)) == 0){ in sys_mkdir()384 if(ip->type != T_DIR){ in sys_chdir()
49 case T_DIR: in ls()
530 if(dp->type != T_DIR) in dirlookup()636 if(ip->type != T_DIR){ in namex()
117 rootino = ialloc(T_DIR); in main()