summaryrefslogtreecommitdiff
path: root/system-bsd.c
diff options
context:
space:
mode:
Diffstat (limited to 'system-bsd.c')
-rw-r--r--system-bsd.c22
1 files changed, 0 insertions, 22 deletions
diff --git a/system-bsd.c b/system-bsd.c
index a44e356..d492076 100644
--- a/system-bsd.c
+++ b/system-bsd.c
@@ -69,25 +69,3 @@ extern pid_t rc_wait(int *stat) {
}
return r;
}
-
-/* signal-safe readline wrapper */
-#if READLINE
-extern char *rc_readline(char *prompt) {
- char *r;
-
- interrupt_happened = FALSE;
- if (!sigsetjmp(slowbuf.j, 1)) {
- slow = TRUE;
- if (!interrupt_happened)
- r = readline(prompt);
- else
- r = NULL;
- } else
- r = NULL;
- slow = FALSE;
- if (r == NULL)
- errno = EINTR;
- sigchk();
- return r;
-}
-#endif /* READLINE */