{-# INCLUDE <bindings.macros.h> #-}
{-# INCLUDE <aio.h> #-}
{-# INCLUDE <arpa/inet.h> #-}
{-# INCLUDE <cpio.h> #-}
{-# INCLUDE <dirent.h> #-}
{-# INCLUDE <dlfcn.h> #-}
{-# INCLUDE <errno.h> #-}
{-# INCLUDE <fcntl.h> #-}
{-# INCLUDE <fmtmsg.h> #-}
{-# INCLUDE <fnmatch.h> #-}
{-# INCLUDE <ftw.h> #-}
{-# INCLUDE <glob.h> #-}
{-# INCLUDE <grp.h> #-}
{-# INCLUDE <iconv.h> #-}
{-# INCLUDE <langinfo.h> #-}
{-# INCLUDE <libgen.h> #-}
{-# INCLUDE <locale.h> #-}
{-# INCLUDE <math.h> #-}
{-# INCLUDE <mqueue.h> #-}
{-# INCLUDE <net/if.h> #-}
{-# INCLUDE <netdb.h> #-}
{-# INCLUDE <netinet/in.h> #-}
{-# INCLUDE <netinet/tcp.h> #-}
{-# INCLUDE <nl_types.h> #-}
{-# INCLUDE <poll.h> #-}
{-# INCLUDE <pthread.h> #-}
{-# INCLUDE <pwd.h> #-}
{-# INCLUDE <regex.h> #-}
{-# INCLUDE <time.h> #-}
{-# INCLUDE <sched.h> #-}
{-# INCLUDE <search.h> #-}
{-# INCLUDE <semaphore.h> #-}
{-# INCLUDE <signal.h> #-}
{-# INCLUDE <spawn.h> #-}
{-# INCLUDE <stdbool.h> #-}
{-# INCLUDE <stdio.h> #-}
{-# INCLUDE <stdlib.h> #-}
{-# INCLUDE <string.h> #-}
{-# INCLUDE <strings.h> #-}
{-# INCLUDE <ucontext.h> #-}
{-# INCLUDE <sys/ipc.h> #-}
{-# INCLUDE <sys/mman.h> #-}
{-# INCLUDE <sys/msg.h> #-}
{-# INCLUDE <sys/resource.h> #-}
{-# INCLUDE <sys/select.h> #-}
{-# INCLUDE <sys/shm.h> #-}
{-# INCLUDE <sys/socket.h> #-}
{-# INCLUDE <sys/stat.h> #-}
{-# INCLUDE <sys/statvfs.h> #-}
{-# INCLUDE <sys/time.h> #-}
{-# INCLUDE <sys/times.h> #-}
{-# INCLUDE <sys/types.h> #-}
{-# INCLUDE <sys/uio.h> #-}
{-# INCLUDE <sys/un.h> #-}
{-# INCLUDE <sys/sem.h> #-}
{-# INCLUDE <sys/utsname.h> #-}
{-# INCLUDE <sys/wait.h> #-}
{-# INCLUDE <syslog.h> #-}
{-# INCLUDE <tar.h> #-}
{-# INCLUDE <termios.h> #-}
{-# INCLUDE <unistd.h> #-}
{-# INCLUDE <utmpx.h> #-}
{-# INCLUDE <wchar.h> #-}
{-# INCLUDE <wordexp.h> #-}
{-# LINE 1 "src/Bindings/Posix.hsc" #-}

{-# LINE 2 "src/Bindings/Posix.hsc" #-}


{-# LINE 4 "src/Bindings/Posix.hsc" #-}

module Bindings.Posix (

  -- * @aio.h@

  -- | <http://www.opengroup.org/onlinepubs/9699919799/basedefs/aio.h.html>

  Aiocb(..),

{-# LINE 12 "src/Bindings/Posix.hsc" #-}
  _AIO_ALLDONE,_AIO_CANCELED,

{-# LINE 13 "src/Bindings/Posix.hsc" #-}
  _AIO_NOTCANCELED,_LIO_NOP,

{-# LINE 14 "src/Bindings/Posix.hsc" #-}
  _LIO_NOWAIT,_LIO_READ,

{-# LINE 15 "src/Bindings/Posix.hsc" #-}
  _LIO_WAIT,_LIO_WRITE,

{-# LINE 16 "src/Bindings/Posix.hsc" #-}
  aio_cancel,aio_error,aio_fsync,

{-# LINE 17 "src/Bindings/Posix.hsc" #-}
  aio_read,aio_return,aio_suspend,

{-# LINE 18 "src/Bindings/Posix.hsc" #-}
  aio_write,lio_listio,

{-# LINE 19 "src/Bindings/Posix.hsc" #-}

  -- * @arpa/inet.h@

  -- | <http://www.opengroup.org/onlinepubs/9699919799/basedefs/arpa_inet.h.html>

  htonl,htons,ntohl,ntohs,inet_addr,inet_ntop,inet_pton,

{-# LINE 26 "src/Bindings/Posix.hsc" #-}

  -- * @cpio.h@

  -- | <http://www.opengroup.org/onlinepubs/9699919799/basedefs/cpio.h.html>

  _C_IRUSR,_C_IWUSR,_C_IXUSR,_C_IRGRP,_C_IWGRP,_C_IXGRP,_C_IROTH,_C_IWOTH,_C_IXOTH,_C_ISUID,_C_ISGID,_C_ISVTX,_C_ISDIR,_C_ISFIFO,_C_ISREG,_C_ISBLK,_C_ISCHR,_C_ISCTG,_C_ISLNK,_C_ISSOCK,_MAGIC,

{-# LINE 35 "src/Bindings/Posix.hsc" #-}

  -- * @ctype.h@

  -- | <http://www.opengroup.org/onlinepubs/9699919799/basedefs/ctype.h.html>

  -- * @dirent.h@

  -- | <http://www.opengroup.org/onlinepubs/9699919799/basedefs/dirent.h.html>

  Dirent(..),

{-# LINE 45 "src/Bindings/Posix.hsc" #-}

  DIR,

  alphasort,closedir,dirfd,fdopendir,opendir,readdir,readdir_r,rewinddir,scandir,seekdir,telldir,

{-# LINE 51 "src/Bindings/Posix.hsc" #-}

  -- * @dlfcn.h@

  -- | <http://www.opengroup.org/onlinepubs/9699919799/basedefs/dlfcn.h.html>

  _RTLD_LAZY,_RTLD_NOW,_RTLD_GLOBAL,_RTLD_LOCAL,

{-# LINE 57 "src/Bindings/Posix.hsc" #-}

  dlclose,dlerror,dlopen,dlsym,

{-# LINE 59 "src/Bindings/Posix.hsc" #-}

  -- * @errno.h@

  -- | <http://www.opengroup.org/onlinepubs/9699919799/basedefs/errno.h.html>

  _E2BIG,_EACCES,_EADDRINUSE,_EADDRNOTAVAIL,_EAFNOSUPPORT,_EAGAIN,_EALREADY,_EBADF,_EBADMSG,_EBUSY,_ECANCELED,_ECHILD,_ECONNABORTED,_ECONNREFUSED,_ECONNRESET,_EDEADLK,_EDESTADDRREQ,_EDQUOT,_EEXIST,_EFAULT,_EFBIG,_EHOSTUNREACH,_EIDRM,_EINPROGRESS,_EINTR,_EINVAL,_EIO,_EISCONN,_EISDIR,_ELOOP,_EMFILE,_EMLINK,_EMSGSIZE,_EMULTIHOP,_ENAMETOOLONG,_ENETDOWN,_ENETRESET,_ENETUNREACH,_ENFILE,_ENOBUFS,_ENODEV,_ENOENT,_ENOEXEC,_ENOLCK,_ENOLINK,_ENOMEM,_ENOMSG,_ENOPROTOOPT,_ENOSPC,_ENOSYS,_ENOTCONN,_ENOTDIR,_ENOTEMPTY,_ENOTRECOVERABLE,_ENOTSOCK,_ENOTSUP,_ENOTTY,_ENXIO,_EOPNOTSUPP,_EOVERFLOW,_EOWNERDEAD,_EPERM,_EPIPE,_EPROTO,_EPROTONOSUPPORT,_EPROTOTYPE,_EROFS,_ESPIPE,_ESRCH,_ESTALE,_ETIMEDOUT,_ETXTBSY,_EWOULDBLOCK,_EXDEV,

{-# LINE 77 "src/Bindings/Posix.hsc" #-}

  -- * @fcntl.h@

  -- | <http://www.opengroup.org/onlinepubs/9699919799/basedefs/fcntl.h.html>

  _F_DUPFD,_F_GETFD,_F_SETFD,_F_GETFL,_F_SETFL,_F_GETLK,_F_SETLK,_F_SETLKW,_F_GETOWN,_F_SETOWN,_FD_CLOEXEC,_F_RDLCK,_F_UNLCK,_F_WRLCK,_O_CREAT,_O_EXCL,_O_NOCTTY,_O_TRUNC,_O_APPEND,_O_DSYNC,_O_NONBLOCK,_O_RSYNC,_O_SYNC,_O_ACCMODE,_O_RDONLY,_O_RDWR,_O_WRONLY,_POSIX_FADV_DONTNEED,_POSIX_FADV_NOREUSE,_POSIX_FADV_NORMAL,_POSIX_FADV_RANDOM,_POSIX_FADV_SEQUENTIAL,_POSIX_FADV_WILLNEED,

{-# LINE 89 "src/Bindings/Posix.hsc" #-}

  Flock(..),

{-# LINE 91 "src/Bindings/Posix.hsc" #-}

  creat,posix_fadvise,posix_fallocate,

{-# LINE 93 "src/Bindings/Posix.hsc" #-}

  -- * @fmtmsg.h@

  -- | <http://www.opengroup.org/onlinepubs/9699919799/basedefs/fmtmsg.h.html>

  _MM_HARD,_MM_SOFT,_MM_FIRM,_MM_APPL,_MM_UTIL,_MM_OPSYS,_MM_RECOVER,_MM_NRECOV,_MM_HALT,_MM_ERROR,_MM_WARNING,_MM_INFO,_MM_NOSEV,_MM_PRINT,_MM_CONSOLE,_MM_NULLLBL,_MM_NULLSEV,_MM_NULLMC,_MM_NULLTXT,_MM_NULLACT,_MM_NULLTAG,_MM_OK,_MM_NOTOK,_MM_NOMSG,_MM_NOCON,

{-# LINE 103 "src/Bindings/Posix.hsc" #-}

  fmtmsg,

{-# LINE 105 "src/Bindings/Posix.hsc" #-}

  -- * @fnmatch.h@

  -- | <http://www.opengroup.org/onlinepubs/9699919799/basedefs/fnmatch.h.html>

  _FNM_NOMATCH,_FNM_PATHNAME,_FNM_PERIOD,_FNM_NOESCAPE,

{-# LINE 111 "src/Bindings/Posix.hsc" #-}

  fnmatch,

{-# LINE 113 "src/Bindings/Posix.hsc" #-}

  -- * @ftw.h@

  -- | <http://www.opengroup.org/onlinepubs/9699919799/basedefs/ftw.h.html>

--   #bindings_export_conids FTW

  _FTW_F,_FTW_D,_FTW_DNR,_FTW_NS,_FTW_SL,

{-# LINE 122 "src/Bindings/Posix.hsc" #-}

--   #bindings_export_varids nftw

  -- * @glob.h@

  -- | <http://www.opengroup.org/onlinepubs/9699919799/basedefs/glob.h.html>

  Glob_t(..),

{-# LINE 130 "src/Bindings/Posix.hsc" #-}

  _GLOB_APPEND,_GLOB_DOOFFS,_GLOB_ERR,_GLOB_MARK,_GLOB_NOCHECK,_GLOB_NOESCAPE,_GLOB_NOSORT,_GLOB_ABORTED,_GLOB_NOMATCH,_GLOB_NOSPACE,

{-# LINE 134 "src/Bindings/Posix.hsc" #-}

  glob,globfree,

{-# LINE 136 "src/Bindings/Posix.hsc" #-}

  -- * @grp.h@

  -- | <http://www.opengroup.org/onlinepubs/9699919799/basedefs/grp.h.html>

  Group(..),

{-# LINE 142 "src/Bindings/Posix.hsc" #-}

  endgrent,getgrent,getgrgid,

{-# LINE 144 "src/Bindings/Posix.hsc" #-}
  getgrgid_r,getgrnam,

{-# LINE 145 "src/Bindings/Posix.hsc" #-}
  getgrnam_r,setgrent,

{-# LINE 146 "src/Bindings/Posix.hsc" #-}

  -- * @iconv.h@

  -- | <http://www.opengroup.org/onlinepubs/9699919799/basedefs/iconv.h.html>

  CIconv,

  iconv,iconv_close,iconv_open,

{-# LINE 154 "src/Bindings/Posix.hsc" #-}

  -- * @langinfo.h@

  -- | <http://www.opengroup.org/onlinepubs/9699919799/basedefs/langinfo.h.html>

  CNlItem,

  _CODESET,_D_T_FMT,_D_FMT,_T_FMT,_T_FMT_AMPM,_AM_STR,_PM_STR,_DAY_1,_DAY_2,_DAY_3,_DAY_4,_DAY_5,_DAY_6,_DAY_7,_ABDAY_1,_ABDAY_2,_ABDAY_3,_ABDAY_4,_ABDAY_5,_ABDAY_6,_ABDAY_7,_MON_1,_MON_2,_MON_3,_MON_4,_MON_5,_MON_6,_MON_7,_MON_8,_MON_9,_MON_10,_MON_11,_MON_12,_ABMON_1,_ABMON_2,_ABMON_3,_ABMON_4,_ABMON_5,_ABMON_6,_ABMON_7,_ABMON_8,_ABMON_9,_ABMON_10,_ABMON_11,_ABMON_12,_ERA,_ERA_D_FMT,_ERA_D_T_FMT,_ERA_T_FMT,_ALT_DIGITS,_RADIXCHAR,_THOUSEP,_YESEXPR,_NOEXPR,_CRNCYSTR,

{-# LINE 170 "src/Bindings/Posix.hsc" #-}

  nl_langinfo,

{-# LINE 172 "src/Bindings/Posix.hsc" #-}

  -- * @libgen.h@

  -- | <http://www.opengroup.org/onlinepubs/9699919799/basedefs/libgen.h.html>

  basename,dirname,

{-# LINE 178 "src/Bindings/Posix.hsc" #-}

  -- * @locale.h@

  -- | <http://www.opengroup.org/onlinepubs/9699919799/basedefs/locale.h.html>

  _LC_MESSAGES,

{-# LINE 184 "src/Bindings/Posix.hsc" #-}

  -- * @math@

  -- | <http://www.opengroup.org/onlinepubs/9699919799/basedefs/math.h.html>

  _M_E,_M_LOG2E,_M_LOG10E,_M_LN2,_M_LN10,_M_PI,_M_PI_2,_M_PI_4,_M_1_PI,_M_2_PI,_M_2_SQRTPI,_M_SQRT2,_M_SQRT1_2,

{-# LINE 192 "src/Bindings/Posix.hsc" #-}

  j0,j1,jn,y0,y1,yn,

{-# LINE 194 "src/Bindings/Posix.hsc" #-}

  signgam,

{-# LINE 196 "src/Bindings/Posix.hsc" #-}

  -- * @monetary.h@

  -- | <http://www.opengroup.org/onlinepubs/9699919799/basedefs/monetary.h.html>

  -- * @mqueue.h@

  -- | <http://www.opengroup.org/onlinepubs/9699919799/basedefs/mqueue.h.html>

  Mq_attr(..),

{-# LINE 206 "src/Bindings/Posix.hsc" #-}

  CMqd,

  mq_close,mq_getattr,mq_notify,mq_receive,mq_send,mq_setattr,mq_timedreceive,mq_timedsend,mq_unlink,

{-# LINE 212 "src/Bindings/Posix.hsc" #-}

  -- * @net/if.h@

  -- | <http://www.opengroup.org/onlinepubs/9699919799/basedefs/net_if.h.html>

  If_nameindex(..),

{-# LINE 218 "src/Bindings/Posix.hsc" #-}

  _IF_NAMESIZE,

{-# LINE 220 "src/Bindings/Posix.hsc" #-}

  if_freenameindex,if_indextoname,if_nameindex,if_nametoindex,

{-# LINE 223 "src/Bindings/Posix.hsc" #-}

  -- * @netdb.h@

  -- | <http://www.opengroup.org/onlinepubs/9699919799/basedefs/netdb.h.html>

  Hostent(..),Netent(..),Protoent(..),Servent(..),Addrinfo(..),

{-# LINE 229 "src/Bindings/Posix.hsc" #-}

  _AI_PASSIVE,_AI_CANONNAME,_AI_NUMERICHOST,_AI_NUMERICSERV,_AI_V4MAPPED,_AI_ALL,_AI_ADDRCONFIG,_NI_NOFQDN,_NI_NUMERICHOST,_NI_NAMEREQD,_NI_NUMERICSERV,_NI_DGRAM,_EAI_AGAIN,_EAI_BADFLAGS,_EAI_FAIL,_EAI_FAMILY,_EAI_MEMORY,_EAI_NONAME,_EAI_SERVICE,_EAI_SOCKTYPE,_EAI_SYSTEM,_EAI_OVERFLOW,

{-# LINE 235 "src/Bindings/Posix.hsc" #-}

  endhostent,endnetent,endprotoent,endservent,freeaddrinfo,gai_strerror,getaddrinfo,gethostent,getnameinfo,getnetbyaddr,getnetbyname,getnetent,getprotobyname,getprotobynumber,getprotoent,getservbyname,getservbyport,getservent,sethostent,setnetent,setprotoent,setservent,

{-# LINE 241 "src/Bindings/Posix.hsc" #-}

  -- * @netinet/in.h@

  -- | <http://www.opengroup.org/onlinepubs/9699919799/basedefs/netinet_in.h.html>

  In_addr(..),Sockaddr_in(..),In6_addr(..),Sockaddr_in6(..),Ipv6_mreq(..),

{-# LINE 248 "src/Bindings/Posix.hsc" #-}

  CInPort,CInAddr,

  _IPPROTO_IP,_IPPROTO_IPV6,_IPPROTO_ICMP,_IPPROTO_RAW,_IPPROTO_TCP,_IPPROTO_UDP,_INADDR_ANY,_INADDR_BROADCAST,_INET_ADDRSTRLEN,_IPV6_JOIN_GROUP,_IPV6_LEAVE_GROUP,_IPV6_MULTICAST_HOPS,_IPV6_MULTICAST_IF,_IPV6_MULTICAST_LOOP,_IPV6_UNICAST_HOPS,_IPV6_V6ONLY,

{-# LINE 256 "src/Bindings/Posix.hsc" #-}

  -- * @netinet/tcp.h@

  -- | <http://www.opengroup.org/onlinepubs/9699919799/basedefs/netinet_tcp.h.html>

  _TCP_NODELAY,

{-# LINE 262 "src/Bindings/Posix.hsc" #-}

  -- * @nl_types.h@

  -- | <http://www.opengroup.org/onlinepubs/9699919799/basedefs/nl_types.h.html>

  CNlCatd,

  _NL_SETD,_NL_CAT_LOCALE,

{-# LINE 270 "src/Bindings/Posix.hsc" #-}

  catclose,catgets,catopen,

{-# LINE 272 "src/Bindings/Posix.hsc" #-}

  -- * @poll.h@

  -- | <http://www.opengroup.org/onlinepubs/9699919799/basedefs/poll.h.html>

  Pollfd(..),

{-# LINE 278 "src/Bindings/Posix.hsc" #-}

  CNfds,

  _POLLIN,_POLLPRI,_POLLOUT,_POLLERR,_POLLHUP,_POLLNVAL,

{-# LINE 283 "src/Bindings/Posix.hsc" #-}

  poll,

{-# LINE 285 "src/Bindings/Posix.hsc" #-}

  -- * @pthread.h@

  -- | <http://www.opengroup.org/onlinepubs/9699919799/basedefs/pthread.h.html>

  _PTHREAD_BARRIER_SERIAL_THREAD,_PTHREAD_CANCEL_ASYNCHRONOUS,_PTHREAD_CANCEL_ENABLE,_PTHREAD_CANCEL_DEFERRED,_PTHREAD_CANCEL_DISABLE,_PTHREAD_CANCELED,_PTHREAD_CREATE_DETACHED,_PTHREAD_CREATE_JOINABLE,_PTHREAD_EXPLICIT_SCHED,_PTHREAD_INHERIT_SCHED,_PTHREAD_ONCE_INIT,_PTHREAD_PROCESS_SHARED,_PTHREAD_PROCESS_PRIVATE,_PTHREAD_SCOPE_PROCESS,_PTHREAD_SCOPE_SYSTEM,

{-# LINE 298 "src/Bindings/Posix.hsc" #-}

  pthread_attr_destroy,pthread_attr_getdetachstate,pthread_attr_getguardsize,pthread_attr_getinheritsched,pthread_attr_getschedparam,pthread_attr_getschedpolicy,pthread_attr_getscope,pthread_attr_getstack,pthread_attr_getstacksize,pthread_attr_init,pthread_attr_setdetachstate,pthread_attr_setguardsize,pthread_attr_setinheritsched,pthread_attr_setschedparam,pthread_attr_setschedpolicy,pthread_attr_setscope,pthread_attr_setstack,pthread_attr_setstacksize,pthread_barrier_destroy,pthread_barrier_init,pthread_barrier_wait,pthread_barrierattr_destroy,pthread_barrierattr_getpshared,pthread_barrierattr_init,pthread_barrierattr_setpshared,pthread_cond_broadcast,pthread_cond_destroy,pthread_cond_init,pthread_cond_signal,pthread_cond_timedwait,pthread_cond_wait,pthread_condattr_destroy,pthread_condattr_getclock,pthread_condattr_getpshared,pthread_condattr_init,pthread_condattr_setclock,pthread_condattr_setpshared,pthread_create,pthread_exit,pthread_key_create,pthread_mutex_destroy,pthread_mutex_getprioceiling,pthread_mutex_init,pthread_mutex_lock,pthread_mutex_setprioceiling,pthread_mutex_timedlock,pthread_mutex_trylock,pthread_mutex_unlock,pthread_mutexattr_destroy,pthread_mutexattr_getprioceiling,pthread_mutexattr_getprotocol,pthread_mutexattr_getpshared,pthread_mutexattr_gettype,pthread_mutexattr_init,pthread_mutexattr_setprioceiling,pthread_mutexattr_setprotocol,pthread_mutexattr_setpshared,pthread_mutexattr_settype,pthread_once,pthread_rwlock_destroy,pthread_rwlock_init,pthread_rwlock_rdlock,pthread_rwlock_timedrdlock,pthread_rwlock_timedwrlock,pthread_rwlock_tryrdlock,pthread_rwlock_trywrlock,pthread_rwlock_unlock,pthread_rwlock_wrlock,pthread_rwlockattr_destroy,pthread_rwlockattr_getpshared,pthread_rwlockattr_init,pthread_rwlockattr_setpshared,pthread_setcancelstate,pthread_setcanceltype,pthread_spin_destroy,pthread_spin_init,pthread_spin_trylock,pthread_spin_unlock,pthread_testcancel,

{-# LINE 341 "src/Bindings/Posix.hsc" #-}

  -- * @pwd.h@

  -- | <http://www.opengroup.org/onlinepubs/9699919799/basedefs/pwd.h.html>

  Passwd(..),

{-# LINE 347 "src/Bindings/Posix.hsc" #-}

  endpwent,getpwent,getpwnam,getpwnam_r,getpwuid,getpwuid_r,setpwent,

{-# LINE 350 "src/Bindings/Posix.hsc" #-}

  -- * @regex.h@

  -- | <http://www.opengroup.org/onlinepubs/9699919799/basedefs/regex.h.html>

  Regex_t(..),Regmatch_t(..),

{-# LINE 356 "src/Bindings/Posix.hsc" #-}

  CRegoff,

  _REG_EXTENDED,_REG_ICASE,_REG_NOSUB,_REG_NEWLINE,_REG_NOTBOL,_REG_NOTEOL,_REG_NOMATCH,_REG_BADPAT,_REG_ECOLLATE,_REG_ECTYPE,_REG_EESCAPE,_REG_ESUBREG,_REG_EBRACK,_REG_EPAREN,_REG_EBRACE,_REG_BADBR,_REG_ERANGE,_REG_ESPACE,_REG_BADRPT,

{-# LINE 364 "src/Bindings/Posix.hsc" #-}

  regcomp,regerror,regexec,regfree,

{-# LINE 366 "src/Bindings/Posix.hsc" #-}

  -- * @sched.h@

  -- | <http://www.opengroup.org/onlinepubs/9699919799/basedefs/sched.h.html>

  Sched_param(..),

{-# LINE 372 "src/Bindings/Posix.hsc" #-}

  _SCHED_FIFO,_SCHED_RR,_SCHED_OTHER,

{-# LINE 374 "src/Bindings/Posix.hsc" #-}

  sched_get_priority_max,

{-# LINE 376 "src/Bindings/Posix.hsc" #-}
  sched_get_priority_min,

{-# LINE 377 "src/Bindings/Posix.hsc" #-}
  sched_getparam,sched_getscheduler,

{-# LINE 378 "src/Bindings/Posix.hsc" #-}
  sched_rr_get_interval,sched_setparam,

{-# LINE 379 "src/Bindings/Posix.hsc" #-}
  sched_setscheduler,sched_yield,

{-# LINE 380 "src/Bindings/Posix.hsc" #-}

  -- * @search.h@

  -- | <http://www.opengroup.org/onlinepubs/9699919799/basedefs/search.h.html>

  ENTRY,ACTION,VISIT,

  _FIND,_ENTER,

{-# LINE 388 "src/Bindings/Posix.hsc" #-}

  preorder,postorder,endorder,leaf,

{-# LINE 390 "src/Bindings/Posix.hsc" #-}

  hcreate,hdestroy,insque,

{-# LINE 392 "src/Bindings/Posix.hsc" #-}
  lfind,lsearch,remque,tdelete,

{-# LINE 393 "src/Bindings/Posix.hsc" #-}
  tfind,tsearch,twalk,

{-# LINE 394 "src/Bindings/Posix.hsc" #-}

  -- * @semaphore.h@

  -- | <http://www.opengroup.org/onlinepubs/9699919799/basedefs/semaphore.h.html>

  CSem,

  _SEM_FAILED,

{-# LINE 402 "src/Bindings/Posix.hsc" #-}

  sem_close,sem_destroy,

{-# LINE 404 "src/Bindings/Posix.hsc" #-}
  sem_getvalue,sem_init,sem_post,

{-# LINE 405 "src/Bindings/Posix.hsc" #-}
  sem_timedwait,sem_trywait,

{-# LINE 406 "src/Bindings/Posix.hsc" #-}
  sem_unlink,sem_wait,

{-# LINE 407 "src/Bindings/Posix.hsc" #-}

  -- * @signal.h@

  -- | <http://www.opengroup.org/onlinepubs/9699919799/basedefs/signal.h.html>

  Sigset_t(..),Sigevent(..),Sigval(..),Sigaction(..),

{-# LINE 413 "src/Bindings/Posix.hsc" #-}
  Ucontext_t(..),Stack_t(..),Siginfo_t(..),

{-# LINE 414 "src/Bindings/Posix.hsc" #-}

  _SIGEV_NONE,_SIGEV_SIGNAL,_SIGEV_THREAD,

{-# LINE 416 "src/Bindings/Posix.hsc" #-}

  _SIGALRM,_SIGBUS,_SIGCHLD,_SIGCONT,

{-# LINE 418 "src/Bindings/Posix.hsc" #-}
  _SIGHUP,_SIGKILL,_SIGPIPE,_SIGQUIT,

{-# LINE 419 "src/Bindings/Posix.hsc" #-}
  _SIGSTOP,_SIGTSTP,_SIGTTIN,_SIGTTOU,

{-# LINE 420 "src/Bindings/Posix.hsc" #-}
  _SIGUSR1,_SIGUSR2,_SIGSYS,_SIGTRAP,

{-# LINE 421 "src/Bindings/Posix.hsc" #-}
  _SIGURG,_SIGVTALRM,_SIGXCPU,_SIGXFSZ,

{-# LINE 422 "src/Bindings/Posix.hsc" #-}

  _SIG_BLOCK,_SIG_UNBLOCK,_SIG_SETMASK,

{-# LINE 424 "src/Bindings/Posix.hsc" #-}
  _SA_NOCLDSTOP,_SA_ONSTACK,_SA_RESETHAND,

{-# LINE 425 "src/Bindings/Posix.hsc" #-}
  _SA_RESTART,_SA_SIGINFO,_SA_NOCLDWAIT,

{-# LINE 426 "src/Bindings/Posix.hsc" #-}
  _SA_NODEFER,_SS_ONSTACK,_SS_DISABLE,

{-# LINE 427 "src/Bindings/Posix.hsc" #-}
  _MINSIGSTKSZ,_SIGSTKSZ,

{-# LINE 428 "src/Bindings/Posix.hsc" #-}

  _ILL_ILLOPC,_ILL_ILLOPN,_ILL_ILLADR,

{-# LINE 430 "src/Bindings/Posix.hsc" #-}
  _ILL_ILLTRP,_ILL_PRVOPC,_ILL_PRVREG,

{-# LINE 431 "src/Bindings/Posix.hsc" #-}
  _ILL_COPROC,_ILL_BADSTK,_FPE_INTDIV,

{-# LINE 432 "src/Bindings/Posix.hsc" #-}
  _FPE_INTOVF,_FPE_FLTDIV,_FPE_FLTOVF,

{-# LINE 433 "src/Bindings/Posix.hsc" #-}
  _FPE_FLTUND,_FPE_FLTRES,_FPE_FLTINV,

{-# LINE 434 "src/Bindings/Posix.hsc" #-}
  _FPE_FLTSUB,_SEGV_MAPERR,_SEGV_ACCERR,

{-# LINE 435 "src/Bindings/Posix.hsc" #-}
  _BUS_ADRALN,_BUS_ADRERR,_BUS_OBJERR,

{-# LINE 436 "src/Bindings/Posix.hsc" #-}
  _TRAP_BRKPT,_TRAP_TRACE,_CLD_EXITED,

{-# LINE 437 "src/Bindings/Posix.hsc" #-}
  _CLD_KILLED,_CLD_DUMPED,_CLD_TRAPPED,

{-# LINE 438 "src/Bindings/Posix.hsc" #-}
  _CLD_STOPPED,_CLD_CONTINUED,_SI_USER,

{-# LINE 439 "src/Bindings/Posix.hsc" #-}
  _SI_QUEUE,_SI_TIMER,_SI_ASYNCIO,

{-# LINE 440 "src/Bindings/Posix.hsc" #-}
  _SI_MESGQ,

{-# LINE 441 "src/Bindings/Posix.hsc" #-}

  kill,killpg,psignal,

{-# LINE 443 "src/Bindings/Posix.hsc" #-}
  pthread_sigmask,sigaction,

{-# LINE 444 "src/Bindings/Posix.hsc" #-}
  sigaddset,sigaltstack,sigdelset,

{-# LINE 445 "src/Bindings/Posix.hsc" #-}
  sigemptyset,sigfillset,

{-# LINE 446 "src/Bindings/Posix.hsc" #-}
  sigismember,sigpending,

{-# LINE 447 "src/Bindings/Posix.hsc" #-}
  sigprocmask,sigsuspend,

{-# LINE 448 "src/Bindings/Posix.hsc" #-}
  sigtimedwait,sigwait,

{-# LINE 449 "src/Bindings/Posix.hsc" #-}
  sigwaitinfo,

{-# LINE 450 "src/Bindings/Posix.hsc" #-}

  -- * @spawn.h@

  -- | <http://www.opengroup.org/onlinepubs/9699919799/basedefs/spawn.h.html>

  Posix_spawnattr_t(..),Posix_spawn_file_actions_t(..),

{-# LINE 456 "src/Bindings/Posix.hsc" #-}

  _POSIX_SPAWN_RESETIDS,_POSIX_SPAWN_SETPGROUP,_POSIX_SPAWN_SETSCHEDPARAM,_POSIX_SPAWN_SETSCHEDULER,_POSIX_SPAWN_SETSIGDEF,_POSIX_SPAWN_SETSIGMASK,

{-# LINE 461 "src/Bindings/Posix.hsc" #-}

  posix_spawn,posix_spawn_file_actions_addclose,posix_spawn_file_actions_adddup2,posix_spawn_file_actions_addopen,posix_spawn_file_actions_destroy,posix_spawn_file_actions_init,posix_spawnattr_destroy,posix_spawnattr_getflags,posix_spawnattr_getpgroup,posix_spawnattr_getschedparam,posix_spawnattr_getschedpolicy,posix_spawnattr_getsigdefault,posix_spawnattr_getsigmask,posix_spawnattr_init,posix_spawnattr_setflags,posix_spawnattr_setpgroup,posix_spawnattr_setschedparam,posix_spawnattr_setschedpolicy,posix_spawnattr_setsigdefault,posix_spawnattr_setsigmask,posix_spawnp,

{-# LINE 476 "src/Bindings/Posix.hsc" #-}

  -- * @stdbool.h@

  -- | <http://www.opengroup.org/onlinepubs/9699919799/basedefs/stdbool.h.html>

  true,false,

{-# LINE 482 "src/Bindings/Posix.hsc" #-}

  -- * @stddef.h@

  -- | <http://www.opengroup.org/onlinepubs/9699919799/basedefs/stddef.h.html>

  -- * @stdint.h@

  -- | <http://www.opengroup.org/onlinepubs/9699919799/basedefs/stdint.h.html>

  -- * @stdio.h@

  -- | <http://www.opengroup.org/onlinepubs/9699919799/basedefs/stdio.h.html>

  _L_ctermid,

{-# LINE 496 "src/Bindings/Posix.hsc" #-}

  ctermid,fdopen,fileno,flockfile,fseeko,ftello,ftrylockfile,funlockfile,getc_unlocked,getchar_unlocked,getdelim,getline,open_memstream,pclose,popen,putc_unlocked,putchar_unlocked,renameat,

{-# LINE 501 "src/Bindings/Posix.hsc" #-}

  -- * @stdlib.h@

  -- | <http://www.opengroup.org/onlinepubs/9699919799/basedefs/stdlib.h.html>

  a64l,drand48,erand48,grantpt,initstate,jrand48,l64a,lcong48,lrand48,mkdtemp,mkstemp,mrand48,nrand48,posix_memalign,posix_openpt,ptsname,putenv,rand_r,random,realpath,seed48,setenv,setstate,srandom,unlockpt,unsetenv,

{-# LINE 511 "src/Bindings/Posix.hsc" #-}

  -- * @string.h@

  -- | <http://www.opengroup.org/onlinepubs/9699919799/basedefs/string.h.html>

  memccpy,stpcpy,stpncpy,

{-# LINE 517 "src/Bindings/Posix.hsc" #-}
  strdup,strerror_r,strndup,

{-# LINE 518 "src/Bindings/Posix.hsc" #-}
  strnlen,strsignal,strtok_r,

{-# LINE 519 "src/Bindings/Posix.hsc" #-}

  -- * @strings.h@

  -- | <http://www.opengroup.org/onlinepubs/9699919799/basedefs/strings.h.html>

  -- * @stropts.h@

  -- | <http://www.opengroup.org/onlinepubs/9699919799/basedefs/stropts.h.html>

  -- * @sys/ipc.h@

  Ipc_perm(..),

{-# LINE 531 "src/Bindings/Posix.hsc" #-}

  _IPC_CREAT,_IPC_EXCL,_IPC_NOWAIT,

{-# LINE 533 "src/Bindings/Posix.hsc" #-}

  _IPC_PRIVATE,

{-# LINE 535 "src/Bindings/Posix.hsc" #-}

  _IPC_RMID,_IPC_SET,_IPC_STAT,

{-# LINE 537 "src/Bindings/Posix.hsc" #-}

  ftok,

{-# LINE 539 "src/Bindings/Posix.hsc" #-}

  -- | <http://www.opengroup.org/onlinepubs/9699919799/basedefs/sys_ipc.h.html>

  -- * @sys/mman.h@

  -- | <http://www.opengroup.org/onlinepubs/9699919799/basedefs/sys_mman.h.html>

_PROT_EXEC,_PROT_NONE,_PROT_READ,

{-# LINE 547 "src/Bindings/Posix.hsc" #-}
_PROT_WRITE,_MAP_FIXED,_MAP_PRIVATE,

{-# LINE 548 "src/Bindings/Posix.hsc" #-}
_MAP_SHARED,_MS_ASYNC,_MS_INVALIDATE,

{-# LINE 549 "src/Bindings/Posix.hsc" #-}
_MS_SYNC,_MCL_CURRENT,_MCL_FUTURE,

{-# LINE 550 "src/Bindings/Posix.hsc" #-}
_MAP_FAILED,_POSIX_MADV_DONTNEED,

{-# LINE 551 "src/Bindings/Posix.hsc" #-}
_POSIX_MADV_NORMAL,_POSIX_MADV_RANDOM,

{-# LINE 552 "src/Bindings/Posix.hsc" #-}
_POSIX_MADV_SEQUENTIAL,

{-# LINE 553 "src/Bindings/Posix.hsc" #-}
_POSIX_MADV_WILLNEED,

{-# LINE 554 "src/Bindings/Posix.hsc" #-}
-- #bindings_export_varids POSIX_TYPED_MEM_ALLOCATE
-- #bindings_export_varids POSIX_TYPED_MEM_ALLOCATE_CONTIG
-- #bindings_export_varids POSIX_TYPED_MEM_MAP_ALLOCATABLE

-- #bindings_export_conids posix_typed_mem_info

mlock,mlockall,mmap,mprotect,

{-# LINE 561 "src/Bindings/Posix.hsc" #-}
msync,munlock,munlockall,munmap,

{-# LINE 562 "src/Bindings/Posix.hsc" #-}
posix_madvise,

{-# LINE 563 "src/Bindings/Posix.hsc" #-}
-- #bindings_export_varids posix_mem_offset|posix_typed_mem_get_info
-- #bindings_export_varids posix_typed_mem_open
shm_open,shm_unlink,

{-# LINE 566 "src/Bindings/Posix.hsc" #-}

  -- * @sys/msg.h@

  -- | <http://www.opengroup.org/onlinepubs/9699919799/basedefs/sys_msg.h.html>

  CMsgqnum,CMsglen,

  _MSG_NOERROR,

{-# LINE 574 "src/Bindings/Posix.hsc" #-}

  Msqid_ds(..),

{-# LINE 576 "src/Bindings/Posix.hsc" #-}

  msgctl,msgget,msgrcv,msgsnd,

{-# LINE 578 "src/Bindings/Posix.hsc" #-}

  -- * @sys/resource.h@

  -- | <http://www.opengroup.org/onlinepubs/9699919799/basedefs/sys_resource.h.html>

  _PRIO_PROCESS,_PRIO_PGRP,_PRIO_USER,

{-# LINE 584 "src/Bindings/Posix.hsc" #-}

  CRlim,

  _RLIM_INFINITY,_RLIM_SAVED_MAX,

{-# LINE 588 "src/Bindings/Posix.hsc" #-}
  _RLIM_SAVED_CUR,

{-# LINE 589 "src/Bindings/Posix.hsc" #-}

  _RUSAGE_SELF,_RUSAGE_CHILDREN,

{-# LINE 591 "src/Bindings/Posix.hsc" #-}

  Rlimit(..),Rusage(..),

{-# LINE 593 "src/Bindings/Posix.hsc" #-}

  _RLIMIT_CORE,_RLIMIT_CPU,_RLIMIT_DATA,

{-# LINE 595 "src/Bindings/Posix.hsc" #-}
  _RLIMIT_FSIZE,_RLIMIT_NOFILE,

{-# LINE 596 "src/Bindings/Posix.hsc" #-}
  _RLIMIT_STACK,_RLIMIT_AS,

{-# LINE 597 "src/Bindings/Posix.hsc" #-}

  getpriority,getrlimit,getrusage,

{-# LINE 599 "src/Bindings/Posix.hsc" #-}
  setpriority,setrlimit,

{-# LINE 600 "src/Bindings/Posix.hsc" #-}

  -- * @sys/select.h@

  -- | <http://www.opengroup.org/onlinepubs/9699919799/basedefs/sys_select.h.html>

  Timeval(..),Fd_set(..),

{-# LINE 606 "src/Bindings/Posix.hsc" #-}

  _FD_SETSIZE,

{-# LINE 608 "src/Bindings/Posix.hsc" #-}

  pselect,select,

{-# LINE 610 "src/Bindings/Posix.hsc" #-}

  -- * @sys/sem.h@

  -- | <http://www.opengroup.org/onlinepubs/9699919799/basedefs/sys_sem.h.html>

  _SEM_UNDO,_GETNCNT,_GETPID,_GETVAL,_GETALL,_GETZCNT,_SETVAL,_SETALL,

{-# LINE 617 "src/Bindings/Posix.hsc" #-}

  Semid_ds(..),Sembuf(..),

{-# LINE 619 "src/Bindings/Posix.hsc" #-}

  semget,semop,

{-# LINE 621 "src/Bindings/Posix.hsc" #-}

  -- * @sys/shm.h@

  -- | <http://www.opengroup.org/onlinepubs/9699919799/basedefs/sys_shm.h.html>

  _SHM_RDONLY,_SHM_RND,_SHMLBA,

{-# LINE 627 "src/Bindings/Posix.hsc" #-}

  Shmid_ds(..),

{-# LINE 629 "src/Bindings/Posix.hsc" #-}

  CShmatt,

  shmat,shmctl,shmdt,shmget,

{-# LINE 633 "src/Bindings/Posix.hsc" #-}

  -- * @sys/socket.h@

  -- | <http://www.opengroup.org/onlinepubs/9699919799/basedefs/sys_socket.h.html>

  Sockaddr(..),Sockaddr_storage(..),Msghdr(..),Cmsghdr(..),

{-# LINE 639 "src/Bindings/Posix.hsc" #-}

  CSocklen, CSaFamily,

  _SCM_RIGHTS,

{-# LINE 643 "src/Bindings/Posix.hsc" #-}

  Linger(..),

{-# LINE 645 "src/Bindings/Posix.hsc" #-}

  _SOCK_DGRAM,_SOCK_RAW,_SOCK_SEQPACKET,_SOCK_STREAM,_SOL_SOCKET,_SO_ACCEPTCONN,_SO_BROADCAST,_SO_DEBUG,_SO_DONTROUTE,_SO_ERROR,_SO_KEEPALIVE,_SO_LINGER,_SO_OOBINLINE,_SO_RCVBUF,_SO_RCVLOWAT,_SO_RCVTIMEO,_SO_REUSEADDR,_SO_SNDBUF,_SO_SNDLOWAT,_SO_SNDTIMEO,_SO_TYPE,_SOMAXCONN,_MSG_CTRUNC,_MSG_DONTROUTE,_MSG_EOR,_MSG_OOB,_MSG_NOSIGNAL,_MSG_PEEK,_MSG_TRUNC,_MSG_WAITALL,_AF_INET,_AF_INET6,_AF_UNIX,_AF_UNSPEC,_SHUT_RD,_SHUT_RDWR,_SHUT_WR,

{-# LINE 654 "src/Bindings/Posix.hsc" #-}

  accept,bind,connect,getpeername,getsockname,getsockopt,listen,recv,recvfrom,recvmsg,send,sendmsg,sendto,setsockopt,shutdown,sockatmark,socket,socketpair,

{-# LINE 658 "src/Bindings/Posix.hsc" #-}

  -- * @sys/stat.h@

  -- | <http://www.opengroup.org/onlinepubs/9699919799/basedefs/sys_stat.h.html>

  Stat(..),

{-# LINE 664 "src/Bindings/Posix.hsc" #-}

  _S_IFMT,_S_IFBLK,_S_IFCHR,

{-# LINE 666 "src/Bindings/Posix.hsc" #-}
  _S_IFIFO,_S_IFREG,_S_IFDIR,

{-# LINE 667 "src/Bindings/Posix.hsc" #-}
  _S_IFLNK,_S_IFSOCK,

{-# LINE 668 "src/Bindings/Posix.hsc" #-}

  _S_IRWXU,_S_IRUSR,_S_IWUSR,

{-# LINE 670 "src/Bindings/Posix.hsc" #-}
  _S_IXUSR,_S_IRWXG,_S_IRGRP,

{-# LINE 671 "src/Bindings/Posix.hsc" #-}
  _S_IWGRP,_S_IXGRP,_S_IRWXO,

{-# LINE 672 "src/Bindings/Posix.hsc" #-}
  _S_IROTH,_S_IWOTH,_S_IXOTH,

{-# LINE 673 "src/Bindings/Posix.hsc" #-}
  _S_ISUID,_S_ISGID,_S_ISVTX,

{-# LINE 674 "src/Bindings/Posix.hsc" #-}

--   #bindings_export_varids UTIME_NOW|UTIME_OMIT

  chmod,fchmod,fchmodat,fstat,

{-# LINE 678 "src/Bindings/Posix.hsc" #-}
  fstatat,futimens,lstat,mkdir,

{-# LINE 679 "src/Bindings/Posix.hsc" #-}
  mkdirat,mkfifo,mkfifoat,mknod,

{-# LINE 680 "src/Bindings/Posix.hsc" #-}
  mknodat,stat,umask,utimensat,

{-# LINE 681 "src/Bindings/Posix.hsc" #-}

  -- * @sys/statvfs.h@

  -- | <http://www.opengroup.org/onlinepubs/9699919799/basedefs/sys_statvfs.h.html>

  Statvfs(..),

{-# LINE 687 "src/Bindings/Posix.hsc" #-}

  _ST_RDONLY,_ST_NOSUID,

{-# LINE 689 "src/Bindings/Posix.hsc" #-}

  fstatvfs,statvfs,

{-# LINE 691 "src/Bindings/Posix.hsc" #-}

  -- * @sys/time.h@

  -- | <http://www.opengroup.org/onlinepubs/9699919799/basedefs/sys_time.h.html>

  utimes,

{-# LINE 697 "src/Bindings/Posix.hsc" #-}

  -- * @sys/times.h@

  -- | <http://www.opengroup.org/onlinepubs/9699919799/basedefs/sys_times.h.html>

  Tms(..),

{-# LINE 703 "src/Bindings/Posix.hsc" #-}

  times,

{-# LINE 705 "src/Bindings/Posix.hsc" #-}

  -- * @sys/types.h@

  -- | <http://www.opengroup.org/onlinepubs/9699919799/basedefs/sys_types.h.html>

  CClockid,CDev,CFsblkcnt,CFsfilcnt,CGid,CId,
  CIno,CKey,CMode,CNlink,COff,CPid,
  CSSize,CSuseconds,CTimer,CUid,

  Pthread_attr_t(..),Pthread_barrier_t(..),Pthread_barrierattr_t(..),Pthread_cond_t(..),Pthread_condattr_t(..),Pthread_key_t(..),Pthread_mutex_t(..),Pthread_mutexattr_t(..),Pthread_once_t(..),Pthread_rwlock_t(..),Pthread_rwlockattr_t(..),Pthread_spinlock_t(..),Pthread_t(..),

{-# LINE 719 "src/Bindings/Posix.hsc" #-}

  -- * @sys/uio.h@

  -- | <http://www.opengroup.org/onlinepubs/9699919799/basedefs/sys_uio.h.html>

  Iovec(..),

{-# LINE 725 "src/Bindings/Posix.hsc" #-}

  readv,writev,

{-# LINE 727 "src/Bindings/Posix.hsc" #-}

  -- * @sys/un.h@

  -- | <http://www.opengroup.org/onlinepubs/9699919799/basedefs/sys_un.h.html>

  Sockaddr_un(..),

{-# LINE 733 "src/Bindings/Posix.hsc" #-}

  -- * @sys/utsname.h@

  -- | <http://www.opengroup.org/onlinepubs/9699919799/basedefs/sys_utsname.h.html>

  Utsname(..),

{-# LINE 739 "src/Bindings/Posix.hsc" #-}

  uname,

{-# LINE 741 "src/Bindings/Posix.hsc" #-}

  -- * @sys/wait.h@

  -- | <http://www.opengroup.org/onlinepubs/9699919799/basedefs/sys_wait.h.html>

  _WCONTINUED,_WNOHANG,_WUNTRACED,

{-# LINE 747 "src/Bindings/Posix.hsc" #-}

  _WEXITED,_WNOWAIT,_WSTOPPED,

{-# LINE 749 "src/Bindings/Posix.hsc" #-}

  CIdtype,

  _P_ALL,_P_PGID,_P_PID,

{-# LINE 753 "src/Bindings/Posix.hsc" #-}

  wait,waitid,waitpid,

{-# LINE 755 "src/Bindings/Posix.hsc" #-}

  -- * @syslog.h@

  -- | <http://www.opengroup.org/onlinepubs/9699919799/basedefs/syslog.h.html>

  _LOG_PID,_LOG_CONS,_LOG_NDELAY,_LOG_ODELAY,_LOG_NOWAIT,_LOG_KERN,_LOG_USER,_LOG_MAIL,_LOG_NEWS,_LOG_UUCP,_LOG_DAEMON,_LOG_AUTH,_LOG_CRON,_LOG_LPR,_LOG_LOCAL0,_LOG_LOCAL1,_LOG_LOCAL2,_LOG_LOCAL3,_LOG_LOCAL4,_LOG_LOCAL5,_LOG_LOCAL6,_LOG_LOCAL7,_LOG_EMERG,_LOG_ALERT,_LOG_CRIT,_LOG_ERR,_LOG_WARNING,_LOG_NOTICE,_LOG_INFO,_LOG_DEBUG,

{-# LINE 766 "src/Bindings/Posix.hsc" #-}

  closelog,openlog,setlogmask,

{-# LINE 768 "src/Bindings/Posix.hsc" #-}

  -- * @tar.h@

  -- | <http://www.opengroup.org/onlinepubs/9699919799/basedefs/tar.h.html>

  _TMAGIC,_TMAGLEN,_TVERSION,_TVERSLEN,

{-# LINE 774 "src/Bindings/Posix.hsc" #-}

  _REGTYPE,_AREGTYPE,_LNKTYPE,_SYMTYPE,

{-# LINE 776 "src/Bindings/Posix.hsc" #-}
  _CHRTYPE,_BLKTYPE,_DIRTYPE,_FIFOTYPE,_CONTTYPE,

{-# LINE 777 "src/Bindings/Posix.hsc" #-}

  _TSUID,_TSGID,_TSVTX,_TUREAD,

{-# LINE 779 "src/Bindings/Posix.hsc" #-}
  _TUWRITE,_TUEXEC,_TGREAD,_TGWRITE,

{-# LINE 780 "src/Bindings/Posix.hsc" #-}
  _TGEXEC,_TOREAD,_TOWRITE,_TOEXEC,

{-# LINE 781 "src/Bindings/Posix.hsc" #-}

  -- * @termios.h@

  -- | <http://www.opengroup.org/onlinepubs/9699919799/basedefs/termios.h.html>

  Termios(..),

{-# LINE 787 "src/Bindings/Posix.hsc" #-}

  CCc, CSpeed, CTcflag,

  _NCCS,_VEOF,_VEOL,_VERASE,_VINTR,_VKILL,_VMIN,_VQUIT,_VSTART,_VSTOP,_VSUSP,_VTIME,_BRKINT,_ICRNL,_IGNBRK,_IGNCR,_IGNPAR,_INLCR,_INPCK,_ISTRIP,_IXANY,_IXOFF,_IXON,_PARMRK,_OPOST,_ONLCR,_OCRNL,_ONOCR,_ONLRET,_OFDEL,_OFILL,_NLDLY,_NL0,_NL1,_CRDLY,_CR0,_CR1,_CR2,_CR3,_TABDLY,_TAB0,_TAB1,_TAB2,_TAB3,_BSDLY,_BS0,_BS1,_VTDLY,_VT0,_VT1,_FFDLY,_FF0,_FF1,_B0,_B50,_B75,_B110,_B134,_B150,_B200,_B300,_B600,_B1200,_B1800,_B2400,_B4800,_B9600,_B19200,_B38400,_CSIZE,_CS5,_CS6,_CS7,_CS8,_CSTOPB,_CREAD,_PARENB,_PARODD,_HUPCL,_CLOCAL,_ECHO,_ECHOE,_ECHOK,_ECHONL,_ICANON,_IEXTEN,_ISIG,_NOFLSH,_TOSTOP,_TCSANOW,_TCSADRAIN,_TCSAFLUSH,_TCIFLUSH,_TCIOFLUSH,_TCOFLUSH,_TCIOFF,_TCION,_TCOOFF,_TCOON,

{-# LINE 801 "src/Bindings/Posix.hsc" #-}

  cfgetispeed,cfgetospeed,cfsetispeed,cfsetospeed,tcdrain,tcflow,tcflush,tcgetattr,tcgetsid,tcsendbreak,tcsetattr,

{-# LINE 805 "src/Bindings/Posix.hsc" #-}

  -- * @time.h@

  -- | <http://www.opengroup.org/onlinepubs/9699919799/basedefs/time.h.html>

  Timespec(..),Itimerspec(..),

{-# LINE 811 "src/Bindings/Posix.hsc" #-}

  _CLOCK_MONOTONIC,_CLOCK_PROCESS_CPUTIME_ID,

{-# LINE 813 "src/Bindings/Posix.hsc" #-}
  _CLOCK_REALTIME,_CLOCK_THREAD_CPUTIME_ID,

{-# LINE 814 "src/Bindings/Posix.hsc" #-}

  clock_getcpuclockid,clock_getres,

{-# LINE 816 "src/Bindings/Posix.hsc" #-}
  clock_gettime,clock_nanosleep,

{-# LINE 817 "src/Bindings/Posix.hsc" #-}
  clock_settime,getdate,gmtime_r,

{-# LINE 818 "src/Bindings/Posix.hsc" #-}
  localtime_r,nanosleep,strptime,

{-# LINE 819 "src/Bindings/Posix.hsc" #-}
  timer_create,timer_delete,

{-# LINE 820 "src/Bindings/Posix.hsc" #-}
  timer_getoverrun,timer_gettime,

{-# LINE 821 "src/Bindings/Posix.hsc" #-}
  timer_settime,tzset,

{-# LINE 822 "src/Bindings/Posix.hsc" #-}

  daylight,timezone,tzname,

{-# LINE 824 "src/Bindings/Posix.hsc" #-}

  -- * @unistd.h@

  -- | <http://www.opengroup.org/onlinepubs/9699919799/basedefs/unistd.h.html>

  __POSIX_ASYNC_IO,_F_OK,_R_OK,_W_OK,_X_OK,_F_LOCK,_F_TEST,_F_TLOCK,_F_ULOCK,__PC_2_SYMLINKS,__PC_ALLOC_SIZE_MIN,__PC_ASYNC_IO,__PC_CHOWN_RESTRICTED,__PC_FILESIZEBITS,__PC_LINK_MAX,__PC_MAX_CANON,__PC_MAX_INPUT,__PC_NAME_MAX,__PC_NO_TRUNC,__PC_PATH_MAX,__PC_PIPE_BUF,__PC_PRIO_IO,__PC_REC_INCR_XFER_SIZE,__PC_REC_MAX_XFER_SIZE,__PC_REC_MIN_XFER_SIZE,__PC_REC_XFER_ALIGN,__PC_SYMLINK_MAX,__PC_SYNC_IO,__PC_VDISABLE,__SC_2_C_BIND,__SC_2_C_DEV,__SC_2_CHAR_TERM,__SC_2_FORT_DEV,__SC_2_FORT_RUN,__SC_2_LOCALEDEF,__SC_2_PBS,__SC_2_PBS_ACCOUNTING,__SC_2_PBS_CHECKPOINT,__SC_2_PBS_LOCATE,__SC_2_PBS_MESSAGE,__SC_2_PBS_TRACK,__SC_2_SW_DEV,__SC_2_UPE,__SC_2_VERSION,__SC_ADVISORY_INFO,__SC_AIO_LISTIO_MAX,__SC_AIO_MAX,__SC_AIO_PRIO_DELTA_MAX,__SC_ARG_MAX,__SC_ASYNCHRONOUS_IO,__SC_ATEXIT_MAX,__SC_BARRIERS,__SC_BC_BASE_MAX,__SC_BC_DIM_MAX,__SC_BC_SCALE_MAX,__SC_BC_STRING_MAX,__SC_CHILD_MAX,__SC_CLK_TCK,__SC_CLOCK_SELECTION,__SC_COLL_WEIGHTS_MAX,__SC_CPUTIME,__SC_DELAYTIMER_MAX,__SC_EXPR_NEST_MAX,__SC_FSYNC,__SC_GETGR_R_SIZE_MAX,__SC_GETPW_R_SIZE_MAX,__SC_HOST_NAME_MAX,__SC_IOV_MAX,__SC_IPV6,__SC_JOB_CONTROL,__SC_LINE_MAX,__SC_LOGIN_NAME_MAX,__SC_MAPPED_FILES,__SC_MEMLOCK,__SC_MEMLOCK_RANGE,__SC_MEMORY_PROTECTION,__SC_MESSAGE_PASSING,

{-# LINE 851 "src/Bindings/Posix.hsc" #-}

  __SC_MONOTONIC_CLOCK,__SC_MQ_OPEN_MAX,__SC_MQ_PRIO_MAX,__SC_NGROUPS_MAX,__SC_OPEN_MAX,__SC_PAGE_SIZE,__SC_PAGESIZE,__SC_PRIORITIZED_IO,__SC_PRIORITY_SCHEDULING,__SC_RAW_SOCKETS,__SC_RE_DUP_MAX,__SC_READER_WRITER_LOCKS,__SC_REALTIME_SIGNALS,__SC_REGEXP,__SC_RTSIG_MAX,__SC_SAVED_IDS,__SC_SEM_NSEMS_MAX,__SC_SEM_VALUE_MAX,__SC_SEMAPHORES,__SC_SHARED_MEMORY_OBJECTS,__SC_SHELL,__SC_SIGQUEUE_MAX,__SC_SPAWN,__SC_SPIN_LOCKS,__SC_SPORADIC_SERVER,__SC_STREAM_MAX,__SC_SYMLOOP_MAX,__SC_SYNCHRONIZED_IO,__SC_THREAD_ATTR_STACKADDR,__SC_THREAD_ATTR_STACKSIZE,__SC_THREAD_CPUTIME,__SC_THREAD_DESTRUCTOR_ITERATIONS,__SC_THREAD_KEYS_MAX,__SC_THREAD_PRIO_INHERIT,__SC_THREAD_PRIO_PROTECT,__SC_THREAD_PRIORITY_SCHEDULING,__SC_THREAD_PROCESS_SHARED,__SC_THREAD_SAFE_FUNCTIONS,__SC_THREAD_SPORADIC_SERVER,__SC_THREAD_STACK_MIN,__SC_THREAD_THREADS_MAX,__SC_THREADS,__SC_TIMEOUTS,__SC_TIMER_MAX,__SC_TIMERS,__SC_TRACE,__SC_TRACE_EVENT_FILTER,__SC_TRACE_INHERIT,__SC_TRACE_LOG,__SC_TTY_NAME_MAX,__SC_TYPED_MEMORY_OBJECTS,__SC_TZNAME_MAX,__SC_VERSION,__SC_XOPEN_CRYPT,__SC_XOPEN_ENH_I18N,__SC_XOPEN_REALTIME,__SC_XOPEN_REALTIME_THREADS,__SC_XOPEN_SHM,__SC_XOPEN_UNIX,__SC_XOPEN_VERSION,_STDERR_FILENO,_STDIN_FILENO,_STDOUT_FILENO,

{-# LINE 874 "src/Bindings/Posix.hsc" #-}

  access,alarm,chdir,chown,close,confstr,dup,dup2,__exit,execv,execve,execvp,faccessat,fchdir,fchown,fchownat,fdatasync,fexecve,fork,fpathconf,fsync,ftruncate,getcwd,getegid,geteuid,getgid,getgroups,gethostid,gethostname,getlogin,getlogin_r,getopt,getpgid,getpgrp,getpid,getppid,getsid,getuid,isatty,lchown,link,linkat,lockf,lseek,nice,pathconf,pause,pipe,pread,pwrite,read,readlink,readlinkat,rmdir,setegid,seteuid,setgid,setpgid,setregid,setreuid,setsid,setuid,sleep,swab,symlink,symlinkat,sync,sysconf,tcgetpgrp,tcsetpgrp,truncate,ttyname,ttyname_r,unlink,unlinkat,write,

{-# LINE 886 "src/Bindings/Posix.hsc" #-}

  optarg,opterr,optind,optopt,

{-# LINE 888 "src/Bindings/Posix.hsc" #-}

  -- * @utmpx.h@

  -- | <http://www.opengroup.org/onlinepubs/9699919799/basedefs/utmpx.h.html>

  Utmpx(..),

{-# LINE 894 "src/Bindings/Posix.hsc" #-}

  _BOOT_TIME,_OLD_TIME,_NEW_TIME,_USER_PROCESS,_INIT_PROCESS,_LOGIN_PROCESS,_DEAD_PROCESS,

{-# LINE 897 "src/Bindings/Posix.hsc" #-}

  endutxent,getutxent,getutxid,getutxline,pututxline,setutxent,

{-# LINE 900 "src/Bindings/Posix.hsc" #-}

  -- * @wchar.h@

  -- | <http://www.opengroup.org/onlinepubs/9699919799/basedefs/wchar.h.html>

  mbsnrtowcs,open_wmemstream,

{-# LINE 906 "src/Bindings/Posix.hsc" #-}
  wcpcpy,wcpncpy,wcscasecmp,

{-# LINE 907 "src/Bindings/Posix.hsc" #-}
  wcsdup,wcsncasecmp,wcsnlen,

{-# LINE 908 "src/Bindings/Posix.hsc" #-}
  wcsnrtombs,wcswidth,

{-# LINE 909 "src/Bindings/Posix.hsc" #-}

  -- * @wctype.h@

  -- | <http://www.opengroup.org/onlinepubs/9699919799/basedefs/wctype.h.html>

  -- * @wordexp.h@

  -- | <http://www.opengroup.org/onlinepubs/9699919799/basedefs/wordexp.h.html>

  Wordexp_t(..),

{-# LINE 919 "src/Bindings/Posix.hsc" #-}

  _WRDE_APPEND,_WRDE_DOOFFS,_WRDE_NOCMD,

{-# LINE 921 "src/Bindings/Posix.hsc" #-}
  _WRDE_REUSE,_WRDE_SHOWERR,_WRDE_UNDEF,

{-# LINE 922 "src/Bindings/Posix.hsc" #-}

  _WRDE_BADCHAR,_WRDE_BADVAL,_WRDE_CMDSUB,

{-# LINE 924 "src/Bindings/Posix.hsc" #-}
  _WRDE_NOSPACE,_WRDE_SYNTAX,

{-# LINE 925 "src/Bindings/Posix.hsc" #-}

  wordexp,wordfree,

{-# LINE 927 "src/Bindings/Posix.hsc" #-}

 ) where

import Prelude hiding (read,truncate)
import Foreign
import Foreign.C
import Bindings.C
import Bindings.Utilities


{-# LINE 937 "src/Bindings/Posix.hsc" #-}


{-# LINE 939 "src/Bindings/Posix.hsc" #-}

{-# LINE 940 "src/Bindings/Posix.hsc" #-}

{-# LINE 941 "src/Bindings/Posix.hsc" #-}

{-# LINE 942 "src/Bindings/Posix.hsc" #-}

{-# LINE 943 "src/Bindings/Posix.hsc" #-}

{-# LINE 944 "src/Bindings/Posix.hsc" #-}

{-# LINE 945 "src/Bindings/Posix.hsc" #-}

{-# LINE 946 "src/Bindings/Posix.hsc" #-}
data Aiocb = Aiocb {aiocb'aio_fildes :: CInt , aiocb'aio_offset :: COff , aiocb'aio_buf :: Ptr () , aiocb'aio_nbytes :: CSize , aiocb'aio_reqprio :: CInt , aiocb'aio_sigevent :: Sigevent , aiocb'aio_lio_opcode :: CInt}
instance Storable Aiocb where {sizeOf _ = 144 ; alignment = sizeOf ; peek p = peekByteOff p 0 >>= \v0 -> peekByteOff p 104 >>= \v1 -> peekByteOff p 12 >>= \v2 -> peekByteOff p 16 >>= \v3 -> peekByteOff p 8 >>= \v4 -> peekByteOff p 20 >>= \v5 -> peekByteOff p 4 >>= \v6 -> return $ Aiocb v0 v1 v2 v3 v4 v5 v6  ; poke p (Aiocb v0 v1 v2 v3 v4 v5 v6 ) = pokeByteOff p 0 v0 >> pokeByteOff p 104 v1 >> pokeByteOff p 12 v2 >> pokeByteOff p 16 v3 >> pokeByteOff p 8 v4 >> pokeByteOff p 20 v5 >> pokeByteOff p 4 v6 >> return () }
{-# LINE 947 "src/Bindings/Posix.hsc" #-}

_AIO_ALLDONE = 2 :: CInt

{-# LINE 949 "src/Bindings/Posix.hsc" #-}
_AIO_CANCELED = 0 :: CInt

{-# LINE 950 "src/Bindings/Posix.hsc" #-}
_AIO_NOTCANCELED = 1 :: CInt

{-# LINE 951 "src/Bindings/Posix.hsc" #-}
_LIO_NOP = 2 :: CInt

{-# LINE 952 "src/Bindings/Posix.hsc" #-}
_LIO_NOWAIT = 1 :: CInt

{-# LINE 953 "src/Bindings/Posix.hsc" #-}
_LIO_READ = 0 :: CInt

{-# LINE 954 "src/Bindings/Posix.hsc" #-}
_LIO_WAIT = 0 :: CInt

{-# LINE 955 "src/Bindings/Posix.hsc" #-}
_LIO_WRITE = 1 :: CInt

{-# LINE 956 "src/Bindings/Posix.hsc" #-}

foreign import ccall "aio_cancel" aio_cancel :: CInt -> Ptr Aiocb -> IO CInt

{-# LINE 958 "src/Bindings/Posix.hsc" #-}
foreign import ccall "aio_error" aio_error :: Ptr Aiocb -> IO CInt

{-# LINE 959 "src/Bindings/Posix.hsc" #-}
foreign import ccall "aio_fsync" aio_fsync :: CInt -> Ptr Aiocb -> IO CInt

{-# LINE 960 "src/Bindings/Posix.hsc" #-}
foreign import ccall "aio_read" aio_read :: Ptr Aiocb -> IO CInt

{-# LINE 961 "src/Bindings/Posix.hsc" #-}
foreign import ccall "aio_return" aio_return :: Ptr Aiocb -> IO CSSize

{-# LINE 962 "src/Bindings/Posix.hsc" #-}
foreign import ccall "aio_suspend" aio_suspend :: Ptr (Ptr Aiocb) -> CInt -> Ptr Timespec -> IO CInt

{-# LINE 964 "src/Bindings/Posix.hsc" #-}
foreign import ccall "aio_write" aio_write :: Ptr Aiocb -> IO CInt

{-# LINE 965 "src/Bindings/Posix.hsc" #-}
foreign import ccall "lio_listio" lio_listio :: CInt -> Ptr (Ptr Aiocb) -> CInt -> Ptr Sigevent -> IO CInt

{-# LINE 967 "src/Bindings/Posix.hsc" #-}


{-# LINE 969 "src/Bindings/Posix.hsc" #-}

foreign import ccall "htonl" htonl :: Word32 -> IO Word32

{-# LINE 971 "src/Bindings/Posix.hsc" #-}
foreign import ccall "htons" htons :: Word16 -> IO Word16

{-# LINE 972 "src/Bindings/Posix.hsc" #-}
foreign import ccall "ntohl" ntohl :: Word32 -> IO Word32

{-# LINE 973 "src/Bindings/Posix.hsc" #-}
foreign import ccall "ntohs" ntohs :: Word16 -> IO Word16

{-# LINE 974 "src/Bindings/Posix.hsc" #-}

foreign import ccall "inet_addr" inet_addr :: CString -> IO CInAddr

{-# LINE 976 "src/Bindings/Posix.hsc" #-}
foreign import ccall "inet_ntop" inet_ntop :: CInt -> Ptr () -> CString -> CSocklen -> IO CString

{-# LINE 978 "src/Bindings/Posix.hsc" #-}
foreign import ccall "inet_pton" inet_pton :: CInt -> CString -> Ptr () -> IO CInt

{-# LINE 980 "src/Bindings/Posix.hsc" #-}


{-# LINE 982 "src/Bindings/Posix.hsc" #-}

_C_IRUSR = 256 :: (Num a) => a

{-# LINE 984 "src/Bindings/Posix.hsc" #-}
_C_IWUSR = 128 :: (Num a) => a

{-# LINE 985 "src/Bindings/Posix.hsc" #-}
_C_IXUSR = 64 :: (Num a) => a

{-# LINE 986 "src/Bindings/Posix.hsc" #-}
_C_IRGRP = 32 :: (Num a) => a

{-# LINE 987 "src/Bindings/Posix.hsc" #-}
_C_IWGRP = 16 :: (Num a) => a

{-# LINE 988 "src/Bindings/Posix.hsc" #-}
_C_IXGRP = 8 :: (Num a) => a

{-# LINE 989 "src/Bindings/Posix.hsc" #-}
_C_IROTH = 4 :: (Num a) => a

{-# LINE 990 "src/Bindings/Posix.hsc" #-}
_C_IWOTH = 2 :: (Num a) => a

{-# LINE 991 "src/Bindings/Posix.hsc" #-}
_C_IXOTH = 1 :: (Num a) => a

{-# LINE 992 "src/Bindings/Posix.hsc" #-}
_C_ISUID = 2048 :: (Num a) => a

{-# LINE 993 "src/Bindings/Posix.hsc" #-}
_C_ISGID = 1024 :: (Num a) => a

{-# LINE 994 "src/Bindings/Posix.hsc" #-}
_C_ISVTX = 512 :: (Num a) => a

{-# LINE 995 "src/Bindings/Posix.hsc" #-}
_C_ISDIR = 16384 :: (Num a) => a

{-# LINE 996 "src/Bindings/Posix.hsc" #-}
_C_ISFIFO = 4096 :: (Num a) => a

{-# LINE 997 "src/Bindings/Posix.hsc" #-}
_C_ISREG = 32768 :: (Num a) => a

{-# LINE 998 "src/Bindings/Posix.hsc" #-}
_C_ISBLK = 24576 :: (Num a) => a

{-# LINE 999 "src/Bindings/Posix.hsc" #-}
_C_ISCHR = 8192 :: (Num a) => a

{-# LINE 1000 "src/Bindings/Posix.hsc" #-}
_C_ISCTG = 36864 :: (Num a) => a

{-# LINE 1001 "src/Bindings/Posix.hsc" #-}
_C_ISLNK = 40960 :: (Num a) => a

{-# LINE 1002 "src/Bindings/Posix.hsc" #-}
_C_ISSOCK = 49152 :: (Num a) => a

{-# LINE 1003 "src/Bindings/Posix.hsc" #-}

_MAGIC =  wordPtrToPtr (135038481 :: WordPtr) :: CString

{-# LINE 1005 "src/Bindings/Posix.hsc" #-}


{-# LINE 1007 "src/Bindings/Posix.hsc" #-}

data DIR


{-# LINE 1011 "src/Bindings/Posix.hsc" #-}

{-# LINE 1012 "src/Bindings/Posix.hsc" #-}

{-# LINE 1013 "src/Bindings/Posix.hsc" #-}
data Dirent = Dirent {dirent'd_ino :: CIno , dirent'd_name :: CString}
instance Storable Dirent where {sizeOf _ = 276 ; alignment = sizeOf ; peek p = peekByteOff p 0 >>= \v0 -> peekByteOff p 19 >>= \v1 -> return $ Dirent v0 v1  ; poke p (Dirent v0 v1 ) = pokeByteOff p 0 v0 >> pokeByteOff p 19 v1 >> return () }
{-# LINE 1014 "src/Bindings/Posix.hsc" #-}

foreign import ccall "alphasort" alphasort :: Ptr (Ptr Dirent) -> Ptr (Ptr Dirent) -> IO CInt

{-# LINE 1017 "src/Bindings/Posix.hsc" #-}
foreign import ccall "closedir" closedir :: Ptr DIR -> IO CInt

{-# LINE 1018 "src/Bindings/Posix.hsc" #-}
foreign import ccall "dirfd" dirfd :: Ptr DIR -> IO CInt

{-# LINE 1019 "src/Bindings/Posix.hsc" #-}
foreign import ccall "fdopendir" fdopendir :: CInt -> IO (Ptr DIR)

{-# LINE 1020 "src/Bindings/Posix.hsc" #-}
foreign import ccall "opendir" opendir :: CString -> IO (Ptr DIR)

{-# LINE 1021 "src/Bindings/Posix.hsc" #-}
foreign import ccall "readdir" readdir :: Ptr DIR -> IO (Ptr Dirent)

{-# LINE 1022 "src/Bindings/Posix.hsc" #-}
foreign import ccall "readdir_r" readdir_r :: Ptr DIR -> Ptr Dirent -> Ptr (Ptr Dirent) -> IO CInt

{-# LINE 1024 "src/Bindings/Posix.hsc" #-}
foreign import ccall "rewinddir" rewinddir :: Ptr DIR -> IO ()

{-# LINE 1025 "src/Bindings/Posix.hsc" #-}
foreign import ccall "scandir" scandir :: CString -> Ptr (Ptr (Ptr Dirent)) -> FunPtr (Ptr Dirent -> IO CInt) -> FunPtr (Ptr (Ptr Dirent) -> Ptr (Ptr Dirent) -> IO CInt) -> IO CInt

{-# LINE 1029 "src/Bindings/Posix.hsc" #-}
foreign import ccall "seekdir" seekdir :: Ptr DIR -> CLong -> IO ()

{-# LINE 1030 "src/Bindings/Posix.hsc" #-}
foreign import ccall "telldir" telldir :: Ptr DIR -> IO CLong

{-# LINE 1031 "src/Bindings/Posix.hsc" #-}


{-# LINE 1033 "src/Bindings/Posix.hsc" #-}

_RTLD_LAZY = 1 :: CInt

{-# LINE 1035 "src/Bindings/Posix.hsc" #-}
_RTLD_NOW = 2 :: CInt

{-# LINE 1036 "src/Bindings/Posix.hsc" #-}
_RTLD_GLOBAL = 256 :: CInt

{-# LINE 1037 "src/Bindings/Posix.hsc" #-}
_RTLD_LOCAL = 0 :: CInt

{-# LINE 1038 "src/Bindings/Posix.hsc" #-}

foreign import ccall "dlclose" dlclose :: Ptr () -> IO CInt

{-# LINE 1040 "src/Bindings/Posix.hsc" #-}
foreign import ccall "dlerror" dlerror :: IO CString

{-# LINE 1041 "src/Bindings/Posix.hsc" #-}
foreign import ccall "dlopen" dlopen :: CString -> CInt -> IO (Ptr ())

{-# LINE 1042 "src/Bindings/Posix.hsc" #-}
foreign import ccall "dlsym" dlsym :: Ptr () -> CString -> IO (Ptr ())

{-# LINE 1043 "src/Bindings/Posix.hsc" #-}


{-# LINE 1045 "src/Bindings/Posix.hsc" #-}

_E2BIG = 7 :: CInt

{-# LINE 1047 "src/Bindings/Posix.hsc" #-}
_EACCES = 13 :: CInt

{-# LINE 1048 "src/Bindings/Posix.hsc" #-}
_EADDRINUSE = 98 :: CInt

{-# LINE 1049 "src/Bindings/Posix.hsc" #-}
_EADDRNOTAVAIL = 99 :: CInt

{-# LINE 1050 "src/Bindings/Posix.hsc" #-}
_EAFNOSUPPORT = 97 :: CInt

{-# LINE 1051 "src/Bindings/Posix.hsc" #-}
_EAGAIN = 11 :: CInt

{-# LINE 1052 "src/Bindings/Posix.hsc" #-}
_EALREADY = 114 :: CInt

{-# LINE 1053 "src/Bindings/Posix.hsc" #-}
_EBADF = 9 :: CInt

{-# LINE 1054 "src/Bindings/Posix.hsc" #-}
_EBADMSG = 74 :: CInt

{-# LINE 1055 "src/Bindings/Posix.hsc" #-}
_EBUSY = 16 :: CInt

{-# LINE 1056 "src/Bindings/Posix.hsc" #-}
_ECANCELED = 125 :: CInt

{-# LINE 1057 "src/Bindings/Posix.hsc" #-}
_ECHILD = 10 :: CInt

{-# LINE 1058 "src/Bindings/Posix.hsc" #-}
_ECONNABORTED = 103 :: CInt

{-# LINE 1059 "src/Bindings/Posix.hsc" #-}
_ECONNREFUSED = 111 :: CInt

{-# LINE 1060 "src/Bindings/Posix.hsc" #-}
_ECONNRESET = 104 :: CInt

{-# LINE 1061 "src/Bindings/Posix.hsc" #-}
_EDEADLK = 35 :: CInt

{-# LINE 1062 "src/Bindings/Posix.hsc" #-}
_EDESTADDRREQ = 89 :: CInt

{-# LINE 1063 "src/Bindings/Posix.hsc" #-}
_EDQUOT = 122 :: CInt

{-# LINE 1064 "src/Bindings/Posix.hsc" #-}
_EEXIST = 17 :: CInt

{-# LINE 1065 "src/Bindings/Posix.hsc" #-}
_EFAULT = 14 :: CInt

{-# LINE 1066 "src/Bindings/Posix.hsc" #-}
_EFBIG = 27 :: CInt

{-# LINE 1067 "src/Bindings/Posix.hsc" #-}
_EHOSTUNREACH = 113 :: CInt

{-# LINE 1068 "src/Bindings/Posix.hsc" #-}
_EIDRM = 43 :: CInt

{-# LINE 1069 "src/Bindings/Posix.hsc" #-}
_EINPROGRESS = 115 :: CInt

{-# LINE 1070 "src/Bindings/Posix.hsc" #-}
_EINTR = 4 :: CInt

{-# LINE 1071 "src/Bindings/Posix.hsc" #-}
_EINVAL = 22 :: CInt

{-# LINE 1072 "src/Bindings/Posix.hsc" #-}
_EIO = 5 :: CInt

{-# LINE 1073 "src/Bindings/Posix.hsc" #-}
_EISCONN = 106 :: CInt

{-# LINE 1074 "src/Bindings/Posix.hsc" #-}
_EISDIR = 21 :: CInt

{-# LINE 1075 "src/Bindings/Posix.hsc" #-}
_ELOOP = 40 :: CInt

{-# LINE 1076 "src/Bindings/Posix.hsc" #-}
_EMFILE = 24 :: CInt

{-# LINE 1077 "src/Bindings/Posix.hsc" #-}
_EMLINK = 31 :: CInt

{-# LINE 1078 "src/Bindings/Posix.hsc" #-}
_EMSGSIZE = 90 :: CInt

{-# LINE 1079 "src/Bindings/Posix.hsc" #-}
_EMULTIHOP = 72 :: CInt

{-# LINE 1080 "src/Bindings/Posix.hsc" #-}
_ENAMETOOLONG = 36 :: CInt

{-# LINE 1081 "src/Bindings/Posix.hsc" #-}
_ENETDOWN = 100 :: CInt

{-# LINE 1082 "src/Bindings/Posix.hsc" #-}
_ENETRESET = 102 :: CInt

{-# LINE 1083 "src/Bindings/Posix.hsc" #-}
_ENETUNREACH = 101 :: CInt

{-# LINE 1084 "src/Bindings/Posix.hsc" #-}
_ENFILE = 23 :: CInt

{-# LINE 1085 "src/Bindings/Posix.hsc" #-}
_ENOBUFS = 105 :: CInt

{-# LINE 1086 "src/Bindings/Posix.hsc" #-}
_ENODEV = 19 :: CInt

{-# LINE 1087 "src/Bindings/Posix.hsc" #-}
_ENOENT = 2 :: CInt

{-# LINE 1088 "src/Bindings/Posix.hsc" #-}
_ENOEXEC = 8 :: CInt

{-# LINE 1089 "src/Bindings/Posix.hsc" #-}
_ENOLCK = 37 :: CInt

{-# LINE 1090 "src/Bindings/Posix.hsc" #-}
_ENOLINK = 67 :: CInt

{-# LINE 1091 "src/Bindings/Posix.hsc" #-}
_ENOMEM = 12 :: CInt

{-# LINE 1092 "src/Bindings/Posix.hsc" #-}
_ENOMSG = 42 :: CInt

{-# LINE 1093 "src/Bindings/Posix.hsc" #-}
_ENOPROTOOPT = 92 :: CInt

{-# LINE 1094 "src/Bindings/Posix.hsc" #-}
_ENOSPC = 28 :: CInt

{-# LINE 1095 "src/Bindings/Posix.hsc" #-}
_ENOSYS = 38 :: CInt

{-# LINE 1096 "src/Bindings/Posix.hsc" #-}
_ENOTCONN = 107 :: CInt

{-# LINE 1097 "src/Bindings/Posix.hsc" #-}
_ENOTDIR = 20 :: CInt

{-# LINE 1098 "src/Bindings/Posix.hsc" #-}
_ENOTEMPTY = 39 :: CInt

{-# LINE 1099 "src/Bindings/Posix.hsc" #-}
_ENOTRECOVERABLE = 131 :: CInt

{-# LINE 1100 "src/Bindings/Posix.hsc" #-}
_ENOTSOCK = 88 :: CInt

{-# LINE 1101 "src/Bindings/Posix.hsc" #-}
_ENOTSUP = 95 :: CInt

{-# LINE 1102 "src/Bindings/Posix.hsc" #-}
_ENOTTY = 25 :: CInt

{-# LINE 1103 "src/Bindings/Posix.hsc" #-}
_ENXIO = 6 :: CInt

{-# LINE 1104 "src/Bindings/Posix.hsc" #-}
_EOPNOTSUPP = 95 :: CInt

{-# LINE 1105 "src/Bindings/Posix.hsc" #-}
_EOVERFLOW = 75 :: CInt

{-# LINE 1106 "src/Bindings/Posix.hsc" #-}
_EOWNERDEAD = 130 :: CInt

{-# LINE 1107 "src/Bindings/Posix.hsc" #-}
_EPERM = 1 :: CInt

{-# LINE 1108 "src/Bindings/Posix.hsc" #-}
_EPIPE = 32 :: CInt

{-# LINE 1109 "src/Bindings/Posix.hsc" #-}
_EPROTO = 71 :: CInt

{-# LINE 1110 "src/Bindings/Posix.hsc" #-}
_EPROTONOSUPPORT = 93 :: CInt

{-# LINE 1111 "src/Bindings/Posix.hsc" #-}
_EPROTOTYPE = 91 :: CInt

{-# LINE 1112 "src/Bindings/Posix.hsc" #-}
_EROFS = 30 :: CInt

{-# LINE 1113 "src/Bindings/Posix.hsc" #-}
_ESPIPE = 29 :: CInt

{-# LINE 1114 "src/Bindings/Posix.hsc" #-}
_ESRCH = 3 :: CInt

{-# LINE 1115 "src/Bindings/Posix.hsc" #-}
_ESTALE = 116 :: CInt

{-# LINE 1116 "src/Bindings/Posix.hsc" #-}
_ETIMEDOUT = 110 :: CInt

{-# LINE 1117 "src/Bindings/Posix.hsc" #-}
_ETXTBSY = 26 :: CInt

{-# LINE 1118 "src/Bindings/Posix.hsc" #-}
_EWOULDBLOCK = 11 :: CInt

{-# LINE 1119 "src/Bindings/Posix.hsc" #-}
_EXDEV = 18 :: CInt

{-# LINE 1120 "src/Bindings/Posix.hsc" #-}


{-# LINE 1122 "src/Bindings/Posix.hsc" #-}

_F_DUPFD = 0 :: CInt

{-# LINE 1124 "src/Bindings/Posix.hsc" #-}
-- #bindings_int F_DUPFD_CLOEXEC
_F_GETFD = 1 :: CInt

{-# LINE 1126 "src/Bindings/Posix.hsc" #-}
_F_SETFD = 2 :: CInt

{-# LINE 1127 "src/Bindings/Posix.hsc" #-}
_F_GETFL = 3 :: CInt

{-# LINE 1128 "src/Bindings/Posix.hsc" #-}
_F_SETFL = 4 :: CInt

{-# LINE 1129 "src/Bindings/Posix.hsc" #-}
_F_GETLK = 12 :: CInt

{-# LINE 1130 "src/Bindings/Posix.hsc" #-}
_F_SETLK = 13 :: CInt

{-# LINE 1131 "src/Bindings/Posix.hsc" #-}
_F_SETLKW = 14 :: CInt

{-# LINE 1132 "src/Bindings/Posix.hsc" #-}
_F_GETOWN = 9 :: CInt

{-# LINE 1133 "src/Bindings/Posix.hsc" #-}
_F_SETOWN = 8 :: CInt

{-# LINE 1134 "src/Bindings/Posix.hsc" #-}
_FD_CLOEXEC = 1 :: CInt

{-# LINE 1135 "src/Bindings/Posix.hsc" #-}
_F_RDLCK = 0 :: CShort

{-# LINE 1136 "src/Bindings/Posix.hsc" #-}
_F_UNLCK = 2 :: CShort

{-# LINE 1137 "src/Bindings/Posix.hsc" #-}
_F_WRLCK = 1 :: CShort

{-# LINE 1138 "src/Bindings/Posix.hsc" #-}
_O_CREAT = 64 :: CInt

{-# LINE 1139 "src/Bindings/Posix.hsc" #-}
_O_EXCL = 128 :: CInt

{-# LINE 1140 "src/Bindings/Posix.hsc" #-}
_O_NOCTTY = 256 :: CInt

{-# LINE 1141 "src/Bindings/Posix.hsc" #-}
_O_TRUNC = 512 :: CInt

{-# LINE 1142 "src/Bindings/Posix.hsc" #-}
-- #bindings_int O_TTY_INIT
_O_APPEND = 1024 :: CInt

{-# LINE 1144 "src/Bindings/Posix.hsc" #-}
_O_DSYNC = 4096 :: CInt

{-# LINE 1145 "src/Bindings/Posix.hsc" #-}
_O_NONBLOCK = 2048 :: CInt

{-# LINE 1146 "src/Bindings/Posix.hsc" #-}
_O_RSYNC = 4096 :: CInt

{-# LINE 1147 "src/Bindings/Posix.hsc" #-}
_O_SYNC = 4096 :: CInt

{-# LINE 1148 "src/Bindings/Posix.hsc" #-}
_O_ACCMODE = 3 :: CInt

{-# LINE 1149 "src/Bindings/Posix.hsc" #-}
-- #bindings_int O_EXEC
_O_RDONLY = 0 :: CInt

{-# LINE 1151 "src/Bindings/Posix.hsc" #-}
_O_RDWR = 2 :: CInt

{-# LINE 1152 "src/Bindings/Posix.hsc" #-}
-- #bindings_int O_SEARCH
_O_WRONLY = 1 :: CInt

{-# LINE 1154 "src/Bindings/Posix.hsc" #-}
-- #bindings_int AT_FDCWD
-- #bindings_int AT_EACCESS
-- #bindings_int AT_SYMLINK_NOFOLLOW
-- #bindings_int AT_SYMLINK_FOLLOW
-- #bindings_int O_CLOEXEC
-- #bindings_int O_DIRECTORY
-- #bindings_int O_NOFOLLOW
-- #bindings_int AT_REMOVEDIR
_POSIX_FADV_DONTNEED = 4 :: CInt

{-# LINE 1163 "src/Bindings/Posix.hsc" #-}
_POSIX_FADV_NOREUSE = 5 :: CInt

{-# LINE 1164 "src/Bindings/Posix.hsc" #-}
_POSIX_FADV_NORMAL = 0 :: CInt

{-# LINE 1165 "src/Bindings/Posix.hsc" #-}
_POSIX_FADV_RANDOM = 1 :: CInt

{-# LINE 1166 "src/Bindings/Posix.hsc" #-}
_POSIX_FADV_SEQUENTIAL = 2 :: CInt

{-# LINE 1167 "src/Bindings/Posix.hsc" #-}
_POSIX_FADV_WILLNEED = 3 :: CInt

{-# LINE 1168 "src/Bindings/Posix.hsc" #-}


{-# LINE 1170 "src/Bindings/Posix.hsc" #-}

{-# LINE 1171 "src/Bindings/Posix.hsc" #-}

{-# LINE 1172 "src/Bindings/Posix.hsc" #-}

{-# LINE 1173 "src/Bindings/Posix.hsc" #-}

{-# LINE 1174 "src/Bindings/Posix.hsc" #-}

{-# LINE 1175 "src/Bindings/Posix.hsc" #-}
data Flock = Flock {flock'l_type :: CShort , flock'l_whence :: CShort , flock'l_start :: COff , flock'l_len :: COff , flock'l_pid :: CPid}
instance Storable Flock where {sizeOf _ = 24 ; alignment = sizeOf ; peek p = peekByteOff p 0 >>= \v0 -> peekByteOff p 2 >>= \v1 -> peekByteOff p 4 >>= \v2 -> peekByteOff p 12 >>= \v3 -> peekByteOff p 20 >>= \v4 -> return $ Flock v0 v1 v2 v3 v4  ; poke p (Flock v0 v1 v2 v3 v4 ) = pokeByteOff p 0 v0 >> pokeByteOff p 2 v1 >> pokeByteOff p 4 v2 >> pokeByteOff p 12 v3 >> pokeByteOff p 20 v4 >> return () }
{-# LINE 1176 "src/Bindings/Posix.hsc" #-}

foreign import ccall "creat" creat :: CString -> CMode -> IO CInt

{-# LINE 1178 "src/Bindings/Posix.hsc" #-}
foreign import ccall "posix_fadvise" posix_fadvise :: CInt -> COff -> COff -> CInt -> IO CInt

{-# LINE 1180 "src/Bindings/Posix.hsc" #-}
foreign import ccall "posix_fallocate" posix_fallocate :: CInt -> COff -> COff -> IO CInt

{-# LINE 1182 "src/Bindings/Posix.hsc" #-}


{-# LINE 1184 "src/Bindings/Posix.hsc" #-}

_MM_HARD = 1 :: CLong

{-# LINE 1186 "src/Bindings/Posix.hsc" #-}
_MM_SOFT = 2 :: CLong

{-# LINE 1187 "src/Bindings/Posix.hsc" #-}
_MM_FIRM = 4 :: CLong

{-# LINE 1188 "src/Bindings/Posix.hsc" #-}
_MM_APPL = 8 :: CLong

{-# LINE 1189 "src/Bindings/Posix.hsc" #-}
_MM_UTIL = 16 :: CLong

{-# LINE 1190 "src/Bindings/Posix.hsc" #-}
_MM_OPSYS = 32 :: CLong

{-# LINE 1191 "src/Bindings/Posix.hsc" #-}
_MM_RECOVER = 64 :: CLong

{-# LINE 1192 "src/Bindings/Posix.hsc" #-}
_MM_NRECOV = 128 :: CLong

{-# LINE 1193 "src/Bindings/Posix.hsc" #-}
_MM_HALT = 1 :: CLong

{-# LINE 1194 "src/Bindings/Posix.hsc" #-}
_MM_ERROR = 2 :: CLong

{-# LINE 1195 "src/Bindings/Posix.hsc" #-}
_MM_WARNING = 3 :: CLong

{-# LINE 1196 "src/Bindings/Posix.hsc" #-}
_MM_INFO = 4 :: CLong

{-# LINE 1197 "src/Bindings/Posix.hsc" #-}
_MM_NOSEV = 0 :: CLong

{-# LINE 1198 "src/Bindings/Posix.hsc" #-}
_MM_PRINT = 256 :: CLong

{-# LINE 1199 "src/Bindings/Posix.hsc" #-}
_MM_CONSOLE = 512 :: CLong

{-# LINE 1200 "src/Bindings/Posix.hsc" #-}

_MM_NULLLBL =  wordPtrToPtr (0 :: WordPtr) :: CString

{-# LINE 1202 "src/Bindings/Posix.hsc" #-}
_MM_NULLSEV = 0 :: CInt

{-# LINE 1203 "src/Bindings/Posix.hsc" #-}
_MM_NULLMC = 0 :: CLong

{-# LINE 1204 "src/Bindings/Posix.hsc" #-}
_MM_NULLTXT =  wordPtrToPtr (0 :: WordPtr) :: CString

{-# LINE 1205 "src/Bindings/Posix.hsc" #-}
_MM_NULLACT =  wordPtrToPtr (0 :: WordPtr) :: CString

{-# LINE 1206 "src/Bindings/Posix.hsc" #-}
_MM_NULLTAG =  wordPtrToPtr (0 :: WordPtr) :: CString

{-# LINE 1207 "src/Bindings/Posix.hsc" #-}

_MM_OK = 0 :: CInt

{-# LINE 1209 "src/Bindings/Posix.hsc" #-}
_MM_NOTOK = -1 :: CInt

{-# LINE 1210 "src/Bindings/Posix.hsc" #-}
_MM_NOMSG = 1 :: CInt

{-# LINE 1211 "src/Bindings/Posix.hsc" #-}
_MM_NOCON = 4 :: CInt

{-# LINE 1212 "src/Bindings/Posix.hsc" #-}
foreign import ccall "fmtmsg" fmtmsg :: CLong -> CString -> CInt -> CString -> CString -> CString -> IO CInt

{-# LINE 1214 "src/Bindings/Posix.hsc" #-}


{-# LINE 1216 "src/Bindings/Posix.hsc" #-}

_FNM_NOMATCH = 1 :: CInt

{-# LINE 1218 "src/Bindings/Posix.hsc" #-}
_FNM_PATHNAME = 1 :: CInt

{-# LINE 1219 "src/Bindings/Posix.hsc" #-}
_FNM_PERIOD = 4 :: CInt

{-# LINE 1220 "src/Bindings/Posix.hsc" #-}
_FNM_NOESCAPE = 2 :: CInt

{-# LINE 1221 "src/Bindings/Posix.hsc" #-}

foreign import ccall "fnmatch" fnmatch :: CString -> CString -> CInt -> IO CInt

{-# LINE 1223 "src/Bindings/Posix.hsc" #-}


{-# LINE 1225 "src/Bindings/Posix.hsc" #-}

-- #bindings_starttype struct FTW
-- #bindings_field base , CInt
-- #bindings_field level , CInt
-- #bindings_stoptype _

_FTW_F = 0 :: CInt

{-# LINE 1232 "src/Bindings/Posix.hsc" #-}
_FTW_D = 1 :: CInt

{-# LINE 1233 "src/Bindings/Posix.hsc" #-}
_FTW_DNR = 2 :: CInt

{-# LINE 1234 "src/Bindings/Posix.hsc" #-}
-- #bindings_int FTW_DP
_FTW_NS = 3 :: CInt

{-# LINE 1236 "src/Bindings/Posix.hsc" #-}
_FTW_SL = 4 :: CInt

{-# LINE 1237 "src/Bindings/Posix.hsc" #-}
-- #bindings_int FTW_SLN
-- #bindings_int FTW_PHYS
-- #bindings_int FTW_MOUNT
-- #bindings_int FTW_DEPTH
-- #bindings_int FTW_CHDIR

-- #bindings_function nftw , CString -> FunPtr (CString -> \
--   Ptr Stat -> CInt -> Ptr FTW -> IO CInt) -> CInt -> \
--   CInt -> IO CInt


{-# LINE 1248 "src/Bindings/Posix.hsc" #-}


{-# LINE 1250 "src/Bindings/Posix.hsc" #-}

{-# LINE 1251 "src/Bindings/Posix.hsc" #-}

{-# LINE 1252 "src/Bindings/Posix.hsc" #-}

{-# LINE 1253 "src/Bindings/Posix.hsc" #-}
data Glob_t = Glob_t {glob_t'gl_pathc :: CSize , glob_t'gl_pathv :: Ptr CString , glob_t'gl_offs :: CSize}
instance Storable Glob_t where {sizeOf _ = 36 ; alignment = sizeOf ; peek p = peekByteOff p 0 >>= \v0 -> peekByteOff p 4 >>= \v1 -> peekByteOff p 8 >>= \v2 -> return $ Glob_t v0 v1 v2  ; poke p (Glob_t v0 v1 v2 ) = pokeByteOff p 0 v0 >> pokeByteOff p 4 v1 >> pokeByteOff p 8 v2 >> return () }
{-# LINE 1254 "src/Bindings/Posix.hsc" #-}

_GLOB_APPEND = 32 :: CInt

{-# LINE 1256 "src/Bindings/Posix.hsc" #-}
_GLOB_DOOFFS = 8 :: CInt

{-# LINE 1257 "src/Bindings/Posix.hsc" #-}
_GLOB_ERR = 1 :: CInt

{-# LINE 1258 "src/Bindings/Posix.hsc" #-}
_GLOB_MARK = 2 :: CInt

{-# LINE 1259 "src/Bindings/Posix.hsc" #-}
_GLOB_NOCHECK = 16 :: CInt

{-# LINE 1260 "src/Bindings/Posix.hsc" #-}
_GLOB_NOESCAPE = 64 :: CInt

{-# LINE 1261 "src/Bindings/Posix.hsc" #-}
_GLOB_NOSORT = 4 :: CInt

{-# LINE 1262 "src/Bindings/Posix.hsc" #-}
_GLOB_ABORTED = 2 :: CInt

{-# LINE 1263 "src/Bindings/Posix.hsc" #-}
_GLOB_NOMATCH = 3 :: CInt

{-# LINE 1264 "src/Bindings/Posix.hsc" #-}
_GLOB_NOSPACE = 1 :: CInt

{-# LINE 1265 "src/Bindings/Posix.hsc" #-}

foreign import ccall "glob" glob :: CString -> CInt -> FunPtr (CString -> CInt -> IO CInt) -> IO CInt

{-# LINE 1268 "src/Bindings/Posix.hsc" #-}
foreign import ccall "globfree" globfree :: Ptr Glob_t -> IO ()

{-# LINE 1269 "src/Bindings/Posix.hsc" #-}


{-# LINE 1271 "src/Bindings/Posix.hsc" #-}


{-# LINE 1273 "src/Bindings/Posix.hsc" #-}

{-# LINE 1274 "src/Bindings/Posix.hsc" #-}

{-# LINE 1275 "src/Bindings/Posix.hsc" #-}

{-# LINE 1276 "src/Bindings/Posix.hsc" #-}
data Group = Group {group'gr_name :: CString , group'gr_gid :: CGid , group'gr_mem :: Ptr CString}
instance Storable Group where {sizeOf _ = 16 ; alignment = sizeOf ; peek p = peekByteOff p 0 >>= \v0 -> peekByteOff p 8 >>= \v1 -> peekByteOff p 12 >>= \v2 -> return $ Group v0 v1 v2  ; poke p (Group v0 v1 v2 ) = pokeByteOff p 0 v0 >> pokeByteOff p 8 v1 >> pokeByteOff p 12 v2 >> return () }
{-# LINE 1277 "src/Bindings/Posix.hsc" #-}

foreign import ccall "endgrent" endgrent :: IO ()

{-# LINE 1279 "src/Bindings/Posix.hsc" #-}
foreign import ccall "getgrent" getgrent :: IO (Ptr Group)

{-# LINE 1280 "src/Bindings/Posix.hsc" #-}
foreign import ccall "getgrgid" getgrgid :: CGid -> IO (Ptr Group)

{-# LINE 1281 "src/Bindings/Posix.hsc" #-}
foreign import ccall "getgrgid_r" getgrgid_r :: CGid -> Ptr Group -> CString -> CSize -> Ptr (Ptr Group) -> IO CInt

{-# LINE 1283 "src/Bindings/Posix.hsc" #-}
foreign import ccall "getgrnam" getgrnam :: CString -> IO (Ptr Group)

{-# LINE 1284 "src/Bindings/Posix.hsc" #-}
foreign import ccall "getgrnam_r" getgrnam_r :: CString -> Ptr Group -> CString -> CSize -> Ptr (Ptr Group) -> IO CInt

{-# LINE 1286 "src/Bindings/Posix.hsc" #-}
foreign import ccall "setgrent" setgrent :: IO ()

{-# LINE 1287 "src/Bindings/Posix.hsc" #-}


{-# LINE 1289 "src/Bindings/Posix.hsc" #-}

type CIconv = Word32
{-# LINE 1291 "src/Bindings/Posix.hsc" #-}

foreign import ccall "iconv" iconv :: CIconv -> Ptr CString -> Ptr CSize -> Ptr CString -> Ptr CSize -> IO CSize

{-# LINE 1294 "src/Bindings/Posix.hsc" #-}
foreign import ccall "iconv_close" iconv_close :: CIconv -> IO CInt

{-# LINE 1295 "src/Bindings/Posix.hsc" #-}
foreign import ccall "iconv_open" iconv_open :: CString -> CString -> IO CIconv

{-# LINE 1296 "src/Bindings/Posix.hsc" #-}


{-# LINE 1298 "src/Bindings/Posix.hsc" #-}

type CNlItem = Int32
{-# LINE 1300 "src/Bindings/Posix.hsc" #-}

_CODESET = 14 :: CNlItem

{-# LINE 1302 "src/Bindings/Posix.hsc" #-}
_D_T_FMT = 131112 :: CNlItem

{-# LINE 1303 "src/Bindings/Posix.hsc" #-}
_D_FMT = 131113 :: CNlItem

{-# LINE 1304 "src/Bindings/Posix.hsc" #-}
_T_FMT = 131114 :: CNlItem

{-# LINE 1305 "src/Bindings/Posix.hsc" #-}
_T_FMT_AMPM = 131115 :: CNlItem

{-# LINE 1306 "src/Bindings/Posix.hsc" #-}
_AM_STR = 131110 :: CNlItem

{-# LINE 1307 "src/Bindings/Posix.hsc" #-}
_PM_STR = 131111 :: CNlItem

{-# LINE 1308 "src/Bindings/Posix.hsc" #-}
_DAY_1 = 131079 :: CNlItem

{-# LINE 1309 "src/Bindings/Posix.hsc" #-}
_DAY_2 = 131080 :: CNlItem

{-# LINE 1310 "src/Bindings/Posix.hsc" #-}
_DAY_3 = 131081 :: CNlItem

{-# LINE 1311 "src/Bindings/Posix.hsc" #-}
_DAY_4 = 131082 :: CNlItem

{-# LINE 1312 "src/Bindings/Posix.hsc" #-}
_DAY_5 = 131083 :: CNlItem

{-# LINE 1313 "src/Bindings/Posix.hsc" #-}
_DAY_6 = 131084 :: CNlItem

{-# LINE 1314 "src/Bindings/Posix.hsc" #-}
_DAY_7 = 131085 :: CNlItem

{-# LINE 1315 "src/Bindings/Posix.hsc" #-}
_ABDAY_1 = 131072 :: CNlItem

{-# LINE 1316 "src/Bindings/Posix.hsc" #-}
_ABDAY_2 = 131073 :: CNlItem

{-# LINE 1317 "src/Bindings/Posix.hsc" #-}
_ABDAY_3 = 131074 :: CNlItem

{-# LINE 1318 "src/Bindings/Posix.hsc" #-}
_ABDAY_4 = 131075 :: CNlItem

{-# LINE 1319 "src/Bindings/Posix.hsc" #-}
_ABDAY_5 = 131076 :: CNlItem

{-# LINE 1320 "src/Bindings/Posix.hsc" #-}
_ABDAY_6 = 131077 :: CNlItem

{-# LINE 1321 "src/Bindings/Posix.hsc" #-}
_ABDAY_7 = 131078 :: CNlItem

{-# LINE 1322 "src/Bindings/Posix.hsc" #-}
_MON_1 = 131098 :: CNlItem

{-# LINE 1323 "src/Bindings/Posix.hsc" #-}
_MON_2 = 131099 :: CNlItem

{-# LINE 1324 "src/Bindings/Posix.hsc" #-}
_MON_3 = 131100 :: CNlItem

{-# LINE 1325 "src/Bindings/Posix.hsc" #-}
_MON_4 = 131101 :: CNlItem

{-# LINE 1326 "src/Bindings/Posix.hsc" #-}
_MON_5 = 131102 :: CNlItem

{-# LINE 1327 "src/Bindings/Posix.hsc" #-}
_MON_6 = 131103 :: CNlItem

{-# LINE 1328 "src/Bindings/Posix.hsc" #-}
_MON_7 = 131104 :: CNlItem

{-# LINE 1329 "src/Bindings/Posix.hsc" #-}
_MON_8 = 131105 :: CNlItem

{-# LINE 1330 "src/Bindings/Posix.hsc" #-}
_MON_9 = 131106 :: CNlItem

{-# LINE 1331 "src/Bindings/Posix.hsc" #-}
_MON_10 = 131107 :: CNlItem

{-# LINE 1332 "src/Bindings/Posix.hsc" #-}
_MON_11 = 131108 :: CNlItem

{-# LINE 1333 "src/Bindings/Posix.hsc" #-}
_MON_12 = 131109 :: CNlItem

{-# LINE 1334 "src/Bindings/Posix.hsc" #-}
_ABMON_1 = 131086 :: CNlItem

{-# LINE 1335 "src/Bindings/Posix.hsc" #-}
_ABMON_2 = 131087 :: CNlItem

{-# LINE 1336 "src/Bindings/Posix.hsc" #-}
_ABMON_3 = 131088 :: CNlItem

{-# LINE 1337 "src/Bindings/Posix.hsc" #-}
_ABMON_4 = 131089 :: CNlItem

{-# LINE 1338 "src/Bindings/Posix.hsc" #-}
_ABMON_5 = 131090 :: CNlItem

{-# LINE 1339 "src/Bindings/Posix.hsc" #-}
_ABMON_6 = 131091 :: CNlItem

{-# LINE 1340 "src/Bindings/Posix.hsc" #-}
_ABMON_7 = 131092 :: CNlItem

{-# LINE 1341 "src/Bindings/Posix.hsc" #-}
_ABMON_8 = 131093 :: CNlItem

{-# LINE 1342 "src/Bindings/Posix.hsc" #-}
_ABMON_9 = 131094 :: CNlItem

{-# LINE 1343 "src/Bindings/Posix.hsc" #-}
_ABMON_10 = 131095 :: CNlItem

{-# LINE 1344 "src/Bindings/Posix.hsc" #-}
_ABMON_11 = 131096 :: CNlItem

{-# LINE 1345 "src/Bindings/Posix.hsc" #-}
_ABMON_12 = 131097 :: CNlItem

{-# LINE 1346 "src/Bindings/Posix.hsc" #-}
_ERA = 131116 :: CNlItem

{-# LINE 1347 "src/Bindings/Posix.hsc" #-}
_ERA_D_FMT = 131118 :: CNlItem

{-# LINE 1348 "src/Bindings/Posix.hsc" #-}
_ERA_D_T_FMT = 131120 :: CNlItem

{-# LINE 1349 "src/Bindings/Posix.hsc" #-}
_ERA_T_FMT = 131121 :: CNlItem

{-# LINE 1350 "src/Bindings/Posix.hsc" #-}
_ALT_DIGITS = 131119 :: CNlItem

{-# LINE 1351 "src/Bindings/Posix.hsc" #-}
_RADIXCHAR = 65536 :: CNlItem

{-# LINE 1352 "src/Bindings/Posix.hsc" #-}
_THOUSEP = 65537 :: CNlItem

{-# LINE 1353 "src/Bindings/Posix.hsc" #-}
_YESEXPR = 327680 :: CNlItem

{-# LINE 1354 "src/Bindings/Posix.hsc" #-}
_NOEXPR = 327681 :: CNlItem

{-# LINE 1355 "src/Bindings/Posix.hsc" #-}
_CRNCYSTR = 262159 :: CNlItem

{-# LINE 1356 "src/Bindings/Posix.hsc" #-}

foreign import ccall "nl_langinfo" nl_langinfo :: CNlItem -> IO CString

{-# LINE 1358 "src/Bindings/Posix.hsc" #-}


{-# LINE 1360 "src/Bindings/Posix.hsc" #-}

foreign import ccall "basename" basename :: CString -> IO CString

{-# LINE 1362 "src/Bindings/Posix.hsc" #-}
foreign import ccall "dirname" dirname :: CString -> IO CString

{-# LINE 1363 "src/Bindings/Posix.hsc" #-}


{-# LINE 1365 "src/Bindings/Posix.hsc" #-}

_LC_MESSAGES = 5 :: CInt

{-# LINE 1367 "src/Bindings/Posix.hsc" #-}

-- #bindings_int LC_COLLATE_MASK
-- #bindings_int LC_CTYPE_MASK
-- #bindings_int LC_MESSAGES_MASK
-- #bindings_int LC_MONETARY_MASK
-- #bindings_int LC_NUMERIC_MASK
-- #bindings_int LC_TIME_MASK
-- #bindings_int LC_ALL_MASK

-- #bindings_integer_like LC_GLOBAL_LOCALE , CLocale

-- type CLocale = #bindings_equivalent_integer locale_t

-- #bindings_function duplocale , CLocale -> IO CLocale
-- #bindings_function freelocale , CLocale -> IO CLocale
-- #bindings_function newlocale , CInt -> CString -> CLocale -> IO CLocale
-- #bindings_function uselocale , CLocale -> IO CLocale


{-# LINE 1386 "src/Bindings/Posix.hsc" #-}

_M_E = 2.718282e+00 :: (Fractional a) => a

{-# LINE 1388 "src/Bindings/Posix.hsc" #-}
_M_LOG2E = 1.442695e+00 :: (Fractional a) => a

{-# LINE 1389 "src/Bindings/Posix.hsc" #-}
_M_LOG10E = 4.342945e-01 :: (Fractional a) => a

{-# LINE 1390 "src/Bindings/Posix.hsc" #-}
_M_LN2 = 6.931472e-01 :: (Fractional a) => a

{-# LINE 1391 "src/Bindings/Posix.hsc" #-}
_M_LN10 = 2.302585e+00 :: (Fractional a) => a

{-# LINE 1392 "src/Bindings/Posix.hsc" #-}
_M_PI = 3.141593e+00 :: (Fractional a) => a

{-# LINE 1393 "src/Bindings/Posix.hsc" #-}
_M_PI_2 = 1.570796e+00 :: (Fractional a) => a

{-# LINE 1394 "src/Bindings/Posix.hsc" #-}
_M_PI_4 = 7.853982e-01 :: (Fractional a) => a

{-# LINE 1395 "src/Bindings/Posix.hsc" #-}
_M_1_PI = 3.183099e-01 :: (Fractional a) => a

{-# LINE 1396 "src/Bindings/Posix.hsc" #-}
_M_2_PI = 6.366198e-01 :: (Fractional a) => a

{-# LINE 1397 "src/Bindings/Posix.hsc" #-}
_M_2_SQRTPI = 1.128379e+00 :: (Fractional a) => a

{-# LINE 1398 "src/Bindings/Posix.hsc" #-}
_M_SQRT2 = 1.414214e+00 :: (Fractional a) => a

{-# LINE 1399 "src/Bindings/Posix.hsc" #-}
_M_SQRT1_2 = 7.071068e-01 :: (Fractional a) => a

{-# LINE 1400 "src/Bindings/Posix.hsc" #-}

foreign import ccall "j0" j0 :: CDouble -> IO CDouble

{-# LINE 1402 "src/Bindings/Posix.hsc" #-}
foreign import ccall "j1" j1 :: CDouble -> IO CDouble

{-# LINE 1403 "src/Bindings/Posix.hsc" #-}
foreign import ccall "jn" jn :: CInt -> CDouble -> IO CDouble

{-# LINE 1404 "src/Bindings/Posix.hsc" #-}

foreign import ccall "y0" y0 :: CDouble -> IO CDouble

{-# LINE 1406 "src/Bindings/Posix.hsc" #-}
foreign import ccall "y1" y1 :: CDouble -> IO CDouble

{-# LINE 1407 "src/Bindings/Posix.hsc" #-}
foreign import ccall "yn" yn :: CInt -> CDouble -> IO CDouble

{-# LINE 1408 "src/Bindings/Posix.hsc" #-}

foreign import ccall "&signgam" signgam :: GlobalVariable (Ptr (CInt))

{-# LINE 1410 "src/Bindings/Posix.hsc" #-}


{-# LINE 1412 "src/Bindings/Posix.hsc" #-}

type CMqd = Int32
{-# LINE 1414 "src/Bindings/Posix.hsc" #-}


{-# LINE 1416 "src/Bindings/Posix.hsc" #-}

{-# LINE 1417 "src/Bindings/Posix.hsc" #-}

{-# LINE 1418 "src/Bindings/Posix.hsc" #-}

{-# LINE 1419 "src/Bindings/Posix.hsc" #-}

{-# LINE 1420 "src/Bindings/Posix.hsc" #-}
data Mq_attr = Mq_attr {mq_attr'mq_flags :: CLong , mq_attr'mq_maxmsg :: CLong , mq_attr'mq_msgsize :: CLong , mq_attr'mq_curmsgs :: CLong}
instance Storable Mq_attr where {sizeOf _ = 32 ; alignment = sizeOf ; peek p = peekByteOff p 0 >>= \v0 -> peekByteOff p 4 >>= \v1 -> peekByteOff p 8 >>= \v2 -> peekByteOff p 12 >>= \v3 -> return $ Mq_attr v0 v1 v2 v3  ; poke p (Mq_attr v0 v1 v2 v3 ) = pokeByteOff p 0 v0 >> pokeByteOff p 4 v1 >> pokeByteOff p 8 v2 >> pokeByteOff p 12 v3 >> return () }
{-# LINE 1421 "src/Bindings/Posix.hsc" #-}

foreign import ccall "mq_close" mq_close :: CMqd -> IO CInt

{-# LINE 1423 "src/Bindings/Posix.hsc" #-}
foreign import ccall "mq_getattr" mq_getattr :: CMqd -> Ptr Mq_attr -> IO CInt

{-# LINE 1424 "src/Bindings/Posix.hsc" #-}
foreign import ccall "mq_notify" mq_notify :: CMqd -> Ptr Sigevent -> IO CInt

{-# LINE 1425 "src/Bindings/Posix.hsc" #-}
foreign import ccall "mq_receive" mq_receive :: CMqd -> CString -> CSize -> Ptr CUInt -> IO CSSize

{-# LINE 1427 "src/Bindings/Posix.hsc" #-}
foreign import ccall "mq_send" mq_send :: CMqd -> CString -> CSize -> CUInt -> IO CInt

{-# LINE 1429 "src/Bindings/Posix.hsc" #-}
foreign import ccall "mq_setattr" mq_setattr :: CMqd -> Ptr Mq_attr -> Ptr Mq_attr -> IO CInt

{-# LINE 1431 "src/Bindings/Posix.hsc" #-}
foreign import ccall "mq_timedreceive" mq_timedreceive :: CMqd -> CString -> CSize -> Ptr CUInt -> Ptr Timespec -> IO CSSize

{-# LINE 1433 "src/Bindings/Posix.hsc" #-}
foreign import ccall "mq_timedsend" mq_timedsend :: CMqd -> CString -> CSize -> CUInt -> Ptr Timespec -> IO CInt

{-# LINE 1435 "src/Bindings/Posix.hsc" #-}
foreign import ccall "mq_unlink" mq_unlink :: CString -> IO CInt

{-# LINE 1436 "src/Bindings/Posix.hsc" #-}


{-# LINE 1438 "src/Bindings/Posix.hsc" #-}


{-# LINE 1440 "src/Bindings/Posix.hsc" #-}

{-# LINE 1441 "src/Bindings/Posix.hsc" #-}

{-# LINE 1442 "src/Bindings/Posix.hsc" #-}
data If_nameindex = If_nameindex {if_nameindex'if_index :: CUInt , if_nameindex'if_name :: CString}
instance Storable If_nameindex where {sizeOf _ = 8 ; alignment = sizeOf ; peek p = peekByteOff p 0 >>= \v0 -> peekByteOff p 4 >>= \v1 -> return $ If_nameindex v0 v1  ; poke p (If_nameindex v0 v1 ) = pokeByteOff p 0 v0 >> pokeByteOff p 4 v1 >> return () }
{-# LINE 1443 "src/Bindings/Posix.hsc" #-}

_IF_NAMESIZE = 16 :: (Num a) => a

{-# LINE 1445 "src/Bindings/Posix.hsc" #-}

foreign import ccall "if_freenameindex" if_freenameindex :: Ptr If_nameindex -> IO ()

{-# LINE 1447 "src/Bindings/Posix.hsc" #-}
foreign import ccall "if_indextoname" if_indextoname :: CUInt -> CString -> IO CString

{-# LINE 1448 "src/Bindings/Posix.hsc" #-}
foreign import ccall "if_nameindex" if_nameindex :: IO (Ptr If_nameindex)

{-# LINE 1449 "src/Bindings/Posix.hsc" #-}
foreign import ccall "if_nametoindex" if_nametoindex :: CString -> IO CUInt

{-# LINE 1450 "src/Bindings/Posix.hsc" #-}


{-# LINE 1452 "src/Bindings/Posix.hsc" #-}


{-# LINE 1454 "src/Bindings/Posix.hsc" #-}

{-# LINE 1455 "src/Bindings/Posix.hsc" #-}

{-# LINE 1456 "src/Bindings/Posix.hsc" #-}

{-# LINE 1457 "src/Bindings/Posix.hsc" #-}

{-# LINE 1458 "src/Bindings/Posix.hsc" #-}

{-# LINE 1459 "src/Bindings/Posix.hsc" #-}
data Hostent = Hostent {hostent'h_name :: CString , hostent'h_aliases :: Ptr CString , hostent'h_addrtype :: CInt , hostent'h_length :: CInt , hostent'h_addr_list :: Ptr CString}
instance Storable Hostent where {sizeOf _ = 20 ; alignment = sizeOf ; peek p = peekByteOff p 0 >>= \v0 -> peekByteOff p 4 >>= \v1 -> peekByteOff p 8 >>= \v2 -> peekByteOff p 12 >>= \v3 -> peekByteOff p 16 >>= \v4 -> return $ Hostent v0 v1 v2 v3 v4  ; poke p (Hostent v0 v1 v2 v3 v4 ) = pokeByteOff p 0 v0 >> pokeByteOff p 4 v1 >> pokeByteOff p 8 v2 >> pokeByteOff p 12 v3 >> pokeByteOff p 16 v4 >> return () }
{-# LINE 1460 "src/Bindings/Posix.hsc" #-}


{-# LINE 1462 "src/Bindings/Posix.hsc" #-}

{-# LINE 1463 "src/Bindings/Posix.hsc" #-}

{-# LINE 1464 "src/Bindings/Posix.hsc" #-}

{-# LINE 1465 "src/Bindings/Posix.hsc" #-}

{-# LINE 1466 "src/Bindings/Posix.hsc" #-}
data Netent = Netent {netent'n_name :: CString , netent'n_aliases :: Ptr CString , netent'n_addrtype :: CInt , netent'n_net :: Word32}
instance Storable Netent where {sizeOf _ = 16 ; alignment = sizeOf ; peek p = peekByteOff p 0 >>= \v0 -> peekByteOff p 4 >>= \v1 -> peekByteOff p 8 >>= \v2 -> peekByteOff p 12 >>= \v3 -> return $ Netent v0 v1 v2 v3  ; poke p (Netent v0 v1 v2 v3 ) = pokeByteOff p 0 v0 >> pokeByteOff p 4 v1 >> pokeByteOff p 8 v2 >> pokeByteOff p 12 v3 >> return () }
{-# LINE 1467 "src/Bindings/Posix.hsc" #-}


{-# LINE 1469 "src/Bindings/Posix.hsc" #-}

{-# LINE 1470 "src/Bindings/Posix.hsc" #-}

{-# LINE 1471 "src/Bindings/Posix.hsc" #-}

{-# LINE 1472 "src/Bindings/Posix.hsc" #-}
data Protoent = Protoent {protoent'p_name :: CString , protoent'p_aliases :: Ptr CString , protoent'p_proto :: CInt}
instance Storable Protoent where {sizeOf _ = 12 ; alignment = sizeOf ; peek p = peekByteOff p 0 >>= \v0 -> peekByteOff p 4 >>= \v1 -> peekByteOff p 8 >>= \v2 -> return $ Protoent v0 v1 v2  ; poke p (Protoent v0 v1 v2 ) = pokeByteOff p 0 v0 >> pokeByteOff p 4 v1 >> pokeByteOff p 8 v2 >> return () }
{-# LINE 1473 "src/Bindings/Posix.hsc" #-}


{-# LINE 1475 "src/Bindings/Posix.hsc" #-}

{-# LINE 1476 "src/Bindings/Posix.hsc" #-}

{-# LINE 1477 "src/Bindings/Posix.hsc" #-}

{-# LINE 1478 "src/Bindings/Posix.hsc" #-}

{-# LINE 1479 "src/Bindings/Posix.hsc" #-}
data Servent = Servent {servent's_name :: CString , servent's_aliases :: Ptr CString , servent's_port :: CInt , servent's_proto :: CString}
instance Storable Servent where {sizeOf _ = 16 ; alignment = sizeOf ; peek p = peekByteOff p 0 >>= \v0 -> peekByteOff p 4 >>= \v1 -> peekByteOff p 8 >>= \v2 -> peekByteOff p 12 >>= \v3 -> return $ Servent v0 v1 v2 v3  ; poke p (Servent v0 v1 v2 v3 ) = pokeByteOff p 0 v0 >> pokeByteOff p 4 v1 >> pokeByteOff p 8 v2 >> pokeByteOff p 12 v3 >> return () }
{-# LINE 1480 "src/Bindings/Posix.hsc" #-}


{-# LINE 1482 "src/Bindings/Posix.hsc" #-}

{-# LINE 1483 "src/Bindings/Posix.hsc" #-}

{-# LINE 1484 "src/Bindings/Posix.hsc" #-}

{-# LINE 1485 "src/Bindings/Posix.hsc" #-}

{-# LINE 1486 "src/Bindings/Posix.hsc" #-}

{-# LINE 1487 "src/Bindings/Posix.hsc" #-}

{-# LINE 1488 "src/Bindings/Posix.hsc" #-}

{-# LINE 1489 "src/Bindings/Posix.hsc" #-}

{-# LINE 1490 "src/Bindings/Posix.hsc" #-}
data Addrinfo = Addrinfo {addrinfo'ai_flags :: CInt , addrinfo'ai_family :: CInt , addrinfo'ai_socktype :: CInt , addrinfo'ai_protocol :: CInt , addrinfo'ai_addrlen :: CSocklen , addrinfo'ai_addr :: Ptr Sockaddr , addrinfo'ai_canonname :: CString , addrinfo'ai_next :: Ptr Addrinfo}
instance Storable Addrinfo where {sizeOf _ = 32 ; alignment = sizeOf ; peek p = peekByteOff p 0 >>= \v0 -> peekByteOff p 4 >>= \v1 -> peekByteOff p 8 >>= \v2 -> peekByteOff p 12 >>= \v3 -> peekByteOff p 16 >>= \v4 -> peekByteOff p 20 >>= \v5 -> peekByteOff p 24 >>= \v6 -> peekByteOff p 28 >>= \v7 -> return $ Addrinfo v0 v1 v2 v3 v4 v5 v6 v7  ; poke p (Addrinfo v0 v1 v2 v3 v4 v5 v6 v7 ) = pokeByteOff p 0 v0 >> pokeByteOff p 4 v1 >> pokeByteOff p 8 v2 >> pokeByteOff p 12 v3 >> pokeByteOff p 16 v4 >> pokeByteOff p 20 v5 >> pokeByteOff p 24 v6 >> pokeByteOff p 28 v7 >> return () }
{-# LINE 1491 "src/Bindings/Posix.hsc" #-}

_AI_PASSIVE = 1 :: CInt

{-# LINE 1493 "src/Bindings/Posix.hsc" #-}
_AI_CANONNAME = 2 :: CInt

{-# LINE 1494 "src/Bindings/Posix.hsc" #-}
_AI_NUMERICHOST = 4 :: CInt

{-# LINE 1495 "src/Bindings/Posix.hsc" #-}
_AI_NUMERICSERV = 1024 :: CInt

{-# LINE 1496 "src/Bindings/Posix.hsc" #-}
_AI_V4MAPPED = 8 :: CInt

{-# LINE 1497 "src/Bindings/Posix.hsc" #-}
_AI_ALL = 16 :: CInt

{-# LINE 1498 "src/Bindings/Posix.hsc" #-}
_AI_ADDRCONFIG = 32 :: CInt

{-# LINE 1499 "src/Bindings/Posix.hsc" #-}
_NI_NOFQDN = 4 :: CInt

{-# LINE 1500 "src/Bindings/Posix.hsc" #-}
_NI_NUMERICHOST = 1 :: CInt

{-# LINE 1501 "src/Bindings/Posix.hsc" #-}
_NI_NAMEREQD = 8 :: CInt

{-# LINE 1502 "src/Bindings/Posix.hsc" #-}
_NI_NUMERICSERV = 2 :: CInt

{-# LINE 1503 "src/Bindings/Posix.hsc" #-}
-- #bindings_int NI_NUMERICSCOPE
_NI_DGRAM = 16 :: CInt

{-# LINE 1505 "src/Bindings/Posix.hsc" #-}
_EAI_AGAIN = -3 :: CInt

{-# LINE 1506 "src/Bindings/Posix.hsc" #-}
_EAI_BADFLAGS = -1 :: CInt

{-# LINE 1507 "src/Bindings/Posix.hsc" #-}
_EAI_FAIL = -4 :: CInt

{-# LINE 1508 "src/Bindings/Posix.hsc" #-}
_EAI_FAMILY = -6 :: CInt

{-# LINE 1509 "src/Bindings/Posix.hsc" #-}
_EAI_MEMORY = -10 :: CInt

{-# LINE 1510 "src/Bindings/Posix.hsc" #-}
_EAI_NONAME = -2 :: CInt

{-# LINE 1511 "src/Bindings/Posix.hsc" #-}
_EAI_SERVICE = -8 :: CInt

{-# LINE 1512 "src/Bindings/Posix.hsc" #-}
_EAI_SOCKTYPE = -7 :: CInt

{-# LINE 1513 "src/Bindings/Posix.hsc" #-}
_EAI_SYSTEM = -11 :: CInt

{-# LINE 1514 "src/Bindings/Posix.hsc" #-}
_EAI_OVERFLOW = -12 :: CInt

{-# LINE 1515 "src/Bindings/Posix.hsc" #-}

foreign import ccall "endhostent" endhostent :: IO ()

{-# LINE 1517 "src/Bindings/Posix.hsc" #-}
foreign import ccall "endnetent" endnetent :: IO ()

{-# LINE 1518 "src/Bindings/Posix.hsc" #-}
foreign import ccall "endprotoent" endprotoent :: IO ()

{-# LINE 1519 "src/Bindings/Posix.hsc" #-}
foreign import ccall "endservent" endservent :: IO ()

{-# LINE 1520 "src/Bindings/Posix.hsc" #-}
foreign import ccall "freeaddrinfo" freeaddrinfo :: Ptr Addrinfo -> IO ()

{-# LINE 1521 "src/Bindings/Posix.hsc" #-}
foreign import ccall "gai_strerror" gai_strerror :: CInt -> IO CString

{-# LINE 1522 "src/Bindings/Posix.hsc" #-}
foreign import ccall "getaddrinfo" getaddrinfo :: CString -> CString -> Ptr Addrinfo -> Ptr (Ptr Addrinfo) -> IO CInt

{-# LINE 1524 "src/Bindings/Posix.hsc" #-}
foreign import ccall "gethostent" gethostent :: IO (Ptr Hostent)

{-# LINE 1525 "src/Bindings/Posix.hsc" #-}
foreign import ccall "getnameinfo" getnameinfo :: Ptr Sockaddr -> CSocklen -> CString -> CSocklen -> CString -> CSocklen -> CInt -> IO CInt

{-# LINE 1528 "src/Bindings/Posix.hsc" #-}
foreign import ccall "getnetbyaddr" getnetbyaddr :: Word32 -> CInt -> IO (Ptr Netent)

{-# LINE 1529 "src/Bindings/Posix.hsc" #-}
foreign import ccall "getnetbyname" getnetbyname :: CString -> IO (Ptr Netent)

{-# LINE 1530 "src/Bindings/Posix.hsc" #-}
foreign import ccall "getnetent" getnetent :: IO (Ptr Netent)

{-# LINE 1531 "src/Bindings/Posix.hsc" #-}
foreign import ccall "getprotobyname" getprotobyname :: CString -> IO (Ptr Protoent)

{-# LINE 1532 "src/Bindings/Posix.hsc" #-}
foreign import ccall "getprotobynumber" getprotobynumber :: CInt -> IO (Ptr Protoent)

{-# LINE 1533 "src/Bindings/Posix.hsc" #-}
foreign import ccall "getprotoent" getprotoent :: IO (Ptr Protoent)

{-# LINE 1534 "src/Bindings/Posix.hsc" #-}
foreign import ccall "getservbyname" getservbyname :: CString -> CString -> IO (Ptr Servent)

{-# LINE 1536 "src/Bindings/Posix.hsc" #-}
foreign import ccall "getservbyport" getservbyport :: CInt -> CString -> IO (Ptr Servent)

{-# LINE 1538 "src/Bindings/Posix.hsc" #-}
foreign import ccall "getservent" getservent :: IO (Ptr Servent)

{-# LINE 1539 "src/Bindings/Posix.hsc" #-}
foreign import ccall "sethostent" sethostent :: CInt -> IO ()

{-# LINE 1540 "src/Bindings/Posix.hsc" #-}
foreign import ccall "setnetent" setnetent :: CInt -> IO ()

{-# LINE 1541 "src/Bindings/Posix.hsc" #-}
foreign import ccall "setprotoent" setprotoent :: CInt -> IO ()

{-# LINE 1542 "src/Bindings/Posix.hsc" #-}
foreign import ccall "setservent" setservent :: CInt -> IO ()

{-# LINE 1543 "src/Bindings/Posix.hsc" #-}


{-# LINE 1545 "src/Bindings/Posix.hsc" #-}

type CInPort = Word16
{-# LINE 1547 "src/Bindings/Posix.hsc" #-}
type CInAddr = Word32
{-# LINE 1548 "src/Bindings/Posix.hsc" #-}


{-# LINE 1550 "src/Bindings/Posix.hsc" #-}

{-# LINE 1551 "src/Bindings/Posix.hsc" #-}
data In_addr = In_addr {in_addr's_addr :: CInAddr}
instance Storable In_addr where {sizeOf _ = 4 ; alignment = sizeOf ; peek p = peekByteOff p 0 >>= \v0 -> return $ In_addr v0  ; poke p (In_addr v0 ) = pokeByteOff p 0 v0 >> return () }
{-# LINE 1552 "src/Bindings/Posix.hsc" #-}


{-# LINE 1554 "src/Bindings/Posix.hsc" #-}

{-# LINE 1555 "src/Bindings/Posix.hsc" #-}

{-# LINE 1556 "src/Bindings/Posix.hsc" #-}

{-# LINE 1557 "src/Bindings/Posix.hsc" #-}
data Sockaddr_in = Sockaddr_in {sockaddr_in'sin_family :: CSaFamily , sockaddr_in'sin_port :: CInPort , sockaddr_in'sin_addr :: In_addr}
instance Storable Sockaddr_in where {sizeOf _ = 16 ; alignment = sizeOf ; peek p = peekByteOff p 0 >>= \v0 -> peekByteOff p 2 >>= \v1 -> peekByteOff p 4 >>= \v2 -> return $ Sockaddr_in v0 v1 v2  ; poke p (Sockaddr_in v0 v1 v2 ) = pokeByteOff p 0 v0 >> pokeByteOff p 2 v1 >> pokeByteOff p 4 v2 >> return () }
{-# LINE 1558 "src/Bindings/Posix.hsc" #-}


{-# LINE 1560 "src/Bindings/Posix.hsc" #-}

{-# LINE 1561 "src/Bindings/Posix.hsc" #-}
data In6_addr = In6_addr {in6_addr's6_addr :: Ptr Word8}
instance Storable In6_addr where {sizeOf _ = 16 ; alignment = sizeOf ; peek p = peekByteOff p 0 >>= \v0 -> return $ In6_addr v0  ; poke p (In6_addr v0 ) = pokeByteOff p 0 v0 >> return () }
{-# LINE 1562 "src/Bindings/Posix.hsc" #-}


{-# LINE 1564 "src/Bindings/Posix.hsc" #-}

{-# LINE 1565 "src/Bindings/Posix.hsc" #-}

{-# LINE 1566 "src/Bindings/Posix.hsc" #-}

{-# LINE 1567 "src/Bindings/Posix.hsc" #-}

{-# LINE 1568 "src/Bindings/Posix.hsc" #-}

{-# LINE 1569 "src/Bindings/Posix.hsc" #-}
data Sockaddr_in6 = Sockaddr_in6 {sockaddr_in6'sin6_family :: CSaFamily , sockaddr_in6'sin6_port :: CInPort , sockaddr_in6'sin6_flowinfo :: Word32 , sockaddr_in6'sin6_addr :: In6_addr , sockaddr_in6'sin6_scope_id :: Word32}
instance Storable Sockaddr_in6 where {sizeOf _ = 28 ; alignment = sizeOf ; peek p = peekByteOff p 0 >>= \v0 -> peekByteOff p 2 >>= \v1 -> peekByteOff p 4 >>= \v2 -> peekByteOff p 8 >>= \v3 -> peekByteOff p 24 >>= \v4 -> return $ Sockaddr_in6 v0 v1 v2 v3 v4  ; poke p (Sockaddr_in6 v0 v1 v2 v3 v4 ) = pokeByteOff p 0 v0 >> pokeByteOff p 2 v1 >> pokeByteOff p 4 v2 >> pokeByteOff p 8 v3 >> pokeByteOff p 24 v4 >> return () }
{-# LINE 1570 "src/Bindings/Posix.hsc" #-}


{-# LINE 1572 "src/Bindings/Posix.hsc" #-}

{-# LINE 1573 "src/Bindings/Posix.hsc" #-}

{-# LINE 1574 "src/Bindings/Posix.hsc" #-}
data Ipv6_mreq = Ipv6_mreq {ipv6_mreq'ipv6mr_multiaddr :: In6_addr , ipv6_mreq'ipv6mr_interface :: CUInt}
instance Storable Ipv6_mreq where {sizeOf _ = 20 ; alignment = sizeOf ; peek p = peekByteOff p 0 >>= \v0 -> peekByteOff p 16 >>= \v1 -> return $ Ipv6_mreq v0 v1  ; poke p (Ipv6_mreq v0 v1 ) = pokeByteOff p 0 v0 >> pokeByteOff p 16 v1 >> return () }
{-# LINE 1575 "src/Bindings/Posix.hsc" #-}

_IPPROTO_IP = 0 :: CInt

{-# LINE 1577 "src/Bindings/Posix.hsc" #-}
_IPPROTO_IPV6 = 41 :: CInt

{-# LINE 1578 "src/Bindings/Posix.hsc" #-}
_IPPROTO_ICMP = 1 :: CInt

{-# LINE 1579 "src/Bindings/Posix.hsc" #-}
_IPPROTO_RAW = 255 :: CInt

{-# LINE 1580 "src/Bindings/Posix.hsc" #-}
_IPPROTO_TCP = 6 :: CInt

{-# LINE 1581 "src/Bindings/Posix.hsc" #-}
_IPPROTO_UDP = 17 :: CInt

{-# LINE 1582 "src/Bindings/Posix.hsc" #-}

_INADDR_ANY = 0 :: (Num a) => a

{-# LINE 1584 "src/Bindings/Posix.hsc" #-}
_INADDR_BROADCAST = 4294967295 :: (Num a) => a

{-# LINE 1585 "src/Bindings/Posix.hsc" #-}

_INET_ADDRSTRLEN = 16 :: (Num a) => a

{-# LINE 1587 "src/Bindings/Posix.hsc" #-}

_IPV6_JOIN_GROUP = 20 :: CInt

{-# LINE 1589 "src/Bindings/Posix.hsc" #-}
_IPV6_LEAVE_GROUP = 21 :: CInt

{-# LINE 1590 "src/Bindings/Posix.hsc" #-}
_IPV6_MULTICAST_HOPS = 18 :: CInt

{-# LINE 1591 "src/Bindings/Posix.hsc" #-}
_IPV6_MULTICAST_IF = 17 :: CInt

{-# LINE 1592 "src/Bindings/Posix.hsc" #-}
_IPV6_MULTICAST_LOOP = 19 :: CInt

{-# LINE 1593 "src/Bindings/Posix.hsc" #-}
_IPV6_UNICAST_HOPS = 16 :: CInt

{-# LINE 1594 "src/Bindings/Posix.hsc" #-}
_IPV6_V6ONLY = 26 :: CInt

{-# LINE 1595 "src/Bindings/Posix.hsc" #-}


{-# LINE 1597 "src/Bindings/Posix.hsc" #-}

_TCP_NODELAY = 1 :: CInt

{-# LINE 1599 "src/Bindings/Posix.hsc" #-}


{-# LINE 1601 "src/Bindings/Posix.hsc" #-}

type CNlCatd = Word32
{-# LINE 1603 "src/Bindings/Posix.hsc" #-}

_NL_SETD = 1 :: CInt

{-# LINE 1605 "src/Bindings/Posix.hsc" #-}
_NL_CAT_LOCALE = 1 :: CInt

{-# LINE 1606 "src/Bindings/Posix.hsc" #-}

foreign import ccall "catclose" catclose :: CNlCatd -> IO CInt

{-# LINE 1608 "src/Bindings/Posix.hsc" #-}
foreign import ccall "catgets" catgets :: CNlCatd -> CInt -> CInt -> CString -> IO CString

{-# LINE 1609 "src/Bindings/Posix.hsc" #-}
foreign import ccall "catopen" catopen :: CString -> CInt -> IO CNlCatd

{-# LINE 1610 "src/Bindings/Posix.hsc" #-}


{-# LINE 1612 "src/Bindings/Posix.hsc" #-}


{-# LINE 1614 "src/Bindings/Posix.hsc" #-}

{-# LINE 1615 "src/Bindings/Posix.hsc" #-}

{-# LINE 1616 "src/Bindings/Posix.hsc" #-}

{-# LINE 1617 "src/Bindings/Posix.hsc" #-}
data Pollfd = Pollfd {pollfd'fd :: CInt , pollfd'events :: CShort , pollfd'revents :: CShort}
instance Storable Pollfd where {sizeOf _ = 8 ; alignment = sizeOf ; peek p = peekByteOff p 0 >>= \v0 -> peekByteOff p 4 >>= \v1 -> peekByteOff p 6 >>= \v2 -> return $ Pollfd v0 v1 v2  ; poke p (Pollfd v0 v1 v2 ) = pokeByteOff p 0 v0 >> pokeByteOff p 4 v1 >> pokeByteOff p 6 v2 >> return () }
{-# LINE 1618 "src/Bindings/Posix.hsc" #-}

type CNfds = Word32
{-# LINE 1620 "src/Bindings/Posix.hsc" #-}

_POLLIN = 1 :: CShort

{-# LINE 1622 "src/Bindings/Posix.hsc" #-}
-- #bindings_short POLLRDNORM
-- #bindings_short POLLRDBAND
_POLLPRI = 2 :: CShort

{-# LINE 1625 "src/Bindings/Posix.hsc" #-}
_POLLOUT = 4 :: CShort

{-# LINE 1626 "src/Bindings/Posix.hsc" #-}
-- #bindings_short POLLWRNORM
-- #bindings_short POLLWRBAND
_POLLERR = 8 :: CShort

{-# LINE 1629 "src/Bindings/Posix.hsc" #-}
_POLLHUP = 16 :: CShort

{-# LINE 1630 "src/Bindings/Posix.hsc" #-}
_POLLNVAL = 32 :: CShort

{-# LINE 1631 "src/Bindings/Posix.hsc" #-}

foreign import ccall "poll" poll :: Ptr Pollfd -> CNfds -> CInt -> IO CInt

{-# LINE 1633 "src/Bindings/Posix.hsc" #-}


{-# LINE 1635 "src/Bindings/Posix.hsc" #-}

_PTHREAD_BARRIER_SERIAL_THREAD = -1 :: (Num a) => a

{-# LINE 1637 "src/Bindings/Posix.hsc" #-}
_PTHREAD_CANCEL_ASYNCHRONOUS = 1 :: (Num a) => a

{-# LINE 1638 "src/Bindings/Posix.hsc" #-}
_PTHREAD_CANCEL_ENABLE = 0 :: (Num a) => a

{-# LINE 1639 "src/Bindings/Posix.hsc" #-}
_PTHREAD_CANCEL_DEFERRED = 0 :: (Num a) => a

{-# LINE 1640 "src/Bindings/Posix.hsc" #-}
_PTHREAD_CANCEL_DISABLE = 1 :: (Num a) => a

{-# LINE 1641 "src/Bindings/Posix.hsc" #-}
_PTHREAD_CANCELED = 4294967295 :: (Num a) => a

{-# LINE 1642 "src/Bindings/Posix.hsc" #-}
_PTHREAD_CREATE_DETACHED = 1 :: (Num a) => a

{-# LINE 1643 "src/Bindings/Posix.hsc" #-}
_PTHREAD_CREATE_JOINABLE = 0 :: (Num a) => a

{-# LINE 1644 "src/Bindings/Posix.hsc" #-}
_PTHREAD_EXPLICIT_SCHED = 1 :: (Num a) => a

{-# LINE 1645 "src/Bindings/Posix.hsc" #-}
_PTHREAD_INHERIT_SCHED = 0 :: (Num a) => a

{-# LINE 1646 "src/Bindings/Posix.hsc" #-}
-- #bindings_num PTHREAD_MUTEX_DEFAULT
-- #bindings_num PTHREAD_MUTEX_ERRORCHECK
-- #bindings_num PTHREAD_MUTEX_NORMAL
-- #bindings_num PTHREAD_MUTEX_RECURSIVE
-- #bindings_num PTHREAD_MUTEX_ROBUST
-- #bindings_num PTHREAD_MUTEX_STALLED
_PTHREAD_ONCE_INIT = 0 :: (Num a) => a

{-# LINE 1653 "src/Bindings/Posix.hsc" #-}
-- #bindings_num PTHREAD_PRIO_INHERIT
-- #bindings_num PTHREAD_PRIO_NONE
-- #bindings_num PTHREAD_PRIO_PROTECT
_PTHREAD_PROCESS_SHARED = 1 :: (Num a) => a

{-# LINE 1657 "src/Bindings/Posix.hsc" #-}
_PTHREAD_PROCESS_PRIVATE = 0 :: (Num a) => a

{-# LINE 1658 "src/Bindings/Posix.hsc" #-}
_PTHREAD_SCOPE_PROCESS = 1 :: (Num a) => a

{-# LINE 1659 "src/Bindings/Posix.hsc" #-}
_PTHREAD_SCOPE_SYSTEM = 0 :: (Num a) => a

{-# LINE 1660 "src/Bindings/Posix.hsc" #-}

-- #bindings_function pthread_atfork , FunPtr (IO ()) -> \
--   FunPtr (IO ()) -> FunPtr (IO ()) -> IO CInt 
foreign import ccall "pthread_attr_destroy" pthread_attr_destroy :: Ptr Pthread_attr_t -> IO CInt

{-# LINE 1665 "src/Bindings/Posix.hsc" #-}
foreign import ccall "pthread_attr_getdetachstate" pthread_attr_getdetachstate :: Ptr Pthread_attr_t -> Ptr CInt -> IO CInt

{-# LINE 1667 "src/Bindings/Posix.hsc" #-}
foreign import ccall "pthread_attr_getguardsize" pthread_attr_getguardsize :: Ptr Pthread_attr_t -> Ptr CSize -> IO CInt

{-# LINE 1669 "src/Bindings/Posix.hsc" #-}
foreign import ccall "pthread_attr_getinheritsched" pthread_attr_getinheritsched :: Ptr Pthread_attr_t -> Ptr CInt -> IO CInt

{-# LINE 1671 "src/Bindings/Posix.hsc" #-}
foreign import ccall "pthread_attr_getschedparam" pthread_attr_getschedparam :: Ptr Pthread_attr_t -> Ptr Sched_param -> IO CInt

{-# LINE 1673 "src/Bindings/Posix.hsc" #-}
foreign import ccall "pthread_attr_getschedpolicy" pthread_attr_getschedpolicy :: Ptr Pthread_attr_t -> Ptr CInt -> IO CInt

{-# LINE 1675 "src/Bindings/Posix.hsc" #-}
foreign import ccall "pthread_attr_getscope" pthread_attr_getscope :: Ptr Pthread_attr_t -> Ptr CInt -> IO CInt

{-# LINE 1677 "src/Bindings/Posix.hsc" #-}
foreign import ccall "pthread_attr_getstack" pthread_attr_getstack :: Ptr Pthread_attr_t -> Ptr (Ptr ()) -> Ptr CSize -> IO CInt

{-# LINE 1679 "src/Bindings/Posix.hsc" #-}
foreign import ccall "pthread_attr_getstacksize" pthread_attr_getstacksize :: Ptr Pthread_attr_t -> Ptr CSize -> IO CInt

{-# LINE 1681 "src/Bindings/Posix.hsc" #-}
foreign import ccall "pthread_attr_init" pthread_attr_init :: Ptr Pthread_attr_t -> IO CInt

{-# LINE 1683 "src/Bindings/Posix.hsc" #-}
foreign import ccall "pthread_attr_setdetachstate" pthread_attr_setdetachstate :: Ptr Pthread_attr_t -> CInt -> IO CInt

{-# LINE 1685 "src/Bindings/Posix.hsc" #-}
foreign import ccall "pthread_attr_setguardsize" pthread_attr_setguardsize :: Ptr Pthread_attr_t -> CSize -> IO CInt

{-# LINE 1687 "src/Bindings/Posix.hsc" #-}
foreign import ccall "pthread_attr_setinheritsched" pthread_attr_setinheritsched :: Ptr Pthread_attr_t -> CInt -> IO CInt

{-# LINE 1689 "src/Bindings/Posix.hsc" #-}
foreign import ccall "pthread_attr_setschedparam" pthread_attr_setschedparam :: Ptr Pthread_attr_t -> Ptr Sched_param -> IO CInt

{-# LINE 1691 "src/Bindings/Posix.hsc" #-}
foreign import ccall "pthread_attr_setschedpolicy" pthread_attr_setschedpolicy :: Ptr Pthread_attr_t -> CInt -> IO CInt

{-# LINE 1693 "src/Bindings/Posix.hsc" #-}
foreign import ccall "pthread_attr_setscope" pthread_attr_setscope :: Ptr Pthread_attr_t -> CInt -> IO CInt

{-# LINE 1695 "src/Bindings/Posix.hsc" #-}
foreign import ccall "pthread_attr_setstack" pthread_attr_setstack :: Ptr Pthread_attr_t -> Ptr void -> CSize -> IO CInt

{-# LINE 1697 "src/Bindings/Posix.hsc" #-}
foreign import ccall "pthread_attr_setstacksize" pthread_attr_setstacksize :: Ptr Pthread_attr_t -> CSize -> IO CInt

{-# LINE 1699 "src/Bindings/Posix.hsc" #-}
foreign import ccall "pthread_barrier_destroy" pthread_barrier_destroy :: Ptr Pthread_barrier_t -> IO CInt

{-# LINE 1701 "src/Bindings/Posix.hsc" #-}
foreign import ccall "pthread_barrier_init" pthread_barrier_init :: Ptr Pthread_barrier_t -> Ptr Pthread_barrierattr_t -> CUInt -> IO CInt

{-# LINE 1703 "src/Bindings/Posix.hsc" #-}
foreign import ccall "pthread_barrier_wait" pthread_barrier_wait :: Ptr Pthread_barrier_t -> IO CInt

{-# LINE 1705 "src/Bindings/Posix.hsc" #-}
foreign import ccall "pthread_barrierattr_destroy" pthread_barrierattr_destroy :: Ptr Pthread_barrierattr_t -> IO CInt

{-# LINE 1707 "src/Bindings/Posix.hsc" #-}
foreign import ccall "pthread_barrierattr_getpshared" pthread_barrierattr_getpshared :: Ptr Pthread_barrierattr_t -> Ptr CInt -> IO CInt

{-# LINE 1709 "src/Bindings/Posix.hsc" #-}
foreign import ccall "pthread_barrierattr_init" pthread_barrierattr_init :: Ptr Pthread_barrierattr_t -> IO CInt

{-# LINE 1711 "src/Bindings/Posix.hsc" #-}
foreign import ccall "pthread_barrierattr_setpshared" pthread_barrierattr_setpshared :: Ptr Pthread_barrierattr_t -> CInt -> IO CInt

{-# LINE 1713 "src/Bindings/Posix.hsc" #-}
-- #bindings_function pthread_cancel , Pthread_t -> IO CInt 
-- #bindings_function pthread_cleanup_pop , CInt -> IO () 
-- #bindings_function pthread_cleanup_push , \
--   FunPtr (Ptr () -> IO ()) -> Ptr () -> IO () 
foreign import ccall "pthread_cond_broadcast" pthread_cond_broadcast :: Ptr Pthread_cond_t -> IO CInt

{-# LINE 1719 "src/Bindings/Posix.hsc" #-}
foreign import ccall "pthread_cond_destroy" pthread_cond_destroy :: Ptr Pthread_cond_t -> IO CInt

{-# LINE 1721 "src/Bindings/Posix.hsc" #-}
foreign import ccall "pthread_cond_init" pthread_cond_init :: Ptr Pthread_cond_t -> Ptr Pthread_condattr_t -> IO CInt

{-# LINE 1723 "src/Bindings/Posix.hsc" #-}
foreign import ccall "pthread_cond_signal" pthread_cond_signal :: Ptr Pthread_cond_t -> IO CInt

{-# LINE 1725 "src/Bindings/Posix.hsc" #-}
foreign import ccall "pthread_cond_timedwait" pthread_cond_timedwait :: Ptr Pthread_cond_t -> Ptr Pthread_mutex_t -> Ptr timespec -> IO CInt

{-# LINE 1727 "src/Bindings/Posix.hsc" #-}
foreign import ccall "pthread_cond_wait" pthread_cond_wait :: Ptr Pthread_cond_t -> Ptr Pthread_mutex_t -> IO CInt

{-# LINE 1729 "src/Bindings/Posix.hsc" #-}
foreign import ccall "pthread_condattr_destroy" pthread_condattr_destroy :: Ptr Pthread_condattr_t -> IO CInt

{-# LINE 1731 "src/Bindings/Posix.hsc" #-}
foreign import ccall "pthread_condattr_getclock" pthread_condattr_getclock :: Ptr Pthread_condattr_t -> Ptr clockid_t -> IO CInt

{-# LINE 1733 "src/Bindings/Posix.hsc" #-}
foreign import ccall "pthread_condattr_getpshared" pthread_condattr_getpshared :: Ptr Pthread_condattr_t -> Ptr CInt -> IO CInt

{-# LINE 1735 "src/Bindings/Posix.hsc" #-}
foreign import ccall "pthread_condattr_init" pthread_condattr_init :: Ptr Pthread_condattr_t -> IO CInt

{-# LINE 1737 "src/Bindings/Posix.hsc" #-}
foreign import ccall "pthread_condattr_setclock" pthread_condattr_setclock :: Ptr Pthread_condattr_t -> CClock -> IO CInt

{-# LINE 1739 "src/Bindings/Posix.hsc" #-}
foreign import ccall "pthread_condattr_setpshared" pthread_condattr_setpshared :: Ptr Pthread_condattr_t -> CInt -> IO CInt

{-# LINE 1741 "src/Bindings/Posix.hsc" #-}
foreign import ccall "pthread_create" pthread_create :: Ptr Pthread_t -> Ptr Pthread_attr_t -> FunPtr (Ptr () -> IO (Ptr ())) -> Ptr void -> IO CInt

{-# LINE 1744 "src/Bindings/Posix.hsc" #-}
-- #bindings_function pthread_detach , Pthread_t -> IO CInt 
-- #bindings_function pthread_equal , Pthread_t -> Pthread_t -> IO CInt 
foreign import ccall "pthread_exit" pthread_exit :: Ptr () -> IO ()

{-# LINE 1747 "src/Bindings/Posix.hsc" #-}
-- #bindings_function pthread_getcpuclockid , \
--   Pthread_t -> Ptr clockid_t -> IO CInt 
-- #bindings_function pthread_getschedparam , \
--   Pthread_t -> Ptr CInt -> Ptr Sched_param -> IO CInt 
-- #bindings_function pthread_getspecific , Pthread_key_t -> IO (Ptr ()) 
-- #bindings_function pthread_join , Pthread_t -> Ptr Ptr void -> IO CInt 
foreign import ccall "pthread_key_create" pthread_key_create :: Ptr Pthread_key_t -> FunPtr (Ptr () -> IO (Ptr ())) -> IO CInt

{-# LINE 1755 "src/Bindings/Posix.hsc" #-}
-- #bindings_function pthread_key_delete , Pthread_key_t -> IO CInt 
-- #bindings_function pthread_mutex_consistent , \
--   Ptr Pthread_mutex_t -> IO CInt 
foreign import ccall "pthread_mutex_destroy" pthread_mutex_destroy :: Ptr Pthread_mutex_t -> IO CInt

{-# LINE 1760 "src/Bindings/Posix.hsc" #-}
foreign import ccall "pthread_mutex_getprioceiling" pthread_mutex_getprioceiling :: Ptr Pthread_mutex_t -> Ptr CInt -> IO CInt

{-# LINE 1762 "src/Bindings/Posix.hsc" #-}
foreign import ccall "pthread_mutex_init" pthread_mutex_init :: Ptr Pthread_mutex_t -> Ptr Pthread_mutexattr_t -> IO CInt

{-# LINE 1764 "src/Bindings/Posix.hsc" #-}
foreign import ccall "pthread_mutex_lock" pthread_mutex_lock :: Ptr Pthread_mutex_t -> IO CInt

{-# LINE 1765 "src/Bindings/Posix.hsc" #-}
foreign import ccall "pthread_mutex_setprioceiling" pthread_mutex_setprioceiling :: Ptr Pthread_mutex_t -> CInt -> Ptr CInt -> IO CInt

{-# LINE 1767 "src/Bindings/Posix.hsc" #-}
foreign import ccall "pthread_mutex_timedlock" pthread_mutex_timedlock :: Ptr Pthread_mutex_t -> Ptr timespec -> IO CInt

{-# LINE 1769 "src/Bindings/Posix.hsc" #-}
foreign import ccall "pthread_mutex_trylock" pthread_mutex_trylock :: Ptr Pthread_mutex_t -> IO CInt

{-# LINE 1770 "src/Bindings/Posix.hsc" #-}
foreign import ccall "pthread_mutex_unlock" pthread_mutex_unlock :: Ptr Pthread_mutex_t -> IO CInt

{-# LINE 1771 "src/Bindings/Posix.hsc" #-}
foreign import ccall "pthread_mutexattr_destroy" pthread_mutexattr_destroy :: Ptr Pthread_mutexattr_t -> IO CInt

{-# LINE 1773 "src/Bindings/Posix.hsc" #-}
foreign import ccall "pthread_mutexattr_getprioceiling" pthread_mutexattr_getprioceiling :: Ptr Pthread_mutexattr_t -> Ptr CInt -> IO CInt

{-# LINE 1775 "src/Bindings/Posix.hsc" #-}
foreign import ccall "pthread_mutexattr_getprotocol" pthread_mutexattr_getprotocol :: Ptr Pthread_mutexattr_t -> Ptr CInt -> IO CInt

{-# LINE 1777 "src/Bindings/Posix.hsc" #-}
foreign import ccall "pthread_mutexattr_getpshared" pthread_mutexattr_getpshared :: Ptr Pthread_mutexattr_t -> Ptr CInt -> IO CInt

{-# LINE 1779 "src/Bindings/Posix.hsc" #-}
-- #bindings_function pthread_mutexattr_getrobust , \
--   Ptr Pthread_mutexattr_t -> Ptr CInt -> IO CInt 
foreign import ccall "pthread_mutexattr_gettype" pthread_mutexattr_gettype :: Ptr Pthread_mutexattr_t -> Ptr CInt -> IO CInt

{-# LINE 1783 "src/Bindings/Posix.hsc" #-}
foreign import ccall "pthread_mutexattr_init" pthread_mutexattr_init :: Ptr Pthread_mutexattr_t -> IO CInt

{-# LINE 1785 "src/Bindings/Posix.hsc" #-}
foreign import ccall "pthread_mutexattr_setprioceiling" pthread_mutexattr_setprioceiling :: Ptr Pthread_mutexattr_t -> CInt -> IO CInt

{-# LINE 1787 "src/Bindings/Posix.hsc" #-}
foreign import ccall "pthread_mutexattr_setprotocol" pthread_mutexattr_setprotocol :: Ptr Pthread_mutexattr_t -> CInt -> IO CInt

{-# LINE 1789 "src/Bindings/Posix.hsc" #-}
foreign import ccall "pthread_mutexattr_setpshared" pthread_mutexattr_setpshared :: Ptr Pthread_mutexattr_t -> CInt -> IO CInt

{-# LINE 1791 "src/Bindings/Posix.hsc" #-}
-- #bindings_function pthread_mutexattr_setrobust , \
--   Ptr Pthread_mutexattr_t -> CInt -> IO CInt 
foreign import ccall "pthread_mutexattr_settype" pthread_mutexattr_settype :: Ptr Pthread_mutexattr_t -> CInt -> IO CInt

{-# LINE 1795 "src/Bindings/Posix.hsc" #-}
foreign import ccall "pthread_once" pthread_once :: Ptr Pthread_once_t -> FunPtr (IO ()) -> IO CInt

{-# LINE 1797 "src/Bindings/Posix.hsc" #-}
foreign import ccall "pthread_rwlock_destroy" pthread_rwlock_destroy :: Ptr Pthread_rwlock_t -> IO CInt

{-# LINE 1799 "src/Bindings/Posix.hsc" #-}
foreign import ccall "pthread_rwlock_init" pthread_rwlock_init :: Ptr Pthread_rwlock_t -> Ptr Pthread_rwlockattr_t -> IO CInt

{-# LINE 1801 "src/Bindings/Posix.hsc" #-}
foreign import ccall "pthread_rwlock_rdlock" pthread_rwlock_rdlock :: Ptr Pthread_rwlock_t -> IO CInt

{-# LINE 1803 "src/Bindings/Posix.hsc" #-}
foreign import ccall "pthread_rwlock_timedrdlock" pthread_rwlock_timedrdlock :: Ptr Pthread_rwlock_t -> Ptr timespec -> IO CInt

{-# LINE 1805 "src/Bindings/Posix.hsc" #-}
foreign import ccall "pthread_rwlock_timedwrlock" pthread_rwlock_timedwrlock :: Ptr Pthread_rwlock_t -> Ptr timespec -> IO CInt

{-# LINE 1807 "src/Bindings/Posix.hsc" #-}
foreign import ccall "pthread_rwlock_tryrdlock" pthread_rwlock_tryrdlock :: Ptr Pthread_rwlock_t -> IO CInt

{-# LINE 1809 "src/Bindings/Posix.hsc" #-}
foreign import ccall "pthread_rwlock_trywrlock" pthread_rwlock_trywrlock :: Ptr Pthread_rwlock_t -> IO CInt

{-# LINE 1811 "src/Bindings/Posix.hsc" #-}
foreign import ccall "pthread_rwlock_unlock" pthread_rwlock_unlock :: Ptr Pthread_rwlock_t -> IO CInt

{-# LINE 1813 "src/Bindings/Posix.hsc" #-}
foreign import ccall "pthread_rwlock_wrlock" pthread_rwlock_wrlock :: Ptr Pthread_rwlock_t -> IO CInt

{-# LINE 1815 "src/Bindings/Posix.hsc" #-}
foreign import ccall "pthread_rwlockattr_destroy" pthread_rwlockattr_destroy :: Ptr Pthread_rwlockattr_t -> IO CInt

{-# LINE 1817 "src/Bindings/Posix.hsc" #-}
foreign import ccall "pthread_rwlockattr_getpshared" pthread_rwlockattr_getpshared :: Ptr Pthread_rwlockattr_t -> Ptr CInt -> IO CInt

{-# LINE 1819 "src/Bindings/Posix.hsc" #-}
foreign import ccall "pthread_rwlockattr_init" pthread_rwlockattr_init :: Ptr Pthread_rwlockattr_t -> IO CInt

{-# LINE 1821 "src/Bindings/Posix.hsc" #-}
foreign import ccall "pthread_rwlockattr_setpshared" pthread_rwlockattr_setpshared :: Ptr Pthread_rwlockattr_t -> CInt -> IO CInt

{-# LINE 1823 "src/Bindings/Posix.hsc" #-}
-- #bindings_function pthread_self , IO Pthread_t 
foreign import ccall "pthread_setcancelstate" pthread_setcancelstate :: CInt -> Ptr CInt -> IO CInt

{-# LINE 1826 "src/Bindings/Posix.hsc" #-}
foreign import ccall "pthread_setcanceltype" pthread_setcanceltype :: CInt -> Ptr CInt -> IO CInt

{-# LINE 1828 "src/Bindings/Posix.hsc" #-}
-- #bindings_function pthread_setschedparam , \
--   Pthread_t -> CInt -> Ptr Sched_param -> IO CInt 
-- #bindings_function pthread_setschedprio , \
--   Pthread_t -> CInt -> IO CInt 
-- #bindings_function pthread_setspecific , \
--   Pthread_key_t -> Ptr void -> IO CInt 
foreign import ccall "pthread_spin_destroy" pthread_spin_destroy :: Ptr Pthread_spinlock_t -> IO CInt

{-# LINE 1836 "src/Bindings/Posix.hsc" #-}
foreign import ccall "pthread_spin_init" pthread_spin_init :: Ptr Pthread_spinlock_t -> CInt -> IO CInt

{-# LINE 1838 "src/Bindings/Posix.hsc" #-}
-- #bindings_function pthread_spinlock , \
--   Ptr Pthread_spinlock_t -> IO CInt 
foreign import ccall "pthread_spin_trylock" pthread_spin_trylock :: Ptr Pthread_spinlock_t -> IO CInt

{-# LINE 1842 "src/Bindings/Posix.hsc" #-}
foreign import ccall "pthread_spin_unlock" pthread_spin_unlock :: Ptr Pthread_spinlock_t -> IO CInt

{-# LINE 1844 "src/Bindings/Posix.hsc" #-}
foreign import ccall "pthread_testcancel" pthread_testcancel :: IO ()

{-# LINE 1845 "src/Bindings/Posix.hsc" #-}


{-# LINE 1847 "src/Bindings/Posix.hsc" #-}


{-# LINE 1849 "src/Bindings/Posix.hsc" #-}

{-# LINE 1850 "src/Bindings/Posix.hsc" #-}

{-# LINE 1851 "src/Bindings/Posix.hsc" #-}

{-# LINE 1852 "src/Bindings/Posix.hsc" #-}

{-# LINE 1853 "src/Bindings/Posix.hsc" #-}

{-# LINE 1854 "src/Bindings/Posix.hsc" #-}
data Passwd = Passwd {passwd'pw_name :: CString , passwd'pw_uid :: CUid , passwd'pw_gid :: CGid , passwd'pw_dir :: CString , passwd'pw_shell :: CString}
instance Storable Passwd where {sizeOf _ = 28 ; alignment = sizeOf ; peek p = peekByteOff p 0 >>= \v0 -> peekByteOff p 8 >>= \v1 -> peekByteOff p 12 >>= \v2 -> peekByteOff p 20 >>= \v3 -> peekByteOff p 24 >>= \v4 -> return $ Passwd v0 v1 v2 v3 v4  ; poke p (Passwd v0 v1 v2 v3 v4 ) = pokeByteOff p 0 v0 >> pokeByteOff p 8 v1 >> pokeByteOff p 12 v2 >> pokeByteOff p 20 v3 >> pokeByteOff p 24 v4 >> return () }
{-# LINE 1855 "src/Bindings/Posix.hsc" #-}

foreign import ccall "endpwent" endpwent :: IO ()

{-# LINE 1857 "src/Bindings/Posix.hsc" #-}
foreign import ccall "getpwent" getpwent :: IO (Ptr Passwd)

{-# LINE 1858 "src/Bindings/Posix.hsc" #-}
foreign import ccall "getpwnam" getpwnam :: CString -> IO (Ptr Passwd)

{-# LINE 1859 "src/Bindings/Posix.hsc" #-}
foreign import ccall "getpwnam_r" getpwnam_r :: CString -> Ptr Passwd -> CString -> CSize -> Ptr (Ptr Passwd) -> IO CInt

{-# LINE 1861 "src/Bindings/Posix.hsc" #-}
foreign import ccall "getpwuid" getpwuid :: CUid -> IO (Ptr Passwd)

{-# LINE 1862 "src/Bindings/Posix.hsc" #-}
foreign import ccall "getpwuid_r" getpwuid_r :: CUid -> Ptr Passwd -> CString -> CSize -> Ptr (Ptr Passwd) -> IO CInt

{-# LINE 1864 "src/Bindings/Posix.hsc" #-}
foreign import ccall "setpwent" setpwent :: IO ()

{-# LINE 1865 "src/Bindings/Posix.hsc" #-}


{-# LINE 1867 "src/Bindings/Posix.hsc" #-}


{-# LINE 1869 "src/Bindings/Posix.hsc" #-}

{-# LINE 1870 "src/Bindings/Posix.hsc" #-}
data Regex_t = Regex_t {regex_t're_nsub :: CSize}
instance Storable Regex_t where {sizeOf _ = 32 ; alignment = sizeOf ; peek p = peekByteOff p 24 >>= \v0 -> return $ Regex_t v0  ; poke p (Regex_t v0 ) = pokeByteOff p 24 v0 >> return () }
{-# LINE 1871 "src/Bindings/Posix.hsc" #-}

type CRegoff = Int32
{-# LINE 1873 "src/Bindings/Posix.hsc" #-}


{-# LINE 1875 "src/Bindings/Posix.hsc" #-}

{-# LINE 1876 "src/Bindings/Posix.hsc" #-}

{-# LINE 1877 "src/Bindings/Posix.hsc" #-}
data Regmatch_t = Regmatch_t {regmatch_t'rm_so :: CRegoff , regmatch_t'rm_eo :: CRegoff}
instance Storable Regmatch_t where {sizeOf _ = 8 ; alignment = sizeOf ; peek p = peekByteOff p 0 >>= \v0 -> peekByteOff p 4 >>= \v1 -> return $ Regmatch_t v0 v1  ; poke p (Regmatch_t v0 v1 ) = pokeByteOff p 0 v0 >> pokeByteOff p 4 v1 >> return () }
{-# LINE 1878 "src/Bindings/Posix.hsc" #-}

_REG_EXTENDED = 1 :: CInt

{-# LINE 1880 "src/Bindings/Posix.hsc" #-}
_REG_ICASE = 2 :: CInt

{-# LINE 1881 "src/Bindings/Posix.hsc" #-}
_REG_NOSUB = 8 :: CInt

{-# LINE 1882 "src/Bindings/Posix.hsc" #-}
_REG_NEWLINE = 4 :: CInt

{-# LINE 1883 "src/Bindings/Posix.hsc" #-}

_REG_NOTBOL = 1 :: CInt

{-# LINE 1885 "src/Bindings/Posix.hsc" #-}
_REG_NOTEOL = 2 :: CInt

{-# LINE 1886 "src/Bindings/Posix.hsc" #-}

_REG_NOMATCH = 1 :: CInt

{-# LINE 1888 "src/Bindings/Posix.hsc" #-}
_REG_BADPAT = 2 :: CInt

{-# LINE 1889 "src/Bindings/Posix.hsc" #-}
_REG_ECOLLATE = 3 :: CInt

{-# LINE 1890 "src/Bindings/Posix.hsc" #-}
_REG_ECTYPE = 4 :: CInt

{-# LINE 1891 "src/Bindings/Posix.hsc" #-}
_REG_EESCAPE = 5 :: CInt

{-# LINE 1892 "src/Bindings/Posix.hsc" #-}
_REG_ESUBREG = 6 :: CInt

{-# LINE 1893 "src/Bindings/Posix.hsc" #-}
_REG_EBRACK = 7 :: CInt

{-# LINE 1894 "src/Bindings/Posix.hsc" #-}
_REG_EPAREN = 8 :: CInt

{-# LINE 1895 "src/Bindings/Posix.hsc" #-}
_REG_EBRACE = 9 :: CInt

{-# LINE 1896 "src/Bindings/Posix.hsc" #-}
_REG_BADBR = 10 :: CInt

{-# LINE 1897 "src/Bindings/Posix.hsc" #-}
_REG_ERANGE = 11 :: CInt

{-# LINE 1898 "src/Bindings/Posix.hsc" #-}
_REG_ESPACE = 12 :: CInt

{-# LINE 1899 "src/Bindings/Posix.hsc" #-}
_REG_BADRPT = 13 :: CInt

{-# LINE 1900 "src/Bindings/Posix.hsc" #-}

foreign import ccall "regcomp" regcomp :: Ptr Regex_t -> CString -> CInt -> IO CInt

{-# LINE 1903 "src/Bindings/Posix.hsc" #-}
foreign import ccall "regerror" regerror :: CInt -> Ptr Regex_t -> CString -> CSize -> IO CSize

{-# LINE 1905 "src/Bindings/Posix.hsc" #-}
foreign import ccall "regexec" regexec :: Ptr Regex_t -> CString -> CSize -> Ptr Regmatch_t -> CInt -> IO CInt

{-# LINE 1907 "src/Bindings/Posix.hsc" #-}
foreign import ccall "regfree" regfree :: Ptr Regex_t -> IO ()

{-# LINE 1908 "src/Bindings/Posix.hsc" #-}


{-# LINE 1910 "src/Bindings/Posix.hsc" #-}


{-# LINE 1912 "src/Bindings/Posix.hsc" #-}

{-# LINE 1913 "src/Bindings/Posix.hsc" #-}

{-# LINE 1914 "src/Bindings/Posix.hsc" #-}
data Timespec = Timespec {timespec'tv_sec :: CTime , timespec'tv_nsec :: CLong}
instance Storable Timespec where {sizeOf _ = 8 ; alignment = sizeOf ; peek p = peekByteOff p 0 >>= \v0 -> peekByteOff p 4 >>= \v1 -> return $ Timespec v0 v1  ; poke p (Timespec v0 v1 ) = pokeByteOff p 0 v0 >> pokeByteOff p 4 v1 >> return () }
{-# LINE 1915 "src/Bindings/Posix.hsc" #-}


{-# LINE 1917 "src/Bindings/Posix.hsc" #-}

{-# LINE 1918 "src/Bindings/Posix.hsc" #-}

{-# LINE 1919 "src/Bindings/Posix.hsc" #-}
data Itimerspec = Itimerspec {itimerspec'it_interval :: Timespec , itimerspec'it_value :: Timespec}
instance Storable Itimerspec where {sizeOf _ = 16 ; alignment = sizeOf ; peek p = peekByteOff p 0 >>= \v0 -> peekByteOff p 8 >>= \v1 -> return $ Itimerspec v0 v1  ; poke p (Itimerspec v0 v1 ) = pokeByteOff p 0 v0 >> pokeByteOff p 8 v1 >> return () }
{-# LINE 1920 "src/Bindings/Posix.hsc" #-}

_CLOCK_MONOTONIC = 1 :: (Num a) => a

{-# LINE 1922 "src/Bindings/Posix.hsc" #-}
_CLOCK_PROCESS_CPUTIME_ID = 2 :: (Num a) => a

{-# LINE 1923 "src/Bindings/Posix.hsc" #-}
_CLOCK_REALTIME = 0 :: (Num a) => a

{-# LINE 1924 "src/Bindings/Posix.hsc" #-}
_CLOCK_THREAD_CPUTIME_ID = 3 :: (Num a) => a

{-# LINE 1925 "src/Bindings/Posix.hsc" #-}

foreign import ccall "clock_getcpuclockid" clock_getcpuclockid :: CPid -> Ptr CClockid -> IO CInt

{-# LINE 1927 "src/Bindings/Posix.hsc" #-}
foreign import ccall "clock_getres" clock_getres :: CClockid -> Ptr Timespec -> IO CInt

{-# LINE 1928 "src/Bindings/Posix.hsc" #-}
foreign import ccall "clock_gettime" clock_gettime :: CClockid -> Ptr Timespec -> IO CInt

{-# LINE 1929 "src/Bindings/Posix.hsc" #-}
foreign import ccall "clock_nanosleep" clock_nanosleep :: CClockid -> CInt -> Ptr Timespec -> Ptr Timespec -> IO CInt

{-# LINE 1931 "src/Bindings/Posix.hsc" #-}
foreign import ccall "clock_settime" clock_settime :: CClockid -> Ptr Timespec -> IO CInt

{-# LINE 1932 "src/Bindings/Posix.hsc" #-}
foreign import ccall "getdate" getdate :: CString -> IO (Ptr Tm)

{-# LINE 1933 "src/Bindings/Posix.hsc" #-}
foreign import ccall "gmtime_r" gmtime_r :: Ptr CTime -> Ptr Tm -> IO (Ptr Tm)

{-# LINE 1934 "src/Bindings/Posix.hsc" #-}
foreign import ccall "localtime_r" localtime_r :: Ptr CTime -> Ptr Tm -> IO (Ptr Tm)

{-# LINE 1935 "src/Bindings/Posix.hsc" #-}
foreign import ccall "nanosleep" nanosleep :: Ptr Timespec -> Ptr timespec -> IO CInt

{-# LINE 1936 "src/Bindings/Posix.hsc" #-}
foreign import ccall "strptime" strptime :: CString -> CString -> Ptr Tm -> IO CString

{-# LINE 1937 "src/Bindings/Posix.hsc" #-}
foreign import ccall "timer_create" timer_create :: CClockid -> Ptr Sigevent -> Ptr CTimer -> IO CInt

{-# LINE 1939 "src/Bindings/Posix.hsc" #-}
foreign import ccall "timer_delete" timer_delete :: CTimer -> IO CInt

{-# LINE 1940 "src/Bindings/Posix.hsc" #-}
foreign import ccall "timer_getoverrun" timer_getoverrun :: CTimer -> IO CInt

{-# LINE 1941 "src/Bindings/Posix.hsc" #-}
foreign import ccall "timer_gettime" timer_gettime :: CTimer -> Ptr Itimerspec -> IO CInt

{-# LINE 1942 "src/Bindings/Posix.hsc" #-}
foreign import ccall "timer_settime" timer_settime :: CTimer -> CInt -> Ptr Itimerspec -> Ptr Itimerspec -> IO CInt

{-# LINE 1944 "src/Bindings/Posix.hsc" #-}
foreign import ccall "tzset" tzset :: IO ()

{-# LINE 1945 "src/Bindings/Posix.hsc" #-}

foreign import ccall "&daylight" daylight :: GlobalVariable (Ptr (CInt))

{-# LINE 1947 "src/Bindings/Posix.hsc" #-}
foreign import ccall "&timezone" timezone :: GlobalVariable (Ptr (CLong))

{-# LINE 1948 "src/Bindings/Posix.hsc" #-}
foreign import ccall "&tzname" tzname :: GlobalVariable (Ptr (Ptr (Ptr CString)))

{-# LINE 1949 "src/Bindings/Posix.hsc" #-}


{-# LINE 1951 "src/Bindings/Posix.hsc" #-}


{-# LINE 1953 "src/Bindings/Posix.hsc" #-}

{-# LINE 1954 "src/Bindings/Posix.hsc" #-}
data Sched_param = Sched_param {sched_param'sched_priority :: CInt}
instance Storable Sched_param where {sizeOf _ = 4 ; alignment = sizeOf ; peek p = peekByteOff p 0 >>= \v0 -> return $ Sched_param v0  ; poke p (Sched_param v0 ) = pokeByteOff p 0 v0 >> return () }
{-# LINE 1955 "src/Bindings/Posix.hsc" #-}

_SCHED_FIFO = 1 :: (Num a) => a

{-# LINE 1957 "src/Bindings/Posix.hsc" #-}
_SCHED_RR = 2 :: (Num a) => a

{-# LINE 1958 "src/Bindings/Posix.hsc" #-}
-- #bindings_num SCHED_SPORADIC
_SCHED_OTHER = 0 :: (Num a) => a

{-# LINE 1960 "src/Bindings/Posix.hsc" #-}

foreign import ccall "sched_get_priority_max" sched_get_priority_max :: CInt -> IO CInt

{-# LINE 1962 "src/Bindings/Posix.hsc" #-}
foreign import ccall "sched_get_priority_min" sched_get_priority_min :: CInt -> IO CInt

{-# LINE 1963 "src/Bindings/Posix.hsc" #-}
foreign import ccall "sched_getparam" sched_getparam :: CPid -> Ptr Sched_param -> IO CInt

{-# LINE 1965 "src/Bindings/Posix.hsc" #-}
foreign import ccall "sched_getscheduler" sched_getscheduler :: CPid -> IO CInt

{-# LINE 1966 "src/Bindings/Posix.hsc" #-}
foreign import ccall "sched_rr_get_interval" sched_rr_get_interval :: CPid -> Ptr Timespec -> IO CInt

{-# LINE 1968 "src/Bindings/Posix.hsc" #-}
foreign import ccall "sched_setparam" sched_setparam :: CPid -> Ptr Sched_param -> IO CInt

{-# LINE 1970 "src/Bindings/Posix.hsc" #-}
foreign import ccall "sched_setscheduler" sched_setscheduler :: CPid -> CInt -> Ptr Sched_param -> IO CInt

{-# LINE 1972 "src/Bindings/Posix.hsc" #-}
foreign import ccall "sched_yield" sched_yield :: IO CInt

{-# LINE 1973 "src/Bindings/Posix.hsc" #-}


{-# LINE 1975 "src/Bindings/Posix.hsc" #-}


{-# LINE 1977 "src/Bindings/Posix.hsc" #-}

{-# LINE 1978 "src/Bindings/Posix.hsc" #-}

{-# LINE 1979 "src/Bindings/Posix.hsc" #-}
data ENTRY = ENTRY {_ENTRY'key :: CString , _ENTRY'data :: Ptr ()}
instance Storable ENTRY where {sizeOf _ = 8 ; alignment = sizeOf ; peek p = peekByteOff p 0 >>= \v0 -> peekByteOff p 4 >>= \v1 -> return $ ENTRY v0 v1  ; poke p (ENTRY v0 v1 ) = pokeByteOff p 0 v0 >> pokeByteOff p 4 v1 >> return () }
{-# LINE 1980 "src/Bindings/Posix.hsc" #-}

type ACTION = Word32
{-# LINE 1982 "src/Bindings/Posix.hsc" #-}
type VISIT = Word32
{-# LINE 1983 "src/Bindings/Posix.hsc" #-}

_FIND = 0 :: ACTION

{-# LINE 1985 "src/Bindings/Posix.hsc" #-}
_ENTER = 1 :: ACTION

{-# LINE 1986 "src/Bindings/Posix.hsc" #-}

preorder = 0 :: VISIT

{-# LINE 1988 "src/Bindings/Posix.hsc" #-}
postorder = 1 :: VISIT

{-# LINE 1989 "src/Bindings/Posix.hsc" #-}
endorder = 2 :: VISIT

{-# LINE 1990 "src/Bindings/Posix.hsc" #-}
leaf = 3 :: VISIT

{-# LINE 1991 "src/Bindings/Posix.hsc" #-}

foreign import ccall "hcreate" hcreate :: CSize -> IO CInt

{-# LINE 1993 "src/Bindings/Posix.hsc" #-}
foreign import ccall "hdestroy" hdestroy :: IO ()

{-# LINE 1994 "src/Bindings/Posix.hsc" #-}
foreign import ccall "insque" insque :: Ptr () -> Ptr () -> IO ()

{-# LINE 1995 "src/Bindings/Posix.hsc" #-}
foreign import ccall "lfind" lfind :: Ptr () -> Ptr () -> Ptr CSize -> CSize -> FunPtr (Ptr () -> Ptr () -> IO CInt) -> IO (Ptr ())

{-# LINE 1998 "src/Bindings/Posix.hsc" #-}
foreign import ccall "lsearch" lsearch :: Ptr () -> Ptr () -> Ptr CSize -> CSize -> FunPtr (Ptr () -> Ptr () -> IO CInt) -> IO (Ptr ())

{-# LINE 2001 "src/Bindings/Posix.hsc" #-}
foreign import ccall "remque" remque :: Ptr () -> IO ()

{-# LINE 2002 "src/Bindings/Posix.hsc" #-}
foreign import ccall "tdelete" tdelete :: Ptr () -> Ptr (Ptr ()) -> FunPtr (Ptr () -> Ptr () -> IO CInt) -> IO (Ptr ())

{-# LINE 2004 "src/Bindings/Posix.hsc" #-}
foreign import ccall "tfind" tfind :: Ptr () -> Ptr () -> FunPtr (Ptr () -> Ptr () -> IO CInt) -> IO (Ptr ())

{-# LINE 2006 "src/Bindings/Posix.hsc" #-}
foreign import ccall "tsearch" tsearch :: Ptr () -> Ptr (Ptr ()) -> FunPtr (Ptr () -> Ptr () -> IO CInt) -> IO (Ptr ())

{-# LINE 2008 "src/Bindings/Posix.hsc" #-}
foreign import ccall "twalk" twalk :: Ptr () -> FunPtr (Ptr () -> VISIT -> CInt -> IO ()) -> IO ()

{-# LINE 2010 "src/Bindings/Posix.hsc" #-}


{-# LINE 2012 "src/Bindings/Posix.hsc" #-}

data CSem

_SEM_FAILED =  wordPtrToPtr (0 :: WordPtr) :: Ptr CSem

{-# LINE 2016 "src/Bindings/Posix.hsc" #-}

foreign import ccall "sem_close" sem_close :: Ptr CSem -> IO CInt

{-# LINE 2018 "src/Bindings/Posix.hsc" #-}
foreign import ccall "sem_destroy" sem_destroy :: Ptr CSem -> IO CInt

{-# LINE 2019 "src/Bindings/Posix.hsc" #-}
foreign import ccall "sem_getvalue" sem_getvalue :: Ptr CSem -> Ptr CInt -> IO CInt

{-# LINE 2020 "src/Bindings/Posix.hsc" #-}
foreign import ccall "sem_init" sem_init :: Ptr CSem -> CInt -> CUInt -> IO CInt

{-# LINE 2021 "src/Bindings/Posix.hsc" #-}
foreign import ccall "sem_post" sem_post :: Ptr CSem -> IO CInt

{-# LINE 2022 "src/Bindings/Posix.hsc" #-}
foreign import ccall "sem_timedwait" sem_timedwait :: Ptr CSem -> Ptr Timespec -> IO CInt

{-# LINE 2023 "src/Bindings/Posix.hsc" #-}
foreign import ccall "sem_trywait" sem_trywait :: Ptr CSem -> IO CInt

{-# LINE 2024 "src/Bindings/Posix.hsc" #-}
foreign import ccall "sem_unlink" sem_unlink :: CString -> IO CInt

{-# LINE 2025 "src/Bindings/Posix.hsc" #-}
foreign import ccall "sem_wait" sem_wait :: Ptr CSem -> IO CInt

{-# LINE 2026 "src/Bindings/Posix.hsc" #-}


{-# LINE 2028 "src/Bindings/Posix.hsc" #-}


{-# LINE 2030 "src/Bindings/Posix.hsc" #-}


{-# LINE 2032 "src/Bindings/Posix.hsc" #-}
data Posix_spawnattr_t = Posix_spawnattr_t
instance Storable Posix_spawnattr_t where {sizeOf _ = 336 ; alignment = sizeOf ; peek p = return $ Posix_spawnattr_t  ; poke p (Posix_spawnattr_t ) = return () }
{-# LINE 2033 "src/Bindings/Posix.hsc" #-}


{-# LINE 2035 "src/Bindings/Posix.hsc" #-}
data Posix_spawn_file_actions_t = Posix_spawn_file_actions_t
instance Storable Posix_spawn_file_actions_t where {sizeOf _ = 76 ; alignment = sizeOf ; peek p = return $ Posix_spawn_file_actions_t  ; poke p (Posix_spawn_file_actions_t ) = return () }
{-# LINE 2036 "src/Bindings/Posix.hsc" #-}

_POSIX_SPAWN_RESETIDS = 1 :: CShort

{-# LINE 2038 "src/Bindings/Posix.hsc" #-}
_POSIX_SPAWN_SETPGROUP = 2 :: CShort

{-# LINE 2039 "src/Bindings/Posix.hsc" #-}
_POSIX_SPAWN_SETSCHEDPARAM = 16 :: CShort

{-# LINE 2040 "src/Bindings/Posix.hsc" #-}
_POSIX_SPAWN_SETSCHEDULER = 32 :: CShort

{-# LINE 2041 "src/Bindings/Posix.hsc" #-}
_POSIX_SPAWN_SETSIGDEF = 4 :: CShort

{-# LINE 2042 "src/Bindings/Posix.hsc" #-}
_POSIX_SPAWN_SETSIGMASK = 8 :: CShort

{-# LINE 2043 "src/Bindings/Posix.hsc" #-}

foreign import ccall "posix_spawn" posix_spawn :: Ptr CPid -> CString -> Ptr Posix_spawn_file_actions_t -> Ptr Posix_spawnattr_t -> CString -> Ptr CString -> IO CInt

{-# LINE 2048 "src/Bindings/Posix.hsc" #-}
foreign import ccall "posix_spawn_file_actions_addclose" posix_spawn_file_actions_addclose :: Ptr Posix_spawn_file_actions_t -> CInt -> IO CInt

{-# LINE 2050 "src/Bindings/Posix.hsc" #-}
foreign import ccall "posix_spawn_file_actions_adddup2" posix_spawn_file_actions_adddup2 :: Ptr Posix_spawn_file_actions_t -> CInt -> CInt -> IO CInt

{-# LINE 2052 "src/Bindings/Posix.hsc" #-}
foreign import ccall "posix_spawn_file_actions_addopen" posix_spawn_file_actions_addopen :: Ptr Posix_spawn_file_actions_t -> CInt -> CString -> CInt -> CMode -> IO CInt

{-# LINE 2055 "src/Bindings/Posix.hsc" #-}
foreign import ccall "posix_spawn_file_actions_destroy" posix_spawn_file_actions_destroy :: Ptr Posix_spawn_file_actions_t -> IO CInt

{-# LINE 2057 "src/Bindings/Posix.hsc" #-}
foreign import ccall "posix_spawn_file_actions_init" posix_spawn_file_actions_init :: Ptr Posix_spawn_file_actions_t -> IO CInt

{-# LINE 2059 "src/Bindings/Posix.hsc" #-}
foreign import ccall "posix_spawnattr_destroy" posix_spawnattr_destroy :: Ptr Posix_spawnattr_t -> IO CInt

{-# LINE 2061 "src/Bindings/Posix.hsc" #-}
foreign import ccall "posix_spawnattr_getflags" posix_spawnattr_getflags :: Ptr Posix_spawnattr_t -> Ptr CShort -> IO CInt

{-# LINE 2063 "src/Bindings/Posix.hsc" #-}
foreign import ccall "posix_spawnattr_getpgroup" posix_spawnattr_getpgroup :: Ptr Posix_spawnattr_t -> Ptr CPid -> IO CInt

{-# LINE 2065 "src/Bindings/Posix.hsc" #-}
foreign import ccall "posix_spawnattr_getschedparam" posix_spawnattr_getschedparam :: Ptr Posix_spawnattr_t -> Ptr Sched_param -> IO CInt

{-# LINE 2067 "src/Bindings/Posix.hsc" #-}
foreign import ccall "posix_spawnattr_getschedpolicy" posix_spawnattr_getschedpolicy :: Ptr Posix_spawnattr_t -> Ptr CInt -> IO CInt

{-# LINE 2069 "src/Bindings/Posix.hsc" #-}
foreign import ccall "posix_spawnattr_getsigdefault" posix_spawnattr_getsigdefault :: Ptr Posix_spawnattr_t -> Ptr Sigset_t -> IO CInt

{-# LINE 2071 "src/Bindings/Posix.hsc" #-}
foreign import ccall "posix_spawnattr_getsigmask" posix_spawnattr_getsigmask :: Ptr Posix_spawnattr_t -> Ptr Sigset_t -> IO CInt

{-# LINE 2073 "src/Bindings/Posix.hsc" #-}
foreign import ccall "posix_spawnattr_init" posix_spawnattr_init :: Ptr Posix_spawnattr_t -> IO CInt

{-# LINE 2075 "src/Bindings/Posix.hsc" #-}
foreign import ccall "posix_spawnattr_setflags" posix_spawnattr_setflags :: Ptr Posix_spawnattr_t -> CShort -> IO CInt

{-# LINE 2077 "src/Bindings/Posix.hsc" #-}
foreign import ccall "posix_spawnattr_setpgroup" posix_spawnattr_setpgroup :: Ptr Posix_spawnattr_t -> CPid -> IO CInt

{-# LINE 2079 "src/Bindings/Posix.hsc" #-}
foreign import ccall "posix_spawnattr_setschedparam" posix_spawnattr_setschedparam :: Ptr Posix_spawnattr_t -> Ptr Sched_param -> IO CInt

{-# LINE 2081 "src/Bindings/Posix.hsc" #-}
foreign import ccall "posix_spawnattr_setschedpolicy" posix_spawnattr_setschedpolicy :: Ptr Posix_spawnattr_t -> CInt -> IO CInt

{-# LINE 2083 "src/Bindings/Posix.hsc" #-}
foreign import ccall "posix_spawnattr_setsigdefault" posix_spawnattr_setsigdefault :: Ptr Posix_spawnattr_t -> Ptr Sigset_t -> IO CInt

{-# LINE 2085 "src/Bindings/Posix.hsc" #-}
foreign import ccall "posix_spawnattr_setsigmask" posix_spawnattr_setsigmask :: Ptr Posix_spawnattr_t -> Ptr Sigset_t -> IO CInt

{-# LINE 2088 "src/Bindings/Posix.hsc" #-}
foreign import ccall "posix_spawnp" posix_spawnp :: Ptr CPid -> CString -> Ptr Posix_spawn_file_actions_t -> Ptr Posix_spawnattr_t -> Ptr CString -> Ptr CString -> IO CInt

{-# LINE 2091 "src/Bindings/Posix.hsc" #-}


{-# LINE 2093 "src/Bindings/Posix.hsc" #-}

true = 1 :: (Num a) => a

{-# LINE 2095 "src/Bindings/Posix.hsc" #-}
false = 0 :: (Num a) => a

{-# LINE 2096 "src/Bindings/Posix.hsc" #-}


{-# LINE 2098 "src/Bindings/Posix.hsc" #-}

_L_ctermid = 9 :: (Num a) => a

{-# LINE 2100 "src/Bindings/Posix.hsc" #-}

foreign import ccall "ctermid" ctermid :: CString -> IO CString

{-# LINE 2102 "src/Bindings/Posix.hsc" #-}
foreign import ccall "fdopen" fdopen :: CInt -> CString -> IO (Ptr CFile)

{-# LINE 2103 "src/Bindings/Posix.hsc" #-}
foreign import ccall "fileno" fileno :: Ptr CFile -> IO CInt

{-# LINE 2104 "src/Bindings/Posix.hsc" #-}
foreign import ccall "flockfile" flockfile :: Ptr CFile -> IO ()

{-# LINE 2105 "src/Bindings/Posix.hsc" #-}
foreign import ccall "fseeko" fseeko :: Ptr CFile -> COff -> CInt -> IO CInt

{-# LINE 2106 "src/Bindings/Posix.hsc" #-}
foreign import ccall "ftello" ftello :: Ptr CFile -> IO COff

{-# LINE 2107 "src/Bindings/Posix.hsc" #-}
foreign import ccall "ftrylockfile" ftrylockfile :: Ptr CFile -> IO CInt

{-# LINE 2108 "src/Bindings/Posix.hsc" #-}
foreign import ccall "funlockfile" funlockfile :: Ptr CFile -> IO ()

{-# LINE 2109 "src/Bindings/Posix.hsc" #-}
foreign import ccall "getc_unlocked" getc_unlocked :: Ptr CFile -> IO CInt

{-# LINE 2110 "src/Bindings/Posix.hsc" #-}
foreign import ccall "getchar_unlocked" getchar_unlocked :: IO CInt

{-# LINE 2111 "src/Bindings/Posix.hsc" #-}
foreign import ccall "getdelim" getdelim :: Ptr CString -> Ptr CSize -> CInt -> Ptr CFile -> IO CSSize

{-# LINE 2113 "src/Bindings/Posix.hsc" #-}
foreign import ccall "getline" getline :: Ptr CString -> Ptr CSize -> Ptr CFile -> IO CSSize

{-# LINE 2115 "src/Bindings/Posix.hsc" #-}
foreign import ccall "open_memstream" open_memstream :: Ptr CString -> Ptr CSize -> IO (Ptr CFile)

{-# LINE 2117 "src/Bindings/Posix.hsc" #-}
foreign import ccall "pclose" pclose :: Ptr CFile -> IO CInt

{-# LINE 2118 "src/Bindings/Posix.hsc" #-}
foreign import ccall "popen" popen :: CString -> CString -> IO (Ptr CFile)

{-# LINE 2119 "src/Bindings/Posix.hsc" #-}
foreign import ccall "putc_unlocked" putc_unlocked :: CInt -> Ptr CFile -> IO CInt

{-# LINE 2120 "src/Bindings/Posix.hsc" #-}
foreign import ccall "putchar_unlocked" putchar_unlocked :: CInt -> IO CInt

{-# LINE 2121 "src/Bindings/Posix.hsc" #-}
foreign import ccall "renameat" renameat :: CInt -> CString -> CInt -> CString -> IO CInt

{-# LINE 2123 "src/Bindings/Posix.hsc" #-}


{-# LINE 2125 "src/Bindings/Posix.hsc" #-}

foreign import ccall "a64l" a64l :: CString -> IO CLong

{-# LINE 2127 "src/Bindings/Posix.hsc" #-}
foreign import ccall "drand48" drand48 :: IO CDouble

{-# LINE 2128 "src/Bindings/Posix.hsc" #-}
foreign import ccall "erand48" erand48 :: Ptr CUShort -> IO CDouble

{-# LINE 2129 "src/Bindings/Posix.hsc" #-}
foreign import ccall "grantpt" grantpt :: CInt -> IO CInt

{-# LINE 2130 "src/Bindings/Posix.hsc" #-}
foreign import ccall "initstate" initstate :: CUInt -> CString -> CSize -> IO CString

{-# LINE 2131 "src/Bindings/Posix.hsc" #-}
foreign import ccall "jrand48" jrand48 :: Ptr CUShort -> IO CLong

{-# LINE 2132 "src/Bindings/Posix.hsc" #-}
foreign import ccall "l64a" l64a :: CLong -> IO CString

{-# LINE 2133 "src/Bindings/Posix.hsc" #-}
foreign import ccall "lcong48" lcong48 :: Ptr CUShort -> IO ()

{-# LINE 2134 "src/Bindings/Posix.hsc" #-}
foreign import ccall "lrand48" lrand48 :: IO CLong

{-# LINE 2135 "src/Bindings/Posix.hsc" #-}
foreign import ccall "mkdtemp" mkdtemp :: CString -> IO CString

{-# LINE 2136 "src/Bindings/Posix.hsc" #-}
foreign import ccall "mkstemp" mkstemp :: CString -> IO CInt

{-# LINE 2137 "src/Bindings/Posix.hsc" #-}
foreign import ccall "mrand48" mrand48 :: IO CLong

{-# LINE 2138 "src/Bindings/Posix.hsc" #-}
foreign import ccall "nrand48" nrand48 :: Ptr CUShort -> IO CLong

{-# LINE 2139 "src/Bindings/Posix.hsc" #-}
foreign import ccall "posix_memalign" posix_memalign :: Ptr (Ptr ()) -> CSize -> CSize -> IO CInt

{-# LINE 2140 "src/Bindings/Posix.hsc" #-}
foreign import ccall "posix_openpt" posix_openpt :: CInt -> IO CInt

{-# LINE 2141 "src/Bindings/Posix.hsc" #-}
foreign import ccall "ptsname" ptsname :: CInt -> IO CString

{-# LINE 2142 "src/Bindings/Posix.hsc" #-}
foreign import ccall "putenv" putenv :: CString -> IO CInt

{-# LINE 2143 "src/Bindings/Posix.hsc" #-}
foreign import ccall "rand_r" rand_r :: IO CInt

{-# LINE 2144 "src/Bindings/Posix.hsc" #-}
foreign import ccall "random" random :: IO CLong

{-# LINE 2145 "src/Bindings/Posix.hsc" #-}
foreign import ccall "realpath" realpath :: CString -> CString -> IO CString

{-# LINE 2146 "src/Bindings/Posix.hsc" #-}
foreign import ccall "seed48" seed48 :: Ptr CUShort -> IO (Ptr CUShort)

{-# LINE 2147 "src/Bindings/Posix.hsc" #-}
foreign import ccall "setenv" setenv :: CString -> CString -> CInt -> IO CInt

{-# LINE 2148 "src/Bindings/Posix.hsc" #-}
foreign import ccall "setstate" setstate :: CString -> IO CString

{-# LINE 2149 "src/Bindings/Posix.hsc" #-}
foreign import ccall "srandom" srandom :: CUInt -> IO ()

{-# LINE 2150 "src/Bindings/Posix.hsc" #-}
foreign import ccall "unlockpt" unlockpt :: CInt -> IO CInt

{-# LINE 2151 "src/Bindings/Posix.hsc" #-}
foreign import ccall "unsetenv" unsetenv :: CString -> IO CInt

{-# LINE 2152 "src/Bindings/Posix.hsc" #-}


{-# LINE 2154 "src/Bindings/Posix.hsc" #-}

foreign import ccall "memccpy" memccpy :: Ptr () -> Ptr () -> CInt -> CSize -> IO (Ptr ())

{-# LINE 2157 "src/Bindings/Posix.hsc" #-}
foreign import ccall "stpcpy" stpcpy :: CString -> CString -> IO CString

{-# LINE 2158 "src/Bindings/Posix.hsc" #-}
foreign import ccall "stpncpy" stpncpy :: CString -> CString -> CSize -> IO CString

{-# LINE 2160 "src/Bindings/Posix.hsc" #-}
foreign import ccall "strdup" strdup :: CString -> IO CString

{-# LINE 2161 "src/Bindings/Posix.hsc" #-}
foreign import ccall "strerror_r" strerror_r :: CInt -> CString -> CSize -> IO CInt

{-# LINE 2163 "src/Bindings/Posix.hsc" #-}
foreign import ccall "strndup" strndup :: CString -> CSize -> IO CString

{-# LINE 2164 "src/Bindings/Posix.hsc" #-}
foreign import ccall "strnlen" strnlen :: CString -> CSize -> IO CSize

{-# LINE 2165 "src/Bindings/Posix.hsc" #-}
foreign import ccall "strsignal" strsignal :: CInt -> IO CString

{-# LINE 2166 "src/Bindings/Posix.hsc" #-}
foreign import ccall "strtok_r" strtok_r :: CString -> CString -> Ptr CString -> IO CString

{-# LINE 2168 "src/Bindings/Posix.hsc" #-}


{-# LINE 2170 "src/Bindings/Posix.hsc" #-}

foreign import ccall "strcasecmp" strcasecmp :: CString -> CString -> IO CInt

{-# LINE 2172 "src/Bindings/Posix.hsc" #-}
foreign import ccall "strncasecmp" strncasecmp :: CString -> CString -> CSize -> IO CInt

{-# LINE 2173 "src/Bindings/Posix.hsc" #-}


{-# LINE 2175 "src/Bindings/Posix.hsc" #-}


{-# LINE 2177 "src/Bindings/Posix.hsc" #-}
data Sigset_t = Sigset_t
instance Storable Sigset_t where {sizeOf _ = 128 ; alignment = sizeOf ; peek p = return $ Sigset_t  ; poke p (Sigset_t ) = return () }
{-# LINE 2178 "src/Bindings/Posix.hsc" #-}


{-# LINE 2180 "src/Bindings/Posix.hsc" #-}

{-# LINE 2181 "src/Bindings/Posix.hsc" #-}

{-# LINE 2182 "src/Bindings/Posix.hsc" #-}

{-# LINE 2183 "src/Bindings/Posix.hsc" #-}

{-# LINE 2184 "src/Bindings/Posix.hsc" #-}

{-# LINE 2185 "src/Bindings/Posix.hsc" #-}
data Sigevent = Sigevent {sigevent'sigev_notify :: CInt , sigevent'sigev_signo :: CInt , sigevent'sigev_value :: Sigval , sigevent'sigev_notify_function :: FunPtr (Sigval -> IO ()) , sigevent'sigev_notify_attributes :: Ptr ()}
instance Storable Sigevent where {sizeOf _ = 64 ; alignment = sizeOf ; peek p = peekByteOff p 8 >>= \v0 -> peekByteOff p 4 >>= \v1 -> peekByteOff p 0 >>= \v2 -> peekByteOff p 12 >>= \v3 -> peekByteOff p 16 >>= \v4 -> return $ Sigevent v0 v1 v2 v3 v4  ; poke p (Sigevent v0 v1 v2 v3 v4 ) = pokeByteOff p 8 v0 >> pokeByteOff p 4 v1 >> pokeByteOff p 0 v2 >> pokeByteOff p 12 v3 >> pokeByteOff p 16 v4 >> return () }
{-# LINE 2186 "src/Bindings/Posix.hsc" #-}

_SIGEV_NONE = 1 :: CInt

{-# LINE 2188 "src/Bindings/Posix.hsc" #-}
_SIGEV_SIGNAL = 0 :: CInt

{-# LINE 2189 "src/Bindings/Posix.hsc" #-}
_SIGEV_THREAD = 2 :: CInt

{-# LINE 2190 "src/Bindings/Posix.hsc" #-}


{-# LINE 2192 "src/Bindings/Posix.hsc" #-}

{-# LINE 2193 "src/Bindings/Posix.hsc" #-}

{-# LINE 2194 "src/Bindings/Posix.hsc" #-}
data Sigval = Sigval {sigval'sival_int :: CInt , sigval'sival_ptr :: Ptr ()}
instance Storable Sigval where {sizeOf _ = 4 ; alignment = sizeOf ; peek p = peekByteOff p 0 >>= \v0 -> peekByteOff p 0 >>= \v1 -> return $ Sigval v0 v1  ; poke p (Sigval v0 v1 ) = pokeByteOff p 0 v0 >> pokeByteOff p 0 v1 >> return () }
{-# LINE 2195 "src/Bindings/Posix.hsc" #-}

_SIGALRM = 14 :: CInt

{-# LINE 2197 "src/Bindings/Posix.hsc" #-}
_SIGBUS = 7 :: CInt

{-# LINE 2198 "src/Bindings/Posix.hsc" #-}
_SIGCHLD = 17 :: CInt

{-# LINE 2199 "src/Bindings/Posix.hsc" #-}
_SIGCONT = 18 :: CInt

{-# LINE 2200 "src/Bindings/Posix.hsc" #-}
_SIGHUP = 1 :: CInt

{-# LINE 2201 "src/Bindings/Posix.hsc" #-}
_SIGKILL = 9 :: CInt

{-# LINE 2202 "src/Bindings/Posix.hsc" #-}
_SIGPIPE = 13 :: CInt

{-# LINE 2203 "src/Bindings/Posix.hsc" #-}
_SIGQUIT = 3 :: CInt

{-# LINE 2204 "src/Bindings/Posix.hsc" #-}
_SIGSTOP = 19 :: CInt

{-# LINE 2205 "src/Bindings/Posix.hsc" #-}
_SIGTSTP = 20 :: CInt

{-# LINE 2206 "src/Bindings/Posix.hsc" #-}
_SIGTTIN = 21 :: CInt

{-# LINE 2207 "src/Bindings/Posix.hsc" #-}
_SIGTTOU = 22 :: CInt

{-# LINE 2208 "src/Bindings/Posix.hsc" #-}
_SIGUSR1 = 10 :: CInt

{-# LINE 2209 "src/Bindings/Posix.hsc" #-}
_SIGUSR2 = 12 :: CInt

{-# LINE 2210 "src/Bindings/Posix.hsc" #-}
_SIGSYS = 31 :: CInt

{-# LINE 2211 "src/Bindings/Posix.hsc" #-}
_SIGTRAP = 5 :: CInt

{-# LINE 2212 "src/Bindings/Posix.hsc" #-}
_SIGURG = 23 :: CInt

{-# LINE 2213 "src/Bindings/Posix.hsc" #-}
_SIGVTALRM = 26 :: CInt

{-# LINE 2214 "src/Bindings/Posix.hsc" #-}
_SIGXCPU = 24 :: CInt

{-# LINE 2215 "src/Bindings/Posix.hsc" #-}
_SIGXFSZ = 25 :: CInt

{-# LINE 2216 "src/Bindings/Posix.hsc" #-}


{-# LINE 2218 "src/Bindings/Posix.hsc" #-}

{-# LINE 2219 "src/Bindings/Posix.hsc" #-}

{-# LINE 2220 "src/Bindings/Posix.hsc" #-}

{-# LINE 2222 "src/Bindings/Posix.hsc" #-}
data Sigaction = Sigaction {sigaction'sa_handler :: FunPtr (CInt -> IO ()) , sigaction'sa_flags :: CInt , sigaction'sa_sigaction :: FunPtr (CInt -> Ptr Siginfo_t -> Ptr () -> IO ())}
instance Storable Sigaction where {sizeOf _ = 140 ; alignment = sizeOf ; peek p = peekByteOff p 0 >>= \v0 -> peekByteOff p 132 >>= \v1 -> peekByteOff p 0 >>= \v2 -> return $ Sigaction v0 v1 v2  ; poke p (Sigaction v0 v1 v2 ) = pokeByteOff p 0 v0 >> pokeByteOff p 132 v1 >> pokeByteOff p 0 v2 >> return () }
{-# LINE 2223 "src/Bindings/Posix.hsc" #-}

_SIG_BLOCK = 0 :: CInt

{-# LINE 2225 "src/Bindings/Posix.hsc" #-}
_SIG_UNBLOCK = 1 :: CInt

{-# LINE 2226 "src/Bindings/Posix.hsc" #-}
_SIG_SETMASK = 2 :: CInt

{-# LINE 2227 "src/Bindings/Posix.hsc" #-}
_SA_NOCLDSTOP = 1 :: CInt

{-# LINE 2228 "src/Bindings/Posix.hsc" #-}
_SA_ONSTACK = 134217728 :: CInt

{-# LINE 2229 "src/Bindings/Posix.hsc" #-}
_SA_RESETHAND = -2147483648 :: CInt

{-# LINE 2230 "src/Bindings/Posix.hsc" #-}
_SA_RESTART = 268435456 :: CInt

{-# LINE 2231 "src/Bindings/Posix.hsc" #-}
_SA_SIGINFO = 4 :: CInt

{-# LINE 2232 "src/Bindings/Posix.hsc" #-}
_SA_NOCLDWAIT = 2 :: CInt

{-# LINE 2233 "src/Bindings/Posix.hsc" #-}
_SA_NODEFER = 1073741824 :: CInt

{-# LINE 2234 "src/Bindings/Posix.hsc" #-}
_SS_ONSTACK = 1 :: CInt

{-# LINE 2235 "src/Bindings/Posix.hsc" #-}
_SS_DISABLE = 2 :: CInt

{-# LINE 2236 "src/Bindings/Posix.hsc" #-}
_MINSIGSTKSZ = 2048 :: (Num a) => a

{-# LINE 2237 "src/Bindings/Posix.hsc" #-}
_SIGSTKSZ = 8192 :: (Num a) => a

{-# LINE 2238 "src/Bindings/Posix.hsc" #-}


{-# LINE 2240 "src/Bindings/Posix.hsc" #-}

{-# LINE 2241 "src/Bindings/Posix.hsc" #-}

{-# LINE 2242 "src/Bindings/Posix.hsc" #-}
data Ucontext_t = Ucontext_t {ucontext_t'uc_link :: Ptr Ucontext_t , ucontext_t'uc_stack :: Stack_t}
instance Storable Ucontext_t where {sizeOf _ = 348 ; alignment = sizeOf ; peek p = peekByteOff p 4 >>= \v0 -> peekByteOff p 8 >>= \v1 -> return $ Ucontext_t v0 v1  ; poke p (Ucontext_t v0 v1 ) = pokeByteOff p 4 v0 >> pokeByteOff p 8 v1 >> return () }
{-# LINE 2243 "src/Bindings/Posix.hsc" #-}


{-# LINE 2245 "src/Bindings/Posix.hsc" #-}

{-# LINE 2246 "src/Bindings/Posix.hsc" #-}

{-# LINE 2247 "src/Bindings/Posix.hsc" #-}

{-# LINE 2248 "src/Bindings/Posix.hsc" #-}
data Stack_t = Stack_t {stack_t'ss_sp :: Ptr () , stack_t'ss_size :: CSize , stack_t'ss_flags :: CInt}
instance Storable Stack_t where {sizeOf _ = 12 ; alignment = sizeOf ; peek p = peekByteOff p 0 >>= \v0 -> peekByteOff p 8 >>= \v1 -> peekByteOff p 4 >>= \v2 -> return $ Stack_t v0 v1 v2  ; poke p (Stack_t v0 v1 v2 ) = pokeByteOff p 0 v0 >> pokeByteOff p 8 v1 >> pokeByteOff p 4 v2 >> return () }
{-# LINE 2249 "src/Bindings/Posix.hsc" #-}


{-# LINE 2251 "src/Bindings/Posix.hsc" #-}

{-# LINE 2252 "src/Bindings/Posix.hsc" #-}

{-# LINE 2253 "src/Bindings/Posix.hsc" #-}

{-# LINE 2254 "src/Bindings/Posix.hsc" #-}

{-# LINE 2255 "src/Bindings/Posix.hsc" #-}

{-# LINE 2256 "src/Bindings/Posix.hsc" #-}

{-# LINE 2257 "src/Bindings/Posix.hsc" #-}

{-# LINE 2258 "src/Bindings/Posix.hsc" #-}

{-# LINE 2259 "src/Bindings/Posix.hsc" #-}

{-# LINE 2260 "src/Bindings/Posix.hsc" #-}
data Siginfo_t = Siginfo_t {siginfo_t'si_signo :: CInt , siginfo_t'si_code :: CInt , siginfo_t'si_errno :: CInt , siginfo_t'si_pid :: CPid , siginfo_t'si_uid :: CUid , siginfo_t'si_addr :: Ptr () , siginfo_t'si_status :: CInt , siginfo_t'si_band :: CLong , siginfo_t'si_value :: Sigval}
instance Storable Siginfo_t where {sizeOf _ = 128 ; alignment = sizeOf ; peek p = peekByteOff p 0 >>= \v0 -> peekByteOff p 8 >>= \v1 -> peekByteOff p 4 >>= \v2 -> peekByteOff p 12 >>= \v3 -> peekByteOff p 16 >>= \v4 -> peekByteOff p 12 >>= \v5 -> peekByteOff p 20 >>= \v6 -> peekByteOff p 12 >>= \v7 -> peekByteOff p 20 >>= \v8 -> return $ Siginfo_t v0 v1 v2 v3 v4 v5 v6 v7 v8  ; poke p (Siginfo_t v0 v1 v2 v3 v4 v5 v6 v7 v8 ) = pokeByteOff p 0 v0 >> pokeByteOff p 8 v1 >> pokeByteOff p 4 v2 >> pokeByteOff p 12 v3 >> pokeByteOff p 16 v4 >> pokeByteOff p 12 v5 >> pokeByteOff p 20 v6 >> pokeByteOff p 12 v7 >> pokeByteOff p 20 v8 >> return () }
{-# LINE 2261 "src/Bindings/Posix.hsc" #-}

_ILL_ILLOPC = 1 :: CInt

{-# LINE 2263 "src/Bindings/Posix.hsc" #-}
_ILL_ILLOPN = 2 :: CInt

{-# LINE 2264 "src/Bindings/Posix.hsc" #-}
_ILL_ILLADR = 3 :: CInt

{-# LINE 2265 "src/Bindings/Posix.hsc" #-}
_ILL_ILLTRP = 4 :: CInt

{-# LINE 2266 "src/Bindings/Posix.hsc" #-}
_ILL_PRVOPC = 5 :: CInt

{-# LINE 2267 "src/Bindings/Posix.hsc" #-}
_ILL_PRVREG = 6 :: CInt

{-# LINE 2268 "src/Bindings/Posix.hsc" #-}
_ILL_COPROC = 7 :: CInt

{-# LINE 2269 "src/Bindings/Posix.hsc" #-}
_ILL_BADSTK = 8 :: CInt

{-# LINE 2270 "src/Bindings/Posix.hsc" #-}
_FPE_INTDIV = 1 :: CInt

{-# LINE 2271 "src/Bindings/Posix.hsc" #-}
_FPE_INTOVF = 2 :: CInt

{-# LINE 2272 "src/Bindings/Posix.hsc" #-}
_FPE_FLTDIV = 3 :: CInt

{-# LINE 2273 "src/Bindings/Posix.hsc" #-}
_FPE_FLTOVF = 4 :: CInt

{-# LINE 2274 "src/Bindings/Posix.hsc" #-}
_FPE_FLTUND = 5 :: CInt

{-# LINE 2275 "src/Bindings/Posix.hsc" #-}
_FPE_FLTRES = 6 :: CInt

{-# LINE 2276 "src/Bindings/Posix.hsc" #-}
_FPE_FLTINV = 7 :: CInt

{-# LINE 2277 "src/Bindings/Posix.hsc" #-}
_FPE_FLTSUB = 8 :: CInt

{-# LINE 2278 "src/Bindings/Posix.hsc" #-}
_SEGV_MAPERR = 1 :: CInt

{-# LINE 2279 "src/Bindings/Posix.hsc" #-}
_SEGV_ACCERR = 2 :: CInt

{-# LINE 2280 "src/Bindings/Posix.hsc" #-}
_BUS_ADRALN = 1 :: CInt

{-# LINE 2281 "src/Bindings/Posix.hsc" #-}
_BUS_ADRERR = 2 :: CInt

{-# LINE 2282 "src/Bindings/Posix.hsc" #-}
_BUS_OBJERR = 3 :: CInt

{-# LINE 2283 "src/Bindings/Posix.hsc" #-}
_TRAP_BRKPT = 1 :: CInt

{-# LINE 2284 "src/Bindings/Posix.hsc" #-}
_TRAP_TRACE = 2 :: CInt

{-# LINE 2285 "src/Bindings/Posix.hsc" #-}
_CLD_EXITED = 1 :: CInt

{-# LINE 2286 "src/Bindings/Posix.hsc" #-}
_CLD_KILLED = 2 :: CInt

{-# LINE 2287 "src/Bindings/Posix.hsc" #-}
_CLD_DUMPED = 3 :: CInt

{-# LINE 2288 "src/Bindings/Posix.hsc" #-}
_CLD_TRAPPED = 4 :: CInt

{-# LINE 2289 "src/Bindings/Posix.hsc" #-}
_CLD_STOPPED = 5 :: CInt

{-# LINE 2290 "src/Bindings/Posix.hsc" #-}
_CLD_CONTINUED = 6 :: CInt

{-# LINE 2291 "src/Bindings/Posix.hsc" #-}
_SI_USER = 0 :: CInt

{-# LINE 2292 "src/Bindings/Posix.hsc" #-}
_SI_QUEUE = -1 :: CInt

{-# LINE 2293 "src/Bindings/Posix.hsc" #-}
_SI_TIMER = -2 :: CInt

{-# LINE 2294 "src/Bindings/Posix.hsc" #-}
_SI_ASYNCIO = -4 :: CInt

{-# LINE 2295 "src/Bindings/Posix.hsc" #-}
_SI_MESGQ = -3 :: CInt

{-# LINE 2296 "src/Bindings/Posix.hsc" #-}

foreign import ccall "kill" kill :: CPid -> CInt -> IO CInt

{-# LINE 2298 "src/Bindings/Posix.hsc" #-}
foreign import ccall "killpg" killpg :: CPid -> CInt -> IO CInt

{-# LINE 2299 "src/Bindings/Posix.hsc" #-}
-- #bindings_function psiginfo , Ptr Siginfo_t -> CString -> IO ()
foreign import ccall "psignal" psignal :: CInt -> CString -> IO ()

{-# LINE 2301 "src/Bindings/Posix.hsc" #-}
foreign import ccall "pthread_sigmask" pthread_sigmask :: CInt -> Ptr Sigset_t -> Ptr Sigset_t -> IO CInt

{-# LINE 2303 "src/Bindings/Posix.hsc" #-}
foreign import ccall "sigaction" sigaction :: CInt -> Ptr Sigaction -> Ptr Sigaction -> IO CInt

{-# LINE 2305 "src/Bindings/Posix.hsc" #-}
foreign import ccall "sigaddset" sigaddset :: Ptr Sigset_t -> CInt -> IO CInt

{-# LINE 2306 "src/Bindings/Posix.hsc" #-}
foreign import ccall "sigaltstack" sigaltstack :: Ptr Stack_t -> Ptr Stack_t -> IO CInt

{-# LINE 2307 "src/Bindings/Posix.hsc" #-}
foreign import ccall "sigdelset" sigdelset :: Ptr Sigset_t -> CInt -> IO CInt

{-# LINE 2308 "src/Bindings/Posix.hsc" #-}
foreign import ccall "sigemptyset" sigemptyset :: Ptr Sigset_t -> IO CInt

{-# LINE 2309 "src/Bindings/Posix.hsc" #-}
foreign import ccall "sigfillset" sigfillset :: Ptr Sigset_t -> IO CInt

{-# LINE 2310 "src/Bindings/Posix.hsc" #-}
foreign import ccall "sigismember" sigismember :: Ptr Sigset_t -> CInt -> IO CInt

{-# LINE 2311 "src/Bindings/Posix.hsc" #-}
foreign import ccall "sigpending" sigpending :: Ptr Sigset_t -> IO CInt

{-# LINE 2312 "src/Bindings/Posix.hsc" #-}
foreign import ccall "sigprocmask" sigprocmask :: CInt -> Ptr Sigset_t -> Ptr Sigset_t -> IO CInt

{-# LINE 2314 "src/Bindings/Posix.hsc" #-}
foreign import ccall "sigsuspend" sigsuspend :: Ptr Sigset_t -> IO CInt

{-# LINE 2315 "src/Bindings/Posix.hsc" #-}
foreign import ccall "sigtimedwait" sigtimedwait :: Ptr Sigset_t -> Ptr Siginfo_t -> Ptr Timespec -> IO CInt

{-# LINE 2317 "src/Bindings/Posix.hsc" #-}
foreign import ccall "sigwait" sigwait :: Ptr Sigset_t -> Ptr CInt -> IO CInt

{-# LINE 2318 "src/Bindings/Posix.hsc" #-}
foreign import ccall "sigwaitinfo" sigwaitinfo :: Ptr Sigset_t -> Ptr Siginfo_t -> IO CInt

{-# LINE 2320 "src/Bindings/Posix.hsc" #-}


{-# LINE 2322 "src/Bindings/Posix.hsc" #-}


{-# LINE 2324 "src/Bindings/Posix.hsc" #-}

{-# LINE 2325 "src/Bindings/Posix.hsc" #-}

{-# LINE 2326 "src/Bindings/Posix.hsc" #-}

{-# LINE 2327 "src/Bindings/Posix.hsc" #-}

{-# LINE 2328 "src/Bindings/Posix.hsc" #-}

{-# LINE 2329 "src/Bindings/Posix.hsc" #-}
data Ipc_perm = Ipc_perm {ipc_perm'uid :: CUid , ipc_perm'gid :: CGid , ipc_perm'cuid :: CUid , ipc_perm'cgid :: CGid , ipc_perm'mode :: CMode}
instance Storable Ipc_perm where {sizeOf _ = 36 ; alignment = sizeOf ; peek p = peekByteOff p 4 >>= \v0 -> peekByteOff p 8 >>= \v1 -> peekByteOff p 12 >>= \v2 -> peekByteOff p 16 >>= \v3 -> peekByteOff p 20 >>= \v4 -> return $ Ipc_perm v0 v1 v2 v3 v4  ; poke p (Ipc_perm v0 v1 v2 v3 v4 ) = pokeByteOff p 4 v0 >> pokeByteOff p 8 v1 >> pokeByteOff p 12 v2 >> pokeByteOff p 16 v3 >> pokeByteOff p 20 v4 >> return () }
{-# LINE 2330 "src/Bindings/Posix.hsc" #-}

_IPC_CREAT = 512 :: CInt

{-# LINE 2332 "src/Bindings/Posix.hsc" #-}
_IPC_EXCL = 1024 :: CInt

{-# LINE 2333 "src/Bindings/Posix.hsc" #-}
_IPC_NOWAIT = 2048 :: CInt

{-# LINE 2334 "src/Bindings/Posix.hsc" #-}

_IPC_PRIVATE = 0 :: CKey

{-# LINE 2336 "src/Bindings/Posix.hsc" #-}

_IPC_RMID = 0 :: (Num a) => a

{-# LINE 2338 "src/Bindings/Posix.hsc" #-}
_IPC_SET = 1 :: (Num a) => a

{-# LINE 2339 "src/Bindings/Posix.hsc" #-}
_IPC_STAT = 2 :: (Num a) => a

{-# LINE 2340 "src/Bindings/Posix.hsc" #-}

foreign import ccall "ftok" ftok :: CString -> CInt -> IO CKey

{-# LINE 2342 "src/Bindings/Posix.hsc" #-}


{-# LINE 2344 "src/Bindings/Posix.hsc" #-}

_PROT_EXEC = 4 :: CInt

{-# LINE 2346 "src/Bindings/Posix.hsc" #-}
_PROT_NONE = 0 :: CInt

{-# LINE 2347 "src/Bindings/Posix.hsc" #-}
_PROT_READ = 1 :: CInt

{-# LINE 2348 "src/Bindings/Posix.hsc" #-}
_PROT_WRITE = 2 :: CInt

{-# LINE 2349 "src/Bindings/Posix.hsc" #-}

_MAP_FIXED = 16 :: CInt

{-# LINE 2351 "src/Bindings/Posix.hsc" #-}
_MAP_PRIVATE = 2 :: CInt

{-# LINE 2352 "src/Bindings/Posix.hsc" #-}
_MAP_SHARED = 1 :: CInt

{-# LINE 2353 "src/Bindings/Posix.hsc" #-}

_MS_ASYNC = 1 :: CInt

{-# LINE 2355 "src/Bindings/Posix.hsc" #-}
_MS_INVALIDATE = 2 :: CInt

{-# LINE 2356 "src/Bindings/Posix.hsc" #-}
_MS_SYNC = 4 :: CInt

{-# LINE 2357 "src/Bindings/Posix.hsc" #-}

_MCL_CURRENT = 1 :: CInt

{-# LINE 2359 "src/Bindings/Posix.hsc" #-}
_MCL_FUTURE = 2 :: CInt

{-# LINE 2360 "src/Bindings/Posix.hsc" #-}

_MAP_FAILED =  wordPtrToPtr (4294967295 :: WordPtr) :: Ptr ()

{-# LINE 2362 "src/Bindings/Posix.hsc" #-}

_POSIX_MADV_DONTNEED = 4 :: CInt

{-# LINE 2364 "src/Bindings/Posix.hsc" #-}
_POSIX_MADV_NORMAL = 0 :: CInt

{-# LINE 2365 "src/Bindings/Posix.hsc" #-}
_POSIX_MADV_RANDOM = 1 :: CInt

{-# LINE 2366 "src/Bindings/Posix.hsc" #-}
_POSIX_MADV_SEQUENTIAL = 2 :: CInt

{-# LINE 2367 "src/Bindings/Posix.hsc" #-}
_POSIX_MADV_WILLNEED = 3 :: CInt

{-# LINE 2368 "src/Bindings/Posix.hsc" #-}
-- #bindings_int     POSIX_TYPED_MEM_ALLOCATE
-- #bindings_int     POSIX_TYPED_MEM_ALLOCATE_CONTIG
-- #bindings_int     POSIX_TYPED_MEM_MAP_ALLOCATABLE

-- #bindings_starttype posix_typed_mem_info
-- #bindings_field posix_tmi_length , CSize
-- #bindings_stoptype _

foreign import ccall "mlock" mlock :: Ptr () -> CSize -> IO CInt

{-# LINE 2377 "src/Bindings/Posix.hsc" #-}
foreign import ccall "mlockall" mlockall :: CInt -> IO CInt

{-# LINE 2378 "src/Bindings/Posix.hsc" #-}
foreign import ccall "mmap" mmap :: Ptr () -> CSize -> CInt -> CInt -> CInt -> COff -> IO (Ptr ())

{-# LINE 2380 "src/Bindings/Posix.hsc" #-}
foreign import ccall "mprotect" mprotect :: Ptr () -> CSize -> CInt -> IO CInt

{-# LINE 2381 "src/Bindings/Posix.hsc" #-}
foreign import ccall "msync" msync :: Ptr () -> CSize -> CInt -> IO CInt

{-# LINE 2382 "src/Bindings/Posix.hsc" #-}
foreign import ccall "munlock" munlock :: Ptr () -> CSize -> IO CInt

{-# LINE 2383 "src/Bindings/Posix.hsc" #-}
foreign import ccall "munlockall" munlockall :: IO CInt

{-# LINE 2384 "src/Bindings/Posix.hsc" #-}
foreign import ccall "munmap" munmap :: Ptr () -> CSize -> IO CInt

{-# LINE 2385 "src/Bindings/Posix.hsc" #-}
foreign import ccall "posix_madvise" posix_madvise :: Ptr () -> CSize -> CInt -> IO CInt

{-# LINE 2387 "src/Bindings/Posix.hsc" #-}
-- #bindings_function posix_mem_offset , Ptr () -> CSize -> \
--   Ptr COff -> Ptr CSize -> Ptr CInt -> IO CInt
-- #bindings_function posix_typed_mem_get_info , CInt -> \
--   Ptr Posix_typed_mem_info -> IO CInt
-- #bindings_function posix_typed_mem_open , CString -> \
--   CInt -> CInt -> IO CInt
foreign import ccall "shm_open" shm_open :: CString -> CInt -> CMode -> IO CInt

{-# LINE 2394 "src/Bindings/Posix.hsc" #-}
foreign import ccall "shm_unlink" shm_unlink :: CString -> IO CInt

{-# LINE 2395 "src/Bindings/Posix.hsc" #-}


{-# LINE 2397 "src/Bindings/Posix.hsc" #-}

type CMsgqnum = Word32
{-# LINE 2399 "src/Bindings/Posix.hsc" #-}
type CMsglen = Word32
{-# LINE 2400 "src/Bindings/Posix.hsc" #-}

_MSG_NOERROR = 4096 :: (Num a) => a

{-# LINE 2402 "src/Bindings/Posix.hsc" #-}


{-# LINE 2404 "src/Bindings/Posix.hsc" #-}

{-# LINE 2405 "src/Bindings/Posix.hsc" #-}

{-# LINE 2406 "src/Bindings/Posix.hsc" #-}

{-# LINE 2407 "src/Bindings/Posix.hsc" #-}

{-# LINE 2408 "src/Bindings/Posix.hsc" #-}

{-# LINE 2409 "src/Bindings/Posix.hsc" #-}

{-# LINE 2410 "src/Bindings/Posix.hsc" #-}

{-# LINE 2411 "src/Bindings/Posix.hsc" #-}

{-# LINE 2412 "src/Bindings/Posix.hsc" #-}
data Msqid_ds = Msqid_ds {msqid_ds'msg_perm :: Ipc_perm , msqid_ds'msg_qnum :: CMsgqnum , msqid_ds'msg_qbytes :: CMsglen , msqid_ds'msg_lspid :: CPid , msqid_ds'msg_lrpid :: CPid , msqid_ds'msg_stime :: CTime , msqid_ds'msg_rtime :: CTime , msqid_ds'msg_ctime :: CTime}
instance Storable Msqid_ds where {sizeOf _ = 88 ; alignment = sizeOf ; peek p = peekByteOff p 0 >>= \v0 -> peekByteOff p 64 >>= \v1 -> peekByteOff p 68 >>= \v2 -> peekByteOff p 72 >>= \v3 -> peekByteOff p 76 >>= \v4 -> peekByteOff p 36 >>= \v5 -> peekByteOff p 44 >>= \v6 -> peekByteOff p 52 >>= \v7 -> return $ Msqid_ds v0 v1 v2 v3 v4 v5 v6 v7  ; poke p (Msqid_ds v0 v1 v2 v3 v4 v5 v6 v7 ) = pokeByteOff p 0 v0 >> pokeByteOff p 64 v1 >> pokeByteOff p 68 v2 >> pokeByteOff p 72 v3 >> pokeByteOff p 76 v4 >> pokeByteOff p 36 v5 >> pokeByteOff p 44 v6 >> pokeByteOff p 52 v7 >> return () }
{-# LINE 2413 "src/Bindings/Posix.hsc" #-}

foreign import ccall "msgctl" msgctl :: CInt -> CInt -> Ptr Msqid_ds -> IO CInt

{-# LINE 2415 "src/Bindings/Posix.hsc" #-}
foreign import ccall "msgget" msgget :: CKey -> CInt -> IO CInt

{-# LINE 2416 "src/Bindings/Posix.hsc" #-}
foreign import ccall "msgrcv" msgrcv :: CInt -> Ptr () -> CSize -> CLong -> CInt -> IO CSSize

{-# LINE 2418 "src/Bindings/Posix.hsc" #-}
foreign import ccall "msgsnd" msgsnd :: CInt -> Ptr () -> CSize -> CInt -> IO CInt

{-# LINE 2419 "src/Bindings/Posix.hsc" #-}



{-# LINE 2422 "src/Bindings/Posix.hsc" #-}

_PRIO_PROCESS = 0 :: CInt

{-# LINE 2424 "src/Bindings/Posix.hsc" #-}
_PRIO_PGRP = 1 :: CInt

{-# LINE 2425 "src/Bindings/Posix.hsc" #-}
_PRIO_USER = 2 :: CInt

{-# LINE 2426 "src/Bindings/Posix.hsc" #-}

type CRlim = Word64
{-# LINE 2428 "src/Bindings/Posix.hsc" #-}

_RLIM_INFINITY = 18446744073709551615 :: CRlim

{-# LINE 2430 "src/Bindings/Posix.hsc" #-}
_RLIM_SAVED_MAX = 18446744073709551615 :: CRlim

{-# LINE 2431 "src/Bindings/Posix.hsc" #-}
_RLIM_SAVED_CUR = 18446744073709551615 :: CRlim

{-# LINE 2432 "src/Bindings/Posix.hsc" #-}

_RUSAGE_SELF = 0 :: CInt

{-# LINE 2434 "src/Bindings/Posix.hsc" #-}
_RUSAGE_CHILDREN = -1 :: CInt

{-# LINE 2435 "src/Bindings/Posix.hsc" #-}


{-# LINE 2437 "src/Bindings/Posix.hsc" #-}

{-# LINE 2438 "src/Bindings/Posix.hsc" #-}

{-# LINE 2439 "src/Bindings/Posix.hsc" #-}
data Rlimit = Rlimit {rlimit'rlim_cur :: CRlim , rlimit'rlim_max :: CRlim}
instance Storable Rlimit where {sizeOf _ = 16 ; alignment = sizeOf ; peek p = peekByteOff p 0 >>= \v0 -> peekByteOff p 8 >>= \v1 -> return $ Rlimit v0 v1  ; poke p (Rlimit v0 v1 ) = pokeByteOff p 0 v0 >> pokeByteOff p 8 v1 >> return () }
{-# LINE 2440 "src/Bindings/Posix.hsc" #-}


{-# LINE 2442 "src/Bindings/Posix.hsc" #-}

{-# LINE 2443 "src/Bindings/Posix.hsc" #-}

{-# LINE 2444 "src/Bindings/Posix.hsc" #-}
data Rusage = Rusage {rusage'ru_utime :: Timeval , rusage'ru_stime :: Timeval}
instance Storable Rusage where {sizeOf _ = 72 ; alignment = sizeOf ; peek p = peekByteOff p 0 >>= \v0 -> peekByteOff p 8 >>= \v1 -> return $ Rusage v0 v1  ; poke p (Rusage v0 v1 ) = pokeByteOff p 0 v0 >> pokeByteOff p 8 v1 >> return () }
{-# LINE 2445 "src/Bindings/Posix.hsc" #-}

_RLIMIT_CORE = 4 :: CInt

{-# LINE 2447 "src/Bindings/Posix.hsc" #-}
_RLIMIT_CPU = 0 :: CInt

{-# LINE 2448 "src/Bindings/Posix.hsc" #-}
_RLIMIT_DATA = 2 :: CInt

{-# LINE 2449 "src/Bindings/Posix.hsc" #-}
_RLIMIT_FSIZE = 1 :: CInt

{-# LINE 2450 "src/Bindings/Posix.hsc" #-}
_RLIMIT_NOFILE = 7 :: CInt

{-# LINE 2451 "src/Bindings/Posix.hsc" #-}
_RLIMIT_STACK = 3 :: CInt

{-# LINE 2452 "src/Bindings/Posix.hsc" #-}
_RLIMIT_AS = 9 :: CInt

{-# LINE 2453 "src/Bindings/Posix.hsc" #-}

foreign import ccall "getpriority" getpriority :: CInt -> CId -> IO CInt

{-# LINE 2455 "src/Bindings/Posix.hsc" #-}
foreign import ccall "getrlimit" getrlimit :: CInt -> Ptr Rlimit -> IO CInt

{-# LINE 2456 "src/Bindings/Posix.hsc" #-}
foreign import ccall "getrusage" getrusage :: CInt -> Ptr Rusage -> IO CInt

{-# LINE 2457 "src/Bindings/Posix.hsc" #-}
foreign import ccall "setpriority" setpriority :: CInt -> CId -> CInt -> IO CInt

{-# LINE 2458 "src/Bindings/Posix.hsc" #-}
foreign import ccall "setrlimit" setrlimit :: CInt -> Ptr Rlimit -> IO CInt

{-# LINE 2459 "src/Bindings/Posix.hsc" #-}


{-# LINE 2461 "src/Bindings/Posix.hsc" #-}


{-# LINE 2463 "src/Bindings/Posix.hsc" #-}

{-# LINE 2464 "src/Bindings/Posix.hsc" #-}

{-# LINE 2465 "src/Bindings/Posix.hsc" #-}
data Timeval = Timeval {timeval'tv_sec :: CTime , timeval'tv_usec :: CSuseconds}
instance Storable Timeval where {sizeOf _ = 8 ; alignment = sizeOf ; peek p = peekByteOff p 0 >>= \v0 -> peekByteOff p 4 >>= \v1 -> return $ Timeval v0 v1  ; poke p (Timeval v0 v1 ) = pokeByteOff p 0 v0 >> pokeByteOff p 4 v1 >> return () }
{-# LINE 2466 "src/Bindings/Posix.hsc" #-}


{-# LINE 2468 "src/Bindings/Posix.hsc" #-}
data Fd_set = Fd_set
instance Storable Fd_set where {sizeOf _ = 128 ; alignment = sizeOf ; peek p = return $ Fd_set  ; poke p (Fd_set ) = return () }
{-# LINE 2469 "src/Bindings/Posix.hsc" #-}

_FD_SETSIZE = 1024 :: (Num a) => a

{-# LINE 2471 "src/Bindings/Posix.hsc" #-}

foreign import ccall "pselect" pselect :: CInt -> Ptr Fd_set -> Ptr Fd_set -> Ptr Fd_set -> Ptr Timespec -> Ptr Sigset_t -> IO CInt

{-# LINE 2474 "src/Bindings/Posix.hsc" #-}
foreign import ccall "select" select :: CInt -> Ptr Fd_set -> Ptr Fd_set -> Ptr Fd_set -> Ptr Timeval -> IO CInt

{-# LINE 2476 "src/Bindings/Posix.hsc" #-}


{-# LINE 2478 "src/Bindings/Posix.hsc" #-}

_SHM_RDONLY = 4096 :: (Num a) => a

{-# LINE 2480 "src/Bindings/Posix.hsc" #-}
_SHM_RND = 8192 :: (Num a) => a

{-# LINE 2481 "src/Bindings/Posix.hsc" #-}
_SHMLBA = 4096 :: (Num a) => a

{-# LINE 2482 "src/Bindings/Posix.hsc" #-}

type CShmatt = Word32
{-# LINE 2484 "src/Bindings/Posix.hsc" #-}


{-# LINE 2486 "src/Bindings/Posix.hsc" #-}

{-# LINE 2487 "src/Bindings/Posix.hsc" #-}

{-# LINE 2488 "src/Bindings/Posix.hsc" #-}

{-# LINE 2489 "src/Bindings/Posix.hsc" #-}

{-# LINE 2490 "src/Bindings/Posix.hsc" #-}

{-# LINE 2491 "src/Bindings/Posix.hsc" #-}

{-# LINE 2492 "src/Bindings/Posix.hsc" #-}

{-# LINE 2493 "src/Bindings/Posix.hsc" #-}

{-# LINE 2494 "src/Bindings/Posix.hsc" #-}
data Shmid_ds = Shmid_ds {shmid_ds'shm_perm :: Ipc_perm , shmid_ds'shm_segsz :: CSize , shmid_ds'shm_lpid :: CPid , shmid_ds'shm_cpid :: CPid , shmid_ds'shm_nattch :: CShmatt , shmid_ds'shm_atime :: CTime , shmid_ds'shm_dtime :: CTime , shmid_ds'shm_ctime :: CTime}
instance Storable Shmid_ds where {sizeOf _ = 84 ; alignment = sizeOf ; peek p = peekByteOff p 0 >>= \v0 -> peekByteOff p 36 >>= \v1 -> peekByteOff p 68 >>= \v2 -> peekByteOff p 64 >>= \v3 -> peekByteOff p 72 >>= \v4 -> peekByteOff p 40 >>= \v5 -> peekByteOff p 48 >>= \v6 -> peekByteOff p 56 >>= \v7 -> return $ Shmid_ds v0 v1 v2 v3 v4 v5 v6 v7  ; poke p (Shmid_ds v0 v1 v2 v3 v4 v5 v6 v7 ) = pokeByteOff p 0 v0 >> pokeByteOff p 36 v1 >> pokeByteOff p 68 v2 >> pokeByteOff p 64 v3 >> pokeByteOff p 72 v4 >> pokeByteOff p 40 v5 >> pokeByteOff p 48 v6 >> pokeByteOff p 56 v7 >> return () }
{-# LINE 2495 "src/Bindings/Posix.hsc" #-}

foreign import ccall "shmat" shmat :: CInt -> Ptr () -> CInt -> IO (Ptr ())

{-# LINE 2497 "src/Bindings/Posix.hsc" #-}
foreign import ccall "shmctl" shmctl :: CInt -> CInt -> Ptr Shmid_ds -> IO CInt

{-# LINE 2498 "src/Bindings/Posix.hsc" #-}
foreign import ccall "shmdt" shmdt :: Ptr () -> IO CInt

{-# LINE 2499 "src/Bindings/Posix.hsc" #-}
foreign import ccall "shmget" shmget :: CKey -> CSize -> CInt -> IO CInt

{-# LINE 2500 "src/Bindings/Posix.hsc" #-}


{-# LINE 2502 "src/Bindings/Posix.hsc" #-}

type CSocklen = Word32
{-# LINE 2504 "src/Bindings/Posix.hsc" #-}

type CSaFamily = Word16
{-# LINE 2506 "src/Bindings/Posix.hsc" #-}


{-# LINE 2508 "src/Bindings/Posix.hsc" #-}

{-# LINE 2509 "src/Bindings/Posix.hsc" #-}

{-# LINE 2510 "src/Bindings/Posix.hsc" #-}
data Sockaddr = Sockaddr {sockaddr'sa_family :: CSaFamily , sockaddr'sa_data :: CString}
instance Storable Sockaddr where {sizeOf _ = 16 ; alignment = sizeOf ; peek p = peekByteOff p 0 >>= \v0 -> peekByteOff p 2 >>= \v1 -> return $ Sockaddr v0 v1  ; poke p (Sockaddr v0 v1 ) = pokeByteOff p 0 v0 >> pokeByteOff p 2 v1 >> return () }
{-# LINE 2511 "src/Bindings/Posix.hsc" #-}


{-# LINE 2513 "src/Bindings/Posix.hsc" #-}

{-# LINE 2514 "src/Bindings/Posix.hsc" #-}
data Sockaddr_storage = Sockaddr_storage {sockaddr_storage'ss_family :: CSaFamily}
instance Storable Sockaddr_storage where {sizeOf _ = 128 ; alignment = sizeOf ; peek p = peekByteOff p 0 >>= \v0 -> return $ Sockaddr_storage v0  ; poke p (Sockaddr_storage v0 ) = pokeByteOff p 0 v0 >> return () }
{-# LINE 2515 "src/Bindings/Posix.hsc" #-}


{-# LINE 2517 "src/Bindings/Posix.hsc" #-}

{-# LINE 2518 "src/Bindings/Posix.hsc" #-}

{-# LINE 2519 "src/Bindings/Posix.hsc" #-}

{-# LINE 2520 "src/Bindings/Posix.hsc" #-}

{-# LINE 2521 "src/Bindings/Posix.hsc" #-}

{-# LINE 2522 "src/Bindings/Posix.hsc" #-}

{-# LINE 2523 "src/Bindings/Posix.hsc" #-}

{-# LINE 2524 "src/Bindings/Posix.hsc" #-}
data Msghdr = Msghdr {msghdr'msg_name :: Ptr () , msghdr'msg_namelen :: CSocklen , msghdr'msg_iov :: Ptr Iovec , msghdr'msg_iovlen :: CInt , msghdr'msg_control :: Ptr () , msghdr'msg_controllen :: CSocklen , msghdr'msg_flags :: CInt}
instance Storable Msghdr where {sizeOf _ = 28 ; alignment = sizeOf ; peek p = peekByteOff p 0 >>= \v0 -> peekByteOff p 4 >>= \v1 -> peekByteOff p 8 >>= \v2 -> peekByteOff p 12 >>= \v3 -> peekByteOff p 16 >>= \v4 -> peekByteOff p 20 >>= \v5 -> peekByteOff p 24 >>= \v6 -> return $ Msghdr v0 v1 v2 v3 v4 v5 v6  ; poke p (Msghdr v0 v1 v2 v3 v4 v5 v6 ) = pokeByteOff p 0 v0 >> pokeByteOff p 4 v1 >> pokeByteOff p 8 v2 >> pokeByteOff p 12 v3 >> pokeByteOff p 16 v4 >> pokeByteOff p 20 v5 >> pokeByteOff p 24 v6 >> return () }
{-# LINE 2525 "src/Bindings/Posix.hsc" #-}


{-# LINE 2527 "src/Bindings/Posix.hsc" #-}

{-# LINE 2528 "src/Bindings/Posix.hsc" #-}

{-# LINE 2529 "src/Bindings/Posix.hsc" #-}

{-# LINE 2530 "src/Bindings/Posix.hsc" #-}
data Cmsghdr = Cmsghdr {cmsghdr'cmsg_len :: CSocklen , cmsghdr'cmsg_level :: CInt , cmsghdr'cmsg_type :: CInt}
instance Storable Cmsghdr where {sizeOf _ = 12 ; alignment = sizeOf ; peek p = peekByteOff p 0 >>= \v0 -> peekByteOff p 4 >>= \v1 -> peekByteOff p 8 >>= \v2 -> return $ Cmsghdr v0 v1 v2  ; poke p (Cmsghdr v0 v1 v2 ) = pokeByteOff p 0 v0 >> pokeByteOff p 4 v1 >> pokeByteOff p 8 v2 >> return () }
{-# LINE 2531 "src/Bindings/Posix.hsc" #-}

_SCM_RIGHTS = 1 :: CInt

{-# LINE 2533 "src/Bindings/Posix.hsc" #-}


{-# LINE 2535 "src/Bindings/Posix.hsc" #-}

{-# LINE 2536 "src/Bindings/Posix.hsc" #-}

{-# LINE 2537 "src/Bindings/Posix.hsc" #-}
data Linger = Linger {linger'l_onoff :: CInt , linger'l_linger :: CInt}
instance Storable Linger where {sizeOf _ = 8 ; alignment = sizeOf ; peek p = peekByteOff p 0 >>= \v0 -> peekByteOff p 4 >>= \v1 -> return $ Linger v0 v1  ; poke p (Linger v0 v1 ) = pokeByteOff p 0 v0 >> pokeByteOff p 4 v1 >> return () }
{-# LINE 2538 "src/Bindings/Posix.hsc" #-}

_SOCK_DGRAM = 2 :: (Num a) => a

{-# LINE 2540 "src/Bindings/Posix.hsc" #-}
_SOCK_RAW = 3 :: (Num a) => a

{-# LINE 2541 "src/Bindings/Posix.hsc" #-}
_SOCK_SEQPACKET = 5 :: (Num a) => a

{-# LINE 2542 "src/Bindings/Posix.hsc" #-}
_SOCK_STREAM = 1 :: (Num a) => a

{-# LINE 2543 "src/Bindings/Posix.hsc" #-}

_SOL_SOCKET = 1 :: CInt

{-# LINE 2545 "src/Bindings/Posix.hsc" #-}

_SO_ACCEPTCONN = 30 :: CInt

{-# LINE 2547 "src/Bindings/Posix.hsc" #-}
_SO_BROADCAST = 6 :: CInt

{-# LINE 2548 "src/Bindings/Posix.hsc" #-}
_SO_DEBUG = 1 :: CInt

{-# LINE 2549 "src/Bindings/Posix.hsc" #-}
_SO_DONTROUTE = 5 :: CInt

{-# LINE 2550 "src/Bindings/Posix.hsc" #-}
_SO_ERROR = 4 :: CInt

{-# LINE 2551 "src/Bindings/Posix.hsc" #-}
_SO_KEEPALIVE = 9 :: CInt

{-# LINE 2552 "src/Bindings/Posix.hsc" #-}
_SO_LINGER = 13 :: CInt

{-# LINE 2553 "src/Bindings/Posix.hsc" #-}
_SO_OOBINLINE = 10 :: CInt

{-# LINE 2554 "src/Bindings/Posix.hsc" #-}
_SO_RCVBUF = 8 :: CInt

{-# LINE 2555 "src/Bindings/Posix.hsc" #-}
_SO_RCVLOWAT = 18 :: CInt

{-# LINE 2556 "src/Bindings/Posix.hsc" #-}
_SO_RCVTIMEO = 20 :: CInt

{-# LINE 2557 "src/Bindings/Posix.hsc" #-}
_SO_REUSEADDR = 2 :: CInt

{-# LINE 2558 "src/Bindings/Posix.hsc" #-}
_SO_SNDBUF = 7 :: CInt

{-# LINE 2559 "src/Bindings/Posix.hsc" #-}
_SO_SNDLOWAT = 19 :: CInt

{-# LINE 2560 "src/Bindings/Posix.hsc" #-}
_SO_SNDTIMEO = 21 :: CInt

{-# LINE 2561 "src/Bindings/Posix.hsc" #-}
_SO_TYPE = 3 :: CInt

{-# LINE 2562 "src/Bindings/Posix.hsc" #-}

_SOMAXCONN = 128 :: CInt

{-# LINE 2564 "src/Bindings/Posix.hsc" #-}

_MSG_CTRUNC = 8 :: CInt

{-# LINE 2566 "src/Bindings/Posix.hsc" #-}
_MSG_DONTROUTE = 4 :: CInt

{-# LINE 2567 "src/Bindings/Posix.hsc" #-}
_MSG_EOR = 128 :: CInt

{-# LINE 2568 "src/Bindings/Posix.hsc" #-}
_MSG_OOB = 1 :: CInt

{-# LINE 2569 "src/Bindings/Posix.hsc" #-}
_MSG_NOSIGNAL = 16384 :: CInt

{-# LINE 2570 "src/Bindings/Posix.hsc" #-}
_MSG_PEEK = 2 :: CInt

{-# LINE 2571 "src/Bindings/Posix.hsc" #-}
_MSG_TRUNC = 32 :: CInt

{-# LINE 2572 "src/Bindings/Posix.hsc" #-}
_MSG_WAITALL = 256 :: CInt

{-# LINE 2573 "src/Bindings/Posix.hsc" #-}

_AF_INET = 2 :: (Num a) => a

{-# LINE 2575 "src/Bindings/Posix.hsc" #-}
_AF_INET6 = 10 :: (Num a) => a

{-# LINE 2576 "src/Bindings/Posix.hsc" #-}
_AF_UNIX = 1 :: (Num a) => a

{-# LINE 2577 "src/Bindings/Posix.hsc" #-}
_AF_UNSPEC = 0 :: (Num a) => a

{-# LINE 2578 "src/Bindings/Posix.hsc" #-}

_SHUT_RD = 0 :: (Num a) => a

{-# LINE 2580 "src/Bindings/Posix.hsc" #-}
_SHUT_RDWR = 2 :: (Num a) => a

{-# LINE 2581 "src/Bindings/Posix.hsc" #-}
_SHUT_WR = 1 :: (Num a) => a

{-# LINE 2582 "src/Bindings/Posix.hsc" #-}

foreign import ccall "accept" accept :: CInt -> Ptr Sockaddr -> Ptr CSocklen -> IO CInt

{-# LINE 2585 "src/Bindings/Posix.hsc" #-}
foreign import ccall "bind" bind :: CInt -> Ptr Sockaddr -> CSocklen -> IO CInt

{-# LINE 2587 "src/Bindings/Posix.hsc" #-}
foreign import ccall "connect" connect :: CInt -> Ptr Sockaddr -> CSocklen -> IO CInt

{-# LINE 2589 "src/Bindings/Posix.hsc" #-}
foreign import ccall "getpeername" getpeername :: CInt -> Ptr Sockaddr -> Ptr CSocklen -> IO CInt

{-# LINE 2591 "src/Bindings/Posix.hsc" #-}
foreign import ccall "getsockname" getsockname :: CInt -> Ptr Sockaddr -> Ptr CSocklen -> IO CInt

{-# LINE 2593 "src/Bindings/Posix.hsc" #-}
foreign import ccall "getsockopt" getsockopt :: CInt -> CInt -> CInt -> Ptr () -> Ptr CSocklen -> IO CInt

{-# LINE 2595 "src/Bindings/Posix.hsc" #-}
foreign import ccall "listen" listen :: CInt -> CInt -> IO CInt

{-# LINE 2596 "src/Bindings/Posix.hsc" #-}
foreign import ccall "recv" recv :: CInt -> Ptr () -> CSize -> CInt -> IO CSSize

{-# LINE 2598 "src/Bindings/Posix.hsc" #-}
foreign import ccall "recvfrom" recvfrom :: CInt -> Ptr () -> CSize -> CInt -> Ptr Sockaddr -> Ptr CSocklen -> IO CSSize

{-# LINE 2600 "src/Bindings/Posix.hsc" #-}
foreign import ccall "recvmsg" recvmsg :: CInt -> Ptr Msghdr -> CInt -> IO CSSize

{-# LINE 2602 "src/Bindings/Posix.hsc" #-}
foreign import ccall "send" send :: CInt -> Ptr () -> CSize -> CInt -> IO CSSize

{-# LINE 2604 "src/Bindings/Posix.hsc" #-}
foreign import ccall "sendmsg" sendmsg :: CInt -> Ptr Msghdr -> CInt -> IO CSSize

{-# LINE 2605 "src/Bindings/Posix.hsc" #-}
foreign import ccall "sendto" sendto :: CInt -> Ptr () -> CSize -> CInt -> Ptr Sockaddr -> CSocklen -> IO CSSize

{-# LINE 2607 "src/Bindings/Posix.hsc" #-}
foreign import ccall "setsockopt" setsockopt :: CInt -> CInt -> CInt -> Ptr () -> CSocklen -> IO CInt

{-# LINE 2609 "src/Bindings/Posix.hsc" #-}
foreign import ccall "shutdown" shutdown :: CInt -> CInt -> IO CInt

{-# LINE 2610 "src/Bindings/Posix.hsc" #-}
foreign import ccall "sockatmark" sockatmark :: CInt -> IO CInt

{-# LINE 2611 "src/Bindings/Posix.hsc" #-}
foreign import ccall "socket" socket :: CInt -> CInt -> CInt -> IO CInt

{-# LINE 2612 "src/Bindings/Posix.hsc" #-}
foreign import ccall "socketpair" socketpair :: CInt -> CInt -> CInt -> Ptr CInt -> IO CInt

{-# LINE 2614 "src/Bindings/Posix.hsc" #-}


{-# LINE 2616 "src/Bindings/Posix.hsc" #-}


{-# LINE 2618 "src/Bindings/Posix.hsc" #-}

{-# LINE 2619 "src/Bindings/Posix.hsc" #-}

{-# LINE 2620 "src/Bindings/Posix.hsc" #-}

{-# LINE 2621 "src/Bindings/Posix.hsc" #-}

{-# LINE 2622 "src/Bindings/Posix.hsc" #-}

{-# LINE 2623 "src/Bindings/Posix.hsc" #-}

{-# LINE 2624 "src/Bindings/Posix.hsc" #-}

{-# LINE 2625 "src/Bindings/Posix.hsc" #-}

{-# LINE 2626 "src/Bindings/Posix.hsc" #-}

{-# LINE 2627 "src/Bindings/Posix.hsc" #-}

{-# LINE 2628 "src/Bindings/Posix.hsc" #-}

{-# LINE 2629 "src/Bindings/Posix.hsc" #-}
-- #bindings_field st_blksize , CBlksize

{-# LINE 2631 "src/Bindings/Posix.hsc" #-}
data Stat = Stat {stat'st_dev :: CDev , stat'st_ino :: CIno , stat'st_mode :: CMode , stat'st_nlink :: CNlink , stat'st_uid :: CUid , stat'st_gid :: CGid , stat'st_rdev :: CDev , stat'st_size :: COff , stat'st_atim :: Timespec , stat'st_mtim :: Timespec , stat'st_ctim :: Timespec , stat'st_blocks :: CBlkcnt}
instance Storable Stat where {sizeOf _ = 96 ; alignment = sizeOf ; peek p = peekByteOff p 0 >>= \v0 -> peekByteOff p 88 >>= \v1 -> peekByteOff p 16 >>= \v2 -> peekByteOff p 20 >>= \v3 -> peekByteOff p 24 >>= \v4 -> peekByteOff p 28 >>= \v5 -> peekByteOff p 32 >>= \v6 -> peekByteOff p 44 >>= \v7 -> peekByteOff p 64 >>= \v8 -> peekByteOff p 72 >>= \v9 -> peekByteOff p 80 >>= \v10 -> peekByteOff p 56 >>= \v11 -> return $ Stat v0 v1 v2 v3 v4 v5 v6 v7 v8 v9 v10 v11  ; poke p (Stat v0 v1 v2 v3 v4 v5 v6 v7 v8 v9 v10 v11 ) = pokeByteOff p 0 v0 >> pokeByteOff p 88 v1 >> pokeByteOff p 16 v2 >> pokeByteOff p 20 v3 >> pokeByteOff p 24 v4 >> pokeByteOff p 28 v5 >> pokeByteOff p 32 v6 >> pokeByteOff p 44 v7 >> pokeByteOff p 64 v8 >> pokeByteOff p 72 v9 >> pokeByteOff p 80 v10 >> pokeByteOff p 56 v11 >> return () }
{-# LINE 2632 "src/Bindings/Posix.hsc" #-}

_S_IFMT = 61440 :: CMode

{-# LINE 2634 "src/Bindings/Posix.hsc" #-}
_S_IFBLK = 24576 :: CMode

{-# LINE 2635 "src/Bindings/Posix.hsc" #-}
_S_IFCHR = 8192 :: CMode

{-# LINE 2636 "src/Bindings/Posix.hsc" #-}
_S_IFIFO = 4096 :: CMode

{-# LINE 2637 "src/Bindings/Posix.hsc" #-}
_S_IFREG = 32768 :: CMode

{-# LINE 2638 "src/Bindings/Posix.hsc" #-}
_S_IFDIR = 16384 :: CMode

{-# LINE 2639 "src/Bindings/Posix.hsc" #-}
_S_IFLNK = 40960 :: CMode

{-# LINE 2640 "src/Bindings/Posix.hsc" #-}
_S_IFSOCK = 49152 :: CMode

{-# LINE 2641 "src/Bindings/Posix.hsc" #-}

_S_IRWXU = 448 :: CMode

{-# LINE 2643 "src/Bindings/Posix.hsc" #-}
_S_IRUSR = 256 :: CMode

{-# LINE 2644 "src/Bindings/Posix.hsc" #-}
_S_IWUSR = 128 :: CMode

{-# LINE 2645 "src/Bindings/Posix.hsc" #-}
_S_IXUSR = 64 :: CMode

{-# LINE 2646 "src/Bindings/Posix.hsc" #-}
_S_IRWXG = 56 :: CMode

{-# LINE 2647 "src/Bindings/Posix.hsc" #-}
_S_IRGRP = 32 :: CMode

{-# LINE 2648 "src/Bindings/Posix.hsc" #-}
_S_IWGRP = 16 :: CMode

{-# LINE 2649 "src/Bindings/Posix.hsc" #-}
_S_IXGRP = 8 :: CMode

{-# LINE 2650 "src/Bindings/Posix.hsc" #-}
_S_IRWXO = 7 :: CMode

{-# LINE 2651 "src/Bindings/Posix.hsc" #-}
_S_IROTH = 4 :: CMode

{-# LINE 2652 "src/Bindings/Posix.hsc" #-}
_S_IWOTH = 2 :: CMode

{-# LINE 2653 "src/Bindings/Posix.hsc" #-}
_S_IXOTH = 1 :: CMode

{-# LINE 2654 "src/Bindings/Posix.hsc" #-}
_S_ISUID = 2048 :: CMode

{-# LINE 2655 "src/Bindings/Posix.hsc" #-}
_S_ISGID = 1024 :: CMode

{-# LINE 2656 "src/Bindings/Posix.hsc" #-}
_S_ISVTX = 512 :: CMode

{-# LINE 2657 "src/Bindings/Posix.hsc" #-}

-- #bindings_long UTIME_NOW
-- #bindings_long UTIME_OMIT

foreign import ccall "chmod" chmod :: CString -> CMode -> IO CInt

{-# LINE 2662 "src/Bindings/Posix.hsc" #-}
foreign import ccall "fchmod" fchmod :: CInt -> CMode -> IO CInt

{-# LINE 2663 "src/Bindings/Posix.hsc" #-}
foreign import ccall "fchmodat" fchmodat :: CInt -> CString -> CMode -> CInt -> IO CInt

{-# LINE 2665 "src/Bindings/Posix.hsc" #-}
foreign import ccall "fstat" fstat :: CInt -> Ptr Stat -> IO CInt

{-# LINE 2666 "src/Bindings/Posix.hsc" #-}
foreign import ccall "fstatat" fstatat :: CInt -> CString -> Ptr Stat -> CInt -> IO CInt

{-# LINE 2668 "src/Bindings/Posix.hsc" #-}
foreign import ccall "futimens" futimens :: CInt -> Ptr (Ptr Timespec) -> IO CInt

{-# LINE 2670 "src/Bindings/Posix.hsc" #-}
foreign import ccall "lstat" lstat :: CString -> Ptr Stat -> IO CInt

{-# LINE 2671 "src/Bindings/Posix.hsc" #-}
foreign import ccall "mkdir" mkdir :: CString -> CMode -> IO CInt

{-# LINE 2672 "src/Bindings/Posix.hsc" #-}
foreign import ccall "mkdirat" mkdirat :: CInt -> CString -> CMode -> IO CInt

{-# LINE 2673 "src/Bindings/Posix.hsc" #-}
foreign import ccall "mkfifo" mkfifo :: CString -> CMode -> IO CInt

{-# LINE 2674 "src/Bindings/Posix.hsc" #-}
foreign import ccall "mkfifoat" mkfifoat :: CInt -> CString -> CMode -> IO CInt

{-# LINE 2676 "src/Bindings/Posix.hsc" #-}
foreign import ccall "mknod" mknod :: CString -> CMode -> CDev -> IO CInt

{-# LINE 2677 "src/Bindings/Posix.hsc" #-}
foreign import ccall "mknodat" mknodat :: CInt -> CString -> CMode -> CDev -> IO CInt

{-# LINE 2679 "src/Bindings/Posix.hsc" #-}
foreign import ccall "stat" stat :: CString -> Ptr Stat -> IO CInt

{-# LINE 2680 "src/Bindings/Posix.hsc" #-}
foreign import ccall "umask" umask :: CMode -> IO CMode

{-# LINE 2681 "src/Bindings/Posix.hsc" #-}
foreign import ccall "utimensat" utimensat :: CInt -> CString -> Ptr (Ptr Timespec) -> CInt -> IO CInt

{-# LINE 2683 "src/Bindings/Posix.hsc" #-}


{-# LINE 2685 "src/Bindings/Posix.hsc" #-}


{-# LINE 2687 "src/Bindings/Posix.hsc" #-}

{-# LINE 2688 "src/Bindings/Posix.hsc" #-}

{-# LINE 2689 "src/Bindings/Posix.hsc" #-}

{-# LINE 2690 "src/Bindings/Posix.hsc" #-}

{-# LINE 2691 "src/Bindings/Posix.hsc" #-}

{-# LINE 2692 "src/Bindings/Posix.hsc" #-}

{-# LINE 2693 "src/Bindings/Posix.hsc" #-}

{-# LINE 2694 "src/Bindings/Posix.hsc" #-}

{-# LINE 2695 "src/Bindings/Posix.hsc" #-}

{-# LINE 2696 "src/Bindings/Posix.hsc" #-}

{-# LINE 2697 "src/Bindings/Posix.hsc" #-}

{-# LINE 2698 "src/Bindings/Posix.hsc" #-}
data Statvfs = Statvfs {statvfs'f_bsize :: CULong , statvfs'f_frsize :: CULong , statvfs'f_blocks :: CFsblkcnt , statvfs'f_bfree :: CFsblkcnt , statvfs'f_bavail :: CFsblkcnt , statvfs'f_files :: CFsfilcnt , statvfs'f_ffree :: CFsfilcnt , statvfs'f_favail :: CFsfilcnt , statvfs'f_fsid :: CULong , statvfs'f_flag :: CULong , statvfs'f_namemax :: CULong}
instance Storable Statvfs where {sizeOf _ = 96 ; alignment = sizeOf ; peek p = peekByteOff p 0 >>= \v0 -> peekByteOff p 4 >>= \v1 -> peekByteOff p 8 >>= \v2 -> peekByteOff p 16 >>= \v3 -> peekByteOff p 24 >>= \v4 -> peekByteOff p 32 >>= \v5 -> peekByteOff p 40 >>= \v6 -> peekByteOff p 48 >>= \v7 -> peekByteOff p 56 >>= \v8 -> peekByteOff p 64 >>= \v9 -> peekByteOff p 68 >>= \v10 -> return $ Statvfs v0 v1 v2 v3 v4 v5 v6 v7 v8 v9 v10  ; poke p (Statvfs v0 v1 v2 v3 v4 v5 v6 v7 v8 v9 v10 ) = pokeByteOff p 0 v0 >> pokeByteOff p 4 v1 >> pokeByteOff p 8 v2 >> pokeByteOff p 16 v3 >> pokeByteOff p 24 v4 >> pokeByteOff p 32 v5 >> pokeByteOff p 40 v6 >> pokeByteOff p 48 v7 >> pokeByteOff p 56 v8 >> pokeByteOff p 64 v9 >> pokeByteOff p 68 v10 >> return () }
{-# LINE 2699 "src/Bindings/Posix.hsc" #-}

_ST_RDONLY = 1 :: CULong

{-# LINE 2701 "src/Bindings/Posix.hsc" #-}
_ST_NOSUID = 2 :: CULong

{-# LINE 2702 "src/Bindings/Posix.hsc" #-}

foreign import ccall "fstatvfs" fstatvfs :: CInt -> Ptr Statvfs -> IO CInt

{-# LINE 2704 "src/Bindings/Posix.hsc" #-}
foreign import ccall "statvfs" statvfs :: CString -> Ptr Statvfs -> IO CInt

{-# LINE 2705 "src/Bindings/Posix.hsc" #-}


{-# LINE 2707 "src/Bindings/Posix.hsc" #-}

foreign import ccall "utimes" utimes :: CString -> Ptr (Ptr Timeval) -> IO CInt

{-# LINE 2709 "src/Bindings/Posix.hsc" #-}


{-# LINE 2711 "src/Bindings/Posix.hsc" #-}


{-# LINE 2713 "src/Bindings/Posix.hsc" #-}

{-# LINE 2714 "src/Bindings/Posix.hsc" #-}

{-# LINE 2715 "src/Bindings/Posix.hsc" #-}

{-# LINE 2716 "src/Bindings/Posix.hsc" #-}

{-# LINE 2717 "src/Bindings/Posix.hsc" #-}
data Tms = Tms {tms'tms_utime :: CClock , tms'tms_stime :: CClock , tms'tms_cutime :: CClock , tms'tms_cstime :: CClock}
instance Storable Tms where {sizeOf _ = 16 ; alignment = sizeOf ; peek p = peekByteOff p 0 >>= \v0 -> peekByteOff p 4 >>= \v1 -> peekByteOff p 8 >>= \v2 -> peekByteOff p 12 >>= \v3 -> return $ Tms v0 v1 v2 v3  ; poke p (Tms v0 v1 v2 v3 ) = pokeByteOff p 0 v0 >> pokeByteOff p 4 v1 >> pokeByteOff p 8 v2 >> pokeByteOff p 12 v3 >> return () }
{-# LINE 2718 "src/Bindings/Posix.hsc" #-}

foreign import ccall "times" times :: Ptr Tms -> IO CClock

{-# LINE 2720 "src/Bindings/Posix.hsc" #-}


{-# LINE 2722 "src/Bindings/Posix.hsc" #-}

type CBlkcnt = Int64
{-# LINE 2724 "src/Bindings/Posix.hsc" #-}
-- type CBlksize = #bindings_equivalent_integer blksize_t
type CClockid = Int32
{-# LINE 2726 "src/Bindings/Posix.hsc" #-}
type CDev = Word64
{-# LINE 2727 "src/Bindings/Posix.hsc" #-}
type CFsblkcnt = Word64
{-# LINE 2728 "src/Bindings/Posix.hsc" #-}
type CFsfilcnt = Word64
{-# LINE 2729 "src/Bindings/Posix.hsc" #-}
type CGid = Word32
{-# LINE 2730 "src/Bindings/Posix.hsc" #-}
type CId = Word32
{-# LINE 2731 "src/Bindings/Posix.hsc" #-}
type CIno = Word64
{-# LINE 2732 "src/Bindings/Posix.hsc" #-}
type CKey = Int32
{-# LINE 2733 "src/Bindings/Posix.hsc" #-}
type CMode = Word32
{-# LINE 2734 "src/Bindings/Posix.hsc" #-}
type CNlink = Word32
{-# LINE 2735 "src/Bindings/Posix.hsc" #-}
type COff = Int64
{-# LINE 2736 "src/Bindings/Posix.hsc" #-}
type CPid = Int32
{-# LINE 2737 "src/Bindings/Posix.hsc" #-}
type CSSize = Int32
{-# LINE 2738 "src/Bindings/Posix.hsc" #-}
type CSuseconds = Int32
{-# LINE 2739 "src/Bindings/Posix.hsc" #-}
type CTimer = Word32
{-# LINE 2740 "src/Bindings/Posix.hsc" #-}
type CUid = Word32
{-# LINE 2741 "src/Bindings/Posix.hsc" #-}


{-# LINE 2743 "src/Bindings/Posix.hsc" #-}
data Pthread_attr_t = Pthread_attr_t
instance Storable Pthread_attr_t where {sizeOf _ = 36 ; alignment = sizeOf ; peek p = return $ Pthread_attr_t  ; poke p (Pthread_attr_t ) = return () }
{-# LINE 2744 "src/Bindings/Posix.hsc" #-}

{-# LINE 2745 "src/Bindings/Posix.hsc" #-}
data Pthread_barrier_t = Pthread_barrier_t
instance Storable Pthread_barrier_t where {sizeOf _ = 20 ; alignment = sizeOf ; peek p = return $ Pthread_barrier_t  ; poke p (Pthread_barrier_t ) = return () }
{-# LINE 2746 "src/Bindings/Posix.hsc" #-}

{-# LINE 2747 "src/Bindings/Posix.hsc" #-}
data Pthread_barrierattr_t = Pthread_barrierattr_t
instance Storable Pthread_barrierattr_t where {sizeOf _ = 4 ; alignment = sizeOf ; peek p = return $ Pthread_barrierattr_t  ; poke p (Pthread_barrierattr_t ) = return () }
{-# LINE 2748 "src/Bindings/Posix.hsc" #-}

{-# LINE 2749 "src/Bindings/Posix.hsc" #-}
data Pthread_cond_t = Pthread_cond_t
instance Storable Pthread_cond_t where {sizeOf _ = 48 ; alignment = sizeOf ; peek p = return $ Pthread_cond_t  ; poke p (Pthread_cond_t ) = return () }
{-# LINE 2750 "src/Bindings/Posix.hsc" #-}

{-# LINE 2751 "src/Bindings/Posix.hsc" #-}
data Pthread_condattr_t = Pthread_condattr_t
instance Storable Pthread_condattr_t where {sizeOf _ = 4 ; alignment = sizeOf ; peek p = return $ Pthread_condattr_t  ; poke p (Pthread_condattr_t ) = return () }
{-# LINE 2752 "src/Bindings/Posix.hsc" #-}

{-# LINE 2753 "src/Bindings/Posix.hsc" #-}
data Pthread_key_t = Pthread_key_t
instance Storable Pthread_key_t where {sizeOf _ = 4 ; alignment = sizeOf ; peek p = return $ Pthread_key_t  ; poke p (Pthread_key_t ) = return () }
{-# LINE 2754 "src/Bindings/Posix.hsc" #-}

{-# LINE 2755 "src/Bindings/Posix.hsc" #-}
data Pthread_mutex_t = Pthread_mutex_t
instance Storable Pthread_mutex_t where {sizeOf _ = 24 ; alignment = sizeOf ; peek p = return $ Pthread_mutex_t  ; poke p (Pthread_mutex_t ) = return () }
{-# LINE 2756 "src/Bindings/Posix.hsc" #-}

{-# LINE 2757 "src/Bindings/Posix.hsc" #-}
data Pthread_mutexattr_t = Pthread_mutexattr_t
instance Storable Pthread_mutexattr_t where {sizeOf _ = 4 ; alignment = sizeOf ; peek p = return $ Pthread_mutexattr_t  ; poke p (Pthread_mutexattr_t ) = return () }
{-# LINE 2758 "src/Bindings/Posix.hsc" #-}

{-# LINE 2759 "src/Bindings/Posix.hsc" #-}
data Pthread_once_t = Pthread_once_t
instance Storable Pthread_once_t where {sizeOf _ = 4 ; alignment = sizeOf ; peek p = return $ Pthread_once_t  ; poke p (Pthread_once_t ) = return () }
{-# LINE 2760 "src/Bindings/Posix.hsc" #-}

{-# LINE 2761 "src/Bindings/Posix.hsc" #-}
data Pthread_rwlock_t = Pthread_rwlock_t
instance Storable Pthread_rwlock_t where {sizeOf _ = 32 ; alignment = sizeOf ; peek p = return $ Pthread_rwlock_t  ; poke p (Pthread_rwlock_t ) = return () }
{-# LINE 2762 "src/Bindings/Posix.hsc" #-}

{-# LINE 2763 "src/Bindings/Posix.hsc" #-}
data Pthread_rwlockattr_t = Pthread_rwlockattr_t
instance Storable Pthread_rwlockattr_t where {sizeOf _ = 8 ; alignment = sizeOf ; peek p = return $ Pthread_rwlockattr_t  ; poke p (Pthread_rwlockattr_t ) = return () }
{-# LINE 2764 "src/Bindings/Posix.hsc" #-}

{-# LINE 2765 "src/Bindings/Posix.hsc" #-}
data Pthread_spinlock_t = Pthread_spinlock_t
instance Storable Pthread_spinlock_t where {sizeOf _ = 4 ; alignment = sizeOf ; peek p = return $ Pthread_spinlock_t  ; poke p (Pthread_spinlock_t ) = return () }
{-# LINE 2766 "src/Bindings/Posix.hsc" #-}

{-# LINE 2767 "src/Bindings/Posix.hsc" #-}
data Pthread_t = Pthread_t
instance Storable Pthread_t where {sizeOf _ = 4 ; alignment = sizeOf ; peek p = return $ Pthread_t  ; poke p (Pthread_t ) = return () }
{-# LINE 2768 "src/Bindings/Posix.hsc" #-}


{-# LINE 2770 "src/Bindings/Posix.hsc" #-}


{-# LINE 2772 "src/Bindings/Posix.hsc" #-}

{-# LINE 2773 "src/Bindings/Posix.hsc" #-}

{-# LINE 2774 "src/Bindings/Posix.hsc" #-}
data Iovec = Iovec {iovec'iov_base :: Ptr () , iovec'iov_len :: CSize}
instance Storable Iovec where {sizeOf _ = 8 ; alignment = sizeOf ; peek p = peekByteOff p 0 >>= \v0 -> peekByteOff p 4 >>= \v1 -> return $ Iovec v0 v1  ; poke p (Iovec v0 v1 ) = pokeByteOff p 0 v0 >> pokeByteOff p 4 v1 >> return () }
{-# LINE 2775 "src/Bindings/Posix.hsc" #-}

foreign import ccall "readv" readv :: CInt -> Ptr Iovec -> CInt -> IO CSSize

{-# LINE 2777 "src/Bindings/Posix.hsc" #-}
foreign import ccall "writev" writev :: CInt -> Ptr Iovec -> CInt -> IO CSSize

{-# LINE 2778 "src/Bindings/Posix.hsc" #-}


{-# LINE 2780 "src/Bindings/Posix.hsc" #-}


{-# LINE 2782 "src/Bindings/Posix.hsc" #-}

{-# LINE 2783 "src/Bindings/Posix.hsc" #-}

{-# LINE 2784 "src/Bindings/Posix.hsc" #-}
data Sockaddr_un = Sockaddr_un {sockaddr_un'sun_family :: CSaFamily , sockaddr_un'sun_path :: CString}
instance Storable Sockaddr_un where {sizeOf _ = 110 ; alignment = sizeOf ; peek p = peekByteOff p 0 >>= \v0 -> peekByteOff p 2 >>= \v1 -> return $ Sockaddr_un v0 v1  ; poke p (Sockaddr_un v0 v1 ) = pokeByteOff p 0 v0 >> pokeByteOff p 2 v1 >> return () }
{-# LINE 2785 "src/Bindings/Posix.hsc" #-}


{-# LINE 2787 "src/Bindings/Posix.hsc" #-}

_SEM_UNDO = 4096 :: CShort

{-# LINE 2789 "src/Bindings/Posix.hsc" #-}

_GETNCNT = 14 :: CInt

{-# LINE 2791 "src/Bindings/Posix.hsc" #-}
_GETPID = 11 :: CInt

{-# LINE 2792 "src/Bindings/Posix.hsc" #-}
_GETVAL = 12 :: CInt

{-# LINE 2793 "src/Bindings/Posix.hsc" #-}
_GETALL = 13 :: CInt

{-# LINE 2794 "src/Bindings/Posix.hsc" #-}
_GETZCNT = 15 :: CInt

{-# LINE 2795 "src/Bindings/Posix.hsc" #-}
_SETVAL = 16 :: CInt

{-# LINE 2796 "src/Bindings/Posix.hsc" #-}
_SETALL = 17 :: CInt

{-# LINE 2797 "src/Bindings/Posix.hsc" #-}


{-# LINE 2799 "src/Bindings/Posix.hsc" #-}

{-# LINE 2800 "src/Bindings/Posix.hsc" #-}

{-# LINE 2801 "src/Bindings/Posix.hsc" #-}

{-# LINE 2802 "src/Bindings/Posix.hsc" #-}

{-# LINE 2803 "src/Bindings/Posix.hsc" #-}
data Semid_ds = Semid_ds {semid_ds'sem_perm :: Ipc_perm , semid_ds'sem_nsems :: CUShort , semid_ds'sem_otime :: CTime , semid_ds'sem_ctime :: CTime}
instance Storable Semid_ds where {sizeOf _ = 64 ; alignment = sizeOf ; peek p = peekByteOff p 0 >>= \v0 -> peekByteOff p 52 >>= \v1 -> peekByteOff p 36 >>= \v2 -> peekByteOff p 44 >>= \v3 -> return $ Semid_ds v0 v1 v2 v3  ; poke p (Semid_ds v0 v1 v2 v3 ) = pokeByteOff p 0 v0 >> pokeByteOff p 52 v1 >> pokeByteOff p 36 v2 >> pokeByteOff p 44 v3 >> return () }
{-# LINE 2804 "src/Bindings/Posix.hsc" #-}


{-# LINE 2806 "src/Bindings/Posix.hsc" #-}

{-# LINE 2807 "src/Bindings/Posix.hsc" #-}

{-# LINE 2808 "src/Bindings/Posix.hsc" #-}

{-# LINE 2809 "src/Bindings/Posix.hsc" #-}
data Sembuf = Sembuf {sembuf'sem_num :: CUShort , sembuf'sem_op :: CShort , sembuf'sem_flg :: CShort}
instance Storable Sembuf where {sizeOf _ = 6 ; alignment = sizeOf ; peek p = peekByteOff p 0 >>= \v0 -> peekByteOff p 2 >>= \v1 -> peekByteOff p 4 >>= \v2 -> return $ Sembuf v0 v1 v2  ; poke p (Sembuf v0 v1 v2 ) = pokeByteOff p 0 v0 >> pokeByteOff p 2 v1 >> pokeByteOff p 4 v2 >> return () }
{-# LINE 2810 "src/Bindings/Posix.hsc" #-}

foreign import ccall "semget" semget :: CKey -> CInt -> CInt -> IO CInt

{-# LINE 2812 "src/Bindings/Posix.hsc" #-}
foreign import ccall "semop" semop :: CInt -> Ptr Sembuf -> CSize -> IO CInt

{-# LINE 2813 "src/Bindings/Posix.hsc" #-}


{-# LINE 2815 "src/Bindings/Posix.hsc" #-}


{-# LINE 2817 "src/Bindings/Posix.hsc" #-}

{-# LINE 2818 "src/Bindings/Posix.hsc" #-}

{-# LINE 2819 "src/Bindings/Posix.hsc" #-}
data Utsname = Utsname {utsname'sysname :: CString , utsname'nodename :: CString}
instance Storable Utsname where {sizeOf _ = 390 ; alignment = sizeOf ; peek p = peekByteOff p 0 >>= \v0 -> peekByteOff p 65 >>= \v1 -> return $ Utsname v0 v1  ; poke p (Utsname v0 v1 ) = pokeByteOff p 0 v0 >> pokeByteOff p 65 v1 >> return () }
{-# LINE 2820 "src/Bindings/Posix.hsc" #-}

foreign import ccall "uname" uname :: Ptr Utsname -> IO CInt

{-# LINE 2822 "src/Bindings/Posix.hsc" #-}


{-# LINE 2824 "src/Bindings/Posix.hsc" #-}

_WCONTINUED = 8 :: CInt

{-# LINE 2826 "src/Bindings/Posix.hsc" #-}
_WNOHANG = 1 :: CInt

{-# LINE 2827 "src/Bindings/Posix.hsc" #-}
_WUNTRACED = 2 :: CInt

{-# LINE 2828 "src/Bindings/Posix.hsc" #-}

_WEXITED = 4 :: CInt

{-# LINE 2830 "src/Bindings/Posix.hsc" #-}
_WNOWAIT = 16777216 :: CInt

{-# LINE 2831 "src/Bindings/Posix.hsc" #-}
_WSTOPPED = 2 :: CInt

{-# LINE 2832 "src/Bindings/Posix.hsc" #-}

type CIdtype = Word32
{-# LINE 2834 "src/Bindings/Posix.hsc" #-}

_P_ALL = 0 :: CIdtype

{-# LINE 2836 "src/Bindings/Posix.hsc" #-}
_P_PGID = 2 :: CIdtype

{-# LINE 2837 "src/Bindings/Posix.hsc" #-}
_P_PID = 1 :: CIdtype

{-# LINE 2838 "src/Bindings/Posix.hsc" #-}

foreign import ccall "wait" wait :: Ptr CInt -> IO CPid

{-# LINE 2840 "src/Bindings/Posix.hsc" #-}
foreign import ccall "waitid" waitid :: CIdtype -> CId -> Ptr Siginfo_t -> CInt -> IO CInt

{-# LINE 2842 "src/Bindings/Posix.hsc" #-}
foreign import ccall "waitpid" waitpid :: CPid -> Ptr CInt -> CInt -> IO CPid

{-# LINE 2844 "src/Bindings/Posix.hsc" #-}


{-# LINE 2846 "src/Bindings/Posix.hsc" #-}

_LOG_PID = 1 :: CInt

{-# LINE 2848 "src/Bindings/Posix.hsc" #-}
_LOG_CONS = 2 :: CInt

{-# LINE 2849 "src/Bindings/Posix.hsc" #-}
_LOG_NDELAY = 8 :: CInt

{-# LINE 2850 "src/Bindings/Posix.hsc" #-}
_LOG_ODELAY = 4 :: CInt

{-# LINE 2851 "src/Bindings/Posix.hsc" #-}
_LOG_NOWAIT = 16 :: CInt

{-# LINE 2852 "src/Bindings/Posix.hsc" #-}
_LOG_KERN = 0 :: CInt

{-# LINE 2853 "src/Bindings/Posix.hsc" #-}
_LOG_USER = 8 :: CInt

{-# LINE 2854 "src/Bindings/Posix.hsc" #-}
_LOG_MAIL = 16 :: CInt

{-# LINE 2855 "src/Bindings/Posix.hsc" #-}
_LOG_NEWS = 56 :: CInt

{-# LINE 2856 "src/Bindings/Posix.hsc" #-}
_LOG_UUCP = 64 :: CInt

{-# LINE 2857 "src/Bindings/Posix.hsc" #-}
_LOG_DAEMON = 24 :: CInt

{-# LINE 2858 "src/Bindings/Posix.hsc" #-}
_LOG_AUTH = 32 :: CInt

{-# LINE 2859 "src/Bindings/Posix.hsc" #-}
_LOG_CRON = 72 :: CInt

{-# LINE 2860 "src/Bindings/Posix.hsc" #-}
_LOG_LPR = 48 :: CInt

{-# LINE 2861 "src/Bindings/Posix.hsc" #-}
_LOG_LOCAL0 = 128 :: CInt

{-# LINE 2862 "src/Bindings/Posix.hsc" #-}
_LOG_LOCAL1 = 136 :: CInt

{-# LINE 2863 "src/Bindings/Posix.hsc" #-}
_LOG_LOCAL2 = 144 :: CInt

{-# LINE 2864 "src/Bindings/Posix.hsc" #-}
_LOG_LOCAL3 = 152 :: CInt

{-# LINE 2865 "src/Bindings/Posix.hsc" #-}
_LOG_LOCAL4 = 160 :: CInt

{-# LINE 2866 "src/Bindings/Posix.hsc" #-}
_LOG_LOCAL5 = 168 :: CInt

{-# LINE 2867 "src/Bindings/Posix.hsc" #-}
_LOG_LOCAL6 = 176 :: CInt

{-# LINE 2868 "src/Bindings/Posix.hsc" #-}
_LOG_LOCAL7 = 184 :: CInt

{-# LINE 2869 "src/Bindings/Posix.hsc" #-}
_LOG_EMERG = 0 :: CInt

{-# LINE 2870 "src/Bindings/Posix.hsc" #-}
_LOG_ALERT = 1 :: CInt

{-# LINE 2871 "src/Bindings/Posix.hsc" #-}
_LOG_CRIT = 2 :: CInt

{-# LINE 2872 "src/Bindings/Posix.hsc" #-}
_LOG_ERR = 3 :: CInt

{-# LINE 2873 "src/Bindings/Posix.hsc" #-}
_LOG_WARNING = 4 :: CInt

{-# LINE 2874 "src/Bindings/Posix.hsc" #-}
_LOG_NOTICE = 5 :: CInt

{-# LINE 2875 "src/Bindings/Posix.hsc" #-}
_LOG_INFO = 6 :: CInt

{-# LINE 2876 "src/Bindings/Posix.hsc" #-}
_LOG_DEBUG = 7 :: CInt

{-# LINE 2877 "src/Bindings/Posix.hsc" #-}

foreign import ccall "closelog" closelog :: IO ()

{-# LINE 2879 "src/Bindings/Posix.hsc" #-}
foreign import ccall "openlog" openlog :: CString -> CInt -> CInt -> IO ()

{-# LINE 2880 "src/Bindings/Posix.hsc" #-}
foreign import ccall "setlogmask" setlogmask :: CInt -> IO CInt

{-# LINE 2881 "src/Bindings/Posix.hsc" #-}


{-# LINE 2883 "src/Bindings/Posix.hsc" #-}

_TMAGIC =  wordPtrToPtr (135067696 :: WordPtr) :: CString

{-# LINE 2885 "src/Bindings/Posix.hsc" #-}
_TMAGLEN = 6 :: (Num a) => a

{-# LINE 2886 "src/Bindings/Posix.hsc" #-}
_TVERSION =  wordPtrToPtr (135067717 :: WordPtr) :: CString

{-# LINE 2887 "src/Bindings/Posix.hsc" #-}
_TVERSLEN = 2 :: (Num a) => a

{-# LINE 2888 "src/Bindings/Posix.hsc" #-}

_REGTYPE = 48 :: CChar

{-# LINE 2890 "src/Bindings/Posix.hsc" #-}
_AREGTYPE = 0 :: CChar

{-# LINE 2891 "src/Bindings/Posix.hsc" #-}
_LNKTYPE = 49 :: CChar

{-# LINE 2892 "src/Bindings/Posix.hsc" #-}
_SYMTYPE = 50 :: CChar

{-# LINE 2893 "src/Bindings/Posix.hsc" #-}
_CHRTYPE = 51 :: CChar

{-# LINE 2894 "src/Bindings/Posix.hsc" #-}
_BLKTYPE = 52 :: CChar

{-# LINE 2895 "src/Bindings/Posix.hsc" #-}
_DIRTYPE = 53 :: CChar

{-# LINE 2896 "src/Bindings/Posix.hsc" #-}
_FIFOTYPE = 54 :: CChar

{-# LINE 2897 "src/Bindings/Posix.hsc" #-}
_CONTTYPE = 55 :: CChar

{-# LINE 2898 "src/Bindings/Posix.hsc" #-}

_TSUID = 2048 :: (Num a) => a

{-# LINE 2900 "src/Bindings/Posix.hsc" #-}
_TSGID = 1024 :: (Num a) => a

{-# LINE 2901 "src/Bindings/Posix.hsc" #-}
_TSVTX = 512 :: (Num a) => a

{-# LINE 2902 "src/Bindings/Posix.hsc" #-}
_TUREAD = 256 :: (Num a) => a

{-# LINE 2903 "src/Bindings/Posix.hsc" #-}
_TUWRITE = 128 :: (Num a) => a

{-# LINE 2904 "src/Bindings/Posix.hsc" #-}
_TUEXEC = 64 :: (Num a) => a

{-# LINE 2905 "src/Bindings/Posix.hsc" #-}
_TGREAD = 32 :: (Num a) => a

{-# LINE 2906 "src/Bindings/Posix.hsc" #-}
_TGWRITE = 16 :: (Num a) => a

{-# LINE 2907 "src/Bindings/Posix.hsc" #-}
_TGEXEC = 8 :: (Num a) => a

{-# LINE 2908 "src/Bindings/Posix.hsc" #-}
_TOREAD = 4 :: (Num a) => a

{-# LINE 2909 "src/Bindings/Posix.hsc" #-}
_TOWRITE = 2 :: (Num a) => a

{-# LINE 2910 "src/Bindings/Posix.hsc" #-}
_TOEXEC = 1 :: (Num a) => a

{-# LINE 2911 "src/Bindings/Posix.hsc" #-}


{-# LINE 2913 "src/Bindings/Posix.hsc" #-}

type CCc = Word8
{-# LINE 2915 "src/Bindings/Posix.hsc" #-}
type CSpeed = Word32
{-# LINE 2916 "src/Bindings/Posix.hsc" #-}
type CTcflag = Word32
{-# LINE 2917 "src/Bindings/Posix.hsc" #-}


{-# LINE 2919 "src/Bindings/Posix.hsc" #-}

{-# LINE 2920 "src/Bindings/Posix.hsc" #-}

{-# LINE 2921 "src/Bindings/Posix.hsc" #-}

{-# LINE 2922 "src/Bindings/Posix.hsc" #-}

{-# LINE 2923 "src/Bindings/Posix.hsc" #-}

{-# LINE 2924 "src/Bindings/Posix.hsc" #-}
data Termios = Termios {termios'c_iflag :: CTcflag , termios'c_oflag :: CTcflag , termios'c_cflag :: CTcflag , termios'c_lflag :: CTcflag , termios'c_cc :: Ptr CCc}
instance Storable Termios where {sizeOf _ = 60 ; alignment = sizeOf ; peek p = peekByteOff p 0 >>= \v0 -> peekByteOff p 4 >>= \v1 -> peekByteOff p 8 >>= \v2 -> peekByteOff p 12 >>= \v3 -> peekByteOff p 17 >>= \v4 -> return $ Termios v0 v1 v2 v3 v4  ; poke p (Termios v0 v1 v2 v3 v4 ) = pokeByteOff p 0 v0 >> pokeByteOff p 4 v1 >> pokeByteOff p 8 v2 >> pokeByteOff p 12 v3 >> pokeByteOff p 17 v4 >> return () }
{-# LINE 2925 "src/Bindings/Posix.hsc" #-}

_NCCS = 32 :: (Num a) => a

{-# LINE 2927 "src/Bindings/Posix.hsc" #-}

_VEOF = 4 :: (Num a) => a

{-# LINE 2929 "src/Bindings/Posix.hsc" #-}
_VEOL = 11 :: (Num a) => a

{-# LINE 2930 "src/Bindings/Posix.hsc" #-}
_VERASE = 2 :: (Num a) => a

{-# LINE 2931 "src/Bindings/Posix.hsc" #-}
_VINTR = 0 :: (Num a) => a

{-# LINE 2932 "src/Bindings/Posix.hsc" #-}
_VKILL = 3 :: (Num a) => a

{-# LINE 2933 "src/Bindings/Posix.hsc" #-}
_VMIN = 6 :: (Num a) => a

{-# LINE 2934 "src/Bindings/Posix.hsc" #-}
_VQUIT = 1 :: (Num a) => a

{-# LINE 2935 "src/Bindings/Posix.hsc" #-}
_VSTART = 8 :: (Num a) => a

{-# LINE 2936 "src/Bindings/Posix.hsc" #-}
_VSTOP = 9 :: (Num a) => a

{-# LINE 2937 "src/Bindings/Posix.hsc" #-}
_VSUSP = 10 :: (Num a) => a

{-# LINE 2938 "src/Bindings/Posix.hsc" #-}
_VTIME = 5 :: (Num a) => a

{-# LINE 2939 "src/Bindings/Posix.hsc" #-}

_BRKINT = 2 :: CTcflag

{-# LINE 2941 "src/Bindings/Posix.hsc" #-}
_ICRNL = 256 :: CTcflag

{-# LINE 2942 "src/Bindings/Posix.hsc" #-}
_IGNBRK = 1 :: CTcflag

{-# LINE 2943 "src/Bindings/Posix.hsc" #-}
_IGNCR = 128 :: CTcflag

{-# LINE 2944 "src/Bindings/Posix.hsc" #-}
_IGNPAR = 4 :: CTcflag

{-# LINE 2945 "src/Bindings/Posix.hsc" #-}
_INLCR = 64 :: CTcflag

{-# LINE 2946 "src/Bindings/Posix.hsc" #-}
_INPCK = 16 :: CTcflag

{-# LINE 2947 "src/Bindings/Posix.hsc" #-}
_ISTRIP = 32 :: CTcflag

{-# LINE 2948 "src/Bindings/Posix.hsc" #-}
_IXANY = 2048 :: CTcflag

{-# LINE 2949 "src/Bindings/Posix.hsc" #-}
_IXOFF = 4096 :: CTcflag

{-# LINE 2950 "src/Bindings/Posix.hsc" #-}
_IXON = 1024 :: CTcflag

{-# LINE 2951 "src/Bindings/Posix.hsc" #-}
_PARMRK = 8 :: CTcflag

{-# LINE 2952 "src/Bindings/Posix.hsc" #-}
_OPOST = 1 :: CTcflag

{-# LINE 2953 "src/Bindings/Posix.hsc" #-}
_ONLCR = 4 :: CTcflag

{-# LINE 2954 "src/Bindings/Posix.hsc" #-}
_OCRNL = 8 :: CTcflag

{-# LINE 2955 "src/Bindings/Posix.hsc" #-}
_ONOCR = 16 :: CTcflag

{-# LINE 2956 "src/Bindings/Posix.hsc" #-}
_ONLRET = 32 :: CTcflag

{-# LINE 2957 "src/Bindings/Posix.hsc" #-}
_OFDEL = 128 :: CTcflag

{-# LINE 2958 "src/Bindings/Posix.hsc" #-}
_OFILL = 64 :: CTcflag

{-# LINE 2959 "src/Bindings/Posix.hsc" #-}
_NLDLY = 256 :: CTcflag

{-# LINE 2960 "src/Bindings/Posix.hsc" #-}
_NL0 = 0 :: CTcflag

{-# LINE 2961 "src/Bindings/Posix.hsc" #-}
_NL1 = 256 :: CTcflag

{-# LINE 2962 "src/Bindings/Posix.hsc" #-}
_CRDLY = 1536 :: CTcflag

{-# LINE 2963 "src/Bindings/Posix.hsc" #-}
_CR0 = 0 :: CTcflag

{-# LINE 2964 "src/Bindings/Posix.hsc" #-}
_CR1 = 512 :: CTcflag

{-# LINE 2965 "src/Bindings/Posix.hsc" #-}
_CR2 = 1024 :: CTcflag

{-# LINE 2966 "src/Bindings/Posix.hsc" #-}
_CR3 = 1536 :: CTcflag

{-# LINE 2967 "src/Bindings/Posix.hsc" #-}
_TABDLY = 6144 :: CTcflag

{-# LINE 2968 "src/Bindings/Posix.hsc" #-}
_TAB0 = 0 :: CTcflag

{-# LINE 2969 "src/Bindings/Posix.hsc" #-}
_TAB1 = 2048 :: CTcflag

{-# LINE 2970 "src/Bindings/Posix.hsc" #-}
_TAB2 = 4096 :: CTcflag

{-# LINE 2971 "src/Bindings/Posix.hsc" #-}
_TAB3 = 6144 :: CTcflag

{-# LINE 2972 "src/Bindings/Posix.hsc" #-}
_BSDLY = 8192 :: CTcflag

{-# LINE 2973 "src/Bindings/Posix.hsc" #-}
_BS0 = 0 :: CTcflag

{-# LINE 2974 "src/Bindings/Posix.hsc" #-}
_BS1 = 8192 :: CTcflag

{-# LINE 2975 "src/Bindings/Posix.hsc" #-}
_VTDLY = 16384 :: CTcflag

{-# LINE 2976 "src/Bindings/Posix.hsc" #-}
_VT0 = 0 :: CTcflag

{-# LINE 2977 "src/Bindings/Posix.hsc" #-}
_VT1 = 16384 :: CTcflag

{-# LINE 2978 "src/Bindings/Posix.hsc" #-}
_FFDLY = 32768 :: CTcflag

{-# LINE 2979 "src/Bindings/Posix.hsc" #-}
_FF0 = 0 :: CTcflag

{-# LINE 2980 "src/Bindings/Posix.hsc" #-}
_FF1 = 32768 :: CTcflag

{-# LINE 2981 "src/Bindings/Posix.hsc" #-}

_B0 = 0 :: CSpeed

{-# LINE 2983 "src/Bindings/Posix.hsc" #-}
_B50 = 1 :: CSpeed

{-# LINE 2984 "src/Bindings/Posix.hsc" #-}
_B75 = 2 :: CSpeed

{-# LINE 2985 "src/Bindings/Posix.hsc" #-}
_B110 = 3 :: CSpeed

{-# LINE 2986 "src/Bindings/Posix.hsc" #-}
_B134 = 4 :: CSpeed

{-# LINE 2987 "src/Bindings/Posix.hsc" #-}
_B150 = 5 :: CSpeed

{-# LINE 2988 "src/Bindings/Posix.hsc" #-}
_B200 = 6 :: CSpeed

{-# LINE 2989 "src/Bindings/Posix.hsc" #-}
_B300 = 7 :: CSpeed

{-# LINE 2990 "src/Bindings/Posix.hsc" #-}
_B600 = 8 :: CSpeed

{-# LINE 2991 "src/Bindings/Posix.hsc" #-}
_B1200 = 9 :: CSpeed

{-# LINE 2992 "src/Bindings/Posix.hsc" #-}
_B1800 = 10 :: CSpeed

{-# LINE 2993 "src/Bindings/Posix.hsc" #-}
_B2400 = 11 :: CSpeed

{-# LINE 2994 "src/Bindings/Posix.hsc" #-}
_B4800 = 12 :: CSpeed

{-# LINE 2995 "src/Bindings/Posix.hsc" #-}
_B9600 = 13 :: CSpeed

{-# LINE 2996 "src/Bindings/Posix.hsc" #-}
_B19200 = 14 :: CSpeed

{-# LINE 2997 "src/Bindings/Posix.hsc" #-}
_B38400 = 15 :: CSpeed

{-# LINE 2998 "src/Bindings/Posix.hsc" #-}

_CSIZE = 48 :: CTcflag

{-# LINE 3000 "src/Bindings/Posix.hsc" #-}
_CS5 = 0 :: CTcflag

{-# LINE 3001 "src/Bindings/Posix.hsc" #-}
_CS6 = 16 :: CTcflag

{-# LINE 3002 "src/Bindings/Posix.hsc" #-}
_CS7 = 32 :: CTcflag

{-# LINE 3003 "src/Bindings/Posix.hsc" #-}
_CS8 = 48 :: CTcflag

{-# LINE 3004 "src/Bindings/Posix.hsc" #-}
_CSTOPB = 64 :: CTcflag

{-# LINE 3005 "src/Bindings/Posix.hsc" #-}
_CREAD = 128 :: CTcflag

{-# LINE 3006 "src/Bindings/Posix.hsc" #-}
_PARENB = 256 :: CTcflag

{-# LINE 3007 "src/Bindings/Posix.hsc" #-}
_PARODD = 512 :: CTcflag

{-# LINE 3008 "src/Bindings/Posix.hsc" #-}
_HUPCL = 1024 :: CTcflag

{-# LINE 3009 "src/Bindings/Posix.hsc" #-}
_CLOCAL = 2048 :: CTcflag

{-# LINE 3010 "src/Bindings/Posix.hsc" #-}
_ECHO = 8 :: CTcflag

{-# LINE 3011 "src/Bindings/Posix.hsc" #-}
_ECHOE = 16 :: CTcflag

{-# LINE 3012 "src/Bindings/Posix.hsc" #-}
_ECHOK = 32 :: CTcflag

{-# LINE 3013 "src/Bindings/Posix.hsc" #-}
_ECHONL = 64 :: CTcflag

{-# LINE 3014 "src/Bindings/Posix.hsc" #-}
_ICANON = 2 :: CTcflag

{-# LINE 3015 "src/Bindings/Posix.hsc" #-}
_IEXTEN = 32768 :: CTcflag

{-# LINE 3016 "src/Bindings/Posix.hsc" #-}
_ISIG = 1 :: CTcflag

{-# LINE 3017 "src/Bindings/Posix.hsc" #-}
_NOFLSH = 128 :: CTcflag

{-# LINE 3018 "src/Bindings/Posix.hsc" #-}
_TOSTOP = 256 :: CTcflag

{-# LINE 3019 "src/Bindings/Posix.hsc" #-}

_TCSANOW = 0 :: CInt

{-# LINE 3021 "src/Bindings/Posix.hsc" #-}
_TCSADRAIN = 1 :: CInt

{-# LINE 3022 "src/Bindings/Posix.hsc" #-}
_TCSAFLUSH = 2 :: CInt

{-# LINE 3023 "src/Bindings/Posix.hsc" #-}
_TCIFLUSH = 0 :: CInt

{-# LINE 3024 "src/Bindings/Posix.hsc" #-}
_TCIOFLUSH = 2 :: CInt

{-# LINE 3025 "src/Bindings/Posix.hsc" #-}
_TCOFLUSH = 1 :: CInt

{-# LINE 3026 "src/Bindings/Posix.hsc" #-}
_TCIOFF = 2 :: CInt

{-# LINE 3027 "src/Bindings/Posix.hsc" #-}
_TCION = 3 :: CInt

{-# LINE 3028 "src/Bindings/Posix.hsc" #-}
_TCOOFF = 0 :: CInt

{-# LINE 3029 "src/Bindings/Posix.hsc" #-}
_TCOON = 1 :: CInt

{-# LINE 3030 "src/Bindings/Posix.hsc" #-}

foreign import ccall "cfgetispeed" cfgetispeed :: Ptr Termios -> IO CSpeed

{-# LINE 3032 "src/Bindings/Posix.hsc" #-}
foreign import ccall "cfgetospeed" cfgetospeed :: Ptr Termios -> IO CSpeed

{-# LINE 3033 "src/Bindings/Posix.hsc" #-}
foreign import ccall "cfsetispeed" cfsetispeed :: Ptr Termios -> CSpeed -> IO CInt

{-# LINE 3034 "src/Bindings/Posix.hsc" #-}
foreign import ccall "cfsetospeed" cfsetospeed :: Ptr Termios -> CSpeed -> IO CInt

{-# LINE 3035 "src/Bindings/Posix.hsc" #-}
foreign import ccall "tcdrain" tcdrain :: CInt -> IO CInt

{-# LINE 3036 "src/Bindings/Posix.hsc" #-}
foreign import ccall "tcflow" tcflow :: CInt -> CInt -> IO CInt

{-# LINE 3037 "src/Bindings/Posix.hsc" #-}
foreign import ccall "tcflush" tcflush :: CInt -> CInt -> IO CInt

{-# LINE 3038 "src/Bindings/Posix.hsc" #-}
foreign import ccall "tcgetattr" tcgetattr :: CInt -> Ptr Termios -> IO CInt

{-# LINE 3039 "src/Bindings/Posix.hsc" #-}
foreign import ccall "tcgetsid" tcgetsid :: CInt -> IO CPid

{-# LINE 3040 "src/Bindings/Posix.hsc" #-}
foreign import ccall "tcsendbreak" tcsendbreak :: CInt -> CInt -> IO CInt

{-# LINE 3041 "src/Bindings/Posix.hsc" #-}
foreign import ccall "tcsetattr" tcsetattr :: CInt -> CInt -> Ptr Termios -> IO CInt

{-# LINE 3042 "src/Bindings/Posix.hsc" #-}


{-# LINE 3044 "src/Bindings/Posix.hsc" #-}

__POSIX_ASYNC_IO = 1 :: CInt

{-# LINE 3046 "src/Bindings/Posix.hsc" #-}

_F_OK = 0 :: CInt

{-# LINE 3048 "src/Bindings/Posix.hsc" #-}
_R_OK = 4 :: CInt

{-# LINE 3049 "src/Bindings/Posix.hsc" #-}
_W_OK = 2 :: CInt

{-# LINE 3050 "src/Bindings/Posix.hsc" #-}
_X_OK = 1 :: CInt

{-# LINE 3051 "src/Bindings/Posix.hsc" #-}

_F_LOCK = 1 :: CInt

{-# LINE 3053 "src/Bindings/Posix.hsc" #-}
_F_TEST = 3 :: CInt

{-# LINE 3054 "src/Bindings/Posix.hsc" #-}
_F_TLOCK = 2 :: CInt

{-# LINE 3055 "src/Bindings/Posix.hsc" #-}
_F_ULOCK = 0 :: CInt

{-# LINE 3056 "src/Bindings/Posix.hsc" #-}

__PC_2_SYMLINKS = 20 :: CInt

{-# LINE 3058 "src/Bindings/Posix.hsc" #-}
__PC_ALLOC_SIZE_MIN = 18 :: CInt

{-# LINE 3059 "src/Bindings/Posix.hsc" #-}
__PC_ASYNC_IO = 10 :: CInt

{-# LINE 3060 "src/Bindings/Posix.hsc" #-}
__PC_CHOWN_RESTRICTED = 6 :: CInt

{-# LINE 3061 "src/Bindings/Posix.hsc" #-}
__PC_FILESIZEBITS = 13 :: CInt

{-# LINE 3062 "src/Bindings/Posix.hsc" #-}
__PC_LINK_MAX = 0 :: CInt

{-# LINE 3063 "src/Bindings/Posix.hsc" #-}
__PC_MAX_CANON = 1 :: CInt

{-# LINE 3064 "src/Bindings/Posix.hsc" #-}
__PC_MAX_INPUT = 2 :: CInt

{-# LINE 3065 "src/Bindings/Posix.hsc" #-}
__PC_NAME_MAX = 3 :: CInt

{-# LINE 3066 "src/Bindings/Posix.hsc" #-}
__PC_NO_TRUNC = 7 :: CInt

{-# LINE 3067 "src/Bindings/Posix.hsc" #-}
__PC_PATH_MAX = 4 :: CInt

{-# LINE 3068 "src/Bindings/Posix.hsc" #-}
__PC_PIPE_BUF = 5 :: CInt

{-# LINE 3069 "src/Bindings/Posix.hsc" #-}
__PC_PRIO_IO = 11 :: CInt

{-# LINE 3070 "src/Bindings/Posix.hsc" #-}
__PC_REC_INCR_XFER_SIZE = 14 :: CInt

{-# LINE 3071 "src/Bindings/Posix.hsc" #-}
__PC_REC_MAX_XFER_SIZE = 15 :: CInt

{-# LINE 3072 "src/Bindings/Posix.hsc" #-}
__PC_REC_MIN_XFER_SIZE = 16 :: CInt

{-# LINE 3073 "src/Bindings/Posix.hsc" #-}
__PC_REC_XFER_ALIGN = 17 :: CInt

{-# LINE 3074 "src/Bindings/Posix.hsc" #-}
__PC_SYMLINK_MAX = 19 :: CInt

{-# LINE 3075 "src/Bindings/Posix.hsc" #-}
__PC_SYNC_IO = 9 :: CInt

{-# LINE 3076 "src/Bindings/Posix.hsc" #-}
__PC_VDISABLE = 8 :: CInt

{-# LINE 3077 "src/Bindings/Posix.hsc" #-}

__SC_2_C_BIND = 47 :: CInt

{-# LINE 3079 "src/Bindings/Posix.hsc" #-}
__SC_2_C_DEV = 48 :: CInt

{-# LINE 3080 "src/Bindings/Posix.hsc" #-}
__SC_2_CHAR_TERM = 95 :: CInt

{-# LINE 3081 "src/Bindings/Posix.hsc" #-}
__SC_2_FORT_DEV = 49 :: CInt

{-# LINE 3082 "src/Bindings/Posix.hsc" #-}
__SC_2_FORT_RUN = 50 :: CInt

{-# LINE 3083 "src/Bindings/Posix.hsc" #-}
__SC_2_LOCALEDEF = 52 :: CInt

{-# LINE 3084 "src/Bindings/Posix.hsc" #-}
__SC_2_PBS = 168 :: CInt

{-# LINE 3085 "src/Bindings/Posix.hsc" #-}
__SC_2_PBS_ACCOUNTING = 169 :: CInt

{-# LINE 3086 "src/Bindings/Posix.hsc" #-}
__SC_2_PBS_CHECKPOINT = 175 :: CInt

{-# LINE 3087 "src/Bindings/Posix.hsc" #-}
__SC_2_PBS_LOCATE = 170 :: CInt

{-# LINE 3088 "src/Bindings/Posix.hsc" #-}
__SC_2_PBS_MESSAGE = 171 :: CInt

{-# LINE 3089 "src/Bindings/Posix.hsc" #-}
__SC_2_PBS_TRACK = 172 :: CInt

{-# LINE 3090 "src/Bindings/Posix.hsc" #-}
__SC_2_SW_DEV = 51 :: CInt

{-# LINE 3091 "src/Bindings/Posix.hsc" #-}
__SC_2_UPE = 97 :: CInt

{-# LINE 3092 "src/Bindings/Posix.hsc" #-}
__SC_2_VERSION = 46 :: CInt

{-# LINE 3093 "src/Bindings/Posix.hsc" #-}
__SC_ADVISORY_INFO = 132 :: CInt

{-# LINE 3094 "src/Bindings/Posix.hsc" #-}
__SC_AIO_LISTIO_MAX = 23 :: CInt

{-# LINE 3095 "src/Bindings/Posix.hsc" #-}
__SC_AIO_MAX = 24 :: CInt

{-# LINE 3096 "src/Bindings/Posix.hsc" #-}
__SC_AIO_PRIO_DELTA_MAX = 25 :: CInt

{-# LINE 3097 "src/Bindings/Posix.hsc" #-}
__SC_ARG_MAX = 0 :: CInt

{-# LINE 3098 "src/Bindings/Posix.hsc" #-}
__SC_ASYNCHRONOUS_IO = 12 :: CInt

{-# LINE 3099 "src/Bindings/Posix.hsc" #-}
__SC_ATEXIT_MAX = 87 :: CInt

{-# LINE 3100 "src/Bindings/Posix.hsc" #-}
__SC_BARRIERS = 133 :: CInt

{-# LINE 3101 "src/Bindings/Posix.hsc" #-}
__SC_BC_BASE_MAX = 36 :: CInt

{-# LINE 3102 "src/Bindings/Posix.hsc" #-}
__SC_BC_DIM_MAX = 37 :: CInt

{-# LINE 3103 "src/Bindings/Posix.hsc" #-}
__SC_BC_SCALE_MAX = 38 :: CInt

{-# LINE 3104 "src/Bindings/Posix.hsc" #-}
__SC_BC_STRING_MAX = 39 :: CInt

{-# LINE 3105 "src/Bindings/Posix.hsc" #-}
__SC_CHILD_MAX = 1 :: CInt

{-# LINE 3106 "src/Bindings/Posix.hsc" #-}
__SC_CLK_TCK = 2 :: CInt

{-# LINE 3107 "src/Bindings/Posix.hsc" #-}
__SC_CLOCK_SELECTION = 137 :: CInt

{-# LINE 3108 "src/Bindings/Posix.hsc" #-}
__SC_COLL_WEIGHTS_MAX = 40 :: CInt

{-# LINE 3109 "src/Bindings/Posix.hsc" #-}
__SC_CPUTIME = 138 :: CInt

{-# LINE 3110 "src/Bindings/Posix.hsc" #-}
__SC_DELAYTIMER_MAX = 26 :: CInt

{-# LINE 3111 "src/Bindings/Posix.hsc" #-}
__SC_EXPR_NEST_MAX = 42 :: CInt

{-# LINE 3112 "src/Bindings/Posix.hsc" #-}
__SC_FSYNC = 15 :: CInt

{-# LINE 3113 "src/Bindings/Posix.hsc" #-}
__SC_GETGR_R_SIZE_MAX = 69 :: CInt

{-# LINE 3114 "src/Bindings/Posix.hsc" #-}
__SC_GETPW_R_SIZE_MAX = 70 :: CInt

{-# LINE 3115 "src/Bindings/Posix.hsc" #-}
__SC_HOST_NAME_MAX = 180 :: CInt

{-# LINE 3116 "src/Bindings/Posix.hsc" #-}
__SC_IOV_MAX = 60 :: CInt

{-# LINE 3117 "src/Bindings/Posix.hsc" #-}
__SC_IPV6 = 235 :: CInt

{-# LINE 3118 "src/Bindings/Posix.hsc" #-}
__SC_JOB_CONTROL = 7 :: CInt

{-# LINE 3119 "src/Bindings/Posix.hsc" #-}
__SC_LINE_MAX = 43 :: CInt

{-# LINE 3120 "src/Bindings/Posix.hsc" #-}
__SC_LOGIN_NAME_MAX = 71 :: CInt

{-# LINE 3121 "src/Bindings/Posix.hsc" #-}
__SC_MAPPED_FILES = 16 :: CInt

{-# LINE 3122 "src/Bindings/Posix.hsc" #-}
__SC_MEMLOCK = 17 :: CInt

{-# LINE 3123 "src/Bindings/Posix.hsc" #-}
__SC_MEMLOCK_RANGE = 18 :: CInt

{-# LINE 3124 "src/Bindings/Posix.hsc" #-}
__SC_MEMORY_PROTECTION = 19 :: CInt

{-# LINE 3125 "src/Bindings/Posix.hsc" #-}
__SC_MESSAGE_PASSING = 20 :: CInt

{-# LINE 3126 "src/Bindings/Posix.hsc" #-}
__SC_MONOTONIC_CLOCK = 149 :: CInt

{-# LINE 3127 "src/Bindings/Posix.hsc" #-}
__SC_MQ_OPEN_MAX = 27 :: CInt

{-# LINE 3128 "src/Bindings/Posix.hsc" #-}
__SC_MQ_PRIO_MAX = 28 :: CInt

{-# LINE 3129 "src/Bindings/Posix.hsc" #-}
__SC_NGROUPS_MAX = 3 :: CInt

{-# LINE 3130 "src/Bindings/Posix.hsc" #-}
__SC_OPEN_MAX = 4 :: CInt

{-# LINE 3131 "src/Bindings/Posix.hsc" #-}
__SC_PAGE_SIZE = 30 :: CInt

{-# LINE 3132 "src/Bindings/Posix.hsc" #-}
__SC_PAGESIZE = 30 :: CInt

{-# LINE 3133 "src/Bindings/Posix.hsc" #-}
__SC_PRIORITIZED_IO = 13 :: CInt

{-# LINE 3134 "src/Bindings/Posix.hsc" #-}
__SC_PRIORITY_SCHEDULING = 10 :: CInt

{-# LINE 3135 "src/Bindings/Posix.hsc" #-}
__SC_RAW_SOCKETS = 236 :: CInt

{-# LINE 3136 "src/Bindings/Posix.hsc" #-}
__SC_RE_DUP_MAX = 44 :: CInt

{-# LINE 3137 "src/Bindings/Posix.hsc" #-}
__SC_READER_WRITER_LOCKS = 153 :: CInt

{-# LINE 3138 "src/Bindings/Posix.hsc" #-}
__SC_REALTIME_SIGNALS = 9 :: CInt

{-# LINE 3139 "src/Bindings/Posix.hsc" #-}
__SC_REGEXP = 155 :: CInt

{-# LINE 3140 "src/Bindings/Posix.hsc" #-}
__SC_RTSIG_MAX = 31 :: CInt

{-# LINE 3141 "src/Bindings/Posix.hsc" #-}
__SC_SAVED_IDS = 8 :: CInt

{-# LINE 3142 "src/Bindings/Posix.hsc" #-}
__SC_SEM_NSEMS_MAX = 32 :: CInt

{-# LINE 3143 "src/Bindings/Posix.hsc" #-}
__SC_SEM_VALUE_MAX = 33 :: CInt

{-# LINE 3144 "src/Bindings/Posix.hsc" #-}
__SC_SEMAPHORES = 21 :: CInt

{-# LINE 3145 "src/Bindings/Posix.hsc" #-}
__SC_SHARED_MEMORY_OBJECTS = 22 :: CInt

{-# LINE 3146 "src/Bindings/Posix.hsc" #-}
__SC_SHELL = 157 :: CInt

{-# LINE 3147 "src/Bindings/Posix.hsc" #-}
__SC_SIGQUEUE_MAX = 34 :: CInt

{-# LINE 3148 "src/Bindings/Posix.hsc" #-}
__SC_SPAWN = 159 :: CInt

{-# LINE 3149 "src/Bindings/Posix.hsc" #-}
__SC_SPIN_LOCKS = 154 :: CInt

{-# LINE 3150 "src/Bindings/Posix.hsc" #-}
__SC_SPORADIC_SERVER = 160 :: CInt

{-# LINE 3151 "src/Bindings/Posix.hsc" #-}
__SC_STREAM_MAX = 5 :: CInt

{-# LINE 3152 "src/Bindings/Posix.hsc" #-}
__SC_SYMLOOP_MAX = 173 :: CInt

{-# LINE 3153 "src/Bindings/Posix.hsc" #-}
__SC_SYNCHRONIZED_IO = 14 :: CInt

{-# LINE 3154 "src/Bindings/Posix.hsc" #-}
__SC_THREAD_ATTR_STACKADDR = 77 :: CInt

{-# LINE 3155 "src/Bindings/Posix.hsc" #-}
__SC_THREAD_ATTR_STACKSIZE = 78 :: CInt

{-# LINE 3156 "src/Bindings/Posix.hsc" #-}
__SC_THREAD_CPUTIME = 139 :: CInt

{-# LINE 3157 "src/Bindings/Posix.hsc" #-}
__SC_THREAD_DESTRUCTOR_ITERATIONS = 73 :: CInt

{-# LINE 3158 "src/Bindings/Posix.hsc" #-}
__SC_THREAD_KEYS_MAX = 74 :: CInt

{-# LINE 3159 "src/Bindings/Posix.hsc" #-}
__SC_THREAD_PRIO_INHERIT = 80 :: CInt

{-# LINE 3160 "src/Bindings/Posix.hsc" #-}
__SC_THREAD_PRIO_PROTECT = 81 :: CInt

{-# LINE 3161 "src/Bindings/Posix.hsc" #-}
__SC_THREAD_PRIORITY_SCHEDULING = 79 :: CInt

{-# LINE 3162 "src/Bindings/Posix.hsc" #-}
__SC_THREAD_PROCESS_SHARED = 82 :: CInt

{-# LINE 3163 "src/Bindings/Posix.hsc" #-}
__SC_THREAD_SAFE_FUNCTIONS = 68 :: CInt

{-# LINE 3164 "src/Bindings/Posix.hsc" #-}
__SC_THREAD_SPORADIC_SERVER = 161 :: CInt

{-# LINE 3165 "src/Bindings/Posix.hsc" #-}
__SC_THREAD_STACK_MIN = 75 :: CInt

{-# LINE 3166 "src/Bindings/Posix.hsc" #-}
__SC_THREAD_THREADS_MAX = 76 :: CInt

{-# LINE 3167 "src/Bindings/Posix.hsc" #-}
__SC_THREADS = 67 :: CInt

{-# LINE 3168 "src/Bindings/Posix.hsc" #-}
__SC_TIMEOUTS = 164 :: CInt

{-# LINE 3169 "src/Bindings/Posix.hsc" #-}
__SC_TIMER_MAX = 35 :: CInt

{-# LINE 3170 "src/Bindings/Posix.hsc" #-}
__SC_TIMERS = 11 :: CInt

{-# LINE 3171 "src/Bindings/Posix.hsc" #-}
__SC_TRACE = 181 :: CInt

{-# LINE 3172 "src/Bindings/Posix.hsc" #-}
__SC_TRACE_EVENT_FILTER = 182 :: CInt

{-# LINE 3173 "src/Bindings/Posix.hsc" #-}
__SC_TRACE_INHERIT = 183 :: CInt

{-# LINE 3174 "src/Bindings/Posix.hsc" #-}
__SC_TRACE_LOG = 184 :: CInt

{-# LINE 3175 "src/Bindings/Posix.hsc" #-}
__SC_TTY_NAME_MAX = 72 :: CInt

{-# LINE 3176 "src/Bindings/Posix.hsc" #-}
__SC_TYPED_MEMORY_OBJECTS = 165 :: CInt

{-# LINE 3177 "src/Bindings/Posix.hsc" #-}
__SC_TZNAME_MAX = 6 :: CInt

{-# LINE 3178 "src/Bindings/Posix.hsc" #-}
__SC_VERSION = 29 :: CInt

{-# LINE 3179 "src/Bindings/Posix.hsc" #-}
__SC_XOPEN_CRYPT = 92 :: CInt

{-# LINE 3180 "src/Bindings/Posix.hsc" #-}
__SC_XOPEN_ENH_I18N = 93 :: CInt

{-# LINE 3181 "src/Bindings/Posix.hsc" #-}
__SC_XOPEN_REALTIME = 130 :: CInt

{-# LINE 3182 "src/Bindings/Posix.hsc" #-}
__SC_XOPEN_REALTIME_THREADS = 131 :: CInt

{-# LINE 3183 "src/Bindings/Posix.hsc" #-}
__SC_XOPEN_SHM = 94 :: CInt

{-# LINE 3184 "src/Bindings/Posix.hsc" #-}
__SC_XOPEN_UNIX = 91 :: CInt

{-# LINE 3185 "src/Bindings/Posix.hsc" #-}
__SC_XOPEN_VERSION = 89 :: CInt

{-# LINE 3186 "src/Bindings/Posix.hsc" #-}

_STDERR_FILENO = 2 :: (Num a) => a

{-# LINE 3188 "src/Bindings/Posix.hsc" #-}
_STDIN_FILENO = 0 :: (Num a) => a

{-# LINE 3189 "src/Bindings/Posix.hsc" #-}
_STDOUT_FILENO = 1 :: (Num a) => a

{-# LINE 3190 "src/Bindings/Posix.hsc" #-}

foreign import ccall "access" access :: CString -> CInt -> IO CInt

{-# LINE 3192 "src/Bindings/Posix.hsc" #-}
foreign import ccall "alarm" alarm :: CUInt -> IO CUInt

{-# LINE 3193 "src/Bindings/Posix.hsc" #-}
foreign import ccall "chdir" chdir :: CString -> IO CInt

{-# LINE 3194 "src/Bindings/Posix.hsc" #-}
foreign import ccall "chown" chown :: CString -> CUid -> CGid -> IO CInt

{-# LINE 3195 "src/Bindings/Posix.hsc" #-}
foreign import ccall "close" close :: CInt -> IO CInt

{-# LINE 3196 "src/Bindings/Posix.hsc" #-}
foreign import ccall "confstr" confstr :: CInt -> CString -> CSize -> IO CSize

{-# LINE 3197 "src/Bindings/Posix.hsc" #-}
foreign import ccall "dup" dup :: CInt -> IO CInt

{-# LINE 3198 "src/Bindings/Posix.hsc" #-}
foreign import ccall "dup2" dup2 :: CInt -> CInt -> IO CInt

{-# LINE 3199 "src/Bindings/Posix.hsc" #-}
foreign import ccall "_exit" __exit :: CInt -> IO ()

{-# LINE 3200 "src/Bindings/Posix.hsc" #-}
foreign import ccall "execv" execv :: CString -> Ptr CString -> IO CInt

{-# LINE 3201 "src/Bindings/Posix.hsc" #-}
foreign import ccall "execve" execve :: CString -> Ptr CString -> Ptr CString -> IO CInt

{-# LINE 3203 "src/Bindings/Posix.hsc" #-}
foreign import ccall "execvp" execvp :: CString -> Ptr CString -> IO CInt

{-# LINE 3204 "src/Bindings/Posix.hsc" #-}
foreign import ccall "faccessat" faccessat :: CInt -> CString -> CInt -> CInt -> IO CInt

{-# LINE 3206 "src/Bindings/Posix.hsc" #-}
foreign import ccall "fchdir" fchdir :: CInt -> IO CInt

{-# LINE 3207 "src/Bindings/Posix.hsc" #-}
foreign import ccall "fchown" fchown :: CInt -> CUid -> CGid -> IO CInt

{-# LINE 3208 "src/Bindings/Posix.hsc" #-}
foreign import ccall "fchownat" fchownat :: CInt -> CString -> CUid -> CGid -> CInt -> IO CInt

{-# LINE 3210 "src/Bindings/Posix.hsc" #-}
foreign import ccall "fdatasync" fdatasync :: CInt -> IO CInt

{-# LINE 3211 "src/Bindings/Posix.hsc" #-}
foreign import ccall "fexecve" fexecve :: CInt -> Ptr CString -> Ptr CString -> IO CInt

{-# LINE 3213 "src/Bindings/Posix.hsc" #-}
foreign import ccall "fork" fork :: IO CPid

{-# LINE 3214 "src/Bindings/Posix.hsc" #-}
foreign import ccall "fpathconf" fpathconf :: CInt -> CInt -> IO CLong

{-# LINE 3215 "src/Bindings/Posix.hsc" #-}
foreign import ccall "fsync" fsync :: CInt -> IO CInt

{-# LINE 3216 "src/Bindings/Posix.hsc" #-}
foreign import ccall "ftruncate" ftruncate :: CInt -> COff -> IO CInt

{-# LINE 3217 "src/Bindings/Posix.hsc" #-}
foreign import ccall "getcwd" getcwd :: CString -> CSize -> IO CString

{-# LINE 3218 "src/Bindings/Posix.hsc" #-}
foreign import ccall "getegid" getegid :: IO CGid

{-# LINE 3219 "src/Bindings/Posix.hsc" #-}
foreign import ccall "geteuid" geteuid :: IO CUid

{-# LINE 3220 "src/Bindings/Posix.hsc" #-}
foreign import ccall "getgid" getgid :: IO CGid

{-# LINE 3221 "src/Bindings/Posix.hsc" #-}
foreign import ccall "getgroups" getgroups :: CInt -> Ptr CGid -> IO CInt

{-# LINE 3222 "src/Bindings/Posix.hsc" #-}
foreign import ccall "gethostid" gethostid :: IO CLong

{-# LINE 3223 "src/Bindings/Posix.hsc" #-}
foreign import ccall "gethostname" gethostname :: CString -> CSize -> IO CInt

{-# LINE 3224 "src/Bindings/Posix.hsc" #-}
foreign import ccall "getlogin" getlogin :: IO CString

{-# LINE 3225 "src/Bindings/Posix.hsc" #-}
foreign import ccall "getlogin_r" getlogin_r :: CString -> CSize -> IO CInt

{-# LINE 3226 "src/Bindings/Posix.hsc" #-}
foreign import ccall "getopt" getopt :: CInt -> Ptr CString -> CString -> IO CInt

{-# LINE 3228 "src/Bindings/Posix.hsc" #-}
foreign import ccall "getpgid" getpgid :: CPid -> IO CPid

{-# LINE 3229 "src/Bindings/Posix.hsc" #-}
foreign import ccall "getpgrp" getpgrp :: IO CPid

{-# LINE 3230 "src/Bindings/Posix.hsc" #-}
foreign import ccall "getpid" getpid :: IO CPid

{-# LINE 3231 "src/Bindings/Posix.hsc" #-}
foreign import ccall "getppid" getppid :: IO CPid

{-# LINE 3232 "src/Bindings/Posix.hsc" #-}
foreign import ccall "getsid" getsid :: CPid -> IO CPid

{-# LINE 3233 "src/Bindings/Posix.hsc" #-}
foreign import ccall "getuid" getuid :: IO CUid

{-# LINE 3234 "src/Bindings/Posix.hsc" #-}
foreign import ccall "isatty" isatty :: CInt -> IO CInt

{-# LINE 3235 "src/Bindings/Posix.hsc" #-}
foreign import ccall "lchown" lchown :: CString -> CUid -> CGid -> IO CInt

{-# LINE 3236 "src/Bindings/Posix.hsc" #-}
foreign import ccall "link" link :: CString -> CString -> IO CInt

{-# LINE 3237 "src/Bindings/Posix.hsc" #-}
foreign import ccall "linkat" linkat :: CInt -> CString -> CInt -> CString -> CInt -> IO CInt

{-# LINE 3239 "src/Bindings/Posix.hsc" #-}
foreign import ccall "lockf" lockf :: CInt -> CInt -> COff -> IO CInt

{-# LINE 3240 "src/Bindings/Posix.hsc" #-}
foreign import ccall "lseek" lseek :: CInt -> COff -> CInt -> IO COff

{-# LINE 3241 "src/Bindings/Posix.hsc" #-}
foreign import ccall "nice" nice :: CInt -> IO CInt

{-# LINE 3242 "src/Bindings/Posix.hsc" #-}
foreign import ccall "pathconf" pathconf :: CString -> CInt -> IO CLong

{-# LINE 3243 "src/Bindings/Posix.hsc" #-}
foreign import ccall "pause" pause :: IO CInt

{-# LINE 3244 "src/Bindings/Posix.hsc" #-}
foreign import ccall "pipe" pipe :: Ptr CInt -> IO CInt

{-# LINE 3245 "src/Bindings/Posix.hsc" #-}
foreign import ccall "pread" pread :: CInt -> Ptr () -> CSize -> COff -> IO CSSize

{-# LINE 3247 "src/Bindings/Posix.hsc" #-}
foreign import ccall "pwrite" pwrite :: CInt -> Ptr () -> CSize -> COff -> IO CSSize

{-# LINE 3249 "src/Bindings/Posix.hsc" #-}
foreign import ccall "read" read :: CInt -> Ptr () -> CSize -> IO CSSize

{-# LINE 3250 "src/Bindings/Posix.hsc" #-}
foreign import ccall "readlink" readlink :: CString -> CString -> CSize -> IO CSSize

{-# LINE 3252 "src/Bindings/Posix.hsc" #-}
foreign import ccall "readlinkat" readlinkat :: CInt -> CString -> CString -> CSize -> IO CSSize

{-# LINE 3254 "src/Bindings/Posix.hsc" #-}
foreign import ccall "rmdir" rmdir :: CString -> IO CInt

{-# LINE 3255 "src/Bindings/Posix.hsc" #-}
foreign import ccall "setegid" setegid :: CGid -> IO CInt

{-# LINE 3256 "src/Bindings/Posix.hsc" #-}
foreign import ccall "seteuid" seteuid :: CUid -> IO CInt

{-# LINE 3257 "src/Bindings/Posix.hsc" #-}
foreign import ccall "setgid" setgid :: CGid -> IO CInt

{-# LINE 3258 "src/Bindings/Posix.hsc" #-}
foreign import ccall "setpgid" setpgid :: CPid -> CPid -> IO CInt

{-# LINE 3259 "src/Bindings/Posix.hsc" #-}
foreign import ccall "setregid" setregid :: CGid -> CGid -> IO CInt

{-# LINE 3260 "src/Bindings/Posix.hsc" #-}
foreign import ccall "setreuid" setreuid :: CUid -> CUid -> IO CInt

{-# LINE 3261 "src/Bindings/Posix.hsc" #-}
foreign import ccall "setsid" setsid :: IO CPid

{-# LINE 3262 "src/Bindings/Posix.hsc" #-}
foreign import ccall "setuid" setuid :: CUid -> IO CInt

{-# LINE 3263 "src/Bindings/Posix.hsc" #-}
foreign import ccall "sleep" sleep :: CUInt -> IO CUInt

{-# LINE 3264 "src/Bindings/Posix.hsc" #-}
foreign import ccall "swab" swab :: Ptr () -> Ptr () -> CSSize -> IO ()

{-# LINE 3265 "src/Bindings/Posix.hsc" #-}
foreign import ccall "symlink" symlink :: CString -> CString -> IO CInt

{-# LINE 3266 "src/Bindings/Posix.hsc" #-}
foreign import ccall "symlinkat" symlinkat :: CString -> CInt -> CString -> IO CInt

{-# LINE 3267 "src/Bindings/Posix.hsc" #-}
foreign import ccall "sync" sync :: IO ()

{-# LINE 3268 "src/Bindings/Posix.hsc" #-}
foreign import ccall "sysconf" sysconf :: CInt -> IO CULong

{-# LINE 3269 "src/Bindings/Posix.hsc" #-}
foreign import ccall "tcgetpgrp" tcgetpgrp :: CInt -> IO CPid

{-# LINE 3270 "src/Bindings/Posix.hsc" #-}
foreign import ccall "tcsetpgrp" tcsetpgrp :: CInt -> CPid -> IO CInt

{-# LINE 3271 "src/Bindings/Posix.hsc" #-}
foreign import ccall "truncate" truncate :: CString -> COff -> IO CInt

{-# LINE 3272 "src/Bindings/Posix.hsc" #-}
foreign import ccall "ttyname" ttyname :: CInt -> IO CString

{-# LINE 3273 "src/Bindings/Posix.hsc" #-}
foreign import ccall "ttyname_r" ttyname_r :: CInt -> CString -> CSize -> IO CInt

{-# LINE 3274 "src/Bindings/Posix.hsc" #-}
foreign import ccall "unlink" unlink :: CString -> IO CInt

{-# LINE 3275 "src/Bindings/Posix.hsc" #-}
foreign import ccall "unlinkat" unlinkat :: CInt -> CString -> CInt -> IO CInt

{-# LINE 3276 "src/Bindings/Posix.hsc" #-}
foreign import ccall "write" write :: CInt -> Ptr () -> CSize -> IO CSSize

{-# LINE 3277 "src/Bindings/Posix.hsc" #-}

foreign import ccall "&optarg" optarg :: GlobalVariable (Ptr (CString))

{-# LINE 3279 "src/Bindings/Posix.hsc" #-}
foreign import ccall "&opterr" opterr :: GlobalVariable (Ptr (CInt))

{-# LINE 3280 "src/Bindings/Posix.hsc" #-}
foreign import ccall "&optind" optind :: GlobalVariable (Ptr (CInt))

{-# LINE 3281 "src/Bindings/Posix.hsc" #-}
foreign import ccall "&optopt" optopt :: GlobalVariable (Ptr (CInt))

{-# LINE 3282 "src/Bindings/Posix.hsc" #-}


{-# LINE 3284 "src/Bindings/Posix.hsc" #-}


{-# LINE 3286 "src/Bindings/Posix.hsc" #-}

{-# LINE 3287 "src/Bindings/Posix.hsc" #-}

{-# LINE 3288 "src/Bindings/Posix.hsc" #-}

{-# LINE 3289 "src/Bindings/Posix.hsc" #-}

{-# LINE 3290 "src/Bindings/Posix.hsc" #-}

{-# LINE 3291 "src/Bindings/Posix.hsc" #-}

{-# LINE 3292 "src/Bindings/Posix.hsc" #-}
data Utmpx = Utmpx {utmpx'ut_user :: CChar , utmpx'ut_id :: CString , utmpx'ut_line :: CChar , utmpx'ut_pid :: CPid , utmpx'ut_type :: CShort , utmpx'ut_tv :: Timeval}
instance Storable Utmpx where {sizeOf _ = 384 ; alignment = sizeOf ; peek p = peekByteOff p 44 >>= \v0 -> peekByteOff p 40 >>= \v1 -> peekByteOff p 8 >>= \v2 -> peekByteOff p 4 >>= \v3 -> peekByteOff p 0 >>= \v4 -> peekByteOff p 340 >>= \v5 -> return $ Utmpx v0 v1 v2 v3 v4 v5  ; poke p (Utmpx v0 v1 v2 v3 v4 v5 ) = pokeByteOff p 44 v0 >> pokeByteOff p 40 v1 >> pokeByteOff p 8 v2 >> pokeByteOff p 4 v3 >> pokeByteOff p 0 v4 >> pokeByteOff p 340 v5 >> return () }
{-# LINE 3293 "src/Bindings/Posix.hsc" #-}

_BOOT_TIME = 2 :: CShort

{-# LINE 3295 "src/Bindings/Posix.hsc" #-}
_OLD_TIME = 4 :: CShort

{-# LINE 3296 "src/Bindings/Posix.hsc" #-}
_NEW_TIME = 3 :: CShort

{-# LINE 3297 "src/Bindings/Posix.hsc" #-}
_USER_PROCESS = 7 :: CShort

{-# LINE 3298 "src/Bindings/Posix.hsc" #-}
_INIT_PROCESS = 5 :: CShort

{-# LINE 3299 "src/Bindings/Posix.hsc" #-}
_LOGIN_PROCESS = 6 :: CShort

{-# LINE 3300 "src/Bindings/Posix.hsc" #-}
_DEAD_PROCESS = 8 :: CShort

{-# LINE 3301 "src/Bindings/Posix.hsc" #-}

foreign import ccall "endutxent" endutxent :: IO ()

{-# LINE 3303 "src/Bindings/Posix.hsc" #-}
foreign import ccall "getutxent" getutxent :: IO (Ptr Utmpx)

{-# LINE 3304 "src/Bindings/Posix.hsc" #-}
foreign import ccall "getutxid" getutxid :: Ptr Utmpx -> IO (Ptr Utmpx)

{-# LINE 3305 "src/Bindings/Posix.hsc" #-}
foreign import ccall "getutxline" getutxline :: Ptr Utmpx -> IO (Ptr Utmpx)

{-# LINE 3306 "src/Bindings/Posix.hsc" #-}
foreign import ccall "pututxline" pututxline :: Ptr Utmpx -> IO (Ptr Utmpx)

{-# LINE 3307 "src/Bindings/Posix.hsc" #-}
foreign import ccall "setutxent" setutxent :: IO ()

{-# LINE 3308 "src/Bindings/Posix.hsc" #-}


{-# LINE 3310 "src/Bindings/Posix.hsc" #-}

foreign import ccall "mbsnrtowcs" mbsnrtowcs :: Ptr CWchar -> Ptr CString -> CSize -> CSize -> Ptr Mbstate_t -> IO CSize

{-# LINE 3313 "src/Bindings/Posix.hsc" #-}
foreign import ccall "open_wmemstream" open_wmemstream :: Ptr (Ptr CWchar) -> Ptr CSize -> IO (Ptr CFile)

{-# LINE 3315 "src/Bindings/Posix.hsc" #-}
foreign import ccall "wcpcpy" wcpcpy :: Ptr CWchar -> Ptr CWchar -> IO (Ptr CWchar)

{-# LINE 3317 "src/Bindings/Posix.hsc" #-}
foreign import ccall "wcpncpy" wcpncpy :: Ptr CWchar -> Ptr CWchar -> CSize -> IO CWchar

{-# LINE 3319 "src/Bindings/Posix.hsc" #-}
foreign import ccall "wcscasecmp" wcscasecmp :: Ptr CWchar -> Ptr CWchar -> IO CInt

{-# LINE 3321 "src/Bindings/Posix.hsc" #-}
foreign import ccall "wcsdup" wcsdup :: Ptr CWchar -> IO CWchar

{-# LINE 3322 "src/Bindings/Posix.hsc" #-}
foreign import ccall "wcsncasecmp" wcsncasecmp :: Ptr CWchar -> Ptr CWchar -> CSize -> IO CInt

{-# LINE 3324 "src/Bindings/Posix.hsc" #-}
foreign import ccall "wcsnlen" wcsnlen :: Ptr CWchar -> CSize -> IO CSize

{-# LINE 3325 "src/Bindings/Posix.hsc" #-}
foreign import ccall "wcsnrtombs" wcsnrtombs :: CString -> Ptr (Ptr CWchar) -> CSize -> CSize -> Ptr Mbstate_t -> IO CSize

{-# LINE 3327 "src/Bindings/Posix.hsc" #-}
foreign import ccall "wcswidth" wcswidth :: Ptr CWchar -> CSize -> IO CInt

{-# LINE 3328 "src/Bindings/Posix.hsc" #-}


{-# LINE 3330 "src/Bindings/Posix.hsc" #-}


{-# LINE 3332 "src/Bindings/Posix.hsc" #-}

{-# LINE 3333 "src/Bindings/Posix.hsc" #-}

{-# LINE 3334 "src/Bindings/Posix.hsc" #-}

{-# LINE 3335 "src/Bindings/Posix.hsc" #-}
data Wordexp_t = Wordexp_t {wordexp_t'we_wordc :: CSize , wordexp_t'we_wordv :: Ptr CString , wordexp_t'we_offs :: CSize}
instance Storable Wordexp_t where {sizeOf _ = 12 ; alignment = sizeOf ; peek p = peekByteOff p 0 >>= \v0 -> peekByteOff p 4 >>= \v1 -> peekByteOff p 8 >>= \v2 -> return $ Wordexp_t v0 v1 v2  ; poke p (Wordexp_t v0 v1 v2 ) = pokeByteOff p 0 v0 >> pokeByteOff p 4 v1 >> pokeByteOff p 8 v2 >> return () }
{-# LINE 3336 "src/Bindings/Posix.hsc" #-}

_WRDE_APPEND = 2 :: CInt

{-# LINE 3338 "src/Bindings/Posix.hsc" #-}
_WRDE_DOOFFS = 1 :: CInt

{-# LINE 3339 "src/Bindings/Posix.hsc" #-}
_WRDE_NOCMD = 4 :: CInt

{-# LINE 3340 "src/Bindings/Posix.hsc" #-}
_WRDE_REUSE = 8 :: CInt

{-# LINE 3341 "src/Bindings/Posix.hsc" #-}
_WRDE_SHOWERR = 16 :: CInt

{-# LINE 3342 "src/Bindings/Posix.hsc" #-}
_WRDE_UNDEF = 32 :: CInt

{-# LINE 3343 "src/Bindings/Posix.hsc" #-}

_WRDE_BADCHAR = 2 :: CInt

{-# LINE 3345 "src/Bindings/Posix.hsc" #-}
_WRDE_BADVAL = 3 :: CInt

{-# LINE 3346 "src/Bindings/Posix.hsc" #-}
_WRDE_CMDSUB = 4 :: CInt

{-# LINE 3347 "src/Bindings/Posix.hsc" #-}
_WRDE_NOSPACE = 1 :: CInt

{-# LINE 3348 "src/Bindings/Posix.hsc" #-}
_WRDE_SYNTAX = 5 :: CInt

{-# LINE 3349 "src/Bindings/Posix.hsc" #-}

foreign import ccall "wordexp" wordexp :: CString -> Ptr Wordexp_t -> CInt -> IO CInt

{-# LINE 3352 "src/Bindings/Posix.hsc" #-}
foreign import ccall "wordfree" wordfree :: Ptr Wordexp_t -> IO ()

{-# LINE 3353 "src/Bindings/Posix.hsc" #-}