/haiku-fatelf/src/tests/add-ons/kernel/file_systems/bfs/rename/ |
H A D | rename.c | 19 file = open("__file", O_CREAT | O_TRUNC | O_WRONLY); 31 file = open("__directory/1", O_CREAT | O_WRONLY);
|
/haiku-fatelf/src/bin/coreutils/lib/ |
H A D | fd-reopen.c | 1 /* Invoke open, but return either a desired file descriptor or -1. 29 `open', except it always returns DESIRED_FD if successful. */ 34 int fd = open (file, flags, mode);
|
H A D | chown.c | 48 /* The results of open() in this file are not used with fchdir, 50 # undef open macro 92 on the symlink itself. To work around that, we open the 96 int fd = open (file, O_RDONLY | open_flags); 99 && 0 <= (fd = open (file, O_WRONLY | open_flags))))
|
H A D | open.c | 21 /* Get the original definition of open. It might be defined as a macro. */ 30 return open (filename, flags, mode); 48 open (const char *filename, int flags, ...) function 83 - if O_CREAT is specified, open() must fail because of the semantics 85 - if O_WRONLY or O_RDWR is specified, open() must fail because POSIX 86 <http://www.opengroup.org/susv3/functions/open.html> says that it 89 - if O_CREAT is specified, open() must fail since open() cannot create 91 - if O_WRONLY or O_RDWR is specified, open() must fail because the 107 /* Implementing fchdir and fdopendir requires the ability to open [all...] |
H A D | openat.c | 68 - if O_CREAT is specified, open() must fail because of the semantics 70 - if O_WRONLY or O_RDWR is specified, open() must fail because POSIX 71 <http://www.opengroup.org/susv3/functions/open.html> says that it 74 - if O_CREAT is specified, open() must fail since open() cannot create 76 - if O_WRONLY or O_RDWR is specified, open() must fail because the 102 If the named file without the slash is not a directory, open() must fail 106 /* We know len is positive, since open did not fail with ENOENT. */ 129 First, try to simulate it via open ("/proc/self/fd/FD/FILE"). 130 Failing that, simulate it by doing save_cwd/fchdir/open/restore_cw [all...] |
/haiku-fatelf/src/servers/power/ |
H A D | power_button_monitor.cpp | 10 power_button_fd = open("/dev/power/button/power",O_RDONLY);
|
/haiku-fatelf/src/system/libroot/posix/stdlib/ |
H A D | pty.cpp | 19 return open("/dev/ptmx", openFlags);
|
/haiku-fatelf/src/tests/kits/net/ |
H A D | stop_stack.c | 15 fd = open("/dev/" NET_STACK_DRIVER_PATH, O_RDWR); 17 err(fd, "can't open the stack driver");
|
/haiku-fatelf/src/bin/findutils/gnulib/lib/ |
H A D | chown.c | 35 /* The results of open() in this file are not used with fchdir, 37 #undef open macro 70 on the symlink itself. To work around that, we open the 74 int fd = open (file, O_RDONLY | open_flags); 77 && 0 <= (fd = open (file, O_WRONLY | open_flags))))
|
/haiku-fatelf/src/libs/stdc++/legacy/ |
H A D | fstream.cc | 66 if (!rdbuf()->open(name, mode, prot)) 81 void fstreambase::open(const char *name, int mode, int prot) function in class:fstreambase 84 if (!rdbuf()->open(name, mode, prot))
|
/haiku-fatelf/src/tests/system/libroot/posix/posixtestsuite/conformance/interfaces/mmap/ |
H A D | 12-1.c | 14 * 1. Create a file, while it is open call unlink(). 17 * 3. Try to open the file, open should success; 19 * 4. Try open the file again, should get ENOENT; 58 fd = open(tmpfname, O_CREAT | O_RDWR | O_EXCL, 62 printf(TNAME " Error at open(): %s\n", 94 fd2 = open(tmpfname, O_RDWR, S_IRUSR | S_IWUSR); 97 printf(TNAME " Error at open(): %s\n", 107 fd2 = open(tmpfname, O_RDWR, S_IRUSR | S_IWUSR); 123 printf("PTS_UNRESLOVED " TNAME " Error at open() [all...] |
/haiku-fatelf/headers/cpp/ |
H A D | SFile.h | 44 void open(const char *name, int size, int mode, int prot=0664);
|
/haiku-fatelf/src/add-ons/media/media-add-ons/finepix_webcam/FinePixUSBKitTest/ |
H A D | FinePixTest.cpp | 26 int fd = open(fname, O_WRONLY | O_CREAT,0644);
|
/haiku-fatelf/src/bin/ |
H A D | rescan.c | 38 fd_dev = open("/dev", O_WRONLY);
|
/haiku-fatelf/src/libs/util/ |
H A D | auth.c | 49 if ((fd = open(path, O_RDONLY)) < 0) { 50 syslog(LOG_ERR, "initauthconf: unable to open file: %s", path);
|
/haiku-fatelf/src/tests/add-ons/kernel/drivers/random/ |
H A D | random_test.cpp | 16 int fd = open(kRandomDevice, O_RDONLY); 18 fprintf(stderr, "Error: Failed to open \"%s\": %s", kRandomDevice,
|
/haiku-fatelf/src/tests/servers/input/comm/ |
H A D | area.c | 16 int fd = open ("/tmp/input_area.bin", O_WRONLY | O_CREAT | O_TRUNC, 0644);
|
/haiku-fatelf/src/tests/system/benchmarks/libMicro/ |
H A D | fcntl.c | 78 if ((fd = open(optf, O_RDONLY)) == -1) { 79 perror("open");
|
/haiku-fatelf/src/tools/fixup_tos_boot_checksum/ |
H A D | fixup_tos_boot_checksum.c | 13 fd = open(argv[1], O_RDWR);
|
/haiku-fatelf/src/add-ons/kernel/drivers/audio/ac97/auich/ |
H A D | debug.c | 73 int fd = open(logfile, O_WRONLY | O_CREAT | O_TRUNC, 0666); 96 fd = open(logfile, O_WRONLY | O_APPEND);
|
/haiku-fatelf/src/add-ons/kernel/drivers/audio/ac97/auvia/ |
H A D | debug.c | 73 int fd = open(logfile, O_WRONLY | O_CREAT | O_TRUNC, 0666); 96 fd = open(logfile, O_WRONLY | O_APPEND);
|
/haiku-fatelf/src/add-ons/kernel/drivers/audio/ac97/es1370/ |
H A D | debug.c | 54 int fd = open(logfile, O_WRONLY | O_CREAT | O_TRUNC, 0666); 77 fd = open(logfile, O_WRONLY | O_APPEND);
|
/haiku-fatelf/src/add-ons/kernel/drivers/audio/ac97/ich/ |
H A D | debug.c | 63 int fd = open(logfile, O_WRONLY | O_CREAT | O_TRUNC, 0666); 84 fd = open(logfile, O_WRONLY | O_APPEND);
|
/haiku-fatelf/src/add-ons/kernel/drivers/audio/echo/ |
H A D | debug.c | 71 int fd = open(logfile, O_WRONLY | O_CREAT | O_TRUNC, 0666); 94 fd = open(logfile, O_WRONLY | O_APPEND);
|
/haiku-fatelf/src/add-ons/kernel/drivers/audio/emuxki/ |
H A D | debug.c | 73 int fd = open(logfile, O_WRONLY | O_CREAT | O_TRUNC, 0666); 96 fd = open(logfile, O_WRONLY | O_APPEND);
|