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

Subversion Repositories or1k_old

[/] [or1k_old/] [trunk/] [linux/] [uClibc/] [test/] [termios/] [termios.c] - Rev 1765

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

#include <stdio.h>
#include <stdlib.h>
#include <termios.h>
#include <unistd.h>
#include <asm/ioctls.h>
 
int main(int argc,char *argv[])
{
	struct termios t;
	int ret;
 
	printf("TCGETS = 0x%08x\n",TCGETS);
	printf("sizeof(struct termios) = %d\n",sizeof(struct termios));
 
	ret = ioctl(fileno(stdout),TCGETS,&t);
 
	if(ret<0){
		perror("ioctl");
	}else{
		printf("ioctl returned %d\n",ret);
	}
 
	return 0;
}
 

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

powered by: WebSVN 2.1.0

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