.\"
.\" Modified Thu Oct 31 14:18:40 1996 by Eric S. Raymond <esr@y\thyrsus.com>
.\" Modified 2001-12-17, aeb
-.TH GETSID 2 2008-12-05 "Linux" "Linux Programmer's Manual"
+.TH GETSID 2 2010-09-26 "Linux" "Linux Programmer's Manual"
.SH NAME
getsid \- get session ID
.SH SYNOPSIS
.BR feature_test_macros (7)):
.in
.sp
+.ad l
+.PD 0
.BR getsid ():
-_XOPEN_SOURCE\ >=\ 500
+.RS 4
+_XOPEN_SOURCE\ >=\ 500 ||
+_XOPEN_SOURCE\ &&\ _XOPEN_SOURCE_EXTENDED
+.br
+|| /* Since glibc 2.12: */ _POSIX_C_SOURCE\ >=\ 200809L
+.RE
+.PD
+.ad
.SH DESCRIPTION
.I getsid(0)
returns the session ID of the calling process.