0015-man-Escape-verbatim-n-in-order-to-make-it-through-ro.patch 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. From 6f0b6fb5bb3ac118cb56848e52d40ff7e1ece3d1 Mon Sep 17 00:00:00 2001
  2. From: Stephan Springl <springl-libaio@bfw-online.de>
  3. Date: Sat, 20 Jul 2019 21:18:13 +0200
  4. Subject: [PATCH libaio 15/28] man: Escape verbatim \n in order to make it
  5. through roff
  6. Signed-off-by: Guillem Jover <guillem@hadrons.org>
  7. Signed-off-by: Jeff Moyer <jmoyer@redhat.com>
  8. ---
  9. man/io.3 | 12 ++++++------
  10. 1 file changed, 6 insertions(+), 6 deletions(-)
  11. diff --git a/man/io.3 b/man/io.3
  12. index f40da41..bfa9836 100644
  13. --- a/man/io.3
  14. +++ b/man/io.3
  15. @@ -174,11 +174,11 @@ static const char *srcname = NULL;
  16. static void io_error(const char *func, int rc)
  17. {
  18. if (rc == -ENOSYS)
  19. - fprintf(stderr, "AIO not in this kernel\n");
  20. + fprintf(stderr, "AIO not in this kernel\\n");
  21. else if (rc < 0 && -rc < sys_nerr)
  22. - fprintf(stderr, "%s: %s\n", func, sys_errlist[-rc]);
  23. + fprintf(stderr, "%s: %s\\n", func, sys_errlist[-rc]);
  24. else
  25. - fprintf(stderr, "%s: error %d\n", func, rc);
  26. + fprintf(stderr, "%s: error %d\\n", func, rc);
  27. if (dstfd > 0)
  28. close(dstfd);
  29. @@ -197,7 +197,7 @@ static void wr_done(io_context_t ctx, struct iocb *iocb, long res, long res2)
  30. io_error("aio write", res2);
  31. }
  32. if (res != iocb->u.c.nbytes) {
  33. - fprintf(stderr, "write missed bytes expect %d got %d\n", iocb->u.c.nbytes, res2);
  34. + fprintf(stderr, "write missed bytes expect %d got %d\\n", iocb->u.c.nbytes, res2);
  35. exit(1);
  36. }
  37. --tocopy;
  38. @@ -223,7 +223,7 @@ static void rd_done(io_context_t ctx, struct iocb *iocb, long res, long res2)
  39. if (res2 != 0)
  40. io_error("aio read", res2);
  41. if (res != iosize) {
  42. - fprintf(stderr, "read missing bytes expect %d got %d\n", iocb->u.c.nbytes, res);
  43. + fprintf(stderr, "read missing bytes expect %d got %d\\n", iocb->u.c.nbytes, res);
  44. exit(1);
  45. }
  46. @@ -283,7 +283,7 @@ int main(int argc, char *const *argv)
  47. char *buf = (char *) malloc(iosize);
  48. if (NULL == buf || NULL == io) {
  49. - fprintf(stderr, "out of memory\n");
  50. + fprintf(stderr, "out of memory\\n");
  51. exit(1);
  52. }
  53. --
  54. 2.26.0.292.g33ef6b2f38