[comp.sys.mac.programmer] lsc unix libraries

engber@speedy.cs.wisc.edu (Mike Engber) (11/01/88)

I'm trying to port some code from a unix machine to LightSpeed C. I'm
running into lots of problems. Currently it seems that the program
correctly writes 19 records to a file, but when I read them out I
only get 18 - when I try to get the 19th read returns 0 bytes read.

Could the problem be due to the unix read,write, & lseek calls in
lsc? Has anyone used them successfully?

The code works correctly on a couple different unix machines so the
problem might be some system dependent assumptions made by the code
(one thing that it tends to do is assume that longs and ints are the
same thing - this wreaked havoc with lseek calls)

Any suggestions are welcome. Please respond via email.

-ME