|  |  |  | GIO Reference Manual |  | 
|---|---|---|---|---|
| Top | Description | Object Hierarchy | Prerequisites | Known Implementations | ||||
#include <gio/gfiledescriptorbased.h>
                    GFileDescriptorBased;
int                 g_file_descriptor_based_get_fd      (GFileDescriptorBased *fd_based);
GFileDescriptorBased is implemented by GUnixInputStream and GUnixOutputStream.
GFileDescriptorBased is implemented by streams (implementations of GInputStream or GOutputStream) that are based on file descriptors.
Note that <gio/gfiledescriptorbased.h> belongs to
the UNIX-specific GIO interfaces, thus you have to use the
gio-unix-2.0.pc pkg-config file when using it.
typedef struct _GFileDescriptorBased GFileDescriptorBased;
An interface for file descriptor based io objects.
int                 g_file_descriptor_based_get_fd      (GFileDescriptorBased *fd_based);
Gets the underlying file descriptor.
| 
 | a GFileDescriptorBased. | 
| Returns : | The file descriptor | 
Since 2.24