~ubuntu-branches/ubuntu/quantal/uclibc/quantal

« back to all changes in this revision

Viewing changes to test/pthread/cancellation-points.c

  • Committer: Bazaar Package Importer
  • Author(s): Hector Oron
  • Date: 2011-06-11 03:06:20 UTC
  • mfrom: (1.1.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20110611030620-ywjfvyuqvrpsm282
Tags: 0.9.32-1
* New upstream release
* Add myself as maintainer
* Bump standards version 
* Add Vcs-Git, Vcs-Browser and Homepage fields
* Add watch file 

Show diffs side-by-side

added added

removed removed

Lines of Context:
29
29
 
30
30
/* take care of optional things ... */
31
31
#define STUB(func, args) static void func args { sleep(0); }
32
 
#if !defined(__UCLIBC__) || defined(__UCLIBC_AIO__)
 
32
#if defined(__UCLIBC_AIO__)
33
33
# include <aio.h>
34
34
#else
35
35
STUB(aio_suspend, (void *p, int n, const void *p2))
36
36
#endif
37
 
#if !defined(__UCLIBC__) || defined(__UCLIBC_STROPTS__)
 
37
#if defined(__UCLIBC_STROPTS__)
38
38
# include <stropts.h>
39
39
#else
40
40
STUB(getmsg, (int f, void *p, void *p2, void *p3))
149
149
MAKE_CANCEL_THREAD_FUNC(sleep, (0))
150
150
MAKE_CANCEL_THREAD_FUNC(system, (""))
151
151
MAKE_CANCEL_THREAD_FUNC(tcdrain, (-1))
 
152
#ifdef __UCLIBC_SUSV3_LEGACY__
152
153
MAKE_CANCEL_THREAD_FUNC(usleep, (0))
 
154
#endif
153
155
MAKE_CANCEL_THREAD_FUNC(wait, (NULL))
154
156
MAKE_CANCEL_THREAD_FUNC(waitid, (0, 0, NULL, 0))
155
157
MAKE_CANCEL_THREAD_FUNC(waitpid, (-1, NULL, 0))
264
266
        ret += TEST_FUNC(sleep);
265
267
        ret += TEST_FUNC(system);
266
268
        ret += TEST_FUNC(tcdrain);
 
269
#ifdef __UCLIBC_SUSV3_LEGACY__
267
270
        ret += TEST_FUNC(usleep);
 
271
#endif
268
272
        ret += TEST_FUNC(wait);
269
273
        ret += TEST_FUNC(waitid);
270
274
        ret += TEST_FUNC(waitpid);