Caml1999I036 %}M$Unix%error ;@@%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@@ ]@%ENXIO0@@J  J  @@^@%EPERM1@@K  K  @@_@%EPIPE2@@LL @@(`@&ERANGE3@@!M-/"M-7@@1a@%EROFS4@@*N]_+N]f@@:b@&ESPIPE5@@3O4O@@Cc@%ESRCH6@@<P=P@@Ld@%EXDEV7@@EQFQ@@Ue@+EWOULDBLOCK8@@NR(*OR(7@@^f@+EINPROGRESS9@@WS]_XS]l@@gg@(EALREADY:@@`TaT@@ph@(ENOTSOCK;@@iUjU@@yi@,EDESTADDRREQ<@@rVsV!@@j@(EMSGSIZE=@@{WMO|WMY@@k@*EPROTOTYPE>@@X}X}@@l@+ENOPROTOOPT?@@YY@@m@/EPROTONOSUPPORT@@@ZZ@@n@/ESOCKTNOSUPPORTA@@[')[':@@o@*EOPNOTSUPPB@@\`b\`n@@p@,EPFNOSUPPORTC@@]]@@q@,EAFNOSUPPORTD@@^^@@r@*EADDRINUSEE@@_-/_-;@@s@-EADDRNOTAVAILF@@`ce`ct@@t@(ENETDOWNG@@aa@@u@+ENETUNREACHH@@bb@@v@)ENETRESETI@@cc@@w@,ECONNABORTEDJ@@dIKdIY@@x@*ECONNRESETK@@ee@@ y@'ENOBUFSL@@ff@@z@'EISCONNM@@ g g@@{@(ENOTCONNN@@h57h5A@@$|@)ESHUTDOWNO@@ilnily@@-}@,ETOOMANYREFSP@@&j'j@@6~@)ETIMEDOUTQ@@/k0k@@?@,ECONNREFUSEDR@@8l!#9l!1@@H@@)EHOSTDOWNS@@AmSUBmS`@@QA@,EHOSTUNREACHT@@JnKn@@ZB@%ELOOPU@@SoTo@@cC@)EOVERFLOWV@@\p]p@@lD@+EUNKNOWNERRW#intA@@@@@lr8:mr8N@@|E@@@A@@@@@pltt@@@@@@A@ *Unix_error ##exnG@@@@&stringQ@@@@@@@@A&_none_@@A@F@B@-error_message @@@@@@@@@@@@G@@1handle_unix_error @@!a@!b@@@@ @@@@@@@@H@@+environment @$unitF@@@%arrayJK@@@@@@@@@,,,R@@I@@2unsafe_environment@@@@c@@@@@@@@@/@@J@@&getenv@s@@@w@@@@@@sss@@ K@@-unsafe_getenv@@@@@@@@@ @@@ L@@&putenv@@@@ @@@@ d@@@ @@ @@@)*@@9M@@.process_status;@@'WEXITEDa@@@@@=  >  @@MO@)WSIGNALEDb&Stdlib#Sys&signal@@@@@Q!E!GR!E!`@@aP@(WSTOPPED#Sys&signal@@@@@b!!c!!@@rQ@@@A@@@@@f  @@@@uN@A@)wait_flag;@@'WNOHANG@@t$$u$$@@S@)WUNTRACED@@}%%~%%!@@T@@@A@@@@@$$@@A@R@A@%execv@ @@@@ʠ@@@@@@!a@@@@@@%{%{%{%@@U@@&execve@'@@@@1@@@@@@@<@@@@@@!a@@@@@@@ @(D(D(D(}@@V@@&execvp@P@@@!@Z@@@"@@@#!a@$@@%@@&@((()@@W@@'execvpe@n@@@'@/x@@@(@@@)@:@@@*@@@+!a@,@@-@@.@@/@)d)d)d)@@X@@$fork@X@@@0@@@1@@2@!))")*@@1Y@@$wait@k@@@3@@@@5@@@@4@@6@@7@>++?+,@@NZ@@'waitpid@$listK@@@8@@@9@@@@:@@@@<@*@@@;@@=@@>@@?@g,,h,,@@w[@@&system@@@@@<@@@A@@B@y..z..@@\@@%_exit@@@@C!a@D@@E@0001@@]@@&getpid@@@@F5@@@G@@H@144144@@^@@'getppid@@@@IH@@@J@@K@444445 @@_@@$nice@W@@@L[@@@M@@N@:55:55@@`@@*file_descr ;@@@A@@@@@D66D66@@@@a@A@%stdin!@@@O@G66G66@@b@@&stdout" @@@P@J77J774@@c@@&stderr#@@@Q@M7a7aM7a7x@@d@@)open_flag$;@@(O_RDONLYʐ@@Q77Q77@@f@(O_WRONLYː@@ R77 R77@@g@&O_RDWR̐@@S8&8(S8&80@@%h@*O_NONBLOCK͐@@T8j8lT8j8x@@.i@(O_APPENDΐ@@'U88(U88@@7j@'O_CREATϐ@@0V881V88@@@k@'O_TRUNCА@@9W99!:W99*@@Il@&O_EXCLѐ@@BX9g9iCX9g9q@@Rm@(O_NOCTTYҐ@@KY99LY99@@[n@'O_DSYNCӐ@@TZ99UZ99@@do@&O_SYNCԐ@@]\:w:y^\:w:@@mp@'O_RSYNCՐ@@f^;;g^;; @@vq@.O_SHARE_DELETE֐@@o`;;p`;;@@r@)O_CLOEXECא@@xb< < yb< <@@s@*O_KEEPEXECؐ@@f==f==@@t@@@A@@@@@P77@@A@e@A@)file_perm%;@@@A)@@@R@@@@k==k==@@A@u@A@(openfile&@@@@S@[@@@T@@@U@(@@@V@@@W@@X@@Y@@Z@o>E>Eo>E>@@v@@%close'@@@@[@@@\@@]@t?C?Ct?C?a@@w@@%fsync(@@@@^@@@_@@`@w??w??@@x@@$read)@ @@@a@%bytesC@@@b@@@@c@@@@d@@@e@@f@@g@@h@@i@|??|?@@@y@@-read_bigarray*@3@@@j@(Bigarray&Array1!t@@m(Bigarray1int8_unsigned_elt@@@l(Bigarray(c_layout@@@k@@@n@@@@o@@@@p@@@q@@r@@s@@t@@u@<@@=APAc@@Lz@@%write+@o@@@v@b@@@w@@@@x@@@@y@@@z@@{@@|@@}@@~@`AAaAA@@p{@@.write_bigarray,@@@@@*(Bigarray&Array1!t`@4(Bigarray1int8_unsigned_elt@@@<(Bigarray(c_layout@@@@@@@'@@@@-@@@1@@@@@@@@@@@@CCCC@@|@@,single_write-@@@@@@@@@K@@@@Q@@@U@@@@@@@@@@@@CCCD@@}@@/write_substring.@@@@@M@@@@o@@@@u@@@y@@@@@@@@@@@@DDDD@@~@@6single_write_substring/@@@@@q@@@@@@@@@@@@@@@@@@@@@@@EZEZEwE@@@@5single_write_bigarray0@:@@@@(Bigarray&Array1!t@(Bigarray1int8_unsigned_elt@@@(Bigarray(c_layout@@@@@@@@@@@@@@@@@@@@@@@@@@BFFCFF@@R@@3in_channel_of_descr1@u@@@*in_channel@@@@@@UG2G2VG2Gd@@e@@4out_channel_of_descr2@@@@+out_channel@@@@@@hLLiLL@@x@@3descr_of_in_channel3@+*in_channel@@@@@@@@@{PP|PP@@@@4descr_of_out_channel4@>+out_channel@@@@@@@@@PPPQ+@@@@,seek_command5;@@(SEEK_SETc@@QQQQ@@@(SEEK_CURd@@QQQR@@@(SEEK_ENDe@@R>R@R>RJ@@@@@A@@@@@QQ@@A@@A@%lseek6@@@@@\@@@@7@@@f@@@@@@@@@@RRRR@@@@(truncate7@Y@@@@{@@@$@@@@@@@@SbSbSbS@@@@)ftruncate8@@@@@@@@<@@@@@@@@SSSS@@@@)file_kind9;@@%S_REGj@@TgTkTgTp@@ @%S_DIRk@@TTTT@@)@%S_CHRl@@"TT#TT@@2@%S_BLKm@@+ UU, UU @@;@%S_LNKn@@4 U8U:5 U8UA@@D@&S_FIFOo@@= UmUo> UmUw@@M@&S_SOCKp@@F UUG UU@@V@@@A@@@@@JTVTV@@A@Y@A@%stats:;@@&st_devr@@@@@ڰ[UU\UU@@k@&st_inos@@@@@ٰgVVhVV!@@w@'st_kindt@@k@@@ذsVDVHtVDV\@@@'st_permu@@@@@װ~V|VV|V@@@(st_nlinkv@@ @@@ְVVVV@@@&st_uidw@@,@@@հVVVV@@@&st_gidx@@8@@@԰W$W(W$W5@@@'st_rdevy@@D@@@ӰWhWlWhWz@@@'st_sizez@@P@@@ҰWWWW@@@(st_atime{@@%floatD@@@ѰWWWW@@@(st_mtime|@@@@@аXXXX-@@@(st_ctime}@@@@@ϰXVXZXVXk@@@@@A@@@@@UUXX@@@@@A@$stat;@m@@@@@@@@@XXXX@@ @@%lstat<@@@@@@@@@@ !YY !YY9@@ @@%fstat=@<@@@$@@@@@@ %YY %YY@@ *@@&isatty>@M@@@$boolE@@@@@@ .)Z Z  /)Z Z?@@ >@@Ӡ)LargeFile?@%lseek@g@@@@%int64O@@@@@@@ @@@@@@@@@@ S1ZZ T1Z[1@@ c@@(truncate@@@@@ @@@@@@@@@@@ l4[K[O m4[K[u@@ |@@)ftruncate@@@@@8@@@@@@@@@@@ 7[[ 7[[@@ @@%stats;@@&st_dev@@,@@@ ;[[ ;[\@@ @&st_ino@@8@@@ <\)\1 <\)\>@@ @'st_kind@@;@@@ =\a\i =\a\}@@ @'st_perm@@@@@ >\\ >\\@@ @(st_nlink@@Z@@@ ?\\ ?\\@@ @&st_uid@@f@@@ @]] @]]&@@ @&st_gid@@r@@@ A]Q]Y A]Q]f@@ @'st_rdev@@~@@@߰ B]] B]]@@ @'st_size@@@@@ް C]] C]]@@ @(st_atime@@:@@@ݰ D^^! D^^2@@ @(st_mtime@@F@@@ܰ E^U^] E^U^n@@ @(st_ctime@@R@@@۰ F^^ F^^@@ (@@@A@@@@@ :[[ G^^@@@@ ,@A@$stat@@@@@@@@@@ /H^^ 0H^_@@ ?@@%lstat@@@@@@@@@@ AI__ BI__ @@ Q@@%fstat@t@@@$@@@@@@ RJ_!_% SJ_!_D@@ b@@@@ V/ZZ WK_E_J@ f@@@(map_file@@@@@#pos&optionL*@@@@@@@.(Bigarray$kind!a@!b@@@@@B(Bigarray&layout!c@@@@@p@@@@נ<@@@@@@a(Bigarray(Genarray!t40"@@@@@@@@@@@@@@@@ Yajaj ^bb=@@ @@&unlinkA@=@@@@@@@@@ jj jk@@ @@&renameB@P@@@@V@@@@@@@@@@@ kk kl@@ @@$linkC&follow@@@@@@@u@@@@{@@@@@@@@@@@@@@ meme mm@@ @@(realpathD@@@@ @@@ @@ @ pp pp%@@ (@@1access_permissionE;@@$R_OK@@ 'qq (qq@@ 7@$W_OK@@ 0qGqI 1qGqO@@ @@$X_OK@@ 9qq :qq@@ I@$F_OK@@ Bqq Cqq@@ R@@@A@@@@@ Fpp@@A@ U@A@%chmodF@@@@ @@@@ @@@@@@@@ ]rr ^rr<@@ m@@&fchmodG@@@@@@@@@@@@@@@@ troro uror@@ @@%chownH@@@@@ @@@@ %@@@@@@@@@@@@@ rr rs@@ @@&fchownI@@@@@ =@@@@ C@@@@@@ @@!@@"@@#@ ss ss@@ @@%umaskJ@ @@@$@@@%@@&@ tt tt;@@ @@&accessK@ K@@@'@@@@(@@@) @@@*@@+@@,@ tt tt@@ @@#dupL'cloexec@@@-@@@.@@@@/"@@@0@@1@@2@ uu v5vW@@ @@$dup2M'cloexec@@@3@@@4@<@@@5@A@@@6 [@@@7@@8@@9@@:@ ww !wIwt@@ 0@@,set_nonblockN@S@@@; m@@@<@@=@ 2x x  3x xE@@ B@@.clear_nonblockO@e@@@> @@@?@@@@ Dyy Eyy@@ T@@1set_close_on_execP@w@@@A @@@B@@C@ Vz0z0 Wz0zZ@@ f@@3clear_close_on_execQ@@@@D @@@E@@F@ h1 i1 @@ x@@%mkdirR@ @@@G@@@@H @@@I@@J@@K@ 9 9@@ @@%rmdirS@ @@@L @@@M@@N@ < < @@ @@%chdirT@ @@@O @@@P@@Q@ ?.. ?.H@@ @@&getcwdU@ @@@R 3@@@S@@T@ Bww Bw@@ @@&chrootV@ B@@@U @@@V@@W@ E E@@ @@*dir_handleW;@@@A@@@@@ J<< J<K@@@@ @A@'opendirX@ _@@@X@@@Y@@Z@ M M@@ @@'readdirY@@@@[ u@@@\@@]@ P P@@ @@)rewinddirZ@!@@@^ H@@@_@@`@ Thh Th@@ @@(closedir[@3@@@a Z@@@b@@c@ W W@@ /@@$pipe\'cloexecĠ@@@d@@@e@ u@@@f@f@@@h@k@@@g@@i@@j@@k@ F_== G`~@@ V@@&mkfifo]@ @@@l@@@@m @@@n@@o@@p@ ^g _g@@ n@@.create_process^@ @@@q@  @@@r@@@s@@@@t@@@@u@@@@v !@@@w@@x@@y@@z@@{@@|@ p r@@ @@2create_process_env_@ @@@}@ ՠ @@@~@@@@  )@@@@@@@@@@@@@@@@@@ Y@@@@@@@@@@@@@@@@ %% x@@ @@/open_process_in`@ L@@@ *in_channel@@@@@@ TT T~@@ @@0open_process_outa@ `@@@ +out_channel@@@@@@  /@@ @@,open_processb@ t@@@@ *in_channel@@@@ +out_channel@@@@@@@@  E@@@@1open_process_fullc@ @@@@ T @@@@@@@ *in_channel@@@@ +out_channel@@@@ *in_channel@@@@@@@@@@;<9@@K@@1open_process_argsd@ @@@@  @@@@@@@ *in_channel@@@@ +out_channel@@@@@@@@@@ef @@u@@4open_process_args_ine@ @@@@  @@@@@@ 7*in_channel@@@@@@@@@@@@5open_process_args_outf@ @@@@ Π @@@@@@ V+out_channel@@@@@@@@@@@@6open_process_args_fullg@ ,@@@@  6@@@@@@@  A@@@@@@@ *in_channel@@@@ +out_channel@@@@ *in_channel@@@@@@@@@@@@GG@@@@.process_in_pidh@ *in_channel@@@ @@@@@@@@@@/process_out_pidi@ +out_channel@@@ @@@@@@@@@@+process_pidj@@ *in_channel@@@Ǡ@ +out_channel@@@@@ @@@@@@&rr'r@@6@@0process_full_pidk@@ *in_channel@@@͠@ +out_channel@@@̠@ *in_channel@@@@@ @@@@@@LJJMJ@@\@@0close_process_inl@ *in_channel@@@ "@@@@@@_99`9l@@o@@1close_process_outm@ "+out_channel@@@ 5@@@@@@rs.@@@@-close_processn@@ 9*in_channel@@@ؠ@ @+out_channel@@@@@ S@@@@@@@@@@2close_process_fullo@@ W*in_channel@@@ޠ@ ^+out_channel@@@ݠ@ e*in_channel@@@@@ x@@@@@@@@@@'symlinkp&to_dirZ@@@@@@@ J@@@@ P@@@ @@@@@@@@@@@@@@+has_symlinkq@ $@@@@@@@@@11@@@@(readlinkr@ v@@@ z@@@@@@88@@@@&selects@   7@@@@@@@ ̠ A@@@@@@@ ֠ K@@@@@@@g@@@@  ]@@@@@@@  g@@@@@@@  q@@@@@@@@@@@@@@@@@M?EENA@@]@@,lock_commandt;@@'F_ULOCK@@\T)-]T)4@@l@&F_LOCK@@eURTfUR\@@u@'F_TLOCK@@nVoV@@~@&F_TEST@@wWxW@@@'F_RLOCK@@X/1X/:@@@(F_TRLOCK@@YY@@@@@A@@@@@S@@A@@A@%lockfu@ @@@@L@@@@<@@@ @@@@@@@@@@\\!@@@@$killv@O@@@ @ t#Sys&signal@@@ @@@ @@ @@ @@@@@3sigprocmask_commandw;@@+SIG_SETMASK@@@@@)SIG_BLOCK@@@@@+SIG_UNBLOCK@@@@@@@A@@@@@@@A@@A@+sigprocmaskx@,@@@@  #Sys&signal@@@@@@  #Sys&signal@@@@@@@@@@@:@@#@@*sigpendingy@]@@@ ٠ #Sys&signal@@@@@@@@@./@@>@@*sigsuspendz@  #Sys&signal@@@@@@@@@@@@IJ@@Y@@%pause{@@@@@@@@@@\]@@l@@'sigwait|@ $#Sys&signal@@@ @@@!,#Sys&signal@@@"@@#@z{»@@@@-process_times};@@)tms_utime@@@@@'ĩĭĩĿ@@@)tms_stime@@@@@&@@@*tms_cutime@@@@@%!4@@@*tms_cstime@@@@@$aeax@@@@AA@@@@@ĔĔŧŪ@@@@@A@"tm~;@@&tm_sec@@\@@@0@@ @&tm_min@@h@@@/ $ 1@@ @'tm_hour@@t@@@.UYUg@@ @'tm_mday@@@@@-ƈƌƈƚ@@ @&tm_mon@@@@@,@@ @'tm_year@@@@@+@@@'tm_wday@@@@@*040B@@@'tm_yday@@@@@)quqǃ@@*@(tm_isdst@@@@@(&ǫǯ'ǫǿ@@6@@@A@@@@@*+@@@@:@A@$time@t@@@1 w@@@2@@3@=77>7O@@M@@,gettimeofday@@@@4 @@@5@@6@PȡȡQȡ@@`@@&gmtime@ @@@7@@@8@@9@cd@@s@@)localtime@ @@@:@@@;@@<@u>>v>Y@@@@&mktime@!@@@=@ @@@?@.@@@>@@@@@A@   *@@@@%alarm@5@@@B9@@@C@@D@.@@@@%sleep@H@@@E@@@F@@G@͝͝͝ʹ@@@@&sleepf@ @@@H@@@I@@J@@@@@%times@@@@K[@@@L@@M@ΡΡΡ@@@@&utimes@e@@@N@ +@@@O@ 1@@@P6@@@Q@@R@@S@@T@MMMz@@ @@.interval_timer;@@+ITIMER_REAL @@ ОТ ОЭ@@@.ITIMER_VIRTUAL @@   @@#@+ITIMER_PROF@@|~|ы@@,@@@A@@@@@  ЈЈ@@A@/@A@5interval_timer_status;@@+it_interval@@ k@@@V1ҊҎ2ҊҢ@@A!@(it_value@@ w@@@U=ҹҽ>ҹ@@M"@@AA@@@@@AmmB@@@@Q @A@)getitimer@N@@@W.@@@X@@Y@T <<U <s@@d#@@)setitimer@@@@Z@@@@[@@@\@@]@@^@j%k&,@@z$@@&getuid@@@@_@@@`@@a@}5CC~5C[@@%@@'geteuid@@@@b&@@@c@@d@:־־:־@@&@@&setuid@5@@@e@@@f@@g@?????W@@'@@&getgid@@@@hL@@@i@@j@DD@@(@@'getegid@@@@k_@@@l@@m@I??I?X@@)@@&setgid@n@@@n@@@o@@p@NN@@*@@)getgroups@&@@@q$@@@r@@@s@@t@SGGSGh@@+@@)setgroups@8@@@u@@@vG@@@w@@x@ Y Y@@,@@*initgroups@@@@y@@@@z`@@@{@@|@@}@%_گگ&_گ@@5-@@,passwd_entry;@@'pw_name@@@@@7h8h@@G/@)pw_passwd@@@@@Ci  Di  @@S0@&pw_uid @@@@@Oj!%Pj!2@@_1@&pw_gid!@@@@@[k37\k3D@@k2@(pw_gecos"@@@@@glEIhlE[@@w3@&pw_dir#@@@@@sm\`tm\p@@4@(pw_shell$@@@@@~nqunq܆@@5@@@A@@@@@go܇܊@@@@.@A@+group_entry;@@'gr_name&@@@@@ss@@7@)gr_passwd'@@@@@tt@@8@&gr_gid(@@C@@@uu@@9@&gr_mem)@@7@@@@@@vv.@@:@@@A@@@@@rw/2@@@@6@A@(getlogin@ @@@O@@@@@@zjjzj݇@@;@@(getpwnam@^@@@@@@@@@}}@@<@@(getgrnam@q@@@q@@@@@@iiiލ@@ =@@(getpwuid@@@@&@@@@@@ *@@>@@(getgrgid@@@@%@@@@@@ߩߩ ߩ@@/?@@)inet_addr;@@@A@@@@@)jj*jx@@@@9@@A@3inet_addr_of_string@@@@@@@@@@<=@@LA@@3string_of_inet_addr@@@@@@@@@@NBBOBo@@^B@@-inet_addr_any@@@@Z[.@@jC@@2inet_addr_loopback+@@@@fg@@vD@@.inet6_addr_any7@@@@r$$s$B@@E@@3inet6_addr_loopbackC@@@@~@@F@@-is_inet6_addr@Q@@@ d@@@@@@333X@@G@@-socket_domain;@@'PF_UNIX8@@@@I@'PF_INET9@@ @@J@(PF_INET6:@@>@>J@@K@@@A@@@@@@@A@H@A@+socket_type;@@+SOCK_STREAM<@@EIET@@M@*SOCK_DGRAM=@@z|z@@N@(SOCK_RAW>@@@@O@.SOCK_SEQPACKET?@@@@P@@@A@@@@@22@@A@L@A@(sockaddr;@@)ADDR_UNIXAo@@@@@ 3@@R@)ADDR_INETB@@@@@@@@464T@@S@@@A@@@@@   @@@@Q@A@&socket'cloexec  @@@@@@@@@@@p@@@@@@@Y@@@@@@@@@@@@45@@DT@@2domain_of_sockaddr@[@@@"@@@@@@FG3@@VU@@*socketpair'cloexec  .@@@@@@@<@@@@;@@@@@@@@@@@@@@@@@@@@@@@@@@w||x @@V@@&accept'cloexec  _@@@@@@@@@@@@@@Ơ@[@@@@@@@@@@@@W@@$bind@@@@@n@@@@@@@@@@@B@@X@@'connect@@@@@@@@@@@@@@@@hhh@@Y@@&listen@@@@@u@@@@@@@@@@@@@Z@@0shutdown_command;@@0SHUTDOWN_RECEIVEK@@z~z@@\@-SHUTDOWN_SENDL@@@@ ]@,SHUTDOWN_ALLM@@@@^@@@A@@@@@bb@@A@[@A@(shutdown@:@@@@1@@@Z@@@@@@@@NN N@@/_@@+getsockname@R@@@@@@@@@0 1 @@@`@@+getpeername@c@@@@@@@@@A B (@@Qa@@(msg_flag;@@'MSG_OOBR@@PQ@@`c@-MSG_DONTROUTES@@YZ@@id@(MSG_PEEKT@@bc@@re@@@A@@@@@foo@@A@ub@A@$recv@@@@@@@@@@@@@@@@@>G@@@@@@*@@@@@@@@@@@@@@8@@f@@(recvfrom@@@@@@@@@D@@@@J@@@@m/@@@@@@@\@@@@@@@@@@@@@@@@@@@@gg@@g@@$send@@@@@@@@@{@@@@@@@@f@@@@@@@@@@@@@@@@@@@ @ 8@@ h@@.send_substring@,@@@ @@@@ @@@@ @@@@ @Ҡ@@@@@@@@@@@@@@@@@@@@'#dd($y@@7i@@&sendto@Z@@@@M@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@!@@"@@#@Z)[+cv@@jj@@0sendto_substring@@@@$@@@@%@ @@@&@@@@'@3@@@(@@@)@G@@@*#@@@+@@,@@-@@.@@/@@0@@1@.0@@k@@2socket_bool_option;@@(SO_DEBUG\@@;;@@m@,SO_BROADCAST]@@<<@@n@,SO_REUSEADDR^@@=!=/@@o@,SO_KEEPALIVE_@@>ac>aq@@p@,SO_DONTROUTE`@@??@@q@,SO_OOBINLINEa@@@@@@r@-SO_ACCEPTCONNb@@A A @@s@+TCP_NODELAYc@@BQSBQ`@@t@)IPV6_ONLYd@@CC@@u@,SO_REUSEPORTe@@DD@@v@@@A@@@@@:@@A@l@A@1socket_int_option;@@)SO_SNDBUFg@@JJ@@x@)SO_RCVBUFh@@K K&@@y@(SO_ERRORi@@LIKMV@0ocaml.deprecatedMV\MVl@ "Use Unix.getsockopt_error instead.$MVn%MV@@'MVm(MV@@@@@@+MVZ@@:z@'SO_TYPEj@@3O4O@@C{@+SO_RCVLOWATk@@<P=P @@L|@+SO_SNDLOWATl@@EQKMFQKZ@@U}@@@A@@@@@II@@A@Xw@A@4socket_optint_option;@@)SO_LINGERn@@WWQSXWQ\@@g@@@A@@@@@[V55@@A@j~@A@3socket_float_option;@@+SO_RCVTIMEOp@@i_j_@@y@+SO_SNDTIMEOq@@r`s`@@@@@A@@@@@v^@@A@@A@*getsockopt@@@@2@@@@3a@@@4@@5@@6@f//f/h@@@@*setsockopt@@@@7@@@@8@z@@@9@@@:@@;@@<@@=@jj@@@@.getsockopt_int@@@@>@@@@?X@@@@@@A@@B@mBBmB}@@@@.setsockopt_int@@@@C@@@@D@q@@@E@@@F@@G@@H@@I@pp@@@@1getsockopt_optint@@@@J@@@@K@@@L@@@M@@N@@O@sHHsH@@ @@1setsockopt_optint@/@@@P@@@@Q@@@@R@@@SY@@@T@@U@@V@@W@wx=@@.@@0getsockopt_float@Q@@@X@@@@Yp@@@Z@@[@@\@6|7|@@F@@0setsockopt_float@i@@@]@@@@^@@@@_@@@`@@a@@b@@c@S44T4}@@c@@0getsockopt_error@@@@d@@@e@@@f@@g@ij @@y@@/open_connection@5@@@h@3*in_channel@@@j@:+out_channel@@@i@@k@@l@@@@@3shutdown_connection@J*in_channel@@@m@@@n@@o@   7@@@@0establish_server@@`*in_channel@@@p@g+out_channel@@@q@@@r@@s@@t@{@@@u@@@v@@w@@x@    @@@@*host_entry;@@&h_name@@M@@@~    @@@)h_aliases@@]@@@|@@@}    .@@@*h_addrtype@@@@@{ / 3 / N@@@+h_addr_list@@0@@@y@@@z O S O p@@@@@A@@@@@   q t@@@@@A@.protocol_entry;@@&p_name@@@@@    @@%@)p_aliases@@V@@@@@@&  '  @@6@'p_proto@@@@@2  3 @@B@@@A@@@@@6  7 @@@@F@A@-service_entry;@@&s_name@@@@@HY]IYm@@X@)s_aliases@@@@@@@@YnrZn@@i@&s_port@@@@@ef@@u@'s_proto@@@@@qr@@@@@A@@@@@uDDv@@@@@A@+gethostname@@@@@@@@@@@@@@-gethostbyname@@@@@@@@@@<<<d@@@@-gethostbyaddr@n@@@@@@@@@@@@@.getprotobyname@5@@@@@@@@@\\\@@@@0getprotobynumber@d@@@@@@@@@@@@@-getservbyname@Z@@@@`@@@@@@@@@@@@@@@-getservbyport@@@@@y@@@@@@@@@@@///a@@@@)addr_info;@@)ai_family@@@@@@@#@+ai_socktype@@@@@!%!?@@.@+ai_protocol@@@@@*\`+\r@@:@'ai_addr@@@@@56@@E@,ai_canonname@@@@@AB@@Q@@@A@@@@@EF @@@@U@A@2getaddrinfo_option;@@)AI_FAMILY4@@@@@XswYs@@h@+AI_SOCKTYPE;@@@@@ef@@u@+AI_PROTOCOL @@@@@s t #@@@.AI_NUMERICHOST@@|WY}Wi@@@,AI_CANONNAME@@@@@*AI_PASSIVE@@npn|@@@@@A@@@@@YY@@@@@A@+getaddrinfo@@@@@ @@@@_d@@@@@@h@@@@@@@@@@@@@  1p@@@@)name_info;@@+ni_hostname@@F@@@aeaz@@@*ni_service@@R@@@@@@@@A@@@@@PP@@@@@A@2getnameinfo_option;@@)NI_NOFQDN@@X\Xe@@@.NI_NUMERICHOST@@@@@+NI_NAMEREQD@@@@ @.NI_NUMERICSERV@@ " 2@@@(NI_DGRAM@@egeq@@@@@A@@@@@>>@@A@"@A@+getnameinfo@@@@@٠G@@@@@@n@@@@@@@@/0D@@?@@+terminal_io;@@(c_ignbrkA@@@@߰A0 u yB0 u @@Q@(c_brkintA@!@@@ްM1  N1  @@]@(c_ignparA@-@@@ݰY2!!Z2!!@@i@(c_parmrkA@9@@@ܰe3!K!Of3!K!g@@u@'c_inpckA@E@@@۰q4!!r4!!@@@(c_istripA@Q@@@ڰ}5!!~5!!@@@'c_inlcrA@]@@@ٰ6""6""*@@@'c_igncrA@i@@@ذ7"K"O7"K"f@@@'c_icrnlA@u@@@װ8""8""@@@&c_ixonA@@@@ְ9""9""@@@'c_ixoffA@@@@հ:# #:# #(@@@'c_opostA@@@@԰<#u#y<#u#@@@'c_obaudA@g@@@Ӱ>##>##@@@'c_ibaudA@s@@@Ұ?$$"?$$8@@@'c_csizeA@@@@Ѱ@$T$X@$T$n@@@(c_cstopbA@@@@аA$$A$$@@@'c_creadA@@@@ϰB$$B$$@@@(c_parenbA@@@@ΰ C%%C%%4@@@(c_paroddA@@@@ͰD%e%iD%e%@@)@'c_hupclA@@@@̰%E%%&E%%@@5@(c_clocalA@@@@˰1F%%2F%&@@A@&c_isigA@@@@ʰ=H&A&E>H&A&[@@M@(c_icanonA@@@@ɰII&&JI&&@@Y@(c_noflshA@)@@@ȰUK' 'VK' '&@@e@&c_echoA@5@@@ǰaL'U'YbL'U'o@@q@'c_echoeA@A@@@ưmM''nM''@@}@'c_echokA@M@@@ŰyN''zN''@@@(c_echonlA@Y@@@İO(,(0O(,(H@@@'c_vintrA@$charB@@@ðQ((Q((@@@'c_vquitA@@@@°R((R((@@@(c_veraseA@@@@S)#)'S)#)?@@@'c_vkillA@&@@@T)q)uT)q)@@@&c_veofA@2@@@U))U))@@@&c_veolA@>@@@V* * V* *#@@@&c_vminA@q@@@W*Z*^W*Z*s@@@'c_vtimeA@}@@@Y**Y*+@@@(c_vstartA@b@@@Z+3+7Z+3+O@@@'c_vstopA@n@@@[+z+~[+z+@@@@@A@@@@@- H H\++@@@@@A@)tcgetattr@6@@@@@@@@@^++^++@@%@@,setattr_when;@@'TCSANOWԐ@@$e,,%e,,@@4@)TCSADRAINՐ@@-f,,.f,,@@=@)TCSAFLUSH֐@@6g,,7g,,@@F@@@A@@@@@:d,m,m@@A@I@A@)tcsetattr@l@@@@1@@@@>@@@@@@@@@@@@@Vi,,Wi,,@@f@@+tcsendbreak@@@@@@@@@@@@@@@@nu..ou..@@~@@'tcdrain@@@@@@@@@@|//|//@@@@+flush_queue;@@(TCIFLUSHې@@0000@@@(TCOFLUSHܐ@@0000@@@)TCIOFLUSHݐ@@0000@@@@@A@@@@@0o0o@@A@@A@'tcflush@@@@@1@@@@@@@@@@@0000@@@@+flow_action;@@&TCOOFF@@2;2?2;2E@@@%TCOON@@2F2H2F2O@@@&TCIOFF@@2P2R2P2Z@@@%TCION@@2[2]2[2d@@@@@A@@@@@2(2(@@A@@A@&tcflow@@@@@:@@@<@@@@@@@@ 2f2f 2f2@@ @@&setsid@K@@@@@@@@@ 33 34@@ $@@@q[$Unix0 8RmZuDq砠+Stdlib__Sys0M xIor /Stdlib__Complex0\lEWN20Stdlib__Bigarray0M&۩9|HOT&Stdlib0y{x!O!8CamlinternalFormatBasics0oZ2t,@@@Caml1999T036B C$Unix*ocaml.text&_none_@@A V 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. (unix.mli_gVX@@@@@@3@@@@#intA;@@@A@@@@@9@A@$charB;@@A@@@@@=@A@&stringQ;@@ A@@@@@A@@@%bytesC;@@ A@@@@@E@@@%floatD;@@A@@@@@I@@@$boolE;@@%falsec@@S@$trued@@Y@@@A@@@@@Z@A@$unitF;@@"()e@@d@@@A@@@@@e@A@ #exnG;@@@A@@@@@i@@@#effH;@@O@A@A@@@@@@r@@@,continuationI;@@Q@@P@BDA@nY@@@@@@@@@ %arrayJ;@@R@AOA@@@@@@@@@$listK;@@S@A"[]f@@@"::g@@@T@@@ @@A@Y@@@@@@@@&optionL;@@V@A$Noneh@@@$Somei@@@@@A@Y@@@@@@@@)nativeintM;@@A@@@@@@@@%int32N;@@A@@@@@@@@%int64O;@@A@@@@@@@@&lazy_tP;@@X@AA@Y@@@@@@@@5extension_constructorR;@@A@@@@@@@@*floatarrayS;@@A@@@@@@@@&iarrayT;@@Y@AA@Y@@@@@@@@*atomic_locU;@@Z@AA@@@@@@@@@.Assert_failure`#@@@@@J@@@@@@@@[@@A=ocaml.warn_on_literal_pattern@0Division_by_zero]#@@@A  @+End_of_file\##@@@A@'FailureY#+@&@@A  @0Invalid_argumentX#4@/@@A&#))@-Match_failureV#=@@<@8@:@@a@@A74::@)Not_foundZ#N@@@A?<B B@-Out_of_memoryW#V@@@AGDJJ@.Stack_overflow^#^@@@AOLRR@.Sys_blocked_io_#f@@@AWTZ"Z@)Sys_error[#n@i@@A`]c+c@:Undefined_recursive_modulea#w@@v@r@t@@h@@Aqnt<t@:Continuation_already_takenb#@@@Ayv|D|@&Stdlib@At2 {1 Error report} iZZiZq@@@@@@A+%errorAltylt~@@;@@%E2BIG@@mm@)ocaml.doc8 Argument list too long mm@@@@@@@A@&EACCES@@nn@3 Permission denied nn@@@@@@@B@&EAGAIN@@oo@0 - Resource temporarily unavailable; try again oo2@@@@@@@C@%EBADF@@p35p3<@G5 Bad file descriptor p3Kp3e@@@@@@@D@%EBUSY@@qfhqfo@^6 Resource unavailable qf~qf@@@@@@@E@&ECHILD@@ r r@u2 No child process rr@@@@@@@3F@'EDEADLK@@#s$s@? Resource deadlock would occur 1s2s @@@@@@@JG@$EDOM@@:t  ;t  @ ' Domain error for math functions, etc. Ht  It  K@@@@@@@aH@&EEXIST@@Qu L NRu L V@- File exists _u L d`u L v@@@@@@@xI@&EFAULT@@hv w yiv w @ѐ- Bad address vv w wv w @@@@@@@J@%EFBIG@@w  w  @萠0 File too large w  w  @@@@@@@K@%EINTR@@x  x  @ Function interrupted by signal x  x  @@@@@@@L@&EINVAL@@y  y  @2 Invalid argument y  &y  =@@@@@@@M@#EIO @@z > @z > E@-4 Hardware I/O error z > Vz > o@@@@@@@N@&EISDIR!@@{ p r{ p z@D0 Is a directory { p { p @@@@@@@O@&EMFILE"@@|  |  @[ $ Too many open files by the process |  |  @@@@@@@P@&EMLINK#@@ }   }  @r0 Too many links }  }  @@@@@@@0Q@,ENAMETOOLONG$@@ ~  !~  @3 Filename too long .~  &/~  >@@@@@@@GR@&ENFILE%@@7 ? A8 ? I@ # Too many open files in the system E ? WF ? @@@@@@@^S@&ENODEV&@@N@  O@  @0 No such device \@  ]@  @@@@@@@uT@&ENOENT'@@eA  fA  @ΐ; No such file or directory sA  tA  @@@@@@@U@'ENOEXEC(@@|B  }B  @吠8 Not an executable file B  B  @@@@@@@V@&ENOLCK)@@C  C  '@4 No locks available C  5C  N@@@@@@@W@&ENOMEM*@@D O QD O Y@3 Not enough memory D O gD O @@@@@@@X@&ENOSPC+@@E  E  @*9 No space left on device E  E  @@@@@@@Y@&ENOSYS,@@F  F  @A8 Function not supported F  F  @@@@@@@Z@'ENOTDIR-@@G  G  @X1 Not a directory G  G  @@@@@@@[@)ENOTEMPTY.@@H  H  )@o5 Directory not empty H  4H  N@@@@@@@-\@&ENOTTY/@@I O QI O Y@ % Inappropriate I/O control operation +I O g,I O @@@@@@@D]@%ENXIO0@@4J  5J  @; No such device or address BJ  CJ  @@@@@@@[^@%EPERM1@@KK  LK  @9 Operation not permitted YK  ZK @@@@@@@r_@%EPIPE2@@bLcL @ː- Broken pipe pLqL,@@@@@@@`@&ERANGE3@@yM-/zM-7@␠2 Result too large M-EM-\@@@@@@@a@%EROFS4@@N]_N]f@7 Read-only file system N]uN]@@@@@@@b@&ESPIPE5@@OO@= Invalid seek e.g. on a pipe OO@@@@@@@c@%ESRCH6@@PP@'1 No such process PP@@@@@@@d@%EXDEV7@@QQ@>. Invalid link QQ'@@@@@@@e@+EWOULDBLOCK8@@R(*R(7@U7 Operation would block R(@R(\@@@@@@@f@+EINPROGRESS9@@S]_S]l@l; Operation now in progress S]uS]@@@@@@@*g@(EALREADY:@@TT@? Operation already in progress (T)T@@@@@@@Ah@(ENOTSOCK;@@1U2U@ Socket operation on non-socket ?U@U@@@@@@@Xi@,EDESTADDRREQ<@@HVIV!@> Destination address required VV)WVL@@@@@@@oj@(EMSGSIZE=@@_WMO`WMY@Ȑ2 Message too long mWMenWM|@@@@@@@k@*EPROTOTYPE>@@vX}wX}@ߐ Protocol wrong type for socket X}X}@@@@@@@l@+ENOPROTOOPT?@@YY@8 Protocol not available YY@@@@@@@m@/EPROTONOSUPPORT@@@ZZ@ 8 Protocol not supported Z Z&@@@@@@@n@/ESOCKTNOSUPPORTA@@[')[':@$; Socket type not supported ['?['_@@@@@@@o@*EOPNOTSUPPB@@\`b\`n@; # Operation not supported on socket \`x\`@@@@@@@p@,EPFNOSUPPORTC@@]]@R? Protocol family not supported ]]@@@@@@@q@,EAFNOSUPPORTD@@^^@i 1 Address family not supported by protocol family ^^,@@@@@@@'r@*EADDRINUSEE@@_-/_-;@8 Address already in use %_-E&_-b@@@@@@@>s@-EADDRNOTAVAILF@@.`ce/`ct@ Can't assign requested address <`c{=`c@@@@@@@Ut@(ENETDOWNG@@EaFa@1 Network is down SaTa@@@@@@@lu@+ENETUNREACHH@@\b]b@Ő8 Network is unreachable jbkb@@@@@@@v@)ENETRESETI@@sctc@ܐ % Network dropped connection on reset ccH@@@@@@@w@,ECONNABORTEDJ@@dIKdIY@󐠠 " Software caused connection abort dIadI@@@@@@@x@*ECONNRESETK@@ee@ : Connection reset by peer ee@@@@@@@y@'ENOBUFSL@@ff@!; No buffer space available ff@@@@@@@z@'EISCONNM@@gg@8= Socket is already connected gg4@@@@@@@{@(ENOTCONNN@@h57h5A@O9 Socket is not connected h5Mh5k@@@@@@@ |@)ESHUTDOWNO@@ilnily@f " Can't send after socket shutdown  il il@@@@@@@$}@,ETOOMANYREFSP@@jj@} # Too many references: can't splice "j#j@@@@@@@;~@)ETIMEDOUTQ@@+k,k@6 Connection timed out 9k:k @@@@@@@R@,ECONNREFUSEDR@@Bl!#Cl!1@4 Connection refused Pl!9Ql!R@@@@@@@i@@)EHOSTDOWNS@@YmSUZmS`@. Host is down gmSkhmS~@@@@@@@A@,EHOSTUNREACHT@@pnqn@ِ2 No route to host ~nn@@@@@@@B@%ELOOPU@@oo@𐠠 # Too many levels of symbolic links oo@@@@@@@C@)EOVERFLOWV@@pp@ ) File size or position not representable pp6@@@@@@@D@+EUNKNOWNERRW@@@@@r8:r8N@#/ Unknown error r8Pr8d@@@@@@@E@@@A@@@@@ltt@4 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. seew @@@@@@@@@@@@#LLJI@8@@@LI򐠠HG@GG@@@G@G@#CCnA@2@@@DZBA@AA@@@A@A@#==o;@,@@@>k<;@;;@@@;@;@#77p375@&@@@8|%65@55@@@5@5@#11$qfj/@ @@@260/@//@@@/@/@#++5r)@@@@,G*)@))@@@)@)@#%%Fs#@@@@&X$#@##@@@#@#@#Wt  @@@@ i@@@@@@#hu L P@@@@z@@@@@@#yv w {@@@@@@@@@@#  w   @@@@  @  @@@ @ @#x  @@@@@@@@@@#y  @@@@@@@@@@#z > B@@@@&ϐ@@@@@@#{ p t@@@@7@@@@@@#|  @@@@𠰠H񐠠@@@@@@#}  @@@@꠰Y @@@@@@# ~  @@@@䠰j @@@@@@#ݠݰ  ? C@@@@ޠ{ $@@@@@@#נװ #@  @@@@ؠ 5@@@@@@#ѠѰ 4A  @@@@Ҡ F@@@@@@#ˠ˰ EB  @@@@̠ W@@@@@@#ŠŰ VC  !@@@@Ơ h@@@@@@# gD O S@@@@ y@@@@@@# xE  @@@@ @@@@@@# F  @@@@ @@@@@@# G  @@@@ @@@@@@# H  @@@@ @@@@@@# I O S@@@@% ΐ@@@@@@# J  @@@@6 ߐ@@@@@@# K  @@@@G 𐠠@@@@@@# L@~@@@X @@@@@@# M-1@x@@@i @@@@@@# N]a@r@@@z #@@@@@@#}} "O{@l@@@~ 4|{@{{@@@{@{@#ww 3Pu@f@@@x Evu@uu@@@u@u@#qq DQo@`@@@r Vpo@oo@@@o@o@#kk UR(,i@Z@@@l gji@ii@@@i@i@#ee fS]ac@T@@@f xdc@cc@@@c@c@#__ wT]@N@@@` ^]@]]@@@]@]@#YY UW@H@@@Z XW@WW@@@W@W@#SS VQ@B@@@T  RQ@QQ@@@Q@Q@#MM WMQK@<@@@N  LK@KK@@@K@K@#GG X}E@6@@@H $ ͐FE@EE@@@E@E@#AA Y?@0@@@B 5 ސ@?@??@@@?@?@#;; Z9@*@@@< F :9@99@@@9@9@#55 ['+3@$@@@6 W 43@33@@@3@3@#// \`d-@@@@0 h .-@--@@@-@-@#)) ]'@@@@* y "('@''@@@'@'@### !^!@@@@$  3"!@!!@@@!@!@# 2_-1@ @@@  D@@@@@@# C`cg@@@@  U@@@@@@# Ta@@@@  f@@@@@@#   eb @@@@   w  @  @@@ @ @# vc @@@@  @@@@@@# dIM@@@@  @@@@@@# e@@@@  @@@@@@# f@@@@  @@@@@@# g@@@@ # ̐@@@@@@# h59@@@@蠰 4 ݐ@@@@@@# ilp@@@@⠰ E @@@@@@#۠۰ j@@@@ܠ V @@@@@@#ՠհ k@@@@֠ g @@@@@@#Ϡϰ l!%@@@@Р x !@@@@@@#ɠɰ mSW@@@@ʠ  2@@@@@@#àð 1n@@@@Ġ  C@@@@@@# Bo@@@@  T@@@@@@# Sp@@@@  e@@@@@@# dr8< er8G@@г#int nr8K@@3 l l l l l l l l@ l ;@@@A@@@@@@@@A@@@@  @@@@@@@A@  @@@@@@@ @*Unix_errorXB z  z  @# @ @@@ p@@@ u@@@@@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.  {<< @@@@@@@ F@@г#%error z $ z )@@+3        @  = 7@A@@г*&string z , z 2@@2 @@г/&string z 50@@61@@@@3 A ꐠ10@00@@@0@0@>@!>=@-error_messageY  @б@г l%error  @@ @@@3        @;pj@A@@г Ӡ&string  @@ @@@@@@@@@@@  @ { 2 Return a string describing the given error code.   !@@@@@@@ 9G@@@  4@@@@@@11handle_unix_errorZ 7 8'@б@б@А!a@C@3 B B B B B B B B@H]6@A H+ I-@@А!b@C@  S1 T3@@@ @@@@б@А!a ^8 _:@@А!b d> e@@@@(@@# @@@@@& l*@@@ o @ א [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@@@  @@@@@@F  ' {1 Access to the process environment}   )@@@@@@3        @Xk1@A+environment[ ,0 ,;@б@г _$unit ,> ,B@@ @@@@@г F%array ,M ,R@г &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.  SS @@@@@@@ I@@*@ P @@@@@@X2unsafe_environment\  @б@г $unit@@ @@@3        @ql8@A@@г %array*/@г 렐&string #!)@@ @@@@@@@@@ @@@$@@!'@@@0@ < 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 (4.12 in UnixLabels) =00>Jq@@@@@@@VJ@@*@ Q@@@@@@@&getenv]TswUs}@б@г*&string_s`s@@ @@@3aaaaaaaa@Yn8@A@@г9&stringnsos@@ @@@@@@@@@@@yss @ ᐠ Return the value associated to a variable in the process environment, unless the process has special privileges. @raise Not_found if the variable is unbound or the process has special privileges. This function is identical to {!Sys.getenv}. c@@@@@@@K@@@ @@@@@@1-unsafe_getenv^@б@гs&string@@ @@@3@J_8@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 @@@@@@@L@@@ :㐠@@@@@@1&putenv_@б@г&string@@ @@@3@J_8@A@@б@г͠&string@@ @@@@@г$unit@@ @@@@@@@@!@@@'@@$* @@@@ [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 @@@@@@@CM@@@ >@@@@@@CLK6 {1 Process handling} H  I  @@@@@@3GGGGGGGG@Uj1@AA+.process_status`CU  V  @@;@@'WEXITEDa:@@@@@d  e  @ ͐ X The process terminated normally by [exit]; the argument is the return code. r  s!!D@@@@@@@O@)WSIGNALEDb#Sys&signal@@@@@!E!G!E!`@ 쐠 S The process was killed by a signal; the argument is the signal number. !a!i!!@@@@@@@P@(WSTOPPED.#Sys&signal@@@@@!!!!@ T The process was stopped by a signal; the argument is the signal number. !!""">@@@@@@@Q@@@A@@@@@  @ E The termination status of a process. See {!Sys.signal} for the definitions of the standard signal numbers. On Windows: only [WEXITED] is used (as there are no inter-process signals) but with specific return codes to indicate special termination causes. Look for [NTSTATUS] values in the Windows documentation to decode such error return codes. In particular, [STATUS_ACCESS_VIOLATION] error code is the 32-bit [0xC0000005]: as [Int32.of_int 0xC0000005] is [-1073741819], [WEXITED -1073741819] is the Windows equivalent of [WSIGNALED Sys.sigsegv]. "?"?$j$@@@@@@@@@N@@#lle  @V@гm#int  n@@t3@;@@@A@@@@@$"@@@As@@@@u?萠sr@rr@@@r@r@#nn!E!I!E!R@V@гpr!E!V!E!Y@u!E!Zs@t@@}%u@@@@w` ut@tt@@@t@t@#pp!! !!@X@гrt!!!!@w!!u@v@@Fw@@@@y*wv@vv@@@v@v@@A@r5qp@pp@@@p@p@@}@A+)wait_flagD:$$;$$@@;@@'WNOHANG@@D$$E$$@ e Do not block if no child has died yet, but immediately return with a pid equal to 0. R$$S$%@@@@@@@kS@)WUNTRACED@@[%%\%%!@Đ 5 Report also the children that receive stop signals. i%%"j%%\@@@@@@@T@@@A@@@@@m$$@Ր7 Flags for {!waitpid}. z%]%]{%]%y@@@@@@@A@R@@#@@>=@.@@@@>=@==@@@=@=@#99%%7@(@@@:87@77@@@7@7@@A@321@11@@@1@1@@3@a[U@A@Q@%execv%{%%{%@б@г&string%{%%{%@@ @@@3@@A@@б@гY%array%{%%{%@г&string%{%%{%@@ @@@@@@@@@  @@А!a@"E@)%{%%{%@@@ @@.@@@4@@ 17@@@%{%{ @a  [execv prog args] execute the program in file [prog], with the arguments [args], and the current process environment. Note that the first argument, [args.(0)], is by convention the filename of the program being executed, just like [Sys.argv.(0)]. These [execv*] functions never return: on success, the current program is replaced by the new one. On Windows: the CRT simply spawns a new process and exits the current one. This will have unwanted consequences if e.g. another process is waiting on the current one. Using {!create_process} or one of the [open_process_*] functions instead is recommended. @raise Unix_error on failure %%( (B@@@@@@@U@@@q@@@@@@P&execve(D(H(D(N@б@г&string((D(Q)(D(W@@ @@@#3********@i~8@A@@б@г%array9(D(b:(D(g@г&stringC(D([D(D(a@@ @@@$@@@@@@&  @@б@гߠ%arrayW(D(rX(D(w@г,&stringa(D(kb(D(q@@ @@@'9@@@@@@)> @@А!a@/E@*Gu(D({v(D(}@@@ @@+L@@@3@@,O:@@@U@@-RX @@@(D(D @ꐠ g Same as {!execv}, except that the third argument provides the environment to the program executed. (~(~((@@@@@@@V@@@@@@@@@q&execvp((((@б@г|&string((((@@ @@@03@8@A@@б@гJ%array() ()@г&string()() @@ @@@1@@@@@@3  @@А!a@8E@4)()()@@@ @@5.@@@4@@617@@@(( @R G Same as {!execv}, except that the program is searched in the path. )))8)b@@@@@@@W@@@b @@@@@@P'execvpe)d)h)d)o@б@г䠐&string)d)r)d)x@@ @@@93@i~8@A@@б@г%array*)d)+)d)@г&string4)d)|5)d)@@ @@@:@@@@@@<  @@б@гР%arrayH)d)I)d)@г&stringR)d)S)d)@@ @@@=9@@@@@@?> @@А!a@EE@@Gf)d)g)d)@@@ @@AL@@@3@@BO:@@@U@@CRX @@@s)d)d @ې H Same as {!execve}, except that the program is searched in the path. ))))@@@@@@@X@@@@@@@@@q$fork))))@б@гP$unit))))@@ @@@F3@8@A@@г#int)*)*@@ @@@G@@@@@H@@@)) @$  Fork a new process. The returned integer is 0 for the child process, the pid of the child process for the parent process. It fails if the OCaml process is multi-core (any domain has been spawned). In addition, if any thread from the Thread module has been spawned, then the child process might be in a corrupted state. @raise Invalid_argument on Windows. Use {!create_process} or threads instead. @raise Failure if any domain has been spawned. **++@@@@@@@Y@@@4ݐ@@@@@@1$wait++++@б@г$unit++++@@ @@@I3@J_8@A@@В@гҠ#int++++@@ @@@J@@@г.process_status +++,@@ @@@K"@@@@@ @@L) @@@/ @@M,2@@@++@ Wait until one of the children processes die, and return its pid and termination status. @raise Invalid_argument on Windows. Use {!waitpid} instead. ,,,-,i,@@@@@@@EZ@@"@@@@@@@@K'waitpidC,,D,,@б@г͠$listN,,O,,@г)wait_flagX,,Y,,@@ @@@N3ZZZZZZZZ@nB@A@@@ @@@P @@б@гB#intn,,o,,@@ @@@Q@@В@гS#int,,,,@@ @@@R'@@@г9.process_status,,,,@@ @@@S6@@@@@ @@T= @@@- @@U@0@@@@@@VCI@@@,,@  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. ,,..@@@@@@@[@@%@Đ@@@@@@b&system....@б@г&string....@@ @@@W3@{8@A@@г.process_status....@@ @@@X@@@@@Y@@@.. @T  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. ..00@@@@@@@\@@@d @@@@@@1%_exit0000@б@г#int0001@@ @@@Z3@J_8@A@@А!a@^E@[ ,01-01@@@ @@\@@@300@  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 @11A/44@@@@@@@Y]@@@T@@@@@@/&getpid W144X144@б@г$unitb144c144@@ @@@_3dddddddd@H]8@A@@гE#intq144r144@@ @@@`@@@@@a@@@|144 @䐠 Return the pid of the process. 244244@@@@@@@^@@@@@@@@@1'getppidà444444@б@гY$unit445445@@ @@@b3@J_8@A@@г#int445445 @@ @@@c@@@@@d@@@444 @- o Return the pid of the parent process. @raise Invalid_argument on Windows (because it is meaningless) 55 5 85m5@@@@@@@_@@@=搠@@@@@@1$niceĠ:55:55@б@гȠ#int:55:55@@ @@@e3@J_8@A@@гנ#int:55:55@@ @@@f@@@@@g@@@:55 @v 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 ;55?6M6u@@@@@@@4`@@@/@@@@@@1=<= {1 Basic file input/output} 9A6w6w:A6w6@@@@@@388888888@CX1@AA+*file_descrEFD66GD66@@;@@@A@@@@@KD66@ ( The abstract type of file descriptors. XE66YE66@@@@@@@@@qa@@@A@k@@@@@@@+ @%stdinƠoG66pG66@г2*file_descrxG66yG66@@ @@@h3zzzzzzzz@C=7@A@@@G66 @ꐠ $ File descriptor for standard input.H66H67@@@@@@@b@@@@@@@@@!&stdoutǠJ77!J77'@гi*file_descrJ77*J774@@ @@@i3@8K6@A@@@J77 @! % File descriptor for standard output.K7575K757_@@@@@@@c@@@1ڐ@@@@@@!&stderrȠM7a7eM7a7k@г*file_descrM7a7nM7a7x@@ @@@j3@8K6@A@@@M7a7a @X % File descriptor for standard error. N7y7yN7y7@@@@@@@d@@@h@@@@@@!A+)open_flagFP77P77@@;@@(O_RDONLYʐ@@Q77 Q77@2 Open for reading -Q77.Q77@@@@@@@Ff@(O_WRONLYː@@6R777R77@2 Open for writing DR78ER78%@@@@@@@]g@&O_RDWR̐@@MS8&8(NS8&80@> Open for reading and writing [S8&8F\S8&8i@@@@@@@th@*O_NONBLOCK͐@@dT8j8leT8j8x@͐; Open in non-blocking mode rT8j8sT8j8@@@@@@@i@(O_APPENDΐ@@{U88|U88@䐠1 Open for append U88U88@@@@@@@j@'O_CREATϐ@@V88V88@7 Create if nonexistent V89V89@@@@@@@k@'O_TRUNCА@@W99!W99*@ " Truncate to 0 length if existing W99?W99f@@@@@@@l@&O_EXCLѐ@@X9g9iX9g9q@)2 Fail if existing X9g9X9g9@@@@@@@m@(O_NOCTTYҐ@@Y99Y99@@ ' Don't make this dev a controlling tty Y99Y99@@@@@@@n@'O_DSYNCӐ@@Z99Z99@W e Writes complete as `Synchronised I/O data integrity completion' Z9: [:::v@@@@@@@o@&O_SYNCԐ@@\:w:y\:w:@n e Writes complete as `Synchronised I/O file integrity completion' \:w:]:;@@@@@@@,p@'O_RSYNCՐ@@^;;^;; @ \ Reads complete as writes (depending on O_SYNC/O_DSYNC) *^;;"+_;J;@@@@@@@Cq@.O_SHARE_DELETE֐@@3`;;4`;;@ a Windows only: allow the file to be deleted while still open A`;;Ba;< @@@@@@@Zr@)O_CLOEXECא@@Jb< < Kb< <@ Set the close-on-exec flag on the descriptor returned by {!openfile}. See {!set_close_on_exec} for more information. Xb< <+Ye<=@@@@@@@qs@*O_KEEPEXECؐ@@af==bf==@ʐ b Clear the close-on-exec flag. This is currently the default. of==0pg=R=@@@@@@@t@@@A@@@@@sP77@ې; The flags to {!openfile}. h==h==@@@@@@@A@e@@#kkih@Y@@@kih@hh@@@h@h@#ddR77b@S@@@ecb@bb@@@b@b@#^^S8&8*\@M@@@_]\@\\@@@\@\@#XXT8j8nV@G@@@Y#̐WV@VV@@@V@V@#RRU88P@A@@@S4ݐQP@PP@@@P@P@#LLV88J@;@@@MEKJ@JJ@@@J@J@#FFW99#D@5@@@GVED@DD@@@D@D@#@@X9g9k>@/@@@Ag?>@>>@@@>@>@#::Y998@)@@@;x!98@88@@@8@8@#44 Z992@#@@@5232@22@@@2@2@#..1\:w:{,@@@@/C-,@,,@@@,@,@#((B^;;&@@@@)T'&@&&@@@&@&@#""S`;; @@@@#e! @  @@@ @ @#db< <@ @@@v@@@@@@#uf==@@@@@@@@@@@A@@@@@@@@3@@A.@A+)file_permGk==k==@@;@@SAx@@@r@@@@k==k==@ n The type of file access rights, e.g. [0o640] is read and write for user, read for group, none for others l==m>>C@@@@@@@A@u@@@Aг#intk==@@3@0);@@@A1@@@w@q@@@@&#@@@A%@@'/ؐ%$@$$@@@$@$@@3@@A32@(openfileڠo>E>Io>E>Q@б@г&stringo>E>To>E>Z@@ @@@y3@2ZT@A@@б@гx$listo>E>ho>E>l@г)open_flago>E>^o>E>g@@ @@@z@@@@@@|  @@б@г~)file_permo>E>po>E>y@@ @@@}/@@гޠ*file_descr$o>E>}%o>E>@@ @@@~<@@@@@?@@@&@@B- @@@H@@EK@@@5o>E>E@ 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. Bp>>Cr??A@@@@@@@[v@@!@V@@@@@@d%close۠Yt?C?GZt?C?L@б@г*file_descrdt?C?Oet?C?Y@@ @@@3ffffffff@}8@A@@г!$unitst?C?]tt?C?a@@ @@@@@@@@@@@~t?C?C @搠: Close a file descriptor. u?b?bu?b?@@@@@@@w@@@@@@@@@1%fsyncܠw??w??@б@гg*file_descrw??w??@@ @@@3@J_8@A@@гj$unitw??w??@@ @@@@@@@@@@@w?? @/ C Flush file buffers to disk. @since 4.08 (4.12 in UnixLabels) x??z??@@@@@@@x@@@?萠@@@@@@1$readݠ|??|??@б@г*file_descr|??|?@@@ @@@3@J_8@A@@б@гΠ%bytes|?@|?@ @@ @@@@@б@гꠐ#int|?@|?@@@ @@@ @@б@г#int%|?@&|?@@@ @@@/@@г#int2|?@3|?@@@ @@@<@@@@@?@@@%@@B( @@@7@@E:@@@K@@HN@@@F|??@ [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. S}@ @ T@@@@@@@@@ly@@$@g@@@@@@g-read_bigarrayWj@@k@@@б@г/*file_descru@@v@A@@ @@@3wwwwwwww@8@A@@б@г(Bigarray&Array1!t AA;AAC@ AADAAJ@@AAKAAL@ @@@@ |$AA AA @@г6(Bigarray1int8_unsigned_eltAA AA@ AAAA&@@@@@@ }= @@гM(Bigarray(c_layoutAA(AA0@ AA1AA9@@@@@@ ~T @@@P6 @@@ [AA?@@б@г#intAPARAPAU@@ @@@ k@@б@гà#intAPAYAPA\@@ @@@ z@@гР#intAPA`APAc@@ @@@ @@@@@ @@@%@@ ( @@@;@@ 5@@@@@ @@@@@@x D Same as {!read}, but read the data into a bigarray. @since 5.2 AdAdAA@@@@@@@6z@@$@1@@@@@@%writeX4AA5AA@б@г*file_descr?AA@AA@@ @@@ 3AAAAAAAA@8@A@@б@г%bytesPAAQAA@@ @@@ @@б@г3#int_AA`AA@@ @@@  @@б@гB#intnAAoAA@@ @@@ /@@гO#int{AA|AA@@ @@@ <@@@@@ ?@@@%@@ B( @@@7@@ E:@@@K@@ HN@@@AA@ & [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. AABC@@@@@@@{@@$@@@@@@@g.write_bigarrayYCCCC#@б@гx*file_descrC&C(C&C2@@ @@@ 3@8@A@@б@г](Bigarray&Array1!t C6CkC6Cs@ C6CtC6Cz@@C6C{C6C|@ @@@@ $C6C9C6C:@@г(Bigarray1int8_unsigned_eltC6C<C6CD@ C6CEC6CV@@@@@@ = @@г(Bigarray(c_layout C6CXC6C`@ C6CaC6Ci@@@@@@ T @@@P6 @@@ [C6C8?@@б@г#int)CC*CC@@ @@@ k@@б@г #int8CC9CC@@ @@@ z@@г#intECCFCC@@ @@@ @@@@@ @@@%@@ ( @@@;@@ 5@@@@@ @@@YCC@ E Same as {!write}, but take the data from a bigarray. @since 5.2 fCCgCC@@@@@@@|@@$@z@@@@@@,single_writeZ}CC~CC@б@гB*file_descrCCCC@@ @@@ 3@8@A@@б@г`%bytesCDCD@@ @@@ @@б@г|#intCD CD @@ @@@  @@б@г#intCDCD@@ @@@ /@@г#intCDCD@@ @@@ <@@@@@ ?@@@%@@ B( @@@7@@ E:@@@K@@ HN@@@CC@@ Same as {!write}, but attempts to write only once. Thus, if an error occurs, [single_write] guarantees that no data has been written. DDDD@@@@@@@}@@$@P@@@@@@g/write_substring[DDDD@б@г*file_descrDDDD@@ @@@ 3        @8@A@@б@г㠐&stringDDDD@@ @@@ @@б@г#int'DD(DD@@ @@@  @@б@г #int6DD7DD@@ @@@ /@@г#intCDDDDD@@ @@@ <@@@@@ ?@@@%@@ B( @@@7@@ E:@@@K@@ HN@@@WDD@ c Same as {!write}, but take the data from a string instead of a byte sequence. @since 4.02 dDDeEFEX@@@@@@@}~@@$@x@@@@@@g6single_write_substring\{EZE^|EZEt@б@г@*file_descrEwEyEwE@@ @@@ 3@8@A@@б@гb&stringEwEEwE@@ @@@ @@б@гz#intEwEEwE@@ @@@  @@б@г#intEwEEwE@@ @@@ /@@г#intEwEEwE@@ @@@ <@@@@@ ?@@@%@@ B( @@@7@@ E:@@@K@@ HN@@@EZEZ@> j Same as {!single_write}, but take the data from a string instead of a byte sequence. @since 4.02 EEFF@@@@@@@@@$@N@@@@@@g5single_write_bigarray]FFFF-@б@г*file_descrF0F2F0F<@@ @@@ 3@8@A@@б@г(Bigarray&Array1!t F@FuF@F}@ "F@F~#F@F@@'F@F(F@F@ @@@@ $/F@FC0F@FD@@г(Bigarray1int8_unsigned_elt=F@FF>F@FN@ AF@FOBF@F`@@@@@@ = @@г(Bigarray(c_layoutTF@FbUF@Fj@ XF@FkYF@Fs@@@@@@ T @@@P6 @@@ [fF@FB?@@б@гD#intpFFqFF@@ @@@ k@@б@гS#intFFFF@@ @@@ z@@г`#intFFFF@@ @@@ @@@@@ @@@%@@ ( @@@;@@ 5@@@@@ @@@FF@ L Same as {!single_write}, but take the data from a bigarray. @since 5.2 FFFF@@@@@@@@@$@@@@@@@ΐ 8 {1 Interfacing with the standard input/output library} FFFG.@@@@@@3@1@A3in_channel_of_descr^G2G6G2GI@б@г *file_descrG2GLG2GV@@ @@@ @@г{*in_channelG2GZG2Gd@@ @@@ '@@@@@ *@@@G2G2 @b  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. GeGeLL@@@@@@@ @@@r@@@@@@I4out_channel_of_descr_LLLL@б@г 㠐*file_descr)LL*LL@@ @@@ 3++++++++@b]8@A@@г+out_channel8LL9LL@@ @@@ @@@@@ @@@CLL @  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. PLLQPP@@@@@@@i@@@d@@@@@@13descr_of_in_channel`gPPhPP@б@г*in_channelrPPsPP@@ @@@ 3tttttttt@J_8@A@@г ;*file_descrPPPP@@ @@@ @@@@@ @@@PP @ : Return the descriptor corresponding to an input channel. PPPP@@@@@@@@@@@@@@@@14descr_of_out_channelaPPPQ@б@гG+out_channelPQPQ@@ @@@ 3@J_8@A@@г *file_descrPQ!PQ+@@ @@@ @@@@@ @@@PP @= ; Return the descriptor corresponding to an output channel. Q,Q,Q,Ql@@@@@@@@@@M@@@@@@1  < {1 Seeking and truncating}  QoQo QoQ@@@@@@3@CX1@AA+,seek_commandbH QQ QQ@@;@@(SEEK_SETc@@ QQ QQ@ ; indicates positions relative to the beginning of the file  %QQ &QQ@@@@@@@ >@(SEEK_CURd@@ .QQ /QR@ 6 indicates positions relative to the current position  <QR =QR=@@@@@@@ U@(SEEK_ENDe@@ ER>R@ FR>RJ@ 5 indicates positions relative to the end of the file  SR>RK TR>R@@@@@@@ l@@@A@@@@@ WQQ@ ! Positioning modes for {!lseek}.  dRR eRR@@@@@@@A@ }@@#WWUT@E@@@W }UT@TT@@@T@T@#PP |QQN@?@@@Q ON@NN@@@N@N@#JJ R>RBH@9@@@K IH@HH@@@H@H@@A@D CB@BB@@@B@B@@O`@%lseekf RR RR@б@г s*file_descr RR RR@@ @@@ 3        @@A@@б@г #int RR RR@@ @@@ @@б@г̠,seek_command RR RR@@ @@@  @@г #int RR RR@@ @@@ -@@@@@ 0@@@%@@ 3( @@@9@@ 6<@@@ RR@_ w Set the current position for a file descriptor, and return the resulting offset (from the beginning of the file). !RR!S1S`@@@@@@@!@@!@o!@@@@@@U(truncateg!SbSf!SbSn@б@г &string!&SbSq!'SbSw@@ @@@ 3!(!(!(!(!(!(!(!(@n8@A@@б@г! #int!7SbS{!8SbS~@@ @@@ @@г $unit!DSbS!ESbS@@ @@@ @@@@@ !@@@'@@ $* @@@!RSbSb@ - Truncates the named file to the given size. !_SS!`SS@@@@@@@!x@@@!s@@@@@@C)ftruncateh!vSS!wSS@б@г ;*file_descr!SS!SS@@ @@@ 3!!!!!!!!@\q8@A@@б@г!f#int!SS!SS@@ @@@ @@г!M$unit!SS!SS@@ @@@ @@@@@ !@@@'@@ $* @@@!SS@  P Truncates the file corresponding to the given descriptor to the given size. !SS!T"T:@@@@@@@!@@@ %!ΐ@@@@@@C!!ې1 {1 File status} !T=T=!T=TS@@@@@@3!!!!!!!!@Uj1@AA+)file_kindiI!TVT[!TVTd@@;@@%S_REGj@@!TgTk!TgTp@ X. Regular file !TgT!TgT@@@@@@@"@%S_DIRk@@"TT"TT@ o+ Directory "TT"TT@@@@@@@"-@%S_CHRl@@"TT"TT@ 2 Character device "+TT",TU@@@@@@@"D@%S_BLKm@@"4 UU"5 UU @ . Block device "B UU$"C UU7@@@@@@@"[@%S_LNKn@@"K U8U:"L U8UA@ / Symbolic link "Y U8UX"Z U8Ul@@@@@@@"r@&S_FIFOo@@"b UmUo"c UmUw@ ː, Named pipe "p UmU"q UmU@@@@@@@"@&S_SOCKp@@"y UU"z UU@ ␠( Socket " UU" UU@@@@@@@"@@@A@@@@@"TVTV@@A@"@@#@@@@ "@@@@@@#"TT@@@@! "@@@@@@#"TT@@@@!"Ő@@@@@@#" UU@@@@!-"֐@@@@@@#" U8U<@{@@@!>"琠@@@@@@#" UmUq@u@@@!O"@@@@@@#" UU~@o@@@!`# ~@~~@@@~@~@@A@z@@*z@A+%statsqJ#UU#UU@@;@@&st_devr@@"@@@ #UU#UU@!/ Device number #)UU#*UV@@@@@@@#B@&st_inos@@# @@@ #5VV#6VV!@!. Inode number #CVV0#DVVC@@@@@@@#\@'st_kindt@@l@@@ #OVDVH#PVDV\@!2 Kind of the file #]VDVd#^VDV{@@@@@@@#v@'st_permu@@ @@@ #iV|V#jV|V@!Ґ/ Access rights #wV|V#xV|V@@@@@@@#@(st_nlinkv@@#Y@@@ #VV#VV@!쐠1 Number of links #VV#VV@@@@@@@#@&st_uidw@@#s@@@ #VV#VV@"6 User id of the owner #VW#VW#@@@@@@@#@&st_gidx@@#@@@ #W$W(#W$W5@" > Group ID of the file's group #W$WD#W$Wg@@@@@@@#@'st_rdevy@@#@@@ #WhWl#WhWz@":= Device ID (if special file) #WhW#WhW@@@@@@@#@'st_sizez@@#@@@ #WW#WW@"T/ Size in bytes #WW#WW@@@@@@@$@(st_atime{@@#@@@ $WW$WW@"n2 Last access time $WX$WX@@@@@@@$,@(st_mtime|@@#@@@ $XX$ XX-@"8 Last modification time $-XX8$.XXU@@@@@@@$F@(st_ctime}@@#@@@ $9XVXZ$:XVXk@"9 Last status change time $GXVXv$HXVX@@@@@@@$`@@@A@@@@@$KUU$LXX@" 0 The information returned by the {!stat} calls. $YXX$ZXX@@@@@@@@@$r@@#KKF$aUU@7@@Ш@гN#int$jUU$kUU@@V3$i$i$i$i$i$i$i$i@e;@@@A@@@@@'$@@@A@@^@@ @Z"$XW@WW@@@W@W@#SSN$VV@?@@Ш@гV#int$VV$VV @@^"@@a@@ %@]"$[Z@ZZ@@@Z@Z@#VVQ$VDVO@B@@Ш@гY)file_kind$VDVR$VDV[@@a?@@d@@ B@`#$^]@]]@@@]@]@#YYT$V|V@E@@Ш@г\)file_perm$V|V$V|V@@d\@@g@@ _@c#2$ېa`@``@@@`@`@#\\W$VV@H@@Ш@г_#int$VV$VV@@gy@@j@@ |@f#O$dc@cc@@@c@c@#__Z$VV@K@@Ш@гb#int%VV%VV@@j@@m@@ @i#l%gf@ff@@@f@f@#bb]%W$W.@N@@Ш@гe#int%W$W1%W$W4@@m@@p@@ @l#%2ji@ii@@@i@i@#ee`%1WhWs@Q@@Ш@гh#int%:WhWv%;WhWy@@pа@@s@@ @o#%Oml@ll@@@l@l@#hhc%NWW@T@@Ш@гk#int%WWW%XWW@@s@@v@@ @r#%lpo@oo@@@o@o@#kkf%kWW@W@@Ш@гn%float%tWW%uWW@@v @@y@@  @u#%sr@rr@@@r@r@#nni%XX$@Z@@Ш@гq%float%XX'%XX,@@y'@@|@@ *@x#%vu@uu@@@u@u@#qql%XVXb@]@@Ш@гt%float%XVXe%XVXj@@|D@@@@ G@{$%Ðyx@xx@@@x@x@@A@t$%%ΐrq@qq@@@q@q@@3%%%%%%%%@\@A@$stat~%XX%XX@б@г%&string%XX%XX@@ @@@ 83%%%%%%%%@w@A@@гߠ%stats%XX%XX@@ @@@ 9@@@@@ :@@@%XX @$` , Return the information for the named file. &XX&XY@@@@@@@&@@@$p&@@@@@@1%lstat&!YY"&!YY'@б@г%&string&'!YY*&(!YY0@@ @@@ ;3&)&)&)&)&)&)&)&)@J_8@A@@г(%stats&6!YY4&7!YY9@@ @@@ <@@@@@ =@@@&A!YY @$ j Same as {!stat}, but in case the file is a symbolic link, return the information for the link itself. &N"Y:Y:&O#YxY@@@@@@@&g@@@$&b@@@@@@1%fstat&e%YY&f%YY@б@г**file_descr&p%YY&q%YY@@ @@@ >3&r&r&r&r&r&r&r&r@J_8@A@@гq%stats&%YY&%YY@@ @@@ ?@@@@@ @@@@&%YY @$򐠠 N Return the information for the file associated with the given descriptor. &&YY&'Z Z@@@@@@@&@@@%&@@@@@@1&isatty&)Z Z$&)Z Z*@б@гs*file_descr&)Z Z-&)Z Z7@@ @@@ A3&&&&&&&&@J_8@A@@г&$bool&)Z Z;&)Z Z?@@ @@@ B@@@@@ C@@@&)Z Z  @%; j Return [true] if the given file descriptor refers to a terminal or console window, [false] otherwise. &*Z@Z@&+ZZ@@@@@@@&@@@%K&@@@@@@1'' $ {1 File operations on large files} &-ZZ&-ZZ@@@@@@3&&&&&&&&@CX1@A)LargeFileK' /ZZ' /ZZ@'%@@Б%lseek'1ZZ'1Z[@б@гߠ*file_descr'%1Z['&1Z[@@ @@@ D3''''''''''''''''@*@A@@б@г&x%int64'51Z['61Z[@@ @@@ E@@б@г7,seek_command'D1Z['E1Z[(@@ @@@ F@@г&%int64'Q1Z[,'R1Z[1@@ @@@ G,@@@@@ H/@@@%@@ I2( @@@8@@ J5;@@@'b1ZZ@%ʐ. See [lseek]. 'o2[2[6'p2[2[I@@@@@@@'@@!@%'@@@@@@T(truncate'4[K[S'4[K[[@б@г'\&string'4[K[^'4[K[d@@ @@@ K3''''''''@8@A@@б@г&堐%int64'4[K[h'4[K[m@@ @@@ L@@г']$unit'4[K[q'4[K[u@@ @@@ M@@@@@ N!@@@'@@ O$* @@@'4[K[O@&%1 See [truncate]. '5[v[z'5[v[@@@@@@@'@@@&5'ސ@@@@@@C)ftruncate'7[['7[[@б@г*file_descr'7[['7[[@@ @@@ P3''''''''@\q8@A@@б@г'@%int64'7[['7[[@@ @@@ Q@@г'$unit( 7[[( 7[[@@ @@@ R@@@@@ S!@@@'@@ T$* @@@(7[[@&2 See [ftruncate]. (%8[[(&8[[@@@@@@@(>@@@&(9@@@@@@CA+%statsL(=:[[(>:[[@@;@@&st_dev@@( @@@ U(J;[[(K;[\@&/ Device number (X;[\(Y;[\(@@@@@@@(q@&st_ino@@(:@@@ X(d<\)\1(e<\)\>@&͐. Inode number (r<\)\M(s<\)\`@@@@@@@(@'st_kind@@@@@ [(~=\a\i(=\a\}@&琠2 Kind of the file (=\a\(=\a\@@@@@@@(@'st_perm@@@@@ ^(>\\(>\\@'/ Access rights (>\\(>\\@@@@@@@(@(st_nlink@@(@@@ a(?\\(?\\@'1 Number of links (?\\(?\]@@@@@@@(@&st_uid@@(@@@ d(@]](@]]&@'56 User id of the owner (@]]5(@]]P@@@@@@@(@&st_gid@@(@@@ g(A]Q]Y(A]Q]f@'O> Group ID of the file's group (A]Q]u(A]Q]@@@@@@@) @'st_rdev@@(@@@ j)B]])B]]@'i= Device ID (if special file) )B]])B]]@@@@@@@)'@'st_size@@(_@@@ m)C]])C]]@'/ Size in bytes )(C]^))C]^@@@@@@@)A@(st_atime@@(@@@ p)4D^^!)5D^^2@'2 Last access time )BD^^=)CD^^T@@@@@@@)[@(st_mtime@@)@@@ s)NE^U^])OE^U^n@'8 Last modification time )\E^U^y)]E^U^@@@@@@@)u@(st_ctime@@)-@@@ v)hF^^)iF^^@'ѐ9 Last status change time )vF^^)wF^^@@@@@@@)@@@A@@@@@)z:[[){G^^@@@@)@@#==8);[[@)@@Ш@г@#int);[\);[\@@H3))))))))@zW;@@@A@@@@@@@@@A@@P@@ V@L')JI@II@@@I@I@#EE@)<\)\7@1@@Ш@гH#int)<\)\:)<\)\=@@P"@@S@@ Y%@O()ML@LL@@@L@L@#HHC)=\a\p@4@@Ш@гK)file_kind)=\a\s)=\a\|@@S?@@V@@ \B@R(6)ߐPO@OO@@@O@O@#KKF)>\\@7@@Ш@гN)file_perm)>\\)>\\@@V\@@Y@@ __@U(S)SR@RR@@@R@R@#NNI)?\\@:@@Ш@гQ#int*?\\*?\\@@Yy@@\@@ b|@X(p*VU@UU@@@U@U@#QQL*@]]@=@@Ш@гT#int*!@]]"*"@]]%@@\@@_@@ e@[(*6YX@XX@@@X@X@#TTO*5A]Q]_@@@@Ш@гW#int*>A]Q]b*?A]Q]e@@_@@b@@ h@^(*S\[@[[@@@[@[@#WWR*RB]]@C@@Ш@гZ#int*[B]]*\B]]@@bа@@e@@ k@a(*p_^@^^@@@^@^@#ZZU*oC]]@F@@Ш@г]%int64*xC]]*yC]]@@e@@h@@ n@d(*ba@aa@@@a@a@#]]X*D^^)@I@@Ш@г`%float*D^^,*D^^1@@h @@k@@ q @g)*ed@dd@@@d@d@#``[*E^U^e@L@@Ш@гc%float*E^U^h*E^U^m@@k'@@n@@ t*@j)*ǐhg@gg@@@g@g@#cc^*F^^@O@@Ш@гf%float*F^^*F^^@@nD@@q@@ wG@m);*䐠kj@jj@@@j@j@@A@f@@3********@Q@Agf@$stat*H^^*H^^@б@г*&string*H^^*H^^@@ @@@ 3********@l@A@@гƠ%stats+H^^+H^_@@ @@@ @@@@@ @@@+H^^ @@+&@@ @@%lstat+I__ +I__@б@г*&string+$I__+%I__@@ @@@ 3+&+&+&+&+&+&+&+&@1F@A@@г%stats+3I__+4I__ @@ @@@ @@@@@ @@@+>I__ @@+V@@ @@%fstat+IJ_!_)+JJ_!_.@б@г*file_descr+TJ_!_1+UJ_!_;@@ @@@ 3+V+V+V+V+V+V+V+V@1F@A@@г&%stats+cJ_!_?+dJ_!_D@@ @@@ @@@@@ @@@+nJ_!_% @@+@@ @@@]@@a@@:A@o@hA@:@@3+|+|+|+|+|+|+|+|@'<@A+0ZZ+K_E_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]. +L_K_K+UaaB@@@@@@@+/ZZ@@++? {1 Mapping files into memory} +WaDaD+WaDah@@@@@@3++++++++@@N@.@@{uA@@|@uN@@*!43@33@@@3@3@0@A(map_file+Yajan+Yajav@б@г*file_descr+Zaya{+Zaya@@ @@@ 4@@б#posг++%int64+[aa+[aa@@ @@@ E@@б@г*(Bigarray$kind&Stdlib+\aa,\aa@ ,\aa,\aa@@,\aa, \aa@ @А!a@ M@ l,\aa,\aa@@А!b@ M@ x,!\aa,"\aa@@@3 @@@ ,)\aa!@@б@г*(Bigarray&layout&Stdlib,;]aa,<]aa@ ,?]aa,@]aa@@,D]aa,E]aa@ @А!c@ M@ ,Q]aa,R]aa@@@' @@@ @@б@г, $bool,a]aa,b]ab@@ @@@ @@б@г+%array,p]ab ,q]ab@г,N#int,z]ab,{]ab @@ @@@ װ@@@@@@ ܰ @@г+(Bigarray(Genarray!t&Stdlib,^bb#,^bb)@,^bb*,^bb2@@,^bb3,^bb;@ @,^bb<,^bb=@@А!a,^bb,^bb@@А!b ,^bb,^bb@@А!cp,^bb,^bb!@@@9x@@@ ,^bb@@@H @@  O"@@@h@@ #k%@@@{@@ &~(@@@@@ )+@@,=@@@  @@ 1,[aa4@@@ @@ 57@@@,Yajaj:@+H  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. {!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]. {!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 ,_b>b>,jj@@@@@@@-@@J@+X-@@@@@@T--> {1 Operations on file names} - jj- jj@@@@@@3- - - - - - - - @fG1@A&unlink-jk-jk@б@г,&string-"jk -#jk@@ @@@ @@г,ݠ$unit-/jk-0jk@@ @@@ '@@@@@ *@@@-:jj @+ 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}} -Gkk-Hkk@@@@@@@-`@@@+-[@@@@@@I&rename-^kk-_kk@б@г-4&string-ikk-jkk@@ @@@ 3-k-k-k-k-k-k-k-k@b]8@A@@б@г-E&string-zkk-{kk@@ @@@ @@г-5$unit-kk-kl@@ @@@ @@@@@ !@@@'@@ $* @@@-kk@+ 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]. -ll-mLmc@@@@@@@-@@@, -@@@@@@C$link-memi-memm@б&followг-$bool-mem-mem@@ @@@ 3--------@^s:@A@@б@г-&string-mm-mm@@ @@@ @@б@г-&string-mm-mm@@ @@@  @@г-$unit-mm-mm@@ @@@ -@@@@@ 0@@@%@@ 3( @@D-<@@@  @@ :.memp@@ @. meme@,q 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. .mm.op@@@@@@@./@@&@,.*@@@@@@Z(realpath.-pp ..pp@б@г.&string.8pp.9pp@@ @@@ 3.:.:.:.:.:.:.:.:@s8@A@@г.&string.Gpp.Hpp%@@ @@@ @@@@@ @@@.Rpp @, [realpath p] is an absolute pathname for [p] obtained by resolving all extra [/] characters, relative path segments and symbolic links. @since 4.13 ._p&p&.`pp@@@@@@@.x@@@,.s@@@@@@1.. $ {1 File permissions and ownership} .}pp.~pp@@@@@@3.|.|.|.|.|.|.|.|@CX1@AA+1access_permissionM.pp.pq @@;@@$R_OK@@.qq.qq@,1 Read permission .qq0.qqF@@@@@@@.@$W_OK@@.qGqI.qGqO@-2 Write permission .qGqg.qGq~@@@@@@@.@$X_OK@@.qq.qq@-+6 Execution permission .qq.qq@@@@@@@.@$F_OK@@.qq.qq@-B- File exists .qq.qq@@@@@@@/@@@A@@@@@.pp@-S? Flags for the {!access} call. .qq.qr@@@@@@@A@/@@#nnlk@\@@@n-h/lk@kk@@@k@k@#gg/qGqKe@V@@@h-y/"fe@ee@@@e@e@#aa/!qq_@P@@@b-/3`_@__@@@_@_@#[[/2qqY@J@@@\-/DZY@YY@@@Y@Y@@A@U-/OTS@SS@@@S@S@@˰`q@%chmod/Srr/Trr@б@г/)&string/^rr!/_rr'@@ @@@ 3/`/`/`/`/`/`/`/`@@A@@б@г֠)file_perm/orr+/prr4@@ @@@ @@г/*$unit/|rr8/}rr<@@ @@@ @@@@@ !@@@'@@ $* @@@/rr@-򐠠 + Change the permissions of the named file. /r=r=/r=rm@@@@@@@/@@@./@@@@@@C&fchmod/rors/rory@б@гs*file_descr/ror|/ror@@ @@@ 3////////@\q8@A@@б@г1)file_perm/ror/ror@@ @@@ @@г/$unit/ror/ror@@ @@@ @@@@@ !@@@'@@ $* @@@/roro@.M S Change the permissions of an opened file. @raise Invalid_argument on Windows /rr/rr@@@@@@@0 @@@.]0@@@@@@C%chown0 rr0 rr@б@г/ߠ&string0rs0rs@@ @@@ 300000000@\q8@A@@б@г/#int0%rs 0&rs@@ @@@ @@б@г0#int04rs05rs@@ @@@  @@г/$unit0Ars0Brs@@ @@@ -@@@@@ 0@@@%@@ 3( @@@9@@ 6<@@@0Rrr@. _ Change the owner uid and owner gid of the named file. @raise Invalid_argument on Windows 0_ss0`sZs@@@@@@@0x@@!@.0s@@@@@@U&fchown0vss0wss@б@г;*file_descr0ss0ss@@ @@@ 300000000@n8@A@@б@г0f#int0ss0ss@@ @@@ @@б@г0u#int0ss0ss@@ @@@  @@г0\$unit0ss0ss@@ @@@ -@@@@@ 0@@@%@@ 3( @@@9@@ 6<@@@0ss@/' _ Change the owner uid and owner gid of an opened file. @raise Invalid_argument on Windows 0ss0st@@@@@@@0@@!@/70@@@@@@U%umask0tt0tt"@б@гU)file_perm0tt%0tt.@@ @@@ 300000000@n8@A@@гd)file_perm0tt20tt;@@ @@@ @@@@@ @@@1tt @/p v Set the process's file mode creation mask, and return the previous mask. @raise Invalid_argument on Windows 1t<t<1tt@@@@@@@1.@@@/1)@@@@@@1&access1,tt1-tt@б@г1&string17tt18tt@@ @@@ 31919191919191919@J_8@A@@б@г0Ǡ$list1Htt1Itt@гȠ1access_permission1Rtt1Stt@@ @@@ @@@@@@   @@г1$unit1dtt1ett@@ @@@ -@@@@@ 0@@@6@@ 39 @@@1rtt@/ڐ 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. 1tt1uu@@@@@@@1@@@/1@@@@@@R11 $ {1 Operations on file descriptors} 1uu1uu@@@@@@311111111@dy1@A#dup1uu1uu@б'cloexecг1u$bool1uv-1uv1@@ @@@ @@б@г*file_descr1v5v?1v5vI@@ @@@ +@@г*file_descr1v5vM1v5vW@@ @@@ 8@@@@@ ;@@0 (@@@  @@ B1uu@@ @1uu@0M 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. 1vXvX1vw@@@@@@@2 @@#@0]2@@@@@@b$dup22 ww 2 ww@б'cloexecг1ՠ$bool2wwA2wwE@@ @@@322222222@}x:@A@@б@г᠐*file_descr2'wIwT2(wIw^@@ @@@@@б@г*file_descr26wIwb27wIwl@@ @@@ @@г1$unit2CwIwp2DwIwt@@ @@@-@@@@@0@@@%@@3( @@D}<@@@ @@:2Vww@@ @2Yww@0 [dup2 src dst] duplicates [src] to [dst], closing [dst] if already opened. See {!set_close_on_exec} for documentation on the [cloexec] optional argument. 2fwuwu2gxx@@@@@@@2@@&@02z@@@@@@Z,set_nonblock2}x x$2~x x0@б@гB*file_descr2x x32x x=@@ @@@322222222@s8@A@@г2E$unit2x xA2x xE@@ @@@ @@@@@ @@@2x x  @1 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]. 2xFxF2yvy@@@@@@@2@@@12Ð@@@@@@1.clear_nonblock2yy2yy@б@г*file_descr2yy2yy@@ @@@ 322222222@J_8@A@@г2$unit2yy2yy@@ @@@ @@@@@ @@@2yy @1S Q Clear the ``non-blocking'' flag on the given descriptor. See {!set_nonblock}.2yy2zz.@@@@@@@3@@@1c3 @@@@@@11set_close_on_exec3z0z43z0zE@б@гԠ*file_descr3z0zH3z0zR@@ @@@333333333@J_8@A@@г2נ$unit3)z0zV3*z0zZ@@ @@@@@@@@@@@34z0z0 @1 { 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. 3Az[z[3B/@@@@@@@3Z@@@13U@@@@@@13clear_close_on_exec3X13Y1@б@г*file_descr3c13d1@@ @@@33e3e3e3e3e3e3e3e@J_8@A@@г3 $unit3r13s1 @@ @@@@@@@@@@@3}1 @1吠 W Clear the ``close-on-exec'' flag on the given descriptor. See {!set_close_on_exec}.32  33Hf@@@@@@@3@@@13@@@@@@1331 {1 Directories} 36ii36i@@@@@@333333333@CX1@A%mkdir3939@б@г3&string3939@@ @@@@@б@г5)file_perm3939@@ @@@)@@г3$unit3939@@ @@@6@@@@@9@@@%@@<( @@@39@2Q ? Create a directory with the given permissions (see {!umask}). 3:3:@@@@@@@4@@@2a4 @@@@@@[%rmdir4 <4<@б@г3㠐&string4<4<@@ @@@344444444@to8@A@@г3ՠ$unit4'<4(< @@ @@@@@@@@@@@42< @2< Remove an empty directory. 4?=  4@= ,@@@@@@@4X@@@24S@@@@@@1%chdir4V?.24W?.7@б@г4,&string4a?.:4b?.@@@ @@@34c4c4c4c4c4c4c4c@J_8@A@@г4$unit4p?.D4q?.H@@ @@@@@@@@@@@4{?.. @2㐠 ' Change the process working directory. 4@II4@Iu@@@@@@@4@@@24@@@@@@1&getcwd4Bw{4Bw@б@г4X$unit4Bw4Bw@@ @@@344444444@J_8@A@@г4&string4Bw4Bw@@ @@@ @@@@@!@@@4Bww @3, 3 Return the name of the current working directory. 4C4C@@@@@@@4@@@3<4吠@@@@@@1&chroot 4E4E@б@г4&string4E4E@@ @@@"344444444@J_8@A@@г4$unit5E5E@@ @@@#@@@@@$@@@5 E @3u L Change the process root directory. @raise Invalid_argument on Windows 5F5H:@@@@@@@53@@@35.@@@@@@1A+*dir_handleN52J<A53J<K@@;@@A@@@@@56J<<@3 2 The type of descriptors over opened directories. 5CKLL5DKL@@@@@@@@@5\@@@A@35V@@@@@@@35N5N5N5N5N5N5N5N@ZoH@A!@'opendirĠ5\M5]M@б@г52&string5gM5hM@@ @@@%35i5i5i5i5i5i5i5i@@:@A@@гD*dir_handle5vM5wM@@ @@@&@@@@@'@@@5M @3鐠 " Open a descriptor on a directory 5N5N@@@@@@@5@@@35@@@@@@1'readdirŠ5P5P@б@г~*dir_handle5P5P@@ @@@(355555555@J_8@A@@г5&string5P5P@@ @@@)@@@@@*@@@5P @42 m Return the next entry in a directory. @raise End_of_file when the end of the directory has been reached. 5Q5Rf@@@@@@@5@@@4B5될@@@@@@1)rewinddirƠ5Thl5Thu@б@гǠ*dir_handle5Thx5Th@@ @@@+355555555@J_8@A@@г5$unit6Th6 Th@@ @@@,@@@@@-@@@6Thh @4{ = Reposition the descriptor to the beginning of the directory 6 U6!U@@@@@@@69@@@464@@@@@@1(closedirǠ67W68W@б@г*dir_handle6BW6CW@@ @@@.36D6D6D6D6D6D6D6D@J_8@A@@г5$unit6QW6RW@@ @@@/@@@@@0@@@6\W @4Đ? Close a directory descriptor. 6iX6jX@@@@@@@6@@@46}@@@@@@166< {1 Pipes and redirections} 6\6\:@@@@@@366666666@CX1@A$pipeȠ6_=A6_=E@б'cloexecг6_$bool6_=v6_=z@@ @@@1@@б@г6]$unit6`~6`~@@ @@@2+@@В@г!z*file_descr6`~6`~@@ @@@3<@@@г!*file_descr6`~6`~@@ @@@4K@@@@@ @@5R @@@- @@6U0@@J B@@@7 @@8\6_=H@@ @6_==@5Q  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. 6a6e@@@@@@@7@@*@5a7 @@@@@@|&mkfifoɠ7 g7g@б@г6㠐&string7g7g@@ @@@9377777777@8@A@@б@г)file_perm7)g7*g@@ @@@:@@г6䠐$unit76g77g@@ @@@;@@@@@<!@@@'@@=$* @@@7Dg@5 g Create a named pipe with the given permissions (see {!umask}). @raise Invalid_argument on Windows 7Qh7Rj+S@@@@@@@7j@@@57e@@@@@@C7s7r 3 {1 High-level process and redirection management} 7omVV7pmV@@@@@@37n7n7n7n7n7n7n7n@Uj1@A.create_processʠ7{p7|p@б@г7Q&string7q7q@@ @@@>@@б@г7%array7q7q@г7j&string7q7q@@ @@@?3@@@@@@A8 @@б@г"m*file_descr7q7q@@ @@@BG@@б@г"|*file_descr7q7q@@ @@@CV@@б@г"*file_descr7r7r@@ @@@De@@г7#int7r7r@@ @@@Er@@@@@Fu@@@%@@Gx( @@@7@@H{:@@@J@@I~Q@@@j@@Jm@@@7p@6] * [create_process prog args stdin stdout stderr] creates a new process that executes the program in file [prog], with arguments [args]. Note that the first argument, [args.(0)], is by convention the filename of the program being executed, just like [Sys.argv.(0)]. 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. 8s8~#@@@@@@@8@@'@6m8@@@@@@2create_process_envˠ8%)8%;@б@г7&string8$>@8%>F@@ @@@K38&8&8&8&8&8&8&8&@8@A@@б@г7%array85>Q86>V@г8 &string8?>J8@>P@@ @@@L@@@@@@N  @@б@г7۠%array8S>a8T>f@г8(&string8]>Z8^>`@@ @@@O9@@@@@@Q> @@б@г#+*file_descr8q>j8r>t@@ @@@RM@@б@г#:*file_descr8x|8x@@ @@@S\@@б@г#I*file_descr8x8x@@ @@@Tk@@г8p#int8x8x@@ @@@Ux@@@@@V{@@@%@@W~( @@@7@@X:@@@J@@YQ@@@k@@Zr@@@@@[@@@8%%@7 [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. 88Q@@@@@@@8@@*@7.8א@@@@@@/open_process_in̠8TX8Tg@б@г8&string8Tj8Tp@@ @@@\388888888@8@A@@г7*in_channel8Tt8T~@@ @@@]@@@@@^@@@8TT @7g } 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}. 9 9 @@@@@@@9%@@@7w9 @@@@@@10open_process_out͠9#9$@б@г8&string9.9/ @@ @@@_39090909090909090@J_8@A@@г7+out_channel9=$9>/@@ @@@`@@@@@a@@@9H @7  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}. 9U009V@@@@@@@9n@@@79i@@@@@@1,open_processΠ9l9m @б@г9B&string9w#9x)@@ @@@b39y9y9y9y9y9y9y9y@J_8@A@@В@г8*in_channel9-97@@ @@@c@@@г8%+out_channel9:9E@@ @@@d"@@@@@ @@e) @@@/ @@f,2@@@9@8  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}. 9FF9@@@@@@@9@@"@8#9̐@@@@@@K1open_process_fullϠ99@б@г9&string99@@ @@@g399999999@dy8@A@@б@г9s%array9 9@г9&string99 @@ @@@h@@@@@@j  @@В@г8*in_channel: : @@ @@@k1@@@г8+out_channel:!:,@@ @@@l@@@@г8*in_channel:)/:*9@@ @@@mO@@@@&@@ @@nX-@@@? @@o[F@@@a@@p^d@@@:@@8  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}. :M:::N@@@@@@@:f@@'@8:a@@@@@@}1open_process_argsР:d:e@б@г::&string:o:p@@ @@@q3:q:q:q:q:q:q:q:q@8@A@@б@г:%array::@г:U&string::@@ @@@r@@@@@@t  @@В@г9,*in_channel::@@ @@@u1@@@г9;+out_channel:: @@ @@@v@@@@@@ @@wG @@@. @@xJ5@@@P@@yMS@@@:@9,  [open_process_args prog args] runs the program [prog] with arguments [args]. Note that the first argument, [args.(0)], is by convention the filename of the program being executed, just like [Sys.argv.(0)]. The new process executes concurrently with the current process. The standard input and output of the new process are redirected to pipes, which can be respectively read and written via the returned channels. The input channel is connected to the output of the program, and the output channel to the 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. The executable file [prog] is searched for 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 :  :@@@@@@@:@@%@9<:吠@@@@@@l4open_process_args_inѠ::@б@г:&string::@@ @@@z3::::::::@8@A@@б@г:%array;; @г:٠&string;;@@ @@@{@@@@@@}  @@г9*in_channel; ;!@@ @@@~-@@@@@0@@@6@@39 @@@;.@9 o Same as {!open_process_args}, but redirects only the standard output of the new process. @since 4.08 ;;;<|@@@@@@@;T@@@9;O@@@@@@R5open_process_args_outҠ;R;S@б@г;(&string;];^@@ @@@3;_;_;_;_;_;_;_;_@k8@A@@б@г:%array;n;o@г;C&string;x;y@@ @@@@@@@@@  @@г:+out_channel;;@@ @@@-@@@@@0@@@6@@39 @@@;@: n Same as {!open_process_args}, but redirects only the standard input of the new process. @since 4.08 ;;3E@@@@@@@;@@@:;@@@@@@R6open_process_args_fullӠ;GK;Ga@б@г;&string;df;dl@@ @@@3;;;;;;;;@k8@A@@б@г;`%array;dw;d|@г;&string;dp;dv@@ @@@@@@@@@  @@б@г;~%array;d;d@г;ˠ&string<d<d@@ @@@9@@@@@@> @@В@г:*in_channel<<@@ @@@O@@@г:+out_channel<%<&@@ @@@^@@@г:*in_channel<4<5@@ @@@m@@@@&@@ @@v-@@@? @@yF@@@`@@|g@@@@@@@@99 @ mm>@@@@@@@>&@@@!@@@@@@11close_process_out٠>$>%@б@г<+out_channel>/>0@@ @@@3>1>1>1>1>1>1>1>1@J_8@A@@г.預.process_status>> >?.@@ @@@@@@@@@@@>I @< Close channels opened by {!open_process_out}, wait for the associated command to terminate, and return its termination status. >V//>W@@@@@@@>o@@@<>j@@@@@@1-close_processڠ>m>n@б@В@г=*in_channel>|>}@@ @@@3>~>~>~>~>~>~>~>~@Nc<@A@@@г=+out_channel>>@@ @@@@@@@@ @@ @@г/L.process_status>>@@ @@@%@@@@@(.@@@> @= Close channels opened by {!open_process}, wait for the associated command to terminate, and return its termination status. >>Z@@@@@@@>@@@=$>͐@@@@@@G2close_process_full۠>>@б@В@г=k*in_channel>>@@ @@@3>>>>>>>>@d}<@A@@@г=|+out_channel>>@@ @@@@@@г=*in_channel>?@@ @@@ @@@@(@@ @@)/@@г/.process_status??@@ @@@6@@@@@9?@@@?  @= Close channels opened by {!open_process_full}, wait for the associated command to terminate, and return its termination status. ?-?. ;c@@@@@@@?F@@@=?A@@@@@@X?O?N4 {1 Symbolic links} ?K ff?L f@@@@@@3?J?J?J?J?J?J?J?J@j1@A'symlinkܠ?W?X@б&to_dirг?#$bool?d?e@@ @@@@@б@г?>&string?s?t@@ @@@+@@б@г?M&string??@@ @@@:@@г?=$unit??@@ @@@G@@@@@J@@@%@@M( @@Bɠ:@@@ @@T?@@ @?@>  [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. ??/r@@@@@@@?@@&@>?Ɛ@@@@@@t+has_symlinkݠ?1?1@б@г?$unit?1?1@@ @@@3????????@8@A@@г?$bool?1?1@@ @@@@@@@@@@@?1 @>V 2 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 ?2?6@@@@@@@@@@@>f@@@@@@@1(readlinkޠ@8@8@б@г?蠐&string@8@8@@ @@@3@@@@@@@@@J_8@A@@г?&string@,8@-8@@ @@@@@@@@@@@@78 @> ' Read the contents of a symbolic link. @D9@E9-@@@@@@@@]@@@>@X@@@@@@1@f@e- {1 Polling} @b<00@c<0B@@@@@@3@a@a@a@a@a@a@a@a@CX1@A&selectߠ@n?EI@o?EO@б@г?$list@y@R_@z@Rc@г+=*file_descr@@RT@@R^@@ @@@$@@@@@@) @@б@г@$list@@Rr@@Rv@г+[*file_descr@@Rg@@Rq@@ @@@B@@@@@@G @@б@г@4$list@@R@@R@г+y*file_descr@@Rz@@R@@ @@@`@@@@@@e @@б@г@%float@A@A@@ @@@t@@В@г@c$list@A@A@г+*file_descr@A@A@@ @@@@@@@@@ @@@г@$listAAAA@г+Ơ*file_descrA AA A@@ @@@@@@@@@ @@@г@$listA AA!A@г+䠐*file_descrA*AA+A@@ @@@˰@@@@@@а @@@@E@)@ @@ٰP@@@k @@ܰn @@@~@@߰#@@@@@&@@@@@)@@@AL?EE,@? , 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). On Windows, if one of descriptor lists exceeds [FD_SETSIZE] elements (64 by default), or if at least one non-socket file descriptor is used, the maximal timeout is capped to 2{^32} milliseconds. AYBAZO@@@@@@@Ar@@<@?Am@@@@@@A{Az- {1 Locking} AwQAxQ@@@@@@3AvAvAvAvAvAvAvAv@1@AA+,lock_commandOASAS&@@;@@'F_ULOCK@@AT)-AT)4@?1 Unlock a region AT);AT)Q@@@@@@@A@&F_LOCK@@AURTAUR\@@ 8 Lock a region for writing, and block if already locked AURdAUR@@@@@@@A@'F_TLOCK@@AVAV@@% 6 Lock a region for writing, or fail if already locked AVAV@@@@@@@A@&F_TEST@@AWAW@@< ' Test a region for other process locks AWAW.@@@@@@@A@'F_RLOCK@@AX/1AX/:@@S 8 Lock a region for reading, and block if already locked AX/AAX/~@@@@@@@B@(F_TRLOCK@@BYBY@@j 6 Lock a region for reading, or fail if already locked BYBY@@@@@@@B(@@@A@@@@@BS@@{8 Commands for {!lockf}. B ZB!Z@@@@@@@A@B9@@#@@@@@B9@@@@@@#B8URV@@@@@BJ@@@@@@#BIV@~@@@@B[@@@@@@#BZW@x@@@@Bl@@@@@@#BkX/3@r@@@@B}@@@@@@#}}B|Y{@l@@@~@B|{@{{@@@{@{@@A@w@Bvu@uu@@@u@u@@@%lockfB\B\@б@г-b*file_descrB\B\@@ @@@3BBBBBBBB@5/)@A@@б@г5,lock_commandB\B\@@ @@@@@б@гB#intB\B\@@ @@@ @@гB$unitB\B\!@@ @@@-@@@@@0@@@%@@3( @@@9@@6<@@@B\@AN > [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. B]""BzBe@@@@@@@C @@!@A^C@@@@@@UCC } {1 Signals} Note: installation of signal handlers is performed via the functions {!Sys.signal} and {!Sys.set_signal}. C}hhC@@@@@@3CCCCCCCC@g|1@A$killCC@б@гB#intC(C)@@ @@@@@б@гA#Sys&signalC;C<@ C?C@@@@@@@2 @@гB$unitCM CN@@ @@@?@@@@@B@@@.@@E1 @@@C[@AÐ [kill pid signal] sends signal number [signal] to the process with id [pid]. On Windows: only the {!Sys.sigkill} signal is emulated. ChCif@@@@@@@C@@@AC|@@@@@@dA+3sigprocmask_commandPCC@@;@@+SIG_SETMASK@@CC@@C@)SIG_BLOCK@@CC@@C@+SIG_UNBLOCK@@CC@@C@@@A@@@@@C@@A@C@@#@@@@@#C@@@@@#C@@@@@@A@@@3CCCCCCCC@]@A@+sigprocmaskCC@б@гJ3sigprocmask_commandCC@@ @@@3CCCCCCCC@UO@A@@б@гCZ$listC#C'@гBr#Sys&signalCC@ CC"@@@@@@$ @@@ @@@)@@гC$listD6D:@гB#Sys&signalD+D.@ D/D5@@@@@@I @@@ @@@N@@@,@@Q8 @@@W@@TZ#@@@D&&@B  [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. Each domain, and each thread when the [Thread] module is loaded, has its own signal mask. [sigprocmask] only changes the mask of the current domain or current thread. @raise Invalid_argument on Windows (no inter-process signals on Windows) D3;;D4@@@@@@@DL@@6@BDG@@@@@@s*sigpendingDJDK@б@гD$unitDUDV@@ @@@3DWDWDWDWDWDWDWDW@8@A@@гC㠐$listDdDe@гB#Sys&signalDrDs@ DvDw@@@@@@" @@@ @@@'@@@-@@*0 @@@D#@B Return the set of blocked signals that are currently pending. @raise Invalid_argument on Windows (no inter-process signals on Windows) DD@@@@@@@D@@3@BD@@@@@@I*sigsuspendDD@б@гD5$listDD@гCM#Sys&signalDD@ DD@@@@@@3DDDDDDDD@uK@A @@@" @@@@@гD$unitDD@@ @@@@@@@@"@@@D @CP  [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) DD@@@@@@@E@@@C`E @@@@@@6%pauseE E @б@гDŠ$unitEE@@ @@@ 3EEEEEEEE@Ow8@A@@гDԠ$unitE&E'@@ @@@ @@@@@ @@@E1 @C Wait until a non-ignored, non-blocked signal is delivered. @raise Invalid_argument on Windows (no inter-process signals on Windows) E>E?€Ž@@@@@@@EW@@@CER@@@@@@1'sigwaitEU”EV›@б@гDߠ$listE`©Ea­@гC#Sys&signalEnžEo¡@ Er¢Es¨@@@@@@ 3EuEuEuEuEuEuEuEu@]rK@A @@@" @@@@@гD#Sys&signalE±E´@ EµE»@@@@@@ @@@@@ + @@@E @D  [sigwait sigs] waits until one of the signals in the list [sigs] becomes pending. It then removes this signal from the set of pending signals, and returns the number of this signal. Signal handlers attached to the signals in [sigs] will not be invoked. The signals [sigs] are expected to be blocked before calling [sigwait]. @since 5.4 @raise Invalid_argument on Windows (no inter-process signals on Windows) E¼¼Ehv@@@@@@@E@@@DE@@@@@@?EEɐ4 {1 Time functions} ExxExđ@@@@@@3EEEEEEEE@Qy1@AA+-process_timesQEĔęEĔĦ@@;@@)tms_utime@@E@@@EĩĭEĩĿ@DI; User time for the process EĩEĩ@@@@@@@F@)tms_stime@@E@@@EE@Dc= System time for the process FF @@@@@@@F!@*tms_cutime@@E@@@F!F4@D} & User time for the children processes F"5F#`@@@@@@@F;@*tms_cstime@@E@@@F.aeF/ax@D ( System time for the children processes F<ayF=aŦ@@@@@@@FU@@AA@@@@@F@ĔĔFAŧŪ@D / The execution times (CPU times) of a process. FNūūFOū@@@@@@@@@Fg@@#{{vFVĩĶ@g@@Ш@г~%floatF_ĩĹF`ĩľ@@3F^F^F^F^F^F^F^F^@;@@@A@@@@@&#@@@A@@@@@DFx@@@@@@#}Fw@n@@Ш@г%floatFF@@!@@@@$@DF@@@@@@#F+@q@@Ш@г%floatF.F3@@>@@@@A@E F@@@@@@#Fao@t@@Ш@г%floatFarFaw@@[@@@@^@E&Fϐ@@@@@@@A@E1Fڐ@@@@@@@ @A+"tmRFF@@;@@&tm_sec@@F@@@*FF@EU/ Seconds 0..60 F F@@@@@@@G @&tm_min@@F@@@-G $G 1@Eo/ Minutes 0..59 G @G T@@@@@@@G- @'tm_hour@@F@@@0G UYG!Ug@E- Hours 0..23 G.UuG/UƇ@@@@@@@GG @'tm_mday@@G@@@3G:ƈƌG;ƈƚ@E4 Day of month 1..31 GHƈƨGIƈ@@@@@@@Ga @&tm_mon@@G*@@@6GTGU@E5 Month of year 0..11 GbGc@@@@@@@G{ @'tm_year@@GD@@@9GnGo@Eא- Year - 1900 G|G}/@@@@@@@G@'tm_wday@@G^@@@<G04G0B@E񐠠; Day of week (Sunday is 0) G0PG0p@@@@@@@G@'tm_yday@@Gx@@@?GquGqǃ@F 4 Day of year 0..365 GqǑGqǪ@@@@@@@G@(tm_isdst@@G}@@@BGǫǯGǫǿ@F% ! Daylight time savings in effect GǫGǫ@@@@@@@G@@@A@@@@@GG@F7 9 The type representing wallclock time and calendar date. GG4@@@@@@@@@G@@#G@@@Ш@г#intGG@@3GGGGGGGG@)#;@@@A@@@@@'$@@@A@@@@+@ F^H  @  @@@ @ @#H *@@@Ш@г#intH -H 0@@"@@@@.%@F{H$  @  @@@ @ @#H#U`@@@Ш@г #intH,UcH-Uf@@?@@@@1B@FHA@@@@@@#  H@ƈƓ@@@Ш@г#intHIƈƖHJƈƙ@@\@@@@4_@FH^@@@@@@# H]@@@Ш@г#intHfHg@@y@@@@7|@FH{@@@@@@# Hz@@@Ш@г#intH H@@@@@@:@FH@@@@@@#H0;@@@Ш@г#intH0>H0A@@@@"@@=@G H@@@@@@#Hq|@@@Ш@г#intHqHqǂ@@"а@@%@@@@!G)HҐ@@@@@@#HǫǷ@@@Ш@г$boolHǫǺHǫǾ@@%@@(@@C@$GFH"!@!!@@@!@!@@A@GQH@@@@@@@3HHHHHHHH@@A)(@$timeH7;I7?@б@гH$unitI 7BI 7F@@ @@@\3I I I I I I I I @ 60@A@@гHܠ%floatI7JI7O@@ @@@]@@@@@^@@@I$77 @G J Return the current time since 00:00:00 GMT, Jan. 1, 1970, in seconds. I1PPI2Ȏȟ@@@@@@@IJ@@@GIE@@@@@@1,gettimeofdayIHȡȥIIȡȱ@б@гI$unitISȡȴITȡȸ@@ @@@_3IUIUIUIUIUIUIUIU@J_8@A@@гI%%floatIbȡȼIcȡ@@ @@@`@@@@@a@@@Imȡȡ @GՐ < Same as {!time}, but with resolution better than 1 second. IzI{@@@@@@@I@@@GI@@@@@@1&gmtimeI I@б@гI_%floatII@@ @@@b3IIIIIIII@J_8@A@@г̠"tmII@@ @@@c@@@@@d@@@I @H  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. II<@@@@@@@I@@@H.Iא@@@@@@1)localtimeI>BI>K@б@гI%floatI>NI>S@@ @@@e3IIIIIIII@J_8@A@@г"tmI>WI>Y@@ @@@f@@@@@g@@@I>> @Hg 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}. J ZZJ  @@@@@@@J%@@@HwJ @@@@@@1&mktimeJ# J$ @б@гO"tmJ. J/ @@ @@@h3J0J0J0J0J0J0J0J0@J_8@A@@В@гJ%floatJA  JB %@@ @@@i@@@гq"tmJP (JQ *@@ @@@j"@@@@@ @@k) @@@/ @@l,2@@@Jb  @Hʐ  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. Jo++Jp@@@@@@@J@@"@HJ@@@@@@K%alarmJJ!@б@гJe#intJ$J'@@ @@@m3JJJJJJJJ@dy8@A@@гJt#intJ+J.@@ @@@n@@@@@o@@@J @I g Schedule a [SIGALRM] signal after the given number of seconds. @raise Invalid_argument on Windows J//Js͛@@@@@@@J@@@I#J̐@@@@@@1%sleepJ͝͡Jͦ͝@б@гJ#intJͩ͝Jͬ͝@@ @@@p3JJJJJJJJ@J_8@A@@гJ$unitJ͝ͰJ͝ʹ@@ @@@q@@@@@r@@@J͝͝ @I\ 1 Stop execution for the given number of seconds. K͵͵K͵@@@@@@@K@@@IlK@@@@@@1&sleepfKK@б@гJ栐%floatK#K$@@ @@@s3K%K%K%K%K%K%K%K%@J_8@A@@гJࠐ$unitK2K3@@ @@@t@@@@@u@@@K= @I Stop execution for the given number of seconds. Like [sleep], but fractions of seconds are supported. @since 4.03 (4.12 in UnixLabels) KJKKxΟ@@@@@@@Kc@@@IK^@@@@@@1%times KaΡΥKbΡΪ@б@гK$unitKlΡέKmΡα@@ @@@v3KnKnKnKnKnKnKnKn@J_8@A@@г-process_timesK{ΡεK|Ρ@@ @@@w@@@@@x@@@KΡΡ @I Return the execution times of the process. On Windows: partially implemented, will not report timings for child processes. KK1K@@@@@@@K@@@IK@@@@@@1&utimes KMQKMW@б@гK&stringKMZKM`@@ @@@y3KKKKKKKK@J_8@A@@б@гK%floatKMdKMi@@ @@@z@@б@гK%floatKMmKMr@@ @@@{ @@гK$unitKMvKMz@@ @@@|-@@@@@}0@@@%@@~3( @@@9@@6<@@@KMM@J[  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. L{{L CІ@@@@@@@L@@!@JkL@@@@@@UA+.interval_timer SL ЈЍL ЈЛ@@;@@+ITIMER_REAL @@L"ОТL#ОЭ@J P decrements in real time, and sends the signal [SIGALRM] when expired.L0ЮдL1 @@@@@@@LI@.ITIMER_VIRTUAL @@L9  L: @J S decrements in process virtual time, and sends [SIGVTALRM] when expired. LG#LHf{@@@@@@@L`@+ITIMER_PROF@@LP|~LQ|ы@J (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. L^ьђL_ @@@@@@@@Lw@@@A@@@@@Lb ЈЈ@Jʐ % The three kinds of interval timers. LoAALpAk@@@@@@@A@L@@#WWUT@E@@@WJLUT@TT@@@T@T@#PPL N@?@@@QJLON@NN@@@N@N@#JJL|рH@9@@@KKLIH@HH@@@H@H@@A@DK LCB@BB@@@B@B@@3LLLLLLLL@ @AQb@A+5interval_timer_statusTLmrLm҇@@;@@+it_interval@@L@@@LҊҎLҊҢ@K2( Period LҊҫLҊҸ@@@@@@@L!@(it_value@@L@@@LҹҽLҹ@KL< Current value of the timer LҹLҹ@@@@@@@M "@@AA@@@@@LmmL@K^ 5 The type describing the status of an interval timer MM:@@@@@@@@@M @@#GGBM Ҋҙ@3@@Ш@гJ%floatMҊҜMҊҡ@@R3MMMMMMMM@ha;@@@A@@@@@'$@@@A@@Z@@@VKM.TS@SS@@@S@S@#OOJM-ҹ@;@@Ш@гR%floatM6ҹM7ҹ@@Z"@@]@@%@YKMKWV@VV@@@V@V@@A@RKMVPO@OO@@@O@O@@3MNMNMNMNMNMNMNMN@:@A^]@)getitimerM[ <@M\ <I@б@гN.interval_timerMf <LMg <Z@@ @@@3MhMhMhMhMhMhMhMh@U@A@@г5interval_timer_statusMu <^Mv <s@@ @@@@@@@@@@@M << @K萠 _ Return the current status of the given interval timer. @raise Invalid_argument on Windows M!ttM#Ӱ@@@@@@@M#@@@KM@@@@@@1)setitimerM%M%@б@г.interval_timerM&M&@@ @@@3MMMMMMMM@J_8@A@@б@г5interval_timer_statusM&M&@@ @@@@@г5interval_timer_statusM&M&,@@ @@@@@@@@!@@@'@@$* @@@M%@LC  [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 M'--M0"@@@@@@@N$@@@LSM@@@@@@CN N 7 {1 User id, group id} N3%%N3%A@@@@@@3NNNNNNNN@Uj1@A&getuidN5CGN5CM@б@гMˠ$unitN5CPN5CT@@ @@@@@гM#intN*5CXN+5C[@@ @@@'@@@@@*@@@N55CC @L [ Return the user id of the user executing the process. On Windows: always returns [1]. NB6\\NC8ּ֗@@@@@@@N[%@@@LNV@@@@@@I'geteuidNY:־NZ:־@б@гN$unitNd:־Ne:־@@ @@@3NfNfNfNfNfNfNfNf@b]8@A@@гNG#intNs:־Nt:־@@ @@@@@@@@@@@N~:־־ @L搠 ` Return the effective user id under which the process runs. On Windows: always returns [1]. N;N==@@@@@@@N&@@@LN@@@@@@1&setuidN??CN??I@б@гN#intN??LN??O@@ @@@3NNNNNNNN@J_8@A@@гNj$unitN??SN??W@@ @@@@@@@@@@@N??? @M/ d Set the real user id and effective user id for the process. @raise Invalid_argument on Windows N@XXNBי@@@@@@@N'@@@M?N萠@@@@@@1&getgidNDND@б@гN$unitNDND@@ @@@3NNNNNNNN@J_8@A@@гN٠#intODOD@@ @@@@@@@@@@@OD @Mx \ Return the group id of the user executing the process. On Windows: always returns [1]. OEOG=@@@@@@@O6(@@@MO1@@@@@@1'getegidO4I?CO5I?J@б@гN$unitO?I?MO@I?Q@@ @@@3OAOAOAOAOAOAOAOA@J_8@A@@гO"#intONI?UOOI?X@@ @@@@@@@@@@@OYI?? @M a Return the effective group id under which the process runs. On Windows: always returns [1]. OfJYYOgLؚؿ@@@@@@@O)@@@MOz@@@@@@1&setgidO}NO~N@б@гO\#intONON@@ @@@3OOOOOOOO@J_8@A@@гOE$unitONON@@ @@@@@@@@@@@ON @N f Set the real group id and effective group id for the process. @raise Invalid_argument on Windows OOOQE@@@@@@@O*@@@NOÐ@@@@@@1)getgroupsOSGKOSGT@б@гO$unitOSGWOSG[@@ @@@3OOOOOOOO@J_8@A@@гOh%arrayOSGcOSGh@гO#intOSG_OSGb@@ @@@@@@@@@ @@@$@@!'@@@OSGG@Nb w Return the list of groups to which the user executing the process belongs. On Windows: always returns [[|1|]]. PTiiPWټ@@@@@@@P +@@*@NrP@@@@@@@)setgroupsPYPY@б@гO%arrayP)YP*Y@гP#intP3YP4Y@@ @@@3P5P5P5P5P5P5P5P5@cxB@A@@@ @@@ @@гO$unitPGYPHY@@ @@@@@@@@@@@PRY @N [setgroups groups] sets the supplementary group IDs for the calling process. Appropriate privileges are required. @raise Invalid_argument on Windows P_Z  P`]ڄڭ@@@@@@@Px,@@@NPs@@@@@@6*initgroupsPv_گڳPw_گڽ@б@гPL&stringP_گP_گ@@ @@@3PPPPPPPP@On8@A@@б@гPf#intP_گP_گ@@ @@@@@гPM$unitP_گP_گ@@ @@@@@@@@!@@@'@@$* @@@P_گگ@O  [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 P`Pe۴@@@@@@@P-@@@O%Pΐ@@@@@@CA+,passwd_entryUPgPg@@;@@'pw_name@@P@@@PhPh@@P/@)pw_passwd@@P@@@Pi  Pi  @@Q0@&pw_uid @@P@@@İPj!%Pj!2@@Q1@&pw_gid!@@P@@@ǰQk37Qk3D@@Q2@(pw_gecos"@@P@@@ʰQlEIQlE[@@Q(3@&pw_dir#@@P@@@ͰQm\`Qm\p@@Q44@(pw_shell$@@P@@@аQ'nquQ(nq܆@@Q@5@@@A@@@@@Q+gQ,o܇܊@O 0 Structure of entries in the [passwd] database. Q9p܋܋Q:p܋@@@@@@@@@QR.@@#ggbQAh@a@@Ш@гj&stringQJhQKh@@r3QIQIQIQIQIQIQIQI@;@@@A@@@@@'$@@@A@@z@@@v@#rrmQXi @l@@Ш@гu&stringQai Qbi @@}@@@@@|@#xxsQjj!+@r@@Ш@г{#intQsj!.Qtj!1@@)@@@@,@@#~~yQ|k3=@x@@Ш@г#intQk3@Qk3C@@;@@@@>@@#QlEQ@~@@Ш@г&stringQlETQlEZ@@M@@@@P@@#Qm\f@@@Ш@г&stringQm\iQm\o@@_@@@@b@@#Qnq}@@@Ш@г&stringQnq܀@@p@@@@s@@@A@P&Qϐ@@@@@@@3QQQQQQQQ@}@A@A++group_entry%VQrQr@@;@@'gr_name&@@Q@@@QsQs@@Q7@)gr_passwd'@@Q@@@QtQt@@R8@&gr_gid(@@Q@@@QuQu@@R9@&gr_mem)@@QQ@@@@@@R vR v.@@R$:@@@A@@@@@RrRw/2@Px 0 Structure of entries in the [groups] database. Rx33Rx3h@@@@@@@@@R66@@#HHCR%s@B@@Ш@гK&stringR.sR/s@@S3R-R-R-R-R-R-R-R-@e_b;@@@A@@@@@'$@@@A@@[@@@W@#SSNR<t@M@@Ш@гV&stringREtRFt@@^@@a@@@]@#YYTRNu @S@@Ш@г\#intRWuRXu@@d)@@g@@,@c@#__UR`v@T@@Ш@гb%arrayRiv)^@гf&stringRqv"Rrv(@@nC@@@sDi@@v@@G@m@@A@iPRgf@ff@@@f@f@@3RRRRRRRR@Q@Aut@(getlogin*RzjnRzjv@б@гRE$unitRzjyRzj}@@ @@@3RRRRRRRR@l@A@@гRq&stringRzj݁Rzj݇@@ @@@@@@@@@@@Rzjj @Q : Return the login name of the user executing the process. R{݈݈R{݈@@@@@@@R;@@@Q)RҐ@@@@@@1(getpwnam+R}R}@б@гR&stringR}R}@@ @@@3RRRRRRRR@J_8@A@@г,passwd_entryR}R}@@ @@@@@@@@ @@@R} @Qb s Find an entry in [passwd] with the given name. @raise Not_found if no such entry exists, or always on Windows. S~S"g@@@@@@@S <@@@QrS@@@@@@1(getgrnam,SimSiu@б@гR&stringS)ixS*i~@@ @@@ 3S+S+S+S+S+S+S+S+@J_8@A@@гc+group_entryS8iނS9iލ@@ @@@ @@@@@ @@@SCii @Q s Find an entry in [group] with the given name. @raise Not_found if no such entry exists, or always on Windows. SPގގSQ@@@@@@@Si=@@@QSd@@@@@@1(getpwuid-Sg Sh@б@гSF#intSrSs@@ @@@ 3StStStStStStStSt@J_8@A@@г,passwd_entrySS*@@ @@@@@@@@@@@S @Q w Find an entry in [passwd] with the given user id. @raise Not_found if no such entry exists, or always on Windows. S++Sbߧ@@@@@@@S>@@@RS@@@@@@1(getgrgid.Sߩ߭Sߩߵ@б@гS#intSߩ߸Sߩ߻@@ @@@3SSSSSSSS@J_8@A@@г+group_entrySߩ߿Sߩ@@ @@@@@@@@@@@Sߩߩ @R= w Find an entry in [group] with the given group id. @raise Not_found if no such entry exists, or always on Windows. SSG@@@@@@@S?@@@RMS@@@@@@1TT8 {1 Internet addresses} TJJTJg@@@@@@3SSSSSSSS@CX1@AA+)inet_addr/WT joTjx@@;@@>A@@@@@Tjj@Ry * The abstract type of Internet addresses. TyyTy@@@@@@@@@T7@@@@A@RT1@@@@@@@*@3inet_addr_of_string0T5T6@б@гT &stringT@TA@@ @@@3TBTBTBTBTBTBTBTB@D>8@A@@гB)inet_addrTOTP@@ @@@@@@@@@@@TZ @R 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. TgTh@@@@@@@@TA@@@RT{@@@@@@13string_of_inet_addr1T~BFTBY@б@г|)inet_addrTB\TBe@@ @@@3TTTTTTTT@J_8@A@@гTc&stringTBiTBo@@ @@@@@@@@@@@TBB @S Return the printable representation of the given Internet address. See {!inet_addr_of_string} for a description of the printable representation. TppT@@@@@@@TB@@@STĐ@@@@@@1-inet_addr_any2TT"@гà)inet_addrT%T.@@ @@@3TTTTTTTT@H]6@A@@@T @SB  A special IPv4 address, for use only with [bind], representing all the Internet addresses that the host machine possesses. T//Tr@@@@@@@UC@@@SRT@@@@@@!2inet_addr_loopback3TT@г)inet_addrUU@@ @@@3U U U U U U U U @8K6@A@@@U @Sy E A special IPv4 address representing the host machine ([127.0.0.1]). UU"@@@@@@@U7D@@@SU2@@@@@@!.inet6_addr_any4U5$(U6$6@г1)inet_addrU>$9U?$B@@ @@@3U@U@U@U@U@U@U@U@@8K6@A@@@UH$$ @S  A special IPv6 address, for use only with [bind], representing all the Internet addresses that the host machine possesses. UUCCUV@@@@@@@UnE@@@SUi@@@@@@!3inet6_addr_loopback5UlUm@гh)inet_addrUuUv@@ @@@3UwUwUwUwUwUwUwUw@8K6@A@@@U @S琠 ? A special IPv6 address representing the host machine ([::1]). UU1@@@@@@@UF@@@SU@@@@@@!-is_inet6_addr6U37U3D@б@г)inet_addrU3GU3P@@ @@@3UUUUUUUU@:M8@A@@гU|$boolU3TU3X@@ @@@@@@@@@@@U33 @T0 C Whether the given [inet_addr] is an IPv6 address. @since 4.12 UYYU@@@@@@@UG@@@T@U鐠@@@@@@1UU- {1 Sockets} UU@@@@@@3UUUUUUUU@CX1@AA+-socket_domain7XVV@@;@@'PF_UNIX8@@V V @Ts- Unix domain VV@@@@@@@V1I@'PF_INET9@@V!V" @T8 Internet domain (IPv4) V/ V0=@@@@@@@VHJ@(PF_INET6:@@V8>@V9>J@T8 Internet domain (IPv6) VF>^VG>{@@@@@@@V_K@@@A@@@@@VJ@T 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. VW||VX0@@@@@@@A@VpH@@#WWUT@E@@@WTVpUT@TT@@@T@T@#PPVoN@?@@@QTVON@NN@@@N@N@#JJV>BH@9@@@KTVIH@HH@@@H@H@@A@DTVCB@BB@@@B@B@@O`@A++socket_type;YV27V2B@@;@@+SOCK_STREAM<@@VEIVET@U/ Stream socket VEeVEy@@@@@@@VM@*SOCK_DGRAM=@@Vz|Vz@U,1 Datagram socket VzVz@@@@@@@VN@(SOCK_RAW>@@VV@UC, Raw socket VV@@@@@@@WO@.SOCK_SEQPACKET?@@VV@UZ: Sequenced packets socket VW"@@@@@@@WP@@@A@@@@@W22@Uk 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. W##W @@@@@@@A@W)L@@#nnlk@\@@@nUW)lk@kk@@@k@k@#ggW(z~e@V@@@hUW:fe@ee@@@e@e@#aaW9_@P@@@bUWK`_@__@@@_@_@#[[WJY@J@@@\UW\ZY@YY@@@Y@Y@@A@UUWgTS@SS@@@S@S@@3W_W_W_W_W_W_W_W_@nhb@Abs@A+(sockaddr@ZWn Wo @@;@@)ADDR_UNIXAWJ@@@,@@W} W~3@@WR@)ADDR_INETB@@@-Wf@@@.@@W46W4T@@WS@@@A@@@@@W  @U  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. WZZW^~@@@@@@@@@WQ@@#33,W)@+@г4&stringW-5@@;3WWWWWWWW@SL;@@@A@@@@@%#@@@A;@@@@=@#99W48W4A@-@г;)inet_addrW4EW4N@@C@@г@#intW4QA@@GB@@@@D@@A@@V:W㐠?>@>>@@@>@>@@3WWWWWWWW@*@ALO@&socketCWW@б'cloexecгW$boolWW@@ @@@:3WWWWWWWW@G@A@@б@г-socket_domainXX@@ @@@;@@б@гs+socket_typeXX@@ @@@< @@б@гW#intX$X%@@ @@@=/@@гB렐*file_descrX1X2@@ @@@><@@@@@??@@@%@@@B( @@@7@@AE:@@V+nN@@@B @@CLXG@@ @XJ@V  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. XWXX@@@@@@@XpT@@)@VXk@@@@@@l2domain_of_sockaddrDXnXo@б@г (sockaddrXyXz"@@ @@@D3X{X{X{X{X{X{X{X{@8@A@@г-socket_domainX&X3@@ @@@E@@@@@F@@@X @V A Return the socket domain adequate for the given socket address. X44X4z@@@@@@@XU@@@W X@@@@@@1*socketpairEX|X|@б'cloexecгX$boolXX@@ @@@G3XXXXXXXX@La:@A@@б@гՠ-socket_domainXX@@ @@@H@@б@гB+socket_typeXX@@ @@@I @@б@гXǠ#intXX@@ @@@J/@@В@гC*file_descrYY@@ @@@K@@@@гC͠*file_descrYY @@ @@@LO@@@@@ @@MV @@@- @@NY0@@@?@@O\B@@@Q@@P_T@@p,Wh@@@Q @@RfY0@@ @Y3|| @W Create a pair of unnamed sockets, connected together. See {!set_close_on_exec} for documentation on the [cloexec] optional argument. Y@  YA@@@@@@@YYV@@0@WYT@@@@@@&acceptFYWYX@б'cloexecгY#$boolYdYe@@ @@@S3YfYfYfYfYfYfYfYf@:@A@@б@гD/*file_descrYuYv@@ @@@T@@В@гD@*file_descrYY@@ @@@U"@@@г'(sockaddrY Y@@ @@@V1@@@@@ @@W8 @@@- @@X;0@@L,ӠD@@@Y @@ZBY@@ @Y@X 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. YY@@@@@@@YW@@*@X'YА@@@@@@b$bindGYY!@б@гD*file_descrY$Y.@@ @@@[3YYYYYYYY@{8@A@@б@г(sockaddrY2Y:@@ @@@\@@гY$unitY>YB@@ @@@]@@@@@^!@@@'@@_$* @@@Z @Xr> Bind a socket to an address. ZCCZCf@@@@@@@Z0X@@@XZ+@@@@@@C'connectHZ.hlZ/hs@б@гD*file_descrZ9hvZ:h@@ @@@`3Z;Z;Z;Z;Z;Z;Z;Z;@\q8@A@@б@гܠ(sockaddrZJhZKh@@ @@@a@@гZ$unitZWhZXh@@ @@@b@@@@@c!@@@'@@d$* @@@Zehh@X͐ ! Connect a socket to an address. ZrZs@@@@@@@ZY@@@XZ@@@@@@C&listenIZZ@б@гEN*file_descrZZ@@ @@@e3ZZZZZZZZ@\q8@A@@б@гZy#intZZ@@ @@@f@@гZ`$unitZZ@@ @@@g@@@@@h!@@@'@@i$* @@@Z@Y( w Set up a socket for receiving connection requests. The integer argument is the maximal number of pending requests. ZZ'`@@@@@@@ZZ@@@Y8Zᐠ@@@@@@CA+0shutdown_commandJ[ZbgZbw@@;@@0SHUTDOWN_RECEIVEK@@Zz~Zz@YX5 Close for receiving ZzZz@@@@@@@[\@-SHUTDOWN_SENDL@@[[@Yo3 Close for sending [[@@@@@@@[-]@,SHUTDOWN_ALLM@@[[@Y, Close both [+[,@@@@@@@[D^@@@A@@@@@[/bb@Y & The type of commands for [shutdown]. [<  [= K@@@@@@@A@[U[@@#WWUT@E@@@WY[UUT@TT@@@T@T@#PP[TN@?@@@QY[fON@NN@@@N@N@#JJ[eH@9@@@KY[wIH@HH@@@H@H@@A@DY[CB@BB@@@B@B@@3[z[z[z[z[z[z[z[z@@AQb@(shutdownN[NR[NZ@б@гFM*file_descr[N][Ng@@ @@@p3[[[[[[[[@@A@@б@г0shutdown_command[Nk[N{@@ @@@q@@г[_$unit[N[N@@ @@@r@@@@@s!@@@'@@t$* @@@[NN@Z'  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). [[j@@@@@@@[_@@@Z7[@@@@@@C+getsocknameO[ [ @б@гF*file_descr[ [ @@ @@@u3[[[[[[[[@\q8@A@@г(sockaddr[ [ @@ @@@v@@@@@w@@@\  @Zp ) Return the address of the given socket. \ \ @@@@@@@\.`@@@Z\)@@@@@@1+getpeernameP\, \- @б@гF*file_descr\7 \8 @@ @@@x3\9\9\9\9\9\9\9\9@J_8@A@@гؠ(sockaddr\F  \G (@@ @@@y@@@@@z@@@\Q  @Z ? Return the address of the host connected to the given socket. \^))\_)m@@@@@@@\wa@@@Z\r@@@@@@1A+(msg_flagQ\\vot\wo|@@;@@'MSG_OOBR@@\\@@\c@-MSG_DONTROUTES@@\\@@\d@(MSG_PEEKT@@\\@@\e@@@A@@@@@\oo@Z < The flags for {!recv}, {!recvfrom}, {!send} and {!sendto}. \\@@@@@@@A@\b@@#--+*@)@@@-@#))\'@&@@@*@#&&\$@#@@@'@@A@#[\Ȑ"!@!!@@@!@!@@3\\\\\\\\@v@A03@$recvU\\@б@гG*file_descr\\ @@ @@@3\\\\\\\\@nh@A@@б@г\%bytes\ \@@ @@@@@б@г\͠#int\\@@ @@@ @@б@г\ܠ#int]]  @@ @@@/@@б@г\$list]-]1@г(msg_flag]!$]",@@ @@@H@@@@@@M @@г]#int]35]48@@ @@@Z@@@@@]@@@4@@`7 @@@F@@cI@@@X@@f[@@@l@@io@@@]J@[ ' Receive data from a connected socket. ]W99]X9e@@@@@@@]pf@@'@[]k@@@@@@(recvfromV]ngk]ogs@б@гH3*file_descr]yvx]zv@@ @@@3]{]{]{]{]{]{]{]{@8@A@@б@г]Q%bytes]v]v@@ @@@@@б@г]m#int]v]v@@ @@@ @@б@г]|#int]v]v@@ @@@/@@б@г]6$list]v]v@гK(msg_flag]v]v@@ @@@H@@@@@@M @@В@г]#int]]@@ @@@^@@@гx(sockaddr]]@@ @@@m@@@@@ @@t @@@. @@w5@@@N@@zQ@@@`@@}c@@@r@@u@@@@@@@@^gg@\l * Receive data from an unconnected socket. ^^@@@@@@@^*g@@.@\|^%@@@@@@$sendW^(^)@б@гH*file_descr^3 ^4  @@ @@@3^5^5^5^5^5^5^5^5@8@A@@б@г^ %bytes^D  ^E @@ @@@@@б@г^'#int^S ^T @@ @@@ @@б@г^6#int^b ^c  @@ @@@/@@б@г]$list^q -^r 1@г(msg_flag^{ $^| ,@@ @@@H@@@@@@M @@г^a#int^ 5^ 8@@ @@@Z@@@@@]@@@4@@`7 @@@F@@cI@@@X@@f[@@@l@@io@@@^@] $ Send data over a connected socket. ^!99^!9b@@@@@@@^h@@'@]^Ő@@@@@@.send_substringX^#dh^#dv@б@гI*file_descr^$y{^$y@@ @@@3^^^^^^^^@8@A@@б@г^&string^$y^$y@@ @@@@@б@г^Ǡ#int^$y^$y@@ @@@ @@б@г^֠#int_$y_$y@@ @@@/@@б@г^$list_$y_$y@г(msg_flag_$y_$y@@ @@@H@@@@@@M @@г_#int_-$y_.$y@@ @@@Z@@@@@]@@@4@@`7 @@@F@@cI@@@X@@f[@@@l@@io@@@_D#dd@] a Same as [send], but take the data from a string instead of a byte sequence. @since 4.02 _Q%_R' @@@@@@@_ji@@'@]_e@@@@@@&sendtoY_h)"_i)(@б@гJ-*file_descr_s*+-_t*+7@@ @@@3_u_u_u_u_u_u_u_u@8@A@@б@г_K%bytes_*+;_*+@@@ @@@@@б@г_g#int_*+D_*+G@@ @@@ @@б@г_v#int_*+K_*+N@@ @@@/@@б@г_0$list_*+[_*+_@гE(msg_flag_*+R_*+Z@@ @@@H@@@@@@M @@б@гa(sockaddr_+cg_+co@@ @@@\@@г_#int_+cs_+cv@@ @@@i@@@@@l@@@&@@o- @@@F@@rI@@@X@@u[@@@j@@xm@@@~@@{@@@_)@^^ ' Send data over an unconnected socket. `,ww`,w@@@@@@@`j@@*@^n`@@@@@@0sendto_substringZ`.`.@б@гJߠ*file_descr`%/`&/@@ @@@3`'`'`'`'`'`'`'`'@8@A@@б@г`&string`6/`7/@@ @@@@@б@г`#int`E/`F/@@ @@@ @@б@г`(#int`T/`U/@@ @@@/@@б@г_⠐$list`c/`d/@г(msg_flag`m/`n/@@ @@@H@@@@@@M @@б@г (sockaddr`0`0@@ @@@\@@г`b#int`0`0@@ @@@i@@@@@l@@@&@@o- @@@F@@rI@@@X@@u[@@@j@@xm@@@~@@{@@@`.@_ c Same as [sendto], but take the data from a string instead of a byte sequence. @since 4.02 `1`3]o@@@@@@@`k@@*@_ `ɐ@@@@@@``֐4 {1 Socket options} `7ss`7s@@@@@@3````````@1@AA+2socket_bool_option[]`:`:@@;@@(SO_DEBUG\@@`;`;@_S> Record debugging information `;`;@@@@@@@am@,SO_BROADCAST]@@a<a<@_j & Permit sending of broadcast messages a<a<@@@@@@@a(n@,SO_REUSEADDR^@@a=!a=/@_ ) Allow reuse of local addresses for bind a&=2a'=`@@@@@@@a?o@,SO_KEEPALIVE_@@a/>aca0>aq@_8 Keep connection active a=>ata>>a@@@@@@@aVp@,SO_DONTROUTE`@@aF?aG?@_ ( Bypass the standard routing algorithms aT?aU?@@@@@@@amq@,SO_OOBINLINEa@@a]@a^@@_Ɛ Leave out-of-band data in line ak@al@ @@@@@@@ar@-SO_ACCEPTCONNb@@atA auA @_ݐ , Report whether socket listening is enabled aA aA P@@@@@@@as@+TCP_NODELAYc@@aBQSaBQ`@_ - Control the Nagle algorithm for TCP sockets aBQdaBQ@@@@@@@at@)IPV6_ONLYd@@aCaC@` 2 Forbid binding an IPv6 socket to an IPv4 address aCaC@@@@@@@au@,SO_REUSEPORTe@@aDaD@`" 8 Allow reuse of address and port bindings. @since 4.12. aDaD2@@@@@@@av@@@A@@@@@a:@`3 The socket options that can be consulted with {!getsockopt} and modified with {!setsockopt}. These options have a boolean ([true]/[false]) value. aE33aG@@@@@@@A@al@@#@@@@`Ha񐠠@@@@@@#a<@@@@򠰠`Yb@@@@@@#b=#@@@@젰`jb@@@@@@#b>ae@@@@栰`{b$@@@@@@#ߠ߰b#?@@@@࠰`b5@@@@@@#٠ٰb4@@@@@ڠ`bF@@@@@@#ӠӰbEA @@@@Ԡ`bW@@@@@@#͠ͰbVBQU@@@@Π`bh@@@@@@#ǠǰbgC@@@@Ƞ`by@@@@@@#bxD@@@@ `b@@@@@@@A@`b@@@@@@@@A+1socket_int_optionf^bIbI@@;@@)SO_SNDBUFg@@bJbJ@a 5 Size of send buffer bJbJ@@@@@@@bx@)SO_RCVBUFh@@bKbK&@a$9 Size of received buffer bK*bKH@@@@@@@by@(SO_ERRORi@@bLIKbMV@0ocaml.deprecatedbMV\bMVl@ "Use Unix.getsockopt_error instead.bMVnbMV@@bMVmbMV@@@@@@bMVZ@aT / Deprecated. Use {!getsockopt_error} instead. bNbN@@@@@@@cz@'SO_TYPEj@@cOcO@ak8 Report the socket type cOcO@@@@@@@c){@+SO_RCVLOWATk@@cPcP @a 9 Minimum number of bytes to process for input operations c'P c(PJ@@@@@@@c@|@+SO_SNDLOWATl@@c0QKMc1QKZ@a : Minimum number of bytes to process for output operations c>QK\c?QK@@@@@@@cW}@@@A@@@@@cBI@a The socket options that can be consulted with {!getsockopt_int} and modified with {!setsockopt_int}. These options have an integer value. cORcPT3@@@@@@@A@chw@@#@@@@ach@@@@@@#cgK@@@@acy@@@@@@#cxLIMcyLIU@@@@@@@@@ac@@@@@@#cO@@@@ac@@@@@@#cP@~@@@bc@@@@@@#cQKO@x@@@b cɐ@@@@@@@A@b+cԐ@@@@@@@3cccccccc@@A@A+4socket_optint_optionm_cV5:cV5N@@;@@)SO_LINGERn@@cWQScWQ\@bN Whether to linger on closed connections that have data present, and for how long (in seconds) cWQbcY@@@@@@@d @@@A@@@@@cV55@b_ 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''. dZd\w@@@@@@@A@d~@@#))'&@@@@)btd'&@&&@@@&@&@@A@"bd(! @  @@@ @ @@3d d d d d d d d @U@A/@@A+3socket_float_optiono`d/^d0^@@;@@+SO_RCVTIMEOp@@d9_d:_@b> Timeout for input operations dG_dH_ @@@@@@@d`@+SO_SNDTIMEOq@@dP`dQ`@b? Timeout for output operations d^`!d_`E@@@@@@@dw@@@A@@@@@db^@bʐ 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. doaFFdpd-@@@@@@@A@d@@#@@>=@.@@@@bd>=@==@@@=@=@#99d`7@(@@@:bd87@77@@@7@7@@A@3bd21@11@@@1@1@@3dddddddd@}@A@Q@*getsockoptrdf/3df/=@б@гOo*file_descrdf/@df/J@@ @@@3dddddddd@@A@@б@г栐2socket_bool_optiondf/Ndf/`@@ @@@@@гd$booldf/ddf/h@@ @@@@@@@@!@@@'@@$* @@@df//@cI N Return the current status of a boolean-valued option in the given socket. dgiidh@@@@@@@e@@@cYe@@@@@@C*setsockoptsejej@б@гOʠ*file_descrejej@@ @@@3eeeeeeee@\q8@A@@б@гA2socket_bool_optione!je"j@@ @@@@@б@гd$boole0je1j@@ @@@ @@гd렐$unite=je>j@@ @@@-@@@@@0@@@%@@3( @@@9@@6<@@@eNj@c ; Set or clear a boolean-valued option in the given socket. e[ke\k@@@@@@@@et@@!@ceo@@@@@@U.getsockopt_inttermBFesmBT@б@гP7*file_descre}mBWe~mBa@@ @@@3eeeeeeee@n8@A@@б@г1socket_int_optionemBeemBv@@ @@@@@гeo#intemBzemB}@@ @@@@@@@@!@@@'@@$* @@@emBB@d < Same as {!getsockopt} for an integer-valued socket option. en~~en~@@@@@@@e@@@d!eʐ@@@@@@C.setsockopt_intuepep@б@гP*file_descrepep@@ @@@3eeeeeeee@\q8@A@@б@гO1socket_int_optionepep@@ @@@@@б@гe̠#intepep@@ @@@ @@гe$unitfpfp@@ @@@-@@@@@0@@@%@@3( @@@9@@6<@@@fp@d~ < Same as {!setsockopt} for an integer-valued socket option. f#qf$qF@@@@@@@f<@@!@df7@@@@@@U1getsockopt_optintvf:sHLf;sH]@б@гP*file_descrfEsH`fFsHj@@ @@@3fGfGfGfGfGfGfGfG@n8@A@@б@г{4socket_optint_optionfVsHnfWsH@@ @@@@@гeŠ&optionfcsHfdsH@гfA#intfmsHfnsH@@ @@@(@@@@@@ - @@@"@@ 0%@@@6@@ 39@@@fsHH@d萠 O Same as {!getsockopt} for a socket option whose value is an [int option]. ftfu@@@@@@@f@@-@df@@@@@@R1setsockopt_optintwfwfw@б@гQi*file_descrfxfx@@ @@@ 3ffffffff@k8@A@@б@г堐4socket_optint_optionfxfx'@@ @@@ @@б@гf1&optionfx/fx5@гf#intfx+fx.@@ @@@*@@@@@@/ @@гf$unitfx9fx=@@ @@@<@@@@@?@@@4@@B7 @@@H@@EK@@@fw@ed O Same as {!setsockopt} for a socket option whose value is an [int option]. g y>>g z{@@@@@@@g"@@!@etg@@@@@@d0getsockopt_floatxg |g!|@б@гQ堐*file_descrg+|g,|@@ @@@3g-g-g-g-g-g-g-g-@}8@A@@б@г 3socket_float_optiong<|g=|@@ @@@@@гg %floatgI|gJ|@@ @@@@@@@@!@@@'@@$* @@@gW|@e W Same as {!getsockopt} for a socket option whose value is a floating-point number. gd}ge~2@@@@@@@g}@@@egx@@@@@@C0setsockopt_floatyg{48g|4H@б@гR@*file_descrg4Kg4U@@ @@@3gggggggg@\q8@A@@б@гh3socket_float_optiong4Yg4l@@ @@@@@б@гgi%floatg4pg4u@@ @@@ @@гga$unitg4yg4}@@ @@@-@@@@@0@@@%@@3( @@@9@@ 6<@@@g44@f, W Same as {!setsockopt} for a socket option whose value is a floating-point number. g~~g@@@@@@@g@@!@f<g吠@@@@@@U0getsockopt_errorzgg@б@гR*file_descrgg@@ @@@!3gggggggg@n8@A@@гgd&optionhh @гf%errorh h @@ @@@"@@@@@@$ @@@$@@%!'@@@h@f P Return the error condition associated with the given socket, and clear it. h)h*Oc@@@@@@@hB@@*@fh=@@@@@@@hKhJ - {1 High-level network connection functions} hGeehHe@@@@@@3hFhFhFhFhFhFhFhF@Rg1@A/open_connection{hShT@б@г(sockaddrh^h_@@ @@@&@@В@гf*in_channelhohp@@ @@@'+@@@гg +out_channelh~h@@ @@@(:@@@@@ @@)A @@@- @@*D0@@@h@f . 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. hh@@@@@@@h@@"@gh@@@@@@c3shutdown_connection|h h "@б@гgK*in_channelh %h /@@ @@@+3hhhhhhhh@|w8@A@@гh|$unith 3h 7@@ @@@,@@@@@-@@@h   @gA 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. h88h q @@@@@@@h@@@gQh@@@@@@10establish_server}h  h  @б@б@гg*in_channeli   i   @@ @@@.3i i i i i i i i @La:@A@@б@гg+out_channeli  i  @@ @@@/@@гh֠$uniti(  i)  @@ @@@0@@@@@1!@@@'@@2$* @@б@гϠ(sockaddri=  i>  @@ @@@33@@гh$unitiJ  iK  @@ @@@4@@@@@@5C@@@$@@6FiV   @@@iY  @g  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. if  ig  @@@@@@@i@@@giz@@@@@@fii ! {1 Host and protocol databases} i  i  @@@@@@3iiiiiiii@x1@AA+*host_entry~ai  i  @@;@@&h_name@@ik@@@7i  i  @@i@)h_aliases@@i4i{@@@:@@@<i  i  .@@i@*h_addrtype@@@@@?i / 3i / N@@i@+h_addr_list@@iQ@@@B@@@Di O Si O p@@i@@@A@@@@@i  i q t@h9 / Structure of entries in the [hosts] database. i u ui u @@@@@@@@@i@@#MMHi  @G@@Ш@гP&stringi  i  @@X3iiiiiiii@lf;@@@A@@@@@&#@@@A@@_@@8@[@#WWMi  @L@@Ш@гZ%arrayj  (j  -@г_&stringj  !j  '@@g@@@l  @@o@@=#@f@#bb]j / =@\@@Ш@гe-socket_domainj! / @j" / M@@m2@@p@@@5@l@#hh^j* O ^@]@@Ш@гk%arrayj3 O kg@гo)inet_addrj; O aj< O j@@wL@@@|Mr@@@@EP@v@@A@rhjQpo@oo@@@o@o@@ư}|@A+.protocol_entrybjV  jW  @@;@@&p_name@@j0@@@Zjc  jd  @@j|@)p_aliases@@ij@@@@]@@@_jt  ju  @@j@'p_proto@@jV@@@bj  j @@j@@@A@@@@@j  j @h퐠 3 Structure of entries in the [protocols] database. j  j B@@@@@@@@@j@@#<<7j  @6@@Ш@г?&stringj  j  @@G3jjjjjjjj@!V;@@@A@@@@@'$@@@A@@O@@[@K@#GG=j  @<@@Ш@гJ%arrayj  j  @гO&stringj  j  @@W @@@\! @@_@@`$@V@#RRMj  @L@@Ш@гU#intj V@@\2W@@_@@c5@[@@A@WiAjꐠUT@TT@@@T@T@@3jjjjjjjj@?@Acb@A+-service_entrycjDIjDV@@;@@&s_name@@j@@@sjY]jYm@@k@)s_aliases@@jj@@@v@@@xknrkn@@k'@&s_port@@j@@@{kk@@k3@'s_proto@@j@@@~k&k'@@k?@@@A@@@@@k*DDk+@i 2 Structure of entries in the [services] database. k8k9@@@@@@@@@kQ@@#HHCk@Yc@B@@Ш@гK&stringkIYfkJYl@@S3kHkHkHkHkHkHkHkH@b;@@@A@@@@@'$@@@A@@[@@t@W@#SSIkWn{@H@@Ш@гV%arrayk`nkan@г[&stringkin~kjn@@c @@@h! @@k@@y$@b@#^^Yks@X@@Ш@гa#intk|k}@@i3@@l@@|6@h@#dd_k@^@@Ш@гg&stringkh@@nDi@@q@@G@m@@A@iikgf@ff@@@f@f@@3kkkkkkkk@Q@Aut@+gethostnamekk@б@гk`$unitkk@@ @@@3kkkkkkkk@l@A@@гk&stringk k@@ @@@@@@@@@@@k @j4 $ Return the name of the local host. kk:@@@@@@@k@@@jDk퐠@@@@@@1-gethostbynamek<@k<M@б@гkƠ&stringk<Pk<V@@ @@@3kkkkkkkk@J_8@A@@гy*host_entryl <Zl <d@@ @@@@@@@@@@@l<< @j} ] Find an entry in [hosts] with the given name. @raise Not_found if no such entry exists. l"eel#@@@@@@@l;@@@jl6@@@@@@1-gethostbyaddrl9l:@б@г7)inet_addrlDlE@@ @@@3lFlFlFlFlFlFlFlF@J_8@A@@г *host_entrylSlT@@ @@@@@@@@@@@l^ @jƐ ` Find an entry in [hosts] with the given address. @raise Not_found if no such entry exists. lkll*Z@@@@@@@l@@@jl@@@@@@1.getprotobynamel\`l\n@б@гlX&stringl\ql\w@@ @@@3llllllll@J_8@A@@гF.protocol_entryl\{l\@@ @@@@@@@@@@@l\\ @k a Find an entry in [protocols] with the given name. @raise Not_found if no such entry exists. ll@@@@@@@l@@@klȐ@@@@@@10getprotobynumberll@б@гl#intl l @@ @@@3llllllll@J_8@A@@г.protocol_entryll@@ @@@@@@@@@@@l @kX l Find an entry in [protocols] with the given protocol number. @raise Not_found if no such entry exists. ll`@@@@@@@m@@@khm@@@@@@1-getservbynamemm@б@гlꠐ&stringmm @@ @@@3m!m!m!m!m!m!m!m!@J_8@A@@б@гl&stringm0m1@@ @@@@@гM-service_entrym=m>@@ @@@@@@@@!@@@'@@$* @@@mK@k ` Find an entry in [services] with the given name. @raise Not_found if no such entry exists. mXmY-@@@@@@@mq@@@kml@@@@@@C-getservbyportmo/3mp/@@б@гmN#intmz/Cm{/F@@ @@@3m|m|m|m|m|m|m|m|@\q8@A@@б@гmV&stringm/Jm/P@@ @@@@@г-service_entrym/Tm/a@@ @@@@@@@@!@@@'@@$* @@@m//@l j Find an entry in [services] with the given service number. @raise Not_found if no such entry exists. mbbm@@@@@@@m@@@lmǐ@@@@@@CA+)addr_infodmm@@;@@)ai_family@@@@@mm@lA/ Socket domain m m @@@@@@@m@+ai_socktype@@R@@@m!%m!?@l[- Socket type n!In![@@@@@@@n@+ai_protocol@@m@@@n \`n \r@lu8 Socket protocol number n\n\@@@@@@@n3@'ai_addr@@@@@n&n'@l) Address n4n5@@@@@@@nM@,ai_canonname@@n @@@n@nA@l6 Canonical host name nNnO@@@@@@@ng@@@A@@@@@nRnS @l 1 Address information returned by {!getaddrinfo}. n`!!na!W@@@@@@@@@ny@@#nh@@@Ш@г-socket_domainnqnr@@3npnpnpnpnpnpnpnp@ ;@@@A@@@@@'$@@@A@@@@@ln@@@@@@#n!0@@@Ш@г+socket_typen!3n!>@@"@@@@%@ln@@@@@@#n\k@@@Ш@г#intn\nn\q@@?@@@@B@mnŐ@@@@@@#n@@@Ш@г(sockaddrnn@@\@@@@_@m9n␠@@@@@@#n@@@Ш@г&stringn@@x@@@@{@mUn@@@@@@@A@m`o @@@@@@@3oooooooo@@A@A+2getaddrinfo_optioneoY^oYp@@;@@)AI_FAMILY @@@@@oswos@m Impose the given socket domain o,so-s@@@@@@@oE@+AI_SOCKTYPE@@@@@o:o;@m> Impose the given socket type oHoI @@@@@@@oa@+AI_PROTOCOLo,@@@@@oV oW #@m< Impose the given protocol od 5oe V@@@@@@@o}@.AI_NUMERICHOST@@omWYonWi@m֐ b Do not call name resolver, expect numeric IP address o{Wo|@@@@@@@o@,AI_CANONNAME@@oo@m퐠 Y Fill the [ai_canonname] field of the result oo1m@@@@@@@o@*AI_PASSIVE@@onpon|@n a Set address to ``any'' address for use with {!bind} ono@@@@@@@o@@@A@@@@@oYY@n< Options to {!getaddrinfo}. oo@@@@@@@@@o@@#os@@г-socket_domainos@@3oooooooo@Z;@@@A@@@@@%#@@@A@@@@n9o␠@@@@@@#oo@@г+socket_typeo@@ @@@@nTo@@@@@@#o o @@г#intp  @@;@@@@nop@@@@@@#pW[@@@@np)@@@@@@#p(@@@@np:@@@@@@#p9nr@@@@npK@@@@@@@A@npV@@@@@@@3pNpNpNpNpNpNpNpN@@A@+getaddrinfop[ $p\ /@б@гp1&stringpf13pg19@@ @@@3phphphphphphphph@b\@A@@б@гpB&stringpw1=px1C@@ @@@@@б@гp$listp1Zp1^@г2getaddrinfo_optionp1Gp1Y@@ @@@*@@@@@@/ @@гp!$listp1lp1p@г᠐)addr_infop1bp1k@@ @@@F@@@@@@K @@@#@@N*@@@C@@QF@@@W@@TZ@@@p   @o*  [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). pqqp N@@@@@@@p@@0@o:p㐠@@@@@@sA+)name_infofpPUpP^@@;@@+ni_hostname@@p@@@paepaz@o]< Name or IP address of host qaqa@@@@@@@q@*ni_service@@p@@@qq@ow Name of service or port number qq@@@@@@@q5@@@A@@@@@q PPq!@o : Host and service information returned by {!getnameinfo}. q.q/<@@@@@@@@@qG@@#GGBq6ap@3@@Ш@гJ&stringq?asq@ay@@R3q>q>q>q>q>q>q>q>@a;@@@A@@@@@'$@@@A@@Z@@@VoqYTS@SS@@@S@S@#OOJqX@;@@Ш@гR&stringqaqb@@Z"@@]@@%@YoqvWV@VV@@@V@V@@A@RoqPO@OO@@@O@O@@3qyqyqyqyqyqyqyqy@:@A^]@A+2getnameinfo_optiongq>Cq>U@@;@@)NI_NOFQDN@@qX\qXe@o ! Do not qualify local host names qXqqX@@@@@@@q@.NI_NUMERICHOST@@qq@p " Always return host as IP address qq@@@@@@@q@+NI_NAMEREQD@@qq@p( ( Fail if host name cannot be determined qq@@@@@@@q@.NI_NUMERICSERV@@q "q 2@p? & Always return service as port number q 9q d@@@@@@@q@(NI_DGRAM@@qegqeq@pV [ Consider the service as UDP-based instead of the default TCP qe~q@@@@@@@r@@@A@@@@@q>>@pg< Options to {!getnameinfo}. r r @@@@@@@A@r%@@#@s@@@p|r%@@@@@@#~~r$|@m@@@pr6}|@||@@@|@|@#xxr5v@g@@@yprGwv@vv@@@v@v@#rrrF $p@a@@@sprXqp@pp@@@p@p@#llrWeij@[@@@mprikj@jj@@@j@j@@A@fprted@dd@@@d@d@@3rlrlrlrlrlrlrlrl@.@As@+getnameinforzr{@б@г(sockaddrrr@@ @@@3rrrrrrrr@ @A@@б@гr$listr3r7@г2getnameinfo_optionr r2@@ @@@@@@@@@  @@гˠ)name_infor;rD@@ @@@-@@@@@0@@@6@@39 @@@r@q( [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. rEEr">@@@@@@@r@@@q8rᐠ@@@@@@Rrr8 {1 Terminal interface} r%AAr%A^@@@@@@3rrrrrrrr@dy1@Ass 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. r(aar+ + F@@@@@@A++terminal_iohs - H Ms - H X@@;@@(c_ignbrkA@r@@@s0 u ys0 u @q= Ignore the break condition. s$0 u s%0 u @@@@@@@s=@(c_brkintA@r@@@s01  s11  @q & Signal interrupt on break condition. s>1  s?1  @@@@@@@sW@(c_ignparA@s @@@sJ2!!sK2!!@q ' Ignore characters with parity errors. sX2!!sY2!!J@@@@@@@sq@(c_parmrkA@s%@@@sd3!K!Ose3!K!g@q͐5 Mark parity errors. sr3!K!iss3!K!@@@@@@@s@'c_inpckA@s?@@@ s~4!!s4!!@q琠? Enable parity check on input. s4!!s4!!@@@@@@@s@(c_istripA@sY@@@ s5!!s5!!@r $ Strip 8th bit on input characters. s5!!s5!"@@@@@@@s@'c_inlcrA@ss@@@s6""s6""*@r8 Map NL to CR on input. s6""-s6""J@@@@@@@s@'c_igncrA@s@@@s7"K"Os7"K"f@r55 Ignore CR on input. s7"K"is7"K"@@@@@@@s@'c_icrnlA@s@@@s8""s8""@rO8 Map CR to NL on input. s8""s8""@@@@@@@t @&c_ixonA@s@@@t9""t9""@ri ) Recognize XON/XOFF characters on input. t9""t9"# @@@@@@@t'@'c_ixoffA@s@@@t:# #t:# #(@r , Emit XON/XOFF chars to control input flow. t(:# #+t):# #\@@@@@@@tA@'c_opostA@s@@@t4<#u#yt5<#u#@r; Enable output processing. tB<#u#tC<#u#@@@@@@@t[@'c_obaudA@t$@@@!tN>##tO>##@r - Output baud rate (0 means close connection).t\>##t]>#$@@@@@@@tu@'c_ibaudA@t>@@@$th?$$"ti?$$8@rѐ2 Input baud rate. tv?$$<tw?$$S@@@@@@@t@'c_csizeA@tX@@@'t@$T$Xt@$T$n@r될 % Number of bits per character (5-8). t@$T$rt@$T$@@@@@@@t@(c_cstopbA@tr@@@*tA$$tA$$@s< Number of stop bits (1-2). tA$$tA$$@@@@@@@t@'c_creadA@tw@@@-tB$$tB$$@s7 Reception is enabled. tB$$tB$%@@@@@@@t@(c_parenbA@t@@@0tC%%tC%%4@s9 ) Enable parity generation and detection. tC%%6tC%%d@@@@@@@t@(c_paroddA@t@@@3tD%e%itD%e%@sS % Specify odd parity instead of even. tD%e%tD%e%@@@@@@@u@'c_hupclA@t@@@6uE%%uE%%@sm8 Hang up on last close. uE%%uE%%@@@@@@@u+@(c_clocalA@t@@@9uF%%uF%&@s< Ignore modem status lines. u,F%&u-F%&)@@@@@@@uE@&c_isigA@t@@@<u8H&A&Eu9H&A&[@s & Generate signal on INTR, QUIT, SUSP. uFH&A&_uGH&A&@@@@@@@u_@(c_icanonA@u@@@?uRI&&uSI&&@s [ Enable canonical processing (line buffering and editing) u`I&&uaJ&' @@@@@@@uy@(c_noflshA@u-@@@BulK' 'umK' '&@sՐ ' Disable flush after INTR, QUIT, SUSP. uzK' '(u{K' 'T@@@@@@@u@&c_echoA@uG@@@EuL'U'YuL'U'o@s8 Echo input characters. uL'U'suL'U'@@@@@@@u@'c_echoeA@ua@@@HuM''uM''@t + Echo ERASE (to erase previous character). uM''uM''@@@@@@@u@'c_echokA@u{@@@KuN''uN''@t# ( Echo KILL (to erase the current line). uN''uN'(+@@@@@@@u@(c_echonlA@u@@@NuO(,(0uO(,(H@t= $ Echo NL even if c_echo is not set. uO(,(JuO(,(s@@@@@@@u@'c_vintrA@u@@@QuQ((uQ((@tW ' Interrupt character (usually ctrl-C). uQ((uQ((@@@@@@@v@'c_vquitA@u@@@TvR((v R((@tq " Quit character (usually ctrl-\). vR((vR()"@@@@@@@v/@(c_veraseA@u@@@Wv"S)#)'v#S)#)?@t * Erase character (usually DEL or ctrl-H). v0S)#)Av1S)#)p@@@@@@@vI@'c_vkillA@v @@@Zv<T)q)uv=T)q)@t ' Kill line character (usually ctrl-U). vJT)q)vKT)q)@@@@@@@vc@&c_veofA@v'@@@]vVU))vWU))@t ) End-of-file character (usually ctrl-D). vdU))veU)*@@@@@@@v}@&c_veolA@vA@@@`vpV* * vqV* *#@tِ - Alternate end-of-line char. (usually none). v~V* *'vV* *Y@@@@@@@v@&c_vminA@v`@@@cvW*Z*^vW*Z*s@t󐠠 m Minimum number of characters to read before the read request is satisfied. vW*Z*xvX**@@@@@@@v@'c_vtimeA@vz@@@fvY**vY*+@u $ Maximum read wait (in 0.1s units). vY*+ vY*+2@@@@@@@v@(c_vstartA@v@@@ivZ+3+7vZ+3+O@u' # Start character (usually ctrl-Q). vZ+3+QvZ+3+y@@@@@@@v@'c_vstopA@v@@@lv[+z+~v[+z+@uA " Stop character (usually ctrl-S). v[+z+v[+z+@@@@@@@v@@@A@@@@@v- H Hv\++@@@@w@@#v0 u v0 u @A@Ш@г堐$boolv0 u v0 u @@3vvvvvvvv@;@@@A@@@@@@@@@A@@@@@𠰠ulw@@@@@@#w1  w1  @A@Ш@г$boolw1  w1  @@"@@@@%@uw3@@@@@@#w22!! w32!!@A@Ш@г$boolw<2!!w=2!!@@@@@@@C@uwQ@@@@@@#wP3!K!WwQ3!K!_@A@Ш@г$boolwZ3!K!bw[3!K!f@@^@@@@a@uwo@@@@@@#wn4!!wo4!!@A@Ш@г$boolwx4!!wy4!!@@|@@@@ @uw@@@@@@#w5!!w5!!@A@Ш@г$boolw5!!w5!!@@@@@@ @vw@@@@@@#w6""w6"""@A@Ш@г$boolw6""%w6"")@@ @@ @@@v wɐ@@@@@@#w7"K"Ww7"K"^@A@Ш@г$boolw7"K"aw7"K"e@@ ְ@@@@@ v>w琠  @  @@@ @ @#w8""w8""@A@Ш@г $boolw8""w8""@@@@@@@v\x @  @@@ @ @#  x9""x9""@A@Ш@г $boolx9""x9""@@@@@@@vzx#@@@@@@#  x":# #x#:# # @A@Ш@г$boolx,:# ##x-:# #'@@0@@@@3@vxA@@@@@@#x@<#u#xA<#u#@A@Ш@г$boolxJ<#u#xK<#u#@@N@@ @@Q@vx_@@@@@@#x^>##x_>##@A@Ш@г#intxh>##xi>##@@!l@@$@@"o@ vx}@@@@@@#x|?$$*x}?$$1@A@Ш@г#intx?$$4x?$$7@@%@@(@@%@$vx"!@!!@@@!@!@#x@$T$`x@$T$g@ A@Ш@г!#intx@$T$jx@$T$m@@)@@,@@(@(wx&%@%%@@@%@%@#!!xA$$xA$$@A@Ш@г%#intxA$$xA$$@@-ư@@0@@+@,w.xא*)@))@@@)@)@#%%xB$$xB$$@A@Ш@г)$boolxB$$xB$$@@1@@4@@.@0wLx.-@--@@@-@-@#))xC%%$xC%%,@A@Ш@г-$boolxC%%/xC%%3@@5@@8@@1@4wjy21@11@@@1@1@#--yD%e%qyD%e%y@A@Ш@г1$boolyD%e%|yD%e%@@9 @@<@@4#@8wy165@55@@@5@5@#11y0E%%y1E%%@A@Ш@г5$booly:E%%y;E%%@@=>@@@@@7A@<wyO:9@99@@@9@9@#55yNF%%yOF%%@"A@Ш@г9$boolyXF%&yYF%&@@A\@@D@@:_@@wym>=@==@@@=@=@#99ylH&A&MymH&A&S@&A@Ш@г=$boolyvH&A&VywH&A&Z@@Ez@@H@@=}@DwyBA@AA@@@A@A@#==yI&&yI&&@*A@Ш@гA$boolyI&&yI&&@@I@@L@@@@HxyFE@EE@@@E@E@#AAyK' 'yK' '@.A@Ш@гE$boolyK' '!yK' '%@@M@@P@@C@LxyǐJI@II@@@I@I@#EEyL'U'ayL'U'g@2A@Ш@гI$boolyL'U'jyL'U'n@@Q԰@@T@@F@Px<y吠NM@MM@@@M@M@#IIyM''yM''@6A@Ш@гM$boolyM''yM''@@U@@X@@I@TxZzRQ@QQ@@@Q@Q@#MMzN''zN''@:A@Ш@гQ$boolz N''z N''@@Y@@\@@L@Xxxz!VU@UU@@@U@U@#QQz O(,(8z!O(,(@@>A@Ш@гU$boolz*O(,(Cz+O(,(G@@].@@`@@O1@\xz?ZY@YY@@@Y@Y@#UUz>Q((z?Q((@BA@Ш@гY$charzHQ((zIQ((@@aL@@d@@RO@`xz]^]@]]@@@]@]@#YYz\R((z]R((@FA@Ш@г]$charzfR((zgR((@@ej@@h@@Um@dxz{ba@aa@@@a@a@#]]zzS)#)/z{S)#)7@JA@Ш@гa$charzS)#):zS)#)>@@i@@l@@X@hxzfe@ee@@@e@e@#aazT)q)}zT)q)@NA@Ш@гe$charzT)q)zT)q)@@m@@p@@[@lyzji@ii@@@i@i@#eezU))zU))@RA@Ш@гi$charzU))zU))@@qİ@@t@@^@py,zՐnm@mm@@@m@m@#iizV* *zV* *@VA@Ш@гm$charzV* *zV* *"@@u@@x@@a@tyJz󐠠rq@qq@@@q@q@#mmzW*Z*fzW*Z*l@ZA@Ш@гq#intzW*Z*ozW*Z*r@@y@@|@@d@xyh{vu@uu@@@u@u@#qq{Y**{Y**@^A@Ш@гu#int{Y*+{Y*+@@}@@@@g!@|y{/zy@yy@@@y@y@#uu{.Z+3+?{/Z+3+G@bA@Ш@гy$char{8Z+3+J{9Z+3+N@@<@@@@j?@y{M~}@}}@@@}@}@#yy{L[+z+{M[+z+@fA@Ш@г}$char{V[+z+{W[+z+@@Z@@@@m]@y{k@@@@@@@A@}@@y}|@)tcgetattrҠ{o^++{p^++@б@гf4*file_descr{z^++{{^++@@ @@@3{|{|{|{|{|{|{|{|@|v@A@@г+terminal_io{^++{^++@@ @@@@@@@@@@@{^++ @y w Return the status of the terminal referred to by the given file descriptor. @raise Invalid_argument on Windows {_++{b,C,k@@@@@@@{@@@z {@@@@@@1A+,setattr_wheni{d,m,r{d,m,~@@;@@'TCSANOWԐ@@{e,,{e,,@@{@)TCSADRAINՐ@@{f,,{f,,@@{@)TCSAFLUSH֐@@{g,,{g,,@@{@@@A@@@@@{d,m,m@@A@{@@#@@@@@#{f,,@@@@@#{g,,@@@@@@A@@@3{{{{{{{{@o]@A@)tcsetattrנ{i,,{i,,@б@гf*file_descr|i,,|i,,@@ @@@3||||||||@UO@A@@б@г[,setattr_when|i,,|i,,@@ @@@@@б@г +terminal_io|#i,,|$i,,@@ @@@ @@г{ޠ$unit|0i,,|1i,,@@ @@@-@@@@@0@@@%@@3( @@@9@@6<@@@|Ai,,@z  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 |Nj,,|Os..@@@@@@@|g@@!@z|b@@@@@@U+tcsendbreakؠ|eu..|fu..@б@гg**file_descr|pu..|qu..@@ @@@3|r|r|r|r|r|r|r|r@n8@A@@б@г|U#int|u..|u..@@ @@@@@г|<$unit|u..|u..@@ @@@@@@@@!@@@'@@$* @@@|u..@{ 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 |v..|z//@@@@@@@|@@@{|@@@@@@C'tcdrain٠||//||//@б@гg*file_descr||//||//@@ @@@3||||||||@\q8@A@@г|$unit||//||//@@ @@@@@@@@@@@||// @{M } Waits until all output written on the given file descriptor has been transmitted. @raise Invalid_argument on Windows |}//|0E0m@@@@@@@} @@@{]}@@@@@@1A++flush_queuej} 0o0t} 0o0@@;@@(TCIFLUSHې@@}00}00@@}-@(TCOFLUSHܐ@@}00}00@@}6@)TCIOFLUSHݐ@@}&00}'00@@}?@@@A@@@@@}*0o0o@@A@}B@@#@@@@@#}600@@@@@#}<00@@@@@@A@@@3};};};};};};};};@o]@A@'tcflushޠ}I00}J00@б@гh*file_descr}T00}U00@@ @@@3}V}V}V}V}V}V}V}V@UO@A@@б@г[+flush_queue}e00}f00@@ @@@@@г} $unit}r00}s00@@ @@@@@@@@!@@@'@@$* @@@}00@{萠 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 }00}12&@@@@@@@}@@@{}@@@@@@CA++flow_actionk}2(2-}2(28@@;@@&TCOOFF@@}2;2?}2;2E@@}@%TCOON@@}2F2H}2F2O@@}@&TCIOFF@@}2P2R}2P2Z@@}@%TCION@@}2[2]}2[2d@@}@@@A@@@@@}2(2(@@A@}@@#((&%@$@@@(@#$$}2F2J"@!@@@%@#!!}2P2T@@@@"@#}2[2_@@@@@@A@@@3}}}}}}}}@l@A @&tcflow}2f2j}2f2p@б@гh*file_descr}2f2s}2f2}@@ @@@3~~~~~~~~@d^@A@@б@гj+flow_action~2f2~2f2@@ @@@@@г}ʠ$unit~2f2~2f2@@ @@@@@@@@!@@@'@@$* @@@~*2f2f@| 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 ~722~833@@@@@@@~P@@@|~K@@@@@@C&setsid~N33~O33@б@г~$unit~Y33~Z33@@ @@@3~[~[~[~[~[~[~[~[@\q8@A@@г~<#int~h33~i34@@ @@@@@@@@@@@~s33 @|ې Put the calling process in a new session and detach it from its controlling terminal. @raise Invalid_argument on Windows ~44~4_4@@@@@@@~@@@|~@@@@@@1@}}A@rqB@qq@qdq*@pp@ppm@pMp&@po@oo@oRoLA@noniA@mm@mm)@m l@ll<@lk@kk@ktk@jj@jj@jfj?@ji@ii@i}iwA@iViA@i!i @hh@hhA@f4f.A@ee@exeQ@e1e @dd@dmc@ccH@c(b@b`b@aa@afa @``A@`_@__@__[@_;_@^^A@^A]@]]@]}]D@]] A@[[A@Y&X@XX@XXq@XQX*@W@S}SDSjW@@S8R"@QQ@QQq@QQP@PP@PP~A@OO@OdO+@O N@NNU@N5N@MM@MsM5@ML@LL|@L\L5@LK@KK@KtK=@KJ@JJ@JJh@JHJ!@JIA@II@IIj@IJI#@IH@HHQ@H1G@GGI@G)F@FjFC@F#E@EE@E{E@DD@DfD@CC@CC@BB@BBt@BTB@AA@AAZ@A:A@@@@@@@@@ ?@??v@?V?/@>>@==A@<<@* Invalid seek e.g. on a pipe |e2* No such process |Q/* Invalid link |=8* Operation would block |)<* Operation now in progress | * Operation already in progress | !* Socket operation on non-socket {?* Destination address required {٠3* Message too long {Š !* Protocol wrong type for socket {9* Protocol not available {9* Protocol not supported {<* Socket type not supported {u $* Operation not supported on socket {a * Protocol family not supported {M 2* Address family not supported by protocol family {99* Address already in use {% !* Can't assign requested address {2* Network is down z9* Network is unreachable z頠 &* Network dropped connection on reset zՠ #* Software caused connection abort z;* Connection reset by peer z<* No buffer space available z>* Socket is already connected z:* Socket is not connected zq #* Can't send after socket shutdown z] $* Too many references: can't splice zI7* Connection timed out z55* Connection refused z!/* Host is down z 3* No route to host y $* Too many levels of symbolic links y堠 ** File size or position not representable yѠ0* Unknown error y * 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. y 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. tР 3* Return a string describing the given error code. ti * [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. t (* {1 Access to the process environment} s * 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. s =* 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 (4.12 in UnixLabels) sX * 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}. s * 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 r̠ * [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. rt7* {1 Process handling} rY Y* The process terminated normally by [exit]; the argument is the return code. r2 T* The process was killed by a signal; the argument is the signal number. r U* The process was stopped by a signal; the argument is the signal number. q F* The termination status of a process. See {!Sys.signal} for the definitions of the standard signal numbers. On Windows: only [WEXITED] is used (as there are no inter-process signals) but with specific return codes to indicate special termination causes. Look for [NTSTATUS] values in the Windows documentation to decode such error return codes. In particular, [STATUS_ACCESS_VIOLATION] error code is the 32-bit [0xC0000005]: as [Int32.of_int 0xC0000005] is [-1073741819], [WEXITED -1073741819] is the Windows equivalent of [WSIGNALED Sys.sigsegv]. q젠 f* Do not block if no child has died yet, but immediately return with a pid equal to 0. q^ 6* Report also the children that receive stop signals. qJ8* Flags for {!waitpid}. q< * [execv prog args] execute the program in file [prog], with the arguments [args], and the current process environment. Note that the first argument, [args.(0)], is by convention the filename of the program being executed, just like [Sys.argv.(0)]. These [execv*] functions never return: on success, the current program is replaced by the new one. On Windows: the CRT simply spawns a new process and exits the current one. This will have unwanted consequences if e.g. another process is waiting on the current one. Using {!create_process} or one of the [open_process_*] functions instead is recommended. @raise Unix_error on failure p h* Same as {!execv}, except that the third argument provides the environment to the program executed. p- H* Same as {!execv}, except that the program is searched in the path. oȠ I* Same as {!execve}, except that the program is searched in the path. oB * Fork a new process. The returned integer is 0 for the child process, the pid of the child process for the parent process. It fails if the OCaml process is multi-core (any domain has been spawned). In addition, if any thread from the Thread module has been spawned, then the child process might be in a corrupted state. @raise Invalid_argument on Windows. Use {!create_process} or threads instead. @raise Failure if any domain has been spawned. n * Wait until one of the children processes die, and return its pid and termination status. @raise Invalid_argument on Windows. Use {!waitpid} instead. n * 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. n * 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. mՠ * 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 m !* Return the pid of the process. mK p* Return the pid of the parent process. @raise Invalid_argument on Windows (because it is meaningless) m * 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 l>* {1 Basic file input/output} l )* The abstract type of file descriptors. l %* File descriptor for standard input.lT &* File descriptor for standard output.l &* File descriptor for standard error. k젠3* Open for reading k3* Open for writing k?* Open for reading and writing k<* Open in non-blocking mode k2* Open for append ko8* Create if nonexistent k[ #* Truncate to 0 length if existing kG3* Fail if existing k3 (* Don't make this dev a controlling tty k f* Writes complete as `Synchronised I/O data integrity completion' k f* Writes complete as `Synchronised I/O file integrity completion' j ]* Reads complete as writes (depending on O_SYNC/O_DSYNC) j㠠 b* Windows only: allow the file to be deleted while still open jϠ * Set the close-on-exec flag on the descriptor returned by {!openfile}. See {!set_close_on_exec} for more information. j c* Clear the close-on-exec flag. This is currently the default. j<* The flags to {!openfile}. j o* The type of file access rights, e.g. [0o640] is read and write for user, read for group, none for others il * 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. hݠ;* Close a file descriptor. h D* Flush file buffers to disk. @since 4.08 (4.12 in UnixLabels) hQ * [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. gՠ E* Same as {!read}, but read the data into a bigarray. @since 5.2 g '* [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. f F* Same as {!write}, but take the data from a bigarray. @since 5.2 eˠ * Same as {!write}, but attempts to write only once. Thus, if an error occurs, [single_write] guarantees that no data has been written. eO d* Same as {!write}, but take the data from a string instead of a byte sequence. @since 4.02 dӠ k* Same as {!single_write}, but take the data from a string instead of a byte sequence. @since 4.02 dW M* Same as {!single_write}, but take the data from a bigarray. @since 5.2 c 9* {1 Interfacing with the standard input/output library} cu * 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. c< * 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. b ;* Return the descriptor corresponding to an input channel. b <* Return the descriptor corresponding to an output channel. bj=* {1 Seeking and truncating} bO <* indicates positions relative to the beginning of the file b- 7* indicates positions relative to the current position b 6* indicates positions relative to the end of the file b "* Positioning modes for {!lseek}. a x* Set the current position for a file descriptor, and return the resulting offset (from the beginning of the file). aZ .* Truncates the named file to the given size. a Q* Truncates the file corresponding to the given descriptor to the given size. `2* {1 File status} `/* Regular file `m,* Directory `Y3* Character device `E/* Block device `10* Symbolic link `-* Named pipe ` )* Socket _0* Device number _V/* Inode number _?3* Kind of the file _(0* Access rights _2* Number of links ^7* User id of the owner ^㠠?* Group ID of the file's group ^̠>* Device ID (if special file) ^0* Size in bytes ^3* Last access time ^9* Last modification time ^p:* Last status change time ^Y 1* The information returned by the {!stat} calls. ^J -* Return the information for the named file. \ k* Same as {!stat}, but in case the file is a symbolic link, return the information for the link itself. \[ O* Return the information for the file associated with the given descriptor. \ k* Return [true] if the given file descriptor refers to a terminal or console window, [false] otherwise. [Ϡ %* {1 File operations on large files} [/* See [lseek]. [F2* See [truncate]. Z3* See [ftruncate]. Z0* Device number Zf/* Inode number ZO3* Kind of the file Z80* Access rights Z!2* Number of links Z 7* User id of the owner Y?* Group ID of the file's group Yܠ>* Device ID (if special file) YŠ0* Size in bytes Y3* Last access time Y9* Last modification time Y:* Last status change time Yi * 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]. WP * {1 Mapping files into memory} W?? thwart tools/sync_stdlib_docs [aa[aa@ * 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. {!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]. {!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 V?* {1 Operations on file names} U栠 * 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}} U [* [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]. UU? thwart tools/sync_stdlib_docs memxmem@ 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. Tꠠ * [realpath p] is an absolute pathname for [p] obtained by resolving all extra [/] characters, relative path segments and symbolic links. @since 4.13 T %* {1 File permissions and ownership} T2* Read permission Tg3* Write permission TS7* Execution permission T?.* File exists T+ * Flags for the {!access} call. T ,* Change the permissions of the named file. S T* Change the permissions of an opened file. @raise Invalid_argument on Windows S) `* Change the owner uid and owner gid of the named file. @raise Invalid_argument on Windows R `* Change the owner uid and owner gid of an opened file. @raise Invalid_argument on Windows RU w* Set the process's file mode creation mask, and return the previous mask. @raise Invalid_argument on Windows R * 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. Q %* {1 Operations on file descriptors} Q? thwart tools/sync_stdlib_docs -uv .uv,@ * 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. QA? thwart tools/sync_stdlib_docs 6ww7ww@@ * [dup2 src dst] duplicates [src] to [dst], closing [dst] if already opened. See {!set_close_on_exec} for documentation on the [cloexec] optional argument. P֠ 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]. P R* Clear the ``non-blocking'' flag on the given descriptor. See {!set_nonblock}.PJ |* 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. P X* Clear the ``close-on-exec'' flag on the given descriptor. See {!set_close_on_exec}.O2* {1 Directories} O @* Create a directory with the given permissions (see {!umask}). OX=* Remove an empty directory. O (* Change the process working directory. N̠ 4* Return the name of the current working directory. N M* Change the process root directory. @raise Invalid_argument on Windows N@ 3* The type of descriptors over opened directories. N #* Open a descriptor on a directory MҠ n* Return the next entry in a directory. @raise End_of_file when the end of the directory has been reached. M >* Reposition the descriptor to the beginning of the directory MF * Close a directory descriptor. M=* {1 Pipes and redirections} L堠? thwart tools/sync_stdlib_docs o_=Rp_=u@ * 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. L h* Create a named pipe with the given permissions (see {!umask}). @raise Invalid_argument on Windows L' 4* {1 High-level process and redirection management} L +* [create_process prog args stdin stdout stderr] creates a new process that executes the program in file [prog], with arguments [args]. Note that the first argument, [args.(0)], is by convention the filename of the program being executed, just like [Sys.argv.(0)]. 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. K| * [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. 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}. Jx * 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}. J2 * 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}. IҠ * 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}. I@ * [open_process_args prog args] runs the program [prog] with arguments [args]. Note that the first argument, [args.(0)], is by convention the filename of the program being executed, just like [Sys.argv.(0)]. The new process executes concurrently with the current process. The standard input and output of the new process are redirected to pipes, which can be respectively read and written via the returned channels. The input channel is connected to the output of the program, and the output channel to the 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. The executable file [prog] is searched for 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 H p* Same as {!open_process_args}, but redirects only the standard output of the new process. @since 4.08 HX o* Same as {!open_process_args}, but redirects only the standard input of the new process. @since 4.08 G * 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 G> * Return the pid of a process opened via {!open_process_args_in} or the pid of the shell opened via {!open_process_in}. @since 4.08 (4.12 in UnixLabels) F * Return the pid of a process opened via {!open_process_args_out} or the pid of the shell opened via {!open_process_out}. @since 4.08 (4.12 in UnixLabels) F * Return the pid of a process opened via {!open_process_args} or the pid of the shell opened via {!open_process_args}. @since 4.08 (4.12 in UnixLabels) FR * Return the pid of a process opened via {!open_process_args_full} or the pid of the shell opened via {!open_process_full}. @since 4.08 (4.12 in UnixLabels) Eᠠ * Close channels opened by {!open_process_in}, wait for the associated command to terminate, and return its termination status. E * Close channels opened by {!open_process_out}, wait for the associated command to terminate, and return its termination status. EU * Close channels opened by {!open_process}, wait for the associated command to terminate, and return its termination status. D * Close channels opened by {!open_process_full}, wait for the associated command to terminate, and return its termination status. D5* {1 Symbolic links} Di? thwart tools/sync_stdlib_docs @ * [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. D 3* 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 CŠ (* Read the contents of a symbolic link. C.* {1 Polling} Cd -* 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). On Windows, if one of descriptor lists exceeds [FD_SETSIZE] elements (64 by default), or if at least one non-socket file descriptor is used, the maximal timeout is capped to 2{^32} milliseconds. Bp.* {1 Locking} BU2* Unlock a region B3 9* Lock a region for writing, and block if already locked B 7* Lock a region for writing, or fail if already locked B (* Test a region for other process locks A 9* Lock a region for reading, and block if already locked A㠠 7* Lock a region for reading, or fail if already locked AϠ9* Commands for {!lockf}. A ?* [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. @ ~* {1 Signals} Note: installation of signal handlers is performed via the functions {!Sys.signal} and {!Sys.set_signal}. @֠ * [kill pid signal] sends signal number [signal] to the process with id [pid]. On Windows: only the {!Sys.sigkill} signal is emulated. @ * [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. Each domain, and each thread when the [Thread] module is loaded, has its own signal mask. [sigprocmask] only changes the mask of the current domain or current thread. @raise Invalid_argument on Windows (no inter-process signals on Windows) ? * Return the set of blocked signals that are currently pending. @raise Invalid_argument on Windows (no inter-process signals on Windows) ?\ * [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) > * Wait until a non-ignored, non-blocked signal is delivered. @raise Invalid_argument on Windows (no inter-process signals on Windows) > * [sigwait sigs] waits until one of the signals in the list [sigs] becomes pending. It then removes this signal from the set of pending signals, and returns the number of this signal. Signal handlers attached to the signals in [sigs] will not be invoked. The signals [sigs] are expected to be blocked before calling [sigwait]. @since 5.4 @raise Invalid_argument on Windows (no inter-process signals on Windows) >Q5* {1 Time functions} >6<* User time for the process >>* System time for the process = '* User time for the children processes =㠠 )* System time for the children processes =̠ 0* The execution times (CPU times) of a process. =0* Seconds 0..60 =0* Minutes 0..59 <.* Hours 0..23 <栠5* Day of month 1..31 <Ϡ6* Month of year 0..11 <.* Year - 1900 <<* Day of week (Sunday is 0) <5* Day of year 0..365 * Ignore the break condition.  '* Signal interrupt on break condition. ڠ (* Ignore characters with parity errors. à6* Mark parity errors.  * Enable parity check on input.  %* Strip 8th bit on input characters. ~9* Map NL to CR on input. g6* Ignore CR on input. P9* Map CR to NL on input. 9 ** Recognize XON/XOFF characters on input. " -* Emit XON/XOFF chars to control input flow.  / Output modes: 6;#]#a7;#]#t@<* Enable output processing. 0 Control modes: ?=##@=##@ .* Output baud rate (0 means close connection).頠3* Input baud rate. Ҡ &* Number of bits per character (5-8). =* Number of stop bits (1-2). 8* Reception is enabled.  ** Enable parity generation and detection. v &* Specify odd parity instead of even. _9* Hang up on last close. H=* Ignore modem status lines. 1. Local modes: `G&*&.aG&*&@@ '* 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: {P(t(x|P(t(@ (* Interrupt character (usually ctrl-C).  #* Quit character (usually ctrl-\). n +* Erase character (usually DEL or ctrl-H). W (* 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  T * Send a break condition on the given file descriptor. The second argument is the duration of the break, in 0.1s units; 0 means standard duration (0.25s). @raise Invalid_argument on Windows  ~* Waits until all output written on the given file descriptor has been transmitted. @raise Invalid_argument on Windows  G* Discard data written on the given file descriptor but not yet transmitted, or data received but not yet read, depending on the second argument: [TCIFLUSH] flushes data received but not read, [TCOFLUSH] flushes data written but not transmitted, and [TCIOFLUSH] flushes both. @raise Invalid_argument on Windows   M* Suspend or restart reception or transmission of data on the given file descriptor, depending on the second argument: [TCOOFF] suspends output, [TCOON] restarts output, [TCIOFF] transmits a STOP character to suspend input, and [TCION] transmits a START character to restart input. @raise Invalid_argument on Windows w * Put the calling process in a new session and detach it from its controlling terminal. @raise Invalid_argument on Windows 1@C0../../ocamlc.opt)-nostdlib"-I,../../stdlib"-c(-absname"-w5+a-4-9-41-42-44-45-48+-warn-error"+A*-bin-annot"-g0-strict-sequence/-strict-formats)-nolabels J/builds/workspace/main/flambda/false/label/ocaml-freebsd-64/otherlibs/unix @@0z83@@@8CamlinternalFormatBasics0oZ2t,ݠ&Stdlib0y{x!O!0Stdlib__Bigarray0M&۩9|HOT/Stdlib__Complex0\lEWN2+Stdlib__Sys0M xIor 0 8RmZuDq@0 8RmZuDqA8^8@PPw=v@[ /͕UtU@*R*ii@GEDSz@46K6{@.+5578,tu @FϐG de8@=UYu,,WWҰsos@mm@BB@@@;%;@a{@--^?O@Tgg@$#22;@^ \@8r:4:GG|@6ST8pϓo@@]yby@%q&q()+01UCC^\˰fgN@@0m0"23*^]dhTh@<=B@1?B@“S3E3^unu@3$$װ99ϰxCx@*ݓ*jjtGt@{9@@7YcY@O3AA@Ұ^ \@$$ ;;spDo8@@^+\@   ee@/:/55]\{@1Q1AKA@:ĕ:| @#A#@;Z; KLY@01 L֐MK@@a?oCxC@c (^(@*Z*88>@Փ|@+.+ @W?bNfN@@x,w@wVw3@ٰrr8A@@@&%ݰ5ϕ5\\^]@ y66%@GڐHIIaBa|@::@@.!.JJ@  ɕB&& @po@qr }@@Y?^aaK@AѕAeē@`-`ypo@dcF}}`~@ff@|/@@@%$22ܰOHO@{@@zz@aadbwÓw@ %9@ss̰T}5@ - g x İgg}@@DD@_+|@ S zKy`y\5@@67i8~~@#ʒ$@  $9$j@C Y-/,@@@+Ǔ+@  u4i4WXL@44f&erĐr@*~@ee@@  @,,ݰDՓDxy@@?\]$ss)$]hM@@ߕ۰t7@ }@6X6@-L-@/ iАj|}̰~@Y̓Y{[@[x@CCF|FoKo@ @G8H+@99f%e{w{@77^@ M E22FZ[K@a4a@%%T[\_^]qp@'|Q@NOM@55edZ@~@""@77!<K^_@(K'/0/|@I/.@  ::۰}S}}@a`j+je~@66??L@YIYuEu@%4498@%ړ%@@qŒb@Z Ð!4!E!wdw@ Q OPjfne%opR@@Ѱ%M%Y(Yb@[X[iiI@UUvv?@b$bp||W@9V8???[[6@VɐW@fd@@L@MNQOQ@33>А? hQgɰ9@@V,Vf@<jJj @@@@e@ZZ@SSv~v@@99'd-dg@@Aq"#&&}XX@'I&@@ ڕ 881sr"@TT@hِi%@ o _@zze@(ғ('DEN@HHk@ j @78@S?@)ړ7@@Ґ ge@а~$%IGG @tss%@:tr@mYm@ٓ<KN@@7[@@ٰ\j\@CѕBWՐX@ O @<<ǰ>u>A@bca7@@P@@