123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800 |
- <?xml version="1.0" encoding="ISO8859-1"?>
- <fpdoc-descriptions>
- <package name="rtl">
- <!--
- ====================================================================
- BaseUnix
- ====================================================================
- -->
- <module name="BaseUnix">
- <short>Basic unix functionality</short>
- <descr>
- <p>
- The <file>BaseUnix</file> unit was implemented by Marco Van de Voort.
- It contains basic unix functionality. It supersedes the Linux unit of
- version 1.0.X of the compiler, but does not implement all functionality of
- the linux unit.
- </p>
- <p>
- People that have code which heavily uses the old <file>Linux</file> unit,
- can simply change <file>linux</file> by <file>oldlinux</file> in the
- <var>uses</var> clause of their projects, but they should really consider
- moving to the <file>Unix</file> and <file>BaseUnix</file> units.
- </p>
- <p>
- For porting FPC to new unix-like platforms, it should be sufficient to
- implement the functionality in this unit for the new platform.
- </p>
- </descr>
- <!-- unresolved type reference Visibility: default -->
- <element name="UnixType">
- <short>Basic unix types.</short>
- </element>
- <!-- alias type Visibility: default -->
- <element name="cInt8">
- <short>C type: 8 bits sized, signed integer.</short>
- </element>
- <!-- alias type Visibility: default -->
- <element name="cUInt8">
- <short>C type: 8 bits sized, unsigned integer.</short>
- </element>
- <!-- alias type Visibility: default -->
- <element name="cUInt16">
- <short>C type: 16 bits sized, unsigned integer.</short>
- </element>
- <!-- alias type Visibility: default -->
- <element name="cInt16">
- <short>C type: 16 bits sized, signed integer.</short>
- </element>
- <!-- alias type Visibility: default -->
- <element name="cInt32">
- <short>C type: 32 bits sized, signed integer.</short>
- </element>
- <!-- alias type Visibility: default -->
- <element name="cUInt32">
- <short>C type: 32 bits sized, unsigned integer.</short>
- </element>
- <!-- alias type Visibility: default -->
- <element name="cInt64">
- <short>C type: 64 bits sized, signed integer.</short>
- </element>
- <!-- alias type Visibility: default -->
- <element name="cUInt64">
- <short>C type: 64 bits sized, unsigned integer.</short>
- </element>
- <!-- alias type Visibility: default -->
- <element name="cuchar">
- <short>C type: unsigned character</short>
- </element>
- <!-- alias type Visibility: default -->
- <element name="cInt">
- <short>C type: integer (natural size)</short>
- </element>
- <!-- alias type Visibility: default -->
- <element name="cUInt">
- <short>C type: unsigned integer (natural size)</short>
- </element>
- <!-- alias type Visibility: default -->
- <element name="cLong">
- <short>C type: long signed integer (double sized)</short>
- </element>
- <!-- alias type Visibility: default -->
- <element name="cuLong">
- <short>C type: long unsigned integer (double sized)</short>
- </element>
- <!-- alias type Visibility: default -->
- <element name="cshort">
- <short>C type: short signed integer (half sized)</short>
- </element>
- <!-- alias type Visibility: default -->
- <element name="cushort">
- <short>C type: short unsigned integer (half sized)</short>
- </element>
- <!-- alias type Visibility: default -->
- <element name="pcInt">
- <short>Pointer to <link id="cInt"/> type.</short>
- </element>
- <!-- alias type Visibility: default -->
- <element name="pcUInt">
- <short>Pointer to <link id="cUInt"/> type.</short>
- </element>
- <!-- alias type Visibility: default -->
- <element name="pcLong">
- <short>Pointer to <link id="cLong"/> type.</short>
- </element>
- <!-- alias type Visibility: default -->
- <element name="pculong">
- <short>Pointer to <link id="cuLong"/> type.</short>
- </element>
- <!-- alias type Visibility: default -->
- <element name="pcshort">
- <short>Pointer to <link id="cShort"/> type.</short>
- </element>
- <!-- alias type Visibility: default -->
- <element name="pcushort">
- <short>Pointer to <link id="cuShort"/> type.</short>
- </element>
- <element name="cchar">
- <short>Alias for <link id="#rtl.UnixType.cchar"/></short>
- </element>
- <element name="cuchar">
- <short>Alias for <link id="#rtl.UnixType.cuchar"/></short>
- </element>
- <element name="cunsigned">
- <short>Alias for <link id="#rtl.unixtype.cunsigned"/></short>
- </element>
- <element name="pcchar">
- <short>Alias for <link id="#rtl.UnixType.pcchar"/></short>
- </element>
- <element name="pcuchar">
- <short>Alias for <link id="#rtl.UnixType.pcuchar"/></short>
- </element>
- <element name="pcunsigned">
- <short>Alias for <link id="#rtl.unixtype.pcunsigned"/></short>
- </element>
- <!-- alias type Visibility: default -->
- <element name="dev_t">
- <short>Device descriptor type.</short>
- </element>
- <!-- alias type Visibility: default -->
- <element name="TDev">
- <short>Alias for <link id="dev_t"/> type.</short>
- </element>
- <!-- alias type Visibility: default -->
- <element name="pDev">
- <short>Pointer to <link id="TDev"/> type.</short>
- </element>
- <!-- alias type Visibility: default -->
- <element name="gid_t">
- <short>Group ID type.</short>
- </element>
- <!-- alias type Visibility: default -->
- <element name="TGid">
- <short>Alias for <link id="gid_t"/> type.</short>
- </element>
- <!-- alias type Visibility: default -->
- <element name="pGid">
- <short>Pointer to <link id="TGid"/> type.</short>
- </element>
- <!-- alias type Visibility: default -->
- <element name="ino_t">
- <short>Inode type.</short>
- </element>
- <!-- alias type Visibility: default -->
- <element name="TIno">
- <short>Alias for <link id="ino_t"/> type.</short>
- </element>
- <!-- alias type Visibility: default -->
- <element name="pIno">
- <short>Pointer to <link id="TIno"/> type.</short>
- </element>
- <!-- alias type Visibility: default -->
- <element name="mode_t">
- <short>Inode mode type.</short>
- </element>
- <!-- alias type Visibility: default -->
- <element name="TMode">
- <short>Alias for <link id="mode_t"/> type.</short>
- </element>
- <!-- alias type Visibility: default -->
- <element name="pMode">
- <short>Pointer to <link id="TMode"/> type.</short>
- </element>
- <!-- alias type Visibility: default -->
- <element name="nlink_t">
- <short>Number of links type.</short>
- </element>
- <!-- alias type Visibility: default -->
- <element name="TnLink">
- <short>Alias for <link id="nlink_t"/> type.</short>
- </element>
- <!-- alias type Visibility: default -->
- <element name="pnLink">
- <short>Pointer to <link id="TnLink"/> type.</short>
- </element>
- <!-- alias type Visibility: default -->
- <element name="off_t">
- <short>Offset type.</short>
- </element>
- <!-- alias type Visibility: default -->
- <element name="TOff">
- <short>Alias for <link id="off_t"/> type.</short>
- </element>
- <!-- alias type Visibility: default -->
- <element name="pOff">
- <short>Pointer to <link id="TOff"/> type.</short>
- </element>
- <!-- alias type Visibility: default -->
- <element name="pid_t">
- <short>Process ID type.</short>
- </element>
- <!-- alias type Visibility: default -->
- <element name="TPid">
- <short>Alias for <link id="pid_t"/> type.</short>
- </element>
- <!-- alias type Visibility: default -->
- <element name="pPid">
- <short>Pointer to <link id="TPid"/> type.</short>
- </element>
- <!-- alias type Visibility: default -->
- <element name="size_t">
- <short>Size specification type.</short>
- </element>
- <!-- alias type Visibility: default -->
- <element name="TSize">
- <short>Alias for <link id="size_t"/> type</short>
- </element>
- <!-- alias type Visibility: default -->
- <element name="pSize">
- <short>Pointer to <link id="TSize"/> type.</short>
- </element>
- <!-- alias type Visibility: default -->
- <element name="ssize_t">
- <short>Small size type.</short>
- </element>
- <!-- alias type Visibility: default -->
- <element name="TsSize">
- <short>Alias for <link id="ssize_t"/> type</short>
- </element>
- <!-- alias type Visibility: default -->
- <element name="psSize">
- <short>Pointer to <link id="TsSize"/> type</short>
- </element>
- <!-- alias type Visibility: default -->
- <element name="uid_t">
- <short>User ID type</short>
- </element>
- <!-- alias type Visibility: default -->
- <element name="TUid">
- <short>Alias for <link id="uid_t"/> type.</short>
- </element>
- <!-- alias type Visibility: default -->
- <element name="pUid">
- <short>Pointer to <link id="TUid"/> type.</short>
- </element>
- <!-- alias type Visibility: default -->
- <element name="clock_t">
- <short>Clock ticks type</short>
- </element>
- <!-- alias type Visibility: default -->
- <element name="TClock">
- <short>Alias for <link id="clock_t"/> type.</short>
- </element>
- <!-- alias type Visibility: default -->
- <element name="pClock">
- <short>Pointer to <link id="TClock"/> type.</short>
- </element>
- <!-- alias type Visibility: default -->
- <element name="time_t">
- <short>Time span type</short>
- </element>
- <!-- alias type Visibility: default -->
- <element name="TTime">
- <short>Alias for <link id="TTime"/> type.</short>
- </element>
- <!-- alias type Visibility: default -->
- <element name="pTime">
- <short>Pointer to <link id="TTime"/> type.</short>
- </element>
- <!-- alias type Visibility: default -->
- <element name="ptime_t">
- <short>Pointer to <link id="time_t"/> type.</short>
- </element>
- <!-- alias type Visibility: default -->
- <element name="socklen_t">
- <short>Socket address length type.</short>
- </element>
- <!-- alias type Visibility: default -->
- <element name="TSocklen">
- <short>Alias for <link id="socklen_t"/> type.</short>
- </element>
- <!-- alias type Visibility: default -->
- <element name="pSocklen">
- <short>Pointer to <link id="TSockLen"/> type.</short>
- </element>
- <!-- alias type Visibility: default -->
- <element name="timeval">
- <short>Time specification type.</short>
- </element>
- <!-- alias type Visibility: default -->
- <element name="ptimeval">
- <short>Pointer to <link id="timeval"/> type.</short>
- </element>
- <!-- alias type Visibility: default -->
- <element name="TTimeVal">
- <short>Alias for <link id="timeval"/> type.</short>
- </element>
- <!-- alias type Visibility: default -->
- <element name="timespec">
- <short>Short time specification type.</short>
- </element>
- <!-- alias type Visibility: default -->
- <element name="ptimespec">
- <short>Pointer to <link id="timespec"/> type.</short>
- </element>
- <!-- alias type Visibility: default -->
- <element name="Ttimespec">
- <short>Alias for <link id="TimeSpec"/> type.</short>
- </element>
- <!-- alias type Visibility: default -->
- <element name="pthread_mutex_t">
- <short>Thread mutex type.</short>
- </element>
- <!-- alias type Visibility: default -->
- <element name="pthread_cond_t">
- <short>Thread conditional variable type.</short>
- </element>
- <!-- alias type Visibility: default -->
- <element name="pthread_t">
- <short>Posix thread type.</short>
- </element>
- <!-- constant Visibility: default -->
- <element name="ARG_MAX">
- <short>Maximum number of arguments to a program.</short>
- </element>
- <!-- constant Visibility: default -->
- <element name="NAME_MAX">
- <short>Maximum filename length.</short>
- </element>
- <!-- constant Visibility: default -->
- <element name="PATH_MAX">
- <short>Maximum pathname length.</short>
- </element>
- <!-- constant Visibility: default -->
- <element name="SYS_NMLN">
- <short>Max system name length.</short>
- </element>
- <!-- constant Visibility: default -->
- <element name="SIG_MAXSIG">
- <short>Maximum system signal number.</short>
- </element>
- <!-- constant Visibility: default -->
- <element name="ESysEPERM">
- <short>System error: Operation not permitted.</short>
- </element>
- <!-- constant Visibility: default -->
- <element name="ESysENOENT">
- <short>System error: No such file or directory</short>
- </element>
- <!-- constant Visibility: default -->
- <element name="ESysESRCH">
- <short>System error: No such process</short>
- </element>
- <!-- constant Visibility: default -->
- <element name="ESysEINTR">
- <short>System error: Interrupted system call</short>
- </element>
- <!-- constant Visibility: default -->
- <element name="ESysEIO">
- <short>System error: I/O error</short>
- </element>
- <!-- constant Visibility: default -->
- <element name="ESysENXIO">
- <short>System error: No such device or address</short>
- </element>
- <!-- constant Visibility: default -->
- <element name="ESysE2BIG">
- <short>System error: Argument list too long</short>
- </element>
- <!-- constant Visibility: default -->
- <element name="ESysENOEXEC">
- <short>System error: Exec format error</short>
- </element>
- <!-- constant Visibility: default -->
- <element name="ESysEBADF">
- <short>System error: Bad file number</short>
- </element>
- <!-- constant Visibility: default -->
- <element name="ESysECHILD">
- <short>System error: No child processes</short>
- </element>
- <!-- constant Visibility: default -->
- <element name="ESysEAGAIN">
- <short>System error: Try again</short>
- </element>
- <!-- constant Visibility: default -->
- <element name="ESysENOMEM">
- <short>System error: Out of memory</short>
- </element>
- <!-- constant Visibility: default -->
- <element name="ESysEACCES">
- <short>System error: Permission denied</short>
- </element>
- <!-- constant Visibility: default -->
- <element name="ESysEFAULT">
- <short>System error: Bad address</short>
- </element>
- <!-- constant Visibility: default -->
- <element name="ESysENOTBLK">
- <short>System error: Block device required</short>
- </element>
- <!-- constant Visibility: default -->
- <element name="ESysEBUSY">
- <short>System error: Device or resource busy</short>
- </element>
- <!-- constant Visibility: default -->
- <element name="ESysEEXIST">
- <short>System error: File exists</short>
- </element>
- <!-- constant Visibility: default -->
- <element name="ESysEXDEV">
- <short>System error: Cross-device link</short>
- </element>
- <!-- constant Visibility: default -->
- <element name="ESysENODEV">
- <short>System error: No such device</short>
- </element>
- <!-- constant Visibility: default -->
- <element name="ESysENOTDIR">
- <short>System error: Not a directory</short>
- </element>
- <!-- constant Visibility: default -->
- <element name="ESysEISDIR">
- <short>System error: Is a directory</short>
- </element>
- <!-- constant Visibility: default -->
- <element name="ESysEINVAL">
- <short>System error: Invalid argument</short>
- </element>
- <!-- constant Visibility: default -->
- <element name="ESysENFILE">
- <short>System error: File table overflow</short>
- </element>
- <!-- constant Visibility: default -->
- <element name="ESysEMFILE">
- <short>System error: Too many open files</short>
- </element>
- <!-- constant Visibility: default -->
- <element name="ESysENOTTY">
- <short>System error: Not a typewriter</short>
- </element>
- <!-- constant Visibility: default -->
- <element name="ESysETXTBSY">
- <short>System error: Text (code segment) file busy</short>
- </element>
- <!-- constant Visibility: default -->
- <element name="ESysEFBIG">
- <short>System error: File too large</short>
- </element>
- <!-- constant Visibility: default -->
- <element name="ESysENOSPC">
- <short>System error: No space left on device</short>
- </element>
- <!-- constant Visibility: default -->
- <element name="ESysESPIPE">
- <short>System error: Illegal seek</short>
- </element>
- <!-- constant Visibility: default -->
- <element name="ESysEROFS">
- <short>System error: Read-only file system</short>
- </element>
- <!-- constant Visibility: default -->
- <element name="ESysEMLINK">
- <short>System error: Too many links</short>
- </element>
- <!-- constant Visibility: default -->
- <element name="ESysEPIPE">
- <short>System error: Broken pipe</short>
- </element>
- <!-- constant Visibility: default -->
- <element name="ESysEDOM">
- <short>System error: Math argument out of domain of func</short>
- </element>
- <!-- constant Visibility: default -->
- <element name="ESysERANGE">
- <short>System error: Math result not representable</short>
- </element>
- <!-- constant Visibility: default -->
- <element name="ESysEDEADLK">
- <short>System error: Resource deadlock would occur</short>
- </element>
- <!-- constant Visibility: default -->
- <element name="ESysENAMETOOLONG">
- <short>System error: File name too long</short>
- </element>
- <!-- constant Visibility: default -->
- <element name="ESysENOLCK">
- <short>System error: No record locks available</short>
- </element>
- <!-- constant Visibility: default -->
- <element name="ESysENOSYS">
- <short>System error: Function not implemented</short>
- </element>
- <!-- constant Visibility: default -->
- <element name="ESysENOTEMPTY">
- <short>System error: Directory not empty</short>
- </element>
- <!-- constant Visibility: default -->
- <element name="ESysELOOP">
- <short>System error: Too many symbolic links encountered</short>
- </element>
- <!-- constant Visibility: default -->
- <element name="ESysEWOULDBLOCK">
- <short>System error: Operation would block</short>
- </element>
- <!-- constant Visibility: default -->
- <element name="ESysENOMSG">
- <short>System error: No message of desired type</short>
- </element>
- <!-- constant Visibility: default -->
- <element name="ESysEIDRM">
- <short>System error: Identifier removed</short>
- </element>
- <!-- constant Visibility: default -->
- <element name="ESysECHRNG">
- <short>System error: Channel number out of range</short>
- </element>
- <!-- constant Visibility: default -->
- <element name="ESysEL2NSYNC">
- <short>System error: Level 2 not synchronized</short>
- </element>
- <!-- constant Visibility: default -->
- <element name="ESysEL3HLT">
- <short>System error: Level 3 halted</short>
- </element>
- <!-- constant Visibility: default -->
- <element name="ESysEL3RST">
- <short>System error: Level 3 reset</short>
- </element>
- <!-- constant Visibility: default -->
- <element name="ESysELNRNG">
- <short>System error: Link number out of range</short>
- </element>
- <!-- constant Visibility: default -->
- <element name="ESysEUNATCH">
- <short>System error: Protocol driver not attached</short>
- </element>
- <!-- constant Visibility: default -->
- <element name="ESysENOCSI">
- <short>System error: No CSI structure available</short>
- </element>
- <!-- constant Visibility: default -->
- <element name="ESysEL2HLT">
- <short>System error: Level 2 halted</short>
- </element>
- <!-- constant Visibility: default -->
- <element name="ESysEBADE">
- <short>System error: Invalid exchange</short>
- </element>
- <!-- constant Visibility: default -->
- <element name="ESysEBADR">
- <short>System error: Invalid request descriptor</short>
- </element>
- <!-- constant Visibility: default -->
- <element name="ESysEXFULL">
- <short>System error: Exchange full</short>
- </element>
- <!-- constant Visibility: default -->
- <element name="ESysENOANO">
- <short>System error: No anode</short>
- </element>
- <!-- constant Visibility: default -->
- <element name="ESysEBADRQC">
- <short>System error: Invalid request code</short>
- </element>
- <!-- constant Visibility: default -->
- <element name="ESysEBADSLT">
- <short>System error: Invalid slot</short>
- </element>
- <!-- constant Visibility: default -->
- <element name="ESysEDEADLOCK">
- <short>System error: File locking deadlock error</short>
- </element>
- <!-- constant Visibility: default -->
- <element name="ESysEBFONT">
- <short>System error: Bad font file format</short>
- </element>
- <!-- constant Visibility: default -->
- <element name="ESysENOSTR">
- <short>System error: Device not a stream</short>
- </element>
- <!-- constant Visibility: default -->
- <element name="ESysENODATA">
- <short>System error: No data available</short>
- </element>
- <!-- constant Visibility: default -->
- <element name="ESysETIME">
- <short>System error: Timer expired</short>
- </element>
- <!-- constant Visibility: default -->
- <element name="ESysENOSR">
- <short>System error: Out of streams resources</short>
- </element>
- <!-- constant Visibility: default -->
- <element name="ESysENONET">
- <short>System error: Machine is not on the network</short>
- </element>
- <!-- constant Visibility: default -->
- <element name="ESysENOPKG">
- <short>System error: Package not installed</short>
- </element>
- <!-- constant Visibility: default -->
- <element name="ESysEREMOTE">
- <short>System error: Object is remote</short>
- </element>
- <!-- constant Visibility: default -->
- <element name="ESysENOLINK">
- <short>System error: Link has been severed</short>
- </element>
- <!-- constant Visibility: default -->
- <element name="ESysEADV">
- <short>System error: Advertise error</short>
- </element>
- <!-- constant Visibility: default -->
- <element name="ESysESRMNT">
- <short>System error: Srmount error</short>
- </element>
- <!-- constant Visibility: default -->
- <element name="ESysECOMM">
- <short>System error: Communication error on send</short>
- </element>
- <!-- constant Visibility: default -->
- <element name="ESysEPROTO">
- <short>System error: Protocol error</short>
- </element>
- <!-- constant Visibility: default -->
- <element name="ESysEMULTIHOP">
- <short>System error: Multihop attempted</short>
- </element>
- <!-- constant Visibility: default -->
- <element name="ESysEDOTDOT">
- <short>System error: RFS specific error</short>
- </element>
- <!-- constant Visibility: default -->
- <element name="ESysEBADMSG">
- <short>System error: Not a data message</short>
- </element>
- <!-- constant Visibility: default -->
- <element name="ESysEOVERFLOW">
- <short>System error: Value too large for defined data type</short>
- </element>
- <!-- constant Visibility: default -->
- <element name="ESysENOTUNIQ">
- <short>System error: Name not unique on network</short>
- </element>
- <!-- constant Visibility: default -->
- <element name="ESysEBADFD">
- <short>System error: File descriptor in bad state</short>
- </element>
- <!-- constant Visibility: default -->
- <element name="ESysEREMCHG">
- <short>System error: Remote address changed</short>
- </element>
- <!-- constant Visibility: default -->
- <element name="ESysELIBACC">
- <short>System error: Can not access a needed shared library</short>
- </element>
- <!-- constant Visibility: default -->
- <element name="ESysELIBBAD">
- <short>System error: Accessing a corrupted shared library</short>
- </element>
- <!-- constant Visibility: default -->
- <element name="ESysELIBSCN">
- <short>System error: .lib section in a.out corrupted</short>
- </element>
- <!-- constant Visibility: default -->
- <element name="ESysELIBMAX">
- <short>System error: Attempting to link in too many shared libraries</short>
- </element>
- <!-- constant Visibility: default -->
- <element name="ESysELIBEXEC">
- <short>System error: Cannot exec a shared library directly</short>
- </element>
- <!-- constant Visibility: default -->
- <element name="ESysEILSEQ">
- <short>System error: Illegal byte sequence</short>
- </element>
- <!-- constant Visibility: default -->
- <element name="ESysERESTART">
- <short>System error: Interrupted system call should be restarted</short>
- </element>
- <!-- constant Visibility: default -->
- <element name="ESysESTRPIPE">
- <short>System error: Streams pipe error</short>
- </element>
- <!-- constant Visibility: default -->
- <element name="ESysEUSERS">
- <short>System error: Too many users</short>
- </element>
- <!-- constant Visibility: default -->
- <element name="ESysENOTSOCK">
- <short>System error: Socket operation on non-socket</short>
- </element>
- <!-- constant Visibility: default -->
- <element name="ESysEDESTADDRREQ">
- <short>System error: Destination address required</short>
- </element>
- <!-- constant Visibility: default -->
- <element name="ESysEMSGSIZE">
- <short>System error: Message too long</short>
- </element>
- <!-- constant Visibility: default -->
- <element name="ESysEPROTOTYPE">
- <short>System error: Protocol wrong type for socket</short>
- </element>
- <!-- constant Visibility: default -->
- <element name="ESysENOPROTOOPT">
- <short>System error: Protocol not available</short>
- </element>
- <!-- constant Visibility: default -->
- <element name="ESysEPROTONOSUPPORT">
- <short>System error: Protocol not supported</short>
- </element>
- <!-- constant Visibility: default -->
- <element name="ESysESOCKTNOSUPPORT">
- <short>System error: Socket type not supported</short>
- </element>
- <!-- constant Visibility: default -->
- <element name="ESysEOPNOTSUPP">
- <short>System error: Operation not supported on transport endpoint</short>
- </element>
- <!-- constant Visibility: default -->
- <element name="ESysEPFNOSUPPORT">
- <short>System error: Protocol family not supported</short>
- </element>
- <!-- constant Visibility: default -->
- <element name="ESysEAFNOSUPPORT">
- <short>System error: Address family not supported by protocol</short>
- </element>
- <!-- constant Visibility: default -->
- <element name="ESysEADDRINUSE">
- <short>System error: Address already in use</short>
- </element>
- <!-- constant Visibility: default -->
- <element name="ESysEADDRNOTAVAIL">
- <short>System error: Cannot assign requested address</short>
- </element>
- <!-- constant Visibility: default -->
- <element name="ESysENETDOWN">
- <short>System error: Network is down</short>
- </element>
- <!-- constant Visibility: default -->
- <element name="ESysENETUNREACH">
- <short>System error: Network is unreachable</short>
- </element>
- <!-- constant Visibility: default -->
- <element name="ESysENETRESET">
- <short>System error: Network dropped connection because of reset</short>
- </element>
- <!-- constant Visibility: default -->
- <element name="ESysECONNABORTED">
- <short>System error: Software caused connection abort</short>
- </element>
- <!-- constant Visibility: default -->
- <element name="ESysECONNRESET">
- <short>System error: Connection reset by peer</short>
- </element>
- <!-- constant Visibility: default -->
- <element name="ESysENOBUFS">
- <short>System error: No buffer space available</short>
- </element>
- <!-- constant Visibility: default -->
- <element name="ESysEISCONN">
- <short>System error: Transport endpoint is already connected</short>
- </element>
- <!-- constant Visibility: default -->
- <element name="ESysENOTCONN">
- <short>System error: Transport endpoint is not connected</short>
- </element>
- <!-- constant Visibility: default -->
- <element name="ESysESHUTDOWN">
- <short>System error: Cannot send after transport endpoint shutdown</short>
- </element>
- <!-- constant Visibility: default -->
- <element name="ESysETOOMANYREFS">
- <short>System error: Too many references: cannot splice</short>
- </element>
- <!-- constant Visibility: default -->
- <element name="ESysETIMEDOUT">
- <short>System error: Connection timed out</short>
- </element>
- <!-- constant Visibility: default -->
- <element name="ESysECONNREFUSED">
- <short>System error: Connection refused</short>
- </element>
- <!-- constant Visibility: default -->
- <element name="ESysEHOSTDOWN">
- <short>System error: Host is down</short>
- </element>
- <!-- constant Visibility: default -->
- <element name="ESysEHOSTUNREACH">
- <short>System error: No route to host</short>
- </element>
- <!-- constant Visibility: default -->
- <element name="ESysEALREADY">
- <short>System error: Operation already in progress</short>
- </element>
- <!-- constant Visibility: default -->
- <element name="ESysEINPROGRESS">
- <short>System error: Operation now in progress</short>
- </element>
- <!-- constant Visibility: default -->
- <element name="ESysESTALE">
- <short>System error: Stale NFS file handle</short>
- </element>
- <!-- constant Visibility: default -->
- <element name="ESysEUCLEAN">
- <short>System error: Structure needs cleaning</short>
- </element>
- <!-- constant Visibility: default -->
- <element name="ESysENOTNAM">
- <short>System error: Not a XENIX named type file</short>
- </element>
- <!-- constant Visibility: default -->
- <element name="ESysENAVAIL">
- <short>System error: No XENIX semaphores available</short>
- </element>
- <!-- constant Visibility: default -->
- <element name="ESysEISNAM">
- <short>System error: Is a named type file</short>
- </element>
- <!-- constant Visibility: default -->
- <element name="ESysEREMOTEIO">
- <short>System error: Remote I/O error</short>
- </element>
- <!-- constant Visibility: default -->
- <element name="ESysEDQUOT">
- <short>System error: Quota exceeded</short>
- </element>
- <!-- constant Visibility: default -->
- <element name="UTSNAME_LENGTH">
- <short>Max length of <link id="utsname"/> system name, release, version, machine.</short>
- </element>
- <!-- constant Visibility: default -->
- <element name="UTSNAME_NODENAME_LENGTH">
- <short>Max length of <link id="utsname"/> node name.</short>
- </element>
- <!-- constant Visibility: default -->
- <element name="UTSNAME_DOMAIN_LENGTH">
- <short>Max length of <link id="utsname"/> domain name.</short>
- </element>
- <!-- constant Visibility: default -->
- <element name="FD_MAXFDSET">
- <short>Maximum elements in a <link id="TFDSet"/> array.</short>
- </element>
- <!-- constant Visibility: default -->
- <element name="BITSINWORD">
- <short>Number of bits in a word.</short>
- </element>
- <!-- constant Visibility: default -->
- <element name="wordsinsigset">
- <short>Number of words in a signal set.</short>
- </element>
- <!-- constant Visibility: default -->
- <element name="wordsinfdset">
- <short>Number of words in a <link id="TFDSet"/> array</short>
- </element>
- <!-- constant Visibility: default -->
- <element name="ln2bitsinword">
- <short>Power of 2 number of bits in word.</short>
- </element>
- <!-- constant Visibility: default -->
- <element name="ln2bitmask">
- <short>Last bit in word.</short>
- </element>
- <!-- alias type Visibility: default -->
- <element name="Blksize_t">
- <short>Block size type.</short>
- </element>
- <!-- alias type Visibility: default -->
- <element name="Blkcnt_t">
- <short>Block count type.</short>
- </element>
- <!-- alias type Visibility: default -->
- <element name="Ino64_t">
- <short>64-bit inode type.</short>
- </element>
- <!-- alias type Visibility: default -->
- <element name="Off64_t">
- <short>64-bit offset type.</short>
- </element>
- <!-- alias type Visibility: default -->
- <element name="TBlkSize">
- <short>Alias for <link id="blksize_t"/> type.</short>
- </element>
- <!-- pointer type Visibility: default -->
- <element name="PBlkSize">
- <short>Pointer to <link id="TBlkSize"/> type.</short>
- </element>
- <!-- alias type Visibility: default -->
- <element name="TBlkCnt">
- <short>Alias for <link id="Blkcnt_t"/> type.</short>
- </element>
- <!-- pointer type Visibility: default -->
- <element name="PBlkCnt">
- <short>pointer to <link id="TBlkCnt"/> type.</short>
- </element>
- <!-- alias type Visibility: default -->
- <element name="TIno64">
- <short>Alias for <link id="Ino64_t"/> type.</short>
- </element>
- <!-- pointer type Visibility: default -->
- <element name="PIno64">
- <short>Pointer to <link id="TIno64"/> type.</short>
- </element>
- <!-- alias type Visibility: default -->
- <element name="TOff64">
- <short>Alias for <link id="Ino64_t"/> type.</short>
- </element>
- <!-- pointer type Visibility: default -->
- <element name="POff64">
- <short>Pointer to <link id="TOff64"/> type.</short>
- </element>
- <!-- record type Visibility: default -->
- <element name="timezone">
- <short>Record describing a timezone</short>
- </element>
- <!-- variable Visibility: default -->
- <element name="timezone.minuteswest">
- <short>Minutes west of GMT</short>
- </element>
- <!-- variable Visibility: default -->
- <element name="timezone.dsttime">
- <short>Daylight savings time</short>
- </element>
- <!-- pointer type Visibility: default -->
- <element name="ptimezone">
- <short>Pointer to <link id="TimeZone"/> record.</short>
- </element>
- <!-- alias type Visibility: default -->
- <element name="TTimeZone">
- <short>Alias for <link id="TimeZone"/> record.</short>
- </element>
- <element name="S_IFMT">
- <short>File (<link id="#rtl.baseunix.stat"/> record) mode: File type bit mask</short>
- </element>
- <element name="S_IFSOCK">
- <short>File (<link id="#rtl.baseunix.stat"/> record) mode: Socket</short>
- </element>
- <element name="S_IFLNK">
- <short>File (<link id="#rtl.baseunix.stat"/> record) mode: Link</short>
- </element>
- <element name="S_IFREG">
- <short>File (<link id="#rtl.baseunix.stat"/> record) mode: Regular file</short>
- </element>
- <element name="S_IFBLK">
- <short>File (<link id="#rtl.baseunix.stat"/> record) mode: Block device</short>
- </element>
- <element name="S_IFDIR">
- <short>File (<link id="#rtl.baseunix.stat"/> record) mode: Directory</short>
- </element>
- <element name="S_IFCHR">
- <short>File (<link id="#rtl.baseunix.stat"/> record) mode: Character device</short>
- </element>
- <element name="S_IFIFO">
- <short>File (<link id="#rtl.baseunix.stat"/> record) mode: FIFO</short>
- </element>
- <element name="SigActionHandler">
- <short>Callback prototype for a <link id="#rtl.baseunix.SigActionRec"/> record.</short>
- <descr>
- When installing a signal handler, the actual signal handler must be of type
- <var>SigActionHandler</var>.
- </descr>
- </element>
- <element name="PSigContext">
- <short>Pointer to <link id="#rtl.baseunix.TSigContext"/> record type.</short>
- </element>
- <element name="TSigContext">
- <short>Record describing the CPU context when a signal occurs.</short>
- <descr>
- This type is CPU dependent. Cross-platform code should not use the contents
- of this record.
- </descr>
- </element>
- <element name="PSigInfo">
- <short>Pointer to <link id="#rtl.baseunix.TSigInfo"/> record type.</short>
- </element>
- <element name="TSigInfo">
- <short>Record describing the signal when a signal occurs.</short>
- <descr>
- This type describes the signal that occurred.
- </descr>
- </element>
- <element name="TSigInfo.si_signo">
- <short>Signal number</short>
- </element>
- <element name="TSigInfo.si_errno">
- <short>Error code</short>
- </element>
- <element name="TSigInfo.si_code">
- <short>Extra code (?)</short>
- </element>
- <element name="TStatFS">
- <short>Record describing a file system in the <link id="baseunix.fpstatfs"/> call.</short>
- </element>
- <element name="TStatFS.fstype">
- <short>File system type</short>
- </element>
- <element name="TStatFS.bsize">
- <short>Block size</short>
- </element>
- <element name="TStatFS.blocks">
- <short>Total number of blocks</short>
- </element>
- <element name="TStatFS.bfree">
- <short>Number of free blocks</short>
- </element>
- <element name="TStatFS.bavail">
- <short>Number of available blocks</short>
- </element>
- <element name="TStatFS.files">
- <short>Number of files</short>
- </element>
- <element name="TStatFS.ffree">
- <short>?</short>
- </element>
- <element name="TStatFS.fsid">
- <short>?</short>
- </element>
- <element name="TStatFS.namelen">
- <short>Max name length for files.</short>
- </element>
- <element name="TStatFS.spare">
- <short>Pad bytes. Do not use.</short>
- </element>
- <element name="TSigInfo.si_fields">
- <short>Extra fields, content depends on the signal.</short>
- </element>
- <element name="MAP_PRIVATE">
- <short><link id="FpMMap"/> map type: Changes are private</short>
- </element>
- <element name="MAP_ANONYMOUS">
- <short><link id="FpMMap"/> map type: Don't use a file</short>
- </element>
- <element name="MAP_GROWSDOWN">
- <short><link id="FpMMap"/> option: Memory grows downward (like a stack)</short>
- </element>
- <element name="MAP_DENYWRITE">
- <short><link id="FpMMap"/> option: Ignored.</short>
- </element>
- <element name="MAP_EXECUTABLE">
- <short><link id="FpMMap"/> option: Ignored.</short>
- </element>
- <element name="MAP_LOCKED">
- <short><link id="FpMMap"/> option: lock the pages in memory.</short>
- </element>
- <element name="MAP_NORESERVE">
- <short><link id="FpMMap"/> option: Do not reserve swap pages for this memory.</short>
- </element>
- <element name="MAP_SHARED">
- <short><link id="FpMMap"/> map type: Share changes</short>
- </element>
- <element name="MAP_TYPE">
- <short><link id="FpMMap"/> map type: Bitmask for type of mapping</short>
- </element>
- <element name="MAP_FIXED">
- <short><link id="FpMMap"/> map type: Interpret addr exactly</short>
- </element>
- <element name="PROT_READ">
- <short><link id="FpMMap"/> memory access: page can be read</short>
- </element>
- <element name="PROT_WRITE">
- <short><link id="FpMMap"/> memory access: page can be written</short>
- </element>
- <element name="PROT_EXEC">
- <short><link id="FpMMap"/> memory access: page can be executed</short>
- </element>
- <element name="PROT_NONE">
- <short><link id="FpMMap"/> memory access: page can not be accessed</short>
- </element>
- <element name="utsname">
- <short>Record used to return kernel information in <link id="fpUName"/> function.</short>
- <descr>
- The elements of this record are null-terminated C style strings, you cannot access them
- directly.
- </descr>
- </element>
- <element name="utsname.sysname">
- <short>System name</short>
- </element>
- <element name="utsname.nodename">
- <short>Computer name</short>
- </element>
- <element name="utsname.release">
- <short>Release number</short>
- </element>
- <element name="utsname.version">
- <short>Version number</short>
- </element>
- <element name="utsname.machine">
- <short>Machine type</short>
- </element>
- <element name="utsname.domain">
- <short>Domain name</short>
- </element>
- <!-- alias type Visibility: default -->
- <element name="TUtsName">
- <short>Alias for <link id="UtsName"/> type.</short>
- </element>
- <!-- alias type Visibility: default -->
- <element name="PUtsName">
- <short>Pointer to <link id="TUtsName"/> type.</short>
- </element>
- <element name="stat">
- <short>Record describing an inode (file) in the <link id="FPFstat"/> call.</short>
- </element>
- <element name="stat.dev">
- <short>Device number</short>
- </element>
- <element name="stat.pad1">
- <short>Pad byte. Do not use</short>
- </element>
- <element name="stat.ino">
- <short>Inode number of file</short>
- </element>
- <element name="stat.mode">
- <short>File mode</short>
- </element>
- <element name="stat.nlink">
- <short>Number of links to file.</short>
- </element>
- <element name="stat.uid">
- <short>File owner UID</short>
- </element>
- <element name="stat.gid">
- <short>File owner GID</short>
- </element>
- <element name="stat.rdev">
- <short></short>
- </element>
- <element name="stat.pad2">
- <short>Pad byte. Do not use</short>
- </element>
- <element name="stat.size">
- <short>File size</short>
- </element>
- <element name="stat.blksize">
- <short>Block size</short>
- </element>
- <element name="stat.blocks">
- <short>Number of blocks used</short>
- </element>
- <element name="stat.atime">
- <short>Last access time</short>
- </element>
- <element name="stat.unused1">
- <short>Pad byte. Do not use</short>
- </element>
- <element name="stat.mtime">
- <short>Last modification time.</short>
- </element>
- <element name="stat.unused2">
- <short>Pad byte. Do not use</short>
- </element>
- <element name="stat.ctime">
- <short>Creation time</short>
- </element>
- <element name="stat.unused3">
- <short>Pad byte. Do not use</short>
- </element>
- <element name="stat.unused4">
- <short>Pad byte. Do not use</short>
- </element>
- <element name="stat.unused5">
- <short>Pad byte. Do not use</short>
- </element>
- <!-- alias type Visibility: default -->
- <element name="TStat">
- <short>Alias for <link id="Stat"/> type.</short>
- </element>
- <!-- pointer type Visibility: default -->
- <element name="PStat">
- <short>Pointer to <link id="TStat"/> type.</short>
- </element>
- <element name="PDirEnt">
- <short>Pointer to <link id="TDirent"/> record.</short>
- </element>
- <element name="Dirent">
- <short>Record used in the <link id="fpReadDir"/> function to return files in a directory.</short>
- </element>
- <element name="Dirent.d_fileno">
- <short>Inode number of file</short>
- </element>
- <element name="Dirent.d_off">
- <short>Offset in directory.</short>
- </element>
- <element name="Dirent.d_reclen">
- <short>Record length</short>
- </element>
- <element name="Dirent.d_name">
- <short>Name of file</short>
- </element>
- <!-- alias type Visibility: default -->
- <element name="TDirent">
- <short>Alias for <link id="Dirent"/> type.</short>
- </element>
- <element name="PDir">
- <short>Pointer to <link id="TDir"/> record</short>
- </element>
- <element name="Dir">
- <short>Record used in <link id="fpOpenDir"/> and <link id="fpReadDir"/> calls </short>
- </element>
- <element name="Dir.dd_fd">
- <short>File descriptor. Do not use.</short>
- </element>
- <element name="Dir.dd_loc">
- <short>Location in directory listing</short>
- </element>
- <element name="Dir.dd_size">
- <short>File size</short>
- </element>
- <element name="Dir.dd_buf">
- <short>Pointer to <link id="Dir"/> records</short>
- </element>
- <element name="Dir.dd_nextoff">
- <short>?</short>
- </element>
- <element name="Dir.dd_max">
- <short>?</short>
- </element>
- <element name="Dir.dd_lock">
- <short>?</short>
- </element>
- <!-- alias type Visibility: default -->
- <element name="TDir">
- <short>Alias for <link id="Dir"/> type.</short>
- </element>
- <element name="Utimbuf">
- <short>Record used in <link id="fpUtime"/> to set file access and modificaton times.</short>
- </element>
- <element name="Utimbuf.actime">
- <short>Access time</short>
- </element>
- <element name="Utimbuf.modtime">
- <short>Modification time</short>
- </element>
- <!-- alias type Visibility: default -->
- <element name="TUtimBuf">
- <short>Alias for <link id="UtimBuf"/> type.</short>
- </element>
- <!-- pointer type Visibility: default -->
- <element name="pUtimBuf">
- <short>Pointer to <link id="TUTimBuf"/> type.</short>
- </element>
- <!-- record type Visibility: default -->
- <element name="FLock">
- <short>Lock description type for <link id="fpFCntl"/> lock call.</short>
- </element>
- <!-- variable Visibility: default -->
- <element name="FLock.l_type">
- <short>Type of lock.</short>
- </element>
- <!-- variable Visibility: default -->
- <element name="FLock.l_whence">
- <short>Where to measure start of lock from</short>
- </element>
- <!-- variable Visibility: default -->
- <element name="FLock.l_start">
- <short>Start of lock</short>
- </element>
- <!-- variable Visibility: default -->
- <element name="FLock.l_len">
- <short>Length of locked area</short>
- </element>
- <!-- variable Visibility: default -->
- <element name="FLock.l_pid">
- <short>Process ID of process holding the lock</short>
- </element>
- <!-- record type Visibility: default -->
- <element name="tms">
- <short>Record containing timings for <link id="fpTimes"/> call.</short>
- </element>
- <!-- variable Visibility: default -->
- <element name="tms.tms_utime">
- <short>User time.</short>
- </element>
- <!-- variable Visibility: default -->
- <element name="tms.tms_stime">
- <short>System time.</short>
- </element>
- <!-- variable Visibility: default -->
- <element name="tms.tms_cutime">
- <short>Children's user time.</short>
- </element>
- <!-- variable Visibility: default -->
- <element name="tms.tms_cstime">
- <short>Children's system time.</short>
- </element>
- <!-- alias type Visibility: default -->
- <element name="TTms">
- <short>Alias for <link id="Tms"/> record type.</short>
- </element>
- <!-- pointer type Visibility: default -->
- <element name="PTms">
- <short>Pointer to <link id="TTms"/> type.</short>
- </element>
- <!-- array type Visibility: default -->
- <element name="TFDSet">
- <short>File descriptor set for <link id="fpSelect"/> call.</short>
- </element>
- <!-- pointer type Visibility: default -->
- <element name="pFDSet">
- <short>Pointer to <link id="TFDSet"/> type.</short>
- </element>
- <element name="R_OK">
- <short><link id="fpAccess"/> call test: read allowed </short>
- </element>
- <element name="W_OK">
- <short><link id="fpAccess"/> call test: write allowed </short>
- </element>
- <element name="X_OK">
- <short><link id="fpAccess"/> call test: execute allowed </short>
- </element>
- <element name="F_OK">
- <short><link id="fpAccess"/> call test: file exists.</short>
- </element>
- <element name="Seek_set">
- <short><link id="fpLSeek"/> option: Set absolute position.</short>
- </element>
- <!-- constant Visibility: default -->
- <element name="Seek_Cur">
- <short><link id="fpLSeek"/> option: Set position relative to current position.</short>
- </element>
- <!-- constant Visibility: default -->
- <element name="Seek_End">
- <short><link id="fpLSeek"/> option: Set position relative to end of file.</short>
- </element>
- <!-- constant Visibility: default -->
- <element name="O_RdOnly">
- <short><link id="fpOpen"/> file open mode: Read only</short>
- </element>
- <!-- constant Visibility: default -->
- <element name="O_WrOnly">
- <short><link id="fpOpen"/> file open mode: Write only</short>
- </element>
- <!-- constant Visibility: default -->
- <element name="O_RdWr">
- <short><link id="fpOpen"/> file open mode: Read/Write</short>
- </element>
- <!-- constant Visibility: default -->
- <element name="O_Creat">
- <short><link id="fpOpen"/> file open mode: Create if file does not yet exist.</short>
- </element>
- <!-- constant Visibility: default -->
- <element name="O_Excl">
- <short><link id="fpOpen"/> file open mode: Open exclusively</short>
- </element>
- <!-- constant Visibility: default -->
- <element name="O_NoCtty">
- <short><link id="fpOpen"/> file open mode: No TTY control.</short>
- </element>
- <!-- constant Visibility: default -->
- <element name="O_Trunc">
- <short><link id="fpOpen"/> file open mode: Truncate file to length 0</short>
- </element>
- <!-- constant Visibility: default -->
- <element name="O_Append">
- <short><link id="fpOpen"/> file open mode: Append to file</short>
- </element>
- <!-- constant Visibility: default -->
- <element name="O_NonBlock">
- <short><link id="fpOpen"/> file open mode: Open in non-blocking mode</short>
- </element>
- <!-- constant Visibility: default -->
- <element name="O_NDelay">
- <short><link id="fpOpen"/> file open mode: Alias for <link id="O_NonBlock"/></short>
- </element>
- <!-- constant Visibility: default -->
- <element name="O_Sync">
- <short><link id="fpOpen"/> file open mode: Write to disc at once</short>
- </element>
- <!-- constant Visibility: default -->
- <element name="O_Direct">
- <short><link id="fpOpen"/> file open mode: Minimize caching effects</short>
- </element>
- <!-- constant Visibility: default -->
- <element name="O_LargeFile">
- <short><link id="fpOpen"/> file open mode: Open for 64-bit I/O</short>
- </element>
- <!-- constant Visibility: default -->
- <element name="O_Directory">
- <short><link id="fpOpen"/> file open mode: File must be directory.</short>
- </element>
- <!-- constant Visibility: default -->
- <element name="O_NoFollow">
- <short><link id="fpOpen"/> file open mode: Fail if file is symbolic link.</short>
- </element>
- <element name="S_ISUID">
- <short>Mode flag: Set user ID on execution.</short>
- </element>
- <element name="S_ISGID">
- <short>Mode flag: Set Group ID on execution.</short>
- </element>
- <element name="S_ISVTX">
- <short>Mode flag: Set sticky bit.</short>
- </element>
- <element name="S_IRUSR">
- <short>Mode flag: Read by owner.</short>
- </element>
- <element name="S_IWUSR">
- <short>Mode flag: Write by owner.</short>
- </element>
- <element name="S_IXUSR">
- <short>Mode flag: Execute by owner.</short>
- </element>
- <element name="S_IRGRP">
- <short>Mode flag: Read by group.</short>
- </element>
- <element name="S_IWGRP">
- <short>Mode flag: Write by group.</short>
- </element>
- <element name="S_IXGRP">
- <short>Mode flag: Execute by group.</short>
- </element>
- <element name="S_IROTH">
- <short>Mode flag: Read by others.</short>
- </element>
- <element name="S_IWOTH">
- <short>Mode flag: Write by others.</short>
- </element>
- <element name="S_IXOTH">
- <short>Mode flag: Execute by others.</short>
- </element>
- <element name="S_IRWXO">
- <short>Mode flag: Read, write, execute by others.</short>
- </element>
- <element name="S_IRWXG">
- <short>Mode flag: Read, write, execute by groups.</short>
- </element>
- <element name="S_IRWXU">
- <short>Mode flag: Read, write, execute by user.</short>
- </element>
- <!-- constant Visibility: default -->
- <element name="WNOHANG">
- <short><link id="#rtl.baseunix.fpWaitpid"/> option: Do not wait for processes to terminate.</short>
- </element>
- <!-- constant Visibility: default -->
- <element name="WUNTRACED">
- <short><link id="#rtl.baseunix.fpWaitpid"/> option: Also report children wich were stopped but not yet reported</short>
- </element>
- <element name="F_GetFd">
- <short><link id="fpFCntl"/> command: Get close-on-exec flag</short>
- </element>
- <element name="F_SetFd">
- <short><link id="fpFCntl"/> command: Set close-on-exec flag</short>
- </element>
- <element name="F_GetFl">
- <short><link id="fpFCntl"/> command: Get filedescriptor flags</short>
- </element>
- <element name="F_SetFl">
- <short><link id="fpFCntl"/> command: Set filedescriptor flags</short>
- </element>
- <element name="F_GetLk">
- <short><link id="fpFCntl"/> command: Get lock</short>
- </element>
- <element name="F_SetLk">
- <short><link id="fpFCntl"/> command: Set lock</short>
- </element>
- <element name="F_SetLkW">
- <short><link id="fpFCntl"/> command: Test lock</short>
- </element>
- <element name="F_GetOwn">
- <short><link id="fpFCntl"/> command: get owner of filedescriptor events</short>
- </element>
- <element name="F_SetOwn">
- <short><link id="fpFCntl"/> command: Set owner of filedescriptor events</short>
- </element>
- <!-- constant Visibility: default -->
- <element name="SA_NOCLDSTOP">
- <short>Sigaction options: Do not receive notification when child processes stop</short>
- </element>
- <!-- constant Visibility: default -->
- <element name="SA_NOCLDWAIT">
- <short>Sigaction options: ?</short>
- </element>
- <!-- constant Visibility: default -->
- <element name="SA_SIGINFO">
- <short>Sigaction options: The signal handler takes 3 arguments, not one.</short>
- </element>
- <!-- constant Visibility: default -->
- <element name="SA_SHIRQ">
- <short>Sigaction options: ?</short>
- </element>
- <!-- constant Visibility: default -->
- <element name="SA_STACK">
- <short>Sigaction options: Call the signal handler on an alternate signal stack.</short>
- </element>
- <!-- constant Visibility: default -->
- <element name="SA_RESTART">
- <short>Sigaction options: Provide behaviour compatible with BSD signal semantics</short>
- </element>
- <!-- constant Visibility: default -->
- <element name="SA_INTERRUPT">
- <short>Sigaction options: ?</short>
- </element>
- <!-- constant Visibility: default -->
- <element name="SA_NOMASK">
- <short>Sigaction options: Do not prevent the signal from being received when it is handled.</short>
- </element>
- <!-- constant Visibility: default -->
- <element name="SA_ONESHOT">
- <short>Sigaction options: Restore the signal action to the default state.</short>
- </element>
- <element name="SIG_BLOCK">
- <short>Sigprocmask flags: Add signals to the set of blocked signals.</short>
- </element>
- <element name="SIG_UNBLOCK">
- <short>Sigprocmask flags: Remove signals from the set set of blocked signals.</short>
- </element>
- <element name="SIG_SETMASK">
- <short>Sigprocmask flags: Set of blocked signals is given.</short>
- </element>
- <element name="SIG_DFL">
- <short>Signal handler: Default signal handler</short>
- </element>
- <element name="SIG_IGN">
- <short>Signal handler: Ignore signal</short>
- </element>
- <element name="SIG_ERR">
- <short>Signal handler: error</short>
- </element>
- <element name="SIGHUP">
- <short>Signal: HUP (Hangup)</short>
- </element>
- <element name="SIGINT">
- <short>Signal: INT (Interrupt)</short>
- </element>
- <element name="SIGQUIT">
- <short>Signal: QUIT</short>
- </element>
- <element name="SIGILL">
- <short>Signal: ILL (Illegal instruction)</short>
- </element>
- <element name="SIGTRAP">
- <short>Signal: TRAP (Trace trap)</short>
- </element>
- <element name="SIGABRT">
- <short>Signal: ABRT (Abort)</short>
- </element>
- <element name="SIGIOT">
- <short>Signal: IOT (IOT trap)</short>
- </element>
- <element name="SIGBUS">
- <short>Signal: BUS (bus error)</short>
- </element>
- <element name="SIGFPE">
- <short>Signal: FPE (Floating point error)</short>
- </element>
- <element name="SIGKILL">
- <short>Signal: KILL (unblockable)</short>
- </element>
- <element name="SIGUSR1">
- <short>Signal: USR1 (User-defined signal 1)</short>
- </element>
- <element name="SIGSEGV">
- <short>Signal: SEGV (Segmentation violation)</short>
- </element>
- <element name="SIGUSR2">
- <short>Signal: USR2 (User-defined signal 2)</short>
- </element>
- <element name="SIGPIPE">
- <short>Signal: PIPE (Broken pipe</short>
- </element>
- <element name="SIGALRM">
- <short>Signal: ALRM (Alarm clock)</short>
- </element>
- <element name="SIGTERM">
- <short>Signal: TERM (Terminate)</short>
- </element>
- <element name="SIGSTKFLT">
- <short>Signal: STKFLT (Stack Fault)</short>
- </element>
- <element name="SIGCHLD">
- <short>Signal: CHLD (child status changed)</short>
- </element>
- <element name="SIGCONT">
- <short>Signal: CONT (Continue)</short>
- </element>
- <element name="SIGSTOP">
- <short>Signal: STOP (Stop, unblockable)</short>
- </element>
- <element name="SIGTSTP">
- <short>Signal: TSTP (keyboard stop)</short>
- </element>
- <element name="SIGTTIN">
- <short>Signal: TTIN (Terminal input, background)</short>
- </element>
- <element name="SIGTTOU">
- <short>Signal: TTOU (Terminal output, background)</short>
- </element>
- <element name="SIGURG">
- <short>Signal: URG (Socket urgent condition)</short>
- </element>
- <element name="SIGXCPU">
- <short>Signal: XCPU (CPU limit exceeded)</short>
- </element>
- <element name="SIGXFSZ">
- <short>Signal: XFSZ (File size limit exceeded)</short>
- </element>
- <element name="SIGVTALRM">
- <short>Signal: VTALRM (Virtual alarm clock)</short>
- </element>
- <element name="SIGPROF">
- <short>Signal: PROF (Profiling alarm)</short>
- </element>
- <element name="SIGWINCH">
- <short>Signal: WINCH (Window/Terminal size change)</short>
- </element>
- <element name="SIGIO">
- <short>Signal: IO (I/O operation possible)</short>
- </element>
- <element name="SIGPOLL">
- <short>Signal: POLL (Pollable event) </short>
- </element>
- <element name="SIGPWR">
- <short>Signal: PWR (power failure restart)</short>
- </element>
- <element name="SIGUNUSED">
- <short>Signal: Unused</short>
- </element>
- <!-- constant Visibility: default -->
- <element name="SI_PAD_SIZE">
- <short>Signal information pad size.</short>
- </element>
- <element name="tfpreg">
- <short>Record describing floating point register in signal handler.</short>
- </element>
- <element name="tfpreg.significand">
- <short>Decimal part of floating point value</short>
- </element>
- <element name="tfpreg.exponent">
- <short>Exponent of floating point value</short>
- </element>
- <element name="pfpstate">
- <short>Pointer to <link id="tfpstate"/> record.</short>
- </element>
- <element name="tfpstate">
- <short>Record describing floating point unit in signal handler.</short>
- </element>
- <element name="tfpstate.cw">
- <short></short>
- </element>
- <element name="tfpstate.sw">
- <short></short>
- </element>
- <element name="tfpstate.tag">
- <short></short>
- </element>
- <element name="tfpstate.ipoff">
- <short></short>
- </element>
- <element name="tfpstate.cssel">
- <short></short>
- </element>
- <element name="tfpstate.dataoff">
- <short></short>
- </element>
- <element name="tfpstate.datasel">
- <short></short>
- </element>
- <element name="tfpstate.st">
- <short></short>
- </element>
- <element name="tfpstate.status">
- <short></short>
- </element>
- <!-- array type Visibility: default -->
- <!-- alias type Visibility: default -->
- <element name="SigSet">
- <short>Signal set type</short>
- </element>
- <!-- alias type Visibility: default -->
- <element name="sigset_t">
- <short>Signal set type</short>
- </element>
- <!-- pointer type Visibility: default -->
- <element name="PSigSet">
- <short>Pointer to <link id="SigSet"/> type.</short>
- </element>
- <!-- alias type Visibility: default -->
- <element name="psigset_t">
- <short>Pointer to <link id="sigset_t"/> type.</short>
- </element>
- <!-- alias type Visibility: default -->
- <element name="TSigSet">
- <short>Alias for <link id="SigSet"/> type.</short>
- </element>
- <!-- pointer type Visibility: default -->
- <element name="PSigInfoRec">
- <short>Pointer to <link id="SigInfoRec"/> record type.</short>
- </element>
- <!-- record type Visibility: default -->
- <element name="SigInfoRec">
- <short>Record containing signal information.</short>
- </element>
- <!-- variable Visibility: default -->
- <element name="SigInfoRec.si_signo">
- <short>Signal number.</short>
- </element>
- <!-- variable Visibility: default -->
- <element name="SigInfoRec.si_errno">
- <short>?</short>
- </element>
- <!-- variable Visibility: default -->
- <element name="SigInfoRec.si_code">
- <short>?</short>
- </element>
- <!-- procedure type Visibility: default -->
- <element name="SignalHandler">
- <short>Simple signal handler prototype</short>
- </element>
- <!-- pointer type Visibility: default -->
- <element name="PSignalHandler">
- <short>Pointer to <link id="SignalHandler"/> type.</short>
- </element>
- <element name="SignalRestorer">
- <short>Signal restorer function prototype</short>
- </element>
- <element name="PSignalrestorer">
- <short>Pointer to <link id="SignalRestorer"/> type</short>
- </element>
- <!-- procedure type Visibility: default -->
- <element name="TSigAction">
- <short>Extended signal handler prototype.</short>
- </element>
- <!-- record type Visibility: default -->
- <element name="SigActionRec">
- <short>Record used in <link id="fpSigAction"/> call.</short>
- </element>
- <element name="SigActionRec.sa_handler">
- <short>Funcion called when signal is triggered.</short>
- </element>
- <element name="SigActionRec.Sa_Mask">
- <short>Signal mask.</short>
- </element>
- <element name="SigActionRec.SA_FLAGS">
- <short>Flags for SigAction</short>
- </element>
- <element name="SigActionRec.SA_RESTORER">
- <short>Obsolete, don't use</short>
- </element>
- <!-- alias type Visibility: default -->
- <element name="TSigActionRec">
- <short>Alias for <link id="SigActionRec"/> record type.</short>
- </element>
- <!-- pointer type Visibility: default -->
- <element name="PSigActionRec">
- <short>Pointer to <link id="SigActionRec"/> record type.</short>
- </element>
- <!-- array type Visibility: default -->
- <element name="TGrpArr">
- <short>Array of <link id="gid_t"/> IDs</short>
- </element>
- <!-- pointer type Visibility: default -->
- <element name="pGrpArr">
- <short>Pointer to <link id="TGrpArr"/> array.</short>
- </element>
- <!-- array type Visibility: default -->
- <element name="TFilDes">
- <short>Array of file descriptors as used in <link id="fpPipe"/> call.</short>
- </element>
- <!-- pointer type Visibility: default -->
- <element name="pFilDes">
- <short>Pointer to <link id="TFilDes"/> type.</short>
- </element>
- <!-- function Visibility: default -->
- <element name="FpSigProcMask">
- <short>Set list of blocked signals</short>
- <descr>
- <p>
- Changes the list of currently blocked signals. The behaviour of the call
- depends on <var>How</var> :
- </p>
- <dl>
- <dt>SIG_BLOCK</dt>
- <dd>The set of blocked signals is the union of the current set
- and the <var>nset</var> argument.</dd>
- <dt>SIG_UNBLOCK</dt>
- <dd>The signals in <var>nset</var> are removed from the set of
- currently blocked signals.</dd>
- <dt>SIG_SETMASK</dt>
- <dd>The list of blocked signals is set so <var>nset</var>.
- </dd>
- </dl>
- <p>
- If <var>oset</var> is non-nil, then the old set is stored in it.
- </p>
- </descr>
- <errors>
- <p>
- <var>Errno</var> is used to report errors.
- </p>
- <dl>
- <dt>sys_efault</dt>
- <dd><var>oset</var> or <var>nset</var> point to an adress outside
- the range of the process.</dd>
- <dt>sys_eintr</dt>
- <dd> System call was interrupted.</dd>
- </dl>
- </errors>
- <seealso>
- <link id="fpSigAction"/>
- <link id="fpSigPending"/>
- <link id="fpSigSuspend"/>
- <link id="fpKill"/>
- </seealso>
- </element>
- <!-- function Visibility: default -->
- <element name="FpSigPending">
- <short>Return set of currently pending signals</short>
- <descr>
- <var>fpSigpending</var> allows the examination of pending signals (which have been raised
- while blocked.) The signal mask of pending signals is returned.
- </descr>
- <errors>
- None
- </errors>
- <seealso>
- <link id="fpSigAction"/>
- <link id="fpSigProcMask"/>
- <link id="fpSigSuspend"/>
- <link id="fpSignal"/>
- <link id="fpKill"/>
- </seealso>
- </element>
- <!-- function Visibility: default -->
- <element name="FpSigSuspend">
- <short>Set signal mask and suspend process till signal is received</short>
- <descr>
- <var>fpSigSuspend</var> temporarily replaces the signal mask for the process with the one
- given in <var>SigMask</var>, and then suspends the process until a signal is received.
- </descr>
- <errors>
- None
- </errors>
- <seealso>
- <link id="fpSigAction"/>
- <link id="fpSigProcMask"/>
- <link id="fpSigPending"/>
- <link id="fpSignal"/>
- <link id="fpKill"/>
- </seealso>
- </element>
- <!-- function Visibility: default -->
- <element name="FpUmask">
- <short>Set file creation mask.</short>
- <descr>
- <var>fpUmask</var> changes the file creation mask for the current user to
- <var>cmask</var>. The current mask is returned.
- </descr>
- <seealso>
- <link id="fpChmod"/>
- </seealso>
- <example file="bunixex/ex27"/>
- </element>
- <!-- function Visibility: default -->
- <element name="FpLink">
- <short>Create a hard link to a file</short>
- <descr>
- <var>fpLink</var> makes <var>NewOne</var> point to the same file als
- <var>Existing</var>. The two files
- then have the same inode number. This is known as a 'hard' link.
- The function returns <var>zero</var> if the call was succesfull, and returns
- a <var>non-zero</var> value if the call failed.
- </descr>
- <errors>
- <p>
- The following error codes are returned:
- </p>
- <dl>
- <dt>sys_exdev</dt>
- <dd> <var>Existing</var> and <var>NewOne</var> are not on the same filesystem.</dd>
- <dt>sys_eperm</dt><dd> The filesystem containing <var>Existing</var> and
- <var>NewOne</var> doesn't support linking files.</dd>
- <dt>sys_eaccess</dt>
- <dd>Write access for the directory containing <var>NewOne</var>
- is disallowed, or one of the directories in <var>Existing</var> or <var>NewOne</var> has no
- search (=execute) permission.</dd>
- <dt>sys_enoent</dt>
- <dd>A directory entry in <var>Existing</var> or <var>NewOne</var> does
- not exist or is a symbolic link pointing to a non-existent directory.</dd>
- <dt>sys_enotdir</dt>
- <dd> A directory entry in <var>Existing</var> or <var>NewOne</var> is
- nor a directory.</dd>
- <dt>sys_enomem</dt><dd> Insufficient kernel memory.</dd>
- <dt>sys_erofs</dt><dd> The files are on a read-only filesystem.</dd>
- <dt>sys_eexist</dt><dd> <var>NewOne</var> already exists.</dd>
- <dt>sys_emlink</dt><dd> <var>Existing</var> has reached maximal link count.</dd>
- <dt>sys_eloop</dt>
- <dd><var>existing</var> or <var>NewOne</var> has a reference to a circular
- symbolic link, i.e. a symbolic link, whose expansion points to itself.</dd>
- <dt>sys_enospc</dt>
- <dd> The device containing <var>NewOne</var> has no room for another
- entry.</dd>
- <dt>sys_eperm</dt>
- <dd><var>Existing</var> points to . or .. of a directory.</dd>
- </dl>
- </errors>
- <seealso>
- <link id="fpSymLink"/>
- <link id="fpUnLink"/>
- </seealso>
- <example file="bunixex/ex21"/>
- </element>
- <!-- function Visibility: default -->
- <element name="FpMkfifo">
- <short>Create FIFO (named pipe) in file system</short>
- <descr>
- <p>
- <var>fpMkFifo</var> creates named a named pipe in the filesystem, with name
- <var>Path</var> and mode <var>Mode</var>.
- </p>
- <p>
- The function returns zero if the command was succesful, and nonzero if it
- failed.
- </p>
- </descr>
- <errors>
- <p>
- The error codes include:
- </p>
- <dl>
- <dt>sys_emfile</dt><dd> Too many file descriptors for this process.</dd>
- <dt>sys_enfile</dt><dd> The system file table is full.</dd>
- </dl>
- </errors>
- </element>
- <!-- function Visibility: default -->
- <element name="FpChmod">
- <short>Change file permission bits</short>
- <descr>
- <p>
- <var>fpChmod</var>
- sets the Mode bits of the file in <var>Path</var> to <var>Mode</var>.
- <var>Mode</var> can be specified by 'or'-ing the following values:
- </p>
- <dl>
- <dt>S_ISUID</dt><dd> Set user ID on execution.</dd>
- <dt>S_ISGID</dt><dd> Set Group ID on execution.</dd>
- <dt>S_ISVTX</dt><dd> Set sticky bit.</dd>
- <dt>S_IRUSR</dt><dd> Read by owner.</dd>
- <dt>S_IWUSR</dt><dd> Write by owner.</dd>
- <dt>S_IXUSR</dt><dd> Execute by owner.</dd>
- <dt>S_IRGRP</dt><dd> Read by group.</dd>
- <dt>S_IWGRP</dt><dd> Write by group.</dd>
- <dt>S_IXGRP</dt><dd> Execute by group.</dd>
- <dt>S_IROTH</dt><dd> Read by others.</dd>
- <dt>S_IWOTH</dt><dd> Write by others.</dd>
- <dt>S_IXOTH</dt><dd> Execute by others.</dd>
- <dt>S_IRWXO</dt><dd> Read, write, execute by others.</dd>
- <dt>S_IRWXG</dt><dd> Read, write, execute by groups.</dd>
- <dt>S_IRWXU</dt><dd> Read, write, execute by user.</dd>
- </dl>
- <p>
- If the function is successful, zero is returned. A nonzero return value
- indicates an error.
- </p>
- </descr>
- <errors>
- <p>
- The following error codes are returned:
- </p>
- <dl>
- <dt>sys_eperm</dt>
- <dd> The effective UID doesn't match the ownership of the file,
- and is not zero. Owner or group were not specified correctly.</dd>
- <dt>sys_eaccess</dt>
- <dd> One of the directories in <var>Path</var> has no
- search (=execute) permission.</dd>
- <dt>sys_enoent</dt>
- <dd> A directory entry in <var>Path</var> does
- not exist or is a symbolic link pointing to a non-existent directory.</dd>
- <dt>sys_enomem</dt>
- <dd> Insufficient kernel memory.</dd>
- <dt>sys_erofs</dt>
- <dd> The file is on a read-only filesystem.</dd>
- <dt>sys_eloop</dt>
- <dd> <var>Path</var> has a reference to a circular
- symbolic link, i.e. a symbolic link, whose expansion points to itself.</dd>
- </dl>
- </errors>
- <seealso>
- <link id="fpChown"/>
- <link id="fpAccess"/>
- </seealso>
- <example file="bunixex/ex23"/>
- </element>
- <!-- function Visibility: default -->
- <element name="FpChown">
- <short>Change owner of file</short>
- <descr>
- <p>
- <var>fpChown</var> sets the User ID and Group ID of the file in <var>Path</var> to
- <var>Owner</var>,<var>Group</var>.
- </p>
- <p>
- The function returns zero if the call was succesfull, a nonzero return value
- indicates an error.
- </p>
- </descr>
- <errors>
- <p>
- The following error codes are returned:
- </p>
- <dl>
- <dt>sys_eperm</dt>
- <dd> The effective UID doesn't match the ownership of the file,
- and is not zero. Owner or group were not specified correctly.</dd>
- <dt>sys_eaccess</dt>
- <dd> One of the directories in <var>Path</var> has no
- search (=execute) permission.</dd>
- <dt>sys_enoent</dt>
- <dd> A directory entry in <var>Path</var> does
- not exist or is a symbolic link pointing to a non-existent directory.</dd>
- <dt>sys_enomem</dt>
- <dd> Insufficient kernel memory.</dd>
- <dt>sys_erofs</dt>
- <dd> The file is on a read-only filesystem.</dd>
- <dt>sys_eloop</dt>
- <dd> <var>Path</var> has a reference to a circular
- symbolic link, i.e. a symbolic link, whose expansion points to itself.</dd>
- </dl>
- </errors>
- <seealso>
- <link id="fpChmod"/>
- <link id="fpAccess"/>
- </seealso>
- <example file="bunixex/ex24"/>
- </element>
- <!-- function Visibility: default -->
- <element name="FpUtime">
- <short>Set access and modification times of a file (touch).</short>
- <descr>
- <var>FpUtime</var> sets the access and modification times of a file.
- the <var>times</var> record contains 2 fields, <var>actime</var>, and <var>modtime</var>,
- both of type Longint. They should be filled with an epoch-like time,
- specifying, respectively, the last access time, and the last modification
- time.
- For some filesystem (most notably, FAT), these times are the same.
- </descr>
- <errors>
- <p>
- Errors are returned in <var>LinuxError</var>.
- </p>
- <dl>
- <dt>sys_eaccess</dt>
- <dd> One of the directories in <var>Path</var> has no
- search (=execute) permission.</dd>
- <dt>sys_enoent</dt>
- <dd> A directory entry in <var>Path</var> does
- not exist or is a symbolic link pointing to a non-existent directory.
- </dd>
- </dl>
- <p>
- Other errors may occur, but aren't documented.
- </p>
- </errors>
- <seealso>
- <link id="fpChown"/>
- <link id="fpAccess"/>
- </seealso>
- <example file="bunixex/ex25"/>
- </element>
- <!-- function Visibility: default -->
- <element name="FpPipe">
- <short>Create a set of pipe file handlers</short>
- <descr>
- <p>
- <var>FpPipe</var> creates a pipe, i.e. two file objects, one for input,
- one for output. The filehandles are returned in the array <var>fildes</var>.
- The input handle is in the 0-th element of the array, the output handle is
- in the 1-st element.
- </p>
- <p>
- The function returns zero if everything went succesfully,
- a nonzero return value indicates an error.
- </p>
- </descr>
- <errors>
- <p>
- In case the function fails, the following return values are possible:
- </p>
- <dl>
- <dt>sys_emfile</dt>
- <dd> Too many file descriptors for this process.</dd>
- <dt>sys_enfile</dt>
- <dd> The system file table is full.</dd>
- </dl>
- </errors>
- <seealso>
- <link id="#rtl.unix.POpen"/>
- <link id="fpMkFifo"/>
- </seealso>
- <example file="bunixex/ex36"/>
- </element>
- <!-- function Visibility: default -->
- <element name="FpDup">
- <short>Duplicate a file handle</short>
- <descr>
- <p>
- <var>FpDup</var> returns a file descriptor that is a duplicate of the file
- descriptor <var>fildes</var>.
- </p>
- <p>The second and third forms make <var>NewFile</var> an exact copy of <var>OldFile</var>,
- after having flushed the buffer of <var>OldFile</var> in case it is a Text file
- or untyped file.
- Due to the buffering mechanism of Pascal, these calls do not have the same functionality
- as the <var>dup</var> call in C. The internal Pascal buffers are not the same
- after this call, but when the buffers are flushed (e.g. after output),
- the output is sent to the same file.
- Doing an lseek will, however, work as in C, i.e. doing a lseek will change
- the fileposition in both files.
- </p>
- <p>
- The function returns a negative value in case of an error, a positive value
- is a file handle, and indicates succes.
- </p>
- </descr>
- <errors>
- <p>
- A negative value can be one of the following error codes:
- </p>
- <dl>
- <dt>sys_ebadf</dt><dd> <var>OldFile</var> hasn't been assigned.</dd>
- <dt>sys_emfile</dt><dd> Maximum number of open files for the process is reached.</dd>
- </dl>
- </errors>
- <seealso>
- <link id="fpDup2"/>
- </seealso>
- <example file="bunixex/ex31"/>
- </element>
- <!-- function Visibility: default -->
- <element name="FpDup2">
- <short>Duplicate one filehandle to another</short>
- <descr>
- <p>
- Makes <var>fildes2</var> or <var>NewFile</var> an exact copy of
- <var>fildes</var> or <var>OldFile</var>, after having flushed the
- buffer of <var>OldFile</var> in the case of text or untyped files.
- </p>
- <p>
- <var>NewFile</var> can be an assigned file. If <var>newfile</var> was open, it is
- closed first. Due to the buffering mechanism of Pascal, this has not
- the same functionality as the <var>dup2</var> call in C. The internal Pascal
- buffers are not the same after this call, but when the buffers are flushed
- (e.g. after output), the output is sent to the same file.
- Doing an lseek will, however, work as in C, i.e. doing a lseek will change the
- fileposition in both files.
- </p>
- <p>
- The function returns zero if succesful, a nonzero return value means the
- call failed.
- </p>
- </descr>
- <errors>
- <p>
- In case of error, the following error codes can be reported:
- </p>
- <dl>
- <dt>sys_ebadf</dt><dd> <var>OldFile</var> (or <var>fildes</var>) hasn't been assigned.</dd>
- <dt>sys_emfile</dt><dd> Maximum number of open files for the process is reached.</dd>
- </dl>
- </errors>
- <seealso>
- <link id="fpDup"/>
- </seealso>
- <example file="bunixex/ex32"/>
- </element>
- <!-- function Visibility: default -->
- <element name="FpTimes">
- <short>Return execution times for the current process</short>
- <descr>
- <p>
- <var>fpTimes</var> stores the execution time of the current process and
- child processes in <var>buffer</var>.
- </p>
- <p>
- The return value (on linux) is the number of clock ticks since boot time. On
- error, -1 is returned, and extended error information can be retrieved with
- <link id="fpGetErrno"/>.
- </p>
- </descr>
- <seealso>
- <link id="fpUTime"/>
- </seealso>
- </element>
- <!-- function Visibility: default -->
- <element name="FpAlarm">
- <short>Schedule an alarm signal to be delivered</short>
- <descr>
- <p>
- <var>FpAlarm</var> schedules an alarm signal to be delivered to your process in
- <var>Seconds</var> seconds. When <var>Seconds</var> seconds have elapsed,
- the system will send a <var>SIGALRM</var> signal to the current process.
- If <var>Seconds</var> is zero, then no new alarm will
- be set. Whatever the value of <var>Seconds</var>, any previous alarm is cancelled.
- </p>
- <p>
- The function returns the number of seconds till the previously scheduled
- alarm was due to be delivered, or zero if there was none. A negative value
- indicates an error.
- </p>
- </descr>
- <seealso>
- <link id="fpSigAction"/>
- <link id="fpPause"/>
- </seealso>
- <example file="bunixex/ex59"/>
- </element>
- <!-- function Visibility: default -->
- <element name="FpPause">
- <short>Wait for a signal to arrive</short>
- <descr>
- <p>
- <var>FpPause</var> puts the process to sleep and waits until the application
- receives a signal. If a signal handler is installed for the received
- sigal, the handler will be called and after that pause will return
- control to the process.
- </p>
- <p>
- For an example, see <link id="fpAlarm"/>.
- </p>
- </descr>
- <link id="FpAlarm"/>
- <link id="FpSigAction"/>
- </element>
- <!-- function Visibility: default -->
- <element name="FpSleep">
- <short>Suspend process for several seconds</short>
- <descr>
- <p>
- <var>FpSleep</var> suspends the process till a time period as specified
- in <var>seconds</var> has passed, then the function returns. If the
- call was interrupted (e.g. by some signal) then the function may
- return earlier, and the return value is the remaining time till the
- end of the intended period.
- </p>
- <p>
- If the function returns without error, the return value is zero.
- </p>
- </descr>
- <seealso>
- <link id="fpPause"/>
- <link id="fpAlarm"/>
- <link id="fpNanoSleep"/>
- </seealso>
- <example file="bunixex/ex73"/>
- </element>
- <!-- function Visibility: default -->
- <element name="FpGetpid">
- <short>Return current process ID</short>
- <descr>
- <var>FpGetpid</var> returns the Process ID of the currently running process.
- </descr>
- <errors>
- None.
- </errors>
- <seealso>
- <link id="FpGetPPid"/>
- </seealso>
- <example file="bunixex/ex16"/>
- </element>
- <!-- function Visibility: default -->
- <element name="FpGetppid">
- <short>Return parent process ID</short>
- <descr>
- <var>FpGetppid</var> returns the Process ID of the parent process.
- </descr>
- <errors>
- None.
- </errors>
- <seealso>
- <link id="FpGetPid"/>
- </seealso>
- <example file="bunixex/ex16"/>
- </element>
- <!-- function Visibility: default -->
- <element name="FpGetuid">
- <short>Return current user ID</short>
- <descr>
- <var>FpGetuid</var> returns the real user ID of the currently running process.
- </descr>
- <errors>
- None.
- </errors>
- <seealso>
- <link id="FpGetGid"/>
- <link id="FpGetEUid"/>
- <link id="FpGetEGid"/>
- <link id="FpGetPid"/>
- <link id="FpGetPPid"/>
- <link id="fpSetUID"/>
- </seealso>
- <example file="bunixex/ex17"/>
- </element>
- <!-- function Visibility: default -->
- <element name="FpGeteuid">
- <short>Return effective user ID</short>
- <descr>
- <var>FpGeteuid</var> returns the effective user ID of the currently running process.
- </descr>
- <errors>
- None.
- </errors>
- <seealso>
- <link id="FpGetUid"/>
- <link id="FpGetGid"/>
- <link id="FpGetEGid"/>
- <link id="FpGetPid"/>
- <link id="FpGetPPid"/>
- <link id="fpSetUID"/>
- <link id="FpSetGid"/>
- </seealso>
- <example file="bunixex/ex17"/>
- </element>
- <!-- function Visibility: default -->
- <element name="FpGetgid">
- <short>Return real group ID</short>
- <descr>
- <var>FpGetgid</var> returns the real group ID of the currently running process.
- </descr>
- <errors>
- None.
- </errors>
- <seealso>
- <link id="FpGetEGid"/>
- <link id="FpGetUid"/>
- <link id="FpGetEUid"/>
- <link id="FpGetPid"/>
- <link id="FpGetPPid"/>
- <link id="fpSetUID"/>
- <link id="FpSetGid"/>
- </seealso>
- <example file="bunixex/ex18"/>
- </element>
- <!-- function Visibility: default -->
- <element name="FpGetegid">
- <short>Return effective group ID</short>
- <descr>
- <var>FpGetegid</var> returns the effective group ID of the currently running process.
- </descr>
- <errors>
- None.
- </errors>
- <seealso>
- <link id="FpGetGid"/>
- <link id="FpGetUid"/>
- <link id="FpGetEUid"/>
- <link id="FpGetPid"/>
- <link id="FpGetPPid"/>
- <link id="fpSetUID"/>
- <link id="FpSetGid"/>
- </seealso>
- <example file="bunixex/ex18"/>
- </element>
- <!-- function Visibility: default -->
- <element name="FpSetuid">
- <short>Set the current user ID</short>
- <descr>
- <p>
- <var>fpSetUID</var> sets the user ID of the current process. This call will
- only work if it is executed as root, or the program is setuid root.
- </p>
- <p>
- On success, zero is returned, on error -1 is returned.
- </p>
- </descr>
- <errors>
- Extended error information can be retrieved with <link id="fpGetErrNo"/>.
- </errors>
- <seealso>
- <link id="FpGetGid"/>
- <link id="FpGetUid"/>
- <link id="FpGetEUid"/>
- <link id="FpGetEGid"/>
- <link id="FpGetPid"/>
- <link id="FpGetPPid"/>
- <link id="FpSetGid"/>
- </seealso>
- </element>
- <!-- function Visibility: default -->
- <element name="FpSetgid">
- <short>Set the current group ID</short>
- <descr>
- <p>
- <var>fpSetUID</var> sets the group ID of the current process. This call will
- only work if it is executed as root, or the program is setgid root.
- </p>
- <p>
- On success, zero is returned, on error -1 is returned.
- </p>
- </descr>
- <errors>
- Extended error information can be retrieved with <link id="fpGetErrNo"/>.
- </errors>
- <seealso>
- <link id="FpSetUid"/>
- <link id="FpGetGid"/>
- <link id="FpGetUid"/>
- <link id="FpGetEUid"/>
- <link id="FpGetEGid"/>
- <link id="FpGetPid"/>
- <link id="FpGetPPid"/>
- </seealso>
- </element>
- <!-- function Visibility: default -->
- <element name="FpGetgroups">
- <short>Get the list of supplementary groups.</short>
- <descr>
- <p>
- <var>FpGetgroups</var> returns up to <var>gidsetsize</var> groups in
- <var>GroupList</var>
- </p>
- <p>
- If the function is successful, then number of groups that were stored is
- returned. On error, -1 is returned.
- </p>
- </descr>
- <errors>
- On error, -1 is returned. Extended error information can be retrieved with
- <link id="fpGetErrNo"/>
- </errors>
- <seealso>
- <link id="FpGetpgrp"/>
- <link id="FpGetGID"/>
- <link id="FpGetEGID"/>
- </seealso>
- </element>
- <!-- function Visibility: default -->
- <element name="FpGetpgrp">
- <short>Get process group ID</short>
- <descr>
- <var>FpGetpgrp</var> returns the process group ID of the current process.
- </descr>
- <errors>
- None.
- </errors>
- <seealso>
- <link id="fpGetPID"/>
- <link id="fpGetPPID"/>
- <link id="FpGetGID"/>
- <link id="FpGetUID"/>
- </seealso>
- </element>
- <!-- function Visibility: default -->
- <element name="FpSetsid">
- <short>Create a new session.</short>
- <descr>
- <var>FpSetsid</var> creates a new session (process group). It returns the
- new process group id (as returned by <link id="FpGetpgrp"/>. This call will
- fail if the current process is already the process group leader.
- </descr>
- <errors>
- On error, -1 is returned. Extended error information can be retrieved with
- <link id="fpGetErrNo"/>
- </errors>
- <seealso>
- </seealso>
- </element>
- <!-- function Visibility: default -->
- <element name="FpFcntl">
- <short>File control operations.</short>
- <descr>
- <p>
- Read/set a file's attributes. <var>Fildes</var> a valid file descriptor.
- <var>Cmd</var> speciefies what to do, and is one of the following:
- </p>
- <dl>
- <dt>F_GetFd</dt>
- <dd>Read the close_on_exec flag. If the low-order bit is 0, then
- the file will remain open across execve calls.</dd>
- <dt>F_GetFl</dt><dd>Read the descriptor's flags.</dd>
- <dt>F_GetOwn</dt><dd>Get the Process ID of the owner of a socket.</dd>
- <dt>F_SetFd</dt>
- <dd>Set the close_on_exec flag of <var>fildes</var>. (only the least
- siginificant bit is used).
- </dd>
- <dt>F_GetLk</dt>
- <dd>Return the <var>flock</var> record that prevents this process from
- obtaining the lock, or set the <var>l_type</var> field of the lock of there is no
- obstruction. <var>Arg</var> is the flock record.
- </dd>
- <dt>F_SetLk</dt>
- <dd> Set the lock or clear it (depending on <var>l_type</var> in the
- <var>flock</var> structure). if the lock is held by another process, an error
- occurs.
- </dd>
- <dt>F_GetLkw</dt>
- <dd> Same as for <b>F_Setlk</b>, but wait until the lock is
- released.
- </dd>
- <dt>F_SetOwn</dt>
- <dd> Set the Process or process group that owns a socket.
- </dd>
- </dl>
- <p>
- The function returns 0 if successful, -1 otherwise.
- </p>
- </descr>
- <errors>
- <p>
- On error, -1 is returned. Use <link id="fpGetErrno"/> for extended error information.
- </p>
- <dl>
- <dt>sys_ebadf</dt><dd> <var>Fd</var> has a bad file descriptor.</dd>
- <dt>sys_eagain or sys_eaccess</dt><dd> For \textbf{F_SetLk}, if the lock is
- held by another process.</dd>
- </dl>
- </errors>
- </element>
- <!-- function Visibility: default -->
- <element name="FpGetcwd">
- <short>Retrieve the current working directory.</short>
- <descr>
- <p>
- <var>fpgetCWD</var> returns the current working directory of the running
- process. It is returned in <var>Path</var>, which points to a memory
- location of at least <var>siz</var> bytes.
- </p>
- <p>
- If the function is succesful, a pointer to <var>Path</var> is returned, or a
- string with the result. On error <var>Nil</var> or an empty string are
- returned.
- </p>
- </descr>
- <errors>
- On error <var>Nil</var> or an empty string are returned.
- </errors>
- <seealso>
- <link id="FpGetPID"/>
- <link id="FpGetUID"/>
- </seealso>
- </element>
- <!-- function Visibility: default -->
- <element name="FpFork">
- <short>Create child process</short>
- <descr>
- <var>FpFork</var> creates a child process which is a copy of the parent process.
- <var>FpFork</var> returns the process ID in the parent process, and zero in the child's
- process. (you can get the parent's PID with <link id="fpGetPPid"/>).
- </descr>
- <errors>
- <p>
- On error, -1 is returned to the parent, and no child is created.
- </p>
- <dl>
- <dt>sys_eagain</dt><dd> Not enough memory to create child process.
- </dd>
- </dl>
- </errors>
- <seealso>
- <link id="fpExecve"/>
- <link id="#rtl.linux.Clone"/>
- </seealso>
- </element>
- <!-- function Visibility: default -->
- <element name="FpExecve">
- <short>Execute process using environment</short>
- <descr>
- Replaces the currently running program with the program, specified in
- <var>path</var>.
- It gives the program the options in <var>argv</var>, and the environment in
- <var>envp</var>. They are pointers to an array of pointers to null-terminated
- strings. The last pointer in this array should be <var>nil</var>.
- On success, <var>execve</var> does not return.
- </descr>
- <errors>
- <p>
- Extended error information can be retrieved with <link id="fpGetErrno"/>,
- and includes the following:
- </p>
- <dl>
- <dt>sys_eacces</dt>
- <dd> File is not a regular file, or has no execute permission.
- A compononent of the path has no search permission.</dd>
- <dt>sys_eperm</dt><dd> The file system is mounted \textit{noexec}.</dd>
- <dt>sys_e2big</dt><dd> Argument list too big.</dd>
- <dt>sys_enoexec</dt><dd> The magic number in the file is incorrect.</dd>
- <dt>sys_enoent</dt><dd> The file does not exist.</dd>
- <dt>sys_enomem</dt><dd> Not enough memory for kernel.</dd>
- <dt>sys_enotdir</dt><dd> A component of the path is not a directory.</dd>
- <dt>sys_eloop</dt><dd> The path contains a circular reference (via symlinks).</dd>
- </dl>
- </errors>
- <seealso>
- <link id="fpExecv"/>
- <link id="fpFork"/>
- </seealso>
- <example file="bunixex/ex7"/>
- </element>
- <!-- function Visibility: default -->
- <element name="FpExecv">
- <short>Execute process</short>
- <descr>
- Replaces the currently running program with the program, specified in
- <var>path</var>.
- It gives the program the options in <var>argvp</var>.
- This is a pointer to an array of pointers to null-terminated
- strings. The last pointer in this array should be nil.
- The current environment is passed to the program.
- On success, <var>execv</var> does not return.
- </descr>
- <errors>
- <p>
- Errors are reported in <var>LinuxError</var>:
- </p>
- <dl>
- <dt>sys_eacces</dt>
- <dd> File is not a regular file, or has no execute permission.
- A compononent of the path has no search permission.</dd>
- <dt>sys_eperm</dt><dd> The file system is mounted \textit{noexec}.</dd>
- <dt>sys_e2big</dt><dd> Argument list too big.</dd>
- <dt>sys_enoexec</dt><dd> The magic number in the file is incorrect.</dd>
- <dt>sys_enoent</dt><dd> The file does not exist.</dd>
- <dt>sys_enomem</dt><dd> Not enough memory for kernel.</dd>
- <dt>sys_enotdir</dt><dd> A component of the path is not a directory.</dd>
- <dt>sys_eloop</dt><dd> The path contains a circular reference (via symlinks).</dd>
- </dl>
- </errors>
- <seealso>
- <link id="fpExecve"/>
- <link id="fpFork"/>
- </seealso>
- <example file="bunixex/ex8"/>
- </element>
- <!-- function Visibility: default -->
- <element name="FpWaitpid">
- <short>Wait for a process to terminate</short>
- <descr>
- <p>
- <var>fpWaitPid</var> waits for a child process with process ID <var>Pid</var> to exit. The
- value of <var>Pid</var> can be one of the following:
- </p>
- <dl>
- <dt>Pid < -1</dt>
- <dd> Causes <var>fpWaitPid</var> to wait for any child process whose
- process group ID equals the absolute value of <var>pid</var>.</dd>
- <dt>Pid = -1</dt>
- <dd>Causes <var>fpWaitPid</var> to wait for any child process.</dd>
- <dt>Pid = 0</dt>
- <dd>Causes <var>fpWaitPid</var> to wait for any child process whose
- process group ID equals the one of the calling process.</dd>
- <dt>Pid > 0</dt>
- <dd> Causes <var>fpWaitPid</var> to wait for the child whose process ID
- equals the value of <var>Pid</var>.</dd>
- </dl>
- <p>
- The <var>Options</var> parameter can be used to specify further how <var>fpWaitPid</var>
- behaves:
- </p>
- <dl>
- <dt>WNOHANG</dt>
- <dd> Causes <var>fpWaitpid</var> to return immediately if no child hasexited.</dd>
- <dt>WUNTRACED</dt>
- <dd> Causes <var>fpWaitPid</var> to return also for children which are
- stopped, but whose status has not yet been reported.</dd>
- <dt>__WCLONE</dt>
- <dd> Causes <var>fpWaitPid</var> also to wait for threads created by
- the <link id="#rtl.linux.Clone"/> call.</dd>
- </dl>
- <p>
- The exit status of the process that caused <var>fpWaitPID</var> is reported
- in <var>stat_loc</var> or <var>Status</var>.
- </p>
- <p>
- Upon return, it returns the process id of the process that exited, 0 if no
- process exited, or -1 in case of failure.
- </p>
- <p>
- For an example, see <link id="fpFork"/>.
- </p>
- </descr>
- <errors>
- Extended error information can be retrieved using <link id="fpgetErrno"/>.
- </errors>
- <seealso>
- <link id="fpFork"/>
- <link id="fpExecve"/>
- <link id="fpWait"/>
- </seealso>
- </element>
- <!-- function Visibility: default -->
- <element name="FpWait">
- <short>Wait for a child to exit.</short>
- <descr>
- <p>
- <var>fpWait</var> suspends the current process and
- waits for any child to exit or stop due to a signal.
- It reports the exit status of the exited child
- in <var>stat_loc</var>.
- </p>
- <p>
- The return value of the function is the process ID of the child that
- exited, or -1 on error.
- </p>
- </descr>
- <errors>
- Extended error information can be retrieved using <link id="fpgetErrno"/>.
- </errors>
- <seealso>
- <link id="fpFork"/>
- <link id="fpExecve"/>
- <link id="fpWaitPid"/>
- </seealso>
- </element>
- <!-- procedure Visibility: default -->
- <element name="FpExit">
- <short>Exit the current process</short>
- <descr>
- <p>
- <var>FpExit</var> exits the currently running process, and report
- <var>Status</var> as the exit status.
- </p>
- <remark>
- If this call is executed, the normal unit finalization code will not be
- executed. This may lead to unexpected errors and stray files on your system.
- It is therefore recommended to use the <var>Halt</var> call instead.
- </remark>
- </descr>
- <errors>
- None.
- </errors>
- <seealso>
- <link id="FpFork"/>
- <link id="FpExecve"/>
- </seealso>
- </element>
- <!-- function Visibility: default -->
- <element name="FpKill">
- <short>Send a signal to a process</short>
- <descr>
- <p>
- <var>fpKill</var> sends a signal <var>Sig</var> to a process or process group. If <var>Pid</var>>0 then
- the signal is sent to <var>Pid</var>, if it equals -1, then the signal is sent to
- all processes except process 1. If <var>Pid</var><-1 then the signal is sent to
- process group -Pid.
- </p>
- <p>
- The return value is zero, except in case three, where the return value is the
- number of processes to which the signal was sent.
- </p>
- </descr>
- <errors>
- <p>
- Extended error information can be retrieved using <link id="fpGetErrno"/>:
- </p>
- <dl>
- <dt>sys_einval</dt><dd> An invalid signal is sent.</dd>
- <dt>sys_esrch</dt><dd> The <var>Pid</var> or process group don't exist.</dd>
- <dt>sys_eperm</dt><dd> The effective userid of the current process doesn't math
- the one of process <var>Pid</var>.</dd>
- </dl>
- </errors>
- <seealso>
- <link id="FpSigAction"/>
- <link id="FpSignal"/>
- </seealso>
- </element>
- <!-- function Visibility: default -->
- <element name="FpUname">
- <short>Return system name.</short>
- <descr>
- <p>
- <var>Uname</var> gets the name and configuration of the current linux kernel,
- and returns it in the <var>name</var> record.
- </p>
- <p>
- On success, 0 is returned, on error, -1 is returned.
- </p>
- </descr>
- <errors>
- Extended error information can be retrieved using <link id="fpGetErrno"/>.
- </errors>
- <seealso>
- <link id="FpUTime"/>
- </seealso>
- </element>
- <!-- function Visibility: default -->
- <element name="FpOpendir">
- <short>Open a directory for reading</short>
- <descr>
- <var>FpOpenDir</var> opens the directory <var>DirName</var>, and returns a
- <var>pdir</var> pointer to a <link id="Dir"/> record, which can be used to
- read the directory structure. If the directory cannot be opened, <var>nil
- </var> is returned.
- </descr>
- <errors>
- Extended error information can be retrieved using <link id="fpGetErrno"/>.
- </errors>
- <seealso>
- <link id="FpCloseDir"/>
- <link id="FpReadDir"/>
- </seealso>
- <example file="bunixex/ex35"/>
- </element>
- <!-- function Visibility: default -->
- <element name="FpReaddir">
- <short>Read entry from directory</short>
- <descr>
- <p>
- <var>FpReadDir</var> reads the next entry in the directory pointed to by
- <var>dirp</var>.
- It returns a <var>pdirent</var> pointer to a <link id="dirent"/> record describing the entry.
- If the next entry can't be read, <var>Nil</var> is returned.
- </p>
- <p>
- For an example, see <link id="FpOpenDir"/>.
- </p>
- </descr>
- <errors>
- Extended error information can be retrieved using <link id="fpGetErrno"/>.
- </errors>
- <seealso>
- <link id="FpCloseDir"/>
- <link id="FpOpenDir"/>
- </seealso>
- </element>
- <!-- function Visibility: default -->
- <element name="FpClosedir">
- <short>Close directory file descriptor</short>
- <descr>
- <p>
- <var>FpCloseDir</var> closes the directory pointed to by <var>dirp</var>.
- It returns zero if the directory was closed succesfully, -1 otherwise.
- </p>
- <p>
- For an example, see <link id="fpOpenDir"/>.
- </p>
- </descr>
- <errors>
- Extended error information can be retrieved using <link id="fpGetErrno"/>.
- </errors>
- <seealso>
- <link id="FpOpenDir"/>
- <link id="FpReadDir"/>
- </seealso>
- </element>
- <!-- function Visibility: default -->
- <element name="FpChdir">
- <short>Change current working directory.</short>
- <descr>
- <p>
- <var>fpChDir</var> sets the current working directory to <var>Path</var>.
- </p>
- <p>
- It returns zero if the call was succesful, -1 on error.
- </p>
- </descr>
- <errors>
- Extended error information can be retrieved using <link id="fpGetErrno"/>.
- </errors>
- <seealso>
- <link id="fpGetCwd"/>
- </seealso>
- </element>
- <!-- function Visibility: default -->
- <element name="FpOpen">
- <short>Open file and return file descriptor</short>
- <descr>
- <p>
- <var>FpOpen</var> opens a file in <var>Path</var> with flags <var>flags</var>
- and mode <var>Mode</var>
- One of the following:
- </p>
- <dl>
- <dt>O_RdOnly</dt><dd>File is opened Read-only</dd>
- <dt>O_WrOnly</dt><dd>File is opened Write-only</dd>
- <dt>O_RdWr</dt><dd>File is opened Read-Write</dd>
- </dl>
- <p>
- The flags may be<var>OR</var>-ed with one of the following constants:
- </p>
- <dl>
- <dt>O_Creat</dt><dd> File is created if it doesn't exist.</dd>
- <dt>O_Excl</dt><dd> If the file is opened with <var>O_Creat</var> and it
- already exists, the call wil fail.</dd>
- <dt>O_NoCtty</dt><dd> If the file is a terminal device, it will NOT become
- the process' controlling terminal.</dd>
- <dt>O_Trunc</dt><dd> If the file exists, it will be truncated.</dd>
- <dt>O_Append</dt><dd> the file is opened in append mode. <em>Before each
- write</em>, the file pointer is positioned at the end of the file.</dd>
- <dt>O_NonBlock</dt><dd> The file is opened in non-blocking mode. No operation
- on the file descriptor will cause the calling process to wait till.</dd>
- <dt>O_NDelay</dt><dd> Idem as <var>O_NonBlock</var></dd>
- <dt>O_Sync</dt><dd> The file is opened for synchronous IO. Any write
- operation on the file will not return untill the data is physically written
- to disk.</dd>
- <dt>O_NoFollow</dt><dd> if the file is a symbolic link, the open fails.
- (linux 2.1.126 and higher only)</dd>
- <dt>O_Directory</dt><dd> if the file is not a directory, the open fails.
- (linux 2.1.126 and higher only)</dd>
- </dl>
- <p>
- <var>Path</var> can be of type <var>PChar</var> or <var>String</var>.
- The optional <var>mode</var> argument specifies the permissions to set when opening
- the file. This is modified by the umask setting. The real permissions are
- <var>Mode and not umask</var>.
- The return value of the function is the filedescriptor, or a negative
- value if there was an error.
- </p>
- </descr>
- <errors>
- Extended error information can be retrieved using <link id="fpGetErrno"/>.
- </errors>
- <seealso>
- <link id="FpClose"/>
- <link id="FpRead"/>
- <link id="FpWrite"/>
- <link id="FpFTruncate"/>
- <link id="FpLSeek"/>
- </seealso>
- <example file="bunixex/ex19"/>
- </element>
- <!-- function Visibility: default -->
- <element name="FpMkdir">
- <short>Create a new directory</short>
- <descr>
- <p>
- <var>FpMkDir</var> creates a new directory <var>Path</var>, and sets the new
- directory's mode to <var>Mode</var>. Path can be an absolute path or a
- relative path. Note that only the last element of the directory will be
- created, higher level directories must already exist, and must be writeable
- by the current user.
- </p>
- <p>
- On succes, 0 is returned. if the function fails, -1 is returned.
- </p>
- </descr>
- <errors>
- Extended error information can be retrieved using <link id="fpGetErrno"/>.
- </errors>
- <seealso>
- <link id="fpGetCWD"/>
- <link id="fpChDir"/>
- </seealso>
- </element>
- <!-- function Visibility: default -->
- <element name="FpUnlink">
- <short>Unlink (i.e. remove) a file.</short>
- <descr>
- <p>
- <var>FpUnLink</var> decreases the link count on file <var>Path</var>. <var>Path</var> can be
- of type <var>AnsiString</var> or <var>PChar</var>. If the link count is zero, the
- file is removed from the disk.
- </p>
- <p>
- The function returns zero if the call was succesfull, a nonzero value
- indicates failure.
- </p>
- <p>
- For an example, see <link id="FpLink"/>.
- </p>
- </descr>
- <errors>
- <p>
- Extended error information can be retrieved using <link id="fpGetErrno"/>.
- </p>
- <dl>
- <dt>sys_eaccess</dt>
- <dd>You have no write access right in the directory containing <var>Path</var>,
- or you have no search permission in one of the directory components of
- <var>Path</var>.</dd>
- <dt>sys_eperm</dt>
- <dd>The directory containing pathname has the sticky-bit set and the process's
- effective uid is neither the uid of the file to be deleted nor that of the
- directory containing it.</dd>
- <dt>sys_enoent</dt><dd>A component of the path doesn't exist.</dd>
- <dt>sys_enotdir</dt><dd>A directory component of the path is not a directory.</dd>
- <dt>sys_eisdir</dt><dd><var>Path</var> refers to a directory.</dd>
- <dt>sys_enomem</dt><dd>Insufficient kernel memory.</dd>
- <dt>sys_erofs</dt><dd><var>Path</var> is on a read-only filesystem.</dd>
- </dl>
- </errors>
- <seealso>
- <link id="FpLink"/>
- <link id="FpSymLink"/>
- </seealso>
- </element>
- <!-- function Visibility: default -->
- <element name="FpRmdir">
- <short>Remove a directory.</short>
- <descr>
- <p>
- <var>FpRmdir</var> removes the directory <var>Path</var> from the system.
- The directory must be empty for this call to succeed, and the user must have
- the necessary permissions in the parent directory. Only the last component
- of the directory is removed, i.e. higher-lying directories are not removed.
- </p>
- <p>
- On success, zero is returned. A nonzero return value indicates failure.
- </p>
- </descr>
- <errors>
- Extended error information can be retrieved using <link id="fpGetErrno"/>.
- </errors>
- <seealso>
- </seealso>
- </element>
- <!-- function Visibility: default -->
- <element name="FpRename">
- <short>Rename file</short>
- <descr>
- <p>
- <var>FpRename</var> renames the file <var>Old</var> to <var>NewPath</var>.
- <var>NewPath</var> can be in a different directory than <var>Old</var>, but it cannot be on
- another partition (device). Any existing file on the new location will be replaced.
- </p>
- <p>
- If the operation fails, then the <var>Old</var> file will be preserved.
- </p>
- <p>
- The function returns zero on succes, a nonzero value indicates failure.
- </p>
- </descr>
- <errors>
- <p>
- Extended error information can be retrieved using <link id="fpGetErrno"/>.
- </p>
- <dl>
- <dt>sys_eisdir</dt>
- <dd><var>NewPath</var> exists and is a directory, but <var>Old</var> is not a directory.</dd>
- <dt>sys_exdev</dt>
- <dd><var>NewPath</var> and <var>Old</var> are on different devices.</dd>
- <dt>sys_enotempty or sys_eexist</dt>
- <dd><var>NewPath</var> is an existing, non-empty directory. </dd>
- <dt>sys_ebusy</dt>
- <dd><var>Old</var> or <var>NewPath</var> is a directory and is in use by another process.</dd>
- <dt>sys_einval</dt>
- <dd><var>NewPath</var> is part of <var>Old</var>.</dd>
- <dt>sys_emlink</dt>
- <dd><var>OldPath</var> or <var>NewPath</var> already have tha maximum
- amount of links pointing to them.</dd>
- <dt>sys_enotdir</dt>
- <dd>part of <var>Old</var> or <var>NewPath</var> is not directory.</dd>
- <dt>sys_efault</dt>
- <dd>For the <var>pchar</var> case: One of the pointers points to
- an invalid address.</dd>
- <dt>sys_eaccess</dt>
- <dd>access is denied when attempting to move the file.</dd>
- <dt>sys_enametoolong</dt>
- <dd> Either <var>Old</var> or <var>NewPath</var> is too long.</dd>
- <dt>sys_enoent</dt>
- <dd>a directory component in <var>Old</var> or <var>NewPath</var>
- didn't exist.</dd>
- <dt>sys_enomem</dt>
- <dd>not enough kernel memory.</dd>
- <dt>sys_erofs</dt>
- <dd><var>NewPath</var> or <var>Old</var> is on a read-only file system.</dd>
- <dt>sys_eloop</dt>
- <dd> too many symbolic links were encountered trying to expand
- <var>Old</var> or <var>NewPath</var></dd>
- <dt>sys_enospc</dt>
- <dd> the filesystem has no room for the new directory entry.</dd>
- </dl>
- </errors>
- <seealso>
- <link id="FpUnLink"/>
- </seealso>
- </element>
- <!-- function Visibility: default -->
- <element name="FpFStat">
- <short>Retrieve file information about a file descriptor.</short>
- <descr>
- <p>
- <var>FpFStat</var> gets information about the file specified in one of the
- following:
- </p>
- <dl>
- <dt>Fd</dt><dd> a valid file descriptor.</dd>
- <dt>F</dt><dd> an opened text file or untyped file.</dd>
- </dl>
- <p>
- and stores it in <var>Info</var>, which is of type <link id="stat"/>.
- The function returns zero if the call was succesfull,
- a nonzero return value indicates failure.
- </p>
- </descr>
- <errors>
- <p>
- Extended error information can be retrieved using <link id="fpGetErrno"/>.
- </p>
- <dl>
- <dt>sys_enoent</dt><dd> <var>Path</var> does not exist.</dd>
- </dl>
- </errors>
- <seealso>
- <link id="FpStat"/>
- <link id="FpLStat"/>
- </seealso>
- <example file="bunixex/ex28"/>
- </element>
- <!-- function Visibility: default -->
- <element name="FpStat">
- <short>Retrieve file information about a file descriptor.</short>
- <descr>
- <p>
- <var>FpFStat</var> gets information about the file specified in
- <var>Path</var>, and stores it in <var>Info</var>, which is of
- type <link id="stat"/>.
- The function returns zero if the call was succesfull,
- a nonzero return value indicates failure.
- </p>
- </descr>
- <errors>
- <p>
- Extended error information can be retrieved using <link id="fpGetErrno"/>.
- </p>
- <dl>
- <dt>sys_enoent</dt><dd> <var>Path</var> does not exist.</dd>
- </dl>
- </errors>
- <seealso>
- <link id="FpStat"/>
- <link id="FpLStat"/>
- </seealso>
- <example file="bunixex/ex28"/>
- </element>
- <!-- function Visibility: default -->
- <element name="FpAccess">
- <short>Check file access</short>
- <descr>
- <p>
- <var>FpAccess</var> tests user's access rights on the specified file.
- <var>Mode</var> is a mask existing of one or more of the following:
- </p>
- <dl>
- <dt>R_OK</dt><dd>User has read rights.</dd>
- <dt>W_OK</dt><dd>User has write rights.</dd>
- <dt>X_OK</dt><dd>User has execute rights.</dd>
- <dt>F_OK</dt><dd>File exists.</dd>
- </dl>
- <p>
- The test is done with the real user ID, instead of the effective user ID.
- If the user has the requested rights, zero is returned. If access is denied,
- or an error occurred, a nonzero value is returned.
- </p>
- </descr>
- <errors>
- <p>
- Extended error information can be retrieved using <link id="fpGetErrno"/>.
- </p>
- <dl>
- <dt>sys_eaccess</dt>
- <dd> The requested access is denied, either to the file or one
- of the directories in its path.</dd>
- <dt>sys_einval</dt>
- <dd><var>Mode</var> was incorrect.</dd>
- <dt>sys_enoent</dt>
- <dd>A directory component in <var>Path</var> doesn't exist or is a
- dangling symbolic link.</dd>
- <dt>sys_enotdir</dt>
- <dd> A directory component in <var>Path</var> is not a directory.</dd>
- <dt>sys_enomem</dt>
- <dd> Insufficient kernel memory.</dd>
- <dt>sys_eloop</dt>
- <dd> <var>Path</var> has a circular symbolic link.</dd>
- </dl>
- </errors>
- <seealso>
- <link id="FpChown"/>
- <link id="FpChmod"/>
- </seealso>
- <example file="bunixex/ex26"/>
- </element>
- <!-- function Visibility: default -->
- <element name="FpClose">
- <short>Close file descriptor</short>
- <descr>
- <p>
- <var>FpClose</var> closes a file with file descriptor <var>Fd</var>. The function
- returns zero if the file was closed successfully, a nonzero return value
- indicates an error.
- </p>
- <p>
- For an example, see <link id="FpOpen"/>.
- </p>
- </descr>
- <errors>
- Extended error information can be retrieved using <link id="fpGetErrno"/>.
- </errors>
- <seealso>
- <link id="FpOpen"/>
- <link id="FpRead"/>
- <link id="FpWrite"/>
- <link id="FpFTruncate"/>
- <link id="FpLSeek"/>
- </seealso>
- </element>
- <!-- function Visibility: default -->
- <element name="FpRead">
- <short>Read data from file descriptor</short>
- <descr>
- <p>
- <var>FpdRead</var> reads at most <var>nbytes</var> bytes from the file descriptor
- <var>fd</var>, and stores them in <var>buf</var>.
- </p>
- <p>
- The function returns the number of bytes actually read, or -1 if
- an error occurred.
- No checking on the length of <var>buf</var> is done.
- </p>
- </descr>
- <errors>
- Extended error information can be retrieved using <link id="fpGetErrno"/>.
- </errors>
- <seealso>
- <link id="FpOpen"/>
- <link id="FpClose"/>
- <link id="FpWrite"/>
- <link id="FpFTruncate"/>
- <link id="FpLSeek"/>
- </seealso>
- <example file="bunixex/ex20"/>
- </element>
- <!-- function Visibility: default -->
- <element name="FpWrite">
- <short>Write data to file descriptor</short>
- <descr>
- <p>
- <var>FpWrite</var> writes at most <var>nbytes</var> bytes from <var>buf</var> to
- file descriptor <var>fd</var>.
- </p>
- <p>
- The function returns the number of bytes actually written, or -1 if an error
- occurred.
- </p>
- </descr>
- <errors>
- Extended error information can be retrieved using <link id="fpGetErrno"/>.
- </errors>
- <seealso>
- <link id="FpOpen"/>
- <link id="FpClose"/>
- <link id="FpRead"/>
- <link id="FpFTruncate"/>
- <link id="FpLSeek"/>
- </seealso>
- </element>
- <!-- function Visibility: default -->
- <element name="FpLseek">
- <short>Set file pointer position.</short>
- <descr>
- <p>
- <var>FpLSeek</var> sets the current fileposition of file <var>fd</var> to
- <var>Offset</var>, starting from <var>Whence</var>, which can be one of the following:
- </p>
- <dl>
- <dt>Seek_Set</dt><dd><var>Offset</var> is the absolute position in the file.</dd>
- <dt>Seek_Cur</dt><dd><var>Offset</var> is relative to the current position.</dd>
- <dt>Seek_end</dt><dd><var>Offset</var> is relative to the end of the file.</dd>
- </dl>
- <p>
- The function returns the new fileposition, or -1 of an error occurred.
- </p>
- <p>
- For an example, see <link id="FpOpen"/>.
- </p>
- </descr>
- <errors>
- Extended error information can be retrieved using <link id="fpGetErrno"/>.
- </errors>
- <seealso>
- <link id="FpOpen"/>
- <link id="FpWrite"/>
- <link id="FpClose"/>
- <link id="FpRead"/>
- <link id="FpFTruncate"/>
- </seealso>
- </element>
- <!-- function Visibility: default -->
- <element name="FpTime">
- <short>Return the current unix time</short>
- <descr>
- <p>
- <var>FpTime</var> returns the number of seconds since 00:00:00 GMT, january 1, 1970.
- it is adjusted to the local time zone, but not to DST. The result is also
- stored in <var>tloc</var>, if it is specified.
- </p>
- </descr>
- <errors>
- On error, -1 is returned. Extended error information can be retrieved using
- <link id="fpGetErrno"/>.
- </errors>
- <example file="bunixex/ex1"/>
- </element>
- <!-- function Visibility: default -->
- <element name="FpFtruncate">
- <short>Truncate file on certain size.</short>
- <descr>
- <p>
- <var>FpFTruncate</var> sets the length of a file in <var>fd</var> on
- <var>flength</var>
- bytes, where <var>flength</var> must be less than or equal to the current length of
- the file in <var>fd</var>.
- </p>
- <p>
- The function returns zero if the call was successful, a nonzero return value
- indicates that an error occurred.
- </p>
- </descr>
- <errors>
- Extended error information can be retrieved using <link id="fpGetErrno"/>.
- </errors>
- <seealso>
- <link id="FpOpen"/>
- <link id="FpClose"/>
- <link id="FpRead"/>
- <link id="FpWrite"/>
- <link id="FpLSeek"/>
- </seealso>
- </element>
- <!-- function Visibility: default -->
- <element name="FPSigaction">
- <short>Install signal handler</short>
- <descr>
- <p>
- <var>FPSigaction</var> changes the action to take upon receipt of a signal.
- <var>Act</var> and
- <var>Oact</var> are pointers to a <link id="SigActionRec"/> record.
- <var>Sig</var> specifies the signal, and can be any signal except
- <b>SIGKILL</b> or <b>SIGSTOP</b>.
- </p>
- <p>
- If <var>Act</var> is non-nil, then the new action for signal <var>Sig</var> is taken
- from it. If <var>OAct</var> is non-nil, the old action is stored there.
- <var>Sa_Handler</var> may be <var>SIG_DFL</var> for the default action or
- <var>SIG_IGN</var> to ignore the signal.
- <var>Sa_Mask</var> Specifies which signals should be ignord during the execution
- of the signal handler.
- <var>Sa_Flags</var> Speciefies a series of flags which modify the behaviour of
- the signal handler. You can 'or' none or more of the following :
- </p>
- <dl>
- <dt>SA_NOCLDSTOP</dt>
- <dd>If <var>sig</var> is <b>SIGCHLD</b> do not receive notification when child processes stop.
- </dd>
- <dt>SA_ONESHOT or SA_RESETHAND</dt>
- <dd>Restore the signal action to the default
- state once the signal handler has been called.
- </dd>
- <dt>SA_RESTART</dt>
- <dd>For compatibility with BSD signals.</dd>
- <dt>SA_NOMASK or SA_NODEFER</dt>
- <dd>Do not prevent the signal from being received from within its own signal handler.
- </dd>
- </dl>
- </descr>
- <errors>
- <p>
- Extended error information can be retrieved using <link id="fpGetErrno"/>.
- </p>
- <dl>
- <dt>sys_einval</dt>
- <dd>an invalid signal was specified, or it was <b>SIGKILL</b> or <b>SIGSTOP</b>. </dd>
- <dt>sys_efault</dt>
- <dd><var>Act,OldAct</var> point outside this process address space </dd>
- <dt>sys_eintr</dt><dd> System call was interrupted.</dd>
- </dl>
- </errors>
- <seealso>
- <link id="FpSigProcMask"/>
- <link id="FpSigPending"/>
- <link id="FpSigSuspend"/>
- <link id="FpKill"/>
- </seealso>
- <example file="bunixex/ex57"/>
- </element>
- <!-- function Visibility: default -->
- <element name="FPSelect">
- <short>Wait for events on file descriptors</short>
- <descr>
- <p>
- <var>FpSelect</var> checks one of the file descriptors in the <var>FDSets</var> to see if its
- status changed.
- </p>
- <p>
- <var>readfds, writefds</var> and <var>exceptfds</var> are pointers to arrays of 256
- bits. If you want a file descriptor to be checked, you set the
- corresponding element in the array to 1. The other elements in the array
- must be set to zero. Three arrays are passed : The entries in <var>readfds</var>
- are checked to see if characters become available for reading. The entries
- in <var>writefds</var> are checked to see if it is OK to write to them, while
- entries in <var>exceptfds</var> are cheked to see if an exception occorred on
- them.
- </p>
- <p>
- You can use the functions <link id="fpFD_ZERO"/>, <link id="fpFD_Clr"/>,
- <link id="fpFD_Set"/> or <link id="fpFD_IsSet"/> to manipulate the individual
- elements of a set.
- </p>
- <p>
- The pointers can be <var>Nil</var>.
- </p>
- <p>
- <var>N</var> is the largest index of a nonzero entry plus 1. (= the largest
- file-descriptor + 1).
- </p>
- <p>
- <var>TimeOut</var> can be used to set a time limit.
- If <var>TimeOut</var> can be two types :
- </p>
- <ol>
- <li><var>TimeOut</var> is of type <var>ptimeval</var> and contains a
- zero time, the call returns immediately. If <var>TimeOut</var> is <var>Nil</var>, the
- kernel will wait forever, or until a status changed. </li>
- <li><var>TimeOut</var> is of type <var>cint</var>. If it is -1, this has the same
- effect as a <var>Timeout</var> of type <var>PTime</var> which is <var>Nil</var>.
- Otherwise, <var>TimeOut</var> contains a time in milliseconds.</li>
- </ol>
- <p>
- When the TimeOut is reached, or one of the file descriptors has changed,
- the <var>Select</var> call returns. On return, it will have modified the entries
- in the array which have actually changed, and it returns the number of
- entries that have been changed. If the timout was reached, and no decsriptor
- changed, zero is returned; The arrays of indexes are undefined after that.
- On error, -1 is returned.
- </p>
- <p>
- The variant with the text file will execute the <var>FpSelect</var> call on
- the file descriptor associated with the text file <var>T</var>
- </p>
- </descr>
- <errors>
- <p>
- On error, the function returns -1.
- Extended error information can be retrieved using <link id="fpGetErrno"/>.
- </p>
- <dl>
- <dt>SYS_EBADF</dt>
- <dd>An invalid descriptor was specified in one of the sets.</dd>
- <dt>SYS_EINTR</dt>
- <dd>A non blocked signal was caught.</dd>
- <dt>SYS_EINVAL</dt>
- <dd><var>N</var> is negative or too big.</dd>
- <dt>SYS_ENOMEM</dt>
- <dd><var>Select</var> was unable to allocate memory for its internal tables.</dd>
- </dl>
- </errors>
- <seealso>
- <link id="fpFD_ZERO"/>
- <link id="fpFD_Clr"/>
- <link id="fpFD_Set"/>
- <link id="fpFD_IsSet"/>
- </seealso>
- <example file="bunixex/ex33"/>
- </element>
- <!-- function Visibility: default -->
- <element name="FpIOCtl">
- <short>General kernel IOCTL call.</short>
- <descr>
- This is a general interface to the Unix/ linux ioctl call.
- It performs various operations on the filedescriptor <var>Handle</var>.
- <var>Ndx</var> describes the operation to perform.
- <var>Data</var> points to data needed for the <var>Ndx</var> function.
- The structure of this data is function-dependent, so we don't elaborate on
- this here.
- For more information on this, see various manual pages under linux.
- </descr>
- <errors>
- Extended error information can be retrieved using <link id="fpGetErrno"/>.
- </errors>
- <example file="bunixex/ex54"/>
- </element>
- <!-- function Visibility: default -->
- <element name="FpNanoSleep">
- <short>Suspend process for a short time</short>
- <descr>
- <p>
- <var>FpNanoSleep</var> suspends the process till a time period as specified
- in <var>req</var> has passed. Then the function returns. If the
- call was interrupted (e.g. by some signal) then the function may
- return earlier, and <var>rem</var> will contain the remaining time till the
- end of the intended period. In this case the return value will be
- -1, and <var>LinuxError</var> will be set to <var>EINTR</var>
- </p>
- <p>
- If the function returns without error, the return value is zero.
- </p>
- </descr>
- <errors>
- If an error occurred or the call was interrupted, -1 is returned.
- Extended error information can be retrieved using <link id="fpGetErrno"/>.
- </errors>
- <seealso>
- <link id="FpPause"/>
- <link id="FpAlarm"/>
- </seealso>
- <example file="bunixex/ex72"/>
- </element>
- <!-- function Visibility: default -->
- <element name="FpGetEnv">
- <short>Return value of environment variable.</short>
- <descr>
- <p>
- <var>FPGetEnv</var> returns the value of the environment variable in
- <var>Name</var>. If the variable is
- not defined, nil is returned. The value of the environment variable may be
- the empty string.
- A PChar is returned to accomodate for strings longer than 255 bytes,
- <var>TERMCAP</var> and <var>LS_COLORS</var>, for instance.
- </p>
- </descr>
- <errors>
- None.
- </errors>
- <example file="bunixex/ex41"/>
- </element>
- <!-- function Visibility: default -->
- <element name="FpUtime">
- <short>Set access and modification times of a file (touch).</short>
- <descr>
- <p>
- <var>FpUtime</var> sets the access and modification times of the file
- specified in <var>Path</var>.
- the <var>times</var> record contains 2 fields, <var>actime</var>, and <var>modtime</var>,
- both of type <var>time_t</var> (commonly a longint). They should be filled with an epoch-like time,
- specifying, respectively, the last access time, and the last modification
- time.
- For some filesystem (most notably, FAT), these times are the same.
- </p>
- <p>
- The function returns zero on success, a nonzero return value indicates
- failure.
- </p>
- </descr>
- <errors>
- <p>
- Extended error information can be retrieved using <link id="fpGetErrno"/>.
- </p>
- <dl>
- <dt>sys_eaccess</dt>
- <dd> One of the directories in <var>Path</var> has no
- search (=execute) permission.</dd>
- <dt>sys_enoent</dt>
- <dd> A directory entry in <var>Path</var> does
- not exist or is a symbolic link pointing to a non-existent directory.
- </dd>
- </dl>
- <p>
- Other errors may occur, but aren't documented.
- </p>
- </errors>
- <seealso>
- <link id="FpTime"/>
- <link id="FpChown"/>
- <link id="FpAccess"/>
- </seealso>
- <example file="bunixex/ex25"/>
- </element>
- <!-- function Visibility: default -->
- <element name="FpSignal">
- <short>Install signal handler (deprecated)</short>
- <descr>
- <p>
- <var>FPSignal</var> installs a new signal handler (specified by
- <var>Handler</var>) for signal <var>SigNum</var>.
- </p>
- <p>
- This call has a subset of the functionality provided by the <link id="FpSigAction"/> call.
- The return value for <var>FpSignal</var> is the old signal handler, or nil on error.
- </p>
- </descr>
- <errors>
- <p>
- Extended error information can be retrieved using <link id="fpGetErrno"/>.
- </p>
- <dl>
- <dt>SIG_ERR</dt>
- <dd>An error occurred.</dd>
- </dl>
- </errors>
- <seealso>
- <link id="FpSigAction"/>
- <link id="FpKill"/>
- </seealso>
- <example file="bunixex/ex58"/>
- </element>
- <!-- function Visibility: default -->
- <element name="fpFD_SET">
- <short>Set a filedescriptor in a set</short>
- <descr>
- <p>
- <var>FpFD_Set</var> sets file descriptor <var>fdno</var> in filedescriptor set
- <var>nset</var>.
- </p>
- <p>
- For an example, see <link id="FpSelect"/>.
- </p>
- </descr>
- <errors>
- None.
- </errors>
- <seealso>
- <link id="FpSelect"/>
- <link id="FpFD_ZERO"/>
- <link id="FpFD_Clr"/>
- <link id="FpFD_IsSet"/>
- </seealso>
- </element>
- <!-- function Visibility: default -->
- <element name="fpFD_CLR">
- <short>Clears a filedescriptor in a set</short>
- <descr>
- <p>
- <var>FpFD_Clr</var> clears file descriptor <var>fdno</var> in filedescriptor set
- <var>nset</var>.
- </p>
- <p>
- For an example, see <link id="FpSelect"/>.
- </p>
- </descr>
- <errors>
- None.
- </errors>
- <seealso>
- <link id="FpSelect"/>,
- <link id="FpFD_ZERO"/>
- <link id="FpFD_Set"/>
- <link id="FpFD_IsSet"/>
- </seealso>
- </element>
- <!-- function Visibility: default -->
- <element name="fpFD_ZERO">
- <short>Clear all file descriptors in set</short>
- <descr>
- <p>
- <var>FpFD_ZERO</var> clears all the filedescriptors in the file descriptor
- set <var>nset</var>.
- </p>
- <p>
- For an example, see <link id="FpSelect"/>.
- </p>
- </descr>
- <errors>
- None.
- </errors>
- <seealso>
- <link id="FpSelect"/>
- <link id="FpFD_Clr"/>
- <link id="FpFD_Set"/>
- <link id="FpFD_IsSet"/>
- </seealso>
- </element>
- <!-- function Visibility: default -->
- <element name="fpFD_ISSET">
- <short>Check whether a filedescriptor is set</short>
- <descr>
- <p>
- <var>FpFD_Set</var> Checks whether file descriptor <var>fdNo</var> in filedescriptor set <var>fds</var>
- is set. It returns zero if the descriptor is not set, 1 if it is set. If the
- number of the filedescriptor it wrong, -1 is returned.
- </p>
- <p>
- For an example, see <link id="FpSelect"/>.
- </p>
- </descr>
- <errors>
- If an invald file descriptor number is passed, -1 is returned.
- </errors>
- <seealso>
- <link id="FpSelect"/>
- <link id="FpFD_ZERO"/>
- <link id="FpFD_Clr"/>
- <link id="FpFD_Set"/>
- </seealso>
- </element>
- <!-- function Visibility: default -->
- <element name="fpfdfillset">
- <short>Set all filedescriptors in the set.</short>
- <descr>
- <var>fpfdfillset</var> sets all filedescriptors in <var>nset</var>.
- </descr>
- <seealso>
- <link id="FpSelect"/>
- <link id="FpFD_ZERO"/>
- <link id="FpFD_IsSet"/>
- <link id="FpFD_Clr"/>
- <link id="FpFD_Set"/>
- </seealso>
- </element>
- <!-- function Visibility: default -->
- <element name="FpSigEmptySet">
- <short>Clear all signals from signal set.</short>
- <descr>
- <var>FpSigEmptySet</var> clears all signals from the signal set
- <var>nset</var>.
- </descr>
- <errors>
- None. This function always returns zero.
- </errors>
- <seealso>
- <link id="FpSigFillSet"/>
- <link id="FpSigAddSet"/>
- <link id="FpSigDelSet"/>
- <link id="FpSigIsMember"/>
- </seealso>
- </element>
- <!-- function Visibility: default -->
- <element name="FpSigFillSet">
- <short>Set all signals in signal set.</short>
- <descr>
- <var>FpSigFillSet</var> sets all signals in the signal set
- <var>nset</var>.
- </descr>
- <errors>
- None. This function always returns zero.
- </errors>
- <seealso>
- <link id="FpSigEmptySet"/>
- <link id="FpSigAddSet"/>
- <link id="FpSigDelSet"/>
- <link id="FpSigIsMember"/>
- </seealso>
- </element>
- <!-- function Visibility: default -->
- <element name="FpSigAddSet">
- <short>Set a signal in a signal set.</short>
- <descr>
- <var>FpSigAddSet</var> adds signal <var>Signo</var> to the signal set
- <var>nset</var>. The function returns 0 on success.
- </descr>
- <errors>
- If an invalid signal number is given, -1 is returned.
- </errors>
- <seealso>
- <link id="FpSigEmptySet"/>
- <link id="FpSigFillSet"/>
- <link id="FpSigDelSet"/>
- <link id="FpSigIsMember"/>
- </seealso>
- </element>
- <!-- function Visibility: default -->
- <element name="FpSigDelSet">
- <short>Remove a signal from a signal set.</short>
- <descr>
- <var>FpSigDelSet</var> removes signal <var>Signo</var> to the signal set
- <var>nset</var>. The function returns 0 on success.
- </descr>
- <errors>
- If an invalid signal number is given, -1 is returned.
- </errors>
- <seealso>
- <link id="FpSigEmptySet"/>
- <link id="FpSigFillSet"/>
- <link id="FpSigAddSet"/>
- <link id="FpSigIsMember"/>
- </seealso>
- </element>
- <!-- function Visibility: default -->
- <element name="FpSigIsMember">
- <short>Check whether a signal appears in a signal set.</short>
- <descr>
- <var>FpSigIsMember</var> checks whether <var>SigNo</var> appears in the set
- <var>nset</var>. If it is a member, then 1 is returned. If not, zero is
- returned.
- </descr>
- <errors>
- If an invalid signal number is given, -1 is returned.
- </errors>
- <seealso>
- <link id="FpSigEmptySet"/>
- <link id="FpSigFillSet"/>
- <link id="FpSigAddSet"/>
- <link id="FpSigDelSet"/>
- </seealso>
- </element>
- <!-- function Visibility: default -->
- <element name="fpS_ISDIR">
- <short>Is file a directory</short>
- <descr>
- <var>fpS_ISDIR</var> checks the file mode <var>m</var> to see whether the file
- is a directory. If so, it returns <var>True</var>
- </descr>
- <seealso>
- <link id="FpFStat"/>
- <link id="FpS_ISLNK"/>
- <link id="FpS_ISREG"/>
- <link id="FpS_ISCHR"/>
- <link id="FpS_ISBLK"/>
- <link id="fpS_ISFIFO"/>
- <link id="FpS_ISSOCK"/>
- </seealso>
- </element>
- <!-- function Visibility: default -->
- <element name="fpS_ISCHR">
- <short>Is file a character device</short>
- <descr>
- <var>FpS_ISCHR</var> checks the file mode <var>m</var> to see whether the file is a
- character device file. If so it returns <var>True</var>.
- </descr>
- <seealso>
- <link id="FpFStat"/>
- <link id="FpS_ISLNK"/>
- <link id="FpS_ISREG"/>
- <link id="FpS_ISDIR"/>
- <link id="FpS_ISBLK"/>
- <link id="FpS_ISFIFO"/>
- <link id="FpS_ISSOCK"/>
- </seealso>
- </element>
- <!-- function Visibility: default -->
- <element name="fpS_ISBLK">
- <short>Is file a block device</short>
- <descr>
- <var>FpS_ISBLK</var> checks the file mode <var>m</var> to see whether the file is a
- block device file. If so it returns <var>True</var>.
- </descr>
- <seealso>
- <link id="FpFStat"/>
- <link id="FpS_ISLNK"/>
- <link id="FpS_ISREG"/>
- <link id="FpS_ISDIR"/>
- <link id="FpS_ISCHR"/>
- <link id="FpS_ISFIFO"/>
- <link id="FpS_ISSOCK"/>
- </seealso>
- </element>
- <!-- function Visibility: default -->
- <element name="fpS_ISREG">
- <short>Is file a regular file</short>
- <descr>
- <var>FpS_ISREG</var> checks the file mode <var>m</var> to see whether the file is a
- regular file. If so it returns <var>True</var>
- </descr>
- <seealso>
- <link id="FpFStat"/>
- <link id="FpS_ISFIFO"/>
- <link id="FpS_ISLNK"/>
- <link id="FpS_ISCHR"/>
- <link id="FpS_ISBLK"/>
- <link id="FpS_ISDIR"/>
- <link id="FPS_ISSOCK"/>
- </seealso>
- </element>
- <!-- function Visibility: default -->
- <element name="fpS_ISFIFO">
- <short>Is file a FIFO</short>
- <descr>
- <var>FpS_ISFIFO</var> checks the file mode <var>m</var> to see whether the file is a
- fifo (a named pipe). If so it returns <var>True</var>.
- </descr>
- <seealso>
- <link id="FpFStat"/>
- <link id="FpS_ISLNK"/>
- <link id="FpS_ISREG"/>
- <link id="FpS_ISCHR"/>
- <link id="FpS_ISBLK"/>
- <link id="FpS_ISDIR"/>
- <link id="FpS_ISSOCK"/>
- </seealso>
- </element>
- <!-- function Visibility: default -->
- <element name="fpS_ISLNK">
- <short>Is file a symbolic link</short>
- <descr>
- <var>FpS_ISLNK</var> checks the file mode <var>m</var> to see whether the file is a
- symbolic link. If so it returns <var>True</var>
- </descr>
- <seealso>
- <link id="FpFStat"/>
- <link id="FpS_ISFIFO"/>
- <link id="FpS_ISREG"/>
- <link id="FpS_ISCHR"/>
- <link id="FpS_ISBLK"/>
- <link id="FpS_ISDIR"/>
- <link id="FpS_ISSOCK"/>
- </seealso>
- <example file="bunixex/ex53"/>
- </element>
- <!-- function Visibility: default -->
- <element name="fpS_ISSOCK">
- <short>Is file a unix socket</short>
- <descr>
- <var>FpS_ISSOCK</var> checks the file mode <var>m</var> to see whether the file is a
- socket. If so it returns <var>True</var>.
- </descr>
- <seealso>
- <link id="FpFStat"/>
- <link id="FpS_ISFIFO"/>
- <link id="FpS_ISLNK"/>
- <link id="FpS_ISCHR"/>
- <link id="FpS_ISBLK"/>
- <link id="FpS_ISDIR"/>
- <link id="FpS_ISREG"/>
- </seealso>
- </element>
- <!-- function Visibility: default -->
- <element name="WEXITSTATUS">
- <short>Extract the exit status from the <link id="#rtl.baseunix.FpWaitPID">fpWaitPID</link> result.</short>
- <descr>
- <var>WEXITSTATUS</var> can be used to extract the exit status from
- <var>Status</var>, the result of the <link id="FpWaitPID"/> call.
- </descr>
- <seealso>
- <link id="FpWaitPID"/>
- <link id="WTERMSIG"/>
- <link id="WSTOPSIG"/>
- <link id="WIFEXITED"/>
- <link id="WIFSIGNALED"/>
- </seealso>
- </element>
- <!-- function Visibility: default -->
- <element name="WTERMSIG">
- <short>Return the signal that caused a process to exit.</short>
- <descr>
- <var>WTERMSIG</var> extracts from <var>Status</var> the signal number which
- caused the process to exit.
- </descr>
- <seealso>
- <link id="FpWaitPID"/>
- <link id="WSTOPSIG"/>
- <link id="WIFEXITED"/>
- <link id="WIFSIGNALED"/>
- <link id="WEXITSTATUS"/>
- </seealso>
- </element>
- <!-- function Visibility: default -->
- <element name="WSTOPSIG">
- <short>Return the exit code from the process.</short>
- <descr>
- <var>WSTOPSIG</var> is an alias for <link id="WEXITSTATUS"/>.
- </descr>
- <seealso>
- <link id="FpWaitPID"/>
- <link id="WTERMSIG"/>
- <link id="WIFEXITED"/>
- <link id="WIFSIGNALED"/>
- <link id="WEXITSTATUS"/>
- </seealso>
- </element>
- <!-- function Visibility: default -->
- <element name="WIFEXITED">
- <short>Check whether the process exited normally</short>
- <descr>
- <var>WIFEXITED</var> checks <var>Status</var> and returns <var>True</var> if
- the status indicates that the process terminated normally, i.e. was not
- stopped by a signal.
- </descr>
- <seealso>
- <link id="FpWaitPID"/>
- <link id="WTERMSIG"/>
- <link id="WSTOPSIG"/>
- <link id="WIFSIGNALED"/>
- <link id="WEXITSTATUS"/>
- </seealso>
- </element>
- <!-- function Visibility: default -->
- <element name="WIFSIGNALED">
- <short>Check whether the process was exited by a signal.</short>
- <descr>
- <var>WIFSIGNALED</var> returns <var>True</var> if <var>Status</var>
- indicates that the process exited because it received a signal.
- </descr>
- <seealso>
- <link id="FpWaitPID"/>
- <link id="WTERMSIG"/>
- <link id="WSTOPSIG"/>
- <link id="WIFEXITED"/>
- <link id="WEXITSTATUS"/>
- </seealso>
- </element>
- <!-- function Visibility: default -->
- <element name="fpgeterrno">
- <short>Retrieve extended error information.</short>
- <descr>
- <var>fpgeterrno</var> returns extended information on the latest error.
- It is set by all functions that communicate with the kernel or C library.
- </descr>
- <errors>
- None.
- </errors>
- <seealso>
- <link id="fpseterrno"/>
- </seealso>
- </element>
- <!-- procedure Visibility: default -->
- <element name="fpseterrno">
- <short>Set extended error information.</short>
- <descr>
- <p>
- <var>fpseterrno</var> sets the extended information on the latest error.
- It is called by all functions that communicate with the kernel or C library.
- </p>
- <p>
- Unless a direct kernel call is performed, there should never be any need to
- call this function.
- </p>
- </descr>
- <errors>
- </errors>
- <seealso>
- <link id="fpgeterrno"/>
- </seealso>
- </element>
- <!-- function Visibility: default -->
- <element name="FpMMap">
- <short>Create memory map of a file</short>
- <descr>
- <p>
- <var>FpMMap</var> maps or unmaps files or devices into memory. The different
- arguments determine what and how the file is mapped:
- </p>
- <dl>
- <dt>adr</dt>
- <dd> Address where to mmap the device. This address is a hint,
- and may not be followed.</dd>
- <dt>len</dt><dd> Size (in bytes) of area to be mapped.</dd>
- <dt>prot</dt>
- <dd>
- <p> Protection of mapped memory. This is a OR-ed combination of the
- following constants:</p>
- <dl>
- <dt>PROT_EXEC</dt><dd> The memory can be executed.</dd>
- <dt>PROT_READ</dt><dd> The memory can be read.</dd>
- <dt>PROT_WRITE</dt><dd> The memory can be written.</dd>
- <dt>PROT_NONE</dt><dd> The memory can not be accessed.</dd>
- </dl>
- </dd>
- <dt>flags</dt><dd><p>Contains some options for the mmap call. It is an OR-ed
- combination of the following constants:</p>
- <dl>
- <dt>MAP_FIXED</dt>
- <dd> Do not map at another address than the given address. If the
- address cannot be used, <var>MMap</var> will fail.</dd>
- <dt>MAP_SHARED</dt>
- <dd> Share this map with other processes that map this object.</dd>
- <dt>MAP_PRIVATE</dt>
- <dd> Create a private map with copy-on-write semantics.</dd>
- <dt>MAP_ANONYMOUS</dt>
- <dd> <var>fd</var> does not have to be a file descriptor.</dd>
- </dl>
- <p>
- One of the options <var>MAP_SHARED</var> and <var>MAP_PRIVATE</var> must be present,
- but not both at the same time.
- </p>
- </dd>
- <dt>fd</dt><dd> File descriptor from which to map.</dd>
- <dt>off</dt><dd> Offset to be used in file descriptor <var>fd</var>.</dd>
- </dl>
- <p>
- The function returns a pointer to the mapped memory, or a -1 in case of en
- error.
- </p>
- </descr>
- <errors>
- <p>
- On error, -1 is returned and extended error information is returned by the <link id="fpGetErrno">FpGetErrno</link> function.
- </p>
- <dl>
- <dt>Sys_EBADF</dt>
- <dd> <var>fd</var> is not a valid file descriptor and
- <var>MAP_ANONYMOUS</var> was not specified.</dd>
- <dt>Sys_EACCES</dt>
- <dd><var>MAP_PRIVATE</var> was specified, but <var>fd</var> is not open for
- reading. Or <var>MAP_SHARED</var> was asked and <var>PROT_WRITE</var> is set, fd
- is not open for writing</dd>
- <dt>Sys_EINVAL</dt>
- <dd> One of the record fields <var>Start</var>, <var>length</var> or
- <var>offset</var> is invalid.</dd>
- <dt>Sys_ETXTBUSY</dt>
- <dd><var>MAP_DENYWRITE</var> was set but the object specified
- by fd is open for writing.</dd>
- <dt>Sys_EAGAIN</dt>
- <dd><var>fd</var> is locked, or too much memory is locked.</dd>
- <dt>Sys_ENOMEM</dt>
- <dd> Not enough memory for this operation.</dd>
- </dl>
- </errors>
- <seealso>
- <link id="FpMUnMap"/>
- </seealso>
- <example file="unixex/ex66"/>
- </element>
- <!-- function Visibility: default -->
- <element name="Fpmunmap">
- <short>Unmap previously mapped memory block</short>
- <descr>
- <p>
- <var>FpMUnMap</var> unmaps the memory block of size <var>Len</var>, pointed to by
- <var>Adr</var>, which was previously allocated with <link id="FpMMap"/>.
- </p>
- <p>
- The function returns <var>True</var> if successful, <var>False</var> otherwise.
- </p>
- <p>
- For an example, see <link id="FpMMap"/>.
- </p>
- </descr>
- <errors>
- In case of error the function returns a nonzero value,
- extended error information is returned by the <link id="fpGetErrno">FpGetErrno</link> function.
- See <link id="FpMMap"/> for possible error values.
- </errors>
- <seealso>
- <link id="FpMMap"/>
- </seealso>
- </element>
- <!-- function Visibility: default -->
- <element name="fpLstat">
- <short>Return information about symbolic link. Do not follow the link</short>
- <descr>
- <var>FpLstat</var> gets information about the link specified in <var>Path</var>
- (or <var>FileName</var>, and stores it in <var>Info</var>, which points to a
- record of type <var>TStat</var>. Contrary to <link id="FpFStat">FpFstat</link>, it stores
- information about the link, not about the file the link points to.
- The function returns zero if the call was succesful, a nonzero return value
- indicates failure.
- failed.
- </descr>
- <errors>
- <p>
- Extended error information is returned by the <link id="fpGetErrno">FpGetErrno</link>
- function.
- </p>
- <dl>
- <dt>sys_enoent</dt><dd> <var>Path</var> does not exist.</dd>
- </dl>
- </errors>
- <seealso>
- <link id="FpFStat"/>
- <link id="#rtl.unix.StatFS"/>
- </seealso>
- <example file="unixex/ex29"/>
- </element>
- <!-- function Visibility: default -->
- <element name="fpNice">
- <short>Set process priority</short>
- <descr>
- <p>
- <var>Nice</var> adds <var>-N</var> to the priority of the running process. The lower the
- priority numerically, the less the process is favored.
- Only the superuser can specify a negative <var>N</var>, i.e. increase the rate at
- which the process is run.
- </p>
- <p>
- If the function is succesful, zero is returned. On error, a nonzero value is returned.
- </p>
- </descr>
- <errors>
- <p>
- Extended error information is returned by the <link id="fpGetErrno">FpGetErrno</link> function.
- </p>
- <dl>
- <dt>sys_eperm</dt><dd> A non-superuser tried to specify a negative <var>N</var>, i.e.
- do a priority increase.</dd>
- </dl>
- </errors>
- <seealso>
- <link id="FpGetPriority"/>
- <link id="FpSetPriority"/>
- </seealso>
- <example file="unixex/ex15"/>
- </element>
- <!-- function Visibility: default -->
- <element name="fpGetPriority">
- <short>Return process priority</short>
- <descr>
- <p>
- GetPriority returns the priority with which a process is running.
- Which process(es) is determined by the <var>Which</var> and <var>Who</var> variables.
- <var>Which</var> can be one of the pre-defined <var>Prio_Process</var>,
- <var>Prio_PGrp</var>, <var>Prio_User</var>, in which case <var>Who</var> is the process ID, Process group ID or
- User ID, respectively.
- </p>
- <p>
- For an example, see <link id="FpNice"/>.
- </p>
- </descr>
- <errors>
- <p>
- Error information is returned solely by the <link id="fpGetErrno">FpGetErrno</link>
- function: a priority can be a positive or negative value.
- </p>
- <dl>
- <dt>sys_esrch</dt>
- <dd> No process found using <var>which</var> and <var>who</var>. </dd>
- <dt>sys_einval</dt>
- <dd> <var>Which</var> was not one of <var>Prio_Process</var>,
- <var>Prio_Grp</var> or <var>Prio_User</var>.</dd>
- </dl>
- </errors>
- <seealso>
- <link id="FpSetPriority"/>
- <link id="FpNice"/>
- </seealso>
- </element>
- <!-- function Visibility: default -->
- <element name="fpSetPriority">
- <short>Set process priority</short>
- <descr>
- <p>
- <var>fpSetPriority</var> sets the priority with which a process is running.
- Which process(es) is determined by the <var>Which</var> and <var>Who</var> variables.
- <var>Which</var> can be one of the pre-defined constants:
- </p>
- <dl>
- <dt>Prio_Process</dt><dd><var>Who</var> is interpreted as process ID</dd>
- <dt>Prio_PGrp</dt><dd><var>Who</var> is interpreted as process group ID</dd>
- <dt>Prio_User</dt><dd><var>Who</var> is interpreted as user ID</dd>
- </dl>
- <p>
- <var>Prio</var> is a value in the range -20 to 20.
- </p>
- <p>
- For an example, see <link id="FpNice"/>.
- </p>
- <p>
- The function returns zero on success, -1 on failure
- </p>
- </descr>
- <errors>
- <p>
- Extended error information is returned by the <link id="fpGetErrno">FpGetErrno</link>
- function.
- </p>
- <dl>
- <dt>sys_esrch</dt>
- <dd>No process found using <var>which</var> and <var>who</var>.</dd>
- <dt>sys_einval</dt>
- <dd> <var>Which</var> was not one of <var>Prio_Process</var>,
- <var>Prio_Grp</var> or <var>Prio_User</var>.</dd>
- <dt>sys_eperm</dt>
- <dd>A process was found, but neither its effective or real
- user ID match the effective user ID of the caller.</dd>
- <dt>sys_eacces</dt>
- <dd>A non-superuser tried to a priority increase.</dd>
- </dl>
- </errors>
- <seealso>
- <link id="FpGetPriority"/>
- <link id="FpNice"/>
- </seealso>
- </element>
- <!-- function Visibility: default -->
- <element name="fpSymlink">
- <short>Create a symbolic link</short>
- <descr>
- <p>
- <var>SymLink</var> makes <var>NewName</var> point to the file in
- <var>OldName</var>, which doesn't necessarily exist. The two files
- DO NOT have the same inode number. This is known as a 'soft' link.
- </p>
- <p>The permissions of the link are irrelevant, as they are not used when
- following the link. Ownership of the file is only checked in case of removal
- or renaming of the link.
- </p>
- <p>
- The function returns zero if the call was succesful, a nonzero value if the call
- failed.
- </p>
- </descr>
- <errors>
- <p>
- Extended error information is returned by the <link id="fpGetErrno">FpGetErrno</link>
- function.
- </p>
- <dl>
- <dt>sys_eperm</dt>
- <dd>The filesystem containing oldpath and newpath does not
- support linking files.</dd>
- <dt>sys_eaccess</dt>
- <dd>Write access for the directory containing <var>Newpath</var>
- is disallowed, or one of the directories in <var>OldPath</var> or
- <var>NewPath</var> has no search (=execute) permission.</dd>
- <dt>sys_enoent</dt>
- <dd>A directory entry in <var>OldPath</var> or <var>NewPath</var> does
- not exist or is a symbolic link pointing to a non-existent directory.</dd>
- <dt>sys_enotdir</dt>
- <dd>A directory entry in <var>OldPath</var> or <var>NewPath</var> is
- nor a directory.</dd>
- <dt>sys_enomem</dt><dd>Insufficient kernel memory.</dd>
- <dt>sys_erofs</dt><dd>The files are on a read-only filesystem.</dd>
- <dt>sys_eexist</dt><dd><var>NewPath</var> already exists.</dd>
- <dt>sys_eloop</dt>
- <dd> <var>OldPath</var> or <var>NewPath</var> has a reference to a circular
- symbolic link, i.e. a symbolic link, whose expansion points to itself.
- </dd>
- <dt>sys_enospc</dt>
- <dd>The device containing <var>NewPath</var> has no room for another entry.</dd>
- </dl>
- </errors>
- <seealso>
- <link id="FpLink"/>
- <link id="FpUnLink"/>
- <link id="FpReadLink"/>
- </seealso>
- <example file="unixex/ex22"/>
- </element>
- <!-- function Visibility: default -->
- <element name="fpReadLink">
- <short>Read destination of symbolic link</short>
- <descr>
- <p>
- <var>FpReadLink</var> returns the file the symbolic link <var>name</var> is pointing
- to. The first form of this function accepts a buffer <var>linkname</var> of
- length <var>maxlen</var> where the filename will be stored. It returns the
- actual number of characters stored in the buffer.
- </p>
- <p>
- The second form of the function returns simply the name of the file.
- </p>
- </descr>
- <errors>
- <p>
- On error, the first form of the function returns -1; the second one returns
- an empty string.
- Extended error information is returned by the <link id="fpGetErrno">FpGetErrno</link>
- function.
- </p>
- <dl>
- <dt>SYS_ENOTDIR</dt>
- <dd>A part of the path in <var>Name</var> is not a directory.</dd>
- <dt>SYS_EINVAL</dt>
- <dd>maxlen is not positive, or the file is not a symbolic link.</dd>
- <dt>SYS_ENAMETOOLONG</dt>
- <dd>A pathname, or a component of a pathname, was too long.</dd>
- <dt>SYS_ENOENT</dt>
- <dd>the link <var>name</var> does not exist.</dd>
- <dt>SYS_EACCES</dt>
- <dd>No permission to search a directory in the path</dd>
- <dt>SYS_ELOOP</dt>
- <dd>Too many symbolic links were encountered in translating the pathname.</dd>
- <dt>SYS_EIO</dt>
- <dd>An I/O error occurred while reading from the file system.</dd>
- <dt>SYS_EFAULT</dt>
- <dd>The buffer is not part of the the process's memory space.</dd>
- <dt>SYS_ENOMEM</dt>
- <dd>Not enough kernel memory was available.</dd>
- </dl>
- </errors>
- <seealso>
- <link id="FpSymLink"/>
- </seealso>
- <example file="unixex/ex62"/>
- </element>
- <element name="FPSetTimeOfDay">
- <short>Set kernel time</short>
- <descr>
- <p>
- <var>FpSetTimeOfDay</var> sets the kernel time to the number of seconds since 00:00,
- January 1 1970, GMT specified in the <var>tp</var> record. This time NOT corrected
- any way, not taking into account timezones, daylight savings time and so on.
- </p>
- <p>
- It is simply a wrapper to the kernel system call.
- </p>
- </descr>
- <seealso>
- <link id="#rtl.unix.FPGetTimeOfDay"/>
- </seealso>
- </element>
- </module> <!-- BaseUnix -->
- </package>
- </fpdoc-descriptions>
|