Searched refs:hist_old (Results 1 – 2 of 2) sorted by relevance
/titanic_51/usr/src/lib/libshell/common/edit/ |
H A D | history.c | 463 register History_t *hist_new, *hist_old = hp; in hist_trim() local 467 unlink(hist_old->histname); in hist_trim() 468 if(access(hist_old->histname,F_OK) >= 0) in hist_trim() 472 char *last, *name=hist_old->histname; in hist_trim() 473 close(sffileno(hist_old->histfp)); in hist_trim() 486 sfsetfd(hist_old->histfp,fd); in hist_trim() 491 if(fstat(sffileno(hist_old->histfp),&statb)>=0) in hist_trim() 499 return hist_ptr = hist_old; in hist_trim() 502 hist_ptr = hist_old; in hist_trim() 505 newp = hist_seek(hist_old,++n); in hist_trim() [all …]
|
/titanic_51/usr/src/contrib/ast/src/cmd/ksh93/edit/ |
H A D | history.c | 463 register History_t *hist_new, *hist_old = hp; in hist_trim() local 467 unlink(hist_old->histname); in hist_trim() 468 if(access(hist_old->histname,F_OK) >= 0) in hist_trim() 472 char *last, *name=hist_old->histname; in hist_trim() 473 close(sffileno(hist_old->histfp)); in hist_trim() 489 sfsetfd(hist_old->histfp,fd); in hist_trim() 494 if(fstat(sffileno(hist_old->histfp),&statb)>=0) in hist_trim() 502 return hist_ptr = hist_old; in hist_trim() 505 hist_ptr = hist_old; in hist_trim() 508 newp = hist_seek(hist_old, in hist_trim() [all...] |