/
githubmirror
/
dbus-broker
Обзор
Документация
Войти
/
githubmirror
/
dbus-broker
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
src/util/proc.h
26 строк
537 B
David Rheinsberg
build: add SPDX annotations
30 июн 2026, 15:45
30 июн 2026, 15:45
0bca774
Код
Авторство
О чём код?
#pragma once /* SPDX-License-Identifier: GPL-3.0-or-later */ /* SPDX-FileCopyrightText: D-Bus Broker Developers */ /* * Proc Helpers */ #include <c-stdaux.h> #include <stdlib.h> #include <unistd.h> #define PROC_PID_SELF ((pid_t)0) enum { _PROC_E_SUCCESS, PROC_E_NOT_FOUND, }; int proc_field(const char *data, const char *key, char **valuep); int proc_read(int fd, char **datap, size_t *n_datap); int proc_get_seclabel(pid_t pid, char **labelp, size_t *n_labelp); int proc_resolve_pidfd(int pidfd, pid_t *pidp);