File: aio_cancel.c

package info (click to toggle)
glibc 2.28-7
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 271,524 kB
  • sloc: ansic: 1,008,513; asm: 259,608; makefile: 11,266; sh: 10,477; python: 6,910; cpp: 4,992; perl: 2,258; awk: 2,005; yacc: 290; pascal: 182; sed: 73
file content (33 lines) | stat: -rw-r--r-- 868 bytes parent folder | download | duplicates (83)
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
29
30
31
32
33
#include <shlib-compat.h>

#define aio_cancel64 XXX
#include <aio.h>
#undef aio_cancel64
#include <errno.h>

extern __typeof (aio_cancel) __new_aio_cancel;
extern __typeof (aio_cancel) __old_aio_cancel;

#define aio_cancel	__new_aio_cancel

#include <sysdeps/pthread/aio_cancel.c>

#undef aio_cancel
strong_alias (__new_aio_cancel, __new_aio_cancel64);
versioned_symbol (librt, __new_aio_cancel, aio_cancel, GLIBC_2_3);
versioned_symbol (librt, __new_aio_cancel64, aio_cancel64, GLIBC_2_3);

#if SHLIB_COMPAT (librt, GLIBC_2_1, GLIBC_2_3)

#undef ECANCELED
#define aio_cancel	__old_aio_cancel
#define ECANCELED	125

#include <sysdeps/pthread/aio_cancel.c>

#undef aio_cancel
strong_alias (__old_aio_cancel, __old_aio_cancel64);
compat_symbol (librt, __old_aio_cancel, aio_cancel, GLIBC_2_1);
compat_symbol (librt, __old_aio_cancel64, aio_cancel64, GLIBC_2_1);

#endif