Dmitry V. Levin
d9e54d6e3e
* tests/gettid.c: New file. * tests/.gitignore: Add gettid. * tests/Makefile.am (check_PROGRAMS): Likewise. * tests/gen_tests.in (gettid): New entry.
13 lines
196 B
C
13 lines
196 B
C
#include "tests.h"
|
|
#include <stdio.h>
|
|
#include <unistd.h>
|
|
#include <asm/unistd.h>
|
|
|
|
int
|
|
main(void)
|
|
{
|
|
printf("gettid() = %ld\n", syscall(__NR_gettid));
|
|
puts("+++ exited with 0 +++");
|
|
return 0;
|
|
}
|