Searched defs:fdo (Results 1 - 3 of 3) sorted by relevance
/illumos-gate/usr/src/lib/libshell/common/bltins/ |
H A D | hist.c | 46 register int flag,fdo; local 193 if((fdo=open(fname,O_CREAT|O_RDWR,S_IRUSR|S_IWUSR)) < 0) 195 outfile= sfnew(NIL(Sfio_t*),shp->outbuff,IOBSIZE,fdo,SF_WRITE); 227 sh_close(fdo); 228 fdo = pad_create(fname); 229 pad_wait(fdo); 233 lseek(fdo,(off_t)0,SEEK_SET); 246 fdo = sh_chkopen(fname); 259 hist_subst(error_info.id,fdo,replace); 263 Sfio_t *iop = sfnew(NIL(Sfio_t*),buff,IOBSIZE,fdo,SF_REA [all...] |
/illumos-gate/usr/src/lib/libshell/common/sh/ |
H A D | suid_exec.c | 491 * copy THISPROG into the open file number <fdo> and close <fdo> 494 static int mycopy(int fdi, int fdo) argument 500 if(write(fdo,buffer,n) != n) 503 close(fdo);
|
/illumos-gate/usr/src/tools/btxld/ |
H A D | btxld.c | 206 int fdi[3], fdo, i; local 258 if ((fdo = open(name, O_CREAT | O_TRUNC | O_WRONLY, 0666)) == -1) 262 puthdr(fdo, &ohdr); 267 copy(fdi[i], fdo, ldr_size, 0); 268 seekx(fdo, ohdr.size += ohdr.text); 275 writex(fdo, &btxle, sizeof(btxle)); 276 copy(fdi[i], fdo, btx.btx_textsz - sizeof(btx), 280 copy(fdi[i], fdo, ihdr.size, 0); 281 if (ftruncate(fdo, ohdr.size += ohdr.data)) 287 if (close(fdo)) 447 copy(int fdi, int fdo, size_t nbyte, off_t offset) argument [all...] |
Completed in 57 milliseconds