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

12

/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.c60 static int once = 0; variable
135 if (!once) {
138 if (!once) {
143 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:__anon4670
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.c181 * pthread_once: calls given function only once.
187 __once_t *once = (__once_t *)once_control; local
189 if (once == NULL || init_routine == NULL)
192 if (once->once_flag == PTHREAD_ONCE_NOTDONE) {
193 (void) mutex_lock(&once->mlock);
194 if (once->once_flag == PTHREAD_ONCE_NOTDONE) {
195 pthread_cleanup_push(mutex_unlock, &once->mlock);
199 once->once_flag = PTHREAD_ONCE_DONE;
201 (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/psm/stand/boot/sparc/common/
H A Dboot_plat.c252 static int once; local
255 if (once == 0) {
257 ++once;
/illumos-gate/usr/src/cmd/tbl/
H A Dt8.c23 int once; variable
44 if (i==0) once=0;
108 if (allflg && once>0 )
110 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.c503 long once)
587 } while ((0 < *inbytesleft) && (0 == once));
603 long once)
683 } while ((0 < *inbytesleft) && (0 == once));
699 long once)
823 } while ((0 < *inbytesleft) && (0 == once));
839 long once)
914 } while ((0 < *inbytesleft) && (0 == once));
497 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
597 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
693 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
833 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.c1193 static boolean_t once = B_FALSE; local
1239 if (!once) {
1241 once = B_TRUE;
1266 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.c93 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.c253 int once; local
263 once = (fw != NULL);
264 if (once)
281 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.
/illumos-gate/usr/src/uts/common/io/iwh/
H A Diwh_hw.h1075 #define BIT_INT_ALIVE (1<<0) /* uCode interrupts once it initializes */
2187 struct iwh_calib_cfg_elmnt_s once; member in struct:iwh_calib_cfg_status_s
H A Diwh.c2565 cmd.ucd_calib_cfg.once.is_enable = IWH_CALIB_INIT_CFG_ALL;
2566 cmd.ucd_calib_cfg.once.start = IWH_CALIB_INIT_CFG_ALL;
2567 cmd.ucd_calib_cfg.once.send_res = IWH_CALIB_INIT_CFG_ALL;
/illumos-gate/usr/src/uts/common/io/iwp/
H A Diwp_hw.h1075 #define BIT_INT_ALIVE (1<<0) /* uCode interrupts once it initializes */
2184 struct iwp_calib_cfg_elmnt_s once; member in struct:iwp_calib_cfg_status_s
H A Diwp.c2469 cmd.ucd_calib_cfg.once.is_enable = IWP_CALIB_INIT_CFG_ALL;
2470 cmd.ucd_calib_cfg.once.start = IWP_CALIB_INIT_CFG_ALL;
2471 cmd.ucd_calib_cfg.once.send_res = IWP_CALIB_INIT_CFG_ALL;
/illumos-gate/usr/src/uts/common/io/iwn/
H A Dif_iwn.c4982 /* NB: We update differential gains only once after 20 beacons. */
5363 cmd.ucode.once.enable = 0xffffffff;
5364 cmd.ucode.once.start = IWN5000_CALIB_DC;
6365 * only once at first boot. Called from a process context.
6377 cmd.ucode.once.enable = 0xffffffff;
6378 cmd.ucode.once.start = 0xffffffff;
6379 cmd.ucode.once.send = 0xffffffff;

Completed in 203 milliseconds

12