Home
last modified time | relevance | path

Searched refs:g (Results 1 – 25 of 2256) sorted by relevance

12345678910>>...91

/freebsd/contrib/lua/src/
H A Dlgc.c71 #define makewhite(g,x) \ argument
72 (x->marked = cast_byte((x->marked & ~maskcolors) | luaC_white(g)))
94 #define markvalue(g,o) { checkliveness(g->mainthread,o); \ argument
95 if (valiswhite(o)) reallymarkobject(g,gcvalue(o)); }
97 #define markkey(g, n) { if keyiswhite(n) reallymarkobject(g,gckey(n)); } argument
99 #define markobject(g,t) { if (iswhite(t)) reallymarkobject(g, obj2gco(t)); } argument
105 #define markobjectN(g,t) { if (t) markobject(g,t); } argument
107 static void reallymarkobject (global_State *g, GCObject *o);
185 static int iscleared (global_State *g, const GCObject *o) { in iscleared() argument
188 markobject(g, o); /* strings are 'values', so are never weak */ in iscleared()
[all …]
H A Dlstate.c46 global_State g; member
89 void luaE_setdebt (global_State *g, l_mem debt) { in luaE_setdebt() argument
90 l_mem tb = gettotalbytes(g); in luaE_setdebt()
94 g->totalbytes = tb - debt; in luaE_setdebt()
95 g->GCdebt = debt; in luaE_setdebt()
216 static void init_registry (lua_State *L, global_State *g) { in init_registry() argument
219 sethvalue(L, &g->l_registry, registry); in init_registry()
232 global_State *g = G(L); in f_luaopen() local
235 init_registry(L, g); in f_luaopen()
239 g->gcstp = 0; /* allow gc */ in f_luaopen()
[all …]
H A Dlmem.c47 #define callfrealloc(g,block,os,ns) ((*g->frealloc)(g->ud, block, os, ns)) argument
58 #define cantryagain(g) (completestate(g) && !g->gcstopem) argument
69 static void *firsttry (global_State *g, void *block, size_t os, size_t ns) { in firsttry() argument
70 if (ns > 0 && cantryagain(g)) in firsttry()
73 return callfrealloc(g, block, os, ns); in firsttry()
76 #define firsttry(g,block,os,ns) callfrealloc(g, block, os, ns) argument
151 global_State *g = G(L); in luaM_free_() local
153 callfrealloc(g, block, osize, 0); in luaM_free_()
154 g->GCdebt -= osize; in luaM_free_()
164 global_State *g = G(L); in tryagain() local
[all …]
/freebsd/sys/contrib/openzfs/module/lua/
H A Dlgc.c57 #define makewhite(g,x) \ argument
58 (gch(x)->marked = cast_byte((gch(x)->marked & maskcolors) | luaC_white(g)))
73 #define markvalue(g,o) { checkconsistency(o); \ argument
74 if (valiswhite(o)) reallymarkobject(g,gcvalue(o)); }
76 #define markobject(g,t) { if ((t) && iswhite(obj2gco(t))) \ argument
77 reallymarkobject(g, obj2gco(t)); }
79 static void reallymarkobject (global_State *g, GCObject *o);
119 static int iscleared (global_State *g, const TValue *o) { in iscleared() argument
122 markobject(g, rawtsvalue(o)); /* strings are `values', so are never weak */ in iscleared()
134 global_State *g = G(L); in luaC_barrier_() local
[all …]
H A Dlstate.c68 global_State g; member
102 void luaE_setdebt (global_State *g, l_mem debt) { in luaE_setdebt() argument
103 g->totalbytes -= (debt - g->GCdebt); in luaE_setdebt()
104 g->GCdebt = debt; in luaE_setdebt()
161 static void init_registry (lua_State *L, global_State *g) { in init_registry() argument
165 sethvalue(L, &g->l_registry, registry); in init_registry()
180 global_State *g = G(L); in f_luaopen() local
183 init_registry(L, g); in f_luaopen()
188 g->memerrmsg = luaS_newliteral(L, MEMERRMSG); in f_luaopen()
189 luaS_fix(g->memerrmsg); /* it should never be collected */ in f_luaopen()
[all …]
/freebsd/contrib/llvm-project/compiler-rt/lib/asan/
H A Dasan_globals.cpp34 const Global *g; member
43 Global g; member
58 ALWAYS_INLINE void PoisonShadowForGlobal(const Global *g, u8 value) { in PoisonShadowForGlobal() argument
59 FastPoisonShadow(g->beg, g->size_with_redzone, value); in PoisonShadowForGlobal()
62 ALWAYS_INLINE void PoisonRedZones(const Global &g) { in PoisonRedZones() argument
63 uptr aligned_size = RoundUpTo(g.size, ASAN_SHADOW_GRANULARITY); in PoisonRedZones()
64 FastPoisonShadow(g.beg + aligned_size, g.size_with_redzone - aligned_size, in PoisonRedZones()
66 if (g.size != aligned_size) { in PoisonRedZones()
68 g.beg + RoundDownTo(g.size, ASAN_SHADOW_GRANULARITY), in PoisonRedZones()
69 g.size % ASAN_SHADOW_GRANULARITY, ASAN_SHADOW_GRANULARITY, in PoisonRedZones()
[all …]
/freebsd/contrib/ntp/sntp/scripts/
H A Dmansec2subst.sed1 s/1ntp-keygenman/@NTP_KEYGEN_MS@/g
2 s/1ntp-keygenmdoc/@NTP_KEYGEN_MS@/g
3 s/1ntp-waitman/@NTP_WAIT_MS@/g
4 s/1ntp-waitmdoc/@NTP_WAIT_MS@/g
5 s/1ntpdateman/@NTPDATE_MS@/g
6 s/1ntpdatemdoc/@NTPDATE_MS@/g
7 s/1ntpdcman/@NTPDC_MS@/g
8 s/1ntpdcmdoc/@NTPDC_MS@/g
9 s/1ntpdman/@NTPD_MS@/g
10 s/1ntpdmdoc/@NTPD_MS@/g
[all …]
/freebsd/contrib/ntp/sntp/libevent/
H A Dbufferevent_ratelim.c148 struct timeval g; in ev_token_bucket_cfg_new() local
150 g.tv_sec = 1; in ev_token_bucket_cfg_new()
151 g.tv_usec = 0; in ev_token_bucket_cfg_new()
152 tick_len = &g; in ev_token_bucket_cfg_new()
185 #define LOCK_GROUP(g) EVLOCK_LOCK((g)->lock, 0) argument
186 #define UNLOCK_GROUP(g) EVLOCK_UNLOCK((g)->lock, 0) argument
188 static int bev_group_suspend_reading_(struct bufferevent_rate_limit_group *g);
189 static int bev_group_suspend_writing_(struct bufferevent_rate_limit_group *g);
190 static void bev_group_unsuspend_reading_(struct bufferevent_rate_limit_group *g);
191 static void bev_group_unsuspend_writing_(struct bufferevent_rate_limit_group *g);
[all …]
/freebsd/contrib/libevent/
H A Dbufferevent_ratelim.c148 struct timeval g; in ev_token_bucket_cfg_new() local
150 g.tv_sec = 1; in ev_token_bucket_cfg_new()
151 g.tv_usec = 0; in ev_token_bucket_cfg_new()
152 tick_len = &g; in ev_token_bucket_cfg_new()
185 #define LOCK_GROUP(g) EVLOCK_LOCK((g)->lock, 0) argument
186 #define UNLOCK_GROUP(g) EVLOCK_UNLOCK((g)->lock, 0) argument
188 static int bev_group_suspend_reading_(struct bufferevent_rate_limit_group *g);
189 static int bev_group_suspend_writing_(struct bufferevent_rate_limit_group *g);
190 static void bev_group_unsuspend_reading_(struct bufferevent_rate_limit_group *g);
191 static void bev_group_unsuspend_writing_(struct bufferevent_rate_limit_group *g);
[all …]
/freebsd/lib/libc/regex/
H A Dregfree.c54 struct re_guts *g; in regfree() local
60 g = preg->re_g; in regfree()
61 if (g == NULL || g->magic != MAGIC2) /* oops again */ in regfree()
64 g->magic = 0; /* mark it invalid */ in regfree()
66 if (g->strip != NULL) in regfree()
67 free((char *)g->strip); in regfree()
68 if (g->sets != NULL) { in regfree()
69 for (i = 0; i < g->ncsets; i++) { in regfree()
70 free(g->sets[i].ranges); in regfree()
71 free(g->sets[i].wides); in regfree()
[all …]
H A Dregcomp.c92 struct re_guts *g; member
151 static void stripsnug(struct parse *p, struct re_guts *g);
152 static void findmust(struct parse *p, struct re_guts *g);
154 static void computejumps(struct parse *p, struct re_guts *g);
155 static void computematchjumps(struct parse *p, struct re_guts *g);
156 static sopno pluscount(struct parse *p, struct re_guts *g);
208 struct re_guts *g; in regcomp_internal() local
231 g = (struct re_guts *)malloc(sizeof(struct re_guts)); in regcomp_internal()
232 if (g == NULL) in regcomp_internal()
245 free((char *)g); in regcomp_internal()
[all …]
/freebsd/tools/tools/netmap/
H A Dpkt-gen.c326 struct glob_arg *g; member
506 p = index(targ->g->src_mac, '-'); in extract_mac_range()
510 bcopy(ether_aton(targ->g->dst_mac), targ->dst_mac, 6); in extract_mac_range()
512 p = index(targ->g->dst_mac, '-'); in extract_mac_range()
522 get_if_mtu(const struct glob_arg *g) in get_if_mtu() argument
526 const char *ifname = g->nmd->hdr.nr_name; in get_if_mtu()
529 if (!strncmp(g->ifname, "netmap:", 7) && !strchr(ifname, '{') in get_if_mtu()
831 struct glob_arg *g = t->g; in update_ip() local
844 if (g->options & OPT_RANDOM_SRC) { in update_ip()
852 if (oport < g->src_ip.port1) { in update_ip()
[all …]
/freebsd/sys/contrib/openzfs/config/
H A DSubstfiles.am2 -e 's|@abs_top_srcdir[@]|$(abs_top_srcdir)|g' \
3 -e 's|@bindir[@]|$(bindir)|g' \
4 -e 's|@datadir[@]|$(datadir)|g' \
5 -e 's|@initconfdir[@]|$(initconfdir)|g' \
6 -e 's|@initdir[@]|$(initdir)|g' \
7 -e 's|@mounthelperdir[@]|$(mounthelperdir)|g' \
8 -e 's|@pammoduledir[@]|$(pammoduledir)|g' \
9 -e 's|@runstatedir[@]|$(runstatedir)|g' \
10 -e 's|@sbindir[@]|$(sbindir)|g' \
11 -e 's|@sysconfdir[@]|$(sysconfdir)|g' \
[all...]
/freebsd/lib/libc/stdio/
H A Dfindfp.c93 struct glue *g; in moreglue() local
99 g = (struct glue *)malloc(sizeof(*g) + align + n * sizeof(FILE)); in moreglue()
100 if (g == NULL) in moreglue()
102 p = (FILE *)roundup((uintptr_t)(g + 1), align); in moreglue()
103 g->next = NULL; in moreglue()
104 g->niobs = n; in moreglue()
105 g->iobs = p; in moreglue()
108 return (g); in moreglue()
119 struct glue *g; in __sfp() local
127 for (g = &__sglue; g != NULL; g = g->next) { in __sfp()
[all …]
/freebsd/contrib/sendmail/libmilter/
H A Dengine.c843 st_optionneg(g) in st_optionneg() argument
844 genarg *g; in st_optionneg()
857 if (g == NULL || g->a_ctx->ctx_smfi == NULL)
859 ctx = g->a_ctx;
860 mi_clr_macros(ctx, g->a_idx + 1);
864 if (g->a_len < MILTER_OPTLEN)
869 (long) ctx->ctx_id, (int) g->a_len,
875 (void) memcpy((void *) &i, (void *) &(g->a_buf[0]), MILTER_LEN_BYTES);
895 (void) memcpy((void *) &i, (void *) &(g->a_buf[MILTER_LEN_BYTES]),
905 (void) memcpy((void *) &i, (void *) &(g->a_buf[MILTER_LEN_BYTES * 2]),
[all …]
/freebsd/contrib/nvi/regex/
H A Dregfree.c56 struct re_guts *g; in regfree() local
61 g = preg->re_g; in regfree()
62 if (g == NULL || g->magic != MAGIC2) /* oops again */ in regfree()
65 g->magic = 0; /* mark it invalid */ in regfree()
67 if (g->strip != NULL) in regfree()
68 free((char *)g->strip); in regfree()
69 if (g->stripdata != NULL) in regfree()
70 free((char *)g->stripdata); in regfree()
71 if (g->sets != NULL) in regfree()
72 free((char *)g->sets); in regfree()
[all …]
H A Dregcomp.c69 struct re_guts *g; member
113 static int isinsets(struct re_guts *g, int c);
114 static int samesets(struct re_guts *g, int c1, int c2);
116 static void categorize(struct parse *p, struct re_guts *g);
122 static void stripsnug(struct parse *p, struct re_guts *g);
123 static void findmust(struct parse *p, struct re_guts *g);
124 static sopno pluscount(struct parse *p, struct re_guts *g);
171 ((p)->ncsalloc / CHAR_BIT * (p)->g->csetsize + \
183 struct re_guts *g; in regcomp() local
205 g = (struct re_guts *)malloc(sizeof(struct re_guts) + in regcomp()
[all …]
/freebsd/sys/contrib/openzfs/scripts/
H A Dzfs2zol-patch.sed3 s:usr/src/uts/common/fs/zfs/sys:include/sys:g
4 s:usr/src/uts/common/fs/zfs:module/zfs:g
5 s:usr/src/lib/libzpool:lib/libzpool:g
6 s:usr/src/cmd:cmd:g
7 s:usr/src/common/nvpair:module/nvpair:g
8 s:usr/src/lib/libzfs/common/libzfs.h:include/libzfs.h:g
9 s:usr/src/man/man1m/zfs.1m:man/man8/zfs.8:g
10 s:usr/src/uts/common/sys:include/sys:g
11 s:usr/src/lib/libzfs_core/common/libzfs_core.h:include/libzfs_core.h:g
12 s:usr/src/lib/libzfs/common:lib/libzfs:g
[all …]
H A Dzol2zfs-patch.sed3 s:cmd:usr/src/cmd:g
4 s:include/libzfs.h:usr/src/lib/libzfs/common/libzfs.h:g
5 s:include/libzfs_core.h:usr/src/lib/libzfs_core/common/libzfs_core.h:g
6 s:include/sys:lib/libzpool/common/sys:g
7 s:include/sys:usr/src/uts/common/fs/zfs/sys:g
8 s:include/sys:usr/src/uts/common/sys:g
9 s:include/zfs_fletcher.h:usr/src/common/zfs/zfs_fletcher.h:g
10 s:include:usr/src/common/zfs:g
11 s:lib/libzfs:usr/src/lib/libzfs/common:g
12 s:lib/libzfs_core:usr/src/lib/libzfs_core/common:g
[all …]
/freebsd/contrib/wpa/src/fst/
H A Dfst_group.h22 #define foreach_fst_group_iface(g, i) \ argument
23 dl_list_for_each((i), &(g)->ifaces, struct fst_iface, group_lentry)
26 void fst_group_attach_iface(struct fst_group *g, struct fst_iface *i);
27 void fst_group_detach_iface(struct fst_group *g, struct fst_iface *i);
28 void fst_group_delete(struct fst_group *g);
30 void fst_group_update_ie(struct fst_group *g);
32 static inline bool fst_group_has_ifaces(struct fst_group *g) in fst_group_has_ifaces() argument
34 return !dl_list_empty(&g->ifaces); in fst_group_has_ifaces()
37 static inline struct fst_iface * fst_group_first_iface(struct fst_group *g) in fst_group_first_iface() argument
39 return dl_list_first(&g->ifaces, struct fst_iface, group_lentry); in fst_group_first_iface()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Support/
H A Dregcomp.c200 struct re_guts *g; member
296 struct re_guts *g; in llvm_regcomp() local
318 g = (struct re_guts *)malloc(sizeof(struct re_guts) + in llvm_regcomp()
320 if (g == NULL) in llvm_regcomp()
326 free((char *)g); in llvm_regcomp()
331 p->g = g; in llvm_regcomp()
340 g->csetsize = NC; in llvm_regcomp()
341 g->sets = NULL; in llvm_regcomp()
342 g->setbits = NULL; in llvm_regcomp()
343 g->ncsets = 0; in llvm_regcomp()
[all …]
H A Dregfree.c52 struct re_guts *g; in llvm_regfree() local
57 g = preg->re_g; in llvm_regfree()
58 if (g == NULL || g->magic != MAGIC2) /* oops again */ in llvm_regfree()
61 g->magic = 0; /* mark it invalid */ in llvm_regfree()
63 if (g->strip != NULL) in llvm_regfree()
64 free((char *)g->strip); in llvm_regfree()
65 if (g->sets != NULL) in llvm_regfree()
66 free((char *)g->sets); in llvm_regfree()
67 if (g->setbits != NULL) in llvm_regfree()
68 free((char *)g->setbits); in llvm_regfree()
[all …]
/freebsd/contrib/netbsd-tests/lib/libc/regex/
H A Ddebug.c55 struct re_guts *g = r->re_g; in regprint() local
60 fprintf(d, "%ld states, %zu categories", (long)g->nstates, in regprint()
61 g->ncategories); in regprint()
62 fprintf(d, ", first %ld last %ld", (long)g->firststate, in regprint()
63 (long)g->laststate); in regprint()
64 if (g->iflags&USEBOL) in regprint()
66 if (g->iflags&USEEOL) in regprint()
68 if (g->iflags&BAD) in regprint()
70 if (g->nsub > 0) in regprint()
71 fprintf(d, ", nsub=%ld", (long)g->nsub); in regprint()
[all …]
/freebsd/crypto/openssl/crypto/sha/
H A Dsha256.c150 unsigned MD32_REG_T a, b, c, d, e, f, g, h, s0, s1, T1, T2; in sha256_block_data_order() local
163 g = ctx->h[6]; in sha256_block_data_order()
169 T1 += h + Sigma1(e) + Ch(e, f, g) + K256[i]; in sha256_block_data_order()
171 h = g; in sha256_block_data_order()
172 g = f; in sha256_block_data_order()
188 T1 += h + Sigma1(e) + Ch(e, f, g) + K256[i]; in sha256_block_data_order()
190 h = g; in sha256_block_data_order()
191 g = f; in sha256_block_data_order()
206 ctx->h[6] += g; in sha256_block_data_order()
214 # define ROUND_00_15(i,a,b,c,d,e,f,g,h) do { \ argument
[all …]
/freebsd/lib/libc/regex/grot/
H A Ddebug.c24 struct re_guts *g = r->re_g; local
29 fprintf(d, "%ld states", (long)g->nstates);
30 fprintf(d, ", first %ld last %ld", (long)g->firststate,
31 (long)g->laststate);
32 if (g->iflags&USEBOL)
34 if (g->iflags&USEEOL)
36 if (g->iflags&BAD)
38 if (g->nsub > 0)
39 fprintf(d, ", nsub=%ld", (long)g->nsub);
40 if (g->must != NULL)
[all …]

12345678910>>...91