OpenFile
This commit is contained in:
@ -50,7 +50,7 @@ static inline int writen(long fd, void *buf, size_t size) {
|
||||
int r;
|
||||
char *bufptr = (char*)buf;
|
||||
while(left>0) {
|
||||
if ((r=write((int)fd ,bufptr,left)) == -1) {
|
||||
if ((r=write((int) fd, bufptr, left)) == -1) {
|
||||
if (errno == EINTR) continue;
|
||||
return -1;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user