O_WRONLY
#define B_WRITE_ONLY O_WRONLY /* write only */
if (openMode == O_WRONLY)
int fd = open(filename, O_CREAT | O_WRONLY, 0644);
int flags = O_WRONLY | O_CREAT | ((!b_log_append) ? O_TRUNC : 0);
fd = open("/dev/misc/hangman", O_WRONLY);
int fd = open(logfile, O_WRONLY | O_CREAT | O_TRUNC, 0666);
fd = open(logfile, O_WRONLY | O_APPEND);
int fd = open(logfile, O_WRONLY | O_CREAT | O_TRUNC, 0666);
fd = open(logfile, O_WRONLY | O_APPEND);
int fd = open(logfile, O_WRONLY | O_CREAT | O_TRUNC, 0666);
fd = open(logfile, O_WRONLY | O_APPEND);
int fd = open(gLogFilePath, O_WRONLY | O_APPEND);
int flags = O_WRONLY | O_CREAT | ((gTruncateLogFile) ? O_TRUNC : 0);
else if ((flags & 3) == O_WRONLY) {
int fd = open(logfile, O_WRONLY | O_CREAT | O_TRUNC, 0666);
fd = open(logfile, O_WRONLY | O_APPEND);
int fd = open(logfile, O_WRONLY | O_CREAT | O_TRUNC, 0666);
fd = open(logfile, O_WRONLY | O_APPEND);
int fd = open(gLogFilePath, O_WRONLY | O_APPEND);
int flags = O_WRONLY | O_CREAT | ((gTruncateLogFile) ? O_TRUNC : 0);
FileDescriptorCloser fd(open(fFilePath, O_WRONLY));
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);
fd = open(logfile, O_WRONLY | O_APPEND);
if (!port->has_in && mode != O_WRONLY)
int fd = open(gLogFilePath, O_WRONLY | O_APPEND);
int flags = O_WRONLY | O_CREAT | ((gTruncateLogFile) ? O_TRUNC : 0);
if ((flags & O_ACCMODE) == O_WRONLY)
int flags = O_WRONLY | O_CREAT | (!gLogAppend ? O_TRUNC : 0);
int fd = open(sLogFilePath, O_WRONLY | O_APPEND);
int flags = O_WRONLY | O_CREAT | (!gLogAppend ? O_TRUNC : 0);
int fd = open(sLogFilePath, O_WRONLY | O_APPEND);
int flags = O_WRONLY | O_CREAT | ((!b_log_append) ? O_TRUNC : 0);
fd = open(private_log_path, O_WRONLY | O_APPEND);
int fd = open(name, O_CREAT | O_TRUNC | O_WRONLY, 0644);
sLogFile = open(name, O_WRONLY | O_CREAT | O_EXCL, DEFFILEMODE);
if (openMode == O_WRONLY)
bool create = (mode & O_WRONLY) != 0;
int fd = _OpenAttributes(O_WRONLY);
int fd = _OpenAttributes(O_WRONLY, kSharedAttributes);
fd = _OpenAttributes(O_WRONLY, kDeviceAttributes);
if ((fatCookie->fMode & O_RWMASK) == O_WRONLY) {
if ((fatCookie->fMode & O_RWMASK) == O_WRONLY)
if ((fatCookie->fMode & O_RWMASK) == O_WRONLY)
if ((openMode & O_RWMASK) == O_WRONLY || (openMode & O_RWMASK) == O_RDWR
openMode &= ~(O_RDWR | O_WRONLY | O_TRUNC | O_CREAT);
if ((openMode & O_RWMASK) == O_WRONLY)
if ((openMode & O_RWMASK) == O_WRONLY)
openMode = (openMode & ~O_RWMASK) | O_WRONLY;
} else if ((openMode & O_RWMASK) == O_WRONLY) {
if ((mode & O_WRONLY) == 0 && (mode & O_RDWR) == 0)
if (newMode == O_RDWR || newMode == O_WRONLY)
if (mode == O_RDWR || mode == O_WRONLY)
case O_WRONLY:
ASSERT((cookie->open_mode & O_WRONLY) != 0 || (cookie->open_mode & O_RDWR) != 0);
case O_WRONLY:
if ((mode == O_RDWR) || (mode == O_WRONLY)) {
if ((openMode & O_RWMASK) == O_WRONLY || (openMode & O_RWMASK) == O_RDWR
case O_WRONLY:
FileCookie alternativeCookie(requestInfo.isWrite ? O_WRONLY : O_RDONLY);
sFD = open("/boot/home/ipcpdebug", O_WRONLY | O_CREAT | O_TRUNC);
int fd = open(fname, O_WRONLY | O_CREAT,0644);
fDevice = open(fPath, O_WRONLY);
omode = O_WRONLY;
fFile = open(device, O_WRONLY | O_EXCL, 0);
fFile = open(device, O_WRONLY | O_EXCL, 0);
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);
fCaptureFile = open(str.String(), O_CREAT | O_WRONLY,
fdout = open(fnameN, O_WRONLY|O_CREAT);
con->console_fd = open("/dev/console", O_WRONLY);
FLAG_INFO_ENTRY(O_WRONLY),
outFD = open(outputFile, O_WRONLY | O_CREAT | O_TRUNC,
case O_WRONLY:
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);
statfd = open(thishost->statfile, O_WRONLY|O_APPEND);
statfd = open(_PATH_FTPDSTATFILE, O_WRONLY|O_APPEND);
O_WRONLY | O_CREAT | O_TRUNC);
fd_dev = open("/dev", O_WRONLY);
int fdout = open(outfile, O_WRONLY|O_CREAT|O_APPEND);
&& ((fMode & O_ACCMODE) == O_WRONLY
return _haiku_build_open(path, O_WRONLY | O_CREAT | O_TRUNC, mode);
O_WRONLY | O_CREAT | O_TRUNC);
int fd = open(localFD.Path(), O_NOTRAVERSE | O_WRONLY);
int fd = open(localFD.Path(), O_NOTRAVERSE | O_WRONLY);
if ((fOpenMode & O_ACCMODE) != O_WRONLY
&& ((fMode & O_RWMASK) == O_WRONLY || (fMode & O_RWMASK) == O_RDWR);
fl &= O_RDONLY|O_WRONLY|O_RDWR;
if (fl == O_WRONLY)
if ((flags & O_ACCMODE) == O_WRONLY)
nvmm_fd = open("/dev/misc/nvmm", O_WRONLY | O_CLOEXEC);
nvmm_fd = open("/dev/nvmm", O_WRONLY | O_CLOEXEC);
posix_mode = O_WRONLY, read_write = _IO_NO_READS;
return O_WRONLY;
fd = open(pfh->pf_path, O_WRONLY | O_CREAT | O_NONBLOCK, mode);
open_stdio(STDOUT_FILENO, O_WRONLY);
fd = open(path, O_WRONLY | O_EXCL);
if ((flags & O_ACCMODE) != O_WRONLY) {
sLog = open(syslog.Path(), O_APPEND | O_CREAT | O_WRONLY, 0644);
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 ((descriptor->open_mode & O_RWMASK) == O_WRONLY)
: (descriptor->open_mode & O_RWMASK) == O_WRONLY) {
: (descriptor->open_mode & O_RWMASK) == O_WRONLY) {
if ((openMode & O_ACCMODE) == O_WRONLY || (openMode & O_ACCMODE) == O_RDWR)
if ((openMode & O_ACCMODE) == O_WRONLY && fReaderCount == 0) {
if ((openMode & O_ACCMODE) == O_WRONLY || (openMode & O_ACCMODE) == O_RDWR) {
} else if ((openMode & O_RWMASK) == O_RDWR || (openMode & O_RWMASK) == O_WRONLY) {
} else if ((openMode & O_RWMASK) == O_RDWR || (openMode & O_RWMASK) == O_WRONLY) {
if ((descriptor->open_mode & O_RWMASK) == O_WRONLY)
if ((openMode & O_RDWR) != 0 && (openMode & O_WRONLY) != 0)
|| ((descriptor->open_mode & O_RWMASK) == O_WRONLY
fds[1] = open_vnode(vnode, O_WRONLY | flags, false);
O_CREAT | O_WRONLY | (pos != 0 ? 0 : O_TRUNC), false);
: (descriptor->open_mode & O_RWMASK) == O_WRONLY)) {
if ((openMode & O_ACCMODE) == O_WRONLY
_kern_open(AT_FDCWD, path, O_CREAT | O_TRUNC | O_WRONLY, mode & ~__gUmask));
omode = O_WRONLY;
omode = O_WRONLY;
#define O_ACCMODE (O_RDONLY|O_WRONLY|O_RDWR)
|| ((fd_flags & O_ACCMODE) == O_WRONLY && !(read_write & _IO_NO_READS)))
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(file.name, O_WRONLY | O_APPEND);
int fd = open_file(file.name, O_CREAT | O_WRONLY | O_TRUNC);
int fd = open_file(file.name, O_WRONLY | O_TRUNC);
BFile* file = new BFile(path, O_WRONLY | O_CREAT);
BFile file(tmpl, O_WRONLY | O_CREAT);
int fd = open ("/tmp/input_area.bin", O_WRONLY | O_CREAT | O_TRUNC, 0644);
case O_WRONLY:
case O_WRONLY:
case O_WRONLY:
case O_WRONLY:
case O_WRONLY:
int fd = open(kTestFileName, O_CREAT | O_TRUNC | O_WRONLY);
O_WRONLY | O_CREAT | O_TRUNC, 0644);
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 outputFileHandle = open(outputFile, O_WRONLY | O_TRUNC | O_CREAT,
int outFD = open(outFileName, O_WRONLY | O_CREAT | O_TRUNC,
mode |= O_WRONLY;