#include <fcntl.h>
#include <errno.h>
#include <conio.h>
+#include <unistd.h>
extern int getsp(void); /* is provided in getsp.s */
-#ifdef __ATARI__ /* Atari's fd indirection table */
+/* Atari's fd indirection table */
+#ifdef __ATARI__
extern char __fd_index[];
struct fd_t {
char usage;
char flag;
};
extern struct fd_t __fd_table[];
-#endif /* #ifdef __ATARI__ */
+#endif
int main(int argc,char **argv)
{
__fd_table[i].iocb,
__fd_table[i].dev);
}
-#endif /* #ifdef __ATARI__ */
+#endif
lr = read(fd,buf,16); /* read first 16 bytes */
csp = getsp();
if (lr == -1) {