name              121 kernel/exec.c    safestrcpy(p->name, last, sizeof(p->name));
name              552 kernel/fs.c    dirlookup(struct inode *dp, char *name, uint *poff)
name              565 kernel/fs.c        if(namecmp(name, de.name) == 0){
name              580 kernel/fs.c    dirlink(struct inode *dp, char *name, uint inum)
name              587 kernel/fs.c      if((ip = dirlookup(dp, name, 0)) != 0){
name              600 kernel/fs.c      strncpy(de.name, name, DIRSIZ);
name              623 kernel/fs.c    skipelem(char *path, char *name)
name              637 kernel/fs.c        memmove(name, s, DIRSIZ);
name              639 kernel/fs.c        memmove(name, s, len);
name              640 kernel/fs.c        name[len] = 0;
name              652 kernel/fs.c    namex(char *path, int nameiparent, char *name)
name              661 kernel/fs.c      while((path = skipelem(path, name)) != 0){
name              672 kernel/fs.c        if((next = dirlookup(ip, name, 0)) == 0){
name              689 kernel/fs.c      char name[DIRSIZ];
name              690 kernel/fs.c      return namex(path, 0, name);
name              694 kernel/fs.c    nameiparent(char *path, char *name)
name              696 kernel/fs.c      return namex(path, 1, name);
name               58 kernel/fs.h      char name[DIRSIZ];
name              167 kernel/proc.c    p->name[0] = 0;
name              249 kernel/proc.c    safestrcpy(p->name, "initcode", sizeof(p->name));
name              311 kernel/proc.c    safestrcpy(np->name, p->name, sizeof(p->name));
name              692 kernel/proc.c      printf("%d %s %s", p->pid, state, p->name);
name              106 kernel/proc.h    char name[16];               // Process name (debugging)
name               13 kernel/sleeplock.c initsleeplock(struct sleeplock *lk, char *name)
name               16 kernel/sleeplock.c   lk->name = name;
name                7 kernel/sleeplock.h   char *name;        // Name of lock.
name               12 kernel/spinlock.c initlock(struct spinlock *lk, char *name)
name               14 kernel/spinlock.c   lk->name = name;
name                6 kernel/spinlock.h   char *name;        // Name of lock.
name              144 kernel/syscall.c             p->pid, p->name, num);
name              126 kernel/sysfile.c   char name[DIRSIZ], new[MAXPATH], old[MAXPATH];
name              149 kernel/sysfile.c   if((dp = nameiparent(new, name)) == 0)
name              152 kernel/sysfile.c   if(dp->dev != ip->dev || dirlink(dp, name, ip->inum) < 0){
name              193 kernel/sysfile.c   char name[DIRSIZ], path[MAXPATH];
name              200 kernel/sysfile.c   if((dp = nameiparent(path, name)) == 0){
name              208 kernel/sysfile.c   if(namecmp(name, ".") == 0 || namecmp(name, "..") == 0)
name              211 kernel/sysfile.c   if((ip = dirlookup(dp, name, &off)) == 0)
name              249 kernel/sysfile.c   char name[DIRSIZ];
name              251 kernel/sysfile.c   if((dp = nameiparent(path, name)) == 0)
name              256 kernel/sysfile.c   if((ip = dirlookup(dp, name, 0)) != 0){
name              282 kernel/sysfile.c   if(dirlink(dp, name, ip->inum) < 0)
name              122 mkfs/mkfs.c      strcpy(de.name, ".");
name              127 mkfs/mkfs.c      strcpy(de.name, "..");
name              156 mkfs/mkfs.c        strncpy(de.name, shortname, DIRSIZ);
name               62 user/ls.c            memmove(p, de.name, DIRSIZ);
name              642 user/usertests.c   char name[3];
name              643 user/usertests.c   name[0] = 'a';
name              644 user/usertests.c   name[2] = '\0';
name              646 user/usertests.c     name[1] = '0' + i;
name              647 user/usertests.c     fd = open(name, O_CREATE|O_RDWR);
name              650 user/usertests.c   name[0] = 'a';
name              651 user/usertests.c   name[2] = '\0';
name              653 user/usertests.c     name[1] = '0' + i;
name              654 user/usertests.c     unlink(name);
name             1224 user/usertests.c   char name[32];
name             1234 user/usertests.c       name[0] = 'p' + pi;
name             1235 user/usertests.c       name[2] = '\0';
name             1237 user/usertests.c         name[1] = '0' + i;
name             1238 user/usertests.c         fd = open(name, O_CREATE | O_RDWR);
name             1245 user/usertests.c           name[1] = '0' + (i / 2);
name             1246 user/usertests.c           if(unlink(name) < 0){
name             1263 user/usertests.c   name[0] = name[1] = name[2] = 0;
name             1266 user/usertests.c       name[0] = 'p' + pi;
name             1267 user/usertests.c       name[1] = '0' + i;
name             1268 user/usertests.c       fd = open(name, 0);
name             1270 user/usertests.c         printf("%s: oops createdelete %s didn't exist\n", s, name);
name             1273 user/usertests.c         printf("%s: oops createdelete %s did exist\n", s, name);
name             1283 user/usertests.c       name[0] = 'p' + pi;
name             1284 user/usertests.c       name[1] = '0' + i;
name             1285 user/usertests.c       unlink(name);
name             1404 user/usertests.c     char name[DIRSIZ];
name             1441 user/usertests.c     if(de.name[0] == 'C' && de.name[2] == '\0'){
name             1442 user/usertests.c       i = de.name[1] - '0';
name             1444 user/usertests.c         printf("%s: concreate weird file %s\n", s, de.name);
name             1448 user/usertests.c         printf("%s: concreate duplicate file %s\n", s, de.name);
name             2352 user/usertests.c     char name[64];
name             2353 user/usertests.c     name[0] = 'f';
name             2354 user/usertests.c     name[1] = '0' + nfiles / 1000;
name             2355 user/usertests.c     name[2] = '0' + (nfiles % 1000) / 100;
name             2356 user/usertests.c     name[3] = '0' + (nfiles % 100) / 10;
name             2357 user/usertests.c     name[4] = '0' + (nfiles % 10);
name             2358 user/usertests.c     name[5] = '\0';
name             2359 user/usertests.c     printf("writing %s\n", name);
name             2360 user/usertests.c     int fd = open(name, O_CREATE|O_RDWR);
name             2362 user/usertests.c       printf("open %s failed\n", name);
name             2380 user/usertests.c     char name[64];
name             2381 user/usertests.c     name[0] = 'f';
name             2382 user/usertests.c     name[1] = '0' + nfiles / 1000;
name             2383 user/usertests.c     name[2] = '0' + (nfiles % 1000) / 100;
name             2384 user/usertests.c     name[3] = '0' + (nfiles % 100) / 10;
name             2385 user/usertests.c     name[4] = '0' + (nfiles % 10);
name             2386 user/usertests.c     name[5] = '\0';
name             2387 user/usertests.c     unlink(name);
name             2667 user/usertests.c   char name[10];
name             2679 user/usertests.c     name[0] = 'x';
name             2680 user/usertests.c     name[1] = '0' + (i / 64);
name             2681 user/usertests.c     name[2] = '0' + (i % 64);
name             2682 user/usertests.c     name[3] = '\0';
name             2683 user/usertests.c     if(link("bd", name) != 0){
name             2684 user/usertests.c       printf("%s: bigdir i=%d link(bd, %s) failed\n", s, i, name);
name             2691 user/usertests.c     name[0] = 'x';
name             2692 user/usertests.c     name[1] = '0' + (i / 64);
name             2693 user/usertests.c     name[2] = '0' + (i % 64);
name             2694 user/usertests.c     name[3] = '\0';
name             2695 user/usertests.c     if(unlink(name) != 0){
name             2718 user/usertests.c       char name[3];
name             2719 user/usertests.c       name[0] = 'b';
name             2720 user/usertests.c       name[1] = 'a' + ci;
name             2721 user/usertests.c       name[2] = '\0';
name             2722 user/usertests.c       unlink(name);
name             2726 user/usertests.c           int fd = open(name, O_CREATE | O_RDWR);
name             2728 user/usertests.c             printf("%s: cannot create %s\n", s, name);
name             2739 user/usertests.c         unlink(name);
name             2742 user/usertests.c       unlink(name);
name             2840 user/usertests.c     char name[32];
name             2841 user/usertests.c     name[0] = 'b';
name             2842 user/usertests.c     name[1] = 'i';
name             2843 user/usertests.c     name[2] = 'g';
name             2844 user/usertests.c     name[3] = '0' + fi;
name             2845 user/usertests.c     name[4] = '\0';
name             2846 user/usertests.c     unlink(name);
name             2847 user/usertests.c     int fd = open(name, O_CREATE|O_RDWR|O_TRUNC);
name             2850 user/usertests.c       printf("%s: could not create file %s\n", s, name);
name             2871 user/usertests.c     char name[32];
name             2872 user/usertests.c     name[0] = 'z';
name             2873 user/usertests.c     name[1] = 'z';
name             2874 user/usertests.c     name[2] = '0' + (i / 32);
name             2875 user/usertests.c     name[3] = '0' + (i % 32);
name             2876 user/usertests.c     name[4] = '\0';
name             2877 user/usertests.c     unlink(name);
name             2878 user/usertests.c     int fd = open(name, O_CREATE|O_RDWR|O_TRUNC);
name             2891 user/usertests.c     char name[32];
name             2892 user/usertests.c     name[0] = 'z';
name             2893 user/usertests.c     name[1] = 'z';
name             2894 user/usertests.c     name[2] = '0' + (i / 32);
name             2895 user/usertests.c     name[3] = '0' + (i % 32);
name             2896 user/usertests.c     name[4] = '\0';
name             2897 user/usertests.c     unlink(name);
name             2901 user/usertests.c     char name[32];
name             2902 user/usertests.c     name[0] = 'b';
name             2903 user/usertests.c     name[1] = 'i';
name             2904 user/usertests.c     name[2] = 'g';
name             2905 user/usertests.c     name[3] = '0' + i;
name             2906 user/usertests.c     name[4] = '\0';
name             2907 user/usertests.c     unlink(name);
name             2916 user/usertests.c     char name[32];
name             2917 user/usertests.c     name[0] = 'z';
name             2918 user/usertests.c     name[1] = 'z';
name             2919 user/usertests.c     name[2] = '0' + (i / 32);
name             2920 user/usertests.c     name[3] = '0' + (i % 32);
name             2921 user/usertests.c     name[4] = '\0';
name             2922 user/usertests.c     unlink(name);
name             2923 user/usertests.c     int fd = open(name, O_CREATE|O_RDWR|O_TRUNC);
name             2932 user/usertests.c     char name[32];
name             2933 user/usertests.c     name[0] = 'z';
name             2934 user/usertests.c     name[1] = 'z';
name             2935 user/usertests.c     name[2] = '0' + (i / 32);
name             2936 user/usertests.c     name[3] = '0' + (i % 32);
name             2937 user/usertests.c     name[4] = '\0';
name             2938 user/usertests.c     unlink(name);
name                9 user/wc.c      wc(int fd, char *name)
name               33 user/wc.c        printf("%d %d %d %s\n", l, w, c, name);