Changeset 8973acd in buchla-68k for include/stdio.h
- Timestamp:
- 07/15/2017 03:12:10 PM (7 years ago)
- Branches:
- master
- Children:
- ea232f9
- Parents:
- 7d0d347
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
include/stdio.h
r7d0d347 r8973acd 16 16 #define fputc putc 17 17 18 #define _BUSY 0x01 19 #define _ALLBUF 0x02 20 #define _DIRTY 0x04 21 #define _EOF 0x08 22 #define _IOERR 0x10 18 #define _BUSY 0x01u 19 #define _ALLBUF 0x02u 20 #define _DIRTY 0x04u 21 #define _EOF 0x08u 22 #define _IOERR 0x10u 23 23 24 24 typedef struct { … … 27 27 int8_t *_bend; /* last character in buffer + 1 */ 28 28 int8_t *_buff; /* address of buffer */ 29 int 8_t _flags; /* {_BUSY, _ALLBUF, _DIRTY, _EOF, _IOERR}*/30 int8_t _unit; /* fd token returned by open*/29 int16_t _unit; /* fd token returned by open */ 30 uint8_t _flags; /* {_BUSY, _ALLBUF, _DIRTY, _EOF, _IOERR} */ 31 31 int8_t _bytbuf; /* single byte buffer for unbuffered streams */ 32 32 int8_t _pad; /* pad for alignment -- possibly use later */ … … 45 45 #define clearerr(fp) ((fp)->_flags &= ~(_IOERR | _EOF)) 46 46 #define fileno(fp) ((fp)->_unit) 47 48 #define O_RDONLY 0x0000 /* Read-only value */49 #define O_WRONLY 0x0001 /* Write-only value */50 #define O_RDWR 0x0002 /* Read-write value */51 52 #define O_NDELAY 0x0004 /* Non-blocking I/O flag */53 #define O_APPEND 0x0008 /* Append mode flag (write only at end) */54 55 #define O_CREAT 0x0100 /* File creation flag (uses 3rd argument) */56 #define O_TRUNC 0x0200 /* File truncation flag */57 #define O_EXCL 0x0400 /* Exclusive access flag */58 59 #define O_RAW 0x8000 /* Raw (binary) I/O flag for getc and putc */
Note:
See TracChangeset
for help on using the changeset viewer.