File: aio_cancel.c

package info (click to toggle)
glibc 2.41-10
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 300,192 kB
  • sloc: ansic: 1,050,471; asm: 238,243; makefile: 20,378; python: 13,537; sh: 11,823; cpp: 5,197; awk: 1,795; perl: 317; yacc: 292; pascal: 182; sed: 19
file content (35 lines) | stat: -rw-r--r-- 937 bytes parent folder | download | duplicates (20)
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
34
35
#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 <rt/aio_cancel.c>

#undef __aio_cancel
versioned_symbol (libc, __new_aio_cancel, aio_cancel, GLIBC_2_34);
versioned_symbol (libc, __new_aio_cancel, aio_cancel64, GLIBC_2_34);
#if OTHER_SHLIB_COMPAT (librt, GLIBC_2_3, GLIBC_2_34)
compat_symbol (librt, __new_aio_cancel, aio_cancel, GLIBC_2_3);
compat_symbol (librt, __new_aio_cancel, aio_cancel64, GLIBC_2_3);
#endif

#if OTHER_SHLIB_COMPAT (librt, GLIBC_2_1, GLIBC_2_3)

#undef ECANCELED
#define __aio_cancel	__old_aio_cancel
#define ECANCELED	125

#include <rt/aio_cancel.c>

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

#endif