Caml1999I037֔$`*UnixLabels%error;@@%E2BIG@@.unixLabels.mlimm@@A@&EACCES@@ n n@@B@&EAGAIN@@o  o @@#C@%EBADF@@pUWpU^@@,D@%EBUSY@@%q&q@@5E@&ECHILD@@.r/r@@>F@'EDEADLK@@7s8s@@GG@$EDOM@@@t ) +At ) 1@@PH@&EEXIST@@Iu n pJu n x@@YI@&EFAULT@@Rv  Sv  @@bJ@%EFBIG@@[w  \w  @@kK@%EINTR@@dx  ex  @@tL@&EINVAL@@my 0 2ny 0 :@@}M@#EIO @@vz ` bwz ` g@@N@&EISDIR!@@{  {  @@O@&EMFILE"@@|  |  @@P@&EMLINK#@@}  }  @@Q@,ENAMETOOLONG$@@~ 0 2~ 0 @@@R@&ENFILE%@@ a c a k@@S@&ENODEV&@@@  @  @@T@&ENOENT'@@A  A  @@U@'ENOEXEC(@@B  B  @@V@&ENOLCK)@@C ? AC ? I@@W@&ENOMEM*@@D q sD q {@@X@&ENOSPC+@@E  E  @@Y@&ENOSYS,@@F  F  @@Z@'ENOTDIR-@@G  G  @@[@)ENOTEMPTY.@@H > @H > K@@\@&ENOTTY/@@I q sI q {@@ ]@%ENXIO0@@J  J  @@^@%EPERM1@@K  K  @@_@%EPIPE2@@L$&L$-@@(`@&ERANGE3@@!MOQ"MOY@@1a@%EROFS4@@*N+N@@:b@&ESPIPE5@@3O4O@@Cc@%ESRCH6@@<P=P@@Ld@%EXDEV7@@EQ FQ'@@Ue@+EWOULDBLOCK8@@NRJLORJY@@^f@+EINPROGRESS9@@WSXS@@gg@(EALREADY:@@`TaT@@ph@(ENOTSOCK;@@iUjU@@yi@,EDESTADDRREQ<@@rV35sV3C@@j@(EMSGSIZE=@@{Woq|Wo{@@k@*EPROTOTYPE>@@XX@@l@+ENOPROTOOPT?@@YY@@m@/EPROTONOSUPPORT@@@ZZ&@@n@/ESOCKTNOSUPPORTA@@[IK[I\@@o@*EOPNOTSUPPB@@\\@@p@,EPFNOSUPPORTC@@]]@@q@,EAFNOSUPPORTD@@^^@@r@*EADDRINUSEE@@_OQ_O]@@s@-EADDRNOTAVAILF@@``@@t@(ENETDOWNG@@aa@@u@+ENETUNREACHH@@bb@@v@)ENETRESETI@@c(*c(5@@w@,ECONNABORTEDJ@@dkmdk{@@x@*ECONNRESETK@@ee@@ y@'ENOBUFSL@@ff@@z@'EISCONNM@@ g g'@@{@(ENOTCONNN@@hWYhWc@@$|@)ESHUTDOWNO@@ii@@-}@,ETOOMANYREFSP@@&j'j@@6~@)ETIMEDOUTQ@@/k0k@@?@,ECONNREFUSEDR@@8lCE9lCS@@H@@)EHOSTDOWNS@@AmuwBmu@@QA@,EHOSTUNREACHT@@JnKn@@ZB@%ELOOPU@@SoTo@@cC@)EOVERFLOWV@@\p]p@@lD@+EUNKNOWNERRW#intA@@@@@lrZ\mrZp@@|E@@@A$Unix%error@@@@@@@yl @@@@@@A@ *Unix_error##exnG@@@@&stringQ@@@@@@@@A&_none_@@A@F@B@-error_message@@@@@@@@@@@@@@G@@1handle_unix_error@@!a@@@!b@@@@@@ @@@@@@@444b@@H@@+environment@$unitF@@@@@%arrayJU@@@@@@@@@NNNt@@I@@2unsafe_environment@@@@@@o@@@@@@@@@$$$Q@@J@@&getenv@@@@@@@@@@@@@@$K@@-unsafe_getenv@@@@@@@@@@@@)*@@9L@@&putenv@@@@@@@@@@@@n@@@@@@@@FG@@VM@@(unsetenv@@@@@@@@@@@@[  \  @@kN@@.process_status;@@'WEXITED?@@@@@o!o!sp!o!@@P@)WSIGNALED@&Stdlib#Sys&signal@@@@@!!!"@@Q@(WSTOPPED#Sys&signal@@@@@"e"g"e"@@R@@@A(.process_status@@@@@@@!C!C @@@@O@A@)wait_flag;@@'WNOHANG@@%Q%U%Q%\@@T@)WUNTRACED@@%%%%@@U@@@AJ)wait_flag@@@@@@@%/%/ @@A@S@A@%execv$progD@@@@@$argsR@@@@@@@@!a@@@@@@&/&/&/&a@@V@@&execve$progj@@@@@$args%x@@@@@@@@#env4@@@@@@@@!a@@@@@@@@))))I@@+W@@&execvp$prog@@@@@$argsZ@@@@@@@@!a@@@@@@A))B))@@QX@@'execvpe$prog@@@@@$args@@@@@@@@#env@@@@@@@@!a@@@@@@@@v*:*:w*:*@@Y@@$fork@@@@@@!@@@@@@****@@Z@@$wait@@@@@@@:@@@堠@H@@@@@@@@,,,,@@[@@'waitpid$mode$listK@@@@@@@@@b@@@@@@j@@@@0@@@@@@@@@@ -- --@@\@@&system@[@@@@@D@@@@@@////@@]@@%_exit@@@@@@!a@@@@"11"11@@^@@&getpid@;@@@@@@@@@@@655655@@'_@@'getppid@P@@@@@@@@@@@,955-955@@<`@@$nice@@@@@@@@@@@@A?6k6kB?6k6@@Qa@@*file_descr;@@@A*file_descr@@@@@@@RI77SI77@@@@bb@A@%stdin@@@@_L77`L77@@oc@@&stdout  @@@@kO88lO88/@@{d@@&stderr @@@ @wR8\8\xR8\8s@@e@@)open_flag ;@@(O_RDONLY@@V88V88@@g@(O_WRONLY@@W88W89@@h@&O_RDWR@@X9294X929<@@i@*O_NONBLOCK@@Y9v9xY9v9@@j@(O_APPEND@@Z99Z99@@k@'O_CREAT@@[99[99@@l@'O_TRUNC@@\:+:-\:+:6@@m@&O_EXCL@@]:s:u]:s:}@@n@(O_NOCTTY@@^::^::@@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)open_flag@@@ @@@@U88 @@A@f@A@)file_perm ;@@@A@@@ @@@@p>>p>>@@A@-v@A@(openfile @@@@ @@ $mode{@@@@@@@@$perm2@@@@@@@@@@@@@@@Jt?Q?QKt?Q?@@Zw@@%close@@@@@@@@@@@@^y@Y@Y_y@Y@w@@nx@@%fsync@@@@@@@@@@@@r|@@s|@@@@y@@$read@$@@@@@ #buf%bytesC@@@!@@"#pos.@@@#@@$#len8@@@%@@&<@@@'@@(@@)@@*@@+@@@@A,@@z@@-read_bigarray@X@@@,@@-#bufD(Bigarray&Array1!t@@0O(Bigarray1int8_unsigned_elt@@@/W(Bigarray(c_layout@@@.@@@1@@2#posx@@@3@@4#len@@@5@@6@@@7@@8@@9@@:@@;@AABdB@@{@@%write@@@@<@@=#buf~@@@>@@?#pos@@@@@@A#len@@@B@@C@@@D@@E@@F@@G@@H@"BB#BC @@2|@@.write_bigarray@@@@I@@J#buf(Bigarray&Array1!t|@M(Bigarray1int8_unsigned_elt@@@L(Bigarray(c_layout@@@K@@@N@@O#pos@@@P@@Q#len@@@R@@S@@@T@@U@@V@@W@@X@kD<D<lDD@@{}@@,single_write@@@@Y@@Z#buf@@@[@@\#pos%@@@]@@^#len/@@@_@@`3@@@a@@b@@c@@d@@e@EEEE^@@~@@/write_substring@O@@@f@@g#buf(@@@h@@i#posW@@@j@@k#lena@@@l@@me@@@n@@o@@p@@q@@r@EEEF>@@@@6single_write_substring@@@@s@@t#bufZ@@@u@@v#pos@@@w@@x#len@@@y@@z@@@{@@|@@}@@~@@@FFFF@@@@5single_write_bigarray@@@@@@#buf(Bigarray&Array1!t[@(Bigarray1int8_unsigned_elt@@@(Bigarray(c_layout@@@@@@@@#pos@@@@@#len@@@@@@@@@@@@@@@@@JGoGoKGH@@Z@@3in_channel_of_descr@@@@@@*in_channel@@@@@@_HH`HH@@o@@4out_channel_of_descr@@@@@@+out_channel@@@@@@tMMuMN%@@@@3descr_of_in_channel@*in_channel@@@@@+@@@@@@QQQR@@@@4descr_of_out_channel@+out_channel@@@@@@@@@@@@R^R^R^R@@@@,seek_command;@@(SEEK_SETB@@S"S&S"S.@@@(SEEK_CURC@@SpSrSpS|@@@(SEEK_ENDD@@SSSS@@@@@AS,seek_command@@@@@@@RR @@A@@A@%lseek@{@@@@@@w@@@@@$modeF@@@@@@@@@@@@@@@T*T*T*Tc@@@@(truncate@q@@@@@#len@@@@@6@@@@@@@@ TT TU @@ @@)ftruncate@@@@@@#len@@@@@T@@@@@@@@ ,U?U? -U?Ul@@ <@@)file_kind ;@@%S_REGI@@ ; VV < VV @@ K@%S_DIRJ@@ D V4V6 E V4V=@@ T@%S_CHRK@@ M VeVg N VeVn@@ ]@%S_BLKL@@ VVV WVV@@ f@%S_LNKM@@ _VV `VV@@ o@&S_FIFON@@ hWW iWW@@ x@&S_SOCKO@@ qW8W: rW8WB@@ @@@A)file_kind@@@@@@@ | UU @@A@ @A@%stats!;@@&st_devQ@@#@@@Ű WW WW@@ @&st_inoR@@/@@@İ WW WW@@ @'st_kindS@@r@@@ð WW WX@@ @'st_permT@@j@@@° X"X& X"X:@@ @(st_nlinkU@@R@@@ XWX[ XWXj@@ @&st_uidV@@^@@@ XX XX@@ @&st_gidW@@j@@@ XX XX@@ @'st_rdevX@@v@@@ YY YY @@ @'st_sizeY@@@@@ YQYU YQYc@@ @(st_atimeZ@@%floatD@@@ YY YY@@ @(st_mtime[@@@@@ YY YY@@ @(st_ctime\@@@@@ YZ YZ@@ "@@@A%stats@@@@@@@ WgWg  Z;Z>@@@@ -@A@$stat"@@@@@@@@@@@@ 2#ZvZv 3#ZvZ@@ B@@%lstat#@@@@@@@@@@@@ F&ZZ G&ZZ@@ V@@%fstat$@@@@@@(@@@@@@ Y*[Q[Q Z*[Q[p@@ i@@&isatty%@ @@@@@$boolE@@@@@@ o.[[ p.[[@@ @@Ӡ)LargeFile&@%lseek@'@@@R@@S@%int64O@@@T@@U$mode@@@V@@W@@@X@@Y@@Z@@[@ 6\\ 6\\@@ @@(truncate@@@@\@@]#len*@@@^@@_@@@`@@a@@b@ 9\\ 9\]$@@ @@)ftruncate@m@@@c@@d#lenH@@@e@@f@@@g@@h@@i@ <]A]E <]A]t@@ @@%stats;@@&st_deve@@@@@u @]] @]]@@ @&st_inof@@@@@t A]] A]^@@ @'st_kindg@@^@@@s B^+^3 B^+^G@@ @'st_permh@@@@@r C^g^o C^g^@@ @(st_nlinki@@@@@q D^^ D^^@@ )@&st_uidj@@@@@p %E^^ &E^^@@ 5@&st_gidk@@@@@o 1F__# 2F__0@@ A@'st_rdevl@@@@@n =G_c_k >G_c_y@@ M@'st_sizem@@@@@m IH__ JH__@@ Y@(st_atimen@@]@@@l UI__ VI__@@ e@(st_mtimeo@@i@@@k aJ``' bJ``8@@ q@(st_ctimep@@u@@@j mK`a`i nK`a`z@@ }@@@A )LargeFile%stats@@@v@@@@ z?]] {L``@@@@ @A@$stat@@@@w@@x@@@y@@z@ M`` M``@@ @@%lstat@ @@@{@@|@@@}@@~@ N`` N``@@ @@%fstat@U@@@@@(@@@@@@ O`` O`a@@ @@@@ 4\\ Paa@ @@@(map_file'@l@@@@@#pos&optionLM@@@@@@@@$kindh(Bigarray$kind!a@!b@@@@@@&layout(Bigarray&layout!c@@@@@@&shared@@@@@$dims < @@@@@@@@(Bigarray(Genarray!t@<*@@@@@@@@@@@@@@@@ ,^c4c4 -ccd@@ <@@&unlink(@ @@@@@ i@@@@@@ All Bll@@ Q@@&rename)#src @@@@@#dst @@@@@ @@@@@@@@ bmm cmm@@ r@@$link*&follow @@@@@@@@#src @@@@@#dst @@@@@ @@@@@@@@@@ oUoU oo@@ @@(realpath+@ @@@@@ @@@@@@ rr rr@@ @@1access_permission,;@@$R_OK@@ s#s' s#s+@@ @$W_OK@@ sZs\ sZsb@@ @$X_OK@@ ss ss@@ @$F_OK@@ ss ss@@ @@@A d1access_permission@@@ @@@@ rr @@A@ @A@%chmod-@ \@@@ @@ $perm@@@ @@  @@@@@@@@ t(t( t(tT@@ @@&fchmod.@@@@@@$perm@@@@@ =@@@@@@@@ tt tt@@ %@@%chown/@ @@@@@#uid @@@@@#gid @@@@@ f@@@@@@@ @@!@ >uu ?uuC@@ N@@&fchown0@@@@"@@##uid @@@$@@%#gid @@@&@@' @@@(@@)@@*@@+@ fuu guu@@ v@@%umask1@0@@@,@@-3@@@.@@/@ yvFvF zvFvh@@ @@&access2@ @@@0@@1$permנ@@@2@@@3@@4 @@@5@@6@@7@ vv vw @@ @@#dup3'cloexecܠF@@@8@@@9@@:@]@@@;@@<`@@@=@@>@@?@ x'x' xgx@@ @@$dup24'cloexecg@@@@@@@A@@B#src@@@C@@D#dst@@@E@@F @@@G@@H@@I@@J@ y:y: y{y@@ @@,set_nonblock5@@@@K@@L '@@@M@@N@ z\z\z\z@@@@.clear_nonblock6@@@@O@@P ;@@@Q@@R@{{{|@@#@@1set_close_on_exec7@@@@S@@T O@@@U@@V@'|l|l(|l|@@7@@3clear_close_on_exec8@@@@W@@X c@@@Y@@Z@;6<6E@@K@@%mkdir9@ @@@[@@\$perm@@@]@@^ @@@_@@`@@a@Y>Z>@@i@@%rmdir:@ @@@b@@c @@@d@@e@nA11oA1K@@~@@%chdir;@ @@@f@@g @@@h@@i@DooDo@@@@&getcwd<@ @@@j@@k @@@l@@m@GG@@@@&chroot=@ @@@n@@o @@@p@@q@JJ)@@@@*dir_handle>;@@@A G*dir_handle@@@r@@@@O}}O}@@@@@A@'opendir?@ @@@@s@@t@@@u@@v@RR@@@@'readdir@@@@@w@@x X@@@y@@z@U$$U$F@@@@)rewinddirA@%@@@{@@| #@@@}@@~@YY@@ @@(closedirB@9@@@@@ 7@@@@@@\""\"C@@@@$pipeC'cloexecN@@@@@@@@@ V@@@@@@ @@@@ @@@@@@@@@@:d;e@@J@@&mkfifoD@ @@@@@$perm @@@@@ @@@@@@@@XlYl>@@h@@.create_processE$prog @@@@@$args  @@@@@@@@%stdin %@@@@@&stdout .@@@@@&stderr 7@@@@@ /@@@@@@@@@@@@@@uwMi@@@@2create_process_envF$prog @@@@@$args ؠ +@@@@@@@@#env  :@@@@@@@@%stdin u@@@@@&stdout ~@@@@@&stderr @@@@@ @@@@@@@@@@@@@@@@8@@@@/open_process_inG@ k@@@@@ *in_channel@@@@@@!@@@@0open_process_outH@ @@@@@ +out_channel@@@@@@@@%@@,open_processI@ @@@@@@ *in_channel@@@Š@ +out_channel@@@@@@@@67@@F@@1open_process_fullJ@ @@@@@#env s @@@@@@@@@ *in_channel@@@Ϡ@ +out_channel@@@Π@ *in_channel@@@@@@@@@@mn@@}@@1open_process_argsK@ @@@@@@  @@@@@@@@@ *in_channel@@@٠@ +out_channel@@@@@@@@@@ggg@@@@4open_process_args_inL@@@@@@@ ֠)@@@@@@@@ ?*in_channel@@@@@@@@@@@@5open_process_args_outM@@@@@@@@ L@@@@@@@@ b+out_channel@@@@@@@@777x@@@@6open_process_args_fullN@c@@@@@@o@@@@@@@@@)|@@@@@@@@@ *in_channel@@@@ +out_channel@@@@ *in_channel@@@@@@@@@@@@#$7`@@3@@.process_in_pidO@ *in_channel@@@@@@@@@@@9yy:y@@I@@/process_out_pidP@ +out_channel@@@@@@@@@@@O22P2Z@@_@@+process_pidQ@@ *in_channel@@@@ +out_channel@@@@@@@@@@@@ @pq @@@@0process_full_pidR@@*in_channel@@@ @+out_channel@@@ @*in_channel@@@ @@ @@.@@@@@@@@@@0close_process_inS@+*in_channel@@@@@ @@@@@@@@@@1close_process_outT@@+out_channel@@@@@ @@@@@@LLL@@@@-close_processU@@Y*in_channel@@@@`+out_channel@@@@@@@ 9@@@@@@M@@@@2close_process_fullV@@y*in_channel@@@!@+out_channel@@@ @*in_channel@@@@@"@@# `@@@$@@%@    )@@@@'symlinkW&to_dirH@@@&@@@'@@(#src@@@)@@*#dst@@@+@@,`@@@-@@.@@/@@0@89F@@H@@+has_symlinkX@q@@@1@@2@@@3@@4@M6N6@@]@@(readlinkY@@@@5@@6@@@7@@8@b=>>c=>]@@r@@&selectZ$read  @@@9@@@:@@;%write Ơ (@@@<@@@=@@>&except Ԡ 6@@@?@@@@@@A'timeout@@@B@@C@  L@@@H@@@I@  V@@@F@@@G@  `@@@D@@@E@@J@@K@@L@@M@@N@DFD@@@@,lock_command[;@@'F_ULOCKǐ@@YY@@@&F_LOCKȐ@@ZZ@@@'F_TLOCKɐ@@[-/[-8@@@&F_TESTʐ@@\{}\{@@@'F_RLOCKː@@]]@@@(F_TRLOCK̐@@^  ^ @@ @@@A,lock_command@@@O@@@@X @@A@@A@%lockf\@ @@@P@@Q$modeY@@@R@@S#len@@@T@@UU@@@V@@W@@X@@Y@-aww.aw@@=@@$kill]#pid@@@Z@@[&signal#Sys&signal@@@\@@]y@@@^@@_@@`@QR@@a@@3sigprocmask_command^;@@+SIG_SETMASKА@@`a@@p@)SIG_BLOCKѐ@@i "j -@@y@+SIG_UNBLOCKҐ@@r.0s.=@@@@@A3sigprocmask_command@@@a@@@@} @@A@@A@+sigprocmask_$mode7@@@b@@c@ڠ#Sys&signal@@@d@@@e@@f*#Sys&signal@@@g@@@h@@i@@j@???@@@@*sigpending`@@@@k@@lG#Sys&signal@@@m@@@n@@o@222Z@@@@*sigsuspenda@`#Sys&signal@@@p@@@q@@r @@@s@@t@@@@@%pauseb@@@@u@@v"@@@w@@x@:::R@@ @@'sigwaitc@N#Sys&signal@@@y@@@z@@{#Sys&signal@@@|@@}@@@*@@-process_timesd;@@)tms_utime@@ 4@@@,-*@@<@)tms_stime@@ @@@@8MQ9Mc@@H@*tms_cutime@@ L@@@DȈȌEȈȟ@@T@*tms_cstime@@ X@@@~PQ@@`@@AA-process_times@@@@@@@[\@@@@k@A@"tme;@@&tm_sec@@@@@m`dn`q@@} @&tm_min@@@@@yɕəzɕɦ@@ @'tm_hour@@@@@@@ @'tm_mday@@'@@@@@ @&tm_mon@@3@@@7;7H@@@'tm_year@@?@@@rvrʄ@@@'tm_wday@@K@@@ʥʩʥʷ@@@'tm_yday@@W@@@@@@(tm_isdst@@ `@@@ $ 4@@@@@Aa"tm@@@@@@@LLgj@@@@ @A@$timef@@@@@@ @@@@@@ˬˬˬ@@@@,gettimeofdayg@&@@@@@ @@@@@@6@@@@&gmtimeh@ @@@@@@@@@@@zzz̒@@'@@)localtimei@ 0@@@@@@@@@@@+ͳͳ,ͳ@@;@@&mktimej@%@@@@@@ K@@@@2@@@@@@@@H΂΂I΂Ο@@X@@%alarmk@@@@@@@@@@@@]ЍЍ^ЍУ@@m@@%sleepl@@@@@@@@@@@@rs)@@@@&sleepfm@ @@@@@@@@@@@bbb|@@@@%timesn@@@@@@{@@@@@@"@@@@&utimeso@@@@@@&access @@@@@%modif @@@@@@@@@@@@@@@ҭҭҭ@@@@.interval_timerp;@@+ITIMER_REAL@@!%!0@@@.ITIMER_VIRTUAL@@ԍԏԍԟ@@@+ITIMER_PROF@@@@ @@@Az.interval_timer@@@@@@@ @@A@@A@5interval_timer_statusq;@@+it_interval@@ @@@"*."*B@@"@(it_value@@ @@@#Y]#Yn@@#@@AA5interval_timer_status@@@@@@@!$֜֟@@@@)!@A@)getitimerr@^@@@@@7@@@@@@.'/'@@>$@@)setitimers@@@@@@@@@@@@@@@@@@@@H,zzI-׊@@X%@@&getuidt@@@@@@@@@@@@]<^<@@m&@@'geteuidu@@@@@@@@@@@@rA^^sA^w@@'@@&setuidv@@@@@@@@@@@@FF@@(@@&getgidw@@@@@@2@@@@@@KccKc{@@)@@'getegidx@@@@@@G@@@@@@PP@@*@@&setgidy@X@@@@@@@@@@@UaaUay@@+@@)getgroupsz@@@@@@u@@@@@@@@@ZZ@@,@@)setgroups{@@@@@@@@@"@@@@@@`݇݇`݇ݨ@@ -@@*initgroups|@|@@@@@@@@@@@?@@@@@@@@fOOfOu@@'.@@,passwd_entry};@@'pw_name@@@@@)oߧ߫*oߧ߼@@90@)pw_passwd@@@@@5p߽6p߽@@E1@&pw_uid@@@@@AqBq@@Q2@&pw_gid@@@@@MrNr@@]3@(pw_gecos@@@@@YsZs@@i4@&pw_dir @@@@@etft$@@u5@(pw_shell @@@@@qu%)ru%:@@6@@@A,passwd_entry@@@@@@@|n}v;>@@@@/@A@+group_entry~;@@'gr_name @@@@@zz@@8@)gr_passwd @@ @@@{{@@9@&gr_gid@@<@@@||@@:@&gr_mem@@Ԡ'@@@@@@}}@@;@@@AK+group_entry@@@@@@@yvv~@@@@7@A@(getlogin@@@@@@H@@@@@@111N@@<@@(getpwnam@Y@@@@@@@@ @@ @@@=@@(getgrnam@n@@@ @@ ~@@@ @@@000T@@>@@(getpwuid@@@@@@*@@@@@@@@%?@@(getgrgid@@@@@@)@@@@@@)pp*p@@9@@@)inet_addr;@@@A)inet_addr@@@@@@@:11;1P@@@@JA@A@3inet_addr_of_string@@@@@@@@@@@@OP@@_B@@3string_of_inet_addr@@@@@@@@@@@@cdG@@sC@@-inet_addr_any!@@@ @op@@D@@2inet_addr_loopback-@@@!@{|@@E@@.inet6_addr_any9@@@"@@@F@@3inet6_addr_loopbackE@@@#@@@G@@-is_inet6_addr@U@@@$@@%:@@@&@@'@   0@@H@@-socket_domain;@@'PF_UNIX@@@@J@'PF_INET@@@@K@(PF_INET6 @@+-+7@@L@@@A\-socket_domain@@@(@@@@ @@A@I@A@+socket_type;@@+SOCK_STREAM"@@EIET@@N@*SOCK_DGRAM#@@z|z@@O@(SOCK_RAW$@@@@P@.SOCK_SEQPACKET%@@@@ Q@@@A+socket_type@@@)@@@@ @@A@M@A@(sockaddr;@@)ADDR_UNIX'@@@,@@,0,C@@*S@)ADDR_INET(@@@+@@@*@@,DF-Dd@@<T@@@A(sockaddr@@@-@@@@7   @@@@FR@A@&socket'cloexec u@@@.@@@/@@0&domain@@@1@@2$kind@@@3@@4(protocol@@@5@@6@@@7@@8@@9@@:@@;@no@@~U@@2domain_of_sockaddr@r@@@<@@=,@@@>@@?@'''X@@V@@*socketpair'cloexec +@@@@@@@A@@B&domainL@@@C@@D$kindK@@@E@@F(protocolK@@@G@@H@^@@@J@c@@@I@@K@@L@@M@@N@@O@*E@@W@@&accept'cloexecj@@@P@@@Q@@R@@@@S@@T@@@@V@m@@@U@@W@@X@@Y@L@@X@@$bind@@@@Z@@[$addr@@@\@@]0@@@^@@_@@`@SS S@@Y@@'connect@@@@a@@b$addr@@@c@@dM@@@e@@f@@g@%&@@5Z@@&listen@@@@h@@i#max@@@j@@kk@@@l@@m@@n@CD+@@S[@@0shutdown_command;@@0SHUTDOWN_RECEIVE1@@RS@@b]@-SHUTDOWN_SEND2@@[\&@@k^@,SHUTDOWN_ALL3@@dNPeN^@@t_@@@A0shutdown_command@@@o@@@@o @@A@~\@A@(shutdown@ @@@p@@q$mode>@@@r@@s@@@t@@u@@v@  @@`@@+getsockname@>@@@w@@x!@@@y@@z@   4@@a@@+getpeername@Q@@@{@@|4@@@}@@~@eee@@b@@(msg_flag;@@'MSG_OOB8@@@@d@-MSG_DONTROUTE9@@@@e@(MSG_PEEK:@@@@f@@@Ag(msg_flag@@@@@@@ @@A@c@A@$recv@@@@@@#bufk@@@@@#pos@@@@@#len@@@@@$modeX`@@@@@@@@@@@@@@@@@@@@@@ggr@@.g@@(recvfrom@@@@@@#buf@@@@@#pos@@@@@#len@@@@@$modeA@@@@@@@@@@@@@@@@@@@@@@@@@@@@@g!h#EW@@wh@@$send@@@@@@#buf@@@@@#pos!@@@@@#len+@@@@@$mode@@@@@@@@=@@@@@@@@@@@@@@&'@@i@@.send_substring@Y@@@@@#buf2@@@@@#posa@@@@@#lenk@@@@@$mode"@@@@@@@@}@@@@@@@@@@@@@@*  +!n@@j@@&sendto@@@@@@#bufu@@@@@#pos@@@@@#len@@@@@$modeb @@@@@@@@$addr@@@@@@@@@@@@@@@@@@@@@0012-E@@@k@@0sendto_substring@@@@@@#buf@@@@@#pos@@@@@#len@@@@@$modeS@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@w5ttx7@@l@@2socket_bool_option;@@(SO_DEBUGB@@BB@@n@,SO_BROADCASTC@@CC@@o@,SO_REUSEADDRD@@DD)@@p@,SO_KEEPALIVEE@@E[]E[k@@q@,SO_DONTROUTEF@@FF@@r@,SO_OOBINLINEG@@GG@@s@-SO_ACCEPTCONNH@@HH@@t@+TCP_NODELAYI@@IKMIKZ@@u@)IPV6_ONLYJ@@JJ@@v@,SO_REUSEPORTK@@KK@@w@@@Ak2socket_bool_option@@@@@@@Aoo @@A@m@A@1socket_int_option;@@)SO_SNDBUFM@@QQ @@y@)SO_RCVBUFN@@R,.R,9@@ z@(SO_ERRORO@@S\^Ti@0ocaml.deprecated Tio Ti@ "Use Unix.getsockopt_error instead.TiTi@@TiTi@@@@@@Tim@@+{@'SO_TYPEP@@$V%V@@4|@+SO_RCVLOWATQ@@-W.W@@=}@+SO_SNDLOWATR@@6X^`7X^m@@F~@@@A1socket_int_option@@@@@@@AP @@A@Px@A@4socket_optint_option;@@)SO_LINGERT@@O^P^@@_@@@A4socket_optint_option@@@@@@@Z]HH @@A@i@A@3socket_float_option;@@+SO_RCVTIMEOV@@hf!%if!0@@x@+SO_SNDTIMEOW@@qgXZrgXg@@@@@A3socket_float_option@@@@@@@|e @@A@@A@*getsockopt@-@@@@@@@@@@@*@@@@@@@@myymy@@@@*setsockopt@I@@@@@@@@@@@@I@@@@@@@@@@@@@@@qqI@@@@.getsockopt_int@l@@@@@@@@@@@l@@@@@@@ @tt@@@@.setsockopt_int@@@@ @@ @@@@ @@ @@@@@@!@@@@@@@@@@w  w N@@ @@1getsockopt_optint@@@@@@@@@@@@A@@@@@@@@@@@zz@@*@@1setsockopt_optint@@@@@@@!@@@@@@e@@@ @@@!@@"j@@@#@@$@@%@@&@B~11CI@@R@@0getsockopt_float@@@@'@@(@@@@)@@*f@@@+@@,@@-@^_ @@n@@0setsockopt_float@@@@.@@/@@@@0@@1@@@@2@@3@@@4@@5@@6@@7@ ~ ~ ~ @@@@0getsockopt_error@3@@@8@@9@@@:@@@;@@<@ & & & W@@@@/open_connection@+@@@=@@>@3*in_channel@@@@@:+out_channel@@@?@@A@@B@    @@@@3shutdown_connection@L*in_channel@@@C@@D@@@E@@F@ U U U @@@@0establish_server@@f*in_channel@@@G@@H@o+out_channel@@@I@@J@@@K@@L@@M@@N$addr}@@@O@@P'@@@Q@@R@@S@+@@@@*host_entry;@@&h_namee@@@@@Y]a]q@@!@)h_aliasesf@@?@@@W@@@X"rv#r@@2@*h_addrtypeg@@@@@V-.@@=@+h_addr_listh@@[@@@T@@@U=>@@M@@@A*host_entry@@@Z@@@@H99I@@@@X@A@.protocol_entry;@@&p_namej@@@@@^Z8<[8L@@j@)p_aliasesk@@@@@\@@@]kMQlMj@@{@'p_protol@@ @@@[wkoxk|@@@@@A .protocol_entry@@@_@@@@  }@@@@@A@-service_entry;@@&s_namen@@@@@d@@@)s_aliaseso@@ @@@b@@@c@@@&s_portp@@G@@@a)@@@'s_protoq@@.@@@`*.*>@@@@@AQ-service_entry@@@e@@@@?B@@@@@A@+gethostname@@@@f@@gN@@@h@@i@|||@@@@-gethostbyname@_@@@j@@k@@@l@@m@@@ @@-gethostbyaddr@@@@n@@o@@@p@@q@ UU U@@ @@.getprotobyname@@@@r@@s@@@t@@u@  @@ *@@0getprotobynumber@@@@v@@w@@@x@@y@ .~~ /~@@ >@@-getservbyname@@@@z@@{(protocol@@@|@@}@@@~@@@@@ M N\@@ ]@@-getservbyport@@@@@@(protocol@@@@@@@@@@@@@ k l@@ {@@)addr_info;@@)ai_familyz@@&@@@ | }@@ @+ai_socktype{@@'@@@  @@ @+ai_protocol|@@)@@@    !@@ @'ai_addr}@@ @@@ QU Qh@@ @,ai_canonname~@@@@@  @@ @@@A>)addr_info@@@@@@@ qq @@@@ @A@2getaddrinfo_option;@@)AI_FAMILYr@@@@@ <@ <Z@@ @+AI_SOCKTYPEu@@@@@  @@ @+AI_PROTOCOLy@@@@@  @@ @.AI_NUMERICHOST@@  "  2@@ @,AI_CANONNAME@@  @@!@*AI_PASSIVE@@ 79 7E@@!@@@A2getaddrinfo_option@@@@@@@!  @@@@!@A@+getaddrinfo@@@@@@@@@@@@@lq@@@@@@@@u@@@@@@@@@@@@@!7!89@@!G@@)name_info;@@+ni_hostname@@@@@!I!;!?!J!;!T@@!Y@*ni_service@@@@@!U!!!V!!@@!e@@@A)name_info@@@@@@@!`!!!a!!@@@@!p@A@2getnameinfo_option;@@)NI_NOFQDN@@!o"L"P!p"L"Y@@!@.NI_NUMERICHOST@@!x""!y""@@!@+NI_NAMEREQD@@!""!""@@!@.NI_NUMERICSERV@@! ##! ##&@@!@(NI_DGRAM@@!!#Y#[!!#Y#e@@!@@@A'2getnameinfo_option@@@@@@@!"" @@A@!@A@+getnameinfo@/@@@@@@R@@@@@@@@@@@@@@@@!%##!%#$8@@!@@+terminal_io;@@(c_ignbrkA@c@@@ϰ!7&|&!7&|&@@!@(c_brkintA@o@@@ΰ!8&&!8&&@@!@(c_ignparA@{@@@Ͱ!9'' !9''#@@!@(c_parmrkA@@@@̰!:'R'V!:'R'n@@"@'c_inpckA@@@@˰";''";''@@"@(c_istripA@@@@ʰ" <''" <''@@"@'c_inlcrA@@@@ɰ"=(("=((1@@"(@'c_igncrA@@@@Ȱ"$>(R(V"%>(R(m@@"4@'c_icrnlA@@@@ǰ"0?(("1?((@@"@@&c_ixonA@@@@ư"<@(("=@((@@"L@'c_ixoffA@@@@Ű"HA))"IA))/@@"X@'c_opostA@@@@İ"TC)|)"UC)|)@@"d@'c_obaudA@@@@ð"`E))"aE))@@"p@'c_ibaudA@ @@@°"lF*%*)"mF*%*?@@"|@'c_csizeA@ @@@"xG*[*_"yG*[*u@@"@(c_cstopbA@ @@@"H**"H**@@"@'c_creadA@#@@@"I**"I**@@"@(c_parenbA@/@@@"J++#"J++;@@"@(c_paroddA@;@@@"K+l+p"K+l+@@"@'c_hupclA@G@@@"L++"L++@@"@(c_clocalA@S@@@"M++"M+, @@"@&c_isigA@_@@@"O,H,L"O,H,b@@"@(c_icanonA@k@@@"P,,"P,,@@"@(c_noflshA@w@@@"R--"R---@@"@&c_echoA@@@@"S-\-`"S-\-v@@#@'c_echoeA@@@@"T--"T--@@# @'c_echokA@@@@#U--# U-.@@#@(c_echonlA@@@@#V.3.7#V.3.O@@#$@'c_vintrA@$charB@@@#"X..##X..@@#2@'c_vquitA@@@@#.Y..#/Y..@@#>@(c_veraseA@@@@#:Z/*/.#;Z/*/F@@#J@'c_vkillA@&@@@#F[/x/|#G[/x/@@#V@&c_veofA@2@@@#R\//#S\//@@#b@&c_veolA@>@@@#^]00#_]00*@@#n@&c_vminA@!@@@#j^0a0e#k^0a0z@@#z@'c_vtimeA@! @@@#v`00#w`01 @@#@(c_vstartA@b@@@#a1:1>#a1:1V@@#@'c_vstopA@n@@@#b11#b11@@#@@@A!"+terminal_io@@@@@@@#4&<&<#c11@@@@#@A@)tcgetattr@K@@@@@@@@@@@#e11#e11@@#@@,setattr_when;@@'TCSANOW@@#l22#l22@@#@)TCSADRAIN@@#m22#m22@@#@)TCSAFLUSH@@#n22#n22@@#@@@A!b,setattr_when@@@@@@@#k2t2t @@A@#@A@)tcsetattr@@@@@@$mode>@@@@@@M@@@@@!%@@@@@@@@@@#p22#p23 @@$ @@+tcsendbreak@@@@@@(duration!@@@@@!C@@@@@@@@$|44$|45$@@$+@@'tcdrain@@@@@@!W@@@@@@$/55$056@@$?@@+flush_queue;@@(TCIFLUSH@@$>66$?66@@$N@(TCOFLUSH@@$G66$H66@@$W@)TCIOFLUSHÐ@@$P66$Q66@@$`@@@A!+flush_queue@@@@@@@$[66 @@A@$j@A@'tcflush@ @@@@@$mode>@@@@@!@@@@@@@@$x66$y67@@$@@+flow_action;@@&TCOOFFƐ@@$88$88@@$@%TCOONǐ@@$88$88@@$@&TCIOFFȐ@@$88$88@@$@%TCIONɐ@@$88$88@@$@@@A"6+flow_action@@@@@@@$8i8i @@A@$@A@&tcflow@^@@@@@$modeG@@@@@!@@@@@@@@$88$88@@$@@&setsid@"@@@@@"u@@@@@@$:A:A$:A:Y@@$@@@#j*UnixLabels0UzbO L~$Unix0^FήfYv+Stdlib__Sys0b'8=OIn/Stdlib__Complex0e<9r@fǠ0Stdlib__Bigarray081}wJf֠&Stdlib0t0VoS%{<F:8CamlinternalFormatBasics0|.e1R$|o@@@Caml1999T037"f}C*UnixLabels*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. .unixLabels.mli_gkm@@@@@@3@@@@#intA;@@A@@@@@9@A@$charB;@@A@@@@@>@A@&stringQ;@@A@@@@@C@@@%bytesC;@@A@@@@@H@@@%floatD;@@A@@@@@M@@@$boolE;@@%falsec@@W@$trued@@]@@@A@@@@@^@A@$unitF;@@"()e@@h@@@A@@@@@i@A@ #exnG;@@@A@@@@@m@@@#effH;@@O@A@A@@@@@@v@@@,continuationI;@@Q@@P@B A@nY@@@@@@@@@%arrayJ;@@R@AA@@@@@@@@@ $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#5@0@@A5$8#8@-Match_failureV#>@@=@9@;@@a@@AF5I4I@)Not_foundZ#O@@@AN=Q<Q@-Out_of_memoryW#W@@@AVEYDY@.Stack_overflow^#_@@@A^MaLa@.Sys_blocked_io_#g@@@AfUiTi@)Sys_error[#o@j@@Ao^r]r@:Undefined_recursive_modulea#x@@w@s@u@@h@@Aon@:Continuation_already_takenb#@@@Awv@&Stdlib@A2 {1 Error report} iooio@@@@@@A+%errorAll@@;@@%E2BIG@@mm@)ocaml.doc8 Argument list too long mm@@@@@@@A@&EACCES@@nn@3 Permission denied nn @@@@@@@B@&EAGAIN@@o  o @0 - Resource temporarily unavailable; try again o "o T@@@@@@@C@%EBADF@@pUWpU^@G5 Bad file descriptor pUmpU@@@@@@@D@%EBUSY@@qq@^6 Resource unavailable qq@@@@@@@+E@&ECHILD@@rr@u2 No child process )r*r@@@@@@@BF@'EDEADLK@@2s3s@? Resource deadlock would occur @s As (@@@@@@@YG@$EDOM@@It ) +Jt ) 1@ ' Domain error for math functions, etc. Wt ) AXt ) m@@@@@@@pH@&EEXIST@@`u n pau n x@- File exists nu n ou n @@@@@@@I@&EFAULT@@wv  xv  @ѐ- Bad address v  v  @@@@@@@J@%EFBIG@@w  w  @萠0 File too large w  w  @@@@@@@K@%EINTR@@x  x  @ Function interrupted by signal x  x  /@@@@@@@L@&EINVAL@@y 0 2y 0 :@2 Invalid argument y 0 Hy 0 _@@@@@@@M@#EIO @@z ` bz ` g@-4 Hardware I/O error z ` xz ` @@@@@@@N@&EISDIR!@@{  {  @D0 Is a directory {  {  @@@@@@@O@&EMFILE"@@|  |  @[ $ Too many open files by the process |  |  @@@@@@@(P@&EMLINK#@@}  }  @r0 Too many links &}  '}  /@@@@@@@?Q@,ENAMETOOLONG$@@/~ 0 20~ 0 @@3 Filename too long =~ 0 H>~ 0 `@@@@@@@VR@&ENFILE%@@F a cG a k@ # Too many open files in the system T a yU a @@@@@@@mS@&ENODEV&@@]@  ^@  @0 No such device k@  l@  @@@@@@@T@&ENOENT'@@tA  uA  @ΐ; No such file or directory A  A  @@@@@@@U@'ENOEXEC(@@B  B  @吠8 Not an executable file B  !B  >@@@@@@@V@&ENOLCK)@@C ? AC ? I@4 No locks available C ? WC ? p@@@@@@@W@&ENOMEM*@@D q sD q {@3 Not enough memory D q D q @@@@@@@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 > K@o5 Directory not empty #H > V$H > p@@@@@@@<\@&ENOTTY/@@,I q s-I q {@ % Inappropriate I/O control operation :I q ;I q @@@@@@@S]@%ENXIO0@@CJ  DJ  @; No such device or address QJ  RJ  @@@@@@@j^@%EPERM1@@ZK  [K  @9 Operation not permitted hK iK #@@@@@@@_@%EPIPE2@@qL$&rL$-@ː- Broken pipe L$<L$N@@@@@@@`@&ERANGE3@@MOQMOY@␠2 Result too large MOgMO~@@@@@@@a@%EROFS4@@NN@7 Read-only file system NN@@@@@@@b@&ESPIPE5@@OO@= Invalid seek e.g. on a pipe OO@@@@@@@c@%ESRCH6@@PP@'1 No such process PP@@@@@@@d@%EXDEV7@@Q Q'@>. Invalid link Q6QI@@@@@@@ e@+EWOULDBLOCK8@@RJLRJY@U7 Operation would block  RJb RJ~@@@@@@@"f@+EINPROGRESS9@@SS@l; Operation now in progress  S!S@@@@@@@9g@(EALREADY:@@)T*T@? Operation already in progress 7T8T@@@@@@@Ph@(ENOTSOCK;@@@UAU@ Socket operation on non-socket NU OU2@@@@@@@gi@,EDESTADDRREQ<@@WV35XV3C@> Destination address required eV3KfV3n@@@@@@@~j@(EMSGSIZE=@@nWoqoWo{@Ȑ2 Message too long |Wo}Wo@@@@@@@k@*EPROTOTYPE>@@XX@ߐ Protocol wrong type for socket XX@@@@@@@l@+ENOPROTOOPT?@@YY@8 Protocol not available YY@@@@@@@m@/EPROTONOSUPPORT@@@ZZ&@ 8 Protocol not supported Z+ZH@@@@@@@n@/ESOCKTNOSUPPORTA@@[IK[I\@$; Socket type not supported [Ia[I@@@@@@@o@*EOPNOTSUPPB@@\\@; # Operation not supported on socket \\@@@@@@@p@,EPFNOSUPPORTC@@]]@R? Protocol family not supported ]]@@@@@@@q@,EAFNOSUPPORTD@@^^@i 1 Address family not supported by protocol family ^^N@@@@@@@6r@*EADDRINUSEE@@&_OQ'_O]@8 Address already in use 4_Og5_O@@@@@@@Ms@-EADDRNOTAVAILF@@=`>`@ Can't assign requested address K`L`@@@@@@@dt@(ENETDOWNG@@TaUa@1 Network is down baca@@@@@@@{u@+ENETUNREACHH@@kblb@Ő8 Network is unreachable yb zb'@@@@@@@v@)ENETRESETI@@c(*c(5@ܐ % Network dropped connection on reset c(@c(j@@@@@@@w@,ECONNABORTEDJ@@dkmdk{@󐠠 " Software caused connection abort dkdk@@@@@@@x@*ECONNRESETK@@ee@ : Connection reset by peer ee@@@@@@@y@'ENOBUFSL@@ff@!; No buffer space available ff@@@@@@@z@'EISCONNM@@gg'@8= Socket is already connected g4gV@@@@@@@{@(ENOTCONNN@@hWYhWc@O9 Socket is not connected hWohW@@@@@@@|@)ESHUTDOWNO@@ i i@f " Can't send after socket shutdown ii@@@@@@@3}@,ETOOMANYREFSP@@#j$j@} # Too many references: can't splice 1j2j@@@@@@@J~@)ETIMEDOUTQ@@:k;k@6 Connection timed out Hk'IkB@@@@@@@a@,ECONNREFUSEDR@@QlCERlCS@4 Connection refused _lC[`lCt@@@@@@@x@@)EHOSTDOWNS@@hmuwimu@. Host is down vmuwmu@@@@@@@A@,EHOSTUNREACHT@@nn@ِ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 p*pX@@@@@@@D@+EUNKNOWNERRW@@@|@@rZ\rZp@#/ Unknown error rZrrZ@@@@@@@E@@@A$Unix%error@@@?@@@@l@= 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. sw)+@@@@@@@@@ @@@#UUSR@A@@@UR QP@PP@@@P@P@#LL nJ@;@@@McKJ@JJ@@@J@J@#FFo D@5@@@Gt,ED@DD@@@D@D@#@@+pUY>@/@@@A=?>@>>@@@>@>@#:: B@@@@ Ր@@@@@@# I q u@@@@. 搠@@@@@@# J  @@@@? @@@@@@# K  @@@@P @@@@@@# L$(@@@@a @@@@@@# MOS@@@@r *@@@@@@# )N@{@@@ ;@@@@@@# :O@u@@@ L@@@@@@# KP~@o@@@ ]~@~~@@@~@~@#zz \Q"x@i@@@{ nyx@xx@@@x@x@#tt mRJNr@c@@@u sr@rr@@@r@r@#nn ~Sl@]@@@o ml@ll@@@l@l@#hh Tf@W@@@i gf@ff@@@f@f@#bb U`@Q@@@c a`@``@@@`@`@#\\ V37Z@K@@@]  Ð[Z@ZZ@@@Z@Z@#VV WosT@E@@@W  ԐUT@TT@@@T@T@#PP XN@?@@@Q - 吠ON@NN@@@N@N@#JJ YH@9@@@K > IH@HH@@@H@H@#DD ZB@3@@@E O CB@BB@@@B@B@#>> [IM<@-@@@? ` =<@<<@@@<@<@#88 \6@'@@@9 q )76@66@@@6@6@#22 (]0@!@@@3  :10@00@@@0@0@#,, 9^*@@@@-  K+*@**@@@*@*@#&& J_OS$@@@@'  \%$@$$@@@$@$@#   [`@@@@!  m@@@@@@# la@ @@@  ~@@@@@@# }b@@@@  @@@@@@# c(, @@@@    @  @@@ @ @# dko@@@@   @@@@@@# e@@@@  @@@@@@# f@@@@  Ӑ@@@@@@# g @@@@ , 䐠@@@@@@# hW[@@@@񠰠 = @@@@@@# i@@@@렰 N @@@@@@# j@@@@堰 _ @@@@@@#ޠް k@@@@ߠ p (@@@@@@#ؠذ 'lCG@@@@٠  9@@@@@@#ҠҰ 8muy@@@@Ӡ  J@@@@@@#̠̰ In@@@@͠  [@@@@@@#Ơư Zo@@@@Ǡ  l@@@@@@# kp@@@@  }@@@@@@# |rZ^ }rZi@@г#int rZm@@3        @  ;@@@A @@@F@{@@@@@@@A @@@@ˠ  @@@@@@@AгĠ$Unix l l@ɰ l l@@@'@@̠  @@@@@@@ @*Unix_error5B z.8 z.B@# @ 4@@@R @@@S @@@T@@A z.. z.]@ 2 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.F z.K@@+3        @  ^ X@A@@г*&string z.N z.T@@2 @@г/&string z.W0@@61@@@@3 b 10@00@@@0@0@>@!>=@-error_message6  @б@г %error ) *@@ @@@V3 + + + + + + + +@;pj@A@@г &string 8 9@@ @@@W@@@@@X@@Y @@@ E @ 2 Return a string describing the given error code.  R S2@@@@@@@ kG@@@  f@@@@@@31handle_unix_error7 i48 j4I@б@б@А!a@cC@Z3 t t t t t t t t@J_6@A z4M {4O@@А!b@eC@[  4S 4U@@@@@\ @@]@@б@А!a 4Z 4\@@А!b  4` 4b@@@,@@^@@_' @@@@@` @@a, 4L @@@ 44@ [handle_unix_error f x] applies [f] to [x] and returns the result. If the exception {!Unix_error} is raised, it prints a message describing the error and exits with code 2.  cc @@@@@@@ H@@@  Ȑ@@@@@@L  Ր ' {1 Access to the process environment}   K@@@@@@3        @^q1@A+environment8 NR N]@б@г $unit N` Nd@@ @@@f@@г y%array No Nt@г ʠ&stringNhNn@@ @@@g1@@@@@@i6 @@@$@@j @@k;'@@@NN@ k 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. uu "@@@@@@@8I@@,@ {3@@@@@@Z2unsafe_environment96$(7$:@б@г 렐$unitA$=B$A@@ @@@l3CCCCCCCC@sn8@A@@г Ӡ%arrayP$LQ$Q@г$&stringZ$E[$K@@ @@@m@@@@@@o @@@&@@p @@q#)@@@l$$@ Ő ' Return the process environment, as an array of strings with the format ``variable=value''. Unlike {!environment}, this function returns a populated array even if the process has special privileges. See the documentation for {!unsafe_getenv} for more details. @since 4.12 yRRzl~@@@@@@@J@@,@ @@@@@@B&getenv:@б@гe&string@@ @@@r3@[p8@A@@гt&string@@ @@@s@@@@@t@@u @@@ @  Return the value associated to a variable in the process environment, unless the process has special privileges. @raise Not_found if the variable is unbound or the process has special privileges. This function is identical to {!Sys.getenv}. p@@@@@@@K@@@ ؐ@@@@@@3-unsafe_getenv;@б@г&string@@ @@@v3@La8@A@@г&string@@ @@@w@@@@@x@@y @@@ @ [  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@@@ k#@@@@@@3&putenv<&'@б@г&string12@@ @@@z333333333@La8@A@@б@г &stringBC@@ @@@{@@г$unitOP@@ @@@|@@@@@}@@~# @@@+@@ @@(.@@@a@ [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. no w @@@@@@@M@@"@ @@@@@@G(unsetenv=    @б@гZ&string    @@ @@@3@`u8@A@@гI$unit    @@ @@@@@@@@@@ @@@   @ [ [unsetenv name] removes the variable [name] from the process environment. @since 5.5   !!"@@@@@@@N@@@͐@@@@@@3ڐ6 {1 Process handling} !%!%!%!@@@@@@@3@EZ1@AA+.process_status>C!C!H!C!V@@;@@'WEXITED?@@@@@!o!s!o!@M X The process terminated normally by [exit]; the argument is the return code. !!!!@@@@@@@P@)WSIGNALED@#Sys&signal@@@@@!!!"@l S The process was killed by a signal; the argument is the signal number.  "" !"4"d@@@@@@@9Q@(WSTOPPED#Sys&signal@@@@@1"e"g2"e"@ T The process was stopped by a signal; the argument is the signal number. ?""@""@@@@@@@XR@@@Ah.process_status@@@@@@@J!C!C@ 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]. W""X% %,@@@@@@@@@pO@@#ssl_!o!z@]@гt#inth!o!~u@@{3ffffffff@;@@@A@@@ @@@@@+)@@@A @@@@@@@@@@#||!!!!@d@г~!!!!@!!@@@,@@@@@@@@@@#~~"e"i"e"q@f@г"e"u"e"x@"e"y@@@M@@@@ǐ@@@@@@@Aг$Unix!C!Y!C!]@!C!^!C!l@@@i@@+㐠@@@@@@@@A+)wait_flagD%/%4%/%=@@;@@'WNOHANG@@%Q%U%Q%\@L e Do not block if no child has died yet, but immediately return with a pid equal to 0. %Q%]%~%@@@@@@@T@)WUNTRACED@@ %% %%@c 5 Report also the children that receive stop signals. %%%&@@@@@@@0U@@@A @)wait_flag@@@@@@@"%/%/@{7 Flags for {!waitpid}. /&&0&&-@@@@@@@A@HS@@#GGED@5@@@GHED@DD@@@D@D@#@@G%%>@/@@@AY?>@>>@@@>@>@@Aг:$Unix]%/%@^%/%D@Aa%/%Eb%/%N@@@I3aaaaaaaa@;@@@A@@@#@@@@@OM@@?@A@@PON@NN@@@N@N@@3yyyyyyyy@@A\t@%execv&/&3&/&8@б$progг]&string&/&@&/&F@@ @@@.3@4@A@@б$argsг)%array&/&V&/&[@гz&string&/&O&/&U@@ @@@/@@@@@@1" @@А!a@8E@2+&/&_&/&a@@+@@3 @@42&/&J@@D;@@5 @@68&/&; @@@&/&/@-  [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&b()@@@@@@@V@@ @=@@@@@@X&execve)))) @б$progгϠ&string))))@@ @@@93@s:@A@@б$argsг%array))*))/@г점&string"))##)))@@ @@@:@@@@@@<" @@б#envг%array8))>9))C@г &stringB))7C))=@@ @@@==@@@@@@?B @@А!a@HE@@KV))GW))I@@+@@A @@BR]))3@@Q:@@C @@DXc)) @@ja@@E @@F^i))@@@l))@Ő g Same as {!execv}, except that the third argument provides the environment to the program executed. y)J)Jz))@@@@@@@W@@&@@@@@@@~&execvp))))@б$progгg&string))))@@ @@@I3@:@A@@б$argsг3%array))))@г&string))))@@ @@@J@@@@@@L" @@А!a@SE@M+))))@@+@@N @@O2))@@D;@@P @@Q8)) @@@))@7 G Same as {!execv}, except that the program is searched in the path. ))**8@@@@@@@X@@ @G@@@@@@X'execvpe*:*>*:*E@б$progг٠&string*:*M*:*S@@ @@@T3@s:@A@@б$argsг%array"*:*c#*:*h@г&string,*:*\-*:*b@@ @@@U@@@@@@W" @@б#envгŠ%arrayB*:*wC*:*|@г&stringL*:*pM*:*v@@ @@@X=@@@@@@ZB @@А!a@cE@[K`*:*a*:*@@+@@\ @@]Rg*:*l@@Q:@@^ @@_Xm*:*W @@ja@@` @@a^s*:*H@@@v*:*:@ϐ H Same as {!execve}, except that the program is searched in the path. ****@@@@@@@Y@@&@@@@@@@~$fork****@б@гO$unit****@@ @@@d3@8@A@@г#int****@@ @@@e@@@@@f@@g @@@** @  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. **,,@@@@@@@Z@@@*␠@@@@@@3$wait,,,,@б@г$unit,,,,@@ @@@h3@La8@A@@В@гנ#int,,,,@@ @@@i@@@г..process_status,,,,@@ @@@j"@@@@@ @@k) @@@1@@l @@m.4@@@&,,@ Wait until one of the children processes die, and return its pid and termination status. @raise Invalid_argument on Windows. Use {!waitpid} instead. 3,,4 -M-@@@@@@@L[@@$@G@@@@@@M'waitpidJ --K --@б$modeгР$listW --X --@гy)wait_flaga --b --@@ @@@n3cccccccc@rD@A@@@ @@@p @@б@гK#intw --x --@@ @@@q@@В@г\#int -- --@@ @@@r'@@@г.process_status -- --@@ @@@s6@@@@@ @@t= @@@/@@u @@vB2@@]D@@w @@xG --@@@ --@  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.  --/k/@@@@@@@\@@*@Ґ@@@@@@g&system////@б@г&string////@@ @@@y3@8@A@@г .process_status////@@ @@@z@@@@@{@@| @@@// @U  Execute the given command, wait until it terminates, and return its termination status. The string is interpreted by the shell [/bin/sh] (or the command interpreter [cmd.exe] on Windows) and therefore can contain redirections, quotes, variables, etc. To properly quote whitespace and shell special characters occurring in file names or command arguments, the use of {!Filename.quote_command} is recommended. The result [WEXITED 127] indicates that the shell couldn't be executed.  //  11@@@@@@@"]@@@e@@@@@@3%_exit "11!"11@б@г#int+"11,"11@@ @@@}3--------@La8@A@@А!a@E@~ <"11="11@@@@@ @@@@@E"11 @  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 R#11S455@@@@@@@k^@@@f@@@@@@1&getpidi655j655@б@г$unitt655u655@@ @@@3vvvvvvvv@J_8@A@@гW#int655655@@ @@@@@@@@@@ @@@655 @鐠 Return the pid of the process. 755755@@@@@@@_@@@@@@@@@3'getppid955955@б@гi$unit955955@@ @@@3@La8@A@@г#int955955@@ @@@@@@@@@@ @@@955 @4 o Return the pid of the parent process. @raise Invalid_argument on Windows (because it is meaningless) :55=6V6i@@@@@@@`@@@D@@@@@@3$nice?6k6o?6k6s@б@гޠ#int ?6k6v ?6k6y@@ @@@3        @La8@A@@г#int?6k6}?6k6@@ @@@@@@@@@@ @@@&?6k6k @ 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 3@664D767^@@@@@@@La@@@G@@@@@@3UT= {1 Basic file input/output} QF7`7`RF7`7@@@@@@3PPPPPPPP@EZ1@AA+*file_descrE^I77_I77@@;@@@A*file_descr@@@@@@@jI77kI77@Đ ( The abstract type of file descriptors. xJ77yJ77@@@@@@@@@b@@@Aг$UnixI77I77@ I77@@@'3@82;@@@A:@@@@@@@@,)@@@A+@@-+*@**@@@*@*@@N87@%stdinL77L77@гU*file_descrL77L77@@ @@@3@f`Z@A@@@L77 @ $ File descriptor for standard input.M77M78@@@@@@@c@@@&ސ@@@@@@!&stdoutO88O88"@г*file_descrO88%O88/@@ @@@3@8K6@A@@@O88 @M % File descriptor for standard output.P8080P808Z@@@@@@@d@@@]@@@@@@!&stderrR8\8`R8\8f@гà*file_descr!R8\8i"R8\8s@@ @@@3########@8K6@A@@@+R8\8\ @ % File descriptor for standard error. 8S8t8t9S8t8@@@@@@@Qe@@@L@@@@@@!A+)open_flagFPU88QU88@@;@@(O_RDONLY@@ZV88[V88@2 Open for reading hV88iV88@@@@@@@g@(O_WRONLY@@qW88rW89@ː2 Open for writing W89W891@@@@@@@h@&O_RDWR@@X9294X929<@␠> Open for reading and writing X929RX929u@@@@@@@i@*O_NONBLOCK@@Y9v9xY9v9@; Open in non-blocking mode Y9v9Y9v9@@@@@@@j@(O_APPEND@@Z99Z99@1 Open for append Z99Z99@@@@@@@k@'O_CREAT@@[99[99@'7 Create if nonexistent [9:[9:*@@@@@@@l@'O_TRUNC@@\:+:-\:+:6@> " Truncate to 0 length if existing \:+:K\:+:r@@@@@@@ m@&O_EXCL@@]:s:u]:s:}@U2 Fail if existing  ]:s: ]:s:@@@@@@@"n@(O_NOCTTY@@^::^::@l ' Don't make this dev a controlling tty  ^::!^::@@@@@@@9o@'O_DSYNC@@)_::*_:;@ e Writes complete as `Synchronised I/O data integrity completion' 7_:;8`;F;@@@@@@@Pp@&O_SYNC@@@a;;Aa;;@ e Writes complete as `Synchronised I/O file integrity completion' Na;;Ob;< @@@@@@@gq@'O_RSYNC@@Wc<<Xc<<@ \ Reads complete as writes (depending on O_SYNC/O_DSYNC) ec<<.fd@@@@@@@t@*O_KEEPEXEC@@k>>k>>*@ b Clear the close-on-exec flag. This is currently the default. k>><l>^>@@@@@@@u@@@A)open_flag@@@@@@@U88@; The flags to {!openfile}. m>>m>>@@@@@@@A@f@@#rrpo@`@@@r#ېpo@oo@@@o@o@#kkW88i@Z@@@l4쐠ji@ii@@@i@i@#eeX9296c@T@@@fEdc@cc@@@c@c@#__Y9v9z]@N@@@`V^]@]]@@@]@]@#YY Z99W@H@@@ZgXW@WW@@@W@W@#SS[99Q@B@@@Tx0RQ@QQ@@@Q@Q@#MM/\:+:/K@<@@@NALK@KK@@@K@K@#GG@]:s:wE@6@@@HRFE@EE@@@E@E@#AAQ^::?@0@@@Bc@?@??@@@?@?@#;;b_::9@*@@@<t:9@99@@@9@9@#55sa;;3@$@@@643@33@@@3@3@#//c<<-@@@@0.-@--@@@-@-@#))e<<'@@@@*('@''@@@'@'@###g==!@@@@$"!@!!@@@!@!@#k>> @ @@@ɐ@@@@@@@Aг$UnixU88U88@U88U88@@@&3@;@@@A@@@@@@@@,*@@@A@@-9񐠠,+@++@@@+@+@@3@@A9Q@A+)file_permGp>>p>>@@;@@A@@@@@@@p>>p>>@Z n The type of file access rights, e.g. [0o640] is read and write for user, read for group, none for others q>>r?)?O@@@@@@@A@'v@@@Aг#intp>>@@3@F);@@@A1@@@@@@@@&#@@@A%@@'~6%$@$$@@@$@$@@3........@@A32@(openfile;t?Q?U<t?Q?]@б@г&stringFt?Q?`Gt?Q?f@@ @@@3HHHHHHHH@2ZT@A@@б$modeгҠ$listYt?Q?yZt?Q?}@г)open_flagct?Q?odt?Q?x@@ @@@@@@@@@" @@б$permг)file_permyt?Q?zt?Q?@@ @@@3@@г(*file_descrt?Q?t?Q?@@ @@@@@@@@@@Et?Q? @@D-@@ @@Kt?Q?j@@@T@@ @@QW@@@t?Q?Q@ Open the named file with the given flags. Third argument is the permissions to give to the file if it is created (see {!umask}). Return a file descriptor on the named file. u??w@@W@@@@@@@w@@)@@@@@@@p%closey@Y@]y@Y@b@б@гp*file_descry@Y@ey@Y@o@@ @@@3@8@A@@г$unity@Y@sy@Y@w@@ @@@@@@@@@@ @@@y@Y@Y @C: Close a file descriptor. z@x@xz@x@@@@@@@@x@@@S @@@@@@3%fsync|@@|@@@б@г*file_descr|@@|@@@@ @@@3@La8@A@@гҠ$unit(|@@)|@@@@ @@@@@@@@@@ @@@5|@@ @ . Flush file buffers to disk. @since 4.12 B}@@C@@@@@@@@@@@@V@@@@@@3$readY@@Z@@@б@г*file_descrd@@e@A@@ @@@3ffffffff@La8@A@@б#bufг<%bytesw@A x@A@@ @@@@@б#posг\#int@A@A@@ @@@$@@б#lenгm#int@A"@A%@@ @@@5@@гz#int@A)@A,@@ @@@B@@@@@@G@A @@5,@@ @@M@A@@LC@@ @@S@A@@@\@@ @@Y_@@@@@@ [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. A-A-AA@@@@@@@z@@/@.搠@@@@@@x-read_bigarray6AAAB@б@г*file_descrBBBB@@ @@@3@8@A@@б#bufг(Bigarray&Array1!t BBOBBW@ BBXBB^@@BB_BB`@ @@@@\& BB!BB@@г(Bigarray1int8_unsigned_elt.BB /BB(@ 2BB)3BB:@@@@@@]? @@г(Bigarray(c_layoutEBB<FBBD@ IBBEJBBM@@@@@@^V @@@P6 @@@b]WBB?@@б#posг7#intcBdBjdBdBm@@ @@@co@@б#lenгH#inttBdBuuBdBx@@ @@@d@@гU#intBdB|BdB@@ @@@e@@@@f@@gBdBq @@5,@@h @@iBdBf@@G@@j @@kBB@@@@@l @@m@@@AA@ D Same as {!read}, but read the data into a bigarray. @since 5.2 BBBB@@@@@@@{@@/@ @@@@@@%write7BBBB@б@гq*file_descrBBBB@@ @@@n3@8@A@@б#bufг%bytesBBBB@@ @@@o@@б#posгǠ#intBBBB@@ @@@p$@@б#lenгؠ#intBCBC@@ @@@q5@@г堐#intBCBC @@ @@@rB@@@@s@@tGBB @@5,@@u @@vM"BB@@LC@@w @@xS(BB@@@\@@y @@zY_@@@0BB@ ) [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. =C C >D"D:@@@@@@@V|@@/@Q@@@@@@x.write_bigarray8TD<D@UD<DN@б@г*file_descr_DQDS`DQD]@@ @@@{3aaaaaaaa@8@A@@б#bufг(Bigarray&Array1!t zDaD{DaD@ ~DaDDaD@@DaDDaD@ @@@@|&DaDhDaDi@@г(Bigarray1int8_unsigned_eltDaDkDaDs@ DaDtDaD@@@@@@}? @@г*(Bigarray(c_layoutDaDDaD@ DaDDaD@@@@@@~V @@@P6 @@@]DaDg?@@б#posг#intDDDD@@ @@@o@@б#lenг#intDDDD@@ @@@@@г#intDDDD@@ @@@@@@@@@DD @@5,@@ @@DD@@G@@ @@DaDc@@@@@ @@@@@ D<D<@d E Same as {!write}, but take the data from a bigarray. @since 5.2 DDEE@@@@@@@1}@@/@t,@@@@@@,single_write9/EE0EE'@б@гܠ*file_descr:EE*;EE4@@ @@@3<<<<<<<<@8@A@@б#bufг%bytesMEE<NEEA@@ @@@@@б#posг2#int^EEI_EEL@@ @@@$@@б#lenгC#intoEETpEEW@@ @@@5@@гP#int|EE[}EE^@@ @@@B@@@@@@GEEP @@5,@@ @@MEEE@@LC@@ @@SEE8@@@\@@ @@Y_@@@EE@ Same as {!write}, but attempts to write only once. Thus, if an error occurs, [single_write] guarantees that no data has been written. E_E_EE@@@@@@@~@@/@@@@@@@x/write_substring:EEEF@б@гl*file_descrEF EF@@ @@@3@8@A@@б#bufг&stringEFEF!@@ @@@@@б#posг #intEF)EF,@@ @@@$@@б#lenгӠ#intEF4EF7@@ @@@5@@гࠐ#int EF; EF>@@ @@@B@@@@@@GEF0 @@5,@@ @@MEF%@@LC@@ @@S#EF@@@\@@ @@Y_@@@+EE@ c Same as {!write}, but take the data from a string instead of a byte sequence. @since 4.02 8F?F?9FF@@@@@@@Q@@/@L@@@@@@x6single_write_substring;OFFPFF@б@г*file_descrZFF[FF@@ @@@3\\\\\\\\@8@A@@б#bufг7&stringmFFnFF@@ @@@@@б#posгR#int~FFFF@@ @@@$@@б#lenгc#intFFFF@@ @@@5@@гp#intFFFF@@ @@@B@@@@@@GFF @@5,@@ @@MFF@@LC@@ @@SFF@@@\@@ @@Y_@@@FF@ j Same as {!single_write}, but take the data from a string instead of a byte sequence. @since 4.02 FFG[Gm@@@@@@@@@/@$ܐ@@@@@@x5single_write_bigarray<GoGsGoG@б@г *file_descrGGGG@@ @@@3@8@A@@б#bufг|(Bigarray&Array1!t  GG GG@  GG GG@@ GG GG@ @@@@& GG GG@@г(Bigarray1int8_unsigned_elt $GG %GG@  (GG )GG@@@@@@? @@г(Bigarray(c_layout ;GG <GG@  ?GG @GG@@@@@@V @@@P6 @@@] MGG?@@б#posг -#int YGG ZGG@@ @@@o@@б#lenг >#int jGG kGG@@ @@@@@г K#int wGH xGH@@ @@@@@@@@@ GG @@5,@@ @@ GG@@G@@ @@ GG@@@@@ @@@@@ GoGo@ L Same as {!single_write}, but take the data from a bigarray. @since 5.2  HH HEHV@@@@@@@ @@/@ @@@@@@  Đ 8 {1 Interfacing with the standard input/output library}  HXHX HXH@@@@@@3        @1@A3in_channel_of_descr= HH HH@б@г z*file_descr HH HH@@ @@@@@гb*in_channel HH HH@@ @@@'@@@@@@@, @@@ HH @K  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.  HH!MM@@@@@@@!@@@[!@@@@@@K4out_channel_of_descr>!MM!MN @б@г à*file_descr!!MN !"MN@@ @@@3!#!#!#!#!#!#!#!#@d_8@A@@г+out_channel!0MN!1MN%@@ @@@@@@@@@@ @@@!=MM @  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. !JN&N&!KQQ@@@@@@@!c@@@!^@@@@@@33descr_of_in_channel?!aQQ!bQR@б@г*in_channel!lQR!mQR@@ @@@3!n!n!n!n!n!n!n!n@La8@A@@г *file_descr!{QR!|QR@@ @@@@@@@@@@ @@@!QQ @ᐠ : Return the descriptor corresponding to an input channel. !RR!RR\@@@@@@@!@@@!@@@@@@34descr_of_out_channel@!R^Rb!R^Rv@б@г 4+out_channel!R^Ry!R^R@@ @@@3!!!!!!!!@La8@A@@г h*file_descr!R^R!R^R@@ @@@@@@@@@@ @@@!R^R^ @ , ; Return the descriptor corresponding to an output channel. !RR!RR@@@@@@@!@@@ <!@@@@@@3""< {1 Seeking and truncating} !RR!RR@@@@@@3!!!!!!!!@EZ1@AA+,seek_commandAH" RR" RS @@;@@(SEEK_SETB@@"S"S&"S"S.@ o ; indicates positions relative to the beginning of the file "#S"S/"$S"So@@@@@@@"<@(SEEK_CURC@@",SpSr"-SpS|@ 6 indicates positions relative to the current position ":SpS}";SpS@@@@@@@"S@(SEEK_ENDD@@"CSS"DSS@ 5 indicates positions relative to the end of the file "QSS"RST@@@@@@@"j@@@Az,seek_command@@@@@@@"\RR@ ! Positioning modes for {!lseek}. "iTT"jTT'@@@@@@@A@"@@#^^\[@L@@@^ "\[@[[@@@[@[@#WW"SpStU@F@@@X "VU@UU@@@U@U@#QQ"SSO@@@@@R "PO@OO@@@O@O@@AгK$Unix"RS"RS@R"RS"RS@@@Z3""""""""@;@@@A@@@@@@@@_]@@O@A@@`!"ː_^@^^@@@^@^@@ưk@%lseekE"T*T."T*T3@б@г |*file_descr"T*T6"T*T@@@ @@@3""""""""@@A@@б@г"#int"T*TD"T*TG@@ @@@@@б$modeг,seek_command"T*TP"T*T\@@ @@@"@@г"ݠ#int# T*T`# T*Tc@@ @@@/@@@@@@4#T*TK @@@,@@ @@:/@@@B@@ @@?E@@@#!T*T*@!z w Set the current position for a file descriptor, and return the resulting offset (from the beginning of the file). #.TdTd#/TT@@@@@@@#G@@(@!#B@@@@@@^(truncateF#ETT#FTT@б@г#&string#PTT#QTT@@ @@@3#R#R#R#R#R#R#R#R@w8@A@@б#lenг#7#int#cTT#dTU@@ @@@@@г#$unit#pTU#qTU @@ @@@ @@@@@@%#{TT @@@.@@ @@+1@@@#TT@!ܐ - Truncates the named file to the given size. #U U #U U=@@@@@@@#@@#@!#@@@@@@J)ftruncateG#U?UC#U?UL@б@г T*file_descr#U?UO#U?UY@@ @@@3########@cx8@A@@б#lenг##int#U?Ua#U?Ud@@ @@@@@г#|$unit#U?Uh#U?Ul@@ @@@ @@@@@@%#U?U] @@@.@@ @@+1@@@#U?U?@"> P Truncates the file corresponding to the given descriptor to the given size. #UmUm#UU@@@@@@@$ @@#@"N$@@@@@@J$$1 {1 File status} $UU$UU@@@@@@3$$$$$$$$@\q1@AA+)file_kindHI$ UU$ UU@@;@@%S_REGI@@$' VV$( VV @". Regular file $5 VV $6 VV3@@@@@@@$N@%S_DIRJ@@$> V4V6$? V4V=@"+ Directory $L V4VT$M V4Vd@@@@@@@$e@%S_CHRK@@$U VeVg$V VeVn@"2 Character device $c VeV$d VeV@@@@@@@$|@%S_BLKL@@$lVV$mVV@"Ɛ. Block device $zVV${VV@@@@@@@$@%S_LNKM@@$VV$VV@"ݐ/ Symbolic link $VV$VW@@@@@@@$@&S_FIFON@@$WW$WW@", Named pipe $WW&$WW7@@@@@@@$@&S_SOCKO@@$W8W:$W8WB@# ( Socket $W8WX$W8We@@@@@@@$@@@A)file_kind@@@@@@@$ UU@@A@$@@#@@@@#*$␠@@@@@@#$ V4V8@@@@#;$󐠠@@@@@@#$ VeVi@@@@#L%@@@@@@#%VV@@@@#]%@@@@@@#%VV@@@@#n%&@@@@@@#%%WW @|@@@#%7@@@@@@#%6W8W<@v@@@#%H@@@@@@@Aг$Unix%L UU%M UU@%P UU%Q UU@@@3%P%P%P%P%P%P%P%P@B<;@@@AD@@@ @@@@@@@@@A@@@@M@A+%statsPJ%iWgWl%jWgWq@@;@@&st_devQ@@%L@@@%vWW%wWW@#А/ Device number %WW%WW@@@@@@@%@&st_inoR@@%f@@@%WW%WW@#ꐠ. Inode number %WW%WW@@@@@@@%@'st_kindS@@@@@%WW%WX@$2 Kind of the file %WX %WX!@@@@@@@%@'st_permT@@ @@@%X"X&%X"X:@$/ Access rights %X"XB%X"XV@@@@@@@%@(st_nlinkU@@%@@@!%XWX[%XWXj@$81 Number of links %XWXw%XWX@@@@@@@&@&st_uidV@@%@@@$%XX%XX@$R6 User id of the owner &XX&XX@@@@@@@&@&st_gidW@@%@@@'&XX&XX@$l> Group ID of the file's group & XX&!XY @@@@@@@&9@'st_rdevX@@&@@@*&,YY&-YY @$= Device ID (if special file) &:YY.&;YYP@@@@@@@&S@'st_sizeY@@&@@@-&FYQYU&GYQYc@$/ Size in bytes &TYQYq&UYQY@@@@@@@&m@(st_atimeZ@@&"@@@0&`YY&aYY@$2 Last access time &nYY&oYY@@@@@@@&@(st_mtime[@@&<@@@3&zYY&{YY@$Ԑ8 Last modification time &YY&YY@@@@@@@&@(st_ctime\@@&V@@@6&YZ&YZ@$9 Last status change time &YZ&YZ:@@@@@@@&@@@A%stats@@@9@@@@&WgWg& Z;Z>@% 0 The information returned by the {!stat} calls. &!Z?Z?&!Z?Zt@@@@@@@@@&@@#RRM&WW@>@@Ш@гU#int&WW&WW@@]3&&&&&&&&@l;@@@At@@@O@@@@@.+@@@A@@l@@@h%5&퐠fe@ee@@@e@e@#aa\&WW@M@@Ш@гd#int&WW&WW@@l)@@o@@,@k%R' ih@hh@@@h@h@#dd_' WW@P@@Ш@гg)file_kind'WW'WX@@oF@@r@@I@n%o''lk@kk@@@k@k@#ggb'&X"X-@S@@Ш@гj)file_perm'/X"X0'0X"X9@@rc@@u@@f@q%'Don@nn@@@n@n@#jje'CXWXc@V@@Ш@гm#int'LXWXf'MXWXi@@u@@x@@"@t%'arq@qq@@@q@q@#mmh'`XX@Y@@Ш@гp#int'iXX'jXX@@x@@{@@%@w%'~ut@tt@@@t@t@#ppk'}XX@\@@Ш@гs#int'XX'XX@@{@@~@@(@z%'xw@ww@@@w@w@#ssn'YY@_@@Ш@гv#int'YY'YY@@~װ@@@@+@}&'{z@zz@@@z@z@#vvq'YQY\@b@@Ш@гy#int'YQY_'YQYb@@@@@@.@&'Ր~}@}}@@@}@}@#yyt'YY@e@@Ш@г|%float'YY'YY@@@@@@1@&:'򐠠@@@@@@#||w'YY@h@@Ш@г%float'YY'YY@@.@@@@41@&W(@@@@@@#z(YZ@k@@Ш@г%float(YZ (YZ@@K@@@@7N@&t(,@@@@@@@Aг$Unix(0WgWt(1WgWx@(4WgWy(5WgW~@@@i@@&(H@@@@@@@3(@(@(@(@(@(@(@(@@t@A@$stat](M#ZvZz(N#ZvZ~@б@г("&string(X#ZvZ(Y#ZvZ@@ @@@w3(Z(Z(Z(Z(Z(Z(Z(Z@@A@@г%stats(g#ZvZ(h#ZvZ@@ @@@x@@@@@y@@z @@@(t#ZvZv @&͐ , Return the information for the named file. ($ZZ($ZZ@@@@@@@(@@@&(@@@@@@3%lstat^(&ZZ(&ZZ@б@г(m&string(&ZZ(&ZZ@@ @@@{3((((((((@La8@A@@гI%stats(&ZZ(&ZZ@@ @@@|@@@@@}@@~ @@@(&ZZ @' j Same as {!stat}, but in case the file is a symbolic link, return the information for the link itself. ('ZZ(([[O@@@@@@@(@@@'((@@@@@@3%fstat_(*[Q[U(*[Q[Z@б@г*file_descr(*[Q[](*[Q[g@@ @@@3((((((((@La8@A@@г%stats(*[Q[k(*[Q[p@@ @@@@@@@@@@ @@@) *[Q[Q @'c N Return the information for the file associated with the given descriptor. )+[q[q),[[@@@@@@@)0@@@'s)+@@@@@@3&isatty`)..[[)/.[[@б@г۠*file_descr)9.[[):.[[@@ @@@3););););););););@La8@A@@г)$bool)H.[[)I.[[@@ @@@@@@@@@@ @@@)U.[[ @' j Return [true] if the given file descriptor refers to a terminal or console window, [false] otherwise. )b/[[)c0\-\U@@@@@@@){@@@')v@@@@@@3)) $ {1 File operations on large files} )2\W\W)2\W\@@@@@@3))))))))@EZ1@A)LargeFile{K)4\\)4\\@)@@Б%lseeka)6\\)6\\@б@гI*file_descr)6\\)6\\@@ @@@3))))))))@*@A@@б@г(%int64)6\\)6\\@@ @@@@@б$modeг,seek_command)6\\)6\\@@ @@@!@@г)%int64)6\\)6\\@@ @@@.@@@@@@3)6\\ @@@,@@ @@9/@@@A@@ @@>D@@@)6\\@(F. See [lseek]. )7\\)7\\@@@@@@@*@@(@(V*@@@@@@](truncateb*9\\*9\]@б@г)栐&string*9\] *9\]@@ @@@3********@8@A@@б#lenг)j%int64*/9\]*09\]@@ @@@@@г)栐$unit*<9\] *=9\]$@@ @@@ @@@@@@%*G9\] @@@.@@ @@+1@@@*O9\\@(1 See [truncate]. *\:]%])*]:]%]?@@@@@@@*u@@#@(*p@@@@@@J)ftruncatec*s<]A]I*t<]A]R@б@г *file_descr*~<]A]U*<]A]_@@ @@@3********@cx8@A@@б#lenг)̠%int64*<]A]g*<]A]l@@ @@@@@г*H$unit*<]A]p*<]A]t@@ @@@ @@@@@@%*<]A]c @@@.@@ @@+1@@@*<]A]E@) 2 See [ftruncate]. *=]u]y*=]u]@@@@@@@*@@#@)*Ґ@@@@@@JA+%statsdL*?]]*?]]@@;@@&st_deve@@*@@@*@]]*@]]@)=/ Device number *@]]*@]]@@@@@@@+ @&st_inof@@*@@@*A]]*A]^@)W. Inode number + A]^+ A]^*@@@@@@@+$@'st_kindg@@@@@+B^+^3+B^+^G@)q2 Kind of the file +%B^+^O+&B^+^f@@@@@@@+>@'st_permh@@<@@@+1C^g^o+2C^g^@)/ Access rights +?C^g^+@C^g^@@@@@@@+X@(st_nlinki@@+!@@@+KD^^+LD^^@)1 Number of links +YD^^+ZD^^@@@@@@@+r@&st_uidj@@+;@@@+eE^^+fE^^@)6 User id of the owner +sE^^+tE^_@@@@@@@+@&st_gidk@@+U@@@+F__#+F__0@)ِ> Group ID of the file's group +F__?+F__b@@@@@@@+@'st_rdevl@@+o@@@+G_c_k+G_c_y@)󐠠= Device ID (if special file) +G_c_+G_c_@@@@@@@+@'st_sizem@@*@@@+H__+H__@* / Size in bytes +H__+H__@@@@@@@+@(st_atimen@@+@@@+I__+I__@*'2 Last access time +I_`+I_`@@@@@@@+@(st_mtimeo@@+@@@+J``'+J``8@*A8 Last modification time +J``C+J```@@@@@@@,@(st_ctimep@@+@@@,K`a`i,K`a`z@*[9 Last status change time ,K`a`,K`a`@@@@@@@,(@@@A$9)LargeFile%stats@@@%@@@@,?]],L``@@@@,5@@#FFA,$@]]@2@@Ш@гI#int,-@]],.@]]@@Q3,,,,,,,,,,,,,,,,@`;@@@Ah@@@;@@@@@ @@@@A@@`@@@\*,NZY@YY@@@Y@Y@#UUP,MA]^@A@@Ш@гX#int,VA]^,WA]^@@`)@@c@@,@_*,k]\@\\@@@\@\@#XXS,jB^+^:@D@@Ш@г[)file_kind,sB^+^=,tB^+^F@@cF@@f@@I@b*,`_@__@@@_@_@#[[V,C^g^v@G@@Ш@г^)file_perm,C^g^y,C^g^@@fc@@i@@f@e*,cb@bb@@@b@b@#^^Y,D^^@J@@Ш@гa#int,D^^,D^^@@i@@l@@@h+ ,fe@ee@@@e@e@#aa\,E^^@M@@Ш@гd#int,E^^,E^^@@l@@o@@@k+',ߐih@hh@@@h@h@#dd_,F__)@P@@Ш@гg#int,F__,,F__/@@o@@r@@@n+D,lk@kk@@@k@k@#ggb,G_c_r@S@@Ш@гj#int-G_c_u-G_c_x@@rװ@@u@@@q+a-on@nn@@@n@n@#jje-H__@V@@Ш@гm%int64-!H__-"H__@@u@@x@@@t+~-6rq@qq@@@q@q@#mmh-5I__@Y@@Ш@гp%float->I__-?I__@@x@@{@@@w+-Sut@tt@@@t@t@#ppk-RJ``/@\@@Ш@гs%float-[J``2-\J``7@@{.@@~@@1@z+-pxw@ww@@@w@w@#ssn-oK`a`q@_@@Ш@гv%float-xK`a`t-yK`a`y@@~K@@@@N@}+-{z@zz@@@z@z@@Aгv$Unix-?]]-?]]@~-?]]-?]]@@-?]]-?]]@ @@p @@@@3--------@p@A@$statx-M``-M``@б@г-&string-M``-M``@@ @@@c3--------@@A@@г%stats-M``-M``@@ @@@d@@@@@e@@f @@@-M`` @@-@@@@%lstaty-N``-N``@б@г-&string-N``-N``@@ @@@g3--------@3H@A@@г %stats-N``-N``@@ @@@h@@@@@i@@j @@@.N`` @@.@@@@%fstatz.O``.O``@б@г*file_descr.O``.O`a@@ @@@k3........@3H@A@@гR%stats.(O`a .)O`a@@ @@@l@@@@@m@@n @@@.5O`` @@.M@@@@@O@/@@nhA@s@lC@<@@3.C.C.C.C.C.C.C.C@)>@Aǰ.J5\\.KPaa@@,.\  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]. .YQaa.ZZbc @@@@@@@.\4\\@۰@.q.p? {1 Mapping files into memory} .m\cc.n\cc2@@@@@@3.l.l.l.l.l.l.l.l@@@j*@ @A@@~@wN@@,ِ43@33@@@3@3@0@A(map_file.^c4c8.^c4c@@б@г@*file_descr._cCcE._cCcO@@ @@@o4@@б#posг-ꠐ%int64.`cSc~.`cSc@@ @@@pE@@б$kindг->(Bigarray$kind&Stdlib.acc.acc@ .acc.acc@@.acc.acc@ @А!a@M@qn.acc.acc@@А!b@M@rz.acc.acc@@@3 @@@u.acc!@@б&layoutг-|(Bigarray&layout&Stdlib/bcc/bcc@ / bcc/ bcc@@/bcc/bcc@ @А!c@M@v/bcc/bcc@@@' @@@x@@б&sharedг.預$bool/.bcc//bcc@@ @@@yİ@@б$dimsг. %array/?bcc/@bcc@г/#int/Ibcc/Jbcc@@ @@@z߰@@@@@@| @@г-(Bigarray(Genarray!t&Stdlib/gccd/hccd @/kccd /lccd@@/pccd/qccd@ @/uccd/vccd@@А!a /}ccc/~ccc@@А!b/ccc/ccc@@А!ct/ccd/ccd@@@9|@@@$/ccc@@aJ@@ @@*/bcc%@@xo@@ @@0/bcc+@@@@ @@6/bcc1@@@@ @@</acc7@@ /@@@@@@@G/`cScUB@@@@@@@MG@@@/^c4c4J@.  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 /dd d /ll@@@@@@@/@@Z@.(/@@@@@@l//퐠> {1 Operations on file names} /ll/ll@@@@@@3////////@~_1@A&unlink/ll/ll@б@г/ˠ&string0ll0ll@@ @@@@@г/$unit0ll0ll@@ @@@'@@@@@@@, @@@0ll @.t 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}} 0(mm0)mm@@@@@@@0A@@@.0<@@@@@@K&rename0?mm0@mm@б#srcг0&string0Lmm0Mmm@@ @@@30N0N0N0N0N0N0N0N@fa:@A@@б#dstг0)&string0_mm0`mm@@ @@@@@г0$unit0lmm0mmm@@ @@@ @@@@@@%0wmm @@7.@@ @@+0}mm@@@0mm@.ِ \ [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]. 0mm0o<oS@@@@@@@0@@$@.0@@@@@@K$link0oUoY0oUo]@б&followг0l$bool0oUo0oUo@@ @@@300000000@f}:@A@@б#srcг0&string0oo0oo@@ @@@@@б#dstг0&string0oo0oo@@ @@@$@@г0$unit0oo0oo@@ @@@1@@@@@@60oo @@5,@@ @@<0oo@@NGH@@@@@@@F0oUo`@@ @1oUoU@/Y 8 [link ?follow ~src ~dst] creates a hard link named [dst] to the file named [src]. @param follow indicates whether a [src] symlink is followed or a hardlink to [src] itself will be created. On {e Unix} systems this is done using the [linkat(2)] function. If [?follow] is not provided, then the [link(2)] function is used whose behaviour is OS-dependent, but more widely available. @raise ENOSYS On {e Unix} if [~follow:_] is requested, but linkat is unavailable. @raise ENOSYS On {e Windows} if [~follow:false] is requested. 1 oo1qq@@@@@@@1&@@.@/i1!@@@@@@f(realpath1$rr1%rr @б@г0&string1/rr10rr@@ @@@31111111111111111@8@A@@г1&string1>rr1?rr@@ @@@@@@@@@@ @@@1Krr @/ [realpath p] is an absolute pathname for [p] obtained by resolving all extra [/] characters, relative path segments and symbolic links. @since 4.13 1Xr r 1Yrr@@@@@@@1q@@@/1l@@@@@@31z1y $ {1 File permissions and ownership} 1vrr1wrr@@@@@@31u1u1u1u1u1u1u1u@EZ1@AA+1access_permissionM1rr1rs@@;@@$R_OK@@1s#s'1s#s+@/琠1 Read permission 1s#sC1s#sY@@@@@@@1@$W_OK@@1sZs\1sZsb@/2 Write permission 1sZsz1sZs@@@@@@@1@$X_OK@@1ss1ss@06 Execution permission 1ss1ss@@@@@@@1@$F_OK@@1ss1ss@0,- File exists 1ss1st@@@@@@@1@@@A* 1access_permission@@@@@@@1rr@0D? Flags for the {!access} call. 1tt1tt%@@@@@@@A@2@@#uusr@c@@@u0Y2sr@rr@@@r@r@#nn2sZs^l@]@@@o0j2"ml@ll@@@l@l@#hh2!ssf@W@@@i0{23gf@ff@@@f@f@#bb22ss`@Q@@@c02Da`@``@@@`@`@@Aг\$Unix2Hrs 2Irs@c2Lrs2Mrs @@@k32L2L2L2L2L2L2L2L@;@@@A@@@@@@@@pn@@`@A@@q02kpo@oo@@@o@o@@|@%chmod2ot(t,2pt(t1@б@г2D&string2zt(t42{t(t:@@ @@@ 32|2|2|2|2|2|2|2|@@A@@б$permг)file_perm2t(tC2t(tL@@ @@@ @@г2D$unit2t(tP2t(tT@@ @@@  @@@@ @@ %2t(t> @@@.@@ @@+1@@@2t(t(@1 + Change the permissions of the named file. 2tUtU2tUt@@@@@@@2@@#@12ΐ@@@@@@J&fchmod2tt2tt@б@г~*file_descr2tt2tt@@ @@@322222222@cx8@A@@б$permг)file_perm2tt2tt@@ @@@@@г2$unit2tt2tt@@ @@@ @@@@@@%3tt @@@.@@ @@+1@@@3tt@1h S Change the permissions of an opened file. @raise Invalid_argument on Windows 3tt3tu@@@@@@@35@@#@1x30@@@@@@J%chown33uu34uu@б@г3&string3>uu3?uu%@@ @@@33@3@3@3@3@3@3@3@@cx8@A@@б#uidг3%#int3Quu-3Ruu0@@ @@@@@б#gidг36#int3buu83cuu;@@ @@@$@@г3$unit3ouu?3puuC@@ @@@1@@@@@@63zuu4 @@5,@@ @@<3uu)@@@E@@ @@ BH@@@3uu@1ᐠ _ Change the owner uid and owner gid of the named file. @raise Invalid_argument on Windows 3uDuD3uu@@@@@@@3@@)@13@@@@@@a&fchown3uu3uu@б@гY*file_descr3uu3uu@@ @@@!333333333@z8@A@@б#uidг3#int3uu3uu@@ @@@"@@б#gidг3#int3uu3uu@@ @@@#$@@г3$unit3uu3uu@@ @@@$1@@@@%@@&63uu @@5,@@' @@(<3uu@@@E@@) @@*BH@@@4uu@2Z _ Change the owner uid and owner gid of an opened file. @raise Invalid_argument on Windows 4uu4vvD@@@@@@@4'@@)@2j4"@@@@@@a%umask4%vFvJ4&vFvO@б@г9)file_perm40vFvR41vFv[@@ @@@+34242424242424242@z8@A@@гH)file_perm4?vFv_4@vFvh@@ @@@,@@@@@-@@. @@@4LvFvF @2 v Set the process's file mode creation mask, and return the previous mask. @raise Invalid_argument on Windows 4Yvivi4Zvv@@@@@@@4r@@@24m@@@@@@3&access4pvv4qvv@б@г4E&string4{vv4|vv@@ @@@/34}4}4}4}4}4}4}4}@La8@A@@б$permг4$list4vw4vw@г1access_permission4vw4vw@@ @@@0@@@@@@2" @@г4T$unit4vw4vw @@ @@@3/@@-@@4@@544vv @@@=@@6 @@7:@@@@4vv@3 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. 4w!w!4ww@@@@@@@4@@#@3&4ސ@@@@@@Y44될 $ {1 Operations on file descriptors} 4ww4wx$@@@@@@344444444@k1@A#dup4x'x+4x'x.@б'cloexecг4$bool5x'x_5x'xc@@ @@@8@@б@г*file_descr5xgxq5xgx{@@ @@@9+@@г*file_descr5xgx5xgx@@ @@@:8@@@@@;@@<= @@2{,@@@>@@? @@@F51x'x1@@ @54x'x'@3 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. 5Axx5By y8@@@@@@@5Z@@'@35U@@@@@@f$dup25Xy:y>5Yy:yB@б'cloexecг5 $bool5ey:ys5fy:yw@@ @@@A35g5g5g5g5g5g5g5g@|:@A@@б#srcг*file_descr5xy{y5yy{y@@ @@@B@@б#dstг+*file_descr5y{y5y{y@@ @@@C$@@г5@$unit5y{y5y{y@@ @@@D1@@@@E@@F65y{y @@5,@@G @@H<5y{y@@NH@@@J@@K@@LF5y:yE@@ @5y:y:@4 [dup2 ~src ~dst] duplicates [src] to [dst], closing [dst] if already opened. See {!set_close_on_exec} for documentation on the [cloexec] optional argument. 5yy5zBzZ@@@@@@@5@@.@45Ր@@@@@@f,set_nonblock5z\z`5z\zl@б@г*file_descr5z\zo5z\zy@@ @@@M355555555@8@A@@г5$unit5z\z}5z\z@@ @@@N@@@@@O@@P @@@5z\z\ @4X 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]. 6 zz6 {{@@@@@@@6%@@@4h6 @@@@@@3.clear_nonblock6#{{6${{@б@гР*file_descr6.{|6/{| @@ @@@Q36060606060606060@La8@A@@г5砐$unit6={|6>{|@@ @@@R@@@@@S@@T @@@6J{{ @4 Q Clear the ``non-blocking'' flag on the given descriptor. See {!set_nonblock}.6W||6X|Q|j@@@@@@@6p@@@46k@@@@@@31set_close_on_exec6n|l|p6o|l|@б@г *file_descr6y|l|6z|l|@@ @@@U36{6{6{6{6{6{6{6{@La8@A@@г62$unit6|l|6|l|@@ @@@V@@@@@W@@X @@@6|l|l @4 { 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. 6||64@@@@@@@6@@@46@@@@@@33clear_close_on_exec66660@б@г f*file_descr66366=@@ @@@Y366666666@La8@A@@г6}$unit66A66E@@ @@@Z@@@@@[@@\ @@@66 @59 W Clear the ``close-on-exec'' flag on the given descriptor. See {!set_close_on_exec}.67FF68@@@@@@@7@@@5I7@@@@@@3771 {1 Directories} 7 ;7 ;@@@@@@37 7 7 7 7 7 7 7 @EZ1@A%mkdir7>7>@б@г6점&string7">7#>@@ @@@]@@б$permг<)file_perm73>74>@@ @@@^+@@г6ꠐ$unit7@>7A>@@ @@@_8@@@@`@@a=7K> @@@,@@b @@cC/@@@7S>@5 ? Create a directory with the given permissions (see {!umask}). 7`?7a?/@@@@@@@7y@@#@57t@@@@@@b%rmdir7wA157xA1:@б@г7L&string7A1=7A1C@@ @@@d377777777@{v8@A@@г7;$unit7A1G7A1K@@ @@@e@@@@@f@@g @@@7A11 @5< Remove an empty directory. 7BLL7BLm@@@@@@@7@@@67@@@@@@3%chdir7Dos7Dox@б@г7&string7Do{7Do@@ @@@h377777777@La8@A@@г7$unit7Do7Do@@ @@@i@@@@@j@@k @@@7Doo @6B ' Change the process working directory. 7E7E@@@@@@@8@@@6R8 @@@@@@3&getcwd8 G8G@б@г7 $unit8G8G@@ @@@l388888888@La8@A@@г7&string8'G8(G@@ @@@m@@@@@n@@o @@@84G @6 3 Return the name of the current working directory. 8AH8BH @@@@@@@8Z@@@68U@@@@@@3&chroot8XJ8YJ@б@г8-&string8cJ8dJ!@@ @@@p38e8e8e8e8e8e8e8e@La8@A@@г8$unit8rJ%8sJ)@@ @@@q@@@@@r@@s @@@8J @6ؐ L Change the process root directory. @raise Invalid_argument on Windows 8K**8MR{@@@@@@@8@@@68@@@@@@3A+*dir_handleN8O}8O}@@;@@"FA0*dir_handle@@@u@@@@8O}}8O}@7 2 The type of descriptors over opened directories. 8P8P@@@@@@@@@8@@@Aг$Unix8O}8O}@ 8O}@@@'388888888@i~U2;@@@A:@@@z@t@@@@-*@@@A,@@.748쐠,+@++@@@+@+@@388888888@@A:9@'opendir8R8R@б@г8Ơ&string8R8R@@ @@@|388888888@2c]@A@@гg*dir_handle9 R9 R@@ @@@}@@@@@~@@ @@@9R @7q " Open a descriptor on a directory 9%S9&S"@@@@@@@9>@@@799@@@@@@3'readdir9<U$(9=U$/@б@г*dir_handle9GU$29HU$<@@ @@@39I9I9I9I9I9I9I9I@La8@A@@г9 &string9VU$@9WU$F@@ @@@@@@@@@@ @@@9cU$$ @7 m Return the next entry in a directory. @raise End_of_file when the end of the directory has been reached. 9pVGG9qWq@@@@@@@9@@@79@@@@@@3)rewinddir9Y9Y@б@г*dir_handle9Y9Y@@ @@@399999999@La8@A@@г9K$unit9Y9Y@@ @@@@@@@@@@ @@@9Y @8 = Reposition the descriptor to the beginning of the directory 9Z9Z @@@@@@@9@@@89ϐ@@@@@@3(closedir9\"&9\".@б@г9*dir_handle9\"19\";@@ @@@399999999@La8@A@@г9$unit9\"?9\"C@@ @@@@@@@@@@ @@@9\"" @8R? Close a directory descriptor. :]DD:]Dh@@@@@@@:@@@8b:@@@@@@3:(:'< {1 Pipes and redirections} :$all:%al@@@@@@3:#:#:#:#:#:#:#:#@EZ1@A$pipe:0d:1d@б'cloexecг9$bool:=d:>d@@ @@@@@б@г9$unit:Le:Me@@ @@@+@@В@г#*file_descr:]e:^e@@ @@@<@@@г$*file_descr:le:me@@ @@@K@@@@@ @@R @@@/@@ @@W2@@L ѠF@@@@@ @@`:d@@ @:d@8㐠  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. :f:j@@@@@@@:@@.@8:@@@@@@&mkfifo:l:l@б@г:&string:l:l$@@ @@@3::::::::@8@A@@б$permг ՠ)file_perm:l-:l6@@ @@@@@г:$unit:l::l>@@ @@@ @@@@@@%:l( @@@.@@ @@+1@@@:l@9E g Create a named pipe with the given permissions (see {!umask}). @raise Invalid_argument on Windows :m??:o@@@@@@@;@@#@9U; @@@@@@J;; 3 {1 High-level process and redirection management} ;r;r@@@@@@3;;;;;;;;@\q1@A.create_process;#u;$u@б$progг:&string;0v;1v @@ @@@@@б$argsг:Ġ%array;Av;Bv @г;&string;Kv;Lv@@ @@@7@@@@@@< @@б%stdinг%*file_descr;av*;bv4@@ @@@M@@б&stdoutг%*file_descr;rv?;svI@@ @@@^@@б&stderrг%%*file_descr;wMX;wMb@@ @@@o@@г;d#int;wMf;wMi@@ @@@|@@@@@@;wMQ @@5,@@ @@;v8@@LC@@ @@;v$@@r[@@ @@;v@@@@ @@;v#@@@;u&@: / [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. ;xjj;@@@@@@@;@@6@:;א@@@@@@2create_process_env;;@б$progг;&string;;@@ @@@3;;;;;;;;@:@A@@б$argsг;}%array;;@г;Π&string<<@@ @@@@@@@@@" @@б#envг;%array<<@г;&string<$<%@@ @@@=@@@@@@B @@б%stdinг%ܠ*file_descr<:<;@@ @@@S@@б&stdoutг%*file_descr>@@ @@@B@@@г<*in_channel>>@@ @@@Q@@@@&@@ @@Z-@@XA@@ @@_>$@@@h@@ @@ek@@@>,@<  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}. >9>:Je@@@@@@@>R@@,@<>M@@@@@@1open_process_args>Pgk>Qg|@б@г>%&string>[g>\g@@ @@@3>]>]>]>]>]>]>]>]@8@A@@б@г=%array>lg>mg@г>@&string>vg>wg@@ @@@@@@@@@  @@В@г= *in_channel>g>g@@ @@@1@@@г=+out_channel>g>g@@ @@@@@@@@@ @@G @@@0@@ @@L7@@@T@@ @@QW@@@>gg@=  [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 >>m@@@@@@@>@@)@=>Ր@@@@@@p4open_process_args_in>>@б@г>&string>>@@ @@@3>>>>>>>>@8@A@@б@г>w%array>>@г>Ƞ&string>>@@ @@@@@@@@@  @@г=*in_channel??@@ @@@-@@@@@@@2 @@@:@@ @@7=@@@?"@={ o Same as {!open_process_args}, but redirects only the standard output of the new process. @since 4.08 ?/?0#5@@@@@@@?H@@"@=?C@@@@@@V5open_process_args_out?F7;?G7P@б@г?&string?Q7S?R7Y@@ @@@3?S?S?S?S?S?S?S?S@o8@A@@б@г>堐%array?b7d?c7i@г?6&string?l7]?m7c@@ @@@@@@@@@  @@г=+out_channel?~7m?7x@@ @@@-@@@@@@@2 @@@:@@ @@7=@@@?77@=鐠 n Same as {!open_process_args}, but redirects only the standard input of the new process. @since 4.08 ?yy?@@@@@@@?@@"@=?@@@@@@V6open_process_args_full??@б@г?&string?  ? @@ @@@3????????@o8@A@@б@г?S%array? ? #@г?&string? ? @@ @@@@@@@@@  @@б@г?q%array? .? 3@г? &string? '? -@@ @@@9@@@@@@> @@В@г>*in_channel@7;@7E@@ @@@O@@@г>+out_channel@7H@7S@@ @@@^@@@г>*in_channel@,7V@-7`@@ @@@m@@@@&@@ @@v-@@@A@@  @@ {H@@@d@@  @@ k@@@@@  @@@@@@L @>  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 @Yaa@Zew@@@@@@@@r@@0@>@m@@@@@@.process_in_pid@py}@qy@б@г>*in_channel@{y@|y@@ @@@3@}@}@}@}@}@}@}@}@8@A@@г@^#int@y@y@@ @@@@@@@@@@ @@@@yy @>𐠠 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.12 @@0@@@@@@@@@@@?@@@@@@@3/process_out_pid@26@2E@б@г?C+out_channel@2H@2S@@ @@@3@@@@@@@@@La8@A@@г@#int@2W@2Z@@ @@@@@@@@@@ @@@@22 @?; 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.12 @[[@@@@@@@@A@@@?KA@@@@@@3+process_pidAA@б@В@г?*in_channelAA @@ @@@3AAAAAAAA@Pe<@A@@@г?+out_channelA&A'@@ @@@@@@@@ @@ @@гA#intA:A; @@ @@@%@@@@@@@*0 @@@AG @? Return the pid of a process opened via {!open_process_args} or the pid of the shell opened via {!open_process_args}. @since 4.12 AT!!AU@@@@@@@Am@@@?Ah@@@@@@I0process_full_pidAkAl@б@В@г?*in_channelAzA{@@ @@@3A|A|A|A|A|A|A|A|@f<@A@@@г@+out_channelAA@@ @@@@@@г@*in_channelAA@@ @@@ @@@@(@@ @@ )/@@гA#intAA@@ @@@!6@@@@@"@@#;A @@@A @@ 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.12 AAx@@@@@@@A@@@@&Aސ@@@@@@Z0close_process_inAA@б@г@i*in_channelAA@@ @@@$3AAAAAAAA@s8@A@@г2.process_statusAA@@ @@@%@@@@@&@@' @@@B @@a Close channels opened by {!open_process_in}, wait for the associated command to terminate, and return its termination status. BB"J@@@@@@@B.@@@@qB)@@@@@@31close_process_outB,LPB-La@б@г@+out_channelB7LdB8Lo@@ @@@(3B9B9B9B9B9B9B9B9@La8@A@@г2b.process_statusBFLsBGL@@ @@@)@@@@@*@@+ @@@BSLL @@ Close channels opened by {!open_process_out}, wait for the associated command to terminate, and return its termination status. B`Ba @@@@@@@By@@@@Bt@@@@@@3-close_processBwBx @б@В@гA*in_channelB#B-@@ @@@,3BBBBBBBB@Pe<@A@@@гA+out_channelB0B;@@ @@@-@@@@@ @@. @@г2Ǡ.process_statusB?BM@@ @@@/%@@@@@0@@1*0 @@@B @A Close channels opened by {!open_process}, wait for the associated command to terminate, and return its termination status. BNNB @@@@@@@B@@@A!Bِ@@@@@@I2close_process_fullB B @б@В@гAh*in_channelB B @@ @@@23BBBBBBBB@f<@A@@@гAy+out_channelB B  @@ @@@3@@@гA*in_channelC   C  @@ @@@4 @@@@(@@ @@5)/@@г3=.process_statusC! C" )@@ @@@66@@@@@7@@8;A @@@C.  @A Close channels opened by {!open_process_full}, wait for the associated command to terminate, and return its termination status. C; **C<@@@@@@@CT@@@ACO@@@@@@ZC]C\4 {1 Symbolic links} CYCZ@@@@@@3CXCXCXCXCXCXCXCX@l1@A'symlink CeCf@б&to_dirгC-$boolCrCs@@ @@@9@@б#srcгCM&stringC*C0@@ @@@:-@@б#dstгC^&stringC8C>@@ @@@;>@@гCK$unitCBCF@@ @@@<K@@@@=@@>PC4 @@5,@@? @@@VC&@@LF@@@B@@C@@D`C@@ @C@B  [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. CGGC4@@@@@@@C@@.@B(C@@@@@@+has_symlinkàC6C6@б@гC$unitC6C6@@ @@@E3CCCCCCCC@8@A@@гC$boolC6C6@@ @@@F@@@@@G@@H @@@D 6 @Bc 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 D7D;+<@@@@@@@D0@@@BsD+@@@@@@3(readlinkĠD.=>BD/=>J@б@гD&stringD9=>MD:=>S@@ @@@I3D;D;D;D;D;D;D;D;@La8@A@@гD&stringDH=>WDI=>]@@ @@@J@@@@@K@@L @@@DU=>> @B ' Read the contents of a symbolic link. Db>^^Dc>^@@@@@@@D{@@@BDv@@@@@@3DD- {1 Polling} DADA@@@@@@3DDDDDDDD@EZ1@A&selectŠDDDD@б$readгD$listDEDE@г.E*file_descrDEDE@@ @@@M&@@@@@@O+ @@б%writeгD2$listDEDE@г.e*file_descrDEDE@@ @@@PF@@@@@@RK @@б&exceptгDR$listDEDE@г.*file_descrDEDE@@ @@@Sf@@@@@@Uk @@б'timeoutгD%floatDFDF @@ @@@V|@@В@гD$listE FE F @г.*file_descrEFEF@@ @@@W@@@@@@Y @@@гD$listE(F.E)F2@г.Ԡ*file_descrE2F#E3F-@@ @@@Z@@@@@@\ @@@гD$listEFF@EGFD@г.*file_descrEPF5EQF?@@ @@@]Ӱ@@@@@@_ذ @@@@E@)@ @@`P@@vm@@a @@bEiF#@@@@c @@dEoE)@@@@e @@fEuE/@@@@g @@hE{E5@@@E~D8@Cא , 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. EGEEET5v@@@@@@@E@@H@CE@@@@@@EE- {1 Locking} EVxxEVx@@@@@@3EEEEEEEE@*%1@AA+,lock_commandOEXEX@@;@@'F_ULOCKǐ@@EYEY@D1 Unlock a region EYEY@@@@@@@E@&F_LOCKȐ@@EZEZ@D1 8 Lock a region for writing, and block if already locked EZEZ,@@@@@@@E@'F_TLOCKɐ@@E[-/E[-8@DH 6 Lock a region for writing, or fail if already locked E[-?E[-z@@@@@@@F@&F_TESTʐ@@F\{}F\{@D_ ' Test a region for other process locks F\{F\{@@@@@@@F,@'F_RLOCKː@@F]F]@Dv 8 Lock a region for reading, and block if already locked F*]F+] @@@@@@@FC@(F_TRLOCK̐@@F3^  F4^ @D 6 Lock a region for reading, or fail if already locked FA^ FB^ W@@@@@@@FZ@@@A>j,lock_command@@@j@@@@FLX@D8 Commands for {!lockf}. FY_XXFZ_Xu@@@@@@@A@Fr@@#@@@@DFr@@@@@@#FqZ@@@@DF@@@@@@#F[-1@@@@DF@@@@@@#F\{@@@@DF@@@@@@#F]@y@@@DF@@@@@@#F^ @s@@@EFǐ@@@@@@@Aг~$UnixFXFX@FXFX@@@3FFFFFFFF@(";@@@A*@@@p@i@@@@@@@A@@E6F@@@@@@@>@%lockf͠Faw{Faw@б@г0*file_descrFawFaw@@ @@@{3FFFFFFFF@XRL@A@@б$modeгZ,lock_commandGawGaw@@ @@@|@@б#lenгF#intG!awG"aw@@ @@@}$@@гFؠ$unitG.awG/aw@@ @@@~1@@@@@@6G9aw @@5,@@ @@<G?aw@@@E@@ @@BH@@@GGaww@E @ [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. GTbGU@@@@@@@Gm@@)@EGh@@@@@@aGvGu } {1 Signals} Note: installation of signal handlers is performed via the functions {!Sys.signal} and {!Sys.set_signal}. GrGs~@@@@@@3GqGqGqGqGqGqGqGq@s1@A$killΠG~G@б#pidгG_#intGG@@ @@@@@б&signalгF#Sys&signalGG@ GG@@@@@@6 @@гG\$unitGG@@ @@@C@@'@@@@HG @@>5@@ @@NG@@@G@F ! [kill ~pid ~signal] sends signal number [signal] to the process with id [pid]. On Windows: only the {!Sys.sigkill} signal is emulated, causing the receiving process to exit with code [ERROR_PROCESS_ABORTED] (1067). Before OCaml 5.5, the receiving process exited with code 0. GG@@@@@@@G@@$@F/G琠@@@@@@nA+3sigprocmask_commandPGG@@;@@+SIG_SETMASKА@@GG@@H@)SIG_BLOCKѐ@@G "G -@@H@+SIG_UNBLOCKҐ@@H.0H.=@@H @@@A@03sigprocmask_command@@@@@@@H @@A@H*@@#&&$#@"@@@&@#""H $ @@@@#@#H$.2@@@@ @@Aг$UnixH/H0@#H3H4 @@@+3H3H3H3H3H3H3H3H3@uR;@@@AZ@@@@@@@@1@@@/@A@@2@@3H@H@H@H@H@H@H@H@@ @A3=@+sigprocmaskӠHM?CHN?N@б$modeгo3sigprocmask_commandHZ?VH[?i@@ @@@3H\H\H\H\H\H\H\H\@)zt@A@@б@гG䠐$listHk?xHl?|@гF#Sys&signalHy?mHz?p@ H}?qH~?w@@@@@@$ @@@ @@@)@@гH $listH?H?@гG#Sys&signalH?H?@ H?H?@@@@@@I @@@ @@@N@@@.@@ @@S:"@@d[@@ @@XH?Q(@@@H??+@G  [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) HH"0@@@@@@@H@@;@G$Hܐ@@@@@@x*sigpendingԠH26H2@@б@гH$unitH2CH2G@@ @@@3HHHHHHHH@8@A@@гHr$listH2VH2Z@гG#Sys&signalI2KI2N@ I 2OI 2U@@@@@@" @@@ @@@'@@@/@@ @@,2"@@@I22%@Gw Return the set of blocked signals that are currently pending. @raise Invalid_argument on Windows (no inter-process signals on Windows) I+[[I,@@@@@@@ID@@5@GI?@@@@@@K*sigsuspendՠIBIC@б@гHƠ$listIM IN@гG#Sys&signalI[I\@ I_I` @@@@@@3IbIbIbIbIbIbIbIb@wK@A @@@" @@@@@гI$unitItIu@@ @@@@@@@@@@$ @@@I @Gڐ  [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) II*8@@@@@@@I@@@GI@@@@@@8%pause֠I:>I:C@б@гIZ$unitI:FI:J@@ @@@3IIIIIIII@Qy8@A@@гIi$unitI:NI:R@@ @@@@@@@@@@ @@@I:: @H% Wait until a non-ignored, non-blocked signal is delivered. @raise Invalid_argument on Windows (no inter-process signals on Windows) ISSI@@@@@@@I@@@H5I퐠@@@@@@3'sigwaitנII@б@гIt$listII@гH#Sys&signalJ J @ J J@@@@@@3JJJJJJJJ@_tK@A @@@" @@@@@гH#Sys&signalJ&J' @ J* J+@@@@@@ @@@@@@@"- @@@J8@H  [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) JEJFǾ@@@@@@@J^@@@HJY@@@@@@AJgJf4 {1 Time functions} JcJd@@@@@@3JbJbJbJbJbJbJbJb@S{1@AA+-process_timesQJpJq@@;@@)tms_utime@@J?@@@J}J~*@Hא; User time for the process J,JL@@@@@@@J@)tms_stime@@JY@@@ðJMQJMc@H񐠠= System time for the process JMeJMȇ@@@@@@@J@*tms_cutime@@Js@@@ưJȈȌJȈȟ@I & User time for the children processes JȈȠJȈ@@@@@@@J@*tms_cstime@@J@@@ɰJJ@I% ( System time for the children processes JJ@@@@@@@J@@AAC-process_times@@@@@@@JJ@I> / The execution times (CPU times) of a process. JJJ@@@@@@@@@K @@#}J!@n@@Ш@г%floatK$K)@@3KKKKKKKK@;@@@A@@@@@@@@-*@@@A @@@@@IkK#@@@@@@#K"MZ@|@@Ш@г%floatK+M]K,Mb@@(@@@@+@IK@@@@@@@#K?ȈȖ@@@Ш@г%floatKHȈșKIȈȞ@@E@@@@H@IK]@@@@@@#K\@@@Ш@г%floatKeKf@@b@@@@e@IKz@@@@@@@Aг$UnixK~K@KK@@@@@IK@@@@@@@,@A+"tmRKLQKLS@@;@@&tm_sec@@K~@@@K`dK`q@J/ Seconds 0..60 K`ɀK`ɔ@@@@@@@K @&tm_min@@K@@@KɕəKɕɦ@J/ Minutes 0..59 KɕɵKɕ@@@@@@@K @'tm_hour@@K@@@KK@J6- Hours 0..23 KK@@@@@@@L @'tm_mday@@K@@@KK@JP4 Day of month 1..31 LL6@@@@@@@L @&tm_mon@@K@@@L7;L7H@Jj5 Month of year 0..11 L7WL7q@@@@@@@L7@'tm_year@@L@@@L*rvL+rʄ@J- Year - 1900 L8rʒL9rʤ@@@@@@@LQ@'tm_wday@@L@@@LDʥʩLEʥʷ@J; Day of week (Sunday is 0) LRʥLSʥ@@@@@@@Lk@'tm_yday@@L4@@@L^L_@J4 Day of year 0..365 LlLm@@@@@@@L@(tm_isdst@@L5@@@Lx $Ly 4@JҐ ! Daylight time savings in effect L @L f@@@@@@@L@@@AD"tm@@@@@@@LLLLgj@J될 9 The type representing wallclock time and calendar date. LkkLk˩@@@@@@@@@L @@#L`j@@@Ш@г#intL`mL`p@@3LLLLLLLL@OIC;@@@A&@@@@@@@@.+@@@A@@@@@KLѐ@@@@@@#Lɕɟ@@@Ш@г#intLɕɢLɕɥ@@)@@!@@,@K6L@@@@@@#L@@@Ш@г#intLL@@!F@@$@@I@ KSM @@@@@@#M @@@Ш@г#intM M@@$c@@'@@f@#KpM(! @  @@@ @ @#M'7A@@@Ш@г#intM07DM17G@@'@@*@@@&KME$#@##@@@#@#@#MDr}@ @@Ш@г"#intMMrʀMNrʃ@@*@@-@@@)KMb'&@&&@@@&@&@#""Maʥʰ@@@Ш@г%#intMjʥʳMkʥʶ@@-@@0@@@,KM*)@))@@@)@)@#%% M~@@@Ш@г(#intMM@@0װ@@3@@@/KM-,@,,@@@,@,@#((#M ,@@@Ш@г+$boolM /M 3@@3@@6@@@2LM0/@//@@@/@/@@Aг+$UnixMLVMLZ@2ML[ML]@@@:@@5LMՐ32@22@@@2@2@@3MMMMMMMM@@AA@@$timeMˬ˰Mˬ˴@б@гM$unitMˬ˷Mˬ˻@@ @@@/3MMMMMMMM@8UO@A@@гM%floatMˬ˿Mˬ@@ @@@0@@@@@1@@2 @@@Nˬˬ @LZ J Return the current time since 00:00:00 GMT, Jan. 1, 1970, in seconds. NN@@@@@@@N'@@@LjN"@@@@@@3,gettimeofdayN%N&&@б@гMڠ$unitN0)N1-@@ @@@33N2N2N2N2N2N2N2N2@La8@A@@гM%floatN?1N@6@@ @@@4@@@@@5@@6 @@@NL @L < Same as {!time}, but with resolution better than 1 second. NY77NZ7x@@@@@@@Nr@@@LNm@@@@@@3&gmtimeNpz~Nqz̄@б@гN;%floatN{żN|ž@@ @@@73N}N}N}N}N}N}N}N}@La8@A@@г"tmNz̐Nz̒@@ @@@8@@@@@9@@: @@@Nzz @L𐠠  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. N̓̓Nhͱ@@@@@@@N@@@MN@@@@@@3)localtimeNͳͷNͳ@б@гN%floatNͳNͳ@@ @@@;3NNNNNNNN@La8@A@@г:"tmNͳNͳ@@ @@@<@@@@@=@@> @@@Nͳͳ @M; 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}. NN>΀@@@@@@@O@@@MKO@@@@@@3&mktimeO΂ΆO΂Ό@б@гv"tmO΂ΏO΂Α@@ @@@?3OOOOOOOO@La8@A@@В@гN䠐%floatO$΂ΕO%΂Κ@@ @@@@@@@г"tmO3΂ΝO4΂Ο@@ @@@A"@@@@@ @@B) @@@1@@C @@D.4@@@OG΂΂@M  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. OTΠΠOUuЋ@@@@@@@Om@@$@MOh@@@@@@M%alarmOkЍБOlЍЖ@б@гOJ#intOvЍЙOwЍМ@@ @@@E3OxOxOxOxOxOxOxOx@f{8@A@@гOY#intOЍРOЍУ@@ @@@F@@@@@G@@H @@@OЍЍ @M될 g Schedule a [SIGALRM] signal after the given number of seconds. @raise Invalid_argument on Windows OФФO@@@@@@@O@@@MO@@@@@@3%sleepOO@б@гO#intOO!@@ @@@I3OOOOOOOO@La8@A@@гOz$unitO%O)@@ @@@J@@@@@K@@L @@@O @N6 1 Stop execution for the given number of seconds. O**O*`@@@@@@@P@@@NFO@@@@@@3&sleepfPbfPbl@б@гO̠%floatP boP bt@@ @@@M3PPPPPPPP@La8@A@@гOŠ$unitPbxPb|@@ @@@N@@@@@O@@P @@@P(bb @N } Stop execution for the given number of seconds. Like [sleep], but fractions of seconds are supported. @since 4.12 P5}}P6@@@@@@@PN@@@NPI@@@@@@3%timesPLPM @б@гP$unitPW PX@@ @@@Q3PYPYPYPYPYPYPYPY@La8@A@@г-process_timesPfPg"@@ @@@R@@@@@S@@T @@@Ps @N̐ Return the execution times of the process. On Windows: partially implemented, will not report timings for child processes. P ##P ґҫ@@@@@@@P@@@NP@@@@@@3&utimesPҭұPҭҷ@б@гPl&stringPҭҺPҭ@@ @@@U3PPPPPPPP@La8@A@@б&accessгPu%floatPҭPҭ@@ @@@V@@б%modifгP%floatPҭPҭ@@ @@@W$@@гP}$unitPҭPҭ@@ @@@X1@@@@Y@@Z6Pҭ @@5,@@[ @@\<Pҭ@@@E@@] @@^BH@@@Pҭҭ@OE  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. PPӰ@@@@@@@Q@@)@OUQ @@@@@@aA+.interval_timerSQQ@@;@@+ITIMER_REAL@@Q!%Q!0@Ou P decrements in real time, and sends the signal [SIGALRM] when expired.Q)17Q*xԌ@@@@@@@QB@.ITIMER_VIRTUAL@@Q2ԍԏQ3ԍԟ@O S decrements in process virtual time, and sends [SIGVTALRM] when expired. Q@ԠԦQA@@@@@@@QY@+ITIMER_PROF@@QIQJ@O (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. QWQXՎ@@@@@@@Qp @@@AI.interval_timer@@@`@@@@Qb@O % The three kinds of interval timers. QoQp@@@@@@@A@Q@@#^^\[@L@@@^OQ\[@[[@@@[@[@#WWQԍԑU@F@@@XOQVU@UU@@@U@U@#QQQO@@@@@ROQPO@OO@@@O@O@@AгK$UnixQ Q@RQQ@@@Z3QQQQQQQQ@%;@@@A@@@f@_@@@@`^@@P@A@@aPQҐ`_@__@@@_@_@@3QQQQQQQQ@@Am@A+5interval_timer_statusTQ!Q! @@;@@+it_interval@@Q@@@rQ"*.Q"*B@P?( Period Q"*KQ"*X@@@@@@@R "@(it_value@@Q@@@uQ#Y]R#Yn@PY< Current value of the timer R #YzR#Y֛@@@@@@@R&#@@AAJ65interval_timer_status@@@x@@@@R!R$֜֟@Pr 5 The type describing the status of an interval timer R&%֠֠R'%֠@@@@@@@@@R?!@@#NNIR."*9@:@@Ш@гQ%floatR7"*<R8"*A@@Y3R6R6R6R6R6R6R6R6@/)h;@@@Ap@@@@q@@@@.+@@@A@@h@@s@dPRXba@aa@@@a@a@#]]XRW#Ye@I@@Ш@г`%floatR`#YhRa#Ym@@h)@@k@@v,@gPRued@dd@@@d@d@@Aг`$UnixRy! Rz!@gR}!R~!'@@@oG@@jPRhg@gg@@@g@g@@3RRRRRRRR@R@Avu@)getitimerR'R'@б@г.interval_timerR'R'@@ @@@3RRRRRRRR@m@A@@гؠ5interval_timer_statusR'R'@@ @@@@@@@@@@ @@@R' @Q _ Return the current status of the given interval timer. @raise Invalid_argument on Windows R(R*Px@@@@@@@R$@@@Q&Rސ@@@@@@3)setitimerR,z~R,zׇ@б@г۠.interval_timerR-׊׌R-׊ך@@ @@@3RRRRRRRR@La8@A@@б@г%5interval_timer_statusR-׊מR-׊׳@@ @@@@@г25interval_timer_statusS -׊׷S -׊@@ @@@@@@@@@@# @@@+@@ @@(.@@@S,zz@Qu  [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 S).S*7ٚ@@@@@@@SB%@@"@QS=@@@@@@GSKSJ7 {1 User id, group id} SG:SH:@@@@@@3SFSFSFSFSFSFSFSF@Yn1@A&getuidSS<ST<@б@гS$unitS^<S_<@@ @@@@@гS?#intSk<Sl<@@ @@@'@@@@@@@, @@@Sx< @Qѐ [ Return the user id of the user executing the process. On Windows: always returns [1]. S=S?7\@@@@@@@S&@@@QS@@@@@@K'geteuidSA^bSA^i@б@гSQ$unitSA^lSA^p@@ @@@3SSSSSSSS@d_8@A@@гS#intSA^tSA^w@@ @@@@@@@@@@ @@@SA^^ @R ` Return the effective user id under which the process runs. On Windows: always returns [1]. SBxxSDڸ@@@@@@@S'@@@R,S䐠@@@@@@3&setuidSFSF@б@гSƠ#intSFSF@@ @@@3SSSSSSSS@La8@A@@гS$unitTFTF@@ @@@@@@@@@@ @@@TF @Rg d Set the real user id and effective user id for the process. @raise Invalid_argument on Windows TGTI9a@@@@@@@T4(@@@RwT/@@@@@@3&getgidT2KcgT3Kcm@б@гS砐$unitT=KcpT>Kct@@ @@@3T?T?T?T?T?T?T?T?@La8@A@@гT #intTLKcxTMKc{@@ @@@@@@@@@@ @@@TYKcc @R \ Return the group id of the user executing the process. On Windows: always returns [1]. TfL||TgN۸@@@@@@@T)@@@RTz@@@@@@3'getegidT}PT~P@б@гT2$unitTPTP@@ @@@3TTTTTTTT@La8@A@@гTk#intTPTP@@ @@@@@@@@@@ @@@TP @R a Return the effective group id under which the process runs. On Windows: always returns [1]. TQTS:_@@@@@@@T*@@@S TŐ@@@@@@3&setgidTUaeTUak@б@гT#intTUanTUaq@@ @@@3TTTTTTTT@La8@A@@гT$unitTUauTUay@@ @@@@@@@@@@ @@@TUaa @SH f Set the real group id and effective group id for the process. @raise Invalid_argument on Windows TVzzTXܽ@@@@@@@U+@@@SXU@@@@@@3)getgroupsUZUZ@б@гTȠ$unitUZUZ@@ @@@3U U U U U U U U @La8@A@@гT%arrayU-ZU.Z@гU #intU7ZU8Z@@ @@@@@@@@@ @@@&@@ @@#)@@@UIZ@S w Return the list of groups to which the user executing the process belongs. On Windows: always returns [[|1|]]. UV[  UW^\݅@@@@@@@Uo,@@,@SUj@@@@@@B)setgroupsUm`݇݋Un`݇ݔ@б@гT%arrayUx`݇ݛUy`݇ݠ@гUV#intU`݇ݗU`݇ݚ@@ @@@3UUUUUUUU@ezB@A@@@ @@@ @@гU@$unitU`݇ݤU`݇ݨ@@ @@@@@@@@@@ @@@U`݇݇ @S [setgroups groups] sets the supplementary group IDs for the calling process. Appropriate privileges are required. @raise Invalid_argument on Windows UaݩݩUd$M@@@@@@@U-@@@T UĐ@@@@@@8*initgroupsUfOSUfO]@б@гU&stringUfO`UfOf@@ @@@3UUUUUUUU@Qp8@A@@б@гU#intUfOjUfOm@@ @@@@@гU$unitUfOqUfOu@@ @@@@@@@@@@# @@@+@@ @@(.@@@VfOO@T[  [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 VgvvVlT}@@@@@@@V(.@@"@TkV#@@@@@@GA+,passwd_entryUV'n߄V(nߐ@@;@@'pw_name@@V@@@ŰV4oߧ߫V5oߧ߼@@VM0@)pw_passwd@@V @@@ȰV@p߽VAp߽@@VY1@&pw_uid@@V"@@@˰VLqVMq@@Ve2@&pw_gid@@V.@@@ΰVXrVYr@@Vq3@(pw_gecos@@V0@@@ѰVdsVes@@V}4@&pw_dir @@V<@@@԰VptVqt$@@V5@(pw_shell @@VH@@@װV|u%)V}u%:@@V6@@@AN,passwd_entry@@@@@@@VnVv;>@Tᐠ 0 Structure of entries in the [passwd] database. Vw??Vw?t@@@@@@@@@V/@@#nniVoߧ߲@h@@Ш@гq&stringVoߧߵVoߧ߻@@y3VVVVVVVV@;@@@A@@@@@@@@.+@@@A@@@@@@#{Vp߽@z@@Ш@г&stringVp߽Vp߽@@@@@@!@@#Vq@@@Ш@г#intVqVq@@0@@@@3@@#Vr@@@Ш@г#intVrVr@@B@@@@E@@#Vs@@@Ш@г&stringVsVs@@T@@@@W@@#Wt@@@Ш@г&stringW tW t#@@f@@@@i@@#Wu%1@@@Ш@г&stringWu%4@@w@@@@z@@@Aг$UnixW+nߓW,nߗ@W/nߘW0nߤ@@@@@UWC@@@@@@@3W;W;W;W;W;W;W;W;@@A@A++group_entry VWIyv{WJyv@@;@@'gr_name @@W"@@@ WVzWWz@@Wo8@)gr_passwd @@W.@@@ Wb{Wc{@@W{9@&gr_gid@@WD@@@ Wn|Wo|@@W:@&gr_mem@@VWJ@@@ @@@ W}W}@@W;@@@AO+group_entry@@@ @@@@WyvvW~@U䐠 0 Structure of entries in the [groups] database. WW/@@@@@@@@@W7@@#OOJWz@I@@Ш@гR&stringWzWz@@Z3WWWWWWWW@i;@@@Aq@@@ @@@@@.+@@@A@@i@@ @e@#aa\W{@[@@Ш@гd&stringW{W{@@l@@o@@ !@k@#ggbW|@a@@Ш@гj#intW|W|@@r0@@u@@ 3@q@#mmcW}@b@@Ш@гp%arrayW}l@гt&stringW}W}@@|J@@@Kw@@@@ N@{@@Aгw$UnixXyvXyv@~XyvXyv@@@^@@VbX~@~~@@@~@~@@3XXXXXXXX@i@A@(getloginX15X 1=@б@гWԠ$unitX*1@X+1D@@ @@@ .3X,X,X,X,X,X,X,X,@@A@@гX&stringX91HX:1N@@ @@@ /@@@@@ 0@@ 1 @@@XF11 @V : Return the login name of the user executing the process. XSOOXTO@@@@@@@Xl<@@@VXg@@@@@@3(getpwnamXjXk@б@гX?&stringXuXv@@ @@@ 23XwXwXwXwXwXwXwXw@La8@A@@г],passwd_entryXX@@ @@@ 3@@@@@ 4@@ 5 @@@X @Vꐠ s Find an entry in [passwd] with the given name. @raise Not_found if no such entry exists, or always on Windows. XX.@@@@@@@X=@@@VX@@@@@@3(getgrnamX04X0<@б@гX&stringX0?X0E@@ @@@ 63XXXXXXXX@La8@A@@г+group_entryX0IX0T@@ @@@ 7@@@@@ 8@@ 9 @@@X00 @W5 s Find an entry in [group] with the given name. @raise Not_found if no such entry exists, or always on Windows. XUUX@@@@@@@Y>@@@WEX@@@@@@3(getpwuidYY@б@гXߠ#intY Y @@ @@@ :3Y Y Y Y Y Y Y Y @La8@A@@г,passwd_entryYY@@ @@@ ;@@@@@ <@@ = @@@Y' @W w Find an entry in [passwd] with the given user id. @raise Not_found if no such entry exists, or always on Windows. Y4Y5)n@@@@@@@YM?@@@WYH@@@@@@3(getgrgidYKptYLp|@б@гY*#intYVpYWp@@ @@@ >3YXYXYXYXYXYXYXYX@La8@A@@г+group_entryYepYfp@@ @@@ ?@@@@@ @@@ A @@@Yrpp @Wː w Find an entry in [group] with the given group id. @raise Not_found if no such entry exists, or always on Windows. YY@@@@@@@Y@@@@WY@@@@@@3YY8 {1 Internet addresses} YY.@@@@@@3YYYYYYYY@EZ1@AA+)inet_addrWY16Y1?@@;@@CLAQ)inet_addr@@@ C@@@@Y11Y1P@X * The abstract type of Internet addresses. YQQYQ@@@@@@@@@YA@@@Aг$UnixY1BY1F@ Y1G@@@'3YYYYYYYY@71;@@@A9@@@ H@ B@@@@,)@@@A+@@-X9Y񐠠+*@**@@@*@*@@M87@3inet_addr_of_stringYY@б@гYʠ&stringZZ@@ @@@ J3ZZZZZZZZ@ga[@A@@гe)inet_addrZZ@@ @@@ K@@@@@ L@@ M @@@Z @Xu 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. Z)Z*@@@@@@@ZBB@@@XZ=@@@@@@33string_of_inet_addrZ@ZA1@б@г)inet_addrZK4ZL=@@ @@@ N3ZMZMZMZMZMZMZMZM@La8@A@@гZ$&stringZZAZ[G@@ @@@ O@@@@@ P@@ Q @@@Zg @X Return the printable representation of the given Internet address. See {!inet_addr_of_string} for a description of the printable representation. ZtHHZu@@@@@@@ZC@@@XZ@@@@@@3-inet_addr_anyZZ@гꠐ)inet_addrZZ@@ @@@ R3ZZZZZZZZ@J_6@A@@@Z @X  A special IPv4 address, for use only with [bind], representing all the Internet addresses that the host machine possesses. ZZJ@@@@@@@ZD@@@YZ@@@@@@!2inet_addr_loopbackZZ@г!)inet_addrZZ@@ @@@ S3ZZZZZZZZ@8K6@A@@@Z @Y. E A special IPv4 address representing the host machine ([127.0.0.1]). ZZ@@@@@@@ZE@@@Y>Z@@@@@@!.inet6_addr_anyZZ@гX)inet_addr[[@@ @@@ T3[[[[[[[[@8K6@A@@@[  @Ye  A special IPv6 address, for use only with [bind], representing all the Internet addresses that the host machine possesses. [[^@@@@@@@[2F@@@Yu[-@@@@@@!3inet6_addr_loopback[0[1@г)inet_addr[9[:@@ @@@ U3[;[;[;[;[;[;[;[;@8K6@A@@@[C @Y ? A special IPv6 address representing the host machine ([::1]). [P[Q @@@@@@@[iG@@@Y[d@@@@@@!-is_inet6_addr[g [h @б@гȠ)inet_addr[r [s (@@ @@@ V3[t[t[t[t[t[t[t[t@:M8@A@@г[<$bool[ ,[ 0@@ @@@ W@@@@@ X@@ Y @@@[   @Y琠 C Whether the given [inet_addr] is an IPv6 address. @since 4.12 [11[gy@@@@@@@[H@@@Y[@@@@@@3[[- {1 Sockets} [{{[{@@@@@@3[[[[[[[[@EZ1@AA+-socket_domainX[[@@;@@'PF_UNIX@@[[@Z*- Unix domain [[@@@@@@@[J@'PF_INET@@[[@ZA8 Internet domain (IPv4) [ [*@@@@@@@\K@(PF_INET6 @@[+-[+7@ZX8 Internet domain (IPv6) \ +K\ +h@@@@@@@\%L@@@AT5-socket_domain@@@ [@@@@\@Zp 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. \$ii\% @@@@@@@A@\=I@@#^^\[@L@@@^Z\=\[@[[@@@[@[@#WW\<U@F@@@XZ\NVU@UU@@@U@U@#QQ\M+/O@@@@@RZ\_PO@OO@@@O@O@@AгK$Unix\c\d@R\g\h@@@Z3\g\g\g\g\g\g\g\g@;@@@A@@@ a@ Z@@@@_]@@O@A@@`Z\_^@^^@@@^@^@@ưk@A++socket_type!Y\$\/@@;@@+SOCK_STREAM"@@\EI\ET@Z/ Stream socket \Ee\Ey@@@@@@@\N@*SOCK_DGRAM#@@\z|\z@[1 Datagram socket \z\z@@@@@@@\O@(SOCK_RAW$@@\\@[, Raw socket \\@@@@@@@\P@.SOCK_SEQPACKET%@@\\@[4: Sequenced packets socket \\"@@@@@@@]Q@@@AU+socket_type@@@ m@@@@\@[L 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. ]##] @@@@@@@A@]M@@#uusr@c@@@u[a]sr@rr@@@r@r@#nn]z~l@]@@@o[r]*ml@ll@@@l@l@#hh])f@W@@@i[];gf@ff@@@f@f@#bb]:`@Q@@@c[]La`@``@@@`@`@@Aг\$Unix]P2]Q6@c]T7]UB@@@k3]T]T]T]T]T]T]T]T@;@@@A@@@ s@ l@@@@qo@@a@A@@r[]tqp@pp@@@p@p@@3]l]l]l]l]l]l]l]l@@A~@A+(sockaddr&Z]z ]{ @@;@@)ADDR_UNIX']U@@@ @@],0],C@@]S@)ADDR_INET(@@@ ]r@@@ @@]DF]Dd@@]T@@@AU(sockaddr@@@ @@@@]   @\  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. ]jj]n@@@@@@@@@]R@@#::3],9@2@г;&string],=<@@B3]]]]]]]]@pB<S;@@@A[@@@ @ ~@@@@,*@@@AI@@@@K@#GG]DH]DQ@;@гI)inet_addr]DU]D^@@Q@@гN#int]DaO@@U&P@@@@R@@AгN$Unix] ]  @U] !] )@@@]7@@X\V^WV@VV@@@V@V@@3^^^^^^^^@B@Adn@&socket)^^@б'cloexecг]۠$bool^ ^!@@ @@@ 3^"^"^"^"^"^"^"^"@_@A@@б&domainгm-socket_domain^3^4@@ @@@ @@б$kindг+socket_type^D^E@@ @@@ $@@б(protocolг^)#int^U^V@@ @@@ 5@@гH*file_descr^b^c@@ @@@ B@@@@ @@ G^m @@5,@@  @@ M^s@@LC@@  @@ S^y@@e.͠_@@@ @@ @@ ]^!@@ @^$@\ߐ  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. ^  ^ %@@@@@@@^U@@4@\^@@@@@@}2domain_of_sockaddr*^'+^'=@б@г;(sockaddr^'?^'G@@ @@@ 3^^^^^^^^@8@A@@г-socket_domain^'K^'X@@ @@@ @@@@@ @@  @@@^'' @]* A Return the socket domain adequate for the given socket address. ^YY^Y@@@@@@@^V@@@]:^򐠠@@@@@@3*socketpair+^^@б'cloexecг^$bool__@@ @@@ 3________@Nc:@A@@б&domainгO-socket_domain__@@ @@@ @@б$kindг+socket_type_& _'@@ @@@ $@@б(protocolг_ #int_7#_8&@@ @@@ 5@@В@гHꠐ*file_descr_H*._I*8@@ @@@ F@@@гH*file_descr_W*;_X*E@@ @@@ U@@@@@ @@ \ @@8/@@  @@ a_i@@OF@@  @@ g_o@@f]@@  @@ m_u@@/ɠy@@@ @@ @@ w_(@@ @_+@]ې Create a pair of unnamed sockets, connected together. See {!set_close_on_exec} for documentation on the [cloexec] optional argument. _FF_@@@@@@@_W@@;@]_@@@@@@&accept,__@б'cloexecг_n$bool__@@ @@@ 3________@:@A@@б@гIf*file_descr_)_3@@ @@@ @@В@гIw*file_descr_7_A@@ @@@ "@@@гj(sockaddr_D_L@@ @@@ 1@@@@@ @@ 8 @@@/@@  @@ =2@@N0IH@@@ @@  @@ F_@@ @`@^[ 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. `MM`9Q@@@@@@@`(X@@.@^k`#@@@@@@f$bind-`&SW`'S[@б@гIӠ*file_descr`1S^`2Sh@@ @@@ 3`3`3`3`3`3`3`3`3@8@A@@б$addrгʠ(sockaddr`DSq`ESy@@ @@@ @@г_$unit`QS}`RS@@ @@@  @@@@ @@ %`\Sl @@@.@@  @@ +1@@@`dSS@^> Bind a socket to an address. `q`r@@@@@@@`Y@@#@^`@@@@@@J'connect.``@б@гJ5*file_descr``@@ @@@ 3````````@cx8@A@@б$addrг,(sockaddr``@@ @@@ @@г`]$unit``@@ @@@  @@@@ @@ %` @@@.@@  @@ +1@@@`@_ ! Connect a socket to an address. ``@@@@@@@`Z@@#@_/`琠@@@@@@J&listen/`` @б@гJ*file_descr``@@ @@@ 3````````@cx8@A@@б#maxг`ܠ#inta a #@@ @@@ @@г`$unita'a+@@ @@@  @@@@ @@ %a  @@@.@@  @@ +1@@@a(@_ w Set up a socket for receiving connection requests. The integer argument is the maximal number of pending requests. a5,,a6o@@@@@@@aN[@@#@_aI@@@@@@JA+0shutdown_command0[aMaN@@;@@0SHUTDOWN_RECEIVE1@@aWaX@_5 Close for receiving aeaf@@@@@@@a~]@-SHUTDOWN_SEND2@@anao&@_Ȑ3 Close for sending a|5a}M@@@@@@@a^@,SHUTDOWN_ALL3@@aNPaN^@_ߐ, Close both aNnaN@@@@@@@a_@@@AY0shutdown_command@@@ @@@@a@_ & The type of commands for [shutdown]. aa@@@@@@@A@a\@@#^^\[@L@@@^` aĐ\[@[[@@@[@[@#WWaU@F@@@X`aՐVU@UU@@@U@U@#QQaNRO@@@@@R`.a搠PO@OO@@@O@O@@AгK$Unixaa@Raa@@@Z3aaaaaaaa@;@@@A@@@ @ @@@@`^@@P@A@@a`Vb`_@__@@@_@_@@3bbbbbbbb@@Am@(shutdown4b b @б@гK*file_descrb b @@ @@@ 3b b b b b b b b @2@A@@б$modeг䠐0shutdown_commandb1 b2 @@ @@@ @@гa蠐$unitb> b? @@ @@@  @@@@ @@ %bI  @@@.@@  @@ +1@@@bQ @`  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). b^ b_ @@@@@@@bw`@@#@`br@@@@@@J+getsockname5bu bv @б@гL"*file_descrb b (@@ @@@ 3bbbbbbbb@cx8@A@@г(sockaddrb ,b 4@@ @@@ @@@@@ @@  @@@b   @` ) Return the address of the given socket. b55b5c@@@@@@@ba@@@ab@@@@@@3+getpeername6beibet@б@гLm*file_descrbewbe@@ @@@!3bbbbbbbb@La8@A@@г`(sockaddrbebe@@ @@@!@@@@@!@@! @@@bee @a@ ? Return the address of the host connected to the given socket. bb@@@@@@@c b@@@aPc@@@@@@3A+(msg_flag7\c c @@;@@'MSG_OOB8@@cc@@c/d@-MSG_DONTROUTE9@@cc @@c8e@(MSG_PEEK:@@c(c)@@cAf@@@A[Q(msg_flag@@@!@@@@c3 @a < The flags for {!recv}, {!recvfrom}, {!send} and {!sendto}. c@$$cA$e@@@@@@@A@cYc@@#4421@0@@@4@#00cM.@-@@@1@#--cS+@*@@@.@@Aг*$Unixc^c_@1cbcc@@@93cbcbcbcbcbcbcbcb@`;@@@Ah@@@! @!@@@@?=@@/@A@@@ac?>@>>@@@>@>@@3czczczczczczczcz@@ALV@$recv;cgkcgo@б@гM4*file_descrcrtcr~@@ @@@!3cccccccc@2@A@@б#bufгcj%bytescrcr@@ @@@!@@б#posгc#intcrcr@@ @@@!$@@б#lenгc#intcrcr@@ @@@!5@@б$modeгcQ$listcrcr@г֠(msg_flagcrcr@@ @@@!P@@@@@@!U @@гcȠ#intcrcr@@ @@@!b@@-@@!@@!gcr @@D;@@!  @@!!mdr@@[R@@!" @@!#sd r@@ri@@!$ @@!%ydr@@@@@!& @@!'"@@@dgg%@br ' Receive data from a connected socket. d&d'@@@@@@@d?g@@5@bd:@@@@@@(recvfrom<d=!d>!@б@гMꠐ*file_descrdH"dI"@@ @@@!(3dJdJdJdJdJdJdJdJ@8@A@@б#bufгd %bytesd["d\"@@ @@@!)@@б#posгd@#intdl"dm" @@ @@@!*$@@б#lenгdQ#intd}"(d~"+@@ @@@!+5@@б$modeгd$listd"=d"A@г(msg_flagd"4d"<@@ @@@!,P@@@@@@!.U @@В@гd#intd#EId#EL@@ @@@!/f@@@гC(sockaddrd#EOd#EW@@ @@@!0u@@@@@ @@!1| @@G0@@!2 @@!3d"/@@^U@@!4 @@!5d"$@@ul@@!6 @@!7d"@@@@!8 @@!9d" $@@@@@!: @@!;)@@@d!,@cB * Receive data from an unconnected socket. d$XXd$X@@@@@@@eh@@<@cRe @@@@@@$send=e &e&@б@гN*file_descre'e'@@ @@@!<3eeeeeeee@8@A@@б#bufгd%bytese+'e,'@@ @@@!=@@б#posгe#inte<'e='@@ @@@!>$@@б#lenгe!#inteM'eN'@@ @@@!?5@@б$modeгdנ$liste^'e_'@г\(msg_flageh'ei'@@ @@@!@P@@@@@@!BU @@гeN#intez'e{'@@ @@@!Cb@@-@@!D@@!Ege' @@D;@@!F @@!Gme'@@[R@@!H @@!Ise'@@ri@@!J @@!Kye'@@@@@!L @@!M"@@@e&%@c $ Send data over a connected socket. e(e( @@@@@@@ei@@5@de@@@@@@.send_substring>e* e* @б@гOp*file_descre+!#e+!-@@ @@@!N3eeeeeeee@8@A@@б#bufгe&stringe+!5e+!;@@ @@@!O@@б#posгeƠ#inte+!Ce+!F@@ @@@!P$@@б#lenгeנ#intf+!Nf+!Q@@ @@@!Q5@@б$modeгe$listf+!cf+!g@г(msg_flagf+!Zf+!b@@ @@@!RP@@@@@@!TU @@гf#intf0+!kf1+!n@@ @@@!Ub@@-@@!V@@!Wgf;+!U @@D;@@!X @@!YmfA+!J@@[R@@!Z @@![sfG+!?@@ri@@!\ @@!]yfM+!1@@@@@!^ @@!_"@@@fU*  %@d a Same as [send], but take the data from a string instead of a byte sequence. @since 4.02 fb,oofc.@@@@@@@f{j@@5@dfv@@@@@@&sendto?fy0fz0@б@гP&*file_descrf1f1@@ @@@!`3ffffffff@8@A@@б#bufгf\%bytesf1f1@@ @@@!a@@б#posгf|#intf1f1@@ @@@!b$@@б#lenгf#intf1f1@@ @@@!c5@@б$modeгfC$listf1%f1)@гȠ(msg_flagf1f1$@@ @@@!dP@@@@@@!fU @@б$addrг p(sockaddrf2-6f2->@@ @@@!gf@@гfˠ#intf2-Bf2-E@@ @@@!hs@@@@!i@@!jxg2-1 @@D-@@!k @@!l~g1@@[R@@!m @@!ng1 @@ri@@!o @@!pg1@@@@!q @@!rg1#@@@@@!s @@!t(@@@g"0+@e{ ' Send data over an unconnected socket. g/3FFg03Fr@@@@@@@gHk@@;@egC@@@@@@0sendto_substring@gF5txgG5t@б@гP*file_descrgQ6gR6@@ @@@!u3gSgSgSgSgSgSgSgS@8@A@@б#bufгg.&stringgd6ge6@@ @@@!v@@б#posгgI#intgu6gv6@@ @@@!w$@@б#lenгgZ#intg6g6@@ @@@!x5@@б$modeгg$listg6g6@г(msg_flagg6g6@@ @@@!yP@@@@@@!{U @@б@г ;(sockaddrg7g7@@ @@@!|d@@гg#intg7g7@@ @@@!}q@@@@@!~@@!v @@A*@@! @@!{g6@@XO@@! @@!g6@@of@@! @@!g6@@}@@! @@!g6"@@@@@! @@!'@@@g5tt*@fE c Same as [sendto], but take the data from a string instead of a byte sequence. @since 4.02 g8g:=O@@@@@@@hl@@:@fUh @@@@@@hh4 {1 Socket options} h>SSh>Sl@@@@@@3hhhhhhhh@1@AA+2socket_bool_optionA]h$Aoth%Ao@@;@@(SO_DEBUGB@@h.Bh/B@f> Record debugging information h<Bh=B@@@@@@@hUn@,SO_BROADCASTC@@hEChFC@f & Permit sending of broadcast messages hSChTC@@@@@@@hlo@,SO_REUSEADDRD@@h\Dh]D)@f ) Allow reuse of local addresses for bind hjD,hkDZ@@@@@@@hp@,SO_KEEPALIVEE@@hsE[]htE[k@f͐8 Keep connection active hE[nhE[@@@@@@@hq@,SO_DONTROUTEF@@hFhF@f䐠 ( Bypass the standard routing algorithms hFhF@@@@@@@hr@,SO_OOBINLINEG@@hGhG@f Leave out-of-band data in line hGhG@@@@@@@hs@-SO_ACCEPTCONNH@@hHhH@g , Report whether socket listening is enabled hHhHJ@@@@@@@ht@+TCP_NODELAYI@@hIKMhIKZ@g) - Control the Nagle algorithm for TCP sockets hIK^hIK@@@@@@@hu@)IPV6_ONLYJ@@hJhJ@g@ 2 Forbid binding an IPv6 socket to an IPv4 address hJhJ@@@@@@@i v@,SO_REUSEPORTK@@hKhK@gW 8 Allow reuse of address and port bindings. @since 4.12. i Ki K,@@@@@@@i$w@@@Aa42socket_bool_option@@@!@@@@iAoo@go The socket options that can be consulted with {!getsockopt} and modified with {!setsockopt}. These options have a boolean ([true]/[false]) value. i#L--i$N@@@@@@@A@i<m@@#@@@@gi<@@@@@@#i;C@@@@giM@@@@@@#iLD@@@@󠰠gi^@@@@@@#i]E[_@@@@gio@@@@@@#inF@@@@砰gi@@@@@@#iG@@@@ᠰgi@@@@@@#ڠڰiH @@@@۠gi@@@@@@#Ԡ԰iIKO@@@@ՠgi@@@@@@#ΠΰiJ@@@@Ϡh iĐ@@@@@@#ȠȰiK@@@@ɠhiՐ@@@@@@@Aг $UnixiAoiAo@ɰiAoiAo@@@3iiiiiiii@;@@@A@@@!@!@@@@@@@A@@נhDi@@@@@@@ް@A+1socket_int_optionL^jPjP@@;@@)SO_SNDBUFM@@j Qj Q @he5 Size of send buffer jQjQ+@@@@@@@j2y@)SO_RCVBUFN@@j"R,.j#R,9@h|9 Size of received buffer j0R,=j1R,[@@@@@@@jIz@(SO_ERRORO@@j9S\^j:Ti@0ocaml.deprecatedj@TiojATi@ "Use Unix.getsockopt_error instead.jLTijMTi@@jOTijPTi@@@@@@jSTim@h / Deprecated. Use {!getsockopt_error} instead. j`UjaU@@@@@@@jy{@'SO_TYPEP@@jiVjjV@hÐ8 Report the socket type jwVjxV @@@@@@@j|@+SO_RCVLOWATQ@@jWjW@hڐ 9 Minimum number of bytes to process for input operations jWjW]@@@@@@@j}@+SO_SNDLOWATR@@jX^`jX^m@h񐠠 : Minimum number of bytes to process for output operations jX^ojX^@@@@@@@j~@@@Ab1socket_int_option@@@!@@@@jP@i The socket options that can be consulted with {!getsockopt_int} and modified with {!setsockopt_int}. These options have an integer value. jYj[2F@@@@@@@A@jx@@#@@@@ij֐@@@@@@#jR,0@@@@i/j琠@@@@@@#jS\`jS\h@@@@@@@@@iLk@@@@@@#kV@@@@i]k@@@@@@#kW@@@@ink&@@@@@@#k%X^b@@@@ik7@@@@@@@Aг$Unixk;Pk<P@k?Pk@P@@@3k?k?k?k?k?k?k?k?@+%H;@@@AP@@@!@!@@@@@@@A@@ik_@@@@@@@3kWkWkWkWkWkWkWkW@@A@A+4socket_optint_optionS_ke]HMkf]Ha@@;@@)SO_LINGERT@@ko^kp^@iɐ Whether to linger on closed connections that have data present, and for how long (in seconds) k}^k~`@@@@@@@k@@@Ac4socket_optint_option@@@!@@@@k]HH@iᐠ 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''. kakc@@@@@@@A@k@@#00.-@@@@0ik.-@--@@@-@-@@Aг)$Unixk]Hdk]Hh@0k]Hik]H}@@@83kkkkkkkk@x[;@@@Ac@@@!@!@@@@><@@.@A@@?jk֐>=@==@@@=@=@@3kkkkkkkk@@AKc@A+3socket_float_optionU`keke@@;@@+SO_RCVTIMEOV@@kf!%kf!0@j@> Timeout for input operations kf!4kf!W@@@@@@@l @+SO_SNDTIMEOW@@kgXZkgXg@jW? Timeout for output operations l gXkl gX@@@@@@@l$@@@Ad43socket_float_option@@@!@@@@le@jo 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. l#hl$kNw@@@@@@@A@l<@@#GGED@5@@@Gjl<ED@DD@@@D@D@#@@l;gX\>@/@@@AjlM?>@>>@@@>@>@@Aг:$UnixlQelRe @AlUe lVe@@@I3lUlUlUlUlUlUlUlU@;@@@A@@@!@!@@@@OM@@?@A@@PjluON@NN@@@N@N@@3lmlmlmlmlmlmlmlm@@A\t@*getsockoptXlzmy}l{my@б@гV'*file_descrlmylmy@@ @@@!3llllllll@2@A@@б@гr2socket_bool_optionlmylmy@@ @@@!@@гl^$boollmylmy@@ @@@!@@@@@!@@!# @@@+@@! @@!(.@@@lmyy@k N Return the current status of a boolean-valued option in the given socket. lnlo@@@@@@@l@@"@kl֐@@@@@@G*setsockoptYlq lq@б@гV*file_descrlqlq#@@ @@@!3llllllll@`u8@A@@б@гѠ2socket_bool_optionlq'lq9@@ @@@!@@б@гl$boolmq=mqA@@ @@@! @@гl$unitmqEmqI@@ @@@!-@@@@@!@@!2 @@@)@@! @@!7,@@@?@@! @@!<B@@@m(q@k ; Set or clear a boolean-valued option in the given socket. m5rJJm6rJ@@@@@@@mN@@'@kmI@@@@@@[.getsockopt_intZmLtmMt@б@гV*file_descrmWtmXt@@ @@@!3mYmYmYmYmYmYmYmY@t8@A@@б@гg1socket_int_optionmhtmit@@ @@@!@@гmI#intmutmvt@@ @@@!@@@@@!@@!# @@@+@@! @@!(.@@@mt@k < Same as {!getsockopt} for an integer-valued socket option. mumu @@@@@@@m@@"@km@@@@@@G.setsockopt_int[mw mw @б@гWX*file_descrmw  mw *@@ @@@!3mmmmmmmm@`u8@A@@б@гƠ1socket_int_optionmw .mw ?@@ @@@!@@б@гm#intmw Cmw F@@ @@@! @@гm$unitmw Jmw N@@ @@@!-@@@@@!@@!2 @@@)@@! @@!7,@@@?@@! @@!<B@@@mw  @lS < Same as {!setsockopt} for an integer-valued socket option. nxOOnxO@@@@@@@n @@'@lcn@@@@@@[1getsockopt_optint\nznz@б@гWˠ*file_descrn)zn*z@@ @@@!3n+n+n+n+n+n+n+n+@t8@A@@б@гՠ4socket_optint_optionn:zn;z@@ @@@!@@гm&optionnGznHz@гn%#intnQznRz@@ @@@!(@@@@@@!- @@@$@@! @@!2'@@@:@@! @@!7=@@@nhz!@l O Same as {!getsockopt} for a socket option whose value is an [int option]. nu{nv|/@@@@@@@n@@1@ln@@@@@@V1setsockopt_optint]n~15n~1F@б@гX9*file_descrnIOnIY@@ @@@!3nnnnnnnn@o8@A@@б@гC4socket_optint_optionnI]nIq@@ @@@!@@б@гn&optionnIynI@гn#intnIunIx@@ @@@!*@@@@@@"/ @@гn}$unitnInI@@ @@@"<@@@@@"@@"A @@@8@@" @@"F;@@@N@@" @@"KQ@@@n~11@mC O Same as {!setsockopt} for a socket option whose value is an [int option]. nn@@@@@@@o@@'@mSo @@@@@@j0getsockopt_float^oo@б@гX*file_descroo@@ @@@" 3oooooooo@8@A@@б@гN3socket_float_optiono* o+ @@ @@@" @@гn%floato7 o8 @@ @@@" @@@@@" @@" # @@@+@@" @@"(.@@@oI@m W Same as {!getsockopt} for a socket option whose value is a floating-point number. oV  oW _ |@@@@@@@oo@@"@moj@@@@@@G0setsockopt_float_om ~ on ~ @б@гY*file_descrox ~ oy ~ @@ @@@"3ozozozozozozozoz@`u8@A@@б@г3socket_float_optiono ~ o ~ @@ @@@"@@б@гoX%floato ~ o ~ @@ @@@" @@гoO$unito ~ o ~ @@ @@@"-@@@@@"@@"2 @@@)@@" @@"7,@@@?@@" @@"<B@@@o ~ ~@n W Same as {!setsockopt} for a socket option whose value is a floating-point number. o  o  $@@@@@@@o@@'@n%oݐ@@@@@@[0getsockopt_error`o & *o & :@б@гY*file_descro & =o & G@@ @@@"3oooooooo@t8@A@@гoV&optiono & Qo & W@гnh%errorp & Kp & P@@ @@@"@@@@@@" @@@&@@" @@"#)@@@p & &@no P Return the error condition associated with the given socket, and clear it. p# X Xp$  @@@@@@@p<@@,@np7@@@@@@BpEpD - {1 High-level network connection functions} pA  pB  @@@@@@3p@p@p@p@p@p@p@p@@Ti1@A/open_connectionapM  pN  @б@гޠ(sockaddrpX  pY  @@ @@@" @@В@гn*in_channelpi  pj  @@ @@@"!+@@@гn+out_channelpx  py  @@ @@@"":@@@@@ @@"#A @@@/@@"$ @@"%F2@@@p  @n吠 . 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. p  p P R@@@@@@@p@@$@np@@@@@@e3shutdown_connectionbp U Yp U l@б@гo8*in_channelp U op U y@@ @@@"&3pppppppp@~y8@A@@гpt$unitp U }p U @@ @@@"'@@@@@"(@@") @@@p U U @o0 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. p  p@@@@@@@p@@@o@p@@@@@@30establish_servercpp@б@б@гo*in_channelqq @@ @@@"*3q q q q q q q q @Nc:@A@@б@гo+out_channelqq @@ @@@"+@@гpР$unitq& q'@@ @@@",@@@@@"-@@".# @@@+@@"/ @@"0(.@@б$addrгǠ(sockaddrqAqB#@@ @@@"19@@гp$unitqN'qO+@@ @@@"2F@@@@"3@@"4KqY @@@-@@"5 @@"6Qq_@@@qb@o  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. qo,,qp@@@@@@@q@@$@oq@@@@@@qqq ! {1 Host and protocol databases} qq7@@@@@@3qqqqqqqq@1@AA+*host_entrydaq9>q9H@@;@@&h_namee@@qs@@@"8q]aq]q@@q@)h_aliasesf@@q8q@@@";@@@"=qrvqr@@q@*h_addrtypeg@@@@@"@qq@@q@+h_addr_listh@@qU,@@@"C@@@"Eqq@@q@@@Ai*host_entry@@@"H@@@@q99q@p: / Structure of entries in the [hosts] database. qq @@@@@@@@@r@@#TTOq]g@N@@Ш@гW&stringq]jr]p@@_3qqqqqqqq@sm;@@@Au@@@"X@"7@@@@-*@@@A @@m@@"9@i@#ee[rr@Z@@Ш@гh%arrayrrrr@гm&stringr%rr&r@@u&@@@z' @@}@@">*@t@#ppkr/@j@@Ш@гs-socket_domainr8r9@@{9@@~@@"A<@z@#vvlrA@k@@Ш@гy%arrayrJu@г})inet_addrrRrS@@S@@@T@@@@"FW@@@Aг$Unixra9Krb9O@re9Prf9Z@@@g@@pry@@@@@@@@A+.protocol_entryibr~ r @@;@@&p_namej@@rW@@@"ur8<r8L@@r@)p_aliasesk@@rrg@@@"x@@@"zrMQrMj@@r@'p_protol@@r~@@@"}rkork|@@r@@@Aj.protocol_entry@@@"@@@@r  r}@q 3 Structure of entries in the [protocols] database. rr@@@@@@@@@r@@#CC>r8B@=@@Ш@гF&stringr8Er8K@@N3rrrrrrrr@GA;];@@@Ae@@@"@"t@@@@.+@@@A@@]@@"v@Y@#UUKrMZ@J@@Ш@гX%arrayrMdrMi@г]&stringrM]rMc@@e'@@@j( @@m@@"{+@d@#``[skv@Z@@Ш@гc#ints kyd@@j9e@@m@@"~<@i@@Aгe$Unixs "s &@ls 's 5@@@tL@@oqys1ml@ll@@@l@l@@3s)s)s)s)s)s)s)s)@W@A{z@A+-service_entrymcs7s8@@;@@&s_namen@@s@@@"sDsE@@s]@)s_aliaseso@@rՠs @@@"@@@"sUsV@@sn@&s_portp@@s7@@@"sasb)@@sz@'s_protoq@@s9@@@"sm*.sn*>@@s@@@Ak-service_entry@@@"@@@@sxsy?B@qҐ 2 Structure of entries in the [services] database. sCCsCz@@@@@@@@@s@@#OOJs@I@@Ш@гR&stringss@@Z3ssssssss@"i;@@@Aq@@@"@"@@@@.+@@@A@@i@@"@e@#aaWs@V@@Ш@гd%arrayss@гi&strings s@@q'@@@v( @@y@@"+@p@#llgs"@f@@Ш@гo#ints%s(@@w:@@z@@"=@v@#rrms*5@l@@Ш@гu&strings*8v@@|Kw@@@@"N@{@@Aгw$Unixss@~ss@@@^@@rPt~@~~@@@~@~@@3tttttttt@i@A@+gethostnamert |t|@б@гs $unitt|t|@@ @@@"3tttttttt@@A@@гs&stringt'|t(|@@ @@@"@@@@@"@@" @@@t4|| @r $ Return the name of the local host. tAtB@@@@@@@tZ@@@rtU@@@@@@3-gethostbynamestXtY@б@гt-&stringtctd@@ @@@"3tetetetetetetete@La8@A@@гؠ*host_entrytrts@@ @@@"@@@@@"@@" @@@t @rؐ ] Find an entry in [hosts] with the given name. @raise Not_found if no such entry exists. tt#S@@@@@@@t@@@rt@@@@@@3-gethostbyaddrttUYtUf@б@г)inet_addrtUitUr@@ @@@"3tttttttt@La8@A@@г#*host_entrytUvtU@@ @@@"@@@@@"@@" @@@tUU @s# ` Find an entry in [hosts] with the given address. @raise Not_found if no such entry exists. tt@@@@@@@t@@@s3t될@@@@@@3.getprotobynameutt@б@гtà&stringtt@@ @@@"3tttttttt@La8@A@@г.protocol_entryuu @@ @@@"@@@@@"@@" @@@u @sn a Find an entry in [protocols] with the given name. @raise Not_found if no such entry exists. u"u#L|@@@@@@@u;@@@s~u6@@@@@@30getprotobynumbervu9~u:~@б@гu#intuD~uE~@@ @@@"3uFuFuFuFuFuFuFuF@La8@A@@гՠ.protocol_entryuS~uT~@@ @@@"@@@@@"@@" @@@u`~~ @s l Find an entry in [protocols] with the given protocol number. @raise Not_found if no such entry exists. umun@@@@@@@u@@@su@@@@@@3-getservbynamewu"u/@б@гuY&stringu2u8@@ @@@"3uuuuuuuu@La8@A@@б(protocolгul&stringuEuK@@ @@@"@@гx-service_entryuOu\@@ @@@" @@@@"@@"%u< @@@.@@" @@"+1@@@u@t ` Find an entry in [services] with the given name. @raise Not_found if no such entry exists. u]]u@@@@@@@u@@#@t+u㐠@@@@@@J-getservbyportxuu@б@гuŠ#intuu@@ @@@"3uuuuuuuu@cx8@A@@б(protocolгuΠ&stringvv@@ @@@"@@гڠ-service_entryvv@@ @@@" @@@@"@@"%v @@@.@@" @@"+1@@@v$@t} j Find an entry in [services] with the given service number. @raise Not_found if no such entry exists. v1v2?o@@@@@@@vJ@@#@tvE@@@@@@JA+)addr_infoydvIqvvJq@@;@@)ai_familyz@@@@@"vVvW@t/ Socket domain vdve@@@@@@@v}@+ai_socktype{@@@@@"vpvq@tʐ- Socket type v~v @@@@@@@v@+ai_protocol|@@v`@@@"v v !@t䐠8 Socket protocol number v 3v P@@@@@@@v@'ai_addr}@@,@@@"vQUvQh@t) Address vQyvQ@@@@@@@v@,ai_canonname~@@v@@@"vv@u6 Canonical host name vv@@@@@@@v@@@An)addr_info@@@#@@@@vqqv@u1 1 Address information returned by {!getaddrinfo}. vv@@@@@@@@@v@@#v@@@Ш@г-socket_domainvv@@3vvvvvvvv@;@@@A@@@#@"@@@@.+@@@A@@@@"@u_w@@@@@@#w@@@Ш@г+socket_typeww @@)@@@@",@u|w4@@@@@@#w3 @@@Ш@г#intw< w=  @@F@@@@"I@uwQ@@@@@@#wPQ\@@@Ш@г(sockaddrwYQ_wZQg@@c@@@@"f@uwn@@@@@@#wm@@@Ш@г&stringwv@@@@@@"@uw@@@@@@@Aг$Unixwqwq@wqwq@@@@@uw@@@@@@@3wwwwwwww@@A@A+2getaddrinfo_optionew w@@;@@)AI_FAMILY@@@#,@@w<@w<Z@v Impose the given socket domain w<dw<@@@@@@@w@+AI_SOCKTYPEN@@@#-@@ww@v1> Impose the given socket type ww@@@@@@@w@+AI_PROTOCOLw@@@#.@@ww@vM< Impose the given protocol xx@@@@@@@x@.AI_NUMERICHOST@@x  "x  2@vd b Do not call name resolver, expect numeric IP address x Hxg@@@@@@@x1@,AI_CANONNAME@@x!x"@v{ Y Fill the [ai_canonname] field of the result x/x06@@@@@@@xH@*AI_PASSIVE@@x879x97E@v a Set address to ``any'' address for use with {!bind} xF7_xG@@@@@@@x_@@@Apo2getaddrinfo_option@@@#/@@@@xQ@v< Options to {!getaddrinfo}. x^x_@@@@@@@@@xw@@#xf<I@@г-socket_domainxo<M@@3xmxmxmxmxmxmxmxm@y.(;@@@A@@@#<@#+@@@@,*@@@A@@@@àvx@@@@@@#xx@@г+socket_typex@@'@@@@ vx@@@@@@#xx@@г#intx@@B@@@@w xÐ@@@@@@#x $@@@@wxԐ@@@@@@#x@@@@w-x吠@@@@@@#x7;@@@@w>x@@@@@@@Aг$Unixx"x&@x'x9@@@@@wZy@@@@@@@3y y y y y y y y @@A@+getaddrinfoyy@б@гx점&stringy"y#@@ @@@#P3y$y$y$y$y$y$y$y$@{@A@@б@гx&stringy3y4 @@ @@@#Q@@б@гx$listyB#yC'@г2getaddrinfo_optionyLyM"@@ @@@#R*@@@@@@#T/ @@гxנ$listy^5y_9@г)addr_infoyh+yi4@@ @@@#UF@@@@@@#WK @@@%@@#X @@#YP,@@@G@@#Z @@#[UJ@@@]@@#\ @@#]Z`#@@@y&@wݐ  [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). y::y !@@@@@@@y@@6@wy@@@@@@yA+)name_infofy!!y!!'@@;@@+ni_hostname@@y@@@#_y!;!?y!;!T@x< Name or IP address of host y!;!cy!;!@@@@@@@y@*ni_service@@y@@@#by!!y!!@x* Name of service or port number y!!y!!@@@@@@@y@@@Ar)name_info@@@#e@@@@y!!y!!@xC : Host and service information returned by {!getnameinfo}. y!!y!"@@@@@@@@@z@@#NNIy!;!J@:@@Ш@гQ&stringz!;!Mz !;!S@@Y3zzzzzzzz@h;@@@Ap@@@#m@#^@@@@.+@@@A@@h@@#`@dxqz)ba@aa@@@a@a@#]]Xz(!!@I@@Ш@г`&stringz1!!z2!!@@h)@@k@@#c,@gxzFed@dd@@@d@d@@Aг`$UnixzJ!!*zK!!.@gzN!!/zO!!8@@@oG@@jxzbhg@gg@@@g@g@@3zZzZzZzZzZzZzZzZ@R@Avu@A+2getnameinfo_optiongzh""zi""/@@;@@)NI_NOFQDN@@zr"L"Pzs"L"Y@x̐ ! Do not qualify local host names z"L"ez"L"@@@@@@@z@.NI_NUMERICHOST@@z""z""@x㐠 " Always return host as IP address z""z""@@@@@@@z@+NI_NAMEREQD@@z""z""@x ( Fail if host name cannot be determined z""z"#@@@@@@@z@.NI_NUMERICSERV@@z ##z ##&@y & Always return service as port number z ##-z ##X@@@@@@@z@(NI_DGRAM@@z!#Y#[z!#Y#e@y( [ Consider the service as UDP-based instead of the default TCP z!#Y#rz"##@@@@@@@z@@@As2getnameinfo_option@@@#|@@@@z""@y@< Options to {!getnameinfo}. z###z###@@@@@@@A@{ @@#@z@@@yU{ @@@@@@#{ ""@t@@@yf{@@@@@@#{""}@n@@@yw{/~}@}}@@@}@}@#yy{. ##w@h@@@zy{@xw@ww@@@w@w@#ss{?!#Y#]q@b@@@ty{Qrq@qq@@@q@q@@Aгm$Unix{U""2{V""6@t{Y""7{Z""I@@@|3{Y{Y{Y{Y{Y{Y{Y{Y@S;@@@A@@@#@#{@@@@@@r@A@@y{y@@@@@@@3{q{q{q{q{q{q{q{q@@A@+getnameinfo{~%##{%#$@б@г(sockaddr{%#${%#$@@ @@@#3{{{{{{{{@2,&@A@@б@г{$list{%#$'{%#$+@г<2getnameinfo_option{%#${%#$&@@ @@@#@@@@@@#  @@г )name_info{%#$/{%#$8@@ @@@#-@@@@@#@@#2 @@@:@@# @@#7=@@@{%##@z! [getnameinfo addr opts] returns the host name and service name corresponding to the socket address [addr]. [opts] is a possibly empty list of options that governs how these names are obtained. @raise Not_found if an error occurs. {&$9$9{)%%2@@@@@@@{@@"@z1{鐠@@@@@@V{{8 {1 Terminal interface} {,%5%5{,%5%R@@@@@@3{{{{{{{{@h}1@A| | The following functions implement the POSIX standard terminal interface. They provide control over asynchronous communication ports and pseudo-terminals. Refer to the [termios] man page for a complete description. |/%U%U|2&&:@@@@@@A++terminal_ioh|4&<&A|4&<&L@@;@@(c_ignbrkA@{@@@#|7&|&|7&|&@zx= Ignore the break condition. |,7&|&|-7&|&@@@@@@@|E@(c_brkintA@{@@@#|88&&|98&&@z & Signal interrupt on break condition. |F8&&|G8&'@@@@@@@|_@(c_ignparA@|@@@#|R9'' |S9''#@z ' Ignore characters with parity errors. |`9''%|a9''Q@@@@@@@|y@(c_parmrkA@|)@@@#|l:'R'V|m:'R'n@zƐ5 Mark parity errors. |z:'R'p|{:'R'@@@@@@@|@'c_inpckA@|C@@@#|;''|;''@z? Enable parity check on input. |;''|;''@@@@@@@|@(c_istripA@|]@@@#|<''|<''@z $ Strip 8th bit on input characters. |<''|<'(@@@@@@@|@'c_inlcrA@|w@@@#|=((|=((1@{8 Map NL to CR on input. |=((4|=((Q@@@@@@@|@'c_igncrA@|@@@#|>(R(V|>(R(m@{.5 Ignore CR on input. |>(R(p|>(R(@@@@@@@|@'c_icrnlA@|@@@#|?((|?((@{H8 Map CR to NL on input. |?((|?((@@@@@@@}@&c_ixonA@|@@@#}@((} @((@{b ) Recognize XON/XOFF characters on input. }@((}@()@@@@@@@}/@'c_ixoffA@|@@@#}"A))}#A))/@{| , Emit XON/XOFF chars to control input flow. }0A))2}1A))c@@@@@@@}I@'c_opostA@|@@@#}<C)|)}=C)|)@{; Enable output processing. }JC)|)}KC)|)@@@@@@@}c@'c_obaudA@},@@@#}VE))}WE))@{ - Output baud rate (0 means close connection).}dE))}eE)*$@@@@@@@}}@'c_ibaudA@}F@@@#}pF*%*)}qF*%*?@{ʐ2 Input baud rate. }~F*%*C}F*%*Z@@@@@@@}@'c_csizeA@}`@@@#}G*[*_}G*[*u@{䐠 % Number of bits per character (5-8). }G*[*y}G*[*@@@@@@@}@(c_cstopbA@}z@@@#İ}H**}H**@{< Number of stop bits (1-2). }H**}H**@@@@@@@}@'c_creadA@}{@@@#ǰ}I**}I**@|7 Reception is enabled. }I*+}I*+@@@@@@@}@(c_parenbA@}@@@#ʰ}J++#}J++;@|2 ) Enable parity generation and detection. }J++=}J++k@@@@@@@}@(c_paroddA@}@@@#Ͱ}K+l+p}K+l+@|L % Specify odd parity instead of even. ~K+l+~K+l+@@@@@@@~@'c_hupclA@}@@@#а~ L++~ L++@|f8 Hang up on last close. ~L++~L++@@@@@@@~3@(c_clocalA@}@@@#Ӱ~&M++~'M+, @|< Ignore modem status lines. ~4M+,~5M+,0@@@@@@@~M@&c_isigA@}@@@#ְ~@O,H,L~AO,H,b@| & Generate signal on INTR, QUIT, SUSP. ~NO,H,f~OO,H,@@@@@@@~g@(c_icanonA@~@@@#ٰ~ZP,,~[P,,@| [ Enable canonical processing (line buffering and editing) ~hP,,~iQ,-@@@@@@@~@(c_noflshA@~1@@@#ܰ~tR--~uR---@|ΐ ' Disable flush after INTR, QUIT, SUSP. ~R--/~R--[@@@@@@@~@&c_echoA@~K@@@#߰~S-\-`~S-\-v@|萠8 Echo input characters. ~S-\-z~S-\-@@@@@@@~@'c_echoeA@~e@@@#~T--~T--@} + Echo ERASE (to erase previous character). ~T--~T--@@@@@@@~@'c_echokA@~@@@#~U--~U-.@} ( Echo KILL (to erase the current line). ~U-.~U-.2@@@@@@@~@(c_echonlA@~@@@#~V.3.7~V.3.O@}6 $ Echo NL even if c_echo is not set. ~V.3.Q~V.3.z@@@@@@@@'c_vintrA@~@@@#~X..~X..@}P ' Interrupt character (usually ctrl-C). X..X..@@@@@@@@'c_vquitA@~@@@#Y..Y..@}j " Quit character (usually ctrl-\). Y./Y./)@@@@@@@7@(c_veraseA@~@@@#*Z/*/.+Z/*/F@} * Erase character (usually DEL or ctrl-H). 8Z/*/H9Z/*/w@@@@@@@Q@'c_vkillA@@@@#D[/x/|E[/x/@} ' Kill line character (usually ctrl-U). R[/x/S[/x/@@@@@@@k@&c_veofA@/@@@#^\//_\//@} ) End-of-file character (usually ctrl-D). l\//m\/0@@@@@@@@&c_veolA@I@@@#x]00y]00*@}Ґ - Alternate end-of-line char. (usually none). ]00.]00`@@@@@@@@&c_vminA@h@@@#^0a0e^0a0z@}쐠 m Minimum number of characters to read before the read request is satisfied. ^0a0_00@@@@@@@@'c_vtimeA@@@@$`00`01 @~ $ Maximum read wait (in 0.1s units). `01`019@@@@@@@@(c_vstartA@@@@$a1:1>a1:1V@~ # Start character (usually ctrl-Q). a1:1Xa1:1@@@@@@@@'c_vstopA@@@@$b11b11@~: " Stop character (usually ctrl-S). b11b11@@@@@@@@@@Ax+terminal_io@@@$ @@@@4&<&<c11@@@@@@#7&|&7&|&@A@Ш@г점$bool 7&|& 7&|&@@3        @;@@@A @@@$5@#@@@@ @@@@A @@@@#@~s+@@@@@@#*8&&+8&&@A@Ш@г$bool48&&58&&@@)@@@@#,@~I@@@@@@#H9''I9''@A@Ш@г$boolR9''S9''"@@G@@ @@#J@~g@@@@@@#f:'R'^g:'R'f@A@Ш@г$boolp:'R'iq:'R'm@@ e@@@@#h@ ~@@@@@@#;'';''@A@Ш@г$bool;'';''@@@@@@#@~  @  @@@ @ @#<''<''@A@Ш@г $bool<''<''@@@@@@#@ @@@@@@#  =(("=(()@A@Ш@г$bool=((,=((0@@@@@@#@'ߐ@@@@@@#>(R(^>(R(e@A@Ш@г$bool>(R(h>(R(l@@ݰ@@@@#@E@@@@@@#?((?((@A@Ш@г$bool?((?((@@@@"@@#@c@@@@@@#@((@((@A@Ш@г$bool$@((%@((@@#@@&@@#@"9 @@@@@@#8A)) 9A))'@A@Ш@г$boolBA))*CA)).@@'7@@*@@#:@&W$#@##@@@#@#@#VC)|)WC)|)@ A@Ш@г#$bool`C)|)aC)|)@@+U@@.@@#X@*u('@''@@@'@'@###tE))uE))@A@Ш@г'#int~E))E))@@/s@@2@@#v@.,+@++@@@+@+@#''F*%*1F*%*8@A@Ш@г+#intF*%*;F*%*>@@3@@6@@#@20/@//@@@/@/@#++G*[*gG*[*n@A@Ш@г/#intG*[*qG*[*t@@7@@:@@#@6ϐ43@33@@@3@3@#//H**H**@A@Ш@г3#intH**H**@@;Ͱ@@>@@#@:5퐠87@77@@@7@7@#33I**I**@ A@Ш@г7$boolI**I**@@?@@B@@#@>S <;@;;@@@;@;@#77 J+++ J++3@$A@Ш@г;$boolJ++6J++:@@C @@F@@# @Bq)@?@??@@@?@?@#;;(K+l+x)K+l+@(A@Ш@г?$bool2K+l+3K+l+@@G'@@J@@#*@FGDC@CC@@@C@C@#??FL++GL++@,A@Ш@гC$boolPL++QL++@@KE@@N@@#H@JeHG@GG@@@G@G@#CCdM++eM+,@0A@Ш@гG$boolnM+,oM+, @@Oc@@R@@#f@NLK@KK@@@K@K@#GGO,H,TO,H,Z@4A@Ш@гK$boolO,H,]O,H,a@@S@@V@@#@RPO@OO@@@O@O@#KKP,,P,,@8A@Ш@гO$boolP,,P,,@@W@@Z@@#@VTS@SS@@@S@S@#OOR--R--%@@XA@Ш@гo$charZ/*/AZ/*/E@@w@@z@@#@vts@ss@@@s@s@#oo[/x/[/x/@\A@Ш@гs$char[/x/[/x/@@{@@~@@#@z͐xw@ww@@@w@w@#ss\//\//@`A@Ш@гw$char\//\//@@˰@@@@#@~3될|{@{{@@@{@{@#ww]00]00"@dA@Ш@г{$char]00%]00)@@@@@@#@Q @@@@@@#{{^0a0m ^0a0s@hA@Ш@г#int^0a0v^0a0y@@@@@@# @o'@@@@@@#&`00'`01@lA@Ш@г#int0`011`01 @@%@@@@$(@E@@@@@@#Da1:1FEa1:1N@pA@Ш@г$charNa1:1QOa1:1U@@C@@@@$F@c@@@@@@#bb11cb11@tA@Ш@г$charlb11mb11@@a@@@@$d@@@@@@@@Aг$Unix4&<&O4&<&S@4&<&T4&<&_@@@@@@@@)tcgetattre11e11@б@гnC*file_descre11e11@@ @@@$3@@A@@г+terminal_ioe11e11@@ @@@$@@@@@$@@$ @@@e11 @ w Return the status of the terminal referred to by the given file descriptor. @raise Invalid_argument on Windows f11i2J2r@@@@@@@@@@&ސ@@@@@@3A+,setattr_whenik2t2yk2t2@@;@@'TCSANOW@@l22l22@@@)TCSADRAIN@@m22m22@@@)TCSAFLUSH@@n22n22@@@@@A}',setattr_when@@@$@@@@ k2t2t @@A@!@@#&&$#@"@@@&@#""m22 @@@@#@#n22@@@@ @@Aг$Unix&k2t2'k2t2@#*k2t2+k2t2@@@+3********@uR;@@@AZ@@@$@$@@@@1@@@/@A@@2@@377777777@ @A3=@)tcsetattrDp22Ep22@б@гn*file_descrOp22Pp22@@ @@@$3QQQQQQQQ@'xr@A@@б$modeг,setattr_whenbp22cp22@@ @@@$@@б@г `+terminal_ioqp22rp23@@ @@@$"@@г($unit~p23p23 @@ @@@$/@@@@@$@@$4 @@2)@@$ @@$9p22@@@B@@$ @@$?E@@@p22@  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 q3 3 z44@@@@@@@@@(@@@@@@@^+tcsendbreak|44|44@б@гog*file_descr|45|45 @@ @@@$3@w8@A@@б(durationг#int|45|45@@ @@@$@@г$unit|45 |45$@@ @@@$ @@@@$@@$%|45 @@@.@@$ @@$+1@@@|44@Q 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 }5%5%55@@@@@@@@@#@a@@@@@@J'tcdrain5555@б@гoɠ*file_descr'56(56 @@ @@@$3))))))))@cx8@A@@гࠐ$unit656756@@ @@@$@@@@@$@@$ @@@C55 @ } Waits until all output written on the given file descriptor has been transmitted. @raise Invalid_argument on Windows P66Q6n6@@@@@@@i@@@d@@@@@@3A++flush_queuejh66i66@@;@@(TCIFLUSH@@r66s66@@@(TCOFLUSH@@{66|66@@@)TCIOFLUSHÐ@@6666@@@@@A~+flush_queue@@@$@@@@66 @@A@@@#&&$#@"@@@&@#""66 @@@@#@#66@@@@ @@Aг$Unix6666@#6666@@@+3@uR;@@@AZ@@@$@$@@@@1@@@/@A@@2@@3@ @A3=@'tcflushĠ6666@б@гpw*file_descr6666@@ @@@$3@'xr@A@@б$modeг+flush_queue6767@@ @@@$@@г$unit6767@@ @@@$ @@@@$@@$%67 @@@.@@$ @@$+1@@@66@a 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 778?8g@@@@@@@.@@#@q)@@@@@@JA++flow_actionk-8i8n.8i8y@@;@@&TCOOFFƐ@@788888@@P@%TCOONǐ@@@88A88@@Y@&TCIOFFȐ@@I88J88@@b@%TCIONɐ@@R88S88@@k@@@A{+flow_action@@@$@@@@]8i8i @@A@u@@#//-,@+@@@/@#++i88)@(@@@,@#((o88&@%@@@)@#%%u88#@"@@@&@@Aг"$Unix8i8|8i8@)8i88i8@@@13@a;@@@Ai@@@$@$@@@@7@@@5@A@@8@@3@ @A9C@&tcflowʠ8888@б@гqK*file_descr8888@@ @@@$3@'@A@@б$modeг+flow_action8888@@ @@@$@@гs$unit8888@@ @@@$ @@@@$@@$%88 @@@.@@$ @@$+1@@@88@5 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 88::?@@@@@@@@@#@E@@@@@@J&setsidˠ:A:E:A:K@б@г$unit :A:N :A:R@@ @@@$3        @cx8@A@@г#int:A:V:A:Y@@ @@@$@@@@@$@@$ @@@':A:A @ Put the calling process in a new session and detach it from its controlling terminal. @raise Invalid_argument on Windows 4:Z:Z5::@@@@@@@M@@@H@@@@@@3@A@{{B@{/{@zz@zsz=@zy@yy@y|yS@y3x@xx@xyxsA@wwwqA@vv@vku@uu@uet@tt@ttC@t#s@ssq@sQs*@s r@rr@rxrO@rrA@qq@qq@qgqR@q1q+A@nnA@nJm@mm@m{mR@m2l@lk@kk]@k=j@jdi@iih@iHh@hh@gg@gg^@g>g@ff@ffA@ee@ebe"@ed@ddA@cDc>A@`b`9@`_@__@__^@_*@ZlZ3ZY_$@@Z'X@XX@XX<@XW@WWu@WAW;A@VWV@UU@UU@@U T@TT@T`T@SS@S|S@RR@RR@RlRC@R#Q@QQ@QiQ@@Q P@PP@PPe@PDP>A@OO@OO@OgO>@ON@NNf@NFN@MM>@MLa@LAL@KK@KKl@KLJ@JJL@J,I@IIt@ITH@HHq@HQH(@HG@GGQ@G1G@FF@FF\@F<E@EEY@E9E@DD@DC@ClCfA@B2A@AA^@A=A7A@@@m@@M@ @??@??b@?B>@>>A@==A@;^;5@;:@::@::Z@::9@99@99e@9E9@88@88\@8;85A@7v7pA@66@6q64@65@55@5q5H@5(4@44@44m@4M4@33@33`@3?39A@22A@1K1"@10@00@0p0G@0'/@//A@//X@/8/@..@..@..p@.P.;@.-@--A@,,A@,,A@+w+@**@** @))@)l),@) (@((l@(K(EA@''G@''&@&&@&&A@&%@%g$@$$@##Q@#1"@"f!@!!A@A@MGA@A@<@@n1@@T@4@w@W@@{:@@h@4.A@RLA@A@@~U@5 @@z@Z@@A@82A@`@?9A@|A@n"@  A@Z1@ A@\@<@@A@2@A@b"@@@3@@A@ H************************************************************************AUUAUa@ H  Bbb Bb@ H OCaml CC@ H DDH@ H Xavier Leroy, projet Cristal, INRIA Rocquencourt EIIEI@ H "F#F@ H Copyright 1996 Institut National de Recherche en Informatique et (G)G/@ H en Automatique. .H00/H0|@ H 4I}}5I}@ H All rights reserved. This file is distributed under the terms of :J;J@ H the GNU Lesser General Public License version 2.1, with the @KAKc@ H special exception on linking described in the file LICENSE. FLddGLd@ H LMMM@ H************************************************************************RNSNJ@ NOTE: If this file is unixLabels.mli, run tools/sync_stdlib_docs after editing it to generate unix.mli. If this file is unix.mli, do not edit it directly -- edit unixLabels.mli instead. XPLLYV@ NOTE: When a new function is added which is not implemented on Windows (or partially implemented), or the Windows-status of an existing function is changed, remember to update the summary table in manual/src/library/libunix.etex ^X_]@ W* Interface to the Unix system. To use the labeled version of this module, add [module Unix][ = ][UnixLabels] in your implementation. Note: all the functions of this module (except {!error_message} and {!handle_unix_error}) are liable to raise the {!Unix_error} exception whenever the underlying system call signals an error. d3* {1 Error report} ֠9* Argument list too long 4* Permission denied  .* Resource temporarily unavailable; try again 6* Bad file descriptor x7* Resource unavailable d3* No child process P * Resource deadlock would occur < (* Domain error for math functions, etc. (.* File exists .* Bad address 1* File too large 젠 !* Function interrupted by signal ؠ3* Invalid argument Ġ5* Hardware I/O error 1* Is a directory  %* Too many open files by the process 1* Too many links t4* Filename too long ` $* Too many open files in the system L1* No such device 8<* No such file or directory $9* Not an executable file 5* No locks available 4* Not enough memory 蠠:* No space left on device Ԡ9* Function not supported 2* Not a directory 6* Directory not empty  &* Inappropriate I/O control operation <* No such device or address p:* Operation not permitted \.* Broken pipe H3* Result too large 48* Read-only file system  >* Invalid seek e.g. on a pipe  2* No such process /* 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 l !* Protocol wrong type for socket X9* Protocol not available D9* Protocol not supported 0<* Socket type not supported  $* Operation not supported on socket  * Protocol family not supported  2* Address family not supported by protocol family ࠠ9* Address already in use ̠ !* Can't assign requested address 2* Network is down 9* Network is unreachable  &* Network dropped connection on reset | #* Software caused connection abort h;* Connection reset by peer T<* No buffer space available @>* Socket is already connected ,:* Socket is not connected  #* Can't send after socket shutdown  $* Too many references: can't splice 7* Connection timed out ܠ5* Connection refused Ƞ/* Host is down 3* No route to host  $* Too many levels of symbolic links  ** File size or position not representable x0* Unknown error _ * The type of error codes. Errors defined in the POSIX standard and additional errors from UNIX98 and BSD. All other errors are mapped to EUNKNOWNERR. H 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. ~V 3* Return a string describing the given error code. } * [handle_unix_error f x] applies [f] to [x] and returns the result. If the exception {!Unix_error} is raised, it prints a message describing the error and exits with code 2. } (* {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. }) (* Return the process environment, as an array of strings with the format ``variable=value''. Unlike {!environment}, this function returns a populated array even if the process has special privileges. See the documentation for {!unsafe_getenv} for more details. @since 4.12 |Ҡ * Return the value associated to a variable in the process environment, unless the process has special privileges. @raise Not_found if the variable is unbound or the process has special privileges. This function is identical to {!Sys.getenv}. | * Return the value associated to a variable in the process environment. Unlike {!getenv}, this function returns the value even if the process has special privileges. It is considered unsafe because the programmer of a setuid or setgid program must be careful to avoid using maliciously crafted environment variables in the search path for executables, the locations for temporary files or logs, and the like. @raise Not_found if the variable is unbound. @since 4.06 |B * [putenv name value] sets the value associated to a variable in the process environment. [name] is the name of the environment variable, and [value] its new associated value. {栠 \* [unsetenv name] removes the variable [name] from the process environment. @since 5.5 {7* {1 Process handling} { Y* The process terminated normally by [exit]; the argument is the return code. {\ T* The process was killed by a signal; the argument is the signal number. {@ U* The process was stopped by a signal; the argument is the signal number. {$ 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]. { f* Do not block if no child has died yet, but immediately return with a pid equal to 0. zi 6* Report also the children that receive stop signals. zU8* Flags for {!waitpid}. z@ * [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 y h* Same as {!execv}, except that the third argument provides the environment to the program executed. x H* Same as {!execv}, except that the program is searched in the path. x I* Same as {!execve}, except that the program is searched in the path. w * 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. w * Wait until one of the children processes die, and return its pid and termination status. @raise Invalid_argument on Windows. Use {!waitpid} instead. wN * 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. vƠ * 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. v~ * 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 v8 !* Return the pid of the process. u p* Return the pid of the parent process. @raise Invalid_argument on Windows (because it is meaningless) u * 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 u`>* {1 Basic file input/output} uE )* The abstract type of file descriptors. u! %* File descriptor for standard input.tҠ &* File descriptor for standard output.t &* File descriptor for standard error. tj3* Open for reading t=3* Open for writing t)?* Open for reading and writing t<* Open in non-blocking mode t2* Open for append s8* Create if nonexistent s٠ #* Truncate to 0 length if existing sŠ3* Fail if existing s (* Don't make this dev a controlling tty s f* Writes complete as `Synchronised I/O data integrity completion' s f* Writes complete as `Synchronised I/O file integrity completion' su ]* Reads complete as writes (depending on O_SYNC/O_DSYNC) sa b* Windows only: allow the file to be deleted while still open sM * Set the close-on-exec flag on the descriptor returned by {!openfile}. See {!set_close_on_exec} for more information. s9 c* Clear the close-on-exec flag. This is currently the default. s%<* The flags to {!openfile}. s o* The type of file access rights, e.g. [0o640] is read and write for user, read for group, none for others qǠ * 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. q,;* Close a file descriptor. p䠠 /* Flush file buffers to disk. @since 4.12 p * [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. p E* Same as {!read}, but read the data into a bigarray. @since 5.2 o7 ** [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. n F* Same as {!write}, but take the data from a bigarray. @since 5.2 mҠ * Same as {!write}, but attempts to write only once. Thus, if an error occurs, [single_write] guarantees that no data has been written. mE d* Same as {!write}, but take the data from a string instead of a byte sequence. @since 4.02 l k* Same as {!single_write}, but take the data from a string instead of a byte sequence. @since 4.02 l+ M* Same as {!single_write}, but take the data from a bigarray. @since 5.2 kS 9* {1 Interfacing with the standard input/output library} k8 * 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. j * 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. j ;* Return the descriptor corresponding to an input channel. jm <* Return the descriptor corresponding to an output channel. j%=* {1 Seeking and truncating} j <* indicates positions relative to the beginning of the file i蠠 7* indicates positions relative to the current position iԠ 6* indicates positions relative to the end of the file i "* Positioning modes for {!lseek}. i x* Set the current position for a file descriptor, and return the resulting offset (from the beginning of the file). h頠 .* Truncates the named file to the given size. h Q* Truncates the file corresponding to the given descriptor to the given size. h+2* {1 File status} h/* Regular file g,* Directory gڠ3* Character device gƠ/* Block device g0* Symbolic link g-* Named pipe g)* Socket gv0* Device number f/* Inode number f3* Kind of the file f0* Access rights fo2* Number of links fX7* User id of the owner fA?* Group ID of the file's group f*>* Device ID (if special file) f0* Size in bytes e3* Last access time e堠9* Last modification time eΠ:* Last status change time e 1* The information returned by the {!stat} calls. e -* Return the information for the named file. cޠ k* Same as {!stat}, but in case the file is a symbolic link, return the information for the link itself. c O* Return the information for the file associated with the given descriptor. cN k* Return [true] if the given file descriptor refers to a terminal or console window, [false] otherwise. c %* {1 File operations on large files} b렠/* See [lseek]. bt2* See [truncate]. b3* See [ftruncate]. a0* Device number a/* Inode number ao3* Kind of the file aX0* Access rights aA2* Number of links a*7* User id of the owner a?* Group ID of the file's group `>* Device ID (if special file) `堠0* Size in bytes `Π3* Last access time `9* Last modification time `:* Last status change time ` * 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]. ^B * {1 Mapping files into memory} ^1? thwart tools/sync_stdlib_docs `cScZ`cSc}@ * 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 \۠?* {1 Operations on file names} \ * 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}} \ ]* [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]. \#? thwart tools/sync_stdlib_docs oUohoUo@ 9* [link ?follow ~src ~dst] creates a hard link named [dst] to the file named [src]. @param follow indicates whether a [src] symlink is followed or a hardlink to [src] itself will be created. On {e Unix} systems this is done using the [linkat(2)] function. If [?follow] is not provided, then the [link(2)] function is used whose behaviour is OS-dependent, but more widely available. @raise ENOSYS On {e Unix} if [~follow:_] is requested, but linkat is unavailable. @raise ENOSYS On {e Windows} if [~follow:false] is requested. [ * [realpath p] is an absolute pathname for [p] obtained by resolving all extra [/] characters, relative path segments and symbolic links. @since 4.13 [d %* {1 File permissions and ownership} [I2* Read permission ['3* Write permission [7* Execution permission Z.* File exists Z렠 * Flags for the {!access} call. Z֠ ,* Change the permissions of the named file. Z T* Change the permissions of an opened file. @raise Invalid_argument on Windows Y `* Change the owner uid and owner gid of the named file. @raise Invalid_argument on Windows YB `* Change the owner uid and owner gid of an opened file. @raise Invalid_argument on Windows X̠ w* Set the process's file mode creation mask, and return the previous mask. @raise Invalid_argument on Windows X * 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. X %* {1 Operations on file descriptors} W? thwart tools/sync_stdlib_docs x'x;x'x^@ * 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. W? thwart tools/sync_stdlib_docs y:yOy:yr@ * [dup2 ~src ~dst] duplicates [src] to [dst], closing [dst] if already opened. See {!set_close_on_exec} for documentation on the [cloexec] optional argument. W4 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]. V젠 R* Clear the ``non-blocking'' flag on the given descriptor. See {!set_nonblock}.V |* 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. V\ X* Clear the ``close-on-exec'' flag on the given descriptor. See {!set_close_on_exec}.V2* {1 Directories} U @* Create a directory with the given permissions (see {!umask}). U=* Remove an empty directory. U_ (* Change the process working directory. U 4* Return the name of the current working directory. TϠ M* Change the process root directory. @raise Invalid_argument on Windows T 3* The type of descriptors over opened directories. TY #* Open a descriptor on a directory S n* Return the next entry in a directory. @raise End_of_file when the end of the directory has been reached. S >* Reposition the descriptor to the beginning of the directory Sd * Close a directory descriptor. S=* {1 Pipes and redirections} S? thwart tools/sync_stdlib_docs (d)d@ * 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. R h* Create a named pipe with the given permissions (see {!umask}). @raise Invalid_argument on Windows R8 4* {1 High-level process and redirection management} R 0* [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. Qt * [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. P ~* 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}. PP * 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}. P * 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}. O * Similar to {!open_process}, but the second argument specifies the environment passed to the command. The result is a triple of channels connected respectively to the standard output, standard input, and standard error of the command. If the command does not need to be run through the shell, {!open_process_args_full} can be used instead of {!open_process_full}. O * [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 N p* Same as {!open_process_args}, but redirects only the standard output of the new process. @since 4.08 N o* Same as {!open_process_args}, but redirects only the standard input of the new process. @since 4.08 M * 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 L * 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.12 L * 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.12 Li * Return the pid of a process opened via {!open_process_args} or the pid of the shell opened via {!open_process_args}. @since 4.12 L * 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.12 K * Close channels opened by {!open_process_in}, wait for the associated command to terminate, and return its termination status. KL * Close channels opened by {!open_process_out}, wait for the associated command to terminate, and return its termination status. K * Close channels opened by {!open_process}, wait for the associated command to terminate, and return its termination status. J * Close channels opened by {!open_process_full}, wait for the associated command to terminate, and return its termination status. J/5* {1 Symbolic links} J? thwart tools/sync_stdlib_docs pq@ * [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. I 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 Ib (* Read the contents of a symbolic link. I.* {1 Polling} H -* 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. G.* {1 Locking} Gܠ2* Unlock a region G 9* Lock a region for writing, and block if already locked G 7* Lock a region for writing, or fail if already locked G (* Test a region for other process locks G~ 9* Lock a region for reading, and block if already locked Gj 7* Lock a region for reading, or fail if already locked GV9* Commands for {!lockf}. GA 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. FI ~* {1 Signals} Note: installation of signal handlers is performed via the functions {!Sys.signal} and {!Sys.set_signal}. F. "* [kill ~pid ~signal] sends signal number [signal] to the process with id [pid]. On Windows: only the {!Sys.sigkill} signal is emulated, causing the receiving process to exit with code [ERROR_PROCESS_ABORTED] (1067). Before OCaml 5.5, the receiving process exited with code 0. EР * [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) Dޠ * Return the set of blocked signals that are currently pending. @raise Invalid_argument on Windows (no inter-process signals on Windows) D~ * [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) D * Wait until a non-ignored, non-blocked signal is delivered. @raise Invalid_argument on Windows (no inter-process signals on Windows) C֠ * [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) Cm5* {1 Time functions} CR<* User time for the process C->* System time for the process C '* User time for the children processes B )* System time for the children processes B蠠 0* The execution times (CPU times) of a process. BҠ0* Seconds 0..60 B0* Minutes 0..59 A.* Hours 0..23 A㠠5* Day of month 1..31 A̠6* Month of year 0..11 A.* Year - 1900 A<* Day of week (Sunday is 0) A5* Day of year 0..365 Ap "* Daylight time savings in effect AY :* The type representing wallclock time and calendar date. AC K* Return the current time since 00:00:00 GMT, Jan. 1, 1970, in seconds. ?נ =* Same as {!time}, but with resolution better than 1 second. ? * 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. ?G * 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}. > * 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. > h* Schedule a [SIGALRM] signal after the given number of seconds. @raise Invalid_argument on Windows >U 2* Stop execution for the given number of seconds. > ~* Stop execution for the given number of seconds. Like [sleep], but fractions of seconds are supported. @since 4.12 =Š * Return the execution times of the process. On Windows: partially implemented, will not report timings for child processes. =} * Set the last access time (second arg) and last modification time (third arg) for a file. Times are expressed in seconds from 00:00:00 GMT, Jan. 1, 1970. If both times are [0.0], the access and last modification times are both set to the current time. = Q* decrements in real time, and sends the signal [SIGALRM] when expired.<ڠ T* decrements in process virtual time, and sends [SIGVTALRM] when expired. <Ơ * (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. < &* The three kinds of interval timers. <)* Period <=* Current value of the timer < 6* The type describing the status of an interval timer ; `* Return the current status of the given interval timer. @raise Invalid_argument on Windows ;N * [setitimer t s] sets the interval timer [t] and returns its previous status. The [s] argument is interpreted as follows: [s.it_value], if nonzero, is the time to the next timer expiration; [s.it_interval], if nonzero, specifies a value to be used in reloading [it_value] when the timer expires. Setting [s.it_value] to zero disables the timer. Setting [s.it_interval] to zero causes the timer to be disabled after its next expiration. @raise Invalid_argument on Windows :8* {1 User id, group id} :נ \* Return the user id of the user executing the process. On Windows: always returns [1]. : a* Return the effective user id under which the process runs. On Windows: always returns [1]. :T e* Set the real user id and effective user id for the process. @raise Invalid_argument on Windows : ]* Return the group id of the user executing the process. On Windows: always returns [1]. 9Ġ b* Return the effective group id under which the process runs. On Windows: always returns [1]. 9| g* Set the real group id and effective group id for the process. @raise Invalid_argument on Windows 94 x* Return the list of groups to which the user executing the process belongs. On Windows: always returns [[|1|]]. 8ݠ * [setgroups groups] sets the supplementary group IDs for the calling process. Appropriate privileges are required. @raise Invalid_argument on Windows 8 * [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 8* 1* Structure of entries in the [passwd] database. 7 1* Structure of entries in the [groups] database. 6 ;* Return the login name of the user executing the process. 5 t* Find an entry in [passwd] with the given name. @raise Not_found if no such entry exists, or always on Windows. 5 t* Find an entry in [group] with the given name. @raise Not_found if no such entry exists, or always on Windows. 5_ x* Find an entry in [passwd] with the given user id. @raise Not_found if no such entry exists, or always on Windows. 5 x* Find an entry in [group] with the given group id. @raise Not_found if no such entry exists, or always on Windows. 4Ϡ9* {1 Internet addresses} 4 +* The abstract type of Internet addresses. 4 d* Conversion from the printable representation of an Internet address to its internal representation. The argument string consists of 4 numbers separated by periods ([XXX.YYY.ZZZ.TTT]) for IPv4 addresses, and up to 8 numbers separated by colons for IPv6 addresses. @raise Failure when given a string that does not match these formats. 4. * Return the printable representation of the given Internet address. See {!inet_addr_of_string} for a description of the printable representation. 3栠 * A special IPv4 address, for use only with [bind], representing all the Internet addresses that the host machine possesses. 3 F* A special IPv4 address representing the host machine ([127.0.0.1]). 3~ * A special IPv6 address, for use only with [bind], representing all the Internet addresses that the host machine possesses. 3J @* A special IPv6 address representing the host machine ([::1]). 3 D* Whether the given [inet_addr] is an IPv6 address. @since 4.12 2Π.* {1 Sockets} 2.* Unix domain 29* Internet domain (IPv4) 2}9* Internet domain (IPv6) 2i * 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. 2T0* Stream socket 1ؠ2* Datagram socket 1Ġ-* Raw socket 1;* Sequenced packets socket 1 * 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. 1!*DeDi@  * 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. 0ܠ? thwart tools/sync_stdlib_docs @ * 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. 0 B* Return the socket domain adequate for the given socket address. /? thwart tools/sync_stdlib_docs @ * Create a pair of unnamed sockets, connected together. See {!set_close_on_exec} for documentation on the [cloexec] optional argument. /? thwart tools/sync_stdlib_docs @ * Accept connections on the given socket. The returned descriptor is a socket connected to the client; the returned address is the address of the connecting client. See {!set_close_on_exec} for documentation on the [cloexec] optional argument. .?* Bind a socket to an address. .@ "* Connect a socket to an address. -ᠠ x* Set up a socket for receiving connection requests. The integer argument is the maximal number of pending requests. -6* Close for receiving -U4* Close for sending -A-* Close both -- '* The type of commands for [shutdown]. - * Shutdown a socket connection. [SHUTDOWN_SEND] as second argument causes reads on the other end of the connection to return an end-of-file condition. [SHUTDOWN_RECEIVE] causes writes on the other end of the connection to return a closed pipe condition ([SIGPIPE] signal). ,h ** Return the address of the given socket. , @* Return the address of the host connected to the given socket. +ؠ!*#@ =* The flags for {!recv}, {!recvfrom}, {!send} and {!sendto}. + (* Receive data from a connected socket. * +* Receive data from an unconnected socket. )堠 %* Send data over a connected socket. )2 b* Same as [send], but take the data from a string instead of a byte sequence. @since 4.02 ( (* Send data over an unconnected socket. ' d* Same as [sendto], but take the data from a string instead of a byte sequence. @since 4.02 &5* {1 Socket options} &Ӡ?* Record debugging information & '* Permit sending of broadcast messages & ** Allow reuse of local addresses for bind &9* Keep connection active &u )* Bypass the standard routing algorithms &a !* Leave out-of-band data in line &M -* Report whether socket listening is enabled &9 .* Control the Nagle algorithm for TCP sockets &% 3* Forbid binding an IPv6 socket to an IPv4 address & 9* Allow reuse of address and port bindings. @since 4.12. % * The socket options that can be consulted with {!getsockopt} and modified with {!setsockopt}. These options have a boolean ([true]/[false]) value. %蠠6* Size of send buffer $:* Size of received buffer $ᠠ 0* Deprecated. Use {!getsockopt_error} instead. $9* Report the socket type $ :* Minimum number of bytes to process for input operations $ ;* Minimum number of bytes to process for output operations $x * The socket options that can be consulted with {!getsockopt_int} and modified with {!setsockopt_int}. These options have an integer value. $c * Whether to linger on closed connections that have data present, and for how long (in seconds) # * The socket options that can be consulted with {!getsockopt_optint} and modified with {!setsockopt_optint}. These options have a value of type [int option], with [None] meaning ``disabled''. #?* Timeout for input operations #5 * Timeout for output operations #! * The socket options that can be consulted with {!getsockopt_float} and modified with {!setsockopt_float}. These options have a floating-point value representing a time in seconds. The value 0 means infinite timeout. # O* Return the current status of a boolean-valued option in the given socket. "p <* Set or clear a boolean-valued option in the given socket. " =* Same as {!getsockopt} for an integer-valued socket option. ! =* Same as {!setsockopt} for an integer-valued socket option. !4 P* Same as {!getsockopt} for a socket option whose value is an [int option].  ɠ P* Same as {!setsockopt} for a socket option whose value is an [int option].  J X* Same as {!getsockopt} for a socket option whose value is a floating-point number.  X* Same as {!setsockopt} for a socket option whose value is a floating-point number. ~ Q* Return the error condition associated with the given socket, and clear it. ' .* {1 High-level network connection functions}  /* Connect to a server at the given address. Return a pair of buffered channels connected to the server. Remember to call {!Stdlib.flush} on the output channel at the right times to ensure correct synchronization. The two channels returned by [open_connection] share a descriptor to a socket. Therefore, when the connection is over, you should call {!Stdlib.close_out} on the output channel, which will also close the underlying socket. Do not call {!Stdlib.close_in} on the input channel; it will be collected by the GC eventually.  N* ``Shut down'' a connection established with {!open_connection}; that is, transmit an end-of-file condition to the server reading on the other side of the connection. This does not close the socket and the channels used by the connection. See {!Unix.open_connection} for how to close them once the connection is over. o * Establish a server on the given address. The function given as first argument is called for each connection with two buffered channels connected to the client. A new process is created for each connection. The function {!establish_server} never returns normally. The two channels given to the function share a descriptor to a socket. The function does not need to close the channels, since this occurs automatically when the function returns. If the function prefers explicit closing, it should close the output channel using {!Stdlib.close_out} and leave the input channel unclosed, for reasons explained in {!Unix.in_channel_of_descr}. @raise Invalid_argument on Windows. Use threads instead. 砠 "* {1 Host and protocol databases} ̠ 0* Structure of entries in the [hosts] database. n 4* Structure of entries in the [protocols] database.  3* Structure of entries in the [services] database. ܠ %* Return the name of the local host. $ ^* Find an entry in [hosts] with the given name. @raise Not_found if no such entry exists. ܠ a* Find an entry in [hosts] with the given address. @raise Not_found if no such entry exists.  b* Find an entry in [protocols] with the given name. @raise Not_found if no such entry exists. L m* Find an entry in [protocols] with the given protocol number. @raise Not_found if no such entry exists.  a* Find an entry in [services] with the given name. @raise Not_found if no such entry exists.  k* Find an entry in [services] with the given service number. @raise Not_found if no such entry exists. F0* Socket domain .* Socket type 9* Socket protocol number 蠠** Address Ѡ7* Canonical host name  2* Address information returned by {!getaddrinfo}.  !* Impose the given socket domain à?* Impose the given socket type =* Impose the given protocol  c* Do not call name resolver, expect numeric IP address } Z* Fill the [ai_canonname] field of the result i b* Set address to ``any'' address for use with {!bind} U=* Options to {!getaddrinfo}. @ * [getaddrinfo host service opts] returns a list of {!addr_info} records describing socket parameters and addresses suitable for communicating with the given host and service. The empty list is returned if the host or service names are unknown, or the constraints expressed in [opts] cannot be satisfied. [host] is either a host name or the string representation of an IP address. [host] can be given as the empty string; in this case, the ``any'' address or the ``loopback'' address are used, depending whether [opts] contains [AI_PASSIVE]. [service] is either a service name or the string representation of a port number. [service] can be given as the empty string; in this case, the port field of the returned addresses is set to 0. [opts] is a possibly empty list of options that allows the caller to force a particular socket domain (e.g. IPv6 only or IPv4 only) or a particular socket type (e.g. TCP only or UDP only). =* Name or IP address of host ࠠ !* Name of service or port number ɠ ;* Host and service information returned by {!getnameinfo}.  "* Do not qualify local host names - #* Always return host as IP address  )* Fail if host name cannot be determined  '* Always return service as port number  \* Consider the service as UDP-based instead of the default TCP ݠ=* Options to {!getnameinfo}. Ƞ * [getnameinfo addr opts] returns the host name and service name corresponding to the socket address [addr]. [opts] is a possibly empty list of options that governs how these names are obtained. @raise Not_found if an error occurs. ꠠ9* {1 Terminal interface} Ϡ * The following functions implement the POSIX standard terminal interface. They provide control over asynchronous communication ports and pseudo-terminals. Refer to the [termios] man page for a complete description. - input modes 6&f&j6&f&{@>* Ignore the break condition.  '* Signal interrupt on break condition.  (* Ignore characters with parity errors. t6* Mark parity errors. ] * Enable parity check on input. F %* Strip 8th bit on input characters. /9* Map NL to CR on input. 6* Ignore CR on input. 9* Map CR to NL on input. ꠠ ** Recognize XON/XOFF characters on input. Ӡ -* Emit XON/XOFF chars to control input flow. / Output modes: B)d)hB)d){@<* Enable output processing. 0 Control modes: D))D))@ .* Output baud rate (0 means close connection).3* Input baud rate.  &* Number of bits per character (5-8). l=* Number of stop bits (1-2). U8* Reception is enabled. > ** Enable parity generation and detection. ' &* Specify odd parity instead of even. 9* Hang up on last close. =* Ignore modem status lines. ⠠. Local modes: N,1,5N,1,G@ '* 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). u )* Echo KILL (to erase the current line). ^ %* Echo NL even if c_echo is not set. G5 Control characters: 4W.{.5W.{.@ (* Interrupt character (usually ctrl-C). 6 #* Quit character (usually ctrl-\).  +* Erase character (usually DEL or ctrl-H).  (* Kill line character (usually ctrl-U).  ** End-of-file character (usually ctrl-D). ڠ .* Alternate end-of-line char. (usually none). à n* Minimum number of characters to read before the read request is satisfied.  %* Maximum read wait (in 0.1s units).  $* Start character (usually ctrl-Q). ~ #* Stop character (usually ctrl-S). g x* Return the status of the terminal referred to by the given file descriptor. @raise Invalid_argument on Windows  * Set the status of the terminal referred to by the given file descriptor. The second argument indicates when the status change takes place: immediately ([TCSANOW]), when all pending output has been transmitted ([TCSADRAIN]), or after flushing all input that has been received but not read ([TCSAFLUSH]). [TCSADRAIN] is recommended when changing the output parameters; [TCSAFLUSH], when changing the input parameters. @raise Invalid_argument on Windows  * Send a break condition on the given file descriptor. The second argument is the duration of the break, in 0.1s units; 0 means standard duration (0.25s). @raise Invalid_argument on Windows  Y ~* 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  O 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 ~ * Put the calling process in a new session and detach it from its controlling terminal. @raise Invalid_argument on Windows 6@K0../../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#-pp .gawk -f ../../stdlib/expand_module_aliases.awk.unixLabels.mli c/home/teraram/ci/builds/workspace/parallel-build/flambda/false/label/ocaml-manycores/otherlibs/unix @@0ƭ,'ȠkQ 3@@@8CamlinternalFormatBasics0|.e1R$|o&Stdlib0t0VoS%{<F:0Stdlib__Bigarray081}wJf֠/Stdlib__Complex0e<9r@fǠ+Stdlib__Sys0b'8=OIn0^FήfYv0UzbO L~@0UzbO L~A]]~dcB@  y0w۰3@@@--h`@ {5ِ6WW@+AD˓@@,n@u 77@$$AސBSS@ ܓ °jKhx̓w@Y,Yh@3R3%k%i@c`T`kiðo@np@( 'NUVE_ ^@yBw#@/0@4&3԰@ĐAEDy9w@ (;'w@&^%&&F@@45Ihhİʰqq@ & y&T'? >eTded?no@[ڐ\/@k1i}~%@&&$qrl@@(1'y@//Y@@ ! ONfNmm@8;;̰==T@((vH@YCY@44)ASA@88߰llh@&&gV@IJa\\`B`@BC4@KȐLϰhhŰg@ݓ@ٕǓK@//@00FF FF,@}7EDpF@@!L!+Ő,lEUDRllE@S>S˰Zא[@&հKKf&d@mlmmzx@A>>kQi@55W@8?@ Z 3ߐ2@tXt@@ed@Օp)H(f,-hK{@5˓@tǰ.yU@@<<@@@@@OmS &&Vhh@Օ@@@PgP@$%K00zE"F.Ó@-:H9@@ R 8@8ɰ ?ZsZ@@_pBp~@BB@G8F@7\V@NObcZkj@''99>kj@ L k°`X_@    @ A5X4kjL@@@OO@nӐo:@uVv"@<@;ӕ;p@@  nڰr@+>?8o“o@''@st@::QA$AmmT@@22ړ@ ޓ U<Ux}"}^@9ܐ:@RR@p D)De@!!XːY >@@ەѰ;;z`z`(f)gw@BB@|w wE@ @]@UVZZP@̕{X{@aa?+@3d>ܐ?@< ;@G97FgEg@*t+/FEy{)_@Õzy_@TܐU2c@1\*\ffP@c@uz=y@ZZ=@@AfArɐsJ@4ߒ5!YؒY^>^z@JƐK#ww@#G#[[@@@'$' 77@5 4԰FFm%kvِwZ@dd@;O:ddO@#Đ$7@LL!N_N}&}b@ڐ=\@ie@5ϒ6L<=@>">^@HHpq5G@060r3R3@55';@{{@  @  lKj 3@g̕f@zwyd@wiJ/J@]#h?hȓv@KJg(e@@gegʕf@LM] @lk0V@%%rDsDMLQQB@!v!-,-d99ް@ Y!Y]yy:@}ِ~@//_!_@@||ݰ@LL{y:4@%%@@456@^TT@$Ґ%1]]@W@MhLzy@( @FE۰aaK~@G#FRR},}h@@ \@  >9<9x@@7[7 @7ΐ8 J@JqJqO@*N+UAfA"HI nnirzr@8А8WXb@ z Ͱ,R-FEHHeej@33m?'?c`s`@""B$B@@00ݰ221@csc@`i@5۰+ *=}}@iMiss԰{vzQ@*)ij#+@M@@<=nihaٓ@@7s@+, +6LLq@Y@ C & 7@@P@@