You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
qemu/tests/tcg/cris/libc/check_stat2.c

21 lines
284 B
C

/*
#notarget: cris*-*-elf
*/
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
#include <stdio.h>
#include <stdlib.h>
int main (void)
{
struct stat buf;
if (lstat (".", &buf) != 0
|| !S_ISDIR (buf.st_mode))
abort ();
printf ("pass\n");
exit (0);
}