Searched refs:once (Results 1 - 25 of 36) sorted by relevance

12

/illumos-gate/usr/src/tools/smatch/src/validation/
H A Dpragma-once.c1 #pragma once
2 #include "pragma-once.c"
4 * check-name: #pragma once
/illumos-gate/usr/src/lib/libresolv2/common/irs/
H A Dgai_strerror.c59 static int once = 0;
67 if (!once) {
70 if (!once) {
75 once = 1;
H A Dirs_data.c56 static int once = 0; variable
131 if (!once) {
134 if (!once) {
139 once = 1;
/illumos-gate/usr/src/uts/common/gssapi/mechs/krb5/include/
H A Dk5-platform.h69 guarantee in both cases that the init function is run once, in one
112 ensures thath the function is called exactly once (pthread_once or
202 typedef struct { k5_once_t once; int error, did_run; void (*fn)(void); } k5_init_t; member in struct:__anon4909
215 int k5int_err = k5_once(&k5int_i->once, k5int_i->fn); \
226 err = k5_once(&i->once, i->fn); \
238 static k5_init_t JOIN__2(NAME, once) = \
243 JOIN__2(NAME, once).did_run = 1; \
244 JOIN__2(NAME, once).error = NAME(); \
249 k5_call_init_function(& JOIN__2(NAME, once))
255 if we don't invoke mutex/once routine
[all...]
/illumos-gate/usr/src/lib/libc/port/threads/
H A Dpthread.c189 * pthread_once: calls given function only once.
195 __once_t *once = (__once_t *)once_control; local
197 if (once == NULL || init_routine == NULL)
200 if (once->once_flag == PTHREAD_ONCE_NOTDONE) {
201 (void) mutex_lock(&once->mlock);
202 if (once->once_flag == PTHREAD_ONCE_NOTDONE) {
203 pthread_cleanup_push(_mutex_unlock_wrap, &once->mlock);
207 once->once_flag = PTHREAD_ONCE_DONE;
209 (void) mutex_unlock(&once->mlock);
/illumos-gate/usr/src/cmd/svc/startd/
H A Dspecials.c63 static int once; local
91 if (once)
97 once++;
/illumos-gate/usr/src/lib/libast/common/sfio/
H A Dvthread.h153 /* structure for exactly once execution */
156 _vtonce_t once; member in struct:_vtonce_s
169 #define vtonceerror(once) ((once)->error)
215 #define vtonceerror(once) (0)
/illumos-gate/usr/src/boot/sys/boot/efi/libefi/
H A Ddevpath.c77 static int once = 1; local
82 if (once) {
87 once = 0;
/illumos-gate/usr/src/tools/smatch/src/
H A Dident-list.h61 IDENT(once); variable
H A Dtoken.h59 int dirty, next_stream, once; member in struct:stream
H A Dlib.c174 static int once = 0; local
176 if (once)
179 once = 1;
/illumos-gate/usr/src/psm/stand/boot/sparc/common/
H A Dboot_plat.c253 static int once; local
256 if (once == 0) {
258 ++once;
/illumos-gate/usr/src/cmd/tbl/
H A Dt8.c21 int once; variable
42 if (i==0) once=0;
106 if (allflg && once>0 )
108 once=1;
/illumos-gate/usr/src/lib/libsqlite/src/
H A Dtclsqlite.c74 int once; /* Set for first callback only */ member in struct:CallbackData
99 assert( cbData->once );
100 cbData->once = 0;
185 if( azCol==0 || (cbData->once && cbData->zArray[0]) ){
197 cbData->once = 0;
796 cbData.once = 1;
/illumos-gate/usr/src/cmd/geniconvtbl/
H A Dgeniconvtbl.c501 long once)
585 } while ((0 < *inbytesleft) && (0 == once));
601 long once)
681 } while ((0 < *inbytesleft) && (0 == once));
697 long once)
821 } while ((0 < *inbytesleft) && (0 == once));
837 long once)
912 } while ((0 < *inbytesleft) && (0 == once));
495 map_i_f( itm_tbl_hdr_t *tbl_hdr, const unsigned char **inbuf, size_t *inbytesleft, unsigned char **outbuf, size_t *outbytesleft, long once) argument
595 map_l_f( itm_tbl_hdr_t *tbl_hdr, const unsigned char **inbuf, size_t *inbytesleft, unsigned char **outbuf, size_t *outbytesleft, long once) argument
691 map_h_l( itm_tbl_hdr_t *tbl_hdr, const unsigned char **inbuf, size_t *inbytesleft, unsigned char **outbuf, size_t *outbytesleft, long once) argument
831 map_d_e_l( itm_tbl_hdr_t *tbl_hdr, const unsigned char **inbuf, size_t *inbytesleft, unsigned char **outbuf, size_t *outbytesleft, long once) argument
/illumos-gate/usr/src/cmd/auditd/
H A Ddoorway.c1194 static boolean_t once = B_FALSE; local
1240 if (!once) {
1242 once = B_TRUE;
1267 once = B_FALSE;
/illumos-gate/usr/src/lib/libc/sparc/gen/
H A Dstrcpy.s56 ! once this has occurred, the copy takes place, while checking
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/telnet/
H A Denc_des.c94 int once; member in struct:_fb
/illumos-gate/usr/src/cmd/mdb/common/modules/nca/
H A Dnca.c143 * once mdb pager bug is fixed.
277 static int once; local
279 if (once == 0) {
288 once++;
/illumos-gate/usr/src/lib/libast/common/regex/
H A Dreglib.h551 unsigned char once; /* if 1st parse fails, quit */ member in struct:reglib_s
H A Dregcomp.c72 * need no backtracking once a complete match is found.
3175 p->env->once = 1;
3298 p->env->once = 1;
3461 if (!q->env->once)
3462 p->env->once = 0;
3473 p->env->once = 1;
/illumos-gate/usr/src/common/ficl/
H A Dvm.c258 int once; local
268 once = (fw != NULL);
269 if (once)
286 if (once) {
/illumos-gate/usr/src/cmd/backup/restore/
H A Dtape.c527 * the device once without prompting to enable unattended
1294 static int once = 0; local
1309 if (once == 0) {
1311 ++once;
/illumos-gate/usr/src/cmd/ypcmd/yp2lscripts/
H A Dinityp2l.sh272 So, once this file is ready, please modify appropriately
474 And once the execution of the script is over, you can
479 info for this map. And once the execution of the script
/illumos-gate/usr/src/uts/common/inet/sctp/
H A Dsctp_addr.c791 boolean_t once = B_FALSE; local
819 if (once)
822 once = B_TRUE;
1766 * to sctp_valid_addr_list() once the clustering module has processed it.

Completed in 110 milliseconds

12