open 31 cat.c if((fd = open(argv[i], 0)) < 0){ open 56 grep.c if((fd = open(argv[i], 0)) < 0){ open 15 init.c if(open("console", O_RDWR) < 0){ open 17 init.c open("console", O_RDWR); open 33 ls.c if((fd = open(path, 0)) < 0){ open 87 mkfs.c fsfd = open(argv[1], O_RDWR|O_CREAT|O_TRUNC, 0666); open 133 mkfs.c if((fd = open(argv[i], 0)) < 0){ open 85 sh.c if(open(rcmd->file, rcmd->mode) < 0){ open 151 sh.c while((fd = open("console", O_RDWR)) >= 0){ open 33 stressfs.c fd = open(path, O_CREATE | O_RDWR); open 41 stressfs.c fd = open(path, O_RDONLY); open 76 ulib.c fd = open(n, O_RDONLY); open 100 usertests.c int fd = open("oidir", O_RDWR); open 124 usertests.c fd = open("echo", 0); open 130 usertests.c fd = open("doesnotexist", 0); open 145 usertests.c fd = open("small", O_CREATE|O_RDWR); open 164 usertests.c fd = open("small", O_RDONLY); open 194 usertests.c fd = open("big", O_CREATE|O_RDWR); open 210 usertests.c fd = open("big", O_RDONLY); open 255 usertests.c fd = open(name, O_CREATE|O_RDWR); open 473 usertests.c fd = open("sharedfd", O_CREATE|O_RDWR); open 491 usertests.c fd = open("sharedfd", 0); open 537 usertests.c fd = open(fname, O_CREATE | O_RDWR); open 560 usertests.c fd = open(fname, 0); open 604 usertests.c fd = open(name, O_CREATE | O_RDWR); open 631 usertests.c fd = open(name, 0); open 662 usertests.c fd = open("unlinkread", O_CREATE | O_RDWR); open 670 usertests.c fd = open("unlinkread", O_RDWR); open 680 usertests.c fd1 = open("unlinkread", O_CREATE | O_RDWR); open 711 usertests.c fd = open("lf1", O_CREATE|O_RDWR); open 728 usertests.c if(open("lf1", 0) >= 0){ open 733 usertests.c fd = open("lf2", 0); open 787 usertests.c fd = open(file, O_CREATE | O_RDWR); open 801 usertests.c fd = open(".", 0); open 836 usertests.c close(open(file, 0)); open 837 usertests.c close(open(file, 0)); open 838 usertests.c close(open(file, 0)); open 839 usertests.c close(open(file, 0)); open 875 usertests.c close(open("x", O_RDWR | O_CREATE)); open 901 usertests.c fd = open("bd", O_CREATE); open 947 usertests.c fd = open("dd/ff", O_CREATE | O_RDWR); open 965 usertests.c fd = open("dd/dd/ff", O_CREATE | O_RDWR); open 973 usertests.c fd = open("dd/dd/../ff", 0); open 994 usertests.c if(open("dd/dd/ff", O_RDONLY) >= 0){ open 1016 usertests.c fd = open("dd/dd/ffff", 0); open 1027 usertests.c if(open("dd/dd/ff", O_RDONLY) >= 0){ open 1032 usertests.c if(open("dd/ff/ff", O_CREATE|O_RDWR) >= 0){ open 1036 usertests.c if(open("dd/xx/ff", O_CREATE|O_RDWR) >= 0){ open 1040 usertests.c if(open("dd", O_CREATE) >= 0){ open 1044 usertests.c if(open("dd", O_RDWR) >= 0){ open 1048 usertests.c if(open("dd", O_WRONLY) >= 0){ open 1127 usertests.c fd = open("bigwrite", O_CREATE | O_RDWR); open 1155 usertests.c fd = open("bigfile", O_CREATE | O_RDWR); open 1169 usertests.c fd = open("bigfile", 0); open 1219 usertests.c fd = open("123456789012345/123456789012345/123456789012345", O_CREATE); open 1225 usertests.c fd = open("12345678901234/12345678901234/12345678901234", 0); open 1290 usertests.c fd = open("dirfile", O_CREATE); open 1300 usertests.c fd = open("dirfile/xx", 0); open 1305 usertests.c fd = open("dirfile/xx", O_CREATE); open 1327 usertests.c fd = open(".", O_RDWR); open 1332 usertests.c fd = open(".", 0); open 1363 usertests.c fd = open("", O_CREATE); open 1366 usertests.c fd = open("xx", O_CREATE); open 1628 usertests.c fd = open("bigarg-ok", O_CREATE); open 1636 usertests.c fd = open("bigarg-ok", 0); open 1664 usertests.c int fd = open(name, O_CREATE|O_RDWR); open 1711 usertests.c if(open("usertests.ran", 0) >= 0){ open 1715 usertests.c close(open("usertests.ran", O_CREATE)); open 46 wc.c if((fd = open(argv[i], 0)) < 0){