Changeset 8973acd in buchla-68k for libcio/fopen.c


Ignore:
Timestamp:
07/15/2017 03:12:10 PM (7 years ago)
Author:
Thomas Lopatic <thomas@…>
Branches:
master
Children:
ea232f9
Parents:
7d0d347
Message:

No more warnings in libcio.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcio/fopen.c

    r7d0d347 r8973acd  
    88#include "ram.h"
    99
    10 FILE *_opener(int8_t *name, int8_t *mode, int16_t aflag)
     10FILE *_opener(int8_t *name, int8_t *mode, uint16_t rawflg)
    1111{
    1212        register FILE *fp;
     
    2626
    2727        case 'r':       /* read mode */
    28                 if ((fp->_unit = open(name, (plusopt ? O_RDWR : O_RDONLY), aflag)) EQ -1)
     28                if ((fp->_unit = open(name, (plusopt ? O_RDWR : O_RDONLY) | rawflg)) EQ -1)
    2929                        return(NULL);
    3030                break;
    3131
    3232        case 'w':       /* write mode */
    33                 if ((fp->_unit = open(name, (plusopt ? O_RDWR : O_WRONLY)|O_CREAT|O_TRUNC, aflag)) EQ -1)
     33                if ((fp->_unit = open(name, (plusopt ? O_RDWR : O_WRONLY)|O_CREAT|O_TRUNC|rawflg)) EQ -1)
    3434                        return(NULL);
    3535
     
    3737       
    3838        case 'a':       /* append mode */
    39                 if ((fp->_unit = open(name, (plusopt ? O_RDWR : O_WRONLY)|O_CREAT, aflag)) EQ -1)
     39                if ((fp->_unit = open(name, (plusopt ? O_RDWR : O_WRONLY)|O_CREAT|rawflg)) EQ -1)
    4040                        return(NULL);
    4141
Note: See TracChangeset for help on using the changeset viewer.