diff options
| author | Alejandro Colomar <alx@kernel.org> | 2024-06-15 20:29:33 +0200 |
|---|---|---|
| committer | Alejandro Colomar <alx@kernel.org> | 2024-06-15 20:44:44 +0200 |
| commit | f8fac7b28e2adb3a7a7ab7f7f28dd764f9c8ea7a (patch) | |
| tree | 67133d81bc54c1d773a2919e5d81120f770b26fb /man/man3/makecontext.3 | |
| parent | 6fc32a0a6ae2cedf2e954b8b48cf8ba0d5ddf2a1 (diff) | |
| download | man-pages-f8fac7b28e2adb3a7a7ab7f7f28dd764f9c8ea7a.tar.gz | |
man/: srcfix: Use \[rs] instead of \e
Scripted change:
$ find man -type f \
| xargs grep -l '\\e' \
| xargs sed -i 's/\\e/\\[rs]/g';
Link: <https://lore.kernel.org/linux-man/20240611122453.qn6jyl4go4bvwkqm@illithid/>
Suggested-by: "G. Branden Robinson" <branden@debian.org>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
Diffstat (limited to 'man/man3/makecontext.3')
| -rw-r--r-- | man/man3/makecontext.3 | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/man/man3/makecontext.3 b/man/man3/makecontext.3 index 4ee3cc2c47..25bfd6e6d5 100644 --- a/man/man3/makecontext.3 +++ b/man/man3/makecontext.3 @@ -175,27 +175,27 @@ main: exiting \& static ucontext_t uctx_main, uctx_func1, uctx_func2; \& -#define handle_error(msg) \e +#define handle_error(msg) \[rs] do { perror(msg); exit(EXIT_FAILURE); } while (0) \& static void func1(void) { - printf("%s: started\en", __func__); - printf("%s: swapcontext(&uctx_func1, &uctx_func2)\en", __func__); + printf("%s: started\[rs]n", __func__); + printf("%s: swapcontext(&uctx_func1, &uctx_func2)\[rs]n", __func__); if (swapcontext(&uctx_func1, &uctx_func2) == \-1) handle_error("swapcontext"); - printf("%s: returning\en", __func__); + printf("%s: returning\[rs]n", __func__); } \& static void func2(void) { - printf("%s: started\en", __func__); - printf("%s: swapcontext(&uctx_func2, &uctx_func1)\en", __func__); + printf("%s: started\[rs]n", __func__); + printf("%s: swapcontext(&uctx_func2, &uctx_func1)\[rs]n", __func__); if (swapcontext(&uctx_func2, &uctx_func1) == \-1) handle_error("swapcontext"); - printf("%s: returning\en", __func__); + printf("%s: returning\[rs]n", __func__); } \& int @@ -219,11 +219,11 @@ main(int argc, char *argv[]) uctx_func2.uc_link = (argc > 1) ? NULL : &uctx_func1; makecontext(&uctx_func2, func2, 0); \& - printf("%s: swapcontext(&uctx_main, &uctx_func2)\en", __func__); + printf("%s: swapcontext(&uctx_main, &uctx_func2)\[rs]n", __func__); if (swapcontext(&uctx_main, &uctx_func2) == \-1) handle_error("swapcontext"); \& - printf("%s: exiting\en", __func__); + printf("%s: exiting\[rs]n", __func__); exit(EXIT_SUCCESS); } .EE |
