1
0
mirror of https://github.com/elua/elua.git synced 2025-01-08 20:56:17 +08:00
elua/inc/newlib/ioctl.h
Bogdan Marinescu 3eb530b4eb initial import
2008-07-29 11:08:54 +00:00

25 lines
522 B
C

// Just a declaration of the "ioctl" function, as it does not appear in the Newlib headers
#ifndef __IOCTL_H__
#define __IOCTL_H__
#include <reent.h>
// ************************** Generic IOCTL calls *****************************
// Seek
#define FDSEEK 0x01
struct fd_seek
{
_off_t off;
int dir;
};
// ***************** Base IOCTRL numbers for other devices *********************
#define IOCTL_BASE_UART 0x100
// Function prototype
int ioctl( int file, unsigned long request, void *ptr );
#endif