/
githubmirror
/
libcap-ng
Обзор
Документация
Войти
/
githubmirror
/
libcap-ng
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
utils/proc-output.h
36 строк
1 KB
Steve Grubb
Annotate utility helper contracts
28 май 2026, 21:35
28 май 2026, 21:35
cbd447b
Код
Авторство
О чём код?
/* * proc-output.h - Shared terminal output helpers for proc utilities * Copyright (c) 2026 Red Hat Inc. * All Rights Reserved. * * This software may be freely redistributed and/or modified under the * terms of the GNU General Public License as published by the Free * Software Foundation; either version 2, or (at your option) any * later version. */ #ifndef PROC_OUTPUT_H #define PROC_OUTPUT_H #include <stddef.h> #include "gcc-attributes.h" int proc_output_width(void); size_t proc_wrap_plain(const char *text, size_t max) __attr_access ((__read_only__, 1)) __attribute_pure__; void proc_print_wrapped(const char *head, const char *cont, const char *text, int width) __attr_access ((__read_only__, 1)) __attr_access ((__read_only__, 2)) __attr_access ((__read_only__, 3)); void proc_tree_print_node(const char *prefix, int is_last, const char *txt, int width) __attr_access ((__read_only__, 1)) __attr_access ((__read_only__, 3)); void proc_tree_build_child_prefix(char *dst, size_t dst_sz, const char *prefix, int parent_is_last) __attr_access ((__write_only__, 1, 2)) __attr_access ((__read_only__, 3)); #endif