summaryrefslogtreecommitdiff
path: root/test/termios/termios.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/termios/termios.c')
-rw-r--r--test/termios/termios.c25
1 files changed, 0 insertions, 25 deletions
diff --git a/test/termios/termios.c b/test/termios/termios.c
deleted file mode 100644
index 5fbc344c0..000000000
--- a/test/termios/termios.c
+++ /dev/null
@@ -1,25 +0,0 @@
-#include <stdio.h>
-#include <stdlib.h>
-#include <termios.h>
-#include <unistd.h>
-#include <asm/ioctls.h>
-#include <sys/ioctl.h>
-
-int main(int argc,char *argv[])
-{
- struct termios t;
- int ret;
-
- printf("TCGETS = 0x%08x\n",TCGETS);
- printf("sizeof(struct termios) = %ld\n",(long)sizeof(struct termios));
-
- ret = ioctl(fileno(stdout),TCGETS,&t);
-
- if(ret<0){
- perror("ioctl");
- }else{
- printf("ioctl returned %d\n",ret);
- }
-
- return 0;
-}