diff options
author | Jakob Kaivo <jkk@ung.org> | 2024-01-31 16:44:28 -0500 |
---|---|---|
committer | Jakob Kaivo <jkk@ung.org> | 2024-01-31 16:44:28 -0500 |
commit | 2bc46bd54cc8cdcd7647461f2d76384266f2a0e4 (patch) | |
tree | 52b77d68abbe5f971f63d2c82df8e933b831b521 /src/unistd/ctermid.c | |
parent | a05e8f1436eecb990d68bc1de8ba28721f1f387d (diff) |
remove unistd
Diffstat (limited to 'src/unistd/ctermid.c')
-rw-r--r-- | src/unistd/ctermid.c | 27 |
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 |