mirror of
https://github.com/MariaDB/server.git
synced 2025-01-22 14:54:20 +01:00
6ebe124875
git-svn-id: file:///svn/toku/tokudb.1032b@7837 c7de825b-a66e-492c-adef-691d508d4ae1
19 lines
348 B
C
19 lines
348 B
C
#define _GNU_SOURCE
|
|
#include <stdio.h>
|
|
#include <stdint.h>
|
|
#include <unistd.h>
|
|
#include <assert.h>
|
|
#include "toku_os.h"
|
|
#include <syscall.h>
|
|
|
|
int toku_os_getpid(void);
|
|
|
|
static int gettid(void) {
|
|
return syscall(__NR_gettid);
|
|
}
|
|
|
|
int main(void) {
|
|
assert(toku_os_getpid() == getpid());
|
|
assert(toku_os_gettid() == gettid());
|
|
return 0;
|
|
}
|