On 2/20/19 11:23 AM, Darrick J. Wong wrote: >>> Don't you need to do oflags = fcntl(fd, F_GETFL, NULL) first? >> maybe? We just opened it with oflags, but *shrug* I guess it doesn't >> hurt? > The kernel can set O_ flags on the file (e.g. O_LARGEFILE) for you, > which means that if you try to F_SETFL with the original oflags, the > kernel will think you're trying to clear those flags and misunderstand. Ok, thanks. -Eric