summaryrefslogtreecommitdiff
path: root/tests/sizes.c
blob: 709c61034317e6a2b601b5e736b6e0bbe2447219 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#include "test.h"
#include "../implement.h"

int
main()
{
  printf("Sizes of pthreads-win32 structs\n");
  printf("-------------------------------\n");
  printf("%30s %4d\n", "pthread_t_", sizeof(struct pthread_t_));
  printf("%30s %4d\n", "pthread_attr_t_", sizeof(struct pthread_attr_t_));
  printf("%30s %4d\n", "sem_t_", sizeof(struct sem_t_));
  printf("%30s %4d\n", "pthread_mutex_t_", sizeof(struct pthread_mutex_t_));
  printf("%30s %4d\n", "pthread_mutexattr_t_", sizeof(struct pthread_mutexattr_t_));
  printf("%30s %4d\n", "pthread_spinlock_t_", sizeof(struct pthread_spinlock_t_));
  printf("%30s %4d\n", "pthread_barrier_t_", sizeof(struct pthread_barrier_t_));
  printf("%30s %4d\n", "pthread_barrierattr_t_", sizeof(struct pthread_barrierattr_t_));
  printf("%30s %4d\n", "pthread_key_t_", sizeof(struct pthread_key_t_));
  printf("%30s %4d\n", "pthread_cond_t_", sizeof(struct pthread_cond_t_));
  printf("%30s %4d\n", "pthread_condattr_t_", sizeof(struct pthread_condattr_t_));
  printf("%30s %4d\n", "pthread_rwlock_t_", sizeof(struct pthread_rwlock_t_));
  printf("%30s %4d\n", "pthread_rwlockattr_t_", sizeof(struct pthread_rwlockattr_t_));
  printf("%30s %4d\n", "pthread_once_t_", sizeof(struct pthread_once_t_));
  printf("%30s %4d\n", "ptw32_cleanup_t", sizeof(struct ptw32_cleanup_t));
  printf("%30s %4d\n", "sched_param", sizeof(struct sched_param));
  printf("-------------------------------\n");

  return 0;
}