Calling stat with a NULL pointer produces an oops on the current Alpha kernel instead of correct returning EFAULT. (as it does on Intel) The following program demonstrates. ==== #include <sys/stat.h> #include <string.h> #include <stdio.h> #include <errno.h> #include <unistd.h> int main () { struct stat buf; if (stat (NULL, &buf) != 0) printf("Error correctly returned: %s\n", strerror (errno)); }
The behavior on 2.2.5 alpha is to generate an exception message on the console and return EFAULT.