Searched defs:local (Results 1 - 25 of 49) sorted by relevance

12

/ast/src/lib/libast/sfio/
H A Dsfclose.c36 reg int local, ex, rv; local
38 SFMTXDECL(f); /* declare a local stream variable for multithreading */
42 GETLOCAL(f,local);
45 SFMODE(f,local) != (f->mode&SF_RDWR) &&
46 SFMODE(f,local) != (f->mode&(SF_READ|SF_SYNCED)) &&
47 _sfmode(f,SF_SYNCED,local) < 0)
74 if(f->disc && (ex = SFRAISE(f,local ? SF_NEW : SF_CLOSING,NIL(Void_t*))) != 0)
77 if(!local && f->pool)
105 if(f->data && (!local || (f->flags&SF_STRING) || (f->bits&SF_MMAP) ) )
159 if(!local)
[all...]
H A Dsffilbuf.c43 reg int first, local, rcrv, rc, justseek; local
44 SFMTXDECL(f); /* declare a local stream variable for multithreading */
48 GETLOCAL(f,local);
58 if(SFMODE(f,local) != SF_READ && _sfmode(f,SF_READ,local) < 0)
60 SFLOCK(f,local);
111 SFOPEN(f,local);
H A Dsfnputc.c41 reg int local; local
42 SFMTXDECL(f); /* declare a local stream variable for multithreading */
46 GETLOCAL(f,local);
47 if(SFMODE(f,local) != SF_WRITE && _sfmode(f,SF_WRITE,local) < 0)
50 SFLOCK(f,local);
79 SFOPEN(f,local);
H A Dsfread.c40 reg int local, justseek; local
45 GETLOCAL(f,local);
84 if(SFMODE(f,local) != SF_READ && _sfmode(f,SF_READ,local) < 0)
89 SFLOCK(f,local);
137 SFOPEN(f,local);
H A Dsfsk.c41 reg int local, mode; local
46 GETLOCAL(f,local);
47 if(!local && !(f->bits&SF_DCDOWN))
87 if(local)
H A Dsfwrite.c40 reg int local; local
45 GETLOCAL(f,local);
88 if(SFMODE(f,local) != SF_WRITE && _sfmode(f,SF_WRITE,local) < 0 )
93 SFLOCK(f,local);
167 SFOPEN(f,local);
H A Dsfexcept.c38 reg int ev, local, lock; local
41 SFMTXDECL(f); /* declare a local stream variable for multithreading */
45 GETLOCAL(f,local);
48 if(local && io <= 0)
53 if(local && lock)
61 if(local && lock)
77 if(local && io >= 0)
111 if(local && f->push &&
H A Dsfflsbuf.c41 int local, isall; local
43 SFMTXDECL(f); /* declare a local stream variable for multithreading */
47 GETLOCAL(f,local);
51 if(SFMODE(f,local) != SF_WRITE && _sfmode(f,SF_WRITE,local) < 0)
53 SFLOCK(f,local);
68 { SFOPEN(f,local);
109 { SFOPEN(f,local);
120 SFOPEN(f,local);
H A Dsfraise.c66 reg int local, rv; local
74 GETLOCAL(f,local);
76 !(local &&
79 SFMODE(f,local) != (f->mode&SF_RDWR) && _sfmode(f,0,local) < 0)
81 SFLOCK(f,local);
105 SFOPEN(f,local);
H A Dsfreserve.c41 reg int mode, local; local
92 for(local = 0;; local = SF_LOCAL)
97 if((int)f->mode != mode && _sfmode(f,mode,local) < 0)
102 SFLOCK(f,local);
H A Dsfseek.c61 int mode, local, hardseek, mustsync; local
66 GETLOCAL(f,local);
76 if((int)SFMODE(f,local) != (mode = f->mode&SF_RDWR))
81 mode = _sfmode(f,mode,local);
110 SFLOCK(f,local);
276 SFOPEN(f,local);
H A Dsfsync.c89 int local, rv, mode, lock; local
98 GETLOCAL(origf,local);
109 if((origf->mode&SF_RDWR) != SFMODE(origf,local) && _sfmode(origf,0,local) < 0)
119 SFLOCK(f,local);
161 SFOPEN(f,local);
168 if(!local && f && (f->mode&SF_POOL) && f->pool && f != f->pool->sf[0])
H A Dsfwr.c139 reg int local, oerrno; local
144 GETLOCAL(f,local);
145 if(!local && !(f->bits&SF_DCDOWN)) /* an external user's call */
168 if(local)
229 if(local)
236 w = local ? 0 : w;
239 if(!local && !(f->flags&SF_STRING))
H A Dsfrd.c72 reg int local, rcrv, dosync, oerrno; local
77 GETLOCAL(f,local);
85 if(!local && !(f->bits&SF_DCDOWN)) /* an external user's call */
125 if(local)
294 if(local)
301 n = local ? 0 : (ssize_t)r;
304 if(!local && !(f->flags&SF_STRING))
H A Dsfmode.c362 int _sfmode(reg Sfio_t* f, reg int wanted, reg int local) argument
364 int _sfmode(f, wanted, local)
367 reg int local; /* a local call */
384 if((!local && SFFROZEN(f)) || (!(f->flags&SF_STRING) && f->file < 0))
385 { if(local || !f->disc || !f->disc->exceptf)
386 { local = 1;
393 if((!local && SFFROZEN(f)) ||
396 { local = 1;
426 { local
[all...]
H A Dsfsetbuf.c113 int sf_malloc, oflags, init, okmmap, local; local
125 GETLOCAL(f,local);
143 else if((f->mode&SF_RDWR) != SFMODE(f,local) && _sfmode(f,0,local) < 0)
153 _sfmode(f,SF_READ,local) < 0)
157 SFLOCK(f,local); rv = SFSYNC(f); SFOPEN(f,local);
165 SFLOCK(f,local);
218 if((init || local) && !(f->flags&SF_STRING))
423 SFOPEN(f,local);
[all...]
/ast/src/lib/libast/vmalloc/
H A Dvmpool.c42 static Void_t* poolalloc(Vmalloc_t* vm, reg size_t size, int local) argument
44 static Void_t* poolalloc(vm, size, local )
47 int local;
64 SETLOCK(vm, local);
105 if(!local && (vd->mode&VM_TRACE) && _Vmtrace && tp)
108 CLRLOCK(vm, local);
114 static long pooladdr(Vmalloc_t* vm, reg Void_t* addr, int local) argument
116 static long pooladdr(vm, addr, local)
119 int local;
129 SETLOCK(vm, local);
232 poolsize(Vmalloc_t* vm, Void_t* addr, int local) argument
244 poolcompact(Vmalloc_t* vm, int local) argument
282 poolalign(Vmalloc_t* vm, size_t size, size_t align, int local) argument
[all...]
H A Dvmlast.c36 static Void_t* lastalloc(Vmalloc_t* vm, size_t size, int local) argument
38 static Void_t* lastalloc(vm, size, local)
41 int local;
50 SETLOCK(vm, local);
82 if(!local && (vd->mode&VM_TRACE) && _Vmtrace)
86 CLRLOCK(vm, local);
92 static int lastfree(Vmalloc_t* vm, reg Void_t* data, int local )
94 static int lastfree(vm, data, local)
97 int local;
108 SETLOCK(vm, local);
135 lastresize(Vmalloc_t* vm, reg Void_t* data, size_t size, int type, int local) argument
271 lastaddr(Vmalloc_t* vm, Void_t* addr, int local) argument
294 lastsize(Vmalloc_t* vm, Void_t* addr, int local) argument
319 lastcompact(Vmalloc_t* vm, int local) argument
356 lastalign(Vmalloc_t* vm, size_t size, size_t align, int local) argument
[all...]
/ast/src/lib/libcs/
H A Dcsaddr.c36 static unsigned long local; variable
61 messagef((state->id, NiL, -8, "realaddr(%s) = %s, flags = |%s%s%s", name, csntoa(state, local), (state->flags & CS_ADDR_LOCAL) ? "LOCAL|" : "", (state->flags & CS_ADDR_REMOTE) ? "REMOTE|" : "", (state->flags & CS_ADDR_SHARE) ? "SHARE|" : ""));
62 return local;
88 if (local == CS_LOCAL)
94 local = addr.l;
97 addr.l = local;
105 * local conversion
120 if (local == CS_LOCAL)
121 local = addr.l;
123 addr.l = local;
[all...]
/ast/src/lib/librecsort/
H A Drswrite.c84 int local, flags, u, c; local
99 if(GETLOCAL(rs,local))
147 else if(local || (rs->type&RS_UNIQ) )
207 else if(local)
310 if(local)
/ast/src/lib/libast/tm/
H A Dtminit.c123 * return minutes west of GMT for local time clock
126 * this routine also kicks in the local initialization
139 * convert to GMT assuming local time
189 tm_info.local->type = (n && *v) ? ((zp = tmtype(v, NiL)) ? zp->type : strdup(v)) : 0;
202 * initialize the local timezone
220 static Tm_zone_t local; local
252 local.standard = strdup(tzname[0]);
253 local.daylight = strdup(tzname[1]);
258 * tm_info.local
261 tm_info.zone = tm_info.local
[all...]
H A Dtmlocale.c135 int local; member in struct:Map_s
372 b[map[i].local] = s;
449 int local; member in struct:Map_s
525 t = tm_data.format[map[i].local];
533 b[map[i].local] = s;
535 t = tm_data.format[map[i].local];
/ast/src/cmd/ksh93/tests/
H A Dnameref.sh202 [[ $(selfref ps) == *a=1* ]] || err_exit 'local nameref cannot reference global variable of the same name'
208 [[ $(subref ps) == 1 ]] || err_exit 'local nameref cannot reference global variable child'
210 function local function
213 [[ $(subref ps) == 3 ]] || err_exit 'local nameref cannot reference caller compound variable'
215 local
216 unset -f local
217 function local function
221 local 2> /dev/null || err_exit 'function local has non-zero exit status'
257 ) == *foo=hello* ]] || err_exit 'unable to display compound variable from name reference of local variabl
[all...]
/ast/src/lib/libz/
H A Dcrc32.c31 #define local static macro
58 local unsigned long crc32_little OF((unsigned long,
60 local unsigned long crc32_big OF((unsigned long,
68 local unsigned long gf2_matrix_times OF((unsigned long *mat,
70 local void gf2_matrix_square OF((unsigned long *square, unsigned long *mat));
74 local volatile int crc_table_empty = 1;
75 local unsigned long FAR crc_table[TBLS][256];
76 local void make_crc_table OF((void));
78 local void write_table OF((FILE *, const unsigned long FAR *));
106 local voi
[all...]
H A Dminigzip.c66 # define local static macro
69 # define local macro
102 local char buf[BUFLEN];
170 local char buf[BUFLEN];
197 local char outfile[MAX_NAME_LEN];
226 local char buf[MAX_NAME_LEN];

Completed in 44 milliseconds

12