Recent change to Xprint/attributes.c breaks build

Kean Johnston kean at armory.com
Tue May 3 09:43:55 PDT 2005


> Can you ask in bug #790, pls?
Will do.

> pread() is POSIX AFAIK. Has SCO no way to read from files without
> changing the file offset?
It is POSIX yes, but "relatively recent" :) The primary intent
of pread() is that you can do an atomic seek and read, and that
atomicity is usually only critical in threaded applications. If
you are not using threads, then there is no problem with doing
an lseek() followed by a read(). But if you have two threads
that may be competing, then thats an issue and you have to invent
a locking mechanism to make sure that one thread doesn't override
the lseek() of another before you've done a read(). If you're not
compiling with threads then its much less of an issue.

UnixWare has pread() becuase it has full thread support, but
SCO OpenServer doesn't, becuase it doesn't. I suspect that other
older OSes would have similar problems.

Kean



More information about the xorg mailing list