Forgot your password?
typodupeerror

Comment Re:Bull (Score 1) 830

It says I must fsync the directory, and nothing in Posix even says it's possible to open() or fsync() a directory; you have to use opendir().)

*Bzzt*

BigMac:~ james$ cat > open_dir.c
#include <fcntl.h>
int main() { return open(".", O_RDONLY); }
BigMac:~ james$ gcc -o open_dir open_dir.c
BigMac:~ james$ ./open_dir ; echo $?
3
BigMac:~ james$ uname -a
Darwin BigMac.local 9.6.0 Darwin Kernel Version 9.6.0: Mon Nov 24 17:37:00 PST 2008; root:xnu-1228.9.59~1/RELEASE_I386 i386

The "Single Unix Specification" you mentioned says you can open() a directory with O_SEARCH, too. MacOS doesn't have that.

Either way, I expect you'll be able to fsync() that fd; that's all you need.

New MacBook Case Leak Rumors 243

Someone noted that there are more macbook case leaks which look to all but confirm a new MacBook and possibly a MacBook Pro expected to be announced for later this week. There seem to be fewer ports, and no leaks of a 17" aircraft carrier laptop.

Slashdot Top Deals

It isn't easy being the parent of a six-year-old. However, it's a pretty small price to pay for having somebody around the house who understands computers.

Working...