Home
last modified time | relevance | path

Searched refs:current_env (Results 1 – 2 of 2) sorted by relevance

/illumos-gate/usr/src/cmd/format/
H A Dmisc.h71 extern struct env *current_env;
78 x.ptr = current_env; \
79 current_env = &x; \
87 #define useenv() (current_env->flags |= ENV_USE)
92 #define unuseenv() (current_env->flags &= ~ENV_USE)
97 #define clearenv() (current_env = current_env->ptr)
H A Dmisc.c50 struct env *current_env = NULL; /* ptr to current environment */ variable
185 if (current_env == NULL || !(current_env->flags & ENV_USE)) in cmdabort()
191 if (current_env->flags & ENV_CRITICAL) { in cmdabort()
192 current_env->flags |= ENV_ABORT; in cmdabort()
209 longjmp(current_env->env, 0); in cmdabort()
227 if (current_env != NULL && current_env->flags & ENV_CRITICAL) { in onsusp()
371 if (current_env == NULL) in enter_critical()
376 current_env->flags |= ENV_CRITICAL; in enter_critical()
391 if (current_env != NULL) in exit_critical()
392 current_env->flags &= ~ENV_CRITICAL; in exit_critical()
[all …]