Searched refs:n_env (Results 1 – 3 of 3) sorted by relevance
/systemd-251/src/core/ |
D | execute.c | 1822 size_t n_env = 0; in build_environment() local 1840 our_env[n_env++] = x; in build_environment() 1844 our_env[n_env++] = x; in build_environment() 1853 our_env[n_env++] = x; in build_environment() 1859 our_env[n_env++] = x; in build_environment() 1863 our_env[n_env++] = x; in build_environment() 1873 our_env[n_env++] = x; in build_environment() 1882 our_env[n_env++] = x; in build_environment() 1889 our_env[n_env++] = x; in build_environment() 1894 our_env[n_env++] = x; in build_environment() [all …]
|
D | service.c | 1495 size_t n_env = 0; in service_spawn_internal() local 1551 … if (asprintf(our_env + n_env++, "NOTIFY_SOCKET=%s", UNIT(s)->manager->notify_socket) < 0) in service_spawn_internal() 1558 if (asprintf(our_env + n_env++, "MAINPID="PID_FMT, s->main_pid) < 0) in service_spawn_internal() 1562 if (asprintf(our_env + n_env++, "MANAGERPID="PID_FMT, getpid_cached()) < 0) in service_spawn_internal() 1566 if (asprintf(our_env + n_env++, "PIDFILE=%s", s->pid_file) < 0) in service_spawn_internal() 1591 our_env[n_env++] = t; in service_spawn_internal() 1599 our_env[n_env++] = t; in service_spawn_internal() 1614 …if (asprintf(our_env + n_env++, "%sSERVICE_RESULT=%s", monitor_prefix, service_result_to_string(en… in service_spawn_internal() 1619 …if (asprintf(our_env + n_env++, "%sEXIT_CODE=%s", monitor_prefix, sigchld_code_to_string(env_sourc… in service_spawn_internal() 1623 …r = asprintf(our_env + n_env++, "%sEXIT_STATUS=%i", monitor_prefix, env_source->main_exec_status.s… in service_spawn_internal() [all …]
|
/systemd-251/src/nspawn/ |
D | nspawn.c | 3208 size_t n_env = 1; in inner_child() local 3451 envp[n_env++] = strjoina("container=", arg_container_service_name); in inner_child() 3453 envp[n_env] = strv_find_prefix(environ, "TERM="); in inner_child() 3454 if (envp[n_env]) in inner_child() 3455 n_env++; in inner_child() 3458 if (asprintf(envp + n_env++, "HOME=%s", home ?: "/root") < 0) in inner_child() 3462 if (asprintf(envp + n_env++, "USER=%s", arg_user ?: "root") < 0 || in inner_child() 3463 asprintf(envp + n_env++, "LOGNAME=%s", arg_user ? arg_user : "root") < 0) in inner_child() 3468 if (asprintf(envp + n_env++, "container_uuid=%s", SD_ID128_TO_UUID_STRING(arg_uuid)) < 0) in inner_child() 3476 if ((asprintf(envp + n_env++, "LISTEN_FDS=%u", fdset_size(fds)) < 0) || in inner_child() [all …]
|