/ast/src/lib/libast/sfio/ |
H A D | sfstack.c | 73 if(f1->pool && f1->pool != &_Sfpool && f1->pool != f2->pool && 74 f1 == f1->pool->sf[0]) 75 { /* get something else to pool front since f1 will be locked */ 76 for(n = 1; n < f1->pool->n_sf; ++n) 77 { if(SFFROZEN(f1->pool->sf[n]) ) 79 (*_Sfpmove)(f1->pool->sf[n],0); 85 if(f2->pool [all...] |
H A D | sfswap.c | 76 if(!f1->pool) 78 else for(f1pool = f1->pool->n_sf-1; f1pool >= 0; --f1pool) 79 if(f1->pool->sf[f1pool] == f1) 81 if(!f2->pool) 83 else for(f2pool = f2->pool->n_sf-1; f2pool >= 0; --f2pool) 84 if(f2->pool->sf[f2pool] == f2) 90 /* swap image and pool entries */ 95 f1->pool->sf[f2pool] = f1; 97 f2->pool->sf[f1pool] = f2;
|
H A D | sfpool.c | 26 ** otherwise, f is isolated from its pool. flag can be one of 32 /* Note that we do not free the space for a pool once it is allocated. 33 ** This is to prevent memory faults in calls such as sfsync(NULL) that walk the pool 62 /* look to see if there is a free pool */ 102 Sfpool_t* p; /* the pool */ 104 int n; /* current position in pool */ 127 else /* shared pool of write-streams, data can be moved among streams */ 168 /* delete a stream from its pool */ 173 Sfpool_t* p; /* the pool */ 175 int n; /* position in pool */ [all...] |
H A D | sfsync.c | 45 { /* find the next legitimate pool */ 130 { /* sync the buffer, make sure pool don't move */ 131 reg int pool = f->mode&SF_POOL; local 141 f->mode |= pool; 168 if(!local && f && (f->mode&SF_POOL) && f->pool && f != f->pool->sf[0]) 169 SFSYNC(f->pool->sf[0]);
|
H A D | sfclose.c | 77 if(!local && f->pool) 78 { /* remove from pool */ 79 if(f->pool == &_Sfpool) 102 f->pool = NIL(Sfpool_t*);
|
H A D | sfmode.c | 73 reg int pool; local 97 pool = f->mode&SF_POOL; 105 f->mode |= pool; 113 /* put into discrete pool */ 130 if(!(p = f->pool) ) 131 p = f->pool = &_Sfpool; 138 { if(p->s_sf == 0) /* initialize pool array */ 431 { /* move to head of pool */ 432 if(f == f->pool->sf[0] || (*_Sfpmove)(f,0) < 0 ) 445 if(!f->pool [all...] |
H A D | sftmp.c | 28 ** pool/stack/discipline will work correctly. 337 f->pool = savf.pool;
|
H A D | sfsetbuf.c | 140 { if(!f->pool && _sfsetpool(f) < 0)
|
/ast/src/lib/libast/vmalloc/ |
H A D | vmpool.c | 32 /* Method for pool allocation. 33 ** All elements in a pool have the same size. 35 ** pool: size of a block. 58 if(size != vd->pool) 59 { if(vd->pool <= 0) 60 vd->pool = size; 106 (*_Vmtrace)(vm,NIL(Vmuchar_t*),(Vmuchar_t*)tp,vd->pool,0); 139 size = ROUND(vd->pool,ALIGN); 172 if(vd->pool <= 0) 184 (*_Vmtrace)(vm, (Vmuchar_t*)data, NIL(Vmuchar_t*), vd->pool, [all...] |
H A D | vmstat.c | 76 else if((vd->mode&VM_MTPOOL) && (s = vd->pool) > 0) 134 st->s_busy = (st->m_busy = vd->pool)*st->n_busy; 136 st->s_free = (st->m_free = vd->pool)*st->n_free;
|
H A D | vmclear.c | 49 vd->pool = 0;
|
H A D | vmopen.c | 117 vd->pool = 0;
|
H A D | vmbest.c | 558 ** to return raw memory too early. vd->pool has an 564 if(size <= COMPACT*vd->incr || size <= COMPACT*vd->pool) 568 vd->pool = 0; 806 vd->pool = (vd->pool + (s&~BITS))/2; 1357 0, /* pool */
|
H A D | vmhdr.h | 309 size_t pool; /* size of an elt in a Vmpool region */ member in struct:_vmdata_s
|
/ast/src/lib/libast/include/ |
H A D | sfio_t.h | 42 struct _sfpool_s* pool; /* the pool containing this */ \ 90 (struct _sfpool_s*)0, /* pool */ \ 118 (f)->pool = (struct _sfpool_s*)0, /* pool */ \
|
/ast/src/cmd/tests/sfio/ |
H A D | tsetbuf.c | 36 if(!sfstdout->pool) 37 terror("No pool");
|
/ast/src/cmd/coshell/ |
H A D | cotest.c | 65 state.pool = ((s = getenv(CO_ENV_PROC)) && *s) ? (int)strtol(s, NiL, 0) : POOL;
|
H A D | service.h | 108 #define POOL 8 /* default proc pool */ 140 #define IGN (1<<2) /* ignore pool member */ 172 #define SETPOOL (1<<14) /* global.pool was set */ 222 int pool; member in struct:__anon58::__anon59 314 int pool; member in struct:__anon66
|
H A D | schedule.c | 139 state.pool = a->global.pool; 290 if (mp && (!sp || nopen < state.pool + noverride && RNK(mp, a) < PCT(sv, H_RANK))) sp = mp; 295 if (!xp->running && (nopen - xp->cpu >= state.pool + noverride || state.open - xp->cpu >= state.fdtotal / 2 || xp == dp && cs.time > dt && (!xm || !mp || mp->rank < PCT(xp->rank, H_RANK))))
|
H A D | command.c | 558 sfprintf(state.string, " pool %-6d\n", state.pool); 643 if (dat && (attr.global.set & SETPOOL) && attr.global.pool > 0 && attr.global.pool < n) sv[attr.global.pool] = 0; 675 sfprintf(state.string, "HOST CONF\n%-12.12s busy=%s grace=%s name=%s percpu=%d perserver=%d peruser=%d pool=%d\n", CS_HOST_LOCAL, fmtelapsed(state.busy, 1), fmtelapsed(state.grace, 1), state.shell->name, state.percpu, state.perserver, state.peruser, state.pool); 787 sfsprintf(num[3], sizeof(num[3]), "%d/%d+%d", tot.cpu, state.pool, state.override);
|
/ast/src/cmd/ksh93/sh/ |
H A D | fault.c | 515 register Sfio_t* pool; local 567 /* unlock output pool */ 569 if(!(pool=sfpool(NIL(Sfio_t*),shp->outpool,SF_WRITE))) 570 pool = shp->outpool; /* can't happen? */ 571 sfclrlock(pool); 574 sfpurge(pool);
|
/ast/src/cmd/ksh93/bltins/ |
H A D | print.c | 314 Sfio_t *pool; local 322 pool=sfpool(sfstderr,NIL(Sfio_t*),SF_WRITE); 334 sfpool(sfstderr,pool,SF_WRITE);
|
/ast/src/lib/libpp/ |
H A D | pplex.c | 129 * <wait.h> is poison here so pool moved to the end 133 static void pool(void); 439 if (pp.pool.input) 443 pool(); 2374 * output pool status on exit 2380 error(ERROR_OUTPUT|0, pp.pool.output, "%d", error_info.errors != 0); 2388 pool(void) function 2394 if (!sfnew(sfstdin, NiL, SF_UNBOUND, pp.pool.input, SF_READ)) 2395 error(ERROR_SYSTEM|3, "cannot dup pool input"); 2407 pp.pool [all...] |
H A D | ppop.c | 1201 if (!(pp.mode & DUMP) || pp.pool.input) 1207 if (pp.pool.input) 1350 pp.pool.input = dup(0); 1351 pp.pool.output = dup(1); 1360 error(3, "preprocessor not compiled with input pool enabled [POOL]");
|
H A D | ppsearch.c | 308 (pp.pool.input || !(dp->type & TYPE_CHECKPOINT)) 318 if (pp.pool.input)
|