Constructor

GioUnixOutputStreamnew

Declaration

GOutputStream*
g_unix_output_stream_new (
  gint fd,
  gboolean close_fd
)

Description

Creates a new GUnixOutputStream for the given fd.

If close_fd, is TRUE, the file descriptor will be closed when the output stream is destroyed.

Parameters

fd gint
 

A UNIX file descriptor.

close_fd gboolean
 

TRUE to close the file descriptor when done.

Return value

Returns: GOutputStream
 

A new GOutputStream.

 The caller of the function takes ownership of the data, and is responsible for freeing it.