Forum Discussion
Altera_Forum
Honored Contributor
21 years agoUsing open and other HAL unix standard functions
How do I use them? The HAL manual says to include <unistd.h> but this doesn't work. The example code says to include <stdio.h> but never mentions unistd.h. Neither of these work for me. I can'...
Altera_Forum
Honored Contributor
21 years agoOK the prototypes for the alt_open.c file are in alt_sys_wrappers.h
But I have searched my entire harddrive for the flag definitions and found nothing (O_RDWR, WR_ONLY etc.). Also the example code uses open like you would fopen (with only 2 parameters).