module Bindings.C (
isalnum,isalpha,isblank,iscntrl,isdigit,
isgraph,islower,isprint,ispunct,isspace,
isupper,isxdigit,tolower,toupper,
_EDOM,_EILSEQ,_ERANGE,
Lconv(..),
_LC_ALL,_LC_COLLATE,_LC_CTYPE,
_LC_MONETARY,_LC_NUMERIC,_LC_TIME,
localeconv,setlocale,
acos,acosf,acosl,acosh,acoshf,
acoshl,asin,asinf,asinl,asinh,
asinhf,asinhl,atan,atanf,atanl,
atan2,atan2f,atan2l,atanh,atanhf,
atanhl,cbrt,cbrtf,cbrtl,ceil,
ceilf,ceill,copysign,copysignf,
copysignl,cos,cosf,cosl,cosh,
coshf,coshl,erf,erff,erfl,erfc,
erfcf,erfcl,exp,expf,expl,
exp2,exp2f,exp2l,expm1,expm1f,
expm1l,fabs,fabsf,fabsl,fdim,
fdimf,fdiml,floor,floorf,
floorl,fma,fmaf,fmal,fmax,
fmaxf,fmaxl,fmin,fminf,fminl,
fmod,fmodf,fmodl,frexp,frexpf,
frexpl,hypot,hypotf,hypotl,
ilogb,ilogbf,ilogbl,ldexp,
ldexpf,ldexpl,lgamma,lgammaf,
lgammal,llrint,llrintf,llrintl,
llround,llroundf,llroundl,log,
logf,logl,log10,log10f,log10l,
log1p,log1pf,log1pl,log2,
log2f,log2l,logb,logbf,logbl,
lrint,lrintf,lrintl,lround,
lroundf,lroundl,modf,modff,
modfl,nan,nanf,nanl,nearbyint,
nearbyintf,nearbyintl,nextafter,
nextafterf,nextafterl,nexttoward,
nexttowardf,nexttowardl,pow,
powf,powl,remainder,remainderf,
remainderl,remquo,remquof,
remquol,rint,rintf,rintl,
round,roundf,roundl,scalbln,
scalblnf,scalblnl,scalbn,scalbnf,
scalbnl,sin,sinf,sinl,sinh,sinhf,
sinhl,sqrt,sqrtf,sqrtl,tan,
tanf,tanl,tanh,tanhf,tanhl,
tgamma,tgammaf,tgammal,trunc,
truncf,truncl,
_SIG_DFL,_SIG_ERR,_SIG_IGN,
_SIGINT,_SIGILL,_SIGABRT,
_SIGFPE,_SIGSEGV,_SIGTERM,
raise,signal,
_NULL,
_BUFSIZ,__IOFBF,__IOLBF,__IONBF,
_SEEK_CUR,_SEEK_END,_SEEK_SET,_FILENAME_MAX,
_FOPEN_MAX,_EOF,
clearerr,fclose,feof,ferror,
fflush,fgetc,fgetpos,fgets,
fopen,fputc,fputs,fread,
freopen,fseek,fsetpos,ftell,
fwrite,getc,getchar,perror,
putc,putchar,puts,remove,
rename,rewind,setbuf,setvbuf,
tmpfile,ungetc,
_EXIT_FAILURE,_EXIT_SUCCESS,_RAND_MAX,_MB_CUR_MAX,
__Exit,abort,abs,atexit,
atof,atoi,atol,atoll,
bsearch,calloc,exit,free,
getenv,getsubopt,labs,llabs,
malloc,mblen,mbstowcs,mbtowc,
qsort,rand,realloc,srand,
strtod,strtof,strtol,strtold,
strtoll,strtoul,strtoull,system,
wcstombs,wctomb,
Tm(..),
_TIMER_ABSTIME,
clock,difftime,gmtime,localtime,
mktime,strftime,time,
Mbstate_t(..),
CWint,
_WEOF,
btowc,fgetwc,fgetws,fputwc,fputws,
fwide,getwc,getwchar,mbrlen,
mbrtowc,mbsinit,mbsrtowcs,putwchar,
putwc,ungetwc,wcrtomb,wcscat,
wcschr,wcscmp,wcscoll,wcscpy,
wcscspn,wcsftime,wcslen,wcsncat,
wcsncmp,wcsncpy,wcspbrk,wcsrchr,
wcsrtombs,wcsspn,wcsstr,wcstod,
wcstof,wcstok,wcstold,wcstoll,
wcstol,wcstoull,wcstoul,wcsxfrm,
wctob,wmemchr,wmemcmp,wmemcpy,
wmemmove,wmemset,
CWctrans,CWctype,
iswalnum,iswalpha,iswblank,iswcntrl,iswctype,iswdigit,iswgraph,iswlower,iswprint,iswpunct,iswspace,iswupper,iswxdigit,towctrans,towlower,towupper,wctrans,wctype,
) where
import Prelude (($),Monad(..),IO(..),Num)
import Foreign hiding (free,malloc,realloc)
import Foreign.C
foreign import ccall "isalnum" isalnum :: CInt -> IO CInt
foreign import ccall "isalpha" isalpha :: CInt -> IO CInt
foreign import ccall "isblank" isblank :: CInt -> IO CInt
foreign import ccall "iscntrl" iscntrl :: CInt -> IO CInt
foreign import ccall "isdigit" isdigit :: CInt -> IO CInt
foreign import ccall "isgraph" isgraph :: CInt -> IO CInt
foreign import ccall "islower" islower :: CInt -> IO CInt
foreign import ccall "isprint" isprint :: CInt -> IO CInt
foreign import ccall "ispunct" ispunct :: CInt -> IO CInt
foreign import ccall "isspace" isspace :: CInt -> IO CInt
foreign import ccall "isupper" isupper :: CInt -> IO CInt
foreign import ccall "isxdigit" isxdigit :: CInt -> IO CInt
foreign import ccall "tolower" tolower :: CInt -> IO CInt
foreign import ccall "toupper" toupper :: CInt -> IO CInt
_EDOM = 33 :: CInt
_EILSEQ = 84 :: CInt
_ERANGE = 34 :: CInt
foreign import ccall "localeconv" localeconv :: IO (Ptr Lconv)
foreign import ccall "setlocale" setlocale :: CInt -> CString -> IO CString
data Lconv = Lconv {lconv'currency_symbol :: CString , lconv'decimal_point :: CString , lconv'frac_digits :: CChar , lconv'grouping :: CString , lconv'int_curr_symbol :: CString , lconv'int_frac_digits :: CChar , lconv'mon_decimal_point :: CString , lconv'mon_grouping :: CString , lconv'mon_thousands_sep :: CString , lconv'negative_sign :: CString , lconv'n_cs_precedes :: CChar , lconv'n_sep_by_space :: CChar , lconv'n_sign_posn :: CChar , lconv'positive_sign :: CString , lconv'p_cs_precedes :: CChar , lconv'p_sep_by_space :: CChar , lconv'p_sign_posn :: CChar , lconv'thousands_sep :: CString}
instance Storable Lconv where {sizeOf _ = 56 ; alignment = sizeOf ; peek p = peekByteOff p 16 >>= \v0 -> peekByteOff p 0 >>= \v1 -> peekByteOff p 41 >>= \v2 -> peekByteOff p 8 >>= \v3 -> peekByteOff p 12 >>= \v4 -> peekByteOff p 40 >>= \v5 -> peekByteOff p 20 >>= \v6 -> peekByteOff p 28 >>= \v7 -> peekByteOff p 24 >>= \v8 -> peekByteOff p 36 >>= \v9 -> peekByteOff p 44 >>= \v10 -> peekByteOff p 45 >>= \v11 -> peekByteOff p 47 >>= \v12 -> peekByteOff p 32 >>= \v13 -> peekByteOff p 42 >>= \v14 -> peekByteOff p 43 >>= \v15 -> peekByteOff p 46 >>= \v16 -> peekByteOff p 4 >>= \v17 -> return $ Lconv v0 v1 v2 v3 v4 v5 v6 v7 v8 v9 v10 v11 v12 v13 v14 v15 v16 v17 ; poke p (Lconv v0 v1 v2 v3 v4 v5 v6 v7 v8 v9 v10 v11 v12 v13 v14 v15 v16 v17 ) = pokeByteOff p 16 v0 >> pokeByteOff p 0 v1 >> pokeByteOff p 41 v2 >> pokeByteOff p 8 v3 >> pokeByteOff p 12 v4 >> pokeByteOff p 40 v5 >> pokeByteOff p 20 v6 >> pokeByteOff p 28 v7 >> pokeByteOff p 24 v8 >> pokeByteOff p 36 v9 >> pokeByteOff p 44 v10 >> pokeByteOff p 45 v11 >> pokeByteOff p 47 v12 >> pokeByteOff p 32 v13 >> pokeByteOff p 42 v14 >> pokeByteOff p 43 v15 >> pokeByteOff p 46 v16 >> pokeByteOff p 4 v17 >> return () }
_LC_ALL = 6 :: CInt
_LC_COLLATE = 3 :: CInt
_LC_CTYPE = 0 :: CInt
_LC_MONETARY = 4 :: CInt
_LC_NUMERIC = 1 :: CInt
_LC_TIME = 2 :: CInt
foreign import ccall "acos" acos :: CDouble -> IO CDouble
foreign import ccall "acosf" acosf :: CFloat -> IO CFloat
foreign import ccall "acosl" acosl :: CLDouble -> IO CLDouble
foreign import ccall "acosh" acosh :: CDouble -> IO CDouble
foreign import ccall "acoshf" acoshf :: CFloat -> IO CFloat
foreign import ccall "acoshl" acoshl :: CLDouble -> IO CLDouble
foreign import ccall "asin" asin :: CDouble -> IO CDouble
foreign import ccall "asinf" asinf :: CFloat -> IO CFloat
foreign import ccall "asinl" asinl :: CLDouble -> IO CLDouble
foreign import ccall "asinh" asinh :: CDouble -> IO CDouble
foreign import ccall "asinhf" asinhf :: CFloat -> IO CFloat
foreign import ccall "asinhl" asinhl :: CLDouble -> IO CLDouble
foreign import ccall "atan" atan :: CDouble -> IO CDouble
foreign import ccall "atanf" atanf :: CFloat -> IO CFloat
foreign import ccall "atanl" atanl :: CLDouble -> IO CLDouble
foreign import ccall "atan2" atan2 :: CDouble -> CDouble -> IO CDouble
foreign import ccall "atan2f" atan2f :: CFloat -> CFloat -> IO CFloat
foreign import ccall "atan2l" atan2l :: CLDouble -> CLDouble -> IO CLDouble
foreign import ccall "atanh" atanh :: CDouble -> IO CDouble
foreign import ccall "atanhf" atanhf :: CFloat -> IO CFloat
foreign import ccall "atanhl" atanhl :: CLDouble -> IO CLDouble
foreign import ccall "cbrt" cbrt :: CDouble -> IO CDouble
foreign import ccall "cbrtf" cbrtf :: CFloat -> IO CFloat
foreign import ccall "cbrtl" cbrtl :: CLDouble -> IO CLDouble
foreign import ccall "ceil" ceil :: CDouble -> IO CDouble
foreign import ccall "ceilf" ceilf :: CFloat -> IO CFloat
foreign import ccall "ceill" ceill :: CLDouble -> IO CLDouble
foreign import ccall "copysign" copysign :: CDouble -> CDouble -> IO CDouble
foreign import ccall "copysignf" copysignf :: CFloat -> CFloat -> IO CFloat
foreign import ccall "copysignl" copysignl :: CLDouble -> CLDouble -> IO CLDouble
foreign import ccall "cos" cos :: CDouble -> IO CDouble
foreign import ccall "cosf" cosf :: CFloat -> IO CFloat
foreign import ccall "cosl" cosl :: CLDouble -> IO CLDouble
foreign import ccall "cosh" cosh :: CDouble -> IO CDouble
foreign import ccall "coshf" coshf :: CFloat -> IO CFloat
foreign import ccall "coshl" coshl :: CLDouble -> IO CLDouble
foreign import ccall "erf" erf :: CDouble -> IO CDouble
foreign import ccall "erff" erff :: CFloat -> IO CFloat
foreign import ccall "erfl" erfl :: CLDouble -> IO CLDouble
foreign import ccall "erfc" erfc :: CDouble -> IO CDouble
foreign import ccall "erfcf" erfcf :: CFloat -> IO CFloat
foreign import ccall "erfcl" erfcl :: CLDouble -> IO CLDouble
foreign import ccall "exp" exp :: CDouble -> IO CDouble
foreign import ccall "expf" expf :: CFloat -> IO CFloat
foreign import ccall "expl" expl :: CLDouble -> IO CLDouble
foreign import ccall "exp2" exp2 :: CDouble -> IO CDouble
foreign import ccall "exp2f" exp2f :: CFloat -> IO CFloat
foreign import ccall "exp2l" exp2l :: CLDouble -> IO CLDouble
foreign import ccall "expm1" expm1 :: CDouble -> IO CDouble
foreign import ccall "expm1f" expm1f :: CFloat -> IO CFloat
foreign import ccall "expm1l" expm1l :: CLDouble -> IO CLDouble
foreign import ccall "fabs" fabs :: CDouble -> IO CDouble
foreign import ccall "fabsf" fabsf :: CFloat -> IO CFloat
foreign import ccall "fabsl" fabsl :: CLDouble -> IO CLDouble
foreign import ccall "fdim" fdim :: CDouble -> CDouble -> IO CDouble
foreign import ccall "fdimf" fdimf :: CFloat -> CFloat -> IO CFloat
foreign import ccall "fdiml" fdiml :: CLDouble -> CLDouble -> IO CLDouble
foreign import ccall "floor" floor :: CDouble -> IO CDouble
foreign import ccall "floorf" floorf :: CFloat -> IO CFloat
foreign import ccall "floorl" floorl :: CLDouble -> IO CLDouble
foreign import ccall "fma" fma :: CDouble -> CDouble -> CDouble -> IO CDouble
foreign import ccall "fmaf" fmaf :: CFloat -> CFloat -> CFloat -> IO CFloat
foreign import ccall "fmal" fmal :: CLDouble -> CLDouble -> CLDouble -> IO CLDouble
foreign import ccall "fmax" fmax :: CDouble -> CDouble -> IO CDouble
foreign import ccall "fmaxf" fmaxf :: CFloat -> CFloat -> IO CFloat
foreign import ccall "fmaxl" fmaxl :: CLDouble -> CLDouble -> IO CLDouble
foreign import ccall "fmin" fmin :: CDouble -> CDouble -> IO CDouble
foreign import ccall "fminf" fminf :: CFloat -> CFloat -> IO CFloat
foreign import ccall "fminl" fminl :: CLDouble -> CLDouble -> IO CLDouble
foreign import ccall "fmod" fmod :: CDouble -> CDouble -> IO CDouble
foreign import ccall "fmodf" fmodf :: CFloat -> CFloat -> IO CFloat
foreign import ccall "fmodl" fmodl :: CLDouble -> CLDouble -> IO CLDouble
foreign import ccall "frexp" frexp :: CDouble -> Ptr CInt -> IO CDouble
foreign import ccall "frexpf" frexpf :: CFloat -> Ptr CInt -> IO CFloat
foreign import ccall "frexpl" frexpl :: CLDouble -> Ptr CInt -> IO CLDouble
foreign import ccall "hypot" hypot :: CDouble -> CDouble -> IO CDouble
foreign import ccall "hypotf" hypotf :: CFloat -> CFloat -> IO CFloat
foreign import ccall "hypotl" hypotl :: CLDouble -> CLDouble -> IO CLDouble
foreign import ccall "ilogb" ilogb :: CDouble -> IO CDouble
foreign import ccall "ilogbf" ilogbf :: CFloat -> IO CFloat
foreign import ccall "ilogbl" ilogbl :: CLDouble -> IO CLDouble
foreign import ccall "ldexp" ldexp :: CDouble -> CInt -> IO CDouble
foreign import ccall "ldexpf" ldexpf :: CFloat -> CInt -> IO CFloat
foreign import ccall "ldexpl" ldexpl :: CLDouble -> CInt -> IO CLDouble
foreign import ccall "lgamma" lgamma :: CDouble -> IO CDouble
foreign import ccall "lgammaf" lgammaf :: CFloat -> IO CFloat
foreign import ccall "lgammal" lgammal :: CLDouble -> IO CLDouble
foreign import ccall "llrint" llrint :: CDouble -> IO CLLong
foreign import ccall "llrintf" llrintf :: CFloat -> IO CLLong
foreign import ccall "llrintl" llrintl :: CLDouble -> IO CLLong
foreign import ccall "llround" llround :: CDouble -> IO CLLong
foreign import ccall "llroundf" llroundf :: CFloat -> IO CLLong
foreign import ccall "llroundl" llroundl :: CLDouble -> IO CLLong
foreign import ccall "log" log :: CDouble -> IO CDouble
foreign import ccall "logf" logf :: CFloat -> IO CFloat
foreign import ccall "logl" logl :: CLDouble -> IO CLDouble
foreign import ccall "log10" log10 :: CDouble -> IO CDouble
foreign import ccall "log10f" log10f :: CFloat -> IO CFloat
foreign import ccall "log10l" log10l :: CLDouble -> IO CLDouble
foreign import ccall "log1p" log1p :: CDouble -> IO CDouble
foreign import ccall "log1pf" log1pf :: CFloat -> IO CFloat
foreign import ccall "log1pl" log1pl :: CLDouble -> IO CLDouble
foreign import ccall "log2" log2 :: CDouble -> IO CDouble
foreign import ccall "log2f" log2f :: CFloat -> IO CFloat
foreign import ccall "log2l" log2l :: CLDouble -> IO CLDouble
foreign import ccall "logb" logb :: CDouble -> IO CDouble
foreign import ccall "logbf" logbf :: CFloat -> IO CFloat
foreign import ccall "logbl" logbl :: CLDouble -> IO CLDouble
foreign import ccall "lrint" lrint :: CDouble -> IO CLong
foreign import ccall "lrintf" lrintf :: CFloat -> IO CLong
foreign import ccall "lrintl" lrintl :: CLDouble -> IO CLong
foreign import ccall "lround" lround :: CDouble -> IO CLong
foreign import ccall "lroundf" lroundf :: CFloat -> IO CLong
foreign import ccall "lroundl" lroundl :: CLDouble -> IO CLong
foreign import ccall "modf" modf :: CDouble -> Ptr CDouble -> IO CDouble
foreign import ccall "modff" modff :: CFloat -> Ptr CFloat -> IO CFloat
foreign import ccall "modfl" modfl :: CLDouble -> Ptr CLDouble -> IO CLDouble
foreign import ccall "nan" nan :: CString -> IO CDouble
foreign import ccall "nanf" nanf :: CString -> IO CFloat
foreign import ccall "nanl" nanl :: CString -> IO CLDouble
foreign import ccall "nearbyint" nearbyint :: CDouble -> IO CDouble
foreign import ccall "nearbyintf" nearbyintf :: CFloat -> IO CFloat
foreign import ccall "nearbyintl" nearbyintl :: CLDouble -> IO CLDouble
foreign import ccall "nextafter" nextafter :: CDouble -> CDouble -> IO CDouble
foreign import ccall "nextafterf" nextafterf :: CFloat -> CFloat -> IO CFloat
foreign import ccall "nextafterl" nextafterl :: CLDouble -> CLDouble -> IO CLDouble
foreign import ccall "nexttoward" nexttoward :: CDouble -> CLDouble -> IO CDouble
foreign import ccall "nexttowardf" nexttowardf :: CFloat -> CLDouble -> IO CFloat
foreign import ccall "nexttowardl" nexttowardl :: CLDouble -> CLDouble -> IO CLDouble
foreign import ccall "pow" pow :: CDouble -> CDouble -> IO CDouble
foreign import ccall "powf" powf :: CFloat -> CFloat -> IO CFloat
foreign import ccall "powl" powl :: CLDouble -> CLDouble -> IO CLDouble
foreign import ccall "remainder" remainder :: CDouble -> CDouble -> IO CDouble
foreign import ccall "remainderf" remainderf :: CFloat -> CFloat -> IO CFloat
foreign import ccall "remainderl" remainderl :: CLDouble -> CLDouble -> IO CLDouble
foreign import ccall "remquo" remquo :: CDouble -> CDouble -> Ptr CInt -> CDouble
foreign import ccall "remquof" remquof :: CFloat -> CFloat -> Ptr CInt -> CFloat
foreign import ccall "remquol" remquol :: CLDouble -> CLDouble -> Ptr CInt -> CLDouble
foreign import ccall "rint" rint :: CDouble -> IO CDouble
foreign import ccall "rintf" rintf :: CFloat -> IO CFloat
foreign import ccall "rintl" rintl :: CLDouble -> IO CLDouble
foreign import ccall "round" round :: CDouble -> IO CDouble
foreign import ccall "roundf" roundf :: CFloat -> IO CFloat
foreign import ccall "roundl" roundl :: CLDouble -> IO CLDouble
foreign import ccall "scalbln" scalbln :: CDouble -> CLong -> IO CDouble
foreign import ccall "scalblnf" scalblnf :: CFloat -> CLong -> IO CFloat
foreign import ccall "scalblnl" scalblnl :: CLDouble -> CLong -> IO CLDouble
foreign import ccall "scalbn" scalbn :: CDouble -> CInt -> IO CDouble
foreign import ccall "scalbnf" scalbnf :: CFloat -> CInt -> IO CFloat
foreign import ccall "scalbnl" scalbnl :: CLDouble -> CInt -> IO CLDouble
foreign import ccall "sin" sin :: CDouble -> IO CDouble
foreign import ccall "sinf" sinf :: CFloat -> IO CFloat
foreign import ccall "sinl" sinl :: CLDouble -> IO CLDouble
foreign import ccall "sinh" sinh :: CDouble -> IO CDouble
foreign import ccall "sinhf" sinhf :: CFloat -> IO CFloat
foreign import ccall "sinhl" sinhl :: CLDouble -> IO CLDouble
foreign import ccall "sqrt" sqrt :: CDouble -> IO CDouble
foreign import ccall "sqrtf" sqrtf :: CFloat -> IO CFloat
foreign import ccall "sqrtl" sqrtl :: CLDouble -> IO CLDouble
foreign import ccall "tan" tan :: CDouble -> IO CDouble
foreign import ccall "tanf" tanf :: CFloat -> IO CFloat
foreign import ccall "tanl" tanl :: CLDouble -> IO CLDouble
foreign import ccall "tanh" tanh :: CDouble -> IO CDouble
foreign import ccall "tanhf" tanhf :: CFloat -> IO CFloat
foreign import ccall "tanhl" tanhl :: CLDouble -> IO CLDouble
foreign import ccall "tgamma" tgamma :: CDouble -> IO CDouble
foreign import ccall "tgammaf" tgammaf :: CFloat -> IO CFloat
foreign import ccall "tgammal" tgammal :: CLDouble -> IO CLDouble
foreign import ccall "trunc" trunc :: CDouble -> IO CDouble
foreign import ccall "truncf" truncf :: CFloat -> IO CFloat
foreign import ccall "truncl" truncl :: CLDouble -> IO CLDouble
_SIG_DFL = castPtrToFunPtr $ wordPtrToPtr (0 :: WordPtr) :: FunPtr (CInt -> IO ())
_SIG_ERR = castPtrToFunPtr $ wordPtrToPtr (4294967295 :: WordPtr) :: FunPtr (CInt -> IO ())
_SIG_IGN = castPtrToFunPtr $ wordPtrToPtr (1 :: WordPtr) :: FunPtr (CInt -> IO ())
_SIGINT = 2 :: CInt
_SIGILL = 4 :: CInt
_SIGABRT = 6 :: CInt
_SIGFPE = 8 :: CInt
_SIGSEGV = 11 :: CInt
_SIGTERM = 15 :: CInt
foreign import ccall "raise" raise :: CInt -> IO CInt
foreign import ccall "signal" signal :: CInt -> IO (FunPtr (CInt -> (CInt -> IO ())))
_NULL = wordPtrToPtr (0 :: WordPtr) :: Ptr a
_BUFSIZ = 8192 :: (Num a) => a
__IOFBF = 0 :: (Num a) => a
__IOLBF = 1 :: (Num a) => a
__IONBF = 2 :: (Num a) => a
_SEEK_CUR = 1 :: (Num a) => a
_SEEK_END = 2 :: (Num a) => a
_SEEK_SET = 0 :: (Num a) => a
_FILENAME_MAX = 4096 :: (Num a) => a
_FOPEN_MAX = 16 :: (Num a) => a
_EOF = 1 :: CInt
foreign import ccall "clearerr" clearerr :: Ptr CFile -> IO ()
foreign import ccall "fclose" fclose :: Ptr CFile -> IO CInt
foreign import ccall "feof" feof :: Ptr CFile -> IO CInt
foreign import ccall "ferror" ferror :: Ptr CFile -> IO CInt
foreign import ccall "fflush" fflush :: Ptr CFile -> IO CInt
foreign import ccall "fgetc" fgetc :: Ptr CFile -> IO CInt
foreign import ccall "fgetpos" fgetpos :: Ptr CFile -> Ptr CFpos -> IO CInt
foreign import ccall "fgets" fgets :: CString -> CInt -> Ptr CFile -> IO CString
foreign import ccall "fopen" fopen :: CString -> CString -> IO (Ptr CFile)
foreign import ccall "fputc" fputc :: CInt -> Ptr CFile -> IO CInt
foreign import ccall "fputs" fputs :: CString -> Ptr CFile -> IO CInt
foreign import ccall "fread" fread :: Ptr () -> CSize -> CSize -> Ptr CFile -> IO CSize
foreign import ccall "freopen" freopen :: CString -> CString -> Ptr CFile -> IO (Ptr CFile)
foreign import ccall "fseek" fseek :: Ptr CFile -> CLong -> CInt -> IO CInt
foreign import ccall "fsetpos" fsetpos :: Ptr CFile -> Ptr CFpos -> IO CInt
foreign import ccall "ftell" ftell :: Ptr CFile -> IO CLong
foreign import ccall "fwrite" fwrite :: Ptr () -> CSize -> CSize -> Ptr CFile -> IO CSize
foreign import ccall "getc" getc :: Ptr CFile -> IO CInt
foreign import ccall "getchar" getchar :: IO CInt
foreign import ccall "perror" perror :: CString -> IO ()
foreign import ccall "putc" putc :: CInt -> Ptr CFile -> IO CInt
foreign import ccall "putchar" putchar :: CInt -> IO CInt
foreign import ccall "puts" puts :: CString -> IO CInt
foreign import ccall "remove" remove :: CString -> IO CInt
foreign import ccall "rename" rename :: CString -> CString -> IO CInt
foreign import ccall "rewind" rewind :: Ptr CFile -> IO ()
foreign import ccall "setbuf" setbuf :: Ptr CFile -> CString -> IO ()
foreign import ccall "setvbuf" setvbuf :: Ptr CFile -> CString -> CInt -> CSize -> IO CInt
foreign import ccall "tmpfile" tmpfile :: IO (Ptr CFile)
foreign import ccall "ungetc" ungetc :: CInt -> Ptr CFile -> IO CInt
_EXIT_FAILURE = 1 :: (Num a) => a
_EXIT_SUCCESS = 0 :: (Num a) => a
_RAND_MAX = 2147483647 :: (Num a) => a
_MB_CUR_MAX = 1 :: CSize
foreign import ccall "_Exit" __Exit :: CInt -> IO ()
foreign import ccall "abort" abort :: IO ()
foreign import ccall "abs" abs :: CInt -> IO CInt
foreign import ccall "atexit" atexit :: FunPtr (IO ()) -> IO CInt
foreign import ccall "atof" atof :: CString -> IO CDouble
foreign import ccall "atoi" atoi :: CString -> IO CInt
foreign import ccall "atol" atol :: CString -> IO CLong
foreign import ccall "atoll" atoll :: CString -> IO CLLong
foreign import ccall "bsearch" bsearch :: Ptr a -> Ptr a -> CSize -> CSize -> FunPtr (Ptr a -> Ptr a -> IO CInt) -> IO (Ptr a)
foreign import ccall "calloc" calloc :: CSize -> CSize -> IO (Ptr ())
foreign import ccall "exit" exit :: CInt -> IO ()
foreign import ccall "free" free :: Ptr () -> IO ()
foreign import ccall "getenv" getenv :: CString -> IO CString
foreign import ccall "getsubopt" getsubopt :: Ptr CString -> Ptr CString -> Ptr CString -> IO CInt
foreign import ccall "labs" labs :: CLong -> IO CLong
foreign import ccall "llabs" llabs :: CLLong -> IO CLLong
foreign import ccall "malloc" malloc :: CSize -> IO (Ptr ())
foreign import ccall "mblen" mblen :: CString -> CSize -> IO CInt
foreign import ccall "mbstowcs" mbstowcs :: Ptr CWchar -> CString -> CSize -> IO CSize
foreign import ccall "mbtowc" mbtowc :: Ptr CWchar -> CString -> CSize -> IO CInt
foreign import ccall "qsort" qsort :: Ptr a -> CSize -> CSize -> FunPtr (Ptr a -> Ptr a -> IO CInt) -> IO ()
foreign import ccall "rand" rand :: IO CInt
foreign import ccall "realloc" realloc :: Ptr () -> CSize -> IO (Ptr ())
foreign import ccall "srand" srand :: CUInt -> IO ()
foreign import ccall "strtod" strtod :: CString -> Ptr CString -> IO CDouble
foreign import ccall "strtof" strtof :: CString -> Ptr CString -> IO CFloat
foreign import ccall "strtol" strtol :: CString -> Ptr CString -> CInt -> IO CLong
foreign import ccall "strtold" strtold :: CString -> Ptr CString -> IO CLDouble
foreign import ccall "strtoll" strtoll :: CString -> Ptr CString -> CInt -> IO CLLong
foreign import ccall "strtoul" strtoul :: CString -> Ptr CString -> CInt -> Ptr CULong
foreign import ccall "strtoull" strtoull :: CString -> Ptr CString -> CInt -> IO CULLong
foreign import ccall "system" system :: CString -> IO CInt
foreign import ccall "wcstombs" wcstombs :: CString -> Ptr CWchar -> CSize -> IO CSize
foreign import ccall "wctomb" wctomb :: CString -> CWchar -> IO CInt
data Tm = Tm {tm'tm_sec :: CInt , tm'tm_min :: CInt , tm'tm_hour :: CInt , tm'tm_mday :: CInt , tm'tm_mon :: CInt , tm'tm_year :: CInt , tm'tm_wday :: CInt , tm'tm_yday :: CInt , tm'tm_isdst :: CInt}
instance Storable Tm where {sizeOf _ = 44 ; 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 -> peekByteOff p 32 >>= \v8 -> return $ Tm v0 v1 v2 v3 v4 v5 v6 v7 v8 ; poke p (Tm v0 v1 v2 v3 v4 v5 v6 v7 v8 ) = 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 >> pokeByteOff p 32 v8 >> return () }
foreign import ccall "clock" clock :: IO CClock
foreign import ccall "difftime" difftime :: CTime -> CTime -> IO CDouble
foreign import ccall "gmtime" gmtime :: Ptr CTime -> IO (Ptr Tm)
foreign import ccall "localtime" localtime :: Ptr CTime -> IO (Ptr Tm)
foreign import ccall "mktime" mktime :: Ptr Tm -> IO CTime
foreign import ccall "strftime" strftime :: CString -> CSize -> CString -> Ptr Tm -> IO CSize
foreign import ccall "time" time :: Ptr CTime -> IO CTime
_TIMER_ABSTIME = 1 :: (Num a) => a
data Mbstate_t = Mbstate_t
instance Storable Mbstate_t where {sizeOf _ = 8 ; alignment = sizeOf ; peek p = return $ Mbstate_t ; poke p (Mbstate_t ) = return () }
type CWint = Word32
_WEOF = 4294967295 :: CWint
foreign import ccall "btowc" btowc :: CInt -> IO CWint
foreign import ccall "fgetwc" fgetwc :: Ptr CFile -> IO CWint
foreign import ccall "fgetws" fgetws :: Ptr CWchar -> CInt -> Ptr CFile -> IO (Ptr CWchar)
foreign import ccall "fputwc" fputwc :: CWchar -> Ptr CFile -> IO CWint
foreign import ccall "fputws" fputws :: Ptr CWchar -> Ptr CFile -> IO CInt
foreign import ccall "fwide" fwide :: Ptr CFile -> CInt -> IO CInt
foreign import ccall "getwc" getwc :: Ptr CFile -> IO CWint
foreign import ccall "getwchar" getwchar :: IO CWint
foreign import ccall "mbrlen" mbrlen :: CString -> CSize -> Ptr Mbstate_t -> IO CSize
foreign import ccall "mbrtowc" mbrtowc :: Ptr CWchar -> CString -> CSize -> Ptr Mbstate_t -> IO CSize
foreign import ccall "mbsinit" mbsinit :: Ptr Mbstate_t -> IO CInt
foreign import ccall "mbsrtowcs" mbsrtowcs :: Ptr CWchar -> Ptr CString -> CSize -> Ptr Mbstate_t -> IO CSize
foreign import ccall "putwchar" putwchar :: CWchar -> IO CWint
foreign import ccall "putwc" putwc :: CWchar -> Ptr CFile -> IO CWint
foreign import ccall "ungetwc" ungetwc :: CWint -> Ptr CFile -> IO CWint
foreign import ccall "wcrtomb" wcrtomb :: CString -> CWchar -> Ptr Mbstate_t -> IO CSize
foreign import ccall "wcscat" wcscat :: Ptr CWchar -> Ptr CWchar -> IO CWchar
foreign import ccall "wcschr" wcschr :: Ptr CWchar -> CWchar -> IO CWchar
foreign import ccall "wcscmp" wcscmp :: Ptr CWchar -> Ptr CWchar -> IO CInt
foreign import ccall "wcscoll" wcscoll :: Ptr CWchar -> Ptr CWchar -> IO CInt
foreign import ccall "wcscpy" wcscpy :: Ptr CWchar -> Ptr CWchar -> IO (Ptr CWchar)
foreign import ccall "wcscspn" wcscspn :: Ptr CWchar -> Ptr CWchar -> IO CSize
foreign import ccall "wcsftime" wcsftime :: Ptr CWchar -> CSize -> Ptr CWchar -> Ptr Tm -> IO CSize
foreign import ccall "wcslen" wcslen :: Ptr CWchar -> IO CSize
foreign import ccall "wcsncat" wcsncat :: Ptr CWchar -> Ptr CWchar -> CSize -> IO (Ptr CWchar)
foreign import ccall "wcsncmp" wcsncmp :: Ptr CWchar -> Ptr CWchar -> CSize -> IO CInt
foreign import ccall "wcsncpy" wcsncpy :: Ptr CWchar -> Ptr CWchar -> CSize -> IO (Ptr CWchar)
foreign import ccall "wcspbrk" wcspbrk :: Ptr CWchar -> Ptr CWchar -> IO (Ptr CWchar)
foreign import ccall "wcsrchr" wcsrchr :: Ptr CWchar -> CWchar -> IO (Ptr CWchar)
foreign import ccall "wcsrtombs" wcsrtombs :: CString -> Ptr (Ptr CWchar) -> CSize -> Ptr Mbstate_t -> IO CSize
foreign import ccall "wcsspn" wcsspn :: Ptr CWchar -> Ptr CWchar -> IO CSize
foreign import ccall "wcsstr" wcsstr :: Ptr CWchar -> Ptr CWchar -> IO (Ptr CWchar)
foreign import ccall "wcstod" wcstod :: Ptr CWchar -> Ptr (Ptr CWchar) -> IO CDouble
foreign import ccall "wcstof" wcstof :: Ptr CWchar -> Ptr (Ptr CWchar) -> IO CFloat
foreign import ccall "wcstok" wcstok :: Ptr CWchar -> Ptr CWchar -> Ptr (Ptr CWchar) -> IO (Ptr CWchar)
foreign import ccall "wcstold" wcstold :: Ptr CWchar -> Ptr (Ptr CWchar) -> IO CLDouble
foreign import ccall "wcstoll" wcstoll :: Ptr CWchar -> Ptr (Ptr CWchar) -> CInt -> IO CLLong
foreign import ccall "wcstol" wcstol :: Ptr CWchar -> Ptr (Ptr CWchar) -> CInt -> CLong
foreign import ccall "wcstoull" wcstoull :: Ptr CWchar -> Ptr (Ptr CWchar) -> CInt -> IO CULLong
foreign import ccall "wcstoul" wcstoul :: Ptr CWchar -> Ptr (Ptr CWchar) -> CInt -> IO CULong
foreign import ccall "wcsxfrm" wcsxfrm :: Ptr CWchar -> Ptr CWchar -> CSize -> IO CSize
foreign import ccall "wctob" wctob :: CWint -> IO CInt
foreign import ccall "wmemchr" wmemchr :: Ptr CWchar -> CWchar -> CSize -> IO (Ptr CWchar)
foreign import ccall "wmemcmp" wmemcmp :: Ptr CWchar -> Ptr CWchar -> CSize -> IO CInt
foreign import ccall "wmemcpy" wmemcpy :: Ptr CWchar -> Ptr CWchar -> CSize -> IO (Ptr CWchar)
foreign import ccall "wmemmove" wmemmove :: Ptr CWchar -> Ptr CWchar -> CSize -> IO (Ptr CWchar)
foreign import ccall "wmemset" wmemset :: Ptr CWchar -> CWchar -> CSize -> IO (Ptr CWchar)
type CWctrans = Word32
type CWctype = Word32
foreign import ccall "iswalnum" iswalnum :: CWint -> IO CInt
foreign import ccall "iswalpha" iswalpha :: CWint -> IO CInt
foreign import ccall "iswblank" iswblank :: CWint -> IO CInt
foreign import ccall "iswcntrl" iswcntrl :: CWint -> IO CInt
foreign import ccall "iswctype" iswctype :: CWint -> CWctype -> IO CInt
foreign import ccall "iswdigit" iswdigit :: CWint -> IO CInt
foreign import ccall "iswgraph" iswgraph :: CWint -> IO CInt
foreign import ccall "iswlower" iswlower :: CWint -> IO CInt
foreign import ccall "iswprint" iswprint :: CWint -> IO CInt
foreign import ccall "iswpunct" iswpunct :: CWint -> IO CInt
foreign import ccall "iswspace" iswspace :: CWint -> IO CInt
foreign import ccall "iswupper" iswupper :: CWint -> IO CInt
foreign import ccall "iswxdigit" iswxdigit :: CWint -> IO CInt
foreign import ccall "towctrans" towctrans :: CWint -> CWctrans -> IO CWint
foreign import ccall "towlower" towlower :: CWint -> IO CWint
foreign import ccall "towupper" towupper :: CWint -> IO CWint
foreign import ccall "wctrans" wctrans :: CString -> IO CWctrans
foreign import ccall "wctype" wctype :: CString -> IO CWctype