Caml1999I031,! O|)*UnixLabels%errore8@@%E2BIG @@.unixLabels.mlimm@@A&EACCES @@ n n@@B&EAGAIN@@o  o @@#C%EBADF@@pUWpU^@@,D%EBUSY@@%q&q@@5E&ECHILD@@.r/r@@>F'EDEADLK@@7s8s@@GG$EDOM@@@t ) +At ) 1@@PH&EEXIST@@Iu n pJu n x@@YI&EFAULT@@Rv  Sv  @@bJ%EFBIG@@[w  \w  @@kK%EINTR@@dx  ex  @@tL&EINVAL@@my 0 2ny 0 :@@}M#EIO@@vz ` bwz ` g@@N&EISDIR@@{  {  @@O&EMFILE@@|  |  @@P&EMLINK@@}  }  @@Q,ENAMETOOLONG@@~ 0 2~ 0 @@@R&ENFILE@@ a c a k@@S&ENODEV@@@  @  @@T&ENOENT @@A  A  @@U'ENOEXEC!@@B  B  @@V&ENOLCK"@@C ? AC ? I@@W&ENOMEM#@@D q sD q {@@X&ENOSPC$@@E  E  @@Y&ENOSYS%@@F  F  @@Z'ENOTDIR&@@G  G  @@[)ENOTEMPTY'@@H > @H > K@@\&ENOTTY(@@I q sI q {@@ ]%ENXIO)@@J  J  @@^%EPERM*@@K  K  @@_%EPIPE+@@L$&L$-@@(`&ERANGE,@@!MOQ"MOY@@1a%EROFS-@@*N+N@@:b&ESPIPE.@@3O4O@@Cc%ESRCH/@@<P=P@@Ld%EXDEV0@@EQ FQ'@@Ue+EWOULDBLOCK1@@NRJLORJY@@^f+EINPROGRESS2@@WSXS@@gg(EALREADY3@@`TaT@@ph(ENOTSOCK4@@iUjU@@yi,EDESTADDRREQ5@@rV35sV3C@@j(EMSGSIZE6@@{Woq|Wo{@@k*EPROTOTYPE7@@XX@@l+ENOPROTOOPT8@@YY@@m/EPROTONOSUPPORT9@@ZZ&@@n/ESOCKTNOSUPPORT:@@[IK[I\@@o*EOPNOTSUPP;@@\\@@p,EPFNOSUPPORT<@@]]@@q,EAFNOSUPPORT=@@^^@@r*EADDRINUSE>@@_OQ_O]@@s-EADDRNOTAVAIL?@@``@@t(ENETDOWN@@@aa@@u+ENETUNREACHA@@bb@@v)ENETRESETB@@c(*c(5@@w,ECONNABORTEDC@@dkmdk{@@x*ECONNRESETD@@ee@@ y'ENOBUFSE@@ff@@z'EISCONNF@@ g g'@@{(ENOTCONNG@@hWYhWc@@$|)ESHUTDOWNH@@ii@@-},ETOOMANYREFSI@@&j'j@@6~)ETIMEDOUTJ@@/k0k@@?,ECONNREFUSEDK@@8lCE9lCS@@H@)EHOSTDOWNL@@AmuwBmu@@QA,EHOSTUNREACHM@@JnKn@@ZB%ELOOPN@@SoTo@@cC)EOVERFLOWO@@\p]p@@lD+EUNKNOWNERRP#intA@@@@@lrZ\mrZp@@|E@@A$Unix%error@@@@@@@yl @@@@@A@ *Unix_errorf #exnG@@@@&stringO@@@@@@@@A&_none_@@A@FB@-error_messageg@@@@@@@@@@@@G@1handle_unix_errorh@@!a@!b@@@@ @@@@@444b@@H@+environmenti@$unitF@@@%arrayHK@@@@@@@@@NNNt@@I@2unsafe_environmentj@@@@c@@@@@@@@@$$$Q@@J@&getenvk@s@@@w@@@@@@@@K@-unsafe_getenvl@@@@ @@@ @@ @@@)L@&putenvm@@@@ @@@@ d@@@@@@@@23@@BM@.process_statusn8@@'WEXITED2@@@@@F  G !@@VO)WSIGNALED3@@@@@T!l!nU!l!@@dP(WSTOPPED4@@@@@b!!c!!@@rQ@@A.process_status@@@@@@@m   @@@@|NA@)wait_flago8@@'WNOHANG6@@{#+#/|#+#6@@S)WUNTRACED7@@####@@T@@A)wait_flag@@@@@@@# #  @@A@RA@%execvp$prog@@@$argsӠ@@@@@@!a@@@@@@$ $ $ $;@@U@&execveq$prog2@@@$args>@@@@@@#envK@@@@@@ !a@!@@"@@#@@$@%H%H%H%@@V@&execvpr$proga@@@%$args$m@@@&@@@'!a@(@@)@@*@%%%&1@@W@'execvpes$prog@@@+$argsF@@@,@@@-#envS@@@.@@@/!a@0@@1@@2@@3@0&&1&&@@@X@$forkt@q@@@4@@@5@@6@C''D''.@@SY@$waitu@@@@7@@@9%@@@8@@:@@;@^( ( _( (0@@nZ@'waitpidv$mode$listI@@@<@@@=@@@@>@@@@*@@@?@@A@@B@@C@((()@@[@&systemw@@@@D<@@@E@@F@***+@@\@%_exitx@>@@@G!a@H@@I@ -- --4@@]@&getpidy@@@@JU@@@K@@L@0000@@^@'getppidz@@@@Mh@@@N@@O@ 1"1" 1"1;@@_@$nice{@w@@@P{@@@Q@@R@&11&11@@`@*file_descr|8@@@A~*file_descr@@@S@@@@022022@@@@aA@%stdin}@@@T@3333333@@b@&stdout~ @@@U@63_3_63_3v@@c@&stderr@@@V@933933@@*d@)open_flag8@@(O_RDONLYI@@)=4 4 *=4 4@@9f(O_WRONLYJ@@2>4A4C3>4A4M@@Bg&O_RDWRK@@;?4y4{<?4y4@@Kh*O_NONBLOCKL@@D@44E@44@@Ti(O_APPENDM@@MA45NA45 @@]j'O_CREATN@@VB5557WB555@@@fk'O_TRUNCO@@_C5r5t`C5r5}@@ol&O_EXCLP@@hD55iD55@@xm(O_NOCTTYQ@@qE55rE55@@n'O_DSYNCR@@zF6?6A{F6?6J@@o&O_SYNCS@@H66H66@@p'O_RSYNCT@@J7U7WJ7U7`@@q.O_SHARE_DELETEU@@L77L77@@r)O_CLOEXECV@@N8^8`N8^8k@@s*O_KEEPEXECW@@R9c9eR9c9q@@t@@A;)open_flag@@@W@@@@<33 @@A@eA@)file_perm8@@@AU@@@X@@@@W::W::"@@A@uA@(openfile@?@@@Y$modeg@@@Z@@@[$perm+@@@\@@@]@@^@@_@@`@[::[::@@v@%close@@@@a*@@@b@@c@`;;`;;@@w@%fsync@@@@d<@@@e@@f@ c;; c;;@@x@$read@@@@g#buf%bytesC@@@h#pos@@@i#len@@@j@@@k@@l@@m@@n@@o@6h<6<67h<6>t>>@@{@/write_substring@@@@#buf@@@#pos>@@@#lenF@@@J@@@@@@@@@@@@y??y??@@|@6single_write_substring@@@@#buf;@@@#posh@@@#lenp@@@t@@@@@@@@@@@@~@@@@@]@@@}@3in_channel_of_descr@@@@&Stdlib*in_channel@@@@@@AIAIAIA{@@~@4out_channel_of_descr@@@@+out_channel@@@@@@FFFF@@@3descr_of_in_channel@&*in_channel@@@@@@@@@JJJJ@@*@4descr_of_out_channel@9+out_channel@@@,@@@@@@-KK.KKB@@=@,seek_command8@@(SEEK_SETf@@<KK=KK@@L(SEEK_CURg@@EL L"FL L,@@U(SEEK_ENDh@@NLiLkOLiLu@@^@@A,seek_command@@@@@@@YKK @@A@hA@%lseek@e@@@@@@@$mode@@@@@@@@@@@@@@xLLyLM@@@(truncate@@@@#len%@@@@@@@@@@@MMMM@@@)ftruncate@@@@#len?@@@@@@@@@@@MMMN@@@)file_kind8@@%S_REGm@@NNNN@@%S_DIRn@@NNNN@@%S_CHRo@@OOOO@@%S_BLKp@@OMOOOMOV@@%S_LNKq@@OOOO@@&S_FIFOr@@OOOO@@&S_SOCKs@@OOOO@@@@A)file_kind@@@@@@@NN @@A@ A@%stats8@@&st_devu@@@@P1P5P1PB@@&st_inov@@@@PfPjPfPw@@*'st_kindw@r@@@&PP'PP@@6'st_permx@O@@@1PP2PP@@A(st_nlinky@@@@=QQ >QQ@@M&st_uidz@@@@IQ>QBJQ>QO@@Y&st_gid{@@@@UQzQ~VQzQ@@e'st_rdev|@@@@aQQbQQ@@q'st_size}@@@@mRRnRR@@}(st_atime~@%floatD@@@{R6R:|R6RK@@(st_mtime@@@@RnRrRnR@@(st_ctime@@@@RRRR@@@@A'%stats@@@@@@@PPRR@@@@A@$stat@@@@@@@@@@S&S&S&S@@@@%lstat@1@@@@@@@@@StStStS@@@%fstat@@@@$@@@@@@TTTT @@@&isatty@@@@$boolE@@@@@@TvTvTvT@@@Ӡ)LargeFile@%lseek=@@@@@%int64M@@@$mode@@@ @@@@@@@@@@ UKUO UKU@@ @(truncate>@@@@#len$@@@\@@@@@@@@ * UU + UU@@ :@)ftruncate?@7@@@#len>@@@v@@@@@@@@ DUU EUV$@@ T@%stats@8@@&st_dev@@@@ VVjVr WVjV@@ f&st_ino@@@@ bVV cVV@@ r'st_kind@H@@@ mVV nVV@@ }'st_perm@@@@ xWW yWW3@@ (st_nlink@@@@ WPWX WPWg@@ &st_uid@&@@@ WW WW@@ &st_gid@2@@@ WW WW@@ 'st_rdev@>@@@߰ XX XX)@@ 'st_size@@@@ް XZXb XZXr@@ (st_atime@G@@@ݰ XX XX@@ (st_mtime@S@@@ܰ XX XX@@ (st_ctime@_@@@۰ YY YY*@@ @@Am)LargeFile%stats@@@@@@@ VBVF YTY[@@@@ A@$statA@e@@@@@@@@@ Y\Y` Y\Yz@@ @%lstatB@x@@@@@@@@@  Y{Y  Y{Y@@ @%fstatC@@@@$@@@@@@ !YY !YY@@ +@@@ U2U2 "YY@ /@@(map_file@,@@@#pos&optionJ9@@@@@@$kindU(Bigarray$kind!a@֠!b@@@@&layoutk(Bigarray&layout!c@@@@&shared@@@$dims @@@@@@(Bigarray(Genarray!t:6&@@@@@@@@@@@@@@@@ 0[[ 5\\@@ @&unlink@@@@@@@@@@ hee hee@@ @&rename#src@@@#dst"@@@@@@@@@@@ rff rff@@ @$link&follow@@@@@@#srcC@@@#dstK@@@@@@@@@@@@@ zhh {hWh@@ @(realpath@^@@@b@@@@@@ jj jj@@ @1access_permission8@@$R_OK@@ kk kk@@ $W_OK@@ ll  ll&@@ $X_OK@@ lVlX lVl^@@ "$F_OK@@ ll ll@@ +@@A1access_permission@@@@@@@ &kk @@A@ 5A@%chmod@@@@$permY@@@q@@@@@@@@ ?ll @lm@@ O@&fchmod@L@@@$permr@@@@@@@@@@@ XmKmK YmKm|@@ h@%chown@@@@#uid @@@#gid @@@@@@@@@@@@@ {mm |mn@@ @&fchown@@@@#uid '@@@#gid /@@@@@@@@@@@@ @ nnnn nnn@@ @%umask@ B@@@  F@@@ @@ @ o o  o o @@ @&access@ 0@@@ $permX@@@@@@ @@@@@@@@ oo oo@@ @#dup'cloexec@@@@@@@@@@@@@@@@@@ pp qqA@@ @$dup2'cloexecɠ@@@@@@#src@@@#dst@@@ F@@@@@@@@@ @ qq r3rf@@ $@,set_nonblock@!@@@! X@@@"@@#@ &ss 'ss9@@ 6@.clear_nonblock@3@@@$ j@@@%@@&@ 8tt 9tt@@ H@1set_close_on_exec@E@@@' |@@@(@@)@ Ju$u$ Ku$uN@@ Z@3clear_close_on_exec@W@@@* @@@+@@,@ \ ]@@ l@%mkdir@ @@@-$perm@@@. @@@/@@0@@1@ vvv wv@@ @%rmdir@ @@@2 @@@3@@4@  @@ @%chdir@ @@@5 @@@6@@7@ '' 'A@@ @&getcwd@ @@@8 @@@9@@:@ pp p@@ @&chroot@ /@@@; @@@<@@=@  @@ @*dir_handle8@@@A [*dir_handle@@@>@@@@ !55 !5V@@@@ A@'opendir@ R@@@?@@@@@@A@ $ $@@ @'readdir@@@@B h@@@C@@D@ ' '@@ @)rewinddir@!@@@E ;@@@F@@G@ +ss +s@@ @(closedir@3@@@H M@@@I@@J@ . .@@ +@$pipe'cloexecI@@@K@@@L@ h@@@M;@@@O?@@@N@@P@@Q@@R@ @6HH A7@@ P@&mkfifo@ @@@S$permt@@@T @@@U@@V@@W@ Z> [>@@ j@.create_process$prog @@@X$args  @@@Y@@@Z%stdin~@@@[&stdout@@@\&stderr@@@] '@@@^@@_@@`@@a@@b@@c@ G I!@@ @2create_process_env$prog @@@d$args ֠ @@@e@@@f#env  ,@@@g@@@h%stdin@@@i&stdout@@@j&stderr@@@k k@@@l@@m@@n@@o@@p@@q@@r@ W Y-^@@ @/open_process_in@ U@@@s*in_channel@@@t@@u@ _ _G@@ @0open_process_out@ i@@@v +out_channel@@@w@@x@ l l@@ @,open_process@ }@@@y#*in_channel@@@{)+out_channel@@@z@@|@@}@ww@@*@1open_process_full@ @@@~#env ] @@@@@@M*in_channel@@@S+out_channel@@@Y*in_channel@@@@@@@@@@JK@@Z@4open_process_args_in@ @@@@  @@@@@@x*in_channel@@@@@@@@ij@@y@5open_process_args_out@ @@@@  @@@@@@+out_channel@@@@@@@@@@@1open_process_args@ @@@@ ɠ @@@@@@*in_channel@@@+out_channel@@@@@@@@@@@@@6open_process_args_full@ 0@@@@  :@@@@@@@  E@@@@@@*in_channel@@@+out_channel@@@*in_channel@@@@@@@@@@@@^@@@.process_in_pid@*in_channel@@@ @@@@@@@@ @/process_out_pid@+out_channel@@@ @@@@@@===e@@!@+process_pid@3*in_channel@@@9+out_channel@@@@@ @@@@@@./ @@>@0process_full_pid@P*in_channel@@@V+out_channel@@@\*in_channel@@@@@ @@@@@@Q||R|@@a@0close_process_in@p*in_channel@@@ @@@@@@d88e8k@@t@1close_process_out@+out_channel@@@ @@@@@@wx-@@@-close_process@*in_channel@@@+out_channel@@@@@ 6@@@@@@@@@2close_process_full@*in_channel@@@Š+out_channel@@@Ġ*in_channel@@@@@ X@@@@@@@@@'symlink&to_dir@@@@@@#src C@@@#dst K@@@ @@@@@@@@@@@@@+has_symlink@ @@@ @@@@@@@@@(readlink@ q@@@ u@@@@@@   @@@&select$read  @@@@@@%write  #@@@@@@&except  /@@@@@@'timeout@@@ Ѡ B@@@@@@ ڠ K@@@@@@  T@@@@@@@@@@@@@@@@@VPPW@@f@,lock_command8@@'F_ULOCKO@@e#f#@@u&F_LOCKP@@n$o$@@~'F_TLOCKQ@@w%x%@@&F_TESTR@@&\^&\f@@'F_RLOCKS@@''@@(F_TRLOCKT@@((@@@@A&,lock_command@@@@@@@"mm @@A@A@%lockf@ @@@$modeU@@@#lenP@@@ @@@@@@@@@@+XX+X@@@$kill#pide@@@&signalm@@@ @@@@@@@@QccQc@@@3sigprocmask_command8@@+SIG_SETMASKX@@XX\XXg@@)SIG_BLOCKY@@YhjYhu@@+SIG_UNBLOCKZ@@ZvxZv@@ @@A3sigprocmask_command@@@@@@@W"" @@A@A@+sigprocmask$mode5@@@@ @@@@@@ @@@@@@@@@@@+\,\@@;@*sigpending@l@@@ Ϡ@@@@@@@@@CmppDmp@@S@*sigsuspend@ @@@@@@@@@@@@[s((\s(I@@k@%pause@@@@@@@@@@n{jjo{j@@~@-process_times8@@)tms_utime`@ @@@ ]a]s@@)tms_stimea@ @@@ @@*tms_cutimeb@ @@@ @@*tms_cstimec@ +@@@ ,@@@AA8-process_times@@@ @@@@33[^@@@@A@"tm8@@&tm_sece@W@@@@@&tm_minf@c@@@@@'tm_hourg@o@@@%@@'tm_mdayh@{@@@FJFX@@&tm_moni@@@@@@ 'tm_yearj@@@@@@  'tm_wdayk@@@@  @@ 'tm_ydayl@@@@/3/A@@% (tm_isdstm@ ;@@@!im"i}@@1 @@A"tm@@@@@@@,-@@@@<A@$time@m@@@ @@@@@@?@ @@O@,gettimeofday@@@@ @@@@@@R__S_@@b@&gmtime@ @@@@@@@@ @ef@@u@)localtime@ @@@!@@@"@@#@wx@@@&mktime@!@@@$ @@@&,@@@%@@'@@(@@@@%alarm@5@@@)9@@@*@@+@@@@%sleep@H@@@,@@@-@@.@[[[r@@@&sleepf@ L@@@/@@@0@@1@ūūū@@@%times@ @@@2g@@@3@@4@LLLm@@@&utimes@\@@@5&access z@@@6%modif @@@71@@@8@@9@@:@@;@2@@@.interval_timer8@@+ITIMER_REALy@@lpl{@@.ITIMER_VIRTUALz@@@@'+ITIMER_PROF{@@ JL!JY@@0@@A.interval_timer@@@<@@@@+@@ @@A@:A@5interval_timer_status8@@+it_interval}@ @@@><uy=uʍ@@L(it_value~@ @@@=HʤʨIʤʹ@@X@AA5interval_timer_status@@@?@@@@S;;T@@@@cA@)getitimer@\@@@@5@@@A@@B@f''g'^@@v@)setitimer@@@@C@@@@D@@@E@@F@@G@|}@@ @&getuid@@@@H%@@@I@@J@...F@@!@'geteuid@@@@K8@@@L@@M@ΩΩΩ@@"@&setuid@G@@@N@@@O@@P@***B@@#@&getgid@@@@Q^@@@R@@S@ϮϮϮ@@$@'getegid@ @@@Tq@@@U@@V@ ** *C@@%@&setgid@@@@W @@@X@@Y@ЬЬЬ@@&@)getgroups@/@@@Z-@@@[@@@\@@]@222S@@'@)setgroups@A@@@^@@@_P@@@`@@a@@@.(@*initgroups@@@@b@@@@ci@@@d@@e@@f@7#ҚҚ8#Қ@@G)@,passwd_entry8@@'pw_name@@@@mI,J,@@Y+)pw_passwd@@@@lU- V-@@e,&pw_uid@@@@ka. $b. 1@@q-&pw_gid@@@@jm/26n/2C@@}.(pw_gecos@@@@iy0DHz0DZ@@/&pw_dir@@@@h1[_1[o@@0(pw_shell@@@@g2pt2pԅ@@1@@A%,passwd_entry@@@n@@@@+3Ԇԉ@@@@*A@+group_entry8@@'gr_name@@@@s77@@3)gr_passwd@+@@@r88@@4&gr_gid@\@@@q99&@@5&gr_mem@G@@@o@@@p:'+:'@@@6@@Ak+group_entry@@@t@@@@6;AD@@@@2A@(getlogin@#@@@uf@@@v@@w@>||>|ՙ@@7@(getpwnam@u@@@x@@@y@@z@A A@@8@(getgrnam@@@@{x@@@|@@}@E{{E{֟@@+9@(getpwuid@@@@~&@@@@@@-J.J<@@=:@(getgrgid@@@@%@@@@@@?O׻׻@O׻@@O;@)inet_addr8@@@A)inet_addr@@@@@@@OX||PX|؛@@@@_@-inet_addr_any@@@@h44h4Q@@?@2inet_addr_loopback+@@@@ll@@@@.inet6_addr_any7@@@@oGGoGe@@A@3inet6_addr_loopbackC@@@@ss@@B@-is_inet6_addr@Q@@@ @@@@@@vVVvV{@@C@-socket_domain8@@'PF_UNIX@@~ ~@@E'PF_INET@@:<:E@@F(PF_INET6@@xzxބ@@G@@Ak-socket_domain@@@@@@@} @@A@DA@+socket_type8@@+SOCK_STREAM@@ߒߖߒߡ@@I*SOCK_DGRAM@@@@ J(SOCK_RAW@@ @@K.SOCK_SEQPACKET@@ 02 0B@@L@@A+socket_type@@@@@@@ll @@A@%HA@(sockaddr8@@)ADDR_UNIX@@@@@)y}*y@@9N)ADDR_INET@@@@@@@@;<@@KO@@A(sockaddr@@@@@@@FYY @@@@UMA@&socket'cloexec ! s@@@@@@&domain@@@$kind@@@(protocol@@@t@@@@@@@@@@@@uv"l@@P@2domain_of_sockaddr@h@@@&@@@@@@ttt@@Q@*socketpair'cloexec c @@@@@@&domainB@@@$kindA@@@(protocolH@@@@@@@@@@@@@@@@@@@@w@@R@&accept'cloexec  @@@@@@@@@@@@@]@@@@@@@@@@MM@@S@$bind@@@@$addrr@@@+@@@@@@@@@@ T@'connect@@@@$addr@@@D@@@@@@@@L@@"U@&listen@@@@#max@@@^@@@@@@@@,uu-u@@<V@0shutdown_command8@@0SHUTDOWN_RECEIVE@@;NR<Nb@@KX-SHUTDOWN_SEND@@DE@@TY,SHUTDOWN_ALL@@MN@@]Z@@A0shutdown_command@@@@@@@X @@A@gWA@(shutdown@d@@@$mode:@@@@@@@@@@@q""r"\@@[@+getsockname @~@@@@@@@@@@@\@+getpeername @@@@@@@@@@@@]@(msg_flag 8@@'MSG_OOB@@hlhs@@_-MSG_DONTROUTE@@tvt@@`(MSG_PEEK@@@@a@@AH(msg_flag@@@@@@@HH @@A@^A@$recv @@@@#buf@@@#posr@@@#lenz@@@$mode}V@@@@@@@@@@@@@@@@@@@@2@@b@(recvfrom @@@@#buf@@@#pos@@@#len@@@$mode7@@@@@@@@@@@@@@@@@@@@@@@@@2aa3@@Bc@$send@?@@@#buf(@@@#pos@@@#len@@@$modet@@@@@@@@@@@@@@@@@@@@hiT@@xd@.send_substring@u@@@#buf@@@#pos@@@#len$@@@$mode'@@@@@@4@@@@@@@@@@@@@@@@e@&sendto@@@@#buf@@@#posR@@@ #lenZ@@@ $mode]@@@ @@@ $addrT@@@ q@@@@@@@@@@@@@@@@MM@@f@0sendto_substring@@@@#bufb@@@#pos@@@#len@@@$mode@@@@@@@@@@@@@@@@@@@@@ @@!@@"@H\@@&g@2socket_bool_option8@@(SO_DEBUGɐ@@%&'@@5i,SO_BROADCASTʐ@@.RT/Rb@@>j,SO_REUSEADDRː@@78@@Gk,SO_KEEPALIVE̐@@@A@@Pl,SO_DONTROUTE͐@@IJ@@Ym,SO_OOBINLINEΐ@@REGSEU@@bn-SO_ACCEPTCONNϐ@@[~\~@@ko+TCP_NODELAYА@@de@@tp)IPV6_ONLYѐ@@m   n  @@}q,SO_REUSEPORTҐ@@v TVw Td@@r@@A 2socket_bool_option@@@#@@@@ @@A@hA@1socket_int_option8@@)SO_SNDBUFԐ@@jnjw@@t)SO_RCVBUFՐ@@@@u(SO_ERROR֐@@@@v'SO_TYPEא@@  @@w+SO_RCVLOWATؐ@@;=;J@@x+SO_SNDLOWATِ@@@@y@@AP1socket_int_option@@@$@@@@88 @@A@sA@4socket_optint_option8@@)SO_LINGERې@@@@{@@Ai4socket_optint_option@@@%@@@@uu @@A@zA@3socket_float_option8@@+SO_RCVTIMEOݐ@@#NR#N]@@}+SO_SNDTIMEOސ@@$$@@~@@A3socket_float_option@@@&@@@@" @@A@|A@*getsockopt@@@@'@@@@(3@@@)@@*@@+@**@@)@*setsockopt@&@@@,@@@@-@L@@@.h@@@/@@0@@1@@2@6.557.5v@@F@.getsockopt_int@C@@@3@@@@4@@@5@@6@@7@N1O1@@^@.setsockopt_int@[@@@8@@@@9@@@@:@@@;@@<@@=@@>@k488l48{@@{@1getsockopt_optint@x@@@?@@@@@N@@@A@@@B@@C@@D@77@@@1setsockopt_optint@@@@E@@@@F@l;@@@G@@@H@@@I@@J@@K@@L@;^^<v@@@0getsockopt_float@@@@M@@@@NI@@@O@@P@@Q@@  @ L@@@0setsockopt_float@@@@R@@@@S@b@@@T@@@U@@V@@W@@X@DD@@@0getsockopt_error@@@@Yk@@@Z@@@[@@\@HSSHS@@@/open_connection@@@@]*in_channel@@@_ +out_channel@@@^@@`@@a@OOK@@!@3shutdown_connection @0*in_channel@@@bW@@@c@@d@%]&]@@5@0establish_server!@@F*in_channel@@@e@M+out_channel@@@ft@@@g@@h@@i$addr@@@j@@@k@@l@@m@MeNfX@@]@*host_entry"8@@&h_name@@@@s_z`z@@o)h_aliases@@@@q@@@rp{q{@@*h_addrtype@@@@p{|||@@+h_addr_list@)@@@n@@@o}}@@@@A*host_entry@@@t@@@@yff~@@@@A@.protocol_entry#8@@&p_name@@@@xeiey@@)p_aliases@)@@@v@@@wz~z@@'p_proto@[@@@u@@@@AY.protocol_entry@@@y@@@@99@@@@A@-service_entry$8@@&s_name@S@@@~&@@)s_aliases@c@@@|@@@}'+'D@@&s_port@@@@{EIEV@@'s_proto@|@@@z W[ Wk@@@@A-service_entry@@@@@@@lo@@@@&A@+gethostname%@W@@@@@@@@@)*@@9@-gethostbyname&@@@@@@@@@@<= @@L@-gethostbyaddr'@@@@@@@@@@M  N  @@]@.getprotobyname(@@@@@@@@@@`  a  B@@p@0getprotobynumber)@@@@@@@@@@r  s  @@@-getservbyname*@@@@(protocol@@@@@@@@@@@ K K K @@@-getservbyport+@2@@@(protocol@@@@@@@@@@@    ,@@@)addr_info,8@@)ai_family@W@@@    @@+ai_socktype@Z@@@    @@+ai_protocol@e@@@ 8 < 8 N@@'ai_addr@W@@@ ~  ~ @@,ai_canonname@W@@@    @@@@Az)addr_info@@@@@@@    @@@@A@2getaddrinfo_option-8@@)AI_FAMILY@@@@@imi@@+AI_SOCKTYPE@@@@@@@!+AI_PROTOCOL @@@@@ @@/.AI_NUMERICHOST @@(MO)M_@@8,AI_CANONNAME @@12@@A*AI_PASSIVE @@:df;dr@@J@@A2getaddrinfo_option@@@@@@@E55 @@@@TA@+getaddrinfo.@@@@@@@@@k@@@@@@@@@@@@@@@@@@@mn'f@@}@)name_info/8@@+ni_hostname@@@@hlh@@*ni_service@@@@@@@@A)name_info@@@@@@@FF@@@@A@2getnameinfo_option08@@)NI_NOFQDN@@y}y@@.NI_NUMERICHOST@@@@+NI_NAMEREQD@@ @@.NI_NUMERICSERV@@ACAS@@(NI_DGRAM@@@@@@A]2getnameinfo_option@@@@@@@EE @@A@A@+getnameinfo1@^@@@@xN@@@@@@|@@@@@@@@###e@@@+terminal_io28@@(c_ignbrkA@@@۰@@(c_brkintA(@@@ڰ@@(c_ignparA4@@@ٰ484P@@*(c_parmrkA@@@@ذ&'@@6'c_inpckAL@@@װ23@@B(c_istripAX@@@ְ>?@@N'c_inlcrAd@@@հJCGKC^@@Z'c_igncr Ap@@@԰VW@@f'c_icrnl!A|@@@Ӱbc@@r&c_ixon"A@@@Ұno@@~ 'c_ixoff#A@@@ѰzAE{A\@@à'c_opost$A@@@а@@Ġ'c_obaud%A(@@@ϰ@@Š'c_ibaud&A4@@@ΰRVRl@@Ơ'c_csize'A@@@@Ͱ@@Ǡ(c_cstopb(AL@@@̰@@Ƞ'c_cread)A@@@˰,@@ɠ(c_parenb*A@@@ʰLPLh@@ʠ(c_parodd+A@@@ɰ@@ˠ'c_hupcl,A@@@Ȱ  @@̠(c_clocal-A @@@ǰ   "   :@@͠&c_isig.A@@@ư  u y  u @@Π(c_icanon/A$@@@Ű        @@Ϡ(c_noflsh0A0@@@İ!>!B!>!Z@@&Р&c_echo1A<@@@ð"!!#!!@@2Ѡ'c_echoe2AH@@@°.!!/!!@@>Ҡ'c_echok3AT@@@:"";""/@@JӠ(c_echonl4A`@@@F"`"dG"`"|@@VԠ'c_vintr5A$charB@@@T""U""@@dՠ'c_vquit6A@@@`##a##,@@p֠(c_verase7A@@@l#W#[m#W#s@@|נ'c_vkill8A&@@@x##y##@@ؠ&c_veof9A2@@@###$ @@٠&c_veol:A>@@@$=$A$=$W@@ڠ&c_vmin;A2@@@$$$$@@۠'c_vtime@@@%%#%%9@@ܠ(c_vstart=Ab@@@%g%k%g%@@ݠ'c_vstop>An@@@%%%%@@@@AT+terminal_io@@@@@@@ii %%@@@@A@)tcgetattr3@@@@@@@@@@"%%"%&"@@@,setattr_when48@@'TCSANOWA@@)&&)&&@@)TCSADRAINB@@*&&*&&@@ )TCSAFLUSHC@@+&&+&&@@ @@A,setattr_when@@@@@@@ (&& @@A@ A@)tcsetattr5@@@@$mode:@@@@G@@@Y@@@@@@@@@@ '-&& (-&'8@@ 7@+tcsendbreak6@4@@@(duration@@@s@@@@@@@@ A9)) B9))Q@@ Q@'tcdrain7@N@@@@@@@@@ S@* *  T@* *@@@ c@+flush_queue88@@(TCIFLUSHH@@ bG** cG**@@ r(TCOFLUSHI@@ kH** lH*+@@ {)TCIOFLUSHJ@@ tI++ uI++@@ @@A+flush_queue@@@@@@@ F** @@A@ A@'tcflush9@@@@$mode:@@@@@@@@@@@ K++ K++H@@ @+flow_action:8@@&TCOOFFM@@ U,, U,,@@ %TCOONN@@ V,, V,,@@ &TCIOFFO@@ W,, W,,@@ %TCIONP@@ X,, X,,@@ @@AV+flow_action@@@@@@@ T,, @@A@ A@&tcflow;@@@@$modeC@@@@@@@@@@@ Z,, Z,-@@ @&setsid<@'@@@@@@@@@ c.n.n c.n.@@! @@q[*UnixLabels0 dʫek|ߦ$Unix0sAmў/Stdlib__Complex0EU!|u]h.50Stdlib__Bigarray0J Zf;RӠ&Stdlib0yӶ~*8CamlinternalFormatBasics0cEXy@@@@@@@LV&ENOLCK"@@=C ? A>C ? I@搠4 No locks available JC ? WKC ? p@@@@@@@bW&ENOMEM#@@SD q sTD q {@3 Not enough memory `D q aD q @@@@@@@xX&ENOSPC$@@iE  jE  @9 No space left on device vE  wE  @@@@@@@Y&ENOSYS%@@F  F  @(8 Function not supported F  F  @@@@@@@Z'ENOTDIR&@@G  G  @>1 Not a directory G  'G  =@@@@@@@[)ENOTEMPTY'@@H > @H > K@T5 Directory not empty H > VH > p@@@@@@@\&ENOTTY(@@I q sI q {@j % Inappropriate I/O control operation I q I q @@@@@@@]%ENXIO)@@J  J  @; No such device or address J  J  @@@@@@@^%EPERM*@@K  K  @9 Operation not permitted K K #@@@@@@@_%EPIPE+@@L$&L$-@- Broken pipe L$<L$N@@@@@@@(`&ERANGE,@@MOQMOY@2 Result too large &MOg'MO~@@@@@@@>a%EROFS-@@/N0N@ؐ7 Read-only file system <N=N@@@@@@@Tb&ESPIPE.@@EOFO@= Invalid seek e.g. on a pipe ROSO@@@@@@@jc%ESRCH/@@[P\P@1 No such process hPiP@@@@@@@d%EXDEV0@@qQ rQ'@. Invalid link ~Q6QI@@@@@@@e+EWOULDBLOCK1@@RJLRJY@07 Operation would block RJbRJ~@@@@@@@f+EINPROGRESS2@@SS@F; Operation now in progress SS@@@@@@@g(EALREADY3@@TT@\? Operation already in progress TT@@@@@@@h(ENOTSOCK4@@UU@r Socket operation on non-socket U U2@@@@@@@i,EDESTADDRREQ5@@V35V3C@> Destination address required V3KV3n@@@@@@@j(EMSGSIZE6@@WoqWo{@2 Message too long WoWo@@@@@@@k*EPROTOTYPE7@@ X X@ Protocol wrong type for socket XX@@@@@@@0l+ENOPROTOOPT8@@!Y"Y@ʐ8 Protocol not available .Y/Y@@@@@@@Fm/EPROTONOSUPPORT9@@7Z8Z&@8 Protocol not supported DZ+EZH@@@@@@@\n/ESOCKTNOSUPPORT:@@M[IKN[I\@; Socket type not supported Z[Ia[[I@@@@@@@ro*EOPNOTSUPP;@@c\d\@ # Operation not supported on socket p\q\@@@@@@@p,EPFNOSUPPORT<@@y]z]@"? Protocol family not supported ]]@@@@@@@q,EAFNOSUPPORT=@@^^@8 1 Address family not supported by protocol family ^^N@@@@@@@r*EADDRINUSE>@@_OQ_O]@N8 Address already in use _Og_O@@@@@@@s-EADDRNOTAVAIL?@@``@d Can't assign requested address ``@@@@@@@t(ENETDOWN@@@aa@z1 Network is down aa@@@@@@@u+ENETUNREACHA@@bb@8 Network is unreachable b b'@@@@@@@ v)ENETRESETB@@c(*c(5@ % Network dropped connection on reset  c(@ c(j@@@@@@@"w,ECONNABORTEDC@@dkmdk{@ " Software caused connection abort  dk!dk@@@@@@@8x*ECONNRESETD@@)e*e@Ґ: Connection reset by peer 6e7e@@@@@@@Ny'ENOBUFSE@@?f@f@萠; No buffer space available LfMf@@@@@@@dz'EISCONNF@@UgVg'@= Socket is already connected bg4cgV@@@@@@@z{(ENOTCONNG@@khWYlhWc@9 Socket is not connected xhWoyhW@@@@@@@|)ESHUTDOWNH@@ii@* " Can't send after socket shutdown ii@@@@@@@},ETOOMANYREFSI@@jj@@ # Too many references: can't splice jj@@@@@@@~)ETIMEDOUTJ@@kk@V6 Connection timed out k'kB@@@@@@@,ECONNREFUSEDK@@lCElCS@l4 Connection refused lC[lCt@@@@@@@@)EHOSTDOWNL@@muwmu@. Host is down mumu@@@@@@@A,EHOSTUNREACHM@@nn@2 No route to host nn@@@@@@@B%ELOOPN@@oo@ # Too many levels of symbolic links oo@@@@@@@*C)EOVERFLOWO@@pp@Đ ) File size or position not representable (p*)pX@@@@@@@@D+EUNKNOWNERRP@@@@@6rZ\7rZp@ߐ/ Unknown error CrZrDrZ@@@@@@@[E@@A$Unix%error@@@ @@@@Pl@ The type of error codes. Errors defined in the POSIX standard and additional errors from UNIX98 and BSD. All other errors are mapped to EUNKNOWNERR. \s]w)+@@@@@@@@@t@@  @@@@ in@@@@oo @@@@ܠܰupUY@@@@ڠ̠̰{q@@@@ʠr@@@@s@@@@t ) -@@@@u n r@@@@||v  z@@@@}zllw  j@@@@mj\\x  Z@@@@]ZLLy 0 4J@@@@MJ<<z ` d:@@@@=:,,{  *@@@@-*|  @@@@  }   @@@@  ~ 0 4@@@@ a e@@@@ܠܰ@  @@@@ڠ̠̰A  @@@@ʠB  @@@@C ? C@@@@D q u@@@@E  @@@@||F  z@@@@}zllG  j@@@@mj\\H > BZ@@@@]ZLL I q uJ@@@@MJ<<J  :@@@@=:,,K  *@@@@-*L$(@@@@  #MOS @@@@  )N@@@@/O@@@@ܠܰ5P@@@@ڠ̠̰;Q"@@@@ʠARJN@@@@GS@@@@MT@@@@SU@@@@||YV37z@@@@}zll_Wosj@@@@mj\\eXZ@@@@]ZLLkYJ@@@@MJ<<qZ:@@@@=:,,w[IM*@@@@-*}\@@@@  ] @@@@  ^@@@@_OS@@@@ܠܰ`@@@@ڠ̠̰a@@@@ʠb@@@@c(,@@@@dko@@@@e@@@@||fz@@@@}zllg j@@@@mj\\hW[Z@@@@]ZLLiJ@@@@MJ<<j:@@@@=:,,k*@@@@-*lCG@@@@  muy @@@@  n@@@@o@@@@ܠܰp@@@@ڠ̠̰rZ^rZi@@гΠ#int rZm@@0        @ 8@@@A@@B@ B@@@@@@@@A @@@@@Aгˠ$Unix˰ l l@@@@@ @*Unix_error)B &z.8 'z.B@ x@@@@ @@@ @@@ @@A :z.. ;z.]@㐠 r Raised by the system calls below when an error is encountered. The first component is the error code; the second component is the function name; the third component is the string parameter to the function, if it has one, or the empty string otherwise. {!UnixLabels.Unix_error} and {!Unix.Unix_error} are the same, and catching one will catch the other.  G{^^ H@@@@@@@ _F@г"%error Sz.F Tz.K@@*0 R Q Q R R R R R@ Q@A@@г)&string _z.N `z.T@@1 @@г.&string iz.W/@@50@@@@2/ w@21@-error_message* t u@б@г2%error  @@ @@@ 0        @0d^@A@@г렐&string  @@ @@@ @@@@@ @@@  @A 2 Return a string describing the given error code.   2@@@@@@@ G@@%1handle_unix_error+ 48 4I@б@б@А!a@ C@ 0        @<Q*@A 4M 4O@@А!b@ C@   4S 4U@@@ @@ @@б@А!a 4Z 4\@@А!b 4` 4b@@@(@@ # @@@@@ & 4L@@@ 44 @ [handle_unix_error f x] applies [f] to [x] and returns the result. If the exception {!Unix_error} is raised, it prints a message describing the error and exits with code 2.  cc @@@@@@@ H@@: ' {1 Access to the process environment}   K@@@@@@0        @J]#@A+environment, NR N]@б@г v$unit N` Nd@@ @@@ @@г %array *No +Nt@г &string 4Nh 5Nn@@ @@@ 1@@@@@@ 6 @@@"@@ 9%@@@ DNN@쐠 Return the process environment, as an array of strings with the format ``variable=value''. The returned array is empty if the process has special privileges.  Puu Q"@@@@@@@ hI@)@L2unsafe_environment- \$( ]$:@б@г $unit g$= h$A@@ @@@ 0 i h h i i i i i@e`,@A@@г N%array v$L w$Q@г ݠ&string $E $K@@ @@@ @@@@@@  @@@$@@ !'@@@ $$@ 8 ) Return the process environment, as an array of strings with the format ``variable=value''. Unlike {!environment}, this function returns a populated array even if the process has special privileges. See the documentation for {!unsafe_getenv} for more details. @since 4.12.0  RR l@@@@@@@ J@)@4&getenv.  @б@г &string  @@ @@@ 0        @Mb,@A@@г &string  @@ @@@ @@@@@ @@@  @ u Return the value associated to a variable in the process environment, unless the process has special privileges. @raise Not_found if the variable is unbound or the process has special privileges. This function is identical to {!Sys.getenv}.   r@@@@@@@ K@@%-unsafe_getenv/  @б@г M&string  @@ @@@ 0        @>S,@A@@г \&string  @@ @@@ @@@@@ @@@  @  Return the value associated to a variable in the process environment. Unlike {!getenv}, this function returns the value even if the process has special privileges. It is considered unsafe because the programmer of a setuid or setgid program must be careful to avoid using maliciously crafted environment variables in the search path for executables, the locations for temporary files or logs, and the like. @raise Not_found if the variable is unbound. @since 4.06.0   @@@@@@@ .L@@%&putenv0 " #@б@г &string - .@@ @@@ 0 / . . / / / / /@>S,@A@@б@г &string > ?@@ @@@ @@г $unit K L@@ @@@ @@@@@ !@@@'@@ $* @@@ Y@  [putenv name value] sets the value associated to a variable in the process environment. [name] is the name of the environment variable, and [value] its new associated value.  e f { @@@@@@@ }M@@7 {6 {1 Process handling}  v   w  @@@@@@0 u t t u u u u u@G\#@AA(.process_status1C      @@8@@'WEXITED2 >@@@ @@     !@ ; X The process terminated normally by [exit]; the argument is the return code.  !! !=!k@@@@@@@ O)WSIGNALED3 Y@@@ @@ !l!n !l!@ V S The process was killed by a signal; the argument is the signal number.  !! !!@@@@@@@ P(WSTOPPED4 t@@@ @@ !! !!@ q T The process was stopped by a signal; the argument is the signal number.  !! ";"W@@@@@@@ Q@@A.process_status@@@ @@@@   @ The termination status of a process. See module {!Sys} for the definitions of the standard signal numbers. Note that they are not the numbers used by the OS.  "X"X "#@@@@@@@@@ N@iib   @@гj#int  !k@@q0        @8@@@A@@D@ D@ @@@@)'@@@A v@@@@xugg !l!p !l!y@@гi#int !l!}j@@pk@@@@mj\\ !! !!@@г^#int '!!_@@e*`@@@@b_@AгQ$UnixS 1   2  @@Z5@@US@Ul@A()wait_flag5D ># # ?# #@@8@@'WNOHANG6@@ H#+#/ I#+#6@ 񐠠 e Do not block if no child has died yet, but immediately return with a pid equal to 0.  U#+#7 V#X#@@@@@@@ mS)WUNTRACED7@@ ^## _##@  5 Report also the children that receive stop signals.  k## l##@@@@@@@ T@@A()wait_flag@@@ @@@@ v# # @ 7 Flags for {!waitpid}.  ## #$@@@@@@@A@ R@DDBA@@@@DA33 ##1@@@@41@Aг#$Unix% # # # #(@@,0        @%d8@@@Ak@@E@ E@ @@@@1/@@"@A @@20@0        @ @A3J@%execv8 $ $  $ $@б$progг &string $ $ $ $ @@ @@@ 0        @(@A@@б$argsг %array $ $0 $ $5@г 8&string $ $) $ $/@@ @@@ @@@@@@ " @@А!a@E@ + $ $9 $ $;@@+ @@ 0 $ $$@@B7@@4 $ $ @@@ $ $  @  [execv ~prog ~args] execute the program in file [prog], with the arguments [args], and the current process environment. These [execv*] functions never return: on success, the current program is replaced by the new one. @raise Unix_error on failure  $<$< %$%F@@@@@@@ U@@H&execve9 %H%L %H%R@б$progг }&string %H%Z !%H%`@@ @@@0 " ! ! " " " " "@cz.@A@@б$argsг %array 3%H%p 4%H%u@г &string =%H%i >%H%o@@ @@@@@@@@@" @@б#envг +%array S%H% T%H%@г &string ]%H%} ^%H%@@ @@@=@@@@@@ B @@А!a@E@ K q%H% r%H%@@+ @@ P v%H%y@@O6@@ T z%H%d @@f[@@ X ~%H%U @@@ %H%H@ ) g Same as {!execv}, except that the third argument provides the environment to the program executed.  %% %%@@@@@@@ V@@l&execvp: %& %&@б$progг &string %& %&@@ @@@0        @.@A@@б$argsг %array %&& %&+@г &string %& %&%@@ @@@@@@@@@" @@А!a@E@+ %&/ %&1@@+ @@0 %&@@B7@@4 %&  @@@ %% @ G Same as {!execv}, except that the program is searched in the path.  &2&2 &T&~@@@@@@@W@@H'execvpe; && &&@б$progг e&string&& &&@@ @@@0        @cz.@A@@б$argsг %array&&&&@г &string%&&&&&@@ @@@@@@@@@" @@б#envг%array;&&<&&@г &stringE&&F&&@@ @@@=@@@@@@B @@А!a@%E@ KY&&Z&&@@+ @@!P^&&@@O6@@"Tb&& @@f[@@#Xf&& @@@i&&@  H Same as {!execve}, except that the program is searched in the path. u&&v&'@@@@@@@X@@l$fork<'''' @б@г 堐$unit''#'''@@ @@@&0@,@A@@гE#int''+''.@@ @@@'@@@@@(@@@'' @ N Fork a new process. The returned integer is 0 for the child process, the pid of the child process for the parent process. @raise Invalid_argument on Windows. Use {!create_process} or threads instead. '/'/'(@@@@@@@Y@@%$wait=( ( ( (@б@г"$unit( (( (@@ @@@)0@>S,@A@@Вг#int( (( (@@ @@@*@@гf.process_status( ("( (0@@ @@@+ @@@@@,% @@@+@@-(. @@@( ( @ Wait until one of the children processes die, and return its pid and termination status. @raise Invalid_argument on Windows. Use {!waitpid} instead. (1(1((@@@@@@@Z@@;'waitpid>((((@б$modeг$list((((@гꠐ)wait_flag((()((@@ @@@.0*))*****@`u8@A@@@ @@@0 @@б@г蠐#int>((?((@@ @@@1@@Вг#intN()O()@@ @@@2&@@г٠.process_status\()]()@@ @@@34@@@@@49 @@@)@@5<, @@W<@@6?m((@@@p((@  Same as {!wait}, but waits for the child process whose pid is given. A pid of [-1] means wait for any child. A pid of [0] means wait for any child in the same process group as the current process. Negative pid arguments represent process groups. The list of options indicates whether [waitpid] should return immediately without waiting, and whether it should report stopped children. On Windows: can only wait for a given PID, not any child process. |))}**@@@@@@@[@#@S&system?***+@б@г&string*+*+ @@ @@@70@l,@A@@г.process_status*+*+@@ @@@8@@@@@9@@@** @U  Execute the given command, wait until it terminates, and return its termination status. The string is interpreted by the shell [/bin/sh] (or the command interpreter [cmd.exe] on Windows) and therefore can contain redirections, quotes, variables, etc. To properly quote whitespace and shell special characters occurring in file names or command arguments, the use of {!Filename.quote_command} is recommended. The result [WEXITED 127] indicates that the shell couldn't be executed. ++--@@@@@@@\@@%%_exit@ --# --(@б@гz#int --+ --.@@ @@@:0@>S,@A@@А!a@>E@;  --2 --4@@@ @@<@@@ --@  Terminate the calling process immediately, returning the given status code to the operating system: usually 0 to indicate no errors, and a small positive integer to indicate failure. Unlike {!Stdlib.exit}, {!Unix._exit} performs no finalization whatsoever: functions registered with {!Stdlib.at_exit} are not called, input/output channels are not flushed, and the C run-time system is not finalized either. The typical use of {!Unix._exit} is after a {!Unix.fork} operation, when the child process runs into a fatal error and must exit. In this case, it is preferable to not perform any finalization action in the child process, as these actions could interfere with similar actions performed by the parent process. For example, output channels should not be flushed by the child process, as the parent process may flush them again later, resulting in duplicate output. @since 4.12.0  -5-500@@@@@@@ ]@@#&getpidA0000@б@гd$unit 00 00@@ @@@?0        @<Q,@A@@гĠ#int0000@@ @@@@@@@@@A@@@%00 @͐ Return the pid of the process. 100201 @@@@@@@I^@@%'getppidB= 1"1&> 1"1-@б@г$unitH 1"10I 1"14@@ @@@B0JIIJJJJJ@>S,@A@@г#intW 1"18X 1"1;@@ @@@C@@@@@D@@@b 1"1" @ o Return the pid of the parent process. @raise Invalid_argument on Windows (because it is meaningless) n!1<1<o$11@@@@@@@_@@%$niceCz&11{&11@б@г/#int&11&11@@ @@@E0@>S,@A@@г>#int&11&11@@ @@@F@@@@@G@@@&11 @G Change the process priority. The integer argument is added to the ``nice'' value. (Higher values of the ``nice'' value mean lower priorities.) Return the new nice value. @raise Invalid_argument on Windows '11+2}2@@@@@@@`@@%= {1 Basic file input/output} -22-22@@@@@@0@5J#@AA(*file_descrDE022022@@8@@@A *file_descr@@@I@@@@022022@} ( The abstract type of file descriptors. 122123@@@@@@@@@a@@Aг$Unix022@@ 0@0*8@@@A1@@F@JF@H@@@@$!@@@A #@@%"@:%$@%stdinE333!333&@гA*file_descr 333) 3333@@ @@@Q0        @RLF@A@@@333 @ $ File descriptor for standard input. 43434!4343]@@@@@@@8b@@&stdoutF,63_3c-63_3i@гl*file_descr563_3l663_3v@@ @@@R076677777@,?*@A@@@?63_3_ @琠 % File descriptor for standard output.K73w3wL73w3@@@@@@@cc@@&stderrGW933X933@г*file_descr`933a933@@ @@@S0baabbbbb@,?*@A@@@j933 @ % File descriptor for standard error. v:33w:33@@@@@@@d@@A()open_flagHF<33<33@@8@@(O_RDONLYI@@=4 4 =4 4@62 Open for reading =4 4)=4 4@@@@@@@@f(O_WRONLYJ@@>4A4C>4A4M@L2 Open for writing >4A4a>4A4x@@@@@@@g&O_RDWRK@@?4y4{?4y4@b> Open for reading and writing ?4y4?4y4@@@@@@@h*O_NONBLOCKL@@@44@44@x; Open in non-blocking mode @44@44@@@@@@@i(O_APPENDM@@A45A45 @1 Open for append A45A454@@@@@@@ j'O_CREATN@@B5557B555@@7 Create if nonexistent B555U B555q@@@@@@@ k'O_TRUNCO@@C5r5tC5r5}@ " Truncate to 0 length if existing C5r5C5r5@@@@@@@6l&O_EXCLP@@'D55(D55@А2 Fail if existing 4D555D55@@@@@@@Lm(O_NOCTTYQ@@=E55>E55@搠 ' Don't make this dev a controlling tty JE56KE56>@@@@@@@bn'O_DSYNCR@@SF6?6ATF6?6J@ e Writes complete as `Synchronised I/O data integrity completion' `F6?6_aG66@@@@@@@xo&O_SYNCS@@iH66jH66@ e Writes complete as `Synchronised I/O file integrity completion' vH66wI77T@@@@@@@p'O_RSYNCT@@J7U7WJ7U7`@( \ Reads complete as writes (depending on O_SYNC/O_DSYNC) J7U7uK77@@@@@@@q.O_SHARE_DELETEU@@L77L77@> a Windows only: allow the file to be deleted while still open L77M8&8]@@@@@@@r)O_CLOEXECV@@N8^8`N8^8k@T Set the close-on-exec flag on the descriptor returned by {!openfile}. See {!set_close_on_exec} for more information. N8^8~Q909b@@@@@@@s*O_KEEPEXECW@@R9c9eR9c9q@j b Clear the close-on-exec flag. This is currently the default. R9c9S99@@@@@@@t@@A )open_flag@@@U@@@@<33@; The flags to {!openfile}. T99T9: @@@@@@@A@e@bb`_@@@@b_QQ>4A4EO@@@@ROAA?4y4}?@@@@B?11@44/@@@@2/!!A45@@@@" B5559@@@@C5r5v@@@@D55@@@@E55@@@@ߠѠѰ"F6?6C@@@@Ϡ(H66@@@@.J7U7Y@@@@4L77@@@@:N8^8b@@@@@R9c9g@@@@@Aгq$UnixsJ<33K<34@@z0IHHIIIII@8@@@A@@G@WG@T@@@@}@@p@A @@~@0UTTUUUUU@ @A@A()file_permXGcW::dW::@@8@@@A@@@h@@@@lW::mW::"@ n The type of file access rights, e.g. [0o640] is read and write for user, read for group, none for others yX:#:#zY:p:@@@@@@@A@u@@Aг#intW::@@0@9(8@@@A/@@H@iH@g@@@@$!@@@A #@@%"@0@ @A&%@(openfileY[::[::@б@г&string[::[::@@ @@@p0@&MG@A@@б$modeгM$list[::[::@г?)open_flag[::[::@@ @@@q@@@@@@s" @@б$permгu)file_perm[::[::@@ @@@t3@@г*file_descr[::[::@@ @@@u@@@@@vC[:: @@B)@@wG[:: @@@N@@xKQ@@@[::@ Open the named file with the given flags. Third argument is the permissions to give to the file if it is created (see {!umask}). Return a file descriptor on the named file. \::^;b;@@@@@@@v@"@^%closeZ`;;`;;@б@гR*file_descr`;;`;;@@ @@@y0@w,@A@@г$unit*`;;+`;;@@ @@@z@@@@@{@@@5`;; @ݐ: Close a file descriptor. Aa;;Ba;;@@@@@@@Yw@@%%fsync[Mc;;Nc;;@б@г*file_descrXc;;Yc;;@@ @@@|0ZYYZZZZZ@>S,@A@@г$unitgc;;hc;;@@ @@@}@@@@@~@@@rc;; @ 0 Flush file buffers to disk. @since 4.12.0 ~d;;f< <4@@@@@@@x@@%$read\h<6<:h<6<>@б@г̠*file_descrh<6S,@A@@б#bufгv%bytesh<6>@@@@@@@z@&@d,single_write^t>>t>>@б@гĠ*file_descrt>>t>>@@ @@@0@},@A@@б#bufгn%bytest>>t>>@@ @@@@@б#posг[#intt>>t>>@@ @@@$@@б#lenгl#intt>>t>>@@ @@@5@@гy#intt>>t>>@@ @@@B@@@@Et>> @@3(@@It>> @@H=@@Mt>>@@@T@@QW@@@t>>@ Same as {!write}, but attempts to write only once. Thus, if an error occurs, [single_write] guarantees that no data has been written. u>>w?o?@@@@@@@ {@&@d/write_substring_y??y??@б@г@*file_descr y?? y??@@ @@@0        @},@A@@б#bufгy&stringy??y??@@ @@@@@б#posгנ#int-y??.y??@@ @@@$@@б#lenг蠐#int>y???y??@@ @@@5@@г#intKy??Ly??@@ @@@B@@@@ETy?? @@3(@@IXy?? @@H=@@M\y??@@@T@@QW@@@by??@ e Same as {!write}, but take the data from a string instead of a byte sequence. @since 4.02.0 nz??o|@*@>@@@@@@@|@&@d6single_write_substring`z~@@@D{~@@@Z@б@г*file_descr@]@_@]@i@@ @@@0@},@A@@б#bufг&string@]@q@]@w@@ @@@@@б#posгS#int@]@@]@@@ @@@$@@б#lenгd#int@]@@]@@@ @@@5@@гq#int@]@@]@@@ @@@B@@@@E@]@ @@3(@@I@]@{ @@H=@@M@]@m@@@T@@QW@@@~@@@@@ l Same as {!single_write}, but take the data from a string instead of a byte sequence. @since 4.02.0 @@@A@@@@@@@}@&@d 8 {1 Interfacing with the standard input/output library} AAAAE@@@@@@0@t#@A3in_channel_of_descraAIAMAIA`@б@гI*file_descrAIAcAIAm@@ @@@@@г*in_channelAIAq AIA{@@ @@@'@@@@@*@@@*AIAI @Ґ  Create an input channel reading from the given descriptor. The channel is initially in binary mode; use [set_binary_mode_in ic false] if text mode is desired. Text mode is supported only if the descriptor refers to a file or pipe, but is not supported if it refers to a socket. On Windows: {!Stdlib.set_binary_mode_in} always fails on channels created with this function. Beware that input channels are buffered, so more characters may have been read from the descriptor than those accessed using channel functions. Channels also keep a copy of the current position in the file. Closing the channel [ic] returned by [in_channel_of_descr fd] using [close_in ic] also closes the underlying descriptor [fd]. It is incorrect to close both the channel [ic] and the descriptor [fd]. If several channels are created on the same descriptor, one of the channels must be closed, but not the others. Consider for example a descriptor [s] connected to a socket and two channels [ic = in_channel_of_descr s] and [oc = out_channel_of_descr s]. The recommended closing protocol is to perform [close_out oc], which flushes buffered output to the socket then closes the socket. The [ic] channel must not be closed and will be collected by the GC eventually. 6A|A|7FF@@@@@@@N~@@=4out_channel_of_descrbBFFCFF@б@г*file_descrMFFNFF@@ @@@0ONNOOOOO@VQ,@A@@г&+out_channel\FF]FF@@ @@@@@@@@@@@gFF @  Create an output channel writing on the given descriptor. The channel is initially in binary mode; use [set_binary_mode_out oc false] if text mode is desired. Text mode is supported only if the descriptor refers to a file or pipe, but is not supported if it refers to a socket. On Windows: {!Stdlib.set_binary_mode_out} always fails on channels created with this function. Beware that output channels are buffered, so you may have to call {!Stdlib.flush} to ensure that all data has been sent to the descriptor. Channels also keep a copy of the current position in the file. Closing the channel [oc] returned by [out_channel_of_descr fd] using [close_out oc] also closes the underlying descriptor [fd]. It is incorrect to close both the channel [ic] and the descriptor [fd]. See {!Unix.in_channel_of_descr} for a discussion of the closing protocol when several channels are created on the same descriptor. sFFtJJ@@@@@@@@@%3descr_of_in_channelcJJJJ@б@гT*in_channelJJJJ@@ @@@0@>S,@A@@гР*file_descrJJJJ@@ @@@@@@@@@@@JJ @L : Return the descriptor corresponding to an input channel. JJJK @@@@@@@@@%4descr_of_out_channeldKKKK&@б@г+out_channelKK)KK4@@ @@@0@>S,@A@@г *file_descrKK8KKB@@ @@@@@@@@@@@KK @ ; Return the descriptor corresponding to an output channel. KCKCKCK@@@@@@@@@%< {1 Seeking and truncating} KKKK@@@@@@0@5J#@AA(,seek_commandeH KK KK@@8@@(SEEK_SETf@@KKKK@ ; indicates positions relative to the beginning of the file "KK#KL@@@@@@@:(SEEK_CURg@@+L L",L L,@Ԑ 6 indicates positions relative to the current position 8L L-9L Lh@@@@@@@P(SEEK_ENDh@@ALiLkBLiLu@ꐠ 5 indicates positions relative to the end of the file NLiLvOLiL@@@@@@@f@@A ,seek_command@@@@@@@YKK@ ! Positioning modes for {!lseek}. eLLfLL@@@@@@@A@}@ZZXW@@@@ZWIIrL L$G@@@@JG99xLiLm7@@@@:7@Aг)$Unix+KKKK@@20@8@@@A@@I@I@@@@@64@@'@A  @@75@7N@%lseekiLLLL@б@гڠ*file_descrLLLL@@ @@@0@@A@@б@г^#intLLLL@@ @@@@@б$modeг,seek_commandLMLM @@ @@@"@@г|#intLMLM@@ @@@/@@@@2LL @@@(@@6+ @@@<@@9?@@@LL@ w Set the current position for a file descriptor, and return the resulting offset (from the beginning of the file). MMMaM@@@@@@@@!@L(truncatejMMMM@б@гd&stringMMMM@@ @@@0      @ez,@A@@б#lenгĠ#intMMMM@@ @@@@@г$unit'MM(MM@@ @@@ @@@@#0MM @@@*@@'- @@@6MM@ސ - Truncates the named file to the given size. BMMCMM@@@@@@@Z@@:)ftruncatekNMMOMM@б@г*file_descrYMMZMN @@ @@@0[ZZ[[[[[@Sh,@A@@б#lenг#intlMNmMN@@ @@@@@гҠ$unityMNzMN@@ @@@ @@@@#MN  @@@*@@'- @@@MM@0 P Truncates the file corresponding to the given descriptor to the given size. NNNZNr@@@@@@@@@:1 {1 File status} NuNuNuN@@@@@@0@J_#@AA()file_kindlINNNN@@8@@%S_REGm@@NNNN@e. Regular file NNNN@@@@@@@%S_DIRn@@NNNN@{+ Directory NONO@@@@@@@%S_CHRo@@OOOO@2 Character device OO5OOL@@@@@@@ %S_BLKp@@OMOOOMOV@. Block device  OMOm OMO@@@@@@@#%S_LNKq@@OOOO@/ Symbolic link !OO"OO@@@@@@@9&S_FIFOr@@*OO+OO@Ӑ, Named pipe 7OO8OO@@@@@@@O&S_SOCKs@@@OOAOO@鐠( Socket MOPNOP@@@@@@@e@@A )file_kind@@@@@@@XNN@@A@o@@@@@dNN@@@@jOO@@@@ttpOMOQr@@@@urddvOOb@@@@ebTT|OOR@@@@URDDOOB@@@@EB@Aг4$Unix6NNNN@@=0@8@@@A@@J@J@@@@@A@@@?@A  @@B@@BY@A(%statstJPPPP!@@8@@&st_devu@\@@@P1P5P1PB@Y/ Device number P1PQP1Pe@@@@@@@&st_inov@u@@@PfPjPfPw@r. Inode number PfPPfP@@@@@@@'st_kindw@2@@@PPPP@2 Kind of the file PPPP@@@@@@@'st_permx@@@@PPPP@/ Access rights PP PQ@@@@@@@ (st_nlinky@@@@QQ QQ@1 Number of links !QQ'"QQ=@@@@@@@9&st_uidz@@@@-Q>QB.Q>QO@֐6 User id of the owner :Q>Q^;Q>Qy@@@@@@@R&st_gid{@@@@FQzQ~GQzQ@> Group ID of the file's group SQzQTQzQ@@@@@@@k'st_rdev|@ @@@_QQ`QQ@= Device ID (if special file) lQQmQR@@@@@@@'st_size}@$@@@xRRyRR@!/ Size in bytes RR!RR5@@@@@@@(st_atime~@E@@@ R6R:R6RK@:2 Last access time R6RVR6Rm@@@@@@@(st_mtime@^@@@RnRrRnR@S8 Last modification time RnRRnR@@@@@@@(st_ctime@w@@@RRRR@l9 Last status change time RRRR@@@@@@@@@A%stats@@@@@@@PPRR@ 0 The information returned by the {!stat} calls. RRRS$@@@@@@@@@@EE@P1P;@@Ш@гH#intP1P>P1PA@@P0@VPJ_8@@@Af@@K@K@@@@@,)@@@A @@^@L@@ZWIID PfPp@@Ш@гL#intPfPsPfPv@@T@@W@L@ @SPBB=PP@@Ш@гE)file_kind(PP)PP@@M/@@P@L@2@LI;;61PP@@Ш@г>)file_perm:PP;PP@@FA@@I@L@D@EB44/CQQ@@Ш@г7#intLQQMQQ@@?S@@B@L@V@>;--(UQ>QH@@Ш@г0#int^Q>QK_Q>QN@@8e@@;@L@h@74&&!gQzQ@@Ш@г)#intpQzQqQzQ@@1w@@4@L@z@0-yQQ@@Ш@г"#intQQQQ@@*@@-@L@@)&RR @@Ш@г#intRRRR@@#@@&@L@ @" R6RB@@Ш@г%floatR6RER6RJ@@@@@L@ @  RnRz@@Ш@г %floatRnR}RnR@@@@@L@@RR@@Ш@г%floatRRRR@@Ѱ@@@L@@  @Aг$UnixPP$PP.@@ް@@@0@@A@$statS&S*S&S.@б@гL&stringS&S1S&S7@@ @@@O0@WQ@A@@г[%statsS&S;S&S@@@ @@@P@@@@@Q@@@ S&S& @ , Return the information for the named file. SASASASr@@@@@@@-@@%%lstat!StSx"StS}@б@г&string,StS-StS@@ @@@R0.--.....@>S,@A@@г%stats;StS<StS@@ @@@S@@@@@T@@@FStSt @ j Same as {!stat}, but in case the file is a symbolic link, return the information for the link itself. RSSSSS@@@@@@@j@@%%fstat^TT_TT @б@г *file_descriTT jTT@@ @@@U0kjjkkkkk@>S,@A@@гՠ%statsxTTyTT @@ @@@V@@@@@W@@@TT @+ N Return the information for the file associated with the given descriptor. T!T!TcTt@@@@@@@@@%&isattyTvTzTvT@б@г ݠ*file_descrTvTTvT@@ @@@X0@>S,@A@@г$boolTvTTvT@@ @@@Y@@@@@Z@@@TvTv @h j Return [true] if the given file descriptor refers to a terminal or console window, [false] otherwise. TTTU@@@@@@@@@%␠ $ {1 File operations on large files} UUUU0@@@@@@0@5J#@A)LargeFileKU2U9U2UB@@Б%lseekUKUSUKUX@б@г :*file_descrUKU[UKUe@@ @@@[0@)@A@@б@г%int64UKUiUKUn@@ @@@\@@б$modeг,seek_command$UKUw%UKU@@ @@@]!@@гӠ%int641UKU2UKU@@ @@@^.@@@@_1:UKUr @@@(@@`5+ @@@;@@a8>@@@CUKUO@될. See [lseek]. O UUP UU@@@@@@@g@!@K(truncate[ UU\ UU@б@гà&stringf UUg UU@@ @@@b0hgghhhhh@y,@A@@б#lenг%int64y UUz UU@@ @@@c@@гߠ$unit UU UU@@ @@@d @@@@e# UU @@@*@@f'- @@@ UU@=1 See [truncate].  UU UU@@@@@@@@@:)ftruncateUUUV@б@г *file_descrUVUV@@ @@@g0@Sh,@A@@б#lenгm%int64UVUV@@ @@@h@@г1$unitUV UV$@@ @@@i @@@@j#UV @@@*@@k'- @@@UU@2 See [ftruncate]. V%V)V%V@@@@@@@@ @@:A(%statsLVBVKVBVP@@8@@&st_dev@@@@m VjVrVjV@/ Device number VjVVjV@@@@@@@2&st_ino@@@@p&VV'VV@ϐ. Inode number 3VV4VV@@@@@@@K'st_kind@@@@s?VV@VV@萠2 Kind of the file LVVMVW@@@@@@@d'st_perm@ @@@vXWWYWW3@/ Access rights eWW;fWWO@@@@@@@}(st_nlink@@@@yqWPWXrWPWg@1 Number of links ~WPWtWPW@@@@@@@&st_uid@6@@@|WWWW@36 User id of the owner WWWW@@@@@@@&st_gid@O@@@WWWW@L> Group ID of the file's group WWWX@@@@@@@'st_rdev@h@@@XXXX)@e= Device ID (if special file) XX7XXY@@@@@@@'st_size@y@@@XZXbXZXr@~/ Size in bytes XZX~XZX@@@@@@@(st_atime@@@@XXXX@2 Last access time XXXX@@@@@@@ (st_mtime@@@@ XX XX@8 Last modification time  XX XY@@@@@@@ ,(st_ctime@@@@ YY !YY*@ɐ9 Last status change time  -YY5 .YYS@@@@@@@ E@@A)LargeFile%stats@@@@@@@ :VBVF ;YTY[@@@@ R@::5 BVjVx@@Ш@г=#int KVjV{ LVjV~@@E0 J I I J J J J J@kT8@@@A[@@M@M@l@@@@@@@@A @@S@N@n@OL>>9 _VV@@Ш@гA#int hVV iVV@@I@@L@N@q @HE772 qVV@@Ш@г:)file_kind zVV {VV@@B/@@E@N@t2@A>00+ WW&@@Ш@г3)file_perm WW) WW2@@;A@@>@N@wD@:7))$ WPW`@@Ш@г,#int WPWc WPWf@@4S@@7@N@zV@30"" WW@@Ш@г%#int WW WW@@-e@@0@N@}h@,) WW@@Ш@г#int WW WW@@&w@@)@N@z@%" XX"@@Ш@г#int XX% XX(@@@@"@N@@   XZXi@@Ш@г%int64 XZXl XZXq@@@@@N@@ XX@@Ш@г %float XX XX@@@@@N@@ !XX@@Ш@г%float! XX! XX@@ @@ @N@@ !YY!@@Ш@г%float!YY$!YY)@@Ѱ@@@N@@@Aг񠡡$Unix!*VBVS!+VBVg@@߰@@@@0!*!)!)!*!*!*!*!*@@A@$stat!7Y\Yd!8Y\Yh@б@г &string!BY\Yk!CY\Yq@@ @@@0!D!C!C!D!D!D!D!D@MG@A@@гQ%stats!QY\Yu!RY\Yz@@ @@@@@@@@@@@!\Y\Y` @@!s@ @@%lstat!g Y{Y!h Y{Y@б@г Ϡ&string!r Y{Y!s Y{Y@@ @@@0!t!s!s!t!t!t!t!t@1F@A@@г%stats! Y{Y! Y{Y@@ @@@@@@@@@@@! Y{Y @@!@ @@%fstat!!YY!!YY@б@г٠*file_descr!!YY!!YY@@ @@@0!!!!!!!!@1F@A@@г%stats!!YY!!YY@@ @@@ @@@@@!@@@!!YY @@!@ @@@@l0@@A@o@hA@:@@0!!!!!!!!@'<@A!UEUG!"YY@@ z  File operations on large files. This sub-module provides 64-bit variants of the functions {!lseek} (for positioning a file descriptor), {!truncate} and {!ftruncate} (for changing the size of a file), and {!stat}, {!lstat} and {!fstat} (for obtaining information on files). These alternate functions represent positions and sizes by 64-bit integers (type [int64]) instead of regular integers (type [int]), thus allowing operating on files whose sizes are greater than [max_int]. !#YY!,[[@@@@@@@!U2U2@@!? {1 Mapping files into memory} !.[[!.[[@@@@@@0!!!!!!!!@@@g@S@A@@x@qJ@@1$"@A(map_file" 0[["0[[@б@гO*file_descr"1[["1[[@@ @@@"+@@б#posг!ˠ%int64")2\\."*2\\3@@ @@@#<@@б$kindг!(Bigarray$kind&Stdlib"@3\7\G"A3\7\[@А!a@-M@Y"L3\7\?"M3\7\A@@А!b@/M@e"X3\7\C"Y3\7\E@@@' @@@m"`3\7\> @@б&layoutг!7(Bigarray&layout&Stdlib"r4\_\k"s4\_\@А!c@1M@"~4\_\h"4\_\j@@@ @@@@@б&sharedг"_$bool"4\_\"4\_\@@ @@@@@б$dimsг"y%array"4\_\"4\_\@г"U#int"4\_\"4\_\@@ @@@@@@@@@ð @@г!(Bigarray(Genarray!t&Stdlib "5\\"5\\@А!aڰ"5\\"5\\@@А!b"5\\"5\\@@А!cb"5\\"5\\@@@'j@@@$"5\\@@O6 @@%"4\_\"@@dY@@&"4\_\&@@o@@'"4\_\a*@@@@("3\7\9.@@"r@@@) @@* "2\\7@@@ @@+:@@@#0[[=@!  Memory mapping of a file as a Bigarray. [map_file fd ~kind ~layout ~shared ~dims] returns a Bigarray of kind [kind], layout [layout], and dimensions as specified in [dims]. The data contained in this Bigarray are the contents of the file referred to by the file descriptor [fd] (as opened previously with {!openfile}, for example). The optional [pos] parameter is the byte offset in the file of the data being mapped; it defaults to 0 (map from the beginning of the file). If [shared] is [true], all modifications performed on the array are reflected in the file. This requires that [fd] be opened with write permissions. If [shared] is [false], modifications performed on the array are done in memory only, using copy-on-write of the modified pages; the underlying file is not affected. [Genarray.map_file] is much more efficient than reading the whole file in a Bigarray, modifying that Bigarray, and writing it afterwards. To adjust automatically the dimensions of the Bigarray to the actual size of the file, the major dimension (that is, the first dimension for an array with C layout, and the last dimension for an array with Fortran layout) can be given as [-1]. [Genarray.map_file] then determines the major dimension from the size of the file. The file must contain an integral number of sub-arrays as determined by the non-major dimensions, otherwise [Failure] is raised. If all dimensions of the Bigarray are given, the file size is matched against the size of the Bigarray. If the file is larger than the Bigarray, only the initial portion of the file is mapped to the Bigarray. If the file is smaller than the big array, the file is automatically grown to the size of the Bigarray. This requires write permissions on [fd]. Array accesses are bounds-checked, but the bounds are determined by the initial call to [map_file]. Therefore, you should make sure no other process modifies the mapped file while you're accessing it, or a SIGBUS signal may be raised. This happens, for instance, if the file is shrunk. [Invalid_argument] or [Failure] may be raised in cases where argument validation fails. @since 4.06.0 #6\\#cele~@@@@@@@#'@L@!#%> {1 Operations on file names} # eee#!eee@@@@@@0########@1#@A&unlink#,hee#-hee@б@г"&string#7hee#8hee@@ @@@2@@г"$unit#Dhee#Ehee@@ @@@3'@@@@@4*@@@#Ohee @! Removes the named file. If the named file is a directory, raises: {ul {- [EPERM] on POSIX compliant system} {- [EISDIR] on Linux >= 2.1.132} {- [EACCESS] on Windows}} #[iee#\pff@@@@@@@#s@@=&rename#grff#hrff@б#srcг"Ѡ&string#trff#urff@@ @@@50#v#u#u#v#v#v#v#v@XS.@A@@б#dstг"䠐&string#rff#rff@@ @@@6@@г"$unit#rff#rff@@ @@@7 @@@@8##rff @@5*@@9'#rff @@@#rff@"L \ [rename ~src ~dst] changes the name of a file from [src] to [dst], moving it between directories if needed. If [dst] already exists, its contents will be replaced with those of [src]. Depending on the operating system, the metadata (permissions, owner, etc) of [dst] can either be preserved or be replaced by those of [src]. #sff#xgh@@@@@@@#@@;$link#zhh#zhh@б&followг#$bool#zhhO#zhhS@@ @@@:0########@Vm.@A@@б#srcг#9&string#{hWhf#{hWhl@@ @@@;@@б#dstг#J&string#{hWht#{hWhz@@ @@@<$@@г#S$unit#{hWh~#{hWh@@ @@@=1@@@@>4${hWhp @@3(@@?8${hWhb @@JB@@@@ @@A@$zhh"@@ @$zhh@" 8 [link ?follow ~src ~dst] creates a hard link named [dst] to the file named [src]. @param follow indicates whether a [src] symlink is followed or a hardlink to [src] itself will be created. On {e Unix} systems this is done using the [linkat(2)] function. If [?follow] is not provided, then the [link(2)] function is used whose behaviour is OS-dependent, but more widely available. @raise ENOSYS On {e Unix} if [~follow:_] is requested, but linkat is unavailable. @raise ENOSYS On {e Windows} if [~follow:false] is requested. $|hh$j}j@@@@@@@$6@'@T(realpath$*jj$+jj@б@г#&string$5jj$6jj@@ @@@B0$7$6$6$7$7$7$7$7@m,@A@@г#&string$Djj$Ejj@@ @@@C@@@@@D@@@$Ojj @" [realpath p] is an absolute pathname for [p] obtained by resolving all extra [/] characters, relative path segments and symbolic links. @since 4.13.0 $[jj$\ksk@@@@@@@$s@@%$q $ {1 File permissions and ownership} $lkk$mkk@@@@@@0$k$j$j$k$k$k$k$k@5J#@AA(1access_permissionM$ykk$zkk@@8@@$R_OK@@$kk$kk@#,1 Read permission $kl$kl@@@@@@@$$W_OK@@$ll $ll&@#B2 Write permission $ll>$llU@@@@@@@$$X_OK@@$lVlX$lVl^@#X6 Execution permission $lVlv$lVl@@@@@@@$$F_OK@@$ll$ll@#n- File exists $ll$ll@@@@@@@$@@A1access_permission@@@F@@@@$kk@#? Flags for the {!access} call. $ll$ll@@@@@@@A@%@ppnm@@@@pm__$ll"]@@@@`]OO$lVlZM@@@@PM??%ll=@@@@@=@Aг/$Unix1% kk% kk@@80% % % % % % % % @8@@@A@@N@HN@E@@@@<:@@-@A  @@=;@=T@%chmod %"ll%#ll@б@г$&string%-ll%.ll@@ @@@X0%/%.%.%/%/%/%/%/@@A@@б$permгݠ)file_perm%@lm%Alm@@ @@@Y@@г$$unit%Mlm%Nlm@@ @@@Z @@@@[#%Vlm @@@*@@\'- @@@%\ll@$ + Change the permissions of the named file. %hmm%immI@@@@@@@%@@:&fchmod!%tmKmO%umKmU@б@г*file_descr%mKmX%mKmb@@ @@@]0%%%%%%%%@Sh,@A@@б$permг/)file_perm%mKmk%mKmt@@ @@@^@@г$$unit%mKmx%mKm|@@ @@@_ @@@@`#%mKmf @@@*@@a'- @@@%mKmK@$V S Change the permissions of an opened file. @raise Invalid_argument on Windows %m}m}%mm@@@@@@@%@@:%chown"%mm%mm@б@г%.&string%mm%mm@@ @@@b0%%%%%%%%@Sh,@A@@б#uidг%#int%mm%mm@@ @@@c@@б#gidг%#int%mm%mm@@ @@@d$@@г%[$unit&mn&mn@@ @@@e1@@@@f4& mm @@3(@@g8&mm @@@?@@h<B@@@&mm@$ _ Change the owner uid and owner gid of the named file. @raise Invalid_argument on Windows &!nn&"nCnl@@@@@@@&9@"@O&fchown#&-nnnr&.nnnx@б@гo*file_descr&8nnn{&9nnn@@ @@@i0&:&9&9&:&:&:&:&:@h},@A@@б#uidг%#int&Knnn&Lnnn@@ @@@j@@б#gidг&#int&\nnn&]nnn@@ @@@k$@@г% $unit&innn&jnnn@@ @@@l1@@@@m4&rnnn @@3(@@n8&vnnn @@@?@@o<B@@@&|nnnn@%$ _ Change the owner uid and owner gid of an opened file. @raise Invalid_argument on Windows &nn&no@@@@@@@&@"@O%umask$&o o&o o@б@г&I#int&o o&o o@@ @@@p0&&&&&&&&@h},@A@@г&X#int&o o&o o @@ @@@q@@@@@r@@@&o o  @%a v Set the process's file mode creation mask, and return the previous mask. @raise Invalid_argument on Windows &o!o!&oso@@@@@@@&@@%&access%&oo&oo@б@г&9&string&oo&oo@@ @@@s0&&&&&&&&@>S,@A@@б$permг&$list&oo&oo@г1access_permission&oo&oo@@ @@@t@@@@@@v" @@г&d$unit' oo' oo@@ @@@w/@@-@@x2'oo @@@9@@y6< @@@'oo@% Check that the process has the given permissions over the named file. On Windows: execute permission [X_OK] cannot be tested, just tests for read permission instead. @raise Unix_error otherwise. '&oo''pp@@@@@@@'>@@I'< $ {1 Operations on file descriptors} '7pp'8pp@@@@@@0'6'5'5'6'6'6'6'6@Yn#@A#dup&'Cpp'Dpp@б'cloexecг'$bool'Ppq'Qpq@@ @@@z@@б@г*file_descr'_qq)'`qq3@@ @@@{+@@г*file_descr'lqq7'mqqA@@ @@@|8@@@@@};@@0(@@@~ @@B'|pp@@ @'pp@&' Return a new file descriptor referencing the same file as the given descriptor. See {!set_close_on_exec} for documentation on the [cloexec] optional argument. 'qBqB'qq@@@@@@@'@"@V$dup2''qq'qq@б'cloexecг's$bool'qr+'qr/@@ @@@0''''''''@ql.@A@@б#srcг*file_descr'r3rB'r3rL@@ @@@@@б#dstг*file_descr'r3rT'r3r^@@ @@@$@@г'.$unit'r3rb'r3rf@@ @@@1@@@@4'r3rP @@3(@@8'r3r> @@JB@@@ @@@'qq@@ @'qq@& [dup2 ~src ~dst] duplicates [src] to [dst], closing [dst] if already opened. See {!set_close_on_exec} for documentation on the [cloexec] optional argument. 'rgrg'rs@@@@@@@(@'@T,set_nonblock((ss(ss$@б@гG*file_descr(ss'(ss1@@ @@@0((((((((@m,@A@@г'x$unit(ss5( ss9@@ @@@@@@@@@@@(*ss @&Ґ c Set the ``non-blocking'' flag on the given descriptor. When the non-blocking flag is set, reading on a descriptor on which there is temporarily no data available raises the [EAGAIN] or [EWOULDBLOCK] error instead of blocking; writing on a descriptor on which there is temporarily no room for writing also raises [EAGAIN] or [EWOULDBLOCK]. (6s:s:(7tjt@@@@@@@(N@@%.clear_nonblock)(Btt(Ctt@б@г*file_descr(Mtt(Ntt@@ @@@0(O(N(N(O(O(O(O(O@>S,@A@@г'$unit(\tt(]tt@@ @@@@@@@@@@@(gtt @' Q Clear the ``non-blocking'' flag on the given descriptor. See {!set_nonblock}.(stt(tu u"@@@@@@@(@@%1set_close_on_exec*(u$u((u$u9@б@г*file_descr(u$u<(u$uF@@ @@@0((((((((@>S,@A@@г'$unit(u$uJ(u$uN@@ @@@@@@@@@@@(u$u$ @'L { Set the ``close-on-exec'' flag on the given descriptor. A descriptor with the close-on-exec flag is automatically closed when the current process starts another program with one of the [exec], [create_process] and [open_process] functions. It is often a security hole to leak file descriptors opened on, say, a private file to an external program: the program, then, gets access to the private file and can do bad things with it. Hence, it is highly recommended to set all file descriptors ``close-on-exec'', except in the very few cases where a file descriptor actually needs to be transmitted to another program. The best way to set a file descriptor ``close-on-exec'' is to create it in this state. To this end, the [openfile] function has [O_CLOEXEC] and [O_KEEPEXEC] flags to enforce ``close-on-exec'' mode or ``keep-on-exec'' mode, respectively. All other operations in the Unix module that create file descriptors have an optional argument [?cloexec:bool] to indicate whether the file descriptor should be created in ``close-on-exec'' mode (by writing [~cloexec:true]) or in ``keep-on-exec'' mode (by writing [~cloexec:false]). For historical reasons, the default file descriptor creation mode is ``keep-on-exec'', if no [cloexec] optional argument is given. This is not a safe default, hence it is highly recommended to pass explicit [cloexec] arguments to operations that create file descriptors. The [cloexec] optional arguments and the [O_KEEPEXEC] flag were introduced in OCaml 4.05. Earlier, the common practice was to create file descriptors in the default, ``keep-on-exec'' mode, then call [set_close_on_exec] on those freshly-created file descriptors. This is not as safe as creating the file descriptor in ``close-on-exec'' mode because, in multithreaded programs, a window of vulnerability exists between the time when the file descriptor is created and the time [set_close_on_exec] completes. If another thread spawns another program during this window, the descriptor will leak, as it is still in the ``keep-on-exec'' mode. Regarding the atomicity guarantees given by [~cloexec:true] or by the use of the [O_CLOEXEC] flag: on all platforms it is guaranteed that a concurrently-executing Caml thread cannot leak the descriptor by starting a new process. On Linux, this guarantee extends to concurrently-executing C threads. As of Feb 2017, other operating systems lack the necessary system calls and still expose a window of vulnerability during which a C thread can see the newly-created file descriptor in ``keep-on-exec'' mode. (uOuO(@@@@@@@(@@%3clear_close_on_exec+((@б@г*file_descr((@@ @@@0((((((((@>S,@A@@г(/$unit((@@ @@@@@@@@@@@( @' W Clear the ``close-on-exec'' flag on the given descriptor. See {!set_close_on_exec}.( ( <Z@@@@@@@)@@%)1 {1 Directories} ( ]]( ]s@@@@@@0((((((((@5J#@A%mkdir,) vz) v@б@г(r&string)v)v@@ @@@@@б$permгà)file_perm)&v)'v@@ @@@+@@г($unit)3v)4v@@ @@@8@@@@;)<v @@@(@@?+ @@@)Bvv@'ꐠ ? Create a directory with the given permissions (see {!umask}). )N)O@@@@@@@)f@@R%rmdir-)Z)[@б@г( &string)e)f@@ @@@0)g)f)f)g)g)g)g)g@kf,@A@@г(͠$unit)t)u@@ @@@@@@@@@@@) @('< Remove an empty directory. ))%@@@@@@@)@@%%chdir.)'+)'0@б@г(&string)'3)'9@@ @@@0))))))))@>S,@A@@г) $unit)'=)'A@@ @@@@@@@@@@@)'' @(d ' Change the process working directory. )BB)Bn@@@@@@@)@@%&getcwd/)pt)pz@б@г)8$unit)p})p@@ @@@0))))))))@>S,@A@@г)K&string)p)p@@ @@@@@@@@@@@)pp @( 3 Return the name of the current working directory. **@@@@@@@*@@%&chroot0**@б@г)y&string**@@ @@@0********@>S,@A@@г)$unit*+*,@@ @@@@@@@@@@@*6 @(ސ L Change the process root directory. @raise Invalid_argument on Windows *B*C 3@@@@@@@*Z@@%A(*dir_handle1N*O!5:*P!5D@@8@@@A# *dir_handle@@@@@@@*Z!55*[!5V@) 2 The type of descriptors over opened directories. *g"WW*h"W@@@@@@@@@*@@Aг$Unix*r!5G@@ 0*p*o*o*p*p*p*p*p@TiB+8@@@A2@@O@O@@@@@%"@@@A $@@&#@0*|*{*{*|*|*|*|*|@ @A'&@'opendir2*$*$@б@г)&string*$*$@@ @@@0********@&PJ@A@@гT*dir_handle*$*$@@ @@@@@@@@@@@*$ @)V " Open a descriptor on a directory *%*%@@@@@@@*@@%'readdir3*'*'@б@г*dir_handle*'*'@@ @@@0********@>S,@A@@г*=&string*'*'@@ @@@@@@@@@@@*' @) m Return the next entry in a directory. @raise End_of_file when the end of the directory has been reached. *(*))q@@@@@@@+@@%)rewinddir4++sw++s@б@г*dir_handle++s++s@@ @@@0++++++++@>S,@A@@г*v$unit++s++s@@ @@@@@@@@@@@+(+ss @)А = Reposition the descriptor to the beginning of the directory +4,+5,@@@@@@@+L@@%(closedir5+@.+A.@б@г*dir_handle+K.+L.@@ @@@0+M+L+L+M+M+M+M+M@>S,@A@@г*$unit+Z.+[.@@ @@@@@@@@@@@+e. @* ? Close a directory descriptor. +q/+r/ @@@@@@@+@@%+< {1 Pipes and redirections} +3$$+3$E@@@@@@0++++++++@5J#@A$pipe6+6HL+6HP@б'cloexecг+j$bool+6H+6H@@ @@@@@б@г+$unit+7+7@@ @@@+@@Вг*file_descr+7+7@@ @@@;@@г*file_descr+7+7@@ @@@I@@@@@N @@@)@@Q, @@F>@@@ @@X+6HS@@ @+6HH@*  Create a pipe. The first component of the result is opened for reading, that's the exit to the pipe. The second component is opened for writing, that's the entrance to the pipe. See {!set_close_on_exec} for documentation on the [cloexec] optional argument. +8+<@@@@@@@,@'@l&mkfifo7+>+>@б@г+`&string,>,>@@ @@@0,,,,,,,,@,@A@@б$permг)file_perm,>,>@@ @@@@@г+|$unit,#>,$>@@ @@@ @@@@#,,> @@@*@@'- @@@,2>@*ڐ g Create a named pipe with the given permissions (see {!umask}). @raise Invalid_argument on Windows ,>?,?A;c@@@@@@@,V@@:,T 3 {1 High-level process and redirection management} ,ODff,PDf@@@@@@0,N,M,M,N,N,N,N,N@J_#@A.create_process8,[G,\G@б$progг+Š&string,hH,iH@@ @@@@@б$argsг,Q%array,yH,zH@г+ࠐ&string,H,H@@ @@@7@@@@@@< @@б%stdinгР*file_descr,H,H@@ @@@M@@б&stdoutг᠐*file_descr,H,H@@ @@@^@@б&stderrг*file_descr,I,I@@ @@@o@@г,r#int,I,I!@@ @@@|@@@@,I  @@3(@@,H @@H=@@,H@@lS@@,H@@v@@,H@@@,G@+  [create_process ~prog ~args ~stdin ~stdout ~stderr] forks a new process that executes the program in file [prog], with arguments [args]. The pid of the new process is returned immediately; the new process executes concurrently with the current process. The standard input and outputs of the new process are connected to the descriptors [stdin], [stdout] and [stderr]. Passing e.g. {!Unix.stdout} for [stdout] prevents the redirection and causes the new process to have the same standard output as the current process. The executable file [prog] is searched in the path. The new process has the same environment as the current process. ,J"",U~@@@@@@@-@+@2create_process_env9,W,W@б$progг,f&string- X- X@@ @@@0- - - - - - - - @.@A@@б$argsг,%array-X-X@г,&string-&X-'X@@ @@@@@@@@@" @@б#envг-%array-<X-=X@г,&string-FX -GX@@ @@@=@@@@@@B @@б%stdinг*file_descr-\X-]X)@@ @@@S@@б&stdoutг*file_descr-mY-8-nY-B@@ @@@d@@б&stderrг*file_descr-~Y-M-Y-W@@ @@@u@@г-5#int-Y-[-Y-^@@ @@@@@@@-Y-F @@3(@@-Y-1 @@H=@@-X@@lS@@-X@@w@@-X@@@@-X@@@-W @,S [create_process_env ~prog ~args ~env ~stdin ~stdout ~stderr] works as {!create_process}, except that the extra argument [env] specifies the environment passed to the program. -Z__-\@@@@@@@-@/@/open_process_in:-_!-_0@б@г-+&string-_3-_9@@ @@@0--------@,@A@@г,*in_channel-_=-_G@@ @@@@@@@@@@@-_ @, } High-level pipe and process management. This function runs the given command in parallel with the program. The standard output of the command is redirected to a pipe, which can be read via the returned input channel. The command is interpreted by the shell [/bin/sh] (or [cmd.exe] on Windows), cf. {!system}. The {!Filename.quote_command} function can be used to quote the command and its arguments as appropriate for the shell being used. If the command does not need to be run through the shell, {!open_process_args_in} can be used as a more robust and more efficient alternative to {!open_process_in}. -`HH-j@@@@@@@. @@%0open_process_out;.l.l@б@г-h&string. l. l@@ @@@0. . . . . . . . @>S,@A@@г,+out_channel.l.l@@ @@@@@@@@@@@.%l @,͐  Same as {!open_process_in}, but redirect the standard input of the command to a pipe. Data written to the returned output channel is sent to the standard input of the command. Warning: writes on output channels are buffered, hence be careful to call {!Stdlib.flush} at the right times to ensure correct synchronization. If the command does not need to be run through the shell, {!open_process_args_out} can be used instead of {!open_process_out}. .1m.2u@@@@@@@.I@@%,open_process<.=w.>w@б@г-&string.Hw.Iw@@ @@@0.J.I.I.J.J.J.J.J@>S,@A@@Вг-$*in_channel.Zw.[w@@ @@@@@г-2+out_channel.hw.iw@@ @@@ @@@@@% @@@+@@(. @@@.xw@-  Same as {!open_process_out}, but redirects both the standard input and standard output of the command to pipes connected to the two returned channels. The input channel is connected to the output of the command, and the output channel to the input of the command. If the command does not need to be run through the shell, {!open_process_args} can be used instead of {!open_process}. .x.~@@@@@@@.@@;1open_process_full=..@б@г-&string..@@ @@@0........@Ti,@A@@б#envг.%array..@г.&string..@@ @@@@@@@@@" @@Вг-*in_channel..@@ @@@2@@г-+out_channel..@@ @@@@@@г-*in_channel..@@ @@@N@@@# @@T( @@R9@@W.@@@^@@[a@@@.@-  Similar to {!open_process}, but the second argument specifies the environment passed to the command. The result is a triple of channels connected respectively to the standard output, standard input, and standard error of the command. If the command does not need to be run through the shell, {!open_process_args_full} can be used instead of {!open_process_full}. / / p@@@@@@@/"@$@n4open_process_args_in>//@б@г.~&string/!/"@@ @@@0/#/"/"/#/#/#/#/#@,@A@@б@г/ %array/2/3@г.&string/</=@@ @@@@@@@@@  @@г.*in_channel/N/O@@ @@@-@@@@@0@@@6@@39 @@@/\@.  [open_process_args_in prog args] runs the program [prog] with arguments [args]. The new process executes concurrently with the current process. The standard output of the new process is redirected to a pipe, which can be read via the returned input channel. The executable file [prog] is searched in the path. This behaviour changed in 4.12; previously [prog] was looked up only in the current directory. The new process has the same environment as the current process. @since 4.08.0 /h/i@@@@@@@/@@F5open_process_args_out?/t/u@б@г.ܠ&string//@@ @@@0////////@_t,@A@@б@г/h%array// @г.&string//@@ @@@@@@@@@  @@г.v+out_channel//@@ @@@-@@@@@0@@@6@@39 @@@/@.b o Same as {!open_process_args_in}, but redirect the standard input of the new process to a pipe. Data written to the returned output channel is sent to the standard input of the program. Warning: writes on output channels are buffered, hence be careful to call {!Stdlib.flush} at the right times to ensure correct synchronization. @since 4.08.0 //{@@@@@@@/@@F1open_process_args@//@б@г/:&string//@@ @@@0////////@_t,@A@@б@г/Ơ%array//@г/U&string//@@ @@@ @@@@@@   @@Вг.*in_channel0 0@@ @@@ 0@@г.+out_channel00@@ @@@ >@@@@@C @@@*@@F1 @@@L@@IO@@@0.@.֐ 2 Same as {!open_process_args_out}, but redirects both the standard input and standard output of the new process to pipes connected to the two returned channels. The input channel is connected to the output of the program, and the output channel to the input of the program. @since 4.08.0 0:0;@@@@@@@0R@"@\6open_process_args_fullA0F0G/@б@г/&string0Q240R2:@@ @@@00S0R0R0S0S0S0S0S@u,@A@@б@г0:%array0b2E0c2J@г/ɠ&string0l2>0m2D@@ @@@@@@@@@  @@б@г0X%array02U02Z@г/砐&string02N02T@@ @@@9@@@@@@> @@Вг/i*in_channel0^b0^l@@ @@@N@@г/w+out_channel0^o0^z@@ @@@\@@г/*in_channel0^}0^@@ @@@j@@@# @@p( @@@9@@s@@@@Z@@va@@@|@@y@@@0@/z  Similar to {!open_process_args}, but the third argument specifies the environment passed to the new process. The result is a triple of channels connected respectively to the standard output, standard input, and standard error of the program. @since 4.08.0 00@@@@@@@0@&@.process_in_pidB00@б@г/*in_channel00@@ @@@000000000@,@A@@г0#int11@@ @@@ @@@@@!@@@1 @/ m Return the pid of a process opened via {!open_process_in} or {!open_process_args_in}. @since 4.12.0 11';@@@@@@@13@@%/process_out_pidC1'=A1(=P@б@г/+out_channel12=S13=^@@ @@@"01413131414141414@>S,@A@@г0렐#int1A=b1B=e@@ @@@#@@@@@$@@@1L== @/ o Return the pid of a process opened via {!open_process_out} or {!open_process_args_out}. @since 4.12.0 1Xff1Y@@@@@@@1p@@%+process_pidD1d1e@б@Вг0<*in_channel1r1s@@ @@@%01t1s1s1t1t1t1t1t@AV/@A@@г0L+out_channel11@@ @@@&@@@@@' @@г1>#int1 1 @@ @@@("@@@@@)%+@@@1 @0G g Return the pid of a process opened via {!open_process} or {!open_process_args}. @since 4.12.0 11fz@@@@@@@1@@80process_full_pidE1|1|@б@Вг0*in_channel1|1|@@ @@@*011111111@Tl/@A@@г0+out_channel1|1|@@ @@@+@@г0*in_channel1|1|@@ @@@,@@@% @@-$* @@г1#int1|1|@@ @@@.1@@@@@/4:@@@2|| @0 q Return the pid of a process opened via {!open_process_full} or {!open_process_args_full}. @since 4.12.0 2 2"6@@@@@@@2%@@G0close_process_inF28<28L@б@г0*in_channel2$8O2%8Y@@ @@@002&2%2%2&2&2&2&2&@`x,@A@@г&.process_status238]248k@@ @@@1@@@@@2@@@2>88 @0搠 Close channels opened by {!open_process_in}, wait for the associated command to terminate, and return its termination status. 2Jll2K@@@@@@@2b@@%1close_process_outG2V2W @б@г1++out_channel2a2b@@ @@@302c2b2b2c2c2c2c2c@>S,@A@@г&.process_status2p2q-@@ @@@4@@@@@5@@@2{ @1# Close channels opened by {!open_process_out}, wait for the associated command to terminate, and return its termination status. 2..2@@@@@@@2@@%-close_processH22@б@Вг1k*in_channel22@@ @@@6022222222@AV/@A@@г1{+out_channel22@@ @@@7@@@@@8 @@г'@.process_status22@@ @@@9"@@@@@:%+@@@2 @1v Close channels opened by {!open_process}, wait for the associated command to terminate, and return its termination status. 22Y@@@@@@@2@@82close_process_fullI22@б@Вг1*in_channel22@@ @@@;022222222@Tl/@A@@г1+out_channel33@@ @@@<@@г1*in_channel33@@ @@@=@@@% @@>$* @@г'.process_status3%3&@@ @@@?1@@@@@@4:@@@30 @1ؐ Close channels opened by {!open_process_full}, wait for the associated command to terminate, and return its termination status. 3<3=:b@@@@@@@3T@@G3R4 {1 Symbolic links} 3Mee3Ne~@@@@@@03L3K3K3L3L3L3L3L@Wo#@A'symlinkJ3Y3Z@б&to_dirг35$bool3f3g@@ @@@A@@б#srcг2Ԡ&string3w3x@@ @@@B-@@б#dstг2堐&string33@@ @@@C>@@г2$unit33@@ @@@DK@@@@EN3 @@3(@@FR3 @@H@@@@G @@HZ3@@ @3@2U  [symlink ?to_dir ~src ~dst] creates the file [dst] as a symbolic link to the file [src]. On Windows, [~to_dir] indicates if the symbolic link points to a directory or a file; if omitted, [symlink] examines [src] using [stat] and picks appropriately, if [src] does not exist then [false] is assumed (for this reason, it is recommended that the [~to_dir] parameter be specified in new code). On Unix, [~to_dir] is ignored. Windows symbolic links are available in Windows Vista onwards. There are some important differences between Windows symlinks and their POSIX counterparts. Windows symbolic links come in two flavours: directory and regular, which designate whether the symbolic link points to a directory or a file. The type must be correct - a directory symlink which actually points to a file cannot be selected with chdir and a file symlink which actually points to a directory cannot be read or written (note that Cygwin's emulation layer ignores this distinction). When symbolic links are created to existing targets, this distinction doesn't matter and [symlink] will automatically create the correct kind of symbolic link. The distinction matters when a symbolic link is created to a non-existent target. The other caveat is that by default symbolic links are a privileged operation. Administrators will always need to be running elevated (or with UAC disabled) and by default normal user accounts need to be granted the SeCreateSymbolicLinkPrivilege via Local Security Policy (secpol.msc) or via Active Directory. {!has_symlink} can be used to check that a process is able to create symbolic links. 33{@@@@@@@3@'@n+has_symlinkK33@б@г3)$unit33@@ @@@I033333333@,@A@@г3$bool33@@ @@@J@@@@@K@@@3 @2 4 Returns [true] if the user is able to create symbolic links. On Windows, this indicates that the user not only has the SeCreateSymbolicLinkPrivilege but is also running elevated, if necessary. On other platforms, this is simply indicates that the symlink system call is available. @since 4.03.0 33 @@@@@@@4@@%(readlinkL4 4 @б@г3j&string4  4 @@ @@@L044444444@>S,@A@@г3y&string4 4  @@ @@@M@@@@@N@@@4'  @2ϐ ' Read the contents of a symbolic link. 43   44  8@@@@@@@4K@@%4I- {1 Polling} 4D;;4E;M@@@@@@04C4B4B4C4C4C4C4C@5J#@A&selectM4PPT4QPZ@б$readг3$list4]]o4^]s@г#*file_descr4g]d4h]n@@ @@@O&@@@@@@Q+ @@б%writeг4$list4}]4~]@г#*file_descr4]}4]@@ @@@RF@@@@@@TK @@б&exceptг42$list4]4]@г#ޠ*file_descr4]4]@@ @@@Uf@@@@@@Wk @@б'timeoutг4o%float44@@ @@@X|@@Вг4b$list44@г$*file_descr44@@ @@@Y@@@@@@[ @@г4$list44@г$+*file_descr44@@ @@@\@@@@@@^ @@г4$list55@г$H*file_descr55@@ @@@_а@@@@@@aհ @@@B& @@b۰K@@pe@@cް5%@@{@@d5)]"@@@@e5-]w&@@@@f51]_*@@@54PP-@3ܐ _ Wait until some input/output operations become possible on some channels. The three list arguments are, respectively, a set of descriptors to check for reading (first argument), for writing (second argument), or for exceptional conditions (third argument). The fourth argument is the maximal timeout, in seconds; a negative fourth argument means no timeout (unbounded wait). The result is composed of three sets of descriptors: those ready for reading (first component), ready for writing (second component), and over which an exceptional condition is pending (third component). 5@5AFW@@@@@@@5X@<@5V- {1 Locking} 5Q YY5R Yk@@@@@@05P5O5O5P5P5P5P5P@ #@AA(,lock_commandNO5^"mr5_"m~@@8@@'F_ULOCKO@@5h#5i#@41 Unlock a region 5u#5v#@@@@@@@5&F_LOCKP@@5~$5$@4' 8 Lock a region for writing, and block if already locked 5$5$ @@@@@@@5'F_TLOCKQ@@5%5%@4= 6 Lock a region for writing, or fail if already locked 5% 5%[@@@@@@@5&F_TESTR@@5&\^5&\f@4S ' Test a region for other process locks 5&\n5&\@@@@@@@5'F_RLOCKS@@5'5'@4i 8 Lock a region for reading, and block if already locked 5'5'@@@@@@@5(F_TRLOCKT@@5(5(@4 6 Lock a region for reading, or fail if already locked 5(5(8@@@@@@@5@@A.,lock_command@@@h@@@@5"mm@48 Commands for {!lockf}. 5)995)9V@@@@@@@A@6@@@@@6$@@@@{{6 %y@@@@|ykk6&\`i@@@@li[[6'Y@@@@\YKK6(I@@@@LI@Aг;$Unix=6)"m6*"m@@D06(6'6'6(6(6(6(6(@8@@@A@@P@jP@g@@@@HF@@9@A  @@IG@I`@%lockfU6?+X\6@+Xa@б@г%*file_descr6J+Xd6K+Xn@@ @@@z06L6K6K6L6L6L6L6L@@A@@б$modeг,lock_command6]+Xw6^+X@@ @@@{@@б#lenг6#int6n+X6o+X@@ @@@|$@@г5Ԡ$unit6{+X6|+X@@ @@@}1@@@@~46+X @@3(@@86+Xr @@@?@@<B@@@6+XX@56 @ [lockf fd ~mode ~len] puts a lock on a region of the file opened as [fd]. The region starts at the current read/write position for [fd] (as set by {!lseek}), and extends [len] bytes forward if [len] is positive, [len] bytes backwards if [len] is negative, or to the end of the file if [len] is zero. A write lock prevents any other process from acquiring a read or write lock on the region. A read lock prevents any other process from acquiring a write lock on the region, but lets other processes acquire read locks on it. The [F_LOCK] and [F_TLOCK] commands attempts to put a write lock on the specified region. The [F_RLOCK] and [F_TRLOCK] commands attempts to put a read lock on the specified region. If one or several locks put by another process prevent the current process from acquiring the lock, [F_LOCK] and [F_RLOCK] block until these locks are removed, while [F_TLOCK] and [F_TRLOCK] fail immediately with an exception. The [F_ULOCK] removes whatever locks the current process has on the specified region. Finally, the [F_TEST] command tests whether a write lock can be acquired on the specified region, without actually putting a lock. It returns immediately if successful, or fails otherwise. What happens when a process tries to lock a region of a file that is already locked by the same process depends on the OS. On POSIX-compliant systems, the second lock operation succeeds and may "promote" the older lock from read lock to write lock. On Windows, the second lock operation will block or fail. 6,6I@@@@@@@6@"@O6 } {1 Signals} Note: installation of signal handlers is performed via the functions {!Sys.signal} and {!Sys.set_signal}. 6L6O_a@@@@@@066666666@_t#@A$killV6Qcg6Qck@б#pidг6n#int6Qcr6Qcu@@ @@@@@б&signalг6#int6Qc6Qc@@ @@@-@@г6;$unit6Qc6Qc@@ @@@:@@@@=6Qcy @@3(@@A6Qcn @@@6Qcc@5 [kill ~pid ~signal] sends signal number [signal] to the process with id [pid]. On Windows: only the {!Sys.sigkill} signal is emulated. 6R6U @@@@@@@7@@UA(3sigprocmask_commandWP7 W"'7 W":@@8@@+SIG_SETMASKX@@7XX\7XXg@@7-)SIG_BLOCKY@@7Yhj7Yhu@@76+SIG_UNBLOCKZ@@7'Zvx7(Zv@@7?@@A/3sigprocmask_command@@@@@@@72W"" @@A@7I@&&$#@@@@&@""7>Yhl @@@@#@7DZvz@@@@ @@Aг$Unix7NW"=7OW"U@@%07M7L7L7M7M7M7M7M@cL8@@@AS@@Q@Q@@@@@*@@@(@A @@+@@07Y7X7X7Y7Y7Y7Y7Y@ @A,6@+sigprocmask[7f\7g\@б$modeгh3sigprocmask_command7s\7t\@@ @@@07u7t7t7u7u7u7u7u@(sm@A@@б@г7$list7\7\@г78#int7\7\@@ @@@@@@@@@  @@г75$list7\7\@г7T#int7\7\@@ @@@7@@@@@@< @@@#@@?*@@PE@@B7\@@@7\@6f  [sigprocmask ~mode sigs] changes the set of blocked signals. If [mode] is [SIG_SETMASK], blocked signals are set to those in the list [sigs]. If [mode] is [SIG_BLOCK], the signals in [sigs] are added to the set of blocked signals. If [mode] is [SIG_UNBLOCK], the signals in [sigs] are removed from the set of blocked signals. [sigprocmask] returns the set of previously blocked signals. When the systhreads version of the [Thread] module is loaded, this function redirects to [Thread.sigmask]. I.e., [sigprocmask] only changes the mask of the current thread. @raise Invalid_argument on Windows (no inter-process signals on Windows) 7]7k`n@@@@@@@7@-@V*sigpending\7mpt7mp~@б@г7:$unit7mp7mp@@ @@@077777777@o,@A@@г7$list7mp7mp@г7#int7mp7mp@@ @@@@@@@@@ @@@$@@!'@@@8 mpp@6 Return the set of blocked signals that are currently pending. @raise Invalid_argument on Windows (no inter-process signals on Windows) 8n8q &@@@@@@@8.@)@4*sigsuspend]8"s(,8#s(6@б@г7 $list8-s(=8.s(A@г7᠐#int87s(988s(<@@ @@@08988888989898989@Wl6@A@@@ @@@ @@г7$unit8Ks(E8Ls(I@@ @@@@@@@@@@@8Vs(( @6  [sigsuspend sigs] atomically sets the blocked signals to [sigs] and waits for a non-ignored, non-blocked signal to be delivered. On return, the blocked signals are reset to their initial value. @raise Invalid_argument on Windows (no inter-process signals on Windows) 8btJJ8cyZh@@@@@@@8z@@*%pause^8n{jn8o{js@б@г7Ҡ$unit8y{jv8z{jz@@ @@@08{8z8z8{8{8{8{8{@Cb,@A@@г7᠐$unit8{j~8{j@@ @@@@@@@@@@@8{jj @7; Wait until a non-ignored, non-blocked signal is delivered. @raise Invalid_argument on Windows (no inter-process signals on Windows) 8|8@@@@@@@8@@%84 {1 Time functions} 880@@@@@@088888888@5J#@AA(-process_times_Q83883E@@8@@)tms_utime`@8~@@@8]a8]s@7s; User time for the process 8]u8]@@@@@@@8)tms_stimea@8@@@88@7= System time for the process 88@@@@@@@9*tms_cutimeb@8@@@88@7 & User time for the children processes 9 9 @@@@@@@9!*tms_cstimec@8@@@99,@7 ( System time for the children processes 9"-9#Z@@@@@@@9:@AA1-process_times@@@@@@@9-339.[^@7֐ / The execution times (CPU times) of a process. 9:__9;_@@@@@@@@@9R@}}x9B]j@@Ш@г%float9K]m9L]r@@09J9I9I9J9J9J9J9J@8@@@A@@R@R@@@@@+(@@@A  @@@S@ @{9^@@Ш@г%float9g9h@@@@@S@@yyt9p@@Ш@г|%float9y9z@@.@@@S@1@rrm9#@@Ш@гu%float9&9+@@}@@@@S@C@|y@Aгk$Unixm93H93Z@@tM@@ol@on@A("tmdR99@@8@@&tm_sece@9^@@@ڰ99@8[/ Seconds 0..60 99@@@@@@@9&tm_minf@9w@@@ݰ99@8t/ Minutes 0..59 99@@@@@@@9'tm_hourg@9@@@99%@8- Hours 0..23 939E@@@@@@@: 'tm_mdayh@9@@@9FJ9FX@84 Day of month 1..31 : Ff: F@@@@@@@:"&tm_moni@9@@@::@85 Month of year 0..11 :#:$@@@@@@@:; 'tm_yearj@9@@@:/:0@8ؐ- Year - 1900 :<:=@@@@@@@:T 'tm_wdayk@9@@@:H:I@8񐠠; Day of week (Sunday is 0) :U:V.@@@@@@@:m 'tm_ydayl@: @@@:a/3:b/A@9 4 Day of year 0..365 :n/O:o/h@@@@@@@: (tm_isdstm@:K@@@:zim:{i}@9# ! Daylight time savings in effect :i:i@@@@@@@: @@A3D"tm@@@@@@@::@9; 9 The type representing wallclock time and calendar date. ::@@@@@@@@@:@:@@Ш@г#int::@@0::::::::@8@@@A@@S@S@@@@@,)@@@A @@@T@@ :@@Ш@г#int::@@ @@ @T@ @:@@Ш@г#int:!:$@@/@@@T@2@:FQ@@Ш@г#int:FT:FW@@A@@@T@D@:@@Ш@г점#int;;@@S@@@T@V@; @@Ш@г堐#int;;@@e@@@T@h@۠۰;@@Ш@гޠ#int;';(@@w@@@T@z@Ԡ԰;0/:@@Ш@гנ#int;9/=;:/@@@@@@T@@۠͠Ͱ;Biu@@Ш@гР$bool;Kix;Li|@@@@@T@@@AгƠ$UnixȰ;X;Y@@@@@0;X;W;W;X;X;X;X;X@@A@$timen;e;f@б@г:ɠ$unit;p;q@@ @@@!0;r;q;q;r;r;r;r;r@@A@@г;1%float;; @@ @@@"@@@@@#@@@; @:2 J Return the current time since 00:00:00 GMT, Jan. 1, 1970, in seconds. ;;L]@@@@@@@;@@%,gettimeofdayo;_c;_o@б@г;$unit;_r;_v@@ @@@$0;;;;;;;;@>S,@A@@г;n%float;_z;_@@ @@@%@@@@@&@@@;__ @:o < Same as {!time}, but with resolution better than 1 second. ;;@@@@@@@;@@%&gmtimep;;@б@г;%float;;@@ @@@'0;;;;;;;;@>S,@A@@гT"tm;;@@ @@@(@@@@@)@@@< @:  Convert a time in seconds, as returned by {!time}, into a date and a time. Assumes UTC (Coordinated Universal Time), also known as GMT. To perform the inverse conversion, set the TZ environment variable to "UTC", use {!mktime}, and then restore the original value of TZ. <<@@@@@@@<(@@%)localtimeq<< @б@г;٠%float<' <(@@ @@@*0<)<(<(<)<)<)<)<)@>S,@A@@г"tm<6<7@@ @@@+@@@@@,@@@S,@A@@Вг<(%floatS,@A@@г<\$unit=[n=[r@@ @@@6@@@@@7@@@=[[ @; 1 Stop execution for the given number of seconds. =ss=sũ@@@@@@@=2@@%&sleepfu=&ūů='ūŵ@б@г<㠐%float=1ūŸ=2ūŽ@@ @@@80=3=2=2=3=3=3=3=3@>S,@A@@г<$unit=@ū=Aū@@ @@@9@@@@@:@@@=Kūū @;󐠠  Stop execution for the given number of seconds. Like [sleep], but fractions of seconds are supported. @since 4.12.0 =W=X6J@@@@@@@=o@@%%timesv=cLP=dLU@б@г<Ǡ$unit=nLX=oL\@@ @@@;0=p=o=o=p=p=p=p=p@>S,@A@@г-process_times=}L`=~Lm@@ @@@<@@@@@=@@@=LL @<0 Return the execution times of the process. On Windows: partially implemented, will not report timings for child processes. =nn=@@@@@@@=@@%&utimesw==@б@г=&string== @@ @@@>0========@>S,@A@@б&accessг=p%float==@@ @@@?@@б%modifг=%float=%=*@@ @@@@$@@г=5$unit=.=2@@ @@@A1@@@@B4= @@3(@@C8= @@@?@@D<B@@@=@<  Set the last access time (second arg) and last modification time (third arg) for a file. Times are expressed in seconds from 00:00:00 GMT, Jan. 1, 1970. If both times are [0.0], the access and last modification times are both set to the current time. =33=>@@@@@@@>@"@OA(.interval_timerxS>@E> @S@@8@@+ITIMER_REALy@@>lp>l{@< P decrements in real time, and sends the signal [SIGALRM] when expired.>|Ȃ> @@@@@@@>7.ITIMER_VIRTUALz@@>(>)@<ѐ S decrements in process virtual time, and sends [SIGVTALRM] when expired. >5>64I@@@@@@@>M+ITIMER_PROF{@@>>JL>?JY@<琠 (for profiling) decrements both when the process is running and when the system is running on behalf of the process; it sends [SIGPROF] when expired. >KZ`>L@@@@@@@>c@@A7.interval_timer@@@F@@@@>V@@@< % The three kinds of interval timers. >b>c9@@@@@@@A@>z@ZZXW@@@@ZWII>oG@@@@JG99>uJN7@@@@:7@Aг)$Unix+>@V>@i@@20>~>}>}>~>~>~>~>~@8@@@A@@T@HT@E@@@@75@@(@A @@86@0>>>>>>>>@ @A9P@A(5interval_timer_status|T>;@>;U@@8@@+it_interval}@>Y@@@Y>uy>uʍ@=N( Period >uʖ>uʣ@@@@@@@>(it_value~@>r@@@\>ʤʨ>ʤʹ@=g< Current value of the timer >ʤ>ʤ@@@@@@@>@AA75interval_timer_status@@@_@@@@>;;>@= 5 The type describing the status of an interval timer >>%@@@@@@@@@>@KKF>uʄ@@Ш@гN%float>uʇ>uʌ@@V0>>>>>>>>@ve8@@@Al@@U@aU@X@@@@,)@@@A @@d@V@Z@`]OOJ?ʤʰ@@Ш@гR%float?ʤʳ?ʤʸ@@Z@@]@V@] @YV@AгH$UnixJ?;X?;r@@Q*@@LI@0????????@*@AML@)getitimer?+'+?,'4@б@г..interval_timer?6'7?7'E@@ @@@v0?8?7?7?8?8?8?8?8@E@A@@г5interval_timer_status?E'I?F'^@@ @@@w@@@@@x@@@?P'' @= _ Return the current status of the given interval timer. @raise Invalid_argument on Windows ?\__?]˛@@@@@@@?t@@%)setitimer?h?i@б@гk.interval_timer?s?t@@ @@@y0?u?t?t?u?u?u?u?u@>S,@A@@б@г점5interval_timer_status??@@ @@@z@@г5interval_timer_status??@@ @@@{@@@@@|!@@@'@@}$* @@@?@>G  [setitimer t s] sets the interval timer [t] and returns its previous status. The [s] argument is interpreted as follows: [s.it_value], if nonzero, is the time to the next timer expiration; [s.it_interval], if nonzero, specifies a value to be used in reloading [it_value] when the timer expires. Setting [s.it_value] to zero disables the timer. Setting [s.it_interval] to zero causes the timer to be disabled after its next expiration. @raise Invalid_argument on Windows ?? @@@@@@@? @@7?7 {1 User id, group id} ??,@@@@@@0????????@G\#@A&getuid?.2?.8@б@г?,$unit?.;?.?@@ @@@~@@г?#int?.C?.F@@ @@@'@@@@@*@@@?.. @> [ Return the user id of the user executing the process. On Windows: always returns [1]. ?GG?΂Χ@@@@@@@@!@@='geteuid@Ωέ@Ωδ@б@г?g$unit@Ωη@Ωλ@@ @@@0@@@@@@@@@VQ,@A@@г?Ǡ#int@Ωο@Ω@@ @@@@@@@@@@@@(ΩΩ @>А ` Return the effective user id under which the process runs. On Windows: always returns [1]. @4@5(@@@@@@@@L"@@%&setuid@@*.@A*4@б@г?#int@K*7@L*:@@ @@@0@M@L@L@M@M@M@M@M@>S,@A@@г?$unit@Z*>@[*B@@ @@@@@@@@@@@@e** @? d Set the real user id and effective user id for the process. @raise Invalid_argument on Windows @qCC@rτϬ@@@@@@@@#@@%&getgid@}Ϯϲ@~Ϯϸ@б@г?᠐$unit@Ϯϻ@ϮϿ@@ @@@0@@@@@@@@@>S,@A@@г@A#int@Ϯ@Ϯ@@ @@@@@@@@@@@@ϮϮ @?J \ Return the group id of the user executing the process. On Windows: always returns [1]. @ @ (@@@@@@@@$@@%'getegid@ *.@ *5@б@г@$unit@ *8@ *<@@ @@@0@@@@@@@@@>S,@A@@г@~#int@ *@@ *C@@ @@@@@@@@@@@@ ** @? a Return the effective group id under which the process runs. On Windows: always returns [1]. @DD@ЅЪ@@@@@@@A%@@%&setgid@Ьа@Ьж@б@г@#intAЬйAЬм@@ @@@0AAAAAAAA@>S,@A@@г@j$unitAЬAЬ@@ @@@@@@@@@@@AЬЬ @?Đ f Set the real group id and effective group id for the process. @raise Invalid_argument on Windows A(A)0@@@@@@@A@&@@%)getgroupsA426A52?@б@г@$unitA?2BA@2F@@ @@@0AAA@A@AAAAAAAAAA@>S,@A@@гA&%arrayAN2NAO2S@гA#intAX2JAY2M@@ @@@@@@@@@ @@@$@@!'@@@Ah22@@ w Return the list of groups to which the user executing the process belongs. On Windows: always returns [[|1|]]. AtTTAuѧ@@@@@@@A'@)@4)setgroupsAA@б@гAc%arrayAA@гA?#intAA@@ @@@0AAAAAAAA@Wl6@A@@@ @@@ @@гA$unitAA@@ @@@@@@@@@@@A @@\ [setgroups groups] sets the supplementary group IDs for the calling process. Appropriate privileges are required. @raise Invalid_argument on Windows AA!oҘ@@@@@@@A(@@**initgroupsA#ҚҞA#ҚҨ@б@гA4&stringA#ҚҫA#Құ@@ @@@0AAAAAAAA@Cb,@A@@б@гA#intA#ҚҵA#ҚҸ@@ @@@@@гAN$unitA#ҚҼA#Қ@@ @@@@@@@@!@@@'@@$* @@@B#ҚҚ@@  [initgroups user group] initializes the group access list by reading the group database /etc/group and using all groups of which [user] is a member. The additional group [group] is also added to the list. @raise Invalid_argument on Windows B$B)ӟ@@@@@@@B')@@7A(,passwd_entryUB+B+@@8@@'pw_name@A@@@B),B*,@@BA+)pw_passwd@A@@@B5- B6-@@BM,&pw_uid@A@@@BA. $BB. 1@@BY-&pw_gid@A@@@BM/26BN/2C@@Be.(pw_gecos@A@@@BY0DHBZ0DZ@@Bq/&pw_dir@A@@@Be1[_Bf1[o@@B}0(pw_shell@A@@@Bq2ptBr2pԅ@@B1@@A;.,passwd_entry@@@@@@@B|+B}3Ԇԉ@A% 0 Structure of entries in the [passwd] database. B4ԊԊB4ԊԿ@@@@@@@@@B*@mmhB,@@Ш@гp&stringB,B,@@x0BBBBBBBB@8@@@A@@V@V@@@@@,)@@@A @@@W@@@~~yB-@@Ш@г&stringB-B-@@@@@W@ @@B. *@@Ш@г#intB. -B. 0@@/@@@W@2@@B/2<@@Ш@г#intB/2?B/2B@@A@@@W@D@@B0DP@@Ш@г&stringB0DSB0DY@@S@@@W@V@@B1[e@@Ш@г&stringB1[hC1[n@@e@@@W@h@@C2p|@@Ш@г&stringC2p@@v@@@W@y@@@Aг$UnixC+C+@@@@@0CCCCCCCC@@A@A(+group_entryVC+6C,6@@8@@'gr_name@B@@@ܰC87C97@@CP3)gr_passwd@B@@@߰CD8CE8@@C\4&gr_gid@B@@@CP9CQ9&@@Ch5&gr_mem@C6B@@@@@@Ca:'+Cb:'@@@Cy6@@A<+group_entry@@@@@@@Cl6Cm;AD@B 0 Structure of entries in the [groups] database. Cy<EECz<Ez@@@@@@@@@C2@NNIC7@@Ш@гQ&stringC7C7@@Y0CCCCCCCC@wqh8@@@Ao@@W@W@@@@@,)@@@A @@g@X@@c@__ZC8 @@Ш@гb&stringC8 C8@@j@@m@X@ @i@ee`C9@@Ш@гh#intC9"C9%@@p/@@s@X@2@o@kkaC:'1@@Ш@гn%arrayC:';j@гr&stringC:'4C:':@@zI@@@Ju@@@X@M@y@@Aгu$UnixwC6C6@@~W@@yv@0CCCCCCCC@W@Azy@(getloginC>|ՀC>|Ո@б@гCR$unitC>|ՋC>|Տ@@ @@@ 0CCCCCCCC@r@A@@гCe&stringD>|ՓD >|ՙ@@ @@@ @@@@@ @@@D>|| @B : Return the login name of the user executing the process. D?՚՚D ?՚@@@@@@@D77@@%(getpwnamD+AD,A@б@гC&stringD6AD7A@@ @@@0D8D7D7D8D8D8D8D8@>S,@A@@г),passwd_entryDEADFA@@ @@@@@@@@@@@DPA @B s Find an entry in [passwd] with the given name. @raise Not_found if no such entry exists, or always on Windows. D\BD]C4y@@@@@@@Dt8@@%(getgrnamDhE{DiE{և@б@гCР&stringDsE{֊DtE{֐@@ @@@0DuDtDtDuDuDuDuDu@>S,@A@@гW+group_entryDE{֔DE{֟@@ @@@@@@@@@@@DE{{ @C5 s Find an entry in [group] with the given name. @raise Not_found if no such entry exists, or always on Windows. DF֠֠DH@@@@@@@D9@@%(getpwuidDJDJ&@б@гDZ#intDJ)DJ,@@ @@@0DDDDDDDD@>S,@A@@г,passwd_entryDJ0DJ<@@ @@@@@@@@@@@DJ @Cr w Find an entry in [passwd] with the given user id. @raise Not_found if no such entry exists, or always on Windows. DK==DMt׹@@@@@@@D:@@%(getgrgidDO׻׿DO׻@б@гD#intDO׻DO׻@@ @@@0DDDDDDDD@>S,@A@@гѠ+group_entryDO׻DO׻@@ @@@@@@@@@@@EO׻׻ @C w Find an entry in [group] with the given group id. @raise Not_found if no such entry exists, or always on Windows. EPERY@@@@@@@E+;@@%E)8 {1 Internet addresses} E$U\\E%U\y@@@@@@0E#E"E"E#E#E#E#E#@5J#@AA()inet_addrWE1X|؁E2X|؊@@8@@@A=)inet_addr@@@@@@@E<X||E=X|؛@C吠 * The abstract type of Internet addresses. EIY؜؜EJY؜@@@@@@@@@Ea<@@Aг$UnixETX|؍@@ 0EREQEQERERERERER@0*8@@@A1@@X@X@@@@@$!@@@A #@@%"@:%$@3inet_addr_of_stringEi[Ej[@б@гDѠ&stringEt[Eu[@@ @@@#0EvEuEuEvEvEvEvEv@TNH@A@@гR)inet_addrE[E[@@ @@@$@@@@@%@@@E[ @D6 c Conversion from the printable representation of an Internet address to its internal representation. The argument string consists of 4 numbers separated by periods ([XXX.YYY.ZZZ.TTT]) for IPv4 addresses, and up to 8 numbers separated by colons for IPv6 addresses. @raise Failure when given a string that does not match these formats. E\Eac@@@@@@@E=@@%3string_of_inet_addrEceiEce|@б@г)inet_addrEceEceڈ@@ @@@&0EEEEEEEE@>S,@A@@гE&stringEceڌEceڒ@@ @@@'@@@@@(@@@Ecee @Ds Return the printable representation of the given Internet address. See {!inet_addr_of_string} for a description of the printable representation. EdړړEf2@@@@@@@E>@@%-inet_addr_anyEh48Eh4E@г)inet_addrEh4HEh4Q@@ @@@)0EEEEEEEE@<Q*@A@@@Eh44 @D  A special IPv4 address, for use only with [bind], representing all the Internet addresses that the host machine possesses. FiRRFjە@@@@@@@F?@@2inet_addr_loopbackFlFl@г栐)inet_addrFlFl@@ @@@*0FFFFFFFF@,?*@A@@@F!l @Dɐ E A special IPv4 address representing the host machine ([127.0.0.1]). F-mF.mE@@@@@@@FE@@@.inet6_addr_anyF9oGKF:oGY@г)inet_addrFBoG\FCoGe@@ @@@+0FDFCFCFDFDFDFDFD@,?*@A@@@FLoGG @D  A special IPv6 address, for use only with [bind], representing all the Internet addresses that the host machine possesses. FXpffFYqܩ@@@@@@@FpA@@3inet6_addr_loopbackFdsFes@г<)inet_addrFmsFns@@ @@@,0FoFnFnFoFoFoFoFo@,?*@A@@@Fws @E ? A special IPv6 address representing the host machine ([::1]). FtFtT@@@@@@@FB@@-is_inet6_addrFvVZFvVg@б@гi)inet_addrFvVjFvVs@@ @@@-0FFFFFFFF@.A,@A@@гFx$boolFvVwFvV{@@ @@@.@@@@@/@@@FvVV @E\ E Whether the given [inet_addr] is an IPv6 address. @since 4.12.0 Fw||Fxݲ@@@@@@@FC@@%F֐- {1 Sockets} FzFz@@@@@@0FFFFFFFF@5J#@AA(-socket_domainXF}F}@@8@@'PF_UNIX@@F~ F~@E- Unix domain F~'F~9@@@@@@@G E'PF_INET@@F:<F:E@E8 Internet domain (IPv4) G :ZG :w@@@@@@@G#F(PF_INET6@@GxzGxބ@E8 Internet domain (IPv6) G!xޘG"x޵@@@@@@@G9G@@A?-socket_domain@@@1@@@@G,}@EԐ The type of socket domains. Not all platforms support IPv6 sockets (type [PF_INET6]). On Windows: [PF_UNIX] supported since 4.14.0 on Windows 10 1803 and later. G8޶޶G9Yj@@@@@@@A@GPD@ZZXW@@@@ZWIIGE:>G@@@@JG99GKx|7@@@@:7@Aг)$Unix+GU}GV}@@20GTGSGSGTGTGTGTGT@8@@@A@@Y@3Y@0@@@@64@@'@A  @@75@7N@A(+socket_typeYGllqGml|@@8@@+SOCK_STREAM@@GvߒߖGwߒߡ@F/ Stream socket Gߒ߲Gߒ@@@@@@@GI*SOCK_DGRAM@@GG@F51 Datagram socket GG@@@@@@@GJ(SOCK_RAW@@GG @FK, Raw socket GG/@@@@@@@GK.SOCK_SEQPACKET@@G02G0B@Fa: Sequenced packets socket G0PG0o@@@@@@@GL@@A@+socket_type@@@D@@@@Gll@Fx The type of socket kinds, specifying the semantics of communications. [SOCK_SEQPACKET] is included for completeness, but is rarely supported by the OS, and needs system calls that are not available in this library. GppG/W@@@@@@@A@GH@ppnm@@@@pm__G]@@@@`]OOGM@@@@PM??G04=@@@@@=@Aг/$Unix1GlHlߏ@@80GGGGGGGG@0*$8@@@A@@Z@FZ@C@@@@=;@@.@A @@><@0H H H H H H H H @ @A?V@A((sockaddrZHY^HYf@@8@@)ADDR_UNIXG@@@W@@H'y}H(y@@H?N)ADDR_INET@@@XG@@@Y@@H:H;@@HRO@@A@(sockaddr@@@Z@@@@HEYY @F퐠  The type of socket addresses. [ADDR_UNIX name] is a socket address in the Unix domain; [name] is a file name in the file system. [ADDR_INET(addr,port)] is a socket address in the Internet domain; [addr] is the Internet address of the machine, and [port] is the port number. HQHR@@@@@@@@@HiM@992HYy@@г:&stringHby;@@A0H`H_H_H`H`H`H`H`@cR8@@@AY@@[@\[@V@@@@*(@@@A G@@@@I@EEHsHt@@гG)inet_addrH}H~@@O@@гL#intHM@@S%N@@@@P@@AгL$UnixNHYiHYv@@U0@@PN@0HHHHHHHH@0@AQ[@&socketHH@б'cloexecгHz$boolHH@@ @@@v0HHHHHHHH@M@A@@б&domainгࠐ-socket_domainH"-H":@@ @@@w@@б$kindгc+socket_typeH"CH"N@@ @@@x$@@б(protocolгH#intH"[H"^@@ @@@y5@@г8$*file_descrH"bH"l@@ @@@zB@@@@{EH"R @@3(@@|IH"> @@H=@@}MH"&@@_& W@@@~ @@UI@@ @I @G  Create a new socket in the given domain, and with the given kind. The third argument is the protocol type; 0 selects the default protocol for that kind of sockets. See {!set_close_on_exec} for documentation on the [cloexec] optional argument. ImmIZr@@@@@@@I-P@+@i2domain_of_sockaddrI!txI"t@б@г(sockaddrI,tI-t@@ @@@0I.I-I-I.I.I.I.I.@,@A@@г]-socket_domainI;tI<t@@ @@@@@@@@@@@IFtt @G A Return the socket domain adequate for the given socket address. IRIS@@@@@@@IjQ@@%*socketpairI^I_@б'cloexecгI:$boolIk/Il3@@ @@@0ImIlIlImImImImIm@@U.@A@@б&domainг-socket_domainI~7BI7O@@ @@@@@б$kindг#+socket_typeI7XI7c@@ @@@$@@б(protocolгIJ#intI7pI7s@@ @@@5@@Вг8砐*file_descrIw{Iw@@ @@@E@@г8*file_descrIwIw@@ @@@S@@@@@X @@4)@@[I7g@@I>@@_I7S@@^S@@cI7;@@u&m@@@ @@kI@@ @I!@H Create a pair of unnamed sockets, connected together. See {!set_close_on_exec} for documentation on the [cloexec] optional argument. @raise Invalid_argument on Windows II#K@@@@@@@JR@0@&acceptIMQIMW@б'cloexecгIӠ$boolJMJM@@ @@@0JJJJJJJJ@.@A@@б@г9L*file_descrJJ@@ @@@@@Вг9\*file_descrJ%J&@@ @@@!@@г(sockaddrJ3J4@@ @@@/@@@@@4 @@@)@@7, @@H'L@@@@ @@>JHMZ@@ @JKMM@H󐠠 Accept connections on the given socket. The returned descriptor is a socket connected to the client; the returned address is the address of the connecting client. See {!set_close_on_exec} for documentation on the [cloexec] optional argument. JWJX@@@@@@@JoS@'@R$bindJcJd@б@г9*file_descrJnJo@@ @@@0JpJoJoJpJpJpJpJp@k,@A@@б$addrгi(sockaddrJJ@@ @@@@@гI砐$unitJJ@@ @@@ @@@@#J @@@*@@'- @@@J@IE> Bind a socket to an address. JJ@@@@@@@JT@@:'connectJJ&@б@г9*file_descrJ)J3@@ @@@0JJJJJJJJ@Sh,@A@@б$addrг(sockaddrJ<JD@@ @@@@@гJ9$unitJHJL@@ @@@ @@@@#J7 @@@*@@'- @@@J@I ! Connect a socket to an address. JMMJMs@@@@@@@KU@@:&listenKuyKu@б@г:I*file_descrKuKu@@ @@@0KKKKKKKK@Sh,@A@@б#maxгJϠ#intK%uK&u@@ @@@@@гJ$unitK2uK3u@@ @@@ @@@@#K;u @@@*@@'- @@@KAuu@I鐠 w Set up a socket for receiving connection requests. The integer argument is the maximal number of pending requests. KMKN@@@@@@@KeV@@:A(0shutdown_command[KZ#K[3@@8@@0SHUTDOWN_RECEIVE@@KdNRKeNb@J 5 Close for receiving KqNnKrN@@@@@@@KX-SHUTDOWN_SEND@@KzK{@J#3 Close for sending KK@@@@@@@KY,SHUTDOWN_ALL@@KK@J9, Close both KK@@@@@@@KZ@@ADZ0shutdown_command@@@@@@@K@JP & The type of commands for [shutdown]. KK@@@@@@@A@KW@ZZXW@@@@ZWIIKG@@@@JG99K7@@@@:7@Aг)$Unix+K6KK@@20KKKKKKKK@8@@@A@@\@\@@@@@75@@(@A @@86@0KKKKKKKK@ @A9P@(shutdownK"&K".@б@г;+*file_descrK"1K";@@ @@@0KKKKKKKK@&@A@@б$modeг0shutdown_commandL"DL"T@@ @@@@@гKm$unitL"XL"\@@ @@@ @@@@#L"? @@@*@@'- @@@L#""@Jː  Shutdown a socket connection. [SHUTDOWN_SEND] as second argument causes reads on the other end of the connection to return an end-of-file condition. [SHUTDOWN_RECEIVE] causes writes on the other end of the connection to return a closed pipe condition ([SIGPIPE] signal). L/]]L0C~@@@@@@@LG[@@:+getsocknameL;L<@б@г;}*file_descrLFLG@@ @@@0LHLGLGLHLHLHLHLH@Sh,@A@@г=(sockaddrLULV@@ @@@@@@@@@@@L` @K ) Return the address of the given socket. LlLm@@@@@@@L\@@%+getpeernameLxLy@б@г;*file_descrLL@@ @@@0LLLLLLLL@>S,@A@@гz(sockaddrLL@@ @@@@@@@@@@@L @KE ? Return the address of the host connected to the given socket. LLF@@@@@@@L]@@%A((msg_flag\LHMLHU@@8@@'MSG_OOB@@LhlLhs@@L_-MSG_DONTROUTE@@LtvLt@@L`(MSG_PEEK@@LL@@La@@AE(msg_flag@@@@@@@LHH @K < The flags for {!recv}, {!recvfrom}, {!send} and {!sendto}. LL@@@@@@@A@M^@3310@@@@3@//Ltx-@@@@0@,,L*@@@@-@@Aг)$Unix+MHXMHe@@20MMMMMMMM@pY8@@@A`@@]@]@@@@@75@@(@A @@86@0MMMMMMMM@ @A9C@$recv MM@б@г<`*file_descrM)M*@@ @@@0M+M*M*M+M+M+M+M+@&~x@A@@б#bufгL %bytesM<M=@@ @@@@@б#posгL#intMMMN @@ @@@$@@б#lenгM#intM^M_@@ @@@5@@б$modeгM$listMo'Mp+@гà(msg_flagMyMz&@@ @@@P@@@@@@U @@гM5#intM/M2@@ @@@b@@-@@eM @@B7@@iM @@WL@@mM@@la@@qM@@@x@@u{@@@M@LN ' Receive data from a connected socket. M33M3_@@@@@@@Mb@*@(recvfromàMaeMam@б@г=*file_descrMprMp|@@ @@@0MMMMMMMM@,@A@@б#bufгL%bytesMpMp@@ @@@@@б#posгM#intMpMp@@ @@@$@@б#lenгM#intMpMp@@ @@@5@@б$modeгM$listNpNp@гc(msg_flagNpNp@@ @@@P@@@@@@U @@ВгMؠ#intN.N/@@ @@@e@@г$(sockaddrN<N=@@ @@@s@@@@@x @@C*@@{NJp@@XM@@NNp@@mb@@NRp@@w@@NVp@@@@@@@@N\aa @M * Receive data from an unconnected socket. NhNi@@@@@@@Nc@/@$sendĠNtNu@б@г=*file_descrN N@@ @@@0NNNNNNNN@,@A@@б#bufгM`%bytesNN!@@ @@@@@б#posгNM#intN)N,@@ @@@$@@б#lenгN^#intN4N7@@ @@@5@@б$modeгNZ$listNINM@г(msg_flagN@NH@@ @@@P@@@@@@U @@гN#intNQNT@@ @@@b@@-@@eN; @@B7@@iN0 @@WL@@mN%@@la@@qN@@@x@@u{@@@N@M $ Send data over a connected socket. OUUO U~@@@@@@@O d@*@.send_substringŠOO@б@г>V*file_descrOO @@ @@@0O!O O O!O!O!O!O!@,@A@@б#bufгN&stringO2O3@@ @@@@@б#posгN#intOCOD@@ @@@$@@б#lenгN#intOTOU@@ @@@5@@б$modeгN$listOeOf@г(msg_flagOoOp@@ @@@P@@@@@@U @@гO+#intOO@@ @@@b@@-@@eO @@B7@@ iO @@WL@@ mO@@la@@ qO@@@x@@ u{@@@O@ND c Same as [send], but take the data from a string instead of a byte sequence. @since 4.02.0 OO7K@@@@@@@Oe@*@&sendtoƠOMQOMW@б@г>*file_descrOZ\OZf@@ @@@ 0OOOOOOOO@,@A@@б#bufгN%bytesOZnOZs@@ @@@@@б#posгO#intOZ{OZ~@@ @@@$@@б#lenгO#intOZOZ@@ @@@5@@б$modeгO$listPZPZ@гY(msg_flagPZPZ@@ @@@P@@@@@@U @@б$addrг (sockaddrP%P&@@ @@@f@@гOܠ#intP2P3@@ @@@s@@@@vP; @@B)@@zP?Z @@WL@@~PCZ@@la@@PGZw@@v@@PKZj@@@@@@@@PQMM@N ' Send data over an unconnected socket. P]P^@@@@@@@Puf@.@0sendto_substringǠPiPj@б@г?*file_descrPtPu @@ @@@0PvPuPuPvPvPvPvPv@,@A@@б#bufгO䠐&stringPP@@ @@@@@б#posгPB#intP#P&@@ @@@$@@б#lenгPS#intP.P1@@ @@@5@@б$modeгPO$listPCPG@г(msg_flagP:PB@@ @@@ P@@@@@@"U @@б@г(sockaddrPHMPHU@@ @@@#d@@гP#intPHYPH\@@ @@@$q@@@@@%t@@?&@@&wP5 @@TI@@'{P*@@i^@@(P@@~s@@)P@@@@@*@@@Q@O e Same as [sendto], but take the data from a string instead of a byte sequence. @since 4.02.0 Q]]Q@@@@@@@Q'g@-@Q%4 {1 Socket options} Q Q!@@@@@@0QQQQQQQQ@#@AA(2socket_bool_option]Q-Q.@@8@@(SO_DEBUGɐ@@Q7Q8'@O> Record debugging information QD.QEQ@@@@@@@Q\i,SO_BROADCASTʐ@@QMRTQNRb@O & Permit sending of broadcast messages QZReQ[R@@@@@@@Qrj,SO_REUSEADDRː@@QcQd@P ) Allow reuse of local addresses for bind QpQq@@@@@@@Qk,SO_KEEPALIVE̐@@QyQz@P"8 Keep connection active QQ@@@@@@@Ql,SO_DONTROUTE͐@@QQ@P8 ( Bypass the standard routing algorithms QQD@@@@@@@Qm,SO_OOBINLINEΐ@@QEGQEU@PN Leave out-of-band data in line QEXQE}@@@@@@@Qn-SO_ACCEPTCONNϐ@@Q~Q~@Pd , Report whether socket listening is enabled Q~Q~@@@@@@@Qo+TCP_NODELAYА@@QQ@Pz - Control the Nagle algorithm for TCP sockets QQ@@@@@@@Qp)IPV6_ONLYѐ@@Q   Q  @P 2 Forbid binding an IPv6 socket to an IPv4 address Q  Q  S@@@@@@@R q,SO_REUSEPORTҐ@@Q TVQ Td@P * Allow reuse of address and port bindings R  TgR  T@@@@@@@R"r@@AJ2socket_bool_option@@@,@@@@R@P The socket options that can be consulted with {!getsockopt} and modified with {!setsockopt}. These options have a boolean ([true]/[false]) value. R! R" 6@@@@@@@A@R9h@@@@@R.RV@@@@ӠӰR4@@@@ѠàðR:@@@@R@@@@@RFEI@@@@RL~@@@@RR@@@@ssRX   q@@@@tqccR^ TXa@@@@da@AгS$UnixURhRi@@\0RgRfRfRgRgRgRgRg@IC8@@@AJ@@^@.^@+@@@@`^@@Q@A  @@a_@Sax@A(1socket_int_option^R8=R8N@@8@@)SO_SNDBUFԐ@@RjnRjw@Q25 Size of send buffer Rj{Rj@@@@@@@Rt)SO_RCVBUFՐ@@RR@QH9 Size of received buffer RR@@@@@@@Ru(SO_ERROR֐@@RR@Q^ / Deprecated. Use {!getsockopt_error} instead. RR @@@@@@@Rv'SO_TYPEא@@R R @Qt8 Report the socket type R R :@@@@@@@Rw+SO_RCVLOWATؐ@@R;=R;J@Q 9 Minimum number of bytes to process for input operations R;LR;@@@@@@@Sx+SO_SNDLOWATِ@@RR@Q : Minimum number of bytes to process for output operations SS@@@@@@@Sy@@AK1socket_int_option@@@?@@@@S88@Q The socket options that can be consulted with {!getsockopt_int} and modified with {!setsockopt_int}. These options have an integer value. SS_s@@@@@@@A@S3s@@@@@S(@@@@{{S.y@@@@|ykkS4 i@@@@li[[S:;?Y@@@@\YKKS@I@@@@LI@Aг;$Unix=SJ8QSK8g@@D0SISHSHSISISISISI@,& 8@@@A@@_@A_@>@@@@IG@@:@A @@JH@0SUSTSTSUSUSUSUSU@ @AKb@A(4socket_optint_option_ScuzSdu@@8@@)SO_LINGERې@@SmSn@R Whether to linger on closed connections that have data present, and for how long (in seconds) SzS{'J@@@@@@@S{@@AL74socket_optint_option@@@R@@@@Suu@R- The socket options that can be consulted with {!getsockopt_optint} and modified with {!setsockopt_optint}. These options have a value of type [int option], with [None] meaning ``disabled''. SKKS @@@@@@@A@Sz@..,+@@@@.+@Aг$UnixSuSu@@&0SSSSSSSS@Y,&H8@@@AO@@`@T`@Q@@@@+)@@@A @@,*@0SSSSSSSS@ @A-D@A(3socket_float_option`S"S"0@@8@@+SO_RCVTIMEOݐ@@S#NRS#N]@Rn> Timeout for input operations S#NaS#N@@@@@@@S}+SO_SNDTIMEOސ@@S$S$@R? Timeout for output operations S$S$@@@@@@@T~@@AL3socket_float_option@@@e@@@@S"@R The socket options that can be consulted with {!getsockopt_float} and modified with {!setsockopt_float}. These options have a floating-point value representing a time in seconds. The value 0 means infinite timeout. S%T({@@@@@@@A@T|@DDBA@@@@DA33T $1@@@@41@Aг#$Unix%T"3T"K@@,0TTTTTTTT@ud8@@@Ak@@a@ga@d@@@@1/@@"@A @@20@0T!T T T!T!T!T!T!@ @A3J@*getsockoptߠT.*T/*@б@гCp*file_descrT9*T:*@@ @@@w0T;T:T:T;T;T;T;T;@&@A@@б@г2socket_bool_optionTJ*TK*@@ @@@x@@гT&$boolTW*TX*@@ @@@y@@@@@z!@@@'@@{$* @@@Te*@S N Return the current status of a boolean-valued option in the given socket. Tq+Tr,3@@@@@@@T@@7*setsockoptT}.59T~.5C@б@гC*file_descrT.5FT.5P@@ @@@|0TTTTTTTT@Pe,@A@@б@гl2socket_bool_optionT.5TT.5f@@ @@@}@@б@гTw$boolT.5jT.5n@@ @@@~ @@гT$unitT.5rT.5v@@ @@@-@@@@@0@@@%@@3( @@@9@@6<@@@T.55@Sn ; Set or clear a boolean-valued option in the given socket. T/wwT/w@@@@@@@T@ @I.getsockopt_intT1T1@б@гD *file_descrT1T1@@ @@@0TTTTTTTT@bw,@A@@б@г{1socket_int_optionT1T1@@ @@@@@гT#intU1U1@@ @@@@@@@@!@@@'@@$* @@@U1@S < Same as {!getsockopt} for an integer-valued socket option. U!2U"26@@@@@@@U9@@7.setsockopt_intU-48<U.48J@б@гDo*file_descrU848MU948W@@ @@@0U:U9U9U:U:U:U:U:@Pe,@A@@б@гʠ1socket_int_optionUI48[UJ48l@@ @@@@@б@гU#intUX48pUY48s@@ @@@ @@гT$unitUe48wUf48{@@ @@@-@@@@@0@@@%@@3( @@@9@@6<@@@Uv488@T < Same as {!setsockopt} for an integer-valued socket option. U5||U5|@@@@@@@U@ @I1getsockopt_optintU7U7@б@гDР*file_descrU7U7@@ @@@0UUUUUUUU@bw,@A@@б@гG4socket_optint_optionU7U7@@ @@@@@гU+&optionU7U7@гUk#intU7U7@@ @@@(@@@@@@- @@@"@@0%@@@6@@39@@@U7@T| O Same as {!getsockopt} for a socket option whose value is an [int option]. U8U9E\@@@@@@@U@,@F1setsockopt_optintU;^bU;^s@б@гE.*file_descrU<v|U<v@@ @@@0UUUUUUUU@_t,@A@@б@г4socket_optint_optionV<vV <v@@ @@@@@б@гU&optionV<vV<v@гUˠ#intV!<vV"<v@@ @@@*@@@@@@/ @@гU$unitV3<vV4<v@@ @@@<@@@@@?@@@4@@B7 @@@H@@EK@@@VD;^^@T쐠 O Same as {!setsockopt} for a socket option whose value is an [int option]. VP=VQ> @@@@@@@Vh@ @X0getsockopt_floatV\@ V]@ @б@гE*file_descrVg@ "Vh@ ,@@ @@@0ViVhVhViViViViVi@q,@A@@б@г3socket_float_optionVx@ 0Vy@ C@@ @@@@@гV7%floatV@ GV@ L@@ @@@@@@@@!@@@'@@$* @@@V@  @U; W Same as {!getsockopt} for a socket option whose value is a floating-point number. VAMMVB@@@@@@@V@@70setsockopt_floatVDVD@б@гE*file_descrVDVD@@ @@@0VVVVVVVV@Pe,@A@@б@г 3socket_float_optionVDVD@@ @@@@@б@гV%floatVDVD@@ @@@ @@гV<$unitVDVD@@ @@@-@@@@@0@@@%@@3( @@@9@@6<@@@VD@U W Same as {!setsockopt} for a socket option whose value is a floating-point number. WEWF4Q@@@@@@@W@ @I0getsockopt_errorW HSWW HSg@б@гFN*file_descrWHSjWHSt@@ @@@0WWWWWWWW@bw,@A@@гV&optionW&HS~W'HS@гU㠐%errorW0HSxW1HS}@@ @@@@@@@@@ @@@$@@!'@@@W@HSS@U萠 P Return the error condition associated with the given socket, and clear it. WLIWMJ@@@@@@@Wd@)@4Wb - {1 High-level network connection functions} W]LW^L@@@@@@0W\W[W[W\W\W\W\W\@DY#@A/open_connectionWiOWjO$@б@г\(sockaddrWtO'WuO/@@ @@@@@ВгVN*in_channelWO3WO=@@ @@@*@@гV\+out_channelWO@WOK@@ @@@8@@@@@= @@@)@@@, @@@WO@VJ . Connect to a server at the given address. Return a pair of buffered channels connected to the server. Remember to call {!Stdlib.flush} on the output channel at the right times to ensure correct synchronization. The two channels returned by [open_connection] share a descriptor to a socket. Therefore, when the connection is over, you should call {!Stdlib.close_out} on the output channel, which will also close the underlying socket. Do not call {!Stdlib.close_in} on the input channel; it will be collected by the GC eventually. WPLLWZ}@@@@@@@W@@S3shutdown_connectionW]W]@б@гV*in_channelW]W]@@ @@@0WWWWWWWW@lg,@A@@гW-$unitW]W]@@ @@@@@@@@@@@W] @V M ``Shut down'' a connection established with {!open_connection}; that is, transmit an end-of-file condition to the server reading on the other side of the connection. This does not close the socket and the channels used by the connection. See {!Unix.open_connection} for how to close them once the connection is over. W^Wc@@@@@@@X@@%0establish_serverWeWe@б@б@гV*in_channelXfXf'@@ @@@0XXXXXXXX@@U.@A@@б@гV+out_channelXf+Xf6@@ @@@@@гW{$unitX"f:X#f>@@ @@@@@@@@!@@@'@@$* @@б$addrг!(sockaddrX9fHX:fP@@ @@@5@@гW$unitXFfTXGfX@@ @@@B@@@@EXOfC @@@'@@IXSf @@@XVe@V  Establish a server on the given address. The function given as first argument is called for each connection with two buffered channels connected to the client. A new process is created for each connection. The function {!establish_server} never returns normally. The two channels given to the function share a descriptor to a socket. The function does not need to close the channels, since this occurs automatically when the function returns. If the function prefers explicit closing, it should close the output channel using {!Stdlib.close_out} and leave the input channel unclosed, for reasons explained in {!Unix.in_channel_of_descr}. @raise Invalid_argument on Windows. Use threads instead. XbgYYXct;@@@@@@@Xz@@]Xx ! {1 Host and protocol databases} Xsw>>Xtw>d@@@@@@0XrXqXqXrXrXrXrXr@m#@AA(*host_entryaXyfkXyfu@@8@@&h_name@W@@@°XzXz@@X)h_aliases@XsW@@@@@@ǰX{X{@@X*h_addrtype@@@@ʰX|X|@@X+h_addr_list@X@@@@@@ϰX}X}@@X@@AQx*host_entry@@@@@@@XyffX~@Wo / Structure of entries in the [hosts] database. XX7@@@@@@@@@X@SSNXz@@Ш@гV&stringXzXz@@^0XXXXXXXX@rl8@@@As@@b@b@@@@@+(@@@A  @@k@c@ @g@ccYX{@@Ш@гf%arrayY{Y{@гk&stringY {Y {@@s%@@@x& @@{@c@)@r@nniY|@@Ш@гq-socket_domainY|Y|@@y8@@|@c@;@x@ttjY%}@@Ш@гw%arrayY.}s@г{)inet_addrY6}Y7}@@R@@@S~@@@c@V@@@Aг~$UnixYDyfxYEyf@@`@@@Ұ@A(.protocol_entrybYQ9>YR9L@@8@@&p_name@X@@@Y^eiY_ey@@Yv)p_aliases@YDX@@@@@@Yoz~Ypz@@Y'p_proto@Y'@@@Y{Y|@@Y@@AR8.protocol_entry@@@@@@@Y99Y@X/ 3 Structure of entries in the [protocols] database. YY@@@@@@@@@Y@BB=Yeo@@Ш@гE&stringYerYex@@M0YYYYYYYY@3-'\8@@@Ac@@c@ c@@@@@,)@@@A @@[@d@@W@SSIYz@@Ш@гV%arrayYzYz@г[&stringYzYz@@c&@@@h' @@k@d@*@b@^^YY@@Ш@гa#intYb@@h8c@@k@d@;@g@@Aгc$UnixeY9OY9b@@lE@@gd@0YYYYYYYY@E@Ahg@A(-service_entrycYY@@8@@&s_name@Yc@@@&ZZ&@@Z)s_aliases@YYs@@@)@@@+Z'+Z'D@@Z-&s_port@Y@@@.Z!EIZ"EV@@Z9's_proto@Y@@@1Z-W[Z.Wk@@ZE@@AR-service_entry@@@4@@@@Z8Z9lo@Xᐠ 2 Structure of entries in the [services] database. ZEppZFp@@@@@@@@@Z]@NNIZM@@Ш@гQ&stringZVZW%@@Y0ZUZTZTZUZUZUZUZU@h8@@@Ao@@d@6d@%@@@@,)@@@A @@g@e@'@c@__UZj'4@@Ш@гb%arrayZs'>Zt'C@гg&stringZ|'7Z}'=@@o&@@@t' @@w@e@,*@n@jjeZEO@@Ш@гm#intZERZEU@@u9@@x@e@/<@t@ppkZWb@@Ш@гs&stringZWet@@zJu@@}@e@2M@y@@Aгu$UnixwZZ@@~W@@yv@0ZZZZZZZZ@W@Azy@+gethostnameZZ@б@гZ$unitZZ@@ @@@U0ZZZZZZZZ@r@A@@гZ1&stringZZ@@ @@@V@@@@@W@@@Z @Y $ Return the name of the local host. ZZ@@@@@@@[@@%-gethostbynameZZ @б@гZ_&string[ [ @@ @@@X0[[[[[[[[@>S,@A@@г*host_entry[ [ @@ @@@Y@@@@@Z@@@[ @YĐ ] Find an entry in [hosts] with the given name. @raise Not_found if no such entry exists. [(  [) P @@@@@@@[@@@%-gethostbyaddr[4  [5  @б@г)inet_addr[?  [@  @@ @@@[0[A[@[@[A[A[A[A[A@>S,@A@@гΠ*host_entry[N  [O  @@ @@@\@@@@@]@@@[Y   @Z ` Find an entry in [hosts] with the given address. @raise Not_found if no such entry exists. [e  [f  @@@@@@@[}@@%.getprotobyname[q  [r  '@б@гZ٠&string[|  *[}  0@@ @@@^0[~[}[}[~[~[~[~[~@>S,@A@@г:.protocol_entry[  4[  B@@ @@@_@@@@@`@@@[   @Z> a Find an entry in [protocols] with the given name. @raise Not_found if no such entry exists. [ C C[ y @@@@@@@[@@%0getprotobynumber[  [  @б@г[c#int[  [  @@ @@@a0[[[[[[[[@>S,@A@@гw.protocol_entry[  [  @@ @@@b@@@@@c@@@[   @Z{ l Find an entry in [protocols] with the given protocol number. @raise Not_found if no such entry exists. [  [  I@@@@@@@[@@%-getservbyname[ K O[ K \@б@г[S&string[ K _[ K e@@ @@@d0[[[[[[[[@>S,@A@@б(protocolг[f&string\  K r\  K x@@ @@@e@@г-service_entry\ K |\ K @@ @@@f @@@@g#\ K i @@@*@@h'- @@@\% K K@Z͐ ` Find an entry in [services] with the given name. @raise Not_found if no such entry exists. \1  \2  @@@@@@@\I@@:-getservbyport\=  \>  @б@г[#int\H  \I  @@ @@@i0\J\I\I\J\J\J\J\J@Sh,@A@@б(protocolг[&string\[  \\  @@ @@@j@@гq-service_entry\h  \i  ,@@ @@@k @@@@l#\q   @@@*@@m'- @@@\w  @[ j Find an entry in [services] with the given service number. @raise Not_found if no such entry exists. \ - -\ l @@@@@@@\@@:A()addr_infod\  \  @@8@@)ai_family@@@@o\  \  @[F/ Socket domain \  \  @@@@@@@\+ai_socktype@L@@@r\  \  @[_- Socket type \  %\  7@@@@@@@\+ai_protocol@\{@@@u\ 8 <\ 8 N@[x8 Socket protocol number \ 8 `\ 8 }@@@@@@@\'ai_addr@@@@x\ ~ \ ~ @[) Address \ ~ \ ~ @@@@@@@] ,ai_canonname@\`@@@{]  ]  @[6 Canonical host name ]  ]  @@@@@@@]&@@AU)addr_info@@@@@@@]  ]  @[ 1 Address information returned by {!getaddrinfo}. ]&  ]' 3@@@@@@@@@]>@].  @@Ш@г-socket_domain]7  ]8  @@0]6]5]5]6]6]6]6]6@8@@@A@@e@e@n@@@@,)@@@A @@@f@p@]K  @@Ш@г+socket_type]T  ]U  @@@@@f@s @]] 8 G@@Ш@г#int]f 8 J]g 8 M@@/@@@f@v2@]o ~ @@Ш@г(sockaddr]x ~ ]y ~ @@A@@@f@yD@]  @@Ш@г&string]  @@R@@@f@|U@@Aг}$Unix]  ]  @@_@@~@0]]]]]]]]@_@A@A(2getaddrinfo_optione]5:]5L@@8@@)AI_FAMILY@@@@@]im]i@\\ Impose the given socket domain ]i]i@@@@@@@]+AI_SOCKTYPEd@@@@@]]@\w> Impose the given socket type ]]@@@@@@@]+AI_PROTOCOL ]@@@@@]]@\< Impose the given protocol ]+]L@@@@@@@^.AI_NUMERICHOST @@]MO^M_@\ b Do not call name resolver, expect numeric IP address ^ Mu^ @@@@@@@^$,AI_CANONNAME @@^^@\ Y Fill the [ai_canonname] field of the result ^"^#'c@@@@@@@^:*AI_PASSIVE @@^+df^,dr@\Ԑ a Set address to ``any'' address for use with {!bind} ^8d^9@@@@@@@^P@@AV2getaddrinfo_option@@@@@@@^C55@\될< Options to {!getaddrinfo}. ^O^P@@@@@@@@@^g@^Wiv@@г-socket_domain^`iz@@0^^^]^]^^^^^^^^^^@)8@@@A@@f@f@@@@@*(@@@A @@@@^q^r@@г+socket_type^{@@@@@@^^@@г#int^@@+@@@@^MQ@@@@^@@@@tt^dhr@@@@ur@Aгd$Unixf^5O^5f@@mH@@hf@0^^^^^^^^@H@Ai@+getaddrinfo ^^%@б@г^&string^')^'/@@ @@@0^^^^^^^^@c& @A@@б@г^-&string^'3^'9@@ @@@@@б@г^t$list^'P^'T@гE2getaddrinfo_option^'=^'O@@ @@@*@@@@@@/ @@г^$list^'b^'f@гu)addr_info_'X_'a@@ @@@F@@@@@@K @@@#@@N*@@@C@@QF@@@W@@TZ@@@_ @]Ð  [getaddrinfo host service opts] returns a list of {!addr_info} records describing socket parameters and addresses suitable for communicating with the given host and service. The empty list is returned if the host or service names are unknown, or the constraints expressed in [opts] cannot be satisfied. [host] is either a host name or the string representation of an IP address. [host] can be given as the empty string; in this case, the ``any'' address or the ``loopback'' address are used, depending whether [opts] contains [AI_PASSIVE]. [service] is either a service name or the string representation of a port number. [service] can be given as the empty string; in this case, the port field of the returned addresses is set to 0. [opts] is a possibly empty list of options that allows the caller to force a particular socket domain (e.g. IPv6 only or IPv4 only) or a particular socket type (e.g. TCP only or UDP only). _'gg_(D@@@@@@@_?@/@gA()name_infof_4FK_5FT@@8@@+ni_hostname@^@@@԰_Ahl_Bh@]ꐠ< Name or IP address of host _Nh_Oh@@@@@@@_f*ni_service@^@@@װ_Z_[@^ Name of service or port number _g_h@@@@@@@_@@AX$)name_info@@@@@@@_rFF_s@^ : Host and service information returned by {!getnameinfo}. __C@@@@@@@@@_@KKF_hw@@Ш@гN&string_hz_h@@V0________@|e8@@@Al@@g@g@@@@@,)@@@A @@d@h@@`]OOJ_@@Ш@гR&string__@@Z@@]@h@ @YV@AгH$UnixJ_FW_Fe@@Q*@@LI@0________@*@AML@A(2getnameinfo_optiong_EJ_E\@@8@@)NI_NOFQDN@@_y}_y@^{ ! Do not qualify local host names _y_y@@@@@@@_.NI_NUMERICHOST@@__@^ " Always return host as IP address __@@@@@@@` +NI_NAMEREQD@@__ @^ ( Fail if host name cannot be determined ` ` @@@@@@@@`#.NI_NUMERICSERV@@`AC`AS@^ & Always return service as port number `!AZ`"A@@@@@@@`9(NI_DGRAM@@`*`+@^Ӑ [ Consider the service as UDP-based instead of the default TCP `7`8@@@@@@@`O@@AX2getnameinfo_option@@@@@@@`BEE@^ꐠ< Options to {!getnameinfo}. `N`O!@@@@@@@A@`f@@@@@uu`[s@@@@vsee`ac@@@@fcUU`gAES@@@@VSEE`mC@@@@FC@Aг5$Unix7`wE_`xEv@@>0`v`u`u`v`v`v`v`v@LF8@@@A@@h@h@@@@@CA@@4@A @@DB@0````````@ @AE\@+getnameinfo`#'`#2@б@г(sockaddr`#5`#=@@ @@@0````````@&@A@@б@г`@$list`#T`#X@г2getnameinfo_option`#A`#S@@ @@@@@@@@@  @@г)name_info`#\`#e@@ @@@-@@@@@ 0@@@6@@ 39 @@@`##@_} [getnameinfo addr opts] returns the host name and service name corresponding to the socket address [addr]. [opts] is a possibly empty list of options that governs how these names are obtained. @raise Not_found if an error occurs. `ff`4_@@@@@@@`@@F`8 {1 Terminal interface} `bb`b@@@@@@0````````@Vk#@Aa The following functions implement the POSIX standard terminal interface. They provide control over asynchronous communication ports and pseudo-terminals. Refer to the [termios] man page for a complete description. aaLg@@@@@@A(+terminal_iohainaiy@@8@@(c_ignbrkA`@@@ aa@_Đ= Ignore the break condition. a(a)@@@@@@@a@(c_brkintAa@@@a4a5@_ݐ & Signal interrupt on break condition. aAaB3@@@@@@@aY(c_ignparAa@@@aM48aN4P@_ ' Ignore characters with parity errors. aZ4Ra[4~@@@@@@@ar(c_parmrkAa7@@@afag@`5 Mark parity errors. asat@@@@@@@a'c_inpckAaP@@@aa@`(? Enable parity check on input. aa@@@@@@@a(c_istripAai@@@aa@`A $ Strip 8th bit on input characters. aaB@@@@@@@a'c_inlcrAa@@@aCGaC^@`Z8 Map NL to CR on input. aCaaC~@@@@@@@a'c_igncr Aa@@@!aa@`s5 Ignore CR on input. aa@@@@@@@a'c_icrnl!Aa@@@$aa@`8 Map CR to NL on input. aa@@@@@@@b&c_ixon"Aa@@@'aa@` ) Recognize XON/XOFF characters on input. b b @@@@@@@@b! 'c_ixoff#Aa@@@*bAEbA\@` , Emit XON/XOFF chars to control input flow. b"A_b#A@@@@@@@b:à'c_opost$Aa@@@-b.b/@`א; Enable output processing. b;b<@@@@@@@bSĠ'c_obaud%Aa@@@0bGbH@`𐠠 - Output baud rate (0 means close connection).bTbUQ@@@@@@@blŠ'c_ibaud&Ab @@@3b`RVbaRl@a 2 Input baud rate. bmRpbnR@@@@@@@bƠ'c_csize'Ab%@@@6bybz@a" % Number of bits per character (5-8). bb@@@@@@@bǠ(c_cstopb(Ab>@@@9bb@a;< Number of stop bits (1-2). bb@@@@@@@bȠ'c_cread)Ab|@@@<bb,@aT7 Reception is enabled. b/bK@@@@@@@bɠ(c_parenb*Ab@@@?bLPbLh@am ) Enable parity generation and detection. bLjbL@@@@@@@bʠ(c_parodd+Ab@@@Bbb@a % Specify odd parity instead of even. bb@@@@@@@cˠ'c_hupcl,Ab@@@Eb b @a8 Hang up on last close. c  c  @@@@@@@c̠(c_clocal-Ab@@@Hc   "c   :@a< Ignore modem status lines. c   <c   ]@@@@@@@c4͠&c_isig.Ab@@@Kc(  u yc)  u @aѐ & Generate signal on INTR, QUIT, SUSP. c5  u c6  u @@@@@@@cMΠ(c_icanon/Ac@@@NcA   cB   @aꐠ [ Enable canonical processing (line buffering and editing) cN   cO !=@@@@@@@cfϠ(c_noflsh0Ac+@@@QcZ!>!Bc[!>!Z@b ' Disable flush after INTR, QUIT, SUSP. cg!>!\ch!>!@@@@@@@cР&c_echo1AcD@@@Tcs!!ct!!@b8 Echo input characters. c!!c!!@@@@@@@cѠ'c_echoe2Ac]@@@Wc!!c!!@b5 + Echo ERASE (to erase previous character). c!!c!"@@@@@@@cҠ'c_echok3Acv@@@Zc""c""/@bN ( Echo KILL (to erase the current line). c""2c""_@@@@@@@cӠ(c_echonl4Ac@@@]c"`"dc"`"|@bg $ Echo NL even if c_echo is not set. c"`"~c"`"@@@@@@@cԠ'c_vintr5Ac@@@`c""c""@b ' Interrupt character (usually ctrl-C). c""c"#@@@@@@@cՠ'c_vquit6Ac@@@cc##c##,@b " Quit character (usually ctrl-\). c##/c##V@@@@@@@d֠(c_verase7Ac@@@fd #W#[d #W#s@b * Erase character (usually DEL or ctrl-H). d#W#ud#W#@@@@@@@d.נ'c_vkill8Ac@@@id"##d###@bː ' Kill line character (usually ctrl-U). d/##d0##@@@@@@@dGؠ&c_veof9Ac@@@ld;##d<#$ @b䐠 ) End-of-file character (usually ctrl-D). dH#$dI#$<@@@@@@@d`٠&c_veol:Ad@@@odT$=$AdU$=$W@b - Alternate end-of-line char. (usually none). da$=$[db$=$@@@@@@@dyڠ&c_vmin;Ad@@@rdm$$dn$$@c m Minimum number of characters to read before the read request is satisfied. dz$$d{$%@@@@@@@d۠'c_vtimeAdx@@@{d%%d%%@ca " Stop character (usually ctrl-S). d%%d%%@@@@@@@d@@A]+terminal_io@@@~@@@@diid %%@@@@d@ °dd@AШ@гƠ$booldd@@0dddddddd@8@@@A@@i@i@ @@@@@@@@A  @@@j@  @ԠƠưdd@AШ@гʠ$boolde@@@@@j@ @Πe4@e 4H@AШ@гĠ$boole4Ke4O@@0@@@j@3@Ƞee@AШ@г$boole%e&@@C@@@j@F@ e.e/@AШ@г$boole8e9@@V@@@j@Y@eAeB@AШ@г$booleKeL@@i@@@j@l@eTCOeUCV@AШ@г$boole^CYe_C]@@|@@@j@@egeh@AШ@г$booleqer@@@@@j@"@eze{@AШ@г$boolee@@@@@j@%@ee@AШ@г$boole e @@@@@j@(@eAMeAT@AШ@г$booleAWeA[@@Ȱ@@@j@+@ee@AШ@г$boolee@@۰@@@j@.@e e@AШ@г#intee@@@@@j@1@~~eR^eRe@AШ@г#inteRheRk@@@@@j@4@xxee@AШ@г|#intee@@@@@j@7@rref@AШ@гv#intf f @@~'@@@j@:*@}zllff$@AШ@гp$boolf'f+@@x:@@{@j@==@wtfff%LXf&L`@AШ@гj$boolf/Lcf0Lg@@rM@@u@j@@P@qn``f8f9@AШ@гd$boolfBfC@@l`@@o@j@Cc@khZZfK fL @AШ@г^$boolfU fV @@fs@@i@j@Fv@ebTTf^   *f_   2@AШ@гX$boolfh   5fi   9@@`@@c@j@I@_\NNfq  u fr  u @AШ@гR$boolf{  u f|  u @@Z@@]@j@L@YVHHf   f   @AШ@гL$boolf   f   @@T@@W@j@O@SPBBf!>!Jf!>!R@AШ@гF$boolf!>!Uf!>!Y@@N@@Q@j@R@MJ<<f!!f!!@AШ@г@$boolf!!f!!@@HҰ@@K@j@U@GD66f!!f!!@AШ@г:$boolf!!f!!@@B@@E@j@X@A>00f"" f""'@AШ@г4$boolf""*f"".@@<@@?@j@[@;8**f"`"lf"`"t@AШ@г.$boolf"`"wf"`"{@@6 @@9@j@^@52$$f""f""@AШ@г($charg""g""@@0@@3@j@a!@/,g ##g ##$@AШ@г"$charg##'g##+@@*1@@-@j@d4@)&g#W#cg#W#k@AШ@г$charg&#W#ng'#W#r@@$D@@'@j@gG@# g/##g0##@AШ@г$charg9##g:##@@W@@!@j@jZ@  gB##gC#$@AШ@г$chargL#$gM#$ @@j@@@j@mm@gU$=$IgV$=$O@AШ@г $charg_$=$Rg`$=$V@@}@@@j@p@gh$$gi$$@AШ@г#intgr$$gs$$@@ @@@j@s@ g{%%+g|%%2@AШ@г#intg%%5g%%8@@@@ @j@v@g%g%sg%g%{@AШ@г$charg%g%~g%g%@@@@@j@y@g%%g%%@AШ@г$charg%%g%%@@ɰ@@@j@|@@Aг蠡$Unixgi|gi@@ְ@@@@ǰ@)tcgetattr?g"%%g"%&@б@гW*file_descrg"%& g"%&@@ @@@0gggggggg@@A@@гР+terminal_iog"%&g"%&"@@ @@@@@@@@@@@g"%% @f w Return the status of the terminal referred to by the given file descriptor. @raise Invalid_argument on Windows g#&#&#g&&w&@@@@@@@h @@%A(,setattr_when@ih(&&h(&&@@8@@'TCSANOWA@@h )&&h )&&@@h$)TCSADRAINB@@h*&&h*&&@@h-)TCSAFLUSHC@@h+&&h+&&@@h6@@A`,setattr_when@@@@@@@h)(&& @@A@h@@&&$#@@@@&@""h5*&& @@@@#@h;+&&@@@@ @@Aг$UnixhE(&&hF(&&@@%0hDhChChDhDhDhDhD@ucL8@@@AS@@j@j@@@@@*@@@(@A @@+@@0hPhOhOhPhPhPhPhP@ @A,6@)tcsetattrDh]-&&h^-&&@б@гW*file_descrhh-&'hi-&' @@ @@@0hjhihihjhjhjhjhj@&qk@A@@б$modeгy,setattr_whenh{-&'h|-&'!@@ @@@@@б@г|+terminal_ioh-&'%h-&'0@@ @@@"@@гg$unith-&'4h-&'8@@ @@@/@@@@@2@@0%@@5h-&' @@@<@@9?@@@h-&&@gQ  Set the status of the terminal referred to by the given file descriptor. The second argument indicates when the status change takes place: immediately ([TCSANOW]), when all pending output has been transmitted ([TCSADRAIN]), or after flushing all input that has been received but not read ([TCSAFLUSH]). [TCSADRAIN] is recommended when changing the output parameters; [TCSAFLUSH], when changing the input parameters. @raise Invalid_argument on Windows h.'9'9h7()@@@@@@@h@!@L+tcsendbreakEh9))!h9)),@б@гX*file_descrh9))/h9))9@@ @@@0hhhhhhhh@ez,@A@@б(durationгh#inth9))Fh9))I@@ @@@@@гhE$unith9))Mh9))Q@@ @@@  @@@@!#h9))= @@@*@@"'- @@@h9))@g Send a break condition on the given file descriptor. The second argument is the duration of the break, in 0.1s units; 0 means standard duration (0.25s). @raise Invalid_argument on Windows i:)R)Ri>)*@@@@@@@i@@:'tcdrainFi@* *$i@* *+@б@гXU*file_descri@* *.i@* *8@@ @@@#0i iii i i i i @Sh,@A@@гh$uniti-@* *<i.@* *@@@ @@@$@@@@@%@@@i8@* *  @g } Waits until all output written on the given file descriptor has been transmitted. @raise Invalid_argument on Windows iDA*A*AiED**@@@@@@@i\@@%A(+flush_queueGjiQF**iRF**@@8@@(TCIFLUSHH@@i[G**i\G**@@is(TCOFLUSHI@@idH**ieH*+@@i|)TCIOFLUSHJ@@imI++inI++@@i@@Ab*+flush_queue@@@'@@@@ixF** @@A@i@&&$#@@@@&@""iH** @@@@#@iI++ @@@@ @@Aг$UnixiF**iF**@@%0iiiiiiii@ucL8@@@AS@@k@)k@&@@@@*@@@(@A @@+@@0iiiiiiii@ @A,6@'tcflushKiK++iK++@б@гX*file_descriK++"iK++,@@ @@@90iiiiiiii@&qk@A@@б$modeгy+flush_queueiK++5iK++@@@ @@@:@@гi0$unitiK++DiK++H@@ @@@; @@@@<#iK++0 @@@*@@='- @@@iK++@h F Discard data written on the given file descriptor but not yet transmitted, or data received but not yet read, depending on the second argument: [TCIFLUSH] flushes data received but not read, [TCOFLUSH] flushes data written but not transmitted, and [TCIOFLUSH] flushes both. @raise Invalid_argument on Windows iL+I+IiR,l,@@@@@@@j @@:A(+flow_actionLkiT,,jT,,@@8@@&TCOOFFM@@j U,,j U,,@@j!%TCOONN@@jV,,jV,,@@j*&TCIOFFO@@jW,,jW,,@@j3%TCIONP@@j$X,,j%X,,@@j<@@Ab+flow_action@@@?@@@@j/T,, @@A@jF@//-,@@@@/@++j;V,,)@@@@,@((jAW,,&@@@@)@%%jGX,,#@@@@&@@Aг"$Unix$jQT,,jRT,,@@+0jPjOjOjPjPjPjPjP@r[8@@@Ab@@l@Al@>@@@@0@@@.@A @@1@@0j\j[j[j\j\j\j\j\@ @A2<@&tcflowQjiZ,,jjZ,,@б@гY*file_descrjtZ,,juZ,,@@ @@@Q0jvjujujvjvjvjvjv@&z@A@@б$modeг+flow_actionjZ,-jZ,-@@ @@@R@@гi$unitjZ,-jZ,-@@ @@@S @@@@T#jZ,- @@@*@@U'- @@@jZ,,@iK L Suspend or restart reception or transmission of data on the given file descriptor, depending on the second argument: [TCOOFF] suspends output, [TCOON] restarts output, [TCIOFF] transmits a STOP character to suspend input, and [TCION] transmits a START character to restart input. @raise Invalid_argument on Windows j[--ja.D.l@@@@@@@j@@:&setsidRjc.n.rjc.n.x@б@гj$unitjc.n.{jc.n.@@ @@@V0jjjjjjjj@Sh,@A@@гj#intjc.n.jc.n.@@ @@@W@@@@@X@@@jc.n.n @i Put the calling process in a new session and detach it from its controlling terminal. @raise Invalid_argument on Windows jd..jg./ @@@@@@@k@@%@iiA@aaB@aa_@aKa@``@``n@`Z`3@`_@__@__A@^^A@^[^@]]@]w]+@]\@\\l@\X\@\[@[[k@[W[2@[Z@ZZ@ZZ@Z[ZUA@Z%Z@YY@YY@YYA@WWA@WW6@W"V@VV@VVF@V2U@UUR@U>T@TT^@T9T@TS@SS@SSc@S=S7A@RRd@RPR@RQ@QQA@PPA@NpNI@N5N@MM@MM@Mr@IIIyIU@@IRHZ@H5H@GG@GGQ@G=G@FFA@FIF @EE@EEX@EDD@DD@DDY@D4C@CC@CvCO@C;C@CB@BB@ByB?@B+B@AA@AA@AzAS@A>A8A@A@@@@@@@i@@U@.@@ ?@??e@?@>@>=@==@==z@=f=)@=<@<<* No such file or directory j+9* Not an executable file j5* No locks available j4* Not enough memory i:* No space left on device iߠ9* Function not supported i̠2* Not a directory i6* Directory not empty i &* Inappropriate I/O control operation i<* No such device or address i:* Operation not permitted im.* Broken pipe iZ3* Result too large iG8* Read-only file system i4>* Invalid seek e.g. on a pipe i!2* No such process i/* Invalid link h8* Operation would block h蠠<* Operation now in progress hՠ * Operation already in progress h  !* Socket operation on non-socket h?* Destination address required h3* Message too long h !* Protocol wrong type for socket hv9* Protocol not available hc9* Protocol not supported hP<* Socket type not supported h= $* Operation not supported on socket h* * Protocol family not supported h 2* Address family not supported by protocol family h9* Address already in use g !* Can't assign requested address gޠ2* Network is down gˠ9* Network is unreachable g &* Network dropped connection on reset g #* Software caused connection abort g;* Connection reset by peer g<* No buffer space available gl>* Socket is already connected gY:* Socket is not connected gF #* Can't send after socket shutdown g3 $* Too many references: can't splice g 7* Connection timed out g 5* Connection refused f/* Host is down f砠3* No route to host fԠ $* Too many levels of symbolic links f ** File size or position not representable f0* Unknown error f * The type of error codes. Errors defined in the POSIX standard and additional errors from UNIX98 and BSD. All other errors are mapped to EUNKNOWNERR. f s* Raised by the system calls below when an error is encountered. The first component is the error code; the second component is the function name; the third component is the string parameter to the function, if it has one, or the empty string otherwise. {!UnixLabels.Unix_error} and {!Unix.Unix_error} are the same, and catching one will catch the other. d 3* Return a string describing the given error code. d= * [handle_unix_error f x] applies [f] to [x] and returns the result. If the exception {!Unix_error} is raised, it prints a message describing the error and exits with code 2. c (* {1 Access to the process environment} c⠠ * Return the process environment, as an array of strings with the format ``variable=value''. The returned array is empty if the process has special privileges. c ** Return the process environment, as an array of strings with the format ``variable=value''. Unlike {!environment}, this function returns a populated array even if the process has special privileges. See the documentation for {!unsafe_getenv} for more details. @since 4.12.0 cR * Return the value associated to a variable in the process environment, unless the process has special privileges. @raise Not_found if the variable is unbound or the process has special privileges. This function is identical to {!Sys.getenv}. c * Return the value associated to a variable in the process environment. Unlike {!getenv}, this function returns the value even if the process has special privileges. It is considered unsafe because the programmer of a setuid or setgid program must be careful to avoid using maliciously crafted environment variables in the search path for executables, the locations for temporary files or logs, and the like. @raise Not_found if the variable is unbound. @since 4.06.0 bޠ * [putenv name value] sets the value associated to a variable in the process environment. [name] is the name of the environment variable, and [value] its new associated value. b7* {1 Process handling} b Y* The process terminated normally by [exit]; the argument is the return code. b^ T* The process was killed by a signal; the argument is the signal number. bF U* The process was stopped by a signal; the argument is the signal number. b. * The termination status of a process. See module {!Sys} for the definitions of the standard signal numbers. Note that they are not the numbers used by the OS. b f* Do not block if no child has died yet, but immediately return with a pid equal to 0. a 6* Report also the children that receive stop signals. a8* Flags for {!waitpid}. a * [execv ~prog ~args] execute the program in file [prog], with the arguments [args], and the current process environment. These [execv*] functions never return: on success, the current program is replaced by the new one. @raise Unix_error on failure a h* Same as {!execv}, except that the third argument provides the environment to the program executed. ` H* Same as {!execv}, except that the program is searched in the path. `) I* Same as {!execve}, except that the program is searched in the path. _ * Fork a new process. The returned integer is 0 for the child process, the pid of the child process for the parent process. @raise Invalid_argument on Windows. Use {!create_process} or threads instead. _l * Wait until one of the children processes die, and return its pid and termination status. @raise Invalid_argument on Windows. Use {!waitpid} instead. _ * Same as {!wait}, but waits for the child process whose pid is given. A pid of [-1] means wait for any child. A pid of [0] means wait for any child in the same process group as the current process. Negative pid arguments represent process groups. The list of options indicates whether [waitpid] should return immediately without waiting, and whether it should report stopped children. On Windows: can only wait for a given PID, not any child process. ^ * Execute the given command, wait until it terminates, and return its termination status. The string is interpreted by the shell [/bin/sh] (or the command interpreter [cmd.exe] on Windows) and therefore can contain redirections, quotes, variables, etc. To properly quote whitespace and shell special characters occurring in file names or command arguments, the use of {!Filename.quote_command} is recommended. The result [WEXITED 127] indicates that the shell couldn't be executed. ^n * Terminate the calling process immediately, returning the given status code to the operating system: usually 0 to indicate no errors, and a small positive integer to indicate failure. Unlike {!Stdlib.exit}, {!Unix._exit} performs no finalization whatsoever: functions registered with {!Stdlib.at_exit} are not called, input/output channels are not flushed, and the C run-time system is not finalized either. The typical use of {!Unix._exit} is after a {!Unix.fork} operation, when the child process runs into a fatal error and must exit. In this case, it is preferable to not perform any finalization action in the child process, as these actions could interfere with similar actions performed by the parent process. For example, output channels should not be flushed by the child process, as the parent process may flush them again later, resulting in duplicate output. @since 4.12.0 ^6 !* Return the pid of the process. ] p* Return the pid of the parent process. @raise Invalid_argument on Windows (because it is meaningless) ]  * Change the process priority. The integer argument is added to the ``nice'' value. (Higher values of the ``nice'' value mean lower priorities.) Return the new nice value. @raise Invalid_argument on Windows ]>* {1 Basic file input/output} ]z )* The abstract type of file descriptors. ]X %* File descriptor for standard input.] &* File descriptor for standard output.\ &* File descriptor for standard error. \̠3* Open for reading \3* Open for writing \?* Open for reading and writing \<* Open in non-blocking mode \r2* Open for append \_8* Create if nonexistent \L #* Truncate to 0 length if existing \93* Fail if existing \& (* Don't make this dev a controlling tty \ f* Writes complete as `Synchronised I/O data integrity completion' \ f* Writes complete as `Synchronised I/O file integrity completion' [ ]* Reads complete as writes (depending on O_SYNC/O_DSYNC) [ڠ b* Windows only: allow the file to be deleted while still open [Ǡ * Set the close-on-exec flag on the descriptor returned by {!openfile}. See {!set_close_on_exec} for more information. [ c* Clear the close-on-exec flag. This is currently the default. [<* The flags to {!openfile}. [ o* The type of file access rights, e.g. [0o640] is read and write for user, read for group, none for others Z * Open the named file with the given flags. Third argument is the permissions to give to the file if it is created (see {!umask}). Return a file descriptor on the named file. Zt;* Close a file descriptor. Z: 1* Flush file buffers to disk. @since 4.12.0 Z * [read fd ~buf ~pos ~len] reads [len] bytes from descriptor [fd], storing them in byte sequence [buf], starting at position [pos] in [buf]. Return the number of bytes actually read. Y ** [write fd ~buf ~pos ~len] writes [len] bytes to descriptor [fd], taking them from byte sequence [buf], starting at position [pos] in [buff]. Return the number of bytes actually written. [write] repeats the writing operation until all bytes have been written or an error occurs. Y * Same as {!write}, but attempts to write only once. Thus, if an error occurs, [single_write] guarantees that no data has been written. X f* Same as {!write}, but take the data from a string instead of a byte sequence. @since 4.02.0 X m* Same as {!single_write}, but take the data from a string instead of a byte sequence. @since 4.02.0 W 9* {1 Interfacing with the standard input/output library} W * Create an input channel reading from the given descriptor. The channel is initially in binary mode; use [set_binary_mode_in ic false] if text mode is desired. Text mode is supported only if the descriptor refers to a file or pipe, but is not supported if it refers to a socket. On Windows: {!Stdlib.set_binary_mode_in} always fails on channels created with this function. Beware that input channels are buffered, so more characters may have been read from the descriptor than those accessed using channel functions. Channels also keep a copy of the current position in the file. Closing the channel [ic] returned by [in_channel_of_descr fd] using [close_in ic] also closes the underlying descriptor [fd]. It is incorrect to close both the channel [ic] and the descriptor [fd]. If several channels are created on the same descriptor, one of the channels must be closed, but not the others. Consider for example a descriptor [s] connected to a socket and two channels [ic = in_channel_of_descr s] and [oc = out_channel_of_descr s]. The recommended closing protocol is to perform [close_out oc], which flushes buffered output to the socket then closes the socket. The [ic] channel must not be closed and will be collected by the GC eventually. W] * Create an output channel writing on the given descriptor. The channel is initially in binary mode; use [set_binary_mode_out oc false] if text mode is desired. Text mode is supported only if the descriptor refers to a file or pipe, but is not supported if it refers to a socket. On Windows: {!Stdlib.set_binary_mode_out} always fails on channels created with this function. Beware that output channels are buffered, so you may have to call {!Stdlib.flush} to ensure that all data has been sent to the descriptor. Channels also keep a copy of the current position in the file. Closing the channel [oc] returned by [out_channel_of_descr fd] using [close_out oc] also closes the underlying descriptor [fd]. It is incorrect to close both the channel [ic] and the descriptor [fd]. See {!Unix.in_channel_of_descr} for a discussion of the closing protocol when several channels are created on the same descriptor. W# ;* Return the descriptor corresponding to an input channel. V頠 <* Return the descriptor corresponding to an output channel. V=* {1 Seeking and truncating} V <* indicates positions relative to the beginning of the file V 7* indicates positions relative to the current position Vm 6* indicates positions relative to the end of the file VZ "* Positioning modes for {!lseek}. VF x* Set the current position for a file descriptor, and return the resulting offset (from the beginning of the file). U .* Truncates the named file to the given size. Uo Q* Truncates the file corresponding to the given descriptor to the given size. U 2* {1 File status} U/* Regular file T,* Directory Tޠ3* Character device Tˠ/* Block device T0* Symbolic link T-* Named pipe T)* Socket T0* Device number T/* Inode number S3* Kind of the file S栠0* Access rights SР2* Number of links S7* User id of the owner S?* Group ID of the file's group S>* Device ID (if special file) Sx0* Size in bytes Sb3* Last access time SL9* Last modification time S6:* Last status change time S 1* The information returned by the {!stat} calls. S -* Return the information for the named file. Qᠠ k* Same as {!stat}, but in case the file is a symbolic link, return the information for the link itself. Q O* Return the information for the file associated with the given descriptor. Qm k* Return [true] if the given file descriptor refers to a terminal or console window, [false] otherwise. Q3 %* {1 File operations on large files} Q%/* See [lseek]. P2* See [truncate]. Pg3* See [ftruncate]. P0* Device number O/* Inode number Oޠ3* Kind of the file OȠ0* Access rights O2* Number of links O7* User id of the owner O?* Group ID of the file's group Op>* Device ID (if special file) OZ0* Size in bytes OD3* Last access time O.9* Last modification time O:* Last status change time O * File operations on large files. This sub-module provides 64-bit variants of the functions {!lseek} (for positioning a file descriptor), {!truncate} and {!ftruncate} (for changing the size of a file), and {!stat}, {!lstat} and {!fstat} (for obtaining information on files). These alternate functions represent positions and sizes by 64-bit integers (type [int64]) instead of regular integers (type [int]), thus allowing operating on files whose sizes are greater than [max_int]. MT * {1 Mapping files into memory} ME? thwart tools/sync_stdlib_docs o82\\ o92\\-@ * Memory mapping of a file as a Bigarray. [map_file fd ~kind ~layout ~shared ~dims] returns a Bigarray of kind [kind], layout [layout], and dimensions as specified in [dims]. The data contained in this Bigarray are the contents of the file referred to by the file descriptor [fd] (as opened previously with {!openfile}, for example). The optional [pos] parameter is the byte offset in the file of the data being mapped; it defaults to 0 (map from the beginning of the file). If [shared] is [true], all modifications performed on the array are reflected in the file. This requires that [fd] be opened with write permissions. If [shared] is [false], modifications performed on the array are done in memory only, using copy-on-write of the modified pages; the underlying file is not affected. [Genarray.map_file] is much more efficient than reading the whole file in a Bigarray, modifying that Bigarray, and writing it afterwards. To adjust automatically the dimensions of the Bigarray to the actual size of the file, the major dimension (that is, the first dimension for an array with C layout, and the last dimension for an array with Fortran layout) can be given as [-1]. [Genarray.map_file] then determines the major dimension from the size of the file. The file must contain an integral number of sub-arrays as determined by the non-major dimensions, otherwise [Failure] is raised. If all dimensions of the Bigarray are given, the file size is matched against the size of the Bigarray. If the file is larger than the Bigarray, only the initial portion of the file is mapped to the Bigarray. If the file is smaller than the big array, the file is automatically grown to the size of the Bigarray. This requires write permissions on [fd]. Array accesses are bounds-checked, but the bounds are determined by the initial call to [map_file]. Therefore, you should make sure no other process modifies the mapped file while you're accessing it, or a SIGBUS signal may be raised. This happens, for instance, if the file is shrunk. [Invalid_argument] or [Failure] may be raised in cases where argument validation fails. @since 4.06.0 L/?* {1 Operations on file names} L! * Removes the named file. If the named file is a directory, raises: {ul {- [EPERM] on POSIX compliant system} {- [EISDIR] on Linux >= 2.1.132} {- [EACCESS] on Windows}} K頠 ]* [rename ~src ~dst] changes the name of a file from [src] to [dst], moving it between directories if needed. If [dst] already exists, its contents will be replaced with those of [src]. Depending on the operating system, the metadata (permissions, owner, etc) of [dst] can either be preserved or be replaced by those of [src]. K? thwart tools/sync_stdlib_docs oJzhh*oKzhhM@ 9* [link ?follow ~src ~dst] creates a hard link named [dst] to the file named [src]. @param follow indicates whether a [src] symlink is followed or a hardlink to [src] itself will be created. On {e Unix} systems this is done using the [linkat(2)] function. If [?follow] is not provided, then the [link(2)] function is used whose behaviour is OS-dependent, but more widely available. @raise ENOSYS On {e Unix} if [~follow:_] is requested, but linkat is unavailable. @raise ENOSYS On {e Windows} if [~follow:false] is requested. K2 * [realpath p] is an absolute pathname for [p] obtained by resolving all extra [/] characters, relative path segments and symbolic links. @since 4.13.0 J %* {1 File permissions and ownership} Jꠠ2* Read permission Jɠ3* Write permission J7* Execution permission J.* File exists J * Flags for the {!access} call. J| ,* Change the permissions of the named file. J T* Change the permissions of an opened file. @raise Invalid_argument on Windows I `* Change the owner uid and owner gid of the named file. @raise Invalid_argument on Windows IM `* Change the owner uid and owner gid of an opened file. @raise Invalid_argument on Windows H頠 w* Set the process's file mode creation mask, and return the previous mask. @raise Invalid_argument on Windows H * Check that the process has the given permissions over the named file. On Windows: execute permission [X_OK] cannot be tested, just tests for read permission instead. @raise Unix_error otherwise. HQ %* {1 Operations on file descriptors} HC? thwart tools/sync_stdlib_docs o}ppo~pq@ * Return a new file descriptor referencing the same file as the given descriptor. See {!set_close_on_exec} for documentation on the [cloexec] optional argument. G? thwart tools/sync_stdlib_docs oqroqr*@ * [dup2 ~src ~dst] duplicates [src] to [dst], closing [dst] if already opened. See {!set_close_on_exec} for documentation on the [cloexec] optional argument. G d* Set the ``non-blocking'' flag on the given descriptor. When the non-blocking flag is set, reading on a descriptor on which there is temporarily no data available raises the [EAGAIN] or [EWOULDBLOCK] error instead of blocking; writing on a descriptor on which there is temporarily no room for writing also raises [EAGAIN] or [EWOULDBLOCK]. GY R* Clear the ``non-blocking'' flag on the given descriptor. See {!set_nonblock}.G |* Set the ``close-on-exec'' flag on the given descriptor. A descriptor with the close-on-exec flag is automatically closed when the current process starts another program with one of the [exec], [create_process] and [open_process] functions. It is often a security hole to leak file descriptors opened on, say, a private file to an external program: the program, then, gets access to the private file and can do bad things with it. Hence, it is highly recommended to set all file descriptors ``close-on-exec'', except in the very few cases where a file descriptor actually needs to be transmitted to another program. The best way to set a file descriptor ``close-on-exec'' is to create it in this state. To this end, the [openfile] function has [O_CLOEXEC] and [O_KEEPEXEC] flags to enforce ``close-on-exec'' mode or ``keep-on-exec'' mode, respectively. All other operations in the Unix module that create file descriptors have an optional argument [?cloexec:bool] to indicate whether the file descriptor should be created in ``close-on-exec'' mode (by writing [~cloexec:true]) or in ``keep-on-exec'' mode (by writing [~cloexec:false]). For historical reasons, the default file descriptor creation mode is ``keep-on-exec'', if no [cloexec] optional argument is given. This is not a safe default, hence it is highly recommended to pass explicit [cloexec] arguments to operations that create file descriptors. The [cloexec] optional arguments and the [O_KEEPEXEC] flag were introduced in OCaml 4.05. Earlier, the common practice was to create file descriptors in the default, ``keep-on-exec'' mode, then call [set_close_on_exec] on those freshly-created file descriptors. This is not as safe as creating the file descriptor in ``close-on-exec'' mode because, in multithreaded programs, a window of vulnerability exists between the time when the file descriptor is created and the time [set_close_on_exec] completes. If another thread spawns another program during this window, the descriptor will leak, as it is still in the ``keep-on-exec'' mode. Regarding the atomicity guarantees given by [~cloexec:true] or by the use of the [O_CLOEXEC] flag: on all platforms it is guaranteed that a concurrently-executing Caml thread cannot leak the descriptor by starting a new process. On Linux, this guarantee extends to concurrently-executing C threads. As of Feb 2017, other operating systems lack the necessary system calls and still expose a window of vulnerability during which a C thread can see the newly-created file descriptor in ``keep-on-exec'' mode. F堠 X* Clear the ``close-on-exec'' flag on the given descriptor. See {!set_close_on_exec}.F2* {1 Directories} F @* Create a directory with the given permissions (see {!umask}). FP=* Remove an empty directory. F (* Change the process working directory. Eܠ 4* Return the name of the current working directory. E M* Change the process root directory. @raise Invalid_argument on Windows Eh 3* The type of descriptors over opened directories. EF #* Open a descriptor on a directory D n* Return the next entry in a directory. @raise End_of_file when the end of the directory has been reached. D >* Reposition the descriptor to the beginning of the directory D * Close a directory descriptor. DH=* {1 Pipes and redirections} D:? thwart tools/sync_stdlib_docs o6H]o6H@ * Create a pipe. The first component of the result is opened for reading, that's the exit to the pipe. The second component is opened for writing, that's the entrance to the pipe. See {!set_close_on_exec} for documentation on the [cloexec] optional argument. C٠ h* Create a named pipe with the given permissions (see {!umask}). @raise Invalid_argument on Windows C 4* {1 High-level process and redirection management} C| * [create_process ~prog ~args ~stdin ~stdout ~stderr] forks a new process that executes the program in file [prog], with arguments [args]. The pid of the new process is returned immediately; the new process executes concurrently with the current process. The standard input and outputs of the new process are connected to the descriptors [stdin], [stdout] and [stderr]. Passing e.g. {!Unix.stdout} for [stdout] prevents the redirection and causes the new process to have the same standard output as the current process. The executable file [prog] is searched in the path. The new process has the same environment as the current process. Bޠ * [create_process_env ~prog ~args ~env ~stdin ~stdout ~stderr] works as {!create_process}, except that the extra argument [env] specifies the environment passed to the program. B ~* High-level pipe and process management. This function runs the given command in parallel with the program. The standard output of the command is redirected to a pipe, which can be read via the returned input channel. The command is interpreted by the shell [/bin/sh] (or [cmd.exe] on Windows), cf. {!system}. The {!Filename.quote_command} function can be used to quote the command and its arguments as appropriate for the shell being used. If the command does not need to be run through the shell, {!open_process_args_in} can be used as a more robust and more efficient alternative to {!open_process_in}. Aࠠ * Same as {!open_process_in}, but redirect the standard input of the command to a pipe. Data written to the returned output channel is sent to the standard input of the command. Warning: writes on output channels are buffered, hence be careful to call {!Stdlib.flush} at the right times to ensure correct synchronization. If the command does not need to be run through the shell, {!open_process_args_out} can be used instead of {!open_process_out}. A * Same as {!open_process_out}, but redirects both the standard input and standard output of the command to pipes connected to the two returned channels. The input channel is connected to the output of the command, and the output channel to the input of the command. If the command does not need to be run through the shell, {!open_process_args} can be used instead of {!open_process}. AV * Similar to {!open_process}, but the second argument specifies the environment passed to the command. The result is a triple of channels connected respectively to the standard output, standard input, and standard error of the command. If the command does not need to be run through the shell, {!open_process_args_full} can be used instead of {!open_process_full}. @Ӡ * [open_process_args_in prog args] runs the program [prog] with arguments [args]. The new process executes concurrently with the current process. The standard output of the new process is redirected to a pipe, which can be read via the returned input channel. The executable file [prog] is searched in the path. This behaviour changed in 4.12; previously [prog] was looked up only in the current directory. The new process has the same environment as the current process. @since 4.08.0 @x p* Same as {!open_process_args_in}, but redirect the standard input of the new process to a pipe. Data written to the returned output channel is sent to the standard input of the program. Warning: writes on output channels are buffered, hence be careful to call {!Stdlib.flush} at the right times to ensure correct synchronization. @since 4.08.0 @ 3* Same as {!open_process_args_out}, but redirects both the standard input and standard output of the new process to pipes connected to the two returned channels. The input channel is connected to the output of the program, and the output channel to the input of the program. @since 4.08.0 ? * Similar to {!open_process_args}, but the third argument specifies the environment passed to the new process. The result is a triple of channels connected respectively to the standard output, standard input, and standard error of the program. @since 4.08.0 ? n* Return the pid of a process opened via {!open_process_in} or {!open_process_args_in}. @since 4.12.0 >Ѡ p* Return the pid of a process opened via {!open_process_out} or {!open_process_args_out}. @since 4.12.0 > h* Return the pid of a process opened via {!open_process} or {!open_process_args}. @since 4.12.0 >G r* Return the pid of a process opened via {!open_process_full} or {!open_process_args_full}. @since 4.12.0 =蠠 * Close channels opened by {!open_process_in}, wait for the associated command to terminate, and return its termination status. = * Close channels opened by {!open_process_out}, wait for the associated command to terminate, and return its termination status. =t * Close channels opened by {!open_process}, wait for the associated command to terminate, and return its termination status. =$ * Close channels opened by {!open_process_full}, wait for the associated command to terminate, and return its termination status. <Š5* {1 Symbolic links} * System time for the process 7_ '* User time for the children processes 7I )* System time for the children processes 73 0* The execution times (CPU times) of a process. 70* Seconds 0..60 60* Minutes 0..59 6.* Hours 0..23 6p5* Day of month 1..31 6Z6* Month of year 0..11 6D.* Year - 1900 6.<* Day of week (Sunday is 0) 65* Day of year 0..365 6 "* Daylight time savings in effect 5젠 :* The type representing wallclock time and calendar date. 5נ K* Return the current time since 00:00:00 GMT, Jan. 1, 1970, in seconds. 4㠠 =* Same as {!time}, but with resolution better than 1 second. 4 * Convert a time in seconds, as returned by {!time}, into a date and a time. Assumes UTC (Coordinated Universal Time), also known as GMT. To perform the inverse conversion, set the TZ environment variable to "UTC", use {!mktime}, and then restore the original value of TZ. 4o * Convert a time in seconds, as returned by {!time}, into a date and a time. Assumes the local time zone. The function performing the inverse conversion is {!mktime}. 45 * Convert a date and time, specified by the [tm] argument, into a time in seconds, as returned by {!time}. The [tm_isdst], [tm_wday] and [tm_yday] fields of [tm] are ignored. Also return a normalized copy of the given [tm] record, with the [tm_wday], [tm_yday], and [tm_isdst] fields recomputed from the other fields, and the other fields normalized (so that, e.g., 40 October is changed into 9 November). The [tm] argument is interpreted in the local time zone. 3堠 h* Schedule a [SIGALRM] signal after the given number of seconds. @raise Invalid_argument on Windows 3 2* Stop execution for the given number of seconds. 3q * Stop execution for the given number of seconds. Like [sleep], but fractions of seconds are supported. @since 4.12.0 37 * Return the execution times of the process. On Windows: partially implemented, will not report timings for child processes. 2 * Set the last access time (second arg) and last modification time (third arg) for a file. Times are expressed in seconds from 00:00:00 GMT, Jan. 1, 1970. If both times are [0.0], the access and last modification times are both set to the current time. 2 Q* decrements in real time, and sends the signal [SIGALRM] when expired.2x T* decrements in process virtual time, and sends [SIGVTALRM] when expired. 2e * (for profiling) decrements both when the process is running and when the system is running on behalf of the process; it sends [SIGPROF] when expired. 2R &* The three kinds of interval timers. 2>)* Period 1=* Current value of the timer 1۠ 6* The type describing the status of an interval timer 1Ơ `* Return the current status of the given interval timer. @raise Invalid_argument on Windows 1P * [setitimer t s] sets the interval timer [t] and returns its previous status. The [s] argument is interpreted as follows: [s.it_value], if nonzero, is the time to the next timer expiration; [s.it_interval], if nonzero, specifies a value to be used in reloading [it_value] when the timer expires. Setting [s.it_value] to zero disables the timer. Setting [s.it_interval] to zero causes the timer to be disabled after its next expiration. @raise Invalid_argument on Windows 18* {1 User id, group id} 0 \* Return the user id of the user executing the process. On Windows: always returns [1]. 0 a* Return the effective user id under which the process runs. On Windows: always returns [1]. 0 e* Set the real user id and effective user id for the process. @raise Invalid_argument on Windows 0J ]* Return the group id of the user executing the process. On Windows: always returns [1]. 0 b* Return the effective group id under which the process runs. On Windows: always returns [1]. /֠ g* Set the real group id and effective group id for the process. @raise Invalid_argument on Windows / x* Return the list of groups to which the user executing the process belongs. On Windows: always returns [[|1|]]. /S * [setgroups groups] sets the supplementary group IDs for the calling process. Appropriate privileges are required. @raise Invalid_argument on Windows / * [initgroups user group] initializes the group access list by reading the group database /etc/group and using all groups of which [user] is a member. The additional group [group] is also added to the list. @raise Invalid_argument on Windows . 1* Structure of entries in the [passwd] database. .G 1* Structure of entries in the [groups] database. -Z ;* Return the login name of the user executing the process. , t* Find an entry in [passwd] with the given name. @raise Not_found if no such entry exists, or always on Windows. ,} t* Find an entry in [group] with the given name. @raise Not_found if no such entry exists, or always on Windows. ,C x* Find an entry in [passwd] with the given user id. @raise Not_found if no such entry exists, or always on Windows. , x* Find an entry in [group] with the given group id. @raise Not_found if no such entry exists, or always on Windows. +Ϡ9* {1 Internet addresses} + +* The abstract type of Internet addresses. + d* Conversion from the printable representation of an Internet address to its internal representation. The argument string consists of 4 numbers separated by periods ([XXX.YYY.ZZZ.TTT]) for IPv4 addresses, and up to 8 numbers separated by colons for IPv6 addresses. @raise Failure when given a string that does not match these formats. +Q * Return the printable representation of the given Internet address. See {!inet_addr_of_string} for a description of the printable representation. + * A special IPv4 address, for use only with [bind], representing all the Internet addresses that the host machine possesses. * F* A special IPv4 address representing the host machine ([127.0.0.1]). *Ǡ * A special IPv6 address, for use only with [bind], representing all the Internet addresses that the host machine possesses. * @* A special IPv6 address representing the host machine ([::1]). *w F* Whether the given [inet_addr] is an IPv6 address. @since 4.12.0 *=.* {1 Sockets} */.* Unix domain *9* Internet domain (IPv4) )9* Internet domain (IPv6) )蠠 * The type of socket domains. Not all platforms support IPv6 sockets (type [PF_INET6]). On Windows: [PF_UNIX] supported since 4.14.0 on Windows 10 1803 and later. )Ԡ0* Stream socket )2* Datagram socket )y-* Raw socket )f;* Sequenced packets socket )S * The type of socket kinds, specifying the semantics of communications. [SOCK_SEQPACKET] is included for completeness, but is rarely supported by the OS, and needs system calls that are not available in this library. )?!*qq@  * The type of socket addresses. [ADDR_UNIX name] is a socket address in the Unix domain; [name] is a file name in the file system. [ADDR_INET(addr,port)] is a socket address in the Internet domain; [addr] is the Internet address of the machine, and [port] is the port number. (Ӡ? thwart tools/sync_stdlib_docs q'q(@ * Create a new socket in the given domain, and with the given kind. The third argument is the protocol type; 0 selects the default protocol for that kind of sockets. See {!set_close_on_exec} for documentation on the [cloexec] optional argument. ( B* Return the socket domain adequate for the given socket address. 'ޠ? thwart tools/sync_stdlib_docs q3 q4.@ * Create a pair of unnamed sockets, connected together. See {!set_close_on_exec} for documentation on the [cloexec] optional argument. @raise Invalid_argument on Windows 'N? thwart tools/sync_stdlib_docs q<Mdq=M@ * Accept connections on the given socket. The returned descriptor is a socket connected to the client; the returned address is the address of the connecting client. See {!set_close_on_exec} for documentation on the [cloexec] optional argument. &렠?* Bind a socket to an address. & "* Connect a socket to an address. &M x* Set up a socket for receiving connection requests. The integer argument is the maximal number of pending requests. %6* Close for receiving %ݠ4* Close for sending %ʠ-* Close both % '* The type of commands for [shutdown]. % * Shutdown a socket connection. [SHUTDOWN_SEND] as second argument causes reads on the other end of the connection to return an end-of-file condition. [SHUTDOWN_RECEIVE] causes writes on the other end of the connection to return a closed pipe condition ([SIGPIPE] signal). %+ ** Return the address of the given socket. $ @* Return the address of the host connected to the given socket. $!*qcqd@ =* The flags for {!recv}, {!recvfrom}, {!send} and {!sendto}. $ (* Receive data from a connected socket. # +* Receive data from an unconnected socket. # %* Send data over a connected socket. "j d* Same as [send], but take the data from a string instead of a byte sequence. @since 4.02.0 !͠ (* Send data over an unconnected socket. ! f* Same as [sendto], but take the data from a string instead of a byte sequence. @since 4.02.0  l5* {1 Socket options}  ^?* Record debugging information  = '* Permit sending of broadcast messages  * ** Allow reuse of local addresses for bind  9* Keep connection active   )* Bypass the standard routing algorithms  !* Leave out-of-band data in line ޠ -* Report whether socket listening is enabled ˠ .* Control the Nagle algorithm for TCP sockets  3* Forbid binding an IPv6 socket to an IPv4 address  +* Allow reuse of address and port bindings  * The socket options that can be consulted with {!getsockopt} and modified with {!setsockopt}. These options have a boolean ([true]/[false]) value. ~6* Size of send buffer  :* Size of received buffer  0* Deprecated. Use {!getsockopt_error} instead. 栠9* Report the socket type Ӡ :* Minimum number of bytes to process for input operations  ;* Minimum number of bytes to process for output operations  * The socket options that can be consulted with {!getsockopt_int} and modified with {!setsockopt_int}. These options have an integer value.  * Whether to linger on closed connections that have data present, and for how long (in seconds) = * The socket options that can be consulted with {!getsockopt_optint} and modified with {!setsockopt_optint}. These options have a value of type [int option], with [None] meaning ``disabled''. )?* Timeout for input operations 렠 * Timeout for output operations ؠ * The socket options that can be consulted with {!getsockopt_float} and modified with {!setsockopt_float}. These options have a floating-point value representing a time in seconds. The value 0 means infinite timeout. Ġ O* Return the current status of a boolean-valued option in the given socket. U <* Set or clear a boolean-valued option in the given socket.  =* Same as {!getsockopt} for an integer-valued socket option.  =* Same as {!setsockopt} for an integer-valued socket option. M P* Same as {!getsockopt} for a socket option whose value is an [int option].  P* Same as {!setsockopt} for a socket option whose value is an [int option].  X* Same as {!getsockopt} for a socket option whose value is a floating-point number. 9 X* Same as {!setsockopt} for a socket option whose value is a floating-point number. ۠ Q* Return the error condition associated with the given socket, and clear it.  .* {1 High-level network connection functions}  /* Connect to a server at the given address. Return a pair of buffered channels connected to the server. Remember to call {!Stdlib.flush} on the output channel at the right times to ensure correct synchronization. The two channels returned by [open_connection] share a descriptor to a socket. Therefore, when the connection is over, you should call {!Stdlib.close_out} on the output channel, which will also close the underlying socket. Do not call {!Stdlib.close_in} on the input channel; it will be collected by the GC eventually. 6 N* ``Shut down'' a connection established with {!open_connection}; that is, transmit an end-of-file condition to the server reading on the other side of the connection. This does not close the socket and the channels used by the connection. See {!Unix.open_connection} for how to close them once the connection is over.  * Establish a server on the given address. The function given as first argument is called for each connection with two buffered channels connected to the client. A new process is created for each connection. The function {!establish_server} never returns normally. The two channels given to the function share a descriptor to a socket. The function does not need to close the channels, since this occurs automatically when the function returns. If the function prefers explicit closing, it should close the output channel using {!Stdlib.close_out} and leave the input channel unclosed, for reasons explained in {!Unix.in_channel_of_descr}. @raise Invalid_argument on Windows. Use threads instead.  "* {1 Host and protocol databases} z 0* Structure of entries in the [hosts] database.  4* Structure of entries in the [protocols] database. ` 3* Structure of entries in the [services] database.  %* Return the name of the local host.  ^* Find an entry in [hosts] with the given name. @raise Not_found if no such entry exists. Ԡ a* Find an entry in [hosts] with the given address. @raise Not_found if no such entry exists.  b* Find an entry in [protocols] with the given name. @raise Not_found if no such entry exists. ` m* Find an entry in [protocols] with the given protocol number. @raise Not_found if no such entry exists. & a* Find an entry in [services] with the given name. @raise Not_found if no such entry exists. נ k* Find an entry in [services] with the given service number. @raise Not_found if no such entry exists. 0* Socket domain d.* Socket type N9* Socket protocol number 8** Address "7* Canonical host name  2* Address information returned by {!getaddrinfo}.  !* Impose the given socket domain `?* Impose the given socket type H=* Impose the given protocol 0 c* Do not call name resolver, expect numeric IP address  Z* Fill the [ai_canonname] field of the result  b* Set address to ``any'' address for use with {!bind} =* Options to {!getaddrinfo}. 㠠 * [getaddrinfo host service opts] returns a list of {!addr_info} records describing socket parameters and addresses suitable for communicating with the given host and service. The empty list is returned if the host or service names are unknown, or the constraints expressed in [opts] cannot be satisfied. [host] is either a host name or the string representation of an IP address. [host] can be given as the empty string; in this case, the ``any'' address or the ``loopback'' address are used, depending whether [opts] contains [AI_PASSIVE]. [service] is either a service name or the string representation of a port number. [service] can be given as the empty string; in this case, the port field of the returned addresses is set to 0. [opts] is a possibly empty list of options that allows the caller to force a particular socket domain (e.g. IPv6 only or IPv4 only) or a particular socket type (e.g. TCP only or UDP only). =* Name or IP address of host ꠠ !* Name of service or port number Ԡ ;* Host and service information returned by {!getnameinfo}.  "* Do not qualify local host names b #* Always return host as IP address O )* Fail if host name cannot be determined < '* Always return service as port number ) \* Consider the service as UDP-based instead of the default TCP =* Options to {!getnameinfo}.  * [getnameinfo addr opts] returns the host name and service name corresponding to the socket address [addr]. [opts] is a possibly empty list of options that governs how these names are obtained. @raise Not_found if an error occurs. r9* {1 Terminal interface} d * The following functions implement the POSIX standard terminal interface. They provide control over asynchronous communication ports and pseudo-terminals. Refer to the [termios] man page for a complete description. V- input modes r\r]@>* Ignore the break condition. : '* Signal interrupt on break condition. $ (* Ignore characters with parity errors. 6* Mark parity errors.  * Enable parity check on input. ⠠ %* Strip 8th bit on input characters. ̠9* Map NL to CR on input. 6* Ignore CR on input. 9* Map CR to NL on input.  ** Recognize XON/XOFF characters on input. t -* Emit XON/XOFF chars to control input flow. ^/ Output modes: rr@<* Enable output processing. N0 Control modes: rr@ .* Output baud rate (0 means close connection).>3* Input baud rate. ( &* Number of bits per character (5-8). =* Number of stop bits (1-2). 8* Reception is enabled. 栠 ** Enable parity generation and detection. Р &* Specify odd parity instead of even. 9* Hang up on last close. =* Ignore modem status lines. . Local modes: r  ^ br  ^ t@ '* Generate signal on INTR, QUIT, SUSP. ~ \* Enable canonical processing (line buffering and editing) h (* Disable flush after INTR, QUIT, SUSP. R9* Echo input characters. < ,* Echo ERASE (to erase previous character). & )* Echo KILL (to erase the current line).  %* Echo NL even if c_echo is not set. 5 Control characters: r""r""@ (* Interrupt character (usually ctrl-C). ꠠ #* Quit character (usually ctrl-\). Ԡ +* Erase character (usually DEL or ctrl-H).  (* Kill line character (usually ctrl-U).  ** End-of-file character (usually ctrl-D).  .* Alternate end-of-line char. (usually none). | n* Minimum number of characters to read before the read request is satisfied. f %* Maximum read wait (in 0.1s units). P $* Start character (usually ctrl-Q). : #* Stop character (usually ctrl-S). $ x* Return the status of the terminal referred to by the given file descriptor. @raise Invalid_argument on Windows  * Set the status of the terminal referred to by the given file descriptor. The second argument indicates when the status change takes place: immediately ([TCSANOW]), when all pending output has been transmitted ([TCSADRAIN]), or after flushing all input that has been received but not read ([TCSAFLUSH]). [TCSADRAIN] is recommended when changing the output parameters; [TCSAFLUSH], when changing the input parameters. @raise Invalid_argument on Windows  : * Send a break condition on the given file descriptor. The second argument is the duration of the break, in 0.1s units; 0 means standard duration (0.25s). @raise Invalid_argument on Windows  렠 ~* Waits until all output written on the given file descriptor has been transmitted. @raise Invalid_argument on Windows  G* Discard data written on the given file descriptor but not yet transmitted, or data received but not yet read, depending on the second argument: [TCIFLUSH] flushes data received but not read, [TCOFLUSH] flushes data written but not transmitted, and [TCIOFLUSH] flushes both. @raise Invalid_argument on Windows   M* Suspend or restart reception or transmission of data on the given file descriptor, depending on the second argument: [TCOOFF] suspends output, [TCOON] restarts output, [TCIOFF] transmits a STOP character to suspend input, and [TCION] transmits a START character to restart input. @raise Invalid_argument on Windows L * Put the calling process in a new session and detach it from its controlling terminal. @raise Invalid_argument on Windows @L,../../ocamlc)-nostdlib"-I,../../stdlib"-c(-absname"-w5+a-4-9-41-42-44-45-48+-warn-error"+A*-bin-annot"-g,-safe-string0-strict-sequence/-strict-formats)-nolabels#-pp .gawk -f ../../stdlib/expand_module_aliases.awk.unixLabels.mli B/home/barsac/ci/builds/workspace/step-by-step-build/otherlibs/unix @0*4̏&'"Ȁo>0ssssssss@s@@8CamlinternalFormatBasics0cEXy@cFcE@@,{,zUU@2R2Q]L]Khh@)U)T5F5EENEMUU@=J=Y@@k@j@+j+y1817U|U{@%%@33TTbb@">"=88IIð[c[bj j@rqOOdd@Ѱ66@__@AA @zy@..@JJ@* * ?g?f@@87,),8[[@@@:):9@..@@TT@@))LLc8c7@@@-=-<>+>*HuHtTzTy@@ΰaa@2H2GDgDfEE@77ܰ;;@G7G6@  PhPg@@WW``hh@7.7-O!O ee@3 3 7o7nLZLYfg@a`.p.o@&&ڰKKNNccii@CC°FF@@@FV@;v;uYYbb@@@GG@##--@CXCWl7lF@4847;3;2@''@'h'g--.P.`AARR@33?j?iJJ@??@@@rq@hh@..ϰBB@SnSq@@@@ZZ@  (@  @&&Ұ22ZlZk@H>H=cccc@@$$%K%JPYPXY^Y`@@#Y#X]I]H@GF'M'L+i+x=!= AAHHNN@p@@VV@0H0XE>E=MM@BB``@DC**OOj$j#@//@-H-G6867@BuBtDfDeIIMHMGfDfC@ѰIIͰKK@@ ^ `qpNoNn@--<<@  5y5@@  66°EEejei@2 2@AZAY@2n2mff@!!ҰRR@..@55@ii@gh@@@dd@İbb@@hh@]]@@@  (()L)K@@((\\@LmLl@@ D C1r1JJKMKL@33@  8-8,@@İ__@  J<J;@r@<<ذ^^@\\@RPRO``@`_=<RR2@IIII@667776;v;udd@@P@