'\" t .TH "SD_BUS_GET_FD" "3" "" "elogind 239.3" "sd_bus_get_fd" .\" ----------------------------------------------------------------- .\" * Define some portability stuff .\" ----------------------------------------------------------------- .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .\" http://bugs.debian.org/507673 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" ----------------------------------------------------------------- .\" * set default formatting .\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) .ad l .\" ----------------------------------------------------------------- .\" * MAIN CONTENT STARTS HERE * .\" ----------------------------------------------------------------- .SH "NAME" sd_bus_get_fd \- Get the file descriptor connected to the message bus .SH "SYNOPSIS" .sp .ft B .nf #include .fi .ft .HP \w'int\ sd_bus_get_fd('u .BI "int sd_bus_get_fd(sd_bus\ *" "bus" ");" .SH "DESCRIPTION" .PP \fBsd_bus_get_fd()\fR returns the file descriptor used to communicate with the message bus\&. This descriptor can be used with \fBselect\fR(3), \fBpoll\fR(3), or similar functions to wait for incoming messages\&. .PP If the bus was created with the \fBsd_bus_set_fd\fR(3) function, then the \fIinput_fd\fR used in that call is returned\&. .SH "RETURN VALUE" .PP Returns the file descriptor used for incoming messages from the message bus\&. .SH "SEE ALSO" .PP \fBelogind\fR(8), \fBsd-bus\fR(3), \fBsd_bus_set_fd\fR(3),