mirror of
https://github.com/MariaDB/server.git
synced 2025-01-22 23:04:20 +01:00
049c7625a3
git-svn-id: file:///svn/toku/tokudb@12081 c7de825b-a66e-492c-adef-691d508d4ae1
21 lines
386 B
C
21 lines
386 B
C
#include <stdio.h>
|
|
#include <stdlib.h>
|
|
#include <assert.h>
|
|
#include <fcntl.h>
|
|
#include <toku_portability.h>
|
|
|
|
int main(void) {
|
|
int r;
|
|
int fd;
|
|
struct fileid fid;
|
|
|
|
fd = open(DEV_NULL_FILE, O_RDWR);
|
|
assert(fd != -1);
|
|
|
|
r = toku_os_get_unique_file_id(fd, &fid);
|
|
printf("%s:%d %d\n", __FILE__, __LINE__, r);
|
|
|
|
r = close(fd);
|
|
assert(r != -1);
|
|
return 0;
|
|
}
|