diff options
Diffstat (limited to 'test/stdlib/ptytest.c')
-rw-r--r-- | test/stdlib/ptytest.c | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/test/stdlib/ptytest.c b/test/stdlib/ptytest.c deleted file mode 100644 index a79563880..000000000 --- a/test/stdlib/ptytest.c +++ /dev/null @@ -1,20 +0,0 @@ -#define _XOPEN_SOURCE -#include <sys/types.h> -#include <sys/stat.h> -#include <fcntl.h> -#include <stdio.h> -#include <stdlib.h> - -int main(int argc, char **argv) -{ - int fd; - char *cp; - - fd=open("/dev/ptmx",O_NOCTTY|O_RDWR); - cp=ptsname(fd); - if (cp==NULL) - return EXIT_FAILURE; - printf("ptsname %s\n",cp); - return EXIT_SUCCESS; -} - |