You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
370 B
27 lines
370 B
#include <fcntl.h>
|
|
#include <stdio.h>
|
|
#include <stdlib.h>
|
|
#include <sys/stat.h>
|
|
#include <sys/types.h>
|
|
|
|
#include "resultgen.h"
|
|
|
|
int main(int argc, char **argv)
|
|
{
|
|
int dirfd;
|
|
|
|
if (argc < 2)
|
|
exit(1);
|
|
|
|
dirfd = open(argv[1], O_DIRECTORY | O_RDONLY);
|
|
if (dirfd < 0)
|
|
exit(1);
|
|
|
|
if (generate_results(dirfd)) {
|
|
printf("Results generated\n");
|
|
exit(0);
|
|
}
|
|
|
|
exit(1);
|
|
}
|