Home
last modified time | relevance | path

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

/titanic_44/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.c59 struct env *current_env = NULL; /* ptr to current environment */ variable
205 if (current_env == NULL || !(current_env->flags & ENV_USE))
211 if (current_env->flags & ENV_CRITICAL) {
212 current_env->flags |= ENV_ABORT;
229 longjmp(current_env->env, 0);
249 if (current_env != NULL && current_env->flags & ENV_CRITICAL) {
395 if (current_env == NULL) in enter_critical()
400 current_env->flags |= ENV_CRITICAL; in enter_critical()
415 if (current_env != NULL) in exit_critical()
416 current_env->flags &= ~ENV_CRITICAL; in exit_critical()
[all …]