O_CREAT
#define B_CREATE_FILE O_CREAT /* create the file */
int fd = open(filename, O_CREAT | O_WRONLY, 0644);
int flags = O_WRONLY | O_CREAT | ((!b_log_append) ? O_TRUNC : 0);
int fd = open(logfile, O_WRONLY | O_CREAT | O_TRUNC, 0666);
int fd = open(logfile, O_WRONLY | O_CREAT | O_TRUNC, 0666);
int fd = open(logfile, O_WRONLY | O_CREAT | O_TRUNC, 0666);
int flags = O_WRONLY | O_CREAT | ((gTruncateLogFile) ? O_TRUNC : 0);
int fd = open(logfile, O_WRONLY | O_CREAT | O_TRUNC, 0666);
int fd = open(logfile, O_WRONLY | O_CREAT | O_TRUNC, 0666);
int flags = O_WRONLY | O_CREAT | ((gTruncateLogFile) ? O_TRUNC : 0);
fd = open (fname, O_WRONLY | O_CREAT, 0666);
fd = open (fname, O_WRONLY | O_CREAT, 0666);
O_WRONLY | O_CREAT, 0666);
fd = open (fname, O_WRONLY | O_CREAT, 0666);
O_WRONLY | O_CREAT, 0666);
O_WRONLY | O_CREAT, 0666);
int fd = open(outputFile, O_WRONLY | O_CREAT | O_TRUNC, 0644);
int fd = open(outputFile, O_WRONLY | O_CREAT | O_TRUNC, 0644);
int fd = open(logfile, O_WRONLY | O_CREAT | O_TRUNC, 0666);
int flags = O_WRONLY | O_CREAT | ((gTruncateLogFile) ? O_TRUNC : 0);
int flags = O_WRONLY | O_CREAT | (!gLogAppend ? O_TRUNC : 0);
int flags = O_WRONLY | O_CREAT | (!gLogAppend ? O_TRUNC : 0);
int flags = O_WRONLY | O_CREAT | ((!b_log_append) ? O_TRUNC : 0);
int fd = open(name, O_CREAT | O_TRUNC | O_WRONLY, 0644);
sLogFile = open(name, O_WRONLY | O_CREAT | O_EXCL, DEFFILEMODE);
out = open(DEBUG_PRINT_FILE, O_RDWR | O_CREAT | O_TRUNC);
return open(path, mode | (create ? O_CREAT | O_TRUNC : 0), 0644);
if ((openMode & O_CREAT) != 0) {
|| (openMode & O_TRUNC) != 0 || (openMode & O_CREAT) != 0)
nameBuffer, O_RDWR | O_CREAT | O_TRUNC, S_IRUSR | S_IWUSR | S_IRGRP
openMode &= ~(O_RDWR | O_WRONLY | O_TRUNC | O_CREAT);
openMode | O_CREAT | O_NOTRAVERSE, request->mode, fd);
openMode &= ~(O_CREAT | O_EXCL | O_TRUNC);
out = open(DEBUG_PRINT_FILE, O_RDWR | O_CREAT | O_TRUNC);
if (!(omode & O_CREAT))
NULL, (flags & O_CREAT ? OPEN_ALWAYS : OPEN_EXISTING),
|| (openMode & (O_TRUNC | O_CREAT))) {
out = open(DEBUG_PRINT_FILE, O_RDWR | O_CREAT | O_TRUNC);
fFile = open(filename, O_RDWR | O_CREAT | O_TRUNC);
out = open(DEBUG_PRINT_FILE, O_RDWR | O_CREAT | O_TRUNC);
fd = open("/tmp/duckduckgo.html", O_CREAT|O_TRUNC|O_RDWR, 0644);
sFD = open("/boot/home/ipcpdebug", O_WRONLY | O_CREAT | O_TRUNC);
fFile = open(filename, O_RDWR | O_CREAT | O_TRUNC);
fVideoFile = open("/boot/home/dvb-video.mpg", O_RDWR | O_CREAT | O_TRUNC);
fAudioFile = open("/boot/home/dvb-audio.mpg", O_RDWR | O_CREAT | O_TRUNC);
O_RDWR | O_CREAT | O_TRUNC);
fMpegTsFile = open("/boot/home/dvb-mpeg.ts", O_RDWR | O_CREAT | O_TRUNC);
int fd = open(fname, O_WRONLY | O_CREAT,0644);
fDumpFD = open("/boot/home/webcam.out", O_CREAT|O_RDWR, 0644);
BFile tmpFile(tmpPath, O_WRONLY | O_CREAT);
BFile targetFile(targetFilePath.Path(), O_WRONLY | O_CREAT);
BFile file(path.Path(), O_WRONLY | O_CREAT | O_APPEND);
BFile file(path.Path(), O_WRONLY | O_CREAT);
out = open(DEBUG_PRINT_FILE, O_RDWR | O_CREAT | O_TRUNC);
if ((fd = open(path.Path(), O_RDWR | O_CREAT | O_EXCL, 0666)) < 0) {
fCaptureFile = open(str.String(), O_CREAT | O_WRONLY,
fdout = open(fnameN, O_WRONLY|O_CREAT);
FLAG_INFO_ENTRY(O_CREAT),
outFD = open(outputFile, O_WRONLY | O_CREAT | O_TRUNC,
int fd = open(path, O_RDWR | O_EXCL | O_CREAT, S_IRUSR | S_IWUSR);
fd = open(filename, O_CREAT | O_WRONLY | O_TRUNC, 0660);
fd = open(filename, O_CREAT | O_WRONLY | O_TRUNC, 0660);
O_CREAT | O_WRONLY | O_TRUNC);
O_RDWR | O_CREAT | O_EXCL, 0666)) >= 0) {
fd = openat(parentFD, entryName, O_RDWR | O_CREAT | O_EXCL,
O_WRONLY | O_CREAT | O_TRUNC);
int fdout = open(outfile, O_WRONLY|O_CREAT|O_APPEND);
BFile query(qname.String(), O_CREAT|O_EXCL);
return _haiku_build_open(path, O_WRONLY | O_CREAT | O_TRUNC, mode);
if ((openMode & O_CREAT) != 0) {
if ((openMode & O_CREAT) != 0) {
if (!(openMode & O_CREAT))
O_WRONLY | O_CREAT | O_TRUNC);
if ((fOpenMode & O_CREAT) == 0)
if ((openMode & O_CREAT) != 0) {
if ((openMode & O_CREAT) != 0) {
openMode |= O_CREAT | O_TRUNC;
BFile prefs(&entry, O_RDWR | O_CREAT);
close(open(path.Path(), O_RDONLY | O_CREAT, S_IRUSR | S_IWUSR
BFile destFile(destDir, destName, O_RDWR | O_CREAT);
BFile file(&directory, name, O_RDWR | O_CREAT | O_TRUNC);
fFile = new BFile(&entry, O_RDWR | O_CREAT);
fFile = new BFile(&entry, O_RDWR | O_CREAT);
posix_mode |= O_CREAT;
fd = open(pfh->pf_path, O_WRONLY | O_CREAT | O_NONBLOCK, mode);
O_RDWR|O_CREAT, 0660);
out = open(DEBUG_PRINT_FILE, O_RDWR | O_CREAT | O_TRUNC);
sLog = open(syslog.Path(), O_APPEND | O_CREAT | O_WRONLY, 0644);
int fd = open_from(directory, name, O_RDWR | O_CREAT | O_EXCL, 0644);
if ((mode & O_CREAT) != 0) {
if ((mode & O_CREAT) == 0) {
fFd = open(path, O_WRONLY | O_CREAT | O_EXCL, S_IRUSR);
int fd = open("/var/log/previous_syslog", O_WRONLY | O_CREAT | O_TRUNC,
if ((openMode & O_CREAT) != 0) {
int fd = open_vnode(vnode.Get(), openMode & ~O_CREAT, kernel);
if ((openMode & O_CREAT) != 0) {
if ((openMode & O_CREAT) != 0)
if ((openMode & O_CREAT) != 0) {
if ((openMode & O_CREAT) != 0) {
if ((openMode & O_CREAT) != 0)
O_CREAT | O_WRONLY | (pos != 0 ? 0 : O_TRUNC), false);
if ((openFlags & O_CREAT) == 0)
int fd = open(swapPath, O_RDWR | O_CREAT | O_NOCACHE, S_IRUSR | S_IWUSR);
_kern_open(AT_FDCWD, path, O_CREAT | O_TRUNC | O_WRONLY, mode & ~__gUmask));
if (openMode & O_CREAT) {
if (openMode & O_CREAT) {
oflags = O_CREAT|O_TRUNC;
oflags = O_CREAT|O_APPEND;
if ((openFlags & O_CREAT) != 0) {
oflags |= O_CREAT | O_EXCL | O_RDWR;
int file = open(path, O_WRONLY | O_CREAT, 0644);
file = open("__file", O_CREAT | O_TRUNC | O_WRONLY);
file = open("__directory/1", O_CREAT | O_WRONLY);
int file = open(name, O_WRONLY | O_TRUNC | O_CREAT);
int fd = open(name, O_CREAT | O_WRONLY | O_TRUNC, 0644);
int fd = open_file(name, O_RDWR | O_CREAT | O_TRUNC);
int fd = open_file(file.name, O_CREAT | O_WRONLY | O_TRUNC);
BFile* file = new BFile(path, O_WRONLY | O_CREAT);
BFile file(tmpl, O_WRONLY | O_CREAT);
int fd = open("testfile", O_CREAT | O_RDWR, 0666);
int fd = open ("/tmp/input_area.bin", O_WRONLY | O_CREAT | O_TRUNC, 0644);
int fd = open(kTemporaryFile, O_CREAT | O_RDWR, 0644);
int file = open(tmpfile, O_CREAT | O_TRUNC | O_RDWR);
int fd = shm_open(name, O_RDWR | O_CREAT | O_EXCL | O_NOFOLLOW, 0600);
gTestFD = open(fileName, O_CREAT | O_RDWR | O_TRUNC, 0644);
int fd = open(fileName, O_CREAT | O_RDWR | O_TRUNC, 0644);
int fd = open(kTestFileName, O_CREAT | O_TRUNC | O_WRONLY);
O_WRONLY | O_CREAT | O_TRUNC, 0644);
sem = sem_open(kSemName1, O_CREAT | O_EXCL, S_IRUSR | S_IWUSR, 1);
sem2 = sem_open(kSemName1, O_CREAT | O_EXCL, S_IRUSR | S_IWUSR, 2);
sem_t* sem = sem_open(kSemName1, O_CREAT, S_IRUSR | S_IWUSR, 1);
sem = sem_open(kSemName1, O_CREAT);
sem = sem_open(kSemName1, O_CREAT);
sem_t* sem = sem_open(kSemName1, O_CREAT, S_IRUSR | S_IWUSR, 1);
sem_t* sem = sem_open(kSemName1, O_CREAT, S_IRUSR | S_IWUSR, 0);
sem_t* sem = sem_open(kSemName1, O_CREAT, S_IRUSR | S_IWUSR, 1);
sem_t* sem = sem_open(kSemName1, O_CREAT, S_IRUSR | S_IWUSR, 0);
sem = sem_open(kSemName1, O_CREAT, S_IRUSR | S_IWUSR, 1);
int fd = open(name, O_RDWR | O_TRUNC | O_CREAT, 0644);
ret = open("link4", O_RDWR | O_TRUNC | O_CREAT, 0666);
ret = open(linkname, O_RDWR | O_TRUNC | O_CREAT, 0666);
fd = open(filename, O_CREAT | O_TRUNC | O_WRONLY, 0666);
out_fd = open(optarg, O_CREAT | O_TRUNC | O_WRONLY, 0666);
sPcapFD = open(file, O_CREAT | O_WRONLY | O_TRUNC);
int fd = shm_open("test_shm", O_CREAT | O_RDWR, 0666);
int outputFileHandle = open(outputFile, O_WRONLY | O_TRUNC | O_CREAT,
int fd = open(file, O_RDWR | O_CREAT, 0666);
int outFD = open(outFileName, O_WRONLY | O_CREAT | O_TRUNC,
if ((fd = open(optarg, O_CREAT|O_RDWR, 0644)) < 0)
SET_OPEN_MODE_FLAG(O_CREAT, FSSH_O_CREAT)
int fd = open(file, O_RDWR | O_CREAT, 0666);