.\" -*- coding: UTF-8 -*- .\" Copyright (C) 1996 Andries Brouwer (aeb@cwi.nl) .\" .\" This is free documentation; you can redistribute it and/or .\" modify it under the terms of the GNU General Public License as .\" published by the Free Software Foundation; either version 2 of .\" the License, or (at your option) any later version. .\" .\" The GNU General Public License's references to "object code" .\" and "executables" are to be interpreted as the output of any .\" document formatting or typesetting system, including .\" intermediate and printed output. .\" .\" This manual is distributed in the hope that it will be useful, .\" but WITHOUT ANY WARRANTY; without even the implied warranty of .\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the .\" GNU General Public License for more details. .\" .\" You should have received a copy of the GNU General Public .\" License along with this manual; if not, write to the Free .\" Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111, .\" USA. .\" .\" Modified Thu Oct 31 14:18:40 1996 by Eric S. Raymond .\" Modified 2001-12-17, aeb .\"******************************************************************* .\" .\" This file was generated with po4a. Translate the source file. .\" .\"******************************************************************* .TH GETSID 2 "26. September 2010" Linux Linux\-Programmierhandbuch .SH BEZEICHNUNG getsid \- fragt die Sitzungs\-ID ab .SH ÜBERSICHT \fB#include \fP .sp \fBpid_t getsid(pid_t\fP\fI pid\fP\fB);\fP .sp .in -4n Mit Glibc erforderliche Makros (siehe \fBfeature_test_macros\fP(7)): .in .sp .ad l .PD 0 \fBgetsid\fP(): .RS 4 _XOPEN_SOURCE\ >=\ 500 || _XOPEN_SOURCE\ &&\ _XOPEN_SOURCE_EXTENDED .br || /* Seit Glibc 2.12: */ _POSIX_C_SOURCE\ >=\ 200809L .RE .PD .ad .SH BESCHREIBUNG \fIgetsid(0)\fP gibt die Sitzungs\-ID des aufrufenden Prozesses zurück. \fIgetsid(p)\fP liefert die Sitzungs\-ID des Prozesses mit der der Prozess\-ID \fIp\fP zurück. (Die Sitzungs\-ID eines Prozesses ist die Prozessgruppen\-ID des Sitzungsführungsprozesses.) .SH RÜCKGABEWERT Bei Erfolg wird eine Sitzungs\-ID zurückgegeben. Bei einem Fehler wird \fI(pid_t)\ \-1\fP zurückgegeben und \fIerrno\fP entsprechend gesetzt. .SH FEHLER .TP \fBEPERM\fP Ein Prozess mit der Prozess\-ID \fIp\fP existiert, ist aber nicht in der gleichen Sitzung wie der aufrufende Prozess und die Implementierung betrachtet dies als einen Fehler. .TP \fBESRCH\fP Es wurde kein Prozess mit der Prozess\-ID \fIp\fP gefunden. .SH VERSIONEN .\" Linux has this system call since Linux 1.3.44. .\" There is libc support since libc 5.2.19. Dieser Systemaufruf ist in Linux seit Version 2.0 verfügbar. .SH "KONFORM ZU" SVr4, POSIX.1\-2001. .SH ANMERKUNGEN Linux gibt nicht \fBEPERM\fP zurück. .SH "SIEHE AUCH" \fBgetpgid\fP(2), \fBsetsid\fP(2), \fBcredentials\fP(7) .SH KOLOPHON Diese Seite ist Teil der Veröffentlichung 3.42 des Projekts Linux\-\fIman\-pages\fP. Eine Beschreibung des Projekts und Informationen, wie Fehler gemeldet werden können, finden sich unter http://www.kernel.org/doc/man\-pages/. .SH ÜBERSETZUNG Die deutsche Übersetzung dieser Handbuchseite wurde von Martin Schulze und Chris Leick 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 .