baseunix.xml 113 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229
  1. <?xml version="1.0" encoding="ISO8859-1"?>
  2. <fpdoc-descriptions>
  3. <package name="rtl">
  4. <!--
  5. ====================================================================
  6. BaseUnix
  7. ====================================================================
  8. -->
  9. <module name="BaseUnix">
  10. <short>Basic unix functionality</short>
  11. <descr>
  12. <p>
  13. The <file>BaseUnix</file> unit was implemented by Marco Van de Voort.
  14. It contains basic unix functionality. It supersedes the Linux unit of
  15. version 1.0.X of the compiler, but does not implement all functionality of
  16. the linux unit.
  17. </p>
  18. <p>
  19. People that have code which heavily uses the old <file>Linux</file> unit,
  20. can simply change <file>linux</file> by <file>oldlinux</file> in the
  21. <var>uses</var> clause of their projects, but they should really consider
  22. moving to the <file>Unix</file> and <file>BaseUnix</file> units.
  23. </p>
  24. <p>
  25. For porting FPC to new unix-like platforms, it should be sufficient to
  26. implement the functionality in this unit for the new platform.
  27. </p>
  28. </descr>
  29. <!-- unresolved type reference Visibility: default -->
  30. <element name="UnixType">
  31. <short>Basic unix types.</short>
  32. </element>
  33. <!-- alias type Visibility: default -->
  34. <element name="cInt8">
  35. <short>C type: 8 bits sized, signed integer.</short>
  36. </element>
  37. <!-- alias type Visibility: default -->
  38. <element name="cUInt8">
  39. <short>C type: 8 bits sized, unsigned integer.</short>
  40. </element>
  41. <!-- alias type Visibility: default -->
  42. <element name="cUInt16">
  43. <short>C type: 16 bits sized, unsigned integer.</short>
  44. </element>
  45. <!-- alias type Visibility: default -->
  46. <element name="cInt16">
  47. <short>C type: 16 bits sized, signed integer.</short>
  48. </element>
  49. <!-- alias type Visibility: default -->
  50. <element name="cInt32">
  51. <short>C type: 32 bits sized, signed integer.</short>
  52. </element>
  53. <!-- alias type Visibility: default -->
  54. <element name="cUInt32">
  55. <short>C type: 32 bits sized, unsigned integer.</short>
  56. </element>
  57. <!-- alias type Visibility: default -->
  58. <element name="cInt64">
  59. <short>C type: 64 bits sized, signed integer.</short>
  60. </element>
  61. <!-- alias type Visibility: default -->
  62. <element name="cUInt64">
  63. <short>C type: 64 bits sized, unsigned integer.</short>
  64. </element>
  65. <!-- alias type Visibility: default -->
  66. <element name="cuchar">
  67. <short>C type: unsigned character</short>
  68. </element>
  69. <!-- alias type Visibility: default -->
  70. <element name="cInt">
  71. <short>C type: integer (natural size)</short>
  72. </element>
  73. <!-- alias type Visibility: default -->
  74. <element name="cUInt">
  75. <short>C type: unsigned integer (natural size)</short>
  76. </element>
  77. <!-- alias type Visibility: default -->
  78. <element name="cLong">
  79. <short>C type: long signed integer (double sized)</short>
  80. </element>
  81. <!-- alias type Visibility: default -->
  82. <element name="cuLong">
  83. <short>C type: long unsigned integer (double sized)</short>
  84. </element>
  85. <!-- alias type Visibility: default -->
  86. <element name="cshort">
  87. <short>C type: short signed integer (half sized)</short>
  88. </element>
  89. <!-- alias type Visibility: default -->
  90. <element name="cushort">
  91. <short>C type: short unsigned integer (half sized)</short>
  92. </element>
  93. <!-- alias type Visibility: default -->
  94. <element name="pcInt">
  95. <short>Pointer to <link id="cInt"/> type.</short>
  96. </element>
  97. <!-- alias type Visibility: default -->
  98. <element name="pcUInt">
  99. <short>Pointer to <link id="cUInt"/> type.</short>
  100. </element>
  101. <!-- alias type Visibility: default -->
  102. <element name="pcLong">
  103. <short>Pointer to <link id="cLong"/> type.</short>
  104. </element>
  105. <!-- alias type Visibility: default -->
  106. <element name="pculong">
  107. <short>Pointer to <link id="cuLong"/> type.</short>
  108. </element>
  109. <!-- alias type Visibility: default -->
  110. <element name="pcshort">
  111. <short>Pointer to <link id="cShort"/> type.</short>
  112. </element>
  113. <!-- alias type Visibility: default -->
  114. <element name="pcushort">
  115. <short>Pointer to <link id="cuShort"/> type.</short>
  116. </element>
  117. <!-- alias type Visibility: default -->
  118. <element name="dev_t">
  119. <short>Device descriptor type.</short>
  120. </element>
  121. <!-- alias type Visibility: default -->
  122. <element name="TDev">
  123. <short>Alias for <link id="dev_t"/> type.</short>
  124. </element>
  125. <!-- alias type Visibility: default -->
  126. <element name="pDev">
  127. <short>Pointer to <link id="TDev"/> type.</short>
  128. </element>
  129. <!-- alias type Visibility: default -->
  130. <element name="gid_t">
  131. <short>Group ID type.</short>
  132. </element>
  133. <!-- alias type Visibility: default -->
  134. <element name="TGid">
  135. <short>Alias for <link id="gid_t"/> type.</short>
  136. </element>
  137. <!-- alias type Visibility: default -->
  138. <element name="pGid">
  139. <short>Pointer to <link id="TGid"/> type.</short>
  140. </element>
  141. <!-- alias type Visibility: default -->
  142. <element name="ino_t">
  143. <short>Inode type.</short>
  144. </element>
  145. <!-- alias type Visibility: default -->
  146. <element name="TIno">
  147. <short>Alias for <link id="ino_t"/> type.</short>
  148. </element>
  149. <!-- alias type Visibility: default -->
  150. <element name="pIno">
  151. <short>Pointer to <link id="TIno"/> type.</short>
  152. </element>
  153. <!-- alias type Visibility: default -->
  154. <element name="mode_t">
  155. <short>Inode mode type.</short>
  156. </element>
  157. <!-- alias type Visibility: default -->
  158. <element name="TMode">
  159. <short>Alias for <link id="mode_t"/> type.</short>
  160. </element>
  161. <!-- alias type Visibility: default -->
  162. <element name="pMode">
  163. <short>Pointer to <link id="TMode"/> type.</short>
  164. </element>
  165. <!-- alias type Visibility: default -->
  166. <element name="nlink_t">
  167. <short>Number of links type.</short>
  168. </element>
  169. <!-- alias type Visibility: default -->
  170. <element name="TnLink">
  171. <short>Alias for <link id="nlink_t"/> type.</short>
  172. </element>
  173. <!-- alias type Visibility: default -->
  174. <element name="pnLink">
  175. <short>Pointer to <link id="TnLink"/> type.</short>
  176. </element>
  177. <!-- alias type Visibility: default -->
  178. <element name="off_t">
  179. <short>Offset type.</short>
  180. </element>
  181. <!-- alias type Visibility: default -->
  182. <element name="TOff">
  183. <short>Alias for <link id="off_t"/> type.</short>
  184. </element>
  185. <!-- alias type Visibility: default -->
  186. <element name="pOff">
  187. <short>Pointer to <link id="TOff"/> type.</short>
  188. </element>
  189. <!-- alias type Visibility: default -->
  190. <element name="pid_t">
  191. <short>Process ID type.</short>
  192. </element>
  193. <!-- alias type Visibility: default -->
  194. <element name="TPid">
  195. <short>Alias for <link id="pid_t"/> type.</short>
  196. </element>
  197. <!-- alias type Visibility: default -->
  198. <element name="pPid">
  199. <short>Pointer to <link id="TPid"/> type.</short>
  200. </element>
  201. <!-- alias type Visibility: default -->
  202. <element name="size_t">
  203. <short>Size specification type.</short>
  204. </element>
  205. <!-- alias type Visibility: default -->
  206. <element name="TSize">
  207. <short>Alias for <link id="size_t"/> type</short>
  208. </element>
  209. <!-- alias type Visibility: default -->
  210. <element name="pSize">
  211. <short>Pointer to <link id="TSize"/> type.</short>
  212. </element>
  213. <!-- alias type Visibility: default -->
  214. <element name="ssize_t">
  215. <short>Small size type.</short>
  216. </element>
  217. <!-- alias type Visibility: default -->
  218. <element name="TsSize">
  219. <short>Alias for <link id="ssize_t"/> type</short>
  220. </element>
  221. <!-- alias type Visibility: default -->
  222. <element name="psSize">
  223. <short>Pointer to <link id="TsSize"/> type</short>
  224. </element>
  225. <!-- alias type Visibility: default -->
  226. <element name="uid_t">
  227. <short>User ID type</short>
  228. </element>
  229. <!-- alias type Visibility: default -->
  230. <element name="TUid">
  231. <short>Alias for <link id="uid_t"/> type.</short>
  232. </element>
  233. <!-- alias type Visibility: default -->
  234. <element name="pUid">
  235. <short>Pointer to <link id="TUid"/> type.</short>
  236. </element>
  237. <!-- alias type Visibility: default -->
  238. <element name="clock_t">
  239. <short>Clock ticks type</short>
  240. </element>
  241. <!-- alias type Visibility: default -->
  242. <element name="TClock">
  243. <short>Alias for <link id="clock_t"/> type.</short>
  244. </element>
  245. <!-- alias type Visibility: default -->
  246. <element name="pClock">
  247. <short>Pointer to <link id="TClock"/> type.</short>
  248. </element>
  249. <!-- alias type Visibility: default -->
  250. <element name="time_t">
  251. <short>Time span type</short>
  252. </element>
  253. <!-- alias type Visibility: default -->
  254. <element name="TTime">
  255. <short>Alias for <link id="TTime"/> type.</short>
  256. </element>
  257. <!-- alias type Visibility: default -->
  258. <element name="pTime">
  259. <short>Pointer to <link id="TTime"/> type.</short>
  260. </element>
  261. <!-- alias type Visibility: default -->
  262. <element name="ptime_t">
  263. <short>Pointer to <link id="time_t"/> type.</short>
  264. </element>
  265. <!-- alias type Visibility: default -->
  266. <element name="socklen_t">
  267. <short>Socket address length type.</short>
  268. </element>
  269. <!-- alias type Visibility: default -->
  270. <element name="TSocklen">
  271. <short>Alias for <link id="socklen_t"/> type.</short>
  272. </element>
  273. <!-- alias type Visibility: default -->
  274. <element name="pSocklen">
  275. <short>Pointer to <link id="TSockLen"/> type.</short>
  276. </element>
  277. <!-- alias type Visibility: default -->
  278. <element name="timeval">
  279. <short>Time specification type.</short>
  280. </element>
  281. <!-- alias type Visibility: default -->
  282. <element name="ptimeval">
  283. <short>Pointer to <link id="timeval"/> type.</short>
  284. </element>
  285. <!-- alias type Visibility: default -->
  286. <element name="TTimeVal">
  287. <short>Alias for <link id="timeval"/> type.</short>
  288. </element>
  289. <!-- alias type Visibility: default -->
  290. <element name="timespec">
  291. <short>Short time specification type.</short>
  292. </element>
  293. <!-- alias type Visibility: default -->
  294. <element name="ptimespec">
  295. <short>Pointer to <link id="timespec"/> type.</short>
  296. </element>
  297. <!-- alias type Visibility: default -->
  298. <element name="Ttimespec">
  299. <short>Alias for <link id="TimeSpec"/> type.</short>
  300. </element>
  301. <!-- alias type Visibility: default -->
  302. <element name="pthread_mutex_t">
  303. <short>Thread mutex type.</short>
  304. </element>
  305. <!-- alias type Visibility: default -->
  306. <element name="pthread_cond_t">
  307. <short>Thread conditional variable type.</short>
  308. </element>
  309. <!-- alias type Visibility: default -->
  310. <element name="pthread_t">
  311. <short>Posix thread type.</short>
  312. </element>
  313. <!-- constant Visibility: default -->
  314. <element name="ARG_MAX">
  315. <short>Maximum number of arguments to a program.</short>
  316. </element>
  317. <!-- constant Visibility: default -->
  318. <element name="NAME_MAX">
  319. <short>Maximum filename length.</short>
  320. </element>
  321. <!-- constant Visibility: default -->
  322. <element name="PATH_MAX">
  323. <short>Maximum pathname length.</short>
  324. </element>
  325. <!-- constant Visibility: default -->
  326. <element name="SYS_NMLN">
  327. <short>Max system name length.</short>
  328. </element>
  329. <!-- constant Visibility: default -->
  330. <element name="SIG_MAXSIG">
  331. <short>Maximum system signal number.</short>
  332. </element>
  333. <!-- constant Visibility: default -->
  334. <element name="ESysEPERM">
  335. <short>System error: Operation not permitted.</short>
  336. </element>
  337. <!-- constant Visibility: default -->
  338. <element name="ESysENOENT">
  339. <short>System error: No such file or directory</short>
  340. </element>
  341. <!-- constant Visibility: default -->
  342. <element name="ESysESRCH">
  343. <short>System error: No such process</short>
  344. </element>
  345. <!-- constant Visibility: default -->
  346. <element name="ESysEINTR">
  347. <short>System error: Interrupted system call</short>
  348. </element>
  349. <!-- constant Visibility: default -->
  350. <element name="ESysEIO">
  351. <short>System error: I/O error</short>
  352. </element>
  353. <!-- constant Visibility: default -->
  354. <element name="ESysENXIO">
  355. <short>System error: No such device or address</short>
  356. </element>
  357. <!-- constant Visibility: default -->
  358. <element name="ESysE2BIG">
  359. <short>System error: Argument list too long</short>
  360. </element>
  361. <!-- constant Visibility: default -->
  362. <element name="ESysENOEXEC">
  363. <short>System error: Exec format error</short>
  364. </element>
  365. <!-- constant Visibility: default -->
  366. <element name="ESysEBADF">
  367. <short>System error: Bad file number</short>
  368. </element>
  369. <!-- constant Visibility: default -->
  370. <element name="ESysECHILD">
  371. <short>System error: No child processes</short>
  372. </element>
  373. <!-- constant Visibility: default -->
  374. <element name="ESysEAGAIN">
  375. <short>System error: Try again</short>
  376. </element>
  377. <!-- constant Visibility: default -->
  378. <element name="ESysENOMEM">
  379. <short>System error: Out of memory</short>
  380. </element>
  381. <!-- constant Visibility: default -->
  382. <element name="ESysEACCES">
  383. <short>System error: Permission denied</short>
  384. </element>
  385. <!-- constant Visibility: default -->
  386. <element name="ESysEFAULT">
  387. <short>System error: Bad address</short>
  388. </element>
  389. <!-- constant Visibility: default -->
  390. <element name="ESysENOTBLK">
  391. <short>System error: Block device required</short>
  392. </element>
  393. <!-- constant Visibility: default -->
  394. <element name="ESysEBUSY">
  395. <short>System error: Device or resource busy</short>
  396. </element>
  397. <!-- constant Visibility: default -->
  398. <element name="ESysEEXIST">
  399. <short>System error: File exists</short>
  400. </element>
  401. <!-- constant Visibility: default -->
  402. <element name="ESysEXDEV">
  403. <short>System error: Cross-device link</short>
  404. </element>
  405. <!-- constant Visibility: default -->
  406. <element name="ESysENODEV">
  407. <short>System error: No such device</short>
  408. </element>
  409. <!-- constant Visibility: default -->
  410. <element name="ESysENOTDIR">
  411. <short>System error: Not a directory</short>
  412. </element>
  413. <!-- constant Visibility: default -->
  414. <element name="ESysEISDIR">
  415. <short>System error: Is a directory</short>
  416. </element>
  417. <!-- constant Visibility: default -->
  418. <element name="ESysEINVAL">
  419. <short>System error: Invalid argument</short>
  420. </element>
  421. <!-- constant Visibility: default -->
  422. <element name="ESysENFILE">
  423. <short>System error: File table overflow</short>
  424. </element>
  425. <!-- constant Visibility: default -->
  426. <element name="ESysEMFILE">
  427. <short>System error: Too many open files</short>
  428. </element>
  429. <!-- constant Visibility: default -->
  430. <element name="ESysENOTTY">
  431. <short>System error: Not a typewriter</short>
  432. </element>
  433. <!-- constant Visibility: default -->
  434. <element name="ESysETXTBSY">
  435. <short>System error: Text (code segment) file busy</short>
  436. </element>
  437. <!-- constant Visibility: default -->
  438. <element name="ESysEFBIG">
  439. <short>System error: File too large</short>
  440. </element>
  441. <!-- constant Visibility: default -->
  442. <element name="ESysENOSPC">
  443. <short>System error: No space left on device</short>
  444. </element>
  445. <!-- constant Visibility: default -->
  446. <element name="ESysESPIPE">
  447. <short>System error: Illegal seek</short>
  448. </element>
  449. <!-- constant Visibility: default -->
  450. <element name="ESysEROFS">
  451. <short>System error: Read-only file system</short>
  452. </element>
  453. <!-- constant Visibility: default -->
  454. <element name="ESysEMLINK">
  455. <short>System error: Too many links</short>
  456. </element>
  457. <!-- constant Visibility: default -->
  458. <element name="ESysEPIPE">
  459. <short>System error: Broken pipe</short>
  460. </element>
  461. <!-- constant Visibility: default -->
  462. <element name="ESysEDOM">
  463. <short>System error: Math argument out of domain of func</short>
  464. </element>
  465. <!-- constant Visibility: default -->
  466. <element name="ESysERANGE">
  467. <short>System error: Math result not representable</short>
  468. </element>
  469. <!-- constant Visibility: default -->
  470. <element name="ESysEDEADLK">
  471. <short>System error: Resource deadlock would occur</short>
  472. </element>
  473. <!-- constant Visibility: default -->
  474. <element name="ESysENAMETOOLONG">
  475. <short>System error: File name too long</short>
  476. </element>
  477. <!-- constant Visibility: default -->
  478. <element name="ESysENOLCK">
  479. <short>System error: No record locks available</short>
  480. </element>
  481. <!-- constant Visibility: default -->
  482. <element name="ESysENOSYS">
  483. <short>System error: Function not implemented</short>
  484. </element>
  485. <!-- constant Visibility: default -->
  486. <element name="ESysENOTEMPTY">
  487. <short>System error: Directory not empty</short>
  488. </element>
  489. <!-- constant Visibility: default -->
  490. <element name="ESysELOOP">
  491. <short>System error: Too many symbolic links encountered</short>
  492. </element>
  493. <!-- constant Visibility: default -->
  494. <element name="ESysEWOULDBLOCK">
  495. <short>System error: Operation would block</short>
  496. </element>
  497. <!-- constant Visibility: default -->
  498. <element name="ESysENOMSG">
  499. <short>System error: No message of desired type</short>
  500. </element>
  501. <!-- constant Visibility: default -->
  502. <element name="ESysEIDRM">
  503. <short>System error: Identifier removed</short>
  504. </element>
  505. <!-- constant Visibility: default -->
  506. <element name="ESysECHRNG">
  507. <short>System error: Channel number out of range</short>
  508. </element>
  509. <!-- constant Visibility: default -->
  510. <element name="ESysEL2NSYNC">
  511. <short>System error: Level 2 not synchronized</short>
  512. </element>
  513. <!-- constant Visibility: default -->
  514. <element name="ESysEL3HLT">
  515. <short>System error: Level 3 halted</short>
  516. </element>
  517. <!-- constant Visibility: default -->
  518. <element name="ESysEL3RST">
  519. <short>System error: Level 3 reset</short>
  520. </element>
  521. <!-- constant Visibility: default -->
  522. <element name="ESysELNRNG">
  523. <short>System error: Link number out of range</short>
  524. </element>
  525. <!-- constant Visibility: default -->
  526. <element name="ESysEUNATCH">
  527. <short>System error: Protocol driver not attached</short>
  528. </element>
  529. <!-- constant Visibility: default -->
  530. <element name="ESysENOCSI">
  531. <short>System error: No CSI structure available</short>
  532. </element>
  533. <!-- constant Visibility: default -->
  534. <element name="ESysEL2HLT">
  535. <short>System error: Level 2 halted</short>
  536. </element>
  537. <!-- constant Visibility: default -->
  538. <element name="ESysEBADE">
  539. <short>System error: Invalid exchange</short>
  540. </element>
  541. <!-- constant Visibility: default -->
  542. <element name="ESysEBADR">
  543. <short>System error: Invalid request descriptor</short>
  544. </element>
  545. <!-- constant Visibility: default -->
  546. <element name="ESysEXFULL">
  547. <short>System error: Exchange full</short>
  548. </element>
  549. <!-- constant Visibility: default -->
  550. <element name="ESysENOANO">
  551. <short>System error: No anode</short>
  552. </element>
  553. <!-- constant Visibility: default -->
  554. <element name="ESysEBADRQC">
  555. <short>System error: Invalid request code</short>
  556. </element>
  557. <!-- constant Visibility: default -->
  558. <element name="ESysEBADSLT">
  559. <short>System error: Invalid slot</short>
  560. </element>
  561. <!-- constant Visibility: default -->
  562. <element name="ESysEDEADLOCK">
  563. <short>System error: File locking deadlock error</short>
  564. </element>
  565. <!-- constant Visibility: default -->
  566. <element name="ESysEBFONT">
  567. <short>System error: Bad font file format</short>
  568. </element>
  569. <!-- constant Visibility: default -->
  570. <element name="ESysENOSTR">
  571. <short>System error: Device not a stream</short>
  572. </element>
  573. <!-- constant Visibility: default -->
  574. <element name="ESysENODATA">
  575. <short>System error: No data available</short>
  576. </element>
  577. <!-- constant Visibility: default -->
  578. <element name="ESysETIME">
  579. <short>System error: Timer expired</short>
  580. </element>
  581. <!-- constant Visibility: default -->
  582. <element name="ESysENOSR">
  583. <short>System error: Out of streams resources</short>
  584. </element>
  585. <!-- constant Visibility: default -->
  586. <element name="ESysENONET">
  587. <short>System error: Machine is not on the network</short>
  588. </element>
  589. <!-- constant Visibility: default -->
  590. <element name="ESysENOPKG">
  591. <short>System error: Package not installed</short>
  592. </element>
  593. <!-- constant Visibility: default -->
  594. <element name="ESysEREMOTE">
  595. <short>System error: Object is remote</short>
  596. </element>
  597. <!-- constant Visibility: default -->
  598. <element name="ESysENOLINK">
  599. <short>System error: Link has been severed</short>
  600. </element>
  601. <!-- constant Visibility: default -->
  602. <element name="ESysEADV">
  603. <short>System error: Advertise error</short>
  604. </element>
  605. <!-- constant Visibility: default -->
  606. <element name="ESysESRMNT">
  607. <short>System error: Srmount error</short>
  608. </element>
  609. <!-- constant Visibility: default -->
  610. <element name="ESysECOMM">
  611. <short>System error: Communication error on send</short>
  612. </element>
  613. <!-- constant Visibility: default -->
  614. <element name="ESysEPROTO">
  615. <short>System error: Protocol error</short>
  616. </element>
  617. <!-- constant Visibility: default -->
  618. <element name="ESysEMULTIHOP">
  619. <short>System error: Multihop attempted</short>
  620. </element>
  621. <!-- constant Visibility: default -->
  622. <element name="ESysEDOTDOT">
  623. <short>System error: RFS specific error</short>
  624. </element>
  625. <!-- constant Visibility: default -->
  626. <element name="ESysEBADMSG">
  627. <short>System error: Not a data message</short>
  628. </element>
  629. <!-- constant Visibility: default -->
  630. <element name="ESysEOVERFLOW">
  631. <short>System error: Value too large for defined data type</short>
  632. </element>
  633. <!-- constant Visibility: default -->
  634. <element name="ESysENOTUNIQ">
  635. <short>System error: Name not unique on network</short>
  636. </element>
  637. <!-- constant Visibility: default -->
  638. <element name="ESysEBADFD">
  639. <short>System error: File descriptor in bad state</short>
  640. </element>
  641. <!-- constant Visibility: default -->
  642. <element name="ESysEREMCHG">
  643. <short>System error: Remote address changed</short>
  644. </element>
  645. <!-- constant Visibility: default -->
  646. <element name="ESysELIBACC">
  647. <short>System error: Can not access a needed shared library</short>
  648. </element>
  649. <!-- constant Visibility: default -->
  650. <element name="ESysELIBBAD">
  651. <short>System error: Accessing a corrupted shared library</short>
  652. </element>
  653. <!-- constant Visibility: default -->
  654. <element name="ESysELIBSCN">
  655. <short>System error: .lib section in a.out corrupted</short>
  656. </element>
  657. <!-- constant Visibility: default -->
  658. <element name="ESysELIBMAX">
  659. <short>System error: Attempting to link in too many shared libraries</short>
  660. </element>
  661. <!-- constant Visibility: default -->
  662. <element name="ESysELIBEXEC">
  663. <short>System error: Cannot exec a shared library directly</short>
  664. </element>
  665. <!-- constant Visibility: default -->
  666. <element name="ESysEILSEQ">
  667. <short>System error: Illegal byte sequence</short>
  668. </element>
  669. <!-- constant Visibility: default -->
  670. <element name="ESysERESTART">
  671. <short>System error: Interrupted system call should be restarted</short>
  672. </element>
  673. <!-- constant Visibility: default -->
  674. <element name="ESysESTRPIPE">
  675. <short>System error: Streams pipe error</short>
  676. </element>
  677. <!-- constant Visibility: default -->
  678. <element name="ESysEUSERS">
  679. <short>System error: Too many users</short>
  680. </element>
  681. <!-- constant Visibility: default -->
  682. <element name="ESysENOTSOCK">
  683. <short>System error: Socket operation on non-socket</short>
  684. </element>
  685. <!-- constant Visibility: default -->
  686. <element name="ESysEDESTADDRREQ">
  687. <short>System error: Destination address required</short>
  688. </element>
  689. <!-- constant Visibility: default -->
  690. <element name="ESysEMSGSIZE">
  691. <short>System error: Message too long</short>
  692. </element>
  693. <!-- constant Visibility: default -->
  694. <element name="ESysEPROTOTYPE">
  695. <short>System error: Protocol wrong type for socket</short>
  696. </element>
  697. <!-- constant Visibility: default -->
  698. <element name="ESysENOPROTOOPT">
  699. <short>System error: Protocol not available</short>
  700. </element>
  701. <!-- constant Visibility: default -->
  702. <element name="ESysEPROTONOSUPPORT">
  703. <short>System error: Protocol not supported</short>
  704. </element>
  705. <!-- constant Visibility: default -->
  706. <element name="ESysESOCKTNOSUPPORT">
  707. <short>System error: Socket type not supported</short>
  708. </element>
  709. <!-- constant Visibility: default -->
  710. <element name="ESysEOPNOTSUPP">
  711. <short>System error: Operation not supported on transport endpoint</short>
  712. </element>
  713. <!-- constant Visibility: default -->
  714. <element name="ESysEPFNOSUPPORT">
  715. <short>System error: Protocol family not supported</short>
  716. </element>
  717. <!-- constant Visibility: default -->
  718. <element name="ESysEAFNOSUPPORT">
  719. <short>System error: Address family not supported by protocol</short>
  720. </element>
  721. <!-- constant Visibility: default -->
  722. <element name="ESysEADDRINUSE">
  723. <short>System error: Address already in use</short>
  724. </element>
  725. <!-- constant Visibility: default -->
  726. <element name="ESysEADDRNOTAVAIL">
  727. <short>System error: Cannot assign requested address</short>
  728. </element>
  729. <!-- constant Visibility: default -->
  730. <element name="ESysENETDOWN">
  731. <short>System error: Network is down</short>
  732. </element>
  733. <!-- constant Visibility: default -->
  734. <element name="ESysENETUNREACH">
  735. <short>System error: Network is unreachable</short>
  736. </element>
  737. <!-- constant Visibility: default -->
  738. <element name="ESysENETRESET">
  739. <short>System error: Network dropped connection because of reset</short>
  740. </element>
  741. <!-- constant Visibility: default -->
  742. <element name="ESysECONNABORTED">
  743. <short>System error: Software caused connection abort</short>
  744. </element>
  745. <!-- constant Visibility: default -->
  746. <element name="ESysECONNRESET">
  747. <short>System error: Connection reset by peer</short>
  748. </element>
  749. <!-- constant Visibility: default -->
  750. <element name="ESysENOBUFS">
  751. <short>System error: No buffer space available</short>
  752. </element>
  753. <!-- constant Visibility: default -->
  754. <element name="ESysEISCONN">
  755. <short>System error: Transport endpoint is already connected</short>
  756. </element>
  757. <!-- constant Visibility: default -->
  758. <element name="ESysENOTCONN">
  759. <short>System error: Transport endpoint is not connected</short>
  760. </element>
  761. <!-- constant Visibility: default -->
  762. <element name="ESysESHUTDOWN">
  763. <short>System error: Cannot send after transport endpoint shutdown</short>
  764. </element>
  765. <!-- constant Visibility: default -->
  766. <element name="ESysETOOMANYREFS">
  767. <short>System error: Too many references: cannot splice</short>
  768. </element>
  769. <!-- constant Visibility: default -->
  770. <element name="ESysETIMEDOUT">
  771. <short>System error: Connection timed out</short>
  772. </element>
  773. <!-- constant Visibility: default -->
  774. <element name="ESysECONNREFUSED">
  775. <short>System error: Connection refused</short>
  776. </element>
  777. <!-- constant Visibility: default -->
  778. <element name="ESysEHOSTDOWN">
  779. <short>System error: Host is down</short>
  780. </element>
  781. <!-- constant Visibility: default -->
  782. <element name="ESysEHOSTUNREACH">
  783. <short>System error: No route to host</short>
  784. </element>
  785. <!-- constant Visibility: default -->
  786. <element name="ESysEALREADY">
  787. <short>System error: Operation already in progress</short>
  788. </element>
  789. <!-- constant Visibility: default -->
  790. <element name="ESysEINPROGRESS">
  791. <short>System error: Operation now in progress</short>
  792. </element>
  793. <!-- constant Visibility: default -->
  794. <element name="ESysESTALE">
  795. <short>System error: Stale NFS file handle</short>
  796. </element>
  797. <!-- constant Visibility: default -->
  798. <element name="ESysEUCLEAN">
  799. <short>System error: Structure needs cleaning</short>
  800. </element>
  801. <!-- constant Visibility: default -->
  802. <element name="ESysENOTNAM">
  803. <short>System error: Not a XENIX named type file</short>
  804. </element>
  805. <!-- constant Visibility: default -->
  806. <element name="ESysENAVAIL">
  807. <short>System error: No XENIX semaphores available</short>
  808. </element>
  809. <!-- constant Visibility: default -->
  810. <element name="ESysEISNAM">
  811. <short>System error: Is a named type file</short>
  812. </element>
  813. <!-- constant Visibility: default -->
  814. <element name="ESysEREMOTEIO">
  815. <short>System error: Remote I/O error</short>
  816. </element>
  817. <!-- constant Visibility: default -->
  818. <element name="ESysEDQUOT">
  819. <short>System error: Quota exceeded</short>
  820. </element>
  821. <!-- constant Visibility: default -->
  822. <element name="UTSNAME_LENGTH">
  823. <short>Max length of <link id="utsname"/> system name, release, version, machine.</short>
  824. </element>
  825. <!-- constant Visibility: default -->
  826. <element name="UTSNAME_NODENAME_LENGTH">
  827. <short>Max length of <link id="utsname"/> node name.</short>
  828. </element>
  829. <!-- constant Visibility: default -->
  830. <element name="UTSNAME_DOMAIN_LENGTH">
  831. <short>Max length of <link id="utsname"/> domain name.</short>
  832. </element>
  833. <!-- constant Visibility: default -->
  834. <element name="FD_MAXFDSET">
  835. <short>Maximum elements in a <link id="TFDSet"/> array.</short>
  836. </element>
  837. <!-- constant Visibility: default -->
  838. <element name="BITSINWORD">
  839. <short>Number of bits in a word.</short>
  840. </element>
  841. <!-- constant Visibility: default -->
  842. <element name="wordsinsigset">
  843. <short>Number of words in a signal set.</short>
  844. </element>
  845. <!-- constant Visibility: default -->
  846. <element name="wordsinfdset">
  847. <short>Number of words in a <link id="TFDSet"/> array</short>
  848. </element>
  849. <!-- constant Visibility: default -->
  850. <element name="ln2bitsinword">
  851. <short>Power of 2 number of bits in word.</short>
  852. </element>
  853. <!-- constant Visibility: default -->
  854. <element name="ln2bitmask">
  855. <short>Last bit in word.</short>
  856. </element>
  857. <!-- alias type Visibility: default -->
  858. <element name="Blksize_t">
  859. <short>Block size type.</short>
  860. </element>
  861. <!-- alias type Visibility: default -->
  862. <element name="Blkcnt_t">
  863. <short>Block count type.</short>
  864. </element>
  865. <!-- alias type Visibility: default -->
  866. <element name="Ino64_t">
  867. <short>64-bit inode type.</short>
  868. </element>
  869. <!-- alias type Visibility: default -->
  870. <element name="Off64_t">
  871. <short>64-bit offset type.</short>
  872. </element>
  873. <!-- alias type Visibility: default -->
  874. <element name="TBlkSize">
  875. <short>Alias for <link id="blksize_t"/> type.</short>
  876. </element>
  877. <!-- pointer type Visibility: default -->
  878. <element name="PBlkSize">
  879. <short>Pointer to <link id="TBlkSize"/> type.</short>
  880. </element>
  881. <!-- alias type Visibility: default -->
  882. <element name="TBlkCnt">
  883. <short>Alias for <link id="Blkcnt_t"/> type.</short>
  884. </element>
  885. <!-- pointer type Visibility: default -->
  886. <element name="PBlkCnt">
  887. <short>pointer to <link id="TBlkCnt"/> type.</short>
  888. </element>
  889. <!-- alias type Visibility: default -->
  890. <element name="TIno64">
  891. <short>Alias for <link id="Ino64_t"/> type.</short>
  892. </element>
  893. <!-- pointer type Visibility: default -->
  894. <element name="PIno64">
  895. <short>Pointer to <link id="TIno64"/> type.</short>
  896. </element>
  897. <!-- alias type Visibility: default -->
  898. <element name="TOff64">
  899. <short>Alias for <link id="Ino64_t"/> type.</short>
  900. </element>
  901. <!-- pointer type Visibility: default -->
  902. <element name="POff64">
  903. <short>Pointer to <link id="TOff64"/> type.</short>
  904. </element>
  905. <element name="utsname">
  906. <short>Record used to return kernel information in <link id="fpUName"/> function.</short>
  907. <descr>
  908. The elements of this record are null-terminated C style strings, you cannot access them
  909. directly.
  910. </descr>
  911. </element>
  912. <element name="utsname.sysname">
  913. <short>System name</short>
  914. </element>
  915. <element name="utsname.nodename">
  916. <short>Computer name</short>
  917. </element>
  918. <element name="utsname.release">
  919. <short>Release number</short>
  920. </element>
  921. <element name="utsname.version">
  922. <short>Version number</short>
  923. </element>
  924. <element name="utsname.machine">
  925. <short>Machine type</short>
  926. </element>
  927. <element name="utsname.domain">
  928. <short>Domain name</short>
  929. </element>
  930. <!-- alias type Visibility: default -->
  931. <element name="TUtsName">
  932. <short>Alias for <link id="UtsName"/> type.</short>
  933. </element>
  934. <!-- alias type Visibility: default -->
  935. <element name="PUtsName">
  936. <short>Pointer to <link id="TUtsName"/> type.</short>
  937. </element>
  938. <element name="stat">
  939. <short>Record describing an inode (file) in the <link id="FPFstat"/> call.</short>
  940. </element>
  941. <element name="stat.dev">
  942. <short>Device number</short>
  943. </element>
  944. <element name="stat.pad1">
  945. <short>Pad byte. Do not use</short>
  946. </element>
  947. <element name="stat.ino">
  948. <short>Inode number of file</short>
  949. </element>
  950. <element name="stat.mode">
  951. <short>File mode</short>
  952. </element>
  953. <element name="stat.nlink">
  954. <short>Number of links to file.</short>
  955. </element>
  956. <element name="stat.uid">
  957. <short>File owner UID</short>
  958. </element>
  959. <element name="stat.gid">
  960. <short>File owner GID</short>
  961. </element>
  962. <element name="stat.rdev">
  963. <short></short>
  964. </element>
  965. <element name="stat.pad2">
  966. <short>Pad byte. Do not use</short>
  967. </element>
  968. <element name="stat.size">
  969. <short>File size</short>
  970. </element>
  971. <element name="stat.blksize">
  972. <short>Block size</short>
  973. </element>
  974. <element name="stat.blocks">
  975. <short>Number of blocks used</short>
  976. </element>
  977. <element name="stat.atime">
  978. <short>Last access time</short>
  979. </element>
  980. <element name="stat.unused1">
  981. <short>Pad byte. Do not use</short>
  982. </element>
  983. <element name="stat.mtime">
  984. <short>Last modification time.</short>
  985. </element>
  986. <element name="stat.unused2">
  987. <short>Pad byte. Do not use</short>
  988. </element>
  989. <element name="stat.ctime">
  990. <short>Creation time</short>
  991. </element>
  992. <element name="stat.unused3">
  993. <short>Pad byte. Do not use</short>
  994. </element>
  995. <element name="stat.unused4">
  996. <short>Pad byte. Do not use</short>
  997. </element>
  998. <element name="stat.unused5">
  999. <short>Pad byte. Do not use</short>
  1000. </element>
  1001. <!-- alias type Visibility: default -->
  1002. <element name="TStat">
  1003. <short>Alias for <link id="Stat"/> type.</short>
  1004. </element>
  1005. <!-- pointer type Visibility: default -->
  1006. <element name="PStat">
  1007. <short>Pointer to <link id="TStat"/> type.</short>
  1008. </element>
  1009. <element name="PDirEnt">
  1010. <short>Pointer to <link id="TDirent"/> record.</short>
  1011. </element>
  1012. <element name="Dirent">
  1013. <short>Record used in the <link id="fpReadDir"/> function to return files in a directory.</short>
  1014. </element>
  1015. <element name="Dirent.d_fileno">
  1016. <short>Inode number of file</short>
  1017. </element>
  1018. <element name="Dirent.d_off">
  1019. <short>Offset in directory.</short>
  1020. </element>
  1021. <element name="Dirent.d_reclen">
  1022. <short>Record length</short>
  1023. </element>
  1024. <element name="Dirent.d_name">
  1025. <short>Name of file</short>
  1026. </element>
  1027. <!-- alias type Visibility: default -->
  1028. <element name="TDirent">
  1029. <short>Alias for <link id="Dirent"/> type.</short>
  1030. </element>
  1031. <element name="PDir">
  1032. <short>Pointer to <link id="TDir"/> record</short>
  1033. </element>
  1034. <element name="Dir">
  1035. <short>Record used in <link id="fpOpenDir"/> and <link id="fpReadDir"/> calls </short>
  1036. </element>
  1037. <element name="Dir.dd_fd">
  1038. <short>File descriptor. Do not use.</short>
  1039. </element>
  1040. <element name="Dir.dd_loc">
  1041. <short>Location in directory listing</short>
  1042. </element>
  1043. <element name="Dir.dd_size">
  1044. <short>File size</short>
  1045. </element>
  1046. <element name="Dir.dd_buf">
  1047. <short>Pointer to <link id="Dir"/> records</short>
  1048. </element>
  1049. <element name="Dir.dd_nextoff">
  1050. <short>?</short>
  1051. </element>
  1052. <element name="Dir.dd_max">
  1053. <short>?</short>
  1054. </element>
  1055. <element name="Dir.dd_lock">
  1056. <short>?</short>
  1057. </element>
  1058. <!-- alias type Visibility: default -->
  1059. <element name="TDir">
  1060. <short>Alias for <link id="Dir"/> type.</short>
  1061. </element>
  1062. <element name="Utimbuf">
  1063. <short>Record used in <link id="fpUtime"/> to set file access and modificaton times.</short>
  1064. </element>
  1065. <element name="Utimbuf.actime">
  1066. <short>Access time</short>
  1067. </element>
  1068. <element name="Utimbuf.modtime">
  1069. <short>Modification time</short>
  1070. </element>
  1071. <!-- alias type Visibility: default -->
  1072. <element name="TUtimBuf">
  1073. <short>Alias for <link id="UtimBuf"/> type.</short>
  1074. </element>
  1075. <!-- pointer type Visibility: default -->
  1076. <element name="pUtimBuf">
  1077. <short>Pointer to <link id="TUTimBuf"/> type.</short>
  1078. </element>
  1079. <!-- record type Visibility: default -->
  1080. <element name="FLock">
  1081. <short>Lock description type for <link id="fpFCntl"/> lock call.</short>
  1082. </element>
  1083. <!-- variable Visibility: default -->
  1084. <element name="FLock.l_type">
  1085. <short>Type of lock.</short>
  1086. </element>
  1087. <!-- variable Visibility: default -->
  1088. <element name="FLock.l_whence">
  1089. <short>Where to measure start of lock from</short>
  1090. </element>
  1091. <!-- variable Visibility: default -->
  1092. <element name="FLock.l_start">
  1093. <short>Start of lock</short>
  1094. </element>
  1095. <!-- variable Visibility: default -->
  1096. <element name="FLock.l_len">
  1097. <short>Length of locked area</short>
  1098. </element>
  1099. <!-- variable Visibility: default -->
  1100. <element name="FLock.l_pid">
  1101. <short>Process ID of process holding the lock</short>
  1102. </element>
  1103. <!-- record type Visibility: default -->
  1104. <element name="tms">
  1105. <short>Record containing timings for <link id="fpTimes"/> call.</short>
  1106. </element>
  1107. <!-- variable Visibility: default -->
  1108. <element name="tms.tms_utime">
  1109. <short>User time.</short>
  1110. </element>
  1111. <!-- variable Visibility: default -->
  1112. <element name="tms.tms_stime">
  1113. <short>System time.</short>
  1114. </element>
  1115. <!-- variable Visibility: default -->
  1116. <element name="tms.tms_cutime">
  1117. <short>Children's user time.</short>
  1118. </element>
  1119. <!-- variable Visibility: default -->
  1120. <element name="tms.tms_cstime">
  1121. <short>Children's system time.</short>
  1122. </element>
  1123. <!-- alias type Visibility: default -->
  1124. <element name="TTms">
  1125. <short>Alias for <link id="Tms"/> record type.</short>
  1126. </element>
  1127. <!-- pointer type Visibility: default -->
  1128. <element name="PTms">
  1129. <short>Pointer to <link id="TTms"/> type.</short>
  1130. </element>
  1131. <!-- array type Visibility: default -->
  1132. <element name="TFDSet">
  1133. <short>File descriptor set for <link id="fpSelect"/> call.</short>
  1134. </element>
  1135. <!-- pointer type Visibility: default -->
  1136. <element name="pFDSet">
  1137. <short>Pointer to <link id="TFDSet"/> type.</short>
  1138. </element>
  1139. <element name="R_OK">
  1140. <short><link id="fpAccess"/> call test: read allowed </short>
  1141. </element>
  1142. <element name="W_OK">
  1143. <short><link id="fpAccess"/> call test: write allowed </short>
  1144. </element>
  1145. <element name="X_OK">
  1146. <short><link id="fpAccess"/> call test: execute allowed </short>
  1147. </element>
  1148. <element name="F_OK">
  1149. <short><link id="fpAccess"/> call test: file exists.</short>
  1150. </element>
  1151. <element name="Seek_set">
  1152. <short><link id="fpLSeek"/> option: Set absolute position.</short>
  1153. </element>
  1154. <!-- constant Visibility: default -->
  1155. <element name="Seek_Cur">
  1156. <short><link id="fpLSeek"/> option: Set position relative to current position.</short>
  1157. </element>
  1158. <!-- constant Visibility: default -->
  1159. <element name="Seek_End">
  1160. <short><link id="fpLSeek"/> option: Set position relative to end of file.</short>
  1161. </element>
  1162. <!-- constant Visibility: default -->
  1163. <element name="O_RdOnly">
  1164. <short><link id="fpOpen"/> file open mode: Read only</short>
  1165. </element>
  1166. <!-- constant Visibility: default -->
  1167. <element name="O_WrOnly">
  1168. <short><link id="fpOpen"/> file open mode: Write only</short>
  1169. </element>
  1170. <!-- constant Visibility: default -->
  1171. <element name="O_RdWr">
  1172. <short><link id="fpOpen"/> file open mode: Read/Write</short>
  1173. </element>
  1174. <!-- constant Visibility: default -->
  1175. <element name="O_Creat">
  1176. <short><link id="fpOpen"/> file open mode: Create if file does not yet exist.</short>
  1177. </element>
  1178. <!-- constant Visibility: default -->
  1179. <element name="O_Excl">
  1180. <short><link id="fpOpen"/> file open mode: Open exclusively</short>
  1181. </element>
  1182. <!-- constant Visibility: default -->
  1183. <element name="O_NoCtty">
  1184. <short><link id="fpOpen"/> file open mode: No TTY control.</short>
  1185. </element>
  1186. <!-- constant Visibility: default -->
  1187. <element name="O_Trunc">
  1188. <short><link id="fpOpen"/> file open mode: Truncate file to length 0</short>
  1189. </element>
  1190. <!-- constant Visibility: default -->
  1191. <element name="O_Append">
  1192. <short><link id="fpOpen"/> file open mode: Append to file</short>
  1193. </element>
  1194. <!-- constant Visibility: default -->
  1195. <element name="O_NonBlock">
  1196. <short><link id="fpOpen"/> file open mode: Open in non-blocking mode</short>
  1197. </element>
  1198. <!-- constant Visibility: default -->
  1199. <element name="O_NDelay">
  1200. <short><link id="fpOpen"/> file open mode: Alias for <link id="O_NonBlock"/></short>
  1201. </element>
  1202. <!-- constant Visibility: default -->
  1203. <element name="O_Sync">
  1204. <short><link id="fpOpen"/> file open mode: Write to disc at once</short>
  1205. </element>
  1206. <!-- constant Visibility: default -->
  1207. <element name="O_Direct">
  1208. <short><link id="fpOpen"/> file open mode: Minimize caching effects</short>
  1209. </element>
  1210. <!-- constant Visibility: default -->
  1211. <element name="O_LargeFile">
  1212. <short><link id="fpOpen"/> file open mode: Open for 64-bit I/O</short>
  1213. </element>
  1214. <!-- constant Visibility: default -->
  1215. <element name="O_Directory">
  1216. <short><link id="fpOpen"/> file open mode: File must be directory.</short>
  1217. </element>
  1218. <!-- constant Visibility: default -->
  1219. <element name="O_NoFollow">
  1220. <short><link id="fpOpen"/> file open mode: Fail if file is symbolic link.</short>
  1221. </element>
  1222. <element name="S_ISUID">
  1223. <short>Mode flag: Set user ID on execution.</short>
  1224. </element>
  1225. <element name="S_ISGID">
  1226. <short>Mode flag: Set Group ID on execution.</short>
  1227. </element>
  1228. <element name="S_ISVTX">
  1229. <short>Mode flag: Set sticky bit.</short>
  1230. </element>
  1231. <element name="S_IRUSR">
  1232. <short>Mode flag: Read by owner.</short>
  1233. </element>
  1234. <element name="S_IWUSR">
  1235. <short>Mode flag: Write by owner.</short>
  1236. </element>
  1237. <element name="S_IXUSR">
  1238. <short>Mode flag: Execute by owner.</short>
  1239. </element>
  1240. <element name="S_IRGRP">
  1241. <short>Mode flag: Read by group.</short>
  1242. </element>
  1243. <element name="S_IWGRP">
  1244. <short>Mode flag: Write by group.</short>
  1245. </element>
  1246. <element name="S_IXGRP">
  1247. <short>Mode flag: Execute by group.</short>
  1248. </element>
  1249. <element name="S_IROTH">
  1250. <short>Mode flag: Read by others.</short>
  1251. </element>
  1252. <element name="S_IWOTH">
  1253. <short>Mode flag: Write by others.</short>
  1254. </element>
  1255. <element name="S_IXOTH">
  1256. <short>Mode flag: Execute by others.</short>
  1257. </element>
  1258. <element name="S_IRWXO">
  1259. <short>Mode flag: Read, write, execute by others.</short>
  1260. </element>
  1261. <element name="S_IRWXG">
  1262. <short>Mode flag: Read, write, execute by groups.</short>
  1263. </element>
  1264. <element name="S_IRWXU">
  1265. <short>Mode flag: Read, write, execute by user.</short>
  1266. </element>
  1267. <!-- constant Visibility: default -->
  1268. <element name="WNOHANG">
  1269. <short><link id="fpWaitpid"/> option: Do not wait for processes to terminate.</short>
  1270. </element>
  1271. <!-- constant Visibility: default -->
  1272. <element name="WUNTRACED">
  1273. <short><link id="fpWaitpid"/> option: Also report children wich were stopped but not yet reported</short>
  1274. </element>
  1275. <element name="F_GetFd">
  1276. <short><link id="fpFCntl"/> command: Get close-on-exec flag</short>
  1277. </element>
  1278. <element name="F_SetFd">
  1279. <short><link id="fpFCntl"/> command: Set close-on-exec flag</short>
  1280. </element>
  1281. <element name="F_GetFl">
  1282. <short><link id="fpFCntl"/> command: Get filedescriptor flags</short>
  1283. </element>
  1284. <element name="F_SetFl">
  1285. <short><link id="fpFCntl"/> command: Set filedescriptor flags</short>
  1286. </element>
  1287. <element name="F_GetLk">
  1288. <short><link id="fpFCntl"/> command: Get lock</short>
  1289. </element>
  1290. <element name="F_SetLk">
  1291. <short><link id="fpFCntl"/> command: Set lock</short>
  1292. </element>
  1293. <element name="F_SetLkW">
  1294. <short><link id="fpFCntl"/> command: Test lock</short>
  1295. </element>
  1296. <element name="F_GetOwn">
  1297. <short><link id="fpFCntl"/> command: get owner of filedescriptor events</short>
  1298. </element>
  1299. <element name="F_SetOwn">
  1300. <short><link id="fpFCntl"/> command: Set owner of filedescriptor events</short>
  1301. </element>
  1302. <!-- constant Visibility: default -->
  1303. <element name="SA_NOCLDSTOP">
  1304. <short>Sigaction options: Do not receive notification when child processes stop</short>
  1305. </element>
  1306. <!-- constant Visibility: default -->
  1307. <element name="SA_NOCLDWAIT">
  1308. <short>Sigaction options: ?</short>
  1309. </element>
  1310. <!-- constant Visibility: default -->
  1311. <element name="SA_SIGINFO">
  1312. <short>Sigaction options: The signal handler takes 3 arguments, not one.</short>
  1313. </element>
  1314. <!-- constant Visibility: default -->
  1315. <element name="SA_SHIRQ">
  1316. <short>Sigaction options: ?</short>
  1317. </element>
  1318. <!-- constant Visibility: default -->
  1319. <element name="SA_STACK">
  1320. <short>Sigaction options: Call the signal handler on an alternate signal stack.</short>
  1321. </element>
  1322. <!-- constant Visibility: default -->
  1323. <element name="SA_RESTART">
  1324. <short>Sigaction options: Provide behaviour compatible with BSD signal semantics</short>
  1325. </element>
  1326. <!-- constant Visibility: default -->
  1327. <element name="SA_INTERRUPT">
  1328. <short>Sigaction options: ?</short>
  1329. </element>
  1330. <!-- constant Visibility: default -->
  1331. <element name="SA_NOMASK">
  1332. <short>Sigaction options: Do not prevent the signal from being received when it is handled.</short>
  1333. </element>
  1334. <!-- constant Visibility: default -->
  1335. <element name="SA_ONESHOT">
  1336. <short>Sigaction options: Restore the signal action to the default state.</short>
  1337. </element>
  1338. <element name="SIG_BLOCK">
  1339. <short>Sigprocmask flags: Add signals to the set of blocked signals.</short>
  1340. </element>
  1341. <element name="SIG_UNBLOCK">
  1342. <short>Sigprocmask flags: Remove signals from the set set of blocked signals.</short>
  1343. </element>
  1344. <element name="SIG_SETMASK">
  1345. <short>Sigprocmask flags: Set of blocked signals is given.</short>
  1346. </element>
  1347. <element name="SIG_DFL">
  1348. <short>Signal handler: Default signal handler</short>
  1349. </element>
  1350. <element name="SIG_IGN">
  1351. <short>Signal handler: Ignore signal</short>
  1352. </element>
  1353. <element name="SIG_ERR">
  1354. <short>Signal handler: error</short>
  1355. </element>
  1356. <element name="SIGHUP">
  1357. <short>Signal: HUP (Hangup)</short>
  1358. </element>
  1359. <element name="SIGINT">
  1360. <short>Signal: INT (Interrupt)</short>
  1361. </element>
  1362. <element name="SIGQUIT">
  1363. <short>Signal: QUIT</short>
  1364. </element>
  1365. <element name="SIGILL">
  1366. <short>Signal: ILL (Illegal instruction)</short>
  1367. </element>
  1368. <element name="SIGTRAP">
  1369. <short>Signal: TRAP (Trace trap)</short>
  1370. </element>
  1371. <element name="SIGABRT">
  1372. <short>Signal: ABRT (Abort)</short>
  1373. </element>
  1374. <element name="SIGIOT">
  1375. <short>Signal: IOT (IOT trap)</short>
  1376. </element>
  1377. <element name="SIGBUS">
  1378. <short>Signal: BUS (bus error)</short>
  1379. </element>
  1380. <element name="SIGFPE">
  1381. <short>Signal: FPE (Floating point error)</short>
  1382. </element>
  1383. <element name="SIGKILL">
  1384. <short>Signal: KILL (unblockable)</short>
  1385. </element>
  1386. <element name="SIGUSR1">
  1387. <short>Signal: USR1 (User-defined signal 1)</short>
  1388. </element>
  1389. <element name="SIGSEGV">
  1390. <short>Signal: SEGV (Segmentation violation)</short>
  1391. </element>
  1392. <element name="SIGUSR2">
  1393. <short>Signal: USR2 (User-defined signal 2)</short>
  1394. </element>
  1395. <element name="SIGPIPE">
  1396. <short>Signal: PIPE (Broken pipe</short>
  1397. </element>
  1398. <element name="SIGALRM">
  1399. <short>Signal: ALRM (Alarm clock)</short>
  1400. </element>
  1401. <element name="SIGTERM">
  1402. <short>Signal: TERM (Terminate)</short>
  1403. </element>
  1404. <element name="SIGSTKFLT">
  1405. <short>Signal: STKFLT (Stack Fault)</short>
  1406. </element>
  1407. <element name="SIGCHLD">
  1408. <short>Signal: CHLD (child status changed)</short>
  1409. </element>
  1410. <element name="SIGCONT">
  1411. <short>Signal: CONT (Continue)</short>
  1412. </element>
  1413. <element name="SIGSTOP">
  1414. <short>Signal: STOP (Stop, unblockable)</short>
  1415. </element>
  1416. <element name="SIGTSTP">
  1417. <short>Signal: TSTP (keyboard stop)</short>
  1418. </element>
  1419. <element name="SIGTTIN">
  1420. <short>Signal: TTIN (Terminal input, background)</short>
  1421. </element>
  1422. <element name="SIGTTOU">
  1423. <short>Signal: TTOU (Terminal output, background)</short>
  1424. </element>
  1425. <element name="SIGURG">
  1426. <short>Signal: URG (Socket urgent condition)</short>
  1427. </element>
  1428. <element name="SIGXCPU">
  1429. <short>Signal: XCPU (CPU limit exceeded)</short>
  1430. </element>
  1431. <element name="SIGXFSZ">
  1432. <short>Signal: XFSZ (File size limit exceeded)</short>
  1433. </element>
  1434. <element name="SIGVTALRM">
  1435. <short>Signal: VTALRM (Virtual alarm clock)</short>
  1436. </element>
  1437. <element name="SIGPROF">
  1438. <short>Signal: PROF (Profiling alarm)</short>
  1439. </element>
  1440. <element name="SIGWINCH">
  1441. <short>Signal: WINCH (Window/Terminal size change)</short>
  1442. </element>
  1443. <element name="SIGIO">
  1444. <short>Signal: IO (I/O operation possible)</short>
  1445. </element>
  1446. <element name="SIGPOLL">
  1447. <short>Signal: POLL (Pollable event) </short>
  1448. </element>
  1449. <element name="SIGPWR">
  1450. <short>Signal: PWR (power failure restart)</short>
  1451. </element>
  1452. <element name="SIGUNUSED">
  1453. <short>Signal: Unused</short>
  1454. </element>
  1455. <!-- constant Visibility: default -->
  1456. <element name="SI_PAD_SIZE">
  1457. <short>Signal information pad size.</short>
  1458. </element>
  1459. <element name="tfpreg">
  1460. <short>Record describing floating point register in signal handler.</short>
  1461. </element>
  1462. <element name="tfpreg.significand">
  1463. <short>Decimal part of floating point value</short>
  1464. </element>
  1465. <element name="tfpreg.exponent">
  1466. <short>Exponent of floating point value</short>
  1467. </element>
  1468. <element name="pfpstate">
  1469. <short>Pointer to <link id="tfpstate"/> record.</short>
  1470. </element>
  1471. <element name="tfpstate">
  1472. <short>Record describing floating point unit in signal handler.</short>
  1473. </element>
  1474. <element name="tfpstate.cw">
  1475. <short></short>
  1476. </element>
  1477. <element name="tfpstate.sw">
  1478. <short></short>
  1479. </element>
  1480. <element name="tfpstate.tag">
  1481. <short></short>
  1482. </element>
  1483. <element name="tfpstate.ipoff">
  1484. <short></short>
  1485. </element>
  1486. <element name="tfpstate.cssel">
  1487. <short></short>
  1488. </element>
  1489. <element name="tfpstate.dataoff">
  1490. <short></short>
  1491. </element>
  1492. <element name="tfpstate.datasel">
  1493. <short></short>
  1494. </element>
  1495. <element name="tfpstate.st">
  1496. <short></short>
  1497. </element>
  1498. <element name="tfpstate.status">
  1499. <short></short>
  1500. </element>
  1501. <!-- array type Visibility: default -->
  1502. <!-- alias type Visibility: default -->
  1503. <element name="SigSet">
  1504. <short>Signal set type</short>
  1505. </element>
  1506. <!-- alias type Visibility: default -->
  1507. <element name="sigset_t">
  1508. <short>Signal set type</short>
  1509. </element>
  1510. <!-- pointer type Visibility: default -->
  1511. <element name="PSigSet">
  1512. <short>Pointer to <link id="SigSet"/> type.</short>
  1513. </element>
  1514. <!-- alias type Visibility: default -->
  1515. <element name="psigset_t">
  1516. <short>Pointer to <link id="sigset_t"/> type.</short>
  1517. </element>
  1518. <!-- alias type Visibility: default -->
  1519. <element name="TSigSet">
  1520. <short>Alias for <link id="SigSet"/> type.</short>
  1521. </element>
  1522. <!-- pointer type Visibility: default -->
  1523. <element name="PSigInfoRec">
  1524. <short>Pointer to <link id="SigInfoRec"/> record type.</short>
  1525. </element>
  1526. <!-- record type Visibility: default -->
  1527. <element name="SigInfoRec">
  1528. <short>Record containing signal information.</short>
  1529. </element>
  1530. <!-- variable Visibility: default -->
  1531. <element name="SigInfoRec.si_signo">
  1532. <short>Signal number.</short>
  1533. </element>
  1534. <!-- variable Visibility: default -->
  1535. <element name="SigInfoRec.si_errno">
  1536. <short>?</short>
  1537. </element>
  1538. <!-- variable Visibility: default -->
  1539. <element name="SigInfoRec.si_code">
  1540. <short>?</short>
  1541. </element>
  1542. <!-- procedure type Visibility: default -->
  1543. <element name="SignalHandler">
  1544. <short>Simple signal handler prototype</short>
  1545. </element>
  1546. <!-- pointer type Visibility: default -->
  1547. <element name="PSignalHandler">
  1548. <short>Pointer to <link id="SignalHandler"/> type.</short>
  1549. </element>
  1550. <element name="SignalRestorer">
  1551. <short>Signal restorer function prototype</short>
  1552. </element>
  1553. <element name="PSignalrestorer">
  1554. <short>Pointer to <link id="SignalRestorer"/> type</short>
  1555. </element>
  1556. <!-- procedure type Visibility: default -->
  1557. <element name="TSigAction">
  1558. <short>Extended signal handler prototype.</short>
  1559. </element>
  1560. <!-- record type Visibility: default -->
  1561. <element name="SigActionRec">
  1562. <short>Record used in <link id="fpSigAction"/> call.</short>
  1563. </element>
  1564. <element name="SigActionRec.sa_handler">
  1565. <short>Funcion called when signal is triggered.</short>
  1566. </element>
  1567. <element name="SigActionRec.Sa_Mask">
  1568. <short>Signal mask.</short>
  1569. </element>
  1570. <element name="SigActionRec.SA_FLAGS">
  1571. <short>Flags for SigAction</short>
  1572. </element>
  1573. <element name="SigActionRec.SA_RESTORER">
  1574. <short>Obsolete, don't use</short>
  1575. </element>
  1576. <!-- alias type Visibility: default -->
  1577. <element name="TSigActionRec">
  1578. <short>Alias for <link id="SigActionRec"/> record type.</short>
  1579. </element>
  1580. <!-- pointer type Visibility: default -->
  1581. <element name="PSigActionRec">
  1582. <short>Pointer to <link id="SigActionRec"/> record type.</short>
  1583. </element>
  1584. <!-- array type Visibility: default -->
  1585. <element name="TGrpArr">
  1586. <short>Array of <link id="gid_t"/> IDs</short>
  1587. </element>
  1588. <!-- pointer type Visibility: default -->
  1589. <element name="pGrpArr">
  1590. <short>Pointer to <link id="TGrpArr"/> array.</short>
  1591. </element>
  1592. <!-- array type Visibility: default -->
  1593. <element name="TFilDes">
  1594. <short>Array of file descriptors as used in <link id="fpPipe"/> call.</short>
  1595. </element>
  1596. <!-- pointer type Visibility: default -->
  1597. <element name="pFilDes">
  1598. <short>Pointer to <link id="TFilDes"/> type.</short>
  1599. </element>
  1600. <!-- function Visibility: default -->
  1601. <element name="FpSigProcMask">
  1602. <short>Set list of blocked signals</short>
  1603. <descr>
  1604. <p>
  1605. Changes the list of currently blocked signals. The behaviour of the call
  1606. depends on <var>How</var> :
  1607. </p>
  1608. <dl>
  1609. <dt>SIG_BLOCK</dt>
  1610. <dd>The set of blocked signals is the union of the current set
  1611. and the <var>nset</var> argument.</dd>
  1612. <dt>SIG_UNBLOCK</dt>
  1613. <dd>The signals in <var>nset</var> are removed from the set of
  1614. currently blocked signals.</dd>
  1615. <dt>SIG_SETMASK</dt>
  1616. <dd>The list of blocked signals is set so <var>nset</var>.
  1617. </dd>
  1618. </dl>
  1619. <p>
  1620. If <var>oset</var> is non-nil, then the old set is stored in it.
  1621. </p>
  1622. </descr>
  1623. <errors>
  1624. <p>
  1625. <var>Errno</var> is used to report errors.
  1626. </p>
  1627. <dl>
  1628. <dt>sys_efault</dt>
  1629. <dd><var>oset</var> or <var>nset</var> point to an adress outside
  1630. the range of the process.</dd>
  1631. <dt>sys_eintr</dt>
  1632. <dd> System call was interrupted.</dd>
  1633. </dl>
  1634. </errors>
  1635. <seealso>
  1636. <link id="fpSigAction"/>
  1637. <link id="fpSigPending"/>
  1638. <link id="fpSigSuspend"/>
  1639. <link id="fpKill"/>
  1640. </seealso>
  1641. </element>
  1642. <!-- function Visibility: default -->
  1643. <element name="FpSigPending">
  1644. <short>Return set of currently pending signals</short>
  1645. <descr>
  1646. <var>fpSigpending</var> allows the examination of pending signals (which have been raised
  1647. while blocked.) The signal mask of pending signals is returned.
  1648. </descr>
  1649. <errors>
  1650. None
  1651. </errors>
  1652. <seealso>
  1653. <link id="fpSigAction"/>
  1654. <link id="fpSigProcMask"/>
  1655. <link id="fpSigSuspend"/>
  1656. <link id="fpSignal"/>
  1657. <link id="fpKill"/>
  1658. </seealso>
  1659. </element>
  1660. <!-- function Visibility: default -->
  1661. <element name="FpSigSuspend">
  1662. <short>Set signal mask and suspend process till signal is received</short>
  1663. <descr>
  1664. <var>fpSigSuspend</var> temporarily replaces the signal mask for the process with the one
  1665. given in <var>SigMask</var>, and then suspends the process until a signal is received.
  1666. </descr>
  1667. <errors>
  1668. None
  1669. </errors>
  1670. <seealso>
  1671. <link id="fpSigAction"/>
  1672. <link id="fpSigProcMask"/>
  1673. <link id="fpSigPending"/>
  1674. <link id="fpSignal"/>
  1675. <link id="fpKill"/>
  1676. </seealso>
  1677. </element>
  1678. <!-- function Visibility: default -->
  1679. <element name="FpUmask">
  1680. <short>Set file creation mask.</short>
  1681. <descr>
  1682. <var>fpUmask</var> changes the file creation mask for the current user to
  1683. <var>cmask</var>. The current mask is returned.
  1684. </descr>
  1685. <seealso>
  1686. <link id="fpChmod"/>
  1687. </seealso>
  1688. <example file="bunixex/ex27"/>
  1689. </element>
  1690. <!-- function Visibility: default -->
  1691. <element name="FpLink">
  1692. <short>Create a hard link to a file</short>
  1693. <descr>
  1694. <var>fpLink</var> makes <var>NewOne</var> point to the same file als
  1695. <var>Existing</var>. The two files
  1696. then have the same inode number. This is known as a 'hard' link.
  1697. The function returns <var>zero</var> if the call was succesfull, and returns
  1698. a <var>non-zero</var> value if the call failed.
  1699. </descr>
  1700. <errors>
  1701. <p>
  1702. The following error codes are returned:
  1703. </p>
  1704. <dl>
  1705. <dt>sys_exdev</dt>
  1706. <dd> <var>Existing</var> and <var>NewOne</var> are not on the same filesystem.</dd>
  1707. <dt>sys_eperm</dt><dd> The filesystem containing <var>Existing</var> and
  1708. <var>NewOne</var> doesn't support linking files.</dd>
  1709. <dt>sys_eaccess</dt>
  1710. <dd>Write access for the directory containing <var>NewOne</var>
  1711. is disallowed, or one of the directories in <var>Existing</var> or <var>NewOne</var> has no
  1712. search (=execute) permission.</dd>
  1713. <dt>sys_enoent</dt>
  1714. <dd>A directory entry in <var>Existing</var> or <var>NewOne</var> does
  1715. not exist or is a symbolic link pointing to a non-existent directory.</dd>
  1716. <dt>sys_enotdir</dt>
  1717. <dd> A directory entry in <var>Existing</var> or <var>NewOne</var> is
  1718. nor a directory.</dd>
  1719. <dt>sys_enomem</dt><dd> Insufficient kernel memory.</dd>
  1720. <dt>sys_erofs</dt><dd> The files are on a read-only filesystem.</dd>
  1721. <dt>sys_eexist</dt><dd> <var>NewOne</var> already exists.</dd>
  1722. <dt>sys_emlink</dt><dd> <var>Existing</var> has reached maximal link count.</dd>
  1723. <dt>sys_eloop</dt>
  1724. <dd><var>existing</var> or <var>NewOne</var> has a reference to a circular
  1725. symbolic link, i.e. a symbolic link, whose expansion points to itself.</dd>
  1726. <dt>sys_enospc</dt>
  1727. <dd> The device containing <var>NewOne</var> has no room for another
  1728. entry.</dd>
  1729. <dt>sys_eperm</dt>
  1730. <dd><var>Existing</var> points to . or .. of a directory.</dd>
  1731. </dl>
  1732. </errors>
  1733. <seealso>
  1734. <link id="#rtl.unix.fpSymLink"/>
  1735. <link id="fpUnLink"/>
  1736. </seealso>
  1737. <example file="bunixex/ex21"/>
  1738. </element>
  1739. <!-- function Visibility: default -->
  1740. <element name="FpMkfifo">
  1741. <short>Create FIFO (named pipe) in file system</short>
  1742. <descr>
  1743. <p>
  1744. <var>fpMkFifo</var> creates named a named pipe in the filesystem, with name
  1745. <var>Path</var> and mode <var>Mode</var>.
  1746. </p>
  1747. <p>
  1748. The function returns zero if the command was succesful, and nonzero if it
  1749. failed.
  1750. </p>
  1751. </descr>
  1752. <errors>
  1753. <p>
  1754. The error codes include:
  1755. </p>
  1756. <dl>
  1757. <dt>sys_emfile</dt><dd> Too many file descriptors for this process.</dd>
  1758. <dt>sys_enfile</dt><dd> The system file table is full.</dd>
  1759. </dl>
  1760. </errors>
  1761. </element>
  1762. <!-- function Visibility: default -->
  1763. <element name="FpChmod">
  1764. <short>Change file permission bits</short>
  1765. <descr>
  1766. <p>
  1767. <var>fpChmod</var>
  1768. sets the Mode bits of the file in <var>Path</var> to <var>Mode</var>.
  1769. <var>Mode</var> can be specified by 'or'-ing the following values:
  1770. </p>
  1771. <dl>
  1772. <dt>S_ISUID</dt><dd> Set user ID on execution.</dd>
  1773. <dt>S_ISGID</dt><dd> Set Group ID on execution.</dd>
  1774. <dt>S_ISVTX</dt><dd> Set sticky bit.</dd>
  1775. <dt>S_IRUSR</dt><dd> Read by owner.</dd>
  1776. <dt>S_IWUSR</dt><dd> Write by owner.</dd>
  1777. <dt>S_IXUSR</dt><dd> Execute by owner.</dd>
  1778. <dt>S_IRGRP</dt><dd> Read by group.</dd>
  1779. <dt>S_IWGRP</dt><dd> Write by group.</dd>
  1780. <dt>S_IXGRP</dt><dd> Execute by group.</dd>
  1781. <dt>S_IROTH</dt><dd> Read by others.</dd>
  1782. <dt>S_IWOTH</dt><dd> Write by others.</dd>
  1783. <dt>S_IXOTH</dt><dd> Execute by others.</dd>
  1784. <dt>S_IRWXO</dt><dd> Read, write, execute by others.</dd>
  1785. <dt>S_IRWXG</dt><dd> Read, write, execute by groups.</dd>
  1786. <dt>S_IRWXU</dt><dd> Read, write, execute by user.</dd>
  1787. </dl>
  1788. <p>
  1789. If the function is successful, zero is returned. A nonzero return value
  1790. indicates an error.
  1791. </p>
  1792. </descr>
  1793. <errors>
  1794. <p>
  1795. The following error codes are returned:
  1796. </p>
  1797. <dl>
  1798. <dt>sys_eperm</dt>
  1799. <dd> The effective UID doesn't match the ownership of the file,
  1800. and is not zero. Owner or group were not specified correctly.</dd>
  1801. <dt>sys_eaccess</dt>
  1802. <dd> One of the directories in <var>Path</var> has no
  1803. search (=execute) permission.</dd>
  1804. <dt>sys_enoent</dt>
  1805. <dd> A directory entry in <var>Path</var> does
  1806. not exist or is a symbolic link pointing to a non-existent directory.</dd>
  1807. <dt>sys_enomem</dt>
  1808. <dd> Insufficient kernel memory.</dd>
  1809. <dt>sys_erofs</dt>
  1810. <dd> The file is on a read-only filesystem.</dd>
  1811. <dt>sys_eloop</dt>
  1812. <dd> <var>Path</var> has a reference to a circular
  1813. symbolic link, i.e. a symbolic link, whose expansion points to itself.</dd>
  1814. </dl>
  1815. </errors>
  1816. <seealso>
  1817. <link id="fpChown"/>
  1818. <link id="fpAccess"/>
  1819. </seealso>
  1820. <example file="bunixex/ex23"/>
  1821. </element>
  1822. <!-- function Visibility: default -->
  1823. <element name="FpChown">
  1824. <short>Change owner of file</short>
  1825. <descr>
  1826. <p>
  1827. <var>fpChown</var> sets the User ID and Group ID of the file in <var>Path</var> to
  1828. <var>Owner</var>,<var>Group</var>.
  1829. </p>
  1830. <p>
  1831. The function returns zero if the call was succesfull, a nonzero return value
  1832. indicates an error.
  1833. </p>
  1834. </descr>
  1835. <errors>
  1836. <p>
  1837. The following error codes are returned:
  1838. </p>
  1839. <dl>
  1840. <dt>sys_eperm</dt>
  1841. <dd> The effective UID doesn't match the ownership of the file,
  1842. and is not zero. Owner or group were not specified correctly.</dd>
  1843. <dt>sys_eaccess</dt>
  1844. <dd> One of the directories in <var>Path</var> has no
  1845. search (=execute) permission.</dd>
  1846. <dt>sys_enoent</dt>
  1847. <dd> A directory entry in <var>Path</var> does
  1848. not exist or is a symbolic link pointing to a non-existent directory.</dd>
  1849. <dt>sys_enomem</dt>
  1850. <dd> Insufficient kernel memory.</dd>
  1851. <dt>sys_erofs</dt>
  1852. <dd> The file is on a read-only filesystem.</dd>
  1853. <dt>sys_eloop</dt>
  1854. <dd> <var>Path</var> has a reference to a circular
  1855. symbolic link, i.e. a symbolic link, whose expansion points to itself.</dd>
  1856. </dl>
  1857. </errors>
  1858. <seealso>
  1859. <link id="fpChmod"/>
  1860. <link id="fpAccess"/>
  1861. </seealso>
  1862. <example file="bunixex/ex24"/>
  1863. </element>
  1864. <!-- function Visibility: default -->
  1865. <element name="FpUtime">
  1866. <short>Set access and modification times of a file (touch).</short>
  1867. <descr>
  1868. <var>FpUtime</var> sets the access and modification times of a file.
  1869. the <var>times</var> record contains 2 fields, <var>actime</var>, and <var>modtime</var>,
  1870. both of type Longint. They should be filled with an epoch-like time,
  1871. specifying, respectively, the last access time, and the last modification
  1872. time.
  1873. For some filesystem (most notably, FAT), these times are the same.
  1874. </descr>
  1875. <errors>
  1876. <p>
  1877. Errors are returned in <var>LinuxError</var>.
  1878. </p>
  1879. <dl>
  1880. <dt>sys_eaccess</dt>
  1881. <dd> One of the directories in <var>Path</var> has no
  1882. search (=execute) permission.</dd>
  1883. <dt>sys_enoent</dt>
  1884. <dd> A directory entry in <var>Path</var> does
  1885. not exist or is a symbolic link pointing to a non-existent directory.
  1886. </dd>
  1887. </dl>
  1888. <p>
  1889. Other errors may occur, but aren't documented.
  1890. </p>
  1891. </errors>
  1892. <seealso>
  1893. <link id="fpChown"/>
  1894. <link id="fpAccess"/>
  1895. </seealso>
  1896. <example file="bunixex/ex25"/>
  1897. </element>
  1898. <!-- function Visibility: default -->
  1899. <element name="FpPipe">
  1900. <short>Create a set of pipe file handlers</short>
  1901. <descr>
  1902. <p>
  1903. <var>FpPipe</var> creates a pipe, i.e. two file objects, one for input,
  1904. one for output. The filehandles are returned in the array <var>fildes</var>.
  1905. The input handle is in the 0-th element of the array, the output handle is
  1906. in the 1-st element.
  1907. </p>
  1908. <p>
  1909. The function returns zero if everything went succesfully,
  1910. a nonzero return value indicates an error.
  1911. </p>
  1912. </descr>
  1913. <errors>
  1914. <p>
  1915. In case the function fails, the following return values are possible:
  1916. </p>
  1917. <dl>
  1918. <dt>sys_emfile</dt>
  1919. <dd> Too many file descriptors for this process.</dd>
  1920. <dt>sys_enfile</dt>
  1921. <dd> The system file table is full.</dd>
  1922. </dl>
  1923. </errors>
  1924. <seealso>
  1925. <link id="#rtl.unix.POpen"/>
  1926. <link id="fpMkFifo"/>
  1927. </seealso>
  1928. <example file="bunixex/ex36"/>
  1929. </element>
  1930. <!-- function Visibility: default -->
  1931. <element name="FpDup">
  1932. <short>Duplicate a file handle</short>
  1933. <descr>
  1934. <p>
  1935. <var>FpDup</var> returns a file descriptor that is a duplicate of the file
  1936. descriptor <var>fildes</var>.
  1937. </p>
  1938. <p>The second and third forms make <var>NewFile</var> an exact copy of <var>OldFile</var>,
  1939. after having flushed the buffer of <var>OldFile</var> in case it is a Text file
  1940. or untyped file.
  1941. Due to the buffering mechanism of Pascal, these calls do not have the same functionality
  1942. as the <var>dup</var> call in C. The internal Pascal buffers are not the same
  1943. after this call, but when the buffers are flushed (e.g. after output),
  1944. the output is sent to the same file.
  1945. Doing an lseek will, however, work as in C, i.e. doing a lseek will change
  1946. the fileposition in both files.
  1947. </p>
  1948. <p>
  1949. The function returns a negative value in case of an error, a positive value
  1950. is a file handle, and indicates succes.
  1951. </p>
  1952. </descr>
  1953. <errors>
  1954. <p>
  1955. A negative value can be one of the following error codes:
  1956. </p>
  1957. <dl>
  1958. <dt>sys_ebadf</dt><dd> <var>OldFile</var> hasn't been assigned.</dd>
  1959. <dt>sys_emfile</dt><dd> Maximum number of open files for the process is reached.</dd>
  1960. </dl>
  1961. </errors>
  1962. <seealso>
  1963. <link id="fpDup2"/>
  1964. </seealso>
  1965. <example file="bunixex/ex31"/>
  1966. </element>
  1967. <!-- function Visibility: default -->
  1968. <element name="FpDup2">
  1969. <short>Duplicate one filehandle to another</short>
  1970. <descr>
  1971. <p>
  1972. Makes <var>fildes2</var> or <var>NewFile</var> an exact copy of
  1973. <var>fildes</var> or <var>OldFile</var>, after having flushed the
  1974. buffer of <var>OldFile</var> in the case of text or untyped files.
  1975. </p>
  1976. <p>
  1977. <var>NewFile</var> can be an assigned file. If <var>newfile</var> was open, it is
  1978. closed first. Due to the buffering mechanism of Pascal, this has not
  1979. the same functionality as the <var>dup2</var> call in C. The internal Pascal
  1980. buffers are not the same after this call, but when the buffers are flushed
  1981. (e.g. after output), the output is sent to the same file.
  1982. Doing an lseek will, however, work as in C, i.e. doing a lseek will change the
  1983. fileposition in both files.
  1984. </p>
  1985. <p>
  1986. The function returns zero if succesful, a nonzero return value means the
  1987. call failed.
  1988. </p>
  1989. </descr>
  1990. <errors>
  1991. <p>
  1992. In case of error, the following error codes can be reported:
  1993. </p>
  1994. <dl>
  1995. <dt>sys_ebadf</dt><dd> <var>OldFile</var> (or <var>fildes</var>) hasn't been assigned.</dd>
  1996. <dt>sys_emfile</dt><dd> Maximum number of open files for the process is reached.</dd>
  1997. </dl>
  1998. </errors>
  1999. <seealso>
  2000. <link id="fpDup"/>
  2001. </seealso>
  2002. <example file="bunixex/ex32"/>
  2003. </element>
  2004. <!-- function Visibility: default -->
  2005. <element name="FpTimes">
  2006. <short>Return execution times for the current process</short>
  2007. <descr>
  2008. <p>
  2009. <var>fpTimes</var> stores the execution time of the current process and
  2010. child processes in <var>buffer</var>.
  2011. </p>
  2012. <p>
  2013. The return value (on linux) is the number of clock ticks since boot time. On
  2014. error, -1 is returned, and extended error information can be retrieved with
  2015. <link id="fpGetErrno"/>.
  2016. </p>
  2017. </descr>
  2018. <seealso>
  2019. <link id="fpUTime"/>
  2020. </seealso>
  2021. </element>
  2022. <!-- function Visibility: default -->
  2023. <element name="FpAlarm">
  2024. <short>Schedule an alarm signal to be delivered</short>
  2025. <descr>
  2026. <p>
  2027. <var>FpAlarm</var> schedules an alarm signal to be delivered to your process in
  2028. <var>Seconds</var> seconds. When <var>Seconds</var> seconds have elapsed,
  2029. the system will send a <var>SIGALRM</var> signal to the current process.
  2030. If <var>Seconds</var> is zero, then no new alarm will
  2031. be set. Whatever the value of <var>Seconds</var>, any previous alarm is cancelled.
  2032. </p>
  2033. <p>
  2034. The function returns the number of seconds till the previously scheduled
  2035. alarm was due to be delivered, or zero if there was none. A negative value
  2036. indicates an error.
  2037. </p>
  2038. </descr>
  2039. <seealso>
  2040. <link id="fpSigAction"/>
  2041. <link id="fpPause"/>
  2042. </seealso>
  2043. <example file="bunixex/ex59"/>
  2044. </element>
  2045. <!-- function Visibility: default -->
  2046. <element name="FpPause">
  2047. <short>Wait for a signal to arrive</short>
  2048. <descr>
  2049. <p>
  2050. <var>FpPause</var> puts the process to sleep and waits until the application
  2051. receives a signal. If a signal handler is installed for the received
  2052. sigal, the handler will be called and after that pause will return
  2053. control to the process.
  2054. </p>
  2055. <p>
  2056. For an example, see <link id="fpAlarm"/>.
  2057. </p>
  2058. </descr>
  2059. <link id="FpAlarm"/>
  2060. <link id="FpSigAction"/>
  2061. </element>
  2062. <!-- function Visibility: default -->
  2063. <element name="FpSleep">
  2064. <short>Suspend process for several seconds</short>
  2065. <descr>
  2066. <p>
  2067. <var>FpSleep</var> suspends the process till a time period as specified
  2068. in <var>seconds</var> has passed, then the function returns. If the
  2069. call was interrupted (e.g. by some signal) then the function may
  2070. return earlier, and the return value is the remaining time till the
  2071. end of the intended period.
  2072. </p>
  2073. <p>
  2074. If the function returns without error, the return value is zero.
  2075. </p>
  2076. </descr>
  2077. <seealso>
  2078. <link id="fpPause"/>
  2079. <link id="fpAlarm"/>
  2080. <link id="fpNanoSleep"/>
  2081. </seealso>
  2082. <example file="bunixex/ex73"/>
  2083. </element>
  2084. <!-- function Visibility: default -->
  2085. <element name="FpGetpid">
  2086. <short>Return current process ID</short>
  2087. <descr>
  2088. <var>FpGetpid</var> returns the Process ID of the currently running process.
  2089. </descr>
  2090. <errors>
  2091. None.
  2092. </errors>
  2093. <seealso>
  2094. <link id="FpGetPPid"/>
  2095. </seealso>
  2096. <example file="bunixex/ex16"/>
  2097. </element>
  2098. <!-- function Visibility: default -->
  2099. <element name="FpGetppid">
  2100. <short>Return parent process ID</short>
  2101. <descr>
  2102. <var>FpGetppid</var> returns the Process ID of the parent process.
  2103. </descr>
  2104. <errors>
  2105. None.
  2106. </errors>
  2107. <seealso>
  2108. <link id="FpGetPid"/>
  2109. </seealso>
  2110. <example file="bunixex/ex16"/>
  2111. </element>
  2112. <!-- function Visibility: default -->
  2113. <element name="FpGetuid">
  2114. <short>Return current user ID</short>
  2115. <descr>
  2116. <var>FpGetuid</var> returns the real user ID of the currently running process.
  2117. </descr>
  2118. <errors>
  2119. None.
  2120. </errors>
  2121. <seealso>
  2122. <link id="FpGetGid"/>
  2123. <link id="FpGetEUid"/>
  2124. <link id="FpGetEGid"/>
  2125. <link id="FpGetPid"/>
  2126. <link id="FpGetPPid"/>
  2127. <link id="fpSetUID"/>
  2128. </seealso>
  2129. <example file="bunixex/ex17"/>
  2130. </element>
  2131. <!-- function Visibility: default -->
  2132. <element name="FpGeteuid">
  2133. <short>Return effective user ID</short>
  2134. <descr>
  2135. <var>FpGeteuid</var> returns the effective user ID of the currently running process.
  2136. </descr>
  2137. <errors>
  2138. None.
  2139. </errors>
  2140. <seealso>
  2141. <link id="FpGetUid"/>
  2142. <link id="FpGetGid"/>
  2143. <link id="FpGetEGid"/>
  2144. <link id="FpGetPid"/>
  2145. <link id="FpGetPPid"/>
  2146. <link id="fpSetUID"/>
  2147. <link id="FpSetGid"/>
  2148. </seealso>
  2149. <example file="bunixex/ex17"/>
  2150. </element>
  2151. <!-- function Visibility: default -->
  2152. <element name="FpGetgid">
  2153. <short>Return real group ID</short>
  2154. <descr>
  2155. <var>FpGetgid</var> returns the real group ID of the currently running process.
  2156. </descr>
  2157. <errors>
  2158. None.
  2159. </errors>
  2160. <seealso>
  2161. <link id="FpGetEGid"/>
  2162. <link id="FpGetUid"/>
  2163. <link id="FpGetEUid"/>
  2164. <link id="FpGetPid"/>
  2165. <link id="FpGetPPid"/>
  2166. <link id="fpSetUID"/>
  2167. <link id="FpSetGid"/>
  2168. </seealso>
  2169. <example file="bunixex/ex18"/>
  2170. </element>
  2171. <!-- function Visibility: default -->
  2172. <element name="FpGetegid">
  2173. <short>Return effective group ID</short>
  2174. <descr>
  2175. <var>FpGetegid</var> returns the effective group ID of the currently running process.
  2176. </descr>
  2177. <errors>
  2178. None.
  2179. </errors>
  2180. <seealso>
  2181. <link id="FpGetGid"/>
  2182. <link id="FpGetUid"/>
  2183. <link id="FpGetEUid"/>
  2184. <link id="FpGetPid"/>
  2185. <link id="FpGetPPid"/>
  2186. <link id="fpSetUID"/>
  2187. <link id="FpSetGid"/>
  2188. </seealso>
  2189. <example file="bunixex/ex18"/>
  2190. </element>
  2191. <!-- function Visibility: default -->
  2192. <element name="FpSetuid">
  2193. <short>Set the current user ID</short>
  2194. <descr>
  2195. <p>
  2196. <var>fpSetUID</var> sets the user ID of the current process. This call will
  2197. only work if it is executed as root, or the program is setuid root.
  2198. </p>
  2199. <p>
  2200. On success, zero is returned, on error -1 is returned.
  2201. </p>
  2202. </descr>
  2203. <errors>
  2204. Extended error information can be retrieved with <link id="fpGetErrNo"/>.
  2205. </errors>
  2206. <seealso>
  2207. <link id="FpGetGid"/>
  2208. <link id="FpGetUid"/>
  2209. <link id="FpGetEUid"/>
  2210. <link id="FpGetEGid"/>
  2211. <link id="FpGetPid"/>
  2212. <link id="FpGetPPid"/>
  2213. <link id="FpSetGid"/>
  2214. </seealso>
  2215. </element>
  2216. <!-- function Visibility: default -->
  2217. <element name="FpSetgid">
  2218. <short>Set the current group ID</short>
  2219. <descr>
  2220. <p>
  2221. <var>fpSetUID</var> sets the group ID of the current process. This call will
  2222. only work if it is executed as root, or the program is setgid root.
  2223. </p>
  2224. <p>
  2225. On success, zero is returned, on error -1 is returned.
  2226. </p>
  2227. </descr>
  2228. <errors>
  2229. Extended error information can be retrieved with <link id="fpGetErrNo"/>.
  2230. </errors>
  2231. <seealso>
  2232. <link id="FpSetUid"/>
  2233. <link id="FpGetGid"/>
  2234. <link id="FpGetUid"/>
  2235. <link id="FpGetEUid"/>
  2236. <link id="FpGetEGid"/>
  2237. <link id="FpGetPid"/>
  2238. <link id="FpGetPPid"/>
  2239. </seealso>
  2240. </element>
  2241. <!-- function Visibility: default -->
  2242. <element name="FpGetgroups">
  2243. <short>Get the list of supplementary groups.</short>
  2244. <descr>
  2245. <p>
  2246. <var>FpGetgroups</var> returns up to <var>gidsetsize</var> groups in
  2247. <var>GroupList</var>
  2248. </p>
  2249. <p>
  2250. If the function is successful, then number of groups that were stored is
  2251. returned. On error, -1 is returned.
  2252. </p>
  2253. </descr>
  2254. <errors>
  2255. On error, -1 is returned. Extended error information can be retrieved with
  2256. <link id="fpGetErrNo"/>
  2257. </errors>
  2258. <seealso>
  2259. <link id="FpGetpgrp"/>
  2260. <link id="FpGetGID"/>
  2261. <link id="FpGetEGID"/>
  2262. </seealso>
  2263. </element>
  2264. <!-- function Visibility: default -->
  2265. <element name="FpGetpgrp">
  2266. <short>Get process group ID</short>
  2267. <descr>
  2268. <var>FpGetpgrp</var> returns the process group ID of the current process.
  2269. </descr>
  2270. <errors>
  2271. None.
  2272. </errors>
  2273. <seealso>
  2274. <link id="fpGetPID"/>
  2275. <link id="fpGetPPID"/>
  2276. <link id="FpGetGID"/>
  2277. <link id="FpGetUID"/>
  2278. </seealso>
  2279. </element>
  2280. <!-- function Visibility: default -->
  2281. <element name="FpSetsid">
  2282. <short>Create a new session.</short>
  2283. <descr>
  2284. <var>FpSetsid</var> creates a new session (process group). It returns the
  2285. new process group id (as returned by <link id="FpGetpgrp"/>. This call will
  2286. fail if the current process is already the process group leader.
  2287. </descr>
  2288. <errors>
  2289. On error, -1 is returned. Extended error information can be retrieved with
  2290. <link id="fpGetErrNo"/>
  2291. </errors>
  2292. <seealso>
  2293. </seealso>
  2294. </element>
  2295. <!-- function Visibility: default -->
  2296. <element name="FpFcntl">
  2297. <short>File control operations.</short>
  2298. <descr>
  2299. <p>
  2300. Read/set a file's attributes. <var>Fildes</var> a valid file descriptor.
  2301. <var>Cmd</var> speciefies what to do, and is one of the following:
  2302. </p>
  2303. <dl>
  2304. <dt>F_GetFd</dt>
  2305. <dd>Read the close_on_exec flag. If the low-order bit is 0, then
  2306. the file will remain open across execve calls.</dd>
  2307. <dt>F_GetFl</dt><dd>Read the descriptor's flags.</dd>
  2308. <dt>F_GetOwn</dt><dd>Get the Process ID of the owner of a socket.</dd>
  2309. <dt>F_SetFd</dt>
  2310. <dd>Set the close_on_exec flag of <var>fildes</var>. (only the least
  2311. siginificant bit is used).
  2312. </dd>
  2313. <dt>F_GetLk</dt>
  2314. <dd>Return the <var>flock</var> record that prevents this process from
  2315. obtaining the lock, or set the <var>l_type</var> field of the lock of there is no
  2316. obstruction. <var>Arg</var> is the flock record.
  2317. </dd>
  2318. <dt>F_SetLk</dt>
  2319. <dd> Set the lock or clear it (depending on <var>l_type</var> in the
  2320. <var>flock</var> structure). if the lock is held by another process, an error
  2321. occurs.
  2322. </dd>
  2323. <dt>F_GetLkw</dt>
  2324. <dd> Same as for <b>F_Setlk</b>, but wait until the lock is
  2325. released.
  2326. </dd>
  2327. <dt>F_SetOwn</dt>
  2328. <dd> Set the Process or process group that owns a socket.
  2329. </dd>
  2330. </dl>
  2331. <p>
  2332. The function returns 0 if successful, -1 otherwise.
  2333. </p>
  2334. </descr>
  2335. <errors>
  2336. <p>
  2337. On error, -1 is returned. Use <link id="fpGetErrno"/> for extended error information.
  2338. </p>
  2339. <dl>
  2340. <dt>sys_ebadf</dt><dd> <var>Fd</var> has a bad file descriptor.</dd>
  2341. <dt>sys_eagain or sys_eaccess</dt><dd> For \textbf{F_SetLk}, if the lock is
  2342. held by another process.</dd>
  2343. </dl>
  2344. </errors>
  2345. </element>
  2346. <!-- function Visibility: default -->
  2347. <element name="FpGetcwd">
  2348. <short>Retrieve the current working directory.</short>
  2349. <descr>
  2350. <p>
  2351. <var>fpgetCWD</var> returns the current working directory of the running
  2352. process. It is returned in <var>Path</var>, which points to a memory
  2353. location of at least <var>siz</var> bytes.
  2354. </p>
  2355. <p>
  2356. If the function is succesful, a pointer to <var>Path</var> is returned, or a
  2357. string with the result. On error <var>Nil</var> or an empty string are
  2358. returned.
  2359. </p>
  2360. </descr>
  2361. <errors>
  2362. On error <var>Nil</var> or an empty string are returned.
  2363. </errors>
  2364. <seealso>
  2365. <link id="FpGetPID"/>
  2366. <link id="FpGetUID"/>
  2367. </seealso>
  2368. </element>
  2369. <!-- function Visibility: default -->
  2370. <element name="FpFork">
  2371. <short>Create child process</short>
  2372. <descr>
  2373. <var>FpFork</var> creates a child process which is a copy of the parent process.
  2374. <var>FpFork</var> returns the process ID in the parent process, and zero in the child's
  2375. process. (you can get the parent's PID with <link id="fpGetPPid"/>).
  2376. </descr>
  2377. <errors>
  2378. <p>
  2379. On error, -1 is returned to the parent, and no child is created.
  2380. </p>
  2381. <dl>
  2382. <dt>sys_eagain</dt><dd> Not enough memory to create child process.
  2383. </dd>
  2384. </dl>
  2385. </errors>
  2386. <seealso>
  2387. <link id="fpExecve"/>
  2388. <link id="#rtl.linux.Clone"/>
  2389. </seealso>
  2390. </element>
  2391. <!-- function Visibility: default -->
  2392. <element name="FpExecve">
  2393. <short>Execute process using environment</short>
  2394. <descr>
  2395. Replaces the currently running program with the program, specified in
  2396. <var>path</var>.
  2397. It gives the program the options in <var>argv</var>, and the environment in
  2398. <var>envp</var>. They are pointers to an array of pointers to null-terminated
  2399. strings. The last pointer in this array should be <var>nil</var>.
  2400. On success, <var>execve</var> does not return.
  2401. </descr>
  2402. <errors>
  2403. <p>
  2404. Extended error information can be retrieved with <link id="fpGetErrno"/>,
  2405. and includes the following:
  2406. </p>
  2407. <dl>
  2408. <dt>sys_eacces</dt>
  2409. <dd> File is not a regular file, or has no execute permission.
  2410. A compononent of the path has no search permission.</dd>
  2411. <dt>sys_eperm</dt><dd> The file system is mounted \textit{noexec}.</dd>
  2412. <dt>sys_e2big</dt><dd> Argument list too big.</dd>
  2413. <dt>sys_enoexec</dt><dd> The magic number in the file is incorrect.</dd>
  2414. <dt>sys_enoent</dt><dd> The file does not exist.</dd>
  2415. <dt>sys_enomem</dt><dd> Not enough memory for kernel.</dd>
  2416. <dt>sys_enotdir</dt><dd> A component of the path is not a directory.</dd>
  2417. <dt>sys_eloop</dt><dd> The path contains a circular reference (via symlinks).</dd>
  2418. </dl>
  2419. </errors>
  2420. <seealso>
  2421. <link id="fpExecv"/>
  2422. <link id="fpFork"/>
  2423. </seealso>
  2424. <example file="bunixex/ex7"/>
  2425. </element>
  2426. <!-- function Visibility: default -->
  2427. <element name="FpExecv">
  2428. <short>Execute process</short>
  2429. <descr>
  2430. Replaces the currently running program with the program, specified in
  2431. <var>path</var>.
  2432. It gives the program the options in <var>argvp</var>.
  2433. This is a pointer to an array of pointers to null-terminated
  2434. strings. The last pointer in this array should be nil.
  2435. The current environment is passed to the program.
  2436. On success, <var>execv</var> does not return.
  2437. </descr>
  2438. <errors>
  2439. <p>
  2440. Errors are reported in <var>LinuxError</var>:
  2441. </p>
  2442. <dl>
  2443. <dt>sys_eacces</dt>
  2444. <dd> File is not a regular file, or has no execute permission.
  2445. A compononent of the path has no search permission.</dd>
  2446. <dt>sys_eperm</dt><dd> The file system is mounted \textit{noexec}.</dd>
  2447. <dt>sys_e2big</dt><dd> Argument list too big.</dd>
  2448. <dt>sys_enoexec</dt><dd> The magic number in the file is incorrect.</dd>
  2449. <dt>sys_enoent</dt><dd> The file does not exist.</dd>
  2450. <dt>sys_enomem</dt><dd> Not enough memory for kernel.</dd>
  2451. <dt>sys_enotdir</dt><dd> A component of the path is not a directory.</dd>
  2452. <dt>sys_eloop</dt><dd> The path contains a circular reference (via symlinks).</dd>
  2453. </dl>
  2454. </errors>
  2455. <seealso>
  2456. <link id="fpExecve"/>
  2457. <link id="fpFork"/>
  2458. </seealso>
  2459. <example file="bunixex/ex8"/>
  2460. </element>
  2461. <!-- function Visibility: default -->
  2462. <element name="FpWaitpid">
  2463. <short>Wait for a process to terminate</short>
  2464. <descr>
  2465. <p>
  2466. <var>fpWaitPid</var> waits for a child process with process ID <var>Pid</var> to exit. The
  2467. value of <var>Pid</var> can be one of the following:
  2468. </p>
  2469. <dl>
  2470. <dt>Pid &lt; -1</dt>
  2471. <dd> Causes <var>fpWaitPid</var> to wait for any child process whose
  2472. process group ID equals the absolute value of <var>pid</var>.</dd>
  2473. <dt>Pid = -1</dt>
  2474. <dd>Causes <var>fpWaitPid</var> to wait for any child process.</dd>
  2475. <dt>Pid = 0</dt>
  2476. <dd>Causes <var>fpWaitPid</var> to wait for any child process whose
  2477. process group ID equals the one of the calling process.</dd>
  2478. <dt>Pid &gt; 0</dt>
  2479. <dd> Causes <var>fpWaitPid</var> to wait for the child whose process ID
  2480. equals the value of <var>Pid</var>.</dd>
  2481. </dl>
  2482. <p>
  2483. The <var>Options</var> parameter can be used to specify further how <var>fpWaitPid</var>
  2484. behaves:
  2485. </p>
  2486. <dl>
  2487. <dt>WNOHANG</dt>
  2488. <dd> Causes <var>fpWaitpid</var> to return immediately if no child hasexited.</dd>
  2489. <dt>WUNTRACED</dt>
  2490. <dd> Causes <var>fpWaitPid</var> to return also for children which are
  2491. stopped, but whose status has not yet been reported.</dd>
  2492. <dt>__WCLONE</dt>
  2493. <dd> Causes <var>fpWaitPid</var> also to wait for threads created by
  2494. the <link id="#rtl.linux.Clone"/> call.</dd>
  2495. </dl>
  2496. <p>
  2497. The exit status of the process that caused <var>fpWaitPID</var> is reported
  2498. in <var>stat_loc</var> or <var>Status</var>.
  2499. </p>
  2500. <p>
  2501. Upon return, it returns the process id of the process that exited, 0 if no
  2502. process exited, or -1 in case of failure.
  2503. </p>
  2504. <p>
  2505. For an example, see <link id="fpFork"/>.
  2506. </p>
  2507. </descr>
  2508. <errors>
  2509. Extended error information can be retrieved using <link id="fpgetErrno"/>.
  2510. </errors>
  2511. <seealso>
  2512. <link id="fpFork"/>
  2513. <link id="fpExecve"/>
  2514. <link id="fpWait"/>
  2515. </seealso>
  2516. </element>
  2517. <!-- function Visibility: default -->
  2518. <element name="FpWait">
  2519. <short>Wait for a child to exit.</short>
  2520. <descr>
  2521. <p>
  2522. <var>fpWait</var> suspends the current process and
  2523. waits for any child to exit or stop due to a signal.
  2524. It reports the exit status of the exited child
  2525. in <var>stat_loc</var>.
  2526. </p>
  2527. <p>
  2528. The return value of the function is the process ID of the child that
  2529. exited, or -1 on error.
  2530. </p>
  2531. </descr>
  2532. <errors>
  2533. Extended error information can be retrieved using <link id="fpgetErrno"/>.
  2534. </errors>
  2535. <seealso>
  2536. <link id="fpFork"/>
  2537. <link id="fpExecve"/>
  2538. <link id="fpWaitPid"/>
  2539. </seealso>
  2540. </element>
  2541. <!-- procedure Visibility: default -->
  2542. <element name="FpExit">
  2543. <short>Exit the current process</short>
  2544. <descr>
  2545. <p>
  2546. <var>FpExit</var> exits the currently running process, and report
  2547. <var>Status</var> as the exit status.
  2548. </p>
  2549. <remark>
  2550. If this call is executed, the normal unit finalization code will not be
  2551. executed. This may lead to unexpected errors and stray files on your system.
  2552. It is therefore recommended to use the <var>Halt</var> call instead.
  2553. </remark>
  2554. </descr>
  2555. <errors>
  2556. None.
  2557. </errors>
  2558. <seealso>
  2559. <link id="FpFork"/>
  2560. <link id="FpExecve"/>
  2561. </seealso>
  2562. </element>
  2563. <!-- function Visibility: default -->
  2564. <element name="FpKill">
  2565. <short>Send a signal to a process</short>
  2566. <descr>
  2567. <p>
  2568. <var>fpKill</var> sends a signal <var>Sig</var> to a process or process group. If <var>Pid</var>&gt;0 then
  2569. the signal is sent to <var>Pid</var>, if it equals -1, then the signal is sent to
  2570. all processes except process 1. If <var>Pid</var>&lt;-1 then the signal is sent to
  2571. process group -Pid.
  2572. </p>
  2573. <p>
  2574. The return value is zero, except in case three, where the return value is the
  2575. number of processes to which the signal was sent.
  2576. </p>
  2577. </descr>
  2578. <errors>
  2579. <p>
  2580. Extended error information can be retrieved using <link id="fpGetErrno"/>:
  2581. </p>
  2582. <dl>
  2583. <dt>sys_einval</dt><dd> An invalid signal is sent.</dd>
  2584. <dt>sys_esrch</dt><dd> The <var>Pid</var> or process group don't exist.</dd>
  2585. <dt>sys_eperm</dt><dd> The effective userid of the current process doesn't math
  2586. the one of process <var>Pid</var>.</dd>
  2587. </dl>
  2588. </errors>
  2589. <seealso>
  2590. <link id="FpSigAction"/>
  2591. <link id="FpSignal"/>
  2592. </seealso>
  2593. </element>
  2594. <!-- function Visibility: default -->
  2595. <element name="FpUname">
  2596. <short>Return system name.</short>
  2597. <descr>
  2598. <p>
  2599. <var>Uname</var> gets the name and configuration of the current linux kernel,
  2600. and returns it in the <var>name</var> record.
  2601. </p>
  2602. <p>
  2603. On success, 0 is returned, on error, -1 is returned.
  2604. </p>
  2605. </descr>
  2606. <errors>
  2607. Extended error information can be retrieved using <link id="fpGetErrno"/>.
  2608. </errors>
  2609. <seealso>
  2610. <link id="FpUTime"/>
  2611. </seealso>
  2612. </element>
  2613. <!-- function Visibility: default -->
  2614. <element name="FpOpendir">
  2615. <short>Open a directory for reading</short>
  2616. <descr>
  2617. <var>FpOpenDir</var> opens the directory <var>DirName</var>, and returns a
  2618. <var>pdir</var> pointer to a <link id="Dir"/> record, which can be used to
  2619. read the directory structure. If the directory cannot be opened, <var>nil
  2620. </var> is returned.
  2621. </descr>
  2622. <errors>
  2623. Extended error information can be retrieved using <link id="fpGetErrno"/>.
  2624. </errors>
  2625. <seealso>
  2626. <link id="FpCloseDir"/>
  2627. <link id="FpReadDir"/>
  2628. </seealso>
  2629. <example file="bunixex/ex35"/>
  2630. </element>
  2631. <!-- function Visibility: default -->
  2632. <element name="FpReaddir">
  2633. <short>Read entry from directory</short>
  2634. <descr>
  2635. <p>
  2636. <var>FpReadDir</var> reads the next entry in the directory pointed to by
  2637. <var>dirp</var>.
  2638. It returns a <var>pdirent</var> pointer to a <link id="dirent"/> record describing the entry.
  2639. If the next entry can't be read, <var>Nil</var> is returned.
  2640. </p>
  2641. <p>
  2642. For an example, see <link id="FpOpenDir"/>.
  2643. </p>
  2644. </descr>
  2645. <errors>
  2646. Extended error information can be retrieved using <link id="fpGetErrno"/>.
  2647. </errors>
  2648. <seealso>
  2649. <link id="FpCloseDir"/>
  2650. <link id="FpOpenDir"/>
  2651. </seealso>
  2652. </element>
  2653. <!-- function Visibility: default -->
  2654. <element name="FpClosedir">
  2655. <short>Close directory file descriptor</short>
  2656. <descr>
  2657. <p>
  2658. <var>FpCloseDir</var> closes the directory pointed to by <var>dirp</var>.
  2659. It returns zero if the directory was closed succesfully, -1 otherwise.
  2660. </p>
  2661. <p>
  2662. For an example, see <link id="fpOpenDir"/>.
  2663. </p>
  2664. </descr>
  2665. <errors>
  2666. Extended error information can be retrieved using <link id="fpGetErrno"/>.
  2667. </errors>
  2668. <seealso>
  2669. <link id="FpOpenDir"/>
  2670. <link id="FpReadDir"/>
  2671. </seealso>
  2672. </element>
  2673. <!-- function Visibility: default -->
  2674. <element name="FpChdir">
  2675. <short>Change current working directory.</short>
  2676. <descr>
  2677. <p>
  2678. <var>fpChDir</var> sets the current working directory to <var>Path</var>.
  2679. </p>
  2680. <p>
  2681. It returns zero if the call was succesful, -1 on error.
  2682. </p>
  2683. </descr>
  2684. <errors>
  2685. Extended error information can be retrieved using <link id="fpGetErrno"/>.
  2686. </errors>
  2687. <seealso>
  2688. <link id="fpGetCwd"/>
  2689. </seealso>
  2690. </element>
  2691. <!-- function Visibility: default -->
  2692. <element name="FpOpen">
  2693. <short>Open file and return file descriptor</short>
  2694. <descr>
  2695. <p>
  2696. <var>FpOpen</var> opens a file in <var>Path</var> with flags <var>flags</var>
  2697. and mode <var>Mode</var>
  2698. One of the following:
  2699. </p>
  2700. <dl>
  2701. <dt>O_RdOnly</dt><dd>File is opened Read-only</dd>
  2702. <dt>O_WrOnly</dt><dd>File is opened Write-only</dd>
  2703. <dt>O_RdWr</dt><dd>File is opened Read-Write</dd>
  2704. </dl>
  2705. <p>
  2706. The flags may be<var>OR</var>-ed with one of the following constants:
  2707. </p>
  2708. <dl>
  2709. <dt>O_Creat</dt><dd> File is created if it doesn't exist.</dd>
  2710. <dt>O_Excl</dt><dd> If the file is opened with <var>O_Creat</var> and it
  2711. already exists, the call wil fail.</dd>
  2712. <dt>O_NoCtty</dt><dd> If the file is a terminal device, it will NOT become
  2713. the process' controlling terminal.</dd>
  2714. <dt>O_Trunc</dt><dd> If the file exists, it will be truncated.</dd>
  2715. <dt>O_Append</dt><dd> the file is opened in append mode. <em>Before each
  2716. write</em>, the file pointer is positioned at the end of the file.</dd>
  2717. <dt>O_NonBlock</dt><dd> The file is opened in non-blocking mode. No operation
  2718. on the file descriptor will cause the calling process to wait till.</dd>
  2719. <dt>O_NDelay</dt><dd> Idem as <var>O_NonBlock</var></dd>
  2720. <dt>O_Sync</dt><dd> The file is opened for synchronous IO. Any write
  2721. operation on the file will not return untill the data is physically written
  2722. to disk.</dd>
  2723. <dt>O_NoFollow</dt><dd> if the file is a symbolic link, the open fails.
  2724. (linux 2.1.126 and higher only)</dd>
  2725. <dt>O_Directory</dt><dd> if the file is not a directory, the open fails.
  2726. (linux 2.1.126 and higher only)</dd>
  2727. </dl>
  2728. <p>
  2729. <var>Path</var> can be of type <var>PChar</var> or <var>String</var>.
  2730. The optional <var>mode</var> argument specifies the permissions to set when opening
  2731. the file. This is modified by the umask setting. The real permissions are
  2732. <var>Mode and not umask</var>.
  2733. The return value of the function is the filedescriptor, or a negative
  2734. value if there was an error.
  2735. </p>
  2736. </descr>
  2737. <errors>
  2738. Extended error information can be retrieved using <link id="fpGetErrno"/>.
  2739. </errors>
  2740. <seealso>
  2741. <link id="FpClose"/>
  2742. <link id="FpRead"/>
  2743. <link id="FpWrite"/>
  2744. <link id="FpFTruncate"/>
  2745. <link id="FpLSeek"/>
  2746. </seealso>
  2747. <example file="bunixex/ex19"/>
  2748. </element>
  2749. <!-- function Visibility: default -->
  2750. <element name="FpMkdir">
  2751. <short>Create a new directory</short>
  2752. <descr>
  2753. <p>
  2754. <var>FpMkDir</var> creates a new directory <var>Path</var>, and sets the new
  2755. directory's mode to <var>Mode</var>. Path can be an absolute path or a
  2756. relative path. Note that only the last element of the directory will be
  2757. created, higher level directories must already exist, and must be writeable
  2758. by the current user.
  2759. </p>
  2760. <p>
  2761. On succes, 0 is returned. if the function fails, -1 is returned.
  2762. </p>
  2763. </descr>
  2764. <errors>
  2765. Extended error information can be retrieved using <link id="fpGetErrno"/>.
  2766. </errors>
  2767. <seealso>
  2768. <link id="fpGetCWD"/>
  2769. <link id="fpChDir"/>
  2770. </seealso>
  2771. </element>
  2772. <!-- function Visibility: default -->
  2773. <element name="FpUnlink">
  2774. <short>Unlink (i.e. remove) a file.</short>
  2775. <descr>
  2776. <p>
  2777. <var>FpUnLink</var> decreases the link count on file <var>Path</var>. <var>Path</var> can be
  2778. of type <var>AnsiString</var> or <var>PChar</var>. If the link count is zero, the
  2779. file is removed from the disk.
  2780. </p>
  2781. <p>
  2782. The function returns zero if the call was succesfull, a nonzero value
  2783. indicates failure.
  2784. </p>
  2785. <p>
  2786. For an example, see <link id="FpLink"/>.
  2787. </p>
  2788. </descr>
  2789. <errors>
  2790. <p>
  2791. Extended error information can be retrieved using <link id="fpGetErrno"/>.
  2792. </p>
  2793. <dl>
  2794. <dt>sys_eaccess</dt>
  2795. <dd>You have no write access right in the directory containing <var>Path</var>,
  2796. or you have no search permission in one of the directory components of
  2797. <var>Path</var>.</dd>
  2798. <dt>sys_eperm</dt>
  2799. <dd>The directory containing pathname has the sticky-bit set and the process's
  2800. effective uid is neither the uid of the file to be deleted nor that of the
  2801. directory containing it.</dd>
  2802. <dt>sys_enoent</dt><dd>A component of the path doesn't exist.</dd>
  2803. <dt>sys_enotdir</dt><dd>A directory component of the path is not a directory.</dd>
  2804. <dt>sys_eisdir</dt><dd><var>Path</var> refers to a directory.</dd>
  2805. <dt>sys_enomem</dt><dd>Insufficient kernel memory.</dd>
  2806. <dt>sys_erofs</dt><dd><var>Path</var> is on a read-only filesystem.</dd>
  2807. </dl>
  2808. </errors>
  2809. <seealso>
  2810. <link id="FpLink"/>
  2811. <link id="#rtl.unix.FpSymLink"/>
  2812. </seealso>
  2813. </element>
  2814. <!-- function Visibility: default -->
  2815. <element name="FpRmdir">
  2816. <short>Remove a directory.</short>
  2817. <descr>
  2818. <p>
  2819. <var>FpRmdir</var> removes the directory <var>Path</var> from the system.
  2820. The directory must be empty for this call to succeed, and the user must have
  2821. the necessary permissions in the parent directory. Only the last component
  2822. of the directory is removed, i.e. higher-lying directories are not removed.
  2823. </p>
  2824. <p>
  2825. On success, zero is returned. A nonzero return value indicates failure.
  2826. </p>
  2827. </descr>
  2828. <errors>
  2829. Extended error information can be retrieved using <link id="fpGetErrno"/>.
  2830. </errors>
  2831. <seealso>
  2832. </seealso>
  2833. </element>
  2834. <!-- function Visibility: default -->
  2835. <element name="FpRename">
  2836. <short>Rename file</short>
  2837. <descr>
  2838. <p>
  2839. <var>FpRename</var> renames the file <var>Old</var> to <var>NewPath</var>.
  2840. <var>NewPath</var> can be in a different directory than <var>Old</var>, but it cannot be on
  2841. another partition (device). Any existing file on the new location will be replaced.
  2842. </p>
  2843. <p>
  2844. If the operation fails, then the <var>Old</var> file will be preserved.
  2845. </p>
  2846. <p>
  2847. The function returns zero on succes, a nonzero value indicates failure.
  2848. </p>
  2849. </descr>
  2850. <errors>
  2851. <p>
  2852. Extended error information can be retrieved using <link id="fpGetErrno"/>.
  2853. </p>
  2854. <dl>
  2855. <dt>sys_eisdir</dt>
  2856. <dd><var>NewPath</var> exists and is a directory, but <var>Old</var> is not a directory.</dd>
  2857. <dt>sys_exdev</dt>
  2858. <dd><var>NewPath</var> and <var>Old</var> are on different devices.</dd>
  2859. <dt>sys_enotempty or sys_eexist</dt>
  2860. <dd><var>NewPath</var> is an existing, non-empty directory. </dd>
  2861. <dt>sys_ebusy</dt>
  2862. <dd><var>Old</var> or <var>NewPath</var> is a directory and is in use by another process.</dd>
  2863. <dt>sys_einval</dt>
  2864. <dd><var>NewPath</var> is part of <var>Old</var>.</dd>
  2865. <dt>sys_emlink</dt>
  2866. <dd><var>OldPath</var> or <var>NewPath</var> already have tha maximum
  2867. amount of links pointing to them.</dd>
  2868. <dt>sys_enotdir</dt>
  2869. <dd>part of <var>Old</var> or <var>NewPath</var> is not directory.</dd>
  2870. <dt>sys_efault</dt>
  2871. <dd>For the <var>pchar</var> case: One of the pointers points to
  2872. an invalid address.</dd>
  2873. <dt>sys_eaccess</dt>
  2874. <dd>access is denied when attempting to move the file.</dd>
  2875. <dt>sys_enametoolong</dt>
  2876. <dd> Either <var>Old</var> or <var>NewPath</var> is too long.</dd>
  2877. <dt>sys_enoent</dt>
  2878. <dd>a directory component in <var>Old</var> or <var>NewPath</var>
  2879. didn't exist.</dd>
  2880. <dt>sys_enomem</dt>
  2881. <dd>not enough kernel memory.</dd>
  2882. <dt>sys_erofs</dt>
  2883. <dd><var>NewPath</var> or <var>Old</var> is on a read-only file system.</dd>
  2884. <dt>sys_eloop</dt>
  2885. <dd> too many symbolic links were encountered trying to expand
  2886. <var>Old</var> or <var>NewPath</var></dd>
  2887. <dt>sys_enospc</dt>
  2888. <dd> the filesystem has no room for the new directory entry.</dd>
  2889. </dl>
  2890. </errors>
  2891. <seealso>
  2892. <link id="FpUnLink"/>
  2893. </seealso>
  2894. </element>
  2895. <!-- function Visibility: default -->
  2896. <element name="FpFStat">
  2897. <short>Retrieve file information about a file descriptor.</short>
  2898. <descr>
  2899. <p>
  2900. <var>FpFStat</var> gets information about the file specified in one of the
  2901. following:
  2902. </p>
  2903. <dl>
  2904. <dt>Fd</dt><dd> a valid file descriptor.</dd>
  2905. <dt>F</dt><dd> an opened text file or untyped file.</dd>
  2906. </dl>
  2907. <p>
  2908. and stores it in <var>Info</var>, which is of type <link id="stat"/>.
  2909. The function returns zero if the call was succesfull,
  2910. a nonzero return value indicates failure.
  2911. </p>
  2912. </descr>
  2913. <errors>
  2914. <p>
  2915. Extended error information can be retrieved using <link id="fpGetErrno"/>.
  2916. </p>
  2917. <dl>
  2918. <dt>sys_enoent</dt><dd> <var>Path</var> does not exist.</dd>
  2919. </dl>
  2920. </errors>
  2921. <seealso>
  2922. <link id="FpStat"/>
  2923. <link id="#rtl.unix.FpLStat"/>
  2924. </seealso>
  2925. <example file="bunixex/ex28"/>
  2926. </element>
  2927. <!-- function Visibility: default -->
  2928. <element name="FpStat">
  2929. <short>Retrieve file information about a file descriptor.</short>
  2930. <descr>
  2931. <p>
  2932. <var>FpFStat</var> gets information about the file specified in
  2933. <var>Path</var>, and stores it in <var>Info</var>, which is of
  2934. type <link id="stat"/>.
  2935. The function returns zero if the call was succesfull,
  2936. a nonzero return value indicates failure.
  2937. </p>
  2938. </descr>
  2939. <errors>
  2940. <p>
  2941. Extended error information can be retrieved using <link id="fpGetErrno"/>.
  2942. </p>
  2943. <dl>
  2944. <dt>sys_enoent</dt><dd> <var>Path</var> does not exist.</dd>
  2945. </dl>
  2946. </errors>
  2947. <seealso>
  2948. <link id="FpStat"/>
  2949. <link id="#rtl.unix.FpLStat"/>
  2950. </seealso>
  2951. <example file="bunixex/ex28"/>
  2952. </element>
  2953. <!-- function Visibility: default -->
  2954. <element name="FpAccess">
  2955. <short>Check file access</short>
  2956. <descr>
  2957. <p>
  2958. <var>FpAccess</var> tests user's access rights on the specified file.
  2959. <var>Mode</var> is a mask existing of one or more of the following:
  2960. </p>
  2961. <dl>
  2962. <dt>R_OK</dt><dd>User has read rights.</dd>
  2963. <dt>W_OK</dt><dd>User has write rights.</dd>
  2964. <dt>X_OK</dt><dd>User has execute rights.</dd>
  2965. <dt>F_OK</dt><dd>File exists.</dd>
  2966. </dl>
  2967. <p>
  2968. The test is done with the real user ID, instead of the effective user ID.
  2969. If the user has the requested rights, zero is returned. If access is denied,
  2970. or an error occurred, a nonzero value is returned.
  2971. </p>
  2972. </descr>
  2973. <errors>
  2974. <p>
  2975. Extended error information can be retrieved using <link id="fpGetErrno"/>.
  2976. </p>
  2977. <dl>
  2978. <dt>sys_eaccess</dt>
  2979. <dd> The requested access is denied, either to the file or one
  2980. of the directories in its path.</dd>
  2981. <dt>sys_einval</dt>
  2982. <dd><var>Mode</var> was incorrect.</dd>
  2983. <dt>sys_enoent</dt>
  2984. <dd>A directory component in <var>Path</var> doesn't exist or is a
  2985. dangling symbolic link.</dd>
  2986. <dt>sys_enotdir</dt>
  2987. <dd> A directory component in <var>Path</var> is not a directory.</dd>
  2988. <dt>sys_enomem</dt>
  2989. <dd> Insufficient kernel memory.</dd>
  2990. <dt>sys_eloop</dt>
  2991. <dd> <var>Path</var> has a circular symbolic link.</dd>
  2992. </dl>
  2993. </errors>
  2994. <seealso>
  2995. <link id="FpChown"/>
  2996. <link id="FpChmod"/>
  2997. </seealso>
  2998. <example file="bunixex/ex26"/>
  2999. </element>
  3000. <!-- function Visibility: default -->
  3001. <element name="FpClose">
  3002. <short>Close file descriptor</short>
  3003. <descr>
  3004. <p>
  3005. <var>FpClose</var> closes a file with file descriptor <var>Fd</var>. The function
  3006. returns zero if the file was closed successfully, a nonzero return value
  3007. indicates an error.
  3008. </p>
  3009. <p>
  3010. For an example, see <link id="FpOpen"/>.
  3011. </p>
  3012. </descr>
  3013. <errors>
  3014. Extended error information can be retrieved using <link id="fpGetErrno"/>.
  3015. </errors>
  3016. <seealso>
  3017. <link id="FpOpen"/>
  3018. <link id="FpRead"/>
  3019. <link id="FpWrite"/>
  3020. <link id="FpFTruncate"/>
  3021. <link id="FpLSeek"/>
  3022. </seealso>
  3023. </element>
  3024. <!-- function Visibility: default -->
  3025. <element name="FpRead">
  3026. <short>Read data from file descriptor</short>
  3027. <descr>
  3028. <p>
  3029. <var>FpdRead</var> reads at most <var>nbytes</var> bytes from the file descriptor
  3030. <var>fd</var>, and stores them in <var>buf</var>.
  3031. </p>
  3032. <p>
  3033. The function returns the number of bytes actually read, or -1 if
  3034. an error occurred.
  3035. No checking on the length of <var>buf</var> is done.
  3036. </p>
  3037. </descr>
  3038. <errors>
  3039. Extended error information can be retrieved using <link id="fpGetErrno"/>.
  3040. </errors>
  3041. <seealso>
  3042. <link id="FpOpen"/>
  3043. <link id="FpClose"/>
  3044. <link id="FpWrite"/>
  3045. <link id="FpFTruncate"/>
  3046. <link id="FpLSeek"/>
  3047. </seealso>
  3048. <example file="bunixex/ex20"/>
  3049. </element>
  3050. <!-- function Visibility: default -->
  3051. <element name="FpWrite">
  3052. <short>Write data to file descriptor</short>
  3053. <descr>
  3054. <p>
  3055. <var>FpWrite</var> writes at most <var>nbytes</var> bytes from <var>buf</var> to
  3056. file descriptor <var>fd</var>.
  3057. </p>
  3058. <p>
  3059. The function returns the number of bytes actually written, or -1 if an error
  3060. occurred.
  3061. </p>
  3062. </descr>
  3063. <errors>
  3064. Extended error information can be retrieved using <link id="fpGetErrno"/>.
  3065. </errors>
  3066. <seealso>
  3067. <link id="FpOpen"/>
  3068. <link id="FpClose"/>
  3069. <link id="FpRead"/>
  3070. <link id="FpFTruncate"/>
  3071. <link id="FpLSeek"/>
  3072. </seealso>
  3073. </element>
  3074. <!-- function Visibility: default -->
  3075. <element name="FpLseek">
  3076. <short>Set file pointer position.</short>
  3077. <descr>
  3078. <p>
  3079. <var>FpLSeek</var> sets the current fileposition of file <var>fd</var> to
  3080. <var>Offset</var>, starting from <var>Whence</var>, which can be one of the following:
  3081. </p>
  3082. <dl>
  3083. <dt>Seek_Set</dt><dd><var>Offset</var> is the absolute position in the file.</dd>
  3084. <dt>Seek_Cur</dt><dd><var>Offset</var> is relative to the current position.</dd>
  3085. <dt>Seek_end</dt><dd><var>Offset</var> is relative to the end of the file.</dd>
  3086. </dl>
  3087. <p>
  3088. The function returns the new fileposition, or -1 of an error occurred.
  3089. </p>
  3090. <p>
  3091. For an example, see <link id="FpOpen"/>.
  3092. </p>
  3093. </descr>
  3094. <errors>
  3095. Extended error information can be retrieved using <link id="fpGetErrno"/>.
  3096. </errors>
  3097. <seealso>
  3098. <link id="FpOpen"/>
  3099. <link id="FpWrite"/>
  3100. <link id="FpClose"/>
  3101. <link id="FpRead"/>
  3102. <link id="FpFTruncate"/>
  3103. </seealso>
  3104. </element>
  3105. <!-- function Visibility: default -->
  3106. <element name="FpTime">
  3107. <short>Return the current unix time</short>
  3108. <descr>
  3109. <p>
  3110. <var>FpTime</var> returns the number of seconds since 00:00:00 GMT, january 1, 1970.
  3111. it is adjusted to the local time zone, but not to DST. The result is also
  3112. stored in <var>tloc</var>, if it is specified.
  3113. </p>
  3114. </descr>
  3115. <errors>
  3116. On error, -1 is returned. Extended error information can be retrieved using
  3117. <link id="fpGetErrno"/>.
  3118. </errors>
  3119. <example file="bunixex/ex1"/>
  3120. </element>
  3121. <!-- function Visibility: default -->
  3122. <element name="FpFtruncate">
  3123. <short>Truncate file on certain size.</short>
  3124. <descr>
  3125. <p>
  3126. <var>FpFTruncate</var> sets the length of a file in <var>fd</var> on
  3127. <var>flength</var>
  3128. bytes, where <var>flength</var> must be less than or equal to the current length of
  3129. the file in <var>fd</var>.
  3130. </p>
  3131. <p>
  3132. The function returns zero if the call was successful, a nonzero return value
  3133. indicates that an error occurred.
  3134. </p>
  3135. </descr>
  3136. <errors>
  3137. Extended error information can be retrieved using <link id="fpGetErrno"/>.
  3138. </errors>
  3139. <seealso>
  3140. <link id="FpOpen"/>
  3141. <link id="FpClose"/>
  3142. <link id="FpRead"/>
  3143. <link id="FpWrite"/>
  3144. <link id="FpLSeek"/>
  3145. </seealso>
  3146. </element>
  3147. <!-- function Visibility: default -->
  3148. <element name="FPSigaction">
  3149. <short>Install signal handler</short>
  3150. <descr>
  3151. <p>
  3152. <var>FPSigaction</var> changes the action to take upon receipt of a signal.
  3153. <var>Act</var> and
  3154. <var>Oact</var> are pointers to a <link id="SigActionRec"/> record.
  3155. <var>Sig</var> specifies the signal, and can be any signal except
  3156. <b>SIGKILL</b> or <b>SIGSTOP</b>.
  3157. </p>
  3158. <p>
  3159. If <var>Act</var> is non-nil, then the new action for signal <var>Sig</var> is taken
  3160. from it. If <var>OAct</var> is non-nil, the old action is stored there.
  3161. <var>Sa_Handler</var> may be <var>SIG_DFL</var> for the default action or
  3162. <var>SIG_IGN</var> to ignore the signal.
  3163. <var>Sa_Mask</var> Specifies which signals should be ignord during the execution
  3164. of the signal handler.
  3165. <var>Sa_Flags</var> Speciefies a series of flags which modify the behaviour of
  3166. the signal handler. You can 'or' none or more of the following :
  3167. </p>
  3168. <dl>
  3169. <dt>SA_NOCLDSTOP</dt>
  3170. <dd>If <var>sig</var> is <b>SIGCHLD</b> do not receive notification when child processes stop.
  3171. </dd>
  3172. <dt>SA_ONESHOT or SA_RESETHAND</dt>
  3173. <dd>Restore the signal action to the default
  3174. state once the signal handler has been called.
  3175. </dd>
  3176. <dt>SA_RESTART</dt>
  3177. <dd>For compatibility with BSD signals.</dd>
  3178. <dt>SA_NOMASK or SA_NODEFER</dt>
  3179. <dd>Do not prevent the signal from being received from within its own signal handler.
  3180. </dd>
  3181. </dl>
  3182. </descr>
  3183. <errors>
  3184. <p>
  3185. Extended error information can be retrieved using <link id="fpGetErrno"/>.
  3186. </p>
  3187. <dl>
  3188. <dt>sys_einval</dt>
  3189. <dd>an invalid signal was specified, or it was <b>SIGKILL</b> or <b>SIGSTOP</b>. </dd>
  3190. <dt>sys_efault</dt>
  3191. <dd><var>Act,OldAct</var> point outside this process address space </dd>
  3192. <dt>sys_eintr</dt><dd> System call was interrupted.</dd>
  3193. </dl>
  3194. </errors>
  3195. <seealso>
  3196. <link id="FpSigProcMask"/>
  3197. <link id="FpSigPending"/>
  3198. <link id="FpSigSuspend"/>
  3199. <link id="FpKill"/>
  3200. </seealso>
  3201. <example file="bunixex/ex57"/>
  3202. </element>
  3203. <!-- function Visibility: default -->
  3204. <element name="FPSelect">
  3205. <short>Wait for events on file descriptors</short>
  3206. <descr>
  3207. <p>
  3208. <var>FpSelect</var> checks one of the file descriptors in the <var>FDSets</var> to see if its
  3209. status changed.
  3210. </p>
  3211. <p>
  3212. <var>readfds, writefds</var> and <var>exceptfds</var> are pointers to arrays of 256
  3213. bits. If you want a file descriptor to be checked, you set the
  3214. corresponding element in the array to 1. The other elements in the array
  3215. must be set to zero. Three arrays are passed : The entries in <var>readfds</var>
  3216. are checked to see if characters become available for reading. The entries
  3217. in <var>writefds</var> are checked to see if it is OK to write to them, while
  3218. entries in <var>exceptfds</var> are cheked to see if an exception occorred on
  3219. them.
  3220. </p>
  3221. <p>
  3222. You can use the functions <link id="fpFD_ZERO"/>, <link id="fpFD_Clr"/>,
  3223. <link id="fpFD_Set"/> or <link id="fpFD_IsSet"/> to manipulate the individual
  3224. elements of a set.
  3225. </p>
  3226. <p>
  3227. The pointers can be <var>Nil</var>.
  3228. </p>
  3229. <p>
  3230. <var>N</var> is the largest index of a nonzero entry plus 1. (= the largest
  3231. file-descriptor + 1).
  3232. </p>
  3233. <p>
  3234. <var>TimeOut</var> can be used to set a time limit.
  3235. If <var>TimeOut</var> can be two types :
  3236. </p>
  3237. <ol>
  3238. <li><var>TimeOut</var> is of type <var>ptimeval</var> and contains a
  3239. zero time, the call returns immediately. If <var>TimeOut</var> is <var>Nil</var>, the
  3240. kernel will wait forever, or until a status changed. </li>
  3241. <li><var>TimeOut</var> is of type <var>cint</var>. If it is -1, this has the same
  3242. effect as a <var>Timeout</var> of type <var>PTime</var> which is <var>Nil</var>.
  3243. Otherwise, <var>TimeOut</var> contains a time in milliseconds.</li>
  3244. </ol>
  3245. <p>
  3246. When the TimeOut is reached, or one of the file descriptors has changed,
  3247. the <var>Select</var> call returns. On return, it will have modified the entries
  3248. in the array which have actually changed, and it returns the number of
  3249. entries that have been changed. If the timout was reached, and no decsriptor
  3250. changed, zero is returned; The arrays of indexes are undefined after that.
  3251. On error, -1 is returned.
  3252. </p>
  3253. <p>
  3254. The variant with the text file will execute the <var>FpSelect</var> call on
  3255. the file descriptor associated with the text file <var>T</var>
  3256. </p>
  3257. </descr>
  3258. <errors>
  3259. <p>
  3260. On error, the function returns -1.
  3261. Extended error information can be retrieved using <link id="fpGetErrno"/>.
  3262. </p>
  3263. <dl>
  3264. <dt>SYS_EBADF</dt>
  3265. <dd>An invalid descriptor was specified in one of the sets.</dd>
  3266. <dt>SYS_EINTR</dt>
  3267. <dd>A non blocked signal was caught.</dd>
  3268. <dt>SYS_EINVAL</dt>
  3269. <dd><var>N</var> is negative or too big.</dd>
  3270. <dt>SYS_ENOMEM</dt>
  3271. <dd><var>Select</var> was unable to allocate memory for its internal tables.</dd>
  3272. </dl>
  3273. </errors>
  3274. <seealso>
  3275. <link id="fpFD_ZERO"/>
  3276. <link id="fpFD_Clr"/>
  3277. <link id="fpFD_Set"/>
  3278. <link id="fpFD_IsSet"/>
  3279. </seealso>
  3280. <example file="bunixex/ex33"/>
  3281. </element>
  3282. <!-- function Visibility: default -->
  3283. <element name="FpIOCtl">
  3284. <short>General kernel IOCTL call.</short>
  3285. <descr>
  3286. This is a general interface to the Unix/ linux ioctl call.
  3287. It performs various operations on the filedescriptor <var>Handle</var>.
  3288. <var>Ndx</var> describes the operation to perform.
  3289. <var>Data</var> points to data needed for the <var>Ndx</var> function.
  3290. The structure of this data is function-dependent, so we don't elaborate on
  3291. this here.
  3292. For more information on this, see various manual pages under linux.
  3293. </descr>
  3294. <errors>
  3295. Extended error information can be retrieved using <link id="fpGetErrno"/>.
  3296. </errors>
  3297. <example file="bunixex/ex54"/>
  3298. </element>
  3299. <!-- function Visibility: default -->
  3300. <element name="FpNanoSleep">
  3301. <short>Suspend process for a short time</short>
  3302. <descr>
  3303. <p>
  3304. <var>FpNanoSleep</var> suspends the process till a time period as specified
  3305. in <var>req</var> has passed. Then the function returns. If the
  3306. call was interrupted (e.g. by some signal) then the function may
  3307. return earlier, and <var>rem</var> will contain the remaining time till the
  3308. end of the intended period. In this case the return value will be
  3309. -1, and <var>LinuxError</var> will be set to <var>EINTR</var>
  3310. </p>
  3311. <p>
  3312. If the function returns without error, the return value is zero.
  3313. </p>
  3314. </descr>
  3315. <errors>
  3316. If an error occurred or the call was interrupted, -1 is returned.
  3317. Extended error information can be retrieved using <link id="fpGetErrno"/>.
  3318. </errors>
  3319. <seealso>
  3320. <link id="FpPause"/>
  3321. <link id="FpAlarm"/>
  3322. </seealso>
  3323. <example file="bunixex/ex72"/>
  3324. </element>
  3325. <!-- function Visibility: default -->
  3326. <element name="FpGetEnv">
  3327. <short>Return value of environment variable.</short>
  3328. <descr>
  3329. <p>
  3330. <var>FPGetEnv</var> returns the value of the environment variable in
  3331. <var>Name</var>. If the variable is
  3332. not defined, nil is returned. The value of the environment variable may be
  3333. the empty string.
  3334. A PChar is returned to accomodate for strings longer than 255 bytes,
  3335. <var>TERMCAP</var> and <var>LS_COLORS</var>, for instance.
  3336. </p>
  3337. </descr>
  3338. <errors>
  3339. None.
  3340. </errors>
  3341. <example file="bunixex/ex41"/>
  3342. </element>
  3343. <!-- function Visibility: default -->
  3344. <element name="FpUtime">
  3345. <short>Set access and modification times of a file (touch).</short>
  3346. <descr>
  3347. <p>
  3348. <var>FpUtime</var> sets the access and modification times of the file
  3349. specified in <var>Path</var>.
  3350. the <var>times</var> record contains 2 fields, <var>actime</var>, and <var>modtime</var>,
  3351. both of type <var>time_t</var> (commonly a longint). They should be filled with an epoch-like time,
  3352. specifying, respectively, the last access time, and the last modification
  3353. time.
  3354. For some filesystem (most notably, FAT), these times are the same.
  3355. </p>
  3356. <p>
  3357. The function returns zero on success, a nonzero return value indicates
  3358. failure.
  3359. </p>
  3360. </descr>
  3361. <errors>
  3362. <p>
  3363. Extended error information can be retrieved using <link id="fpGetErrno"/>.
  3364. </p>
  3365. <dl>
  3366. <dt>sys_eaccess</dt>
  3367. <dd> One of the directories in <var>Path</var> has no
  3368. search (=execute) permission.</dd>
  3369. <dt>sys_enoent</dt>
  3370. <dd> A directory entry in <var>Path</var> does
  3371. not exist or is a symbolic link pointing to a non-existent directory.
  3372. </dd>
  3373. </dl>
  3374. <p>
  3375. Other errors may occur, but aren't documented.
  3376. </p>
  3377. </errors>
  3378. <seealso>
  3379. <link id="FpTime"/>
  3380. <link id="FpChown"/>
  3381. <link id="FpAccess"/>
  3382. </seealso>
  3383. <example file="bunixex/ex25"/>
  3384. </element>
  3385. <!-- function Visibility: default -->
  3386. <element name="FpSignal">
  3387. <short>Install signal handler (deprecated)</short>
  3388. <descr>
  3389. <p>
  3390. <var>FPSignal</var> installs a new signal handler (specified by
  3391. <var>Handler</var>) for signal <var>SigNum</var>.
  3392. </p>
  3393. <p>
  3394. This call has a subset of the functionality provided by the <link id="FpSigAction"/> call.
  3395. The return value for <var>FpSignal</var> is the old signal handler, or nil on error.
  3396. </p>
  3397. </descr>
  3398. <errors>
  3399. <p>
  3400. Extended error information can be retrieved using <link id="fpGetErrno"/>.
  3401. </p>
  3402. <dl>
  3403. <dt>SIG_ERR</dt>
  3404. <dd>An error occurred.</dd>
  3405. </dl>
  3406. </errors>
  3407. <seealso>
  3408. <link id="FpSigAction"/>
  3409. <link id="FpKill"/>
  3410. </seealso>
  3411. <example file="bunixex/ex58"/>
  3412. </element>
  3413. <!-- function Visibility: default -->
  3414. <element name="fpFD_SET">
  3415. <short>Set a filedescriptor in a set</short>
  3416. <descr>
  3417. <p>
  3418. <var>FpFD_Set</var> sets file descriptor <var>fdno</var> in filedescriptor set
  3419. <var>nset</var>.
  3420. </p>
  3421. <p>
  3422. For an example, see <link id="FpSelect"/>.
  3423. </p>
  3424. </descr>
  3425. <errors>
  3426. None.
  3427. </errors>
  3428. <seealso>
  3429. <link id="FpSelect"/>
  3430. <link id="FpFD_ZERO"/>
  3431. <link id="FpFD_Clr"/>
  3432. <link id="FpFD_IsSet"/>
  3433. </seealso>
  3434. </element>
  3435. <!-- function Visibility: default -->
  3436. <element name="fpFD_CLR">
  3437. <short>Clears a filedescriptor in a set</short>
  3438. <descr>
  3439. <p>
  3440. <var>FpFD_Clr</var> clears file descriptor <var>fdno</var> in filedescriptor set
  3441. <var>nset</var>.
  3442. </p>
  3443. <p>
  3444. For an example, see <link id="FpSelect"/>.
  3445. </p>
  3446. </descr>
  3447. <errors>
  3448. None.
  3449. </errors>
  3450. <seealso>
  3451. <link id="FpSelect"/>,
  3452. <link id="FpFD_ZERO"/>
  3453. <link id="FpFD_Set"/>
  3454. <link id="FpFD_IsSet"/>
  3455. </seealso>
  3456. </element>
  3457. <!-- function Visibility: default -->
  3458. <element name="fpFD_ZERO">
  3459. <short>Clear all file descriptors in set</short>
  3460. <descr>
  3461. <p>
  3462. <var>FpFD_ZERO</var> clears all the filedescriptors in the file descriptor
  3463. set <var>nset</var>.
  3464. </p>
  3465. <p>
  3466. For an example, see <link id="FpSelect"/>.
  3467. </p>
  3468. </descr>
  3469. <errors>
  3470. None.
  3471. </errors>
  3472. <seealso>
  3473. <link id="FpSelect"/>
  3474. <link id="FpFD_Clr"/>
  3475. <link id="FpFD_Set"/>
  3476. <link id="FpFD_IsSet"/>
  3477. </seealso>
  3478. </element>
  3479. <!-- function Visibility: default -->
  3480. <element name="fpFD_ISSET">
  3481. <short>Check whether a filedescriptor is set</short>
  3482. <descr>
  3483. <p>
  3484. <var>FpFD_Set</var> Checks whether file descriptor <var>fdNo</var> in filedescriptor set <var>fds</var>
  3485. is set. It returns zero if the descriptor is not set, 1 if it is set. If the
  3486. number of the filedescriptor it wrong, -1 is returned.
  3487. </p>
  3488. <p>
  3489. For an example, see <link id="FpSelect"/>.
  3490. </p>
  3491. </descr>
  3492. <errors>
  3493. If an invald file descriptor number is passed, -1 is returned.
  3494. </errors>
  3495. <seealso>
  3496. <link id="FpSelect"/>
  3497. <link id="FpFD_ZERO"/>
  3498. <link id="FpFD_Clr"/>
  3499. <link id="FpFD_Set"/>
  3500. </seealso>
  3501. </element>
  3502. <!-- function Visibility: default -->
  3503. <element name="fpfdfillset">
  3504. <short>Set all filedescriptors in the set.</short>
  3505. <descr>
  3506. <var>fpfdfillset</var> sets all filedescriptors in <var>nset</var>.
  3507. </descr>
  3508. <seealso>
  3509. <link id="FpSelect"/>
  3510. <link id="FpFD_ZERO"/>
  3511. <link id="FpFD_IsSet"/>
  3512. <link id="FpFD_Clr"/>
  3513. <link id="FpFD_Set"/>
  3514. </seealso>
  3515. </element>
  3516. <!-- function Visibility: default -->
  3517. <element name="FpSigEmptySet">
  3518. <short>Clear all signals from signal set.</short>
  3519. <descr>
  3520. <var>FpSigEmptySet</var> clears all signals from the signal set
  3521. <var>nset</var>.
  3522. </descr>
  3523. <errors>
  3524. None. This function always returns zero.
  3525. </errors>
  3526. <seealso>
  3527. <link id="FpSigFillSet"/>
  3528. <link id="FpSigAddSet"/>
  3529. <link id="FpSigDelSet"/>
  3530. <link id="FpSigIsMember"/>
  3531. </seealso>
  3532. </element>
  3533. <!-- function Visibility: default -->
  3534. <element name="FpSigFillSet">
  3535. <short>Set all signals in signal set.</short>
  3536. <descr>
  3537. <var>FpSigFillSet</var> sets all signals in the signal set
  3538. <var>nset</var>.
  3539. </descr>
  3540. <errors>
  3541. None. This function always returns zero.
  3542. </errors>
  3543. <seealso>
  3544. <link id="FpSigEmptySet"/>
  3545. <link id="FpSigAddSet"/>
  3546. <link id="FpSigDelSet"/>
  3547. <link id="FpSigIsMember"/>
  3548. </seealso>
  3549. </element>
  3550. <!-- function Visibility: default -->
  3551. <element name="FpSigAddSet">
  3552. <short>Set a signal in a signal set.</short>
  3553. <descr>
  3554. <var>FpSigAddSet</var> adds signal <var>Signo</var> to the signal set
  3555. <var>nset</var>. The function returns 0 on success.
  3556. </descr>
  3557. <errors>
  3558. If an invalid signal number is given, -1 is returned.
  3559. </errors>
  3560. <seealso>
  3561. <link id="FpSigEmptySet"/>
  3562. <link id="FpSigFillSet"/>
  3563. <link id="FpSigDelSet"/>
  3564. <link id="FpSigIsMember"/>
  3565. </seealso>
  3566. </element>
  3567. <!-- function Visibility: default -->
  3568. <element name="FpSigDelSet">
  3569. <short>Remove a signal from a signal set.</short>
  3570. <descr>
  3571. <var>FpSigDelSet</var> removes signal <var>Signo</var> to the signal set
  3572. <var>nset</var>. The function returns 0 on success.
  3573. </descr>
  3574. <errors>
  3575. If an invalid signal number is given, -1 is returned.
  3576. </errors>
  3577. <seealso>
  3578. <link id="FpSigEmptySet"/>
  3579. <link id="FpSigFillSet"/>
  3580. <link id="FpSigAddSet"/>
  3581. <link id="FpSigIsMember"/>
  3582. </seealso>
  3583. </element>
  3584. <!-- function Visibility: default -->
  3585. <element name="FpSigIsMember">
  3586. <short>Check whether a signal appears in a signal set.</short>
  3587. <descr>
  3588. <var>FpSigIsMember</var> checks whether <var>SigNo</var> appears in the set
  3589. <var>nset</var>. If it is a member, then 1 is returned. If not, zero is
  3590. returned.
  3591. </descr>
  3592. <errors>
  3593. If an invalid signal number is given, -1 is returned.
  3594. </errors>
  3595. <seealso>
  3596. <link id="FpSigEmptySet"/>
  3597. <link id="FpSigFillSet"/>
  3598. <link id="FpSigAddSet"/>
  3599. <link id="FpSigDelSet"/>
  3600. </seealso>
  3601. </element>
  3602. <!-- function Visibility: default -->
  3603. <element name="fpS_ISDIR">
  3604. <short>Is file a directory</short>
  3605. <descr>
  3606. <var>fpS_ISDIR</var> checks the file mode <var>m</var> to see whether the file
  3607. is a directory. If so, it returns <var>True</var>
  3608. </descr>
  3609. <seealso>
  3610. <link id="FpFStat"/>
  3611. <link id="FpS_ISLNK"/>
  3612. <link id="FpS_ISREG"/>
  3613. <link id="FpS_ISCHR"/>
  3614. <link id="FpS_ISBLK"/>
  3615. <link id="fpS_ISFIFO"/>
  3616. <link id="FpS_ISSOCK"/>
  3617. </seealso>
  3618. </element>
  3619. <!-- function Visibility: default -->
  3620. <element name="fpS_ISCHR">
  3621. <short>Is file a character device</short>
  3622. <descr>
  3623. <var>FpS_ISCHR</var> checks the file mode <var>m</var> to see whether the file is a
  3624. character device file. If so it returns <var>True</var>.
  3625. </descr>
  3626. <seealso>
  3627. <link id="FpFStat"/>
  3628. <link id="FpS_ISLNK"/>
  3629. <link id="FpS_ISREG"/>
  3630. <link id="FpS_ISDIR"/>
  3631. <link id="FpS_ISBLK"/>
  3632. <link id="FpS_ISFIFO"/>
  3633. <link id="FpS_ISSOCK"/>
  3634. </seealso>
  3635. </element>
  3636. <!-- function Visibility: default -->
  3637. <element name="fpS_ISBLK">
  3638. <short>Is file a block device</short>
  3639. <descr>
  3640. <var>FpS_ISBLK</var> checks the file mode <var>m</var> to see whether the file is a
  3641. block device file. If so it returns <var>True</var>.
  3642. </descr>
  3643. <seealso>
  3644. <link id="FpFStat"/>
  3645. <link id="FpS_ISLNK"/>
  3646. <link id="FpS_ISREG"/>
  3647. <link id="FpS_ISDIR"/>
  3648. <link id="FpS_ISCHR"/>
  3649. <link id="FpS_ISFIFO"/>
  3650. <link id="FpS_ISSOCK"/>
  3651. </seealso>
  3652. </element>
  3653. <!-- function Visibility: default -->
  3654. <element name="fpS_ISREG">
  3655. <short>Is file a regular file</short>
  3656. <descr>
  3657. <var>FpS_ISREG</var> checks the file mode <var>m</var> to see whether the file is a
  3658. regular file. If so it returns <var>True</var>
  3659. </descr>
  3660. <seealso>
  3661. <link id="FpFStat"/>
  3662. <link id="FpS_ISFIFO"/>
  3663. <link id="FpS_ISLNK"/>
  3664. <link id="FpS_ISCHR"/>
  3665. <link id="FpS_ISBLK"/>
  3666. <link id="FpS_ISDIR"/>
  3667. <link id="FPS_ISSOCK"/>
  3668. </seealso>
  3669. </element>
  3670. <!-- function Visibility: default -->
  3671. <element name="fpS_ISFIFO">
  3672. <short>Is file a FIFO</short>
  3673. <descr>
  3674. <var>FpS_ISFIFO</var> checks the file mode <var>m</var> to see whether the file is a
  3675. fifo (a named pipe). If so it returns <var>True</var>.
  3676. </descr>
  3677. <seealso>
  3678. <link id="FpFStat"/>
  3679. <link id="FpS_ISLNK"/>
  3680. <link id="FpS_ISREG"/>
  3681. <link id="FpS_ISCHR"/>
  3682. <link id="FpS_ISBLK"/>
  3683. <link id="FpS_ISDIR"/>
  3684. <link id="FpS_ISSOCK"/>
  3685. </seealso>
  3686. </element>
  3687. <!-- function Visibility: default -->
  3688. <element name="fpS_ISLNK">
  3689. <short>Is file a symbolic link</short>
  3690. <descr>
  3691. <var>FpS_ISLNK</var> checks the file mode <var>m</var> to see whether the file is a
  3692. symbolic link. If so it returns <var>True</var>
  3693. </descr>
  3694. <seealso>
  3695. <link id="FpFStat"/>
  3696. <link id="FpS_ISFIFO"/>
  3697. <link id="FpS_ISREG"/>
  3698. <link id="FpS_ISCHR"/>
  3699. <link id="FpS_ISBLK"/>
  3700. <link id="FpS_ISDIR"/>
  3701. <link id="FpS_ISSOCK"/>
  3702. </seealso>
  3703. <example file="bunixex/ex53"/>
  3704. </element>
  3705. <!-- function Visibility: default -->
  3706. <element name="fpS_ISSOCK">
  3707. <short>Is file a unix socket</short>
  3708. <descr>
  3709. <var>FpS_ISSOCK</var> checks the file mode <var>m</var> to see whether the file is a
  3710. socket. If so it returns <var>True</var>.
  3711. </descr>
  3712. <seealso>
  3713. <link id="FpFStat"/>
  3714. <link id="FpS_ISFIFO"/>
  3715. <link id="FpS_ISLNK"/>
  3716. <link id="FpS_ISCHR"/>
  3717. <link id="FpS_ISBLK"/>
  3718. <link id="FpS_ISDIR"/>
  3719. <link id="FpS_ISREG"/>
  3720. </seealso>
  3721. </element>
  3722. <!-- function Visibility: default -->
  3723. <element name="WEXITSTATUS">
  3724. <short>Extract the exit status from the <link id="#rtl.baseunix.FpWaitPID">fpWaitPID</link> result.</short>
  3725. <descr>
  3726. <var>WEXITSTATUS</var> can be used to extract the exit status from
  3727. <var>Status</var>, the result of the <link id="FpWaitPID"/> call.
  3728. </descr>
  3729. <seealso>
  3730. <link id="FpWaitPID"/>
  3731. <link id="WTERMSIG"/>
  3732. <link id="WSTOPSIG"/>
  3733. <link id="WIFEXITED"/>
  3734. <link id="WIFSIGNALED"/>
  3735. </seealso>
  3736. </element>
  3737. <!-- function Visibility: default -->
  3738. <element name="WTERMSIG">
  3739. <short>Return the signal that caused a process to exit.</short>
  3740. <descr>
  3741. <var>WTERMSIG</var> extracts from <var>Status</var> the signal number which
  3742. caused the process to exit.
  3743. </descr>
  3744. <seealso>
  3745. <link id="FpWaitPID"/>
  3746. <link id="WSTOPSIG"/>
  3747. <link id="WIFEXITED"/>
  3748. <link id="WIFSIGNALED"/>
  3749. <link id="WEXITSTATUS"/>
  3750. </seealso>
  3751. </element>
  3752. <!-- function Visibility: default -->
  3753. <element name="WSTOPSIG">
  3754. <short>Return the exit code from the process.</short>
  3755. <descr>
  3756. <var>WSTOPSIG</var> is an alias for <link id="WEXITSTATUS"/>.
  3757. </descr>
  3758. <seealso>
  3759. <link id="FpWaitPID"/>
  3760. <link id="WTERMSIG"/>
  3761. <link id="WIFEXITED"/>
  3762. <link id="WIFSIGNALED"/>
  3763. <link id="WEXITSTATUS"/>
  3764. </seealso>
  3765. </element>
  3766. <!-- function Visibility: default -->
  3767. <element name="WIFEXITED">
  3768. <short>Check whether the process exited normally</short>
  3769. <descr>
  3770. <var>WIFEXITED</var> checks <var>Status</var> and returns <var>True</var> if
  3771. the status indicates that the process terminated normally, i.e. was not
  3772. stopped by a signal.
  3773. </descr>
  3774. <seealso>
  3775. <link id="FpWaitPID"/>
  3776. <link id="WTERMSIG"/>
  3777. <link id="WSTOPSIG"/>
  3778. <link id="WIFSIGNALED"/>
  3779. <link id="WEXITSTATUS"/>
  3780. </seealso>
  3781. </element>
  3782. <!-- function Visibility: default -->
  3783. <element name="WIFSIGNALED">
  3784. <short>Check whether the process was exited by a signal.</short>
  3785. <descr>
  3786. <var>WIFSIGNALED</var> returns <var>True</var> if <var>Status</var>
  3787. indicates that the process exited because it received a signal.
  3788. </descr>
  3789. <seealso>
  3790. <link id="FpWaitPID"/>
  3791. <link id="WTERMSIG"/>
  3792. <link id="WSTOPSIG"/>
  3793. <link id="WIFEXITED"/>
  3794. <link id="WEXITSTATUS"/>
  3795. </seealso>
  3796. </element>
  3797. <!-- function Visibility: default -->
  3798. <element name="fpgeterrno">
  3799. <short>Retrieve extended error information.</short>
  3800. <descr>
  3801. <var>fpgeterrno</var> returns extended information on the latest error.
  3802. It is set by all functions that communicate with the kernel or C library.
  3803. </descr>
  3804. <errors>
  3805. None.
  3806. </errors>
  3807. <seealso>
  3808. <link id="fpseterrno"/>
  3809. </seealso>
  3810. </element>
  3811. <!-- procedure Visibility: default -->
  3812. <element name="fpseterrno">
  3813. <short>Set extended error information.</short>
  3814. <descr>
  3815. <p>
  3816. <var>fpseterrno</var> sets the extended information on the latest error.
  3817. It is called by all functions that communicate with the kernel or C library.
  3818. </p>
  3819. <p>
  3820. Unless a direct kernel call is performed, there should never be any need to
  3821. call this function.
  3822. </p>
  3823. </descr>
  3824. <errors>
  3825. </errors>
  3826. <seealso>
  3827. <link id="fpgeterrno"/>
  3828. </seealso>
  3829. </element>
  3830. </module> <!-- BaseUnix -->
  3831. </package>
  3832. </fpdoc-descriptions>