aboutsummaryrefslogtreecommitdiffstats
path: root/man/man7/aio.7
diff options
context:
space:
mode:
Diffstat (limited to 'man/man7/aio.7')
-rw-r--r--man/man7/aio.730
1 files changed, 15 insertions, 15 deletions
diff --git a/man/man7/aio.7 b/man/man7/aio.7
index 513fbbb739..eca1ae3fad 100644
--- a/man/man7/aio.7
+++ b/man/man7/aio.7
@@ -189,7 +189,7 @@ the program retrieves their status using
.P
The
.B SIGQUIT
-signal (generated by typing control-\e) causes the program to request
+signal (generated by typing control-\[rs]) causes the program to request
cancelation of each of the outstanding requests using
.BR aio_cancel (3).
.P
@@ -261,7 +261,7 @@ static void /* Handler for I/O completion signal */
aioSigHandler(int sig, siginfo_t *si, void *ucontext)
{
if (si\->si_code == SI_ASYNCIO) {
- write(STDOUT_FILENO, "I/O completion signal received\en", 31);
+ write(STDOUT_FILENO, "I/O completion signal received\[rs]n", 31);
\&
/* The corresponding ioRequest structure would be available as
struct ioRequest *ioReq = si\->si_value.sival_ptr;
@@ -279,7 +279,7 @@ main(int argc, char *argv[])
int openReqs; /* Number of I/O requests still in progress */
\&
if (argc < 2) {
- fprintf(stderr, "Usage: %s <pathname> <pathname>...\en",
+ fprintf(stderr, "Usage: %s <pathname> <pathname>...\[rs]n",
argv[0]);
exit(EXIT_FAILURE);
}
@@ -321,7 +321,7 @@ main(int argc, char *argv[])
ioList[j].aiocbp\->aio_fildes = open(argv[j + 1], O_RDONLY);
if (ioList[j].aiocbp\->aio_fildes == \-1)
errExit("open");
- printf("opened %s on descriptor %d\en", argv[j + 1],
+ printf("opened %s on descriptor %d\[rs]n", argv[j + 1],
ioList[j].aiocbp\->aio_fildes);
\&
ioList[j].aiocbp\->aio_buf = malloc(BUF_SIZE);
@@ -354,7 +354,7 @@ main(int argc, char *argv[])
outstanding I/O requests, and display status returned
from the cancelation requests. */
\&
- printf("got SIGQUIT; canceling I/O requests: \en");
+ printf("got SIGQUIT; canceling I/O requests: \[rs]n");
\&
for (size_t j = 0; j < numReqs; j++) {
if (ioList[j].status == EINPROGRESS) {
@@ -363,11 +363,11 @@ main(int argc, char *argv[])
s = aio_cancel(ioList[j].aiocbp\->aio_fildes,
ioList[j].aiocbp);
if (s == AIO_CANCELED)
- printf("I/O canceled\en");
+ printf("I/O canceled\[rs]n");
else if (s == AIO_NOTCANCELED)
- printf("I/O not canceled\en");
+ printf("I/O not canceled\[rs]n");
else if (s == AIO_ALLDONE)
- printf("I/O all done\en");
+ printf("I/O all done\[rs]n");
else
perror("aio_cancel");
}
@@ -379,7 +379,7 @@ main(int argc, char *argv[])
/* Check the status of each I/O request that is still
in progress. */
\&
- printf("aio_error():\en");
+ printf("aio_error():\[rs]n");
for (size_t j = 0; j < numReqs; j++) {
if (ioList[j].status == EINPROGRESS) {
printf(" for request %zu (descriptor %d): ",
@@ -388,13 +388,13 @@ main(int argc, char *argv[])
\&
switch (ioList[j].status) {
case 0:
- printf("I/O succeeded\en");
+ printf("I/O succeeded\[rs]n");
break;
case EINPROGRESS:
- printf("In progress\en");
+ printf("In progress\[rs]n");
break;
case ECANCELED:
- printf("Canceled\en");
+ printf("Canceled\[rs]n");
break;
default:
perror("aio_error");
@@ -407,16 +407,16 @@ main(int argc, char *argv[])
}
}
\&
- printf("All I/O requests completed\en");
+ printf("All I/O requests completed\[rs]n");
\&
/* Check status return of all I/O requests. */
\&
- printf("aio_return():\en");
+ printf("aio_return():\[rs]n");
for (size_t j = 0; j < numReqs; j++) {
ssize_t s;
\&
s = aio_return(ioList[j].aiocbp);
- printf(" for request %zu (descriptor %d): %zd\en",
+ printf(" for request %zu (descriptor %d): %zd\[rs]n",
j, ioList[j].aiocbp\->aio_fildes, s);
}
\&