OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [trunk/] [linux/] [uClibc/] [test/] [termios/] [termios.c] - Blame information for rev 1325

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 1325 phoenix
#include <stdio.h>
2
#include <stdlib.h>
3
#include <termios.h>
4
#include <unistd.h>
5
#include <asm/ioctls.h>
6
 
7
int main(int argc,char *argv[])
8
{
9
        struct termios t;
10
        int ret;
11
 
12
        printf("TCGETS = 0x%08x\n",TCGETS);
13
        printf("sizeof(struct termios) = %d\n",sizeof(struct termios));
14
 
15
        ret = ioctl(fileno(stdout),TCGETS,&t);
16
 
17
        if(ret<0){
18
                perror("ioctl");
19
        }else{
20
                printf("ioctl returned %d\n",ret);
21
        }
22
 
23
        return 0;
24
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.