open               88 mkfs/mkfs.c      fsfd = open(argv[1], O_RDWR|O_CREAT|O_TRUNC, 0666);
open              140 mkfs/mkfs.c        if((fd = open(argv[i], 0)) < 0)
open               35 user/cat.c         if((fd = open(argv[i], O_RDONLY)) < 0){
open               55 user/grep.c        if((fd = open(argv[i], O_RDONLY)) < 0){
open               71 user/grind.c         close(open("grindir/../a", O_CREATE|O_RDWR));
open               73 user/grind.c         close(open("grindir/../grindir/../b", O_CREATE|O_RDWR));
open               85 user/grind.c         fd = open("/grindir/../a", O_CREATE|O_RDWR);
open               88 user/grind.c         fd = open("/./grindir/./../b", O_CREATE|O_RDWR);
open               95 user/grind.c         close(open("a/../a/./a", O_CREATE|O_RDWR));
open               99 user/grind.c         close(open("grindir/../b/b", O_CREATE|O_RDWR));
open              135 user/grind.c           close(open("a", O_CREATE|O_RDWR));
open              187 user/grind.c           fd = open("x", O_CREATE|O_RDWR);
open              199 user/grind.c         int fd1 = open("c", O_CREATE|O_RDWR);
open               19 user/init.c      if(open("console", O_RDWR) < 0){
open               21 user/init.c        open("console", O_RDWR);
open               34 user/ls.c        if((fd = open(path, O_RDONLY)) < 0){
open               86 user/sh.c          if(open(rcmd->file, rcmd->mode) < 0){
open              152 user/sh.c        while((fd = open("console", O_RDWR)) >= 0){
open               33 user/stressfs.c   fd = open(path, O_CREATE | O_RDWR);
open               41 user/stressfs.c   fd = open(path, O_RDONLY);
open               90 user/ulib.c      fd = open(n, O_RDONLY);
open               13 user/user.h    int open(const char*, int);
open               41 user/usertests.c     int fd = open("copyin1", O_CREATE|O_WRONLY);
open               86 user/usertests.c     int fd = open("README", 0);
open              128 user/usertests.c     int fd = open((char *)addr, O_CREATE|O_WRONLY);
open              154 user/usertests.c   int fd = open(b, O_CREATE | O_WRONLY);
open              224 user/usertests.c   int fd = open(b, O_CREATE | O_WRONLY);
open              263 user/usertests.c   fd = open("rwsbrk", O_CREATE|O_WRONLY);
open              276 user/usertests.c   fd = open("README", O_RDONLY);
open              298 user/usertests.c   int fd1 = open("truncfile", O_CREATE|O_WRONLY|O_TRUNC);
open              302 user/usertests.c   int fd2 = open("truncfile", O_RDONLY);
open              309 user/usertests.c   fd1 = open("truncfile", O_WRONLY|O_TRUNC);
open              311 user/usertests.c   int fd3 = open("truncfile", O_RDONLY);
open              356 user/usertests.c   int fd1 = open("truncfile", O_CREATE|O_TRUNC|O_WRONLY);
open              359 user/usertests.c   int fd2 = open("truncfile", O_TRUNC|O_WRONLY);
open              377 user/usertests.c   close(open("truncfile", O_CREATE|O_TRUNC|O_WRONLY));
open              388 user/usertests.c       int fd = open("truncfile", O_WRONLY);
open              399 user/usertests.c       fd = open("truncfile", O_RDONLY);
open              407 user/usertests.c     int fd = open("truncfile", O_CREATE|O_WRONLY|O_TRUNC);
open              504 user/usertests.c     int fd = open("oidir", O_RDWR);
open              527 user/usertests.c   fd = open("echo", 0);
open              533 user/usertests.c   fd = open("doesnotexist", 0);
open              547 user/usertests.c   fd = open("small", O_CREATE|O_RDWR);
open              563 user/usertests.c   fd = open("small", O_RDONLY);
open              586 user/usertests.c   fd = open("big", O_CREATE|O_RDWR);
open              602 user/usertests.c   fd = open("big", O_RDONLY);
open              647 user/usertests.c     fd = open(name, O_CREATE|O_RDWR);
open              696 user/usertests.c     fd = open("echo-ok", O_CREATE|O_WRONLY);
open              717 user/usertests.c   fd = open("echo-ok", O_RDONLY);
open             1012 user/usertests.c       int fd = open("stopforking", 0);
open             1017 user/usertests.c         close(open("stopforking", O_CREATE|O_RDWR));
open             1025 user/usertests.c   close(open("stopforking", O_CREATE|O_RDWR));
open             1104 user/usertests.c   fd = open("sharedfd", O_CREATE|O_RDWR);
open             1127 user/usertests.c   fd = open("sharedfd", 0);
open             1172 user/usertests.c       fd = open(fname, O_CREATE | O_RDWR);
open             1198 user/usertests.c     fd = open(fname, 0);
open             1238 user/usertests.c         fd = open(name, O_CREATE | O_RDWR);
open             1268 user/usertests.c       fd = open(name, 0);
open             1297 user/usertests.c   fd = open("unlinkread", O_CREATE | O_RDWR);
open             1305 user/usertests.c   fd = open("unlinkread", O_RDWR);
open             1315 user/usertests.c   fd1 = open("unlinkread", O_CREATE | O_RDWR);
open             1344 user/usertests.c   fd = open("lf1", O_CREATE|O_RDWR);
open             1361 user/usertests.c   if(open("lf1", 0) >= 0){
open             1366 user/usertests.c   fd = open("lf2", 0);
open             1418 user/usertests.c       fd = open(file, O_CREATE | O_RDWR);
open             1436 user/usertests.c   fd = open(".", 0);
open             1471 user/usertests.c       close(open(file, 0));
open             1472 user/usertests.c       close(open(file, 0));
open             1473 user/usertests.c       close(open(file, 0));
open             1474 user/usertests.c       close(open(file, 0));
open             1475 user/usertests.c       close(open(file, 0));
open             1476 user/usertests.c       close(open(file, 0));
open             1510 user/usertests.c       close(open("x", O_RDWR | O_CREATE));
open             1536 user/usertests.c   fd = open("dd/ff", O_CREATE | O_RDWR);
open             1554 user/usertests.c   fd = open("dd/dd/ff", O_CREATE | O_RDWR);
open             1562 user/usertests.c   fd = open("dd/dd/../ff", 0);
open             1583 user/usertests.c   if(open("dd/dd/ff", O_RDONLY) >= 0){
open             1605 user/usertests.c   fd = open("dd/dd/ffff", 0);
open             1616 user/usertests.c   if(open("dd/dd/ff", O_RDONLY) >= 0){
open             1621 user/usertests.c   if(open("dd/ff/ff", O_CREATE|O_RDWR) >= 0){
open             1625 user/usertests.c   if(open("dd/xx/ff", O_CREATE|O_RDWR) >= 0){
open             1629 user/usertests.c   if(open("dd", O_CREATE) >= 0){
open             1633 user/usertests.c   if(open("dd", O_RDWR) >= 0){
open             1637 user/usertests.c   if(open("dd", O_WRONLY) >= 0){
open             1712 user/usertests.c     fd = open("bigwrite", O_CREATE | O_RDWR);
open             1738 user/usertests.c   fd = open("bigfile.dat", O_CREATE | O_RDWR);
open             1752 user/usertests.c   fd = open("bigfile.dat", 0);
open             1799 user/usertests.c   fd = open("123456789012345/123456789012345/123456789012345", O_CREATE);
open             1805 user/usertests.c   fd = open("12345678901234/12345678901234/12345678901234", 0);
open             1872 user/usertests.c   fd = open("dirfile", O_CREATE);
open             1882 user/usertests.c   fd = open("dirfile/xx", 0);
open             1887 user/usertests.c   fd = open("dirfile/xx", O_CREATE);
open             1909 user/usertests.c   fd = open(".", O_RDWR);
open             1914 user/usertests.c   fd = open(".", 0);
open             1941 user/usertests.c     fd = open("", O_CREATE);
open             1944 user/usertests.c     fd = open("xx", O_CREATE);
open             2249 user/usertests.c   fd = open("sbrk", O_CREATE|O_WRONLY);
open             2322 user/usertests.c     fd = open("bigarg-ok", O_CREATE);
open             2333 user/usertests.c   fd = open("bigarg-ok", 0);
open             2360 user/usertests.c     int fd = open(name, O_CREATE|O_RDWR);
open             2397 user/usertests.c   fd = open("init", O_RDONLY);
open             2551 user/usertests.c   int fd = open(p, O_RDWR|O_CREATE);
open             2554 user/usertests.c   fd = open(p, O_RDWR);
open             2671 user/usertests.c   fd = open("bd", O_CREATE);
open             2726 user/usertests.c           int fd = open(name, O_CREATE | O_RDWR);
open             2768 user/usertests.c     int fd = open("junk", O_CREATE|O_WRONLY);
open             2778 user/usertests.c   int fd = open("junk", O_CREATE|O_WRONLY);
open             2847 user/usertests.c     int fd = open(name, O_CREATE|O_RDWR|O_TRUNC);
open             2878 user/usertests.c     int fd = open(name, O_CREATE|O_RDWR|O_TRUNC);
open             2923 user/usertests.c     int fd = open(name, O_CREATE|O_RDWR|O_TRUNC);
open               47 user/wc.c          if((fd = open(argv[i], O_RDONLY)) < 0){