Package: libaio / 0.3.112-3

Metadata

Package Version Patches format
libaio 0.3.112-3 3.0 (quilt)

Patch series

view the series file
Patch File delta Description
00_arches.patch | (download)

harness/main.c | 10 10 0 - 0 !
src/libaio.h | 1 1 0 - 0 !
src/syscall-m68k.h | 5 5 0 - 0 !
src/syscall-mips.h | 54 54 0 - 0 !
src/syscall-parisc.h | 6 6 0 - 0 !
src/syscall.h | 6 6 0 - 0 !
6 files changed, 82 insertions( )

 add/fix support for m68k, mips, paris, sparc
00_arches_sh.patch | (download)

harness/main.c | 2 1 1 - 0 !
src/libaio.h | 4 3 1 - 0 !
src/syscall-sh.h | 6 6 0 - 0 !
src/syscall.h | 2 2 0 - 0 !
4 files changed, 12 insertions( ), 2 deletions(-)

 add sh supprt
 The test-suite logs can be found at:
 .
 <https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=535288>



00_arches_x32.patch | (download)

harness/main.c | 2 1 1 - 0 !
src/syscall-x86_64.h | 10 10 0 - 0 !
2 files changed, 11 insertions( ), 1 deletion(-)

 add support for x32 (from the yocto project)
00_arches_mips_fix_padding.patch | (download)

src/libaio.h | 5 4 1 - 0 !
1 file changed, 4 insertions( ), 1 deletion(-)

 fix structure padding for mips64
01_link_libs.patch | (download)

src/Makefile | 2 1 1 - 0 !
1 file changed, 1 insertion( ), 1 deletion(-)

 link against libgcc and libc to avoid unresolved symbols
 We need to link agaisnt -lgcc, on at least hppa. We also need to link
 against -lc, because we are now always using the syscall() libc function.
 So let's stop passing -nostdlib and -nostartfiles.
 .
 Note: we used to use -Wl,--as-needed, this way we made sure we pulled the
 required fortified functions from the internal libc_nonshared.a, but did
 not link against the shared library because we did not use any of its
 symbols.
02_libdevdir.patch | (download)

Makefile | 10 9 1 - 0 !
src/Makefile | 12 7 5 - 0 !
2 files changed, 16 insertions( ), 6 deletions(-)

 fix installation of shared vs static libraries
04_no_Werror.patch | (download)

harness/Makefile | 2 1 1 - 0 !
1 file changed, 1 insertion( ), 1 deletion(-)

 fix ftbfs with newer gcc 4.6
 Using -Werror on a released project is in general not a good idea, as changes
 in the toolchain and environment can trigger unexpected build failures.
05_build flags.patch | (download)

harness/Makefile | 7 5 2 - 0 !
src/Makefile | 18 9 9 - 0 !
2 files changed, 14 insertions( ), 11 deletions(-)

 honour user build flags
 CPPFLAGS, CFLAGS and LDFLAGS are user flags, which we need to preserve, any
 required flag that the build system needs, has to be set in some other flag
 so that the build will succeed even of the user flags are passed.
0001 harness Use destination strncpy expression for sizeo.patch | (download)

harness/cases/19.t | 2 1 1 - 0 !
harness/cases/21.t | 2 1 1 - 0 !
2 files changed, 2 insertions( ), 2 deletions(-)

 [patch 1/7] harness: use destination strncpy() expression for
 sizeof() argument
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Even though this is the same size, as the sizeof() is derived from the
source expression, recent gcc versions will emit a warning, which is
turned into an error by -Werror:

  error: argument to sizeof in strncpy call is the same expression
    as the source; did you mean to use the size of the destination?
    [-Werror=sizeof-pointer-memaccess]

Signed-off-by: Guillem Jover <[email protected]>

0002 harness Use run time _SC_PAGE_SIZE instead of build .patch | (download)

harness/Makefile | 2 1 1 - 0 !
harness/cases/18.t | 34 24 10 - 0 !
2 files changed, 25 insertions( ), 11 deletions(-)

 [patch 2/7] harness: use run-time _sc_page_size instead of build-time
 PAGESIZE

The getconf(1) command is inherently not cross-compilation friendly.
In addition PAGESIZE depends on the specific system, even within a
specific arch, so using a hard-coded value is never safe.

Signed-off-by: Guillem Jover <[email protected]>

0003 harness Make RISC V use SYS_eventfd2 instead of SYS_.patch | (download)

harness/cases/16.t | 6 3 3 - 0 !
1 file changed, 3 insertions( ), 3 deletions(-)

 [patch 3/7] harness: make risc-v use sys_eventfd2 instead of
 SYS_eventfd

This is a recent architecture and as such does not provide legacy
support for SYS_eventfd. Declare that we need to use the new syscall.

Signed-off-by: Guillem Jover <[email protected]>

0004 harness Add fallback code for filesystems not suppor.patch | (download)

harness/cases/17.t | 2 2 0 - 0 !
harness/cases/18.t | 2 2 0 - 0 !
harness/cases/19.t | 4 4 0 - 0 !
harness/cases/21.t | 2 1 1 - 0 !
4 files changed, 9 insertions( ), 1 deletion(-)

 [patch 4/7] harness: add fallback code for filesystems not supporting
 O_DIRECT

When running the harness on a filesystem such as a tmpfs, which do not
support O_DIRECT, fallback to calls without the flag.

Signed-off-by: Guillem Jover <[email protected]>

0005 harness Handle ENOTSUP from io_submit with RWF_NOWAI.patch | (download)

harness/cases/21.t | 5 3 2 - 0 !
1 file changed, 3 insertions( ), 2 deletions(-)

 [patch 5/7] harness: handle -enotsup from io_submit() with rwf_nowait

On filesystems such as tmpfs the syscall might return -ENOTSUP instead
of EINVAL when it does not support the RWF_NOWAIT flag.

Signed-off-by: Guillem Jover <[email protected]>

0006 harness The WRITE call does not change across differ.patch | (download)

harness/cases/5.t | 8 1 7 - 0 !
1 file changed, 1 insertion( ), 7 deletions(-)

 [patch 6/7] harness: the write call does not change across different
 arches anymore

Signed-off-by: Guillem Jover <[email protected]>

0001 man Add missing space in man page references.patch | (download)

man/io.3 | 26 13 13 - 0 !
man/io_cancel.3 | 26 13 13 - 0 !
man/io_fsync.3 | 24 12 12 - 0 !
man/io_getevents.3 | 28 14 14 - 0 !
man/io_prep_fsync.3 | 26 13 13 - 0 !
man/io_prep_pread.3 | 26 13 13 - 0 !
man/io_prep_pwrite.3 | 26 13 13 - 0 !
man/io_queue_init.3 | 26 13 13 - 0 !
man/io_queue_release.3 | 24 12 12 - 0 !
man/io_queue_run.3 | 26 13 13 - 0 !
man/io_queue_wait.3 | 26 13 13 - 0 !
man/io_set_callback.3 | 26 13 13 - 0 !
man/io_submit.3 | 26 13 13 - 0 !
13 files changed, 168 insertions( ), 168 deletions(-)

 [patch 01/15] man: add missing space in man page references

Signed-off-by: Guillem Jover <[email protected]>

0002 man Use the correct troff macro for comments.patch | (download)

man/io_fsync.3 | 12 6 6 - 0 !
man/io_getevents.3 | 36 18 18 - 0 !
man/io_prep_fsync.3 | 14 7 7 - 0 !
man/io_prep_pread.3 | 20 10 10 - 0 !
man/io_prep_pwrite.3 | 20 10 10 - 0 !
man/io_set_callback.3 | 2 1 1 - 0 !
man/io_submit.3 | 24 12 12 - 0 !
7 files changed, 64 insertions( ), 64 deletions(-)

 [patch 02/15] man: use the correct troff macro for comments

Signed-off-by: Guillem Jover <[email protected]>

0003 man Refer to libaio.h instead of libio.h.patch | (download)

man/io.3 | 4 2 2 - 0 !
1 file changed, 2 insertions( ), 2 deletions(-)

 [patch 03/15] man: refer to libaio.h instead of libio.h

Signed-off-by: Guillem Jover <[email protected]>

0004 man End sentences with a period.patch | (download)

man/io_prep_fsync.3 | 4 2 2 - 0 !
man/io_prep_pread.3 | 4 2 2 - 0 !
man/io_prep_pwrite.3 | 4 2 2 - 0 !
man/io_queue_init.3 | 2 1 1 - 0 !
man/io_queue_release.3 | 2 1 1 - 0 !
man/io_queue_run.3 | 2 1 1 - 0 !
man/io_queue_wait.3 | 2 1 1 - 0 !
man/io_set_callback.3 | 2 1 1 - 0 !
8 files changed, 11 insertions( ), 11 deletions(-)

 [patch 04/15] man: end sentences with a period

Signed-off-by: Guillem Jover <[email protected]>

0005 man Fix casing.patch | (download)

man/io_cancel.3 | 4 2 2 - 0 !
man/io_getevents.3 | 4 2 2 - 0 !
2 files changed, 4 insertions( ), 4 deletions(-)

 [patch 05/15] man: fix casing

Signed-off-by: Guillem Jover <[email protected]>

0006 man Fix period formatting.patch | (download)

man/io.3 | 13 5 8 - 0 !
man/io_fsync.3 | 2 1 1 - 0 !
man/io_getevents.3 | 3 1 2 - 0 !
man/io_prep_fsync.3 | 2 1 1 - 0 !
man/io_prep_pread.3 | 5 2 3 - 0 !
man/io_prep_pwrite.3 | 5 2 3 - 0 !
man/io_queue_release.3 | 2 1 1 - 0 !
man/io_queue_run.3 | 2 1 1 - 0 !
man/io_queue_wait.3 | 2 1 1 - 0 !
man/io_submit.3 | 8 4 4 - 0 !
10 files changed, 19 insertions( ), 25 deletions(-)

 [patch 06/15] man: fix period formatting

Signed-off-by: Guillem Jover <[email protected]>

0007 man Remove spurious spaces.patch | (download)

man/io_cancel.3 | 2 1 1 - 0 !
man/io_queue_run.3 | 2 1 1 - 0 !
man/io_queue_wait.3 | 2 1 1 - 0 !
3 files changed, 3 insertions( ), 3 deletions(-)

 [patch 07/15] man: remove spurious spaces

Signed-off-by: Guillem Jover <[email protected]>

0008 man Remove spurious text.patch | (download)

man/io_getevents.3 | 1 0 1 - 0 !
man/io_prep_pread.3 | 2 1 1 - 0 !
man/io_queue_release.3 | 3 1 2 - 0 !
3 files changed, 2 insertions( ), 4 deletions(-)

 [patch 08/15] man: remove spurious text

Signed-off-by: Guillem Jover <[email protected]>

0009 man Add None to empty sections.patch | (download)

man/io_set_callback.3 | 2 2 0 - 0 !
1 file changed, 2 insertions( )

 [patch 09/15] man: add "none" to empty sections

Signed-off-by: Guillem Jover <[email protected]>

0010 man Fix typos.patch | (download)

man/io.3 | 2 1 1 - 0 !
man/io_fsync.3 | 4 2 2 - 0 !
man/io_getevents.3 | 4 2 2 - 0 !
man/io_prep_fsync.3 | 2 1 1 - 0 !
man/io_prep_pread.3 | 2 1 1 - 0 !
man/io_prep_pwrite.3 | 4 2 2 - 0 !
man/io_queue_init.3 | 2 1 1 - 0 !
man/io_queue_release.3 | 2 1 1 - 0 !
man/io_queue_run.3 | 4 2 2 - 0 !
man/io_queue_wait.3 | 2 1 1 - 0 !
man/io_set_callback.3 | 2 1 1 - 0 !
man/io_submit.3 | 2 1 1 - 0 !
12 files changed, 16 insertions( ), 16 deletions(-)

 [patch 10/15] man: fix typos

Signed-off-by: Guillem Jover <[email protected]>

0011 man Fix title header.patch | (download)

man/io.3 | 2 1 1 - 0 !
man/io_cancel.3 | 2 1 1 - 0 !
man/io_fsync.3 | 2 1 1 - 0 !
man/io_getevents.3 | 2 1 1 - 0 !
man/io_prep_fsync.3 | 2 1 1 - 0 !
man/io_prep_pread.3 | 2 1 1 - 0 !
man/io_prep_pwrite.3 | 2 1 1 - 0 !
man/io_queue_init.3 | 2 1 1 - 0 !
man/io_queue_release.3 | 2 1 1 - 0 !
man/io_queue_run.3 | 2 1 1 - 0 !
man/io_queue_wait.3 | 2 1 1 - 0 !
man/io_set_callback.3 | 2 1 1 - 0 !
man/io_submit.3 | 2 1 1 - 0 !
13 files changed, 13 insertions( ), 13 deletions(-)

 [patch 11/15] man: fix title header

- Update year.
- Balance double quotes.
- Remove version from source argument as recommended in man-pages(7).
- Fix all sections numbers to 3.

Signed-off-by: Guillem Jover <[email protected]>

0012 man Fix markup.patch | (download)

man/io.3 | 38 20 18 - 0 !
man/io_cancel.3 | 23 15 8 - 0 !
man/io_fsync.3 | 9 6 3 - 0 !
man/io_getevents.3 | 33 23 10 - 0 !
man/io_prep_fsync.3 | 59 42 17 - 0 !
man/io_prep_pread.3 | 19 7 12 - 0 !
man/io_prep_pwrite.3 | 14 5 9 - 0 !
man/io_queue_init.3 | 34 22 12 - 0 !
man/io_queue_release.3 | 16 10 6 - 0 !
man/io_queue_run.3 | 18 11 7 - 0 !
man/io_queue_wait.3 | 25 16 9 - 0 !
man/io_set_callback.3 | 5 3 2 - 0 !
man/io_submit.3 | 26 15 11 - 0 !
13 files changed, 195 insertions( ), 124 deletions(-)

 [patch 12/15] man: fix markup

- Remove unnecessary macro argument quoting.
- Variables, pathnames in italics.
- Keywords in bold.
- Man page references in bold, followed by the man page number.
- Fix TP/TQ macro usage.

Signed-off-by: Guillem Jover <[email protected]>

0013 man Fold short lines.patch | (download)

man/io_prep_fsync.3 | 3 1 2 - 0 !
man/io_submit.3 | 9 3 6 - 0 !
2 files changed, 4 insertions( ), 8 deletions(-)

 [patch 13/15] man: fold short lines

Signed-off-by: Guillem Jover <[email protected]>

0014 man Escape verbatim n in order to make it through ro.patch | (download)

man/io.3 | 12 6 6 - 0 !
1 file changed, 6 insertions( ), 6 deletions(-)

 [patch 14/15] man: escape verbatim \n in order to make it through
 roff

Signed-off-by: Guillem Jover <[email protected]>

0015 Use ctx consistently for io_context_t instead of ctx.patch | (download)

man/io_cancel.3 | 2 1 1 - 0 !
man/io_getevents.3 | 8 4 4 - 0 !
man/io_queue_run.3 | 2 1 1 - 0 !
man/io_queue_wait.3 | 2 1 1 - 0 !
man/io_submit.3 | 2 1 1 - 0 !
src/compat-0_1.c | 4 2 2 - 0 !
src/libaio.h | 4 2 2 - 0 !
src/vsys_def.h | 2 1 1 - 0 !
8 files changed, 13 insertions( ), 13 deletions(-)

 [patch 15/15] use ctx consistently for io_context_t instead of ctx_id

Signed-off-by: Guillem Jover <[email protected]>