Use _ versions of system-calls
This commit is contained in:
@@ -25,7 +25,7 @@
|
||||
|
||||
extern int errno;
|
||||
extern _trp();
|
||||
extern int read();
|
||||
extern int _read();
|
||||
|
||||
_incpt(f) struct file *f; {
|
||||
|
||||
@@ -40,7 +40,7 @@ _incpt(f) struct file *f; {
|
||||
if (f->count == 0) {
|
||||
f->ptr = f->bufadr;
|
||||
for(;;) {
|
||||
f->count=read(f->ufd,f->bufadr,f->buflen);
|
||||
f->count=_read(f->ufd,f->bufadr,f->buflen);
|
||||
if ( f->count<0 ) {
|
||||
if (errno != EINTR) _trp(EREAD) ;
|
||||
continue ;
|
||||
|
||||
Reference in New Issue
Block a user