open 856 bisect.c fd = open(filename, O_CREAT | O_TRUNC | O_WRONLY, 0600); open 203 builtin/add.c out = open(file, O_CREAT | O_WRONLY, 0666); open 4114 builtin/apply.c fd = open(path, O_CREAT | O_EXCL | O_WRONLY, (mode & 0100) ? 0777 : 0666); open 4638 builtin/apply.c fd = open(arg, O_RDONLY); open 15 builtin/archive.c int output_fd = open(output_file, O_CREAT | O_WRONLY | O_TRUNC, 0666); open 2244 builtin/blame.c merge_head = open(git_path_merge_head(), O_RDONLY); open 122 builtin/clone.c int len, fd = open(path->buf, O_RDONLY); open 97 builtin/commit-tree.c fd = open(argv[i], O_RDONLY); open 575 builtin/config.c int fd = open(config_file, O_CREAT | O_EXCL | O_WRONLY, 0666); open 52 builtin/hash-object.c fd = open(path, O_RDONLY); open 150 builtin/index-pack.c thread_data[i].pack_fd = open(curr_pack, O_RDONLY); open 311 builtin/index-pack.c output_fd = open(pack_name, O_CREAT|O_EXCL|O_RDWR, 0600); open 316 builtin/index-pack.c input_fd = open(pack_name, O_RDONLY); open 1400 builtin/index-pack.c keep_fd = open(keep_name, O_RDWR|O_CREAT|O_EXCL, 0600); open 65 builtin/mailsplit.c fd = open(name, O_WRONLY | O_CREAT | O_EXCL, 0666); open 342 builtin/merge.c fd = open(filename, O_WRONLY | O_CREAT, 0666); open 758 builtin/merge.c int fd = open(filename, O_WRONLY | O_CREAT, 0666); open 971 builtin/merge.c fd = open(filename, O_WRONLY | O_CREAT, 0666); open 981 builtin/merge.c fd = open(filename, O_WRONLY | O_CREAT | O_TRUNC, 0666); open 1074 builtin/merge.c fd = open(filename, O_RDONLY); open 172 builtin/notes.c fd = open(d->edit_path, O_CREAT | O_TRUNC | O_WRONLY, 0600); open 206 builtin/replace.c fd = open(filename, O_WRONLY | O_CREAT | O_TRUNC, 0666); open 234 builtin/replace.c fd = open(filename, O_RDONLY); open 475 builtin/tag.c fd = open(path, O_CREAT | O_TRUNC | O_WRONLY, 0600); open 84 builtin/update-index.c fd = open(path, O_CREAT | O_RDWR, 0644); open 45 builtin/worktree.c fd = open(git_path("worktrees/%s/gitdir", id), O_RDONLY); open 84 bundle.c int fd = open(path, O_RDONLY); open 94 bundle.c int fd = open(path, O_RDONLY); open 1030 combine-diff.c } else if (0 <= (fd = open(elem->path, O_RDONLY))) { open 653 compat/mingw.c return open(filename, O_RDWR | O_CREAT, 0600); open 790 compat/mingw.c fd = open(cmd, O_RDONLY); open 1541 compat/nedmalloc/malloc.c.h (dev_zero_fd = open("/dev/zero", O_RDWR), \ open 3073 compat/nedmalloc/malloc.c.h if ((fd = open("/dev/urandom", O_RDONLY)) >= 0 && open 47 compat/precompose_utf8.c output_fd = open(path, O_CREAT|O_EXCL|O_RDWR, 0600); open 39 compat/terminal.c term_fd = open("/dev/tty", O_RDWR); open 1990 config.c in_fd = open(config_filename, O_RDONLY); open 36 copy.c if ((fdi = open(src, O_RDONLY)) < 0) open 38 copy.c if ((fdo = open(dst, O_WRONLY | O_CREAT | O_EXCL, mode)) < 0) { open 131 csum-file.c sink = open("/dev/null", O_WRONLY); open 134 csum-file.c check = open(name, O_RDONLY); open 2797 diff.c fd = open(s->path, O_RDONLY); open 688 dir.c fd = open(fname, O_RDONLY); open 79 entry.c return open(path, O_WRONLY | O_CREAT | O_EXCL, mode); open 285 environment.c fd = open(name, O_RDWR|O_CREAT|O_EXCL, 0600); open 291 environment.c return open(name, O_RDWR|O_CREAT|O_EXCL, 0600); open 145 fsck.c fd = open(path, O_RDONLY); open 1741 grep.c i = open(filename, O_RDONLY); open 113 help.c int fd = open(name, O_RDONLY); open 173 http-backend.c fd = open(p, O_RDONLY); open 1694 http.c freq->localfile = open(freq->tmpfile, open 1707 http.c freq->localfile = open(freq->tmpfile, open 1727 http.c prevlocal = open(prevfile, O_RDONLY); open 202 ll-merge.c fd = open(temp[1], O_RDONLY); open 786 merge-recursive.c fd = open(path, O_WRONLY | O_TRUNC | O_CREAT, mode); open 304 notes-merge.c fd = open(path, O_WRONLY | O_TRUNC | O_CREAT, 0666); open 80 pack-write.c fd = open(index_name, O_CREAT|O_EXCL|O_WRONLY, 0600); open 303 path.c fd = open(path, O_RDONLY); open 163 read-cache.c int fd = open(ce->name, O_RDONLY); open 1539 read-cache.c fd = open(path, O_RDONLY); open 1915 read-cache.c fd = open(path, O_RDONLY); open 1495 refs.c fd = open(path, O_RDONLY); open 1690 refs.c fd = open(path, O_RDONLY); open 3281 refs.c logfd = open(logfile->buf, oflags, 0666); open 3292 refs.c logfd = open(logfile->buf, oflags, 0666); open 3359 refs.c logfd = open(logfile->buf, oflags); open 3522 refs.c fd = open(lockpath, O_CREAT | O_EXCL | O_WRONLY, 0666); open 200 remote-testsvn.c dumpin_fd = open(url, O_RDONLY); open 88 run-command.c int fd = open("/dev/null", O_RDWR); open 460 run-command.c fhin = open("/dev/null", O_RDWR); open 467 run-command.c fherr = open("/dev/null", O_RDWR); open 474 run-command.c fhout = open("/dev/null", O_RDWR); open 748 sequencer.c fd = open(git_path_todo_file(), O_RDONLY); open 483 setup.c fd = open(path, O_RDONLY); open 1015 setup.c int fd = open("/dev/null", O_RDWR, 0); open 1512 sha1_file.c fd = open(name, O_RDONLY | sha1_file_open_flag); open 3420 sha1_file.c fd = open(path, O_RDONLY); open 534 strbuf.c fd = open(path, O_RDONLY); open 123 tempfile.c tempfile->fd = open(tempfile->filename.buf, O_RDWR | O_CREAT | O_EXCL, 0666); open 271 tempfile.c tempfile->fd = open(tempfile->filename.buf, O_WRONLY); open 30 test-delta.c fd = open(argv[2], O_RDONLY); open 44 test-delta.c fd = open(argv[3], O_RDONLY); open 71 test-delta.c fd = open (argv[4], O_WRONLY|O_CREAT|O_TRUNC, 0666); open 52 trace.c int fd = open(trace, O_WRONLY | O_APPEND | O_CREAT, 0666); open 74 transport.c int fd = open(path->buf, O_RDONLY); open 212 wrapper.c int fd = open(path, oflag, mode); open 481 wrapper.c fd = open(pattern, O_CREAT | O_EXCL | O_RDWR, mode); open 628 wrapper.c int fd = open(path, O_RDWR | O_CREAT | O_TRUNC, 0666);