summaryrefslogtreecommitdiff
path: root/src/unistd/ctermid.c
diff options
context:
space:
mode:
authorJakob Kaivo <jkk@ung.org>2024-01-31 16:44:28 -0500
committerJakob Kaivo <jkk@ung.org>2024-01-31 16:44:28 -0500
commit2bc46bd54cc8cdcd7647461f2d76384266f2a0e4 (patch)
tree52b77d68abbe5f971f63d2c82df8e933b831b521 /src/unistd/ctermid.c
parenta05e8f1436eecb990d68bc1de8ba28721f1f387d (diff)
remove unistd
Diffstat (limited to 'src/unistd/ctermid.c')
-rw-r--r--src/unistd/ctermid.c27
1 files changed, 0 insertions, 27 deletions
diff --git a/src/unistd/ctermid.c b/src/unistd/ctermid.c
deleted file mode 100644
index 0fb4a510..00000000
--- a/src/unistd/ctermid.c
+++ /dev/null
@@ -1,27 +0,0 @@
-#if 0
-
-#include <stddef.h>
-#include <sys/types.h>
-#include <unistd.h>
-#include <stdio.h>
-#include <string.h>
-
-char * ctermid(char * s)
-{
- static char ctid[L_ctermid + 1] = "/dev/tty";
-
- /* TODO: return the empty string if there is no controlling terminal */
- if (s == NULL) {
- s = ctid;
- } else {
- strcpy(s, ctid);
- }
-
- return s;
-}
-/*
-POSIX(1)
-*/
-
-
-#endif