f->fname = _pargv[i];
_cls(f);
if ((descr & WRBIT) == 0) {
- if ((f->ufd = _open(f->fname,0)) < 0)
+ if ((f->ufd = open(f->fname,0)) < 0)
_trp(ERESET);
} else {
- if ((f->ufd = _creat(f->fname,0644)) < 0)
+ if ((f->ufd = creat(f->fname,0644)) < 0)
_trp(EREWR);
}
}
/* Author: J.W. Stevenson */
+#include <unistd.h>
#include <pc_file.h>
#include <pc_err.h>
extern _cls();
extern _trp();
-extern int _creat();
/* procedure pcreat(var f:text; s:string); */
f->size = 1;
f->count = PC_BUFLEN;
f->buflen = PC_BUFLEN;
- if ((f->ufd = _creat(s,0644)) < 0)
+ if ((f->ufd = creat(s,0644)) < 0)
_trp(EREWR);
}