I'm trying to write a system call for the Minix system. The system call is required to to seek a position and write to a file in that position.
However I am unable to call lseek or write, or fseek, fwrite, from inside the pm server. If I include any of the libraries which have those functions, the compiler does not seem to recognize the functions, it says they are undefined, thus gives me a crash on compiling.
My bet is that by the time PM,VFS servers are compiling, stdio, unistd, were not compile yet, thus the errors, but in that case, how am I supposed to seek or write to a file ?
Any clues ?
Thanks in advance.