diff options
author | Stephan Springl <springl-libaio@bfw-online.de> | 2019-07-20 21:18:13 +0200 |
---|---|---|
committer | Jeff Moyer <jmoyer@redhat.com> | 2019-07-29 10:12:19 -0400 |
commit | 6f0b6fb5bb3ac118cb56848e52d40ff7e1ece3d1 (patch) | |
tree | 23915e80be72f4b0db10b7dcdc65950a99b46d22 | |
parent | 96fe0e8a3efb8bb058852a46c0273125dd54ba49 (diff) | |
download | libaio-6f0b6fb5bb3ac118cb56848e52d40ff7e1ece3d1.tar.gz |
man: Escape verbatim \n in order to make it through roff
Signed-off-by: Guillem Jover <guillem@hadrons.org>
Signed-off-by: Jeff Moyer <jmoyer@redhat.com>
-rw-r--r-- | man/io.3 | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -174,11 +174,11 @@ static const char *srcname = NULL; static void io_error(const char *func, int rc) { if (rc == -ENOSYS) - fprintf(stderr, "AIO not in this kernel\n"); + fprintf(stderr, "AIO not in this kernel\\n"); else if (rc < 0 && -rc < sys_nerr) - fprintf(stderr, "%s: %s\n", func, sys_errlist[-rc]); + fprintf(stderr, "%s: %s\\n", func, sys_errlist[-rc]); else - fprintf(stderr, "%s: error %d\n", func, rc); + fprintf(stderr, "%s: error %d\\n", func, rc); if (dstfd > 0) close(dstfd); @@ -197,7 +197,7 @@ static void wr_done(io_context_t ctx, struct iocb *iocb, long res, long res2) io_error("aio write", res2); } if (res != iocb->u.c.nbytes) { - fprintf(stderr, "write missed bytes expect %d got %d\n", iocb->u.c.nbytes, res2); + fprintf(stderr, "write missed bytes expect %d got %d\\n", iocb->u.c.nbytes, res2); exit(1); } --tocopy; @@ -223,7 +223,7 @@ static void rd_done(io_context_t ctx, struct iocb *iocb, long res, long res2) if (res2 != 0) io_error("aio read", res2); if (res != iosize) { - fprintf(stderr, "read missing bytes expect %d got %d\n", iocb->u.c.nbytes, res); + fprintf(stderr, "read missing bytes expect %d got %d\\n", iocb->u.c.nbytes, res); exit(1); } @@ -283,7 +283,7 @@ int main(int argc, char *const *argv) char *buf = (char *) malloc(iosize); if (NULL == buf || NULL == io) { - fprintf(stderr, "out of memory\n"); + fprintf(stderr, "out of memory\\n"); exit(1); } |