123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119 |
- #ifndef __G_UNIX_H__
- #define __G_UNIX_H__
- #include <unistd.h>
- #include <errno.h>
- #include <sys/wait.h>
- #include <stdlib.h>
- #include <fcntl.h>
- #include <glib.h>
- #ifndef G_OS_UNIX
- #error "This header may only be used on UNIX"
- #endif
- G_BEGIN_DECLS
- #define G_UNIX_ERROR (g_unix_error_quark())
- GLIB_AVAILABLE_IN_2_30
- GQuark g_unix_error_quark (void);
- GLIB_AVAILABLE_IN_2_30
- gboolean g_unix_open_pipe (gint *fds,
- gint flags,
- GError **error);
- GLIB_AVAILABLE_IN_2_30
- gboolean g_unix_set_fd_nonblocking (gint fd,
- gboolean nonblock,
- GError **error);
- GLIB_AVAILABLE_IN_2_30
- GSource *g_unix_signal_source_new (gint signum);
- GLIB_AVAILABLE_IN_2_30
- guint g_unix_signal_add_full (gint priority,
- gint signum,
- GSourceFunc handler,
- gpointer user_data,
- GDestroyNotify notify);
- GLIB_AVAILABLE_IN_2_30
- guint g_unix_signal_add (gint signum,
- GSourceFunc handler,
- gpointer user_data);
- typedef gboolean (*GUnixFDSourceFunc) (gint fd,
- GIOCondition condition,
- gpointer user_data);
- GLIB_AVAILABLE_IN_2_36
- GSource *g_unix_fd_source_new (gint fd,
- GIOCondition condition);
- GLIB_AVAILABLE_IN_2_36
- guint g_unix_fd_add_full (gint priority,
- gint fd,
- GIOCondition condition,
- GUnixFDSourceFunc function,
- gpointer user_data,
- GDestroyNotify notify);
- GLIB_AVAILABLE_IN_2_36
- guint g_unix_fd_add (gint fd,
- GIOCondition condition,
- GUnixFDSourceFunc function,
- gpointer user_data);
- G_END_DECLS
- #endif
|