libc.info-9 290 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446
  1. This is libc.info, produced by makeinfo version 7.3 from libc.texinfo.
  2. This is ‘The GNU C Library Reference Manual’, for version 2.43.
  3. Copyright © 1993-2026 Free Software Foundation, Inc.
  4. Permission is granted to copy, distribute and/or modify this document
  5. under the terms of the GNU Free Documentation License, Version 1.3 or
  6. any later version published by the Free Software Foundation; with the
  7. Invariant Sections being "Free Software Needs Free Documentation" and
  8. "GNU Lesser General Public License", the Front-Cover texts being "A GNU
  9. Manual", and with the Back-Cover Texts as in (a) below. A copy of the
  10. license is included in the section entitled "GNU Free Documentation
  11. License".
  12. (a) The FSF's Back-Cover Text is: "You have the freedom to copy and
  13. modify this GNU manual. Buying copies from the FSF supports it in
  14. developing GNU and promoting software freedom."
  15. INFO-DIR-SECTION Software libraries
  16. START-INFO-DIR-ENTRY
  17. * Libc: (libc). C library.
  18. END-INFO-DIR-ENTRY
  19. INFO-DIR-SECTION GNU C library functions and macros
  20. START-INFO-DIR-ENTRY
  21. * ALTWERASE: (libc)Local Modes.
  22. * ARGP_ERR_UNKNOWN: (libc)Argp Parser Functions.
  23. * ARG_MAX: (libc)General Limits.
  24. * BAUD_MAX: (libc)Line Speed.
  25. * BC_BASE_MAX: (libc)Utility Limits.
  26. * BC_DIM_MAX: (libc)Utility Limits.
  27. * BC_SCALE_MAX: (libc)Utility Limits.
  28. * BC_STRING_MAX: (libc)Utility Limits.
  29. * BRKINT: (libc)Input Modes.
  30. * BUFSIZ: (libc)Controlling Buffering.
  31. * CCTS_OFLOW: (libc)Control Modes.
  32. * CHAR_BIT: (libc)Width of Type.
  33. * CHILD_MAX: (libc)General Limits.
  34. * CIGNORE: (libc)Control Modes.
  35. * CLK_TCK: (libc)Processor Time.
  36. * CLOCAL: (libc)Control Modes.
  37. * CLOCKS_PER_SEC: (libc)CPU Time.
  38. * CLOCK_BOOTTIME: (libc)Getting the Time.
  39. * CLOCK_BOOTTIME_ALARM: (libc)Getting the Time.
  40. * CLOCK_MONOTONIC: (libc)Getting the Time.
  41. * CLOCK_MONOTONIC_COARSE: (libc)Getting the Time.
  42. * CLOCK_MONOTONIC_RAW: (libc)Getting the Time.
  43. * CLOCK_PROCESS_CPUTIME_ID: (libc)Getting the Time.
  44. * CLOCK_REALTIME: (libc)Getting the Time.
  45. * CLOCK_REALTIME_ALARM: (libc)Getting the Time.
  46. * CLOCK_REALTIME_COARSE: (libc)Getting the Time.
  47. * CLOCK_TAI: (libc)Getting the Time.
  48. * CLOCK_THREAD_CPUTIME_ID: (libc)Getting the Time.
  49. * COLL_WEIGHTS_MAX: (libc)Utility Limits.
  50. * CPU_ALLOC: (libc)CPU Affinity.
  51. * CPU_ALLOC_SIZE: (libc)CPU Affinity.
  52. * CPU_AND: (libc)CPU Affinity.
  53. * CPU_AND_S: (libc)CPU Affinity.
  54. * CPU_CLR: (libc)CPU Affinity.
  55. * CPU_CLR_S: (libc)CPU Affinity.
  56. * CPU_COUNT: (libc)CPU Affinity.
  57. * CPU_COUNT_S: (libc)CPU Affinity.
  58. * CPU_EQUAL: (libc)CPU Affinity.
  59. * CPU_EQUAL_S: (libc)CPU Affinity.
  60. * CPU_FEATURE_ACTIVE: (libc)X86.
  61. * CPU_FEATURE_PRESENT: (libc)X86.
  62. * CPU_FREE: (libc)CPU Affinity.
  63. * CPU_ISSET: (libc)CPU Affinity.
  64. * CPU_ISSET_S: (libc)CPU Affinity.
  65. * CPU_OR: (libc)CPU Affinity.
  66. * CPU_OR_S: (libc)CPU Affinity.
  67. * CPU_SET: (libc)CPU Affinity.
  68. * CPU_SETSIZE: (libc)CPU Affinity.
  69. * CPU_SET_S: (libc)CPU Affinity.
  70. * CPU_XOR: (libc)CPU Affinity.
  71. * CPU_XOR_S: (libc)CPU Affinity.
  72. * CPU_ZERO: (libc)CPU Affinity.
  73. * CPU_ZERO_S: (libc)CPU Affinity.
  74. * CREAD: (libc)Control Modes.
  75. * CRTS_IFLOW: (libc)Control Modes.
  76. * CS5: (libc)Control Modes.
  77. * CS6: (libc)Control Modes.
  78. * CS7: (libc)Control Modes.
  79. * CS8: (libc)Control Modes.
  80. * CSIZE: (libc)Control Modes.
  81. * CSTOPB: (libc)Control Modes.
  82. * DLFO_EH_SEGMENT_TYPE: (libc)Dynamic Linker Introspection.
  83. * DLFO_STRUCT_HAS_EH_COUNT: (libc)Dynamic Linker Introspection.
  84. * DLFO_STRUCT_HAS_EH_DBASE: (libc)Dynamic Linker Introspection.
  85. * DTTOIF: (libc)Directory Entries.
  86. * E2BIG: (libc)Error Codes.
  87. * EACCES: (libc)Error Codes.
  88. * EADDRINUSE: (libc)Error Codes.
  89. * EADDRNOTAVAIL: (libc)Error Codes.
  90. * EADV: (libc)Error Codes.
  91. * EAFNOSUPPORT: (libc)Error Codes.
  92. * EAGAIN: (libc)Error Codes.
  93. * EALREADY: (libc)Error Codes.
  94. * EAUTH: (libc)Error Codes.
  95. * EBACKGROUND: (libc)Error Codes.
  96. * EBADE: (libc)Error Codes.
  97. * EBADF: (libc)Error Codes.
  98. * EBADFD: (libc)Error Codes.
  99. * EBADMSG: (libc)Error Codes.
  100. * EBADR: (libc)Error Codes.
  101. * EBADRPC: (libc)Error Codes.
  102. * EBADRQC: (libc)Error Codes.
  103. * EBADSLT: (libc)Error Codes.
  104. * EBFONT: (libc)Error Codes.
  105. * EBUSY: (libc)Error Codes.
  106. * ECANCELED: (libc)Error Codes.
  107. * ECHILD: (libc)Error Codes.
  108. * ECHO: (libc)Local Modes.
  109. * ECHOCTL: (libc)Local Modes.
  110. * ECHOE: (libc)Local Modes.
  111. * ECHOK: (libc)Local Modes.
  112. * ECHOKE: (libc)Local Modes.
  113. * ECHONL: (libc)Local Modes.
  114. * ECHOPRT: (libc)Local Modes.
  115. * ECHRNG: (libc)Error Codes.
  116. * ECOMM: (libc)Error Codes.
  117. * ECONNABORTED: (libc)Error Codes.
  118. * ECONNREFUSED: (libc)Error Codes.
  119. * ECONNRESET: (libc)Error Codes.
  120. * ED: (libc)Error Codes.
  121. * EDEADLK: (libc)Error Codes.
  122. * EDEADLOCK: (libc)Error Codes.
  123. * EDESTADDRREQ: (libc)Error Codes.
  124. * EDIED: (libc)Error Codes.
  125. * EDOM: (libc)Error Codes.
  126. * EDOTDOT: (libc)Error Codes.
  127. * EDQUOT: (libc)Error Codes.
  128. * EEXIST: (libc)Error Codes.
  129. * EFAULT: (libc)Error Codes.
  130. * EFBIG: (libc)Error Codes.
  131. * EFTYPE: (libc)Error Codes.
  132. * EGRATUITOUS: (libc)Error Codes.
  133. * EGREGIOUS: (libc)Error Codes.
  134. * EHOSTDOWN: (libc)Error Codes.
  135. * EHOSTUNREACH: (libc)Error Codes.
  136. * EHWPOISON: (libc)Error Codes.
  137. * EIDRM: (libc)Error Codes.
  138. * EIEIO: (libc)Error Codes.
  139. * EILSEQ: (libc)Error Codes.
  140. * EINPROGRESS: (libc)Error Codes.
  141. * EINTR: (libc)Error Codes.
  142. * EINVAL: (libc)Error Codes.
  143. * EIO: (libc)Error Codes.
  144. * EISCONN: (libc)Error Codes.
  145. * EISDIR: (libc)Error Codes.
  146. * EISNAM: (libc)Error Codes.
  147. * EKEYEXPIRED: (libc)Error Codes.
  148. * EKEYREJECTED: (libc)Error Codes.
  149. * EKEYREVOKED: (libc)Error Codes.
  150. * EL2HLT: (libc)Error Codes.
  151. * EL2NSYNC: (libc)Error Codes.
  152. * EL3HLT: (libc)Error Codes.
  153. * EL3RST: (libc)Error Codes.
  154. * ELIBACC: (libc)Error Codes.
  155. * ELIBBAD: (libc)Error Codes.
  156. * ELIBEXEC: (libc)Error Codes.
  157. * ELIBMAX: (libc)Error Codes.
  158. * ELIBSCN: (libc)Error Codes.
  159. * ELNRNG: (libc)Error Codes.
  160. * ELOOP: (libc)Error Codes.
  161. * EMEDIUMTYPE: (libc)Error Codes.
  162. * EMFILE: (libc)Error Codes.
  163. * EMLINK: (libc)Error Codes.
  164. * EMSGSIZE: (libc)Error Codes.
  165. * EMULTIHOP: (libc)Error Codes.
  166. * ENAMETOOLONG: (libc)Error Codes.
  167. * ENAVAIL: (libc)Error Codes.
  168. * ENEEDAUTH: (libc)Error Codes.
  169. * ENETDOWN: (libc)Error Codes.
  170. * ENETRESET: (libc)Error Codes.
  171. * ENETUNREACH: (libc)Error Codes.
  172. * ENFILE: (libc)Error Codes.
  173. * ENOANO: (libc)Error Codes.
  174. * ENOBUFS: (libc)Error Codes.
  175. * ENOCSI: (libc)Error Codes.
  176. * ENODATA: (libc)Error Codes.
  177. * ENODEV: (libc)Error Codes.
  178. * ENOENT: (libc)Error Codes.
  179. * ENOEXEC: (libc)Error Codes.
  180. * ENOKEY: (libc)Error Codes.
  181. * ENOLCK: (libc)Error Codes.
  182. * ENOLINK: (libc)Error Codes.
  183. * ENOMEDIUM: (libc)Error Codes.
  184. * ENOMEM: (libc)Error Codes.
  185. * ENOMSG: (libc)Error Codes.
  186. * ENONET: (libc)Error Codes.
  187. * ENOPKG: (libc)Error Codes.
  188. * ENOPROTOOPT: (libc)Error Codes.
  189. * ENOSPC: (libc)Error Codes.
  190. * ENOSR: (libc)Error Codes.
  191. * ENOSTR: (libc)Error Codes.
  192. * ENOSYS: (libc)Error Codes.
  193. * ENOTBLK: (libc)Error Codes.
  194. * ENOTCONN: (libc)Error Codes.
  195. * ENOTDIR: (libc)Error Codes.
  196. * ENOTEMPTY: (libc)Error Codes.
  197. * ENOTNAM: (libc)Error Codes.
  198. * ENOTRECOVERABLE: (libc)Error Codes.
  199. * ENOTSOCK: (libc)Error Codes.
  200. * ENOTSUP: (libc)Error Codes.
  201. * ENOTTY: (libc)Error Codes.
  202. * ENOTUNIQ: (libc)Error Codes.
  203. * ENXIO: (libc)Error Codes.
  204. * EOF: (libc)EOF and Errors.
  205. * EOPNOTSUPP: (libc)Error Codes.
  206. * EOVERFLOW: (libc)Error Codes.
  207. * EOWNERDEAD: (libc)Error Codes.
  208. * EPERM: (libc)Error Codes.
  209. * EPFNOSUPPORT: (libc)Error Codes.
  210. * EPIPE: (libc)Error Codes.
  211. * EPROCLIM: (libc)Error Codes.
  212. * EPROCUNAVAIL: (libc)Error Codes.
  213. * EPROGMISMATCH: (libc)Error Codes.
  214. * EPROGUNAVAIL: (libc)Error Codes.
  215. * EPROTO: (libc)Error Codes.
  216. * EPROTONOSUPPORT: (libc)Error Codes.
  217. * EPROTOTYPE: (libc)Error Codes.
  218. * EQUIV_CLASS_MAX: (libc)Utility Limits.
  219. * ERANGE: (libc)Error Codes.
  220. * EREMCHG: (libc)Error Codes.
  221. * EREMOTE: (libc)Error Codes.
  222. * EREMOTEIO: (libc)Error Codes.
  223. * ERESTART: (libc)Error Codes.
  224. * ERFKILL: (libc)Error Codes.
  225. * EROFS: (libc)Error Codes.
  226. * ERPCMISMATCH: (libc)Error Codes.
  227. * ESHUTDOWN: (libc)Error Codes.
  228. * ESOCKTNOSUPPORT: (libc)Error Codes.
  229. * ESPIPE: (libc)Error Codes.
  230. * ESRCH: (libc)Error Codes.
  231. * ESRMNT: (libc)Error Codes.
  232. * ESTALE: (libc)Error Codes.
  233. * ESTRPIPE: (libc)Error Codes.
  234. * ETIME: (libc)Error Codes.
  235. * ETIMEDOUT: (libc)Error Codes.
  236. * ETOOMANYREFS: (libc)Error Codes.
  237. * ETXTBSY: (libc)Error Codes.
  238. * EUCLEAN: (libc)Error Codes.
  239. * EUNATCH: (libc)Error Codes.
  240. * EUSERS: (libc)Error Codes.
  241. * EWOULDBLOCK: (libc)Error Codes.
  242. * EXDEV: (libc)Error Codes.
  243. * EXFULL: (libc)Error Codes.
  244. * EXIT_FAILURE: (libc)Exit Status.
  245. * EXIT_SUCCESS: (libc)Exit Status.
  246. * EXPR_NEST_MAX: (libc)Utility Limits.
  247. * FD_CLOEXEC: (libc)Descriptor Flags.
  248. * FD_CLR: (libc)Waiting for I/O.
  249. * FD_ISSET: (libc)Waiting for I/O.
  250. * FD_SET: (libc)Waiting for I/O.
  251. * FD_SETSIZE: (libc)Waiting for I/O.
  252. * FD_ZERO: (libc)Waiting for I/O.
  253. * FE_SNANS_ALWAYS_SIGNAL: (libc)Infinity and NaN.
  254. * FILENAME_MAX: (libc)Limits for Files.
  255. * FLUSHO: (libc)Local Modes.
  256. * FOPEN_MAX: (libc)Opening Streams.
  257. * FP_ILOGB0: (libc)Exponents and Logarithms.
  258. * FP_ILOGBNAN: (libc)Exponents and Logarithms.
  259. * FP_LLOGB0: (libc)Exponents and Logarithms.
  260. * FP_LLOGBNAN: (libc)Exponents and Logarithms.
  261. * F_DUPFD: (libc)Duplicating Descriptors.
  262. * F_GETFD: (libc)Descriptor Flags.
  263. * F_GETFL: (libc)Getting File Status Flags.
  264. * F_GETLK: (libc)File Locks.
  265. * F_GETOWN: (libc)Interrupt Input.
  266. * F_OFD_GETLK: (libc)Open File Description Locks.
  267. * F_OFD_SETLK: (libc)Open File Description Locks.
  268. * F_OFD_SETLKW: (libc)Open File Description Locks.
  269. * F_OK: (libc)Testing File Access.
  270. * F_SETFD: (libc)Descriptor Flags.
  271. * F_SETFL: (libc)Getting File Status Flags.
  272. * F_SETLK: (libc)File Locks.
  273. * F_SETLKW: (libc)File Locks.
  274. * F_SETOWN: (libc)Interrupt Input.
  275. * HUGE_VAL: (libc)Math Error Reporting.
  276. * HUGE_VALF: (libc)Math Error Reporting.
  277. * HUGE_VALL: (libc)Math Error Reporting.
  278. * HUGE_VAL_FN: (libc)Math Error Reporting.
  279. * HUGE_VAL_FNx: (libc)Math Error Reporting.
  280. * HUPCL: (libc)Control Modes.
  281. * I: (libc)Complex Numbers.
  282. * ICANON: (libc)Local Modes.
  283. * ICRNL: (libc)Input Modes.
  284. * IEXTEN: (libc)Local Modes.
  285. * IFNAMSIZ: (libc)Interface Naming.
  286. * IFTODT: (libc)Directory Entries.
  287. * IGNBRK: (libc)Input Modes.
  288. * IGNCR: (libc)Input Modes.
  289. * IGNPAR: (libc)Input Modes.
  290. * IMAXBEL: (libc)Input Modes.
  291. * INADDR_ANY: (libc)Host Address Data Type.
  292. * INADDR_BROADCAST: (libc)Host Address Data Type.
  293. * INADDR_LOOPBACK: (libc)Host Address Data Type.
  294. * INADDR_NONE: (libc)Host Address Data Type.
  295. * INFINITY: (libc)Infinity and NaN.
  296. * INLCR: (libc)Input Modes.
  297. * INPCK: (libc)Input Modes.
  298. * IPPORT_RESERVED: (libc)Ports.
  299. * IPPORT_USERRESERVED: (libc)Ports.
  300. * ISIG: (libc)Local Modes.
  301. * ISTRIP: (libc)Input Modes.
  302. * IXANY: (libc)Input Modes.
  303. * IXOFF: (libc)Input Modes.
  304. * IXON: (libc)Input Modes.
  305. * LINE_MAX: (libc)Utility Limits.
  306. * LINK_MAX: (libc)Limits for Files.
  307. * L_ctermid: (libc)Identifying the Terminal.
  308. * L_cuserid: (libc)Who Logged In.
  309. * L_tmpnam: (libc)Temporary Files.
  310. * MAXNAMLEN: (libc)Limits for Files.
  311. * MAXSYMLINKS: (libc)Symbolic Links.
  312. * MAX_CANON: (libc)Limits for Files.
  313. * MAX_INPUT: (libc)Limits for Files.
  314. * MB_CUR_MAX: (libc)Selecting the Conversion.
  315. * MB_LEN_MAX: (libc)Selecting the Conversion.
  316. * MDMBUF: (libc)Control Modes.
  317. * MSG_DONTROUTE: (libc)Socket Data Options.
  318. * MSG_OOB: (libc)Socket Data Options.
  319. * MSG_PEEK: (libc)Socket Data Options.
  320. * NAME_MAX: (libc)Limits for Files.
  321. * NAN: (libc)Infinity and NaN.
  322. * NCCS: (libc)Mode Data Types.
  323. * NGROUPS_MAX: (libc)General Limits.
  324. * NOFLSH: (libc)Local Modes.
  325. * NOKERNINFO: (libc)Local Modes.
  326. * NSIG: (libc)Standard Signals.
  327. * NULL: (libc)Null Pointer Constant.
  328. * ONLCR: (libc)Output Modes.
  329. * ONOEOT: (libc)Output Modes.
  330. * OPEN_MAX: (libc)General Limits.
  331. * OPOST: (libc)Output Modes.
  332. * OXTABS: (libc)Output Modes.
  333. * O_ACCMODE: (libc)Access Modes.
  334. * O_APPEND: (libc)Operating Modes.
  335. * O_ASYNC: (libc)Operating Modes.
  336. * O_CREAT: (libc)Open-time Flags.
  337. * O_DIRECTORY: (libc)Open-time Flags.
  338. * O_EXCL: (libc)Open-time Flags.
  339. * O_EXEC: (libc)Access Modes.
  340. * O_EXLOCK: (libc)Open-time Flags.
  341. * O_FSYNC: (libc)Operating Modes.
  342. * O_IGNORE_CTTY: (libc)Open-time Flags.
  343. * O_NDELAY: (libc)Operating Modes.
  344. * O_NOATIME: (libc)Operating Modes.
  345. * O_NOCTTY: (libc)Open-time Flags.
  346. * O_NOFOLLOW: (libc)Open-time Flags.
  347. * O_NOLINK: (libc)Open-time Flags.
  348. * O_NONBLOCK: (libc)Open-time Flags.
  349. * O_NONBLOCK: (libc)Operating Modes.
  350. * O_NOTRANS: (libc)Open-time Flags.
  351. * O_PATH: (libc)Access Modes.
  352. * O_RDONLY: (libc)Access Modes.
  353. * O_RDWR: (libc)Access Modes.
  354. * O_READ: (libc)Access Modes.
  355. * O_SHLOCK: (libc)Open-time Flags.
  356. * O_SYNC: (libc)Operating Modes.
  357. * O_TMPFILE: (libc)Open-time Flags.
  358. * O_TRUNC: (libc)Open-time Flags.
  359. * O_WRITE: (libc)Access Modes.
  360. * O_WRONLY: (libc)Access Modes.
  361. * PARENB: (libc)Control Modes.
  362. * PARMRK: (libc)Input Modes.
  363. * PARODD: (libc)Control Modes.
  364. * PATH_MAX: (libc)Limits for Files.
  365. * PA_FLAG_MASK: (libc)Parsing a Template String.
  366. * PENDIN: (libc)Local Modes.
  367. * PF_FILE: (libc)Local Namespace Details.
  368. * PF_INET6: (libc)Internet Namespace.
  369. * PF_INET: (libc)Internet Namespace.
  370. * PF_LOCAL: (libc)Local Namespace Details.
  371. * PF_UNIX: (libc)Local Namespace Details.
  372. * PIPE_BUF: (libc)Limits for Files.
  373. * PTHREAD_ATTR_NO_SIGMASK_NP: (libc)Initial Thread Signal Mask.
  374. * P_tmpdir: (libc)Temporary Files.
  375. * RAND_MAX: (libc)ISO Random.
  376. * RE_DUP_MAX: (libc)General Limits.
  377. * RLIM_INFINITY: (libc)Limits on Resources.
  378. * RSEQ_SIG: (libc)Restartable Sequences.
  379. * R_OK: (libc)Testing File Access.
  380. * SA_NOCLDSTOP: (libc)Flags for Sigaction.
  381. * SA_NOCLDWAIT: (libc)Flags for Sigaction.
  382. * SA_NODEFER: (libc)Flags for Sigaction.
  383. * SA_ONSTACK: (libc)Flags for Sigaction.
  384. * SA_RESETHAND: (libc)Flags for Sigaction.
  385. * SA_RESTART: (libc)Flags for Sigaction.
  386. * SA_SIGINFO: (libc)Flags for Sigaction.
  387. * SEEK_CUR: (libc)File Positioning.
  388. * SEEK_END: (libc)File Positioning.
  389. * SEEK_SET: (libc)File Positioning.
  390. * SIGABRT: (libc)Program Error Signals.
  391. * SIGALRM: (libc)Alarm Signals.
  392. * SIGBUS: (libc)Program Error Signals.
  393. * SIGCHLD: (libc)Job Control Signals.
  394. * SIGCLD: (libc)Job Control Signals.
  395. * SIGCONT: (libc)Job Control Signals.
  396. * SIGEMT: (libc)Program Error Signals.
  397. * SIGFPE: (libc)Program Error Signals.
  398. * SIGHUP: (libc)Termination Signals.
  399. * SIGILL: (libc)Program Error Signals.
  400. * SIGINFO: (libc)Miscellaneous Signals.
  401. * SIGINT: (libc)Termination Signals.
  402. * SIGIO: (libc)Asynchronous I/O Signals.
  403. * SIGIOT: (libc)Program Error Signals.
  404. * SIGKILL: (libc)Termination Signals.
  405. * SIGLOST: (libc)Operation Error Signals.
  406. * SIGPIPE: (libc)Operation Error Signals.
  407. * SIGPOLL: (libc)Asynchronous I/O Signals.
  408. * SIGPROF: (libc)Alarm Signals.
  409. * SIGPWR: (libc)Miscellaneous Signals.
  410. * SIGQUIT: (libc)Termination Signals.
  411. * SIGSEGV: (libc)Program Error Signals.
  412. * SIGSTKFLT: (libc)Program Error Signals.
  413. * SIGSTOP: (libc)Job Control Signals.
  414. * SIGSYS: (libc)Program Error Signals.
  415. * SIGTERM: (libc)Termination Signals.
  416. * SIGTRAP: (libc)Program Error Signals.
  417. * SIGTSTP: (libc)Job Control Signals.
  418. * SIGTTIN: (libc)Job Control Signals.
  419. * SIGTTOU: (libc)Job Control Signals.
  420. * SIGURG: (libc)Asynchronous I/O Signals.
  421. * SIGUSR1: (libc)Miscellaneous Signals.
  422. * SIGUSR2: (libc)Miscellaneous Signals.
  423. * SIGVTALRM: (libc)Alarm Signals.
  424. * SIGWINCH: (libc)Miscellaneous Signals.
  425. * SIGXCPU: (libc)Operation Error Signals.
  426. * SIGXFSZ: (libc)Operation Error Signals.
  427. * SIG_ERR: (libc)Basic Signal Handling.
  428. * SNAN: (libc)Infinity and NaN.
  429. * SNANF: (libc)Infinity and NaN.
  430. * SNANFN: (libc)Infinity and NaN.
  431. * SNANFNx: (libc)Infinity and NaN.
  432. * SNANL: (libc)Infinity and NaN.
  433. * SOCK_DGRAM: (libc)Communication Styles.
  434. * SOCK_RAW: (libc)Communication Styles.
  435. * SOCK_RDM: (libc)Communication Styles.
  436. * SOCK_SEQPACKET: (libc)Communication Styles.
  437. * SOCK_STREAM: (libc)Communication Styles.
  438. * SOL_SOCKET: (libc)Socket-Level Options.
  439. * SPEED_MAX: (libc)Line Speed.
  440. * SSIZE_MAX: (libc)General Limits.
  441. * STREAM_MAX: (libc)General Limits.
  442. * SUN_LEN: (libc)Local Namespace Details.
  443. * S_IFMT: (libc)Testing File Type.
  444. * S_ISBLK: (libc)Testing File Type.
  445. * S_ISCHR: (libc)Testing File Type.
  446. * S_ISDIR: (libc)Testing File Type.
  447. * S_ISFIFO: (libc)Testing File Type.
  448. * S_ISLNK: (libc)Testing File Type.
  449. * S_ISREG: (libc)Testing File Type.
  450. * S_ISSOCK: (libc)Testing File Type.
  451. * S_TYPEISMQ: (libc)Testing File Type.
  452. * S_TYPEISSEM: (libc)Testing File Type.
  453. * S_TYPEISSHM: (libc)Testing File Type.
  454. * TIME_UTC: (libc)Getting the Time.
  455. * TMP_MAX: (libc)Temporary Files.
  456. * TOSTOP: (libc)Local Modes.
  457. * TZNAME_MAX: (libc)General Limits.
  458. * VDISCARD: (libc)Other Special.
  459. * VDSUSP: (libc)Signal Characters.
  460. * VEOF: (libc)Editing Characters.
  461. * VEOL2: (libc)Editing Characters.
  462. * VEOL: (libc)Editing Characters.
  463. * VERASE: (libc)Editing Characters.
  464. * VINTR: (libc)Signal Characters.
  465. * VKILL: (libc)Editing Characters.
  466. * VLNEXT: (libc)Other Special.
  467. * VMIN: (libc)Noncanonical Input.
  468. * VQUIT: (libc)Signal Characters.
  469. * VREPRINT: (libc)Editing Characters.
  470. * VSTART: (libc)Start/Stop Characters.
  471. * VSTATUS: (libc)Other Special.
  472. * VSTOP: (libc)Start/Stop Characters.
  473. * VSUSP: (libc)Signal Characters.
  474. * VTIME: (libc)Noncanonical Input.
  475. * VWERASE: (libc)Editing Characters.
  476. * WCHAR_MAX: (libc)Extended Char Intro.
  477. * WCHAR_MIN: (libc)Extended Char Intro.
  478. * WCOREDUMP: (libc)Process Completion Status.
  479. * WEOF: (libc)EOF and Errors.
  480. * WEOF: (libc)Extended Char Intro.
  481. * WEXITSTATUS: (libc)Process Completion Status.
  482. * WIFEXITED: (libc)Process Completion Status.
  483. * WIFSIGNALED: (libc)Process Completion Status.
  484. * WIFSTOPPED: (libc)Process Completion Status.
  485. * WSTOPSIG: (libc)Process Completion Status.
  486. * WTERMSIG: (libc)Process Completion Status.
  487. * W_OK: (libc)Testing File Access.
  488. * X_OK: (libc)Testing File Access.
  489. * _Complex_I: (libc)Complex Numbers.
  490. * _Exit: (libc)Termination Internals.
  491. * _Fork: (libc)Creating a Process.
  492. * _IOFBF: (libc)Controlling Buffering.
  493. * _IOLBF: (libc)Controlling Buffering.
  494. * _IONBF: (libc)Controlling Buffering.
  495. * _Imaginary_I: (libc)Complex Numbers.
  496. * _PATH_UTMP: (libc)Manipulating the Database.
  497. * _PATH_WTMP: (libc)Manipulating the Database.
  498. * _POSIX2_C_DEV: (libc)System Options.
  499. * _POSIX2_C_VERSION: (libc)Version Supported.
  500. * _POSIX2_FORT_DEV: (libc)System Options.
  501. * _POSIX2_FORT_RUN: (libc)System Options.
  502. * _POSIX2_LOCALEDEF: (libc)System Options.
  503. * _POSIX2_SW_DEV: (libc)System Options.
  504. * _POSIX_CHOWN_RESTRICTED: (libc)Options for Files.
  505. * _POSIX_JOB_CONTROL: (libc)System Options.
  506. * _POSIX_NO_TRUNC: (libc)Options for Files.
  507. * _POSIX_SAVED_IDS: (libc)System Options.
  508. * _POSIX_VDISABLE: (libc)Options for Files.
  509. * _POSIX_VERSION: (libc)Version Supported.
  510. * __fbufsize: (libc)Controlling Buffering.
  511. * __flbf: (libc)Controlling Buffering.
  512. * __fpending: (libc)Controlling Buffering.
  513. * __fpurge: (libc)Flushing Buffers.
  514. * __freadable: (libc)Opening Streams.
  515. * __freading: (libc)Opening Streams.
  516. * __fsetlocking: (libc)Streams and Threads.
  517. * __fwritable: (libc)Opening Streams.
  518. * __fwriting: (libc)Opening Streams.
  519. * __gconv_end_fct: (libc)glibc iconv Implementation.
  520. * __gconv_fct: (libc)glibc iconv Implementation.
  521. * __gconv_init_fct: (libc)glibc iconv Implementation.
  522. * __ppc_get_timebase: (libc)PowerPC.
  523. * __ppc_get_timebase_freq: (libc)PowerPC.
  524. * __ppc_mdoio: (libc)PowerPC.
  525. * __ppc_mdoom: (libc)PowerPC.
  526. * __ppc_set_ppr_low: (libc)PowerPC.
  527. * __ppc_set_ppr_med: (libc)PowerPC.
  528. * __ppc_set_ppr_med_high: (libc)PowerPC.
  529. * __ppc_set_ppr_med_low: (libc)PowerPC.
  530. * __ppc_set_ppr_very_low: (libc)PowerPC.
  531. * __ppc_yield: (libc)PowerPC.
  532. * __riscv_flush_icache: (libc)RISC-V.
  533. * __va_copy: (libc)Argument Macros.
  534. * __x86_get_cpuid_feature_leaf: (libc)X86.
  535. * _dl_find_object: (libc)Dynamic Linker Introspection.
  536. * _exit: (libc)Termination Internals.
  537. * _flushlbf: (libc)Flushing Buffers.
  538. * _tolower: (libc)Case Conversion.
  539. * _toupper: (libc)Case Conversion.
  540. * a64l: (libc)Encode Binary Data.
  541. * abort: (libc)Aborting a Program.
  542. * abs: (libc)Absolute Value.
  543. * accept: (libc)Accepting Connections.
  544. * access: (libc)Testing File Access.
  545. * acos: (libc)Inverse Trig Functions.
  546. * acosf: (libc)Inverse Trig Functions.
  547. * acosfN: (libc)Inverse Trig Functions.
  548. * acosfNx: (libc)Inverse Trig Functions.
  549. * acosh: (libc)Hyperbolic Functions.
  550. * acoshf: (libc)Hyperbolic Functions.
  551. * acoshfN: (libc)Hyperbolic Functions.
  552. * acoshfNx: (libc)Hyperbolic Functions.
  553. * acoshl: (libc)Hyperbolic Functions.
  554. * acosl: (libc)Inverse Trig Functions.
  555. * acospi: (libc)Inverse Trig Functions.
  556. * acospif: (libc)Inverse Trig Functions.
  557. * acospifN: (libc)Inverse Trig Functions.
  558. * acospifNx: (libc)Inverse Trig Functions.
  559. * acospil: (libc)Inverse Trig Functions.
  560. * addmntent: (libc)mtab.
  561. * addseverity: (libc)Adding Severity Classes.
  562. * adjtime: (libc)Setting and Adjusting the Time.
  563. * adjtimex: (libc)Setting and Adjusting the Time.
  564. * aio_cancel64: (libc)Cancel AIO Operations.
  565. * aio_cancel: (libc)Cancel AIO Operations.
  566. * aio_error64: (libc)Status of AIO Operations.
  567. * aio_error: (libc)Status of AIO Operations.
  568. * aio_fsync64: (libc)Synchronizing AIO Operations.
  569. * aio_fsync: (libc)Synchronizing AIO Operations.
  570. * aio_init: (libc)Configuration of AIO.
  571. * aio_read64: (libc)Asynchronous Reads/Writes.
  572. * aio_read: (libc)Asynchronous Reads/Writes.
  573. * aio_return64: (libc)Status of AIO Operations.
  574. * aio_return: (libc)Status of AIO Operations.
  575. * aio_suspend64: (libc)Synchronizing AIO Operations.
  576. * aio_suspend: (libc)Synchronizing AIO Operations.
  577. * aio_write64: (libc)Asynchronous Reads/Writes.
  578. * aio_write: (libc)Asynchronous Reads/Writes.
  579. * alarm: (libc)Setting an Alarm.
  580. * aligned_alloc: (libc)Aligned Memory Blocks.
  581. * alloca: (libc)Variable Size Automatic.
  582. * alphasort64: (libc)Scanning Directory Content.
  583. * alphasort: (libc)Scanning Directory Content.
  584. * arc4random: (libc)High Quality Random.
  585. * arc4random_buf: (libc)High Quality Random.
  586. * arc4random_uniform: (libc)High Quality Random.
  587. * argp_error: (libc)Argp Helper Functions.
  588. * argp_failure: (libc)Argp Helper Functions.
  589. * argp_help: (libc)Argp Help.
  590. * argp_parse: (libc)Argp.
  591. * argp_state_help: (libc)Argp Helper Functions.
  592. * argp_usage: (libc)Argp Helper Functions.
  593. * argz_add: (libc)Argz Functions.
  594. * argz_add_sep: (libc)Argz Functions.
  595. * argz_append: (libc)Argz Functions.
  596. * argz_count: (libc)Argz Functions.
  597. * argz_create: (libc)Argz Functions.
  598. * argz_create_sep: (libc)Argz Functions.
  599. * argz_delete: (libc)Argz Functions.
  600. * argz_extract: (libc)Argz Functions.
  601. * argz_insert: (libc)Argz Functions.
  602. * argz_next: (libc)Argz Functions.
  603. * argz_replace: (libc)Argz Functions.
  604. * argz_stringify: (libc)Argz Functions.
  605. * asctime: (libc)Formatting Calendar Time.
  606. * asctime_r: (libc)Formatting Calendar Time.
  607. * asin: (libc)Inverse Trig Functions.
  608. * asinf: (libc)Inverse Trig Functions.
  609. * asinfN: (libc)Inverse Trig Functions.
  610. * asinfNx: (libc)Inverse Trig Functions.
  611. * asinh: (libc)Hyperbolic Functions.
  612. * asinhf: (libc)Hyperbolic Functions.
  613. * asinhfN: (libc)Hyperbolic Functions.
  614. * asinhfNx: (libc)Hyperbolic Functions.
  615. * asinhl: (libc)Hyperbolic Functions.
  616. * asinl: (libc)Inverse Trig Functions.
  617. * asinpi: (libc)Inverse Trig Functions.
  618. * asinpif: (libc)Inverse Trig Functions.
  619. * asinpifN: (libc)Inverse Trig Functions.
  620. * asinpifNx: (libc)Inverse Trig Functions.
  621. * asinpil: (libc)Inverse Trig Functions.
  622. * asprintf: (libc)Dynamic Output.
  623. * assert: (libc)Consistency Checking.
  624. * assert_perror: (libc)Consistency Checking.
  625. * atan2: (libc)Inverse Trig Functions.
  626. * atan2f: (libc)Inverse Trig Functions.
  627. * atan2fN: (libc)Inverse Trig Functions.
  628. * atan2fNx: (libc)Inverse Trig Functions.
  629. * atan2l: (libc)Inverse Trig Functions.
  630. * atan2pi: (libc)Inverse Trig Functions.
  631. * atan2pif: (libc)Inverse Trig Functions.
  632. * atan2pifN: (libc)Inverse Trig Functions.
  633. * atan2pifNx: (libc)Inverse Trig Functions.
  634. * atan2pil: (libc)Inverse Trig Functions.
  635. * atan: (libc)Inverse Trig Functions.
  636. * atanf: (libc)Inverse Trig Functions.
  637. * atanfN: (libc)Inverse Trig Functions.
  638. * atanfNx: (libc)Inverse Trig Functions.
  639. * atanh: (libc)Hyperbolic Functions.
  640. * atanhf: (libc)Hyperbolic Functions.
  641. * atanhfN: (libc)Hyperbolic Functions.
  642. * atanhfNx: (libc)Hyperbolic Functions.
  643. * atanhl: (libc)Hyperbolic Functions.
  644. * atanl: (libc)Inverse Trig Functions.
  645. * atanpi: (libc)Inverse Trig Functions.
  646. * atanpif: (libc)Inverse Trig Functions.
  647. * atanpifN: (libc)Inverse Trig Functions.
  648. * atanpifNx: (libc)Inverse Trig Functions.
  649. * atanpil: (libc)Inverse Trig Functions.
  650. * atexit: (libc)Cleanups on Exit.
  651. * atof: (libc)Parsing of Floats.
  652. * atoi: (libc)Parsing of Integers.
  653. * atol: (libc)Parsing of Integers.
  654. * atoll: (libc)Parsing of Integers.
  655. * backtrace: (libc)Backtraces.
  656. * backtrace_symbols: (libc)Backtraces.
  657. * backtrace_symbols_fd: (libc)Backtraces.
  658. * basename: (libc)Finding Tokens in a String.
  659. * basename: (libc)Finding Tokens in a String.
  660. * bcmp: (libc)String/Array Comparison.
  661. * bcopy: (libc)Copying Strings and Arrays.
  662. * bind: (libc)Setting Address.
  663. * bind_textdomain_codeset: (libc)Charset conversion in gettext.
  664. * bindtextdomain: (libc)Locating gettext catalog.
  665. * brk: (libc)Resizing the Data Segment.
  666. * bsearch: (libc)Array Search Function.
  667. * btowc: (libc)Converting a Character.
  668. * bzero: (libc)Copying Strings and Arrays.
  669. * cabs: (libc)Absolute Value.
  670. * cabsf: (libc)Absolute Value.
  671. * cabsfN: (libc)Absolute Value.
  672. * cabsfNx: (libc)Absolute Value.
  673. * cabsl: (libc)Absolute Value.
  674. * cacos: (libc)Inverse Trig Functions.
  675. * cacosf: (libc)Inverse Trig Functions.
  676. * cacosfN: (libc)Inverse Trig Functions.
  677. * cacosfNx: (libc)Inverse Trig Functions.
  678. * cacosh: (libc)Hyperbolic Functions.
  679. * cacoshf: (libc)Hyperbolic Functions.
  680. * cacoshfN: (libc)Hyperbolic Functions.
  681. * cacoshfNx: (libc)Hyperbolic Functions.
  682. * cacoshl: (libc)Hyperbolic Functions.
  683. * cacosl: (libc)Inverse Trig Functions.
  684. * call_once: (libc)Call Once.
  685. * calloc: (libc)Allocating Cleared Space.
  686. * canonicalize: (libc)FP Bit Twiddling.
  687. * canonicalize_file_name: (libc)Symbolic Links.
  688. * canonicalizef: (libc)FP Bit Twiddling.
  689. * canonicalizefN: (libc)FP Bit Twiddling.
  690. * canonicalizefNx: (libc)FP Bit Twiddling.
  691. * canonicalizel: (libc)FP Bit Twiddling.
  692. * carg: (libc)Operations on Complex.
  693. * cargf: (libc)Operations on Complex.
  694. * cargfN: (libc)Operations on Complex.
  695. * cargfNx: (libc)Operations on Complex.
  696. * cargl: (libc)Operations on Complex.
  697. * casin: (libc)Inverse Trig Functions.
  698. * casinf: (libc)Inverse Trig Functions.
  699. * casinfN: (libc)Inverse Trig Functions.
  700. * casinfNx: (libc)Inverse Trig Functions.
  701. * casinh: (libc)Hyperbolic Functions.
  702. * casinhf: (libc)Hyperbolic Functions.
  703. * casinhfN: (libc)Hyperbolic Functions.
  704. * casinhfNx: (libc)Hyperbolic Functions.
  705. * casinhl: (libc)Hyperbolic Functions.
  706. * casinl: (libc)Inverse Trig Functions.
  707. * catan: (libc)Inverse Trig Functions.
  708. * catanf: (libc)Inverse Trig Functions.
  709. * catanfN: (libc)Inverse Trig Functions.
  710. * catanfNx: (libc)Inverse Trig Functions.
  711. * catanh: (libc)Hyperbolic Functions.
  712. * catanhf: (libc)Hyperbolic Functions.
  713. * catanhfN: (libc)Hyperbolic Functions.
  714. * catanhfNx: (libc)Hyperbolic Functions.
  715. * catanhl: (libc)Hyperbolic Functions.
  716. * catanl: (libc)Inverse Trig Functions.
  717. * catclose: (libc)The catgets Functions.
  718. * catgets: (libc)The catgets Functions.
  719. * catopen: (libc)The catgets Functions.
  720. * cbrt: (libc)Exponents and Logarithms.
  721. * cbrtf: (libc)Exponents and Logarithms.
  722. * cbrtfN: (libc)Exponents and Logarithms.
  723. * cbrtfNx: (libc)Exponents and Logarithms.
  724. * cbrtl: (libc)Exponents and Logarithms.
  725. * ccos: (libc)Trig Functions.
  726. * ccosf: (libc)Trig Functions.
  727. * ccosfN: (libc)Trig Functions.
  728. * ccosfNx: (libc)Trig Functions.
  729. * ccosh: (libc)Hyperbolic Functions.
  730. * ccoshf: (libc)Hyperbolic Functions.
  731. * ccoshfN: (libc)Hyperbolic Functions.
  732. * ccoshfNx: (libc)Hyperbolic Functions.
  733. * ccoshl: (libc)Hyperbolic Functions.
  734. * ccosl: (libc)Trig Functions.
  735. * ceil: (libc)Rounding Functions.
  736. * ceilf: (libc)Rounding Functions.
  737. * ceilfN: (libc)Rounding Functions.
  738. * ceilfNx: (libc)Rounding Functions.
  739. * ceill: (libc)Rounding Functions.
  740. * cexp: (libc)Exponents and Logarithms.
  741. * cexpf: (libc)Exponents and Logarithms.
  742. * cexpfN: (libc)Exponents and Logarithms.
  743. * cexpfNx: (libc)Exponents and Logarithms.
  744. * cexpl: (libc)Exponents and Logarithms.
  745. * cfgetibaud: (libc)Line Speed.
  746. * cfgetispeed: (libc)Line Speed.
  747. * cfgetobaud: (libc)Line Speed.
  748. * cfgetospeed: (libc)Line Speed.
  749. * cfmakeraw: (libc)Noncanonical Input.
  750. * cfsetbaud: (libc)Line Speed.
  751. * cfsetibaud: (libc)Line Speed.
  752. * cfsetispeed: (libc)Line Speed.
  753. * cfsetobaud: (libc)Line Speed.
  754. * cfsetospeed: (libc)Line Speed.
  755. * cfsetspeed: (libc)Line Speed.
  756. * chdir: (libc)Working Directory.
  757. * chmod: (libc)Setting Permissions.
  758. * chown: (libc)File Owner.
  759. * cimag: (libc)Operations on Complex.
  760. * cimagf: (libc)Operations on Complex.
  761. * cimagfN: (libc)Operations on Complex.
  762. * cimagfNx: (libc)Operations on Complex.
  763. * cimagl: (libc)Operations on Complex.
  764. * clearenv: (libc)Environment Access.
  765. * clearerr: (libc)Error Recovery.
  766. * clearerr_unlocked: (libc)Error Recovery.
  767. * clock: (libc)CPU Time.
  768. * clock_getres: (libc)Getting the Time.
  769. * clock_gettime: (libc)Getting the Time.
  770. * clock_nanosleep: (libc)Sleeping.
  771. * clock_settime: (libc)Setting and Adjusting the Time.
  772. * clog10: (libc)Exponents and Logarithms.
  773. * clog10f: (libc)Exponents and Logarithms.
  774. * clog10fN: (libc)Exponents and Logarithms.
  775. * clog10fNx: (libc)Exponents and Logarithms.
  776. * clog10l: (libc)Exponents and Logarithms.
  777. * clog: (libc)Exponents and Logarithms.
  778. * clogf: (libc)Exponents and Logarithms.
  779. * clogfN: (libc)Exponents and Logarithms.
  780. * clogfNx: (libc)Exponents and Logarithms.
  781. * clogl: (libc)Exponents and Logarithms.
  782. * close: (libc)Opening and Closing Files.
  783. * close_range: (libc)Opening and Closing Files.
  784. * closedir: (libc)Reading/Closing Directory.
  785. * closefrom: (libc)Opening and Closing Files.
  786. * closelog: (libc)closelog.
  787. * cnd_broadcast: (libc)ISO C Condition Variables.
  788. * cnd_destroy: (libc)ISO C Condition Variables.
  789. * cnd_init: (libc)ISO C Condition Variables.
  790. * cnd_signal: (libc)ISO C Condition Variables.
  791. * cnd_timedwait: (libc)ISO C Condition Variables.
  792. * cnd_wait: (libc)ISO C Condition Variables.
  793. * compoundn: (libc)Exponents and Logarithms.
  794. * compoundnf: (libc)Exponents and Logarithms.
  795. * compoundnfN: (libc)Exponents and Logarithms.
  796. * compoundnfNx: (libc)Exponents and Logarithms.
  797. * compoundnl: (libc)Exponents and Logarithms.
  798. * confstr: (libc)String Parameters.
  799. * conj: (libc)Operations on Complex.
  800. * conjf: (libc)Operations on Complex.
  801. * conjfN: (libc)Operations on Complex.
  802. * conjfNx: (libc)Operations on Complex.
  803. * conjl: (libc)Operations on Complex.
  804. * connect: (libc)Connecting.
  805. * copy_file_range: (libc)Copying File Data.
  806. * copysign: (libc)FP Bit Twiddling.
  807. * copysignf: (libc)FP Bit Twiddling.
  808. * copysignfN: (libc)FP Bit Twiddling.
  809. * copysignfNx: (libc)FP Bit Twiddling.
  810. * copysignl: (libc)FP Bit Twiddling.
  811. * cos: (libc)Trig Functions.
  812. * cosf: (libc)Trig Functions.
  813. * cosfN: (libc)Trig Functions.
  814. * cosfNx: (libc)Trig Functions.
  815. * cosh: (libc)Hyperbolic Functions.
  816. * coshf: (libc)Hyperbolic Functions.
  817. * coshfN: (libc)Hyperbolic Functions.
  818. * coshfNx: (libc)Hyperbolic Functions.
  819. * coshl: (libc)Hyperbolic Functions.
  820. * cosl: (libc)Trig Functions.
  821. * cospi: (libc)Trig Functions.
  822. * cospif: (libc)Trig Functions.
  823. * cospifN: (libc)Trig Functions.
  824. * cospifNx: (libc)Trig Functions.
  825. * cospil: (libc)Trig Functions.
  826. * cpow: (libc)Exponents and Logarithms.
  827. * cpowf: (libc)Exponents and Logarithms.
  828. * cpowfN: (libc)Exponents and Logarithms.
  829. * cpowfNx: (libc)Exponents and Logarithms.
  830. * cpowl: (libc)Exponents and Logarithms.
  831. * cproj: (libc)Operations on Complex.
  832. * cprojf: (libc)Operations on Complex.
  833. * cprojfN: (libc)Operations on Complex.
  834. * cprojfNx: (libc)Operations on Complex.
  835. * cprojl: (libc)Operations on Complex.
  836. * creal: (libc)Operations on Complex.
  837. * crealf: (libc)Operations on Complex.
  838. * crealfN: (libc)Operations on Complex.
  839. * crealfNx: (libc)Operations on Complex.
  840. * creall: (libc)Operations on Complex.
  841. * creat64: (libc)Opening and Closing Files.
  842. * creat: (libc)Opening and Closing Files.
  843. * csin: (libc)Trig Functions.
  844. * csinf: (libc)Trig Functions.
  845. * csinfN: (libc)Trig Functions.
  846. * csinfNx: (libc)Trig Functions.
  847. * csinh: (libc)Hyperbolic Functions.
  848. * csinhf: (libc)Hyperbolic Functions.
  849. * csinhfN: (libc)Hyperbolic Functions.
  850. * csinhfNx: (libc)Hyperbolic Functions.
  851. * csinhl: (libc)Hyperbolic Functions.
  852. * csinl: (libc)Trig Functions.
  853. * csqrt: (libc)Exponents and Logarithms.
  854. * csqrtf: (libc)Exponents and Logarithms.
  855. * csqrtfN: (libc)Exponents and Logarithms.
  856. * csqrtfNx: (libc)Exponents and Logarithms.
  857. * csqrtl: (libc)Exponents and Logarithms.
  858. * ctan: (libc)Trig Functions.
  859. * ctanf: (libc)Trig Functions.
  860. * ctanfN: (libc)Trig Functions.
  861. * ctanfNx: (libc)Trig Functions.
  862. * ctanh: (libc)Hyperbolic Functions.
  863. * ctanhf: (libc)Hyperbolic Functions.
  864. * ctanhfN: (libc)Hyperbolic Functions.
  865. * ctanhfNx: (libc)Hyperbolic Functions.
  866. * ctanhl: (libc)Hyperbolic Functions.
  867. * ctanl: (libc)Trig Functions.
  868. * ctermid: (libc)Identifying the Terminal.
  869. * ctime: (libc)Formatting Calendar Time.
  870. * ctime_r: (libc)Formatting Calendar Time.
  871. * cuserid: (libc)Who Logged In.
  872. * daddl: (libc)Misc FP Arithmetic.
  873. * dcgettext: (libc)Translation with gettext.
  874. * dcngettext: (libc)Advanced gettext functions.
  875. * ddivl: (libc)Misc FP Arithmetic.
  876. * dfmal: (libc)Misc FP Arithmetic.
  877. * dgettext: (libc)Translation with gettext.
  878. * difftime: (libc)Calculating Elapsed Time.
  879. * dirfd: (libc)Opening a Directory.
  880. * dirname: (libc)Finding Tokens in a String.
  881. * div: (libc)Integer Division.
  882. * dlinfo: (libc)Dynamic Linker Introspection.
  883. * dmull: (libc)Misc FP Arithmetic.
  884. * dngettext: (libc)Advanced gettext functions.
  885. * dprintf: (libc)Formatted Output Functions.
  886. * drand48: (libc)SVID Random.
  887. * drand48_r: (libc)SVID Random.
  888. * drem: (libc)Remainder Functions.
  889. * dremf: (libc)Remainder Functions.
  890. * dreml: (libc)Remainder Functions.
  891. * dsqrtl: (libc)Misc FP Arithmetic.
  892. * dsubl: (libc)Misc FP Arithmetic.
  893. * dup2: (libc)Duplicating Descriptors.
  894. * dup3: (libc)Duplicating Descriptors.
  895. * dup: (libc)Duplicating Descriptors.
  896. * ecvt: (libc)System V Number Conversion.
  897. * ecvt_r: (libc)System V Number Conversion.
  898. * endfsent: (libc)fstab.
  899. * endgrent: (libc)Scanning All Groups.
  900. * endhostent: (libc)Host Names.
  901. * endmntent: (libc)mtab.
  902. * endnetent: (libc)Networks Database.
  903. * endnetgrent: (libc)Lookup Netgroup.
  904. * endprotoent: (libc)Protocols Database.
  905. * endpwent: (libc)Scanning All Users.
  906. * endservent: (libc)Services Database.
  907. * endutent: (libc)Manipulating the Database.
  908. * endutxent: (libc)XPG Functions.
  909. * envz_add: (libc)Envz Functions.
  910. * envz_entry: (libc)Envz Functions.
  911. * envz_get: (libc)Envz Functions.
  912. * envz_merge: (libc)Envz Functions.
  913. * envz_remove: (libc)Envz Functions.
  914. * envz_strip: (libc)Envz Functions.
  915. * epoll_create: (libc)Other Low-Level I/O APIs.
  916. * epoll_wait: (libc)Other Low-Level I/O APIs.
  917. * erand48: (libc)SVID Random.
  918. * erand48_r: (libc)SVID Random.
  919. * erf: (libc)Special Functions.
  920. * erfc: (libc)Special Functions.
  921. * erfcf: (libc)Special Functions.
  922. * erfcfN: (libc)Special Functions.
  923. * erfcfNx: (libc)Special Functions.
  924. * erfcl: (libc)Special Functions.
  925. * erff: (libc)Special Functions.
  926. * erffN: (libc)Special Functions.
  927. * erffNx: (libc)Special Functions.
  928. * erfl: (libc)Special Functions.
  929. * err: (libc)Error Messages.
  930. * errno: (libc)Checking for Errors.
  931. * error: (libc)Error Messages.
  932. * error_at_line: (libc)Error Messages.
  933. * errx: (libc)Error Messages.
  934. * execl: (libc)Executing a File.
  935. * execle: (libc)Executing a File.
  936. * execlp: (libc)Executing a File.
  937. * execv: (libc)Executing a File.
  938. * execve: (libc)Executing a File.
  939. * execvp: (libc)Executing a File.
  940. * exit: (libc)Normal Termination.
  941. * exp10: (libc)Exponents and Logarithms.
  942. * exp10f: (libc)Exponents and Logarithms.
  943. * exp10fN: (libc)Exponents and Logarithms.
  944. * exp10fNx: (libc)Exponents and Logarithms.
  945. * exp10l: (libc)Exponents and Logarithms.
  946. * exp10m1: (libc)Exponents and Logarithms.
  947. * exp10m1f: (libc)Exponents and Logarithms.
  948. * exp10m1fN: (libc)Exponents and Logarithms.
  949. * exp10m1fNx: (libc)Exponents and Logarithms.
  950. * exp10m1l: (libc)Exponents and Logarithms.
  951. * exp2: (libc)Exponents and Logarithms.
  952. * exp2f: (libc)Exponents and Logarithms.
  953. * exp2fN: (libc)Exponents and Logarithms.
  954. * exp2fNx: (libc)Exponents and Logarithms.
  955. * exp2l: (libc)Exponents and Logarithms.
  956. * exp2m1: (libc)Exponents and Logarithms.
  957. * exp2m1f: (libc)Exponents and Logarithms.
  958. * exp2m1fN: (libc)Exponents and Logarithms.
  959. * exp2m1fNx: (libc)Exponents and Logarithms.
  960. * exp2m1l: (libc)Exponents and Logarithms.
  961. * exp: (libc)Exponents and Logarithms.
  962. * expf: (libc)Exponents and Logarithms.
  963. * expfN: (libc)Exponents and Logarithms.
  964. * expfNx: (libc)Exponents and Logarithms.
  965. * expl: (libc)Exponents and Logarithms.
  966. * explicit_bzero: (libc)Erasing Sensitive Data.
  967. * expm1: (libc)Exponents and Logarithms.
  968. * expm1f: (libc)Exponents and Logarithms.
  969. * expm1fN: (libc)Exponents and Logarithms.
  970. * expm1fNx: (libc)Exponents and Logarithms.
  971. * expm1l: (libc)Exponents and Logarithms.
  972. * fMaddfN: (libc)Misc FP Arithmetic.
  973. * fMaddfNx: (libc)Misc FP Arithmetic.
  974. * fMdivfN: (libc)Misc FP Arithmetic.
  975. * fMdivfNx: (libc)Misc FP Arithmetic.
  976. * fMfmafN: (libc)Misc FP Arithmetic.
  977. * fMfmafNx: (libc)Misc FP Arithmetic.
  978. * fMmulfN: (libc)Misc FP Arithmetic.
  979. * fMmulfNx: (libc)Misc FP Arithmetic.
  980. * fMsqrtfN: (libc)Misc FP Arithmetic.
  981. * fMsqrtfNx: (libc)Misc FP Arithmetic.
  982. * fMsubfN: (libc)Misc FP Arithmetic.
  983. * fMsubfNx: (libc)Misc FP Arithmetic.
  984. * fMxaddfN: (libc)Misc FP Arithmetic.
  985. * fMxaddfNx: (libc)Misc FP Arithmetic.
  986. * fMxdivfN: (libc)Misc FP Arithmetic.
  987. * fMxdivfNx: (libc)Misc FP Arithmetic.
  988. * fMxfmafN: (libc)Misc FP Arithmetic.
  989. * fMxfmafNx: (libc)Misc FP Arithmetic.
  990. * fMxmulfN: (libc)Misc FP Arithmetic.
  991. * fMxmulfNx: (libc)Misc FP Arithmetic.
  992. * fMxsqrtfN: (libc)Misc FP Arithmetic.
  993. * fMxsqrtfNx: (libc)Misc FP Arithmetic.
  994. * fMxsubfN: (libc)Misc FP Arithmetic.
  995. * fMxsubfNx: (libc)Misc FP Arithmetic.
  996. * fabs: (libc)Absolute Value.
  997. * fabsf: (libc)Absolute Value.
  998. * fabsfN: (libc)Absolute Value.
  999. * fabsfNx: (libc)Absolute Value.
  1000. * fabsl: (libc)Absolute Value.
  1001. * faccessat: (libc)Testing File Access.
  1002. * fadd: (libc)Misc FP Arithmetic.
  1003. * faddl: (libc)Misc FP Arithmetic.
  1004. * fchdir: (libc)Working Directory.
  1005. * fchmod: (libc)Setting Permissions.
  1006. * fchown: (libc)File Owner.
  1007. * fclose: (libc)Closing Streams.
  1008. * fcloseall: (libc)Closing Streams.
  1009. * fcntl: (libc)Control Operations.
  1010. * fcvt: (libc)System V Number Conversion.
  1011. * fcvt_r: (libc)System V Number Conversion.
  1012. * fdatasync: (libc)Synchronizing I/O.
  1013. * fdim: (libc)Misc FP Arithmetic.
  1014. * fdimf: (libc)Misc FP Arithmetic.
  1015. * fdimfN: (libc)Misc FP Arithmetic.
  1016. * fdimfNx: (libc)Misc FP Arithmetic.
  1017. * fdiml: (libc)Misc FP Arithmetic.
  1018. * fdiv: (libc)Misc FP Arithmetic.
  1019. * fdivl: (libc)Misc FP Arithmetic.
  1020. * fdopen: (libc)Descriptors and Streams.
  1021. * fdopendir: (libc)Opening a Directory.
  1022. * feclearexcept: (libc)Status bit operations.
  1023. * fedisableexcept: (libc)Control Functions.
  1024. * feenableexcept: (libc)Control Functions.
  1025. * fegetenv: (libc)Control Functions.
  1026. * fegetexcept: (libc)Control Functions.
  1027. * fegetexceptflag: (libc)Status bit operations.
  1028. * fegetmode: (libc)Control Functions.
  1029. * fegetround: (libc)Rounding.
  1030. * feholdexcept: (libc)Control Functions.
  1031. * feof: (libc)EOF and Errors.
  1032. * feof_unlocked: (libc)EOF and Errors.
  1033. * feraiseexcept: (libc)Status bit operations.
  1034. * ferror: (libc)EOF and Errors.
  1035. * ferror_unlocked: (libc)EOF and Errors.
  1036. * fesetenv: (libc)Control Functions.
  1037. * fesetexcept: (libc)Status bit operations.
  1038. * fesetexceptflag: (libc)Status bit operations.
  1039. * fesetmode: (libc)Control Functions.
  1040. * fesetround: (libc)Rounding.
  1041. * fetestexcept: (libc)Status bit operations.
  1042. * fetestexceptflag: (libc)Status bit operations.
  1043. * feupdateenv: (libc)Control Functions.
  1044. * fexecve: (libc)Executing a File.
  1045. * fflush: (libc)Flushing Buffers.
  1046. * fflush_unlocked: (libc)Flushing Buffers.
  1047. * ffma: (libc)Misc FP Arithmetic.
  1048. * ffmal: (libc)Misc FP Arithmetic.
  1049. * fgetc: (libc)Character Input.
  1050. * fgetc_unlocked: (libc)Character Input.
  1051. * fgetgrent: (libc)Scanning All Groups.
  1052. * fgetgrent_r: (libc)Scanning All Groups.
  1053. * fgetpos64: (libc)Portable Positioning.
  1054. * fgetpos: (libc)Portable Positioning.
  1055. * fgetpwent: (libc)Scanning All Users.
  1056. * fgetpwent_r: (libc)Scanning All Users.
  1057. * fgets: (libc)Line Input.
  1058. * fgets_unlocked: (libc)Line Input.
  1059. * fgetwc: (libc)Character Input.
  1060. * fgetwc_unlocked: (libc)Character Input.
  1061. * fgetws: (libc)Line Input.
  1062. * fgetws_unlocked: (libc)Line Input.
  1063. * fileno: (libc)Descriptors and Streams.
  1064. * fileno_unlocked: (libc)Descriptors and Streams.
  1065. * finite: (libc)Floating Point Classes.
  1066. * finitef: (libc)Floating Point Classes.
  1067. * finitel: (libc)Floating Point Classes.
  1068. * flockfile: (libc)Streams and Threads.
  1069. * floor: (libc)Rounding Functions.
  1070. * floorf: (libc)Rounding Functions.
  1071. * floorfN: (libc)Rounding Functions.
  1072. * floorfNx: (libc)Rounding Functions.
  1073. * floorl: (libc)Rounding Functions.
  1074. * fma: (libc)Misc FP Arithmetic.
  1075. * fmaf: (libc)Misc FP Arithmetic.
  1076. * fmafN: (libc)Misc FP Arithmetic.
  1077. * fmafNx: (libc)Misc FP Arithmetic.
  1078. * fmal: (libc)Misc FP Arithmetic.
  1079. * fmax: (libc)Misc FP Arithmetic.
  1080. * fmaxf: (libc)Misc FP Arithmetic.
  1081. * fmaxfN: (libc)Misc FP Arithmetic.
  1082. * fmaxfNx: (libc)Misc FP Arithmetic.
  1083. * fmaximum: (libc)Misc FP Arithmetic.
  1084. * fmaximum_mag: (libc)Misc FP Arithmetic.
  1085. * fmaximum_mag_num: (libc)Misc FP Arithmetic.
  1086. * fmaximum_mag_numf: (libc)Misc FP Arithmetic.
  1087. * fmaximum_mag_numfN: (libc)Misc FP Arithmetic.
  1088. * fmaximum_mag_numfNx: (libc)Misc FP Arithmetic.
  1089. * fmaximum_mag_numl: (libc)Misc FP Arithmetic.
  1090. * fmaximum_magf: (libc)Misc FP Arithmetic.
  1091. * fmaximum_magfN: (libc)Misc FP Arithmetic.
  1092. * fmaximum_magfNx: (libc)Misc FP Arithmetic.
  1093. * fmaximum_magl: (libc)Misc FP Arithmetic.
  1094. * fmaximum_num: (libc)Misc FP Arithmetic.
  1095. * fmaximum_numf: (libc)Misc FP Arithmetic.
  1096. * fmaximum_numfN: (libc)Misc FP Arithmetic.
  1097. * fmaximum_numfNx: (libc)Misc FP Arithmetic.
  1098. * fmaximum_numl: (libc)Misc FP Arithmetic.
  1099. * fmaximumf: (libc)Misc FP Arithmetic.
  1100. * fmaximumfN: (libc)Misc FP Arithmetic.
  1101. * fmaximumfNx: (libc)Misc FP Arithmetic.
  1102. * fmaximuml: (libc)Misc FP Arithmetic.
  1103. * fmaxl: (libc)Misc FP Arithmetic.
  1104. * fmaxmag: (libc)Misc FP Arithmetic.
  1105. * fmaxmagf: (libc)Misc FP Arithmetic.
  1106. * fmaxmagfN: (libc)Misc FP Arithmetic.
  1107. * fmaxmagfNx: (libc)Misc FP Arithmetic.
  1108. * fmaxmagl: (libc)Misc FP Arithmetic.
  1109. * fmemopen: (libc)String Streams.
  1110. * fmin: (libc)Misc FP Arithmetic.
  1111. * fminf: (libc)Misc FP Arithmetic.
  1112. * fminfN: (libc)Misc FP Arithmetic.
  1113. * fminfNx: (libc)Misc FP Arithmetic.
  1114. * fminimum: (libc)Misc FP Arithmetic.
  1115. * fminimum_mag: (libc)Misc FP Arithmetic.
  1116. * fminimum_mag_num: (libc)Misc FP Arithmetic.
  1117. * fminimum_mag_numf: (libc)Misc FP Arithmetic.
  1118. * fminimum_mag_numfN: (libc)Misc FP Arithmetic.
  1119. * fminimum_mag_numfNx: (libc)Misc FP Arithmetic.
  1120. * fminimum_mag_numl: (libc)Misc FP Arithmetic.
  1121. * fminimum_magf: (libc)Misc FP Arithmetic.
  1122. * fminimum_magfN: (libc)Misc FP Arithmetic.
  1123. * fminimum_magfNx: (libc)Misc FP Arithmetic.
  1124. * fminimum_magl: (libc)Misc FP Arithmetic.
  1125. * fminimum_num: (libc)Misc FP Arithmetic.
  1126. * fminimum_numf: (libc)Misc FP Arithmetic.
  1127. * fminimum_numfN: (libc)Misc FP Arithmetic.
  1128. * fminimum_numfNx: (libc)Misc FP Arithmetic.
  1129. * fminimum_numl: (libc)Misc FP Arithmetic.
  1130. * fminimumf: (libc)Misc FP Arithmetic.
  1131. * fminimumfN: (libc)Misc FP Arithmetic.
  1132. * fminimumfNx: (libc)Misc FP Arithmetic.
  1133. * fminimuml: (libc)Misc FP Arithmetic.
  1134. * fminl: (libc)Misc FP Arithmetic.
  1135. * fminmag: (libc)Misc FP Arithmetic.
  1136. * fminmagf: (libc)Misc FP Arithmetic.
  1137. * fminmagfN: (libc)Misc FP Arithmetic.
  1138. * fminmagfNx: (libc)Misc FP Arithmetic.
  1139. * fminmagl: (libc)Misc FP Arithmetic.
  1140. * fmod: (libc)Remainder Functions.
  1141. * fmodf: (libc)Remainder Functions.
  1142. * fmodfN: (libc)Remainder Functions.
  1143. * fmodfNx: (libc)Remainder Functions.
  1144. * fmodl: (libc)Remainder Functions.
  1145. * fmtmsg: (libc)Printing Formatted Messages.
  1146. * fmul: (libc)Misc FP Arithmetic.
  1147. * fmull: (libc)Misc FP Arithmetic.
  1148. * fnmatch: (libc)Wildcard Matching.
  1149. * fopen64: (libc)Opening Streams.
  1150. * fopen: (libc)Opening Streams.
  1151. * fopencookie: (libc)Streams and Cookies.
  1152. * fork: (libc)Creating a Process.
  1153. * forkpty: (libc)Pseudo-Terminal Pairs.
  1154. * fpathconf: (libc)Pathconf.
  1155. * fpclassify: (libc)Floating Point Classes.
  1156. * fprintf: (libc)Formatted Output Functions.
  1157. * fputc: (libc)Simple Output.
  1158. * fputc_unlocked: (libc)Simple Output.
  1159. * fputs: (libc)Simple Output.
  1160. * fputs_unlocked: (libc)Simple Output.
  1161. * fputwc: (libc)Simple Output.
  1162. * fputwc_unlocked: (libc)Simple Output.
  1163. * fputws: (libc)Simple Output.
  1164. * fputws_unlocked: (libc)Simple Output.
  1165. * fread: (libc)Block Input/Output.
  1166. * fread_unlocked: (libc)Block Input/Output.
  1167. * free: (libc)Freeing after Malloc.
  1168. * free_aligned_sized: (libc)Freeing after Malloc.
  1169. * free_sized: (libc)Freeing after Malloc.
  1170. * freopen64: (libc)Opening Streams.
  1171. * freopen: (libc)Opening Streams.
  1172. * frexp: (libc)Normalization Functions.
  1173. * frexpf: (libc)Normalization Functions.
  1174. * frexpfN: (libc)Normalization Functions.
  1175. * frexpfNx: (libc)Normalization Functions.
  1176. * frexpl: (libc)Normalization Functions.
  1177. * fromfp: (libc)Rounding Functions.
  1178. * fromfpf: (libc)Rounding Functions.
  1179. * fromfpfN: (libc)Rounding Functions.
  1180. * fromfpfNx: (libc)Rounding Functions.
  1181. * fromfpl: (libc)Rounding Functions.
  1182. * fromfpx: (libc)Rounding Functions.
  1183. * fromfpxf: (libc)Rounding Functions.
  1184. * fromfpxfN: (libc)Rounding Functions.
  1185. * fromfpxfNx: (libc)Rounding Functions.
  1186. * fromfpxl: (libc)Rounding Functions.
  1187. * fscanf: (libc)Formatted Input Functions.
  1188. * fseek: (libc)File Positioning.
  1189. * fseeko64: (libc)File Positioning.
  1190. * fseeko: (libc)File Positioning.
  1191. * fsetpos64: (libc)Portable Positioning.
  1192. * fsetpos: (libc)Portable Positioning.
  1193. * fsqrt: (libc)Misc FP Arithmetic.
  1194. * fsqrtl: (libc)Misc FP Arithmetic.
  1195. * fstat64: (libc)Reading Attributes.
  1196. * fstat: (libc)Reading Attributes.
  1197. * fstatat64: (libc)Reading Attributes.
  1198. * fstatat: (libc)Reading Attributes.
  1199. * fsub: (libc)Misc FP Arithmetic.
  1200. * fsubl: (libc)Misc FP Arithmetic.
  1201. * fsync: (libc)Synchronizing I/O.
  1202. * ftell: (libc)File Positioning.
  1203. * ftello64: (libc)File Positioning.
  1204. * ftello: (libc)File Positioning.
  1205. * ftruncate64: (libc)File Size.
  1206. * ftruncate: (libc)File Size.
  1207. * ftrylockfile: (libc)Streams and Threads.
  1208. * ftw64: (libc)Working with Directory Trees.
  1209. * ftw: (libc)Working with Directory Trees.
  1210. * funlockfile: (libc)Streams and Threads.
  1211. * futimens: (libc)File Times.
  1212. * futimes: (libc)File Times.
  1213. * fwide: (libc)Streams and I18N.
  1214. * fwprintf: (libc)Formatted Output Functions.
  1215. * fwrite: (libc)Block Input/Output.
  1216. * fwrite_unlocked: (libc)Block Input/Output.
  1217. * fwscanf: (libc)Formatted Input Functions.
  1218. * gamma: (libc)Special Functions.
  1219. * gammaf: (libc)Special Functions.
  1220. * gammal: (libc)Special Functions.
  1221. * gcvt: (libc)System V Number Conversion.
  1222. * get_avphys_pages: (libc)Query Memory Parameters.
  1223. * get_current_dir_name: (libc)Working Directory.
  1224. * get_nprocs: (libc)Processor Resources.
  1225. * get_nprocs_conf: (libc)Processor Resources.
  1226. * get_phys_pages: (libc)Query Memory Parameters.
  1227. * getauxval: (libc)Auxiliary Vector.
  1228. * getc: (libc)Character Input.
  1229. * getc_unlocked: (libc)Character Input.
  1230. * getchar: (libc)Character Input.
  1231. * getchar_unlocked: (libc)Character Input.
  1232. * getcontext: (libc)System V contexts.
  1233. * getcpu: (libc)CPU Affinity.
  1234. * getcwd: (libc)Working Directory.
  1235. * getdate: (libc)General Time String Parsing.
  1236. * getdate_r: (libc)General Time String Parsing.
  1237. * getdelim: (libc)Line Input.
  1238. * getdents64: (libc)Low-level Directory Access.
  1239. * getdomainname: (libc)Host Identification.
  1240. * getegid: (libc)Reading Persona.
  1241. * getentropy: (libc)Unpredictable Bytes.
  1242. * getenv: (libc)Environment Access.
  1243. * geteuid: (libc)Reading Persona.
  1244. * getfsent: (libc)fstab.
  1245. * getfsfile: (libc)fstab.
  1246. * getfsspec: (libc)fstab.
  1247. * getgid: (libc)Reading Persona.
  1248. * getgrent: (libc)Scanning All Groups.
  1249. * getgrent_r: (libc)Scanning All Groups.
  1250. * getgrgid: (libc)Lookup Group.
  1251. * getgrgid_r: (libc)Lookup Group.
  1252. * getgrnam: (libc)Lookup Group.
  1253. * getgrnam_r: (libc)Lookup Group.
  1254. * getgrouplist: (libc)Setting Groups.
  1255. * getgroups: (libc)Reading Persona.
  1256. * gethostbyaddr: (libc)Host Names.
  1257. * gethostbyaddr_r: (libc)Host Names.
  1258. * gethostbyname2: (libc)Host Names.
  1259. * gethostbyname2_r: (libc)Host Names.
  1260. * gethostbyname: (libc)Host Names.
  1261. * gethostbyname_r: (libc)Host Names.
  1262. * gethostent: (libc)Host Names.
  1263. * gethostid: (libc)Host Identification.
  1264. * gethostname: (libc)Host Identification.
  1265. * getitimer: (libc)Setting an Alarm.
  1266. * getline: (libc)Line Input.
  1267. * getloadavg: (libc)Processor Resources.
  1268. * getlogin: (libc)Who Logged In.
  1269. * getmntent: (libc)mtab.
  1270. * getmntent_r: (libc)mtab.
  1271. * getnetbyaddr: (libc)Networks Database.
  1272. * getnetbyname: (libc)Networks Database.
  1273. * getnetent: (libc)Networks Database.
  1274. * getnetgrent: (libc)Lookup Netgroup.
  1275. * getnetgrent_r: (libc)Lookup Netgroup.
  1276. * getopt: (libc)Using Getopt.
  1277. * getopt_long: (libc)Getopt Long Options.
  1278. * getopt_long_only: (libc)Getopt Long Options.
  1279. * getpagesize: (libc)Query Memory Parameters.
  1280. * getpass: (libc)getpass.
  1281. * getpayload: (libc)FP Bit Twiddling.
  1282. * getpayloadf: (libc)FP Bit Twiddling.
  1283. * getpayloadfN: (libc)FP Bit Twiddling.
  1284. * getpayloadfNx: (libc)FP Bit Twiddling.
  1285. * getpayloadl: (libc)FP Bit Twiddling.
  1286. * getpeername: (libc)Who is Connected.
  1287. * getpgid: (libc)Process Group Functions.
  1288. * getpgrp: (libc)Process Group Functions.
  1289. * getpid: (libc)Process Identification.
  1290. * getppid: (libc)Process Identification.
  1291. * getpriority: (libc)Traditional Scheduling Functions.
  1292. * getprotobyname: (libc)Protocols Database.
  1293. * getprotobynumber: (libc)Protocols Database.
  1294. * getprotoent: (libc)Protocols Database.
  1295. * getpt: (libc)Allocation.
  1296. * getpwent: (libc)Scanning All Users.
  1297. * getpwent_r: (libc)Scanning All Users.
  1298. * getpwnam: (libc)Lookup User.
  1299. * getpwnam_r: (libc)Lookup User.
  1300. * getpwuid: (libc)Lookup User.
  1301. * getpwuid_r: (libc)Lookup User.
  1302. * getrandom: (libc)Unpredictable Bytes.
  1303. * getrlimit64: (libc)Limits on Resources.
  1304. * getrlimit: (libc)Limits on Resources.
  1305. * getrusage: (libc)Resource Usage.
  1306. * gets: (libc)Line Input.
  1307. * getservbyname: (libc)Services Database.
  1308. * getservbyport: (libc)Services Database.
  1309. * getservent: (libc)Services Database.
  1310. * getsid: (libc)Process Group Functions.
  1311. * getsockname: (libc)Reading Address.
  1312. * getsockopt: (libc)Socket Option Functions.
  1313. * getsubopt: (libc)Suboptions.
  1314. * gettext: (libc)Translation with gettext.
  1315. * gettid: (libc)Process Identification.
  1316. * gettimeofday: (libc)Getting the Time.
  1317. * getuid: (libc)Reading Persona.
  1318. * getumask: (libc)Setting Permissions.
  1319. * getutent: (libc)Manipulating the Database.
  1320. * getutent_r: (libc)Manipulating the Database.
  1321. * getutid: (libc)Manipulating the Database.
  1322. * getutid_r: (libc)Manipulating the Database.
  1323. * getutline: (libc)Manipulating the Database.
  1324. * getutline_r: (libc)Manipulating the Database.
  1325. * getutmp: (libc)XPG Functions.
  1326. * getutmpx: (libc)XPG Functions.
  1327. * getutxent: (libc)XPG Functions.
  1328. * getutxid: (libc)XPG Functions.
  1329. * getutxline: (libc)XPG Functions.
  1330. * getw: (libc)Character Input.
  1331. * getwc: (libc)Character Input.
  1332. * getwc_unlocked: (libc)Character Input.
  1333. * getwchar: (libc)Character Input.
  1334. * getwchar_unlocked: (libc)Character Input.
  1335. * getwd: (libc)Working Directory.
  1336. * glob64: (libc)Calling Glob.
  1337. * glob: (libc)Calling Glob.
  1338. * globfree64: (libc)More Flags for Globbing.
  1339. * globfree: (libc)More Flags for Globbing.
  1340. * gmtime: (libc)Broken-down Time.
  1341. * gmtime_r: (libc)Broken-down Time.
  1342. * grantpt: (libc)Allocation.
  1343. * gsignal: (libc)Signaling Yourself.
  1344. * gtty: (libc)BSD Terminal Modes.
  1345. * hasmntopt: (libc)mtab.
  1346. * hcreate: (libc)Hash Search Function.
  1347. * hcreate_r: (libc)Hash Search Function.
  1348. * hdestroy: (libc)Hash Search Function.
  1349. * hdestroy_r: (libc)Hash Search Function.
  1350. * hsearch: (libc)Hash Search Function.
  1351. * hsearch_r: (libc)Hash Search Function.
  1352. * htonl: (libc)Byte Order.
  1353. * htons: (libc)Byte Order.
  1354. * hypot: (libc)Exponents and Logarithms.
  1355. * hypotf: (libc)Exponents and Logarithms.
  1356. * hypotfN: (libc)Exponents and Logarithms.
  1357. * hypotfNx: (libc)Exponents and Logarithms.
  1358. * hypotl: (libc)Exponents and Logarithms.
  1359. * iconv: (libc)Generic Conversion Interface.
  1360. * iconv_close: (libc)Generic Conversion Interface.
  1361. * iconv_open: (libc)Generic Conversion Interface.
  1362. * if_freenameindex: (libc)Interface Naming.
  1363. * if_indextoname: (libc)Interface Naming.
  1364. * if_nameindex: (libc)Interface Naming.
  1365. * if_nametoindex: (libc)Interface Naming.
  1366. * ilogb: (libc)Exponents and Logarithms.
  1367. * ilogbf: (libc)Exponents and Logarithms.
  1368. * ilogbfN: (libc)Exponents and Logarithms.
  1369. * ilogbfNx: (libc)Exponents and Logarithms.
  1370. * ilogbl: (libc)Exponents and Logarithms.
  1371. * imaxabs: (libc)Absolute Value.
  1372. * imaxdiv: (libc)Integer Division.
  1373. * in6addr_any: (libc)Host Address Data Type.
  1374. * in6addr_loopback: (libc)Host Address Data Type.
  1375. * index: (libc)Search Functions.
  1376. * inet_addr: (libc)Host Address Functions.
  1377. * inet_aton: (libc)Host Address Functions.
  1378. * inet_lnaof: (libc)Host Address Functions.
  1379. * inet_makeaddr: (libc)Host Address Functions.
  1380. * inet_netof: (libc)Host Address Functions.
  1381. * inet_network: (libc)Host Address Functions.
  1382. * inet_ntoa: (libc)Host Address Functions.
  1383. * inet_ntop: (libc)Host Address Functions.
  1384. * inet_pton: (libc)Host Address Functions.
  1385. * initgroups: (libc)Setting Groups.
  1386. * initstate: (libc)BSD Random.
  1387. * initstate_r: (libc)BSD Random.
  1388. * innetgr: (libc)Netgroup Membership.
  1389. * ioctl: (libc)IOCTLs.
  1390. * isalnum: (libc)Classification of Characters.
  1391. * isalpha: (libc)Classification of Characters.
  1392. * isascii: (libc)Classification of Characters.
  1393. * isatty: (libc)Is It a Terminal.
  1394. * isblank: (libc)Classification of Characters.
  1395. * iscanonical: (libc)Floating Point Classes.
  1396. * iscntrl: (libc)Classification of Characters.
  1397. * isdigit: (libc)Classification of Characters.
  1398. * iseqsig: (libc)FP Comparison Functions.
  1399. * isfinite: (libc)Floating Point Classes.
  1400. * isgraph: (libc)Classification of Characters.
  1401. * isgreater: (libc)FP Comparison Functions.
  1402. * isgreaterequal: (libc)FP Comparison Functions.
  1403. * isinf: (libc)Floating Point Classes.
  1404. * isinff: (libc)Floating Point Classes.
  1405. * isinfl: (libc)Floating Point Classes.
  1406. * isless: (libc)FP Comparison Functions.
  1407. * islessequal: (libc)FP Comparison Functions.
  1408. * islessgreater: (libc)FP Comparison Functions.
  1409. * islower: (libc)Classification of Characters.
  1410. * isnan: (libc)Floating Point Classes.
  1411. * isnan: (libc)Floating Point Classes.
  1412. * isnanf: (libc)Floating Point Classes.
  1413. * isnanl: (libc)Floating Point Classes.
  1414. * isnormal: (libc)Floating Point Classes.
  1415. * isprint: (libc)Classification of Characters.
  1416. * ispunct: (libc)Classification of Characters.
  1417. * issignaling: (libc)Floating Point Classes.
  1418. * isspace: (libc)Classification of Characters.
  1419. * issubnormal: (libc)Floating Point Classes.
  1420. * isunordered: (libc)FP Comparison Functions.
  1421. * isupper: (libc)Classification of Characters.
  1422. * iswalnum: (libc)Classification of Wide Characters.
  1423. * iswalpha: (libc)Classification of Wide Characters.
  1424. * iswblank: (libc)Classification of Wide Characters.
  1425. * iswcntrl: (libc)Classification of Wide Characters.
  1426. * iswctype: (libc)Classification of Wide Characters.
  1427. * iswdigit: (libc)Classification of Wide Characters.
  1428. * iswgraph: (libc)Classification of Wide Characters.
  1429. * iswlower: (libc)Classification of Wide Characters.
  1430. * iswprint: (libc)Classification of Wide Characters.
  1431. * iswpunct: (libc)Classification of Wide Characters.
  1432. * iswspace: (libc)Classification of Wide Characters.
  1433. * iswupper: (libc)Classification of Wide Characters.
  1434. * iswxdigit: (libc)Classification of Wide Characters.
  1435. * isxdigit: (libc)Classification of Characters.
  1436. * iszero: (libc)Floating Point Classes.
  1437. * j0: (libc)Special Functions.
  1438. * j0f: (libc)Special Functions.
  1439. * j0fN: (libc)Special Functions.
  1440. * j0fNx: (libc)Special Functions.
  1441. * j0l: (libc)Special Functions.
  1442. * j1: (libc)Special Functions.
  1443. * j1f: (libc)Special Functions.
  1444. * j1fN: (libc)Special Functions.
  1445. * j1fNx: (libc)Special Functions.
  1446. * j1l: (libc)Special Functions.
  1447. * jn: (libc)Special Functions.
  1448. * jnf: (libc)Special Functions.
  1449. * jnfN: (libc)Special Functions.
  1450. * jnfNx: (libc)Special Functions.
  1451. * jnl: (libc)Special Functions.
  1452. * jrand48: (libc)SVID Random.
  1453. * jrand48_r: (libc)SVID Random.
  1454. * kill: (libc)Signaling Another Process.
  1455. * killpg: (libc)Signaling Another Process.
  1456. * l64a: (libc)Encode Binary Data.
  1457. * labs: (libc)Absolute Value.
  1458. * lcong48: (libc)SVID Random.
  1459. * lcong48_r: (libc)SVID Random.
  1460. * ldexp: (libc)Normalization Functions.
  1461. * ldexpf: (libc)Normalization Functions.
  1462. * ldexpfN: (libc)Normalization Functions.
  1463. * ldexpfNx: (libc)Normalization Functions.
  1464. * ldexpl: (libc)Normalization Functions.
  1465. * ldiv: (libc)Integer Division.
  1466. * lfind: (libc)Array Search Function.
  1467. * lgamma: (libc)Special Functions.
  1468. * lgamma_r: (libc)Special Functions.
  1469. * lgammaf: (libc)Special Functions.
  1470. * lgammafN: (libc)Special Functions.
  1471. * lgammafN_r: (libc)Special Functions.
  1472. * lgammafNx: (libc)Special Functions.
  1473. * lgammafNx_r: (libc)Special Functions.
  1474. * lgammaf_r: (libc)Special Functions.
  1475. * lgammal: (libc)Special Functions.
  1476. * lgammal_r: (libc)Special Functions.
  1477. * link: (libc)Hard Links.
  1478. * linkat: (libc)Hard Links.
  1479. * lio_listio64: (libc)Asynchronous Reads/Writes.
  1480. * lio_listio: (libc)Asynchronous Reads/Writes.
  1481. * listen: (libc)Listening.
  1482. * llabs: (libc)Absolute Value.
  1483. * lldiv: (libc)Integer Division.
  1484. * llogb: (libc)Exponents and Logarithms.
  1485. * llogbf: (libc)Exponents and Logarithms.
  1486. * llogbfN: (libc)Exponents and Logarithms.
  1487. * llogbfNx: (libc)Exponents and Logarithms.
  1488. * llogbl: (libc)Exponents and Logarithms.
  1489. * llrint: (libc)Rounding Functions.
  1490. * llrintf: (libc)Rounding Functions.
  1491. * llrintfN: (libc)Rounding Functions.
  1492. * llrintfNx: (libc)Rounding Functions.
  1493. * llrintl: (libc)Rounding Functions.
  1494. * llround: (libc)Rounding Functions.
  1495. * llroundf: (libc)Rounding Functions.
  1496. * llroundfN: (libc)Rounding Functions.
  1497. * llroundfNx: (libc)Rounding Functions.
  1498. * llroundl: (libc)Rounding Functions.
  1499. * localeconv: (libc)The Lame Way to Locale Data.
  1500. * localtime: (libc)Broken-down Time.
  1501. * localtime_r: (libc)Broken-down Time.
  1502. * log10: (libc)Exponents and Logarithms.
  1503. * log10f: (libc)Exponents and Logarithms.
  1504. * log10fN: (libc)Exponents and Logarithms.
  1505. * log10fNx: (libc)Exponents and Logarithms.
  1506. * log10l: (libc)Exponents and Logarithms.
  1507. * log10p1: (libc)Exponents and Logarithms.
  1508. * log10p1f: (libc)Exponents and Logarithms.
  1509. * log10p1fN: (libc)Exponents and Logarithms.
  1510. * log10p1fNx: (libc)Exponents and Logarithms.
  1511. * log10p1l: (libc)Exponents and Logarithms.
  1512. * log1p: (libc)Exponents and Logarithms.
  1513. * log1pf: (libc)Exponents and Logarithms.
  1514. * log1pfN: (libc)Exponents and Logarithms.
  1515. * log1pfNx: (libc)Exponents and Logarithms.
  1516. * log1pl: (libc)Exponents and Logarithms.
  1517. * log2: (libc)Exponents and Logarithms.
  1518. * log2f: (libc)Exponents and Logarithms.
  1519. * log2fN: (libc)Exponents and Logarithms.
  1520. * log2fNx: (libc)Exponents and Logarithms.
  1521. * log2l: (libc)Exponents and Logarithms.
  1522. * log2p1: (libc)Exponents and Logarithms.
  1523. * log2p1f: (libc)Exponents and Logarithms.
  1524. * log2p1fN: (libc)Exponents and Logarithms.
  1525. * log2p1fNx: (libc)Exponents and Logarithms.
  1526. * log2p1l: (libc)Exponents and Logarithms.
  1527. * log: (libc)Exponents and Logarithms.
  1528. * logb: (libc)Exponents and Logarithms.
  1529. * logbf: (libc)Exponents and Logarithms.
  1530. * logbfN: (libc)Exponents and Logarithms.
  1531. * logbfNx: (libc)Exponents and Logarithms.
  1532. * logbl: (libc)Exponents and Logarithms.
  1533. * logf: (libc)Exponents and Logarithms.
  1534. * logfN: (libc)Exponents and Logarithms.
  1535. * logfNx: (libc)Exponents and Logarithms.
  1536. * login: (libc)Logging In and Out.
  1537. * login_tty: (libc)Logging In and Out.
  1538. * logl: (libc)Exponents and Logarithms.
  1539. * logout: (libc)Logging In and Out.
  1540. * logp1: (libc)Exponents and Logarithms.
  1541. * logp1f: (libc)Exponents and Logarithms.
  1542. * logp1fN: (libc)Exponents and Logarithms.
  1543. * logp1fNx: (libc)Exponents and Logarithms.
  1544. * logp1l: (libc)Exponents and Logarithms.
  1545. * logwtmp: (libc)Logging In and Out.
  1546. * longjmp: (libc)Non-Local Details.
  1547. * lrand48: (libc)SVID Random.
  1548. * lrand48_r: (libc)SVID Random.
  1549. * lrint: (libc)Rounding Functions.
  1550. * lrintf: (libc)Rounding Functions.
  1551. * lrintfN: (libc)Rounding Functions.
  1552. * lrintfNx: (libc)Rounding Functions.
  1553. * lrintl: (libc)Rounding Functions.
  1554. * lround: (libc)Rounding Functions.
  1555. * lroundf: (libc)Rounding Functions.
  1556. * lroundfN: (libc)Rounding Functions.
  1557. * lroundfNx: (libc)Rounding Functions.
  1558. * lroundl: (libc)Rounding Functions.
  1559. * lsearch: (libc)Array Search Function.
  1560. * lseek64: (libc)File Position Primitive.
  1561. * lseek: (libc)File Position Primitive.
  1562. * lstat64: (libc)Reading Attributes.
  1563. * lstat: (libc)Reading Attributes.
  1564. * lutimes: (libc)File Times.
  1565. * madvise: (libc)Memory-mapped I/O.
  1566. * makecontext: (libc)System V contexts.
  1567. * mallinfo2: (libc)Statistics of Malloc.
  1568. * malloc: (libc)Basic Allocation.
  1569. * mallopt: (libc)Malloc Tunable Parameters.
  1570. * mblen: (libc)Non-reentrant Character Conversion.
  1571. * mbrlen: (libc)Converting a Character.
  1572. * mbrtowc: (libc)Converting a Character.
  1573. * mbsinit: (libc)Keeping the state.
  1574. * mbsnrtowcs: (libc)Converting Strings.
  1575. * mbsrtowcs: (libc)Converting Strings.
  1576. * mbstowcs: (libc)Non-reentrant String Conversion.
  1577. * mbtowc: (libc)Non-reentrant Character Conversion.
  1578. * mcheck: (libc)Heap Consistency Checking.
  1579. * memalign: (libc)Aligned Memory Blocks.
  1580. * memalignment: (libc)Aligned Memory Blocks.
  1581. * memccpy: (libc)Copying Strings and Arrays.
  1582. * memchr: (libc)Search Functions.
  1583. * memcmp: (libc)String/Array Comparison.
  1584. * memcpy: (libc)Copying Strings and Arrays.
  1585. * memfd_create: (libc)Memory-mapped I/O.
  1586. * memfrob: (libc)Obfuscating Data.
  1587. * memmem: (libc)Search Functions.
  1588. * memmove: (libc)Copying Strings and Arrays.
  1589. * mempcpy: (libc)Copying Strings and Arrays.
  1590. * memrchr: (libc)Search Functions.
  1591. * memset: (libc)Copying Strings and Arrays.
  1592. * memset_explicit: (libc)Erasing Sensitive Data.
  1593. * mkdir: (libc)Creating Directories.
  1594. * mkdirat: (libc)Creating Directories.
  1595. * mkdtemp: (libc)Temporary Files.
  1596. * mkfifo: (libc)FIFO Special Files.
  1597. * mknod: (libc)Making Special Files.
  1598. * mkstemp: (libc)Temporary Files.
  1599. * mktemp: (libc)Temporary Files.
  1600. * mktime: (libc)Broken-down Time.
  1601. * mlock2: (libc)Page Lock Functions.
  1602. * mlock: (libc)Page Lock Functions.
  1603. * mlockall: (libc)Page Lock Functions.
  1604. * mmap64: (libc)Memory-mapped I/O.
  1605. * mmap: (libc)Memory-mapped I/O.
  1606. * modf: (libc)Rounding Functions.
  1607. * modff: (libc)Rounding Functions.
  1608. * modffN: (libc)Rounding Functions.
  1609. * modffNx: (libc)Rounding Functions.
  1610. * modfl: (libc)Rounding Functions.
  1611. * mount: (libc)Mount-Unmount-Remount.
  1612. * mprobe: (libc)Heap Consistency Checking.
  1613. * mprotect: (libc)Memory Protection.
  1614. * mrand48: (libc)SVID Random.
  1615. * mrand48_r: (libc)SVID Random.
  1616. * mremap: (libc)Memory-mapped I/O.
  1617. * mseal: (libc)Memory Protection.
  1618. * msync: (libc)Memory-mapped I/O.
  1619. * mtrace: (libc)Tracing malloc.
  1620. * mtx_destroy: (libc)ISO C Mutexes.
  1621. * mtx_init: (libc)ISO C Mutexes.
  1622. * mtx_lock: (libc)ISO C Mutexes.
  1623. * mtx_timedlock: (libc)ISO C Mutexes.
  1624. * mtx_trylock: (libc)ISO C Mutexes.
  1625. * mtx_unlock: (libc)ISO C Mutexes.
  1626. * munlock: (libc)Page Lock Functions.
  1627. * munlockall: (libc)Page Lock Functions.
  1628. * munmap: (libc)Memory-mapped I/O.
  1629. * muntrace: (libc)Tracing malloc.
  1630. * nan: (libc)FP Bit Twiddling.
  1631. * nanf: (libc)FP Bit Twiddling.
  1632. * nanfN: (libc)FP Bit Twiddling.
  1633. * nanfNx: (libc)FP Bit Twiddling.
  1634. * nanl: (libc)FP Bit Twiddling.
  1635. * nanosleep: (libc)Sleeping.
  1636. * nearbyint: (libc)Rounding Functions.
  1637. * nearbyintf: (libc)Rounding Functions.
  1638. * nearbyintfN: (libc)Rounding Functions.
  1639. * nearbyintfNx: (libc)Rounding Functions.
  1640. * nearbyintl: (libc)Rounding Functions.
  1641. * nextafter: (libc)FP Bit Twiddling.
  1642. * nextafterf: (libc)FP Bit Twiddling.
  1643. * nextafterfN: (libc)FP Bit Twiddling.
  1644. * nextafterfNx: (libc)FP Bit Twiddling.
  1645. * nextafterl: (libc)FP Bit Twiddling.
  1646. * nextdown: (libc)FP Bit Twiddling.
  1647. * nextdownf: (libc)FP Bit Twiddling.
  1648. * nextdownfN: (libc)FP Bit Twiddling.
  1649. * nextdownfNx: (libc)FP Bit Twiddling.
  1650. * nextdownl: (libc)FP Bit Twiddling.
  1651. * nexttoward: (libc)FP Bit Twiddling.
  1652. * nexttowardf: (libc)FP Bit Twiddling.
  1653. * nexttowardl: (libc)FP Bit Twiddling.
  1654. * nextup: (libc)FP Bit Twiddling.
  1655. * nextupf: (libc)FP Bit Twiddling.
  1656. * nextupfN: (libc)FP Bit Twiddling.
  1657. * nextupfNx: (libc)FP Bit Twiddling.
  1658. * nextupl: (libc)FP Bit Twiddling.
  1659. * nftw64: (libc)Working with Directory Trees.
  1660. * nftw: (libc)Working with Directory Trees.
  1661. * ngettext: (libc)Advanced gettext functions.
  1662. * nice: (libc)Traditional Scheduling Functions.
  1663. * nl_langinfo: (libc)The Elegant and Fast Way.
  1664. * nrand48: (libc)SVID Random.
  1665. * nrand48_r: (libc)SVID Random.
  1666. * ntohl: (libc)Byte Order.
  1667. * ntohs: (libc)Byte Order.
  1668. * ntp_adjtime: (libc)Setting and Adjusting the Time.
  1669. * ntp_gettime: (libc)Setting and Adjusting the Time.
  1670. * obstack_1grow: (libc)Growing Objects.
  1671. * obstack_1grow_fast: (libc)Extra Fast Growing.
  1672. * obstack_alignment_mask: (libc)Obstacks Data Alignment.
  1673. * obstack_alloc: (libc)Allocation in an Obstack.
  1674. * obstack_base: (libc)Status of an Obstack.
  1675. * obstack_blank: (libc)Growing Objects.
  1676. * obstack_blank_fast: (libc)Extra Fast Growing.
  1677. * obstack_chunk_size: (libc)Obstack Chunks.
  1678. * obstack_copy0: (libc)Allocation in an Obstack.
  1679. * obstack_copy: (libc)Allocation in an Obstack.
  1680. * obstack_finish: (libc)Growing Objects.
  1681. * obstack_free: (libc)Freeing Obstack Objects.
  1682. * obstack_grow0: (libc)Growing Objects.
  1683. * obstack_grow: (libc)Growing Objects.
  1684. * obstack_init: (libc)Preparing for Obstacks.
  1685. * obstack_int_grow: (libc)Growing Objects.
  1686. * obstack_int_grow_fast: (libc)Extra Fast Growing.
  1687. * obstack_next_free: (libc)Status of an Obstack.
  1688. * obstack_object_size: (libc)Growing Objects.
  1689. * obstack_object_size: (libc)Status of an Obstack.
  1690. * obstack_printf: (libc)Dynamic Output.
  1691. * obstack_ptr_grow: (libc)Growing Objects.
  1692. * obstack_ptr_grow_fast: (libc)Extra Fast Growing.
  1693. * obstack_room: (libc)Extra Fast Growing.
  1694. * obstack_vprintf: (libc)Variable Arguments Output.
  1695. * offsetof: (libc)Structure Measurement.
  1696. * on_exit: (libc)Cleanups on Exit.
  1697. * open64: (libc)Opening and Closing Files.
  1698. * open: (libc)Opening and Closing Files.
  1699. * open_memstream: (libc)String Streams.
  1700. * openat2: (libc)Opening and Closing Files.
  1701. * openat64: (libc)Opening and Closing Files.
  1702. * openat: (libc)Opening and Closing Files.
  1703. * opendir: (libc)Opening a Directory.
  1704. * openlog: (libc)openlog.
  1705. * openpty: (libc)Pseudo-Terminal Pairs.
  1706. * parse_printf_format: (libc)Parsing a Template String.
  1707. * pathconf: (libc)Pathconf.
  1708. * pause: (libc)Using Pause.
  1709. * pclose: (libc)Pipe to a Subprocess.
  1710. * perror: (libc)Error Messages.
  1711. * pidfd_getpid: (libc)Querying a Process.
  1712. * pipe: (libc)Creating a Pipe.
  1713. * pkey_alloc: (libc)Memory Protection.
  1714. * pkey_free: (libc)Memory Protection.
  1715. * pkey_get: (libc)Memory Protection.
  1716. * pkey_mprotect: (libc)Memory Protection.
  1717. * pkey_set: (libc)Memory Protection.
  1718. * poll: (libc)Other Low-Level I/O APIs.
  1719. * popen: (libc)Pipe to a Subprocess.
  1720. * posix_fallocate64: (libc)Storage Allocation.
  1721. * posix_fallocate: (libc)Storage Allocation.
  1722. * posix_memalign: (libc)Aligned Memory Blocks.
  1723. * posix_openpt: (libc)Allocation.
  1724. * pow: (libc)Exponents and Logarithms.
  1725. * powf: (libc)Exponents and Logarithms.
  1726. * powfN: (libc)Exponents and Logarithms.
  1727. * powfNx: (libc)Exponents and Logarithms.
  1728. * powl: (libc)Exponents and Logarithms.
  1729. * pown: (libc)Exponents and Logarithms.
  1730. * pownf: (libc)Exponents and Logarithms.
  1731. * pownfN: (libc)Exponents and Logarithms.
  1732. * pownfNx: (libc)Exponents and Logarithms.
  1733. * pownl: (libc)Exponents and Logarithms.
  1734. * powr: (libc)Exponents and Logarithms.
  1735. * powrf: (libc)Exponents and Logarithms.
  1736. * powrfN: (libc)Exponents and Logarithms.
  1737. * powrfNx: (libc)Exponents and Logarithms.
  1738. * powrl: (libc)Exponents and Logarithms.
  1739. * pread64: (libc)I/O Primitives.
  1740. * pread: (libc)I/O Primitives.
  1741. * preadv2: (libc)Scatter-Gather.
  1742. * preadv64: (libc)Scatter-Gather.
  1743. * preadv64v2: (libc)Scatter-Gather.
  1744. * preadv: (libc)Scatter-Gather.
  1745. * printf: (libc)Formatted Output Functions.
  1746. * printf_size: (libc)Predefined Printf Handlers.
  1747. * printf_size_info: (libc)Predefined Printf Handlers.
  1748. * psignal: (libc)Signal Messages.
  1749. * pthread_attr_destroy: (libc)Creating and Destroying Threads.
  1750. * pthread_attr_getaffinity_np: (libc)Thread CPU Affinity.
  1751. * pthread_attr_getdetachstate: (libc)Creating and Destroying Threads.
  1752. * pthread_attr_getsigmask_np: (libc)Initial Thread Signal Mask.
  1753. * pthread_attr_init: (libc)Creating and Destroying Threads.
  1754. * pthread_attr_setaffinity_np: (libc)Thread CPU Affinity.
  1755. * pthread_attr_setdetachstate: (libc)Creating and Destroying Threads.
  1756. * pthread_attr_setsigmask_np: (libc)Initial Thread Signal Mask.
  1757. * pthread_barrier_destroy: (libc)POSIX Barriers.
  1758. * pthread_barrier_init: (libc)POSIX Barriers.
  1759. * pthread_barrier_wait: (libc)POSIX Barriers.
  1760. * pthread_clockjoin_np: (libc)Joining Threads.
  1761. * pthread_cond_clockwait: (libc)Waiting with Explicit Clocks.
  1762. * pthread_create: (libc)Creating and Destroying Threads.
  1763. * pthread_detach: (libc)Creating and Destroying Threads.
  1764. * pthread_equal: (libc)POSIX Threads Other APIs.
  1765. * pthread_getaffinity_np: (libc)Thread CPU Affinity.
  1766. * pthread_getattr_default_np: (libc)Default Thread Attributes.
  1767. * pthread_getcpuclockid: (libc)POSIX Threads Other APIs.
  1768. * pthread_getname_np: (libc)Thread Names.
  1769. * pthread_getspecific: (libc)Thread-specific Data.
  1770. * pthread_gettid_np: (libc)Process Identification.
  1771. * pthread_join: (libc)Creating and Destroying Threads.
  1772. * pthread_key_create: (libc)Thread-specific Data.
  1773. * pthread_key_delete: (libc)Thread-specific Data.
  1774. * pthread_kill: (libc)Creating and Destroying Threads.
  1775. * pthread_mutex_clocklock: (libc)POSIX Mutexes.
  1776. * pthread_mutex_destroy: (libc)POSIX Mutexes.
  1777. * pthread_mutex_init: (libc)POSIX Mutexes.
  1778. * pthread_mutex_lock: (libc)POSIX Mutexes.
  1779. * pthread_mutex_timedlock: (libc)POSIX Mutexes.
  1780. * pthread_mutex_trylock: (libc)POSIX Mutexes.
  1781. * pthread_mutex_unlock: (libc)POSIX Mutexes.
  1782. * pthread_mutexattr_destroy: (libc)POSIX Mutexes.
  1783. * pthread_mutexattr_gettype: (libc)POSIX Mutexes.
  1784. * pthread_mutexattr_init: (libc)POSIX Mutexes.
  1785. * pthread_mutexattr_settype: (libc)POSIX Mutexes.
  1786. * pthread_once: (libc)POSIX Threads Other APIs.
  1787. * pthread_rwlock_clockrdlock: (libc)Waiting with Explicit Clocks.
  1788. * pthread_rwlock_clockwrlock: (libc)Waiting with Explicit Clocks.
  1789. * pthread_self: (libc)Creating and Destroying Threads.
  1790. * pthread_setaffinity_np: (libc)Thread CPU Affinity.
  1791. * pthread_setattr_default_np: (libc)Default Thread Attributes.
  1792. * pthread_setname_np: (libc)Thread Names.
  1793. * pthread_setspecific: (libc)Thread-specific Data.
  1794. * pthread_sigmask: (libc)POSIX Threads Other APIs.
  1795. * pthread_spin_destroy: (libc)POSIX Spin Locks.
  1796. * pthread_spin_init: (libc)POSIX Spin Locks.
  1797. * pthread_spin_lock: (libc)POSIX Spin Locks.
  1798. * pthread_spin_trylock: (libc)POSIX Spin Locks.
  1799. * pthread_spin_unlock: (libc)POSIX Spin Locks.
  1800. * pthread_timedjoin_np: (libc)Joining Threads.
  1801. * pthread_tryjoin_np: (libc)Joining Threads.
  1802. * ptsname: (libc)Allocation.
  1803. * ptsname_r: (libc)Allocation.
  1804. * putc: (libc)Simple Output.
  1805. * putc_unlocked: (libc)Simple Output.
  1806. * putchar: (libc)Simple Output.
  1807. * putchar_unlocked: (libc)Simple Output.
  1808. * putenv: (libc)Environment Access.
  1809. * putpwent: (libc)Writing a User Entry.
  1810. * puts: (libc)Simple Output.
  1811. * pututline: (libc)Manipulating the Database.
  1812. * pututxline: (libc)XPG Functions.
  1813. * putw: (libc)Simple Output.
  1814. * putwc: (libc)Simple Output.
  1815. * putwc_unlocked: (libc)Simple Output.
  1816. * putwchar: (libc)Simple Output.
  1817. * putwchar_unlocked: (libc)Simple Output.
  1818. * pwrite64: (libc)I/O Primitives.
  1819. * pwrite: (libc)I/O Primitives.
  1820. * pwritev2: (libc)Scatter-Gather.
  1821. * pwritev64: (libc)Scatter-Gather.
  1822. * pwritev64v2: (libc)Scatter-Gather.
  1823. * pwritev: (libc)Scatter-Gather.
  1824. * qecvt: (libc)System V Number Conversion.
  1825. * qecvt_r: (libc)System V Number Conversion.
  1826. * qfcvt: (libc)System V Number Conversion.
  1827. * qfcvt_r: (libc)System V Number Conversion.
  1828. * qgcvt: (libc)System V Number Conversion.
  1829. * qsort: (libc)Array Sort Function.
  1830. * raise: (libc)Signaling Yourself.
  1831. * rand: (libc)ISO Random.
  1832. * rand_r: (libc)ISO Random.
  1833. * random: (libc)BSD Random.
  1834. * random_r: (libc)BSD Random.
  1835. * rawmemchr: (libc)Search Functions.
  1836. * read: (libc)I/O Primitives.
  1837. * readdir64: (libc)Reading/Closing Directory.
  1838. * readdir64_r: (libc)Reading/Closing Directory.
  1839. * readdir: (libc)Reading/Closing Directory.
  1840. * readdir_r: (libc)Reading/Closing Directory.
  1841. * readlink: (libc)Symbolic Links.
  1842. * readv: (libc)Scatter-Gather.
  1843. * realloc: (libc)Changing Block Size.
  1844. * reallocarray: (libc)Changing Block Size.
  1845. * realpath: (libc)Symbolic Links.
  1846. * recv: (libc)Receiving Data.
  1847. * recvfrom: (libc)Receiving Datagrams.
  1848. * recvmsg: (libc)Other Socket APIs.
  1849. * regcomp: (libc)POSIX Regexp Compilation.
  1850. * regerror: (libc)Regexp Cleanup.
  1851. * regexec: (libc)Matching POSIX Regexps.
  1852. * regfree: (libc)Regexp Cleanup.
  1853. * register_printf_function: (libc)Registering New Conversions.
  1854. * remainder: (libc)Remainder Functions.
  1855. * remainderf: (libc)Remainder Functions.
  1856. * remainderfN: (libc)Remainder Functions.
  1857. * remainderfNx: (libc)Remainder Functions.
  1858. * remainderl: (libc)Remainder Functions.
  1859. * remove: (libc)Deleting Files.
  1860. * rename: (libc)Renaming Files.
  1861. * renameat: (libc)Renaming Files.
  1862. * rewind: (libc)File Positioning.
  1863. * rewinddir: (libc)Random Access Directory.
  1864. * rindex: (libc)Search Functions.
  1865. * rint: (libc)Rounding Functions.
  1866. * rintf: (libc)Rounding Functions.
  1867. * rintfN: (libc)Rounding Functions.
  1868. * rintfNx: (libc)Rounding Functions.
  1869. * rintl: (libc)Rounding Functions.
  1870. * rmdir: (libc)Deleting Files.
  1871. * rootn: (libc)Exponents and Logarithms.
  1872. * rootnf: (libc)Exponents and Logarithms.
  1873. * rootnfN: (libc)Exponents and Logarithms.
  1874. * rootnfNx: (libc)Exponents and Logarithms.
  1875. * rootnl: (libc)Exponents and Logarithms.
  1876. * round: (libc)Rounding Functions.
  1877. * roundeven: (libc)Rounding Functions.
  1878. * roundevenf: (libc)Rounding Functions.
  1879. * roundevenfN: (libc)Rounding Functions.
  1880. * roundevenfNx: (libc)Rounding Functions.
  1881. * roundevenl: (libc)Rounding Functions.
  1882. * roundf: (libc)Rounding Functions.
  1883. * roundfN: (libc)Rounding Functions.
  1884. * roundfNx: (libc)Rounding Functions.
  1885. * roundl: (libc)Rounding Functions.
  1886. * rpmatch: (libc)Yes-or-No Questions.
  1887. * rsqrt: (libc)Exponents and Logarithms.
  1888. * rsqrtf: (libc)Exponents and Logarithms.
  1889. * rsqrtfN: (libc)Exponents and Logarithms.
  1890. * rsqrtfNx: (libc)Exponents and Logarithms.
  1891. * rsqrtl: (libc)Exponents and Logarithms.
  1892. * sbrk: (libc)Resizing the Data Segment.
  1893. * scalb: (libc)Normalization Functions.
  1894. * scalbf: (libc)Normalization Functions.
  1895. * scalbl: (libc)Normalization Functions.
  1896. * scalbln: (libc)Normalization Functions.
  1897. * scalblnf: (libc)Normalization Functions.
  1898. * scalblnfN: (libc)Normalization Functions.
  1899. * scalblnfNx: (libc)Normalization Functions.
  1900. * scalblnl: (libc)Normalization Functions.
  1901. * scalbn: (libc)Normalization Functions.
  1902. * scalbnf: (libc)Normalization Functions.
  1903. * scalbnfN: (libc)Normalization Functions.
  1904. * scalbnfNx: (libc)Normalization Functions.
  1905. * scalbnl: (libc)Normalization Functions.
  1906. * scandir64: (libc)Scanning Directory Content.
  1907. * scandir: (libc)Scanning Directory Content.
  1908. * scanf: (libc)Formatted Input Functions.
  1909. * sched_get_priority_max: (libc)Basic Scheduling Functions.
  1910. * sched_get_priority_min: (libc)Basic Scheduling Functions.
  1911. * sched_getaffinity: (libc)CPU Affinity.
  1912. * sched_getattr: (libc)Extensible Scheduling.
  1913. * sched_getcpu: (libc)CPU Affinity.
  1914. * sched_getparam: (libc)Basic Scheduling Functions.
  1915. * sched_getscheduler: (libc)Basic Scheduling Functions.
  1916. * sched_rr_get_interval: (libc)Basic Scheduling Functions.
  1917. * sched_setaffinity: (libc)CPU Affinity.
  1918. * sched_setattr: (libc)Extensible Scheduling.
  1919. * sched_setparam: (libc)Basic Scheduling Functions.
  1920. * sched_setscheduler: (libc)Basic Scheduling Functions.
  1921. * sched_yield: (libc)Basic Scheduling Functions.
  1922. * secure_getenv: (libc)Environment Access.
  1923. * seed48: (libc)SVID Random.
  1924. * seed48_r: (libc)SVID Random.
  1925. * seekdir: (libc)Random Access Directory.
  1926. * select: (libc)Waiting for I/O.
  1927. * sem_clockwait: (libc)POSIX Semaphores.
  1928. * sem_close: (libc)POSIX Semaphores.
  1929. * sem_destroy: (libc)POSIX Semaphores.
  1930. * sem_getvalue: (libc)POSIX Semaphores.
  1931. * sem_init: (libc)POSIX Semaphores.
  1932. * sem_open: (libc)POSIX Semaphores.
  1933. * sem_post: (libc)POSIX Semaphores.
  1934. * sem_timedwait: (libc)POSIX Semaphores.
  1935. * sem_trywait: (libc)POSIX Semaphores.
  1936. * sem_unlink: (libc)POSIX Semaphores.
  1937. * sem_wait: (libc)POSIX Semaphores.
  1938. * semctl: (libc)Semaphores.
  1939. * semget: (libc)Semaphores.
  1940. * semop: (libc)Semaphores.
  1941. * semtimedop: (libc)Semaphores.
  1942. * send: (libc)Sending Data.
  1943. * sendmsg: (libc)Other Socket APIs.
  1944. * sendto: (libc)Sending Datagrams.
  1945. * setbuf: (libc)Controlling Buffering.
  1946. * setbuffer: (libc)Controlling Buffering.
  1947. * setcontext: (libc)System V contexts.
  1948. * setdomainname: (libc)Host Identification.
  1949. * setegid: (libc)Setting Groups.
  1950. * setenv: (libc)Environment Access.
  1951. * seteuid: (libc)Setting User ID.
  1952. * setfsent: (libc)fstab.
  1953. * setgid: (libc)Setting Groups.
  1954. * setgrent: (libc)Scanning All Groups.
  1955. * setgroups: (libc)Setting Groups.
  1956. * sethostent: (libc)Host Names.
  1957. * sethostid: (libc)Host Identification.
  1958. * sethostname: (libc)Host Identification.
  1959. * setitimer: (libc)Setting an Alarm.
  1960. * setjmp: (libc)Non-Local Details.
  1961. * setlinebuf: (libc)Controlling Buffering.
  1962. * setlocale: (libc)Setting the Locale.
  1963. * setlogmask: (libc)setlogmask.
  1964. * setmntent: (libc)mtab.
  1965. * setnetent: (libc)Networks Database.
  1966. * setnetgrent: (libc)Lookup Netgroup.
  1967. * setpayload: (libc)FP Bit Twiddling.
  1968. * setpayloadf: (libc)FP Bit Twiddling.
  1969. * setpayloadfN: (libc)FP Bit Twiddling.
  1970. * setpayloadfNx: (libc)FP Bit Twiddling.
  1971. * setpayloadl: (libc)FP Bit Twiddling.
  1972. * setpayloadsig: (libc)FP Bit Twiddling.
  1973. * setpayloadsigf: (libc)FP Bit Twiddling.
  1974. * setpayloadsigfN: (libc)FP Bit Twiddling.
  1975. * setpayloadsigfNx: (libc)FP Bit Twiddling.
  1976. * setpayloadsigl: (libc)FP Bit Twiddling.
  1977. * setpgid: (libc)Process Group Functions.
  1978. * setpgrp: (libc)Process Group Functions.
  1979. * setpriority: (libc)Traditional Scheduling Functions.
  1980. * setprotoent: (libc)Protocols Database.
  1981. * setpwent: (libc)Scanning All Users.
  1982. * setregid: (libc)Setting Groups.
  1983. * setreuid: (libc)Setting User ID.
  1984. * setrlimit64: (libc)Limits on Resources.
  1985. * setrlimit: (libc)Limits on Resources.
  1986. * setservent: (libc)Services Database.
  1987. * setsid: (libc)Process Group Functions.
  1988. * setsockopt: (libc)Socket Option Functions.
  1989. * setstate: (libc)BSD Random.
  1990. * setstate_r: (libc)BSD Random.
  1991. * settimeofday: (libc)Setting and Adjusting the Time.
  1992. * setuid: (libc)Setting User ID.
  1993. * setutent: (libc)Manipulating the Database.
  1994. * setutxent: (libc)XPG Functions.
  1995. * setvbuf: (libc)Controlling Buffering.
  1996. * shm_open: (libc)Memory-mapped I/O.
  1997. * shm_unlink: (libc)Memory-mapped I/O.
  1998. * shutdown: (libc)Closing a Socket.
  1999. * sigabbrev_np: (libc)Signal Messages.
  2000. * sigaction: (libc)Advanced Signal Handling.
  2001. * sigaddset: (libc)Signal Sets.
  2002. * sigaltstack: (libc)Signal Stack.
  2003. * sigblock: (libc)BSD Signal Handling.
  2004. * sigdelset: (libc)Signal Sets.
  2005. * sigdescr_np: (libc)Signal Messages.
  2006. * sigemptyset: (libc)Signal Sets.
  2007. * sigfillset: (libc)Signal Sets.
  2008. * siginterrupt: (libc)BSD Signal Handling.
  2009. * sigismember: (libc)Signal Sets.
  2010. * siglongjmp: (libc)Non-Local Exits and Signals.
  2011. * sigmask: (libc)BSD Signal Handling.
  2012. * signal: (libc)Basic Signal Handling.
  2013. * signbit: (libc)FP Bit Twiddling.
  2014. * significand: (libc)Normalization Functions.
  2015. * significandf: (libc)Normalization Functions.
  2016. * significandl: (libc)Normalization Functions.
  2017. * sigpause: (libc)BSD Signal Handling.
  2018. * sigpending: (libc)Checking for Pending Signals.
  2019. * sigprocmask: (libc)Process Signal Mask.
  2020. * sigsetjmp: (libc)Non-Local Exits and Signals.
  2021. * sigsetmask: (libc)BSD Signal Handling.
  2022. * sigstack: (libc)Signal Stack.
  2023. * sigsuspend: (libc)Sigsuspend.
  2024. * sin: (libc)Trig Functions.
  2025. * sincos: (libc)Trig Functions.
  2026. * sincosf: (libc)Trig Functions.
  2027. * sincosfN: (libc)Trig Functions.
  2028. * sincosfNx: (libc)Trig Functions.
  2029. * sincosl: (libc)Trig Functions.
  2030. * sinf: (libc)Trig Functions.
  2031. * sinfN: (libc)Trig Functions.
  2032. * sinfNx: (libc)Trig Functions.
  2033. * sinh: (libc)Hyperbolic Functions.
  2034. * sinhf: (libc)Hyperbolic Functions.
  2035. * sinhfN: (libc)Hyperbolic Functions.
  2036. * sinhfNx: (libc)Hyperbolic Functions.
  2037. * sinhl: (libc)Hyperbolic Functions.
  2038. * sinl: (libc)Trig Functions.
  2039. * sinpi: (libc)Trig Functions.
  2040. * sinpif: (libc)Trig Functions.
  2041. * sinpifN: (libc)Trig Functions.
  2042. * sinpifNx: (libc)Trig Functions.
  2043. * sinpil: (libc)Trig Functions.
  2044. * sleep: (libc)Sleeping.
  2045. * snprintf: (libc)Formatted Output Functions.
  2046. * socket: (libc)Creating a Socket.
  2047. * socketpair: (libc)Socket Pairs.
  2048. * sprintf: (libc)Formatted Output Functions.
  2049. * sqrt: (libc)Exponents and Logarithms.
  2050. * sqrtf: (libc)Exponents and Logarithms.
  2051. * sqrtfN: (libc)Exponents and Logarithms.
  2052. * sqrtfNx: (libc)Exponents and Logarithms.
  2053. * sqrtl: (libc)Exponents and Logarithms.
  2054. * srand48: (libc)SVID Random.
  2055. * srand48_r: (libc)SVID Random.
  2056. * srand: (libc)ISO Random.
  2057. * srandom: (libc)BSD Random.
  2058. * srandom_r: (libc)BSD Random.
  2059. * sscanf: (libc)Formatted Input Functions.
  2060. * ssignal: (libc)Basic Signal Handling.
  2061. * stat64: (libc)Reading Attributes.
  2062. * stat: (libc)Reading Attributes.
  2063. * stdc_bit_ceil_uc: (libc)Bit Manipulation.
  2064. * stdc_bit_ceil_ui: (libc)Bit Manipulation.
  2065. * stdc_bit_ceil_ul: (libc)Bit Manipulation.
  2066. * stdc_bit_ceil_ull: (libc)Bit Manipulation.
  2067. * stdc_bit_ceil_us: (libc)Bit Manipulation.
  2068. * stdc_bit_floor_uc: (libc)Bit Manipulation.
  2069. * stdc_bit_floor_ui: (libc)Bit Manipulation.
  2070. * stdc_bit_floor_ul: (libc)Bit Manipulation.
  2071. * stdc_bit_floor_ull: (libc)Bit Manipulation.
  2072. * stdc_bit_floor_us: (libc)Bit Manipulation.
  2073. * stdc_bit_width_uc: (libc)Bit Manipulation.
  2074. * stdc_bit_width_ui: (libc)Bit Manipulation.
  2075. * stdc_bit_width_ul: (libc)Bit Manipulation.
  2076. * stdc_bit_width_ull: (libc)Bit Manipulation.
  2077. * stdc_bit_width_us: (libc)Bit Manipulation.
  2078. * stdc_count_ones_uc: (libc)Bit Manipulation.
  2079. * stdc_count_ones_ui: (libc)Bit Manipulation.
  2080. * stdc_count_ones_ul: (libc)Bit Manipulation.
  2081. * stdc_count_ones_ull: (libc)Bit Manipulation.
  2082. * stdc_count_ones_us: (libc)Bit Manipulation.
  2083. * stdc_count_zeros_uc: (libc)Bit Manipulation.
  2084. * stdc_count_zeros_ui: (libc)Bit Manipulation.
  2085. * stdc_count_zeros_ul: (libc)Bit Manipulation.
  2086. * stdc_count_zeros_ull: (libc)Bit Manipulation.
  2087. * stdc_count_zeros_us: (libc)Bit Manipulation.
  2088. * stdc_first_leading_one_uc: (libc)Bit Manipulation.
  2089. * stdc_first_leading_one_ui: (libc)Bit Manipulation.
  2090. * stdc_first_leading_one_ul: (libc)Bit Manipulation.
  2091. * stdc_first_leading_one_ull: (libc)Bit Manipulation.
  2092. * stdc_first_leading_one_us: (libc)Bit Manipulation.
  2093. * stdc_first_leading_zero_uc: (libc)Bit Manipulation.
  2094. * stdc_first_leading_zero_ui: (libc)Bit Manipulation.
  2095. * stdc_first_leading_zero_ul: (libc)Bit Manipulation.
  2096. * stdc_first_leading_zero_ull: (libc)Bit Manipulation.
  2097. * stdc_first_leading_zero_us: (libc)Bit Manipulation.
  2098. * stdc_first_trailing_one_uc: (libc)Bit Manipulation.
  2099. * stdc_first_trailing_one_ui: (libc)Bit Manipulation.
  2100. * stdc_first_trailing_one_ul: (libc)Bit Manipulation.
  2101. * stdc_first_trailing_one_ull: (libc)Bit Manipulation.
  2102. * stdc_first_trailing_one_us: (libc)Bit Manipulation.
  2103. * stdc_first_trailing_zero_uc: (libc)Bit Manipulation.
  2104. * stdc_first_trailing_zero_ui: (libc)Bit Manipulation.
  2105. * stdc_first_trailing_zero_ul: (libc)Bit Manipulation.
  2106. * stdc_first_trailing_zero_ull: (libc)Bit Manipulation.
  2107. * stdc_first_trailing_zero_us: (libc)Bit Manipulation.
  2108. * stdc_has_single_bit_uc: (libc)Bit Manipulation.
  2109. * stdc_has_single_bit_ui: (libc)Bit Manipulation.
  2110. * stdc_has_single_bit_ul: (libc)Bit Manipulation.
  2111. * stdc_has_single_bit_ull: (libc)Bit Manipulation.
  2112. * stdc_has_single_bit_us: (libc)Bit Manipulation.
  2113. * stdc_leading_ones_uc: (libc)Bit Manipulation.
  2114. * stdc_leading_ones_ui: (libc)Bit Manipulation.
  2115. * stdc_leading_ones_ul: (libc)Bit Manipulation.
  2116. * stdc_leading_ones_ull: (libc)Bit Manipulation.
  2117. * stdc_leading_ones_us: (libc)Bit Manipulation.
  2118. * stdc_leading_zeros_uc: (libc)Bit Manipulation.
  2119. * stdc_leading_zeros_ui: (libc)Bit Manipulation.
  2120. * stdc_leading_zeros_ul: (libc)Bit Manipulation.
  2121. * stdc_leading_zeros_ull: (libc)Bit Manipulation.
  2122. * stdc_leading_zeros_us: (libc)Bit Manipulation.
  2123. * stdc_trailing_ones_uc: (libc)Bit Manipulation.
  2124. * stdc_trailing_ones_ui: (libc)Bit Manipulation.
  2125. * stdc_trailing_ones_ul: (libc)Bit Manipulation.
  2126. * stdc_trailing_ones_ull: (libc)Bit Manipulation.
  2127. * stdc_trailing_ones_us: (libc)Bit Manipulation.
  2128. * stdc_trailing_zeros_uc: (libc)Bit Manipulation.
  2129. * stdc_trailing_zeros_ui: (libc)Bit Manipulation.
  2130. * stdc_trailing_zeros_ul: (libc)Bit Manipulation.
  2131. * stdc_trailing_zeros_ull: (libc)Bit Manipulation.
  2132. * stdc_trailing_zeros_us: (libc)Bit Manipulation.
  2133. * stime: (libc)Setting and Adjusting the Time.
  2134. * stpcpy: (libc)Copying Strings and Arrays.
  2135. * stpncpy: (libc)Truncating Strings.
  2136. * strcasecmp: (libc)String/Array Comparison.
  2137. * strcasestr: (libc)Search Functions.
  2138. * strcat: (libc)Concatenating Strings.
  2139. * strchr: (libc)Search Functions.
  2140. * strchrnul: (libc)Search Functions.
  2141. * strcmp: (libc)String/Array Comparison.
  2142. * strcoll: (libc)Collation Functions.
  2143. * strcpy: (libc)Copying Strings and Arrays.
  2144. * strcspn: (libc)Search Functions.
  2145. * strdup: (libc)Copying Strings and Arrays.
  2146. * strdupa: (libc)Copying Strings and Arrays.
  2147. * strerror: (libc)Error Messages.
  2148. * strerror_l: (libc)Error Messages.
  2149. * strerror_r: (libc)Error Messages.
  2150. * strerror_r: (libc)Error Messages.
  2151. * strerrordesc_np: (libc)Error Messages.
  2152. * strerrorname_np: (libc)Error Messages.
  2153. * strfmon: (libc)Formatting Numbers.
  2154. * strfromd: (libc)Printing of Floats.
  2155. * strfromf: (libc)Printing of Floats.
  2156. * strfromfN: (libc)Printing of Floats.
  2157. * strfromfNx: (libc)Printing of Floats.
  2158. * strfroml: (libc)Printing of Floats.
  2159. * strfry: (libc)Shuffling Bytes.
  2160. * strftime: (libc)Formatting Calendar Time.
  2161. * strftime_l: (libc)Formatting Calendar Time.
  2162. * strlcat: (libc)Truncating Strings.
  2163. * strlcpy: (libc)Truncating Strings.
  2164. * strlen: (libc)String Length.
  2165. * strncasecmp: (libc)String/Array Comparison.
  2166. * strncat: (libc)Truncating Strings.
  2167. * strncmp: (libc)String/Array Comparison.
  2168. * strncpy: (libc)Truncating Strings.
  2169. * strndup: (libc)Truncating Strings.
  2170. * strndupa: (libc)Truncating Strings.
  2171. * strnlen: (libc)String Length.
  2172. * strpbrk: (libc)Search Functions.
  2173. * strptime: (libc)Low-Level Time String Parsing.
  2174. * strrchr: (libc)Search Functions.
  2175. * strsep: (libc)Finding Tokens in a String.
  2176. * strsignal: (libc)Signal Messages.
  2177. * strspn: (libc)Search Functions.
  2178. * strstr: (libc)Search Functions.
  2179. * strtod: (libc)Parsing of Floats.
  2180. * strtof: (libc)Parsing of Floats.
  2181. * strtofN: (libc)Parsing of Floats.
  2182. * strtofNx: (libc)Parsing of Floats.
  2183. * strtoimax: (libc)Parsing of Integers.
  2184. * strtok: (libc)Finding Tokens in a String.
  2185. * strtok_r: (libc)Finding Tokens in a String.
  2186. * strtol: (libc)Parsing of Integers.
  2187. * strtold: (libc)Parsing of Floats.
  2188. * strtoll: (libc)Parsing of Integers.
  2189. * strtoq: (libc)Parsing of Integers.
  2190. * strtoul: (libc)Parsing of Integers.
  2191. * strtoull: (libc)Parsing of Integers.
  2192. * strtoumax: (libc)Parsing of Integers.
  2193. * strtouq: (libc)Parsing of Integers.
  2194. * strverscmp: (libc)String/Array Comparison.
  2195. * strxfrm: (libc)Collation Functions.
  2196. * stty: (libc)BSD Terminal Modes.
  2197. * swapcontext: (libc)System V contexts.
  2198. * swprintf: (libc)Formatted Output Functions.
  2199. * swscanf: (libc)Formatted Input Functions.
  2200. * symlink: (libc)Symbolic Links.
  2201. * sync: (libc)Synchronizing I/O.
  2202. * syscall: (libc)System Calls.
  2203. * sysconf: (libc)Sysconf Definition.
  2204. * syslog: (libc)syslog; vsyslog.
  2205. * system: (libc)Running a Command.
  2206. * sysv_signal: (libc)Basic Signal Handling.
  2207. * tan: (libc)Trig Functions.
  2208. * tanf: (libc)Trig Functions.
  2209. * tanfN: (libc)Trig Functions.
  2210. * tanfNx: (libc)Trig Functions.
  2211. * tanh: (libc)Hyperbolic Functions.
  2212. * tanhf: (libc)Hyperbolic Functions.
  2213. * tanhfN: (libc)Hyperbolic Functions.
  2214. * tanhfNx: (libc)Hyperbolic Functions.
  2215. * tanhl: (libc)Hyperbolic Functions.
  2216. * tanl: (libc)Trig Functions.
  2217. * tanpi: (libc)Trig Functions.
  2218. * tanpif: (libc)Trig Functions.
  2219. * tanpifN: (libc)Trig Functions.
  2220. * tanpifNx: (libc)Trig Functions.
  2221. * tanpil: (libc)Trig Functions.
  2222. * tcdrain: (libc)Line Control.
  2223. * tcflow: (libc)Line Control.
  2224. * tcflush: (libc)Line Control.
  2225. * tcgetattr: (libc)Mode Functions.
  2226. * tcgetpgrp: (libc)Terminal Access Functions.
  2227. * tcgetsid: (libc)Terminal Access Functions.
  2228. * tcsendbreak: (libc)Line Control.
  2229. * tcsetattr: (libc)Mode Functions.
  2230. * tcsetpgrp: (libc)Terminal Access Functions.
  2231. * tdelete: (libc)Tree Search Function.
  2232. * tdestroy: (libc)Tree Search Function.
  2233. * telldir: (libc)Random Access Directory.
  2234. * tempnam: (libc)Temporary Files.
  2235. * textdomain: (libc)Locating gettext catalog.
  2236. * tfind: (libc)Tree Search Function.
  2237. * tgamma: (libc)Special Functions.
  2238. * tgammaf: (libc)Special Functions.
  2239. * tgammafN: (libc)Special Functions.
  2240. * tgammafNx: (libc)Special Functions.
  2241. * tgammal: (libc)Special Functions.
  2242. * tgkill: (libc)Signaling Another Process.
  2243. * thrd_create: (libc)ISO C Thread Management.
  2244. * thrd_current: (libc)ISO C Thread Management.
  2245. * thrd_detach: (libc)ISO C Thread Management.
  2246. * thrd_equal: (libc)ISO C Thread Management.
  2247. * thrd_exit: (libc)ISO C Thread Management.
  2248. * thrd_join: (libc)ISO C Thread Management.
  2249. * thrd_sleep: (libc)ISO C Thread Management.
  2250. * thrd_yield: (libc)ISO C Thread Management.
  2251. * time: (libc)Getting the Time.
  2252. * timegm: (libc)Broken-down Time.
  2253. * timelocal: (libc)Broken-down Time.
  2254. * times: (libc)Processor Time.
  2255. * timespec_get: (libc)Getting the Time.
  2256. * timespec_getres: (libc)Getting the Time.
  2257. * tmpfile64: (libc)Temporary Files.
  2258. * tmpfile: (libc)Temporary Files.
  2259. * tmpnam: (libc)Temporary Files.
  2260. * tmpnam_r: (libc)Temporary Files.
  2261. * toascii: (libc)Case Conversion.
  2262. * tolower: (libc)Case Conversion.
  2263. * totalorder: (libc)FP Comparison Functions.
  2264. * totalorderf: (libc)FP Comparison Functions.
  2265. * totalorderfN: (libc)FP Comparison Functions.
  2266. * totalorderfNx: (libc)FP Comparison Functions.
  2267. * totalorderl: (libc)FP Comparison Functions.
  2268. * totalordermag: (libc)FP Comparison Functions.
  2269. * totalordermagf: (libc)FP Comparison Functions.
  2270. * totalordermagfN: (libc)FP Comparison Functions.
  2271. * totalordermagfNx: (libc)FP Comparison Functions.
  2272. * totalordermagl: (libc)FP Comparison Functions.
  2273. * toupper: (libc)Case Conversion.
  2274. * towctrans: (libc)Wide Character Case Conversion.
  2275. * towlower: (libc)Wide Character Case Conversion.
  2276. * towupper: (libc)Wide Character Case Conversion.
  2277. * trunc: (libc)Rounding Functions.
  2278. * truncate64: (libc)File Size.
  2279. * truncate: (libc)File Size.
  2280. * truncf: (libc)Rounding Functions.
  2281. * truncfN: (libc)Rounding Functions.
  2282. * truncfNx: (libc)Rounding Functions.
  2283. * truncl: (libc)Rounding Functions.
  2284. * tsearch: (libc)Tree Search Function.
  2285. * tss_create: (libc)ISO C Thread-local Storage.
  2286. * tss_delete: (libc)ISO C Thread-local Storage.
  2287. * tss_get: (libc)ISO C Thread-local Storage.
  2288. * tss_set: (libc)ISO C Thread-local Storage.
  2289. * ttyname: (libc)Is It a Terminal.
  2290. * ttyname_r: (libc)Is It a Terminal.
  2291. * twalk: (libc)Tree Search Function.
  2292. * twalk_r: (libc)Tree Search Function.
  2293. * tzset: (libc)Time Zone State.
  2294. * uabs: (libc)Absolute Value.
  2295. * ufromfp: (libc)Rounding Functions.
  2296. * ufromfpf: (libc)Rounding Functions.
  2297. * ufromfpfN: (libc)Rounding Functions.
  2298. * ufromfpfNx: (libc)Rounding Functions.
  2299. * ufromfpl: (libc)Rounding Functions.
  2300. * ufromfpx: (libc)Rounding Functions.
  2301. * ufromfpxf: (libc)Rounding Functions.
  2302. * ufromfpxfN: (libc)Rounding Functions.
  2303. * ufromfpxfNx: (libc)Rounding Functions.
  2304. * ufromfpxl: (libc)Rounding Functions.
  2305. * ulabs: (libc)Absolute Value.
  2306. * ulimit: (libc)Limits on Resources.
  2307. * ullabs: (libc)Absolute Value.
  2308. * umask: (libc)Setting Permissions.
  2309. * umaxabs: (libc)Absolute Value.
  2310. * umount2: (libc)Mount-Unmount-Remount.
  2311. * umount: (libc)Mount-Unmount-Remount.
  2312. * uname: (libc)Platform Type.
  2313. * ungetc: (libc)How Unread.
  2314. * ungetwc: (libc)How Unread.
  2315. * unlink: (libc)Deleting Files.
  2316. * unlinkat: (libc)Deleting Files.
  2317. * unlockpt: (libc)Allocation.
  2318. * unsetenv: (libc)Environment Access.
  2319. * updwtmp: (libc)Manipulating the Database.
  2320. * utime: (libc)File Times.
  2321. * utimensat: (libc)File Times.
  2322. * utimes: (libc)File Times.
  2323. * utmpname: (libc)Manipulating the Database.
  2324. * utmpxname: (libc)XPG Functions.
  2325. * va_arg: (libc)Argument Macros.
  2326. * va_copy: (libc)Argument Macros.
  2327. * va_end: (libc)Argument Macros.
  2328. * va_start: (libc)Argument Macros.
  2329. * valloc: (libc)Aligned Memory Blocks.
  2330. * vasprintf: (libc)Variable Arguments Output.
  2331. * vdprintf: (libc)Variable Arguments Output.
  2332. * verr: (libc)Error Messages.
  2333. * verrx: (libc)Error Messages.
  2334. * versionsort64: (libc)Scanning Directory Content.
  2335. * versionsort: (libc)Scanning Directory Content.
  2336. * vfork: (libc)Creating a Process.
  2337. * vfprintf: (libc)Variable Arguments Output.
  2338. * vfscanf: (libc)Variable Arguments Input.
  2339. * vfwprintf: (libc)Variable Arguments Output.
  2340. * vfwscanf: (libc)Variable Arguments Input.
  2341. * vlimit: (libc)Limits on Resources.
  2342. * vprintf: (libc)Variable Arguments Output.
  2343. * vscanf: (libc)Variable Arguments Input.
  2344. * vsnprintf: (libc)Variable Arguments Output.
  2345. * vsprintf: (libc)Variable Arguments Output.
  2346. * vsscanf: (libc)Variable Arguments Input.
  2347. * vswprintf: (libc)Variable Arguments Output.
  2348. * vswscanf: (libc)Variable Arguments Input.
  2349. * vsyslog: (libc)syslog; vsyslog.
  2350. * vwarn: (libc)Error Messages.
  2351. * vwarnx: (libc)Error Messages.
  2352. * vwprintf: (libc)Variable Arguments Output.
  2353. * vwscanf: (libc)Variable Arguments Input.
  2354. * wait3: (libc)BSD Wait Functions.
  2355. * wait4: (libc)Process Completion.
  2356. * wait: (libc)Process Completion.
  2357. * waitpid: (libc)Process Completion.
  2358. * warn: (libc)Error Messages.
  2359. * warnx: (libc)Error Messages.
  2360. * wcpcpy: (libc)Copying Strings and Arrays.
  2361. * wcpncpy: (libc)Truncating Strings.
  2362. * wcrtomb: (libc)Converting a Character.
  2363. * wcscasecmp: (libc)String/Array Comparison.
  2364. * wcscat: (libc)Concatenating Strings.
  2365. * wcschr: (libc)Search Functions.
  2366. * wcschrnul: (libc)Search Functions.
  2367. * wcscmp: (libc)String/Array Comparison.
  2368. * wcscoll: (libc)Collation Functions.
  2369. * wcscpy: (libc)Copying Strings and Arrays.
  2370. * wcscspn: (libc)Search Functions.
  2371. * wcsdup: (libc)Copying Strings and Arrays.
  2372. * wcsftime: (libc)Formatting Calendar Time.
  2373. * wcslcat: (libc)Truncating Strings.
  2374. * wcslcpy: (libc)Truncating Strings.
  2375. * wcslen: (libc)String Length.
  2376. * wcsncasecmp: (libc)String/Array Comparison.
  2377. * wcsncat: (libc)Truncating Strings.
  2378. * wcsncmp: (libc)String/Array Comparison.
  2379. * wcsncpy: (libc)Truncating Strings.
  2380. * wcsnlen: (libc)String Length.
  2381. * wcsnrtombs: (libc)Converting Strings.
  2382. * wcspbrk: (libc)Search Functions.
  2383. * wcsrchr: (libc)Search Functions.
  2384. * wcsrtombs: (libc)Converting Strings.
  2385. * wcsspn: (libc)Search Functions.
  2386. * wcsstr: (libc)Search Functions.
  2387. * wcstod: (libc)Parsing of Floats.
  2388. * wcstof: (libc)Parsing of Floats.
  2389. * wcstofN: (libc)Parsing of Floats.
  2390. * wcstofNx: (libc)Parsing of Floats.
  2391. * wcstoimax: (libc)Parsing of Integers.
  2392. * wcstok: (libc)Finding Tokens in a String.
  2393. * wcstol: (libc)Parsing of Integers.
  2394. * wcstold: (libc)Parsing of Floats.
  2395. * wcstoll: (libc)Parsing of Integers.
  2396. * wcstombs: (libc)Non-reentrant String Conversion.
  2397. * wcstoq: (libc)Parsing of Integers.
  2398. * wcstoul: (libc)Parsing of Integers.
  2399. * wcstoull: (libc)Parsing of Integers.
  2400. * wcstoumax: (libc)Parsing of Integers.
  2401. * wcstouq: (libc)Parsing of Integers.
  2402. * wcswcs: (libc)Search Functions.
  2403. * wcsxfrm: (libc)Collation Functions.
  2404. * wctob: (libc)Converting a Character.
  2405. * wctomb: (libc)Non-reentrant Character Conversion.
  2406. * wctrans: (libc)Wide Character Case Conversion.
  2407. * wctype: (libc)Classification of Wide Characters.
  2408. * wmemchr: (libc)Search Functions.
  2409. * wmemcmp: (libc)String/Array Comparison.
  2410. * wmemcpy: (libc)Copying Strings and Arrays.
  2411. * wmemmove: (libc)Copying Strings and Arrays.
  2412. * wmempcpy: (libc)Copying Strings and Arrays.
  2413. * wmemset: (libc)Copying Strings and Arrays.
  2414. * wordexp: (libc)Calling Wordexp.
  2415. * wordfree: (libc)Calling Wordexp.
  2416. * wprintf: (libc)Formatted Output Functions.
  2417. * write: (libc)I/O Primitives.
  2418. * writev: (libc)Scatter-Gather.
  2419. * wscanf: (libc)Formatted Input Functions.
  2420. * y0: (libc)Special Functions.
  2421. * y0f: (libc)Special Functions.
  2422. * y0fN: (libc)Special Functions.
  2423. * y0fNx: (libc)Special Functions.
  2424. * y0l: (libc)Special Functions.
  2425. * y1: (libc)Special Functions.
  2426. * y1f: (libc)Special Functions.
  2427. * y1fN: (libc)Special Functions.
  2428. * y1fNx: (libc)Special Functions.
  2429. * y1l: (libc)Special Functions.
  2430. * yn: (libc)Special Functions.
  2431. * ynf: (libc)Special Functions.
  2432. * ynfN: (libc)Special Functions.
  2433. * ynfNx: (libc)Special Functions.
  2434. * ynl: (libc)Special Functions.
  2435. END-INFO-DIR-ENTRY
  2436. 
  2437. File: libc.info, Node: Local Modes, Next: Line Speed, Prev: Control Modes, Up: Terminal Modes
  2438. 17.5.7 Local Modes
  2439. ------------------
  2440. This section describes the flags for the ‘c_lflag’ member of the ‘struct
  2441. termios’ structure. These flags generally control higher-level aspects
  2442. of input processing than the input modes flags described in *note Input
  2443. Modes::, such as echoing, signals, and the choice of canonical or
  2444. noncanonical input.
  2445. The ‘c_lflag’ member itself is an integer, and you change the flags
  2446. and fields using the operators ‘&’, ‘|’, and ‘^’. Don't try to specify
  2447. the entire value for ‘c_lflag’--instead, change only specific flags and
  2448. leave the rest untouched (*note Setting Modes::).
  2449. -- Macro: tcflag_t ICANON
  2450. This bit, if set, enables canonical input processing mode.
  2451. Otherwise, input is processed in noncanonical mode. *Note
  2452. Canonical or Not::.
  2453. -- Macro: tcflag_t ECHO
  2454. If this bit is set, echoing of input characters back to the
  2455. terminal is enabled.
  2456. -- Macro: tcflag_t ECHOE
  2457. If this bit is set, echoing indicates erasure of input with the
  2458. ERASE character by erasing the last character in the current line
  2459. from the screen. Otherwise, the character erased is re-echoed to
  2460. show what has happened (suitable for a printing terminal).
  2461. This bit only controls the display behavior; the ‘ICANON’ bit by
  2462. itself controls actual recognition of the ERASE character and
  2463. erasure of input, without which ‘ECHOE’ is simply irrelevant.
  2464. -- Macro: tcflag_t ECHOPRT
  2465. This bit, like ‘ECHOE’, enables display of the ERASE character in a
  2466. way that is geared to a hardcopy terminal. When you type the ERASE
  2467. character, a ‘\’ character is printed followed by the first
  2468. character erased. Typing the ERASE character again just prints the
  2469. next character erased. Then, the next time you type a normal
  2470. character, a ‘/’ character is printed before the character echoes.
  2471. This is a BSD extension, and exists only in BSD systems and
  2472. GNU/Linux and GNU/Hurd systems.
  2473. -- Macro: tcflag_t ECHOK
  2474. This bit enables special display of the KILL character by moving to
  2475. a new line after echoing the KILL character normally. The behavior
  2476. of ‘ECHOKE’ (below) is nicer to look at.
  2477. If this bit is not set, the KILL character echoes just as it would
  2478. if it were not the KILL character. Then it is up to the user to
  2479. remember that the KILL character has erased the preceding input;
  2480. there is no indication of this on the screen.
  2481. This bit only controls the display behavior; the ‘ICANON’ bit by
  2482. itself controls actual recognition of the KILL character and
  2483. erasure of input, without which ‘ECHOK’ is simply irrelevant.
  2484. -- Macro: tcflag_t ECHOKE
  2485. This bit is similar to ‘ECHOK’. It enables special display of the
  2486. KILL character by erasing on the screen the entire line that has
  2487. been killed. This is a BSD extension, and exists only in BSD
  2488. systems and GNU/Linux and GNU/Hurd systems.
  2489. -- Macro: tcflag_t ECHONL
  2490. If this bit is set and the ‘ICANON’ bit is also set, then the
  2491. newline (‘'\n'’) character is echoed even if the ‘ECHO’ bit is not
  2492. set.
  2493. -- Macro: tcflag_t ECHOCTL
  2494. If this bit is set and the ‘ECHO’ bit is also set, echo control
  2495. characters with ‘^’ followed by the corresponding text character.
  2496. Thus, control-A echoes as ‘^A’. This is usually the preferred mode
  2497. for interactive input, because echoing a control character back to
  2498. the terminal could have some undesired effect on the terminal.
  2499. This is a BSD extension, and exists only in BSD systems and
  2500. GNU/Linux and GNU/Hurd systems.
  2501. -- Macro: tcflag_t ISIG
  2502. This bit controls whether the INTR, QUIT, and SUSP characters are
  2503. recognized. The functions associated with these characters are
  2504. performed if and only if this bit is set. Being in canonical or
  2505. noncanonical input mode has no effect on the interpretation of
  2506. these characters.
  2507. You should use caution when disabling recognition of these
  2508. characters. Programs that cannot be interrupted interactively are
  2509. very user-unfriendly. If you clear this bit, your program should
  2510. provide some alternate interface that allows the user to
  2511. interactively send the signals associated with these characters, or
  2512. to escape from the program.
  2513. *Note Signal Characters::.
  2514. -- Macro: tcflag_t IEXTEN
  2515. POSIX.1 gives ‘IEXTEN’ implementation-defined meaning, so you
  2516. cannot rely on this interpretation on all systems.
  2517. On BSD systems and GNU/Linux and GNU/Hurd systems, it enables the
  2518. LNEXT and DISCARD characters. *Note Other Special::.
  2519. -- Macro: tcflag_t NOFLSH
  2520. Normally, the INTR, QUIT, and SUSP characters cause input and
  2521. output queues for the terminal to be cleared. If this bit is set,
  2522. the queues are not cleared.
  2523. -- Macro: tcflag_t TOSTOP
  2524. If this bit is set and the system supports job control, then
  2525. ‘SIGTTOU’ signals are generated by background processes that
  2526. attempt to write to the terminal. *Note Access to the Terminal::.
  2527. The following bits are BSD extensions; they exist only on BSD systems
  2528. and GNU/Hurd systems.
  2529. -- Macro: tcflag_t ALTWERASE
  2530. This bit determines how far the WERASE character should erase. The
  2531. WERASE character erases back to the beginning of a word; the
  2532. question is, where do words begin?
  2533. If this bit is clear, then the beginning of a word is a
  2534. nonwhitespace character following a whitespace character. If the
  2535. bit is set, then the beginning of a word is an alphanumeric
  2536. character or underscore following a character which is none of
  2537. those.
  2538. *Note Editing Characters::, for more information about the WERASE
  2539. character.
  2540. -- Macro: tcflag_t FLUSHO
  2541. This is the bit that toggles when the user types the DISCARD
  2542. character. While this bit is set, all output is discarded. *Note
  2543. Other Special::.
  2544. -- Macro: tcflag_t NOKERNINFO
  2545. Setting this bit disables handling of the STATUS character. *Note
  2546. Other Special::.
  2547. -- Macro: tcflag_t PENDIN
  2548. If this bit is set, it indicates that there is a line of input that
  2549. needs to be reprinted. Typing the REPRINT character sets this bit;
  2550. the bit remains set until reprinting is finished. *Note Editing
  2551. Characters::.
  2552. 
  2553. File: libc.info, Node: Line Speed, Next: Special Characters, Prev: Local Modes, Up: Terminal Modes
  2554. 17.5.8 Line Speed
  2555. -----------------
  2556. The terminal line speed tells the computer how fast to read and write
  2557. data on the terminal.
  2558. For standard asynchronous serial lines employing binary NRZ encoding
  2559. such as RS232, RS422, RS423, or RS485, the terminal speed will equal the
  2560. physical layer baud rate including asynchronous framing and parity bits.
  2561. This needs to match the communication speed expected by the peer device,
  2562. or communication will not work. Which particular speeds are supported
  2563. by any particular interface is hardware specific.
  2564. For other types of devices the meaning of the line speed is
  2565. device-specific and may not even affect the actual data transmission
  2566. speed at all (for example, if it is a pseudo-terminal or network
  2567. connection), but some programs will use it to determine the amount of
  2568. padding needed. It's best to specify a line speed value that matches
  2569. the actual speed of the actual terminal, but you can safely experiment
  2570. with different values to vary the amount of padding.
  2571. As the terminal interface models an RS232 serial interface (*note
  2572. Terminal Device Model::), the term "baud rate" is frequently used as a
  2573. direct alias for "line speed"; this convention is followed in the
  2574. following descriptions.
  2575. There are actually two line speeds for each terminal, one for input
  2576. and one for output. You can set them independently, but most often
  2577. terminals use the same speed for both directions. If the hardware does
  2578. not support different speeds for each direction, the output speed will
  2579. be used for both input and output.
  2580. Specifying an output speed of zero generates a modem disconnect
  2581. request. For the ‘speed_t’ interface, this is the constant ‘B0’ which
  2582. may or may not have the numeric value 0.
  2583. Specifying an input speed value of zero sets the input speed to equal
  2584. the output speed. This is the numeric constant 0 (not necessarily the
  2585. same as ‘B0’) for both the ‘speed_t’ and ‘baud_t’ interfaces. This use
  2586. is deprecated.
  2587. The line speed values are stored in the ‘struct termios’ structure,
  2588. but don't try to access them in the ‘struct termios’ structure directly.
  2589. Instead, you should use the functions defined by the interfaces below to
  2590. access them.
  2591. The line speed setting functions report errors only when attempting
  2592. to set line rate values that the system simply cannot handle. If you
  2593. specify a line speed value that is plausible for the system, then the
  2594. functions will succeed. However, they do not check that a particular
  2595. hardware device can actually support the specified value--in fact, they
  2596. don't know which device you plan to set the line speed for until
  2597. ‘tcsetattr’ is called. If you use ‘tcsetattr’ to set the speed of a
  2598. particular device to a value that it cannot handle, either ‘tcsetattr’
  2599. returns -1 and sets ‘errno’ to ‘EINVAL’, or the value is adjusted to the
  2600. closest supported value, depending on the policy of the kernel driver.
  2601. In the latter case, a subsequent call to ‘tcgetattr’ may or may not
  2602. reflect this adjustment.
  2603. The GNU C Library supports two interoperable interfaces for setting
  2604. the line speed: the POSIX.1 ‘speed_t’ interface, which requires the use
  2605. of a set of enumerated constants, and the ‘baud_t’ interface, a GNU
  2606. extension, which is guaranteed to use plain numeric values.
  2607. 17.5.8.1 The ‘speed_t’ interface
  2608. ................................
  2609. -- Data Type: speed_t
  2610. The ‘speed_t’ type is an unsigned integer data type used to
  2611. represent line speeds.
  2612. *Portability note:* In the current version of the GNU C Library,
  2613. the ‘speed_t’ type is numerically indentical to the line speed
  2614. rate. Other libraries and older versions of the GNU C Library may
  2615. require speeds to be indicated by enumerated constants, which may
  2616. not be numerically identical to the requested line speed. For
  2617. portability, you must use one of the following symbols to represent
  2618. the speed; their precise numeric values are system-dependent, but
  2619. each name has a fixed meaning: ‘B110’ stands for 110 bps, ‘B300’
  2620. for 300 bps, and so on. There is no portable way to represent any
  2621. speed but these.
  2622. B0 B50 B75 B110 B134 B150 B200 B300 B600 B1200
  2623. B1800 B2400 B4800 B9600 B19200 B38400
  2624. The GNU C Library defines these additional constants:
  2625. B7200 B14400 B28800 B33600 B57600 B76800 B115200 B153600 B230400 B307200
  2626. B460800 B500000 B576000 B614400 B921600 B1000000 B1152000 B1500000
  2627. B2000000 B2500000 B3000000 B3500000 B4000000 B5000000 B10000000
  2628. BSD defines two additional speed symbols as aliases: ‘EXTA’ is an
  2629. alias for ‘B19200’ and ‘EXTB’ is an alias for ‘B38400’. These aliases
  2630. are obsolete.
  2631. -- Macro: speed_t SPEED_MAX
  2632. The GNU C Library defines the constant ‘SPEED_MAX’ for the largest
  2633. valid value of type ‘speed_t’. This value may be smaller than the
  2634. underlying C type can store.
  2635. For compatiblity with some other platforms the alias ‘__MAX_BAUD’
  2636. is defined for this constant.
  2637. -- Function: speed_t cfgetospeed (const struct termios *TERMIOS-P)
  2638. Preliminary: | MT-Safe | AS-Safe | AC-Safe | *Note POSIX Safety
  2639. Concepts::.
  2640. This function returns the output line speed stored in the structure
  2641. ‘*TERMIOS-P’.
  2642. -- Function: speed_t cfgetispeed (const struct termios *TERMIOS-P)
  2643. Preliminary: | MT-Safe | AS-Safe | AC-Safe | *Note POSIX Safety
  2644. Concepts::.
  2645. This function returns the input line speed stored in the structure
  2646. ‘*TERMIOS-P’.
  2647. -- Function: int cfsetospeed (struct termios *TERMIOS-P, speed_t SPEED)
  2648. Preliminary: | MT-Safe | AS-Safe | AC-Safe | *Note POSIX Safety
  2649. Concepts::.
  2650. This function stores SPEED in ‘*TERMIOS-P’ as the output line
  2651. speed. If SPEED is ‘B0’, generates a modem disconnect request.
  2652. If SPEED is neither a plausible line speed nor ‘B0’, ‘cfsetospeed’
  2653. returns -1 and sets ‘errno’ to ‘EINVAL’.
  2654. -- Function: int cfsetispeed (struct termios *TERMIOS-P, speed_t SPEED)
  2655. Preliminary: | MT-Safe | AS-Safe | AC-Safe | *Note POSIX Safety
  2656. Concepts::.
  2657. This function stores SPEED in ‘*TERMIOS-P’ as the input speed. If
  2658. SPEED is 0, the input speed is set to equal the output speed; note
  2659. that POSIX.1 specifies this as the numeric value 0 which is not
  2660. required to equal the constant ‘B0’.
  2661. If SPEED is not a plausible line speed or 0, ‘cfsetispeed’ returns
  2662. -1 and sets ‘errno’ to ‘EINVAL’.
  2663. *Portability note:* POSIX.1-2024 has deprecated setting of the
  2664. input speed to 0 to set the input line speed to equal the output
  2665. line speed. After calling ‘tcsetattr’ followed by ‘tcgetattr’,
  2666. ‘cfgetispeed’ may report the input line speed either as 0 or the
  2667. same as ‘cfgetospeed’.
  2668. -- Function: int cfsetspeed (struct termios *TERMIOS-P, speed_t SPEED)
  2669. Preliminary: | MT-Safe | AS-Safe | AC-Safe | *Note POSIX Safety
  2670. Concepts::.
  2671. This function stores SPEED in ‘*TERMIOS-P’ as both the input and
  2672. output speeds.
  2673. If BAUD is not a plausible line speed, ‘cfsetbaud’ returns -1 and
  2674. sets ‘errno’ to ‘EINVAL’.
  2675. This function is an extension which originated in 4.4 BSD.
  2676. 17.5.8.2 The ‘baud_t’ interface
  2677. ...............................
  2678. -- Data Type: baud_t
  2679. The ‘baud_t’ type is a numeric data type used to represent line
  2680. baud rates. It will always represent the actual numeric value
  2681. corresponding to the line speed, unlike ‘speed_t’. In the current
  2682. version of the GNU C Library this is the same type as ‘speed_t’,
  2683. but this may not be the case in future versions or on other
  2684. implementations; it is specifically not guaranteed to be an integer
  2685. type.
  2686. -- Macro: baud_t BAUD_MAX
  2687. The constant ‘BAUD_MAX’ is defined to the maximum valid value of
  2688. type ‘baud_t’. This value may be smaller than the underlying C
  2689. type can store.
  2690. -- Function: baud_t cfgetobaud (const struct termios *TERMIOS-P)
  2691. Preliminary: | MT-Safe | AS-Safe | AC-Safe | *Note POSIX Safety
  2692. Concepts::.
  2693. This function returns the output line speed stored in the structure
  2694. ‘*TERMIOS-P’ as a numeric value.
  2695. -- Function: baud_t cfgetibaud (const struct termios *TERMIOS-P)
  2696. Preliminary: | MT-Safe | AS-Safe | AC-Safe | *Note POSIX Safety
  2697. Concepts::.
  2698. This function returns the input line speed stored in the structure
  2699. ‘*TERMIOS-P’ as a numeric value.
  2700. -- Function: int cfsetobaud (struct termios *TERMIOS-P, baud_t BAUD)
  2701. Preliminary: | MT-Safe | AS-Safe | AC-Safe | *Note POSIX Safety
  2702. Concepts::.
  2703. This function stores BAUD in ‘*TERMIOS-P’ as the output line speed.
  2704. If BAUD is 0, generates a modem disconnect.
  2705. If SPEED is not a plausible line speed, ‘cfsetspeed’ returns -1 and
  2706. sets ‘errno’ to ‘EINVAL’.
  2707. -- Function: int cfsetibaud (struct termios *TERMIOS-P, baud_t BAUD)
  2708. Preliminary: | MT-Safe | AS-Safe | AC-Safe | *Note POSIX Safety
  2709. Concepts::.
  2710. This function stores BAUD in ‘*TERMIOS-P’ as the input line speed.
  2711. To simplify conversions from the ‘speed_t’ interface, setting the
  2712. input line speed to 0 is interpreted as setting the input line
  2713. speed equal to the output line speed. The caveats described under
  2714. ‘cfsetispeed’ apply equally to ‘cfsetibaud’. As for ‘cfsetispeed’,
  2715. this usage is deprecated.
  2716. If BAUD is not a plausible line speed or 0, ‘cfsetibaud’ returns -1
  2717. and sets ‘errno’ to ‘EINVAL’.
  2718. -- Function: int cfsetbaud (struct termios *TERMIOS-P, baud_t BAUD)
  2719. Preliminary: | MT-Safe | AS-Safe | AC-Safe | *Note POSIX Safety
  2720. Concepts::.
  2721. This function stores BAUD in ‘*TERMIOS-P’ as both the input and
  2722. output line speeds.
  2723. If BAUD is not a plausible line speed, ‘cfsetbaud’ returns -1 and
  2724. sets ‘errno’ to ‘EINVAL’.
  2725. 
  2726. File: libc.info, Node: Special Characters, Next: Noncanonical Input, Prev: Line Speed, Up: Terminal Modes
  2727. 17.5.9 Special Characters
  2728. -------------------------
  2729. In canonical input, the terminal driver recognizes a number of special
  2730. characters which perform various control functions. These include the
  2731. ERASE character (usually <DEL>) for editing input, and other editing
  2732. characters. The INTR character (normally ‘C-c’) for sending a ‘SIGINT’
  2733. signal, and other signal-raising characters, may be available in either
  2734. canonical or noncanonical input mode. All these characters are
  2735. described in this section.
  2736. The particular characters used are specified in the ‘c_cc’ member of
  2737. the ‘struct termios’ structure. This member is an array; each element
  2738. specifies the character for a particular role. Each element has a
  2739. symbolic constant that stands for the index of that element--for
  2740. example, ‘VINTR’ is the index of the element that specifies the INTR
  2741. character, so storing ‘'='’ in ‘TERMIOS.c_cc[VINTR]’ specifies ‘=’ as
  2742. the INTR character.
  2743. On some systems, you can disable a particular special character
  2744. function by specifying the value ‘_POSIX_VDISABLE’ for that role. This
  2745. value is unequal to any possible character code. *Note Options for
  2746. Files::, for more information about how to tell whether the operating
  2747. system you are using supports ‘_POSIX_VDISABLE’.
  2748. * Menu:
  2749. * Editing Characters:: Special characters that terminate lines and
  2750. delete text, and other editing functions.
  2751. * Signal Characters:: Special characters that send or raise signals
  2752. to or for certain classes of processes.
  2753. * Start/Stop Characters:: Special characters that suspend or resume
  2754. suspended output.
  2755. * Other Special:: Other special characters for BSD systems:
  2756. they can discard output, and print status.
  2757. 
  2758. File: libc.info, Node: Editing Characters, Next: Signal Characters, Up: Special Characters
  2759. 17.5.9.1 Characters for Input Editing
  2760. .....................................
  2761. These special characters are active only in canonical input mode. *Note
  2762. Canonical or Not::.
  2763. -- Macro: int VEOF
  2764. This is the subscript for the EOF character in the special control
  2765. character array. ‘TERMIOS.c_cc[VEOF]’ holds the character itself.
  2766. The EOF character is recognized only in canonical input mode. It
  2767. acts as a line terminator in the same way as a newline character,
  2768. but if the EOF character is typed at the beginning of a line it
  2769. causes ‘read’ to return a byte count of zero, indicating
  2770. end-of-file. The EOF character itself is discarded.
  2771. Usually, the EOF character is ‘C-d’.
  2772. -- Macro: int VEOL
  2773. This is the subscript for the EOL character in the special control
  2774. character array. ‘TERMIOS.c_cc[VEOL]’ holds the character itself.
  2775. The EOL character is recognized only in canonical input mode. It
  2776. acts as a line terminator, just like a newline character. The EOL
  2777. character is not discarded; it is read as the last character in the
  2778. input line.
  2779. You don't need to use the EOL character to make <RET> end a line.
  2780. Just set the ICRNL flag. In fact, this is the default state of
  2781. affairs.
  2782. -- Macro: int VEOL2
  2783. This is the subscript for the EOL2 character in the special control
  2784. character array. ‘TERMIOS.c_cc[VEOL2]’ holds the character itself.
  2785. The EOL2 character works just like the EOL character (see above),
  2786. but it can be a different character. Thus, you can specify two
  2787. characters to terminate an input line, by setting EOL to one of
  2788. them and EOL2 to the other.
  2789. The EOL2 character is a BSD extension; it exists only on BSD
  2790. systems and GNU/Linux and GNU/Hurd systems.
  2791. -- Macro: int VERASE
  2792. This is the subscript for the ERASE character in the special
  2793. control character array. ‘TERMIOS.c_cc[VERASE]’ holds the
  2794. character itself.
  2795. The ERASE character is recognized only in canonical input mode.
  2796. When the user types the erase character, the previous character
  2797. typed is discarded. (If the terminal generates multibyte character
  2798. sequences, this may cause more than one byte of input to be
  2799. discarded.) This cannot be used to erase past the beginning of the
  2800. current line of text. The ERASE character itself is discarded.
  2801. Usually, the ERASE character is <DEL>.
  2802. -- Macro: int VWERASE
  2803. This is the subscript for the WERASE character in the special
  2804. control character array. ‘TERMIOS.c_cc[VWERASE]’ holds the
  2805. character itself.
  2806. The WERASE character is recognized only in canonical mode. It
  2807. erases an entire word of prior input, and any whitespace after it;
  2808. whitespace characters before the word are not erased.
  2809. The definition of a "word" depends on the setting of the
  2810. ‘ALTWERASE’ mode; *note Local Modes::.
  2811. If the ‘ALTWERASE’ mode is not set, a word is defined as a sequence
  2812. of any characters except space or tab.
  2813. If the ‘ALTWERASE’ mode is set, a word is defined as a sequence of
  2814. characters containing only letters, numbers, and underscores,
  2815. optionally followed by one character that is not a letter, number,
  2816. or underscore.
  2817. The WERASE character is usually ‘C-w’.
  2818. This is a BSD extension.
  2819. -- Macro: int VKILL
  2820. This is the subscript for the KILL character in the special control
  2821. character array. ‘TERMIOS.c_cc[VKILL]’ holds the character itself.
  2822. The KILL character is recognized only in canonical input mode.
  2823. When the user types the kill character, the entire contents of the
  2824. current line of input are discarded. The kill character itself is
  2825. discarded too.
  2826. The KILL character is usually ‘C-u’.
  2827. -- Macro: int VREPRINT
  2828. This is the subscript for the REPRINT character in the special
  2829. control character array. ‘TERMIOS.c_cc[VREPRINT]’ holds the
  2830. character itself.
  2831. The REPRINT character is recognized only in canonical mode. It
  2832. reprints the current input line. If some asynchronous output has
  2833. come while you are typing, this lets you see the line you are
  2834. typing clearly again.
  2835. The REPRINT character is usually ‘C-r’.
  2836. This is a BSD extension.
  2837. 
  2838. File: libc.info, Node: Signal Characters, Next: Start/Stop Characters, Prev: Editing Characters, Up: Special Characters
  2839. 17.5.9.2 Characters that Cause Signals
  2840. ......................................
  2841. These special characters may be active in either canonical or
  2842. noncanonical input mode, but only when the ‘ISIG’ flag is set (*note
  2843. Local Modes::).
  2844. -- Macro: int VINTR
  2845. This is the subscript for the INTR character in the special control
  2846. character array. ‘TERMIOS.c_cc[VINTR]’ holds the character itself.
  2847. The INTR (interrupt) character raises a ‘SIGINT’ signal for all
  2848. processes in the foreground job associated with the terminal. The
  2849. INTR character itself is then discarded. *Note Signal Handling::,
  2850. for more information about signals.
  2851. Typically, the INTR character is ‘C-c’.
  2852. -- Macro: int VQUIT
  2853. This is the subscript for the QUIT character in the special control
  2854. character array. ‘TERMIOS.c_cc[VQUIT]’ holds the character itself.
  2855. The QUIT character raises a ‘SIGQUIT’ signal for all processes in
  2856. the foreground job associated with the terminal. The QUIT
  2857. character itself is then discarded. *Note Signal Handling::, for
  2858. more information about signals.
  2859. Typically, the QUIT character is ‘C-\’.
  2860. -- Macro: int VSUSP
  2861. This is the subscript for the SUSP character in the special control
  2862. character array. ‘TERMIOS.c_cc[VSUSP]’ holds the character itself.
  2863. The SUSP (suspend) character is recognized only if the
  2864. implementation supports job control (*note Job Control::). It
  2865. causes a ‘SIGTSTP’ signal to be sent to all processes in the
  2866. foreground job associated with the terminal. The SUSP character
  2867. itself is then discarded. *Note Signal Handling::, for more
  2868. information about signals.
  2869. Typically, the SUSP character is ‘C-z’.
  2870. Few applications disable the normal interpretation of the SUSP
  2871. character. If your program does this, it should provide some other
  2872. mechanism for the user to stop the job. When the user invokes this
  2873. mechanism, the program should send a ‘SIGTSTP’ signal to the process
  2874. group of the process, not just to the process itself. *Note Signaling
  2875. Another Process::.
  2876. -- Macro: int VDSUSP
  2877. This is the subscript for the DSUSP character in the special
  2878. control character array. ‘TERMIOS.c_cc[VDSUSP]’ holds the
  2879. character itself.
  2880. The DSUSP (suspend) character is recognized only if the
  2881. implementation supports job control (*note Job Control::). It
  2882. sends a ‘SIGTSTP’ signal, like the SUSP character, but not right
  2883. away--only when the program tries to read it as input. Not all
  2884. systems with job control support DSUSP; only BSD-compatible systems
  2885. do (including GNU/Hurd systems).
  2886. *Note Signal Handling::, for more information about signals.
  2887. Typically, the DSUSP character is ‘C-y’.
  2888. 
  2889. File: libc.info, Node: Start/Stop Characters, Next: Other Special, Prev: Signal Characters, Up: Special Characters
  2890. 17.5.9.3 Special Characters for Flow Control
  2891. ............................................
  2892. These special characters may be active in either canonical or
  2893. noncanonical input mode, but their use is controlled by the flags ‘IXON’
  2894. and ‘IXOFF’ (*note Input Modes::).
  2895. -- Macro: int VSTART
  2896. This is the subscript for the START character in the special
  2897. control character array. ‘TERMIOS.c_cc[VSTART]’ holds the
  2898. character itself.
  2899. The START character is used to support the ‘IXON’ and ‘IXOFF’ input
  2900. modes. If ‘IXON’ is set, receiving a START character resumes
  2901. suspended output; the START character itself is discarded. If
  2902. ‘IXANY’ is set, receiving any character at all resumes suspended
  2903. output; the resuming character is not discarded unless it is the
  2904. START character. If ‘IXOFF’ is set, the system may also transmit
  2905. START characters to the terminal.
  2906. The usual value for the START character is ‘C-q’. You may not be
  2907. able to change this value--the hardware may insist on using ‘C-q’
  2908. regardless of what you specify.
  2909. -- Macro: int VSTOP
  2910. This is the subscript for the STOP character in the special control
  2911. character array. ‘TERMIOS.c_cc[VSTOP]’ holds the character itself.
  2912. The STOP character is used to support the ‘IXON’ and ‘IXOFF’ input
  2913. modes. If ‘IXON’ is set, receiving a STOP character causes output
  2914. to be suspended; the STOP character itself is discarded. If
  2915. ‘IXOFF’ is set, the system may also transmit STOP characters to the
  2916. terminal, to prevent the input queue from overflowing.
  2917. The usual value for the STOP character is ‘C-s’. You may not be
  2918. able to change this value--the hardware may insist on using ‘C-s’
  2919. regardless of what you specify.
  2920. 
  2921. File: libc.info, Node: Other Special, Prev: Start/Stop Characters, Up: Special Characters
  2922. 17.5.9.4 Other Special Characters
  2923. .................................
  2924. -- Macro: int VLNEXT
  2925. This is the subscript for the LNEXT character in the special
  2926. control character array. ‘TERMIOS.c_cc[VLNEXT]’ holds the
  2927. character itself.
  2928. The LNEXT character is recognized only when ‘IEXTEN’ is set, but in
  2929. both canonical and noncanonical mode. It disables any special
  2930. significance of the next character the user types. Even if the
  2931. character would normally perform some editing function or generate
  2932. a signal, it is read as a plain character. This is the analogue of
  2933. the ‘C-q’ command in Emacs. "LNEXT" stands for "literal next."
  2934. The LNEXT character is usually ‘C-v’.
  2935. This character is available on BSD systems and GNU/Linux and
  2936. GNU/Hurd systems.
  2937. -- Macro: int VDISCARD
  2938. This is the subscript for the DISCARD character in the special
  2939. control character array. ‘TERMIOS.c_cc[VDISCARD]’ holds the
  2940. character itself.
  2941. The DISCARD character is recognized only when ‘IEXTEN’ is set, but
  2942. in both canonical and noncanonical mode. Its effect is to toggle
  2943. the discard-output flag. When this flag is set, all program output
  2944. is discarded. Setting the flag also discards all output currently
  2945. in the output buffer. Typing any other character resets the flag.
  2946. This character is available on BSD systems and GNU/Linux and
  2947. GNU/Hurd systems.
  2948. -- Macro: int VSTATUS
  2949. This is the subscript for the STATUS character in the special
  2950. control character array. ‘TERMIOS.c_cc[VSTATUS]’ holds the
  2951. character itself.
  2952. The STATUS character's effect is to print out a status message
  2953. about how the current process is running.
  2954. The STATUS character is recognized only in canonical mode, and only
  2955. if ‘NOKERNINFO’ is not set.
  2956. This character is available only on BSD systems and GNU/Hurd
  2957. systems.
  2958. 
  2959. File: libc.info, Node: Noncanonical Input, Prev: Special Characters, Up: Terminal Modes
  2960. 17.5.10 Noncanonical Input
  2961. --------------------------
  2962. In noncanonical input mode, the special editing characters such as ERASE
  2963. and KILL are ignored. The system facilities for the user to edit input
  2964. are disabled in noncanonical mode, so that all input characters (unless
  2965. they are special for signal or flow-control purposes) are passed to the
  2966. application program exactly as typed. It is up to the application
  2967. program to give the user ways to edit the input, if appropriate.
  2968. Noncanonical mode offers special parameters called MIN and TIME for
  2969. controlling whether and how long to wait for input to be available. You
  2970. can even use them to avoid ever waiting--to return immediately with
  2971. whatever input is available, or with no input.
  2972. The MIN and TIME are stored in elements of the ‘c_cc’ array, which is
  2973. a member of the ‘struct termios’ structure. Each element of this array
  2974. has a particular role, and each element has a symbolic constant that
  2975. stands for the index of that element. ‘VMIN’ and ‘VTIME’ are the names
  2976. for the indices in the array of the MIN and TIME slots.
  2977. -- Macro: int VMIN
  2978. This is the subscript for the MIN slot in the ‘c_cc’ array. Thus,
  2979. ‘TERMIOS.c_cc[VMIN]’ is the value itself.
  2980. The MIN slot is only meaningful in noncanonical input mode; it
  2981. specifies the minimum number of bytes that must be available in the
  2982. input queue in order for ‘read’ to return.
  2983. -- Macro: int VTIME
  2984. This is the subscript for the TIME slot in the ‘c_cc’ array. Thus,
  2985. ‘TERMIOS.c_cc[VTIME]’ is the value itself.
  2986. The TIME slot is only meaningful in noncanonical input mode; it
  2987. specifies how long to wait for input before returning, in units of
  2988. 0.1 seconds.
  2989. The MIN and TIME values interact to determine the criterion for when
  2990. ‘read’ should return; their precise meanings depend on which of them are
  2991. nonzero. There are four possible cases:
  2992. • Both TIME and MIN are nonzero.
  2993. In this case, TIME specifies how long to wait after each input
  2994. character to see if more input arrives. After the first character
  2995. received, ‘read’ keeps waiting until either MIN bytes have arrived
  2996. in all, or TIME elapses with no further input.
  2997. ‘read’ always blocks until the first character arrives, even if
  2998. TIME elapses first. ‘read’ can return more than MIN characters if
  2999. more than MIN happen to be in the queue.
  3000. • Both MIN and TIME are zero.
  3001. In this case, ‘read’ always returns immediately with as many
  3002. characters as are available in the queue, up to the number
  3003. requested. If no input is immediately available, ‘read’ returns a
  3004. value of zero.
  3005. • MIN is zero but TIME has a nonzero value.
  3006. In this case, ‘read’ waits for time TIME for input to become
  3007. available; the availability of a single byte is enough to satisfy
  3008. the read request and cause ‘read’ to return. When it returns, it
  3009. returns as many characters as are available, up to the number
  3010. requested. If no input is available before the timer expires,
  3011. ‘read’ returns a value of zero.
  3012. • TIME is zero but MIN has a nonzero value.
  3013. In this case, ‘read’ waits until at least MIN bytes are available
  3014. in the queue. At that time, ‘read’ returns as many characters as
  3015. are available, up to the number requested. ‘read’ can return more
  3016. than MIN characters if more than MIN happen to be in the queue.
  3017. What happens if MIN is 50 and you ask to read just 10 bytes?
  3018. Normally, ‘read’ waits until there are 50 bytes in the buffer (or, more
  3019. generally, the wait condition described above is satisfied), and then
  3020. reads 10 of them, leaving the other 40 buffered in the operating system
  3021. for a subsequent call to ‘read’.
  3022. *Portability note:* On some systems, the MIN and TIME slots are
  3023. actually the same as the EOF and EOL slots. This causes no serious
  3024. problem because the MIN and TIME slots are used only in noncanonical
  3025. input and the EOF and EOL slots are used only in canonical input, but it
  3026. isn't very clean. The GNU C Library allocates separate slots for these
  3027. uses.
  3028. -- Function: void cfmakeraw (struct termios *TERMIOS-P)
  3029. Preliminary: | MT-Safe | AS-Safe | AC-Safe | *Note POSIX Safety
  3030. Concepts::.
  3031. This function provides an easy way to set up ‘*TERMIOS-P’ for what
  3032. has traditionally been called "raw mode" in BSD. This uses
  3033. noncanonical input, and turns off most processing to give an
  3034. unmodified channel to the terminal.
  3035. It does exactly this:
  3036. TERMIOS-P->c_iflag &= ~(IGNBRK|BRKINT|PARMRK|ISTRIP
  3037. |INLCR|IGNCR|ICRNL|IXON);
  3038. TERMIOS-P->c_oflag &= ~OPOST;
  3039. TERMIOS-P->c_lflag &= ~(ECHO|ECHONL|ICANON|ISIG|IEXTEN);
  3040. TERMIOS-P->c_cflag &= ~(CSIZE|PARENB);
  3041. TERMIOS-P->c_cflag |= CS8;
  3042. 
  3043. File: libc.info, Node: BSD Terminal Modes, Next: Line Control, Prev: Terminal Modes, Up: Low-Level Terminal Interface
  3044. 17.6 BSD Terminal Modes
  3045. =======================
  3046. The usual way to get and set terminal modes is with the functions
  3047. described in *note Terminal Modes::. However, on some systems you can
  3048. use the BSD-derived functions in this section to do some of the same
  3049. things. On many systems, these functions do not exist. Even with the
  3050. GNU C Library, the functions simply fail with ‘errno’ = ‘ENOSYS’ with
  3051. many kernels, including Linux.
  3052. The symbols used in this section are declared in ‘sgtty.h’.
  3053. -- Data Type: struct sgttyb
  3054. This structure is an input or output parameter list for ‘gtty’ and
  3055. ‘stty’.
  3056. ‘char sg_ispeed’
  3057. Line speed for input
  3058. ‘char sg_ospeed’
  3059. Line speed for output
  3060. ‘char sg_erase’
  3061. Erase character
  3062. ‘char sg_kill’
  3063. Kill character
  3064. ‘int sg_flags’
  3065. Various flags
  3066. -- Function: int gtty (int FILEDES, struct sgttyb *ATTRIBUTES)
  3067. Preliminary: | MT-Safe | AS-Safe | AC-Safe | *Note POSIX Safety
  3068. Concepts::.
  3069. This function gets the attributes of a terminal.
  3070. ‘gtty’ sets *ATTRIBUTES to describe the terminal attributes of the
  3071. terminal which is open with file descriptor FILEDES.
  3072. -- Function: int stty (int FILEDES, const struct sgttyb *ATTRIBUTES)
  3073. Preliminary: | MT-Safe | AS-Safe | AC-Safe | *Note POSIX Safety
  3074. Concepts::.
  3075. This function sets the attributes of a terminal.
  3076. ‘stty’ sets the terminal attributes of the terminal which is open
  3077. with file descriptor FILEDES to those described by *ATTRIBUTES.
  3078. 
  3079. File: libc.info, Node: Line Control, Next: Noncanon Example, Prev: BSD Terminal Modes, Up: Low-Level Terminal Interface
  3080. 17.7 Line Control Functions
  3081. ===========================
  3082. These functions perform miscellaneous control actions on terminal
  3083. devices. As regards terminal access, they are treated like doing
  3084. output: if any of these functions is used by a background process on its
  3085. controlling terminal, normally all processes in the process group are
  3086. sent a ‘SIGTTOU’ signal. The exception is if the calling process itself
  3087. is ignoring or blocking ‘SIGTTOU’ signals, in which case the operation
  3088. is performed and no signal is sent. *Note Job Control::.
  3089. -- Function: int tcsendbreak (int FILEDES, int DURATION)
  3090. Preliminary: | MT-Unsafe race:tcattr(filedes)/bsd | AS-Unsafe |
  3091. AC-Unsafe corrupt/bsd | *Note POSIX Safety Concepts::.
  3092. This function generates a break condition by transmitting a stream
  3093. of zero bits on the terminal associated with the file descriptor
  3094. FILEDES. The duration of the break is controlled by the DURATION
  3095. argument. If zero, the duration is between 0.25 and 0.5 seconds.
  3096. The meaning of a nonzero value depends on the operating system.
  3097. This function does nothing if the terminal is not an asynchronous
  3098. serial data port.
  3099. The return value is normally zero. In the event of an error, a
  3100. value of -1 is returned. The following ‘errno’ error conditions
  3101. are defined for this function:
  3102. ‘EBADF’
  3103. The FILEDES is not a valid file descriptor.
  3104. ‘ENOTTY’
  3105. The FILEDES is not associated with a terminal device.
  3106. -- Function: int tcdrain (int FILEDES)
  3107. Preliminary: | MT-Safe | AS-Safe | AC-Safe | *Note POSIX Safety
  3108. Concepts::.
  3109. The ‘tcdrain’ function waits until all queued output to the
  3110. terminal FILEDES has been transmitted.
  3111. This function is a cancellation point in multi-threaded programs.
  3112. This is a problem if the thread allocates some resources (like
  3113. memory, file descriptors, semaphores or whatever) at the time
  3114. ‘tcdrain’ is called. If the thread gets canceled these resources
  3115. stay allocated until the program ends. To avoid this calls to
  3116. ‘tcdrain’ should be protected using cancellation handlers.
  3117. The return value is normally zero. In the event of an error, a
  3118. value of -1 is returned. The following ‘errno’ error conditions
  3119. are defined for this function:
  3120. ‘EBADF’
  3121. The FILEDES is not a valid file descriptor.
  3122. ‘ENOTTY’
  3123. The FILEDES is not associated with a terminal device.
  3124. ‘EINTR’
  3125. The operation was interrupted by delivery of a signal. *Note
  3126. Interrupted Primitives::.
  3127. -- Function: int tcflush (int FILEDES, int QUEUE)
  3128. Preliminary: | MT-Safe | AS-Safe | AC-Safe | *Note POSIX Safety
  3129. Concepts::.
  3130. The ‘tcflush’ function is used to clear the input and/or output
  3131. queues associated with the terminal file FILEDES. The QUEUE
  3132. argument specifies which queue(s) to clear, and can be one of the
  3133. following values:
  3134. ‘TCIFLUSH’
  3135. Clear any input data received, but not yet read.
  3136. ‘TCOFLUSH’
  3137. Clear any output data written, but not yet transmitted.
  3138. ‘TCIOFLUSH’
  3139. Clear both queued input and output.
  3140. The return value is normally zero. In the event of an error, a
  3141. value of -1 is returned. The following ‘errno’ error conditions
  3142. are defined for this function:
  3143. ‘EBADF’
  3144. The FILEDES is not a valid file descriptor.
  3145. ‘ENOTTY’
  3146. The FILEDES is not associated with a terminal device.
  3147. ‘EINVAL’
  3148. A bad value was supplied as the QUEUE argument.
  3149. It is unfortunate that this function is named ‘tcflush’, because
  3150. the term "flush" is normally used for quite another
  3151. operation--waiting until all output is transmitted--and using it
  3152. for discarding input or output would be confusing. Unfortunately,
  3153. the name ‘tcflush’ comes from POSIX and we cannot change it.
  3154. -- Function: int tcflow (int FILEDES, int ACTION)
  3155. Preliminary: | MT-Unsafe race:tcattr(filedes)/bsd | AS-Unsafe |
  3156. AC-Safe | *Note POSIX Safety Concepts::.
  3157. The ‘tcflow’ function is used to perform operations relating to
  3158. XON/XOFF flow control on the terminal file specified by FILEDES.
  3159. The ACTION argument specifies what operation to perform, and can be
  3160. one of the following values:
  3161. ‘TCOOFF’
  3162. Suspend transmission of output.
  3163. ‘TCOON’
  3164. Restart transmission of output.
  3165. ‘TCIOFF’
  3166. Transmit a STOP character.
  3167. ‘TCION’
  3168. Transmit a START character.
  3169. For more information about the STOP and START characters, see *note
  3170. Special Characters::.
  3171. The return value is normally zero. In the event of an error, a
  3172. value of -1 is returned. The following ‘errno’ error conditions
  3173. are defined for this function:
  3174. ‘EBADF’
  3175. The FILEDES is not a valid file descriptor.
  3176. ‘ENOTTY’
  3177. The FILEDES is not associated with a terminal device.
  3178. ‘EINVAL’
  3179. A bad value was supplied as the ACTION argument.
  3180. 
  3181. File: libc.info, Node: Noncanon Example, Next: getpass, Prev: Line Control, Up: Low-Level Terminal Interface
  3182. 17.8 Noncanonical Mode Example
  3183. ==============================
  3184. Here is an example program that shows how you can set up a terminal
  3185. device to read single characters in noncanonical input mode, without
  3186. echo.
  3187. #include <unistd.h>
  3188. #include <stdio.h>
  3189. #include <stdlib.h>
  3190. #include <termios.h>
  3191. /* Use this variable to remember original terminal attributes. */
  3192. struct termios saved_attributes;
  3193. void
  3194. reset_input_mode (void)
  3195. {
  3196. tcsetattr (STDIN_FILENO, TCSANOW, &saved_attributes);
  3197. }
  3198. void
  3199. set_input_mode (void)
  3200. {
  3201. struct termios tattr;
  3202. /* Make sure stdin is a terminal. */
  3203. if (!isatty (STDIN_FILENO))
  3204. {
  3205. fprintf (stderr, "Not a terminal.\n");
  3206. exit (EXIT_FAILURE);
  3207. }
  3208. /* Save the terminal attributes so we can restore them later. */
  3209. tcgetattr (STDIN_FILENO, &saved_attributes);
  3210. atexit (reset_input_mode);
  3211. /* Set the funny terminal modes. */
  3212. tcgetattr (STDIN_FILENO, &tattr);
  3213. tattr.c_lflag &= ~(ICANON|ECHO); /* Clear ICANON and ECHO. */
  3214. tattr.c_cc[VMIN] = 1;
  3215. tattr.c_cc[VTIME] = 0;
  3216. tcsetattr (STDIN_FILENO, TCSAFLUSH, &tattr);
  3217. }
  3218. int
  3219. main (void)
  3220. {
  3221. char c;
  3222. set_input_mode ();
  3223. while (1)
  3224. {
  3225. read (STDIN_FILENO, &c, 1);
  3226. if (c == '\004') /* ‘C-d’ */
  3227. break;
  3228. else
  3229. write (STDOUT_FILENO, &c, 1);
  3230. }
  3231. return EXIT_SUCCESS;
  3232. }
  3233. This program is careful to restore the original terminal modes before
  3234. exiting or terminating with a signal. It uses the ‘atexit’ function
  3235. (*note Cleanups on Exit::) to make sure this is done by ‘exit’.
  3236. The shell is supposed to take care of resetting the terminal modes
  3237. when a process is stopped or continued; see *note Job Control::. But
  3238. some existing shells do not actually do this, so you may wish to
  3239. establish handlers for job control signals that reset terminal modes.
  3240. The above example does so.
  3241. 
  3242. File: libc.info, Node: getpass, Next: Pseudo-Terminals, Prev: Noncanon Example, Up: Low-Level Terminal Interface
  3243. 17.9 Reading Passphrases
  3244. ========================
  3245. When reading in a passphrase, it is desirable to avoid displaying it on
  3246. the screen, to help keep it secret. The following function handles this
  3247. in a convenient way.
  3248. -- Function: char * getpass (const char *PROMPT)
  3249. Preliminary: | MT-Unsafe term | AS-Unsafe heap lock corrupt |
  3250. AC-Unsafe term lock corrupt | *Note POSIX Safety Concepts::.
  3251. ‘getpass’ outputs PROMPT, then reads a string in from the terminal
  3252. without echoing it. It tries to connect to the real terminal,
  3253. ‘/dev/tty’, if possible, to encourage users not to put plaintext
  3254. passphrases in files; otherwise, it uses ‘stdin’ and ‘stderr’.
  3255. ‘getpass’ also disables the INTR, QUIT, and SUSP characters on the
  3256. terminal using the ‘ISIG’ terminal attribute (*note Local Modes::).
  3257. The terminal is flushed before and after ‘getpass’, so that
  3258. characters of a mistyped passphrase are not accidentally visible.
  3259. In other C libraries, ‘getpass’ may only return the first
  3260. ‘PASS_MAX’ bytes of a passphrase. The GNU C Library has no limit,
  3261. so ‘PASS_MAX’ is undefined.
  3262. The prototype for this function is in ‘unistd.h’. ‘PASS_MAX’ would
  3263. be defined in ‘limits.h’.
  3264. This precise set of operations may not suit all possible situations.
  3265. In this case, it is recommended that users write their own ‘getpass’
  3266. substitute. For instance, a very simple substitute is as follows:
  3267. #include <termios.h>
  3268. #include <stdio.h>
  3269. ssize_t
  3270. my_getpass (char **lineptr, size_t *n, FILE *stream)
  3271. {
  3272. struct termios old, new;
  3273. int nread;
  3274. /* Turn echoing off and fail if we can't. */
  3275. if (tcgetattr (fileno (stream), &old) != 0)
  3276. return -1;
  3277. new = old;
  3278. new.c_lflag &= ~ECHO;
  3279. if (tcsetattr (fileno (stream), TCSAFLUSH, &new) != 0)
  3280. return -1;
  3281. /* Read the passphrase */
  3282. nread = getline (lineptr, n, stream);
  3283. /* Restore terminal. */
  3284. (void) tcsetattr (fileno (stream), TCSAFLUSH, &old);
  3285. return nread;
  3286. }
  3287. The substitute takes the same parameters as ‘getline’ (*note Line
  3288. Input::); the user must print any prompt desired.
  3289. 
  3290. File: libc.info, Node: Pseudo-Terminals, Prev: getpass, Up: Low-Level Terminal Interface
  3291. 17.10 Pseudo-Terminals
  3292. ======================
  3293. A “pseudo-terminal” is a special interprocess communication channel that
  3294. acts like a terminal. One end of the channel is called the “master”
  3295. side or “master pseudo-terminal device”, the other side is called the
  3296. “slave” side. Data written to the master side is received by the slave
  3297. side as if it was the result of a user typing at an ordinary terminal,
  3298. and data written to the slave side is sent to the master side as if it
  3299. was written on an ordinary terminal.
  3300. Pseudo terminals are the way programs like ‘xterm’ and ‘emacs’
  3301. implement their terminal emulation functionality.
  3302. * Menu:
  3303. * Allocation:: Allocating a pseudo terminal.
  3304. * Pseudo-Terminal Pairs:: How to open both sides of a
  3305. pseudo-terminal in a single operation.
  3306. 
  3307. File: libc.info, Node: Allocation, Next: Pseudo-Terminal Pairs, Up: Pseudo-Terminals
  3308. 17.10.1 Allocating Pseudo-Terminals
  3309. -----------------------------------
  3310. This subsection describes functions for allocating a pseudo-terminal,
  3311. and for making this pseudo-terminal available for actual use. These
  3312. functions are declared in the header file ‘stdlib.h’.
  3313. -- Function: int posix_openpt (int FLAGS)
  3314. Preliminary: | MT-Safe | AS-Safe | AC-Safe fd | *Note POSIX Safety
  3315. Concepts::.
  3316. ‘posix_openpt’ returns a new file descriptor for the next available
  3317. master pseudo-terminal. In the case of an error, it returns a
  3318. value of -1 instead, and sets ‘errno’ to indicate the error. *Note
  3319. Opening and Closing Files:: for possible values of ‘errno’.
  3320. FLAGS is a bit mask created from a bitwise OR of zero or more of
  3321. the following flags:
  3322. ‘O_RDWR’
  3323. Open the device for both reading and writing. It is usual to
  3324. specify this flag.
  3325. ‘O_NOCTTY’
  3326. Do not make the device the controlling terminal for the
  3327. process.
  3328. These flags are defined in ‘fcntl.h’. *Note Access Modes::.
  3329. For this function to be available, ‘_XOPEN_SOURCE’ must be defined
  3330. to a value greater than ‘600’. *Note Feature Test Macros::.
  3331. -- Function: int getpt (void)
  3332. Preliminary: | MT-Safe | AS-Safe | AC-Safe fd | *Note POSIX Safety
  3333. Concepts::.
  3334. ‘getpt’ is similar to ‘posix_openpt’. This function is a GNU
  3335. extension and should not be used in portable programs.
  3336. The ‘getpt’ function returns a new file descriptor for the next
  3337. available master pseudo-terminal. The normal return value from
  3338. ‘getpt’ is a non-negative integer file descriptor. In the case of
  3339. an error, a value of -1 is returned instead. The following ‘errno’
  3340. conditions are defined for this function:
  3341. ‘ENOENT’
  3342. There are no free master pseudo-terminals available.
  3343. -- Function: int grantpt (int FILEDES)
  3344. Preliminary: | MT-Safe locale | AS-Unsafe dlopen plugin heap lock |
  3345. AC-Unsafe corrupt lock fd mem | *Note POSIX Safety Concepts::.
  3346. The ‘grantpt’ function changes the ownership and access permission
  3347. of the slave pseudo-terminal device corresponding to the master
  3348. pseudo-terminal device associated with the file descriptor FILEDES.
  3349. The owner is set from the real user ID of the calling process
  3350. (*note Process Persona::), and the group is set to a special group
  3351. (typically “tty”) or from the real group ID of the calling process.
  3352. The access permission is set such that the file is both readable
  3353. and writable by the owner and only writable by the group.
  3354. On some systems this function is implemented by invoking a special
  3355. ‘setuid’ root program (*note How Change Persona::). As a
  3356. consequence, installing a signal handler for the ‘SIGCHLD’ signal
  3357. (*note Job Control Signals::) may interfere with a call to
  3358. ‘grantpt’.
  3359. The normal return value from ‘grantpt’ is 0; a value of -1 is
  3360. returned in case of failure. The following ‘errno’ error
  3361. conditions are defined for this function:
  3362. ‘EBADF’
  3363. The FILEDES argument is not a valid file descriptor.
  3364. ‘EINVAL’
  3365. The FILEDES argument is not associated with a master
  3366. pseudo-terminal device.
  3367. ‘EACCES’
  3368. The slave pseudo-terminal device corresponding to the master
  3369. associated with FILEDES could not be accessed.
  3370. -- Function: int unlockpt (int FILEDES)
  3371. Preliminary: | MT-Safe | AS-Unsafe heap/bsd | AC-Unsafe mem fd |
  3372. *Note POSIX Safety Concepts::.
  3373. The ‘unlockpt’ function unlocks the slave pseudo-terminal device
  3374. corresponding to the master pseudo-terminal device associated with
  3375. the file descriptor FILEDES. On many systems, the slave can only
  3376. be opened after unlocking, so portable applications should always
  3377. call ‘unlockpt’ before trying to open the slave.
  3378. The normal return value from ‘unlockpt’ is 0; a value of -1 is
  3379. returned in case of failure. The following ‘errno’ error
  3380. conditions are defined for this function:
  3381. ‘EBADF’
  3382. The FILEDES argument is not a valid file descriptor.
  3383. ‘EINVAL’
  3384. The FILEDES argument is not associated with a master
  3385. pseudo-terminal device.
  3386. -- Function: char * ptsname (int FILEDES)
  3387. Preliminary: | MT-Unsafe race:ptsname | AS-Unsafe heap/bsd |
  3388. AC-Unsafe mem fd | *Note POSIX Safety Concepts::.
  3389. If the file descriptor FILEDES is associated with a master
  3390. pseudo-terminal device, the ‘ptsname’ function returns a pointer to
  3391. a statically-allocated, null-terminated string containing the file
  3392. name of the associated slave pseudo-terminal file. This string
  3393. might be overwritten by subsequent calls to ‘ptsname’.
  3394. -- Function: int ptsname_r (int FILEDES, char *BUF, size_t LEN)
  3395. Preliminary: | MT-Safe | AS-Unsafe heap/bsd | AC-Unsafe mem fd |
  3396. *Note POSIX Safety Concepts::.
  3397. The ‘ptsname_r’ function is similar to the ‘ptsname’ function
  3398. except that it places its result into the user-specified buffer
  3399. starting at BUF with length LEN.
  3400. This function was originally a GNU extension, but was added in
  3401. POSIX.1-2024.
  3402. Typical usage of these functions is illustrated by the following
  3403. example:
  3404. int
  3405. open_pty_pair (int *amaster, int *aslave)
  3406. {
  3407. int master, slave;
  3408. char *name;
  3409. master = posix_openpt (O_RDWR | O_NOCTTY);
  3410. if (master < 0)
  3411. return 0;
  3412. if (grantpt (master) < 0 || unlockpt (master) < 0)
  3413. goto close_master;
  3414. name = ptsname (master);
  3415. if (name == NULL)
  3416. goto close_master;
  3417. slave = open (name, O_RDWR);
  3418. if (slave == -1)
  3419. goto close_master;
  3420. *amaster = master;
  3421. *aslave = slave;
  3422. return 1;
  3423. close_slave:
  3424. close (slave);
  3425. close_master:
  3426. close (master);
  3427. return 0;
  3428. }
  3429. 
  3430. File: libc.info, Node: Pseudo-Terminal Pairs, Prev: Allocation, Up: Pseudo-Terminals
  3431. 17.10.2 Opening a Pseudo-Terminal Pair
  3432. --------------------------------------
  3433. These functions, derived from BSD, are available in the separate
  3434. ‘libutil’ library, and declared in ‘pty.h’.
  3435. -- Function: int openpty (int *AMASTER, int *ASLAVE, char *NAME, const
  3436. struct termios *TERMP, const struct winsize *WINP)
  3437. Preliminary: | MT-Safe locale | AS-Unsafe dlopen plugin heap lock |
  3438. AC-Unsafe corrupt lock fd mem | *Note POSIX Safety Concepts::.
  3439. This function allocates and opens a pseudo-terminal pair, returning
  3440. the file descriptor for the master in *AMASTER, and the file
  3441. descriptor for the slave in *ASLAVE. If the argument NAME is not a
  3442. null pointer, the file name of the slave pseudo-terminal device is
  3443. stored in ‘*name’. If TERMP is not a null pointer, the terminal
  3444. attributes of the slave are set to the ones specified in the
  3445. structure that TERMP points to (*note Terminal Modes::). Likewise,
  3446. if WINP is not a null pointer, the screen size of the slave is set
  3447. to the values specified in the structure that WINP points to.
  3448. The normal return value from ‘openpty’ is 0; a value of -1 is
  3449. returned in case of failure. The following ‘errno’ conditions are
  3450. defined for this function:
  3451. ‘ENOENT’
  3452. There are no free pseudo-terminal pairs available.
  3453. *Warning:* Using the ‘openpty’ function with NAME not set to ‘NULL’
  3454. is *very dangerous* because it provides no protection against
  3455. overflowing the string NAME. You should use the ‘ttyname’ function
  3456. on the file descriptor returned in *SLAVE to find out the file name
  3457. of the slave pseudo-terminal device instead.
  3458. -- Function: int forkpty (int *AMASTER, char *NAME, const struct
  3459. termios *TERMP, const struct winsize *WINP)
  3460. Preliminary: | MT-Safe locale | AS-Unsafe dlopen plugin heap lock |
  3461. AC-Unsafe corrupt lock fd mem | *Note POSIX Safety Concepts::.
  3462. This function is similar to the ‘openpty’ function, but in
  3463. addition, forks a new process (*note Creating a Process::) and
  3464. makes the newly opened slave pseudo-terminal device the controlling
  3465. terminal (*note Controlling Terminal::) for the child process.
  3466. If the operation is successful, there are then both parent and
  3467. child processes and both see ‘forkpty’ return, but with different
  3468. values: it returns a value of 0 in the child process and returns
  3469. the child's process ID in the parent process.
  3470. If the allocation of a pseudo-terminal pair or the process creation
  3471. failed, ‘forkpty’ returns a value of -1 in the parent process.
  3472. *Warning:* The ‘forkpty’ function has the same problems with
  3473. respect to the NAME argument as ‘openpty’.
  3474. 
  3475. File: libc.info, Node: Syslog, Next: Mathematics, Prev: Low-Level Terminal Interface, Up: Top
  3476. 18 Syslog
  3477. *********
  3478. This chapter describes facilities for issuing and logging messages of
  3479. system administration interest. This chapter has nothing to do with
  3480. programs issuing messages to their own users or keeping private logs
  3481. (One would typically do that with the facilities described in *note I/O
  3482. on Streams::).
  3483. Most systems have a facility called "Syslog" that allows programs to
  3484. submit messages of interest to system administrators and can be
  3485. configured to pass these messages on in various ways, such as printing
  3486. on the console, mailing to a particular person, or recording in a log
  3487. file for future reference.
  3488. A program uses the facilities in this chapter to submit such
  3489. messages.
  3490. * Menu:
  3491. * Overview of Syslog:: Overview of a system's Syslog facility
  3492. * Submitting Syslog Messages:: Functions to submit messages to Syslog
  3493. 
  3494. File: libc.info, Node: Overview of Syslog, Next: Submitting Syslog Messages, Up: Syslog
  3495. 18.1 Overview of Syslog
  3496. =======================
  3497. System administrators have to deal with lots of different kinds of
  3498. messages from a plethora of subsystems within each system, and usually
  3499. lots of systems as well. For example, an FTP server might report every
  3500. connection it gets. The kernel might report hardware failures on a disk
  3501. drive. A DNS server might report usage statistics at regular intervals.
  3502. Some of these messages need to be brought to a system administrator's
  3503. attention immediately. And it may not be just any system administrator
  3504. - there may be a particular system administrator who deals with a
  3505. particular kind of message. Other messages just need to be recorded for
  3506. future reference if there is a problem. Still others may need to have
  3507. information extracted from them by an automated process that generates
  3508. monthly reports.
  3509. To deal with these messages, most Unix systems have a facility called
  3510. "Syslog." It is generally based on a daemon called "Syslogd" Syslogd
  3511. listens for messages on a Unix domain socket named ‘/dev/log’. Based on
  3512. classification information in the messages and its configuration file
  3513. (usually ‘/etc/syslog.conf’), Syslogd routes them in various ways. Some
  3514. of the popular routings are:
  3515. • Write to the system console
  3516. • Mail to a specific user
  3517. • Write to a log file
  3518. • Pass to another daemon
  3519. • Discard
  3520. Syslogd can also handle messages from other systems. It listens on
  3521. the ‘syslog’ UDP port as well as the local socket for messages.
  3522. Syslog can handle messages from the kernel itself. But the kernel
  3523. doesn't write to ‘/dev/log’; rather, another daemon (sometimes called
  3524. "Klogd") extracts messages from the kernel and passes them on to Syslog
  3525. as any other process would (and it properly identifies them as messages
  3526. from the kernel).
  3527. Syslog can even handle messages that the kernel issued before Syslogd
  3528. or Klogd was running. A Linux kernel, for example, stores startup
  3529. messages in a kernel message ring and they are normally still there when
  3530. Klogd later starts up. Assuming Syslogd is running by the time Klogd
  3531. starts, Klogd then passes everything in the message ring to it.
  3532. In order to classify messages for disposition, Syslog requires any
  3533. process that submits a message to it to provide two pieces of
  3534. classification information with it:
  3535. facility
  3536. This identifies who submitted the message. There are a small
  3537. number of facilities defined. The kernel, the mail subsystem, and
  3538. an FTP server are examples of recognized facilities. For the
  3539. complete list, *Note syslog; vsyslog::. Keep in mind that these
  3540. are essentially arbitrary classifications. "Mail subsystem"
  3541. doesn't have any more meaning than the system administrator gives
  3542. to it.
  3543. priority
  3544. This tells how important the content of the message is. Examples
  3545. of defined priority values are: debug, informational, warning and
  3546. critical. For the complete list, see *note syslog; vsyslog::.
  3547. Except for the fact that the priorities have a defined order, the
  3548. meaning of each of these priorities is entirely determined by the
  3549. system administrator.
  3550. A "facility/priority" is a number that indicates both the facility
  3551. and the priority.
  3552. *Warning:* This terminology is not universal. Some people use
  3553. "level" to refer to the priority and "priority" to refer to the
  3554. combination of facility and priority. A Linux kernel has a concept of a
  3555. message "level," which corresponds both to a Syslog priority and to a
  3556. Syslog facility/priority (It can be both because the facility code for
  3557. the kernel is zero, and that makes priority and facility/priority the
  3558. same value).
  3559. The GNU C Library provides functions to submit messages to Syslog.
  3560. They do it by writing to the ‘/dev/log’ socket. *Note Submitting Syslog
  3561. Messages::.
  3562. The GNU C Library functions only work to submit messages to the
  3563. Syslog facility on the same system. To submit a message to the Syslog
  3564. facility on another system, use the socket I/O functions to write a UDP
  3565. datagram to the ‘syslog’ UDP port on that system. *Note Sockets::.
  3566. 
  3567. File: libc.info, Node: Submitting Syslog Messages, Prev: Overview of Syslog, Up: Syslog
  3568. 18.2 Submitting Syslog Messages
  3569. ===============================
  3570. The GNU C Library provides functions to submit messages to the Syslog
  3571. facility:
  3572. * Menu:
  3573. * openlog:: Open connection to Syslog
  3574. * syslog; vsyslog:: Submit message to Syslog
  3575. * closelog:: Close connection to Syslog
  3576. * setlogmask:: Cause certain messages to be ignored
  3577. * Syslog Example:: Example of all of the above
  3578. These functions only work to submit messages to the Syslog facility
  3579. on the same system. To submit a message to the Syslog facility on
  3580. another system, use the socket I/O functions to write a UDP datagram to
  3581. the ‘syslog’ UDP port on that system. *Note Sockets::.
  3582. 
  3583. File: libc.info, Node: openlog, Next: syslog; vsyslog, Up: Submitting Syslog Messages
  3584. 18.2.1 openlog
  3585. --------------
  3586. The symbols referred to in this section are declared in the file
  3587. ‘syslog.h’.
  3588. -- Function: void openlog (const char *IDENT, int OPTION, int FACILITY)
  3589. Preliminary: | MT-Safe | AS-Unsafe lock | AC-Unsafe lock fd | *Note
  3590. POSIX Safety Concepts::.
  3591. ‘openlog’ opens or reopens a connection to Syslog in preparation
  3592. for submitting messages.
  3593. IDENT is an arbitrary identification string which future ‘syslog’
  3594. invocations will prefix to each message. This is intended to
  3595. identify the source of the message, and people conventionally set
  3596. it to the name of the program that will submit the messages.
  3597. If IDENT is NULL, or if ‘openlog’ is not called, the default
  3598. identification string used in Syslog messages will be the program
  3599. name, taken from argv[0].
  3600. Please note that the string pointer IDENT will be retained
  3601. internally by the Syslog routines. You must not free the memory
  3602. that IDENT points to. It is also dangerous to pass a reference to
  3603. an automatic variable since leaving the scope would mean ending the
  3604. lifetime of the variable. If you want to change the IDENT string,
  3605. you must call ‘openlog’ again; overwriting the string pointed to by
  3606. IDENT is not thread-safe.
  3607. You can cause the Syslog routines to drop the reference to IDENT
  3608. and go back to the default string (the program name taken from
  3609. argv[0]), by calling ‘closelog’: *Note closelog::.
  3610. In particular, if you are writing code for a shared library that
  3611. might get loaded and then unloaded (e.g. a PAM module), and you
  3612. use ‘openlog’, you must call ‘closelog’ before any point where your
  3613. library might get unloaded, as in this example:
  3614. #include <syslog.h>
  3615. void
  3616. shared_library_function (void)
  3617. {
  3618. openlog ("mylibrary", option, priority);
  3619. syslog (LOG_INFO, "shared library has been invoked");
  3620. closelog ();
  3621. }
  3622. Without the call to ‘closelog’, future invocations of ‘syslog’ by
  3623. the program using the shared library may crash, if the library gets
  3624. unloaded and the memory containing the string ‘"mylibrary"’ becomes
  3625. unmapped. This is a limitation of the BSD syslog interface.
  3626. ‘openlog’ may or may not open the ‘/dev/log’ socket, depending on
  3627. OPTION. If it does, it tries to open it and connect it as a stream
  3628. socket. If that doesn't work, it tries to open it and connect it
  3629. as a datagram socket. The socket has the "Close on Exec"
  3630. attribute, so the kernel will close it if the process performs an
  3631. exec.
  3632. You don't have to use ‘openlog’. If you call ‘syslog’ without
  3633. having called ‘openlog’, ‘syslog’ just opens the connection
  3634. implicitly and uses defaults for the information in IDENT and
  3635. OPTIONS.
  3636. OPTIONS is a bit string, with the bits as defined by the following
  3637. single bit masks:
  3638. ‘LOG_PERROR’
  3639. If on, ‘openlog’ sets up the connection so that any ‘syslog’
  3640. on this connection writes its message to the calling process'
  3641. Standard Error stream in addition to submitting it to Syslog.
  3642. If off, ‘syslog’ does not write the message to Standard Error.
  3643. ‘LOG_CONS’
  3644. If on, ‘openlog’ sets up the connection so that a ‘syslog’ on
  3645. this connection that fails to submit a message to Syslog
  3646. writes the message instead to system console. If off,
  3647. ‘syslog’ does not write to the system console (but of course
  3648. Syslog may write messages it receives to the console).
  3649. ‘LOG_PID’
  3650. When on, ‘openlog’ sets up the connection so that a ‘syslog’
  3651. on this connection inserts the calling process' Process ID
  3652. (PID) into the message. When off, ‘openlog’ does not insert
  3653. the PID.
  3654. ‘LOG_NDELAY’
  3655. When on, ‘openlog’ opens and connects the ‘/dev/log’ socket.
  3656. When off, a future ‘syslog’ call must open and connect the
  3657. socket.
  3658. *Portability note:* In early systems, the sense of this bit
  3659. was exactly the opposite.
  3660. ‘LOG_ODELAY’
  3661. This bit does nothing. It exists for backward compatibility.
  3662. If any other bit in OPTIONS is on, the result is undefined.
  3663. FACILITY is the default facility code for this connection. A
  3664. ‘syslog’ on this connection that specifies default facility causes
  3665. this facility to be associated with the message. See ‘syslog’ for
  3666. possible values. A value of zero means the default, which is
  3667. ‘LOG_USER’.
  3668. If a Syslog connection is already open when you call ‘openlog’,
  3669. ‘openlog’ "reopens" the connection. Reopening is like opening
  3670. except that if you specify zero for the default facility code, the
  3671. default facility code simply remains unchanged and if you specify
  3672. LOG_NDELAY and the socket is already open and connected, ‘openlog’
  3673. just leaves it that way.
  3674. 
  3675. File: libc.info, Node: syslog; vsyslog, Next: closelog, Prev: openlog, Up: Submitting Syslog Messages
  3676. 18.2.2 syslog, vsyslog
  3677. ----------------------
  3678. The symbols referred to in this section are declared in the file
  3679. ‘syslog.h’.
  3680. -- Function: void syslog (int FACILITY_PRIORITY, const char *FORMAT,
  3681. ...)
  3682. Preliminary: | MT-Safe env locale | AS-Unsafe corrupt heap lock
  3683. dlopen | AC-Unsafe corrupt lock mem fd | *Note POSIX Safety
  3684. Concepts::.
  3685. ‘syslog’ submits a message to the Syslog facility. It does this by
  3686. writing to the Unix domain socket ‘/dev/log’.
  3687. ‘syslog’ submits the message with the facility and priority
  3688. indicated by FACILITY_PRIORITY. The macro ‘LOG_MAKEPRI’ generates
  3689. a facility/priority from a facility and a priority, as in the
  3690. following example:
  3691. LOG_MAKEPRI(LOG_USER, LOG_WARNING)
  3692. The possible values for the facility code are (macros):
  3693. ‘LOG_USER’
  3694. A miscellaneous user process
  3695. ‘LOG_MAIL’
  3696. Mail
  3697. ‘LOG_DAEMON’
  3698. A miscellaneous system daemon
  3699. ‘LOG_AUTH’
  3700. Security (authorization)
  3701. ‘LOG_SYSLOG’
  3702. Syslog
  3703. ‘LOG_LPR’
  3704. Central printer
  3705. ‘LOG_NEWS’
  3706. Network news (e.g. Usenet)
  3707. ‘LOG_UUCP’
  3708. UUCP
  3709. ‘LOG_CRON’
  3710. Cron and At
  3711. ‘LOG_AUTHPRIV’
  3712. Private security (authorization)
  3713. ‘LOG_FTP’
  3714. Ftp server
  3715. ‘LOG_LOCAL0’
  3716. Locally defined
  3717. ‘LOG_LOCAL1’
  3718. Locally defined
  3719. ‘LOG_LOCAL2’
  3720. Locally defined
  3721. ‘LOG_LOCAL3’
  3722. Locally defined
  3723. ‘LOG_LOCAL4’
  3724. Locally defined
  3725. ‘LOG_LOCAL5’
  3726. Locally defined
  3727. ‘LOG_LOCAL6’
  3728. Locally defined
  3729. ‘LOG_LOCAL7’
  3730. Locally defined
  3731. Results are undefined if the facility code is anything else.
  3732. *NB:* ‘syslog’ recognizes one other facility code: that of the
  3733. kernel. But you can't specify that facility code with these
  3734. functions. If you try, it looks the same to ‘syslog’ as if you are
  3735. requesting the default facility. But you wouldn't want to anyway,
  3736. because any program that uses the GNU C Library is not the kernel.
  3737. You can use just a priority code as FACILITY_PRIORITY. In that
  3738. case, ‘syslog’ assumes the default facility established when the
  3739. Syslog connection was opened. *Note Syslog Example::.
  3740. The possible values for the priority code are (macros):
  3741. ‘LOG_EMERG’
  3742. The message says the system is unusable.
  3743. ‘LOG_ALERT’
  3744. Action on the message must be taken immediately.
  3745. ‘LOG_CRIT’
  3746. The message states a critical condition.
  3747. ‘LOG_ERR’
  3748. The message describes an error.
  3749. ‘LOG_WARNING’
  3750. The message is a warning.
  3751. ‘LOG_NOTICE’
  3752. The message describes a normal but important event.
  3753. ‘LOG_INFO’
  3754. The message is purely informational.
  3755. ‘LOG_DEBUG’
  3756. The message is only for debugging purposes.
  3757. Results are undefined if the priority code is anything else.
  3758. If the process does not presently have a Syslog connection open
  3759. (i.e., it did not call ‘openlog’), ‘syslog’ implicitly opens the
  3760. connection the same as ‘openlog’ would, with the following defaults
  3761. for information that would otherwise be included in an ‘openlog’
  3762. call: The default identification string is the program name. The
  3763. default default facility is ‘LOG_USER’. The default for all the
  3764. connection options in OPTIONS is as if those bits were off.
  3765. ‘syslog’ leaves the Syslog connection open.
  3766. If the ‘/dev/log’ socket is not open and connected, ‘syslog’ opens
  3767. and connects it, the same as ‘openlog’ with the ‘LOG_NDELAY’ option
  3768. would.
  3769. ‘syslog’ leaves ‘/dev/log’ open and connected unless its attempt to
  3770. send the message failed, in which case ‘syslog’ closes it (with the
  3771. hope that a future implicit open will restore the Syslog connection
  3772. to a usable state).
  3773. Example:
  3774. #include <syslog.h>
  3775. syslog (LOG_MAKEPRI(LOG_LOCAL1, LOG_ERROR),
  3776. "Unable to make network connection to %s. Error=%m", host);
  3777. -- Function: void vsyslog (int FACILITY_PRIORITY, const char *FORMAT,
  3778. va_list ARGLIST)
  3779. Preliminary: | MT-Safe env locale | AS-Unsafe corrupt heap lock
  3780. dlopen | AC-Unsafe corrupt lock mem fd | *Note POSIX Safety
  3781. Concepts::.
  3782. This is functionally identical to ‘syslog’, with the BSD style
  3783. variable length argument.
  3784. 
  3785. File: libc.info, Node: closelog, Next: setlogmask, Prev: syslog; vsyslog, Up: Submitting Syslog Messages
  3786. 18.2.3 closelog
  3787. ---------------
  3788. The symbols referred to in this section are declared in the file
  3789. ‘syslog.h’.
  3790. -- Function: void closelog (void)
  3791. Preliminary: | MT-Safe | AS-Unsafe lock | AC-Unsafe lock fd | *Note
  3792. POSIX Safety Concepts::.
  3793. ‘closelog’ closes the current Syslog connection, if there is one.
  3794. This includes closing the ‘/dev/log’ socket, if it is open.
  3795. ‘closelog’ also sets the identification string for Syslog messages
  3796. back to the default, if ‘openlog’ was called with a non-NULL
  3797. argument to IDENT. The default identification string is the
  3798. program name taken from argv[0].
  3799. If you are writing shared library code that uses ‘openlog’ to
  3800. generate custom syslog output, you should use ‘closelog’ to drop
  3801. the GNU C Library's internal reference to the IDENT pointer when
  3802. you are done. Please read the section on ‘openlog’ for more
  3803. information: *Note openlog::.
  3804. ‘closelog’ does not flush any buffers. You do not have to call
  3805. ‘closelog’ before re-opening a Syslog connection with ‘openlog’.
  3806. Syslog connections are automatically closed on exec or exit.
  3807. 
  3808. File: libc.info, Node: setlogmask, Next: Syslog Example, Prev: closelog, Up: Submitting Syslog Messages
  3809. 18.2.4 setlogmask
  3810. -----------------
  3811. The symbols referred to in this section are declared in the file
  3812. ‘syslog.h’.
  3813. -- Function: int setlogmask (int MASK)
  3814. Preliminary: | MT-Safe | AS-Unsafe lock | AC-Unsafe lock | *Note
  3815. POSIX Safety Concepts::.
  3816. ‘setlogmask’ sets a mask (the "logmask") that determines which
  3817. future ‘syslog’ calls shall be ignored. If a program has not
  3818. called ‘setlogmask’, ‘syslog’ doesn't ignore any calls. You can
  3819. use ‘setlogmask’ to specify that messages of particular priorities
  3820. shall be ignored in the future.
  3821. A ‘setlogmask’ call overrides any previous ‘setlogmask’ call.
  3822. Note that the logmask exists entirely independently of opening and
  3823. closing of Syslog connections.
  3824. Setting the logmask has a similar effect to, but is not the same
  3825. as, configuring Syslog. The Syslog configuration may cause Syslog
  3826. to discard certain messages it receives, but the logmask causes
  3827. certain messages never to get submitted to Syslog in the first
  3828. place.
  3829. MASK is a bit string with one bit corresponding to each of the
  3830. possible message priorities. If the bit is on, ‘syslog’ handles
  3831. messages of that priority normally. If it is off, ‘syslog’
  3832. discards messages of that priority. Use the message priority
  3833. macros described in *note syslog; vsyslog:: and the ‘LOG_MASK’ to
  3834. construct an appropriate MASK value, as in this example:
  3835. LOG_MASK(LOG_EMERG) | LOG_MASK(LOG_ERROR)
  3836. or
  3837. ~(LOG_MASK(LOG_INFO))
  3838. There is also a ‘LOG_UPTO’ macro, which generates a mask with the
  3839. bits on for a certain priority and all priorities above it:
  3840. LOG_UPTO(LOG_ERROR)
  3841. The unfortunate naming of the macro is due to the fact that
  3842. internally, higher numbers are used for lower message priorities.
  3843. 
  3844. File: libc.info, Node: Syslog Example, Prev: setlogmask, Up: Submitting Syslog Messages
  3845. 18.2.5 Syslog Example
  3846. ---------------------
  3847. Here is an example of ‘openlog’, ‘syslog’, and ‘closelog’:
  3848. This example sets the logmask so that debug and informational
  3849. messages get discarded without ever reaching Syslog. So the second
  3850. ‘syslog’ in the example does nothing.
  3851. #include <syslog.h>
  3852. setlogmask (LOG_UPTO (LOG_NOTICE));
  3853. openlog ("exampleprog", LOG_CONS | LOG_PID | LOG_NDELAY, LOG_LOCAL1);
  3854. syslog (LOG_NOTICE, "Program started by User %d", getuid ());
  3855. syslog (LOG_INFO, "A tree falls in a forest");
  3856. closelog ();
  3857. 
  3858. File: libc.info, Node: Mathematics, Next: Arithmetic, Prev: Syslog, Up: Top
  3859. 19 Mathematics
  3860. **************
  3861. This chapter contains information about functions for performing
  3862. mathematical computations, such as trigonometric functions. Most of
  3863. these functions have prototypes declared in the header file ‘math.h’.
  3864. The complex-valued functions are defined in ‘complex.h’.
  3865. All mathematical functions which take a floating-point argument have
  3866. three variants, one each for ‘double’, ‘float’, and ‘long double’
  3867. arguments. The ‘double’ versions are mostly defined in ISO C89. The
  3868. ‘float’ and ‘long double’ versions are from the numeric extensions to C
  3869. included in ISO C99.
  3870. Which of the three versions of a function should be used depends on
  3871. the situation. For most calculations, the ‘float’ functions are the
  3872. fastest. On the other hand, the ‘long double’ functions have the most
  3873. precision and exponent range. ‘double’ is somewhere in between. It is
  3874. usually wise to pick the smallest type that can accommodate your data.
  3875. On some machines ‘long double’ has no more precision or exponent range
  3876. than ‘double’, though the types remain distinct for type checking.
  3877. The GNU C Library also provides ‘_FloatN’ and ‘_FloatNx’ types.
  3878. These types are defined in ISO/IEC TS 18661-3, which extends ISO C and
  3879. defines floating-point types that are not machine-dependent. When such
  3880. a type, such as ‘_Float128’, is supported by the GNU C Library, extra
  3881. variants for most of the mathematical functions provided for ‘double’,
  3882. ‘float’, and ‘long double’ are also provided for the supported type.
  3883. Throughout this manual, the ‘_FloatN’ and ‘_FloatNx’ variants of these
  3884. functions are described along with the ‘double’, ‘float’, and ‘long
  3885. double’ variants and they come from ISO/IEC TS 18661-3, unless
  3886. explicitly stated otherwise.
  3887. Support for ‘_FloatN’ or ‘_FloatNx’ types is provided for ‘_Float32’,
  3888. ‘_Float64’ and ‘_Float32x’ on all platforms. It is also provided for
  3889. ‘_Float128’ and ‘_Float64x’ on powerpc64le (PowerPC 64-bits
  3890. little-endian), x86_64, x86, aarch64, alpha, loongarch, mips64, riscv,
  3891. s390 and sparc.
  3892. * Menu:
  3893. * Mathematical Constants:: Precise numeric values for often-used
  3894. constants.
  3895. * Trig Functions:: Sine, cosine, tangent, and friends.
  3896. * Inverse Trig Functions:: Arcsine, arccosine, etc.
  3897. * Exponents and Logarithms:: Also pow and sqrt.
  3898. * Hyperbolic Functions:: sinh, cosh, tanh, etc.
  3899. * Special Functions:: Bessel, gamma, erf.
  3900. * Errors in Math Functions:: Remarks in Errors in Math Functions.
  3901. * Pseudo-Random Numbers:: Functions for generating pseudo-random
  3902. numbers.
  3903. * FP Function Optimizations:: Fast code or small code.
  3904. 
  3905. File: libc.info, Node: Mathematical Constants, Next: Trig Functions, Up: Mathematics
  3906. 19.1 Predefined Mathematical Constants
  3907. ======================================
  3908. The header ‘math.h’ defines several useful mathematical constants. All
  3909. values are defined as preprocessor macros starting with ‘M_’. The
  3910. values provided are:
  3911. ‘M_E’
  3912. The base of natural logarithms.
  3913. ‘M_LOG2E’
  3914. The logarithm to base ‘2’ of ‘M_E’.
  3915. ‘M_LOG10E’
  3916. The logarithm to base ‘10’ of ‘M_E’.
  3917. ‘M_LN2’
  3918. The natural logarithm of ‘2’.
  3919. ‘M_LN10’
  3920. The natural logarithm of ‘10’.
  3921. ‘M_PI’
  3922. Pi, the ratio of a circle's circumference to its diameter.
  3923. ‘M_PI_2’
  3924. Pi divided by two.
  3925. ‘M_PI_4’
  3926. Pi divided by four.
  3927. ‘M_1_PI’
  3928. The reciprocal of pi (1/pi)
  3929. ‘M_2_PI’
  3930. Two times the reciprocal of pi.
  3931. ‘M_2_SQRTPI’
  3932. Two times the reciprocal of the square root of pi.
  3933. ‘M_SQRT2’
  3934. The square root of two.
  3935. ‘M_SQRT1_2’
  3936. The reciprocal of the square root of two (also the square root of
  3937. 1/2).
  3938. These constants come from the Unix98 standard and were also available
  3939. in 4.4BSD; therefore they are only defined if ‘_XOPEN_SOURCE=500’, or a
  3940. more general feature select macro, is defined. The default set of
  3941. features includes these constants. *Note Feature Test Macros::.
  3942. All values are of type ‘double’. As an extension, the GNU C Library
  3943. also defines these constants with type ‘long double’ and ‘float’. The
  3944. ‘long double’ macros have a lowercase ‘l’ while the ‘float’ macros have
  3945. a lowercase ‘f’ appended to their names: ‘M_El’, ‘M_PIl’, and so forth.
  3946. These are only available if ‘_GNU_SOURCE’ is defined.
  3947. Likewise, the GNU C Library also defines these constants with the
  3948. types ‘_FloatN’ and ‘_FloatNx’ for the machines that have support for
  3949. such types enabled (*note Mathematics::) and if ‘_GNU_SOURCE’ is
  3950. defined. When available, the macros names are appended with ‘fN’ or
  3951. ‘fNx’, such as ‘f128’ for the type ‘_Float128’.
  3952. _Note:_ Some programs use a constant named ‘PI’ which has the same
  3953. value as ‘M_PI’. This constant is not standard; it may have appeared in
  3954. some old AT&T headers, and is mentioned in Stroustrup's book on C++. It
  3955. infringes on the user's name space, so the GNU C Library does not define
  3956. it. Fixing programs written to expect it is simple: replace ‘PI’ with
  3957. ‘M_PI’ throughout, or put ‘-DPI=M_PI’ on the compiler command line.
  3958. 
  3959. File: libc.info, Node: Trig Functions, Next: Inverse Trig Functions, Prev: Mathematical Constants, Up: Mathematics
  3960. 19.2 Trigonometric Functions
  3961. ============================
  3962. These are the familiar ‘sin’, ‘cos’, and ‘tan’ functions. The arguments
  3963. to all of these functions are in units of radians; recall that pi
  3964. radians equals 180 degrees.
  3965. The math library normally defines ‘M_PI’ to a ‘double’ approximation
  3966. of pi. If strict ISO and/or POSIX compliance are requested this
  3967. constant is not defined, but you can easily define it yourself:
  3968. #define M_PI 3.14159265358979323846264338327
  3969. You can also compute the value of pi with the expression ‘acos (-1.0)’.
  3970. -- Function: double sin (double X)
  3971. -- Function: float sinf (float X)
  3972. -- Function: long double sinl (long double X)
  3973. -- Function: _FloatN sinfN (_FloatN X)
  3974. -- Function: _FloatNx sinfNx (_FloatNx X)
  3975. Preliminary: | MT-Safe | AS-Safe | AC-Safe | *Note POSIX Safety
  3976. Concepts::.
  3977. These functions return the sine of X, where X is given in radians.
  3978. The return value is in the range ‘-1’ to ‘1’.
  3979. -- Function: double cos (double X)
  3980. -- Function: float cosf (float X)
  3981. -- Function: long double cosl (long double X)
  3982. -- Function: _FloatN cosfN (_FloatN X)
  3983. -- Function: _FloatNx cosfNx (_FloatNx X)
  3984. Preliminary: | MT-Safe | AS-Safe | AC-Safe | *Note POSIX Safety
  3985. Concepts::.
  3986. These functions return the cosine of X, where X is given in
  3987. radians. The return value is in the range ‘-1’ to ‘1’.
  3988. -- Function: double tan (double X)
  3989. -- Function: float tanf (float X)
  3990. -- Function: long double tanl (long double X)
  3991. -- Function: _FloatN tanfN (_FloatN X)
  3992. -- Function: _FloatNx tanfNx (_FloatNx X)
  3993. Preliminary: | MT-Safe | AS-Safe | AC-Safe | *Note POSIX Safety
  3994. Concepts::.
  3995. These functions return the tangent of X, where X is given in
  3996. radians.
  3997. Mathematically, the tangent function has singularities at odd
  3998. multiples of pi/2. If the argument X is too close to one of these
  3999. singularities, ‘tan’ will signal overflow.
  4000. In many applications where ‘sin’ and ‘cos’ are used, the sine and
  4001. cosine of the same angle are needed at the same time. It is more
  4002. efficient to compute them simultaneously, so the library provides a
  4003. function to do that.
  4004. -- Function: void sincos (double X, double *SINX, double *COSX)
  4005. -- Function: void sincosf (float X, float *SINX, float *COSX)
  4006. -- Function: void sincosl (long double X, long double *SINX, long
  4007. double *COSX)
  4008. -- Function: _FloatN sincosfN (_FloatN X, _FloatN *SINX, _FloatN *COSX)
  4009. -- Function: _FloatNx sincosfNx (_FloatNx X, _FloatNx *SINX, _FloatNx
  4010. *COSX)
  4011. Preliminary: | MT-Safe | AS-Safe | AC-Safe | *Note POSIX Safety
  4012. Concepts::.
  4013. These functions return the sine of X in ‘*SINX’ and the cosine of X
  4014. in ‘*COSX’, where X is given in radians. Both values, ‘*SINX’ and
  4015. ‘*COSX’, are in the range of ‘-1’ to ‘1’.
  4016. All these functions, including the ‘_FloatN’ and ‘_FloatNx’
  4017. variants, are GNU extensions. Portable programs should be prepared
  4018. to cope with their absence.
  4019. -- Function: double sinpi (double X)
  4020. -- Function: float sinpif (float X)
  4021. -- Function: long double sinpil (long double X)
  4022. -- Function: _FloatN sinpifN (_FloatN X)
  4023. -- Function: _FloatNx sinpifNx (_FloatNx X)
  4024. Preliminary: | MT-Safe | AS-Safe | AC-Safe | *Note POSIX Safety
  4025. Concepts::.
  4026. These functions return the sine of pi multiplied by X. The return
  4027. value is in the range ‘-1’ to ‘1’.
  4028. The ‘sinpi’ functions are from TS 18661-4:2015.
  4029. -- Function: double cospi (double X)
  4030. -- Function: float cospif (float X)
  4031. -- Function: long double cospil (long double X)
  4032. -- Function: _FloatN cospifN (_FloatN X)
  4033. -- Function: _FloatNx cospifNx (_FloatNx X)
  4034. Preliminary: | MT-Safe | AS-Safe | AC-Safe | *Note POSIX Safety
  4035. Concepts::.
  4036. These functions return the cosine of pi multiplied by X. The
  4037. return value is in the range ‘-1’ to ‘1’.
  4038. The ‘cospi’ functions are from TS 18661-4:2015.
  4039. -- Function: double tanpi (double X)
  4040. -- Function: float tanpif (float X)
  4041. -- Function: long double tanpil (long double X)
  4042. -- Function: _FloatN tanpifN (_FloatN X)
  4043. -- Function: _FloatNx tanpifNx (_FloatNx X)
  4044. Preliminary: | MT-Safe | AS-Safe | AC-Safe | *Note POSIX Safety
  4045. Concepts::.
  4046. These functions return the tangent of pi multiplied by X.
  4047. The ‘tanpi’ functions are from TS 18661-4:2015.
  4048. ISO C99 defines variants of the trig functions which work on complex
  4049. numbers. The GNU C Library provides these functions, but they are only
  4050. useful if your compiler supports the new complex types defined by the
  4051. standard. (As of this writing GCC supports complex numbers, but there
  4052. are bugs in the implementation.)
  4053. -- Function: complex double csin (complex double Z)
  4054. -- Function: complex float csinf (complex float Z)
  4055. -- Function: complex long double csinl (complex long double Z)
  4056. -- Function: complex _FloatN csinfN (complex _FloatN Z)
  4057. -- Function: complex _FloatNx csinfNx (complex _FloatNx Z)
  4058. Preliminary: | MT-Safe | AS-Safe | AC-Safe | *Note POSIX Safety
  4059. Concepts::.
  4060. These functions return the complex sine of Z. The mathematical
  4061. definition of the complex sine is
  4062. sin (z) = 1/(2*i) * (exp (z*i) - exp (-z*i)).
  4063. -- Function: complex double ccos (complex double Z)
  4064. -- Function: complex float ccosf (complex float Z)
  4065. -- Function: complex long double ccosl (complex long double Z)
  4066. -- Function: complex _FloatN ccosfN (complex _FloatN Z)
  4067. -- Function: complex _FloatNx ccosfNx (complex _FloatNx Z)
  4068. Preliminary: | MT-Safe | AS-Safe | AC-Safe | *Note POSIX Safety
  4069. Concepts::.
  4070. These functions return the complex cosine of Z. The mathematical
  4071. definition of the complex cosine is
  4072. cos (z) = 1/2 * (exp (z*i) + exp (-z*i))
  4073. -- Function: complex double ctan (complex double Z)
  4074. -- Function: complex float ctanf (complex float Z)
  4075. -- Function: complex long double ctanl (complex long double Z)
  4076. -- Function: complex _FloatN ctanfN (complex _FloatN Z)
  4077. -- Function: complex _FloatNx ctanfNx (complex _FloatNx Z)
  4078. Preliminary: | MT-Safe | AS-Safe | AC-Safe | *Note POSIX Safety
  4079. Concepts::.
  4080. These functions return the complex tangent of Z. The mathematical
  4081. definition of the complex tangent is
  4082. tan (z) = -i * (exp (z*i) - exp (-z*i)) / (exp (z*i) + exp (-z*i))
  4083. The complex tangent has poles at pi/2 + 2n, where n is an integer.
  4084. ‘ctan’ may signal overflow if Z is too close to a pole.
  4085. 
  4086. File: libc.info, Node: Inverse Trig Functions, Next: Exponents and Logarithms, Prev: Trig Functions, Up: Mathematics
  4087. 19.3 Inverse Trigonometric Functions
  4088. ====================================
  4089. These are the usual arcsine, arccosine and arctangent functions, which
  4090. are the inverses of the sine, cosine and tangent functions respectively.
  4091. -- Function: double asin (double X)
  4092. -- Function: float asinf (float X)
  4093. -- Function: long double asinl (long double X)
  4094. -- Function: _FloatN asinfN (_FloatN X)
  4095. -- Function: _FloatNx asinfNx (_FloatNx X)
  4096. Preliminary: | MT-Safe | AS-Safe | AC-Safe | *Note POSIX Safety
  4097. Concepts::.
  4098. These functions compute the arcsine of X--that is, the value whose
  4099. sine is X. The value is in units of radians. Mathematically,
  4100. there are infinitely many such values; the one actually returned is
  4101. the one between ‘-pi/2’ and ‘pi/2’ (inclusive).
  4102. The arcsine function is defined mathematically only over the domain
  4103. ‘-1’ to ‘1’. If X is outside the domain, ‘asin’ signals a domain
  4104. error.
  4105. -- Function: double acos (double X)
  4106. -- Function: float acosf (float X)
  4107. -- Function: long double acosl (long double X)
  4108. -- Function: _FloatN acosfN (_FloatN X)
  4109. -- Function: _FloatNx acosfNx (_FloatNx X)
  4110. Preliminary: | MT-Safe | AS-Safe | AC-Safe | *Note POSIX Safety
  4111. Concepts::.
  4112. These functions compute the arccosine of X--that is, the value
  4113. whose cosine is X. The value is in units of radians.
  4114. Mathematically, there are infinitely many such values; the one
  4115. actually returned is the one between ‘0’ and ‘pi’ (inclusive).
  4116. The arccosine function is defined mathematically only over the
  4117. domain ‘-1’ to ‘1’. If X is outside the domain, ‘acos’ signals a
  4118. domain error.
  4119. -- Function: double atan (double X)
  4120. -- Function: float atanf (float X)
  4121. -- Function: long double atanl (long double X)
  4122. -- Function: _FloatN atanfN (_FloatN X)
  4123. -- Function: _FloatNx atanfNx (_FloatNx X)
  4124. Preliminary: | MT-Safe | AS-Safe | AC-Safe | *Note POSIX Safety
  4125. Concepts::.
  4126. These functions compute the arctangent of X--that is, the value
  4127. whose tangent is X. The value is in units of radians.
  4128. Mathematically, there are infinitely many such values; the one
  4129. actually returned is the one between ‘-pi/2’ and ‘pi/2’
  4130. (inclusive).
  4131. -- Function: double atan2 (double Y, double X)
  4132. -- Function: float atan2f (float Y, float X)
  4133. -- Function: long double atan2l (long double Y, long double X)
  4134. -- Function: _FloatN atan2fN (_FloatN Y, _FloatN X)
  4135. -- Function: _FloatNx atan2fNx (_FloatNx Y, _FloatNx X)
  4136. Preliminary: | MT-Safe | AS-Safe | AC-Safe | *Note POSIX Safety
  4137. Concepts::.
  4138. This function computes the arctangent of Y/X, but the signs of both
  4139. arguments are used to determine the quadrant of the result, and X
  4140. is permitted to be zero. The return value is given in radians and
  4141. is in the range ‘-pi’ to ‘pi’, inclusive.
  4142. If X and Y are coordinates of a point in the plane, ‘atan2’ returns
  4143. the signed angle between the line from the origin to that point and
  4144. the x-axis. Thus, ‘atan2’ is useful for converting Cartesian
  4145. coordinates to polar coordinates. (To compute the radial
  4146. coordinate, use ‘hypot’; see *note Exponents and Logarithms::.)
  4147. If both X and Y are zero, ‘atan2’ returns zero.
  4148. -- Function: double asinpi (double X)
  4149. -- Function: float asinpif (float X)
  4150. -- Function: long double asinpil (long double X)
  4151. -- Function: _FloatN asinpifN (_FloatN X)
  4152. -- Function: _FloatNx asinpifNx (_FloatNx X)
  4153. Preliminary: | MT-Safe | AS-Safe | AC-Safe | *Note POSIX Safety
  4154. Concepts::.
  4155. These functions compute the arcsine of X, divided by pi. The
  4156. result is in the interval between ‘-0.5’ and ‘0.5’ (inclusive).
  4157. The arcsine function is defined mathematically only over the domain
  4158. ‘-1’ to ‘1’. If X is outside the domain, ‘asinpi’ signals a domain
  4159. error.
  4160. The ‘asinpi’ functions are from TS 18661-4:2015.
  4161. -- Function: double acospi (double X)
  4162. -- Function: float acospif (float X)
  4163. -- Function: long double acospil (long double X)
  4164. -- Function: _FloatN acospifN (_FloatN X)
  4165. -- Function: _FloatNx acospifNx (_FloatNx X)
  4166. Preliminary: | MT-Safe | AS-Safe | AC-Safe | *Note POSIX Safety
  4167. Concepts::.
  4168. These functions compute the arccosine of X, divided by pi. The
  4169. result is in the interval between ‘0’ and ‘1’ (inclusive).
  4170. The arccosine function is defined mathematically only over the
  4171. domain ‘-1’ to ‘1’. If X is outside the domain, ‘acospi’ signals a
  4172. domain error.
  4173. The ‘acospi’ functions are from TS 18661-4:2015.
  4174. -- Function: double atanpi (double X)
  4175. -- Function: float atanpif (float X)
  4176. -- Function: long double atanpil (long double X)
  4177. -- Function: _FloatN atanpifN (_FloatN X)
  4178. -- Function: _FloatNx atanpifNx (_FloatNx X)
  4179. Preliminary: | MT-Safe | AS-Safe | AC-Safe | *Note POSIX Safety
  4180. Concepts::.
  4181. These functions compute the arctangent of X, divided by pi. The
  4182. result is in the interval between ‘-0.5’ and ‘0.5’ (inclusive).
  4183. The ‘atanpi’ functions are from TS 18661-4:2015.
  4184. -- Function: double atan2pi (double Y, double X)
  4185. -- Function: float atan2pif (float Y, float X)
  4186. -- Function: long double atan2pil (long double Y, long double X)
  4187. -- Function: _FloatN atan2pifN (_FloatN Y, _FloatN X)
  4188. -- Function: _FloatNx atan2pifNx (_FloatNx Y, _FloatNx X)
  4189. Preliminary: | MT-Safe | AS-Safe | AC-Safe | *Note POSIX Safety
  4190. Concepts::.
  4191. These function computes the arctangent of Y/X, divided by pi, with
  4192. the signs of both arguments used to determine the quadrant of the
  4193. result, as for ‘atan2’.
  4194. The ‘atan2pi’ functions are from TS 18661-4:2015.
  4195. ISO C99 defines complex versions of the inverse trig functions.
  4196. -- Function: complex double casin (complex double Z)
  4197. -- Function: complex float casinf (complex float Z)
  4198. -- Function: complex long double casinl (complex long double Z)
  4199. -- Function: complex _FloatN casinfN (complex _FloatN Z)
  4200. -- Function: complex _FloatNx casinfNx (complex _FloatNx Z)
  4201. Preliminary: | MT-Safe | AS-Safe | AC-Safe | *Note POSIX Safety
  4202. Concepts::.
  4203. These functions compute the complex arcsine of Z--that is, the
  4204. value whose sine is Z. The value returned is in radians.
  4205. Unlike the real-valued functions, ‘casin’ is defined for all values
  4206. of Z.
  4207. -- Function: complex double cacos (complex double Z)
  4208. -- Function: complex float cacosf (complex float Z)
  4209. -- Function: complex long double cacosl (complex long double Z)
  4210. -- Function: complex _FloatN cacosfN (complex _FloatN Z)
  4211. -- Function: complex _FloatNx cacosfNx (complex _FloatNx Z)
  4212. Preliminary: | MT-Safe | AS-Safe | AC-Safe | *Note POSIX Safety
  4213. Concepts::.
  4214. These functions compute the complex arccosine of Z--that is, the
  4215. value whose cosine is Z. The value returned is in radians.
  4216. Unlike the real-valued functions, ‘cacos’ is defined for all values
  4217. of Z.
  4218. -- Function: complex double catan (complex double Z)
  4219. -- Function: complex float catanf (complex float Z)
  4220. -- Function: complex long double catanl (complex long double Z)
  4221. -- Function: complex _FloatN catanfN (complex _FloatN Z)
  4222. -- Function: complex _FloatNx catanfNx (complex _FloatNx Z)
  4223. Preliminary: | MT-Safe | AS-Safe | AC-Safe | *Note POSIX Safety
  4224. Concepts::.
  4225. These functions compute the complex arctangent of Z--that is, the
  4226. value whose tangent is Z. The value is in units of radians.
  4227. 
  4228. File: libc.info, Node: Exponents and Logarithms, Next: Hyperbolic Functions, Prev: Inverse Trig Functions, Up: Mathematics
  4229. 19.4 Exponentiation and Logarithms
  4230. ==================================
  4231. -- Function: double exp (double X)
  4232. -- Function: float expf (float X)
  4233. -- Function: long double expl (long double X)
  4234. -- Function: _FloatN expfN (_FloatN X)
  4235. -- Function: _FloatNx expfNx (_FloatNx X)
  4236. Preliminary: | MT-Safe | AS-Safe | AC-Safe | *Note POSIX Safety
  4237. Concepts::.
  4238. These functions compute ‘e’ (the base of natural logarithms) raised
  4239. to the power X.
  4240. If the magnitude of the result is too large to be representable,
  4241. ‘exp’ signals overflow.
  4242. -- Function: double exp2 (double X)
  4243. -- Function: float exp2f (float X)
  4244. -- Function: long double exp2l (long double X)
  4245. -- Function: _FloatN exp2fN (_FloatN X)
  4246. -- Function: _FloatNx exp2fNx (_FloatNx X)
  4247. Preliminary: | MT-Safe | AS-Safe | AC-Safe | *Note POSIX Safety
  4248. Concepts::.
  4249. These functions compute ‘2’ raised to the power X. Mathematically,
  4250. ‘exp2 (x)’ is the same as ‘exp (x * log (2))’.
  4251. -- Function: double exp10 (double X)
  4252. -- Function: float exp10f (float X)
  4253. -- Function: long double exp10l (long double X)
  4254. -- Function: _FloatN exp10fN (_FloatN X)
  4255. -- Function: _FloatNx exp10fNx (_FloatNx X)
  4256. Preliminary: | MT-Safe | AS-Safe | AC-Safe | *Note POSIX Safety
  4257. Concepts::.
  4258. These functions compute ‘10’ raised to the power X.
  4259. Mathematically, ‘exp10 (x)’ is the same as ‘exp (x * log (10))’.
  4260. The ‘exp10’ functions are from TS 18661-4:2015.
  4261. -- Function: double log (double X)
  4262. -- Function: float logf (float X)
  4263. -- Function: long double logl (long double X)
  4264. -- Function: _FloatN logfN (_FloatN X)
  4265. -- Function: _FloatNx logfNx (_FloatNx X)
  4266. Preliminary: | MT-Safe | AS-Safe | AC-Safe | *Note POSIX Safety
  4267. Concepts::.
  4268. These functions compute the natural logarithm of X. ‘exp (log
  4269. (X))’ equals X, exactly in mathematics and approximately in C.
  4270. If X is negative, ‘log’ signals a domain error. If X is zero, it
  4271. returns negative infinity; if X is too close to zero, it may signal
  4272. overflow.
  4273. -- Function: double log10 (double X)
  4274. -- Function: float log10f (float X)
  4275. -- Function: long double log10l (long double X)
  4276. -- Function: _FloatN log10fN (_FloatN X)
  4277. -- Function: _FloatNx log10fNx (_FloatNx X)
  4278. Preliminary: | MT-Safe | AS-Safe | AC-Safe | *Note POSIX Safety
  4279. Concepts::.
  4280. These functions return the base-10 logarithm of X. ‘log10 (X)’
  4281. equals ‘log (X) / log (10)’.
  4282. -- Function: double log2 (double X)
  4283. -- Function: float log2f (float X)
  4284. -- Function: long double log2l (long double X)
  4285. -- Function: _FloatN log2fN (_FloatN X)
  4286. -- Function: _FloatNx log2fNx (_FloatNx X)
  4287. Preliminary: | MT-Safe | AS-Safe | AC-Safe | *Note POSIX Safety
  4288. Concepts::.
  4289. These functions return the base-2 logarithm of X. ‘log2 (X)’
  4290. equals ‘log (X) / log (2)’.
  4291. -- Function: double logb (double X)
  4292. -- Function: float logbf (float X)
  4293. -- Function: long double logbl (long double X)
  4294. -- Function: _FloatN logbfN (_FloatN X)
  4295. -- Function: _FloatNx logbfNx (_FloatNx X)
  4296. Preliminary: | MT-Safe | AS-Safe | AC-Safe | *Note POSIX Safety
  4297. Concepts::.
  4298. These functions extract the exponent of X and return it as a
  4299. floating-point value. If ‘FLT_RADIX’ is two, ‘logb (x)’ is similar
  4300. to ‘floor (log2 (fabs (x)))’, except that the latter may give an
  4301. incorrect integer due to intermediate rounding.
  4302. If X is de-normalized, ‘logb’ returns the exponent X would have if
  4303. it were normalized. If X is infinity (positive or negative),
  4304. ‘logb’ returns oo. If X is zero, ‘logb’ returns oo. It does not
  4305. signal.
  4306. -- Function: int ilogb (double X)
  4307. -- Function: int ilogbf (float X)
  4308. -- Function: int ilogbl (long double X)
  4309. -- Function: int ilogbfN (_FloatN X)
  4310. -- Function: int ilogbfNx (_FloatNx X)
  4311. -- Function: long int llogb (double X)
  4312. -- Function: long int llogbf (float X)
  4313. -- Function: long int llogbl (long double X)
  4314. -- Function: long int llogbfN (_FloatN X)
  4315. -- Function: long int llogbfNx (_FloatNx X)
  4316. Preliminary: | MT-Safe | AS-Safe | AC-Safe | *Note POSIX Safety
  4317. Concepts::.
  4318. These functions are equivalent to the corresponding ‘logb’
  4319. functions except that they return signed integer values. The
  4320. ‘ilogb’, ‘ilogbf’, and ‘ilogbl’ functions are from ISO C99; the
  4321. ‘llogb’, ‘llogbf’, ‘llogbl’ functions are from TS 18661-1:2014; the
  4322. ‘ilogbfN’, ‘ilogbfNx’, ‘llogbfN’, and ‘llogbfNx’ functions are from
  4323. TS 18661-3:2015.
  4324. Since integers cannot represent infinity and NaN, ‘ilogb’ instead
  4325. returns an integer that can't be the exponent of a normal floating-point
  4326. number. ‘math.h’ defines constants so you can check for this.
  4327. -- Macro: int FP_ILOGB0
  4328. ‘ilogb’ returns this value if its argument is ‘0’. The numeric
  4329. value is either ‘INT_MIN’ or ‘-INT_MAX’.
  4330. This macro is defined in ISO C99.
  4331. -- Macro: long int FP_LLOGB0
  4332. ‘llogb’ returns this value if its argument is ‘0’. The numeric
  4333. value is either ‘LONG_MIN’ or ‘-LONG_MAX’.
  4334. This macro is defined in TS 18661-1:2014.
  4335. -- Macro: int FP_ILOGBNAN
  4336. ‘ilogb’ returns this value if its argument is ‘NaN’. The numeric
  4337. value is either ‘INT_MIN’ or ‘INT_MAX’.
  4338. This macro is defined in ISO C99.
  4339. -- Macro: long int FP_LLOGBNAN
  4340. ‘llogb’ returns this value if its argument is ‘NaN’. The numeric
  4341. value is either ‘LONG_MIN’ or ‘LONG_MAX’.
  4342. This macro is defined in TS 18661-1:2014.
  4343. These values are system specific. They might even be the same. The
  4344. proper way to test the result of ‘ilogb’ is as follows:
  4345. i = ilogb (f);
  4346. if (i == FP_ILOGB0 || i == FP_ILOGBNAN)
  4347. {
  4348. if (isnan (f))
  4349. {
  4350. /* Handle NaN. */
  4351. }
  4352. else if (f == 0.0)
  4353. {
  4354. /* Handle 0.0. */
  4355. }
  4356. else
  4357. {
  4358. /* Some other value with large exponent,
  4359. perhaps +Inf. */
  4360. }
  4361. }
  4362. -- Function: double pow (double BASE, double POWER)
  4363. -- Function: float powf (float BASE, float POWER)
  4364. -- Function: long double powl (long double BASE, long double POWER)
  4365. -- Function: _FloatN powfN (_FloatN BASE, _FloatN POWER)
  4366. -- Function: _FloatNx powfNx (_FloatNx BASE, _FloatNx POWER)
  4367. Preliminary: | MT-Safe | AS-Safe | AC-Safe | *Note POSIX Safety
  4368. Concepts::.
  4369. These are general exponentiation functions, returning BASE raised
  4370. to POWER.
  4371. Mathematically, ‘pow’ would return a complex number when BASE is
  4372. negative and POWER is not an integral value. ‘pow’ can't do that,
  4373. so instead it signals a domain error. ‘pow’ may also underflow or
  4374. overflow the destination type.
  4375. -- Function: double powr (double BASE, double POWER)
  4376. -- Function: float powrf (float BASE, float POWER)
  4377. -- Function: long double powrl (long double BASE, long double POWER)
  4378. -- Function: _FloatN powrfN (_FloatN BASE, _FloatN POWER)
  4379. -- Function: _FloatNx powrfNx (_FloatNx BASE, _FloatNx POWER)
  4380. Preliminary: | MT-Safe | AS-Safe | AC-Safe | *Note POSIX Safety
  4381. Concepts::.
  4382. These return BASE raised to POWER, but with special cases based on
  4383. ‘exp (power * log (base))’. For example, if BASE is negative, the
  4384. ‘powr’ functions always signal a domain error, but this is valid
  4385. for ‘pow’ if POWER is an integer.
  4386. The ‘powr’ functions are from TS 18661-4:2015.
  4387. -- Function: double pown (double BASE, long long int POWER)
  4388. -- Function: float pownf (float BASE, long long int POWER)
  4389. -- Function: long double pownl (long double BASE, long long int POWER)
  4390. -- Function: _FloatN pownfN (_FloatN BASE, long long int POWER)
  4391. -- Function: _FloatNx pownfNx (_FloatNx BASE, long long int POWER)
  4392. Preliminary: | MT-Safe | AS-Safe | AC-Safe | *Note POSIX Safety
  4393. Concepts::.
  4394. These return BASE raised to POWER (an integer).
  4395. The ‘pown’ functions are from TS 18661-4:2015 (which used
  4396. ‘intmax_t’ as the type of POWER; the type changed to ‘long long
  4397. int’ in C23).
  4398. -- Function: double compoundn (double X, long long int POWER)
  4399. -- Function: float compoundnf (float X, long long int POWER)
  4400. -- Function: long double compoundnl (long double X, long long int
  4401. POWER)
  4402. -- Function: _FloatN compoundnfN (_FloatN X, long long int POWER)
  4403. -- Function: _FloatNx compoundnfNx (_FloatNx X, long long int POWER)
  4404. Preliminary: | MT-Safe | AS-Safe | AC-Safe | *Note POSIX Safety
  4405. Concepts::.
  4406. These return ‘1 + X’ raised to POWER (an integer). If X is less
  4407. than −1, ‘compoundn’ signals a domain error.
  4408. The ‘compoundn’ functions are from TS 18661-4:2015 (which used
  4409. ‘intmax_t’ as the type of POWER; the type changed to ‘long long
  4410. int’ in C23).
  4411. -- Function: double sqrt (double X)
  4412. -- Function: float sqrtf (float X)
  4413. -- Function: long double sqrtl (long double X)
  4414. -- Function: _FloatN sqrtfN (_FloatN X)
  4415. -- Function: _FloatNx sqrtfNx (_FloatNx X)
  4416. Preliminary: | MT-Safe | AS-Safe | AC-Safe | *Note POSIX Safety
  4417. Concepts::.
  4418. These functions return the nonnegative square root of X.
  4419. If X is negative, ‘sqrt’ signals a domain error. Mathematically,
  4420. it should return a complex number.
  4421. -- Function: double rsqrt (double X)
  4422. -- Function: float rsqrtf (float X)
  4423. -- Function: long double rsqrtl (long double X)
  4424. -- Function: _FloatN rsqrtfN (_FloatN X)
  4425. -- Function: _FloatNx rsqrtfNx (_FloatNx X)
  4426. Preliminary: | MT-Safe | AS-Safe | AC-Safe | *Note POSIX Safety
  4427. Concepts::.
  4428. These functions return the reciprocal of the nonnegative square
  4429. root of X. If X is negative, ‘rsqrt’ signals a domain error.
  4430. The ‘rsqrt’ functions are from TS 18661-4:2015.
  4431. -- Function: double cbrt (double X)
  4432. -- Function: float cbrtf (float X)
  4433. -- Function: long double cbrtl (long double X)
  4434. -- Function: _FloatN cbrtfN (_FloatN X)
  4435. -- Function: _FloatNx cbrtfNx (_FloatNx X)
  4436. Preliminary: | MT-Safe | AS-Safe | AC-Safe | *Note POSIX Safety
  4437. Concepts::.
  4438. These functions return the cube root of X. They cannot fail; every
  4439. representable real value has a real cube root, and rounding it to a
  4440. representable value never causes overflow nor underflow.
  4441. -- Function: double hypot (double X, double Y)
  4442. -- Function: float hypotf (float X, float Y)
  4443. -- Function: long double hypotl (long double X, long double Y)
  4444. -- Function: _FloatN hypotfN (_FloatN X, _FloatN Y)
  4445. -- Function: _FloatNx hypotfNx (_FloatNx X, _FloatNx Y)
  4446. Preliminary: | MT-Safe | AS-Safe | AC-Safe | *Note POSIX Safety
  4447. Concepts::.
  4448. These functions return ‘sqrt (X*X + Y*Y)’. This is the length of
  4449. the hypotenuse of a right triangle with sides of length X and Y, or
  4450. the distance of the point (X, Y) from the origin. Using this
  4451. function instead of the direct formula is wise, since the error is
  4452. much smaller. See also the function ‘cabs’ in *note Absolute
  4453. Value::.
  4454. -- Function: double rootn (double X, long long int N)
  4455. -- Function: float rootnf (float X, long long int N)
  4456. -- Function: long double rootnl (long double X, long long int N)
  4457. -- Function: _FloatN rootnfN (_FloatN X, long long int N)
  4458. -- Function: _FloatNx rootnfNx (_FloatNx X, long long int N)
  4459. Preliminary: | MT-Safe | AS-Safe | AC-Safe | *Note POSIX Safety
  4460. Concepts::.
  4461. These return the Nth root of X. If N is zero, or if X is negative
  4462. and N is even, ‘rootn’ signals a domain error.
  4463. The ‘rootn’ functions are from TS 18661-4:2015 (which used
  4464. ‘intmax_t’ as the type of N; the type changed to ‘long long int’ in
  4465. C23).
  4466. -- Function: double expm1 (double X)
  4467. -- Function: float expm1f (float X)
  4468. -- Function: long double expm1l (long double X)
  4469. -- Function: _FloatN expm1fN (_FloatN X)
  4470. -- Function: _FloatNx expm1fNx (_FloatNx X)
  4471. Preliminary: | MT-Safe | AS-Safe | AC-Safe | *Note POSIX Safety
  4472. Concepts::.
  4473. These functions return a value equivalent to ‘exp (X) - 1’. They
  4474. are computed in a way that is accurate even if X is near zero--a
  4475. case where ‘exp (X) - 1’ would be inaccurate owing to subtraction
  4476. of two numbers that are nearly equal.
  4477. -- Function: double exp2m1 (double X)
  4478. -- Function: float exp2m1f (float X)
  4479. -- Function: long double exp2m1l (long double X)
  4480. -- Function: _FloatN exp2m1fN (_FloatN X)
  4481. -- Function: _FloatNx exp2m1fNx (_FloatNx X)
  4482. Preliminary: | MT-Safe | AS-Safe | AC-Safe | *Note POSIX Safety
  4483. Concepts::.
  4484. These functions return a value equivalent to ‘exp2 (X) - 1’. They
  4485. are computed in a way that is accurate even if X is near zero--a
  4486. case where ‘exp2 (X) - 1’ would be inaccurate owing to subtraction
  4487. of two numbers that are nearly equal.
  4488. The ‘exp2m1’ functions are from TS 18661-4:2015.
  4489. -- Function: double exp10m1 (double X)
  4490. -- Function: float exp10m1f (float X)
  4491. -- Function: long double exp10m1l (long double X)
  4492. -- Function: _FloatN exp10m1fN (_FloatN X)
  4493. -- Function: _FloatNx exp10m1fNx (_FloatNx X)
  4494. Preliminary: | MT-Safe | AS-Safe | AC-Safe | *Note POSIX Safety
  4495. Concepts::.
  4496. These functions return a value equivalent to ‘exp10 (X) - 1’. They
  4497. are computed in a way that is accurate even if X is near zero--a
  4498. case where ‘exp10 (X) - 1’ would be inaccurate owing to subtraction
  4499. of two numbers that are nearly equal.
  4500. The ‘exp10m1’ functions are from TS 18661-4:2015.
  4501. -- Function: double log1p (double X)
  4502. -- Function: float log1pf (float X)
  4503. -- Function: long double log1pl (long double X)
  4504. -- Function: _FloatN log1pfN (_FloatN X)
  4505. -- Function: _FloatNx log1pfNx (_FloatNx X)
  4506. -- Function: double logp1 (double X)
  4507. -- Function: float logp1f (float X)
  4508. -- Function: long double logp1l (long double X)
  4509. -- Function: _FloatN logp1fN (_FloatN X)
  4510. -- Function: _FloatNx logp1fNx (_FloatNx X)
  4511. Preliminary: | MT-Safe | AS-Safe | AC-Safe | *Note POSIX Safety
  4512. Concepts::.
  4513. These functions return a value equivalent to ‘log (1 + X)’. They
  4514. are computed in a way that is accurate even if X is near zero.
  4515. The ‘logp1’ names for these functions are from TS 18661-4:2015.
  4516. -- Function: double log2p1 (double X)
  4517. -- Function: float log2p1f (float X)
  4518. -- Function: long double log2p1l (long double X)
  4519. -- Function: _FloatN log2p1fN (_FloatN X)
  4520. -- Function: _FloatNx log2p1fNx (_FloatNx X)
  4521. Preliminary: | MT-Safe | AS-Safe | AC-Safe | *Note POSIX Safety
  4522. Concepts::.
  4523. These functions return a value equivalent to ‘log2 (1 + X)’. They
  4524. are computed in a way that is accurate even if X is near zero.
  4525. The ‘log2p1’ functions are from TS 18661-4:2015.
  4526. -- Function: double log10p1 (double X)
  4527. -- Function: float log10p1f (float X)
  4528. -- Function: long double log10p1l (long double X)
  4529. -- Function: _FloatN log10p1fN (_FloatN X)
  4530. -- Function: _FloatNx log10p1fNx (_FloatNx X)
  4531. Preliminary: | MT-Safe | AS-Safe | AC-Safe | *Note POSIX Safety
  4532. Concepts::.
  4533. These functions return a value equivalent to ‘log10 (1 + X)’. They
  4534. are computed in a way that is accurate even if X is near zero.
  4535. The ‘log10p1’ functions are from TS 18661-4:2015.
  4536. ISO C99 defines complex variants of some of the exponentiation and
  4537. logarithm functions.
  4538. -- Function: complex double cexp (complex double Z)
  4539. -- Function: complex float cexpf (complex float Z)
  4540. -- Function: complex long double cexpl (complex long double Z)
  4541. -- Function: complex _FloatN cexpfN (complex _FloatN Z)
  4542. -- Function: complex _FloatNx cexpfNx (complex _FloatNx Z)
  4543. Preliminary: | MT-Safe | AS-Safe | AC-Safe | *Note POSIX Safety
  4544. Concepts::.
  4545. These functions return ‘e’ (the base of natural logarithms) raised
  4546. to the power of Z. Mathematically, this corresponds to the value
  4547. exp (z) = exp (creal (z)) * (cos (cimag (z)) + I * sin (cimag (z)))
  4548. -- Function: complex double clog (complex double Z)
  4549. -- Function: complex float clogf (complex float Z)
  4550. -- Function: complex long double clogl (complex long double Z)
  4551. -- Function: complex _FloatN clogfN (complex _FloatN Z)
  4552. -- Function: complex _FloatNx clogfNx (complex _FloatNx Z)
  4553. Preliminary: | MT-Safe | AS-Safe | AC-Safe | *Note POSIX Safety
  4554. Concepts::.
  4555. These functions return the natural logarithm of Z. Mathematically,
  4556. this corresponds to the value
  4557. log (z) = log (cabs (z)) + I * carg (z)
  4558. ‘clog’ has a pole at 0, and will signal overflow if Z equals or is
  4559. very close to 0. It is well-defined for all other values of Z.
  4560. -- Function: complex double clog10 (complex double Z)
  4561. -- Function: complex float clog10f (complex float Z)
  4562. -- Function: complex long double clog10l (complex long double Z)
  4563. -- Function: complex _FloatN clog10fN (complex _FloatN Z)
  4564. -- Function: complex _FloatNx clog10fNx (complex _FloatNx Z)
  4565. Preliminary: | MT-Safe | AS-Safe | AC-Safe | *Note POSIX Safety
  4566. Concepts::.
  4567. These functions return the base 10 logarithm of the complex value
  4568. Z. Mathematically, this corresponds to the value
  4569. log10 (z) = log10 (cabs (z)) + I * carg (z) / log (10)
  4570. All these functions, including the ‘_FloatN’ and ‘_FloatNx’
  4571. variants, are GNU extensions.
  4572. -- Function: complex double csqrt (complex double Z)
  4573. -- Function: complex float csqrtf (complex float Z)
  4574. -- Function: complex long double csqrtl (complex long double Z)
  4575. -- Function: complex _FloatN csqrtfN (_FloatN Z)
  4576. -- Function: complex _FloatNx csqrtfNx (complex _FloatNx Z)
  4577. Preliminary: | MT-Safe | AS-Safe | AC-Safe | *Note POSIX Safety
  4578. Concepts::.
  4579. These functions return the complex square root of the argument Z.
  4580. Unlike the real-valued functions, they are defined for all values
  4581. of Z.
  4582. -- Function: complex double cpow (complex double BASE, complex double
  4583. POWER)
  4584. -- Function: complex float cpowf (complex float BASE, complex float
  4585. POWER)
  4586. -- Function: complex long double cpowl (complex long double BASE,
  4587. complex long double POWER)
  4588. -- Function: complex _FloatN cpowfN (complex _FloatN BASE, complex
  4589. _FloatN POWER)
  4590. -- Function: complex _FloatNx cpowfNx (complex _FloatNx BASE, complex
  4591. _FloatNx POWER)
  4592. Preliminary: | MT-Safe | AS-Safe | AC-Safe | *Note POSIX Safety
  4593. Concepts::.
  4594. These functions return BASE raised to the power of POWER. This is
  4595. equivalent to ‘cexp (y * clog (x))’
  4596. 
  4597. File: libc.info, Node: Hyperbolic Functions, Next: Special Functions, Prev: Exponents and Logarithms, Up: Mathematics
  4598. 19.5 Hyperbolic Functions
  4599. =========================
  4600. The functions in this section are related to the exponential functions;
  4601. see *note Exponents and Logarithms::.
  4602. -- Function: double sinh (double X)
  4603. -- Function: float sinhf (float X)
  4604. -- Function: long double sinhl (long double X)
  4605. -- Function: _FloatN sinhfN (_FloatN X)
  4606. -- Function: _FloatNx sinhfNx (_FloatNx X)
  4607. Preliminary: | MT-Safe | AS-Safe | AC-Safe | *Note POSIX Safety
  4608. Concepts::.
  4609. These functions return the hyperbolic sine of X, defined
  4610. mathematically as ‘(exp (X) - exp (-X)) / 2’. They may signal
  4611. overflow if X is too large.
  4612. -- Function: double cosh (double X)
  4613. -- Function: float coshf (float X)
  4614. -- Function: long double coshl (long double X)
  4615. -- Function: _FloatN coshfN (_FloatN X)
  4616. -- Function: _FloatNx coshfNx (_FloatNx X)
  4617. Preliminary: | MT-Safe | AS-Safe | AC-Safe | *Note POSIX Safety
  4618. Concepts::.
  4619. These functions return the hyperbolic cosine of X, defined
  4620. mathematically as ‘(exp (X) + exp (-X)) / 2’. They may signal
  4621. overflow if X is too large.
  4622. -- Function: double tanh (double X)
  4623. -- Function: float tanhf (float X)
  4624. -- Function: long double tanhl (long double X)
  4625. -- Function: _FloatN tanhfN (_FloatN X)
  4626. -- Function: _FloatNx tanhfNx (_FloatNx X)
  4627. Preliminary: | MT-Safe | AS-Safe | AC-Safe | *Note POSIX Safety
  4628. Concepts::.
  4629. These functions return the hyperbolic tangent of X, defined
  4630. mathematically as ‘sinh (X) / cosh (X)’. They may signal overflow
  4631. if X is too large.
  4632. There are counterparts for the hyperbolic functions which take
  4633. complex arguments.
  4634. -- Function: complex double csinh (complex double Z)
  4635. -- Function: complex float csinhf (complex float Z)
  4636. -- Function: complex long double csinhl (complex long double Z)
  4637. -- Function: complex _FloatN csinhfN (complex _FloatN Z)
  4638. -- Function: complex _FloatNx csinhfNx (complex _FloatNx Z)
  4639. Preliminary: | MT-Safe | AS-Safe | AC-Safe | *Note POSIX Safety
  4640. Concepts::.
  4641. These functions return the complex hyperbolic sine of Z, defined
  4642. mathematically as ‘(exp (Z) - exp (-Z)) / 2’.
  4643. -- Function: complex double ccosh (complex double Z)
  4644. -- Function: complex float ccoshf (complex float Z)
  4645. -- Function: complex long double ccoshl (complex long double Z)
  4646. -- Function: complex _FloatN ccoshfN (complex _FloatN Z)
  4647. -- Function: complex _FloatNx ccoshfNx (complex _FloatNx Z)
  4648. Preliminary: | MT-Safe | AS-Safe | AC-Safe | *Note POSIX Safety
  4649. Concepts::.
  4650. These functions return the complex hyperbolic cosine of Z, defined
  4651. mathematically as ‘(exp (Z) + exp (-Z)) / 2’.
  4652. -- Function: complex double ctanh (complex double Z)
  4653. -- Function: complex float ctanhf (complex float Z)
  4654. -- Function: complex long double ctanhl (complex long double Z)
  4655. -- Function: complex _FloatN ctanhfN (complex _FloatN Z)
  4656. -- Function: complex _FloatNx ctanhfNx (complex _FloatNx Z)
  4657. Preliminary: | MT-Safe | AS-Safe | AC-Safe | *Note POSIX Safety
  4658. Concepts::.
  4659. These functions return the complex hyperbolic tangent of Z, defined
  4660. mathematically as ‘csinh (Z) / ccosh (Z)’.
  4661. -- Function: double asinh (double X)
  4662. -- Function: float asinhf (float X)
  4663. -- Function: long double asinhl (long double X)
  4664. -- Function: _FloatN asinhfN (_FloatN X)
  4665. -- Function: _FloatNx asinhfNx (_FloatNx X)
  4666. Preliminary: | MT-Safe | AS-Safe | AC-Safe | *Note POSIX Safety
  4667. Concepts::.
  4668. These functions return the inverse hyperbolic sine of X--the value
  4669. whose hyperbolic sine is X.
  4670. -- Function: double acosh (double X)
  4671. -- Function: float acoshf (float X)
  4672. -- Function: long double acoshl (long double X)
  4673. -- Function: _FloatN acoshfN (_FloatN X)
  4674. -- Function: _FloatNx acoshfNx (_FloatNx X)
  4675. Preliminary: | MT-Safe | AS-Safe | AC-Safe | *Note POSIX Safety
  4676. Concepts::.
  4677. These functions return the inverse hyperbolic cosine of X--the
  4678. value whose hyperbolic cosine is X. If X is less than ‘1’, ‘acosh’
  4679. signals a domain error.
  4680. -- Function: double atanh (double X)
  4681. -- Function: float atanhf (float X)
  4682. -- Function: long double atanhl (long double X)
  4683. -- Function: _FloatN atanhfN (_FloatN X)
  4684. -- Function: _FloatNx atanhfNx (_FloatNx X)
  4685. Preliminary: | MT-Safe | AS-Safe | AC-Safe | *Note POSIX Safety
  4686. Concepts::.
  4687. These functions return the inverse hyperbolic tangent of X--the
  4688. value whose hyperbolic tangent is X. If the absolute value of X is
  4689. greater than ‘1’, ‘atanh’ signals a domain error; if it is equal to
  4690. 1, ‘atanh’ returns infinity.
  4691. -- Function: complex double casinh (complex double Z)
  4692. -- Function: complex float casinhf (complex float Z)
  4693. -- Function: complex long double casinhl (complex long double Z)
  4694. -- Function: complex _FloatN casinhfN (complex _FloatN Z)
  4695. -- Function: complex _FloatNx casinhfNx (complex _FloatNx Z)
  4696. Preliminary: | MT-Safe | AS-Safe | AC-Safe | *Note POSIX Safety
  4697. Concepts::.
  4698. These functions return the inverse complex hyperbolic sine of
  4699. Z--the value whose complex hyperbolic sine is Z.
  4700. -- Function: complex double cacosh (complex double Z)
  4701. -- Function: complex float cacoshf (complex float Z)
  4702. -- Function: complex long double cacoshl (complex long double Z)
  4703. -- Function: complex _FloatN cacoshfN (complex _FloatN Z)
  4704. -- Function: complex _FloatNx cacoshfNx (complex _FloatNx Z)
  4705. Preliminary: | MT-Safe | AS-Safe | AC-Safe | *Note POSIX Safety
  4706. Concepts::.
  4707. These functions return the inverse complex hyperbolic cosine of
  4708. Z--the value whose complex hyperbolic cosine is Z. Unlike the
  4709. real-valued functions, there are no restrictions on the value of Z.
  4710. -- Function: complex double catanh (complex double Z)
  4711. -- Function: complex float catanhf (complex float Z)
  4712. -- Function: complex long double catanhl (complex long double Z)
  4713. -- Function: complex _FloatN catanhfN (complex _FloatN Z)
  4714. -- Function: complex _FloatNx catanhfNx (complex _FloatNx Z)
  4715. Preliminary: | MT-Safe | AS-Safe | AC-Safe | *Note POSIX Safety
  4716. Concepts::.
  4717. These functions return the inverse complex hyperbolic tangent of
  4718. Z--the value whose complex hyperbolic tangent is Z. Unlike the
  4719. real-valued functions, there are no restrictions on the value of Z.
  4720. 
  4721. File: libc.info, Node: Special Functions, Next: Errors in Math Functions, Prev: Hyperbolic Functions, Up: Mathematics
  4722. 19.6 Special Functions
  4723. ======================
  4724. These are some more exotic mathematical functions which are sometimes
  4725. useful. Currently they only have real-valued versions.
  4726. -- Function: double erf (double X)
  4727. -- Function: float erff (float X)
  4728. -- Function: long double erfl (long double X)
  4729. -- Function: _FloatN erffN (_FloatN X)
  4730. -- Function: _FloatNx erffNx (_FloatNx X)
  4731. Preliminary: | MT-Safe | AS-Safe | AC-Safe | *Note POSIX Safety
  4732. Concepts::.
  4733. ‘erf’ returns the error function of X. The error function is
  4734. defined as
  4735. erf (x) = 2/sqrt(pi) * integral from 0 to x of exp(-t^2) dt
  4736. -- Function: double erfc (double X)
  4737. -- Function: float erfcf (float X)
  4738. -- Function: long double erfcl (long double X)
  4739. -- Function: _FloatN erfcfN (_FloatN X)
  4740. -- Function: _FloatNx erfcfNx (_FloatNx X)
  4741. Preliminary: | MT-Safe | AS-Safe | AC-Safe | *Note POSIX Safety
  4742. Concepts::.
  4743. ‘erfc’ returns ‘1.0 - erf(X)’, but computed in a fashion that
  4744. avoids round-off error when X is large.
  4745. -- Function: double lgamma (double X)
  4746. -- Function: float lgammaf (float X)
  4747. -- Function: long double lgammal (long double X)
  4748. -- Function: _FloatN lgammafN (_FloatN X)
  4749. -- Function: _FloatNx lgammafNx (_FloatNx X)
  4750. Preliminary: | MT-Unsafe race:signgam | AS-Unsafe | AC-Safe | *Note
  4751. POSIX Safety Concepts::.
  4752. ‘lgamma’ returns the natural logarithm of the absolute value of the
  4753. gamma function of X. The gamma function is defined as
  4754. gamma (x) = integral from 0 to oo of t^(x-1) e^-t dt
  4755. The sign of the gamma function is stored in the global variable
  4756. SIGNGAM, which is declared in ‘math.h’. It is ‘1’ if the
  4757. intermediate result was positive or zero, or ‘-1’ if it was
  4758. negative.
  4759. To compute the real gamma function you can use the ‘tgamma’
  4760. function or you can compute the values as follows:
  4761. lgam = lgamma(x);
  4762. gam = signgam*exp(lgam);
  4763. The gamma function has singularities at the non-positive integers.
  4764. ‘lgamma’ will raise the zero divide exception if evaluated at a
  4765. singularity.
  4766. -- Function: double lgamma_r (double X, int *SIGNP)
  4767. -- Function: float lgammaf_r (float X, int *SIGNP)
  4768. -- Function: long double lgammal_r (long double X, int *SIGNP)
  4769. -- Function: _FloatN lgammafN_r (_FloatN X, int *SIGNP)
  4770. -- Function: _FloatNx lgammafNx_r (_FloatNx X, int *SIGNP)
  4771. Preliminary: | MT-Safe | AS-Safe | AC-Safe | *Note POSIX Safety
  4772. Concepts::.
  4773. ‘lgamma_r’ is just like ‘lgamma’, but it stores the sign of the
  4774. intermediate result in the variable pointed to by SIGNP instead of
  4775. in the SIGNGAM global. This means it is reentrant.
  4776. The ‘lgammafN_r’ and ‘lgammafNx_r’ functions are GNU extensions.
  4777. -- Function: double gamma (double X)
  4778. -- Function: float gammaf (float X)
  4779. -- Function: long double gammal (long double X)
  4780. Preliminary: | MT-Unsafe race:signgam | AS-Unsafe | AC-Safe | *Note
  4781. POSIX Safety Concepts::.
  4782. These functions exist for compatibility reasons. They are
  4783. equivalent to ‘lgamma’ etc. It is better to use ‘lgamma’ since for
  4784. one the name reflects better the actual computation, and moreover
  4785. ‘lgamma’ is standardized in ISO C99 while ‘gamma’ is not.
  4786. -- Function: double tgamma (double X)
  4787. -- Function: float tgammaf (float X)
  4788. -- Function: long double tgammal (long double X)
  4789. -- Function: _FloatN tgammafN (_FloatN X)
  4790. -- Function: _FloatNx tgammafNx (_FloatNx X)
  4791. Preliminary: | MT-Safe | AS-Safe | AC-Safe | *Note POSIX Safety
  4792. Concepts::.
  4793. ‘tgamma’ applies the gamma function to X. The gamma function is
  4794. defined as
  4795. gamma (x) = integral from 0 to oo of t^(x-1) e^-t dt
  4796. This function was introduced in ISO C99. The ‘_FloatN’ and
  4797. ‘_FloatNx’ variants were introduced in ISO/IEC TS 18661-3.
  4798. -- Function: double j0 (double X)
  4799. -- Function: float j0f (float X)
  4800. -- Function: long double j0l (long double X)
  4801. -- Function: _FloatN j0fN (_FloatN X)
  4802. -- Function: _FloatNx j0fNx (_FloatNx X)
  4803. Preliminary: | MT-Safe | AS-Safe | AC-Safe | *Note POSIX Safety
  4804. Concepts::.
  4805. ‘j0’ returns the Bessel function of the first kind of order 0 of X.
  4806. It may signal underflow if X is too large.
  4807. The ‘_FloatN’ and ‘_FloatNx’ variants are GNU extensions.
  4808. -- Function: double j1 (double X)
  4809. -- Function: float j1f (float X)
  4810. -- Function: long double j1l (long double X)
  4811. -- Function: _FloatN j1fN (_FloatN X)
  4812. -- Function: _FloatNx j1fNx (_FloatNx X)
  4813. Preliminary: | MT-Safe | AS-Safe | AC-Safe | *Note POSIX Safety
  4814. Concepts::.
  4815. ‘j1’ returns the Bessel function of the first kind of order 1 of X.
  4816. It may signal underflow if X is too large.
  4817. The ‘_FloatN’ and ‘_FloatNx’ variants are GNU extensions.
  4818. -- Function: double jn (int N, double X)
  4819. -- Function: float jnf (int N, float X)
  4820. -- Function: long double jnl (int N, long double X)
  4821. -- Function: _FloatN jnfN (int N, _FloatN X)
  4822. -- Function: _FloatNx jnfNx (int N, _FloatNx X)
  4823. Preliminary: | MT-Safe | AS-Safe | AC-Safe | *Note POSIX Safety
  4824. Concepts::.
  4825. ‘jn’ returns the Bessel function of the first kind of order N of X.
  4826. It may signal underflow if X is too large.
  4827. The ‘_FloatN’ and ‘_FloatNx’ variants are GNU extensions.
  4828. -- Function: double y0 (double X)
  4829. -- Function: float y0f (float X)
  4830. -- Function: long double y0l (long double X)
  4831. -- Function: _FloatN y0fN (_FloatN X)
  4832. -- Function: _FloatNx y0fNx (_FloatNx X)
  4833. Preliminary: | MT-Safe | AS-Safe | AC-Safe | *Note POSIX Safety
  4834. Concepts::.
  4835. ‘y0’ returns the Bessel function of the second kind of order 0 of
  4836. X. It may signal underflow if X is too large. If X is negative,
  4837. ‘y0’ signals a domain error; if it is zero, ‘y0’ signals overflow
  4838. and returns -oo.
  4839. The ‘_FloatN’ and ‘_FloatNx’ variants are GNU extensions.
  4840. -- Function: double y1 (double X)
  4841. -- Function: float y1f (float X)
  4842. -- Function: long double y1l (long double X)
  4843. -- Function: _FloatN y1fN (_FloatN X)
  4844. -- Function: _FloatNx y1fNx (_FloatNx X)
  4845. Preliminary: | MT-Safe | AS-Safe | AC-Safe | *Note POSIX Safety
  4846. Concepts::.
  4847. ‘y1’ returns the Bessel function of the second kind of order 1 of
  4848. X. It may signal underflow if X is too large. If X is negative,
  4849. ‘y1’ signals a domain error; if it is zero, ‘y1’ signals overflow
  4850. and returns -oo.
  4851. The ‘_FloatN’ and ‘_FloatNx’ variants are GNU extensions.
  4852. -- Function: double yn (int N, double X)
  4853. -- Function: float ynf (int N, float X)
  4854. -- Function: long double ynl (int N, long double X)
  4855. -- Function: _FloatN ynfN (int N, _FloatN X)
  4856. -- Function: _FloatNx ynfNx (int N, _FloatNx X)
  4857. Preliminary: | MT-Safe | AS-Safe | AC-Safe | *Note POSIX Safety
  4858. Concepts::.
  4859. ‘yn’ returns the Bessel function of the second kind of order N of
  4860. X. It may signal underflow if X is too large. If X is negative,
  4861. ‘yn’ signals a domain error; if it is zero, ‘yn’ signals overflow
  4862. and returns -oo.
  4863. The ‘_FloatN’ and ‘_FloatNx’ variants are GNU extensions.
  4864. 
  4865. File: libc.info, Node: Errors in Math Functions, Next: Pseudo-Random Numbers, Prev: Special Functions, Up: Mathematics
  4866. 19.7 Errors in Math Functions
  4867. =============================
  4868. Errors are measured in "units of the last place". This is a measure for
  4869. the relative error. For a number z with the representation d.d...d*2^e
  4870. (we assume IEEE floating-point numbers with base 2) the ULP is
  4871. represented by
  4872. |d.d...d - (z / 2^e)| / 2^(p - 1)
  4873. where p is the number of bits in the mantissa of the floating-point
  4874. number representation. Ideally the error for all functions is always
  4875. less than 0.5ulps in round-to-nearest mode. Using rounding bits this is
  4876. also possible and normally implemented for the basic operations. Except
  4877. for certain functions such as ‘sqrt’, ‘fma’ and ‘rint’ whose results are
  4878. fully specified by reference to corresponding IEEE 754 floating-point
  4879. operations, and conversions between strings and floating point, the GNU
  4880. C Library does not aim for correctly rounded results for functions in
  4881. the math library, and does not aim for correctness in whether "inexact"
  4882. exceptions are raised. Instead, the goals for accuracy of functions
  4883. without fully specified results are as follows; some functions have bugs
  4884. meaning they do not meet these goals in all cases. In the future, the
  4885. GNU C Library may provide some other correctly rounding functions under
  4886. the names such as ‘crsin’ proposed for an extension to ISO C.
  4887. • Each function with a floating-point result behaves as if it
  4888. computes an infinite-precision result that is within a few ulp (in
  4889. both real and complex parts, for functions with complex results) of
  4890. the mathematically correct value of the function (interpreted
  4891. together with ISO C or POSIX semantics for the function in
  4892. question) at the exact value passed as the input. Exceptions are
  4893. raised appropriately for this value and in accordance with IEEE 754
  4894. / ISO C / POSIX semantics, and it is then rounded according to the
  4895. current rounding direction to the result that is returned to the
  4896. user. ‘errno’ may also be set (*note Math Error Reporting::).
  4897. (The "inexact" exception may be raised, or not raised, even if this
  4898. is inconsistent with the infinite-precision value.)
  4899. • For the IBM ‘long double’ format, as used on PowerPC GNU/Linux, the
  4900. accuracy goal is weaker for input values not exactly representable
  4901. in 106 bits of precision; it is as if the input value is some value
  4902. within 0.5ulp of the value actually passed, where "ulp" is
  4903. interpreted in terms of a fixed-precision 106-bit mantissa, but not
  4904. necessarily the exact value actually passed with discontiguous
  4905. mantissa bits.
  4906. • For the IBM ‘long double’ format, functions whose results are fully
  4907. specified by reference to corresponding IEEE 754 floating-point
  4908. operations have the same accuracy goals as other functions, but
  4909. with the error bound being the same as that for division (3ulp).
  4910. Furthermore, "inexact" and "underflow" exceptions may be raised for
  4911. all functions for any inputs, even where such exceptions are
  4912. inconsistent with the returned value, since the underlying
  4913. floating-point arithmetic has that property.
  4914. • Functions behave as if the infinite-precision result computed is
  4915. zero, infinity or NaN if and only if that is the mathematically
  4916. correct infinite-precision result. They behave as if the
  4917. infinite-precision result computed always has the same sign as the
  4918. mathematically correct result.
  4919. • If the mathematical result is more than a few ulp above the
  4920. overflow threshold for the current rounding direction, the value
  4921. returned is the appropriate overflow value for the current rounding
  4922. direction, with the overflow exception raised.
  4923. • If the mathematical result has magnitude well below half the least
  4924. subnormal magnitude, the returned value is either zero or the least
  4925. subnormal (in each case, with the correct sign), according to the
  4926. current rounding direction and with the underflow exception raised.
  4927. • Where the mathematical result underflows (before rounding) and is
  4928. not exactly representable as a floating-point value, the function
  4929. does not behave as if the computed infinite-precision result is an
  4930. exact value in the subnormal range. This means that the underflow
  4931. exception is raised other than possibly for cases where the
  4932. mathematical result is very close to the underflow threshold and
  4933. the function behaves as if it computes an infinite-precision result
  4934. that does not underflow. (So there may be spurious underflow
  4935. exceptions in cases where the underflowing result is exact, but not
  4936. missing underflow exceptions in cases where it is inexact.)
  4937. • The GNU C Library does not aim for functions to satisfy other
  4938. properties of the underlying mathematical function, such as
  4939. monotonicity, where not implied by the above goals.
  4940. • All the above applies to both real and complex parts, for complex
  4941. functions.
  4942. Therefore many of the functions in the math library have errors. The
  4943. math testsuite only flags results larger than 9ulp (or 16 for IBM ‘long
  4944. double’ format) as errors; although most of the implementations show
  4945. errors smaller than the limit.
  4946. A more comprehensive analysis of the GNU C Library math functions
  4947. precision could be found in 'Accuracy of Mathematical Functions in
  4948. Single, Double, Double Extended, and Quadruple Precision'; Brian
  4949. Gladman, Vincenzo Innocente, John Mather, and Paul Zimmermann at
  4950. <<https://inria.hal.science/hal-03141101>>. It does not cover complex
  4951. functions, nor ‘jn’/‘yn’, and it is only for x86_64, and for rounding to
  4952. nearest, and does not cover any architecture variations (in particular
  4953. IBM ‘long double’ is out of scope).
  4954. For complex functions, some analysis of the GNU C Library math
  4955. functions can be found in 'Accuracy of Complex Mathematical Operations
  4956. and Functions in Single and Double Precision'; Paul Caprioli, Vincenzo
  4957. Innocente, Paul Zimmermann at <https://inria.hal.science/hal-04714173>.
  4958. It only covers ‘float’ and ‘double’, only for x86_64, and for rounding
  4959. to nearest, and does not cover any architecture variations.
  4960. 
  4961. File: libc.info, Node: Pseudo-Random Numbers, Next: FP Function Optimizations, Prev: Errors in Math Functions, Up: Mathematics
  4962. 19.8 Pseudo-Random Numbers
  4963. ==========================
  4964. This section describes the GNU facilities for generating a series of
  4965. pseudo-random numbers. The numbers generated are not truly random;
  4966. typically, they form a sequence that repeats periodically, with a period
  4967. so large that you can ignore it for ordinary purposes. The random
  4968. number generator works by remembering a “seed” value which it uses to
  4969. compute the next random number and also to compute a new seed.
  4970. Although the generated numbers look unpredictable within one run of a
  4971. program, the sequence of numbers is _exactly the same_ from one run to
  4972. the next. This is because the initial seed is always the same. This is
  4973. convenient when you are debugging a program, but it is unhelpful if you
  4974. want the program to behave unpredictably. If you want a different
  4975. pseudo-random series each time your program runs, you must specify a
  4976. different seed each time. For ordinary purposes, basing the seed on the
  4977. current time works well. For random numbers in cryptography, *note
  4978. Unpredictable Bytes::.
  4979. You can obtain repeatable sequences of numbers on a particular
  4980. machine type by specifying the same initial seed value for the random
  4981. number generator. There is no standard meaning for a particular seed
  4982. value; the same seed, used in different C libraries or on different CPU
  4983. types, will give you different random numbers.
  4984. The GNU C Library supports the standard ISO C random number functions
  4985. plus two other sets derived from BSD and SVID. The BSD and ISO C
  4986. functions provide identical, somewhat limited functionality. If only a
  4987. small number of random bits are required, we recommend you use the ISO C
  4988. interface, ‘rand’ and ‘srand’. The SVID functions provide a more
  4989. flexible interface, which allows better random number generator
  4990. algorithms, provides more random bits (up to 48) per call, and can
  4991. provide random floating-point numbers. These functions are required by
  4992. the XPG standard and therefore will be present in all modern Unix
  4993. systems.
  4994. * Menu:
  4995. * ISO Random:: ‘rand’ and friends.
  4996. * BSD Random:: ‘random’ and friends.
  4997. * SVID Random:: ‘drand48’ and friends.
  4998. * High Quality Random:: ‘arc4random’ and friends.
  4999. 
  5000. File: libc.info, Node: ISO Random, Next: BSD Random, Up: Pseudo-Random Numbers
  5001. 19.8.1 ISO C Random Number Functions
  5002. ------------------------------------
  5003. This section describes the random number functions that are part of the
  5004. ISO C standard.
  5005. To use these facilities, you should include the header file
  5006. ‘stdlib.h’ in your program.
  5007. -- Macro: int RAND_MAX
  5008. The value of this macro is an integer constant representing the
  5009. largest value the ‘rand’ function can return. In the GNU C
  5010. Library, it is ‘2147483647’, which is the largest signed integer
  5011. representable in 32 bits. In other libraries, it may be as low as
  5012. ‘32767’.
  5013. -- Function: int rand (void)
  5014. Preliminary: | MT-Safe | AS-Unsafe lock | AC-Unsafe lock | *Note
  5015. POSIX Safety Concepts::.
  5016. The ‘rand’ function returns the next pseudo-random number in the
  5017. series. The value ranges from ‘0’ to ‘RAND_MAX’.
  5018. -- Function: void srand (unsigned int SEED)
  5019. Preliminary: | MT-Safe | AS-Unsafe lock | AC-Unsafe lock | *Note
  5020. POSIX Safety Concepts::.
  5021. This function establishes SEED as the seed for a new series of
  5022. pseudo-random numbers. If you call ‘rand’ before a seed has been
  5023. established with ‘srand’, it uses the value ‘1’ as a default seed.
  5024. To produce a different pseudo-random series each time your program
  5025. is run, do ‘srand (time (0))’.
  5026. POSIX.1 extended the C standard functions to support reproducible
  5027. random numbers in multi-threaded programs. However, the extension is
  5028. badly designed and unsuitable for serious work.
  5029. -- Function: int rand_r (unsigned int *SEED)
  5030. Preliminary: | MT-Safe | AS-Safe | AC-Safe | *Note POSIX Safety
  5031. Concepts::.
  5032. This function returns a random number in the range 0 to ‘RAND_MAX’
  5033. just as ‘rand’ does. However, all its state is stored in the SEED
  5034. argument. This means the RNG's state can only have as many bits as
  5035. the type ‘unsigned int’ has. This is far too few to provide a good
  5036. RNG.
  5037. If your program requires a reentrant RNG, we recommend you use the
  5038. reentrant GNU extensions to the SVID random number generator. The
  5039. POSIX.1 interface should only be used when the GNU extensions are
  5040. not available.
  5041. 
  5042. File: libc.info, Node: BSD Random, Next: SVID Random, Prev: ISO Random, Up: Pseudo-Random Numbers
  5043. 19.8.2 BSD Random Number Functions
  5044. ----------------------------------
  5045. This section describes a set of random number generation functions that
  5046. are derived from BSD. There is no advantage to using these functions
  5047. with the GNU C Library; we support them for BSD compatibility only.
  5048. The prototypes for these functions are in ‘stdlib.h’.
  5049. -- Function: long int random (void)
  5050. Preliminary: | MT-Safe | AS-Unsafe lock | AC-Unsafe lock | *Note
  5051. POSIX Safety Concepts::.
  5052. This function returns the next pseudo-random number in the
  5053. sequence. The value returned ranges from ‘0’ to ‘2147483647’.
  5054. *NB:* Temporarily this function was defined to return a ‘int32_t’
  5055. value to indicate that the return value always contains 32 bits
  5056. even if ‘long int’ is wider. The standard demands it differently.
  5057. Users must always be aware of the 32-bit limitation, though.
  5058. -- Function: void srandom (unsigned int SEED)
  5059. Preliminary: | MT-Safe | AS-Unsafe lock | AC-Unsafe lock | *Note
  5060. POSIX Safety Concepts::.
  5061. The ‘srandom’ function sets the state of the random number
  5062. generator based on the integer SEED. If you supply a SEED value of
  5063. ‘1’, this will cause ‘random’ to reproduce the default set of
  5064. random numbers.
  5065. To produce a different set of pseudo-random numbers each time your
  5066. program runs, do ‘srandom (time (0))’.
  5067. -- Function: char * initstate (unsigned int SEED, char *STATE, size_t
  5068. SIZE)
  5069. Preliminary: | MT-Safe | AS-Unsafe lock | AC-Unsafe lock | *Note
  5070. POSIX Safety Concepts::.
  5071. The ‘initstate’ function is used to initialize the random number
  5072. generator state. The argument STATE is an array of SIZE bytes,
  5073. used to hold the state information. It is initialized based on
  5074. SEED. The size must be between 8 and 256 bytes, and should be a
  5075. power of two. The bigger the STATE array, the better.
  5076. The return value is the previous value of the state information
  5077. array. You can use this value later as an argument to ‘setstate’
  5078. to restore that state.
  5079. -- Function: char * setstate (char *STATE)
  5080. Preliminary: | MT-Safe | AS-Unsafe lock | AC-Unsafe lock | *Note
  5081. POSIX Safety Concepts::.
  5082. The ‘setstate’ function restores the random number state
  5083. information STATE. The argument must have been the result of a
  5084. previous call to INITSTATE or SETSTATE.
  5085. The return value is the previous value of the state information
  5086. array. You can use this value later as an argument to ‘setstate’
  5087. to restore that state.
  5088. If the function fails the return value is ‘NULL’.
  5089. The four functions described so far in this section all work on a
  5090. state which is shared by all threads. The state is not directly
  5091. accessible to the user and can only be modified by these functions.
  5092. This makes it hard to deal with situations where each thread should have
  5093. its own pseudo-random number generator.
  5094. The GNU C Library contains four additional functions which contain
  5095. the state as an explicit parameter and therefore make it possible to
  5096. handle thread-local PRNGs. Besides this there is no difference. In
  5097. fact, the four functions already discussed are implemented internally
  5098. using the following interfaces.
  5099. The ‘stdlib.h’ header contains a definition of the following type:
  5100. -- Data Type: struct random_data
  5101. Objects of type ‘struct random_data’ contain the information
  5102. necessary to represent the state of the PRNG. Although a complete
  5103. definition of the type is present the type should be treated as
  5104. opaque.
  5105. The functions modifying the state follow exactly the already
  5106. described functions.
  5107. -- Function: int random_r (struct random_data *restrict BUF, int32_t
  5108. *restrict RESULT)
  5109. Preliminary: | MT-Safe race:buf | AS-Safe | AC-Unsafe corrupt |
  5110. *Note POSIX Safety Concepts::.
  5111. The ‘random_r’ function behaves exactly like the ‘random’ function
  5112. except that it uses and modifies the state in the object pointed to
  5113. by the first parameter instead of the global state.
  5114. -- Function: int srandom_r (unsigned int SEED, struct random_data *BUF)
  5115. Preliminary: | MT-Safe race:buf | AS-Safe | AC-Unsafe corrupt |
  5116. *Note POSIX Safety Concepts::.
  5117. The ‘srandom_r’ function behaves exactly like the ‘srandom’
  5118. function except that it uses and modifies the state in the object
  5119. pointed to by the second parameter instead of the global state.
  5120. -- Function: int initstate_r (unsigned int SEED, char *restrict
  5121. STATEBUF, size_t STATELEN, struct random_data *restrict BUF)
  5122. Preliminary: | MT-Safe race:buf | AS-Safe | AC-Unsafe corrupt |
  5123. *Note POSIX Safety Concepts::.
  5124. The ‘initstate_r’ function behaves exactly like the ‘initstate’
  5125. function except that it uses and modifies the state in the object
  5126. pointed to by the fourth parameter instead of the global state.
  5127. -- Function: int setstate_r (char *restrict STATEBUF, struct
  5128. random_data *restrict BUF)
  5129. Preliminary: | MT-Safe race:buf | AS-Safe | AC-Unsafe corrupt |
  5130. *Note POSIX Safety Concepts::.
  5131. The ‘setstate_r’ function behaves exactly like the ‘setstate’
  5132. function except that it uses and modifies the state in the object
  5133. pointed to by the first parameter instead of the global state.
  5134. 
  5135. File: libc.info, Node: SVID Random, Next: High Quality Random, Prev: BSD Random, Up: Pseudo-Random Numbers
  5136. 19.8.3 SVID Random Number Function
  5137. ----------------------------------
  5138. The C library on SVID systems contains yet another kind of random number
  5139. generator functions. They use a state of 48 bits of data. The user can
  5140. choose among a collection of functions which return the random bits in
  5141. different forms.
  5142. Generally there are two kinds of function. The first uses a state of
  5143. the random number generator which is shared among several functions and
  5144. by all threads of the process. The second requires the user to handle
  5145. the state.
  5146. All functions have in common that they use the same congruential
  5147. formula with the same constants. The formula is
  5148. Y = (a * X + c) mod m
  5149. where X is the state of the generator at the beginning and Y the state
  5150. at the end. ‘a’ and ‘c’ are constants determining the way the generator
  5151. works. By default they are
  5152. a = 0x5DEECE66D = 25214903917
  5153. c = 0xb = 11
  5154. but they can also be changed by the user. ‘m’ is of course 2^48 since
  5155. the state consists of a 48-bit array.
  5156. The prototypes for these functions are in ‘stdlib.h’.
  5157. -- Function: double drand48 (void)
  5158. Preliminary: | MT-Unsafe race:drand48 | AS-Unsafe | AC-Unsafe
  5159. corrupt | *Note POSIX Safety Concepts::.
  5160. This function returns a ‘double’ value in the range of ‘0.0’ to
  5161. ‘1.0’ (exclusive). The random bits are determined by the global
  5162. state of the random number generator in the C library.
  5163. Since the ‘double’ type according to IEEE 754 has a 52-bit mantissa
  5164. this means 4 bits are not initialized by the random number
  5165. generator. These are (of course) chosen to be the least
  5166. significant bits and they are initialized to ‘0’.
  5167. -- Function: double erand48 (unsigned short int XSUBI[3])
  5168. Preliminary: | MT-Unsafe race:drand48 | AS-Unsafe | AC-Unsafe
  5169. corrupt | *Note POSIX Safety Concepts::.
  5170. This function returns a ‘double’ value in the range of ‘0.0’ to
  5171. ‘1.0’ (exclusive), similarly to ‘drand48’. The argument is an
  5172. array describing the state of the random number generator.
  5173. This function can be called subsequently since it updates the array
  5174. to guarantee random numbers. The array should have been
  5175. initialized before initial use to obtain reproducible results.
  5176. -- Function: long int lrand48 (void)
  5177. Preliminary: | MT-Unsafe race:drand48 | AS-Unsafe | AC-Unsafe
  5178. corrupt | *Note POSIX Safety Concepts::.
  5179. The ‘lrand48’ function returns an integer value in the range of ‘0’
  5180. to ‘2^31’ (exclusive). Even if the size of the ‘long int’ type can
  5181. take more than 32 bits, no higher numbers are returned. The random
  5182. bits are determined by the global state of the random number
  5183. generator in the C library.
  5184. -- Function: long int nrand48 (unsigned short int XSUBI[3])
  5185. Preliminary: | MT-Unsafe race:drand48 | AS-Unsafe | AC-Unsafe
  5186. corrupt | *Note POSIX Safety Concepts::.
  5187. This function is similar to the ‘lrand48’ function in that it
  5188. returns a number in the range of ‘0’ to ‘2^31’ (exclusive) but the
  5189. state of the random number generator used to produce the random
  5190. bits is determined by the array provided as the parameter to the
  5191. function.
  5192. The numbers in the array are updated afterwards so that subsequent
  5193. calls to this function yield different results (as is expected of a
  5194. random number generator). The array should have been initialized
  5195. before the first call to obtain reproducible results.
  5196. -- Function: long int mrand48 (void)
  5197. Preliminary: | MT-Unsafe race:drand48 | AS-Unsafe | AC-Unsafe
  5198. corrupt | *Note POSIX Safety Concepts::.
  5199. The ‘mrand48’ function is similar to ‘lrand48’. The only
  5200. difference is that the numbers returned are in the range ‘-2^31’ to
  5201. ‘2^31’ (exclusive).
  5202. -- Function: long int jrand48 (unsigned short int XSUBI[3])
  5203. Preliminary: | MT-Unsafe race:drand48 | AS-Unsafe | AC-Unsafe
  5204. corrupt | *Note POSIX Safety Concepts::.
  5205. The ‘jrand48’ function is similar to ‘nrand48’. The only
  5206. difference is that the numbers returned are in the range ‘-2^31’ to
  5207. ‘2^31’ (exclusive). For the ‘xsubi’ parameter the same
  5208. requirements are necessary.
  5209. The internal state of the random number generator can be initialized
  5210. in several ways. The methods differ in the completeness of the
  5211. information provided.
  5212. -- Function: void srand48 (long int SEEDVAL)
  5213. Preliminary: | MT-Unsafe race:drand48 | AS-Unsafe | AC-Unsafe
  5214. corrupt | *Note POSIX Safety Concepts::.
  5215. The ‘srand48’ function sets the most significant 32 bits of the
  5216. internal state of the random number generator to the least
  5217. significant 32 bits of the SEEDVAL parameter. The lower 16 bits
  5218. are initialized to the value ‘0x330E’. Even if the ‘long int’ type
  5219. contains more than 32 bits only the lower 32 bits are used.
  5220. Owing to this limitation, initialization of the state of this
  5221. function is not very useful. But it makes it easy to use a
  5222. construct like ‘srand48 (time (0))’.
  5223. A side-effect of this function is that the values ‘a’ and ‘c’ from
  5224. the internal state, which are used in the congruential formula, are
  5225. reset to the default values given above. This is of importance
  5226. once the user has called the ‘lcong48’ function (see below).
  5227. -- Function: unsigned short int * seed48 (unsigned short int
  5228. SEED16V[3])
  5229. Preliminary: | MT-Unsafe race:drand48 | AS-Unsafe | AC-Unsafe
  5230. corrupt | *Note POSIX Safety Concepts::.
  5231. The ‘seed48’ function initializes all 48 bits of the state of the
  5232. internal random number generator from the contents of the parameter
  5233. SEED16V. Here the lower 16 bits of the first element of SEED16V
  5234. initialize the least significant 16 bits of the internal state, the
  5235. lower 16 bits of ‘SEED16V[1]’ initialize the mid-order 16 bits of
  5236. the state and the 16 lower bits of ‘SEED16V[2]’ initialize the most
  5237. significant 16 bits of the state.
  5238. Unlike ‘srand48’ this function lets the user initialize all 48 bits
  5239. of the state.
  5240. The value returned by ‘seed48’ is a pointer to an array containing
  5241. the values of the internal state before the change. This might be
  5242. useful to restart the random number generator at a certain state.
  5243. Otherwise the value can simply be ignored.
  5244. As for ‘srand48’, the values ‘a’ and ‘c’ from the congruential
  5245. formula are reset to the default values.
  5246. There is one more function to initialize the random number generator
  5247. which enables you to specify even more information by allowing you to
  5248. change the parameters in the congruential formula.
  5249. -- Function: void lcong48 (unsigned short int PARAM[7])
  5250. Preliminary: | MT-Unsafe race:drand48 | AS-Unsafe | AC-Unsafe
  5251. corrupt | *Note POSIX Safety Concepts::.
  5252. The ‘lcong48’ function allows the user to change the complete state
  5253. of the random number generator. Unlike ‘srand48’ and ‘seed48’,
  5254. this function also changes the constants in the congruential
  5255. formula.
  5256. From the seven elements in the array PARAM the least significant 16
  5257. bits of the entries ‘PARAM[0]’ to ‘PARAM[2]’ determine the initial
  5258. state, the least significant 16 bits of ‘PARAM[3]’ to ‘PARAM[5]’
  5259. determine the 48 bit constant ‘a’ and ‘PARAM[6]’ determines the
  5260. 16-bit value ‘c’.
  5261. All the above functions have in common that they use the global
  5262. parameters for the congruential formula. In multi-threaded programs it
  5263. might sometimes be useful to have different parameters in different
  5264. threads. For this reason all the above functions have a counterpart
  5265. which works on a description of the random number generator in the
  5266. user-supplied buffer instead of the global state.
  5267. Please note that it is no problem if several threads use the global
  5268. state if all threads use the functions which take a pointer to an array
  5269. containing the state. The random numbers are computed following the
  5270. same loop but if the state in the array is different all threads will
  5271. obtain an individual random number generator.
  5272. The user-supplied buffer must be of type ‘struct drand48_data’. This
  5273. type should be regarded as opaque and not manipulated directly.
  5274. -- Function: int drand48_r (struct drand48_data *BUFFER, double
  5275. *RESULT)
  5276. Preliminary: | MT-Safe race:buffer | AS-Safe | AC-Unsafe corrupt |
  5277. *Note POSIX Safety Concepts::.
  5278. This function is equivalent to the ‘drand48’ function with the
  5279. difference that it does not modify the global random number
  5280. generator parameters but instead the parameters in the buffer
  5281. supplied through the pointer BUFFER. The random number is returned
  5282. in the variable pointed to by RESULT.
  5283. The return value of the function indicates whether the call
  5284. succeeded. If the value is less than ‘0’ an error occurred and
  5285. ‘errno’ is set to indicate the problem.
  5286. This function is a GNU extension and should not be used in portable
  5287. programs.
  5288. -- Function: int erand48_r (unsigned short int XSUBI[3], struct
  5289. drand48_data *BUFFER, double *RESULT)
  5290. Preliminary: | MT-Safe race:buffer | AS-Safe | AC-Unsafe corrupt |
  5291. *Note POSIX Safety Concepts::.
  5292. The ‘erand48_r’ function works like ‘erand48’, but in addition it
  5293. takes an argument BUFFER which describes the random number
  5294. generator. The state of the random number generator is taken from
  5295. the ‘xsubi’ array, the parameters for the congruential formula from
  5296. the global random number generator data. The random number is
  5297. returned in the variable pointed to by RESULT.
  5298. The return value is non-negative if the call succeeded.
  5299. This function is a GNU extension and should not be used in portable
  5300. programs.
  5301. -- Function: int lrand48_r (struct drand48_data *BUFFER, long int
  5302. *RESULT)
  5303. Preliminary: | MT-Safe race:buffer | AS-Safe | AC-Unsafe corrupt |
  5304. *Note POSIX Safety Concepts::.
  5305. This function is similar to ‘lrand48’, but in addition it takes a
  5306. pointer to a buffer describing the state of the random number
  5307. generator just like ‘drand48’.
  5308. If the return value of the function is non-negative the variable
  5309. pointed to by RESULT contains the result. Otherwise an error
  5310. occurred.
  5311. This function is a GNU extension and should not be used in portable
  5312. programs.
  5313. -- Function: int nrand48_r (unsigned short int XSUBI[3], struct
  5314. drand48_data *BUFFER, long int *RESULT)
  5315. Preliminary: | MT-Safe race:buffer | AS-Safe | AC-Unsafe corrupt |
  5316. *Note POSIX Safety Concepts::.
  5317. The ‘nrand48_r’ function works like ‘nrand48’ in that it produces a
  5318. random number in the range ‘0’ to ‘2^31’. But instead of using the
  5319. global parameters for the congruential formula it uses the
  5320. information from the buffer pointed to by BUFFER. The state is
  5321. described by the values in XSUBI.
  5322. If the return value is non-negative the variable pointed to by
  5323. RESULT contains the result.
  5324. This function is a GNU extension and should not be used in portable
  5325. programs.
  5326. -- Function: int mrand48_r (struct drand48_data *BUFFER, long int
  5327. *RESULT)
  5328. Preliminary: | MT-Safe race:buffer | AS-Safe | AC-Unsafe corrupt |
  5329. *Note POSIX Safety Concepts::.
  5330. This function is similar to ‘mrand48’ but like the other reentrant
  5331. functions it uses the random number generator described by the
  5332. value in the buffer pointed to by BUFFER.
  5333. If the return value is non-negative the variable pointed to by
  5334. RESULT contains the result.
  5335. This function is a GNU extension and should not be used in portable
  5336. programs.
  5337. -- Function: int jrand48_r (unsigned short int XSUBI[3], struct
  5338. drand48_data *BUFFER, long int *RESULT)
  5339. Preliminary: | MT-Safe race:buffer | AS-Safe | AC-Unsafe corrupt |
  5340. *Note POSIX Safety Concepts::.
  5341. The ‘jrand48_r’ function is similar to ‘jrand48’. Like the other
  5342. reentrant functions of this function family it uses the
  5343. congruential formula parameters from the buffer pointed to by
  5344. BUFFER.
  5345. If the return value is non-negative the variable pointed to by
  5346. RESULT contains the result.
  5347. This function is a GNU extension and should not be used in portable
  5348. programs.
  5349. Before any of the above functions are used the buffer of type ‘struct
  5350. drand48_data’ should be initialized. The easiest way to do this is to
  5351. fill the whole buffer with null bytes, e.g. by
  5352. memset (buffer, '\0', sizeof (struct drand48_data));
  5353. Using any of the reentrant functions of this family now will
  5354. automatically initialize the random number generator to the default
  5355. values for the state and the parameters of the congruential formula.
  5356. The other possibility is to use any of the functions which explicitly
  5357. initialize the buffer. Though it might be obvious how to initialize the
  5358. buffer from looking at the parameter to the function, it is highly
  5359. recommended to use these functions since the result might not always be
  5360. what you expect.
  5361. -- Function: int srand48_r (long int SEEDVAL, struct drand48_data
  5362. *BUFFER)
  5363. Preliminary: | MT-Safe race:buffer | AS-Safe | AC-Unsafe corrupt |
  5364. *Note POSIX Safety Concepts::.
  5365. The description of the random number generator represented by the
  5366. information in BUFFER is initialized similarly to what the function
  5367. ‘srand48’ does. The state is initialized from the parameter
  5368. SEEDVAL and the parameters for the congruential formula are
  5369. initialized to their default values.
  5370. If the return value is non-negative the function call succeeded.
  5371. This function is a GNU extension and should not be used in portable
  5372. programs.
  5373. -- Function: int seed48_r (unsigned short int SEED16V[3], struct
  5374. drand48_data *BUFFER)
  5375. Preliminary: | MT-Safe race:buffer | AS-Safe | AC-Unsafe corrupt |
  5376. *Note POSIX Safety Concepts::.
  5377. This function is similar to ‘srand48_r’ but like ‘seed48’ it
  5378. initializes all 48 bits of the state from the parameter SEED16V.
  5379. If the return value is non-negative the function call succeeded.
  5380. It does not return a pointer to the previous state of the random
  5381. number generator like the ‘seed48’ function does. If the user
  5382. wants to preserve the state for a later re-run s/he can copy the
  5383. whole buffer pointed to by BUFFER.
  5384. This function is a GNU extension and should not be used in portable
  5385. programs.
  5386. -- Function: int lcong48_r (unsigned short int PARAM[7], struct
  5387. drand48_data *BUFFER)
  5388. Preliminary: | MT-Safe race:buffer | AS-Safe | AC-Unsafe corrupt |
  5389. *Note POSIX Safety Concepts::.
  5390. This function initializes all aspects of the random number
  5391. generator described in BUFFER with the data in PARAM. Here it is
  5392. especially true that the function does more than just copying the
  5393. contents of PARAM and BUFFER. More work is required and therefore
  5394. it is important to use this function rather than initializing the
  5395. random number generator directly.
  5396. If the return value is non-negative the function call succeeded.
  5397. This function is a GNU extension and should not be used in portable
  5398. programs.
  5399. 
  5400. File: libc.info, Node: High Quality Random, Prev: SVID Random, Up: Pseudo-Random Numbers
  5401. 19.8.4 High Quality Random Number Functions
  5402. -------------------------------------------
  5403. This section describes the random number functions provided as a GNU
  5404. extension, based on OpenBSD interfaces.
  5405. The GNU C Library uses kernel entropy obtained either through
  5406. ‘getrandom’ or by reading ‘/dev/urandom’ to seed.
  5407. These functions provide higher random quality than ISO, BSD, and SVID
  5408. functions, and may be used in cryptographic contexts.
  5409. The prototypes for these functions are in ‘stdlib.h’.
  5410. -- Function: uint32_t arc4random (void)
  5411. | MT-Safe | AS-Unsafe corrupt | AC-Safe | *Note POSIX Safety
  5412. Concepts::.
  5413. This function returns a single 32-bit value in the range of ‘0’ to
  5414. ‘2^32−1’ (inclusive), which is twice the range of ‘rand’ and
  5415. ‘random’.
  5416. -- Function: void arc4random_buf (void *BUFFER, size_t LENGTH)
  5417. | MT-Safe | AS-Unsafe corrupt | AC-Safe | *Note POSIX Safety
  5418. Concepts::.
  5419. This function fills the region BUFFER of length LENGTH bytes with
  5420. random data.
  5421. -- Function: uint32_t arc4random_uniform (uint32_t UPPER_BOUND)
  5422. | MT-Safe | AS-Unsafe corrupt | AC-Safe | *Note POSIX Safety
  5423. Concepts::.
  5424. This function returns a single 32-bit value, uniformly distributed
  5425. but less than the UPPER_BOUND. It avoids the modulo bias when the
  5426. upper bound is not a power of two.
  5427. 
  5428. File: libc.info, Node: FP Function Optimizations, Prev: Pseudo-Random Numbers, Up: Mathematics
  5429. 19.9 Is Fast Code or Small Code preferred?
  5430. ==========================================
  5431. If an application uses many floating point functions it is often the
  5432. case that the cost of the function calls themselves is not negligible.
  5433. Modern processors can often execute the operations themselves very fast,
  5434. but the function call disrupts the instruction pipeline.
  5435. For this reason the GNU C Library provides optimizations for many of
  5436. the frequently-used math functions. When GNU CC is used and the user
  5437. activates the optimizer, several new inline functions and macros are
  5438. defined. These new functions and macros have the same names as the
  5439. library functions and so are used instead of the latter. In the case of
  5440. inline functions the compiler will decide whether it is reasonable to
  5441. use them, and this decision is usually correct.
  5442. This means that no calls to the library functions may be necessary,
  5443. and can increase the speed of generated code significantly. The
  5444. drawback is that code size will increase, and the increase is not always
  5445. negligible.
  5446. There are two kinds of inline functions: those that give the same
  5447. result as the library functions and others that might not set ‘errno’
  5448. and might have a reduced precision and/or argument range in comparison
  5449. with the library functions. The latter inline functions are only
  5450. available if the flag ‘-ffast-math’ is given to GNU CC.
  5451. Not all hardware implements the entire IEEE 754 standard, and even if
  5452. it does there may be a substantial performance penalty for using some of
  5453. its features. For example, enabling traps on some processors forces the
  5454. FPU to run un-pipelined, which can more than double calculation time.
  5455. 
  5456. File: libc.info, Node: Arithmetic, Next: Bit Manipulation, Prev: Mathematics, Up: Top
  5457. 20 Arithmetic Functions
  5458. ***********************
  5459. This chapter contains information about functions for doing basic
  5460. arithmetic operations, such as splitting a float into its integer and
  5461. fractional parts or retrieving the imaginary part of a complex value.
  5462. These functions are declared in the header files ‘math.h’ and
  5463. ‘complex.h’.
  5464. * Menu:
  5465. * Integers:: Basic integer types and concepts
  5466. * Integer Division:: Integer division with guaranteed rounding.
  5467. * Floating Point Numbers:: Basic concepts. IEEE 754.
  5468. * Floating Point Classes:: The five kinds of floating-point number.
  5469. * Floating Point Errors:: When something goes wrong in a calculation.
  5470. * Rounding:: Controlling how results are rounded.
  5471. * Control Functions:: Saving and restoring the FPU's state.
  5472. * Arithmetic Functions:: Fundamental operations provided by the library.
  5473. * Complex Numbers:: The types. Writing complex constants.
  5474. * Operations on Complex:: Projection, conjugation, decomposition.
  5475. * Parsing of Numbers:: Converting strings to numbers.
  5476. * Printing of Floats:: Converting floating-point numbers to strings.
  5477. * System V Number Conversion:: An archaic way to convert numbers to strings.
  5478. 
  5479. File: libc.info, Node: Integers, Next: Integer Division, Up: Arithmetic
  5480. 20.1 Integers
  5481. =============
  5482. The C language defines several integer data types: integer, short
  5483. integer, long integer, and character, all in both signed and unsigned
  5484. varieties. The GNU C compiler extends the language to contain long long
  5485. integers as well.
  5486. The C integer types were intended to allow code to be portable among
  5487. machines with different inherent data sizes (word sizes), so each type
  5488. may have different ranges on different machines. The problem with this
  5489. is that a program often needs to be written for a particular range of
  5490. integers, and sometimes must be written for a particular size of
  5491. storage, regardless of what machine the program runs on.
  5492. To address this problem, the GNU C Library contains C type
  5493. definitions you can use to declare integers that meet your exact needs.
  5494. Because the GNU C Library header files are customized to a specific
  5495. machine, your program source code doesn't have to be.
  5496. These ‘typedef’s are in ‘stdint.h’.
  5497. If you require that an integer be represented in exactly N bits, use
  5498. one of the following types, with the obvious mapping to bit size and
  5499. signedness:
  5500. • int8_t
  5501. • int16_t
  5502. • int32_t
  5503. • int64_t
  5504. • uint8_t
  5505. • uint16_t
  5506. • uint32_t
  5507. • uint64_t
  5508. If your C compiler and target machine do not allow integers of a
  5509. certain size, the corresponding above type does not exist.
  5510. If you don't need a specific storage size, but want the smallest data
  5511. structure with _at least_ N bits, use one of these:
  5512. • int_least8_t
  5513. • int_least16_t
  5514. • int_least32_t
  5515. • int_least64_t
  5516. • uint_least8_t
  5517. • uint_least16_t
  5518. • uint_least32_t
  5519. • uint_least64_t
  5520. If you don't need a specific storage size, but want the data
  5521. structure that allows the fastest access while having at least N bits
  5522. (and among data structures with the same access speed, the smallest
  5523. one), use one of these:
  5524. • int_fast8_t
  5525. • int_fast16_t
  5526. • int_fast32_t
  5527. • int_fast64_t
  5528. • uint_fast8_t
  5529. • uint_fast16_t
  5530. • uint_fast32_t
  5531. • uint_fast64_t
  5532. If you want an integer with the widest range possible on the platform
  5533. on which it is being used, use one of the following. If you use these,
  5534. you should write code that takes into account the variable size and
  5535. range of the integer.
  5536. • intmax_t
  5537. • uintmax_t
  5538. The GNU C Library also provides macros that tell you the maximum and
  5539. minimum possible values for each integer data type. The macro names
  5540. follow these examples: ‘INT32_MAX’, ‘UINT8_MAX’, ‘INT_FAST32_MIN’,
  5541. ‘INT_LEAST64_MIN’, ‘UINTMAX_MAX’, ‘INTMAX_MAX’, ‘INTMAX_MIN’. Note that
  5542. there are no macros for unsigned integer minima. These are always zero.
  5543. Similarly, there are macros such as ‘INTMAX_WIDTH’ for the width of
  5544. these types. Those macros for integer type widths come from TS
  5545. 18661-1:2014.
  5546. There are similar macros for use with C's built in integer types
  5547. which should come with your C compiler. These are described in *note
  5548. Data Type Measurements::.
  5549. Don't forget you can use the C ‘sizeof’ function with any of these
  5550. data types to get the number of bytes of storage each uses.
  5551. 
  5552. File: libc.info, Node: Integer Division, Next: Floating Point Numbers, Prev: Integers, Up: Arithmetic
  5553. 20.2 Integer Division
  5554. =====================
  5555. This section describes functions for performing integer division. These
  5556. functions are redundant when GNU CC is used, because in GNU C the ‘/’
  5557. operator always rounds towards zero. But in other C implementations,
  5558. ‘/’ may round differently with negative arguments. ‘div’ and ‘ldiv’ are
  5559. useful because they specify how to round the quotient: towards zero.
  5560. The remainder has the same sign as the numerator.
  5561. These functions are specified to return a result R such that the
  5562. value ‘R.quot*DENOMINATOR + R.rem’ equals NUMERATOR.
  5563. To use these facilities, you should include the header file
  5564. ‘stdlib.h’ in your program.
  5565. -- Data Type: div_t
  5566. This is a structure type used to hold the result returned by the
  5567. ‘div’ function. It has the following members:
  5568. ‘int quot’
  5569. The quotient from the division.
  5570. ‘int rem’
  5571. The remainder from the division.
  5572. -- Function: div_t div (int NUMERATOR, int DENOMINATOR)
  5573. Preliminary: | MT-Safe | AS-Safe | AC-Safe | *Note POSIX Safety
  5574. Concepts::.
  5575. The function ‘div’ computes the quotient and remainder from the
  5576. division of NUMERATOR by DENOMINATOR, returning the result in a
  5577. structure of type ‘div_t’.
  5578. If the result cannot be represented (as in a division by zero), the
  5579. behavior is undefined.
  5580. Here is an example, albeit not a very useful one.
  5581. div_t result;
  5582. result = div (20, -6);
  5583. Now ‘result.quot’ is ‘-3’ and ‘result.rem’ is ‘2’.
  5584. -- Data Type: ldiv_t
  5585. This is a structure type used to hold the result returned by the
  5586. ‘ldiv’ function. It has the following members:
  5587. ‘long int quot’
  5588. The quotient from the division.
  5589. ‘long int rem’
  5590. The remainder from the division.
  5591. (This is identical to ‘div_t’ except that the components are of
  5592. type ‘long int’ rather than ‘int’.)
  5593. -- Function: ldiv_t ldiv (long int NUMERATOR, long int DENOMINATOR)
  5594. Preliminary: | MT-Safe | AS-Safe | AC-Safe | *Note POSIX Safety
  5595. Concepts::.
  5596. The ‘ldiv’ function is similar to ‘div’, except that the arguments
  5597. are of type ‘long int’ and the result is returned as a structure of
  5598. type ‘ldiv_t’.
  5599. -- Data Type: lldiv_t
  5600. This is a structure type used to hold the result returned by the
  5601. ‘lldiv’ function. It has the following members:
  5602. ‘long long int quot’
  5603. The quotient from the division.
  5604. ‘long long int rem’
  5605. The remainder from the division.
  5606. (This is identical to ‘div_t’ except that the components are of
  5607. type ‘long long int’ rather than ‘int’.)
  5608. -- Function: lldiv_t lldiv (long long int NUMERATOR, long long int
  5609. DENOMINATOR)
  5610. Preliminary: | MT-Safe | AS-Safe | AC-Safe | *Note POSIX Safety
  5611. Concepts::.
  5612. The ‘lldiv’ function is like the ‘div’ function, but the arguments
  5613. are of type ‘long long int’ and the result is returned as a
  5614. structure of type ‘lldiv_t’.
  5615. The ‘lldiv’ function was added in ISO C99.
  5616. -- Data Type: imaxdiv_t
  5617. This is a structure type used to hold the result returned by the
  5618. ‘imaxdiv’ function. It has the following members:
  5619. ‘intmax_t quot’
  5620. The quotient from the division.
  5621. ‘intmax_t rem’
  5622. The remainder from the division.
  5623. (This is identical to ‘div_t’ except that the components are of
  5624. type ‘intmax_t’ rather than ‘int’.)
  5625. See *note Integers:: for a description of the ‘intmax_t’ type.
  5626. -- Function: imaxdiv_t imaxdiv (intmax_t NUMERATOR, intmax_t
  5627. DENOMINATOR)
  5628. Preliminary: | MT-Safe | AS-Safe | AC-Safe | *Note POSIX Safety
  5629. Concepts::.
  5630. The ‘imaxdiv’ function is like the ‘div’ function, but the
  5631. arguments are of type ‘intmax_t’ and the result is returned as a
  5632. structure of type ‘imaxdiv_t’.
  5633. See *note Integers:: for a description of the ‘intmax_t’ type.
  5634. The ‘imaxdiv’ function was added in ISO C99.
  5635. 
  5636. File: libc.info, Node: Floating Point Numbers, Next: Floating Point Classes, Prev: Integer Division, Up: Arithmetic
  5637. 20.3 Floating Point Numbers
  5638. ===========================
  5639. Most computer hardware has support for two different kinds of numbers:
  5640. integers (...-3, -2, -1, 0, 1, 2, 3...) and floating-point numbers.
  5641. Floating-point numbers have three parts: the “mantissa”, the “exponent”,
  5642. and the “sign bit”. The real number represented by a floating-point
  5643. value is given by (s ? -1 : 1) * 2^e * M where s is the sign bit, e the
  5644. exponent, and M the mantissa. *Note Floating Point Concepts::, for
  5645. details. (It is possible to have a different “base” for the exponent,
  5646. but all modern hardware uses 2.)
  5647. Floating-point numbers can represent a finite subset of the real
  5648. numbers. While this subset is large enough for most purposes, it is
  5649. important to remember that the only reals that can be represented
  5650. exactly are rational numbers that have a terminating binary expansion
  5651. shorter than the width of the mantissa. Even simple fractions such as
  5652. 1/5 can only be approximated by floating point.
  5653. Mathematical operations and functions frequently need to produce
  5654. values that are not representable. Often these values can be
  5655. approximated closely enough for practical purposes, but sometimes they
  5656. can't. Historically there was no way to tell when the results of a
  5657. calculation were inaccurate. Modern computers implement the IEEE 754
  5658. standard for numerical computations, which defines a framework for
  5659. indicating to the program when the results of calculation are not
  5660. trustworthy. This framework consists of a set of “exceptions” that
  5661. indicate why a result could not be represented, and the special values
  5662. “infinity” and “not a number” (NaN).
  5663. 
  5664. File: libc.info, Node: Floating Point Classes, Next: Floating Point Errors, Prev: Floating Point Numbers, Up: Arithmetic
  5665. 20.4 Floating-Point Number Classification Functions
  5666. ===================================================
  5667. ISO C99 defines macros that let you determine what sort of
  5668. floating-point number a variable holds.
  5669. -- Macro: int fpclassify (_float-type_ X)
  5670. Preliminary: | MT-Safe | AS-Safe | AC-Safe | *Note POSIX Safety
  5671. Concepts::.
  5672. This is a generic macro which works on all floating-point types and
  5673. which returns a value of type ‘int’. The possible values are:
  5674. ‘FP_NAN’
  5675. The floating-point number X is "Not a Number" (*note Infinity
  5676. and NaN::)
  5677. ‘FP_INFINITE’
  5678. The value of X is either plus or minus infinity (*note
  5679. Infinity and NaN::)
  5680. ‘FP_ZERO’
  5681. The value of X is zero. In floating-point formats like
  5682. IEEE 754, where zero can be signed, this value is also
  5683. returned if X is negative zero.
  5684. ‘FP_SUBNORMAL’
  5685. Numbers whose absolute value is too small to be represented in
  5686. the normal format are represented in an alternate,
  5687. “denormalized” format (*note Floating Point Concepts::). This
  5688. format is less precise but can represent values closer to
  5689. zero. ‘fpclassify’ returns this value for values of X in this
  5690. alternate format.
  5691. ‘FP_NORMAL’
  5692. This value is returned for all other values of X. It
  5693. indicates that there is nothing special about the number.
  5694. ‘fpclassify’ is most useful if more than one property of a number
  5695. must be tested. There are more specific macros which only test one
  5696. property at a time. Generally these macros execute faster than
  5697. ‘fpclassify’, since there is special hardware support for them. You
  5698. should therefore use the specific macros whenever possible.
  5699. -- Macro: int iscanonical (_float-type_ X)
  5700. Preliminary: | MT-Safe | AS-Safe | AC-Safe | *Note POSIX Safety
  5701. Concepts::.
  5702. In some floating-point formats, some values have canonical
  5703. (preferred) and noncanonical encodings (for IEEE interchange binary
  5704. formats, all encodings are canonical). This macro returns a
  5705. nonzero value if X has a canonical encoding. It is from TS
  5706. 18661-1:2014.
  5707. Note that some formats have multiple encodings of a value which are
  5708. all equally canonical; ‘iscanonical’ returns a nonzero value for
  5709. all such encodings. Also, formats may have encodings that do not
  5710. correspond to any valid value of the type. In ISO C terms these
  5711. are “trap representations”; in the GNU C Library, ‘iscanonical’
  5712. returns zero for such encodings.
  5713. -- Macro: int isfinite (_float-type_ X)
  5714. Preliminary: | MT-Safe | AS-Safe | AC-Safe | *Note POSIX Safety
  5715. Concepts::.
  5716. This macro returns a nonzero value if X is finite: not plus or
  5717. minus infinity, and not NaN. It is equivalent to
  5718. (fpclassify (x) != FP_NAN && fpclassify (x) != FP_INFINITE)
  5719. ‘isfinite’ is implemented as a macro which accepts any
  5720. floating-point type.
  5721. -- Macro: int isnormal (_float-type_ X)
  5722. Preliminary: | MT-Safe | AS-Safe | AC-Safe | *Note POSIX Safety
  5723. Concepts::.
  5724. This macro returns a nonzero value if X is finite and normalized.
  5725. It is equivalent to
  5726. (fpclassify (x) == FP_NORMAL)
  5727. -- Macro: int isnan (_float-type_ X)
  5728. Preliminary: | MT-Safe | AS-Safe | AC-Safe | *Note POSIX Safety
  5729. Concepts::.
  5730. This macro returns a nonzero value if X is NaN. It is equivalent to
  5731. (fpclassify (x) == FP_NAN)
  5732. -- Macro: int issignaling (_float-type_ X)
  5733. Preliminary: | MT-Safe | AS-Safe | AC-Safe | *Note POSIX Safety
  5734. Concepts::.
  5735. This macro returns a nonzero value if X is a signaling NaN (sNaN).
  5736. It is from TS 18661-1:2014.
  5737. -- Macro: int issubnormal (_float-type_ X)
  5738. Preliminary: | MT-Safe | AS-Safe | AC-Safe | *Note POSIX Safety
  5739. Concepts::.
  5740. This macro returns a nonzero value if X is subnormal. It is from
  5741. TS 18661-1:2014.
  5742. -- Macro: int iszero (_float-type_ X)
  5743. Preliminary: | MT-Safe | AS-Safe | AC-Safe | *Note POSIX Safety
  5744. Concepts::.
  5745. This macro returns a nonzero value if X is zero. It is from TS
  5746. 18661-1:2014.
  5747. Another set of floating-point classification functions was provided
  5748. by BSD. The GNU C Library also supports these functions; however, we
  5749. recommend that you use the ISO C99 macros in new code. Those are
  5750. standard and will be available more widely. Also, since they are
  5751. macros, you do not have to worry about the type of their argument.
  5752. -- Function: int isinf (double X)
  5753. -- Function: int isinff (float X)
  5754. -- Function: int isinfl (long double X)
  5755. Preliminary: | MT-Safe | AS-Safe | AC-Safe | *Note POSIX Safety
  5756. Concepts::.
  5757. This function returns ‘-1’ if X represents negative infinity, ‘1’
  5758. if X represents positive infinity, and ‘0’ otherwise.
  5759. -- Function: int isnan (double X)
  5760. -- Function: int isnanf (float X)
  5761. -- Function: int isnanl (long double X)
  5762. Preliminary: | MT-Safe | AS-Safe | AC-Safe | *Note POSIX Safety
  5763. Concepts::.
  5764. This function returns a nonzero value if X is a "not a number"
  5765. value, and zero otherwise.
  5766. *NB:* The ‘isnan’ macro defined by ISO C99 overrides the BSD
  5767. function. This is normally not a problem, because the two routines
  5768. behave identically. However, if you really need to get the BSD
  5769. function for some reason, you can write
  5770. (isnan) (x)
  5771. -- Function: int finite (double X)
  5772. -- Function: int finitef (float X)
  5773. -- Function: int finitel (long double X)
  5774. Preliminary: | MT-Safe | AS-Safe | AC-Safe | *Note POSIX Safety
  5775. Concepts::.
  5776. This function returns a nonzero value if X is neither infinite nor
  5777. a "not a number" value, and zero otherwise.
  5778. *Portability Note:* The functions listed in this section are BSD
  5779. extensions.
  5780. 
  5781. File: libc.info, Node: Floating Point Errors, Next: Rounding, Prev: Floating Point Classes, Up: Arithmetic
  5782. 20.5 Errors in Floating-Point Calculations
  5783. ==========================================
  5784. * Menu:
  5785. * FP Exceptions:: IEEE 754 math exceptions and how to detect them.
  5786. * Infinity and NaN:: Special values returned by calculations.
  5787. * Status bit operations:: Checking for exceptions after the fact.
  5788. * Math Error Reporting:: How the math functions report errors.
  5789. 
  5790. File: libc.info, Node: FP Exceptions, Next: Infinity and NaN, Up: Floating Point Errors
  5791. 20.5.1 FP Exceptions
  5792. --------------------
  5793. The IEEE 754 standard defines five “exceptions” that can occur during a
  5794. calculation. Each corresponds to a particular sort of error, such as
  5795. overflow.
  5796. When exceptions occur (when exceptions are “raised”, in the language
  5797. of the standard), one of two things can happen. By default the
  5798. exception is simply noted in the floating-point “status word”, and the
  5799. program continues as if nothing had happened. The operation produces a
  5800. default value, which depends on the exception (see the table below).
  5801. Your program can check the status word to find out which exceptions
  5802. happened.
  5803. Alternatively, you can enable “traps” for exceptions. In that case,
  5804. when an exception is raised, your program will receive the ‘SIGFPE’
  5805. signal. The default action for this signal is to terminate the program.
  5806. *Note Signal Handling::, for how you can change the effect of the
  5807. signal.
  5808. The exceptions defined in IEEE 754 are:
  5809. ‘Invalid Operation’
  5810. This exception is raised if the given operands are invalid for the
  5811. operation to be performed. Examples are (see IEEE 754, section 7):
  5812. 1. Addition or subtraction: oo - oo. (But oo + oo = oo).
  5813. 2. Multiplication: 0 * oo.
  5814. 3. Division: 0/0 or oo/oo.
  5815. 4. Remainder: x REM y, where y is zero or x is infinite.
  5816. 5. Square root if the operand is less than zero. More generally,
  5817. any mathematical function evaluated outside its domain
  5818. produces this exception.
  5819. 6. Conversion of a floating-point number to an integer or decimal
  5820. string, when the number cannot be represented in the target
  5821. format (due to overflow, infinity, or NaN).
  5822. 7. Conversion of an unrecognizable input string.
  5823. 8. Comparison via predicates involving < or >, when one or other
  5824. of the operands is NaN. You can prevent this exception by
  5825. using the unordered comparison functions instead; see *note FP
  5826. Comparison Functions::.
  5827. If the exception does not trap, the result of the operation is NaN.
  5828. ‘Division by Zero’
  5829. This exception is raised when a finite nonzero number is divided by
  5830. zero. If no trap occurs the result is either +oo or -oo, depending
  5831. on the signs of the operands.
  5832. ‘Overflow’
  5833. This exception is raised whenever the result cannot be represented
  5834. as a finite value in the precision format of the destination. If
  5835. no trap occurs the result depends on the sign of the intermediate
  5836. result and the current rounding mode (IEEE 754, section 7.3):
  5837. 1. Round to nearest carries all overflows to oo with the sign of
  5838. the intermediate result.
  5839. 2. Round toward 0 carries all overflows to the largest
  5840. representable finite number with the sign of the intermediate
  5841. result.
  5842. 3. Round toward -oo carries positive overflows to the largest
  5843. representable finite number and negative overflows to -oo.
  5844. 4. Round toward oo carries negative overflows to the most
  5845. negative representable finite number and positive overflows to
  5846. oo.
  5847. Whenever the overflow exception is raised, the inexact exception is
  5848. also raised.
  5849. ‘Underflow’
  5850. The underflow exception is raised when an intermediate result is
  5851. too small to be calculated accurately, or if the operation's result
  5852. rounded to the destination precision is too small to be normalized.
  5853. When no trap is installed for the underflow exception, underflow is
  5854. signaled (via the underflow flag) only when both tininess and loss
  5855. of accuracy have been detected. If no trap handler is installed
  5856. the operation continues with an imprecise small value, or zero if
  5857. the destination precision cannot hold the small exact result.
  5858. ‘Inexact’
  5859. This exception is signalled if a rounded result is not exact (such
  5860. as when calculating the square root of two) or a result overflows
  5861. without an overflow trap.
  5862. 
  5863. File: libc.info, Node: Infinity and NaN, Next: Status bit operations, Prev: FP Exceptions, Up: Floating Point Errors
  5864. 20.5.2 Infinity and NaN
  5865. -----------------------
  5866. IEEE 754 floating point numbers can represent positive or negative
  5867. infinity, and “NaN” (not a number). These three values arise from
  5868. calculations whose result is undefined or cannot be represented
  5869. accurately. You can also deliberately set a floating-point variable to
  5870. any of them, which is sometimes useful. Some examples of calculations
  5871. that produce infinity or NaN:
  5872. 1/0 = oo
  5873. log (0) = -oo
  5874. sqrt (-1) = NaN
  5875. When a calculation produces any of these values, an exception also
  5876. occurs; see *note FP Exceptions::.
  5877. The basic operations and math functions all accept infinity and NaN
  5878. and produce sensible output. Infinities propagate through calculations
  5879. as one would expect: for example, 2 + oo = oo, 4/oo = 0, atan (oo) =
  5880. pi/2. NaN, on the other hand, infects any calculation that involves it.
  5881. Unless the calculation would produce the same result no matter what real
  5882. value replaced NaN, the result is NaN.
  5883. In comparison operations, positive infinity is larger than all values
  5884. except itself and NaN, and negative infinity is smaller than all values
  5885. except itself and NaN. NaN is “unordered”: it is not equal to, greater
  5886. than, or less than anything, _including itself_. ‘x == x’ is false if
  5887. the value of ‘x’ is NaN. You can use this to test whether a value is NaN
  5888. or not, but the recommended way to test for NaN is with the ‘isnan’
  5889. function (*note Floating Point Classes::). In addition, ‘<’, ‘>’, ‘<=’,
  5890. and ‘>=’ will raise an exception when applied to NaNs.
  5891. ‘math.h’ defines macros that allow you to explicitly set a variable
  5892. to infinity or NaN.
  5893. -- Macro: float INFINITY
  5894. An expression representing positive infinity. It is equal to the
  5895. value produced by mathematical operations like ‘1.0 / 0.0’.
  5896. ‘-INFINITY’ represents negative infinity.
  5897. You can test whether a floating-point value is infinite by
  5898. comparing it to this macro. However, this is not recommended; you
  5899. should use the ‘isfinite’ macro instead. *Note Floating Point
  5900. Classes::.
  5901. This macro was introduced in the ISO C99 standard.
  5902. -- Macro: float NAN
  5903. An expression representing a value which is "not a number". This
  5904. macro is a GNU extension, available only on machines that support
  5905. the "not a number" value--that is to say, on all machines that
  5906. support IEEE floating point.
  5907. You can use ‘#ifdef NAN’ to test whether the machine supports NaN.
  5908. (Of course, you must arrange for GNU extensions to be visible, such
  5909. as by defining ‘_GNU_SOURCE’, and then you must include ‘math.h’.)
  5910. -- Macro: float SNANF
  5911. -- Macro: double SNAN
  5912. -- Macro: long double SNANL
  5913. -- Macro: _FloatN SNANFN
  5914. -- Macro: _FloatNx SNANFNx
  5915. These macros, defined by TS 18661-1:2014 and TS 18661-3:2015, are
  5916. constant expressions for signaling NaNs.
  5917. -- Macro: int FE_SNANS_ALWAYS_SIGNAL
  5918. This macro, defined by TS 18661-1:2014, is defined to ‘1’ in
  5919. ‘fenv.h’ to indicate that functions and operations with signaling
  5920. NaN inputs and floating-point results always raise the invalid
  5921. exception and return a quiet NaN, even in cases (such as ‘fmax’,
  5922. ‘hypot’ and ‘pow’) where a quiet NaN input can produce a non-NaN
  5923. result. Because some compiler optimizations may not handle
  5924. signaling NaNs correctly, this macro is only defined if compiler
  5925. support for signaling NaNs is enabled. That support can be enabled
  5926. with the GCC option ‘-fsignaling-nans’.
  5927. IEEE 754 also allows for another unusual value: negative zero. This
  5928. value is produced when you divide a positive number by negative
  5929. infinity, or when a negative result is smaller than the limits of
  5930. representation.
  5931. 
  5932. File: libc.info, Node: Status bit operations, Next: Math Error Reporting, Prev: Infinity and NaN, Up: Floating Point Errors
  5933. 20.5.3 Examining the FPU status word
  5934. ------------------------------------
  5935. ISO C99 defines functions to query and manipulate the floating-point
  5936. status word. You can use these functions to check for untrapped
  5937. exceptions when it's convenient, rather than worrying about them in the
  5938. middle of a calculation.
  5939. These constants represent the various IEEE 754 exceptions. Not all
  5940. FPUs report all the different exceptions. Each constant is defined if
  5941. and only if the FPU you are compiling for supports that exception, so
  5942. you can test for FPU support with ‘#ifdef’. They are defined in
  5943. ‘fenv.h’.
  5944. ‘FE_INEXACT’
  5945. The inexact exception.
  5946. ‘FE_DIVBYZERO’
  5947. The divide by zero exception.
  5948. ‘FE_UNDERFLOW’
  5949. The underflow exception.
  5950. ‘FE_OVERFLOW’
  5951. The overflow exception.
  5952. ‘FE_INVALID’
  5953. The invalid exception.
  5954. The macro ‘FE_ALL_EXCEPT’ is the bitwise OR of all exception macros
  5955. which are supported by the FP implementation.
  5956. These functions allow you to clear exception flags, test for
  5957. exceptions, and save and restore the set of exceptions flagged.
  5958. -- Function: int feclearexcept (int EXCEPTS)
  5959. Preliminary: | MT-Safe | AS-Safe !posix | AC-Safe !posix | *Note
  5960. POSIX Safety Concepts::.
  5961. This function clears all of the supported exception flags indicated
  5962. by EXCEPTS.
  5963. The function returns zero in case the operation was successful, a
  5964. non-zero value otherwise.
  5965. -- Function: int feraiseexcept (int EXCEPTS)
  5966. Preliminary: | MT-Safe | AS-Safe | AC-Safe | *Note POSIX Safety
  5967. Concepts::.
  5968. This function raises the supported exceptions indicated by EXCEPTS.
  5969. If more than one exception bit in EXCEPTS is set the order in which
  5970. the exceptions are raised is undefined except that overflow
  5971. (‘FE_OVERFLOW’) or underflow (‘FE_UNDERFLOW’) are raised before
  5972. inexact (‘FE_INEXACT’). Whether for overflow or underflow the
  5973. inexact exception is also raised is also implementation dependent.
  5974. The function returns zero in case the operation was successful, a
  5975. non-zero value otherwise.
  5976. -- Function: int fesetexcept (int EXCEPTS)
  5977. Preliminary: | MT-Safe | AS-Safe | AC-Safe | *Note POSIX Safety
  5978. Concepts::.
  5979. This function sets the supported exception flags indicated by
  5980. EXCEPTS, like ‘feraiseexcept’, but without causing enabled traps to
  5981. be taken. ‘fesetexcept’ is from TS 18661-1:2014.
  5982. The function returns zero in case the operation was successful, a
  5983. non-zero value otherwise.
  5984. -- Function: int fetestexcept (int EXCEPTS)
  5985. Preliminary: | MT-Safe | AS-Safe | AC-Safe | *Note POSIX Safety
  5986. Concepts::.
  5987. Test whether the exception flags indicated by the parameter EXCEPT
  5988. are currently set. If any of them are, a nonzero value is returned
  5989. which specifies which exceptions are set. Otherwise the result is
  5990. zero.
  5991. To understand these functions, imagine that the status word is an
  5992. integer variable named STATUS. ‘feclearexcept’ is then equivalent to
  5993. ‘status &= ~excepts’ and ‘fetestexcept’ is equivalent to ‘(status &
  5994. excepts)’. The actual implementation may be very different, of course.
  5995. Exception flags are only cleared when the program explicitly requests
  5996. it, by calling ‘feclearexcept’. If you want to check for exceptions
  5997. from a set of calculations, you should clear all the flags first. Here
  5998. is a simple example of the way to use ‘fetestexcept’:
  5999. {
  6000. double f;
  6001. int raised;
  6002. feclearexcept (FE_ALL_EXCEPT);
  6003. f = compute ();
  6004. raised = fetestexcept (FE_OVERFLOW | FE_INVALID);
  6005. if (raised & FE_OVERFLOW) { /* ... */ }
  6006. if (raised & FE_INVALID) { /* ... */ }
  6007. /* ... */
  6008. }
  6009. You cannot explicitly set bits in the status word. You can, however,
  6010. save the entire status word and restore it later. This is done with the
  6011. following functions:
  6012. -- Function: int fegetexceptflag (fexcept_t *FLAGP, int EXCEPTS)
  6013. Preliminary: | MT-Safe | AS-Safe | AC-Safe | *Note POSIX Safety
  6014. Concepts::.
  6015. This function stores in the variable pointed to by FLAGP an
  6016. implementation-defined value representing the current setting of
  6017. the exception flags indicated by EXCEPTS.
  6018. The function returns zero in case the operation was successful, a
  6019. non-zero value otherwise.
  6020. -- Function: int fesetexceptflag (const fexcept_t *FLAGP, int EXCEPTS)
  6021. Preliminary: | MT-Safe | AS-Safe | AC-Safe | *Note POSIX Safety
  6022. Concepts::.
  6023. This function restores the flags for the exceptions indicated by
  6024. EXCEPTS to the values stored in the variable pointed to by FLAGP.
  6025. The function returns zero in case the operation was successful, a
  6026. non-zero value otherwise.
  6027. Note that the value stored in ‘fexcept_t’ bears no resemblance to the
  6028. bit mask returned by ‘fetestexcept’. The type may not even be an
  6029. integer. Do not attempt to modify an ‘fexcept_t’ variable.
  6030. -- Function: int fetestexceptflag (const fexcept_t *FLAGP, int EXCEPTS)
  6031. Preliminary: | MT-Safe | AS-Safe | AC-Safe | *Note POSIX Safety
  6032. Concepts::.
  6033. Test whether the exception flags indicated by the parameter EXCEPTS
  6034. are set in the variable pointed to by FLAGP. If any of them are, a
  6035. nonzero value is returned which specifies which exceptions are set.
  6036. Otherwise the result is zero. ‘fetestexceptflag’ is from TS
  6037. 18661-1:2014.
  6038. 
  6039. File: libc.info, Node: Math Error Reporting, Prev: Status bit operations, Up: Floating Point Errors
  6040. 20.5.4 Error Reporting by Mathematical Functions
  6041. ------------------------------------------------
  6042. Many of the math functions are defined only over a subset of the real or
  6043. complex numbers. Even if they are mathematically defined, their result
  6044. may be larger or smaller than the range representable by their return
  6045. type without loss of accuracy. These are known as “domain errors”,
  6046. “overflows”, and “underflows”, respectively. Math functions do several
  6047. things when one of these errors occurs. In this manual we will refer to
  6048. the complete response as “signalling” a domain error, overflow, or
  6049. underflow.
  6050. When a math function suffers a domain error, it raises the invalid
  6051. exception and returns NaN. It also sets ‘errno’ to ‘EDOM’; this is for
  6052. compatibility with old systems that do not support IEEE 754 exception
  6053. handling. Likewise, when overflow occurs, math functions raise the
  6054. overflow exception and, in the default rounding mode, return oo or -oo
  6055. as appropriate (in other rounding modes, the largest finite value of the
  6056. appropriate sign is returned when appropriate for that rounding mode).
  6057. They also set ‘errno’ to ‘ERANGE’ if returning oo or -oo; ‘errno’ may or
  6058. may not be set to ‘ERANGE’ when a finite value is returned on overflow.
  6059. When underflow occurs, the underflow exception is raised, and zero
  6060. (appropriately signed) or a subnormal value, as appropriate for the
  6061. mathematical result of the function and the rounding mode, is returned.
  6062. ‘errno’ may be set to ‘ERANGE’, but this is not guaranteed; it is
  6063. intended that the GNU C Library should set it when the underflow is to
  6064. an appropriately signed zero, but not necessarily for other underflows.
  6065. When a math function has an argument that is a signaling NaN, the GNU
  6066. C Library does not consider this a domain error, so ‘errno’ is
  6067. unchanged, but the invalid exception is still raised (except for a few
  6068. functions that are specified to handle signaling NaNs differently).
  6069. Some of the math functions are defined mathematically to result in a
  6070. complex value over parts of their domains. The most familiar example of
  6071. this is taking the square root of a negative number. The complex math
  6072. functions, such as ‘csqrt’, will return the appropriate complex value in
  6073. this case. The real-valued functions, such as ‘sqrt’, will signal a
  6074. domain error.
  6075. Some older hardware does not support infinities. On that hardware,
  6076. overflows instead return a particular very large number (usually the
  6077. largest representable number). ‘math.h’ defines macros you can use to
  6078. test for overflow on both old and new hardware.
  6079. -- Macro: double HUGE_VAL
  6080. -- Macro: float HUGE_VALF
  6081. -- Macro: long double HUGE_VALL
  6082. -- Macro: _FloatN HUGE_VAL_FN
  6083. -- Macro: _FloatNx HUGE_VAL_FNx
  6084. An expression representing a particular very large number. On
  6085. machines that use IEEE 754 floating point format, ‘HUGE_VAL’ is
  6086. infinity. On other machines, it's typically the largest positive
  6087. number that can be represented.
  6088. Mathematical functions return the appropriately typed version of
  6089. ‘HUGE_VAL’ or ‘−HUGE_VAL’ when the result is too large to be
  6090. represented.
  6091. 
  6092. File: libc.info, Node: Rounding, Next: Control Functions, Prev: Floating Point Errors, Up: Arithmetic
  6093. 20.6 Rounding Modes
  6094. ===================
  6095. Floating-point calculations are carried out internally with extra
  6096. precision, and then rounded to fit into the destination type. This
  6097. ensures that results are as precise as the input data. IEEE 754 defines
  6098. four possible rounding modes:
  6099. Round to nearest.
  6100. This is the default mode. It should be used unless there is a
  6101. specific need for one of the others. In this mode results are
  6102. rounded to the nearest representable value. If the result is
  6103. midway between two representable values, the even representable is
  6104. chosen. “Even” here means the lowest-order bit is zero. This
  6105. rounding mode prevents statistical bias and guarantees numeric
  6106. stability: round-off errors in a lengthy calculation will remain
  6107. smaller than half of ‘FLT_EPSILON’.
  6108. Round toward plus Infinity.
  6109. All results are rounded to the smallest representable value which
  6110. is greater than the result.
  6111. Round toward minus Infinity.
  6112. All results are rounded to the largest representable value which is
  6113. less than the result.
  6114. Round toward zero.
  6115. All results are rounded to the largest representable value whose
  6116. magnitude is less than that of the result. In other words, if the
  6117. result is negative it is rounded up; if it is positive, it is
  6118. rounded down.
  6119. ‘fenv.h’ defines constants which you can use to refer to the various
  6120. rounding modes. Each one will be defined if and only if the FPU
  6121. supports the corresponding rounding mode.
  6122. ‘FE_TONEAREST’
  6123. Round to nearest.
  6124. ‘FE_UPWARD’
  6125. Round toward +oo.
  6126. ‘FE_DOWNWARD’
  6127. Round toward -oo.
  6128. ‘FE_TOWARDZERO’
  6129. Round toward zero.
  6130. Underflow is an unusual case. Normally, IEEE 754 floating point
  6131. numbers are always normalized (*note Floating Point Concepts::).
  6132. Numbers smaller than 2^r (where r is the minimum exponent,
  6133. ‘FLT_MIN_RADIX-1’ for FLOAT) cannot be represented as normalized
  6134. numbers. Rounding all such numbers to zero or 2^r would cause some
  6135. algorithms to fail at 0. Therefore, they are left in denormalized form.
  6136. That produces loss of precision, since some bits of the mantissa are
  6137. stolen to indicate the decimal point.
  6138. If a result is too small to be represented as a denormalized number,
  6139. it is rounded to zero. However, the sign of the result is preserved; if
  6140. the calculation was negative, the result is “negative zero”. Negative
  6141. zero can also result from some operations on infinity, such as 4/-oo.
  6142. At any time, one of the above four rounding modes is selected. You
  6143. can find out which one with this function:
  6144. -- Function: int fegetround (void)
  6145. Preliminary: | MT-Safe | AS-Safe | AC-Safe | *Note POSIX Safety
  6146. Concepts::.
  6147. Returns the currently selected rounding mode, represented by one of
  6148. the values of the defined rounding mode macros.
  6149. To change the rounding mode, use this function:
  6150. -- Function: int fesetround (int ROUND)
  6151. Preliminary: | MT-Safe | AS-Safe | AC-Safe | *Note POSIX Safety
  6152. Concepts::.
  6153. Changes the currently selected rounding mode to ROUND. If ROUND
  6154. does not correspond to one of the supported rounding modes nothing
  6155. is changed. ‘fesetround’ returns zero if it changed the rounding
  6156. mode, or a nonzero value if the mode is not supported.
  6157. You should avoid changing the rounding mode if possible. It can be
  6158. an expensive operation; also, some hardware requires you to compile your
  6159. program differently for it to work. The resulting code may run slower.
  6160. See your compiler documentation for details.