IPC@CHIP® RTOS-LNX – API Documentation

Header image

Main page


Data Structures | Macros | Functions
Input/Output Functions

Detailed Description

This sections describes the various functions supporting the access to input/output devices such as standard input/output or files.

Data Structures

struct  ftime
 File date info. More...
 

Macros

#define _A_NORMAL   0x00
 File attribute used by _dos_getfileattr() and _dos_setfileattr(). More...
 
#define _A_RDONLY   0x01
 File attribute used by _dos_getfileattr() and _dos_setfileattr(). More...
 
#define _A_HIDDEN   0x02
 File attribute used by _dos_getfileattr() and _dos_setfileattr(). More...
 
#define _A_SYSTEM   0x04
 File attribute used by _dos_getfileattr() and _dos_setfileattr(). More...
 
#define _A_VOLID   0x08
 File attribute used by _dos_getfileattr() and _dos_setfileattr(). More...
 
#define _A_SUBDIR   0x10
 File attribute used by _dos_getfileattr() and _dos_setfileattr(). More...
 
#define _A_ARCH   0x20
 File attribute used by _dos_getfileattr() and _dos_setfileattr(). More...
 
#define _fileno(f)   ((int)((f)->_fileno))
 Convert file pointer to file number. More...
 
#define O_BINARY   0 /* No CR/LF translation */
 Open in binary mode. More...
 

Functions

int getch (void)
 Gets character from standard input. More...
 
int getche (void)
 Gets character from standard input with echo. More...
 
int kbhit (void)
 Checks for data on standard input. More...
 
int setdisk (int drive)
 Sets the current drive number. More...
 
int getdisk (void)
 Gets the current drive number. More...
 
int getcurdir (int drive, char *directory)
 Gets current directory for specified drive. More...
 
int chsize (int handle, long newsize)
 Changes the file's size. More...
 
long filelength (int handle)
 Gets file size in bytes. More...
 
int getftime (int handle, struct ftime *ftimep)
 Gets file time. More...
 
int setftime (int handle, const struct ftime *ftimep)
 Sets file time. More...
 





Top of page | Main page

Copyright © 2018 Beck IPC GmbH
Generated on Fri Feb 9 2018 17:44:50 by Doxygen 1.8.13