Changeset 1207 for trunk/src/kash/expand.c
- Timestamp:
- Oct 7, 2007, 7:09:24 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified trunk/src/kash/expand.c ¶
r1203 r1207 453 453 if (in.fd < 0) 454 454 break; 455 while ((i = read(in.fd, buf, sizeof buf)) < 0 && errno == EINTR);455 while ((i = shfile_read(&psh->fdtab, in.fd, buf, sizeof buf)) < 0 && errno == EINTR); 456 456 TRACE((psh, "expbackq: read returns %d\n", i)); 457 457 if (i <= 0) … … 474 474 475 475 if (in.fd >= 0) 476 close(in.fd);476 shfile_close(&psh->fdtab, in.fd); 477 477 if (in.buf) 478 478 ckfree(in.buf); … … 1192 1192 break; 1193 1193 } 1194 if (metaflag == 0 || lstat(psh->expdir, &statb) >= 0)1194 if (metaflag == 0 || shfile_lstat(&psh->fdtab, psh->expdir, &statb) >= 0) 1195 1195 addfname(psh, psh->expdir); 1196 1196 return;
Note:
See TracChangeset
for help on using the changeset viewer.