test-gettid.c 213 B

123456789101112
  1. // SPDX-License-Identifier: GPL-2.0
  2. // Copyright (C) 2019, Red Hat Inc, Arnaldo Carvalho de Melo <acme@redhat.com>
  3. #define _GNU_SOURCE
  4. #include <unistd.h>
  5. int main(void)
  6. {
  7. return gettid();
  8. }
  9. #undef _GNU_SOURCE