~ubuntu-branches/ubuntu/feisty/clamav/feisty

« back to all changes in this revision

Viewing changes to win32/3rdparty/pthreads/tests/sizes.c

  • Committer: Bazaar Package Importer
  • Author(s): Kees Cook
  • Date: 2007-02-20 10:33:44 UTC
  • mto: This revision was merged to the branch mainline in revision 16.
  • Revision ID: james.westby@ubuntu.com-20070220103344-zgcu2psnx9d98fpa
Tags: upstream-0.90
ImportĀ upstreamĀ versionĀ 0.90

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#define _WIN32_WINNT 0x400
2
 
 
3
 
#include "test.h"
4
 
#include "../implement.h"
5
 
 
6
 
int
7
 
main()
8
 
{
9
 
  printf("Sizes of pthreads-win32 structs\n");
10
 
  printf("-------------------------------\n");
11
 
  printf("%30s %4d\n", "pthread_t", sizeof(pthread_t));
12
 
  printf("%30s %4d\n", "ptw32_thread_t", sizeof(ptw32_thread_t));
13
 
  printf("%30s %4d\n", "pthread_attr_t_", sizeof(struct pthread_attr_t_));
14
 
  printf("%30s %4d\n", "sem_t_", sizeof(struct sem_t_));
15
 
  printf("%30s %4d\n", "pthread_mutex_t_", sizeof(struct pthread_mutex_t_));
16
 
  printf("%30s %4d\n", "pthread_mutexattr_t_", sizeof(struct pthread_mutexattr_t_));
17
 
  printf("%30s %4d\n", "pthread_spinlock_t_", sizeof(struct pthread_spinlock_t_));
18
 
  printf("%30s %4d\n", "pthread_barrier_t_", sizeof(struct pthread_barrier_t_));
19
 
  printf("%30s %4d\n", "pthread_barrierattr_t_", sizeof(struct pthread_barrierattr_t_));
20
 
  printf("%30s %4d\n", "pthread_key_t_", sizeof(struct pthread_key_t_));
21
 
  printf("%30s %4d\n", "pthread_cond_t_", sizeof(struct pthread_cond_t_));
22
 
  printf("%30s %4d\n", "pthread_condattr_t_", sizeof(struct pthread_condattr_t_));
23
 
  printf("%30s %4d\n", "pthread_rwlock_t_", sizeof(struct pthread_rwlock_t_));
24
 
  printf("%30s %4d\n", "pthread_rwlockattr_t_", sizeof(struct pthread_rwlockattr_t_));
25
 
  printf("%30s %4d\n", "pthread_once_t_", sizeof(struct pthread_once_t_));
26
 
  printf("%30s %4d\n", "ptw32_cleanup_t", sizeof(struct ptw32_cleanup_t));
27
 
  printf("%30s %4d\n", "ptw32_mcs_node_t_", sizeof(struct ptw32_mcs_node_t_));
28
 
  printf("%30s %4d\n", "sched_param", sizeof(struct sched_param));
29
 
  printf("-------------------------------\n");
30
 
 
31
 
  return 0;
32
 
}