O_SYNC
{ "sync", O_SYNC, C_IFLAG|C_OFLAG },
if ((fd = open(file, O_RDWR|O_SYNC|O_RSYNC|O_NOFOLLOW, 0)) == -1)
#ifdef O_SYNC
{ "sync", 2, O_SYNC },
#define ALLFLAGS (O_APPEND|O_ASYNC|O_SYNC|O_NONBLOCK|O_DSYNC|O_RSYNC|\
(oflags & ~(O_APPEND | O_DIRECT | O_SHLOCK | O_EXLOCK | O_SYNC |
if ((op != O_DSYNC) && (op != O_SYNC)) {
flags |= (sflags & 0x10) ? O_SYNC : 0;
O_ASYNC|O_SYNC|O_CREAT|O_TRUNC|O_EXCL|O_DSYNC|\
#define O_FSYNC O_SYNC /* compat */
#define FFSYNC O_SYNC /* kernel */
RL(fd = rump_sys_open("file", O_RDONLY | O_SYNC | O_RSYNC));
O_SYNC, O_CLOEXEC
O_SYNC, O_CLOEXEC
(append ? 0 : O_TRUNC) | (synclog ? 0 : O_SYNC),
#ifndef O_SYNC
O_WRONLY|O_CREAT|O_TRUNC|O_EXCL|O_SYNC|O_CLOEXEC, 0);
while ((fd = open(tempname, O_RDWR|O_CREAT|O_TRUNC|O_SYNC|O_EXCL, 0644))