Searched refs:open (Results 26 - 50 of 740) sorted by relevance

1234567891011>>

/haiku-fatelf/src/tests/add-ons/kernel/file_systems/bfs/rename/
H A Drename.c19 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 Dfd-reopen.c1 /* 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 Dchown.c48 /* 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 Dopen.c21 /* 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 Dopenat.c68 - 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 Dpower_button_monitor.cpp10 power_button_fd = open("/dev/power/button/power",O_RDONLY);
/haiku-fatelf/src/system/libroot/posix/stdlib/
H A Dpty.cpp19 return open("/dev/ptmx", openFlags);
/haiku-fatelf/src/tests/kits/net/
H A Dstop_stack.c15 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 Dchown.c35 /* 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 Dfstream.cc66 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 D12-1.c14 * 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 DSFile.h44 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 DFinePixTest.cpp26 int fd = open(fname, O_WRONLY | O_CREAT,0644);
/haiku-fatelf/src/bin/
H A Drescan.c38 fd_dev = open("/dev", O_WRONLY);
/haiku-fatelf/src/libs/util/
H A Dauth.c49 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 Drandom_test.cpp16 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 Darea.c16 int fd = open ("/tmp/input_area.bin", O_WRONLY | O_CREAT | O_TRUNC, 0644);
/haiku-fatelf/src/tests/system/benchmarks/libMicro/
H A Dfcntl.c78 if ((fd = open(optf, O_RDONLY)) == -1) {
79 perror("open");
/haiku-fatelf/src/tools/fixup_tos_boot_checksum/
H A Dfixup_tos_boot_checksum.c13 fd = open(argv[1], O_RDWR);
/haiku-fatelf/src/add-ons/kernel/drivers/audio/ac97/auich/
H A Ddebug.c73 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 Ddebug.c73 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 Ddebug.c54 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 Ddebug.c63 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 Ddebug.c71 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 Ddebug.c73 int fd = open(logfile, O_WRONLY | O_CREAT | O_TRUNC, 0666);
96 fd = open(logfile, O_WRONLY | O_APPEND);

Completed in 228 milliseconds

1234567891011>>