Changeset 7258c6a in buchla-68k for libcio/open.c


Ignore:
Timestamp:
07/09/2017 04:45:34 PM (7 years ago)
Author:
Thomas Lopatic <thomas@…>
Branches:
master
Children:
8618599
Parents:
0292fbb
Message:

Use standard integer types.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcio/open.c

    r0292fbb r7258c6a  
    1212#include "stddefs.h"
    1313
    14 extern  int     _badfd(void);
    15 extern  int     _noper(void);
    16 extern  int     _inifcb(struct fcb *fcp, char *name, char *ext, int mode);
    17 extern  int     _opfcb(struct fcb *fcp);
    18 
    19 extern  char    *FilName(char *s, char *p);
    20 extern  char    *FilExt(char *s, char *p);
    21 
    22 int     _fileop(char *name, int flag, int mode, struct channel *chp, struct devtabl *dp);
    23 int     _filecl(struct fcb *fp);
     14extern  int16_t _badfd(void);
     15extern  int16_t _noper(void);
     16extern  int16_t _inifcb(struct fcb *fcp, int8_t *name, int8_t *ext, int16_t mode);
     17extern  int16_t _opfcb(struct fcb *fcp);
     18
     19extern  int8_t  *FilName(int8_t *s, int8_t *p);
     20extern  int8_t  *FilExt(int8_t *s, int8_t *p);
     21
     22int16_t _fileop(int8_t *name, int16_t flag, int16_t mode, struct channel *chp, struct devtabl *dp);
     23int16_t _filecl(struct fcb *fp);
    2424
    2525static struct device condev  = { 2, 2, 1, 0, _noper  };
     
    5555*/
    5656
    57 int open(char *name, int flag, int mode)
     57int16_t open(int8_t *name, int16_t flag, int16_t mode)
    5858{
    5959        register struct devtabl *dp;
    6060        register struct channel *chp;
    6161        register struct device  *dev;
    62         int     fd, mdmask;
     62        int16_t fd, mdmask;
    6363
    6464        /* search for a free channel */
     
    131131*/
    132132
    133 int opena(char *name, int flag, int mode)
     133int16_t opena(int8_t *name, int16_t flag, int16_t mode)
    134134{
    135135        return(open(name, flag, mode));
     
    145145*/
    146146
    147 int openb(char *name, int flag, int mode)
     147int16_t openb(int8_t *name, int16_t flag, int16_t mode)
    148148{
    149149        return(open(name, flag|O_RAW, mode));
     
    164164*/
    165165
    166 int creat(char *name, int mode)
     166int16_t creat(int8_t *name, int16_t mode)
    167167{
    168168        return(open(name, O_WRONLY|O_TRUNC|O_CREAT, mode));
     
    183183*/
    184184
    185 int creata(char *name, int mode)
     185int16_t creata(int8_t *name, int16_t mode)
    186186{
    187187        return(open(name, O_WRONLY|O_TRUNC|O_CREAT, mode));
     
    198198*/
    199199
    200 int creatb(char *name, int mode)
     200int16_t creatb(int8_t *name, int16_t mode)
    201201{
    202202        return(open(name, O_WRONLY|O_TRUNC|O_CREAT|O_RAW, mode));
     
    215215*/
    216216
    217 int _fileop(char *name, int flag, int mode, struct channel *chp, struct devtabl *dp)
     217int16_t _fileop(int8_t *name, int16_t flag, int16_t mode, struct channel *chp, struct devtabl *dp)
    218218{
    219219        register struct fcb *fp;
    220         char    tmpname[9], tmpext[4];
     220        int8_t  tmpname[9], tmpext[4];
    221221
    222222        /* search for an available fcb entry */
Note: See TracChangeset for help on using the changeset viewer.