Caml1999I031yv$Unix%error8@@%E2BIG @@(unix.mlimm@@A&EACCES @@ n n@@B&EAGAIN@@oo@@#C%EBADF@@p35p3<@@,D%EBUSY@@%qfh&qfo@@5E&ECHILD@@.r/r@@>F'EDEADLK@@7s8s@@GG$EDOM@@@t  At  @@PH&EEXIST@@Iu L NJu L V@@YI&EFAULT@@Rv w ySv w @@bJ%EFBIG@@[w  \w  @@kK%EINTR@@dx  ex  @@tL&EINVAL@@my  ny  @@}M#EIO@@vz > @wz > E@@N&EISDIR@@{ p r{ p z@@O&EMFILE@@|  |  @@P&EMLINK@@}  }  @@Q,ENAMETOOLONG@@~  ~  @@R&ENFILE@@ ? A ? I@@S&ENODEV@@@  @  @@T&ENOENT @@A  A  @@U'ENOEXEC!@@B  B  @@V&ENOLCK"@@C  C  '@@W&ENOMEM#@@D O QD O Y@@X&ENOSPC$@@E  E  @@Y&ENOSYS%@@F  F  @@Z'ENOTDIR&@@G  G  @@[)ENOTEMPTY'@@H  H  )@@\&ENOTTY(@@I O QI O Y@@ ]%ENXIO)@@J  J  @@^%EPERM*@@K  K  @@_%EPIPE+@@LL @@(`&ERANGE,@@!M-/"M-7@@1a%EROFS-@@*N]_+N]f@@:b&ESPIPE.@@3O4O@@Cc%ESRCH/@@<P=P@@Ld%EXDEV0@@EQFQ@@Ue+EWOULDBLOCK1@@NR(*OR(7@@^f+EINPROGRESS2@@WS]_XS]l@@gg(EALREADY3@@`TaT@@ph(ENOTSOCK4@@iUjU@@yi,EDESTADDRREQ5@@rVsV!@@j(EMSGSIZE6@@{WMO|WMY@@k*EPROTOTYPE7@@X}X}@@l+ENOPROTOOPT8@@YY@@m/EPROTONOSUPPORT9@@ZZ@@n/ESOCKTNOSUPPORT:@@[')[':@@o*EOPNOTSUPP;@@\`b\`n@@p,EPFNOSUPPORT<@@]]@@q,EAFNOSUPPORT=@@^^@@r*EADDRINUSE>@@_-/_-;@@s-EADDRNOTAVAIL?@@`ce`ct@@t(ENETDOWN@@@aa@@u+ENETUNREACHA@@bb@@v)ENETRESETB@@cc@@w,ECONNABORTEDC@@dIKdIY@@x*ECONNRESETD@@ee@@ y'ENOBUFSE@@ff@@z'EISCONNF@@ g g@@{(ENOTCONNG@@h57h5A@@$|)ESHUTDOWNH@@ilnily@@-},ETOOMANYREFSI@@&j'j@@6~)ETIMEDOUTJ@@/k0k@@?,ECONNREFUSEDK@@8l!#9l!1@@H@)EHOSTDOWNL@@AmSUBmS`@@QA,EHOSTUNREACHM@@JnKn@@ZB%ELOOPN@@SoTo@@cC)EOVERFLOWO@@\p]p@@lD+EUNKNOWNERRP#intA@@@@@lr8:mr8N@@|E@@A@@@@@pltt@@@@@A@ *Unix_error #exnG@@@@&stringO@@@@@@@@A&_none_@@A@FB@-error_message@@@@@@@@@@@@G@1handle_unix_error@@!a@ !b@!@@@ @@"@@#@@@@H@+environment@$unitF@@@$%arrayHK@@@%@@@&@@'@,,,R@@I@2unsafe_environment@@@@(c@@@)@@@*@@+@/@@J@&getenv@s@@@,w@@@-@@.@www@@ K@-unsafe_getenv@@@@/@@@0@@1@@@ L@&putenv@@@@2@@@@3d@@@4@@5@@6@)*@@9M@.process_status8@@'WEXITEDZ@@@9@@=  >  @@MO)WSIGNALED[@@@8@@K!K!ML!K!_@@[P(WSTOPPED\@@@7@@Y!!Z!!@@iQ@@A@@@@@]  @@@@lNA@)wait_flag8@@'WNOHANG^@@k""l"#@@{S)WUNTRACED_@@t#p#ru#p#}@@T@@A@@@@@x""@@A@RA@%execv@@@@:@ @@@;@@@@@?@####@@U@&execve@@@@@@ߠ(@@@A@@@B@3@@@C@@@D!a@E@@F@@G@@H@% % % %C@@V@&execvp@G@@@I@Q@@@J@@@K!a@L@@M@@N@%%%%@@W@'execvpe@e@@@O@&o@@@P@@@Q@1z@@@R@@@S!a@T@@U@@V@@W@&*&*&*&d@@X@$fork@O@@@X@@@Y@@Z@&&&&@@(Y@$wait@b@@@[@@@]@@@\@@^@@_@3''4''@@CZ@'waitpid@$listI@@@`@@@a@@@@b@@@d(@@@c@@e@@f@@g@Z(q(q[(q(@@j[@&system@@@@h:@@@i@@j@l**m**@@|\@%_exit@@@@k!a@l@@m@ ,, ,,@@]@&getpid@@@@n(@@@o@@p@0y0y0y0@@^@'getppid@@@@q;@@@r@@s@ 00 00@@_@$nice@J@@@tN@@@u@@v@&1I1I&1I1^@@`@*file_descr8@@@A@@@@@02c2c02c2r@@@@aA@%stdin@@@w@322322@@b@&stdout @@@x@622622@@c@&stderr@@@y@93(3(93(3?@@d@)open_flag8@@(O_RDONLYq@@=3}3=3}3@@f(O_WRONLYr@@>33>33@@g&O_RDWRs@@?33?33@@h*O_NONBLOCKt@@@4143@414?@@ i(O_APPENDu@@A4r4tA4r4~@@)j'O_CREATv@@"B44#B44@@2k'O_TRUNCw@@+C44,C44@@;l&O_EXCLx@@4D5.505D5.58@@Dm(O_NOCTTYy@@=E5f5h>E5f5r@@Mn'O_DSYNCz@@FF55GF55@@Vo&O_SYNC{@@OH6>6@PH6>6H@@_p'O_RSYNC|@@XJ66YJ66@@hq.O_SHARE_DELETE}@@aL7K7MbL7K7]@@qr)O_CLOEXEC~@@jN77kN77@@zs*O_KEEPEXEC@@sR88tR88@@t@@A@@@@@w<3l3l@@A@eA@)file_perm8@@@A@@@z@@@@W99W99@@A@uA@(openfile@ @@@{@W@@@|@@@}@'@@@~@@@@@@@@@@[: : [: :N@@v@%close@@@@@@@@@@`; ; `; ;(@@w@%fsync@@@@@@@@@@c;J;Jc;J;h@@x@$read@ @@@@%bytesC@@@@}@@@@@@@@@@@@@@@@@@@h;;h;;@@y@%write@2@@@@&@@@@@@@@@@@@@@@@@@@@@@@m<<m<<@@%z@,single_write@V@@@@J@@@@@@@@@@@@@@@@@@@@@@@9t>>:t>>J@@I{@/write_substring@z@@@@@@@@@@@@@@@@@@@@@@@@@@@]y>>^y>?@@m|@6single_write_substring@@@@@@@@@ @@@@@@@@@@@@@@@@@@@~????@@}@3in_channel_of_descr@@@@&Stdlib*in_channel@@@@@@@@@@@@~@4out_channel_of_descr@@@@+out_channel@@@@@@EEEF@@@3descr_of_in_channel@&*in_channel@@@@@@@@@IIIJ @@@4descr_of_out_channel@9+out_channel@@@@@@@@@JMJMJMJ@@@,seek_command8@@(SEEK_SET@@JKJK @@(SEEK_CUR@@KKKMKKKW@@(SEEK_END@@KKKK@@@@A@@@@@JJ@@A@A@%lseek@5@@@@@@@@7@@@@@@@@@@@@@LLLL9@@"@(truncate@@@@@@@@f@@@@@@@@+LL,LL@@;@)ftruncate@l@@@@@@@~@@@@@@@@CMMDMM:@@S@)file_kind8@@%S_REG@@RMMSMM@@b%S_DIR@@[MM\MM@@k%S_CHR@@dN"N$eN"N+@@t%S_BLK@@mNZN\nNZNc@@}%S_LNK@@vNNwNN@@&S_FIFO@@NNNN@@&S_SOCK@@NNNN@@@@A@@@@@MM@@A@A@%stats8@@&st_dev@3@@@ްO1O5O1OB@@&st_ino@?@@@ݰOfOjOfOw@@'st_kind@k@@@ܰOOOO@@'st_perm@@@@۰OOOO@@(st_nlink@b@@@ڰPP PP@@&st_uid@n@@@ٰP>PBP>PO@@&st_gid@z@@@ذPzP~PzP@@'st_rdev@@@@װPPPP@@'st_size@@@@ְQQQQ@@ (st_atime@%floatD@@@հ Q6Q: Q6QK@@(st_mtime@@@@԰QnQrQnQ@@&(st_ctime@@@@Ӱ"QQ#QQ@@2@@A@@@@@&O$O$'QQ@@@@6A@$stat@@@@@@@@@@9R&R&:R&R@@@I@%lstat@@@@@@@@@@KRtRtLRtR@@[@%fstat@@@@$@@@@@@\SS]SS @@l@&isatty@@@@$boolE@@@@@@pSvSvqSvS@@@Ӡ)LargeFile@%lseek^@@@@@%int64M@@@@@@@ @@@@@@@@@@TKTOTKT@@@(truncate_@@@@@ @@@@@@@@@@@ TT TT@@@)ftruncate`@@@@@8@@@@@@@@@@@TTTU@@@%statsa8@@&st_dev@n@@@UFUNUFU[@@&st_ino@z@@@ UUUU@@'st_kind@;@@@ UUUU@@'st_perm@W@@@ UUUV@@ (st_nlink@@@@  V,V4 V,VC@@ &st_uid@@@@  VgVo VgV|@@ "&st_gid@@@@ VV VV@@ .'st_rdev@@@@ *VV +VW@@ :'st_size@@@@ 6W6W> 7W6WN@@ F(st_atime@:@@@ BWoWw CWoW@@ R(st_mtime@F@@@ NWW OWW@@ ^(st_ctime@R@@@ ZWW [WX@@ j@@A@@@@@ ^U5U9 _X0X7@@@@ nA@$statb@@@@@@@@@@ qX8X< rX8XV@@ @%lstatc@@@@@@@@@@  XWX[  XWXv@@ @%fstatd@@@@$@@@@@@ !XwX{ !XwX@@ @@@ T2T2 "XX@ @@(map_file@@@@#pos&optionJ*@@@@@@@)(Bigarray$kind!a@!b@@@@@=(Bigarray&layout!c@@@@@p@@@@~@@@@@@\(Bigarray(Genarray!t40"@@@@@@@@@@@@@@@@ 0ZZ 5[j[@@ @&unlink@@@@D@@@@@@ hdfdf hdfd@@ @&rename@@@@@@@@]@@@@@@@@ "reFeF #reFek@@ 2@$link&follow@@@@@@@@@@@@@@@@@ @@ @@ @@ @ Gzff H{g g0@@ W@(realpath@@@@ @@@@@@ Zinin [ini@@ j@1access_permission8@@$R_OK=@@ ijzj~ jjzj@@ y$W_OK>@@ rjj sjj@@ $X_OK?@@ {jj |jj@@ $F_OK@@@ k%k' k%k-@@ @@A@@@@@ jaja@@A@ A@%chmod@@@@@@@@@@@@@@@@ kk kk@@ @&fchmod@@@@@@@@@@@@@@@@ kk kl@@ @%chown@?@@@@a@@@@g@@@@@@@@@@@@ @ l`l` l`l@@ @&fchown@@@@!@@@@"@@@@#.@@@$@@%@@&@@'@ ll lm@@ @%umask@@@@(@@@)@@*@ mm mm@@ @&access@@@@+@٠@@@,@@@-_@@@.@@/@@0@ $nn %nnL@@ 4@#dup'cloexec@@@1@@@2@q@@@3t@@@4@@5@@6@ AoSoS Boo@@ Q@$dup2'cloexec@@@7@@@8@@@@9@@@@:@@@;@@<@@=@@>@ dpfpf epp@@ t@,set_nonblock@@@@?@@@@@@A@ vq~q~ wq~q@@ @.clear_nonblock@@@@B@@@C@@D@ ss ss5@@ @1set_close_on_exec@@@@E@@@F@@G@ ss ss@@ @3clear_close_on_exec@@@@H@@@I@@J@ ~;~; ~;~g@@ @%mkdir@ 5@@@K@@@@L@@@M@@N@@O@ ~~ ~@@ @%rmdir@ M@@@P @@@Q@@R@ NN Nh@@ @%chdir@ `@@@S %@@@T@@U@  @@ @&getcwd@ 4@@@V w@@@W@@X@  @@ @&chroot@ @@@Y K@@@Z@@[@ ++ +F@@ @*dir_handle8@@@A@@@@@ ! !@@@@ )A@'opendir@ @@@\@@@]@@^@ ,$ -$@@ <@'readdir@@@@_ @@@`@@a@ >'// ?'/Q@@ N@)rewinddir@!@@@b @@@c@@d@ P+ Q+@@ `@(closedir@3@@@e @@@f@@g@ b.-- c.-N@@ r@$pipe'cloexecŠ@@@h@@@i@ @@@j@@@l@@@k@@m@@n@@o@ 6 7@@ @&mkfifo@ @@@p@@@@q @@@r@@s@@t@ > >D@@ @.create_process@ (@@@u@  2@@@v@@@w@@@@x@@@@y@@@@z b@@@{@@|@@}@@~@@@@@ G I<Q@@ @2create_process_env@ U@@@@  _@@@@@@@ ! j@@@@@@@)@@@@.@@@@3@@@ @@@@@@@@@@@@@@@@ W YDg@@ @/open_process_in@ @@@*in_channel@@@@@@ _   _ J@@ (@0open_process_out@ @@@+out_channel@@@@@@ ,l -l@@ <@,open_process@ @@@*in_channel@@@+out_channel@@@@@@@@ Iw Jw@@ Y@1open_process_full@ @@@@  @@@@@@*in_channel@@@+out_channel@@@*in_channel@@@@@@@@@@ w x@@ @4open_process_args_in@ @@@@  @@@@@@*in_channel@@@@@@@@  @@ @5open_process_args_out@ @@@@  )@@@@@@!+out_channel@@@@@@@@  @@ @1open_process_args@ >@@@@  H@@@@@@C*in_channel@@@I+out_channel@@@@@@@@@@  @@ @6open_process_args_full@ f@@@@ ' p@@@@@@@ 2 {@@@@@@v*in_channel@@@|+out_channel@@@*in_channel@@@@@@@@@@@@]@@&@.process_in_pid@*in_channel@@@ @@@@@@*+@@:@/process_out_pid@+out_channel@@@ @@@@@@>SS?S{@@N@+process_pid@*in_channel@@@ˠ+out_channel@@@@@ @@@@@@[  \ :@@k@0process_full_pid@*in_channel@@@Ѡ+out_channel@@@Р*in_channel@@@@@ @@@@@@~@@@0close_process_in@*in_channel@@@ _@@@@@@@@@1close_process_out@ +out_channel@@@ r@@@@@@SSS@@@-close_process@#*in_channel@@@ܠ)+out_channel@@@@@ @@@@@@T@@@2close_process_full@?*in_channel@@@E+out_channel@@@K*in_channel@@@@@ @@@@@@0@@@'symlink&to_dirE@@@@@@@ w@@@@ }@@@ B@@@@@@@@@@E@@@+has_symlink@ Q@@@@@@@@@@@*@(readlink@ @@@ @@@@@@- ==. =\@@=@&select@  r@@@@@@@  |@@@@@@@  @@@@@@@R@@@  @@@@@@ ( @@@@@@ 1 @@@@@@@@@@@@@@@@@wx)@@@,lock_command8@@'F_ULOCKp@@##@@&F_LOCKq@@$$@@'F_TLOCKr@@%13%1<@@&F_TESTs@@&&@@'F_RLOCKt@@''@@(F_TRLOCKu@@((@@@@A@@@@@"@@A@A@%lockf@ @@@@L@@@@ f@@@ @@@ @@ @@ @@ @+{{+{@@@$kill@ y@@@ @ @@@ (@@@@@@@@Q{{Q{@@@3sigprocmask_command8@@+SIG_SETMASKy@@XHLXHW@@ )SIG_BLOCKz@@YXZYXe@@+SIG_UNBLOCK{@@ZfhZfu@@@@A@@@@@W--@@A@!A@+sigprocmask@,@@@@  @@@@@@  @@@@@@@@@@@4\ww5\w@@D@*sigpending@ ~@@@  @@@@@@@@@LmZZMmZ{@@\@*sigsuspend@  @@@@@@ @@@@@ @dses3@@t@%pause@ @@@! @@@"@@#@w{TTx{Tl@@@-process_times8@@)tms_utime@@@@'262H@@)tms_stime@@@@&kok@@*tms_cutime@@@@%@@*tms_cstime@@@@$@@@AA@@@@@03@@@@A@"tm8@@&tm_sec@Y@@@0txt@@&tm_min@e@@@/@@'tm_hour@q@@@.@@'tm_mday@}@@@-#@@&tm_mon@@@@,KOK\@@ 'tm_year@@@@+@@ 'tm_wday@@@@*  @@ 'tm_yday@@@@) @@' (tm_isdst@@@@(#48$4H@@3 @@A@@@@@'jj({~@@@@7A@$time@q@@@1 2@@@2@@3@:;@@J@,gettimeofday@@@@4 E@@@5@@6@M**N*J@@]@&gmtime@ T@@@7@@@8@@9@`a@@p@)localtime@ g@@@:@@@;@@<@rs@@@&mktime@!@@@= @@@?,@@@>@@@@@A@@@@%alarm@0@@@B4@@@C@@D@¡¡¡·@@@%sleep@C@@@E@@@F@@G@&&&=@@@&sleepf@ @@@H@@@I@@J@vvvÐ@@@%times@@@@KY@@@L@@M@...O@@@&utimes@`@@@N@ @@@O@ @@@P1@@@Q@@R@@S@@T@@@@.interval_timer8@@+ITIMER_REAL@@+/+:@@.ITIMER_VIRTUAL@@ƗƙƗƩ@@+ITIMER_PROF@@   @@'@@A@@@@@@@A@*A@5interval_timer_status8@@+it_interval@ $@@@V,-/@@<(it_value@ 0@@@U8FJ9F[@@H@AA@@@@@<=ȉȌ@@@@LA@)getitimer@N@@@W.@@@X@@Y@OP@@_@)setitimer@@@@Z@@@@[@@@\@@]@@^@eggfwɹ@@u @&getuid@@@@_@@@`@@a@xy@@!@'geteuid@@@@b!@@@c@@d@KKKd@@"@&setuid@0@@@e@@@f@@g@@@#@&getgid @@@@hG@@@i@@j@PPPh@@$@'getegid @@@@kZ@@@l@@m@  @@%@&setgid @i@@@n@@@o@@p@NNNf@@&@)getgroups @!@@@q@@@r@@@s@@t@@@'@)setgroups @3@@@u@@@vB@@@w@@x@tttϕ@@(@*initgroups@@@@y@@@@z[@@@{@@|@@}@ #<<!#<b@@0)@,passwd_entry8@@'pw_name@@@@2,рф3,рѕ@@B+)pw_passwd@@@@>-іњ?-іѭ@@N,&pw_uid@@@@J.ѮѲK.Ѯѿ@@Z-&pw_gid@@@@V/W/@@f.(pw_gecos@@@@b0c0@@r/&pw_dir@@@@n1o1@@~0(pw_shell@@@@~z2{2@@1@@A@@@@@~+ll3@@@@*A@+group_entry8@@'gr_name@ @@@7bf7bw@@3)gr_passwd@@@@8x|8xҏ@@4&gr_gid@>@@@9ҐҔ9Ґҡ@@5&gr_mem@2@@@@@@:ҢҦ:Ңһ@@6@@A@@@@@6OO;Ҽҿ@@@@2A@(getlogin@@@@J@@@@@@>>@@7@(getpwnam@Y@@@@@@@@@AVVAV{@@8@(getgrnam@l@@@q@@@@@@EE@@9@(getpwuid@@@@&@@@@@@Jԕԕ JԕԷ@@:@(getgrgid@@@@%@@@@@@O66O6W@@*;@)inet_addr8@@@A@@@@@#X$X@@@@3@-inet_addr_any@@@@Th؞؞Uh؞ػ@@d?@2inet_addr_loopback+@@@@`lBBalBd@@p@@.inet6_addr_any7@@@@loٱٱmoٱ@@|A@3inet6_addr_loopbackC@@@@xsVVysVy@@B@-is_inet6_addr@Q@@@ @@@@@@vv@@C@-socket_domain8@@'PF_UNIXƐ@@~\`~\g@@E'PF_INETǐ@@ۏۑۏۚ@@F(PF_INET6Ȑ@@@@G@@A@@@@@}GG@@A@DA@+socket_type8@@+SOCK_STREAMʐ@@@@I*SOCK_DGRAMː@@   @@J(SOCK_RAW̐@@@B@L@@K.SOCK_SEQPACKET͐@@rtr݄@@L@@A@@@@@@@A@HA@(sockaddr 8@@)ADDR_UNIXϐi@@@@@ޫޯޫ@@N)ADDR_INETА@@@@@@@@@@O@@A@@@@@ޛޛ@@@@MA@&socket!'cloexec g @@@@@@@@@@@p@@@@@@@a@@@@@@@@@@@@./T@@>P@2domain_of_sockaddr"@[@@@"@@@@@@@A@@PQ@*socketpair#'cloexec  @@@@@@@<@@@@;@@@@@@@@@@@@@@@@@@@@@@@@o  p@@R@&accept$'cloexec Ҡ @@@@@@@@@@@@@ƠW@@@@@@@@@@UU@@S@$bind%@@@@@j@@@@@@@@@@@@@T@'connect&@@@@@@@@@@@@@@@@J@@U@&listen'@@@@@k@@@@@@@@@@@sss@@V@0shutdown_command(8@@0SHUTDOWN_RECEIVEِ@@040D@@X-SHUTDOWN_SENDڐ@@kmk|@@Y,SHUTDOWN_ALLې@@@@ Z@@A@@@@@@@A@ WA@(shutdown)@>@@@@1@@@P@@@@@@@@9@@%[@+getsockname*@V@@@@@@@@@&]]']@@6\@+getpeername+@g@@@@@@@@@78@@G]@(msg_flag,8@@'MSG_OOB@@F59G5@@@V_-MSG_DONTROUTE@@OACPAR@@_`(MSG_PEEK@@XSUYS_@@ha@@A@@@@@\%%@@A@k^A@$recv-@@@@@@@@@ @@@@@@@@?G@@@@@@ @@@@@@@@@@@@@@@@b@(recvfrom.@@@@@@@@@:@@@@@@@@@n/@@@@@@Q@@@@@@@@@@@@@@@@@@@dv@@c@$send/@@@@@@@@@o@@@@u@@@@d@@@@@@@@@@@@@@@@@@@ @@@d@.send_substring0@.@@@ @{@@@ @@@@ @@@@ @Ѡ@@@@@@@@@@@@@@@@@@@@/k@@+e@&sendto1@\@@@@P@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@!@@"@@#@NO.@@^f@0sendto_substring2@@@@$@@@@%@@@@&@@@@'@2@@@(@@@)@A@@@*@@@+@@,@@-@@.@@/@@0@@1@]]@@g@2socket_bool_option38@@(SO_DEBUG@@cgco@@i,SO_BROADCAST@@@@j,SO_REUSEADDR@@@@k,SO_KEEPALIVE@@+@@l,SO_DONTROUTE@@LNL\@@m,SO_OOBINLINE@@@@n-SO_ACCEPTCONN@@@@o+TCP_NODELAY@@   @@p)IPV6_ONLY@@ QS Q^@@q,SO_REUSEPORT@@  @@r@@A@@@@@II@@A@hA@1socket_int_option48@@)SO_SNDBUF@@@@t)SO_RCVBUF@@@@ u(SO_ERROR@@@@v'SO_TYPE@@;=;F@@w+SO_RCVLOWAT@@jljy@@'x+SO_SNDLOWAT@@ !@@0y@@A@@@@@$@@A@3sA@4socket_optint_option58@@)SO_LINGER@@23@@B{@@A@@@@@6@@A@EzA@3socket_float_option68@@+SO_RCVTIMEO@@D#FJE#FU@@T}+SO_SNDTIMEO@@M$}N$}@@]~@@A@@@@@Q"++@@A@`|A@*getsockopt7@@@@2@@@@3@@@4@@5@@6@h*i*@@x@*setsockopt8@@@@7@@@@8@@@@9@@@:@@;@@<@@=@.--.-n@@@.getsockopt_int9@@@@>@@@@?3@@@@@@A@@B@11@@@.setsockopt_int:@@@@C@@@@D@L@@@E@@@F@@G@@H@@I@40040s@@@1getsockopt_optint;@@@@J@@@@K$l@@@L@@@M@@N@@O@77@@@1setsockopt_optint<@@@@P@@@@Q@B@@@R@@@S4@@@T@@U@@V@@W@;VV<n@@ @0getsockopt_float=@:@@@X@@@@Y @@@Z@@[@@\@@@D@@!@0setsockopt_float>@R@@@]@@@@^@"@@@_i@@@`@@a@@b@@c@.D/D@@>@0getsockopt_error?@o@@@d@@@e@@@f@@g@DHKKEHK|@@T@/open_connection@@@@@h*in_channel@@@j+out_channel@@@i@@k@@l@`O  aO C@@p@3shutdown_connectionA@*in_channel@@@m@@@n@@o@t]zzu]z@@@0establish_serverB@@*in_channel@@@p@+out_channel@@@q@@@r@@s@@t@Z@@@u@@@v@@w@@x@efK@@@*host_entryC8@@&h_name @&@@@~zkozk@@)h_aliases@6@@@|@@@}{{@@*h_addrtype@@@@{||@@+h_addr_list@ @@@y@@@z}}@@@@A@@@@@yYY~@@@@A@.protocol_entryD8@@&p_name@h@@@040D@@)p_aliases@/x@@@@@@EIEb@@'p_proto@@@@ cg ct@@@@A@@@@@ux@@@@A@-service_entryE8@@&s_name@@@@!"@@1)s_aliases@b@@@@@@23@@B&s_port@@@@>? @@N's_proto@@@@J K !@@Z@@A@@@@@NO"%@@@@^A@+gethostnameF@@@@@@@@@@a__b_@@q@-gethostbynameG@@@@@@@@@@tu@@@-gethostbyaddrH@M@@@@@@@@@888c@@@.getprotobynameI@@@@@@@@@@@@@0getprotobynumberJ@=@@@@@@@@@aaa@@@-getservbynameK@3@@@@9@@@@@@@@@@@6@@@-getservbyportL@h@@@@R@@@@@@@@@@@@@@)addr_infoM8@@)ai_family"@@@@SWSq@@+ai_socktype#@@@@@@+ai_protocol$@@@@@@'ai_addr%@@@@    (@@,ai_canonname&@@@@ H L H a@@*@@A@@@@@BB  @@@@.A@2getaddrinfo_optionN8@@)AI_FAMILY(@@@@@1  2  @@A+AI_SOCKTYPE)@@@@@> 0 2? 0 N@@N+AI_PROTOCOL*@@@@@L | ~M | @@\.AI_NUMERICHOST+@@U  V  @@e,AI_CANONNAME,@@^ V X_ V f@@n*AI_PASSIVE-@@g  h  @@w@@A@@@@@k  @@@@zA@+getaddrinfoO@@@@@@@@@Cd@@@@@@L@@@@@@@@@@@@@    @@@)name_infoP8@@+ni_hostname0@@@@@@*ni_service1@+@@@2@@@@A@@@@@hk@@@@A@2getnameinfo_optionQ8@@)NI_NOFQDN3@@@@.NI_NUMERICHOST4@@ @@+NI_NAMEREQD5@@HJHW@@.NI_NUMERICSERV6@@@@(NI_DGRAM7@@@@@@A@@@@@@@A@A@+getnameinfoR@@@@@G@@@@@@n@@@@@@@@qq q@@@+terminal_ioS8@@(c_ignbrk:A@@@߰@@*(c_brkint;A@@@ް&%)'%A@@6(c_ignpar?@@N'c_inpck>A@@@۰JK@@Z(c_istrip?A@@@ڰV6:W6R@@f'c_inlcr@A@@@ٰb~c~@@r'c_igncrAA@@@ذno@@~'c_icrnlBA @@@װz{@@&c_ixonCA@@@ְ/3/I@@ 'c_ixoffDA$@@@հ||@@à'c_opostEA0@@@԰@@Ġ'c_obaudFA@@@@Ӱ<@<V@@Š'c_ibaudGAL@@@Ұ@@Ơ'c_csizeHAX@@@Ѱ@@Ǡ(c_cstopbIAd@@@а  '@@Ƞ'c_creadJAl@@@ϰLPLg@@ɠ(c_parenbKAx@@@ΰ@@ʠ(c_paroddLA@@@Ͱ@@ˠ'c_hupclMA@@@̰ ! 8@@̠(c_clocalNA@@@˰  Y]  Yu@@͠&c_isigOA@@@ʰ  @@&Π(c_icanonPA@@@ɰ" # @@2Ϡ(c_noflshQA@@@Ȱ.y}/y@@>Р&c_echoRA@@@ǰ:;@@JѠ'c_echoeSA@@@ưFG@@VҠ'c_echokTA@@@ŰROSSOj@@bӠ(c_echonlUA@@@İ^_@@nԠ'c_vintrVA$charB@@@ðlm@@|ՠ'c_vquitWA@@@°xLPyLg@@֠(c_veraseXA@@@@@נ'c_vkillYA&@@@@@ؠ&c_veofZA2@@@+/+E@@٠&c_veol[A>@@@x|x@@ڠ&c_vmin\AJ@@@@@۠'c_vtime]AV@@@ Z ^ Z t@@ܠ(c_vstart^Ab@@@    @@ݠ'c_vstop_An@@@   !@@@@A@@@@@ !/!2@@@@A@)tcgetattrT@@@@@@@@@@"!4!4"!4!]@@@,setattr_whenU8@@'TCSANOWb@@)!!)!!@@ )TCSADRAINc@@*!!*!" @@)TCSAFLUSHd@@+" " +" "@@@@A@@@@@(!!@@A@"A@)tcsetattrV@S@@@@1@@@@>@@@j@@@@@@@@@@/-""0-""Z@@?@+tcsendbreakW@p@@@@@@@@@@@@@@@G9$?$?H9$?$j@@W@'tcdrainX@@@@@@@@@@Y@%9%9Z@%9%Y@@i@+flush_queueY8@@(TCIFLUSHi@@hG%%iG%%@@x(TCOFLUSHj@@qH%&rH%& @@)TCIOFLUSHk@@zI& & {I& &@@@@A@@@@@~F%%@@A@A@'tcflushZ@@@@@1@@@@@@@@@@@K&&K&&I@@@+flow_action[8@@&TCOOFFn@@U''U''@@%TCOONo@@V''V''@@&TCIOFFp@@W''W''@@%TCIONq@@X''X''@@@@A@@@@@T''@@A@A@&tcflow\@@@@@:@@@@@@@@@@@Z''Z'(@@@&setsid]@$@@@@@@@@@c)W)Wc)W)o@@@@_L$Unix0sAmў/Stdlib__Complex0EU!|u]h.50Stdlib__Bigarray0J Zf;RӠ&Stdlib0yӶ~*8CamlinternalFormatBasics0cEXy @xz > E@ 4 Hardware I/O error z > Vz > o@@@@@@@N&EISDIR@@{ p r{ p z@60 Is a directory { p { p @@@@@@@O&EMFILE@@|  |  @L $ Too many open files by the process |  |  @@@@@@@P&EMLINK@@}  }  @b0 Too many links }  }  @@@@@@@Q,ENAMETOOLONG@@~  ~  @x3 Filename too long ~  &~  >@@@@@@@R&ENFILE@@ ? A ? I@ # Too many open files in the system  ? W ? @@@@@@@ S&ENODEV@@@  @  @0 No such device @   @  @@@@@@@ T&ENOENT @@A  A  @; No such file or directory A  A  @@@@@@@6U'ENOEXEC!@@'B  (B  @А8 Not an executable file 4B  5B  @@@@@@@LV&ENOLCK"@@=C  >C  '@搠4 No locks available JC  5KC  N@@@@@@@bW&ENOMEM#@@SD O QTD O Y@3 Not enough memory `D O gaD O @@@@@@@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  )@T5 Directory not empty H  4H  N@@@@@@@\&ENOTTY(@@I O QI O Y@j % Inappropriate I/O control operation I O gI O @@@@@@@]%ENXIO)@@J  J  @; No such device or address J  J  @@@@@@@^%EPERM*@@K  K  @9 Operation not permitted K  K @@@@@@@_%EPIPE+@@LL @- Broken pipe LL,@@@@@@@(`&ERANGE,@@M-/M-7@2 Result too large &M-E'M-\@@@@@@@>a%EROFS-@@/N]_0N]f@ؐ7 Read-only file system <N]u=N]@@@@@@@Tb&ESPIPE.@@EOFO@= Invalid seek e.g. on a pipe ROSO@@@@@@@jc%ESRCH/@@[P\P@1 No such process hPiP@@@@@@@d%EXDEV0@@qQrQ@. Invalid link ~QQ'@@@@@@@e+EWOULDBLOCK1@@R(*R(7@07 Operation would block R(@R(\@@@@@@@f+EINPROGRESS2@@S]_S]l@F; Operation now in progress S]uS]@@@@@@@g(EALREADY3@@TT@\? Operation already in progress TT@@@@@@@h(ENOTSOCK4@@UU@r Socket operation on non-socket UU@@@@@@@i,EDESTADDRREQ5@@VV!@> Destination address required V)VL@@@@@@@j(EMSGSIZE6@@WMOWMY@2 Message too long WMeWM|@@@@@@@k*EPROTOTYPE7@@ X} X}@ Protocol wrong type for socket X}X}@@@@@@@0l+ENOPROTOOPT8@@!Y"Y@ʐ8 Protocol not available .Y/Y@@@@@@@Fm/EPROTONOSUPPORT9@@7Z8Z@8 Protocol not supported DZ EZ&@@@@@@@\n/ESOCKTNOSUPPORT:@@M[')N[':@; Socket type not supported Z['?[['_@@@@@@@ro*EOPNOTSUPP;@@c\`bd\`n@ # Operation not supported on socket p\`xq\`@@@@@@@p,EPFNOSUPPORT<@@y]z]@"? Protocol family not supported ]]@@@@@@@q,EAFNOSUPPORT=@@^^@8 1 Address family not supported by protocol family ^^,@@@@@@@r*EADDRINUSE>@@_-/_-;@N8 Address already in use _-E_-b@@@@@@@s-EADDRNOTAVAIL?@@`ce`ct@d Can't assign requested address `c{`c@@@@@@@t(ENETDOWN@@@aa@z1 Network is down aa@@@@@@@u+ENETUNREACHA@@bb@8 Network is unreachable bb@@@@@@@ v)ENETRESETB@@cc@ % Network dropped connection on reset  c cH@@@@@@@"w,ECONNABORTEDC@@dIKdIY@ " Software caused connection abort  dIa!dI@@@@@@@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 bgcg4@@@@@@@z{(ENOTCONNG@@kh57lh5A@9 Socket is not connected xh5Myh5k@@@@@@@|)ESHUTDOWNH@@ilnily@* " Can't send after socket shutdown ilil@@@@@@@},ETOOMANYREFSI@@jj@@ # Too many references: can't splice jj@@@@@@@~)ETIMEDOUTJ@@kk@V6 Connection timed out kk @@@@@@@,ECONNREFUSEDK@@l!#l!1@l4 Connection refused l!9l!R@@@@@@@@)EHOSTDOWNL@@mSUmS`@. Host is down mSkmS~@@@@@@@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)p6@@@@@@@@D+EUNKNOWNERRP@@@@@6r8:7r8N@ߐ/ Unknown error Cr8PDr8d@@@@@@@[E@@A@@@@@Gltt@ 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. SseeTw @@@@@@@@@k@@@@@@`n@@@@fo@@@@ӠӰlp37@@@@Ѡàðrqfj@@@@xr@@@@~s@@@@t  @@@@u L P@@@@ssv w {q@@@@tqccw  a@@@@daSSx  Q@@@@TQCCy  A@@@@DA33z > B1@@@@41##{ p t!@@@@$!|  @@@@}  @@@@~  @@@@ ? C@@@@ӠӰ@  @@@@ѠàðA  @@@@B  @@@@C  !@@@@D O S@@@@E  @@@@ssF  q@@@@tqccG  a@@@@daSSH  Q@@@@TQCCI O SA@@@@DA33J  1@@@@41##K  !@@@@$!L@@@@M-1@@@@ N]a@@@@&O@@@@ӠӰ,P@@@@Ѡàð2Q@@@@8R(,@@@@>S]a@@@@DT@@@@JU@@@@ssPVq@@@@tqccVWMQa@@@@daSS\X}Q@@@@TQCCbYA@@@@DA33hZ1@@@@41##n['+!@@@@$!t\`d@@@@z]@@@@^@@@@_-1@@@@ӠӰ`cg@@@@Ѡàða@@@@b@@@@c @@@@dIM@@@@e@@@@ssfq@@@@tqccga@@@@daSSh59Q@@@@TQCCilpA@@@@DA33j1@@@@41##k!@@@@$!l!%@@@@mSW@@@@n@@@@o@@@@ӠӰp@@@@Ѡàðr8<r8G@@гŠ#intr8K@@0@8@@@A@@@@@@@@A@@@@@A@@@*Unix_errorQB z  z  @ ]@@@@y@@@~@@@@@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.  ,{<< -@@@@@@@ DF@г"%error 8z $ 9z )@@*0 7 6 6 7 7 7 7 7@ 6@A@@г)&string Dz , Ez 2@@1 @@г.&string Nz 5/@@50@@@@2/ \@21@-error_messageR Y Z@б@г%error d e@@ @@@0 f e e f f f f f@0d^@A@@гР&string s t@@ @@@@@@@@@@@ ~ @& 2 Return a string describing the given error code.   @@@@@@@ G@@%1handle_unix_errorS  '@б@б@А!a@C@0        @<Q*@A + -@@А!b@C@  1 3@@@ @@@@б@А!a 8 :@@А!b > @@@@(@@# @@@@@& *@@@  @v [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.  AA @@@@@@@ H@@: 𐠠 ' {1 Access to the process environment}   )@@@@@@0        @J]#@A+environmentT ,0 ,;@б@г [$unit ,> ,B@@ @@@@@г 砐%array ,M ,R@г v&string ,F ,L@@ @@@1@@@@@@6 @@@"@@9%@@@ ),,@ѐ 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.  5SS 6@@@@@@@ MI@)@L2unsafe_environmentU A B@б@г $unit L M@@ @@@0 N M M N N N N N@e`,@A@@г 3%array [* \/@г  &string e# f)@@ @@@@@@@@@ @@@$@@!'@@@ u@  @ 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.06.0 (4.12.0 in UnixLabels)  00 Ju@@@@@@@ J@)@4&getenvV w{ w@б@г &string w w@@ @@@0        @Mb,@A@@г &string w w@@ @@@@@@@@@@@ ww @ Z 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}.   g@@@@@@@ K@@%-unsafe_getenvW  @б@г 2&string  @@ @@@0        @>S,@A@@г 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@@%&putenvX  @б@г o&string  @@ @@@0        @>S,@A@@б@г &string # $@@ @@@@@г $unit 0 1@@ @@@@@@@@!@@@'@@$* @@@ >@ 搠 [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.  J K p @@@@@@@ bM@@7 `6 {1 Process handling}  [   \  @@@@@@0 Z Y Y Z Z Z Z Z@G\#@AA(.process_statusYC h   i  @@8@@'WEXITEDZ #@@@@@ w   x  @ X The process terminated normally by [exit]; the argument is the return code.     !!J@@@@@@@ O)WSIGNALED[ >@@@@@ !K!M !K!_@ ; S The process was killed by a signal; the argument is the signal number.  !`!h !!@@@@@@@ P(WSTOPPED\ Y@@@@@ !! !!@ V T The process was stopped by a signal; the argument is the signal number.  !! ""6@@@@@@@ Q@@A@@@@@   @ f 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.  "7"7 ""@@@@@@@@@ N@bb[   @@гc#int   d@@j0        @z8@@@A@@@@@" @@@Ah@@@@jgYY !K!O !K!X@@г[#int !K!\\@@b]@@@@_\NN !! !!@@гP#int !!Q@@W#R@@@@TQ@A@CA@CS@A()wait_flag]D "" ""@@8@@'WNOHANG^@@ "" "#@ e Do not block if no child has died yet, but immediately return with a pid equal to 0.  !"# "#&#o@@@@@@@ 9S)WUNTRACED_@@ *#p#r +#p#}@ Ӑ 5 Report also the children that receive stop signals.  7#p#~ 8#p#@@@@@@@ OT@@A@@@@@ ;""@ 㐠7 Flags for {!waitpid}.  G## H##@@@@@@@A@ _R@==;:@@@@=:,, T#p#t*@@@@-*@A@@0 S R R S S S S S@@A.@%execv` a## b##@б@г ɠ&string l## m##@@ @@@0 n m m n n n n n@mg@A@@б@г U%array }## ~##@г 䠐&string ## ##@@ @@@@@@@@@  @@А!a@E@) ## ##@@@ @@.@@@4@@17@@@ ## @ M  [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  $$ $%@@@@@@@ U@@D&execvea % % % %@б@г %&string % % % %@@ @@@0        @]r,@A@@б@г %array % %( % %-@г @&string % %! % %'@@ @@@@@@@@@  @@б@г Ϡ%array % %8 % %=@г ^&string % %1 % %7@@ @@@9@@@@@@> @@А!a@E@G % %A % %C@@@ @@L@@@3@@O:@@@U@@RX @@@ "% %  @ ʐ g Same as {!execv}, except that the third argument provides the environment to the program executed.  .%D%D /%%@@@@@@@ FV@@e&execvpb :%% ;%%@б@г &string E%% F%%@@ @@@0 G F F G G G G G@~,@A@@б@г .%array V%% W%%@г &string `%% a%%@@ @@@@@@@@@  @@А!a@E@) t%% u%%@@@ @@.@@@4@@17@@@ ~%% @ & G Same as {!execv}, except that the program is searched in the path.  %% %&(@@@@@@@ W@@D'execvpec &*&. &*&5@б@г &string &*&8 &*&>@@ @@@0        @]r,@A@@б@г %array &*&I &*&N@г &string &*&B &*&H@@ @@@ @@@@@@   @@б@г %array &*&Y &*&^@г 7&string &*&R &*&X@@ @@@ 9@@@@@@> @@А!a@E@G &*&b &*&d@@@ @@L@@@3@@O:@@@U@@RX @@@ &*&* @ H Same as {!execve}, except that the program is searched in the path. &e&e&&@@@@@@@X@@e$forkd&&&&@б@г w$unit&&&&@@ @@@0      @~,@A@@г נ#int-&&.&&@@ @@@@@@@@@@@8&& @ 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. D&&E''@@@@@@@\Y@@%$waiteP''Q''@б@г $unit[''\''@@ @@@0]\\]]]]]@>S,@A@@Вг#intm''n''@@ @@@@@г.process_status{''|''@@ @@@ @@@@@% @@@+@@(. @@@''@ 3 Wait until one of the children processes die, and return its pid and termination status. @raise Invalid_argument on Windows. Use {!waitpid} instead. ''(.(o@@@@@@@Z@@;'waitpidf(q(u(q(|@б@гC$list(q((q(@г)wait_flag(q((q(@@ @@@0@^s6@A@@@ @@@ @@б@гx#int(q((q(@@ @@@ @@Вг#int(q((q(@@ @@@!&@@г.process_status(q((q(@@ @@@"4@@@@@#9 @@@)@@$<, @@@<@@%?E@@@(q(q@  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.  (( *G*@@@@@@@#[@"@R&systemg****@б@г&string"**#**@@ @@@&0$##$$$$$@k,@A@@гɠ.process_status1**2**@@ @@@'@@@@@(@@@<** @ 䐠  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. H**I,,@@@@@@@`\@@%%_exithT ,,U ,,@б@г #int_ ,,` ,,@@ @@@)0a``aaaaa@>S,@A@@А!a@-E@* p ,,q ,,@@@ @@+@@@w ,,@  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  ,,0d0w@@@@@@@]@@#&getpidi0y0}0y0@б@г$unit0y00y0@@ @@@.0@<Q,@A@@гS#int0y00y0@@ @@@/@@@@@0@@@0y0y @\ Return the pid of the process. 0000@@@@@@@^@@%'getppidj 00 00@б@г0$unit 00 00@@ @@@10@>S,@A@@г#int 00 00@@ @@@2@@@@@3@@@ 00 @ o Return the pid of the parent process. @raise Invalid_argument on Windows (because it is meaningless) !00$141G@@@@@@@_@@%$nicek &1I1M &1I1Q@б@г#int&1I1T&1I1W@@ @@@40@>S,@A@@г͠#int#&1I1[$&1I1^@@ @@@5@@@@@6@@@.&1I1I @֐ 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_1_;+22<@@@@@@@R`@@%P= {1 Basic file input/output} K-2>2>L-2>2`@@@@@@0JIIJJJJJ@5J#@AA(*file_descrlEX02c2hY02c2r@@8@@@A@@@@@\02c2c@ ( The abstract type of file descriptors. h12s2si12s2@@@@@@@@@a@@A@@@%stdinmt322u322@г%*file_descr}322~322@@ @@@70~~@60*@A@@@322 @/ $ File descriptor for standard input.422422@@@@@@@b@@&stdoutn622622@гP*file_descr622622@@ @@@80@,?*@A@@@622 @Z % File descriptor for standard output.722723&@@@@@@@c@@&stderro93(3,93(32@г{*file_descr93(3593(3?@@ @@@90@,?*@A@@@93(3( @ % File descriptor for standard error. :3@3@:3@3j@@@@@@@d@@A()open_flagpF<3l3q<3l3z@@8@@(O_RDONLYq@@=3}3=3}3@2 Open for reading  =3}3=3}3@@@@@@@%f(O_WRONLYr@@>33>33@2 Open for writing #>33$>33@@@@@@@;g&O_RDWRs@@,?33-?33@Ր> Open for reading and writing 9?34 :?340@@@@@@@Qh*O_NONBLOCKt@@B@4143C@414?@될; Open in non-blocking mode O@414QP@414q@@@@@@@gi(O_APPENDu@@XA4r4tYA4r4~@1 Open for append eA4r4fA4r4@@@@@@@}j'O_CREATv@@nB44oB44@7 Create if nonexistent {B44|B44@@@@@@@k'O_TRUNCw@@C44C44@- " Truncate to 0 length if existing C45C45-@@@@@@@l&O_EXCLx@@D5.50D5.58@C2 Fail if existing D5.5ND5.5e@@@@@@@m(O_NOCTTYy@@E5f5hE5f5r@Y ' Don't make this dev a controlling tty E5f5E5f5@@@@@@@n'O_DSYNCz@@F55F55@o e Writes complete as `Synchronised I/O data integrity completion' F55G66=@@@@@@@o&O_SYNC{@@H6>6@H6>6H@ e Writes complete as `Synchronised I/O file integrity completion' H6>6^I66@@@@@@@p'O_RSYNC|@@J66J66@ \ Reads complete as writes (depending on O_SYNC/O_DSYNC) J66K77J@@@@@@@q.O_SHARE_DELETE}@@L7K7M L7K7]@ a Windows only: allow the file to be deleted while still open L7K7kM77@@@@@@@-r)O_CLOEXEC~@@N77N77@ǐ Set the close-on-exec flag on the descriptor returned by {!openfile}. See {!set_close_on_exec} for more information. +N77,Q88@@@@@@@Cs*O_KEEPEXEC@@4R885R88@ݐ b Clear the close-on-exec flag. This is currently the default. AR88BS99^@@@@@@@Yt@@A@@@@@E<3l3l@퐠; The flags to {!openfile}. QT9_9_RT9_9@@@@@@@A@ie@[[YX@@@@[XJJ^>33H@@@@KH::d?338@@@@;8**j@4145(@@@@+(pA4r4v@@@@  vB44@@@@ |C44@@@@D5.52@@@@ڠڰE5f5j@@@@ؠʠʰF55@@@@ȠH6>6B@@@@J66@@@@L7K7O@@@@N77@@@@zzR88x@@@@{x@A@jh@0@@Al|@A()file_permGW99W99@@8@@@Ao@@@B@@@@W99W99@l n The type of file access rights, e.g. [0o640] is read and write for user, read for group, none for others X99Y9: @@@@@@@A@u@@Aг#intW99@@0@/(8@@@A/@@H@CH@A@@@@$!@@@A #@@%"@0@ @A&%@(openfile[: :[: :@б@гY&string[: :[: :!@@ @@@J0@&MG@A@@б@г$list [: :/[: :3@г!)open_flag[: :%[: :.@@ @@@K@@@@@@M  @@б@гq)file_perm+[: :7,[: :@@@ @@@N/@@гࠐ*file_descr8[: :D9[: :N@@ @@@O<@@@@@P?@@@&@@QB- @@@H@@REK@@@I[: : @񐠠 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. U\:O:OV^:;@@@@@@@mv@ @X%closea`; ;b`; ;@б@г*file_descrl`; ;m`; ; @@ @@@S0nmmnnnnn@q,@A@@гԠ$unit{`; ;$|`; ;(@@ @@@T@@@@@U@@@`; ;  @.: Close a file descriptor. a;);)a;);H@@@@@@@w@@%%fsyncc;J;Nc;J;S@б@гQ*file_descrc;J;Vc;J;`@@ @@@V0@>S,@A@@г$unitc;J;dc;J;h@@ @@@W@@@@@X@@@c;J;J @k G Flush file buffers to disk. @since 4.08.0 (4.12.0 in UnixLabels) d;i;if;;@@@@@@@x@@%$readh;;h;;@б@г*file_descrh;;h;;@@ @@@Y0@>S,@A@@б@гŠ%bytesh;;h;;@@ @@@Z@@б@г#inth;;h;;@@ @@@[ @@б@г#inth;;h;;@@ @@@\/@@г̠#int"h;;#h;;@@ @@@]<@@@@@^?@@@%@@_B( @@@7@@`E:@@@K@@aHN@@@6h;;@ސ [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. Bi;;Ck @@@@@@@z@#@[,single_writet>>t>>@б@гt*file_descrt>>"t>>,@@ @@@k0@t,@A@@б@г%bytest>>0t>>5@@ @@@l@@б@г#intt>>9t>><@@ @@@m @@б@г#intt>>@t>>C@@ @@@n/@@г#intt>>G t>>J@@ @@@o<@@@@@p?@@@%@@qB( @@@7@@rE:@@@K@@sHN@@@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>K>K)w>>@@@@@@@@{@#@[/write_substring4y>>5y>>@б@г砐*file_descr?y>>@y>>@@ @@@t0A@@AAAAA@t,@A@@б@г&stringPy>?Qy>? @@ @@@u@@б@г #int_y>? `y>?@@ @@@v @@б@г#intny>?oy>?@@ @@@w/@@г%#int{y>?|y>?@@ @@@x<@@@@@y?@@@%@@zB( @@@7@@{E:@@@K@@|HN@@@y>>@7 e Same as {!write}, but take the data from a string instead of a byte sequence. @since 4.02.0 z??|?u?@@@@@@@|@#@[6single_write_substring~??~??@б@гZ*file_descr????@@ @@@}0@t,@A@@б@г &string????@@ @@@~@@б@г|#int????@@ @@@ @@б@г#int????@@ @@@/@@г#int????@@ @@@<@@@@@?@@@%@@B( @@@7@@E:@@@K@@HN@@@~??@ l Same as {!single_write}, but take the data from a string instead of a byte sequence. @since 4.02.0 ??@1@E@@@@@@@&}@#@[$ 8 {1 Interfacing with the standard input/output library} @G@G @G@@@@@@@0@k#@A3in_channel_of_descr+@@,@@@б@гޠ*file_descr6@@7@@@@ @@@@@г *in_channelC@@D@@@@ @@@'@@@@@*@@@N@@ @  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. Z@@[EE@@@@@@@r~@@=4out_channel_of_descrfEEgEE@б@г*file_descrqEErEF@@ @@@0srrsssss@VQ,@A@@гJ+out_channelEF EF@@ @@@@@@@@@@@EE @3  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. FFII@@@@@@@@@%3descr_of_in_channelIIII@б@гx*in_channelIIII@@ @@@0@>S,@A@@гe*file_descrIJIJ @@ @@@@@@@@@@@II @p : Return the descriptor corresponding to an input channel. J J J JK@@@@@@@@@%4descr_of_out_channelJMJQJMJe@б@г+out_channelJMJhJMJs@@ @@@0@>S,@A@@г*file_descrJMJwJMJ@@ @@@@@@@@@@@JMJM @ ; Return the descriptor corresponding to an output channel. JJJJ@@@@@@@)@@%'< {1 Seeking and truncating} "JJ#JJ@@@@@@0!  !!!!!@5J#@AA(,seek_commandH/JJ0JJ@@8@@(SEEK_SET@@9JK:JK @␠ ; indicates positions relative to the beginning of the file FJK GJKJ@@@@@@@^(SEEK_CUR@@OKKKMPKKKW@ 6 indicates positions relative to the current position \KKKX]KKK@@@@@@@t(SEEK_END@@eKKfKK@ 5 indicates positions relative to the end of the file rKKsKK@@@@@@@@@A@@@@@vJJ@ ! Positioning modes for {!lseek}. KKKL@@@@@@@A@@SSQP@@@@SPBBKKKO@@@@@C@22KK0@@@@30@A@" @s"2@%lseekLL LL@б@гS*file_descrLLLL@@ @@@0@@A@@б@гf#intLLLL"@@ @@@@@б@г,seek_commandLL&LL2@@ @@@ @@г#intLL6LL9@@ @@@-@@@@@0@@@%@@3( @@@9@@6<@@@LL@ w Set the current position for a file descriptor, and return the resulting offset (from the beginning of the file). L:L:LL@@@@@@@ @ @I(truncateLLLL@б@гi&string LL LL@@ @@@0  @bw,@A@@б@гǠ#intLLLL@@ @@@@@г$unit*LL+LL@@ @@@@@@@@!@@@'@@$* @@@8LL@ - Truncates the named file to the given size. DLLELM@@@@@@@\@@7)ftruncatePMMQMM@б@г*file_descr[MM!\MM+@@ @@@0]\\]]]]]@Pe,@A@@б@г#intlMM/mMM2@@ @@@@@гҠ$unityMM6zMM:@@ @@@@@@@@!@@@'@@$* @@@MM@/ P Truncates the file corresponding to the given descriptor to the given size. M;M;MxM@@@@@@@@@71 {1 File status} MMMM@@@@@@0@G\#@AA()file_kindIMMMM@@8@@%S_REG@@MMMM@d. Regular file MMMM@@@@@@@%S_DIR@@MMMM@z+ Directory MNMN!@@@@@@@%S_CHR@@N"N$N"N+@2 Character device N"NBN"NY@@@@@@@ %S_BLK@@NZN\NZNc@. Block device  NZNz NZN@@@@@@@"%S_LNK@@NNNN@/ Symbolic link  NN!NN@@@@@@@8&S_FIFO@@)NN*NN@Ґ, Named pipe 6NN7NN@@@@@@@N&S_SOCK@@?NN@NN@萠( Socket LNOMNO"@@@@@@@d@@A@@@@@PMM@@A@g@@@@@\MM@@@@}}bN"N&{@@@@~{mmhNZN^k@@@@nk]]nNN[@@@@^[MMtNNK@@@@NK==zNN;@@@@>;@A@-@@ְ-=@A(%statsJO$O)O$O.@@8@@&st_dev@?@@@O1O5O1OB@PBP>PO@6 User id of the owner P>P^P>Py@@@@@@@5&st_gid@@@@ð)PzP~*PzP@Ґ> Group ID of the file's group 6PzP7PzP@@@@@@@N'st_rdev@@@@ưBPPCPP@될= Device ID (if special file) OPPPPQ@@@@@@@g'st_size@@@@ɰ[QQ\QQ@/ Size in bytes hQQ!iQQ5@@@@@@@(st_atime@(@@@̰tQ6Q:uQ6QK@2 Last access time Q6QVQ6Qm@@@@@@@(st_mtime@A@@@ϰQnQrQnQ@68 Last modification time QnQQnQ@@@@@@@(st_ctime@Z@@@ҰQQQQ@O9 Last status change time QQQQ@@@@@@@@@A@@@@@O$O$QQ@` 0 The information returned by the {!stat} calls. QQQR$@@@@@@@@@@>>9O1O;@@Ш@гA#intO1O>O1OA@@I0@3-'X8@@@A@@@@@%"@@@A@@P@L@@LI;;6OfOp@@Ш@г>#intOfOsOfOv@@F@@I@L@@EB44/OO@@Ш@г7)file_kindOOOO@@?(@@B@L@+@>;--(OO@@Ш@г0)file_permOOOO@@8:@@;@L@=@74&&!PP@@Ш@г)#int!PP"PP@@1L@@4@L@O@0-*P>PH@@Ш@г"#int3P>PK4P>PN@@*^@@-@L@a@)&<PzP@@Ш@г#intEPzPFPzP@@#p@@&@L@s@" NPP@@Ш@г#intWPPXPP@@@@@L@@  `QQ @@Ш@г #intiQQjQQ@@@@@L@@rQ6QB@@Ш@г%float{Q6QE|Q6QJ@@@@@L@@  QnQz@@Ш@г%floatQnQ}QnQ@@@@ @L@@QQ@@Ш@г%floatQQQQ@@ʰ@@@L@@@A@@0@@A@$statR&R*R&R.@б@г&stringR&R1R&R7@@ @@@0@>8@A@@гB%statsR&R;R&R@@@ @@@@@@@@@@@R&R& @{ , Return the information for the named file. RARARARr@@@@@@@@@%%lstatRtRxRtR}@б@гS&stringRtRRtR@@ @@@0@>S,@A@@г%statsRtRRtR@@ @@@@@@@@@@@RtRt @ j Same as {!stat}, but in case the file is a symbolic link, return the information for the link itself. RRRR@@@@@@@4@@%%fstat(SS)SS @б@г ۠*file_descr3SS 4SS@@ @@@054455555@>S,@A@@г%statsBSSCSS @@ @@@@@@@@@@@MSS @ N Return the information for the file associated with the given descriptor. YS!S!ZScSt@@@@@@@q@@%&isattyeSvSzfSvS@б@г *file_descrpSvSqSvS@@ @@@0rqqrrrrr@>S,@A@@гN$boolSvSSvS@@ @@@@@@@@@@@SvSv @2 j Return [true] if the given file descriptor refers to a terminal or console window, [false] otherwise. SSST@@@@@@@@@% $ {1 File operations on large files} TTTT0@@@@@@0@5J#@A)LargeFileKT2T9T2TB@@Б%lseekTKTSTKTX@б@г u*file_descrTKT[TKTe@@ @@@0@)@A@@б@г%int64TKTiTKTn@@ @@@@@б@г,seek_commandTKTrTKT~@@ @@@@@г%int64TKTTKT@@ @@@,@@@@@/@@@%@@2( @@@8@@5;@@@ TKTO@. See [lseek].  TT TT@@@@@@@.@ @H(truncate" TT# TT@б@г&string- TT. TT@@ @@@0/../////@v,@A@@б@гࠐ%int64> TT? TT@@ @@@@@г$unitK TTL TT@@ @@@@@@@@ !@@@'@@ $* @@@Y TT@1 See [truncate]. e TTf TT@@@@@@@}@@7)ftruncateqTTrTT@б@г $*file_descr|TT}TU@@ @@@ 0~}}~~~~~@Pe,@A@@б@г/%int64TU TU@@ @@@ @@г$unitTUTU@@ @@@ @@@@@!@@@'@@$* @@@TT@P2 See [ftruncate]. UUUU3@@@@@@@@@7A(%statsLU5U>U5UC@@8@@&st_dev@z@@@UFUNUFU[@w/ Device number UFUjUFU~@@@@@@@&st_ino@@@@UUUU@. Inode number UUUU@@@@@@@ 'st_kind@Q@@@UUUU@2 Kind of the file  UUUU@@@@@@@%'st_perm@ a@@@UUUV@/ Access rights &UV'UV+@@@@@@@>(st_nlink@@@@2V,V43V,VC@ې1 Number of links ?V,VP@V,Vf@@@@@@@W&st_uid@@@@KVgVoLVgV|@6 User id of the owner XVgVYVgV@@@@@@@p&st_gid@@@@"dVVeVV@ > Group ID of the file's group qVVrVV@@@@@@@'st_rdev@)@@@%}VV~VW@&= Device ID (if special file) VWVW5@@@@@@@'st_size@:@@@(W6W>W6WN@?/ Size in bytes W6WZW6Wn@@@@@@@(st_atime@c@@@+WoWwWoW@X2 Last access time WoWWoW@@@@@@@(st_mtime@|@@@.WWWW@q8 Last modification time WWWW@@@@@@@(st_ctime@@@@1WWWX@9 Last status change time WXWX/@@@@@@@@@A@@@@@U5U9X0X7@@@@ @11,UFUT@@Ш@г4#intUFUWUFUZ@@<0@bK8@@@A@@@@@@@@@A@@C@N@@?<..)UU@@Ш@г1#intUUUU@@9@@<@N@@85''""UU@@Ш@г*)file_kind+UU,UU@@2(@@5@N@+@1.  4UV@@Ш@г#)file_perm=UV>UV@@+:@@.@N@=@*'FV,V<@@Ш@г#intOV,V?PV,VB@@$L@@'@N@O@#  XVgVu@@Ш@г#intaVgVxbVgV{@@^@@ @N@ a@  jVV@@Ш@г#intsVVtVV@@p@@@N@#s@|VV@@Ш@г#intVWVW@@@@@N@&@ W6WE@@Ш@г%int64W6WHW6WM@@@@ @N@)@WoW@@Ш@г%floatWoWWoW@@@@@N@,@WW@@Ш@г%floatWWWW@@@@@N@/@WW@@Ш@г렐%floatWXWX@@ʰ@@@N@2@@A@@@0@@A@$statX8X@X8XD@б@гD&stringX8XGX8XM@@ @@@R0@1+@A@@г5%statsX8XQX8XV@@ @@@S@@@@@T@@@ X8X< @@ @ @@%lstat  XWX_  XWXd@б@гt&string  XWXg  XWXm@@ @@@U0        @1F@A@@гe%stats & XWXq ' XWXv@@ @@@V@@@@@W@@@ 1 XWX[ @@ H@ @@%fstat <!XwX =!XwX@б@г*file_descr G!XwX H!XwX@@ @@@X0 I H H I I I I I@1F@A@@г%stats V!XwX W!XwX@@ @@@Y@@@@@Z@@@ a!XwX{ @@ x@ @@@^@J@@A@o@hA@:@@0 o n n o o o o o@'<@A̰ vTETG w"XX@@  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].  #XX ,ZlZ@@@@@@@ T2T2@ް@ ? {1 Mapping files into memory}  .ZZ .ZZ@@@@@@0        @@@H@4@A@@x@qJ@@1$ @A(map_file7 0ZZ 0ZZ@б@гe*file_descr 1ZZ 1ZZ@@ @@@[+@@б#posг p%int64 2Z[  2Z[@@ @@@\<@@б@г(Bigarray$kind&Stdlib 3[[ 3[[2@А!a@ fM@W 3[[ 3[[@@А!b@ hM@c 3[[ 3[[@@@' @@@k!3[[ @@б@г(Bigarray&layout&Stdlib!4[6[;!4[6[Q@А!c@ jM@!4[6[8! 4[6[:@@@ @@@@@б@г $bool!/4[6[U!04[6[Y@@ @@@@@б@г!%array!>4[6[a!?4[6[f@г #int!H4[6[]!I4[6[`@@ @@@@@@@@@ @@г &(Bigarray(Genarray!t&Stdlib !c5[j[y!d5[j[@А!aҰ!j5[j[m!k5[j[o@@А!b{ٰ!q5[j[q!r5[j[s@@А!c^!x5[j[u!y5[j[w@@@'f@@@ ]!5[j[l@@@6 @@ ^=!@@@V@@ _Y$@@@i@@ `l'@@@@@ a*@@! @@@ b @@ c!2ZZ3@@@ @@ d6@@@!0ZZ9@ D  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[[!cd,d>@@@@@@@!@H@!> {1 Operations on file names} !ed@d@!ed@dc@@@@@@0!!!!!!!!@%#@A&unlink8!hdfdj!hdfdp@б@г!-&string!hdfds!hdfdy@@ @@@ k@@г!6$unit!hdfd}!hdfd@@ @@@ l'@@@@@ m*@@@!hdfdf @ 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}} !idd!peBeD@@@@@@@" @@=&rename9"reFeJ"reFeP@б@г!h&string" reFeS" reFeY@@ @@@ n0" " " " " " " " @VQ,@A@@б@г!y&string"reFe]"reFec@@ @@@ o@@г!$unit")reFeg"*reFek@@ @@@ p@@@@@ q!@@@'@@ r$* @@@"7reFeF@ ߐ Z [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]. "Cselel"Dxff@@@@@@@"[@@7$link:"Ozff"Pzff@б&followг"+$bool"\zfg"]zfg @@ @@@ s0"^"]"]"^"^"^"^"^@Rg.@A@@б@г!ʠ&string"m{g g"n{g g@@ @@@ t@@б@г!٠&string"|{g g""}{g g(@@ @@@ u @@г!⠐$unit"{g g,"{g g0@@ @@@ v-@@@@@ w0@@@%@@ x3( @@D<@@@ y @@ z:"zff@@ @"zff@!G 6 [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. "|g1g1"i)il@@@@@@@"@%@N(realpath;"inir"iniz@б@г"&string"ini}"ini@@ @@@ {0""""""""@g~,@A@@г".&string"ini"ini@@ @@@ |@@@@@ }@@@"inin @! [realpath p] is an absolute pathname for [p] obtained by resolving all extra [/] characters, relative path segments and symbolic links. @since 4.13.0 "ii"jj3@@@@@@@#@@%" $ {1 File permissions and ownership} "j5j5"j5j^@@@@@@0""""""""@5J#@AA(1access_permission@@#&jj#'jj@!ϐ2 Write permission #3jj#4jj@@@@@@@#K$X_OK?@@#<jj#=jj@!吠6 Execution permission #Ijk #Jjk$@@@@@@@#a$F_OK@@@#Rk%k'#Sk%k-@!- File exists #_k%kE#`k%kW@@@@@@@#w@@A@@@@@#cjaja@" ? Flags for the {!access} call. #okXkX#pkXk|@@@@@@@A@#@iigf@@@@ifXX#|jjV@@@@YVHH#jjF@@@@IF88#k%k)6@@@@96@A@(&@(8@%chmodA#kk#kk@б@г"&string#kk#kk@@ @@@ 0########@@A@@б@г)file_perm#kk#kk@@ @@@ @@г#$unit#kk#kk@@ @@@ @@@@@ !@@@'@@ $* @@@#kk@"r + Change the permissions of the named file. #kk#kk@@@@@@@#@@7&fchmodB#kk#kk@б@г*file_descr#kk#kk@@ @@@ 0########@Pe,@A@@б@гD)file_perm#kk#kk@@ @@@ @@г#d$unit$ kl$ kl@@ @@@ @@@@@ !@@@'@@ $* @@@$kk@" S Change the permissions of an opened file. @raise Invalid_argument on Windows $%ll$&l5l^@@@@@@@$=@@7%chownC$1l`ld$2l`li@б@г#&string$<l`ll$=l`lr@@ @@@ 0$>$=$=$>$>$>$>$>@Pe,@A@@б@г##int$Ml`lv$Nl`ly@@ @@@ @@б@г$#int$\l`l}$]l`l@@ @@@  @@г# $unit$il`l$jl`l@@ @@@ -@@@@@ 0@@@%@@ 3( @@@9@@ 6<@@@$zl`l`@#" _ Change the owner uid and owner gid of the named file. @raise Invalid_argument on Windows $ll$ll@@@@@@@$@ @I&fchownD$ll$ll@б@гE*file_descr$ll$lm@@ @@@ 0$$$$$$$$@bw,@A@@б@г$X#int$lm $lm @@ @@@ @@б@г$g#int$lm$lm@@ @@@  @@г$#$unit$lm$lm@@ @@@ -@@@@@ 0@@@%@@ 3( @@@9@@ 6<@@@$ll@# _ Change the owner uid and owner gid of an opened file. @raise Invalid_argument on Windows $mm$mXm@@@@@@@$@ @I%umaskE$mm$mm@б@г$#int$mm$mm@@ @@@ 0%$$%%%%%@bw,@A@@г$#int% mm%mm@@ @@@ @@@@@ @@@%mm @# v Set the process's file mode creation mask, and return the previous mask. @raise Invalid_argument on Windows %$mm%%mn@@@@@@@%<@@%&accessF%0nn%1nn!@б@г$&string%;nn$%<nn*@@ @@@ 0%=%<%<%=%=%=%=%=@>S,@A@@б@г$᠐$list%Lnn@%MnnD@гP1access_permission%Vnn.%Wnn?@@ @@@ @@@@@@   @@г$$unit%hnnH%innL@@ @@@ -@@@@@ 0@@@6@@ 39 @@@%vnn@$ 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. %nMnM%oo$@@@@@@@%@@F% $ {1 Operations on file descriptors} %o'o'%o'oP@@@@@@0%%%%%%%%@Vk#@A#dupG%oSoW%oSoZ@б'cloexecг%{$bool%oSo%oSo@@ @@@ @@б@гc*file_descr%oo%oo@@ @@@ +@@гp*file_descr%oo%oo@@ @@@ 8@@@@@ ;@@0C(@@@  @@ B%oSo]@@ @%oSoS@$ 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. %oo%pLpd@@@@@@@%@"@V$dup2H%pfpj%pfpn@б'cloexecг%Ϡ$bool&pfp&pfp@@ @@@ 0&&&&&&&&@ql.@A@@б@г*file_descr&pp&pp@@ @@@ @@б@гȠ*file_descr& pp&!pp@@ @@@  @@г%$unit&-pp&.pp@@ @@@ -@@@@@ 0@@@%@@ 3( @@D<@@@  @@ :&@pfpq@@ @&Cpfpf@$될 [dup2 src dst] duplicates [src] to [dst], closing [dst] if already opened. See {!set_close_on_exec} for documentation on the [cloexec] optional argument. &Opp&Pqdq|@@@@@@@&g@%@N,set_nonblockI&[q~q&\q~q@б@г*file_descr&fq~q&gq~q@@ @@@ 0&h&g&g&h&h&h&h&h@g~,@A@@г%Π$unit&uq~q&vq~q@@ @@@ @@@@@ @@@&q~q~ @%( 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]. &qq&rs @@@@@@@&@@%.clear_nonblockJ&ss&ss @б@гK*file_descr&ss#&ss-@@ @@@ 0&&&&&&&&@>S,@A@@г& $unit&ss1&ss5@@ @@@ @@@@@ @@@&ss @%e Q Clear the ``non-blocking'' flag on the given descriptor. See {!set_nonblock}.&s6s6&sss@@@@@@@&@@%1set_close_on_execK&ss&ss@б@г*file_descr&ss&ss@@ @@@ 0&&&&&&&&@>S,@A@@г&H$unit&ss&ss@@ @@@ @@@@@ @@@&ss @% { 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. 'ss'~6~9@@@@@@@'@@%3clear_close_on_execL'~;~?'~;~R@б@гŠ*file_descr'~;~U'~;~_@@ @@@ 0''''''''@>S,@A@@г&$unit',~;~c'-~;~g@@ @@@ @@@@@ @@@'7~;~; @%ߐ W Clear the ``close-on-exec'' flag on the given descriptor. See {!set_close_on_exec}.'C ~h~h'D ~~@@@@@@@'[@@%'Y1 {1 Directories} 'T ~~'U ~~@@@@@@0'S'R'R'S'S'S'S'S@5J#@A%mkdirM'`~~'a~~@б@г&Ƞ&string'k~~'l~~@@ @@@ @@б@г)file_perm'z~~'{~~@@ @@@ )@@г&ࠐ$unit'~'~@@ @@@ 6@@@@@ 9@@@%@@ <( @@@'~~@&= ? Create a directory with the given permissions (see {!umask}). ''L@@@@@@@'@@O%rmdirN'NR'NW@б@г'&string'NZ'N`@@ @@@ 0''''''''@hc,@A@@г' $unit'Nd'Nh@@ @@@ @@@@@ @@@'NN @&z< Remove an empty directory. 'ii'i@@@@@@@'@@%%chdirO''@б@г'R&string''@@ @@@ 0''''''''@>S,@A@@г']$unit((@@ @@@ @@@@@ @@@( @& ' Change the process working directory. ((@@@@@@@(3@@%&getcwdP('((@б@г'$unit(2(3@@ @@@ 0(4(3(3(4(4(4(4(4@>S,@A@@г'&string(A(B@@ @@@ @@@@@ @@@(L @& 3 Return the name of the current working directory. (X(Y)@@@@@@@(p@@%&chrootQ(d+/(e+5@б@г'̠&string(o+8(p+>@@ @@@ 0(q(p(p(q(q(q(q(q@>S,@A@@г'נ$unit(~+B(+F@@ @@@ @@@@@ @@@(++ @'1 L Change the process root directory. @raise Invalid_argument on Windows (GG(o@@@@@@@(@@%A(*dir_handleRN(!(!@@8@@@A@@@@@(!@'N 2 The type of descriptors over opened directories. ("("@@@@@@@@@(@@A@@0((((((((@BW0@A@'opendirS($($@б@г((&string($($@@ @@@ 0((((((((@4.@A@@г8*dir_handle($($@@ @@@ @@@@@ @@@($ @' " Open a descriptor on a directory (%(%-@@@@@@@) @@%'readdirT('/3('/:@б@гf*dir_handle)'/=) '/G@@ @@@ 0) ) ) ) ) ) ) ) @>S,@A@@г(t&string)'/K)'/Q@@ @@@ @@@@@ @@@)"'// @'ʐ m Return the next entry in a directory. @raise End_of_file when the end of the directory has been reached. ).(RR)/)|@@@@@@@)F@@%)rewinddirU):+);+@б@г*dir_handle)E+)F+@@ @@@ 0)G)F)F)G)G)G)G)G@>S,@A@@г($unit)T+)U+@@ @@@ @@@@@ @@@)_+ @( = Reposition the descriptor to the beginning of the directory )k,)l,+@@@@@@@)@@%(closedirV)w.-1)x.-9@б@гࠐ*dir_handle).-<).-F@@ @@@ 0))))))))@>S,@A@@г(ꠐ$unit).-J).-N@@ @@@ @@@@@ @@@).-- @(D? Close a directory descriptor. )/OO)/Os@@@@@@@)@@%)< {1 Pipes and redirections} )3ww)3w@@@@@@0))))))))@5J#@A$pipeW)6)6@б'cloexecг)$bool)6)6@@ @@@ @@б@г):$unit)7)7@@ @@@ +@@Вг*file_descr)7)7@@ @@@ ;@@г*file_descr)7*7@@ @@@ I@@@@@ N @@@)@@ Q, @@F>@@@  @@ X*6@@ @*6@(  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&mkfifoX*/> *0>&@б@г)&string*:>)*;>/@@ @@@ 0*<*;*;*<*<*<*<*<@,@A@@б@г)file_perm*K>3*L><@@ @@@ @@г)$unit*X>@*Y>D@@ @@@ @@@@@ !@@@'@@ $* @@@*f>@) g Create a named pipe with the given permissions (see {!umask}). @raise Invalid_argument on Windows *r?EE*sA@@@@@@@*@@7* 3 {1 High-level process and redirection management} *D*D@@@@@@0********@G\#@A.create_processY*G*G@б@г)&string*H*H @@ @@@ @@б@г*%array*H*H@г*&string*H*H@@ @@@ 3@@@@@@ 8 @@б@гo*file_descr*H *H*@@ @@@ G@@б@г~*file_descr*H.*H8@@ @@@ V@@б@г*file_descr*I<@*I<J@@ @@@ e@@г*#int*I<N*I<Q@@ @@@ r@@@@@ u@@@%@@ x( @@@7@@ {:@@@J@@ ~Q@@@j@@ m@@@+ 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. +JRR+U@@@@@@@+-@&@2create_process_envZ+!W+"W@б@г*&string+,X  +-X @@ @@@ 0+.+-+-+.+.+.+.+.@,@A@@б@г+%array+=X +>X "@г*&string+GX +HX @@ @@@ @@@@@@   @@б@г+3%array+[X -+\X 2@г* &string+eX &+fX ,@@ @@@ 9@@@@@@ > @@б@г!*file_descr+yX 6+zX @@@ @@@ M@@б@г0*file_descr+YDH+YDR@@ @@@ \@@б@г?*file_descr+YDV+YD`@@ @@@ k@@г+N#int+YDd+YDg@@ @@@ x@@@@@ {@@@%@@ ~( @@@7@@ :@@@J@@ Q@@@k@@ r@@@@@ @@@+W@*f [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. +Zhh+\@@@@@@@+@)@/open_process_in[+_ $+_ 3@б@г+>&string+_ 6+_ <@@ @@@ 0++++++++@,@A@@г**in_channel+_ @+_ J@@ @@@ @@@@@ @@@+_   @* } 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}. ,`KK,j@@@@@@@,@@%0open_process_out\,l,l@б@г+{&string,l,l@@ @@@ 0, ,,, , , , , @>S,@A@@г*+out_channel,-l,.l@@ @@@ @@@@@ @@@,8l @*  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}. ,Dm,Eu@@@@@@@,\@@%,open_process],Pw,Qw@б@г+&string,[w,\w@@ @@@ 0,],\,\,],],],],]@>S,@A@@Вг+7*in_channel,mw,nw@@ @@@ @@г+E+out_channel,{w,|w@@ @@@  @@@@@ % @@@+@@ (. @@@,w@+3  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@@б@г,%array,,@г,&&string,,@@ @@@ @@@@@@   @@Вг+*in_channel,,@@ @@@ 0@@г++out_channel,,@@ @@@ >@@г+*in_channel,,@@ @@@ L@@@# @@ R( @@@9@@ U@@@@[@@ X^@@@-@+  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}. --o@@@@@@@-2@#@k4open_process_args_in_-&-'@б@г,&string-1-2@@ @@@ 0-3-2-2-3-3-3-3-3@,@A@@б@г-%array-B-C@г,&string-L-M@@ @@@ @@@@@@ !  @@г,(*in_channel-^-_@@ @@@ "-@@@@@ #0@@@6@@ $39 @@@-l@,  [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-y@@@@@@@-@@F5open_process_args_out`--@б@г,점&string--@@ @@@ %0--------@_t,@A@@б@г-x%array-- @г-&string--@@ @@@ &@@@@@@ (  @@г,+out_channel--@@ @@@ )-@@@@@ *0@@@6@@ +39 @@@-@,r 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 --z@@@@@@@-@@F1open_process_argsa--@б@г-J&string--@@ @@@ ,0--------@_t,@A@@б@г-֠%array--@г-e&string.. @@ @@@ -@@@@@@ /  @@Вг,*in_channel..@@ @@@ 00@@г,+out_channel.+.,@@ @@@ 1>@@@@@ 2C @@@*@@ 3F1 @@@L@@ 4IO@@@.>@,搠 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 .J.K@@@@@@@.b@"@\6open_process_args_fullb.V.W.@б@г-&string.a13.b19@@ @@@ 50.c.b.b.c.c.c.c.c@u,@A@@б@г.J%array.r1D.s1I@г-٠&string.|1=.}1C@@ @@@ 6@@@@@@ 8  @@б@г.h%array.1T.1Y@г-&string.1M.1S@@ @@@ 99@@@@@@ ;> @@Вг-y*in_channel.]a.]k@@ @@@ <N@@г-+out_channel.]n.]y@@ @@@ =\@@г-*in_channel.]|.]@@ @@@ >j@@@# @@ ?p( @@@9@@ @s@@@@Z@@ Ava@@@|@@ By@@@.@-  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 ..@@@@@@@/@&@.process_in_pidc..@б@г-*in_channel//@@ @@@ C0////////@,@A@@г.#int//@@ @@@ D@@@@@ E@@@/ @-ǐ Return the pid of a process opened via {!open_process_in} or {!open_process_args_in}. @since 4.08.0 (4.12.0 in UnixLabels) /+/,&Q@@@@@@@/C@@%/process_out_pidd/7SW/8Sf@б@г. +out_channel/BSi/CSt@@ @@@ F0/D/C/C/D/D/D/D/D@>S,@A@@г.#int/QSx/RS{@@ @@@ G@@@@@ H@@@/\SS @. Return the pid of a process opened via {!open_process_out} or {!open_process_args_out}. @since 4.08.0 (4.12.0 in UnixLabels) /h||/i@@@@@@@/@@%+process_pide/t  /u @б@Вг.L*in_channel/ / %@@ @@@ I0////////@AV/@A@@г.\+out_channel/ (/ 3@@ @@@ J@@@@@ K @@г/N#int/ 7/ :@@ @@@ L"@@@@@ M%+@@@/   @.W ~ Return the pid of a process opened via {!open_process} or {!open_process_args}. @since 4.08.0 (4.12.0 in UnixLabels) /;;/@@@@@@@/@@80process_full_pidf//@б@Вг.*in_channel//@@ @@@ N0////////@Tl/@A@@г.+out_channel//@@ @@@ O@@г.*in_channel//@@ @@@ P@@@% @@ Q$* @@г/#int00@@ @@@ R1@@@@@ S4:@@@0 @. Return the pid of a process opened via {!open_process_full} or {!open_process_args_full}. @since 4.08.0 (4.12.0 in UnixLabels) 00f@@@@@@@05@@G0close_process_ing0)0*@б@г.*in_channel0405@@ @@@ T00605050606060606@`x,@A@@г$۠.process_status0C0D@@ @@@ U@@@@@ V@@@0N @. Close channels opened by {!open_process_in}, wait for the associated command to terminate, and return its termination status. 0Z0[)Q@@@@@@@0r@@%1close_process_outh0fSW0gSh@б@г/;+out_channel0qSk0rSv@@ @@@ W00s0r0r0s0s0s0s0s@>S,@A@@г%.process_status0Sz0S@@ @@@ X@@@@@ Y@@@0SS @/3 Close channels opened by {!open_process_out}, wait for the associated command to terminate, and return its termination status. 00@@@@@@@0@@%-close_processi00'@б@Вг/{*in_channel0*04@@ @@@ Z000000000@AV/@A@@г/+out_channel070B@@ @@@ [@@@@@ \ @@г%k.process_status0F0T@@ @@@ ]"@@@@@ ^%+@@@0 @/ Close channels opened by {!open_process}, wait for the associated command to terminate, and return its termination status. 0UU0@@@@@@@1@@82close_process_fullj00@б@Вг/*in_channel11@@ @@@ _011111111@Tl/@A@@г/+out_channel11@@ @@@ `@@г/*in_channel1"1#@@ @@@ a@@@% @@ b$* @@г%͠.process_status15"160@@ @@@ c1@@@@@ d4:@@@1@ @/萠 Close channels opened by {!open_process_full}, wait for the associated command to terminate, and return its termination status. 1L111M@@@@@@@1d@@G1b4 {1 Symbolic links} 1]1^@@@@@@01\1[1[1\1\1\1\1\@Wo#@A'symlinkk1i1j@б&to_dirг1E$bool1v1w@@ @@@ e@@б@г0⠐&string1-13@@ @@@ f+@@б@г0&string171=@@ @@@ g:@@г0$unit1A1E@@ @@@ hG@@@@@ iJ@@@%@@ jM( @@B:@@@ k @@ lT1@@ @1@0_  [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. 1FF1@@@@@@@1@%@h+has_symlinkl11@б@г13$unit11@@ @@@ m011111111@|,@A@@г1$bool11@@ @@@ n@@@@@ o@@@1 @0 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 22 (;@@@@@@@2@@%(readlinkm2  =A2  =I@б@г1t&string2 =L2 =R@@ @@@ p022222222@>S,@A@@г1&string2& =V2' =\@@ @@@ q@@@@@ r@@@21 == @0ِ ' Read the contents of a symbolic link. 2= ]]2> ]@@@@@@@2U@@%2S- {1 Polling} 2N2O@@@@@@02M2L2L2M2M2M2M2M@5J#@A&selectn2Z2[@б@г1$list2e2f@г"*file_descr2o2p@@ @@@ s$@@@@@@ u) @@б@г2$list22@г"5*file_descr22@@ @@@ vB@@@@@@ xG @@б@г26$list22@г"S*file_descr22@@ @@@ y`@@@@@@ {e @@б@г2q%float22@@ @@@ |t@@Вг2d$list22@г"*file_descr22@@ @@@ }@@@@@@  @@г2$list22@г"*file_descr22@@ @@@ @@@@@@  @@г2$list3 %3 )@г"*file_descr33$@@ @@@ Ȱ@@@@@@ Ͱ @@@B& @@ ӰK@@@e@@ ְh@@@x@@ ٰ @@@@@ ܰ#@@@@@ ߰&@@@32)@1ڐ _ 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). 3>**3?}@@@@@@@3V@8@3T- {1 Locking} 3O 3P @@@@@@03N3M3M3N3N3N3N3N@#@AA(,lock_commandoO3\"3]"@@8@@'F_ULOCKp@@3f#3g#@21 Unlock a region 3s#3t#@@@@@@@3&F_LOCKq@@3|$3}$@2% 8 Lock a region for writing, and block if already locked 3$3$0@@@@@@@3'F_TLOCKr@@3%133%1<@2; 6 Lock a region for writing, or fail if already locked 3%1C3%1~@@@@@@@3&F_TESTs@@3&3&@2Q ' Test a region for other process locks 3&3&@@@@@@@3'F_RLOCKt@@3'3'@2g 8 Lock a region for reading, and block if already locked 3'3' @@@@@@@3(F_TRLOCKu@@3(3(@2} 6 Lock a region for reading, or fail if already locked 3( 3([@@@@@@@3@@A@@@@@3"@28 Commands for {!lockf}. 3)\\3)\y@@@@@@@A@4 @@@@@3$@@@@tt4%15r@@@@urdd4 &b@@@@ebTT4'R@@@@URDD4(B@@@@EB@A@42@ǰ4D@%lockfv4!+{4"+{@б@г#Ԡ*file_descr4,+{4-+{@@ @@@ 04.4-4-4.4.4.4.4.@@A@@б@г᠐,lock_command4=+{4>+{@@ @@@ @@б@г3#int4L+{4M+{@@ @@@  @@г3$unit4Y+{4Z+{@@ @@@ -@@@@@ 0@@@%@@ 3( @@@9@@ 6<@@@4j+{{@3 > [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. 4v,4wI@@@@@@@4@ @I4 } {1 Signals} Note: installation of signal handlers is performed via the functions {!Sys.signal} and {!Sys.set_signal}. 4L4Owy@@@@@@044444444@Yn#@A$killw4Q{4Q{@б@г4H#int4Q{4Q{@@ @@@ @@б@г4W#int4Q{4Q{@@ @@@ )@@г4$unit4Q{4Q{@@ @@@ 6@@@@@ 9@@@%@@ <( @@@4Q{{@3p [kill pid signal] sends signal number [signal] to the process with id [pid]. On Windows: only the {!Sys.sigkill} signal is emulated. 4R4U+@@@@@@@4@@OA(3sigprocmask_commandxP4W-24W-E@@8@@+SIG_SETMASKy@@4XHL4XHW@@5)SIG_BLOCKz@@4YXZ4YXe@@5 +SIG_UNBLOCK{@@4Zfh4Zfu@@5@@A@@@@@5W--@@A@5@@@@@@5 YX\@@@@@5Zfj@@@@@@A@@@055555555@Q@A@+sigprocmask|5 \w{5!\w@б@гJ3sigprocmask_command5+\w5,\w@@ @@@ 05-5,5,5-5-5-5-5-@UO@A@@б@г4Ѡ$list5<\w5=\w@г4#int5F\w5G\w@@ @@@ @@@@@@   @@г4$list5X\w5Y\w@г5 #int5b\w5c\w@@ @@@ 7@@@@@@ < @@@#@@ ?*@@@E@@ BH@@@5u\ww@4  [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) 5]5kJX@@@@@@@5@,@U*sigpending}5mZ^5mZh@б@г4$unit5mZk5mZo@@ @@@ 055555555@n,@A@@г5<$list5mZw5mZ{@г5[#int5mZs5mZv@@ @@@ @@@@@@  @@@$@@ !'@@@5mZZ@4i Return the set of blocked signals that are currently pending. @raise Invalid_argument on Windows (no inter-process signals on Windows) 5n||5q@@@@@@@5@)@4*sigsuspend~5s5s @б@г5y$list5s'5s+@г5#int5s#5s&@@ @@@ 055555555@Wl6@A@@@ @@@  @@г5[$unit6s/6s3@@ @@@ @@@@@ @@@6 s @4  [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) 6t446yDR@@@@@@@61@@*%pause6%{TX6&{T]@б@г5$unit60{T`61{Td@@ @@@ 06261616262626262@Cb,@A@@г5$unit6?{Th6@{Tl@@ @@@ @@@@@ @@@6J{TT @4򐠠 Wait until a non-ignored, non-blocked signal is delivered. @raise Invalid_argument on Windows (no inter-process signals on Windows) 6V|mm6W@@@@@@@6n@@%6l4 {1 Time functions} 6g6h@@@@@@06f6e6e6f6f6f6f6f@5J#@AA(-process_timesQ6t"6u/@@8@@)tms_utime@65@@@ 62662H@5*; User time for the process 62J62j@@@@@@@6)tms_stime@6N@@@ 6ko6k@5C= System time for the process 6k6k@@@@@@@6*tms_cutime@6g@@@ 66@5\ & User time for the children processes 66@@@@@@@6*tms_cstime@6@@@ İ66@5u ( System time for the children processes 66/@@@@@@@6@AA@@@@@6603@5 / The execution times (CPU times) of a process. 64464h@@@@@@@@@7@vvq62?@@Ш@гy%float62B62G@@066666666@8@@@A@@@@@$!@@@A@@@S@ @rrm7kx@@Ш@гu%float7k{7k@@}@@@S@ @|ykkf7@@Ш@гn%float7"7#@@v'@@y@S@ *@urdd_7+@@Ш@гg%float7475@@o9@@r@S@ <@nk@A@]Z@а]\@A("tmR7Cjo7Djq@@8@@&tm_sec@6@@@ հ7Ptx7Qt@5/ Seconds 0..60 7]t7^t@@@@@@@7u&tm_min@7@@@ ذ7i7j@6/ Minutes 0..59 7v7w@@@@@@@7'tm_hour@7.@@@ ۰77@6+- Hours 0..23 77@@@@@@@7'tm_mday@7G@@@ ް77#@6D4 Day of month 1..31 717J@@@@@@@7&tm_mon@7`@@@ 7KO7K\@6]5 Month of year 0..11 7Kk7K@@@@@@@7 'tm_year@7y@@@ 77@6v- Year - 1900 77@@@@@@@7 'tm_wday@7@@@ 77@6; Day of week (Sunday is 0) 77@@@@@@@8  'tm_yday@7@@@ 78 @64 Day of year 0..365 8 8 3@@@@@@@8$ (tm_isdst@7@@@ 84884H@6 ! Daylight time savings in effect 8%4T8&4z@@@@@@@8= @@A@@@@@8)jj8*{~@6Ґ 9 The type representing wallclock time and calendar date. 8687@@@@@@@@@8N@8>t~@@Ш@г#int8Gt8Ht@@08F8E8E8F8F8F8F8F@ 8@@@A@@@@@%"@@@A@@@T@ @8T@@Ш@г#int8]8^@@@@@T@ @8f@@Ш@г점#int8o8p@@(@@@T@ +@8x@@Ш@г堐#int88"@@:@@@T@ =@۠۰8KU@@Ш@гޠ#int8KX8K[@@L@@@T@ O@Ԡ԰8@@Ш@гנ#int88@@^@@@T@ a@۠͠Ͱ8@@Ш@гР#int88@@p@@@T@ s@ԠƠư8@@Ш@гɠ#int88 @@@@@T@ @͠84@@@Ш@г $bool84C84G@@@@@T@ @@A@@088888888@@A@$time88@б@г8N$unit88@@ @@@ 088888888@@A@@г8%float99@@ @@@ @@@@@ @@@9 @7 J Return the current time since 00:00:00 GMT, Jan. 1, 1970, in seconds. 99(@@@@@@@93@@%,gettimeofday9'*.9(*:@б@г8$unit92*=93*A@@ @@@ 09493939494949494@>S,@A@@г8%float9A*E9B*J@@ @@@ @@@@@ @@@9L** @7 < Same as {!time}, but with resolution better than 1 second. 9XKK9YK@@@@@@@9p@@%&gmtime9d9e@б@г9!%float9o9p@@ @@@ 09q9p9p9q9q9q9q9q@>S,@A@@г;"tm9~9@@ @@@ @@@@@ @@@9 @81  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. 99|@@@@@@@9@@%)localtime99@б@г9^%float99@@ @@@ 099999999@>S,@A@@гx"tm99@@ @@@ @@@@@ @@@9 @8n 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}. 99R@@@@@@@9@@%&mktime99@б@г"tm99@@ @@@ 099999999@>S,@A@@Вг9%float99@@ @@@ @@гƠ"tm: : @@ @@@  @@@@@ % @@@+@@ (. @@@:@8  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. :%:&‰Ÿ@@@@@@@:=@@;%alarm:1¡¥:2¡ª@б@г9栐#int:<¡­:=¡°@@ @@@ 0:>:=:=:>:>:>:>:>@Ti,@A@@г9#int:K¡´:L¡·@@ @@@ @@@@@ @@@:V¡¡ @8 g Schedule a [SIGALRM] signal after the given number of seconds. @raise Invalid_argument on Windows :b¸¸:c$@@@@@@@:z@@%%sleep:n&*:o&/@б@г:##int:y&2:z&5@@ @@@ 0:{:z:z:{:{:{:{:{@>S,@A@@г9᠐$unit:&9:&=@@ @@@ @@@@@ @@@:&& @9; 1 Stop execution for the given number of seconds. :>>:>t@@@@@@@:@@%&sleepf:vz:vÀ@б@г:h%float:vÃ:vÈ@@ @@@ 0::::::::@>S,@A@@г:$unit:vÌ:vÐ@@ @@@ @@@@@ !@@@:vv @9x Stop execution for the given number of seconds. Like [sleep], but fractions of seconds are supported. @since 4.03.0 (4.12.0 in UnixLabels) :ÑÑ:,@@@@@@@:@@%%times:.2:.7@б@г:L$unit:.::.>@@ @@@ "0::::::::@>S,@A@@г-process_times;.B;.O@@ @@@ #@@@@@ $@@@; .. @9 Return the execution times of the process. On Windows: partially implemented, will not report timings for child processes. ;PP;ľ@@@@@@@;1@@%&utimes;%;&@б@г:&string;0;1@@ @@@ %0;2;1;1;2;2;2;2;2@>S,@A@@б@г:%float;A;B@@ @@@ &@@б@г;%float;P;Q@@ @@@ ' @@г:$unit;];^@@ @@@ (-@@@@@ )0@@@%@@ *3( @@@9@@ +6<@@@;n@:  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. ;z;{@@@@@@@;@ @IA(.interval_timerS;;(@@8@@+ITIMER_REAL@@;+/;+:@:: P decrements in real time, and sends the signal [SIGALRM] when expired.;;A;ƂƖ@@@@@@@;.ITIMER_VIRTUAL@@;Ɨƙ;ƗƩ@:P S decrements in process virtual time, and sends [SIGVTALRM] when expired. ;ƪư;@@@@@@@;+ITIMER_PROF@@;  ; @:f (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. ;;ǘ@@@@@@@;@@A@@@@@;@:v % The three kinds of interval timers. ;;@@@@@@@A@;@SSQP@@@@SPBB;Ɨƛ@@@@@C@22;  0@@@@30@A@" @0;;;;;;;;@@A$4@A(5interval_timer_statusT;;@@8@@+it_interval@;@@@ 3<< /@:( Period <8<E@@@@@@@<-(it_value@;@@@ 6S,@A@@б@гӠ5interval_timer_status<wɋ<wɠ@@ @@@ G@@гࠐ5interval_timer_status<wɤ<wɹ@@ @@@ H@@@@@ I!@@@'@@ J$* @@@<gg@;  [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==@б@гS,@A@@г<$unit==@@ @@@ R@@@@@ S@@@= @S,@A@@г=#int=Pe=Ph@@ @@@ U@@@@@ V@@@=PP @< \ Return the group id of the user executing the process. On Windows: always returns [1]. = ii= ͥ@@@@@@@>$@@%'getegid> > @б@г=h$unit> > @@ @@@ W0>>>>>>>>@>S,@A@@г=Ƞ#int> > @@ @@@ X@@@@@ Y@@@>)  @<ѐ a Return the effective group id under which the process runs. On Windows: always returns [1]. >5>6'L@@@@@@@>M%@@%&setgid>ANR>BNX@б@г=#int>LN[>MN^@@ @@@ Z0>N>M>M>N>N>N>N>N@>S,@A@@г=$unit>[Nb>\Nf@@ @@@ [@@@@@ \@@@>fNN @= f Set the real group id and effective group id for the process. @raise Invalid_argument on Windows >rgg>sΪ@@@@@@@>&@@%)getgroups>~>@б@г=⠐$unit>>@@ @@@ ]0>>>>>>>>@>S,@A@@г>p%array>>@г>L#int>>@@ @@@ ^@@@@@@ ` @@@$@@ a!'@@@>@=Z w Return the list of groups to which the user executing the process belongs. On Windows: always returns [[|1|]]. >>Ir@@@@@@@>'@)@4)setgroups>tx>tρ@б@г>%array>tψ>tύ@г>#int>tτ>tχ@@ @@@ b0>>>>>>>>@Wl6@A@@@ @@@ d @@г>L$unit>tϑ>tϕ@@ @@@ e@@@@@ f@@@>tt @= [setgroups groups] sets the supplementary group IDs for the calling process. Appropriate privileges are required. @raise Invalid_argument on Windows ? ϖϖ? !:@@@@@@@?"(@@**initgroups?#<@?#<J@б@г>~&string?!#<M?"#<S@@ @@@ g0?#?"?"?#?#?#?#?#@Cb,@A@@б@г>ܠ#int?2#<W?3#<Z@@ @@@ h@@г>$unit??#<^?@#<b@@ @@@ i@@@@@ j!@@@'@@ k$* @@@?M#<<@=  [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 ?Y$cc?Z)Aj@@@@@@@?q)@@7A(,passwd_entryU?f+lq?g+l}@@8@@'pw_name@>@@@ l?s,рф?t,рѕ@@?+)pw_passwd@>@@@ o?-іњ?-іѭ@@?,&pw_uid@?7@@@ r?.ѮѲ?.Ѯѿ@@?-&pw_gid@?C@@@ u?/?/@@?.(pw_gecos@?@@@ x?0?0@@?/&pw_dir@?@@@ {?1?1@@?0(pw_shell@?@@@ ~?2?2@@?1@@A@@@@@?+ll?3@>h 0 Structure of entries in the [passwd] database. ?4?4M@@@@@@@@@?*@ffa?,ры@@Ш@гi&string?,рю?,рє@@q0????????@8@@@A@@@@@%"@@@A@@x@W@ m@t@ppk?-іѣ@@Ш@гs&string?-іѦ?-іѬ@@{@@~@W@ p@z@vvq?.ѮѸ@@Ш@гy#int@.Ѯѻ@.ѮѾ@@(@@@W@ s+@@||w@/@@Ш@г#int@/@/@@:@@@W@ v=@@}@ 0@@Ш@г&string@)0@*0@@L@@@W@ yO@@@21@@Ш@г&string@;1@<1@@^@@@W@ |a@@@D2 @@Ш@г&string@M2 @@o@@@W@ r@@@A@@0@N@M@M@N@N@N@N@N@q@A@A(+group_entryV@\6OT@]6O_@@8@@'gr_name@?@@@ @i7bf@j7bw@@@3)gr_passwd@?@@@ @u8x|@v8xҏ@@@4&gr_gid@@-@@@ @9ҐҔ@9Ґҡ@@@5&gr_mem@@g?@@@ @@@ @:ҢҦ@:Ңһ@@@6@@A@@@@@@6OO@;Ҽҿ@?? 0 Structure of entries in the [groups] database. @<@<@@@@@@@@@@2@GGB@7bm@@Ш@гJ&string@7bp@7bv@@R0@@@@@@@@@WQa8@@@A@@@@@%"@@@A@@Y@X@ @U@QQL@8x҅@@Ш@гT&string@8x҈@8xҎ@@\@@_@X@ @[@WWR@9ҐҚ@@Ш@гZ#int@9Ґҝ@9ҐҠ@@b(@@e@X@ +@a@]]S@:ҢҬ@@Ш@г`%array@:ҢҶ\@гd&string@:Ңү@:Ңҵ@@lB@@@qCg@@t@X@ F@k@@A@gd@0@@@@@@@@@E@Ahg@(getloginA>A>@б@г@j$unitA>A> @@ @@@ 0AAAAAAAA@`@A@@г@}&stringA >A!>@@ @@@ @@@@@ @@@A+> @?Ӑ : Return the login name of the user executing the process. A7?A8?T@@@@@@@AO7@@%(getpwnamACAVZADAVb@б@г@&stringANAVeAOAVk@@ @@@ 0APAOAOAPAPAPAPAP@>S,@A@@г,passwd_entryA]AVoA^AV{@@ @@@ @@@@@ @@@AhAVV @@ s Find an entry in [passwd] with the given name. @raise Not_found if no such entry exists, or always on Windows. AtB||AuCӯ@@@@@@@A8@@%(getgrnamAEAE@б@г@蠐&stringAEAE @@ @@@ 0AAAAAAAA@>S,@A@@г>+group_entryAEAE@@ @@@ @@@@@ @@@AE @@M s Find an entry in [group] with the given name. @raise Not_found if no such entry exists, or always on Windows. AFAHNԓ@@@@@@@A9@@%(getpwuidAJԕԙAJԕԡ@б@гAr#intAJԕԤAJԕԧ@@ @@@ 0AAAAAAAA@>S,@A@@гq,passwd_entryAJԕԫAJԕԷ@@ @@@ @@@@@ @@@AJԕԕ @@ w Find an entry in [passwd] with the given user id. @raise Not_found if no such entry exists, or always on Windows. AKԸԸAM4@@@@@@@B:@@%(getgrgidAO6:AO6B@б@гA#intBO6EBO6H@@ @@@ 0BBBBBBBB@>S,@A@@г+group_entryBO6LBO6W@@ @@@ @@@@@ @@@BO66 @@ǐ w Find an entry in [group] with the given group id. @raise Not_found if no such entry exists, or always on Windows. B+PXXB,RՏ@@@@@@@BC;@@%BA8 {1 Internet addresses} B<UB=U@@@@@@0B;B:B:B;B;B;B;B;@5J#@AA()inet_addrWBIXBJX@@8@@@A@@@@@BMX@@ * The abstract type of Internet addresses. BYYBZY5@@@@@@@@@Bq<@@A@@@3inet_addr_of_stringBe[7;Bf[7N@б@гA͠&stringBp[7QBq[7W@@ @@@ 0BrBqBqBrBrBrBrBr@82,@A@@г6)inet_addrB[7[B[7d@@ @@@ @@@@@ @@@B[77 @A2 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. B\eeBaׁ@@@@@@@B=@@%3string_of_inet_addrBcBc@б@гd)inet_addrBcBc@@ @@@ 0BBBBBBBB@>S,@A@@гB&stringBcBc@@ @@@ @@@@@ @@@Bc @Ao Return the printable representation of the given Internet address. See {!inet_addr_of_string} for a description of the printable representation. BdBf|؜@@@@@@@B>@@%-inet_addr_anyBh؞آBh؞د@г)inet_addrBh؞زBh؞ػ@@ @@@ 0BBBBBBBB@<Q*@A@@@Bh؞؞ @A  A special IPv4 address, for use only with [bind], representing all the Internet addresses that the host machine possesses. BiؼؼBj@@@@@@@@C?@@2inet_addr_loopbackC lBFC lBX@гʠ)inet_addrClB[ClBd@@ @@@ 0CCCCCCCC@,?*@A@@@ClBB @AŐ E A special IPv4 address representing the host machine ([127.0.0.1]). C)meeC*meٯ@@@@@@@CA@@@.inet6_addr_any C5oٱٵC6oٱ@г)inet_addrC>oٱC?oٱ@@ @@@ 0C@C?C?C@C@C@C@C@@,?*@A@@@CHoٱٱ @A𐠠  A special IPv6 address, for use only with [bind], representing all the Internet addresses that the host machine possesses. CTpCUqT@@@@@@@ClA@@3inet6_addr_loopbackàC`sVZCasVm@г )inet_addrCisVpCjsVy@@ @@@ 0CkCjCjCkCkCkCkCk@,?*@A@@@CssVV @B ? A special IPv6 address representing the host machine ([::1]). CtzzCtzھ@@@@@@@CB@@-is_inet6_addrĠCvCv@б@гM)inet_addrCvCv@@ @@@ 0CCCCCCCC@.A,@A@@гCt$boolCvCv@@ @@@ @@@@@ @@@Cv @BX E Whether the given [inet_addr] is an IPv6 address. @since 4.12.0 CwCx0@@@@@@@CC@@%CҐ- {1 Sockets} Cz22Cz2D@@@@@@0CCCCCCCC@5J#@AA(-socket_domainXC}GLC}GY@@8@@'PF_UNIXƐ@@C~\`C~\g@B- Unix domain C~\|C~\ێ@@@@@@@D E'PF_INETǐ@@CۏۑCۏۚ@B8 Internet domain (IPv4) DۏۯDۏ@@@@@@@DF(PF_INET6Ȑ@@DD@B8 Internet domain (IPv6) DD @@@@@@@D5G@@A@@@@@D!}GG@Bɐ 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. D-  D.ܮܿ@@@@@@@A@DED@SSQP@@@@SPBBD:ۏۓ@@@@@C@22D@0@@@@30@A@" @s"2@A(+socket_typeYDLDM@@8@@+SOCK_STREAMʐ@@DVDW@B/ Stream socket DcDd@@@@@@@D{I*SOCK_DGRAMː@@Dl  Dm @C1 Datagram socket Dy )Dz ?@@@@@@@DJ(SOCK_RAW̐@@D@BD@L@C+, Raw socket D@`D@q@@@@@@@DK.SOCK_SEQPACKET͐@@DrtDr݄@CA: Sequenced packets socket DrݒDrݱ@@@@@@@DL@@A@@@@@D@CQ 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. DݲݲDqޙ@@@@@@@A@DH@iigf@@@@ifXXD  V@@@@YVHHD@DF@@@@IF88Drv6@@@@96@A@(&@0DDDDDDDD@@A*:@A((sockaddrZDޛޠDޛި@@8@@)ADDR_UNIXϐDJ@@@ @@DޫޯDޫ@@EN)ADDR_INETА@@@ ߠD@@@ @@DD@@EO@@A@@@@@Eޛޛ@C  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. EE @@@@@@@@@E&M@22+Eޫ޸@@г3&stringEޫ޼4@@:0EEEEEEEE@RK8@@@A@@@@@#!@@@A9@@@@;@77E)E*@@г9)inet_addrE3E4@@A@@г>#intE=?@@E@@@@@B@@A@><@0E<E;E;E<E<E<E<E<@@A?B@&socketѠEIEJ@б'cloexecгE%$boolEVLEWP@@ @@@ 0EXEWEWEXEXEXEXEX@;@A@@б@г-socket_domainEgTXEhTe@@ @@@ @@б@г*+socket_typeEvTiEwTt@@ @@@  @@б@гE/#intETxET{@@ @@@ /@@г5:*file_descrETET@@ @@@ <@@@@@ ?@@@%@@ B( @@@7@@ E:@@V$N@@@  @@ LE@@ @E@DS  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. EEw@@@@@@@EP@(@`2domain_of_sockaddrҠEE@б@г(sockaddrEE@@ @@@ 0EEEEEEEE@y,@A@@г-socket_domainEE@@ @@@ @@@@@ @@@E @D A Return the socket domain adequate for the given socket address. EE @@@@@@@F Q@@%*socketpairӠF F @б'cloexecгEܠ$boolF LFP@@ @@@ 0FFFFFFFF@@U.@A@@б@гD-socket_domainFTXFTe@@ @@@ @@б@г᠐+socket_typeF-TiF.Tt@@ @@@  @@б@гE栐#intF<TxF=T{@@ @@@ /@@Вг5*file_descrFLFM@@ @@@ ?@@г6*file_descrFZF[@@ @@@ M@@@@@R @@@)@@U, @@@;@@X>@@@M@@[P@@l$d@@@ @@bFu@@ @Fx  @E 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 FF+S@@@@@@@FR@-@v&acceptԠFUYFU_@б'cloexecгFl$boolFUFU@@ @@@0FFFFFFFF@.@A@@б@г6V*file_descrFF@@ @@@@@Вг6f*file_descrFF@@ @@@!@@г(sockaddrFF@@ @@@ /@@@@@ 4 @@@)@@ 7, @@H%L@@@@  @@ >FUb@@ @FUU@E 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. FF@@@@@@@GS@'@R$bindՠFF@б@г6*file_descrGG@@ @@@0G GGG G G G G @k,@A@@б@г<(sockaddrGG@@ @@@@@гF~$unitG%G&@@ @@@@@@@@!@@@'@@$* @@@G3@Eې> Bind a socket to an address. G?G@@@@@@@@GWT@@7'connect֠GK"GL)@б@г6*file_descrGV,GW6@@ @@@0GXGWGWGXGXGXGXGX@Pe,@A@@б@г(sockaddrGg:GhB@@ @@@@@гF͠$unitGtFGuJ@@ @@@@@@@@!@@@'@@$* @@@G@F* ! Connect a socket to an address. GKKGKq@@@@@@@GU@@7&listenנGswGs}@б@г7M*file_descrGsGs@@ @@@0GGGGGGGG@Pe,@A@@б@гG`#intGsGs@@ @@@@@гG$unitGsGs@@ @@@@@@@@!@@@'@@$* @@@Gss@Fy w Set up a socket for receiving connection requests. The integer argument is the maximal number of pending requests. GG@@@@@@@GV@@7A(0shutdown_command[GG-@@8@@0SHUTDOWN_RECEIVEِ@@G04G0D@F5 Close for receiving H0PH0j@@@@@@@HX-SHUTDOWN_SENDڐ@@H kmH k|@F3 Close for sending HkHk@@@@@@@H/Y,SHUTDOWN_ALLې@@H H!@Fɐ, Close both H-H.@@@@@@@HEZ@@A@@@@@H1@Fِ & The type of commands for [shutdown]. H=H>@@@@@@@A@HUW@SSQP@@@@SPBBHJko@@@@@C@22HP0@@@@30@A@" @0HOHNHNHOHOHOHOHO@@A$4@(shutdownܠH]H^@б@г8*file_descrHhHi@@ @@@$0HjHiHiHjHjHjHjHj@@A@@б@г0shutdown_commandHy!Hz1@@ @@@%@@гGߠ$unitH5H9@@ @@@&@@@@@'!@@@'@@($* @@@H@G<  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). H::H [@@@@@@@H[@@7+getsocknameݠH]aH]l@б@г8_*file_descrH]oH]y@@ @@@)0HHHHHHHH@Pe,@A@@гꠐ(sockaddrH]}H]@@ @@@*@@@@@+@@@H]] @Gy ) Return the address of the given socket. HH@@@@@@@H\@@%+getpeernameޠHH@б@г8*file_descrHH@@ @@@,0HHHHHHHH@>S,@A@@г'(sockaddrII@@ @@@-@@@@@.@@@I @G ? Return the address of the host connected to the given socket. II#@@@@@@@I2]@@%A((msg_flag\I'%*I(%2@@8@@'MSG_OOB@@I159I25@@@II_-MSG_DONTROUTE@@I:ACI;AR@@IR`(MSG_PEEK@@ICSUIDS_@@I[a@@A@@@@@IG%%@G < The flags for {!recv}, {!recvfrom}, {!send} and {!sendto}. ISeeITe@@@@@@@A@Ik^@,,*)@@@@,@((I`AE&@@@@)@%%IfSW#@@@@&@@A@" @0IeIdIdIeIeIeIeIe@p^@A$'@$recvIsIt@б@г9&*file_descrI~I@@ @@@60IIIIIIII@b\@A@@б@гH]%bytesII@@ @@@7@@б@гIH#intII@@ @@@8 @@б@гIW#intII@@ @@@9/@@б@гIQ$listII@г(msg_flagII@@ @@@:H@@@@@@<M @@гI#intII@@ @@@=Z@@@@@>]@@@4@@?`7 @@@F@@@cI@@@X@@Af[@@@l@@Bio@@@I@H ' Receive data from a connected socket. II@@@@@@@Jb@&@|(recvfromJ!J)@б@г9*file_descrJ,.J,8@@ @@@C0JJJJJJJJ@,@A@@б@гH%bytesJ#,<J$,A@@ @@@D@@б@гIܠ#intJ2,EJ3,H@@ @@@E @@б@гI렐#intJA,LJB,O@@ @@@F/@@б@гI堐$listJP,\JQ,`@г3(msg_flagJZ,SJ[,[@@ @@@GH@@@@@@IM @@ВгJ#intJodhJpdk@@ @@@J]@@г(sockaddrJ}dnJ~dv@@ @@@Kk@@@@@Lp @@@*@@Ms1 @@@J@@NvM@@@\@@Oy_@@@n@@P|q@@@@@Q@@@J@IA * Receive data from an unconnected socket. JwwJw@@@@@@@Jc@+@$sendJJ@б@г:d*file_descrJJ@@ @@@R0JJJJJJJJ@,@A@@б@гI%bytesJJ@@ @@@S@@б@гJ#intJJ@@ @@@T @@б@гJ#intJJ@@ @@@U/@@б@гJ$listJJ@гݠ(msg_flagKK@@ @@@VH@@@@@@XM @@гJ#intKK@@ @@@YZ@@@@@Z]@@@4@@[`7 @@@F@@\cI@@@X@@]f[@@@l@@^io@@@K-@IՐ $ Send data over a connected socket. K9K:@@@@@@@KQd@&@|.send_substringKEKF,@б@г:*file_descrKP/1KQ/;@@ @@@_0KRKQKQKRKRKRKRKR@,@A@@б@гJ&stringKa/?Kb/E@@ @@@`@@б@гK#intKp/IKq/L@@ @@@a @@б@гK)#intK/PK/S@@ @@@b/@@б@гK#$listK/`K/d@гq(msg_flagK/WK/_@@ @@@cH@@@@@@eM @@гKT#intK/hK/k@@ @@@fZ@@@@@g]@@@4@@h`7 @@@F@@icI@@@X@@jf[@@@l@@kio@@@K@Ji c Same as [send], but take the data from a string instead of a byte sequence. @since 4.02.0 KllK@@@@@@@Ke@&@|&sendtoKK@б@г;*file_descrKK@@ @@@l0KKKKKKKK@,@A@@б@гJà%bytesKK@@ @@@m@@б@гK#intLL@@ @@@n @@б@гK#intLL@@ @@@o/@@б@гK$listL"L#@г(msg_flagL, L-@@ @@@pH@@@@@@rM @@б@гd(sockaddrL@LA'@@ @@@s\@@гK#intLM+LN.@@ @@@ti@@@@@ul@@@&@@vo- @@@F@@wrI@@@X@@xu[@@@j@@yxm@@@~@@z{@@@Lg@K ' Send data over an unconnected socket. Ls//Lt/[@@@@@@@Lf@)@0sendto_substringL]aL]q@б@г<2*file_descrLtvLt@@ @@@{0LLLLLLLL@,@A@@б@гK&stringLtLt@@ @@@|@@б@гLT#intLtLt@@ @@@} @@б@гLc#intLtLt@@ @@@~/@@б@гL]$listLtLt@г(msg_flagLtLt@@ @@@H@@@@@@M @@б@г (sockaddrLL@@ @@@\@@гL#intLL@@ @@@i@@@@@l@@@&@@o- @@@F@@rI@@@X@@u[@@@j@@xm@@@~@@{@@@M ]]@K e Same as [sendto], but take the data from a string instead of a byte sequence. @since 4.02.0 MM)@@@@@@@M1g@)@M/4 {1 Socket options} M*--M+-F@@@@@@0M)M(M(M)M)M)M)M)@#@AA(2socket_bool_option]M7INM8I`@@8@@(SO_DEBUG@@MAcgMBco@Kꐠ> Record debugging information MNcvMOc@@@@@@@Mfi,SO_BROADCAST@@MWMX@L & Permit sending of broadcast messages MdMe@@@@@@@M|j,SO_REUSEADDR@@MmMn@L ) Allow reuse of local addresses for bind MzM{@@@@@@@Mk,SO_KEEPALIVE@@MM+@L,8 Keep connection active M.MK@@@@@@@Ml,SO_DONTROUTE@@MLNML\@LB ( Bypass the standard routing algorithms ML_ML@@@@@@@Mm,SO_OOBINLINE@@MM@LX Leave out-of-band data in line MM@@@@@@@Mn-SO_ACCEPTCONN@@MM@Ln , Report whether socket listening is enabled MM @@@@@@@Mo+TCP_NODELAY@@M  M @L - Control the Nagle algorithm for TCP sockets M M P@@@@@@@Np)IPV6_ONLY@@M QSM Q^@L 2 Forbid binding an IPv6 socket to an IPv4 address M QdM Q@@@@@@@Nq,SO_REUSEPORT@@N N @L * Allow reuse of address and port bindings N N @@@@@@@N,r@@A@@@@@NII@L The socket options that can be consulted with {!getsockopt} and modified with {!setsockopt}. These options have a boolean ([true]/[false]) value. N$ N% a~@@@@@@@A@N<h@@@@@ܠܰN1@@@@ڠ̠̰N7@@@@ʠN=@@@@NCLP@@@@NI@@@@NO@@@@||NU z@@@@}zllN[ QUj@@@@mj\\Na Z@@@@]Z@A@LJ@7L\@A(1socket_int_option^NmNn@@8@@)SO_SNDBUF@@NwNx@M 5 Size of send buffer NN@@@@@@@Nt)SO_RCVBUF@@NN@M69 Size of received buffer NN@@@@@@@Nu(SO_ERROR@@NN@ML / Deprecated. Use {!getsockopt_error} instead. NN:@@@@@@@Nv'SO_TYPE@@N;=N;F@Mb8 Report the socket type N;LN;i@@@@@@@Nw+SO_RCVLOWAT@@NjlNjy@Mx 9 Minimum number of bytes to process for input operations Nj{Nj@@@@@@@Nx+SO_SNDLOWAT@@NN@M : Minimum number of bytes to process for output operations NN @@@@@@@O y@@A@@@@@N@M The socket options that can be consulted with {!getsockopt_int} and modified with {!setsockopt_int}. These options have an integer value. O  O@@@@@@@A@Os@@@@@O@@@@ttOr@@@@urddO;?b@@@@ebTTO!jnR@@@@URDDO'B@@@@EB@A@42@0O&O%O%O&O&O&O&O&@@A6F@A(4socket_optint_option_O5O6@@8@@)SO_LINGER@@O?O@@M萠 Whether to linger on closed connections that have data present, and for how long (in seconds) OLOM:]@@@@@@@Od{@@A@@@@@OP@M 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''. O\^^O] )@@@@@@@A@Otz@''%$@@@@'$@A@@0ObOaOaObObObObOb@=@A(@A(3socket_float_option`Oq"+0Or"+C@@8@@+SO_RCVTIMEO@@O{#FJO|#FU@N$> Timeout for input operations O#FYO#F|@@@@@@@O}+SO_SNDTIMEO@@O$}O$}@N:? Timeout for output operations O$}O$}@@@@@@@O~@@A@@@@@O"++@NJ 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%O(s@@@@@@@A@O|@==;:@@@@=:,,O$}*@@@@-*@A@@0OOOOOOOO@Y@A.@*getsockoptO*O*@б@г?{*file_descrO*O*@@ @@@0OOOOOOOO@mg@A@@б@г2socket_bool_optionO*O*@@ @@@@@гO$boolO*O*@@ @@@@@@@@!@@@'@@$* @@@O*@N N Return the current status of a boolean-valued option in the given socket. P +P ,+@@@@@@@P#@@7*setsockoptP.-1P.-;@б@г?ʠ*file_descrP".->P#.-H@@ @@@0P$P#P#P$P$P$P$P$@Pe,@A@@б@г2socket_bool_optionP3.-LP4.-^@@ @@@@@б@гP$boolPB.-bPC.-f@@ @@@ @@гO$unitPO.-jPP.-n@@ @@@-@@@@@0@@@%@@3( @@@9@@6<@@@P`.--@O ; Set or clear a boolean-valued option in the given socket. Pl/ooPm/o@@@@@@@P@ @I.getsockopt_intPx1Py1@б@г@+*file_descrP1P1@@ @@@0PPPPPPPP@bw,@A@@б@г'1socket_int_optionP1P1@@ @@@@@гPK#intP1P1@@ @@@@@@@@!@@@'@@$* @@@P1@OW < Same as {!getsockopt} for an integer-valued socket option. P2P2.@@@@@@@P@@7.setsockopt_intP404P40B@б@г@z*file_descrP40EP40O@@ @@@0PPPPPPPP@Pe,@A@@б@гv1socket_int_optionP40SP40d@@ @@@@@б@гP#intP40hP40k@@ @@@ @@гPX$unitP40oQ40s@@ @@@-@@@@@0@@@%@@3( @@@9@@6<@@@Q400@O < Same as {!setsockopt} for an integer-valued socket option. Q5ttQ5t@@@@@@@Q4@ @I1getsockopt_optintQ(7Q)7@б@г@۠*file_descrQ37Q47@@ @@@0Q5Q4Q4Q5Q5Q5Q5Q5@bw,@A@@б@г4socket_optint_optionQD7QE7@@ @@@@@гPŠ&optionQQ7QR7@гQ#intQ[7Q\7@@ @@@(@@@@@@- @@@"@@0%@@@6@@39@@@Qn7@P O Same as {!getsockopt} for a socket option whose value is an [int option]. Qz8Q{9=T@@@@@@@Q@,@F1setsockopt_optintQ;VZQ;Vk@б@гA9*file_descrQ<ntQ<n~@@ @@@0QQQQQQQQ@_t,@A@@б@гm4socket_optint_optionQ<nQ<n@@ @@@@@б@гQ%&optionQ<nQ<n@гQe#intQ<nQ<n@@ @@@*@@@@@@/ @@гQ&$unitQ<nQ<n@@ @@@<@@@@@?@@@4@@B7 @@@H@@EK@@@Q;VV@P O Same as {!setsockopt} for a socket option whose value is an [int option]. Q=Q>@@@@@@@R@ @X0getsockopt_floatQ@Q@@б@гA*file_descrR@R@$@@ @@@0RRRRRRRR@q,@A@@б@г3socket_float_optionR@(R@;@@ @@@@@гQѠ%floatR@?R @D@@ @@@@@@@@!@@@'@@$* @@@R-@@PՐ W Same as {!getsockopt} for a socket option whose value is a floating-point number. R9AEER:B@@@@@@@RQ@@70setsockopt_floatREDRFD@б@гA*file_descrRPDRQD@@ @@@0RRRQRQRRRRRRRRRR@Pe,@A@@б@г3socket_float_optionRaDRbD@@ @@@@@б@гR"%floatRpDRqD@@ @@@ @@гQ֠$unitR}DR~D@@ @@@-@@@@@0@@@%@@3( @@@9@@6<@@@RD@Q6 W Same as {!setsockopt} for a socket option whose value is a floating-point number. RERF,I@@@@@@@R@ @I0getsockopt_errorRHKORHK_@б@гBY*file_descrRHKbRHKl@@ @@@0RRRRRRRR@bw,@A@@гR4&optionRHKvRHK|@гQ}%errorRHKpRHKu@@ @@@@@@@@@ @@@$@@!'@@@RHKK@Q P Return the error condition associated with the given socket, and clear it. RI}}RJ@@@@@@@R@)@4R - {1 High-level network connection functions} RLRL@@@@@@0RRRRRRRR@DY#@A/open_connection SO  SO @б@г2(sockaddrSO SO '@@ @@@@@ВгQ*in_channelSO +SO 5@@ @@@*@@гQ+out_channelS,O 8S-O C@@ @@@8@@@@@= @@@)@@@, @@@S<O  @Q䐠 . 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. SHPDDSIZuw@@@@@@@S`@@S3shutdown_connection ST]z~SU]z@б@гR)*in_channelS_]zS`]z@@ @@@0SaS`S`SaSaSaSaSa@lg,@A@@гRǠ$unitSn]zSo]z@@ @@@@@@@@@@@Sy]zz @R! 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. S^Sc@@@@@@@S@@%0establish_server SeSe@б@б@гRh*in_channelSfSf@@ @@@0SSSSSSSS@@U.@A@@б@гRy+out_channelSf#Sf.@@ @@@@@гS$unitSf2Sf6@@ @@@@@@@@!@@@'@@$* @@б@г(sockaddrSf;SfC@@ @@@3@@гS7$unitSfGSfK@@ @@@@@@@@@C@@@$@@FSf @@@Se@R  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. SgLLSt.@@@@@@@T@@ZT ! {1 Host and protocol databases} T w11T w1W@@@@@@0T TTT T T T T @j#@AA(*host_entry aTyY^TyYh@@8@@&h_name @S@@@T$zkoT%zk@@T<)h_aliases@T S@@@@@@T5{T6{@@TM*h_addrtype@i@@@TA|TB|@@TY+h_addr_list@T' @@@@@@TR}TS}@@Tj@@A@@@@@TVyYYTW~@R / Structure of entries in the [hosts] database. TcTd@@@@@@@@@T{@LLGTkzku@@Ш@гO&stringTtzkxTuzk~@@W0TsTrTrTsTsTsTsTs@ke8@@@A@@@@@$!@@@A@@]@c@@Y@UUKT{@@Ш@гX%arrayT{T{@г]&stringT{T{@@e@@@j @@m@c@"@d@``[T|@@Ш@гc-socket_domainT|T|@@k1@@n@c@4@j@ff\T}@@Ш@гi%arrayT}e@гm)inet_addrT}T}@@uK@@@zLp@@}@c@O@t@@A@pm@po@A(.protocol_entrybTT-@@8@@&p_name@T;@@@T04T0D@@T)p_aliases@T TK@@@@@@TEITEb@@U'p_proto@T@@@TcgTct@@U@@A@@@@@TTux@S 3 Structure of entries in the [protocols] database. U yyU y@@@@@@@@@U"@;;6U0:@@Ш@г>&stringU0=U0C@@F0UUUUUUUU@ U8@@@A@@@@@%"@@@A@@M@d@@I@EE;U(ER@@Ш@гH%arrayU1E\U2Ea@гM&stringU:EUU;E[@@U@@@Z  @@]@d@#@T@PPKUDcn@@Ш@гS#intUMcqT@@Z1U@@]@d@4@Y@@A@UR@0UNUMUMUNUNUNUNUN@3@AVU@A(-service_entrycU\U]@@8@@&s_name@T@@@.UiUj@@U)s_aliases@UOT@@@1@@@3UzU{@@U&s_port@U2@@@6UU @@U's_proto@T@@@9U U !@@U@@A@@@@@UU"%@T? 2 Structure of entries in the [services] database. U&&U&]@@@@@@@@@U@GGBU@@Ш@гJ&stringUU@@R0UUUUUUUU@a8@@@A@@@@@%"@@@A@@Y@e@/@U@QQGU@@Ш@гT%arrayUU@гY&stringUU@@a@@@f  @@i@e@4#@`@\\WU@@Ш@г_#intUU @@g2@@j@e@75@f@bb]U @@Ш@гe&stringU f@@lCg@@o@e@:F@k@@A@gd@0UUUUUUUU@E@Ahg@+gethostnameV_cV_n@б@гUj$unitV_qV_u@@ @@@M0VVVVVVVV@`@A@@гU}&stringV _yV!_@@ @@@N@@@@@O@@@V+__ @TӐ $ Return the name of the local host. V7V8@@@@@@@VO@@%-gethostbynameVCVD@б@гU&stringVNVO@@ @@@P0VPVOVOVPVPVPVPVP@>S,@A@@гF*host_entryV]V^@@ @@@Q@@@@@R@@@Vh @U ] Find an entry in [hosts] with the given name. @raise Not_found if no such entry exists. VtVu6@@@@@@@V@@%-gethostbyaddrV8<V8I@б@гB)inet_addrV8LV8U@@ @@@S0VVVVVVVV@>S,@A@@г*host_entryV8YV8c@@ @@@T@@@@@U@@@V88 @UM ` Find an entry in [hosts] with the given address. @raise Not_found if no such entry exists. VddV@@@@@@@V@@%.getprotobynameVV@б@гV%&stringVV@@ @@@V0VVVVVVVV@>S,@A@@г.protocol_entryVV@@ @@@W@@@@@X@@@V @U a Find an entry in [protocols] with the given name. @raise Not_found if no such entry exists. VV/_@@@@@@@W@@%0getprotobynumberVaeVau@б@гV#intWaxWa{@@ @@@Y0WWWWWWWW@>S,@A@@гE.protocol_entryWaWa@@ @@@Z@@@@@[@@@Waa @Uǐ l Find an entry in [protocols] with the given protocol number. @raise Not_found if no such entry exists. W+W,@@@@@@@WC@@%-getservbynameW7W8@б@гV&stringWBWC@@ @@@\0WDWCWCWDWDWDWDWD@>S,@A@@б@гV&stringWSWT%@@ @@@]@@г-service_entryW`)Wa6@@ @@@^@@@@@_!@@@'@@`$* @@@Wn@V ` Find an entry in [services] with the given name. @raise Not_found if no such entry exists. Wz77W{l@@@@@@@W@@7-getservbyport WW@б@гW;#intWW@@ @@@a0WWWWWWWW@Pe,@A@@б@гV&stringWW@@ @@@b@@гS-service_entryWW@@ @@@c@@@@@d!@@@'@@e$* @@@W@Ve j Find an entry in [services] with the given service number. @raise Not_found if no such entry exists. WW@@@@@@@@W@@7A()addr_info!dWBGWBP@@8@@)ai_family"@ @@@fWSWWSq@V/ Socket domain WS{WS@@@@@@@X+ai_socktype#@@@@iWW@V- Socket type X X @@@@@@@X!+ai_protocol$@W@@@lXX@V8 Socket protocol number X"X# @@@@@@@X:'ai_addr%@T@@@oX.  X/  (@Vא) Address X;  9X<  G@@@@@@@XS,ai_canonname&@W@@@rXG H LXH H a@V𐠠6 Canonical host name XT H pXU H @@@@@@@Xl@@A@@@@@XXBBXY  @W 1 Address information returned by {!getaddrinfo}. Xe  Xf  @@@@@@@@@X}@XmS`@@Ш@г-socket_domainXvScXwSp@@0XuXtXtXuXuXuXuXu@8@@@A@@@@@%"@@@A@@@f@g@X@@Ш@г+socket_typeXX@@@@@f@j@X@@Ш@г#intXX@@(@@@f@m+@~~yX  @@Ш@г(sockaddrX  X  '@@:@@@f@p=@wwrX H X@@Ш@гz&stringX H [{@@K|@@@f@sN@}@A@ol@0XXXXXXXX@M@Apo@A(2getaddrinfo_option'eX  X  @@8@@)AI_FAMILY(@@@@@X  X  @W Impose the given socket domain X  X  /@@@@@@@Y+AI_SOCKTYPE)@@@@@X 0 2X 0 N@W> Impose the given socket type Y 0 XY  0 {@@@@@@@Y +AI_PROTOCOL*X@@@@@Y | ~Y | @W< Impose the given protocol Y# | Y$ | @@@@@@@Y;.AI_NUMERICHOST+@@Y,  Y-  @WՐ b Do not call name resolver, expect numeric IP address Y9  Y:  U@@@@@@@YQ,AI_CANONNAME,@@YB V XYC V f@W될 Y Fill the [ai_canonname] field of the result YO V ~YP  @@@@@@@Yg*AI_PASSIVE-@@YX  YY  @X a Set address to ``any'' address for use with {!bind} Ye  Yf ( k@@@@@@@Y}@@A@@@@@Yi  @X< Options to {!getaddrinfo}. Yu l lYv l @@@@@@@@@Y@Y}  @@г-socket_domainY  @@0YYYYYYYY@8@@@A@@@@@#!@@@A@@@@Y 0 4Y 0 ?@@г+socket_typeY 0 C@@@@@@Y | Y | @@г#intY | @@$@@@@Y  @@@@vvY V Zt@@@@wtffY  d@@@@gd@A@VT@0YYYYYYYY@6@AWg@+getaddrinfo.Y  Y  @б@гY0&stringY  Y  @@ @@@0YYYYYYYY@Q @A@@б@гYA&stringY  Y  @@ @@@@@б@гY$listY  Y  @г,2getaddrinfo_optionY  Y  @@ @@@*@@@@@@/ @@гY$listZ  Z  @гC)addr_infoZ  Z  @@ @@@F@@@@@@K @@@#@@N*@@@C@@QF@@@W@@TZ@@@Z/   @Xא  [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). Z;  Z<~@@@@@@@ZS@/@gA()name_info/fZHZI@@8@@+ni_hostname0@Y@@@ZUZV@X< Name or IP address of host ZbZc@@@@@@@Zz*ni_service1@Y@@@ZnZo2@Y Name of service or port number Z{BZ|g@@@@@@@Z@@A@@@@@ZZhk@Y( : Host and service information returned by {!getnameinfo}. ZllZl@@@@@@@@@Z@DD?Z@@Ш@гG&stringZZ@@O0ZZZZZZZZ@u^8@@@A@@@@@%"@@@A@@V@h@@ROAA<Z(@@Ш@гD&stringZ+Z1@@L@@O@h@@KH@A@:7@0ZZZZZZZZ@@A;:@A(2getnameinfo_option2gZZ@@8@@)NI_NOFQDN3@@ZZ@Yv ! Do not qualify local host names ZZ@@@@@@@Z.NI_NUMERICHOST4@@Z Z@Y " Always return host as IP address Z ZG@@@@@@@[+NI_NAMEREQD5@@ZHJZHW@Y ( Fail if host name cannot be determined [Ha[H@@@@@@@[.NI_NUMERICSERV6@@[[@Y & Always return service as port number [[@@@@@@@[4(NI_DGRAM7@@[%[&@Yΐ [ Consider the service as UDP-based instead of the default TCP [2[3M@@@@@@@[J@@A@@@@@[6@Yސ< Options to {!getnameinfo}. [BNN[CNo@@@@@@@A@[Z@}|@@@@|nn[O l@@@@ol^^[UHL\@@@@_\NN[[L@@@@OL>>[a<@@@@?<@A@.,@0[`[_[_[`[`[`[`[`@!@A0@@+getnameinfo8[nqu[oq@б@г(sockaddr[yq[zq@@ @@@0[{[z[z[{[{[{[{[{@@A@@б@г[$list[q[q@гѠ2getnameinfo_option[q[q@@ @@@@@@@@@  @@г^)name_info[q[q@@ @@@-@@@@@0@@@6@@39 @@@[qq@Z\ [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. [[@@@@@@@[@@F[֐8 {1 Terminal interface} [[@@@@@@0[[[[[[[[@Vk#@A[琠 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. [[@@@@@@A(+terminal_io9h[[@@8@@(c_ignbrk:A[@@@[[@Z= Ignore the break condition. \\$@@@@@@@\(c_brkint;A[@@@\%)\%A@Z & Signal interrupt on break condition. \ %C\!%n@@@@@@@\8(c_ignparA\/@@@ɰ\^\_@[? Enable parity check on input. \k\l5@@@@@@@\(c_istrip?A\H@@@̰\w6:\x6R@[ $ Strip 8th bit on input characters. \6T\6}@@@@@@@\'c_inlcr@A\a@@@ϰ\~\~@[98 Map NL to CR on input. \~\~@@@@@@@\'c_igncrAA\z@@@Ұ\\@[R5 Ignore CR on input. \\@@@@@@@\'c_icrnlBA\@@@հ\\@[k8 Map CR to NL on input. \\.@@@@@@@\&c_ixonCA\@@@ذ\/3\/I@[ ) Recognize XON/XOFF characters on input. \/M\/{@@@@@@@] 'c_ixoffDA\@@@۰\|\|@[ , Emit XON/XOFF chars to control input flow. ]|]|@@@@@@@]à'c_opostEA\@@@ް] ]@[; Enable output processing. ]]"@@@@@@@]2Ġ'c_obaudFA\@@@]&<@]'<V@[ϐ - Output baud rate (0 means close connection).]3<Z]4<@@@@@@@]KŠ'c_ibaudGA\@@@]?]@@[萠2 Input baud rate. ]L]M@@@@@@@]dƠ'c_csizeHA]@@@]X]Y@\ % Number of bits per character (5-8). ]e]f @@@@@@@]}Ǡ(c_cstopbIA]@@@]q ]r '@\< Number of stop bits (1-2). ]~ *] K@@@@@@@]Ƞ'c_creadJA][@@@]LP]Lg@\37 Reception is enabled. ]Lj]L@@@@@@@]ɠ(c_parenbKA]t@@@]]@\L ) Enable parity generation and detection. ]]@@@@@@@]ʠ(c_paroddLA]@@@]]@\e % Specify odd parity instead of even. ]]@@@@@@@]ˠ'c_hupclMA]@@@] !] 8@\~8 Hang up on last close. ] ;] X@@@@@@@]̠(c_clocalNA]@@@] Y]] Yu@\< Ignore modem status lines. ] Yw] Y@@@@@@@^͠&c_isigOA]@@@^ ^ @\ & Generate signal on INTR, QUIT, SUSP. ^ ^ @@@@@@@^,Π(c_icanonPA]@@@^  ^! @\ɐ [ Enable canonical processing (line buffering and editing) ^- ^.8x@@@@@@@^EϠ(c_noflshQA^ @@@^9y}^:y@\␠ ' Disable flush after INTR, QUIT, SUSP. ^Fy^Gy@@@@@@@^^Р&c_echoRA^#@@@^R^S@\8 Echo input characters. ^_^`@@@@@@@^wѠ'c_echoeSA^<@@@^k^l@] + Echo ERASE (to erase previous character). ^x^yN@@@@@@@^Ҡ'c_echokTA^U@@@ ^OS^Oj@]- ( Echo KILL (to erase the current line). ^Om^O@@@@@@@^Ӡ(c_echonlUA^n@@@^^@]F $ Echo NL even if c_echo is not set. ^^@@@@@@@^Ԡ'c_vintrVA^v@@@^^@]_ ' Interrupt character (usually ctrl-C). ^^K@@@@@@@^ՠ'c_vquitWA^@@@^LP^Lg@]x " Quit character (usually ctrl-\). ^Lj^L@@@@@@@^֠(c_veraseXA^@@@^^@] * Erase character (usually DEL or ctrl-H). ^^@@@@@@@_ נ'c_vkillYA^@@@__@] ' Kill line character (usually ctrl-U). __*@@@@@@@_&ؠ&c_veofZA^@@@_+/_+E@]Ð ) End-of-file character (usually ctrl-D). _'+I_(+w@@@@@@@_?٠&c_veol[A^@@@ _3x|_4x@]ܐ - Alternate end-of-line char. (usually none). _@x_Ax@@@@@@@_Xڠ&c_vmin\A^@@@#_L_M@] m Minimum number of characters to read before the read request is satisfied. _Y_Z  Y@@@@@@@_q۠'c_vtime]A_@@@&_e Z ^_f Z t@^ $ Maximum read wait (in 0.1s units). _r Z x_s Z @@@@@@@_ܠ(c_vstart^A_>@@@)_~  _  @^' # Start character (usually ctrl-Q). _  _  @@@@@@@_ݠ'c_vstop_A_W@@@,_  _ !@^@ " Stop character (usually ctrl-S). _ !_ !.@@@@@@@_@@A@@@@@__ !/!2@@@@_@__@AШ@г$bool__@@0________@8@@@A@@@@@@@@@A@@@j@@Ơ_%1_%9@AШ@г$bool_%<_%@@@@@@j@@_o{_o@AШ@г$bool_o_o@@)@@@j@,@__@AШ@г$bool__@@<@@@j@?@_`@AШ@г$bool`  `  @@O@@@j@R@`6B`6J@AШ@г$bool`6M`6Q@@b@@@j@e@`%~`&~@AШ@г$bool`/~`0~@@u@@@j@x@`8`9@AШ@г$bool`B`C@@@@@j@@`K`L@AШ@г$bool`U `V @@@@@j@@`^/;`_/A@AШ@г$bool`h/D`i/H@@@@@j@@`q|`r|@AШ@г$bool`{|`||@@@@@j@@||``@AШ@г$bool``@@԰@@@j@@vv`<H`<O@AШ@гz#int`<R`<U@@@@@j@@~pp``@AШ@гt#int``@@|@@@j@@{xjj``@AШ@гn#int``@@v @@y@j@@urdd` `  @AШ@гh#int` #` &@@p @@s@j@#@ol^^`LX`L_@AШ@гb$bool`Lb`Lf@@j3@@m@j@6@ifXX``@AШ@г\$boolaa@@dF@@g@j@I@c`RRa a @AШ@гV$boolaa@@^Y@@a@j@\@]ZLLa )a 0@AШ@гP$boola& 3a' 7@@Xl@@[@j@o@WTFFa/ Yea0 Ym@AШ@гJ$boola9 Ypa: Yt@@R@@U@j@@QN@@aB aC @AШ@гD$boolaL aM @@L@@O@j@@KH::aU aV @AШ@г>$boola_ a` @@F@@I@j@@EB44ahyaiy@AШ@г8$boolaryasy@@@@@C@j@@?<..a{a|@AШ@г2$boolaa@@:˰@@=@j@@96((a a@AШ@г,$boolaa@@4ް@@7@j@ @30""aO[aOb@AШ@г&$boolaOeaOi@@.@@1@j@ @-*aa@AШ@г $boolaa@@(@@+@j@@'$a a@AШ@г$charaa@@"@@%@j@@!aLXaL_@AШ@г$charaLbaLf@@*@@@j@-@  aa@AШ@г$charaa@@=@@@j@@@bb@AШ@г$charb b @@P@@@j@S@ b+7b+=@AШ@г$charb+@b+D@@ c@@ @j@f@ b&xb'x@AШ@г$charb0xb1x@@v@@@j@!y@b9b:@AШ@г#intbCbD@@@@@j@$@bL Z fbM Z m@AШ@г#intbV Z pbW Z s@@@@@j@'@b_  b`  @AШ@гꠐ$charbi  bj  @@@@@j@*@br  bs  @AШ@г䠐$charb|  b} !@@°@@@j@-@@A@@@@)tcgetattr`b"!4!8b"!4!A@б@гR=*file_descrb"!4!Db"!4!N@@ @@@0bbbbbbbb@@A@@г+terminal_iob"!4!Rb"!4!]@@ @@@@@@@@@@@b"!4!4 @aW w Return the status of the terminal referred to by the given file descriptor. @raise Invalid_argument on Windows b#!^!^b&!!@@@@@@@b@@%A(,setattr_whenaib(!!b(!!@@8@@'TCSANOWb@@b)!!b)!!@@b)TCSADRAINc@@b*!!b*!" @@b)TCSAFLUSHd@@b+" " b+" "@@b@@A@@@@@b(!!@@A@b@@@@@@b*!"@@@@@b+" "@@@@@@A@@@0bbbbbbbb@cxQ@A@)tcsetattrec-""c-""&@б@гR*file_descrc-"")c-""3@@ @@@0cccccccc@UO@A@@б@г[,setattr_whenc#-""7c$-""C@@ @@@@@б@гE+terminal_ioc2-""Gc3-""R@@ @@@ @@гb$unitc?-""Vc@-""Z@@ @@@-@@@@@0@@@%@@3( @@@9@@6<@@@cP-""@a  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 c\."["[c]7$$=@@@@@@@ct@ @I+tcsendbreakfch9$?$Cci9$?$N@б@гS*file_descrcs9$?$Qct9$?$[@@ @@@0cuctctcucucucucu@bw,@A@@б@гc.#intc9$?$_c9$?$b@@ @@@@@гbꠐ$unitc9$?$fc9$?$j@@ @@@@@@@@!@@@'@@$* @@@c9$?$?@bG 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 c:$k$kc>%%7@@@@@@@c@@7'tcdraingc@%9%=c@%9%D@б@гSj*file_descrc@%9%Gc@%9%Q@@ @@@0cccccccc@Pe,@A@@гc*$unitc@%9%Uc@%9%Y@@ @@@@@@@@@@@c@%9%9 @b } Waits until all output written on the given file descriptor has been transmitted. @raise Invalid_argument on Windows cA%Z%ZcD%%@@@@@@@d@@%A(+flush_queuehjcF%%cF%%@@8@@(TCIFLUSHi@@cG%%dG%%@@d(TCOFLUSHj@@dH%&d H%& @@d )TCIOFLUSHk@@dI& & dI& &@@d)@@A@@@@@dF%%@@A@d,@@@@@@d!H%&@@@@@d'I& &@@@@@@A@@@0d&d%d%d&d&d&d&d&@cxQ@A@'tcflushld4K&&d5K&&%@б@гS砐*file_descrd?K&&(d@K&&2@@ @@@0dAd@d@dAdAdAdAdA@UO@A@@б@г[+flush_queuedPK&&6dQK&&A@@ @@@@@гc$unitd]K&&Ed^K&&I@@ @@@@@@@@!@@@'@@$* @@@dkK&&@c 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 dwL&J&JdxR'm'@@@@@@@d@@7A(+flow_actionmkdT''dT''@@8@@&TCOOFFn@@dU''dU''@@d%TCOONo@@dV''dV''@@d&TCIOFFp@@dW''dW''@@d%TCIONq@@dX''dX''@@d@@A@@@@@dT''@@A@d@((&%@@@@(@$$dV''"@@@@%@!!dW''@@@@"@dX''@@@@@@A@@@0dddddddd@`@A @&tcflowrdZ''dZ''@б@гT*file_descrdZ''dZ''@@ @@@0dddddddd@d^@A@@б@гj+flow_actiondZ''dZ''@@ @@@@@гdT$unitdZ''dZ'(@@ @@@@@@@@!@@@'@@$* @@@e Z''@c 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 e[((ea)-)U@@@@@@@e-@@7&setsidse!c)W)[e"c)W)a@б@гd$unite,c)W)de-c)W)h@@ @@@0e.e-e-e.e.e.e.e.@Pe,@A@@гd堐#inte;c)W)le<c)W)o@@ @@@@@@@@@@@eFc)W)W @c Put the calling process in a new session and detach it from its controlling terminal. @raise Invalid_argument on Windows eRd)p)peSg))@@@@@@@ej@@%@dd A@\S\MB@\[@[[@[m[9@[%Z@ZZ@ZZy@ZeZ,@ZZA@YfY`A@YX@XXP@X<W@WW{@WgW@@W,V@VV}@ViVB@V.V @UU@UU@UUX@U2U,A@UU@TT@TT@TTA@RRA@RRK@R7R@QQ@QQd@QPP@PP@PnP@OO@O{OV@OBO@ON@NN@NNyA@NM@MMx@MdM+@MLA@L2L,A@J I@II@IIo@I[I4@I@EKEGE:E@@ED'@DC@CC@C|C*@CB@BBA@B>B@AA@AAY@AE@@@@@@@c@@>@@??@??_@?K?$@?>@>>@>>R@>>>@>=@==@==f@=Q=KA@=5=@<<@<<@<<]@<8;@;;@;r:@::C@:/:@99@99|@9h8@88@88C@8/7@77/@76@66@66h@6T6@55@55@5~5A@5-4@44l@4X41@43@32@22A@21@11g@1R1LA@10@00t@0`0*@0/@//A@..A@-W-0@-,@,,@,,@,k,.@,+@++@++}@+i+B@+.*@**A@*\*VA@))@))p@)K)&@)(@((@((u@(a(:@(&'@''@''k@'W'@' 'A@&&A@%m%F@%2% @$$@$$@$$Z@$4$.A@$#@##@##@#{#f@#R#=@#)#@#"@""A@"C"=A@!!A@!J @  @  @ @f@R@@A@F @@@|A@8@@@l@J@6@zA@LFA@A@LFA@@_@K@@W@C@@=@)@@X@D@A@ A@yA@@u@a:@&@@w@c*@A@A@ ' @  A@ 0 *A@  ?@  A@oH@3-A@@^@J#@A@@}A@7@@@0gggggggg@@A@ H************************************************************************g A@@gA@L@ H gBMMgBM@ H OCaml gCgC@ H gDg D3@ H Xavier Leroy, projet Cristal, INRIA Rocquencourt g%E44g&E4@ H g+Fg,F@ H Copyright 1996 Institut National de Recherche en Informatique et g1Gg2G@ H en Automatique. g7Hg8Hg@ H g=Ihhg>Ih@ H All rights reserved. This file is distributed under the terms of gCJgDJ@ H the GNU Lesser General Public License version 2.1, with the gIKgJKN@ H special exception on linking described in the file LICENSE. gOLOOgPLO@ H gUMgVM@ H************************************************************************g[Ng\N5@ NOTE: If this file is unixLabels.mli, run tools/sync_stdlib_docs after editing it to generate unix.mli. If this file is unix.mli, do not edit it directly -- edit unixLabels.mli instead. gaP77gbV@ NOTE: When a new function is added which is not implemented on Windows (or partially implemented), or the Windows-status of an existing function is changed, remember to update the summary table in manual/src/library/libunix.etex ggXgh]@ W* Interface to the Unix system. To use the labeled version of this module, add [module Unix][ = ][UnixLabels] in your implementation. Note: all the functions of this module (except {!error_message} and {!handle_unix_error}) are liable to raise the {!Unix_error} exception whenever the underlying system call signals an error. gm3* {1 Error report} f.9* Argument list too long f 4* Permission denied e .* Resource temporarily unavailable; try again e砠6* Bad file descriptor eԠ7* Resource unavailable e3* No child process e * Resource deadlock would occur e (* Domain error for math functions, etc. e.* File exists eu.* Bad address eb1* File too large eO !* Function interrupted by signal e<3* Invalid argument e)5* Hardware I/O error e1* Is a directory e %* Too many open files by the process d1* Too many links dݠ4* Filename too long dʠ $* Too many open files in the system d1* No such device d<* No such file or directory d9* Not an executable file d~5* No locks available dk4* Not enough memory dX:* No space left on device dE9* Function not supported d22* Not a directory d6* Directory not empty d &* Inappropriate I/O control operation c<* No such device or address c栠:* Operation not permitted cӠ.* Broken pipe c3* Result too large c8* Read-only file system c>* Invalid seek e.g. on a pipe c2* No such process ct/* Invalid link ca8* Operation would block cN<* Operation now in progress c; * Operation already in progress c( !* Socket operation on non-socket c?* Destination address required c3* Message too long b !* Protocol wrong type for socket bܠ9* Protocol not available bɠ9* Protocol not supported b<* Socket type not supported b $* Operation not supported on socket b * Protocol family not supported b} 2* Address family not supported by protocol family bj9* Address already in use bW !* Can't assign requested address bD2* Network is down b19* Network is unreachable b &* Network dropped connection on reset b #* Software caused connection abort a;* Connection reset by peer a堠<* No buffer space available aҠ>* Socket is already connected a:* Socket is not connected a #* Can't send after socket shutdown a $* Too many references: can't splice a7* Connection timed out as5* Connection refused a`/* Host is down aM3* No route to host a: $* Too many levels of symbolic links a' ** File size or position not representable a0* Unknown error ` * 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* 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. _ 3* Return a string describing the given error code. ^ * [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. ^q (* {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. ^ A* 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.06.0 (4.12.0 in UnixLabels) ]Ӡ * 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}. ] * 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 ]_ * [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. ]7* {1 Process handling} ] Y* The process terminated normally by [exit]; the argument is the return code. \ߠ T* The process was killed by a signal; the argument is the signal number. \Ǡ U* The process was stopped by a signal; the argument is the signal number. \ * 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. \ f* Do not block if no child has died yet, but immediately return with a pid equal to 0. \N 6* Report also the children that receive stop signals. \;8* Flags for {!waitpid}. \. * [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 [Ǡ h* Same as {!execv}, except that the third argument provides the environment to the program executed. [M H* Same as {!execv}, except that the program is searched in the path. Z I* Same as {!execve}, except that the program is searched in the path. Zz * 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. Z@ * Wait until one of the children processes die, and return its pid and termination status. @raise Invalid_argument on Windows. Use {!waitpid} instead. Y * 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. Y * 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. YE * 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 Y !* Return the pid of the process. XӠ p* Return the pid of the parent process. @raise Invalid_argument on Windows (because it is meaningless) X * 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 X_>* {1 Basic file input/output} XQ )* The abstract type of file descriptors. X7 %* File descriptor for standard input.X &* File descriptor for standard output.W砠 &* File descriptor for standard error. W3* Open for reading W3* Open for writing W?* Open for reading and writing Wx<* Open in non-blocking mode We2* Open for append WR8* Create if nonexistent W? #* Truncate to 0 length if existing W,3* Fail if existing W (* Don't make this dev a controlling tty W f* Writes complete as `Synchronised I/O data integrity completion' V f* Writes complete as `Synchronised I/O file integrity completion' Vࠠ ]* Reads complete as writes (depending on O_SYNC/O_DSYNC) V͠ b* Windows only: allow the file to be deleted while still open V * Set the close-on-exec flag on the descriptor returned by {!openfile}. See {!set_close_on_exec} for more information. V c* Clear the close-on-exec flag. This is currently the default. V<* The flags to {!openfile}. V o* The type of file access rights, e.g. [0o640] is read and write for user, read for group, none for others V * 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. U;* Close a file descriptor. UO H* Flush file buffers to disk. @since 4.08.0 (4.12.0 in UnixLabels) U * [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. T '* [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. T5 * Same as {!write}, but attempts to write only once. Thus, if an error occurs, [single_write] guarantees that no data has been written. SŠ f* Same as {!write}, but take the data from a string instead of a byte sequence. @since 4.02.0 SU m* Same as {!single_write}, but take the data from a string instead of a byte sequence. @since 4.02.0 R堠 9* {1 Interfacing with the standard input/output library} Rנ * 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. R * 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. Re ;* Return the descriptor corresponding to an input channel. R+ <* Return the descriptor corresponding to an output channel. Q=* {1 Seeking and truncating} Q㠠 <* indicates positions relative to the beginning of the file Q  7* indicates positions relative to the current position Q 6* indicates positions relative to the end of the file Q "* Positioning modes for {!lseek}. Q x* Set the current position for a file descriptor, and return the resulting offset (from the beginning of the file). Q .* Truncates the named file to the given size. PӠ Q* Truncates the file corresponding to the given descriptor to the given size. P2* {1 File status} Py/* Regular file PX,* Directory PE3* Character device P2/* Block device P0* Symbolic link P -* Named pipe O)* Socket O栠0* Device number O/* Inode number O3* Kind of the file Oi0* Access rights OS2* Number of links O=7* User id of the owner O'?* Group ID of the file's group O>* Device ID (if special file) N0* Size in bytes N堠3* Last access time NϠ9* Last modification time N:* Last status change time N 1* The information returned by the {!stat} calls. N -* Return the information for the named file. M} k* Same as {!stat}, but in case the file is a symbolic link, return the information for the link itself. MC O* Return the information for the file associated with the given descriptor. M k* Return [true] if the given file descriptor refers to a terminal or console window, [false] otherwise. LϠ %* {1 File operations on large files} L/* See [lseek]. LU2* See [truncate]. L 3* See [ftruncate]. K0* Device number K/* Inode number K3* Kind of the file Km0* Access rights KW2* Number of links KA7* User id of the owner K+?* Group ID of the file's group K>* Device ID (if special file) J0* Size in bytes J頠3* Last access time JӠ9* Last modification time J:* Last status change time J * 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]. I * {1 Mapping files into memory} I? thwart tools/sync_stdlib_docs i2ZZi2Z[ @ * 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 G?* {1 Operations on file names} G * 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}} G [* [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]. Gj? thwart tools/sync_stdlib_docs izffizfg@ 7* [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. G * [realpath p] is an absolute pathname for [p] obtained by resolving all extra [/] characters, relative path segments and symbolic links. @since 4.13.0 FѠ %* {1 File permissions and ownership} Fà2* Read permission F3* Write permission F7* Execution permission F|.* File exists Fi * Flags for the {!access} call. F\ ,* Change the permissions of the named file. E T* Change the permissions of an opened file. @raise Invalid_argument on Windows E `* Change the owner uid and owner gid of the named file. @raise Invalid_argument on Windows EN `* Change the owner uid and owner gid of an opened file. @raise Invalid_argument on Windows D w* Set the process's file mode creation mask, and return the previous mask. @raise Invalid_argument on Windows D * 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. D[ %* {1 Operations on file descriptors} DM? thwart tools/sync_stdlib_docs ioSogioSo@ * 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. D? thwart tools/sync_stdlib_docs ipfp{ipfp@ * [dup2 src dst] duplicates [src] to [dst], closing [dst] if already opened. See {!set_close_on_exec} for documentation on the [cloexec] optional argument. C 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]. Ci R* Clear the ``non-blocking'' flag on the given descriptor. See {!set_nonblock}.C/ |* 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. B X* Clear the ``close-on-exec'' flag on the given descriptor. See {!set_close_on_exec}.B2* {1 Directories} B @* Create a directory with the given permissions (see {!umask}). Bc=* Remove an empty directory. B) (* Change the process working directory. A 4* Return the name of the current working directory. A M* Change the process root directory. @raise Invalid_argument on Windows A{ 3* The type of descriptors over opened directories. Aa #* Open a descriptor on a directory A% n* Return the next entry in a directory. @raise End_of_file when the end of the directory has been reached. @렠 >* Reposition the descriptor to the beginning of the directory @ * Close a directory descriptor. @w=* {1 Pipes and redirections} @i? thwart tools/sync_stdlib_docs j%6j&6@ * 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. @ h* Create a named pipe with the given permissions (see {!umask}). @raise Invalid_argument on Windows ? 4* {1 High-level process and redirection management} ? * [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. ? * [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. >m ~* 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}. >3 * 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}. = * 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}. = * 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 <Π 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  * 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. 9ʠ * Close channels opened by {!open_process}, wait for the associated command to terminate, and return its termination status. 9z * Close channels opened by {!open_process_full}, wait for the associated command to terminate, and return its termination status. 95* {1 Symbolic links} 9 ? thwart tools/sync_stdlib_docs jmjn@ * [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. 8 5* 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 8v (* Read the contents of a symbolic link. 8<.* {1 Polling} 8. `* 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). 7A.* {1 Locking} 732* Unlock a region 7 9* Lock a region for writing, and block if already locked 6 7* Lock a region for writing, or fail if already locked 6젠 (* Test a region for other process locks 6٠ 9* Lock a region for reading, and block if already locked 6Ơ 7* Lock a region for reading, or fail if already locked 69* Commands for {!lockf}. 6 ?* [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$ ~* {1 Signals} Note: installation of signal handlers is performed via the functions {!Sys.signal} and {!Sys.set_signal}. 6 * [kill pid signal] sends signal number [signal] to the process with id [pid]. On Windows: only the {!Sys.sigkill} signal is emulated. 5̠ * [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) 5" * Return the set of blocked signals that are currently pending. @raise Invalid_argument on Windows (no inter-process signals on Windows) 4٠ * [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) 4 * Wait until a non-ignored, non-blocked signal is delivered. @raise Invalid_argument on Windows (no inter-process signals on Windows) 4V5* {1 Time functions} 4H<* User time for the process 4$>* System time for the process 4 '* User time for the children processes 3 )* System time for the children processes 3⠠ 0* The execution times (CPU times) of a process. 3Ԡ0* Seconds 0..60 3d0* Minutes 0..59 3N.* Hours 0..23 385* Day of month 1..31 3"6* Month of year 0..11 3 .* Year - 1900 2<* Day of week (Sunday is 0) 2ࠠ5* Day of year 0..365 2ʠ "* Daylight time savings in effect 2 :* The type representing wallclock time and calendar date. 2 K* Return the current time since 00:00:00 GMT, Jan. 1, 1970, in seconds. 1Ġ =* Same as {!time}, but with resolution better than 1 second. 1 * 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. 1P * 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}. 1 * 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. 0Ơ h* Schedule a [SIGALRM] signal after the given number of seconds. @raise Invalid_argument on Windows 0 2* Stop execution for the given number of seconds. 0R * Stop execution for the given number of seconds. Like [sleep], but fractions of seconds are supported. @since 4.03.0 (4.12.0 in UnixLabels) 0 * Return the execution times of the process. On Windows: partially implemented, will not report timings for child processes. /ޠ * 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. / Q* decrements in real time, and sends the signal [SIGALRM] when expired./_ T* decrements in process virtual time, and sends [SIGVTALRM] when expired. /L * (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. /9 &* The three kinds of interval timers. /,)* Period .=* Current value of the timer .ޠ 6* The type describing the status of an interval timer .Р `* Return the current status of the given interval timer. @raise Invalid_argument on Windows .l * [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 . 8* {1 User id, group id} . \* Return the user id of the user executing the process. On Windows: always returns [1]. -ڠ a* Return the effective user id under which the process runs. On Windows: always returns [1]. - e* Set the real user id and effective user id for the process. @raise Invalid_argument on Windows -f ]* Return the group id of the user executing the process. On Windows: always returns [1]. -, 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|]]. ,o * [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. +j 1* Structure of entries in the [groups] database. * ;* 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. ) x* Find an entry in [passwd] with the given user id. @raise Not_found if no such entry exists, or always on Windows. )W 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. ( * 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. (Y F* A special IPv4 address representing the host machine ([127.0.0.1]). (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]). 'ᠠ F* Whether the given [inet_addr] is an IPv6 address. @since 4.12.0 '.* {1 Sockets} '.* Unix domain 'x9* Internet domain (IPv4) 'e9* Internet domain (IPv6) 'R * 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. 'E0* Stream socket '2* Datagram socket &-* Raw socket &젠;* Sequenced packets socket &٠ * 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. &̠!*kk@  * 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 k(kK@ * 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 k(kK@ * 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 %? thwart tools/sync_stdlib_docs kUlkU@ * 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. $l "* Connect a socket to an address. $ 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. "!*kS`kSd@ =* The flags for {!recv}, {!recvfrom}, {!send} and {!sendto}. "| (* Receive data from a connected socket. !נ +* Receive data from an unconnected socket. !0 %* Send data over a connected socket.  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. k f* Same as [sendto], but take the data from a string instead of a byte sequence. @since 4.02.0 Ƞ5* {1 Socket options} ?* Record debugging information  '* Permit sending of broadcast messages  ** Allow reuse of local addresses for bind s9* Keep connection active ` )* Bypass the standard routing algorithms M !* 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 q 0* Deprecated. Use {!getsockopt_error} instead. ^9* Report the socket type K :* Minimum number of bytes to process for input operations 8 ;* 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. ! <* Set or clear a boolean-valued option in the given socket. à =* Same as {!getsockopt} for an integer-valued socket option. w =* Same as {!setsockopt} for an integer-valued socket option.  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]. Q X* Same as {!getsockopt} for a socket option whose value is a floating-point number.  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} P /* 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.  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. W "* {1 Host and protocol databases} I 0* Structure of entries in the [hosts] database.  4* Structure of entries in the [protocols] database. O 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. z 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 .* Socket type n9* Socket protocol number X** Address B7* Canonical host name , 2* Address information returned by {!getaddrinfo}.  !* Impose the given socket domain ?* Impose the given socket type =* Impose the given protocol i c* Do not call name resolver, expect numeric IP address V Z* Fill the [ai_canonname] field of the result C b* Set address to ``any'' address for use with {!bind} 0=* 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 ͠ #* Always return host as IP address  )* 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}. t * [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. 9* {1 Terminal interface} 렠 * 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. ݠ- input modes ll@>* Ignore the break condition.  '* Signal interrupt on break condition.  (* Ignore characters with parity errors. 6* Mark parity errors.  * Enable parity check on input. i %* Strip 8th bit on input characters. S9* Map NL to CR on input. =6* Ignore CR on input. '9* Map CR to NL on input.  ** Recognize XON/XOFF characters on input.  -* Emit XON/XOFF chars to control input flow. 堠/ Output modes: ll@<* Enable output processing. ՠ0 Control modes: l#'l#;@ .* 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. m ** Enable parity generation and detection. W &* Specify odd parity instead of even. A9* Hang up on last close. +=* Ignore modem status lines. . Local modes: m m @ '* Generate signal on INTR, QUIT, SUSP.  \* Enable canonical processing (line buffering and editing)  (* Disable flush after INTR, QUIT, SUSP. ٠9* 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: m.m/@ (* Interrupt character (usually ctrl-C). q #* Quit character (usually ctrl-\). [ +* Erase character (usually DEL or ctrl-H). E (* 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.  %* Maximum read wait (in 0.1s units).  נ $* 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  s 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 @D,../../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)-nolabelsmsmt B/home/barsac/ci/builds/workspace/step-by-step-build/otherlibs/unix @06>wJʧu0mxmwmwmxmxmxmxmx@mv@@8CamlinternalFormatBasics0cEXy=@%%@@@@P_@[Z 7 6  ʰVV۰XX@22@?j?i@,A,@\\@Z%Z$@--22ݰ33@AyAx@UU@+*+)++Ұ99HH@@**DDӰaa@@@@]]@$u$-&-6@J[Jj@QQ@  >>@88@]=]<@@WW@=<=;JJP!P @.111@'&44QQ@**@@AA@..@ed&R&Q@(*()>z>yD;D:^^@2l2k@;;@====@,,00KK@sr@)9)H==@ D F*5*4@]4]3@??@@EEٰHHMPMt@ M LEGEVFF@$#FFG4G3S:SJ@EE@33@SbPP@//@   /H/Gaa@|@%%@+ + 00cc@``@@))@8B8A@LhLg@MM``@"F"E++ʰ//߰3w3vIIcc@X~X}ZZİc]c\@1v1u@@^^@GG@65@@@C C UU__@bZbi@@DD@""WW@0/__de@88WW@BdBc@QQ@  Ӱ''UUff@@QQ@%X%W@@44>}>|@TTd`d_@%%G6G5@'M'L^^@VV̰[p[@##EEEEWW@,,0N0M@ @5-5,@JsJr@77LLdd@'' @DDMM@1[1Z99@00@ > =%;%:HHӰJ2J1QBQA@NYNX@GG@__@;;@^^@ **d,d+@@KK@@+;+:@Ұ!!44@&5gv\\(@^^@666FFF@,C,B@@Z.Z-@c'c&@!Y!XAYAXYYZZ@@@P@