Kn=155.5.0+dev0-2025-04-28/$Unix%errorA;@@%E2BIG@@=../../otherlibs/unix/unix.mlimm@@$UnixA@&EACCES@@ n n@@ B@&EAGAIN@@o o @@C@%EBADF@@pWYpW`@@D@%EBUSY@@&q'q@@%E@&ECHILD@@/r0r@@.F@'EDEADLK@@8s9s@@7G@$EDOM@@At + -Bt + 3@@@H@&EEXIST@@Ju p rKu p z@@II@&EFAULT@@Sv  Tv  @@RJ@%EFBIG@@\w  ]w  @@[K@%EINTR@@ex  fx  @@dL@&EINVAL@@ny 2 4oy 2 <@@mM@#EIO @@wz b dxz b i@@vN@&EISDIR!@@{  {  @@O@&EMFILE"@@|  |  @@P@&EMLINK#@@}  }  @@Q@,ENAMETOOLONG$@@~ 2 4~ 2 B@@R@&ENFILE%@@ c e c m@@S@&ENODEV&@@@  @  @@T@&ENOENT'@@A  A  @@U@'ENOEXEC(@@B  B  @@V@&ENOLCK)@@C A CC A K@@W@&ENOMEM*@@D s uD s }@@X@&ENOSPC+@@E  E  @@Y@&ENOSYS,@@F  F  @@Z@'ENOTDIR-@@G  G  @@[@)ENOTEMPTY.@@H @ BH @ M@@\@&ENOTTY/@@I s uI s }@@]@%ENXIO0@@J  J  @@^@%EPERM1@@K  K  @@_@%EPIPE2@@L&(L&/@@`@&ERANGE3@@"MQS#MQ[@@!a@%EROFS4@@+N,N@@*b@&ESPIPE5@@4O5O@@3c@%ESRCH6@@=P>P@@@@XX@@l@+ENOPROTOOPT?@@YY@@m@/EPROTONOSUPPORT@@@ZZ(@@n@/ESOCKTNOSUPPORTA@@[KM[K^@@o@*EOPNOTSUPPB@@\\@@p@,EPFNOSUPPORTC@@]]@@q@,EAFNOSUPPORTD@@^^@@r@*EADDRINUSEE@@_QS_Q_@@s@-EADDRNOTAVAILF@@``@@t@(ENETDOWNG@@aa@@u@+ENETUNREACHH@@bb@@v@)ENETRESETI@@c*,c*7@@w@,ECONNABORTEDJ@@dmodm}@@x@*ECONNRESETK@@ee@@y@'ENOBUFSL@@ff@@z@'EISCONNM@@ g  g)@@ {@(ENOTCONNN@@hY[hYe@@|@)ESHUTDOWNO@@ii@@}@,ETOOMANYREFSP@@'j(j@@&~@)ETIMEDOUTQ@@0k1k@@/@,ECONNREFUSEDR@@9lEG:lEU@@8@@)EHOSTDOWNS@@BmwyCmw@@AA@,EHOSTUNREACHT@@KnLn@@JB@%ELOOPU@@ToUo@@SC@)EOVERFLOWV@@]p^p!@@\D@+EUNKNOWNERRW#int@@@@@mr\^nr\r@@lE@@@A@@@@@ql@@@@o@@A@±*Unix_errorXB##exnG@$Unix%error@@@&string@@@@@@@@Az00z0_@@F@B@-error_messageY@$Unix%error@@@@@@@@@@@G@@1handle_unix_errorZ@@!a@C@!b@C@@@@@@@@@666d@@H@@+environment[@$unit@@@%arrayV@@@@@@@@@PPPv@@I@@2unsafe_environment\@@@@q@@@@@@@@@&&&S@@J@@&getenv]@@@@@@@@@@@@K@@-unsafe_getenv^@@@@@@@@@@()@@'L@@&putenv_@@@@@@@@n@@@@@@@@DE@@CM@@(unsetenv`@@@@@@@@@@Y  Z  @@XN@@.process_statusaC;@@'WEXITEDb@@@@@n!p!to!p!@@mP@)WSIGNALEDc&Stdlib#Sys&signal@@@ @@!!!"@@Q@(WSTOPPED&Stdlib#Sys&signal@@@ @@"f"h"f"@@R@@@A@@@@@!Z!Z@@@@O@A@)wait_flagD;@@'WNOHANG@@%A%E%A%L@@T@)WUNTRACED@@%%%%@@U@@@A@@@@@%0%0@@A@S@A@%execv@8@@@@D@@@ @@@"!a@'E@#@@$@@%@&&&&G@@V@@&execve@[@@@(@g@@@)@@@+@t@@@,@@@.!a@4E@/@@0@@1@@2@((()!@@W@@&execvp@@@@5@B  @@@6@@@8!a@=E@9@@:@@;@*))+))@@)X@@'execvpe@ @@@>@e  @@@?@@@A@r@@@B@@@D!a@JE@E@@F@@G@@H@Z**[**B@@YY@@$fork@@@@K@@@L@@M@o**p**@@nZ@@$wait@@@@N@@@@O@$Unix.process_status@@@P@@Q@@R@,,,,@@[@@'waitpid@$list$Unix)wait_flag@@@S@@@U@G@@@V@P@@@W@$Unix.process_status@@@X@@Y@@Z@@[@ -P-P -P-@@\@@&system@J@@@\$Unix.process_status@@@]@@^@/o/o/o/@@]@@%_exit@@@@_!a@cE@`@@a@"11"11@@^@@&getpid@.@@@d@@@e@@f@ 65V5V 65V5n@@_@@'getppid@C@@@g @@@h@@i@955955@@`@@$nice@!@@@j"@@@k@@l@3?6&6&4?6&6;@@2a@@*file_descrE;@@@A@@@@@=I7@7@>I7@7O@@@@<b@A@%stdin$Unix#*file_descr@@@m@NL77OL77@@Mc@@&stdout$Unix$*file_descr@@@n@_O77`O77@@^d@@&stderr$Unix%*file_descr@@@o@pR88qR88@@oe@@)open_flagF;@@(O_RDONLY̐@@V8Z8^V8Z8f@@~g@(O_WRONLY͐@@W88W88@@h@&O_RDWRΐ@@X88X88@@i@*O_NONBLOCKϐ@@Y99Y99@@j@(O_APPENDА@@Z9O9QZ9O9[@@k@'O_CREATѐ@@[99[99@@l@'O_TRUNCҐ@@\99\99@@m@&O_EXCLӐ@@]: : ]: :@@n@(O_NOCTTYԐ@@^:C:E^:C:O@@o@'O_DSYNCՐ@@_::_::@@p@&O_SYNC֐@@a;;a;;%@@q@'O_RSYNCא@@c;;c;;@@r@.O_SHARE_DELETEؐ@@e<(<*e<(<:@@s@)O_CLOEXECِ@@g<<g<<@@t@*O_KEEPEXECڐ@@k==k==@@u@@@A@@@@@U8I8I@@A@f@A@)file_permG;@@A&@@@w@@@@p>_>_p>_>s@@A@v@A@(openfile@'@@@~@)$Unix()open_flag@@@@@@@$Unix*)file_perm@@@$Unix+*file_descr@@@@@@@@@@At>>Bt>?+@@@w@@%close@$Unix,*file_descr@@@-@@@@@@Yy??Zy?@@@Xx@@%fsync@$Unix.*file_descr@@@/@@@@@@q|@'@'r|@'@E@@py@@$read@$Unix0*file_descr@@@@%bytes1@@@@'2@@@@.3@@@34@@@@@@@@@@@@@@@@@@z@@-read_bigarrayY@$Unix5*file_descr@@@@&Stdlib8(Bigarray&Array1!t@@ &Stdlib6(Bigarray1int8_unsigned_elt@@@ &Stdlib7(Bigarray(c_layout@@@ @@@ @t9@@@ @{:@@@ ;@@@ @@ @@ @@ @@ @AAAB@@{@@%writeZ@$Unix<*file_descr@@@ @{=@@@ @>@@@ @?@@@ @@@@ @@ @@ @@ @@ @BSBSBSB@@|@@.write_bigarray[@$UnixA*file_descr@@@ @&StdlibD(Bigarray&Array1!t@@ &StdlibB(Bigarray1int8_unsigned_elt@@@ &StdlibC(Bigarray(c_layout@@@ @@@ @E@@@ @F@@@ G@@@ @@ @@ @@ @@ @fCCgD$D7@@e}@@,single_write\@$UnixH*file_descr@@@ @I@@@ @J@@@ @"K@@@ 'L@@@ @@ @@ @@ @@ @DDDD@@~@@/write_substring]@$UnixM*file_descr@@@ @!N@@@ @HO@@@ @OP@@@ TQ@@@ @@ @@ @@ @@ @ETETETE@@@@6single_write_substring^@$UnixR*file_descr@@@ @NS@@@ @uT@@@ @|U@@@ V@@@ @@ @@ @@ @@ @EEFFF@@@@5single_write_bigarray_@$UnixW*file_descr@@@ @&StdlibZ(Bigarray&Array1!t@@ à&StdlibX(Bigarray1int8_unsigned_elt@@@ Ġ&StdlibY(Bigarray(c_layout@@@ @@@ @[@@@ @\@@@ ]@@@ @@ @@ @@ @@ @:FF;G.GA@@9@@3in_channel_of_descr`@$Unix^*file_descr@@@ &Stdlib_*in_channel@@@ @@ @UGGVGH@@T@@4out_channel_of_descra@$Unix`*file_descr@@@ &Stdliba+out_channel@@@ @@ @pM.M.qM.Mb@@o@@3descr_of_in_channelb@&Stdlibb*in_channel@@@ $Unixc*file_descr@@@ @@ @Q'Q'Q'QY@@@@4descr_of_out_channelc@&Stdlibd+out_channel@@@ $Unixe*file_descr@@@ @@ @QQQQ@@@@,seek_commanddH;@@(SEEK_SETe@@RKRORKRW@@@(SEEK_CURf@@RRRR@@@(SEEK_ENDg@@RRRR@@@@@A@@@@@R7R7@@A@@A@%lseekh@$Unixf*file_descr@@@ @xg@@@ @$Unixh,seek_command@@@ i@@@ @@ @@ @@ @SSSSSSS@@@@(truncatei@wj@@@ @k@@@ 9l@@@ @@ @@ @ TT TT*@@ @@)ftruncatej@$Unixm*file_descr@@@ @n@@@ Xo@@@ @@ @@ @ .T_T_ /T_T@@ -@@)file_kindkI;@@%S_REGl@@ = U U > U U@@ <@%S_DIRm@@ F U?UA G U?UH@@ E@%S_CHRn@@ O UpUr P UpUy@@ N@%S_BLKo@@ XUU YUU@@ W@%S_LNKp@@ aUU bUU@@ `@&S_FIFOq@@ jVV kVV@@ i@&S_SOCKr@@ sVCVE tVCVM@@ r@@@A@@@@@ w TT@@A@ u@A@%statssJ;@@&st_devt@@p@@@  VV VV@@ @&st_inou@@*q@@@  VV VV@@ @'st_kindv@@$Unixr)file_kind@@@  VV VW@@ @'st_permw@@$Unixs)file_perm@@@  W W$ W W8@@ @(st_nlinkx@@Wt@@@  WUWY WUWh@@ @&st_uidy@@du@@@  WW WW@@ @&st_gidz@@qv@@@  WW WW@@ @'st_rdev{@@~w@@@  X X X X@@ @'st_size|@@x@@@  XOXS XOXa@@ @(st_atime}@@%floaty@@@  XX XX@@ @(st_mtime~@@z@@@  XX XX@@ @(st_ctime@@{@@@  XX XY@@ @@@A@@@@@ #VrVr $ Y9Y<@@@@ "@A@$stat@|@@@ =$Unix}%stats@@@ >@@ ?@ ;#YtYt <#YtY@@ :@@%lstat@~@@@ @$Unix%stats@@@ A@@ B@ S&YY T&YY@@ R@@%fstat@$Unix*file_descr@@@ C$Unix%stats@@@ D@@ E@ n*ZOZO o*ZOZn@@ m@@&isatty@$Unix*file_descr@@@ F$bool@@@ G@@ H@ .ZZ .ZZ@@ @@ӱ)LargeFileK@%lseek@$Unix*file_descr@@@ I@%int64@@@ J@$Unix,seek_command@@@ K@@@ L@@ M@@ N@@ O@ 6[[ 6[[@@ @@(truncate@;@@@ P@'@@@ Q@@@ R@@ S@@ T@ 9[[ 9[\@@ @@)ftruncate@$Unix*file_descr@@@ U@F@@@ V@@@ W@@ X@@ Y@ <\6\: <\6\e@@ @@%statsL;@@&st_dev@@@@@ Z @\\ @\\@@ @&st_ino@@@@@ ] A\\ A\\@@ @'st_kind@@$Unix)file_kind@@@ ` "B]]  #B]]!@@ !@'st_perm@@$Unix)file_perm@@@ c 2C]A]I 3C]A]]@@ 1@(st_nlink@@@@@ f ?D]z] @D]z]@@ >@&st_uid@@@@@ i LE]] ME]]@@ K@&st_gid@@@@@ l YF]] ZF]^ @@ X@'st_rdev@@@@@ o fG^=^E gG^=^S@@ e@'st_size@@@@@ r sH^^ tH^^@@ r@(st_atime@@|@@@ u I^^ I^^@@ @(st_mtime@@@@@ x J^_ J^_@@ @(st_ctime@@@@@ { K_;_C K_;_T@@ @@@A@@@@@ ?\\ L_~_@@@@ @A@$stat@ "@@@ $Unix)LargeFile%stats@@@ @@ @ M__ M__@@ @@%lstat@ <@@@ $Unix)LargeFile%stats@@@ @@ @ N__ N__@@ @@%fstat@$Unix*file_descr@@@ $Unix)LargeFile%stats@@@ @@ @ O__ O__@@ @@@@ 4[[ P__@ @@@(map_file@$Unix*file_descr@@@ #pos&optionLn@@@ @@@ @&Stdlib(Bigarray$kind!a@ M@ !b@ M@ @@@ @&Stdlib(Bigarray&layout!c@ M@ @@@ @@@@ @ u @@@ @@@ &Stdlib(Bigarray(Genarray!tA;)@@@ @@ @@ @@ @@ @@ @@ @ f^bb gcbb@@ e@@&unlink@ @@@  @@@ @@ @ {kk |kk@@ z@@&rename@ @@@ @ @@@  @@@ @@ @@ @ ll ll@@ @@$link&follow&@@@ @@@ @ (@@@ @ /@@@  @@@ @@ @@ @@ @ n n  nInl@@ @@(realpath@ D@@@  I@@@ @@ @ pp pp@@ @@1access_permissionM;@@$R_OK@@ qq qq@@ @$W_OK@@ qq qq@@ @$X_OK@@ r#r% r#r+@@ @$F_OK@@ r_ra r_rg@@ @@@A@@@@@ qq@@A@ @A@%chmod@ @@@ @$Unix)file_perm@@@  K@@@ @@ @@ @ !rr "rr@@ @@&fchmod@$Unix*file_descr@@@ @$Unix)file_perm@@@  m@@@ @@ @@ @ Css Dss?@@ B@@%chown@ @@@ @ @@@ @ @@@  @@@ @@ @@ @@ @ fss gss@@ e@@&fchown@$Unix*file_descr@@@ @ @@@ @ @@@  @@@ @@ @@ @@ @ t)t) t)tV@@ @@%umask@$Unix)file_perm@@@ $Unix)file_perm@@@ @@ @ tt tt@@ @@&access@ +@@@ @ Š$Unix1access_permission@@@ @@@  @@@ @@ @@ @ u]u] u]u@@ @@#dup'cloexecϠ[@@@ @@@@$Unix*file_descr@@@$Unix*file_descr@@@@@@@@ vv vv@@ @@$dup2'cloexec@@@@@@ @$Unix*file_descr@@@@$Unix*file_descr@@@ M@@@@@ @@ @@ @#ww$wx@@"@@,set_nonblock@$Unix*file_descr@@@  e@@@@@@;xx<xx@@:@@.clear_nonblock@$Unix*file_descr@@@ }@@@@@@SzTzTTzTz{@@R@@1set_close_on_exec@$Unix*file_descr@@@ @@@@@@kzzlzz@@j@@3clear_close_on_exec@$Unix*file_descr@@@ @@@@@@66@@@@%mkdir@ @@@@$Unix)file_perm@@@ @@@@@@@@>&&>&M@@@@%rmdir@ &@@@ @@@@@ @AA@@@@%chdir@ ;@@@! @@@"@@#@DD@@@@&getcwd@ @@@$ U@@@%@@&@GG6@@@@&chroot@ e@@@' @@@(@@)@JqqJq@@@@*dir_handleN;@@ A@@@@@OO@@@@@A@'opendir@ @@@*$Unix*dir_handle@@@+@@,@R))R)K@@@@'readdir@$Unix*dir_handle@@@- @@@.@@/@/Uuu0Uu@@.@@)rewinddir@$Unix*dir_handle@@@0 q@@@1@@2@GY  HY .@@F@@(closedir@$Unix*dir_handle@@@3 @@@4@@5@_\ss`\s@@^@@$pipe'cloexecb@@@6@@@<@ @@@7@$Unix*file_descr@@@8@$Unix*file_descr@@@9@@:@@;@@=@de"L@@@@&mkfifo@ @@@>@$Unix)file_perm@@@? @@@@@@A@@B@lbblb@@@@.create_process@ 5@@@C@  A@@@D@@@F@$Unix*file_descr@@@G@$Unix*file_descr@@@H@$Unix*file_descr@@@I @@@J@@K@@L@@M@@N@@O@u55w@@@@2create_process_env@ u@@@P@ , @@@Q@@@S@ 9 @@@T@@@V@$Unix*file_descr@@@W@$Unix*file_descr@@@X@$Unix*file_descr@@@Y @@@Z@@[@@\@@]@@^@@_@@`@>??@@=@@/open_process_in@ @@@a&Stdlib*in_channel@@@b@@c@VW"@@U@@0open_process_out@ @@@d&Stdlib+out_channel@@@e@@f@no@@m@@,open_process@ @@@g@&Stdlib*in_channel@@@h@&Stdlib+out_channel@@@i@@j@@k@@@@@1open_process_full@@@@l@  $@@@m@@@o@&Stdlib *in_channel@@@p@&Stdlib +out_channel@@@q@&Stdlib *in_channel@@@r@@s@@t@@u@@@@@1open_process_args@U @@@v@ a@@@w@@@y@&Stdlib*in_channel@@@z@&Stdlib+out_channel@@@{@@|@@}@@~@ddd@@@@4open_process_args_in@@@@@?@@@@@@&Stdlib*in_channel@@@@@@@@)~~*~@@(@@5open_process_args_out@@@@@d@@@@@@&Stdlib+out_channel@@@@@@@@N44O4u@@M@@6open_process_args_full@@@@@@@@@@@@@@@@@@@&Stdlib*in_channel@@@@&Stdlib +out_channel@@@@&Stdlib!*in_channel@@@@@@@@@@@@4]@@@@.process_in_pid@&Stdlib"*in_channel@@@D#@@@@@@vvv@@@@/process_out_pid@&Stdlib$+out_channel@@@\%@@@@@@DDDl@@@@+process_pid@@&Stdlib&*in_channel@@@@&Stdlib'+out_channel@@@@@(@@@@@@G@@@@0process_full_pid@@&Stdlib)*in_channel@@@@&Stdlib*+out_channel@@@@&Stdlib+*in_channel@@@@@,@@@@@@1@@@@0close_process_in@&Stdlib-*in_channel@@@$Unix..process_status@@@@@@9:@@8@@1close_process_out@&Stdlib/+out_channel@@@$Unix0.process_status@@@@@@TU@@S@@-close_process@@&Stdlib1*in_channel@@@@&Stdlib2+out_channel@@@@@$Unix3.process_status@@@@@@}``~`@@|@@2close_process_full@@&Stdlib4*in_channel@@@@&Stdlib5+out_channel@@@@&Stdlib6*in_channel@@@@@$Unix7.process_status@@@@@@ (( Az@@@@'symlink&to_dir?8@@@@@@@A9@@@@H:@@@;@@@@@@@@@@&&i@@@@+has_symlink@<@@@h=@@@@@@6--6-K@@@@(readlink@r>@@@w?@@@@@@==@@@@&select@qA$Unix@*file_descr@@@@@@@C$UnixB*file_descr@@@@@@@E$UnixD*file_descr@@@@@@@ ?F@@@@H$UnixG*file_descr@@@@@@נ@J$UnixI*file_descr@@@@@@ڠ@L$UnixK*file_descr@@@@@@@@@@@@@@@@@uDvF1q@@t@@,lock_commandO;@@'F_ULOCK@@YY@@@&F_LOCK@@ZZ@@@'F_TLOCK@@[FH[FQ@@@&F_TEST@@\\@@@'F_RLOCK@@]]@@@(F_TRLOCK@@^#%^#/@@@@@A@@@@@X@@A@@A@%lockf@$UnixM*file_descr@@@@$UnixN,lock_command@@@@lO@@@P@@@@@@@@@@aa@@@@$kill@Q@@@@&StdlibR#Sys&signal@@@(S@@@@@@@@@@@@3sigprocmask_commandP;@@+SIG_SETMASK@@ @@ @)SIG_BLOCK@@@@@+SIG_UNBLOCK@@ #@@@@@A@@@@@#@@A@!@A@+sigprocmask@$UnixT3sigprocmask_command@@@@V&StdlibU#Sys&signal@@@@@@X&StdlibW#Sys&signal@@@@@@@@@@@W%%X%p@@V@@*sigpending@Y@@@[&StdlibZ#Sys&signal@@@@@@@@@wx:@@v@@*sigsuspend@]&Stdlib\#Sys&signal@@@ @@@ ^@@@ @@ @@@@@%pause@_@@@`@@@@@@2@@@@'sigwait@b&Stdliba#Sys&signal@@@@@@&Stdlibc#Sys&signal@@@@@@@@@@-process_timesQ;@@)tms_utime@@ d@@@@@@)tms_stime@@ e@@@.@@@*tms_cutime@@ f@@@SWSj@@@*tms_cstime@@ g@@@ Ɨƛ ƗƮ@@ @@AA@@@@@@@@@@A@"tmR;@@&tm_sec@@h@@@/"!%#!2@@! @&tm_min@@i@@@2/VZ0Vg@@. @'tm_hour@@j@@@5<NjǏ=Njǝ@@; @'tm_mday@@k@@@8IǾJǾ@@H @&tm_mon@@l@@@;VW @@U@'tm_year@@m@@@>c37d3E@@b@'tm_wday@@n@@@Apfjqfx@@o@'tm_yday@@o@@@D}ȧȫ~ȧȹ@@|@(tm_isdst@@ p@@@G@@@@@A@@@@@(+@@@@ @A@$time@q@@@a r@@@b@@c@mmmɅ@@@@,gettimeofday@s@@@d t@@@e@@f@@@@@&gmtime@ u@@@g$Unixv"tm@@@h@@i@;;;S@@@@)localtime@ w@@@j$Unixx"tm@@@k@@l@tttˏ@@@@&mktime@$Unixy"tm@@@m@ z@@@n@$Unix{"tm@@@o@@p@@q@CCC`@@ @@%alarm@|@@@r}@@@s@@t@#NN$Nd@@"@@%sleep @~@@@ub@@@v@@w@89@@7@@&sleepf @ D@@@xw@@@y@@z@M##N#=@@L@@%times @@@@{$Unix-process_times@@@|@@}@ef@@d@@&utimes @@@@~@ x@@@@ @@@@@@@@@@@@@ЃЃЃа@@@@.interval_timer S;@@+ITIMER_REAL@@@@@.ITIMER_VIRTUAL@@@B@R@@@+ITIMER_PROF@@ҲҴҲ@@ @@@A@@@@@ѾѾ@@A@@A@5interval_timer_statusT;@@+it_interval@@ @@@""@@"@(it_value@@ @@@##@@#@@AA@@@@@!ӣӣ$25@@@@!@A@)getitimer@$Unix.interval_timer@@@$Unix5interval_timer_status@@@@@@'rr'rԩ@@$@@)setitimer@$Unix.interval_timer@@@@$Unix5interval_timer_status@@@$Unix5interval_timer_status@@@@@@@@,- b@@%@@&getuid@J@@@@@@@@@%<yy&<yב@@$&@@'geteuid@_@@@@@@@@@:A;A @@9'@@&setuid@@@@y@@@@@@OFuuPFu؍@@N(@@&getgid@@@@@@@@@@dKeK@@c)@@'getegid@@@@ @@@@@@yPuuzPuَ@@x*@@&setgid@@@@@@@@@@UU@@+@@)getgroups@@@@<@@@@@@@@@Z}}Z}ڞ@@,@@)setgroups@R@@@@@@@@@@@@``>@@-@@*initgroups@H@@@@o@@@ @@@@@@@@ff @@.@@,passwd_entryU;@@'pw_name @@g@@@ðo)-o)>@@0@)pw_passwd!@@t@@@ưp?Cp?V@@1@&pw_uid"@@@@@ɰ qW[qWh@@ 2@&pw_gid#@@@@@̰rimriz@@3@(pw_gecos$@@@@@ϰ's{(s{ݑ@@&4@&pw_dir%@@@@@Ұ4tݒݖ5tݒݦ@@35@(pw_shell&@@@@@հAuݧݫBuݧݼ@@@6@@@A@@@@@EnFvݽ@@@@D/@A@+group_entry'V;@@'gr_name(@@@@@Xz Yz  @@W8@)gr_passwd)@@@@@e{!%f{!8@@d9@&gr_gid*@@@@@r|9=s|9J@@q:@&gr_mem+@@@@@@@@}KO}Kd@@;@@@A@@@@@y~eh@@@@7@A@(getlogin,@@@@ @@@ @@ @ޠޠޠ޽@@<@@(getpwnam-@"@@@ $Unix,passwd_entry@@@ @@@$@@=@@(getgrnam.@:@@@$Unix+group_entry@@@@@@ߟߟߟ@@>@@(getpwuid/@r@@@$Unix,passwd_entry@@@@@@>>>`@@?@@(getgrgid0@@@@$Unix+group_entry@@@@@@@@@@@)inet_addr1W;@@A@@@@@@@@@A@A@3inet_addr_of_string2@@@@$Unix)inet_addr@@@@@@  @@B@@3string_of_inet_addr3@$Unix)inet_addr@@@@@@@@@7xx8x@@6C@@-inet_addr_any4$Unix)inet_addr@@@@HGGIGd@@GD@@2inet_addr_loopback5$Unix)inet_addr@@@@YZ @@XE@@.inet6_addr_any6$Unix)inet_addr@@@ @jZZkZx@@iF@@3inet6_addr_loopback7$Unix)inet_addr@@@!@{|"@@zG@@-is_inet6_addr8@$Unix)inet_addr@@@" @@@#@@$@iii@@H@@-socket_domain9X;@@'PF_UNIX:@@@@J@'PF_INET;@@686A@@K@(PF_INET6<@@tvt@@L@@@A@@@@@@@A@I@A@+socket_type=Y;@@+SOCK_STREAM>@@{{@@N@*SOCK_DGRAM?@@@@O@(SOCK_RAW@@@@@P@.SOCK_SEQPACKETA@@+@@Q@@@A@@@@@hh@@A@M@A@(sockaddrBZ;@@)ADDR_UNIXCm@@@1@@RVRi@@S@)ADDR_INETD$Unix)inet_addr@@@2@@@3@@jlj@@T@@@A@@@@@BB@@@@R@A@&socketE'cloexec@@@?@@@G@$Unix-socket_domain@@@@@$Unix+socket_type@@@A@@@@B$Unix*file_descr@@@C@@D@@E@@F@@H@MN0@@LU@@2domain_of_sockaddrF@$Unix(sockaddr@@@I$Unix-socket_domain@@@J@@K@h88i8i@@gV@@*socketpairG'cloexeck@@@L@@@V@$Unix-socket_domain@@@M@$Unix+socket_type@@@N@-@@@O@$Unix*file_descr@@@P@$Unix*file_descr@@@Q@@R@@S@@T@@U@@W@&A@@W@@&acceptH'cloexec>@@@X@@@^@$Unix*file_descr@@@Y@$Unix*file_descr@@@Z@$Unix(sockaddr@@@[@@\@@]@@_@H@@X@@$bindI@$Unix*file_descr@@@`@$Unix(sockaddr@@@a1@@@b@@c@@d@OOOx@@Y@@'connectJ@$Unix*file_descr@@@e@$Unix(sockaddr@@@fS@@@g@@h@@i@)*@@(Z@@&listenK@$Unix*file_descr@@@j@@@@kr@@@l@@m@@n@HI@@G[@@0shutdown_commandL[;@@0SHUTDOWN_RECEIVEM@@WX@@V]@-SHUTDOWN_SENDN@@`a@@_^@,SHUTDOWN_ALLO@@i$&j$4@@h_@@@A@@@@@m@@A@k\@A@(shutdownP@$Unix*file_descr@@@u@$Unix0shutdown_command@@@v@@@w@@x@@y@  @@`@@+getsocknameQ@$Unix*file_descr@@@z$Unix(sockaddr@@@{@@|@@@a@@+getpeernameR@$Unix*file_descr@@@}$Unix(sockaddr@@@~@@@666^@@b@@(msg_flagS\;@@'MSG_OOBT@@@@d@-MSG_DONTROUTEU@@@@e@(MSG_PEEKV@@@@f@@@A@@@@@@@A@c@A@$recvW@$Unix*file_descr@@@@w@@@@@@@@@@@@u$Unix(msg_flag@@@@@@@@@@@@@@@@@@@@%((&3n@@$g@@(recvfromX@$Unix*file_descr@@@@@@@@@@@@@@@@$Unix(msg_flag@@@@@@@@@@@$Unix(sockaddr@@@@@@@@@@@@@@@@p!q#@@oh@@$sendY@$Unix*file_descr@@@@@@@@%@@@@,@@@@$Unix(msg_flag@@@@@@A@@@@@@@@@@@@@@&(('3n@@i@@.send_substringZ@$Unix*file_descr@@@@;@@@@b@@@@i@@@@:$Unix(msg_flag@@@@@@~@@@@@@@@@@@@@@*+@@j@@&sendto[@$Unix*file_descr@@@@y@@@@@@@@@@@@w $Unix (msg_flag@@@@@@@$Unix (sockaddr@@@ @@@@@@@@@@@@@@@@10TT22@@0k@@0sendto_substring\@$Unix *file_descr@@@@@@@@@@@@@@@@$Unix(msg_flag@@@@@@@$Unix(sockaddr@@@ @@@@@@@@@@@@@@@@x5y7(<@@wl@@2socket_bool_option]];@@(SO_DEBUG^@@BB@@n@,SO_BROADCAST_@@CC&@@o@,SO_REUSEADDR`@@DUWDUe@@p@,SO_KEEPALIVEa@@EE@@q@,SO_DONTROUTEb@@FF@@r@,SO_OOBINLINEc@@G  G @@s@-SO_ACCEPTCONNd@@HBDHBS@@t@+TCP_NODELAYe@@II@@u@)IPV6_ONLYf@@JJ@@v@,SO_REUSEPORTg@@KK(@@w@@@A@@@@@A@@A@m@A@1socket_int_optionh^;@@)SO_SNDBUFi@@Q#'Q#0@@y@)SO_RCVBUFj@@ROQRO\@@z@(SO_ERRORk@@ST@0ocaml.deprecatedTT@ "Use Unix.getsockopt_error instead.TT@@TT@@@@@@T@@{@'SO_TYPEl@@VV @@|@+SO_RCVLOWATm@@'W13(W1@@@&}@+SO_SNDLOWATn@@0X1X@@/~@@@A@@@@@4P  @@A@2x@A@4socket_optint_optiono_;@@)SO_LINGERp@@B^C^@@A@@@A@@@@@F]kk@@A@D@A@3socket_float_optionq`;@@+SO_RCVTIMEOr@@Tf Uf @@S@+SO_SNDTIMEOs@@]gDF^gDS@@\@@@A@@@@@ae@@A@_@A@*getsockoptt@$Unix*file_descr@@@@$Unix2socket_bool_option@@@@@@@@@@@meeme@@@@*setsockoptu@$Unix*file_descr@@@@$Unix2socket_bool_option@@@@ @@@@@@@@@@@@@qq5@@@@.getsockopt_intv@$Unix*file_descr@@@@$Unix1socket_int_option@@@a@@@@@@@@txxtx@@@@.setsockopt_intw@$Unix*file_descr@@@@$Unix 1socket_int_option@@@@!@@@ "@@@@@@@@@ @ww:@@@@1getsockopt_optintx@$Unix#*file_descr@@@ @$Unix$4socket_optint_option@@@  %@@@ @@@@@@@@z~~z~@@@@1setsockopt_optinty@$Unix&*file_descr@@@@$Unix'4socket_optint_option@@@@2(@@@@@@u)@@@@@@@@@@K~L5s@@J@@0getsockopt_floatz@$Unix**file_descr@@@@$Unix+3socket_float_option@@@i,@@@@@@@@mn @@l@@0setsockopt_float{@$Unix-*file_descr@@@@$Unix.3socket_float_option@@@ @/@@@!0@@@"@@#@@$@@%@jjj@@@@0getsockopt_error|@$Unix1*file_descr@@@&$Unix2%error@@@'@@@)@@*@C@@@@/open_connection}@$Unix3(sockaddr@@@+@&Stdlib4*in_channel@@@,@&Stdlib5+out_channel@@@-@@.@@/@ @@@@3shutdown_connection~@&Stdlib6*in_channel@@@0!7@@@1@@2@ A A A m@@@@0establish_server@@&Stdlib8*in_channel@@@3@&Stdlib9+out_channel@@@4E:@@@5@@6@@7@$Unix;(sockaddr@@@8T<@@@9@@:@@;@ *   +  @@ )@@*host_entrya;@@&h_name@@=@@@< =26 >2F@@ <@)h_aliases@@n?>@@@?@@@A PGK QGd@@ O@*h_addrtype@@$Unix@-socket_domain@@@D `ei ae@@ _@+h_addr_list@@B$UnixA)inet_addr@@@G@@@I v w@@ u@@@A@@@@@ z   {@@@@ y@A@.protocol_entryb;@@&p_name@@C@@@_   @@ @)p_aliases@@ED@@@b@@@d    )@@ @'p_proto@@AF@@@g *. *;@@ @@@A@@@@@  <?@@@@ @A@-service_entryc;@@&s_name@@8G@@@x  @@ @)s_aliases@@IJH@@@{@@@}  @@ @&s_port@@xJ@@@  @@ @'s_proto@@eK@@@  @@ @@@A@@@@@ zz @@@@ @A@+gethostname@/L@@@~M@@@@@@! &&! &F@@! @@-gethostbyname@N@@@$UnixO*host_entry@@@@@@!"rr!#r@@!!@@-gethostbyaddr@$UnixP)inet_addr@@@$UnixQ*host_entry@@@@@@!=!>*@@!<@@.getprotobyname@R@@@$UnixS.protocol_entry@@@@@@!U!V@@!T@@0getprotobynumber@T@@@$UnixU.protocol_entry@@@@@@!m((!n(T@@!l@@-getservbyname@V@@@@W@@@$UnixX-service_entry@@@@@@@@!!@@!@@-getservbyport@0Y@@@@Z@@@$Unix[-service_entry@@@@@@@@!ee!e@@!@@)addr_infod;@@)ai_family@@$Unix\-socket_domain@@@!!8@@!@+ai_socktype@@$Unix]+socket_type@@@!W[!Wu@@!@+ai_protocol@@r^@@@!!@@!@'ai_addr@@$Unix_(sockaddr@@@!!@@!@,ai_canonname@@o`@@@!!(@@!@@@A@@@@@!  "SV@@@@!@A@2getaddrinfo_optione;@@)AI_FAMILY$Unixa-socket_domain@@@@@""@@"@+AI_SOCKTYPE$Unixb+socket_type@@@@@")"*@@"(@+AI_PROTOCOLc@@@@@"8CE"9CY@@"7@.AI_NUMERICHOST@@"A"B@@"@@,AI_CANONNAME@@"J"K-@@"I@*AI_PASSIVE@@"S"T@@"R@@@A@@@@@"W@@@@"U@A@+getaddrinfo@d@@@@e@@@@g$Unixf2getaddrinfo_option@@@@@@i$Unixh)addr_info@@@@@@@@@@@@@"VV"g@@"@@)name_infof;@@+ni_hostname@@ j@@@""@@"@*ni_service@@ k@@@""@@"@@@A@@@@@""/2@@@@"@A@2getnameinfo_optiong;@@)NI_NOFQDN@@""@@"@.NI_NUMERICHOST@@""@@"@+NI_NAMEREQD@@""@@"@.NI_NUMERICSERV@@" VX" Vh@@"@(NI_DGRAM@@"!"!@@"@@@A@@@@@"tt@@A@"@A@+getnameinfo@$Unixl(sockaddr@@@@]n$Unixm2getnameinfo_option@@@@@@$Unixo)name_info@@@@@@@@#%88#%8z@@#@@+terminal_ioh;@@(c_ignbrkA@p@@@##7!!#$7!!@@#"@(c_brkintA@q@@@#08!!#18!"@@#/@(c_ignparA@r@@@#=9"6":#>9"6"R@@#<@(c_parmrkA@s@@@ #J:""#K:""@@#I@'c_inpckA@t@@@#W;""#X;""@@#V@(c_istripA@u@@@#d<"##e<"#@@#c@'c_inlcrA@v@@@#q=#E#I#r=#E#`@@#p@'c_igncrA@w@@@#~>###>##@@#}@'c_icrnlA@x@@@#?###?##@@#@&c_ixonA@y@@@#@###@#$@@#@'c_ixoffA@z@@@ #A$C$G#A$C$^@@#@'c_opostA@,{@@@##C$$#C$$@@#@'c_obaudA@!S|@@@&#E%%#E%%@@#@'c_ibaudA@!`}@@@)#F%T%X#F%T%n@@#@'c_csizeA@!m~@@@,#G%%#G%%@@#@(c_cstopbA@!z@@@/#H%%#H%%@@#@'c_creadA@m@@@2#I&&#I&&.@@#@(c_parenbA@z@@@5$J&N&R$J&N&j@@#@(c_paroddA@@@@8$ K&&$K&&@@$ @'c_hupclA@@@@;$L&&$L&&@@$@(c_clocalA@@@@>$'M' '$$(M' '<@@$&@&c_isigA@@@@A$4O'w'{$5O'w'@@$3@(c_icanonA@@@@D$AP''$BP''@@$@@(c_noflshA@@@@G$NR(@(D$OR(@(\@@$M@&c_echoA@@@@J$[S(($\S((@@$Z@'c_echoeA@@@@M$hT(($iT((@@$g@'c_echokA@@@@P$uU))$vU))1@@$t@(c_echonlA@@@@S$V)b)f$V)b)~@@$@'c_vintrA@$char@@@V$X))$X))@@$@'c_vquitA@@@@Y$Y**$Y**.@@$@(c_veraseA@@@@\$Z*Y*]$Z*Y*u@@$@'c_vkillA@(@@@_$[**$[**@@$@&c_veofA@5@@@b$\**$\*+ @@$@&c_veolA@B@@@e$]+?+C$]+?+Y@@$@&c_vminA@"r@@@h$^++$^++@@$@'c_vtimeA@"@@@k$`,!,%$`,!,;@@$@(c_vstartA@i@@@n$a,i,m$a,i,@@$@'c_vstopA@v@@@q%b,,%b,,@@%@@@A@@@@@% 4!~!~% c,,@@@@%@A@)tcgetattr@$Unix*file_descr@@@$Unix+terminal_io@@@@@@%$e,,%%e,-$@@%#@@,setattr_wheni;@@'TCSANOW֐@@%3l--%4l--@@%2@)TCSADRAINא@@%<m--%=m--@@%;@)TCSAFLUSHؐ@@%En--%Fn--@@%D@@@A@@@@@%Ik--@@A@%G@A@)tcsetattr@$Unix*file_descr@@@@$Unix,setattr_when@@@@$Unix+terminal_io@@@"@@@@@@@@@@%tp--%up-.!@@%s@@+tcsendbreak@$Unix*file_descr@@@@#"@@@"@@@@@@@@%|00%|001@@%@@'tcdrain@$Unix*file_descr@@@"@@@@@@%11%11 @@%@@+flush_queuej;@@(TCIFLUSHݐ@@%11%11@@%@(TCOFLUSHސ@@%11%11@@%@)TCIOFLUSHߐ@@%11%11@@%@@@A@@@@@%11@@A@%@A@'tcflush@$Unix*file_descr@@@@$Unix+flush_queue@@@#@@@@@@@@%11%12@@%@@+flow_actionk;@@&TCOOFF@@&3q3u&3q3{@@%@%TCOON@@& 3|3~& 3|3@@&@&TCIOFF@@&33&33@@&@%TCION@@&33&33@@&@@@A@@@@@&3^3^@@A@&@A@&tcflow@$Unix*file_descr@@@@$Unix+flow_action@@@#j@@@@@@@@&@33&A33@@&?@@&setsid@#z@@@#@@@@@@&U55&V556@@&T@@@3=Interface to the Unix system.@ 3 To use the labeled version of this module, add +module Unix# = *UnixLabels; in your implementation.@ 3 Note: all the functions of this module (except 2Unix.error_messageD@( and 6Unix.handle_unix_errorD@:) are liable to raise the /Unix.Unix_errorG@ C exception whenever the underlying system call signals an error.@@@@@@@@@@@@A=../../otherlibs/unix/unix.mliA@,Error report@@#*Unix.error3 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.@@@@@@@@@@@@@&@@36Argument list too long@@@@@@@@@@@@&@@31Permission denied@@@@@@@@@@@@&@@3 +Resource temporarily unavailable; try again@@@@@@@@@@@@&@@33Bad file descriptor@@@@@@@@@@@@&@@34Resource unavailable@@@@@@@@@@@@&@@30No child process@@@@@@@@@@@@&@@3=Resource deadlock would occur@@@@@@@@@@@@&@@3 %Domain error for math functions, etc.@@@@@@@@@@@@&@@3+File exists@@@@@@@@@@@@&@@3+Bad address@@@@@@@@@@@@&@@3.File too large@@@@@@@@@@@@&@@3>Function interrupted by signal@@@@@@@@@@@@&@@30Invalid argument@@@@@@@@@@@@&@@32Hardware I/O error@@@@@@@@@@@@&@@3.Is a directory@@@@@@@@@@@@&@@3 "Too many open files by the process@@@@@@@@@@@@&@@3.Too many links@@@@@@@@@@@@&@@31Filename too long@@@@@@@@@@@@&@@3 !Too many open files in the system@@@@@@@@@@@@&@@3.No such device@@@@@@@@@@@@&@@39No such file or directory@@@@@@@@@@@@&@@36Not an executable file@@@@@@@@@@@@&@@32No locks available@@@@@@@@@@@@&@@31Not enough memory@@@@@@@@@@@@&@@37No space left on device@@@@@@@@@@@@&@@36Function not supported@@@@@@@@@@@@&@@3/Not a directory@@@@@@@@@@@@&@@33Directory not empty@@@@@@@@@@@@&@@3 #Inappropriate I/O control operation@@@@@@@@@@@@&@@39No such device or address@@@@@@@@@@@@&@@37Operation not permitted@@@@@@@@@@@@&@@3+Broken pipe@@@@@@@@@@@@&@@30Result too large@@@@@@@@@@@@&@@35Read-only file system@@@@@@@@@@@@&@@3;Invalid seek e.g. on a pipe@@@@@@@@@@@@&@@3/No such process@@@@@@@@@@@@&@@3,Invalid link@@@@@@@@@@@@&@@35Operation would block@@@@@@@@@@@@&@@39Operation now in progress@@@@@@@@@@@@&@@3=Operation already in progress@@@@@@@@@@@@&@@3>Socket operation on non-socket@@@@@@@@@@@@&@@3Protocol wrong type for socket@@@@@@@@@@@@&@@36Protocol not available@@@@@@@@@@@@&@@36Protocol not supported@@@@@@@@@@@@&@@39Socket type not supported@@@@@@@@@@@@&@@3 !Operation not supported on socket@@@@@@@@@@@@&@@3=Protocol family not supported@@@@@@@@@@@@&@@3 /Address family not supported by protocol family@@@@@@@@@@@@&@@36Address already in use@@@@@@@@@@@@&@@3>Can't assign requested address@@@@@@@@@@@@&@@3/Network is down@@@@@@@@@@@@&@@36Network is unreachable@@@@@@@@@@@@&@@3 #Network dropped connection on reset@@@@@@@@@@@@&@@3 Software caused connection abort@@@@@@@@@@@@&@@38Connection reset by peer@@@@@@@@@@@@&@@39No buffer space available@@@@@@@@@@@@&@@3;Socket is already connected@@@@@@@@@@@@&@@37Socket is not connected@@@@@@@@@@@@&@@3 Can't send after socket shutdown@@@@@@@@@@@@&@@3 !Too many references: can't splice@@@@@@@@@@@@&@@34Connection timed out@@@@@@@@@@@@&@@32Connection refused@@@@@@@@@@@@&@@3,Host is down@@@@@@@@@@@@&@@30No route to host@@@@@@@@@@@@&@@3 !Too many levels of symbolic links@@@@@@@@@@@@&@@3 'File size or position not representable@@@@@@@@@@@@&&@@3-Unknown error@@@@@@@@@@@@@A@@&&@@3 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.@$ 5UnixLabels.Unix_error@@% and G@ 8 are the same, and catching one will catch the other.@@@@@@@@@@@@&&&@@@@&&@@3 0Return a string describing the given error code.@@@@@@@@@@@@&@ &@@@@&Ð35handle_unix_error f x) applies !f$ to !x - and returns the result. If the exception ӐG@ N is raised, it prints a message describing the error and exits with code 2.@@@@@@@@@@@@&@$&@'&@@@@&A@ !Access to the process environment@@0Unix.environment3 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.@@@@@@@@@@@@&@=&@@@@&7Unix.unsafe_environment3 gReturn the process environment, as an array of strings with the format ``variable=value''. Unlike D@ y, this function returns a populated array even if the process has special privileges. See the documentation for 2Unix.unsafe_getenvD@6 for more details.@@@@94.06 (4.12 in UnixLabels)@@@@@@@&@[&@@@@&+Unix.getenv3 sReturn the value associated to a variable in the process environment, unless the process has special privileges.@@@@@@@@)Not_found Dif the variable is unbound or the process has special privileges.@ " This function is identical to *Sys.getenv@@!.@@@@@&@z&@@@@&.3 HReturn the value associated to a variable in the process environment.@+ Unlike +D@ O, 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.@@@@$4.06@@@)Not_found;if the variable is unbound.@@@@@&@&@@@@&+Unix.putenv31putenv name value K sets the value associated to a variable in the process environment. $name 1 is the name of the environment variable, and %value: its new associated value.@@@@@@@@@@@@&@&@&@@@@&-Unix.unsetenv3-unsetenv name6 removes the variable $name> from the process environment.@@@@#5.5@@@@@@@&@&@@@@&A@0Process handling@@#3Unix.process_status3 )The termination status of a process. See *Sys.signal@@ 8 for the definitions of the standard signal numbers.@6 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, 7STATUS_ACCESS_VIOLATION> error code is the 32-bit *0xC0000005%: as 7Int32.of_int 0xC0000005( is +-1073741819", 3WEXITED -1073741819 " is the Windows equivalent of 5WSIGNALED Sys.sigsegv!.@@@@@@@@@@@@@&&@@3 #The process terminated normally by $exit -; the argument is the return code.@@@@@@@@@@@@&&@@3 QThe process was killed by a signal; the argument is the signal number.@@@@@@@@@@@@&&@@3 RThe process was stopped by a signal; the argument is the signal number.@@@@@@@@@@@@@A@@&&@@#.Unix.wait_flag3*Flags for ,Unix.waitpidD@!.@@@@@@@@@@@@@&@@3 cDo not block if no child has died yet, but immediately return with a pid equal to 0.@@@@@@@@@@@@&@@3 3Report also the children that receive stop signals.@@@@@@@@@@@@@A@@&&@@*Unix.execv3/execv prog args= execute the program in file $prog8, with the arguments $args I, and the current process environment. Note that the first argument, (args.(0) L, is by convention the filename of the program being executed, just like ,Sys.argv.(0)(. These &execv* W 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 3Unix.create_processD@/ or one of the .open_process_* % functions instead is recommended.@@@@@@@@*Unix_error*on failure@@@@@'/@'0@',@@@@'+Unix.execve3(Same as SD@ U, except that the third argument provides the environment to the program executed.@@@@@@@@@@@@'$@'%@'!@'@@@@'+Unix.execvp3(Same as nD@ 5, except that the program is searched in the path.@@@@@@@@@@@@'@'@' @@@@&,Unix.execvpe3(Same as Return the pid of the process.@@@@@@@@@@@@'@'@@@@' ,Unix.getppid3 %Return the pid of the parent process.@@@@@@@@0Invalid_argument *on Windows (because it is meaningless)@@@@@'@'@@@@' )Unix.nice3 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.@@@@@@@@0Invalid_argument*on Windows@@@@@'@'@@@@' A@7Basic file input/output@@#/Unix.file_descr3 &The abstract type of file descriptors.@@@@@@@@@@@@@@A@@''@@*Unix.stdin3 #File descriptor for standard input.@@@@@@@@@@@@'@@@@'+Unix.stdout3 $File descriptor for standard output.@@@@@@@@@@@@'@@@@' +Unix.stderr3 #File descriptor for standard error.@@@@@@@@@@@@' @@@@'#.Unix.open_flag3-The flags to -Unix.openfileD@!.@@@@@@@@@@@@@' @@30Open for reading@@@@@@@@@@@@' @@30Open for writing@@@@@@@@@@@@' @@3File operations on large files@@/.Unix.LargeFile&3 ^File operations on large files. This sub-module provides 64-bit variants of the functions 4Unix.LargeFile.lseekD@ ( (for positioning a file descriptor), 7Unix.LargeFile.truncateD@% and 8Unix.LargeFile.ftruncateD@ , (for changing the size of a file), and 3Unix.LargeFile.statD@", 4Unix.LargeFile.lstatD@% and 4Unix.LargeFile.fstatD@ } (for obtaining information on files). These alternate functions represent positions and sizes by 64-bit integers (type %int64 &) instead of regular integers (type #int C), thus allowing operating on files whose sizes are greater than 'max_int!.@@@@@@@@@@@@A ܐ>3$See %lseek!.@@@@@@@@@@@@&@>&@A&@D&@@@@&ȠQ3$See (truncate!.@@@@@@@@@@@@&@X&@[&@@@@&àa3$See )ftruncate!.@@@@@@@@@@@@&@o&@r&@@@@&#4Unix.LargeFile.stats@@&@@&3-Device number@@@@@@@@@@@@&@@&3,Inode number@@@@@@@@@@@@&@@&30Kind of the file@@@@@@@@@@@@&@@&3-Access rights@@@@@@@@@@@@&@@&3/Number of links@@@@@@@@@@@@&@@&34User id of the owner@@@@@@@@@@@@&@@&3@@&<&;@@@@@A@9Mapping files into memory@@-Unix.map_file3 *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 k. The data contained in this Bigarray are the contents of the file referred to by the file descriptor "fd> (as opened previously with ߐD@>, 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.@# YD@ z 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#. iD@ 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.@ k 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.@# 0Invalid_argument$ or 'Failure : may be raised in cases where argument validation fails.@@@@$4.06@@@@@@@&@ &@&&@ &@ &@ &@ &@@@@&A@8Operations on file names@@+Unix.unlink37Removes the named file.@ 3 If the named file is a directory, raises: %EPERM: on POSIX compliant system@&EISDIR4 on Linux >= 2.1.132@'EACCESS+ on Windows@@@@@@@@@@@@@@&@ &@@@@&+Unix.rename3.rename src dst ! changes the name of a file from #src$ to #dst 3, moving it between directories if needed. If #dst A already exists, its contents will be replaced with those of #src W. Depending on the operating system, the metadata (permissions, owner, etc) of #dst 8 can either be preserved or be replaced by those of #src!.@@@@@@@@@@@@&@ &@ &@@@@&)Unix.link34link ?follow src dst; creates a hard link named #dst6 to the file named #src!.@@@@@@@&follow4indicates whether a #src ) symlink is followed or a hardlink to #src< itself will be created. On $Unix@ # systems this is done using the )linkat(2). function. If '?follow> is not provided, then the 'link(2) P function is used whose behaviour is OS-dependent, but more widely available.@@&ENOSYS#On $Unix@$ if )~follow:_ : is requested, but linkat is unavailable.@&ENOSYS#On 'Windows@$ if -~follow:false. is requested.@@@@@'@''USQOMK@IGECA?=@ '%@ '!@@@@'-Unix.realpath3*realpath p= is an absolute pathname for !p % obtained by resolving all extra !/ 7 characters, relative path segments and symbolic links.@@@@$4.13@@@@@@@'+@ ',@@@@'$A@>File permissions and ownership@@#6Unix.access_permission3.Flags for the +Unix.accessD@& call.@@@@@@@@@@@@@'2@@3/Read permission@@@@@@@@@@@@'2@@30Write permission@@@@@@@@@@@@'2@@34Execution permission@@@@@@@@@@@@'2@@3+File exists@@@@@@@@@@@@@A@@'5'8@@*Unix.chmod3 )Change the permissions of the named file.@@@@@@@@@@@@'8@ '9@ '5@@@@'*+Unix.fchmod3 )Change the permissions of an opened file.@@@@@@@@0Invalid_argument*on Windows@@@@@'1@ %'2@ ('+@@@@' *Unix.chown3 5Change the owner uid and owner gid of the named file.@@@@@@@@0Invalid_argument*on Windows@@@@@''@ ='(@ @'$@ C' @@@@'+Unix.fchown3 5Change the owner uid and owner gid of an opened file.@@@@@@@@0Invalid_argument*on Windows@@@@@'@ X' @ ['@ ^'@@@@' ]3 LSet the process's file mode creation mask, and return the previous mask.@@@@@@@@0Invalid_argument*on Windows@@@@@'@ r'@@@@'3 ECheck 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.@@@@@@@@*Unix_error*otherwise.@@@@@'@ '@ '@@@@'A@>Operations on file descriptors@@(Unix.dup3 ZReturn a new file descriptor referencing the same file as the given descriptor. See ӐD@: for documentation on the 'cloexec6 optional argument.@@@@@@@@@@@@'@''@ ' @@@@&)Unix.dup23,dup2 src dst, duplicates #src$ to #dst*, closing #dst> if already opened. See D@: for documentation on the 'cloexec6 optional argument.@@@@@@@@@@@@'!@'!' @ '@ '@@@@'1Unix.set_nonblock3 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 x error instead of blocking; writing on a descriptor on which there is temporarily no room for writing also raises &EAGAIN$ or +EWOULDBLOCK!.@@@@@@@@@@@@'@ ' @@@@'3Unix.clear_nonblock3 @Clear the ``non-blocking'' flag on the given descriptor. See 0D@!.@@@@@@@@@@@@'@ *'@@@@'Z3 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.@ p The best way to set a file descriptor ``close-on-exec'' is to create it in this state. To this end, the (openfile1 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 g 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 d). For historical reasons, the default file descriptor creation mode is ``keep-on-exec'', if no 'cloexec p optional argument is given. This is not a safe default, hence it is highly recommended to pass explicit 'cloexec 9 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 1set_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 1set_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.@ 0 Regarding the atomicity guarantees given by -~cloexec:true9 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.@@@@@@@@@@@@'@ '@@@@'~8Unix.clear_close_on_exec3 AClear the ``close-on-exec'' flag on the given descriptor. See D@!.@@@@@@@@@@@@'@ '@@@@'{A@+Directories@@*Unix.mkdir3 3Create a directory with the given permissions (see ҐD@").@@@@@@@@@@@@'@ '@ '@@@@'{*Unix.rmdir3:Remove an empty directory.@@@@@@@@@@@@'|@ '}@@@@'u*Unix.chdir3 %Change the process working directory.@@@@@@@@@@@@'v@ 'w@@@@'o+Unix.getcwd3 1Return the name of the current working directory.@@@@@@@@@@@@'p@ 'q@@@@'i+Unix.chroot3 "Change the process root directory.@@@@@@@@0Invalid_argument*on Windows@@@@@'p@ $'q@@@@'i#/Unix.dir_handle3 0The type of descriptors over opened directories.@@@@@@@@@@@@@@A@@'l'k@@,Unix.opendir3 Open a descriptor on a directory@@@@@@@@@@@@'n@ @'o@@@@'d,Unix.readdir3 %Return the next entry in a directory.@@@@@@@@+End_of_file /when the end of the directory has been reached.@@@@@'k@ U'l@@@@'a.Unix.rewinddir3 ;Reposition the descriptor to the beginning of the directory@@@@@@@@@@@@'b@ d'c@@@@'X-Unix.closedir3=Close a directory descriptor.@@@@@@@@@@@@'Y@ s'Z@@@@'OA@6Pipes and redirections@@)Unix.pipe3 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  D@: for documentation on the 'cloexec6 optional argument.@@@@@@@@@@@@'c@'c'b@ 'Z@@@@'A+Unix.mkfifo3 4Create a named pipe with the given permissions (see  D@").@@@@@@@@0Invalid_argument*on Windows@@@@@'N@ 'O@ 'K@@@@'@A@ -High-level process and redirection management@@ 3 ,create_process prog args stdin stdout stderr = creates a new process that executes the program in file $prog1, with arguments $args $. Note that the first argument, (args.(0) M, 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 &stderr0. Passing e.g.  ϐD@% for &stdout prevents the redirection and causes the new process to have the same standard output as the current process. The executable file $prog c is searched in the path. The new process has the same environment as the current process.@@@@@@@@@@@@'@ '@ '@'y@'r@'k@@@@'`7Unix.create_process_env3 4create_process_env prog args env stdin stdout stderr- works as  D@ $, except that the extra argument #env 1 specifies the environment passed to the program.@@@@@@@@@@@@'p@4'q@7'm@:'c@='Y@@'R@C'K@@@@'@4Unix.open_process_in3  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.exe2 on Windows), cf.  D@). The 6Filename.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, 9Unix.open_process_args_inD@ C can be used as a more robust and more efficient alternative to (D@!.@@@@@@@@@@@@'f@w'g@@@@'\5Unix.open_process_out3(Same as =D@ , 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@@ z at the right times to ensure correct synchronization. If the command does not need to be run through the shell, :Unix.open_process_args_outD@; can be used instead of D@!.@@@@@@@@@@@@'v@'w@@@@'l1Unix.open_process3(Same as 1D@ 7, 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, 6Unix.open_process_argsD@; can be used instead of D@!.@@@@@@@@@@@@'@'@@@@'h6Unix.open_process_full3+Similar to +D@ , 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, ;Unix.open_process_args_fullD@; can be used instead of D@!.@@@@@@@@@@@@'|@'}@'y@@@@'P83;open_process_args prog args2 runs the program $prog4 with arguments $args !. Note that the first argument, (args.(0) M, is by convention the filename of the program being executed, just like ,Sys.argv.(0) Y. 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.@ S Warning: writes on output channels are buffered, hence be careful to call ,Stdlib.flush@@ : at the right times to ensure correct synchronization.@9 The executable file $prog M is searched for in the path. This behaviour changed in 4.12; previously $prog 1 was looked up only in the current directory.@ E The new process has the same environment as the current process.@@@@$4.08@@@@@@@'@/'@2'@@@@'iΐ3(Same as D@ @, but redirects only the standard output of the new process.@@@@$4.08@@@@@@@'q@H'r@K'n@@@@']3(Same as D@ ?, but redirects only the standard input of the new process.@@@@$4.08@@@@@@@'e@a'f@d'b@@@@'Q3+Similar to D@ , 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.@@@@$4.08@@@@@@@'Y@z'Z@}'V@'L@@@@'#3Unix.process_in_pid3 'Return the pid of a process opened via %D@ ' or the pid of the shell opened via LD@!.@@@@94.08 (4.12 in UnixLabels)@@@@@@@'2@'3@@@@'(4Unix.process_out_pid3 'Return the pid of a process opened via D@ ' or the pid of the shell opened via 5D@!.@@@@94.08 (4.12 in UnixLabels)@@@@@@@'7@'8@@@@'-0Unix.process_pid3 'Return the pid of a process opened via D@ ' or the pid of the shell opened via D@!.@@@@94.08 (4.12 in UnixLabels)@@@@@@@'<@';@'4@@'B@@@')5Unix.process_full_pid3 'Return the pid of a process opened via D@ ' or the pid of the shell opened via *D@!.@@@@94.08 (4.12 in UnixLabels)@@@@@@@'8@'7@'0@')@@'A@@@'5Unix.close_process_in39Close channels opened by ǐD@ X, wait for the associated command to terminate, and return its termination status.@@@@@@@@@@@@'%@'&@@@@'6Unix.close_process_out39Close channels opened by D@ X, wait for the associated command to terminate, and return its termination status.@@@@@@@@@@@@'@+' @@@@'2Unix.close_process39Close channels opened by D@ X, wait for the associated command to terminate, and return its termination status.@@@@@@@@@@@@'@B'@E'@@'@@@'7Unix.close_process_full39Close channels opened by D@ X, wait for the associated command to terminate, and return its termination status.@@@@@@@@@@@@' @\' @_'@b&@@'@@@&A@.Symbolic links@@,Unix.symlink37symlink ?to_dir src dst2 creates the file #dst # as a symbolic link to the file #src.. On Windows, '~to_dir P indicates if the symbolic link points to a directory or a file; if omitted, 'symlink* examines #src* using $stat= and picks appropriately, if #src5 does not exist then %false < is assumed (for this reason, it is recommended that the '~to_dir 2 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.@ E 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.@$ 0Unix.has_symlinkD@ I can be used to check that a process is able to create symbolic links.@@@@@@@@@@@@'U@'U'T@'L@'H@@@@'@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.@@@@$4.03@@@@@@@'H@'I@@@@'A-Unix.readlink3 %Read the contents of a symbolic link.@@@@@@@@@@@@'B@'C@@@@';A@'Polling@@+Unix.select3 ]Wait until some input/output operations become possible on some channels. The three list arguments are, respectively, a set of descriptors to check for reading (first argument), for writing (second argument), or for exceptional conditions (third argument). The fourth argument is the maximal timeout, in seconds; a negative fourth argument means no timeout (unbounded wait). The result is composed of three sets of descriptors: those ready for reading (first component), ready for writing (second component), and over which an exceptional condition is pending (third component).@ 3 On Windows, if one of descriptor lists exceeds *FD_SETSIZE z elements (64 by default), or if at least one non-socket file descriptor is used, the maximal timeout is capped to 2"32@. milliseconds.@@@@@@@@@@@@'U@+'V@.'I@1'<@4'/@@@@&A@'Locking@@#1Unix.lock_command3-Commands for *Unix.lockfD@!.@@@@@@@@@@@@@'@@3/Unlock a region@@@@@@@@@@@@'@@3 6Lock a region for writing, and block if already locked@@@@@@@@@@@@'@@3 4Lock a region for writing, or fail if already locked@@@@@@@@@@@@'@@3 %Test a region for other process locks@@@@@@@@@@@@'@@3 6Lock a region for reading, and block if already locked@@@@@@@@@@@@'@@3 4Lock a region for reading, or fail if already locked@@@@@@@@@@@@@A@@' '@@B31lockf fd mode len 2 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  0D@/), and extends #len5 bytes forward if #len. is positive, #len4 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 J 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.@ D 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.@@@@@@@@@@@@'@ '@'~@'w@@@@'oA@'Signals@ L Note: installation of signal handlers is performed via the functions *Sys.signal@@% and .Sys.set_signal@@!.@)Unix.kill3/kill pid signal5 sends signal number &signal; to the process with id #pid!.@9 On Windows: only the +Sys.sigkill@@ H signal is emulated, causing the receiving process to exit with code 5ERROR_PROCESS_ABORTED G (1067). Before OCaml 5.5, the receiving process exited with code 0.@@@@@@@@@@@@'@U'@X'@@@@'#8Unix.sigprocmask_command@@'@@@'@@@'@@@@A@@''@@0Unix.sigprocmask35sigprocmask mode sigs + changes the set of blocked signals. If $mode$ is +SIG_SETMASK 2, blocked signals are set to those in the list $sigs(. If $mode$ is )SIG_BLOCK1, the signals in $sigs 3 are added to the set of blocked signals. If $mode$ is +SIG_UNBLOCK1, the signals in $sigs 4 are removed from the set of blocked signals. +sigprocmask / returns the set of previously blocked signals.@ * Each domain, and each thread when the &Thread 0 module is loaded, has its own signal mask. +sigprocmask B only changes the mask of the current domain or current thread.@@@@@@@@0Invalid_argument 3on Windows (no inter-process signals on Windows)@@@@@'@'@'@@@@'/Unix.sigpending3 =Return the set of blocked signals that are currently pending.@@@@@@@@0Invalid_argument 3on Windows (no inter-process signals on Windows)@@@@@'@'@@@@'/Unix.sigsuspend3/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.@@@@@@@@0Invalid_argument 3on Windows (no inter-process signals on Windows)@@@@@'@'@@@@'*Unix.pause3 :Wait until a non-ignored, non-blocked signal is delivered.@@@@@@@@0Invalid_argument 3on Windows (no inter-process signals on Windows)@@@@@'@'@@@@',Unix.sigwait3,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!.@@@@#5.4@@@0Invalid_argument 3on Windows (no inter-process signals on Windows)@@@@@'@J'@@@@'A@.Time functions@@#2Unix.process_times3 -The execution times (CPU times) of a process.@@@@@@@@@@@@@'@@'39User time for the process@@@@@@@@@@@@'@@'3;System time for the process@@@@@@@@@@@@'@@'3 $User time for the children processes@@@@@@@@@@@@'@@'3 &System time for the children processes@@@@@@@@@@@@@A@@''@@#'Unix.tm3 7The type representing wallclock time and calendar date.@@@@@@@@@@@@@'@@'3-Seconds 0..60@@@@@@@@@@@@'@@'3-Minutes 0..59@@@@@@@@@@@@'@@'3+Hours 0..23@@@@@@@@@@@@'@@'32Day of month 1..31@@@@@@@@@@@@'@@'33Month of year 0..11@@@@@@@@@@@@'@@'3+Year - 1900@@@@@@@@@@@@'@@'39Day of week (Sunday is 0)@@@@@@@@@@@@'@@'32Day of year 0..365@@@@@@@@@@@@'@@'3?Daylight time savings in effect@@@@@@@@@@@@@A@@''@@)Unix.time3 HReturn the current time since 00:00:00 GMT, Jan. 1, 1970, in seconds.@@@@@@@@@@@@'@'@@@@'|1Unix.gettimeofday3(Same as D@ +, but with resolution better than 1 second.@@@@@@@@@@@@'@'@@@@'|+Unix.gmtime3 *Convert a time in seconds, as returned by -D@ , 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 +Unix.mktimeD@ ,, and then restore the original value of TZ.@@@@@@@@@@@@'@'@@@@'.Unix.localtime3 *Convert a time in seconds, as returned by ID@ o, into a date and a time. Assumes the local time zone. The function performing the inverse conversion is D@!.@@@@@@@@@@@@'@0'@@@@'(3 *Convert a date and time, specified by the "tm 5 argument, into a time in seconds, as returned by iD@'. The (tm_isdst%, 'tm_wday% and 'tm_yday+ fields of "tm = are ignored. Also return a normalized copy of the given "tm2 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 3 argument is interpreted in the local time zone.@@@@@@@@@@@@'@'@@@@'*Unix.alarm3+Schedule a 'SIGALRM * signal after the given number of seconds.@@@@@@@@0Invalid_argument*on Windows@@@@@'@'@@@@'*Unix.sleep3 /Stop execution for the given number of seconds.@@@@@@@@@@@@'@'@@@@'+Unix.sleepf3 6Stop execution for the given number of seconds. Like %sleep -, but fractions of seconds are supported.@@@@94.03 (4.12 in UnixLabels)@@@@@@@'@'@@@@'*Unix.times3 *Return the execution times of the process.@ V On Windows: partially implemented, will not report timings for child processes.@@@@@@@@@@@@'@'@@@@'+Unix.utimes3 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 M, the access and last modification times are both set to the current time.@@@@@@@@@@@@'@'@'@'@@@@'#3Unix.interval_timer3 #The three kinds of interval timers.@@@@@@@@@@@@@'@@3 .decrements in real time, and sends the signal 'SIGALRM8 when expired.@@@@@@@@@@@@'@@3 .decrements in process virtual time, and sends )SIGVTALRM8 when expired.@@@@@@@@@@@@'@@3 (for profiling) decrements both when the process is running and when the system is running on behalf of the process; it sends 'SIGPROF. when expired.@@@@@@@@@@@@@A@@''@@#:Unix.interval_timer_status3 3The type describing the status of an interval timer@@@@@@@@@@@@@'@@'3&Period@@@@@@@@@@@@'@@'3:Current value of the timer@@@@@@@@@@@@@A@@''@@.Unix.getitimer3 6Return the current status of the given interval timer.@@@@@@@@0Invalid_argument*on Windows@@@@@'@]'@@@@'.Unix.setitimer3-setitimer t s9 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 F to zero causes the timer to be disabled after its next expiration.@@@@@@@@0Invalid_argument*on Windows@@@@@'@'@'@@@@'͠A@1User id, group id@@+Unix.getuid3 5Return the user id of the user executing the process.@? On Windows: always returns !1!.@@@@@@@@@@@@'@'@@@@'ؠ,Unix.geteuid3 :Return the effective user id under which the process runs.@? On Windows: always returns !1!.@@@@@@@@@@@@'@'@@@@'ܠ+Unix.setuid3 ;Set the real user id and effective user id for the process.@@@@@@@@0Invalid_argument*on Windows@@@@@'@'@@@@'ܠ+Unix.getgid3 6Return the group id of the user executing the process.@? On Windows: always returns !1!.@@@@@@@@@@@@'@ '@@@@'ࠕ,Unix.getegid3 ;Return the effective group id under which the process runs.@? On Windows: always returns !1!.@@@@@@@@@@@@'@"'@@@@'䠕+Unix.setgid3 =Set the real group id and effective group id for the process.@@@@@@@@0Invalid_argument*on Windows@@@@@'@7'@@@@'䠕.Unix.getgroups3 MReturn the list of groups to which the user executing the process belongs.@? On Windows: always returns %[|1|]!.@@@@@@@@@@@@'@P'@@@@'⠕.Unix.setgroups30setgroups groups c sets the supplementary group IDs for the calling process. Appropriate privileges are required.@@@@@@@@0Invalid_argument*on Windows@@@@@'@h'@@@@'ߠ/Unix.initgroups35initgroups user group r 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.@@@@@@@@0Invalid_argument*on Windows@@@@@'@'@'@@@@'ꠘ#1Unix.passwd_entry3The type of socket addresses. .ADDR_UNIX name , is a socket address in the Unix domain; $name ' is a file name in the file system. 4ADDR_INET(addr,port) 0 is a socket address in the Internet domain; $addr 0 is the Internet address of the machine, and $port4 is the port number.@@@@@@@@@@@@@'ؑ'@@@'͑'̠'@@@@A@@''@@+Unix.socket3 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 ѐD@: for documentation on the 'cloexec6 optional argument.@@@@@@@@@@@@'@''@'@'@'@@@@'7Unix.domain_of_sockaddr3 ?Return the socket domain adequate for the given socket address.@@@@@@@@@@@@'@'@@@@'/Unix.socketpair3 =Create a pair of unnamed sockets, connected together. See D@: for documentation on the 'cloexec6 optional argument.@@@@@@@@@@@@'@''@'@'@'@@@@'{+Unix.accept3 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 (D@: for documentation on the 'cloexec6 optional argument.@@@@@@@@@@@@'@''@ '@@@@'c)Unix.bind3@@@@'6#5Unix.shutdown_command39The type of commands for (shutdown!.@@@@@@@@@@@@@'<@@33Close for receiving@@@@@@@@@@@@'<@@31Close for sending@@@@@@@@@@@@'<@@3*Close both@@@@@@@@@@@@@A@@'?'B@@-Unix.shutdown3>Shutdown a socket connection. -SHUTDOWN_SEND q as second argument causes reads on the other end of the connection to return an end-of-file condition. 0SHUTDOWN_RECEIVE X causes writes on the other end of the connection to return a closed pipe condition ('SIGPIPE) signal).@@@@@@@@@@@@'T@'U@'N@@@@'C0Unix.getsockname3 'Return the address of the given socket.@@@@@@@@@@@@'D@'E@@@@'70Unix.getpeername3 =Return the address of the host connected to the given socket.@@@@@@@@@@@@'8@'9@@@@'+#-Unix.msg_flag3.The flags for )Unix.recvD@", -Unix.recvfromD@", )Unix.sendD@% and +Unix.sendtoD@!.@@@@@@@@@@@@@'G@@@'A@@@';@@@@A@@'8';@@*3 %Receive data from a connected socket.@@@@@@@@@@@@':@';@'4@'0@',@'(@@@@'=3 (Receive data from an unconnected socket.@@@@@@@@@@@@'@'@'@' @' @'@@@@&栕P3 "Send data over a connected socket.@@@@@@@@@@@@&@)&@,&@/&@2&@5&@@@@&à3Unix.send_substring3(Same as $send A, but take the data from a string instead of a byte sequence.@@@@$4.02@@@@@@@&@L&@O&@R&@U&@X&@@@@&3 %Send data over an unconnected socket.@@@@@@@@@@@@&@f&@i&@l&@o&@r&@u&@@@@&5Unix.sendto_substring3(Same as &sendto A, but take the data from a string instead of a byte sequence.@@@@$4.02@@@@@@@&@&@&@&~@&z@&v@&i@@@@&^A@.Socket options@@#7Unix.socket_bool_option3 .The socket options that can be consulted with /Unix.getsockoptD@6 and modified with /Unix.setsockoptD@ $. These options have a boolean ($true!/%false() value.@@@@@@@@@@@@@&@@3Leave out-of-band data in line@@@@@@@@@@@@&@@3 *Report whether socket listening is enabled@@@@@@@@@@@@&@@3 +Control the Nagle algorithm for TCP sockets@@@@@@@@@@@@&@@3 0Forbid binding an IPv6 socket to an IPv4 address@@@@@@@@@@@@&@@3 )Allow reuse of address and port bindings.@@@@%4.12.@@@@@@@@A@@&&@@#6Unix.socket_int_option3 .The socket options that can be consulted with 3Unix.getsockopt_intD@6 and modified with 3Unix.setsockopt_intD@ *. These options have an integer value.@@@@@@@@@@@@@&@@33Size of send buffer@@@@@@@@@@@@&@@37Size of received buffer@@@@@@@@@@@@&@@31Deprecated. Use 5Unix.getsockopt_errorD@) instead.@@@@@@&@@@@@@&@@36Report the socket type@@@@@@@@@@@@&@@3 7Minimum number of bytes to process for input operations@@@@@@@@@@@@&@@3 8Minimum number of bytes to process for output operations@@@@@@@@@@@@@A@@&&@@#9Unix.socket_optint_option3 .The socket options that can be consulted with 6Unix.getsockopt_optintD@6 and modified with 6Unix.setsockopt_optintD@ ). These options have a value of type *int option', with $None6 meaning ``disabled''.@@@@@@@@@@@@@&@@3 Whether to linger on closed connections that have data present, and for how long (in seconds)@@@@@@@@@@@@@A@@&&@@#8Unix.socket_float_option3 .The socket options that can be consulted with 5Unix.getsockopt_floatD@6 and modified with 5Unix.setsockopt_floatD@ v. These options have a floating-point value representing a time in seconds. The value 0 means infinite timeout.@@@@@@@@@@@@@&@@3%@@@@%Π#.Unix.addr_info3 Address information returned by 0Unix.getaddrinfoD@!.@@@@@@@@@@@@@%@@%Ԑ3-Socket domain@@@@@@@@@@@@%@@%̐3+Socket type@@@@@@@@@@@@%@@%Đ36Socket protocol number@@@@@@@@@@@@%@@%3'Address@@@@@@@@@@@@%@@%33Canonical host name@@@@@@@@@@@@@A@@%%@@#7Unix.getaddrinfo_option3+Options to =D@!.@@@@@@@@@@@@@%%@@3>Impose the given socket domain@@@@@@@@@@@@%%@@3Name of service or port number@@@@@@@@@@@@@A@@%%@@#7Unix.getnameinfo_option3+Options to %D@!.@@@@@@@@@@@@@%ّ@@3?Do not qualify local host names@@@@@@@@@@@@%ّ@@3 Always return host as IP address@@@@@@@@@@@@%ّ@@3 &Fail if host name cannot be determined@@@@@@@@@@@@%ّ@@3 $Always return service as port number@@@@@@@@@@@@%ّ@@3 YConsider the service as UDP-based instead of the default TCP@@@@@@@@@@@@@A@@%%@@]35getnameinfo addr opts P returns the host name and service name corresponding to the socket address $addr#. $opts S is a possibly empty list of options that governs how these names are obtained.@@@@@@@@)Not_found3if an error occurs.@@@@@%@%@%@@@@%٠A@2Terminal interface@@ The following functions implement the POSIX standard terminal interface. They provide control over asynchronous communication ports and pseudo-terminals. Refer to the 'termios ( man page for a complete description.@#0Unix.terminal_io@@%A@%3;Ignore the break condition.@@@@@@@@@@@@%A@%ߐ3 $Signal interrupt on break condition.@@@@@@@@@@@@%A@%ڐ3 %Ignore characters with parity errors.@@@@@@@@@@@@%A@%Ր33Mark parity errors.@@@@@@@@@@@@%A@%А3=Enable parity check on input.@@@@@@@@@@@@%A@%ː3 "Strip 8th bit on input characters.@@@@@@@@@@@@%A@%Ɛ36Map NL to CR on input.@@@@@@@@@@@@%A@%33Ignore CR on input.@@@@@@@@@@@@%A@%36Map CR to NL on input.@@@@@@@@@@@@%A@%3 'Recognize XON/XOFF characters on input.@@@@@@@@@@@@%A@%3 *Emit XON/XOFF chars to control input flow.@@@@@@@@@@@@%A@%39Enable output processing.@@@@@@@@@@@@%A@%3 ,Output baud rate (0 means close connection).@@@@@@@@@@@@%A@%30Input baud rate.@@@@@@@@@@@@%A@%3 #Number of bits per character (5-8).@@@@@@@@@@@@%A@%3:Number of stop bits (1-2).@@@@@@@@@@@@%A@%35Reception is enabled.@@@@@@@@@@@@%A@%3 'Enable parity generation and detection.@@@@@@@@@@@@%A@%3 #Specify odd parity instead of even.@@@@@@@@@@@@%A@%36Hang up on last close.@@@@@@@@@@@@%A@%3:Ignore modem status lines.@@@@@@@@@@@@%|A@%{3 $Generate signal on INTR, QUIT, SUSP.@@@@@@@@@@@@%wA@%v3 YEnable canonical processing (line buffering and editing)@@@@@@@@@@@@%rA@%q3 %Disable flush after INTR, QUIT, SUSP.@@@@@@@@@@@@%mA@%l36Echo input characters.@@@@@@@@@@@@%hA@%g3 )Echo ERASE (to erase previous character).@@@@@@@@@@@@%cA@%b3 &Echo KILL (to erase the current line).@@@@@@@@@@@@%^A@%]3 "Echo NL even if c_echo is not set.@@@@@@@@@@@@%YA@%X3 %Interrupt character (usually ctrl-C).@@@@@@@@@@@@%SA@%R3 Quit character (usually ctrl-\).@@@@@@@@@@@@%NA@%M3 (Erase character (usually DEL or ctrl-H).@@@@@@@@@@@@%IA@%H3 %Kill line character (usually ctrl-U).@@@@@@@@@@@@%DA@%C3 'End-of-file character (usually ctrl-D).@@@@@@@@@@@@%?A@%>3 +Alternate end-of-line char. (usually none).@@@@@@@@@@@@%:A@%93 kMinimum number of characters to read before the read request is satisfied.@@@@@@@@@@@@%5A@%43 "Maximum read wait (in 0.1s units).@@@@@@@@@@@@%0A@%/3 !Start character (usually ctrl-Q).@@@@@@@@@@@@%+A@%*3 Stop character (usually ctrl-S).@@@@@@@@@@@@@A@@%)%(@@.Unix.tcgetattr3 NReturn the status of the terminal referred to by the given file descriptor.@@@@@@@@0Invalid_argument*on Windows@@@@@%1@! %2@@@@%$#1Unix.setattr_when@@%@@@%@@@%@@@@A@@%%@@.Unix.tcsetattr3 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 4), when all pending output has been transmitted ()TCSADRAIN J), or after flushing all input that has been received but not read ()TCSAFLUSH#). )TCSADRAIN 8 is recommended when changing the output parameters; )TCSAFLUSH (, when changing the input parameters.@@@@@@@@0Invalid_argument*on Windows@@@@@%6@!Q%7@!T%0@!W%)@@@@%0Unix.tcsendbreak3 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).@@@@@@@@0Invalid_argument*on Windows@@@@@%%@!l%&@!o%@@@@%,Unix.tcdrain3 TWaits until all output written on the given file descriptor has been transmitted.@@@@@@@@0Invalid_argument*on Windows@@@@@%@!%@@@@%#0Unix.flush_queue@@%@@@%@@@%@@@@A@@$%@@,Unix.tcflush3 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 2 flushes data written but not transmitted, and )TCIOFLUSH. flushes both.@@@@@@@@0Invalid_argument*on Windows@@@@@%@!%@!%@@@@% #0Unix.flow_action@@%@@@$@@@$@@@$@@@@A@@$$@@+Unix.tcflow3 {Suspend or restart reception or transmission of data on the given file descriptor, depending on the second argument: &TCOOFF2 suspends output, %TCOON5 restarts output, &TCIOFF 5 transmits a STOP character to suspend input, and %TCION . transmits a START character to restart input.@@@@@@@@0Invalid_argument*on Windows@@@@@%@"%@"% @@@@$+Unix.setsid3 XPut the calling process in a new session and detach it from its controlling terminal.@@@@@@@@0Invalid_argument*on Windows@@@@@%@"%@@@@$@@$@@A#Sys&Stdlib(Bigarray@@@@@