Lines Matching defs:mode
36 fopen(char *file, char *mode)
38 return (_endopen(file, mode, _findiop()));
42 freopen(char *file, char *mode, FILE *iop)
45 return (_endopen(file, mode, iop));
49 _endopen(char *file, char *mode, FILE *iop)
55 plus = (mode[1] == '+');
56 switch (mode[0]) {
73 iop->_flag = plus ? _IORW : (mode[0] == 'r') ? _IOREAD : _IOWRT;
74 if (mode[0] == 'a') {
76 /* if update only mode, move file pointer to the end