Searched refs:n_env (Results 1 - 4 of 4) sorted by relevance

/systemd/src/activate/
H A Dactivate.c135 unsigned n_env = 0, length; local
162 envp[n_env++] = k;
175 envp[n_env] = strdup(n);
176 if (!envp[n_env])
179 n_env ++;
190 envp[n_env] = strdup(n);
191 if (!envp[n_env])
194 n_env ++;
221 if (asprintf((char**)(envp + n_env++), "LISTEN_FDS=%i", n_fds) < 0)
224 if (asprintf((char**)(envp + n_env
[all...]
/systemd/src/core/
H A Dexecute.c1256 unsigned n_env = 0; local
1271 our_env[n_env++] = x;
1275 our_env[n_env++] = x;
1284 our_env[n_env++] = x;
1290 our_env[n_env++] = x;
1294 our_env[n_env++] = x;
1301 our_env[n_env++] = x;
1308 our_env[n_env++] = x;
1313 our_env[n_env++] = x;
1320 our_env[n_env
1345 size_t n_env = 0, n_bufsize = 0; local
[all...]
H A Dservice.c1162 unsigned n_fds = 0, n_env = 0; local
1217 if (asprintf(our_env + n_env++, "NOTIFY_SOCKET=%s", UNIT(s)->manager->notify_socket) < 0)
1221 if (asprintf(our_env + n_env++, "MAINPID="PID_FMT, s->main_pid) < 0)
1225 if (asprintf(our_env + n_env++, "MANAGERPID="PID_FMT, getpid()) < 0)
1248 our_env[n_env++] = t;
1256 our_env[n_env++] = t;
/systemd/src/nspawn/
H A Dnspawn.c2453 unsigned n_env = 1; local
2559 envp[n_env++] = strjoina("container=", arg_container_service_name);
2561 envp[n_env] = strv_find_prefix(environ, "TERM=");
2562 if (envp[n_env])
2563 n_env ++;
2565 if ((asprintf((char**)(envp + n_env++), "HOME=%s", home ? home: "/root") < 0) ||
2566 (asprintf((char**)(envp + n_env++), "USER=%s", arg_user ? arg_user : "root") < 0) ||
2567 (asprintf((char**)(envp + n_env++), "LOGNAME=%s", arg_user ? arg_user : "root") < 0))
2573 if (asprintf((char**)(envp + n_env++), "container_uuid=%s", id128_format_as_uuid(arg_uuid, as_uuid)) < 0)
2582 if ((asprintf((char **)(envp + n_env
[all...]

Completed in 3204 milliseconds