/titanic_51/usr/src/lib/libshell/common/bltins/ |
H A D | hist.c | 46 register int flag,fdo; in b_hist() local 193 if((fdo=open(fname,O_CREAT|O_RDWR,S_IRUSR|S_IWUSR)) < 0) in b_hist() 195 outfile= sfnew(NIL(Sfio_t*),shp->outbuff,IOBSIZE,fdo,SF_WRITE); in b_hist() 227 sh_close(fdo); in b_hist() 228 fdo = pad_create(fname); in b_hist() 229 pad_wait(fdo); in b_hist() 233 lseek(fdo,(off_t)0,SEEK_SET); in b_hist() 246 fdo = sh_chkopen(fname); in b_hist() 259 hist_subst(error_info.id,fdo,replace); in b_hist() 263 Sfio_t *iop = sfnew(NIL(Sfio_t*),buff,IOBSIZE,fdo,SF_READ); in b_hist() [all …]
|
/titanic_51/usr/src/contrib/ast/src/cmd/ksh93/bltins/ |
H A D | hist.c | 46 register int flag,fdo; in b_hist() local 194 if((fdo=open(fname,O_CREAT|O_RDWR,S_IRUSR|S_IWUSR)) < 0) in b_hist() 196 outfile= sfnew(NIL(Sfio_t*),shp->outbuff,IOBSIZE,fdo,SF_WRITE); in b_hist() 232 sh_close(fdo); in b_hist() 233 fdo = pad_create(fname); in b_hist() 234 pad_wait(fdo); in b_hist() 238 lseek(fdo,(off_t)0,SEEK_SET); in b_hist() 251 fdo = sh_chkopen(fname); in b_hist() 264 hist_subst(error_info.id,fdo,replace); in b_hist() 268 Sfio_t *iop = sfnew(NIL(Sfio_t*),buff,IOBSIZE,fdo,SF_REA in b_hist() [all...] |
/titanic_51/usr/src/tools/btxld/ |
H A D | btxld.c | 206 int fdi[3], fdo, i; in btxld() local 258 if ((fdo = open(name, O_CREAT | O_TRUNC | O_WRONLY, 0666)) == -1) in btxld() 262 puthdr(fdo, &ohdr); in btxld() 267 copy(fdi[i], fdo, ldr_size, 0); in btxld() 268 seekx(fdo, ohdr.size += ohdr.text); in btxld() 275 writex(fdo, &btxle, sizeof(btxle)); in btxld() 276 copy(fdi[i], fdo, btx.btx_textsz - sizeof(btx), in btxld() 280 copy(fdi[i], fdo, ihdr.size, 0); in btxld() 281 if (ftruncate(fdo, ohdr.size += ohdr.data)) in btxld() 287 if (close(fdo)) in btxld() 447 copy(int fdi,int fdo,size_t nbyte,off_t offset) copy() argument [all...] |
/titanic_51/usr/src/lib/libshell/common/sh/ |
H A D | suid_exec.c | 494 static int mycopy(int fdi, int fdo) in mycopy() argument 500 if(write(fdo,buffer,n) != n) in mycopy() 503 close(fdo); in mycopy()
|
/titanic_51/usr/src/contrib/ast/src/cmd/ksh93/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) in mycopy() argument 500 if(write(fdo,buffer,n) != n) in mycopy() 503 close(fdo); in mycopy()
|
/titanic_51/usr/src/tools/scripts/ |
H A D | its.reg | 128 PREFIX=fdo
|