mirror of
https://github.com/MariaDB/server.git
synced 2025-01-23 15:24:16 +01:00
0d44815bf5
git-svn-id: file:///svn/toku/tokudb.1032b@7778 c7de825b-a66e-492c-adef-691d508d4ae1
16 lines
340 B
C
16 lines
340 B
C
#include <stdio.h>
|
|
#include <stdlib.h>
|
|
#include <stdint.h>
|
|
#include <unistd.h>
|
|
#include <errno.h>
|
|
#include <fcntl.h>
|
|
|
|
int main(int argc, char *argv[]) {
|
|
int i;
|
|
for (i=1; i<argc; i++) {
|
|
int fd = open(argv[i], O_RDONLY);
|
|
printf("%s: %d %d\n", argv[i], fd, errno);
|
|
if (fd >= 0) close(fd);
|
|
}
|
|
return 0;
|
|
}
|