GUnixOutputStream

## GUnixOutputStream GUnixOutputStream — Streaming output operations for Unix file descriptors |

## Synopsis

    #include <gio/gunixoutputstream.h>

                        GUnixOutputStream;
    GOutputStream*      g_unix_output_stream_new            (int fd,
                                                             gboolean close_fd_at_close);

## Object Hierarchy

      GObject
       +----GOutputStream
             +----GUnixOutputStream

## Description

GUnixOutputStream implements GOutputStream for writing to a unix file descriptor, including asynchronous operations. The file descriptor must be selectable, so it doesn't work with opened files.

## Details

### GUnixOutputStream

    typedef struct _GUnixOutputStream GUnixOutputStream;

Implements GOutputStream for outputting to selectable unix file descriptors

### g_unix_output_stream_new ()

    GOutputStream*      g_unix_output_stream_new            (int fd,
                                                             gboolean close_fd_at_close);

Creates a new unix output stream for `fd`. If `close_fd_at_close` is `TRUE`, the fd will be closed when the output stream is destroyed.

`fd` : | unix's file descriptor.
`close_fd_at_close` : | a gboolean.
Returns : | GOutputStream. If `close_fd_at_close` is `TRUE`, then `fd` will be closed when the GOutputStream is closed.

## See Also

GOutputStream