.\" -*- coding: UTF-8 -*- .\" This file describes the readproc interface to the /proc filesystem .\" .\" Copyright 1996 Helmut Geyer .\" Copyright 2014 Jaromir Capik .\" .\" Permission is granted to make and distribute verbatim copies of this .\" manual provided the copyright notice and this permission notice are .\" preserved on all copies. .\" .\" Permission is granted to copy and distribute modified versions of this .\" manual under the conditions for verbatim copying, provided that the .\" entire resulting derived work is distributed under the terms of a .\" permission notice identical to this one .\" .\" Formatted or processed versions of this manual, if unaccompanied by .\" the source, must acknowledge the copyright and authors of this work. .\" .\"******************************************************************* .\" .\" This file was generated with po4a. Translate the source file. .\" .\"******************************************************************* .TH READPROC 3 "14. Juli 2014" Linux\-Handbuchseite Linux\-Programmierhandbuch .SH BEZEICHNUNG readproc, freeproc \- Informationen aus dem nächsten /proc/##\-Eintrag lesen .SH ÜBERSICHT \fB#include \fP .sp \fBproc_t* readproc(PROCTAB *\fP\fIPT\fP\fB, proc_t *\fP\fIreturn_buf\fP\fB);\fP .br \fBvoid freeproc(proc_t *\fP\fIp\fP\fB);\fP .SH BESCHREIBUNG \fBreadproc\fP liest die Informationen für den nächsten Prozess, die den in \fIPT\fP angegebenen Suchkriterien entsprechen, und füllt diese in eine \fIproc_t\fP\-Struktur. Falls \fIreturn_buf\fP nicht NULL ist, verwendet es die Struktur, auf die \fIreturn_buf\fP zeigt. Anderenfalls weist es eine neue \fIproc_t\fP\-Struktur zu und gibt einen Zeiger darauf zurück. Beachten Sie, dass \fBreadproc\fP (falls dies in \fIPT\fP angegeben ist) immer Speicher zuweist, wenn es die \fIenviron\fP\- oder \fIcmdline\fP\-Teile von \fIproc_t\fP ausfüllt. \fBfreeproc\fP gibt allen für die \fIproc_t\fP\-Struktur \fI*p\fP zugewiesenen Speicher frei. Die Struktur \fIproc_t\fP wird in \fI\fP definiert, bitte schauen Sie dort für eine Definition aller Felder. .SH RÜCKGABEWERT \fBreadproc\fP gibt einen Zeiger zum nächsten \fIproc_t\fP oder NULL zurück, wenn keine Prozesse mehr übrig sind. .SH "SIEHE AUCH" \fBopenproc\fP(3), \fBreadproctab\fP(3), \fB/usr/include/proc/readproc.h\fP, \fB/proc/#pid/\fP, .SH "FEHLER MELDEN" Bitte schicken Sie Fehlerberichte (auf Englisch) an .UR procps@freelists.org .UE .SH ÜBERSETZUNG Die deutsche Übersetzung dieser Handbuchseite wurde von Mario Blättermann erstellt. Diese Übersetzung ist Freie Dokumentation; lesen Sie die GNU General Public License Version 3 oder neuer bezüglich der Copyright-Bedingungen. Es wird KEINE HAFTUNG übernommen. Wenn Sie Fehler in der Übersetzung dieser Handbuchseite finden, schicken Sie bitte eine E-Mail an .