~ubuntu-branches/ubuntu/utopic/binkd/utopic-proposed

« back to all changes in this revision

Viewing changes to os2/gettid.c

  • Committer: Bazaar Package Importer
  • Author(s): Marco d'Itri
  • Date: 2002-03-24 22:52:25 UTC
  • Revision ID: james.westby@ubuntu.com-20020324225225-7ru6itlapn03nl35
Tags: upstream-0.9.5a
ImportĀ upstreamĀ versionĀ 0.9.5a

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * $Id: gettid.c,v 2.0 2001/01/10 12:12:40 gul Exp $
 
3
 *
 
4
 * Revision history:
 
5
 * $Log: gettid.c,v $
 
6
 * Revision 2.0  2001/01/10 12:12:40  gul
 
7
 * Binkd is under CVS again
 
8
 *
 
9
 *
 
10
 */
 
11
#ifdef __WATCOMC__
 
12
  #define __IBMC__ 0
 
13
  #define __IBMCPP__ 0
 
14
#endif
 
15
 
 
16
#define INCL_DOS
 
17
#include <os2.h>
 
18
 
 
19
int gettid()
 
20
 
21
  PTIB ptib;
 
22
  PPIB ppib;
 
23
 
 
24
  DosGetInfoBlocks(&ptib, &ppib);
 
25
 
 
26
  return (int) (ptib->tib_ptib2->tib2_ultid);
 
27
}
 
28