libc.info-1 294 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172
  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: Top, Next: Introduction, Prev: (dir), Up: (dir)
  2438. Main Menu
  2439. *********
  2440. This is ‘The GNU C Library Reference Manual’, for version 2.43.
  2441. Copyright © 1993-2026 Free Software Foundation, Inc.
  2442. Permission is granted to copy, distribute and/or modify this document
  2443. under the terms of the GNU Free Documentation License, Version 1.3 or
  2444. any later version published by the Free Software Foundation; with the
  2445. Invariant Sections being "Free Software Needs Free Documentation" and
  2446. "GNU Lesser General Public License", the Front-Cover texts being "A GNU
  2447. Manual", and with the Back-Cover Texts as in (a) below. A copy of the
  2448. license is included in the section entitled "GNU Free Documentation
  2449. License".
  2450. (a) The FSF's Back-Cover Text is: "You have the freedom to copy and
  2451. modify this GNU manual. Buying copies from the FSF supports it in
  2452. developing GNU and promoting software freedom."
  2453. * Menu:
  2454. * Introduction:: Purpose of the GNU C Library.
  2455. * Error Reporting:: How library functions report errors.
  2456. * Memory:: Allocating virtual memory and controlling
  2457. paging.
  2458. * Character Handling:: Character testing and conversion functions.
  2459. * String and Array Utilities:: Utilities for copying and comparing strings
  2460. and arrays.
  2461. * Character Set Handling:: Support for extended character sets.
  2462. * Locales:: The country and language can affect the
  2463. behavior of library functions.
  2464. * Message Translation:: How to make the program speak the user's
  2465. language.
  2466. * Searching and Sorting:: General searching and sorting functions.
  2467. * Pattern Matching:: Matching shell "globs" and regular
  2468. expressions.
  2469. * I/O Overview:: Introduction to the I/O facilities.
  2470. * I/O on Streams:: High-level, portable I/O facilities.
  2471. * Low-Level I/O:: Low-level, less portable I/O.
  2472. * File System Interface:: Functions for manipulating files.
  2473. * Pipes and FIFOs:: A simple interprocess communication
  2474. mechanism.
  2475. * Sockets:: A more complicated IPC mechanism, with
  2476. networking support.
  2477. * Low-Level Terminal Interface:: How to change the characteristics of a
  2478. terminal device.
  2479. * Syslog:: System logging and messaging.
  2480. * Mathematics:: Math functions, useful constants, random
  2481. numbers.
  2482. * Arithmetic:: Low level arithmetic functions.
  2483. * Bit Manipulation:: Bit manipulation.
  2484. * Date and Time:: Functions for getting the date and time and
  2485. formatting them nicely.
  2486. * Resource Usage And Limitation:: Functions for examining resource usage and
  2487. getting and setting limits.
  2488. * Non-Local Exits:: Jumping out of nested function calls.
  2489. * Signal Handling:: How to send, block, and handle signals.
  2490. * Program Basics:: Writing the beginning and end of your
  2491. program.
  2492. * Processes:: How to create processes and run other
  2493. programs.
  2494. * Inter-Process Communication:: All about inter-process communication.
  2495. * Job Control:: All about process groups and sessions.
  2496. * Name Service Switch:: Accessing system databases.
  2497. * Users and Groups:: How users are identified and classified.
  2498. * System Management:: Controlling the system and getting
  2499. information about it.
  2500. * System Configuration:: Parameters describing operating system
  2501. limits.
  2502. * Cryptographic Functions:: A few functions to support cryptographic
  2503. applications.
  2504. * Debugging Support:: Functions to help debugging applications.
  2505. * Threads:: Functions, constants, and data types for
  2506. working with threads.
  2507. * Dynamic Linker:: Loading programs and shared objects..
  2508. * Internal Probes:: Probes to monitor libc internal behavior.
  2509. * Tunables:: Tunable switches to alter libc internal
  2510. behavior.
  2511. Appendices
  2512. * Language Features:: C language features provided by the library.
  2513. * Library Summary:: A summary showing the syntax, header file,
  2514. and derivation of each library feature.
  2515. * Installation:: How to install the GNU C Library.
  2516. * Maintenance:: How to enhance and port the GNU C Library.
  2517. * Platform:: Describe all platform-specific facilities
  2518. provided.
  2519. * Contributors:: Who wrote what parts of the GNU C Library.
  2520. * Free Manuals:: Free Software Needs Free Documentation.
  2521. * Copying:: The GNU Lesser General Public License says
  2522. how you can copy and share the GNU C Library.
  2523. * Documentation License:: This manual is under the GNU Free
  2524. Documentation License.
  2525. Indices
  2526. * Concept Index:: Index of concepts and names.
  2527. * Type Index:: Index of types and type qualifiers.
  2528. * Function Index:: Index of functions and function-like macros.
  2529. * Variable Index:: Index of variables and variable-like macros.
  2530. * File Index:: Index of programs and files.
  2531. -- The Detailed Node Listing --
  2532. Introduction
  2533. * Getting Started:: What this manual is for and how to use it.
  2534. * Standards and Portability:: Standards and sources upon which the GNU
  2535. C library is based.
  2536. * Using the Library:: Some practical uses for the library.
  2537. * Roadmap to the Manual:: Overview of the remaining chapters in
  2538. this manual.
  2539. Standards and Portability
  2540. * ISO C:: The international standard for the C
  2541. programming language.
  2542. * POSIX:: The ISO/IEC 9945 (aka IEEE 1003) standards
  2543. for operating systems.
  2544. * Berkeley Unix:: BSD and SunOS.
  2545. * SVID:: The System V Interface Description.
  2546. * XPG:: The X/Open Portability Guide.
  2547. * Linux Kernel:: The Linux kernel.
  2548. POSIX
  2549. * POSIX Safety Concepts:: Safety concepts from POSIX.
  2550. * Unsafe Features:: Features that make functions unsafe.
  2551. * Conditionally Safe Features:: Features that make functions unsafe
  2552. in the absence of workarounds.
  2553. * Other Safety Remarks:: Additional safety features and remarks.
  2554. Using the Library
  2555. * Header Files:: How to include the header files in your
  2556. programs.
  2557. * Macro Definitions:: Some functions in the library may really
  2558. be implemented as macros.
  2559. * Reserved Names:: The C standard reserves some names for
  2560. the library, and some for users.
  2561. * Feature Test Macros:: How to control what names are defined.
  2562. Error Reporting
  2563. * Checking for Errors:: How errors are reported by library functions.
  2564. * Error Codes:: Error code macros; all of these expand
  2565. into integer constant values.
  2566. * Error Messages:: Mapping error codes onto error messages.
  2567. Memory
  2568. * Memory Concepts:: An introduction to concepts and terminology.
  2569. * Memory Allocation:: Allocating storage for your program data
  2570. * Resizing the Data Segment:: ‘brk’, ‘sbrk’
  2571. * Memory Protection:: Controlling access to memory regions.
  2572. * Locking Pages:: Preventing page faults
  2573. Memory Allocation
  2574. * Memory Allocation and C:: How to get different kinds of allocation in C.
  2575. * The GNU Allocator:: An overview of the GNU ‘malloc’
  2576. implementation.
  2577. * Unconstrained Allocation:: The ‘malloc’ facility allows fully general
  2578. dynamic allocation.
  2579. * Allocation Debugging:: Finding memory leaks and not freed memory.
  2580. * Replacing malloc:: Using your own ‘malloc’-style allocator.
  2581. * Obstacks:: Obstacks are less general than malloc
  2582. but more efficient and convenient.
  2583. * Variable Size Automatic:: Allocation of variable-sized blocks
  2584. of automatic storage that are freed when the
  2585. calling function returns.
  2586. Unconstrained Allocation
  2587. * Basic Allocation:: Simple use of ‘malloc’.
  2588. * Malloc Examples:: Examples of ‘malloc’. ‘xmalloc’.
  2589. * Freeing after Malloc:: Use ‘free’ to free a block you
  2590. got with ‘malloc’.
  2591. * Changing Block Size:: Use ‘realloc’ to make a block
  2592. bigger or smaller.
  2593. * Allocating Cleared Space:: Use ‘calloc’ to allocate a
  2594. block and clear it.
  2595. * Aligned Memory Blocks:: Allocating specially aligned memory.
  2596. * Malloc Tunable Parameters:: Use ‘mallopt’ to adjust allocation
  2597. parameters.
  2598. * Heap Consistency Checking:: Automatic checking for errors.
  2599. * Statistics of Malloc:: Getting information about how much
  2600. memory your program is using.
  2601. * Summary of Malloc:: Summary of ‘malloc’ and related functions.
  2602. Allocation Debugging
  2603. * Tracing malloc:: How to install the tracing functionality.
  2604. * Using the Memory Debugger:: Example programs excerpts.
  2605. * Tips for the Memory Debugger:: Some more or less clever ideas.
  2606. * Interpreting the traces:: What do all these lines mean?
  2607. Obstacks
  2608. * Creating Obstacks:: How to declare an obstack in your program.
  2609. * Preparing for Obstacks:: Preparations needed before you can
  2610. use obstacks.
  2611. * Allocation in an Obstack:: Allocating objects in an obstack.
  2612. * Freeing Obstack Objects:: Freeing objects in an obstack.
  2613. * Obstack Functions:: The obstack functions are both
  2614. functions and macros.
  2615. * Growing Objects:: Making an object bigger by stages.
  2616. * Extra Fast Growing:: Extra-high-efficiency (though more
  2617. complicated) growing objects.
  2618. * Status of an Obstack:: Inquiries about the status of an obstack.
  2619. * Obstacks Data Alignment:: Controlling alignment of objects in obstacks.
  2620. * Obstack Chunks:: How obstacks obtain and release chunks;
  2621. efficiency considerations.
  2622. * Summary of Obstacks::
  2623. Variable Size Automatic
  2624. * Alloca Example:: Example of using ‘alloca’.
  2625. * Advantages of Alloca:: Reasons to use ‘alloca’.
  2626. * Disadvantages of Alloca:: Reasons to avoid ‘alloca’.
  2627. * GNU C Variable-Size Arrays:: Only in GNU C, here is an alternative
  2628. method of allocating dynamically and
  2629. freeing automatically.
  2630. Locking Pages
  2631. * Why Lock Pages:: Reasons to read this section.
  2632. * Locked Memory Details:: Everything you need to know locked
  2633. memory
  2634. * Page Lock Functions:: Here's how to do it.
  2635. Character Handling
  2636. * Classification of Characters:: Testing whether characters are
  2637. letters, digits, punctuation, etc.
  2638. * Case Conversion:: Case mapping, and the like.
  2639. * Classification of Wide Characters:: Character class determination for
  2640. wide characters.
  2641. * Using Wide Char Classes:: Notes on using the wide character
  2642. classes.
  2643. * Wide Character Case Conversion:: Mapping of wide characters.
  2644. String and Array Utilities
  2645. * Representation of Strings:: Introduction to basic concepts.
  2646. * String/Array Conventions:: Whether to use a string function or an
  2647. arbitrary array function.
  2648. * String Length:: Determining the length of a string.
  2649. * Copying Strings and Arrays:: Functions to copy strings and arrays.
  2650. * Concatenating Strings:: Functions to concatenate strings while copying.
  2651. * Truncating Strings:: Functions to truncate strings while copying.
  2652. * String/Array Comparison:: Functions for byte-wise and character-wise
  2653. comparison.
  2654. * Collation Functions:: Functions for collating strings.
  2655. * Search Functions:: Searching for a specific element or substring.
  2656. * Finding Tokens in a String:: Splitting a string into tokens by looking
  2657. for delimiters.
  2658. * Erasing Sensitive Data:: Clearing memory which contains sensitive
  2659. data, after it's no longer needed.
  2660. * Shuffling Bytes:: Or how to flash-cook a string.
  2661. * Obfuscating Data:: Reversibly obscuring data from casual view.
  2662. * Encode Binary Data:: Encoding and Decoding of Binary Data.
  2663. * Argz and Envz Vectors:: Null-separated string vectors.
  2664. Argz and Envz Vectors
  2665. * Argz Functions:: Operations on argz vectors.
  2666. * Envz Functions:: Additional operations on environment vectors.
  2667. Character Set Handling
  2668. * Extended Char Intro:: Introduction to Extended Characters.
  2669. * Charset Function Overview:: Overview about Character Handling
  2670. Functions.
  2671. * Restartable multibyte conversion:: Restartable multibyte conversion
  2672. Functions.
  2673. * Non-reentrant Conversion:: Non-reentrant Conversion Function.
  2674. * Generic Charset Conversion:: Generic Charset Conversion.
  2675. Restartable multibyte conversion
  2676. * Selecting the Conversion:: Selecting the conversion and its properties.
  2677. * Keeping the state:: Representing the state of the conversion.
  2678. * Converting a Character:: Converting Single Characters.
  2679. * Converting Strings:: Converting Multibyte and Wide Character
  2680. Strings.
  2681. * Multibyte Conversion Example:: A Complete Multibyte Conversion Example.
  2682. Non-reentrant Conversion
  2683. * Non-reentrant Character Conversion:: Non-reentrant Conversion of Single
  2684. Characters.
  2685. * Non-reentrant String Conversion:: Non-reentrant Conversion of Strings.
  2686. * Shift State:: States in Non-reentrant Functions.
  2687. Generic Charset Conversion
  2688. * Generic Conversion Interface:: Generic Character Set Conversion Interface.
  2689. * iconv Examples:: A complete ‘iconv’ example.
  2690. * Other iconv Implementations:: Some Details about other ‘iconv’
  2691. Implementations.
  2692. * glibc iconv Implementation:: The ‘iconv’ Implementation in the GNU C
  2693. library.
  2694. Locales
  2695. * Effects of Locale:: Actions affected by the choice of
  2696. locale.
  2697. * Choosing Locale:: How the user specifies a locale.
  2698. * Locale Categories:: Different purposes for which you can
  2699. select a locale.
  2700. * Setting the Locale:: How a program specifies the locale
  2701. with library functions.
  2702. * Standard Locales:: Locale names available on all systems.
  2703. * Locale Names:: Format of system-specific locale names.
  2704. * Locale Information:: How to access the information for the locale.
  2705. * Formatting Numbers:: A dedicated function to format numbers.
  2706. * Yes-or-No Questions:: Check a Response against the locale.
  2707. Locale Information
  2708. * The Lame Way to Locale Data:: ISO C's ‘localeconv’.
  2709. * The Elegant and Fast Way:: X/Open's ‘nl_langinfo’.
  2710. The Lame Way to Locale Data
  2711. * General Numeric:: Parameters for formatting numbers and
  2712. currency amounts.
  2713. * Currency Symbol:: How to print the symbol that identifies an
  2714. amount of money (e.g. ‘$’).
  2715. * Sign of Money Amount:: How to print the (positive or negative) sign
  2716. for a monetary amount, if one exists.
  2717. Message Translation
  2718. * Message catalogs a la X/Open:: The ‘catgets’ family of functions.
  2719. * The Uniforum approach:: The ‘gettext’ family of functions.
  2720. Message catalogs a la X/Open
  2721. * The catgets Functions:: The ‘catgets’ function family.
  2722. * The message catalog files:: Format of the message catalog files.
  2723. * The gencat program:: How to generate message catalogs files which
  2724. can be used by the functions.
  2725. * Common Usage:: How to use the ‘catgets’ interface.
  2726. The Uniforum approach
  2727. * Message catalogs with gettext:: The ‘gettext’ family of functions.
  2728. * Helper programs for gettext:: Programs to handle message catalogs
  2729. for ‘gettext’.
  2730. Message catalogs with gettext
  2731. * Translation with gettext:: What has to be done to translate a message.
  2732. * Locating gettext catalog:: How to determine which catalog to be used.
  2733. * Advanced gettext functions:: Additional functions for more complicated
  2734. situations.
  2735. * Charset conversion in gettext:: How to specify the output character set
  2736. ‘gettext’ uses.
  2737. * GUI program problems:: How to use ‘gettext’ in GUI programs.
  2738. * Using gettextized software:: The possibilities of the user to influence
  2739. the way ‘gettext’ works.
  2740. Searching and Sorting
  2741. * Comparison Functions:: Defining how to compare two objects.
  2742. Since the sort and search facilities
  2743. are general, you have to specify the
  2744. ordering.
  2745. * Array Search Function:: The ‘bsearch’ function.
  2746. * Array Sort Function:: The ‘qsort’ function.
  2747. * Search/Sort Example:: An example program.
  2748. * Hash Search Function:: The ‘hsearch’ function.
  2749. * Tree Search Function:: The ‘tsearch’ function.
  2750. Pattern Matching
  2751. * Wildcard Matching:: Matching a wildcard pattern against a single string.
  2752. * Globbing:: Finding the files that match a wildcard pattern.
  2753. * Regular Expressions:: Matching regular expressions against strings.
  2754. * Word Expansion:: Expanding shell variables, nested commands,
  2755. arithmetic, and wildcards.
  2756. This is what the shell does with shell commands.
  2757. Globbing
  2758. * Calling Glob:: Basic use of ‘glob’.
  2759. * Flags for Globbing:: Flags that enable various options in ‘glob’.
  2760. * More Flags for Globbing:: GNU specific extensions to ‘glob’.
  2761. Regular Expressions
  2762. * POSIX Regexp Compilation:: Using ‘regcomp’ to prepare to match.
  2763. * Flags for POSIX Regexps:: Syntax variations for ‘regcomp’.
  2764. * Matching POSIX Regexps:: Using ‘regexec’ to match the compiled
  2765. pattern that you get from ‘regcomp’.
  2766. * Regexp Subexpressions:: Finding which parts of the string were matched.
  2767. * Subexpression Complications:: Find points of which parts were matched.
  2768. * Regexp Cleanup:: Freeing storage; reporting errors.
  2769. Word Expansion
  2770. * Expansion Stages:: What word expansion does to a string.
  2771. * Calling Wordexp:: How to call ‘wordexp’.
  2772. * Flags for Wordexp:: Options you can enable in ‘wordexp’.
  2773. * Wordexp Example:: A sample program that does word expansion.
  2774. * Tilde Expansion:: Details of how tilde expansion works.
  2775. * Variable Substitution:: Different types of variable substitution.
  2776. I/O Overview
  2777. * I/O Concepts:: Some basic information and terminology.
  2778. * File Names:: How to refer to a file.
  2779. I/O Concepts
  2780. * Streams and File Descriptors:: The GNU C Library provides two ways
  2781. to access the contents of files.
  2782. * File Position:: The number of bytes from the
  2783. beginning of the file.
  2784. File Names
  2785. * Directories:: Directories contain entries for files.
  2786. * File Name Resolution:: A file name specifies how to look up a file.
  2787. * File Name Errors:: Error conditions relating to file names.
  2788. * File Name Portability:: File name portability and syntax issues.
  2789. I/O on Streams
  2790. * Streams:: About the data type representing a stream.
  2791. * Standard Streams:: Streams to the standard input and output
  2792. devices are created for you.
  2793. * Opening Streams:: How to create a stream to talk to a file.
  2794. * Closing Streams:: Close a stream when you are finished with it.
  2795. * Streams and Threads:: Issues with streams in threaded programs.
  2796. * Streams and I18N:: Streams in internationalized applications.
  2797. * Simple Output:: Unformatted output by characters and lines.
  2798. * Character Input:: Unformatted input by characters and words.
  2799. * Line Input:: Reading a line or a record from a stream.
  2800. * Unreading:: Peeking ahead/pushing back input just read.
  2801. * Block Input/Output:: Input and output operations on blocks of data.
  2802. * Formatted Output:: ‘printf’ and related functions.
  2803. * Customizing Printf:: You can define new conversion specifiers for
  2804. ‘printf’ and friends.
  2805. * Formatted Input:: ‘scanf’ and related functions.
  2806. * EOF and Errors:: How you can tell if an I/O error happens.
  2807. * Error Recovery:: What you can do about errors.
  2808. * Binary Streams:: Some systems distinguish between text files
  2809. and binary files.
  2810. * File Positioning:: About random-access streams.
  2811. * Portable Positioning:: Random access on peculiar ISO C systems.
  2812. * Stream Buffering:: How to control buffering of streams.
  2813. * Other Kinds of Streams:: Streams that do not necessarily correspond
  2814. to an open file.
  2815. * Formatted Messages:: Print strictly formatted messages.
  2816. Unreading
  2817. * Unreading Idea:: An explanation of unreading with pictures.
  2818. * How Unread:: How to call ‘ungetc’ to do unreading.
  2819. Formatted Output
  2820. * Formatted Output Basics:: Some examples to get you started.
  2821. * Output Conversion Syntax:: General syntax of conversion
  2822. specifications.
  2823. * Table of Output Conversions:: Summary of output conversions and
  2824. what they do.
  2825. * Integer Conversions:: Details about formatting of integers.
  2826. * Floating-Point Conversions:: Details about formatting of
  2827. floating-point numbers.
  2828. * Other Output Conversions:: Details about formatting of strings,
  2829. characters, pointers, and the like.
  2830. * Formatted Output Functions:: Descriptions of the actual functions.
  2831. * Dynamic Output:: Functions that allocate memory for the output.
  2832. * Variable Arguments Output:: ‘vprintf’ and friends.
  2833. * Parsing a Template String:: What kinds of args does a given template
  2834. call for?
  2835. * Example of Parsing:: Sample program using ‘parse_printf_format’.
  2836. Customizing Printf
  2837. * Registering New Conversions:: Using ‘register_printf_function’
  2838. to register a new output conversion.
  2839. * Conversion Specifier Options:: The handler must be able to get
  2840. the options specified in the
  2841. template when it is called.
  2842. * Defining the Output Handler:: Defining the handler and arginfo
  2843. functions that are passed as arguments
  2844. to ‘register_printf_function’.
  2845. * Printf Extension Example:: How to define a ‘printf’
  2846. handler function.
  2847. * Predefined Printf Handlers:: Predefined ‘printf’ handlers.
  2848. Formatted Input
  2849. * Formatted Input Basics:: Some basics to get you started.
  2850. * Input Conversion Syntax:: Syntax of conversion specifications.
  2851. * Table of Input Conversions:: Summary of input conversions and what they do.
  2852. * Numeric Input Conversions:: Details of conversions for reading numbers.
  2853. * String Input Conversions:: Details of conversions for reading strings.
  2854. * Dynamic String Input:: String conversions that ‘malloc’ the buffer.
  2855. * Other Input Conversions:: Details of miscellaneous other conversions.
  2856. * Formatted Input Functions:: Descriptions of the actual functions.
  2857. * Variable Arguments Input:: ‘vscanf’ and friends.
  2858. Stream Buffering
  2859. * Buffering Concepts:: Terminology is defined here.
  2860. * Flushing Buffers:: How to ensure that output buffers are flushed.
  2861. * Controlling Buffering:: How to specify what kind of buffering to use.
  2862. Other Kinds of Streams
  2863. * String Streams:: Streams that get data from or put data in
  2864. a string or memory buffer.
  2865. * Custom Streams:: Defining your own streams with an arbitrary
  2866. input data source and/or output data sink.
  2867. Custom Streams
  2868. * Streams and Cookies:: The “cookie” records where to fetch or
  2869. store data that is read or written.
  2870. * Hook Functions:: How you should define the four “hook
  2871. functions” that a custom stream needs.
  2872. Formatted Messages
  2873. * Printing Formatted Messages:: The ‘fmtmsg’ function.
  2874. * Adding Severity Classes:: Add more severity classes.
  2875. * Example:: How to use ‘fmtmsg’ and ‘addseverity’.
  2876. Low-Level I/O
  2877. * Opening and Closing Files:: How to open and close file
  2878. descriptors.
  2879. * I/O Primitives:: Reading and writing data.
  2880. * File Position Primitive:: Setting a descriptor's file
  2881. position.
  2882. * Descriptors and Streams:: Converting descriptor to stream
  2883. or vice-versa.
  2884. * Stream/Descriptor Precautions:: Precautions needed if you use both
  2885. descriptors and streams.
  2886. * Scatter-Gather:: Fast I/O to discontinuous buffers.
  2887. * Copying File Data:: Copying data between files.
  2888. * Memory-mapped I/O:: Using files like memory.
  2889. * Waiting for I/O:: How to check for input or output
  2890. on multiple file descriptors.
  2891. * Synchronizing I/O:: Making sure all I/O actions completed.
  2892. * Asynchronous I/O:: Perform I/O in parallel.
  2893. * Control Operations:: Various other operations on file
  2894. descriptors.
  2895. * Duplicating Descriptors:: Fcntl commands for duplicating
  2896. file descriptors.
  2897. * Descriptor Flags:: Fcntl commands for manipulating
  2898. flags associated with file
  2899. descriptors.
  2900. * File Status Flags:: Fcntl commands for manipulating
  2901. flags associated with open files.
  2902. * File Locks:: Fcntl commands for implementing
  2903. file locking.
  2904. * Open File Description Locks:: Fcntl commands for implementing
  2905. open file description locking.
  2906. * Open File Description Locks Example:: An example of open file description lock
  2907. usage
  2908. * Interrupt Input:: Getting an asynchronous signal when
  2909. input arrives.
  2910. * IOCTLs:: Generic I/O Control operations.
  2911. * Other Low-Level I/O APIs:: Other low-level-I/O-related functions.
  2912. Stream/Descriptor Precautions
  2913. * Linked Channels:: Dealing with channels sharing a file position.
  2914. * Independent Channels:: Dealing with separately opened, unlinked channels.
  2915. * Cleaning Streams:: Cleaning a stream makes it safe to use
  2916. another channel.
  2917. Asynchronous I/O
  2918. * Asynchronous Reads/Writes:: Asynchronous Read and Write Operations.
  2919. * Status of AIO Operations:: Getting the Status of AIO Operations.
  2920. * Synchronizing AIO Operations:: Getting into a consistent state.
  2921. * Cancel AIO Operations:: Cancellation of AIO Operations.
  2922. * Configuration of AIO:: How to optimize the AIO implementation.
  2923. File Status Flags
  2924. * Access Modes:: Whether the descriptor can read or write.
  2925. * Open-time Flags:: Details of ‘open’.
  2926. * Operating Modes:: Special modes to control I/O operations.
  2927. * Getting File Status Flags:: Fetching and changing these flags.
  2928. File System Interface
  2929. * Working Directory:: This is used to resolve relative
  2930. file names.
  2931. * Descriptor-Relative Access:: Ways to control file name lookup.
  2932. * Accessing Directories:: Finding out what files a directory
  2933. contains.
  2934. * Working with Directory Trees:: Apply actions to all files or a selectable
  2935. subset of a directory hierarchy.
  2936. * Hard Links:: Adding alternate names to a file.
  2937. * Symbolic Links:: A file that "points to" a file name.
  2938. * Deleting Files:: How to delete a file, and what that means.
  2939. * Renaming Files:: Changing a file's name.
  2940. * Creating Directories:: A system call just for creating a directory.
  2941. * File Attributes:: Attributes of individual files.
  2942. * Making Special Files:: How to create special files.
  2943. * Temporary Files:: Naming and creating temporary files.
  2944. Accessing Directories
  2945. * Directory Entries:: Format of one directory entry.
  2946. * Opening a Directory:: How to open a directory stream.
  2947. * Reading/Closing Directory:: How to read directory entries from the stream.
  2948. * Simple Directory Lister:: A very simple directory listing program.
  2949. * Random Access Directory:: Rereading part of the directory
  2950. already read with the same stream.
  2951. * Scanning Directory Content:: Get entries for user selected subset of
  2952. contents in given directory.
  2953. * Simple Directory Lister Mark II:: Revised version of the program.
  2954. * Low-level Directory Access:: AS-Safe functions for directory access.
  2955. File Attributes
  2956. * Attribute Meanings:: The names of the file attributes,
  2957. and what their values mean.
  2958. * Reading Attributes:: How to read the attributes of a file.
  2959. * Testing File Type:: Distinguishing ordinary files,
  2960. directories, links...
  2961. * File Owner:: How ownership for new files is determined,
  2962. and how to change it.
  2963. * Permission Bits:: How information about a file's access
  2964. mode is stored.
  2965. * Access Permission:: How the system decides who can access a file.
  2966. * Setting Permissions:: How permissions for new files are assigned,
  2967. and how to change them.
  2968. * Testing File Access:: How to find out if your process can
  2969. access a file.
  2970. * File Times:: About the time attributes of a file.
  2971. * File Size:: Manually changing the size of a file.
  2972. * Storage Allocation:: Allocate backing storage for files.
  2973. Pipes and FIFOs
  2974. * Creating a Pipe:: Making a pipe with the ‘pipe’ function.
  2975. * Pipe to a Subprocess:: Using a pipe to communicate with a
  2976. child process.
  2977. * FIFO Special Files:: Making a FIFO special file.
  2978. * Pipe Atomicity:: When pipe (or FIFO) I/O is atomic.
  2979. Sockets
  2980. * Socket Concepts:: Basic concepts you need to know about.
  2981. * Communication Styles::Stream communication, datagrams and other styles.
  2982. * Socket Addresses:: How socket names ("addresses") work.
  2983. * Interface Naming:: Identifying specific network interfaces.
  2984. * Local Namespace:: Details about the local namespace.
  2985. * Internet Namespace:: Details about the Internet namespace.
  2986. * Misc Namespaces:: Other namespaces not documented fully here.
  2987. * Open/Close Sockets:: Creating sockets and destroying them.
  2988. * Connections:: Operations on sockets with connection state.
  2989. * Datagrams:: Operations on datagram sockets.
  2990. * Inetd:: Inetd is a daemon that starts servers on request.
  2991. The most convenient way to write a server
  2992. is to make it work with Inetd.
  2993. * Socket Options:: Miscellaneous low-level socket options.
  2994. * Networks Database:: Accessing the database of network names.
  2995. * Other Socket APIs:: Other socket-related functions.
  2996. Socket Addresses
  2997. * Address Formats:: About ‘struct sockaddr’.
  2998. * Setting Address:: Binding an address to a socket.
  2999. * Reading Address:: Reading the address of a socket.
  3000. Local Namespace
  3001. * Concepts: Local Namespace Concepts. What you need to understand.
  3002. * Details: Local Namespace Details. Address format, symbolic names, etc.
  3003. * Example: Local Socket Example. Example of creating a socket.
  3004. Internet Namespace
  3005. * Internet Address Formats:: How socket addresses are specified in the
  3006. Internet namespace.
  3007. * Host Addresses:: All about host addresses of Internet host.
  3008. * Ports:: Internet port numbers.
  3009. * Services Database:: Ports may have symbolic names.
  3010. * Byte Order:: Different hosts may use different byte
  3011. ordering conventions; you need to
  3012. canonicalize host address and port number.
  3013. * Protocols Database:: Referring to protocols by name.
  3014. * Inet Example:: Putting it all together.
  3015. Host Addresses
  3016. * Abstract Host Addresses:: What a host number consists of.
  3017. * Data type: Host Address Data Type. Data type for a host number.
  3018. * Functions: Host Address Functions. Functions to operate on them.
  3019. * Names: Host Names. Translating host names to host numbers.
  3020. Open/Close Sockets
  3021. * Creating a Socket:: How to open a socket.
  3022. * Closing a Socket:: How to close a socket.
  3023. * Socket Pairs:: These are created like pipes.
  3024. Connections
  3025. * Connecting:: What the client program must do.
  3026. * Listening:: How a server program waits for requests.
  3027. * Accepting Connections:: What the server does when it gets a request.
  3028. * Who is Connected:: Getting the address of the
  3029. other side of a connection.
  3030. * Transferring Data:: How to send and receive data.
  3031. * Byte Stream Example:: An example program: a client for communicating
  3032. over a byte stream socket in the Internet namespace.
  3033. * Server Example:: A corresponding server program.
  3034. * Out-of-Band Data:: This is an advanced feature.
  3035. Transferring Data
  3036. * Sending Data:: Sending data with ‘send’.
  3037. * Receiving Data:: Reading data with ‘recv’.
  3038. * Socket Data Options:: Using ‘send’ and ‘recv’.
  3039. Datagrams
  3040. * Sending Datagrams:: Sending packets on a datagram socket.
  3041. * Receiving Datagrams:: Receiving packets on a datagram socket.
  3042. * Datagram Example:: An example program: packets sent over a
  3043. datagram socket in the local namespace.
  3044. * Example Receiver:: Another program, that receives those packets.
  3045. Inetd
  3046. * Inetd Servers::
  3047. * Configuring Inetd::
  3048. Socket Options
  3049. * Socket Option Functions:: The basic functions for setting and getting
  3050. socket options.
  3051. * Socket-Level Options:: Details of the options at the socket level.
  3052. Low-Level Terminal Interface
  3053. * Terminal Device Model:: The fundamental concepts of a terminal device
  3054. * Is It a Terminal:: How to determine if a file is a terminal
  3055. device, and what its name is.
  3056. * I/O Queues:: About flow control and typeahead.
  3057. * Canonical or Not:: Two basic styles of input processing.
  3058. * Terminal Modes:: How to examine and modify flags controlling
  3059. details of terminal I/O: echoing,
  3060. signals, editing. Posix.
  3061. * BSD Terminal Modes:: BSD compatible terminal mode setting
  3062. * Line Control:: Sending break sequences, clearing
  3063. terminal buffers ...
  3064. * Noncanon Example:: How to read single characters without echo.
  3065. * getpass:: Prompting the user for a passphrase.
  3066. * Pseudo-Terminals:: How to open a pseudo-terminal.
  3067. Terminal Modes
  3068. * Mode Data Types:: The data type ‘struct termios’ and
  3069. related types.
  3070. * Mode Functions:: Functions to read and set the terminal
  3071. attributes.
  3072. * Setting Modes:: The right way to set terminal attributes
  3073. reliably.
  3074. * Input Modes:: Flags controlling low-level input handling.
  3075. * Output Modes:: Flags controlling low-level output handling.
  3076. * Control Modes:: Flags controlling serial port behavior.
  3077. * Local Modes:: Flags controlling high-level input handling.
  3078. * Line Speed:: How to read and set the terminal line speed.
  3079. * Special Characters:: Characters that have special effects,
  3080. and how to change them.
  3081. * Noncanonical Input:: Controlling how long to wait for input.
  3082. Special Characters
  3083. * Editing Characters:: Special characters that terminate lines and
  3084. delete text, and other editing functions.
  3085. * Signal Characters:: Special characters that send or raise signals
  3086. to or for certain classes of processes.
  3087. * Start/Stop Characters:: Special characters that suspend or resume
  3088. suspended output.
  3089. * Other Special:: Other special characters for BSD systems:
  3090. they can discard output, and print status.
  3091. Pseudo-Terminals
  3092. * Allocation:: Allocating a pseudo terminal.
  3093. * Pseudo-Terminal Pairs:: How to open both sides of a
  3094. pseudo-terminal in a single operation.
  3095. Syslog
  3096. * Overview of Syslog:: Overview of a system's Syslog facility
  3097. * Submitting Syslog Messages:: Functions to submit messages to Syslog
  3098. Submitting Syslog Messages
  3099. * openlog:: Open connection to Syslog
  3100. * syslog; vsyslog:: Submit message to Syslog
  3101. * closelog:: Close connection to Syslog
  3102. * setlogmask:: Cause certain messages to be ignored
  3103. * Syslog Example:: Example of all of the above
  3104. Mathematics
  3105. * Mathematical Constants:: Precise numeric values for often-used
  3106. constants.
  3107. * Trig Functions:: Sine, cosine, tangent, and friends.
  3108. * Inverse Trig Functions:: Arcsine, arccosine, etc.
  3109. * Exponents and Logarithms:: Also pow and sqrt.
  3110. * Hyperbolic Functions:: sinh, cosh, tanh, etc.
  3111. * Special Functions:: Bessel, gamma, erf.
  3112. * Errors in Math Functions:: Remarks in Errors in Math Functions.
  3113. * Pseudo-Random Numbers:: Functions for generating pseudo-random
  3114. numbers.
  3115. * FP Function Optimizations:: Fast code or small code.
  3116. Pseudo-Random Numbers
  3117. * ISO Random:: ‘rand’ and friends.
  3118. * BSD Random:: ‘random’ and friends.
  3119. * SVID Random:: ‘drand48’ and friends.
  3120. * High Quality Random:: ‘arc4random’ and friends.
  3121. Arithmetic
  3122. * Integers:: Basic integer types and concepts
  3123. * Integer Division:: Integer division with guaranteed rounding.
  3124. * Floating Point Numbers:: Basic concepts. IEEE 754.
  3125. * Floating Point Classes:: The five kinds of floating-point number.
  3126. * Floating Point Errors:: When something goes wrong in a calculation.
  3127. * Rounding:: Controlling how results are rounded.
  3128. * Control Functions:: Saving and restoring the FPU's state.
  3129. * Arithmetic Functions:: Fundamental operations provided by the library.
  3130. * Complex Numbers:: The types. Writing complex constants.
  3131. * Operations on Complex:: Projection, conjugation, decomposition.
  3132. * Parsing of Numbers:: Converting strings to numbers.
  3133. * Printing of Floats:: Converting floating-point numbers to strings.
  3134. * System V Number Conversion:: An archaic way to convert numbers to strings.
  3135. Floating Point Errors
  3136. * FP Exceptions:: IEEE 754 math exceptions and how to detect them.
  3137. * Infinity and NaN:: Special values returned by calculations.
  3138. * Status bit operations:: Checking for exceptions after the fact.
  3139. * Math Error Reporting:: How the math functions report errors.
  3140. Arithmetic Functions
  3141. * Absolute Value:: Absolute values of integers and floats.
  3142. * Normalization Functions:: Extracting exponents and putting them back.
  3143. * Rounding Functions:: Rounding floats to integers.
  3144. * Remainder Functions:: Remainders on division, precisely defined.
  3145. * FP Bit Twiddling:: Sign bit adjustment. Adding epsilon.
  3146. * FP Comparison Functions:: Comparisons without risk of exceptions.
  3147. * Misc FP Arithmetic:: Max, min, positive difference, multiply-add.
  3148. Parsing of Numbers
  3149. * Parsing of Integers:: Functions for conversion of integer values.
  3150. * Parsing of Floats:: Functions for conversion of floating-point
  3151. values.
  3152. Date and Time
  3153. * Time Basics:: Concepts and definitions.
  3154. * Time Types:: Data types to represent time.
  3155. * Calculating Elapsed Time:: How to calculate the length of an interval.
  3156. * Processor And CPU Time:: Time a program has spent executing.
  3157. * Calendar Time:: Manipulation of "real" dates and times.
  3158. * Setting an Alarm:: Sending a signal after a specified time.
  3159. * Sleeping:: Waiting for a period of time.
  3160. Processor And CPU Time
  3161. * CPU Time:: The ‘clock’ function.
  3162. * Processor Time:: The ‘times’ function.
  3163. Calendar Time
  3164. * Getting the Time:: Functions for finding out what time it is.
  3165. * Setting and Adjusting the Time::
  3166. Functions for setting and adjusting
  3167. the system clock.
  3168. * Broken-down Time:: Facilities for manipulating local time.
  3169. * Formatting Calendar Time:: Converting times to strings.
  3170. * Parsing Date and Time:: Convert textual time and date information back
  3171. into broken-down time values.
  3172. * TZ Variable:: How users specify the time zone ruleset.
  3173. * Time Zone State:: Time zone state variables.
  3174. * Time Functions Example:: An example program showing use of some of
  3175. the time functions.
  3176. Parsing Date and Time
  3177. * Low-Level Time String Parsing:: Interpret string according to given format.
  3178. * General Time String Parsing:: User-friendly function to parse data and
  3179. time strings.
  3180. TZ Variable
  3181. * Geographical TZ:: ‘TZ’ settings like ‘America/New_York’.
  3182. * Proleptic TZ:: ‘TZ’ settings like ‘EST+5EDT,M3.2.0/2,M11.1.0/2’.
  3183. Resource Usage And Limitation
  3184. * Resource Usage:: Measuring various resources used.
  3185. * Limits on Resources:: Specifying limits on resource usage.
  3186. * Priority:: Reading or setting process run priority.
  3187. * Memory Resources:: Querying memory available resources.
  3188. * Processor Resources:: Learn about the processors available.
  3189. Priority
  3190. * Absolute Priority:: The first tier of priority. Posix
  3191. * Realtime Scheduling:: Scheduling among the process nobility
  3192. * Basic Scheduling Functions:: Get/set scheduling policy, priority
  3193. * Extensible Scheduling:: Parameterized scheduling policies.
  3194. * Traditional Scheduling:: Scheduling among the vulgar masses
  3195. * CPU Affinity:: Limiting execution to certain CPUs
  3196. Traditional Scheduling
  3197. * Traditional Scheduling Intro::
  3198. * Traditional Scheduling Functions::
  3199. Memory Resources
  3200. * Memory Subsystem:: Overview about traditional Unix memory handling.
  3201. * Query Memory Parameters:: How to get information about the memory
  3202. subsystem?
  3203. Non-Local Exits
  3204. * Intro: Non-Local Intro. When and how to use these facilities.
  3205. * Details: Non-Local Details. Functions for non-local exits.
  3206. * Non-Local Exits and Signals:: Portability issues.
  3207. * System V contexts:: Complete context control a la System V.
  3208. Signal Handling
  3209. * Concepts of Signals:: Introduction to the signal facilities.
  3210. * Standard Signals:: Particular kinds of signals with
  3211. standard names and meanings.
  3212. * Signal Actions:: Specifying what happens when a
  3213. particular signal is delivered.
  3214. * Defining Handlers:: How to write a signal handler function.
  3215. * Interrupted Primitives:: Signal handlers affect use of ‘open’,
  3216. ‘read’, ‘write’ and other functions.
  3217. * Generating Signals:: How to send a signal to a process.
  3218. * Blocking Signals:: Making the system hold signals temporarily.
  3219. * Waiting for a Signal:: Suspending your program until a signal
  3220. arrives.
  3221. * Signal Stack:: Using a Separate Signal Stack.
  3222. * BSD Signal Handling:: Additional functions for backward
  3223. compatibility with BSD.
  3224. Concepts of Signals
  3225. * Kinds of Signals:: Some examples of what can cause a signal.
  3226. * Signal Generation:: Concepts of why and how signals occur.
  3227. * Delivery of Signal:: Concepts of what a signal does to the
  3228. process.
  3229. Standard Signals
  3230. * Program Error Signals:: Used to report serious program errors.
  3231. * Termination Signals:: Used to interrupt and/or terminate the
  3232. program.
  3233. * Alarm Signals:: Used to indicate expiration of timers.
  3234. * Asynchronous I/O Signals:: Used to indicate input is available.
  3235. * Job Control Signals:: Signals used to support job control.
  3236. * Operation Error Signals:: Used to report operational system errors.
  3237. * Miscellaneous Signals:: Miscellaneous Signals.
  3238. * Signal Messages:: Printing a message describing a signal.
  3239. Signal Actions
  3240. * Basic Signal Handling:: The simple ‘signal’ function.
  3241. * Advanced Signal Handling:: The more powerful ‘sigaction’ function.
  3242. * Signal and Sigaction:: How those two functions interact.
  3243. * Sigaction Function Example:: An example of using the sigaction function.
  3244. * Flags for Sigaction:: Specifying options for signal handling.
  3245. * Initial Signal Actions:: How programs inherit signal actions.
  3246. Defining Handlers
  3247. * Handler Returns:: Handlers that return normally, and what
  3248. this means.
  3249. * Termination in Handler:: How handler functions terminate a program.
  3250. * Longjmp in Handler:: Nonlocal transfer of control out of a
  3251. signal handler.
  3252. * Signals in Handler:: What happens when signals arrive while
  3253. the handler is already occupied.
  3254. * Merged Signals:: When a second signal arrives before the
  3255. first is handled.
  3256. * Nonreentrancy:: Do not call any functions unless you know they
  3257. are reentrant with respect to signals.
  3258. * Atomic Data Access:: A single handler can run in the middle of
  3259. reading or writing a single object.
  3260. Atomic Data Access
  3261. * Non-atomic Example:: A program illustrating interrupted access.
  3262. * Types: Atomic Types. Data types that guarantee no interruption.
  3263. * Usage: Atomic Usage. Proving that interruption is harmless.
  3264. Generating Signals
  3265. * Signaling Yourself:: A process can send a signal to itself.
  3266. * Signaling Another Process:: Send a signal to another process.
  3267. * Permission for kill:: Permission for using ‘kill’.
  3268. * Kill Example:: Using ‘kill’ for Communication.
  3269. Blocking Signals
  3270. * Why Block:: The purpose of blocking signals.
  3271. * Signal Sets:: How to specify which signals to
  3272. block.
  3273. * Process Signal Mask:: Blocking delivery of signals to your
  3274. process during normal execution.
  3275. * Testing for Delivery:: Blocking to Test for Delivery of
  3276. a Signal.
  3277. * Blocking for Handler:: Blocking additional signals while a
  3278. handler is being run.
  3279. * Checking for Pending Signals:: Checking for Pending Signals
  3280. * Remembering a Signal:: How you can get almost the same
  3281. effect as blocking a signal, by
  3282. handling it and setting a flag
  3283. to be tested later.
  3284. Waiting for a Signal
  3285. * Using Pause:: The simple way, using ‘pause’.
  3286. * Pause Problems:: Why the simple way is often not very good.
  3287. * Sigsuspend:: Reliably waiting for a specific signal.
  3288. Program Basics
  3289. * Program Arguments:: Parsing your program's command-line arguments
  3290. * Environment Variables:: Less direct parameters affecting your program
  3291. * Auxiliary Vector:: Least direct parameters affecting your program
  3292. * System Calls:: Requesting service from the system
  3293. * Program Termination:: Telling the system you're done; return status
  3294. Program Arguments
  3295. * Argument Syntax:: By convention, options start with a hyphen.
  3296. * Parsing Program Arguments:: Ways to parse program options and arguments.
  3297. Parsing Program Arguments
  3298. * Getopt:: Parsing program options using ‘getopt’.
  3299. * Argp:: Parsing program options using ‘argp_parse’.
  3300. * Suboptions:: Some programs need more detailed options.
  3301. * Suboptions Example:: This shows how it could be done for ‘mount’.
  3302. Environment Variables
  3303. * Environment Access:: How to get and set the values of
  3304. environment variables.
  3305. * Standard Environment:: These environment variables have
  3306. standard interpretations.
  3307. Program Termination
  3308. * Normal Termination:: If a program calls ‘exit’, a
  3309. process terminates normally.
  3310. * Exit Status:: The ‘exit status’ provides information
  3311. about why the process terminated.
  3312. * Cleanups on Exit:: A process can run its own cleanup
  3313. functions upon normal termination.
  3314. * Aborting a Program:: The ‘abort’ function causes
  3315. abnormal program termination.
  3316. * Termination Internals:: What happens when a process terminates.
  3317. Processes
  3318. * Running a Command:: The easy way to run another program.
  3319. * Process Creation Concepts:: An overview of the hard way to do it.
  3320. * Process Identification:: How to get the process ID of a process.
  3321. * Creating a Process:: How to fork a child process.
  3322. * Querying a Process:: How to query a child process.
  3323. * Executing a File:: How to make a process execute another program.
  3324. * Process Completion:: How to tell when a child process has completed.
  3325. * Process Completion Status:: How to interpret the status value
  3326. returned from a child process.
  3327. * BSD Wait Functions:: More functions, for backward compatibility.
  3328. * Process Creation Example:: A complete example program.
  3329. Inter-Process Communication
  3330. * Semaphores:: Support for creating and managing semaphores
  3331. Job Control
  3332. * Concepts of Job Control:: Jobs can be controlled by a shell.
  3333. * Controlling Terminal:: How a process gets its controlling terminal.
  3334. * Access to the Terminal:: How processes share the controlling terminal.
  3335. * Orphaned Process Groups:: Jobs left after the user logs out.
  3336. * Implementing a Shell:: What a shell must do to implement job control.
  3337. * Functions for Job Control:: Functions to control process groups.
  3338. Implementing a Shell
  3339. * Data Structures:: Introduction to the sample shell.
  3340. * Initializing the Shell:: What the shell must do to take
  3341. responsibility for job control.
  3342. * Launching Jobs:: Creating jobs to execute commands.
  3343. * Foreground and Background:: Putting a job in foreground of background.
  3344. * Stopped and Terminated Jobs:: Reporting job status.
  3345. * Continuing Stopped Jobs:: How to continue a stopped job in
  3346. the foreground or background.
  3347. * Missing Pieces:: Other parts of the shell.
  3348. Functions for Job Control
  3349. * Identifying the Terminal:: Determining the controlling terminal's name.
  3350. * Process Group Functions:: Functions for manipulating process groups.
  3351. * Terminal Access Functions:: Functions for controlling terminal access.
  3352. Name Service Switch
  3353. * NSS Basics:: What is this NSS good for.
  3354. * NSS Configuration File:: Configuring NSS.
  3355. * NSS Module Internals:: How does it work internally.
  3356. * Extending NSS:: What to do to add services or databases.
  3357. NSS Configuration File
  3358. * Services in the NSS configuration:: Service names in the NSS configuration.
  3359. * Actions in the NSS configuration:: React appropriately to the lookup result.
  3360. * Notes on NSS Configuration File:: Things to take care about while
  3361. configuring NSS.
  3362. NSS Module Internals
  3363. * NSS Module Names:: Construction of the interface function of
  3364. the NSS modules.
  3365. * NSS Modules Interface:: Programming interface in the NSS module
  3366. functions.
  3367. Extending NSS
  3368. * Adding another Service to NSS:: What is to do to add a new service.
  3369. * NSS Module Function Internals:: Guidelines for writing new NSS
  3370. service functions.
  3371. Users and Groups
  3372. * User and Group IDs:: Each user has a unique numeric ID;
  3373. likewise for groups.
  3374. * Process Persona:: The user IDs and group IDs of a process.
  3375. * Why Change Persona:: Why a program might need to change
  3376. its user and/or group IDs.
  3377. * How Change Persona:: Changing the user and group IDs.
  3378. * Reading Persona:: How to examine the user and group IDs.
  3379. * Setting User ID:: Functions for setting the user ID.
  3380. * Setting Groups:: Functions for setting the group IDs.
  3381. * Enable/Disable Setuid:: Turning setuid access on and off.
  3382. * Setuid Program Example:: The pertinent parts of one sample program.
  3383. * Tips for Setuid:: How to avoid granting unlimited access.
  3384. * Who Logged In:: Getting the name of the user who logged in,
  3385. or of the real user ID of the current process.
  3386. * User Accounting Database:: Keeping information about users and various
  3387. actions in databases.
  3388. * User Database:: Functions and data structures for
  3389. accessing the user database.
  3390. * Group Database:: Functions and data structures for
  3391. accessing the group database.
  3392. * Database Example:: Example program showing the use of database
  3393. inquiry functions.
  3394. * Netgroup Database:: Functions for accessing the netgroup database.
  3395. User Accounting Database
  3396. * Manipulating the Database:: Scanning and modifying the user
  3397. accounting database.
  3398. * XPG Functions:: A standardized way for doing the same thing.
  3399. * Logging In and Out:: Functions from BSD that modify the user
  3400. accounting database.
  3401. User Database
  3402. * User Data Structure:: What each user record contains.
  3403. * Lookup User:: How to look for a particular user.
  3404. * Scanning All Users:: Scanning the list of all users, one by one.
  3405. * Writing a User Entry:: How a program can rewrite a user's record.
  3406. Group Database
  3407. * Group Data Structure:: What each group record contains.
  3408. * Lookup Group:: How to look for a particular group.
  3409. * Scanning All Groups:: Scanning the list of all groups.
  3410. Netgroup Database
  3411. * Netgroup Data:: Data in the Netgroup database and where
  3412. it comes from.
  3413. * Lookup Netgroup:: How to look for a particular netgroup.
  3414. * Netgroup Membership:: How to test for netgroup membership.
  3415. System Management
  3416. * Host Identification:: Determining the name of the machine.
  3417. * Platform Type:: Determining operating system and basic
  3418. machine type
  3419. * Filesystem Handling:: Controlling/querying mounts
  3420. Filesystem Handling
  3421. * Mount Information:: What is or could be mounted?
  3422. * Mount-Unmount-Remount:: Controlling what is mounted and how
  3423. Mount Information
  3424. * fstab:: The ‘fstab’ file
  3425. * mtab:: The ‘mtab’ file
  3426. * Other Mount Information:: Other (non-libc) sources of mount information
  3427. System Configuration
  3428. * General Limits:: Constants and functions that describe
  3429. various process-related limits that have
  3430. one uniform value for any given machine.
  3431. * System Options:: Optional POSIX features.
  3432. * Version Supported:: Version numbers of POSIX.1 and POSIX.2.
  3433. * Sysconf:: Getting specific configuration values
  3434. of general limits and system options.
  3435. * Minimums:: Minimum values for general limits.
  3436. * Limits for Files:: Size limitations that pertain to individual files.
  3437. These can vary between file systems
  3438. or even from file to file.
  3439. * Options for Files:: Optional features that some files may support.
  3440. * File Minimums:: Minimum values for file limits.
  3441. * Pathconf:: Getting the limit values for a particular file.
  3442. * Utility Limits:: Capacity limits of some POSIX.2 utility programs.
  3443. * Utility Minimums:: Minimum allowable values of those limits.
  3444. * String Parameters:: Getting the default search path.
  3445. Sysconf
  3446. * Sysconf Definition:: Detailed specifications of ‘sysconf’.
  3447. * Constants for Sysconf:: The list of parameters ‘sysconf’ can read.
  3448. * Examples of Sysconf:: How to use ‘sysconf’ and the parameter
  3449. macros properly together.
  3450. Cryptographic Functions
  3451. * Unpredictable Bytes:: Randomness for cryptographic purposes.
  3452. Debugging Support
  3453. * Backtraces:: Obtaining and printing a back trace of the
  3454. current stack.
  3455. Threads
  3456. * ISO C Threads:: Threads based on the ISO C specification.
  3457. * POSIX Threads:: Threads based on the POSIX specification.
  3458. ISO C Threads
  3459. * ISO C Threads Return Values:: Symbolic constants that represent a
  3460. function's return value.
  3461. * ISO C Thread Management:: Support for basic threading.
  3462. * Call Once:: Single-call functions and macros.
  3463. * ISO C Mutexes:: A low-level mechanism for mutual exclusion.
  3464. * ISO C Condition Variables:: High-level objects for thread synchronization.
  3465. * ISO C Thread-local Storage:: Functions to support thread-local storage.
  3466. POSIX Threads
  3467. * Creating and Destroying Threads::
  3468. * Thread-specific Data:: Support for creating and
  3469. managing thread-specific data
  3470. * Waiting with Explicit Clocks:: Functions for waiting with an
  3471. explicit clock specification.
  3472. * POSIX Semaphores:: Support for process and thread
  3473. synchronization using semaphores
  3474. * POSIX Barriers:: Support for process and thread
  3475. synchronization using barriers
  3476. * POSIX Spin Locks:: Support for process and thread
  3477. synchronization using spinlocks
  3478. * POSIX Mutexes:: Support for mutual exclusion
  3479. * POSIX Threads Other APIs:: Other Standard functions
  3480. * Non-POSIX Extensions:: Additional functions to extend
  3481. POSIX Thread functionality
  3482. Non-POSIX Extensions
  3483. * Default Thread Attributes:: Setting default attributes for
  3484. threads in a process.
  3485. * Initial Thread Signal Mask:: Setting the initial mask of threads.
  3486. * Thread CPU Affinity:: Limiting which CPUs can run a thread.
  3487. * Joining Threads:: Wait for a thread to terminate.
  3488. * Thread Names:: Changing the name of a thread.
  3489. * Single-Threaded:: Detecting single-threaded execution.
  3490. * Restartable Sequences:: Linux-specific restartable sequences
  3491. integration.
  3492. Dynamic Linker
  3493. * Dynamic Linker Invocation:: Explicit invocation of the dynamic linker.
  3494. * Dynamic Linker Environment Variables:: Environment variables that control the
  3495. dynamic linker.
  3496. * Dynamic Linker Introspection:: Interfaces for querying mapping information.
  3497. * Dynamic Linker Hardening:: Avoiding unexpected issues with dynamic linking.
  3498. Dynamic Linker Invocation
  3499. * Dynamic Linker Diagnostics:: Obtaining system diagnostic information.
  3500. Dynamic Linker Diagnostics
  3501. * Dynamic Linker Diagnostics Format:: Format of ld.so output.
  3502. * Dynamic Linker Diagnostics Values:: Data contain in ld.so output.
  3503. Internal Probes
  3504. * Memory Allocation Probes:: Probes in the memory allocation subsystem
  3505. * Non-local Goto Probes:: Probes in setjmp and longjmp
  3506. Tunables
  3507. * Tunable names:: The structure of a tunable name
  3508. * Memory Allocation Tunables:: Tunables in the memory allocation subsystem
  3509. * Dynamic Linking Tunables:: Tunables in the dynamic linking subsystem
  3510. * POSIX Thread Tunables:: Tunables in the POSIX thread subsystem
  3511. * Hardware Capability Tunables:: Tunables that modify the hardware
  3512. capabilities seen by the GNU C Library
  3513. * Memory Related Tunables:: Tunables that control the use of memory by
  3514. the GNU C Library.
  3515. * gmon Tunables:: Tunables that control the gmon profiler, used in
  3516. conjunction with gprof
  3517. Language Features
  3518. * Consistency Checking:: Using ‘assert’ to abort if
  3519. something "impossible" happens.
  3520. * Variadic Functions:: Defining functions with varying numbers
  3521. of args.
  3522. * Null Pointer Constant:: The macro ‘NULL’.
  3523. * Important Data Types:: Data types for object sizes.
  3524. * Data Type Measurements:: Parameters of data type representations.
  3525. Variadic Functions
  3526. * Why Variadic:: Reasons for making functions take
  3527. variable arguments.
  3528. * How Variadic:: How to define and call variadic functions.
  3529. * Variadic Example:: A complete example.
  3530. How Variadic
  3531. * Variadic Prototypes:: How to make a prototype for a function
  3532. with variable arguments.
  3533. * Receiving Arguments:: Steps you must follow to access the
  3534. optional argument values.
  3535. * How Many Arguments:: How to decide whether there are more arguments.
  3536. * Calling Variadics:: Things you need to know about calling
  3537. variable arguments functions.
  3538. * Argument Macros:: Detailed specification of the macros
  3539. for accessing variable arguments.
  3540. Data Type Measurements
  3541. * Width of Type:: How many bits does an integer type hold?
  3542. * Range of Type:: What are the largest and smallest values
  3543. that an integer type can hold?
  3544. * Floating Type Macros:: Parameters that measure the floating point types.
  3545. * Structure Measurement:: Getting measurements on structure types.
  3546. Floating Type Macros
  3547. * Floating Point Concepts:: Definitions of terminology.
  3548. * Floating Point Parameters:: Details of specific macros.
  3549. * IEEE Floating Point:: The measurements for one common
  3550. representation.
  3551. Installation
  3552. * Configuring and compiling:: How to compile and test GNU libc.
  3553. * Running make install:: How to install it once you've got it
  3554. compiled.
  3555. * Tools for Compilation:: You'll need these first.
  3556. * Linux:: Specific advice for GNU/Linux systems.
  3557. * Reporting Bugs:: So they'll get fixed.
  3558. Maintenance
  3559. * Source Layout:: How to add new functions or header files
  3560. to the GNU C Library.
  3561. * Source Fortification:: Fortification of function calls.
  3562. * Symbol handling:: How to handle symbols in the GNU C Library.
  3563. * Porting:: How to port the GNU C Library to
  3564. a new machine or operating system.
  3565. Source Layout
  3566. * Platform: Adding Platform-specific. Adding platform-specific
  3567. features.
  3568. Symbol handling
  3569. * 64-bit time symbol handling :: How to handle 64-bit time related
  3570. symbols in the GNU C Library.
  3571. Porting
  3572. * Hierarchy Conventions:: The layout of the ‘sysdeps’ hierarchy.
  3573. * Porting to Unix:: Porting the library to an average
  3574. Unix-like system.
  3575. Platform
  3576. * PowerPC:: Facilities Specific to the PowerPC Architecture
  3577. * RISC-V:: Facilities Specific to the RISC-V Architecture
  3578. * X86:: Facilities Specific to the X86 Architecture
  3579. 
  3580. File: libc.info, Node: Introduction, Next: Error Reporting, Prev: Top, Up: Top
  3581. 1 Introduction
  3582. **************
  3583. The C language provides no built-in facilities for performing such
  3584. common operations as input/output, memory management, string
  3585. manipulation, and the like. Instead, these facilities are defined in a
  3586. standard “library”, which you compile and link with your programs.
  3587. The GNU C Library, described in this document, defines all of the
  3588. library functions that are specified by the ISO C standard, as well as
  3589. additional features specific to POSIX and other derivatives of the Unix
  3590. operating system, and extensions specific to GNU systems.
  3591. The purpose of this manual is to tell you how to use the facilities
  3592. of the GNU C Library. We have mentioned which features belong to which
  3593. standards to help you identify things that are potentially non-portable
  3594. to other systems. But the emphasis in this manual is not on strict
  3595. portability.
  3596. * Menu:
  3597. * Getting Started:: What this manual is for and how to use it.
  3598. * Standards and Portability:: Standards and sources upon which the GNU
  3599. C library is based.
  3600. * Using the Library:: Some practical uses for the library.
  3601. * Roadmap to the Manual:: Overview of the remaining chapters in
  3602. this manual.
  3603. 
  3604. File: libc.info, Node: Getting Started, Next: Standards and Portability, Up: Introduction
  3605. 1.1 Getting Started
  3606. ===================
  3607. This manual is written with the assumption that you are at least
  3608. somewhat familiar with the C programming language and basic programming
  3609. concepts. Specifically, familiarity with ISO standard C (*note ISO
  3610. C::), rather than "traditional" pre-ISO C dialects, is assumed.
  3611. The GNU C Library includes several “header files”, each of which
  3612. provides definitions and declarations for a group of related facilities;
  3613. this information is used by the C compiler when processing your program.
  3614. For example, the header file ‘stdio.h’ declares facilities for
  3615. performing input and output, and the header file ‘string.h’ declares
  3616. string processing utilities. The organization of this manual generally
  3617. follows the same division as the header files.
  3618. If you are reading this manual for the first time, you should read
  3619. all of the introductory material and skim the remaining chapters. There
  3620. are a _lot_ of functions in the GNU C Library and it's not realistic to
  3621. expect that you will be able to remember exactly _how_ to use each and
  3622. every one of them. It's more important to become generally familiar
  3623. with the kinds of facilities that the library provides, so that when you
  3624. are writing your programs you can recognize _when_ to make use of
  3625. library functions, and _where_ in this manual you can find more specific
  3626. information about them.
  3627. 
  3628. File: libc.info, Node: Standards and Portability, Next: Using the Library, Prev: Getting Started, Up: Introduction
  3629. 1.2 Standards and Portability
  3630. =============================
  3631. This section discusses the various standards and other sources that the
  3632. GNU C Library is based upon. These sources include the ISO C and POSIX
  3633. standards, and the System V and Berkeley Unix implementations.
  3634. The primary focus of this manual is to tell you how to make effective
  3635. use of the GNU C Library facilities. But if you are concerned about
  3636. making your programs compatible with these standards, or portable to
  3637. operating systems other than GNU, this can affect how you use the
  3638. library. This section gives you an overview of these standards, so that
  3639. you will know what they are when they are mentioned in other parts of
  3640. the manual.
  3641. *Note Library Summary::, for an alphabetical list of the functions
  3642. and other symbols provided by the library. This list also states which
  3643. standards each function or symbol comes from.
  3644. * Menu:
  3645. * ISO C:: The international standard for the C
  3646. programming language.
  3647. * POSIX:: The ISO/IEC 9945 (aka IEEE 1003) standards
  3648. for operating systems.
  3649. * Berkeley Unix:: BSD and SunOS.
  3650. * SVID:: The System V Interface Description.
  3651. * XPG:: The X/Open Portability Guide.
  3652. * Linux Kernel:: The Linux kernel.
  3653. 
  3654. File: libc.info, Node: ISO C, Next: POSIX, Up: Standards and Portability
  3655. 1.2.1 ISO C
  3656. -----------
  3657. The GNU C Library is compatible with the C standard adopted by the
  3658. American National Standards Institute (ANSI): ‘American National
  3659. Standard X3.159-1989--"ANSI C"’ and later by the International
  3660. Standardization Organization (ISO): ‘ISO/IEC 9899:1990, "Programming
  3661. languages--C"’. We here refer to the standard as ISO C since this is
  3662. the more general standard in respect of ratification. The header files
  3663. and library facilities that make up the GNU C Library are a superset of
  3664. those specified by the ISO C standard.
  3665. If you are concerned about strict adherence to the ISO C standard,
  3666. you should use the ‘-ansi’ option when you compile your programs with
  3667. the GNU C compiler. This tells the compiler to define _only_ ISO
  3668. standard features from the library header files, unless you explicitly
  3669. ask for additional features. *Note Feature Test Macros::, for
  3670. information on how to do this.
  3671. Being able to restrict the library to include only ISO C features is
  3672. important because ISO C puts limitations on what names can be defined by
  3673. the library implementation, and the GNU extensions don't fit these
  3674. limitations. *Note Reserved Names::, for more information about these
  3675. restrictions.
  3676. This manual does not attempt to give you complete details on the
  3677. differences between ISO C and older dialects. It gives advice on how to
  3678. write programs to work portably under multiple C dialects, but does not
  3679. aim for completeness.
  3680. 
  3681. File: libc.info, Node: POSIX, Next: Berkeley Unix, Prev: ISO C, Up: Standards and Portability
  3682. 1.2.2 POSIX (The Portable Operating System Interface)
  3683. -----------------------------------------------------
  3684. The GNU C Library is also compatible with the ISO “POSIX” family of
  3685. standards, known more formally as the “Portable Operating System
  3686. Interface for Computer Environments” (ISO/IEC 9945). They were also
  3687. published as ANSI/IEEE Std 1003. POSIX is derived mostly from various
  3688. versions of the Unix operating system.
  3689. The library facilities specified by the POSIX standards are a
  3690. superset of those required by ISO C; POSIX specifies additional features
  3691. for ISO C functions, as well as specifying new additional functions. In
  3692. general, the additional requirements and functionality defined by the
  3693. POSIX standards are aimed at providing lower-level support for a
  3694. particular kind of operating system environment, rather than general
  3695. programming language support which can run in many diverse operating
  3696. system environments.
  3697. The GNU C Library implements all of the functions specified in
  3698. ‘ISO/IEC 9945-1:1996, the POSIX System Application Program Interface’,
  3699. commonly referred to as POSIX.1. The primary extensions to the ISO C
  3700. facilities specified by this standard include file system interface
  3701. primitives (*note File System Interface::), device-specific terminal
  3702. control functions (*note Low-Level Terminal Interface::), and process
  3703. control functions (*note Processes::).
  3704. Some facilities from ‘ISO/IEC 9945-2:1993, the POSIX Shell and
  3705. Utilities standard’ (POSIX.2) are also implemented in the GNU C Library.
  3706. These include utilities for dealing with regular expressions and other
  3707. pattern matching facilities (*note Pattern Matching::).
  3708. * Menu:
  3709. * POSIX Safety Concepts:: Safety concepts from POSIX.
  3710. * Unsafe Features:: Features that make functions unsafe.
  3711. * Conditionally Safe Features:: Features that make functions unsafe
  3712. in the absence of workarounds.
  3713. * Other Safety Remarks:: Additional safety features and remarks.
  3714. 
  3715. File: libc.info, Node: POSIX Safety Concepts, Next: Unsafe Features, Up: POSIX
  3716. 1.2.2.1 POSIX Safety Concepts
  3717. .............................
  3718. This manual documents various safety properties of GNU C Library
  3719. functions, in lines that follow their prototypes and look like:
  3720. Preliminary: | MT-Safe | AS-Safe | AC-Safe |
  3721. The properties are assessed according to the criteria set forth in
  3722. the POSIX standard for such safety contexts as Thread-, Async-Signal-
  3723. and Async-Cancel- -Safety. Intuitive definitions of these properties,
  3724. attempting to capture the meaning of the standard definitions, follow.
  3725. • ‘MT-Safe’ or Thread-Safe functions are safe to call in the presence
  3726. of other threads. MT, in MT-Safe, stands for Multi Thread.
  3727. Being MT-Safe does not imply a function is atomic, nor that it uses
  3728. any of the memory synchronization mechanisms POSIX exposes to
  3729. users. It is even possible that calling MT-Safe functions in
  3730. sequence does not yield an MT-Safe combination. For example,
  3731. having a thread call two MT-Safe functions one right after the
  3732. other does not guarantee behavior equivalent to atomic execution of
  3733. a combination of both functions, since concurrent calls in other
  3734. threads may interfere in a destructive way.
  3735. Whole-program optimizations that could inline functions across
  3736. library interfaces may expose unsafe reordering, and so performing
  3737. inlining across the GNU C Library interface is not recommended.
  3738. The documented MT-Safety status is not guaranteed under
  3739. whole-program optimization. However, functions defined in
  3740. user-visible headers are designed to be safe for inlining.
  3741. • ‘AS-Safe’ or Async-Signal-Safe functions are safe to call from
  3742. asynchronous signal handlers. AS, in AS-Safe, stands for
  3743. Asynchronous Signal.
  3744. Many functions that are AS-Safe may set ‘errno’, or modify the
  3745. floating-point environment, because their doing so does not make
  3746. them unsuitable for use in signal handlers. However, programs
  3747. could misbehave should asynchronous signal handlers modify this
  3748. thread-local state, and the signal handling machinery cannot be
  3749. counted on to preserve it. Therefore, signal handlers that call
  3750. functions that may set ‘errno’ or modify the floating-point
  3751. environment _must_ save their original values, and restore them
  3752. before returning.
  3753. • ‘AC-Safe’ or Async-Cancel-Safe functions are safe to call when
  3754. asynchronous cancellation is enabled. AC in AC-Safe stands for
  3755. Asynchronous Cancellation.
  3756. The POSIX standard defines only three functions to be AC-Safe,
  3757. namely ‘pthread_cancel’, ‘pthread_setcancelstate’, and
  3758. ‘pthread_setcanceltype’. At present the GNU C Library provides no
  3759. guarantees beyond these three functions, but does document which
  3760. functions are presently AC-Safe. This documentation is provided
  3761. for use by the GNU C Library developers.
  3762. Just like signal handlers, cancellation cleanup routines must
  3763. configure the floating point environment they require. The
  3764. routines cannot assume a floating point environment, particularly
  3765. when asynchronous cancellation is enabled. If the configuration of
  3766. the floating point environment cannot be performed atomically then
  3767. it is also possible that the environment encountered is internally
  3768. inconsistent.
  3769. • ‘MT-Unsafe’, ‘AS-Unsafe’, ‘AC-Unsafe’ functions are not safe to
  3770. call within the safety contexts described above. Calling them
  3771. within such contexts invokes undefined behavior.
  3772. Functions not explicitly documented as safe in a safety context
  3773. should be regarded as Unsafe.
  3774. • ‘Preliminary’ safety properties are documented, indicating these
  3775. properties may _not_ be counted on in future releases of the GNU C
  3776. Library.
  3777. Such preliminary properties are the result of an assessment of the
  3778. properties of our current implementation, rather than of what is
  3779. mandated and permitted by current and future standards.
  3780. Although we strive to abide by the standards, in some cases our
  3781. implementation is safe even when the standard does not demand
  3782. safety, and in other cases our implementation does not meet the
  3783. standard safety requirements. The latter are most likely bugs; the
  3784. former, when marked as ‘Preliminary’, should not be counted on:
  3785. future standards may require changes that are not compatible with
  3786. the additional safety properties afforded by the current
  3787. implementation.
  3788. Furthermore, the POSIX standard does not offer a detailed
  3789. definition of safety. We assume that, by "safe to call", POSIX
  3790. means that, as long as the program does not invoke undefined
  3791. behavior, the "safe to call" function behaves as specified, and
  3792. does not cause other functions to deviate from their specified
  3793. behavior. We have chosen to use its loose definitions of safety,
  3794. not because they are the best definitions to use, but because
  3795. choosing them harmonizes this manual with POSIX.
  3796. Please keep in mind that these are preliminary definitions and
  3797. annotations, and certain aspects of the definitions are still under
  3798. discussion and might be subject to clarification or change.
  3799. Over time, we envision evolving the preliminary safety notes into
  3800. stable commitments, as stable as those of our interfaces. As we
  3801. do, we will remove the ‘Preliminary’ keyword from safety notes. As
  3802. long as the keyword remains, however, they are not to be regarded
  3803. as a promise of future behavior.
  3804. Other keywords that appear in safety notes are defined in subsequent
  3805. sections.
  3806. 
  3807. File: libc.info, Node: Unsafe Features, Next: Conditionally Safe Features, Prev: POSIX Safety Concepts, Up: POSIX
  3808. 1.2.2.2 Unsafe Features
  3809. .......................
  3810. Functions that are unsafe to call in certain contexts are annotated with
  3811. keywords that document their features that make them unsafe to call.
  3812. AS-Unsafe features in this section indicate the functions are never safe
  3813. to call when asynchronous signals are enabled. AC-Unsafe features
  3814. indicate they are never safe to call when asynchronous cancellation is
  3815. enabled. There are no MT-Unsafe marks in this section.
  3816. • ‘lock’
  3817. Functions marked with ‘lock’ as an AS-Unsafe feature may be
  3818. interrupted by a signal while holding a non-recursive lock. If the
  3819. signal handler calls another such function that takes the same
  3820. lock, the result is a deadlock.
  3821. Functions annotated with ‘lock’ as an AC-Unsafe feature may, if
  3822. cancelled asynchronously, fail to release a lock that would have
  3823. been released if their execution had not been interrupted by
  3824. asynchronous thread cancellation. Once a lock is left taken,
  3825. attempts to take that lock will block indefinitely.
  3826. • ‘corrupt’
  3827. Functions marked with ‘corrupt’ as an AS-Unsafe feature may corrupt
  3828. data structures and misbehave when they interrupt, or are
  3829. interrupted by, another such function. Unlike functions marked
  3830. with ‘lock’, these take recursive locks to avoid MT-Safety
  3831. problems, but this is not enough to stop a signal handler from
  3832. observing a partially-updated data structure. Further corruption
  3833. may arise from the interrupted function's failure to notice updates
  3834. made by signal handlers.
  3835. Functions marked with ‘corrupt’ as an AC-Unsafe feature may leave
  3836. data structures in a corrupt, partially updated state. Subsequent
  3837. uses of the data structure may misbehave.
  3838. • ‘heap’
  3839. Functions marked with ‘heap’ may call heap memory management
  3840. functions from the ‘malloc’/‘free’ family of functions and are only
  3841. as safe as those functions. This note is thus equivalent to:
  3842. | AS-Unsafe lock | AC-Unsafe lock fd mem |
  3843. • ‘dlopen’
  3844. Functions marked with ‘dlopen’ use the dynamic loader to load
  3845. shared libraries into the current execution image. This involves
  3846. opening files, mapping them into memory, allocating additional
  3847. memory, resolving symbols, applying relocations and more, all of
  3848. this while holding internal dynamic loader locks.
  3849. The locks are enough for these functions to be AS- and AC-Unsafe,
  3850. but other issues may arise. At present this is a placeholder for
  3851. all potential safety issues raised by ‘dlopen’.
  3852. • ‘plugin’
  3853. Functions annotated with ‘plugin’ may run code from plugins that
  3854. may be external to the GNU C Library. Such plugin functions are
  3855. assumed to be MT-Safe, AS-Unsafe and AC-Unsafe. Examples of such
  3856. plugins are stack unwinding libraries, name service switch (NSS)
  3857. and character set conversion (iconv) back-ends.
  3858. Although the plugins mentioned as examples are all brought in by
  3859. means of dlopen, the ‘plugin’ keyword does not imply any direct
  3860. involvement of the dynamic loader or the ‘libdl’ interfaces, those
  3861. are covered by ‘dlopen’. For example, if one function loads a
  3862. module and finds the addresses of some of its functions, while
  3863. another just calls those already-resolved functions, the former
  3864. will be marked with ‘dlopen’, whereas the latter will get the
  3865. ‘plugin’. When a single function takes all of these actions, then
  3866. it gets both marks.
  3867. • ‘i18n’
  3868. Functions marked with ‘i18n’ may call internationalization
  3869. functions of the ‘gettext’ family and will be only as safe as those
  3870. functions. This note is thus equivalent to:
  3871. | MT-Safe env | AS-Unsafe corrupt heap dlopen | AC-Unsafe corrupt |
  3872. • ‘timer’
  3873. Functions marked with ‘timer’ use the ‘alarm’ function or similar
  3874. to set a time-out for a system call or a long-running operation.
  3875. In a multi-threaded program, there is a risk that the time-out
  3876. signal will be delivered to a different thread, thus failing to
  3877. interrupt the intended thread. Besides being MT-Unsafe, such
  3878. functions are always AS-Unsafe, because calling them in signal
  3879. handlers may interfere with timers set in the interrupted code, and
  3880. AC-Unsafe, because there is no safe way to guarantee an earlier
  3881. timer will be reset in case of asynchronous cancellation.
  3882. 
  3883. File: libc.info, Node: Conditionally Safe Features, Next: Other Safety Remarks, Prev: Unsafe Features, Up: POSIX
  3884. 1.2.2.3 Conditionally Safe Features
  3885. ...................................
  3886. For some features that make functions unsafe to call in certain
  3887. contexts, there are known ways to avoid the safety problem other than
  3888. refraining from calling the function altogether. The keywords that
  3889. follow refer to such features, and each of their definitions indicate
  3890. how the whole program needs to be constrained in order to remove the
  3891. safety problem indicated by the keyword. Only when all the reasons that
  3892. make a function unsafe are observed and addressed, by applying the
  3893. documented constraints, does the function become safe to call in a
  3894. context.
  3895. • ‘init’
  3896. Functions marked with ‘init’ as an MT-Unsafe feature perform
  3897. MT-Unsafe initialization when they are first called.
  3898. Calling such a function at least once in single-threaded mode
  3899. removes this specific cause for the function to be regarded as
  3900. MT-Unsafe. If no other cause for that remains, the function can
  3901. then be safely called after other threads are started.
  3902. Functions marked with ‘init’ as an AS- or AC-Unsafe feature use the
  3903. internal ‘libc_once’ machinery or similar to initialize internal
  3904. data structures.
  3905. If a signal handler interrupts such an initializer, and calls any
  3906. function that also performs ‘libc_once’ initialization, it will
  3907. deadlock if the thread library has been loaded.
  3908. Furthermore, if an initializer is partially complete before it is
  3909. canceled or interrupted by a signal whose handler requires the same
  3910. initialization, some or all of the initialization may be performed
  3911. more than once, leaking resources or even resulting in corrupt
  3912. internal data.
  3913. Applications that need to call functions marked with ‘init’ as an
  3914. AS- or AC-Unsafe feature should ensure the initialization is
  3915. performed before configuring signal handlers or enabling
  3916. cancellation, so that the AS- and AC-Safety issues related with
  3917. ‘libc_once’ do not arise.
  3918. • ‘race’
  3919. Functions annotated with ‘race’ as an MT-Safety issue operate on
  3920. objects in ways that may cause data races or similar forms of
  3921. destructive interference out of concurrent execution. In some
  3922. cases, the objects are passed to the functions by users; in others,
  3923. they are used by the functions to return values to users; in
  3924. others, they are not even exposed to users.
  3925. We consider access to objects passed as (indirect) arguments to
  3926. functions to be data race free. The assurance of data race free
  3927. objects is the caller's responsibility. We will not mark a
  3928. function as MT-Unsafe or AS-Unsafe if it misbehaves when users fail
  3929. to take the measures required by POSIX to avoid data races when
  3930. dealing with such objects. As a general rule, if a function is
  3931. documented as reading from an object passed (by reference) to it,
  3932. or modifying it, users ought to use memory synchronization
  3933. primitives to avoid data races just as they would should they
  3934. perform the accesses themselves rather than by calling the library
  3935. function. ‘FILE’ streams are the exception to the general rule, in
  3936. that POSIX mandates the library to guard against data races in many
  3937. functions that manipulate objects of this specific opaque type. We
  3938. regard this as a convenience provided to users, rather than as a
  3939. general requirement whose expectations should extend to other
  3940. types.
  3941. In order to remind users that guarding certain arguments is their
  3942. responsibility, we will annotate functions that take objects of
  3943. certain types as arguments. We draw the line for objects passed by
  3944. users as follows: objects whose types are exposed to users, and
  3945. that users are expected to access directly, such as memory buffers,
  3946. strings, and various user-visible ‘struct’ types, do _not_ give
  3947. reason for functions to be annotated with ‘race’. It would be
  3948. noisy and redundant with the general requirement, and not many
  3949. would be surprised by the library's lack of internal guards when
  3950. accessing objects that can be accessed directly by users.
  3951. As for objects that are opaque or opaque-like, in that they are to
  3952. be manipulated only by passing them to library functions (e.g.,
  3953. ‘FILE’, ‘DIR’, ‘obstack’, ‘iconv_t’), there might be additional
  3954. expectations as to internal coordination of access by the library.
  3955. We will annotate, with ‘race’ followed by a colon and the argument
  3956. name, functions that take such objects but that do not take care of
  3957. synchronizing access to them by default. For example, ‘FILE’
  3958. stream ‘unlocked’ functions will be annotated, but those that
  3959. perform implicit locking on ‘FILE’ streams by default will not,
  3960. even though the implicit locking may be disabled on a per-stream
  3961. basis.
  3962. In either case, we will not regard as MT-Unsafe functions that may
  3963. access user-supplied objects in unsafe ways should users fail to
  3964. ensure the accesses are well defined. The notion prevails that
  3965. users are expected to safeguard against data races any
  3966. user-supplied objects that the library accesses on their behalf.
  3967. This user responsibility does not apply, however, to objects
  3968. controlled by the library itself, such as internal objects and
  3969. static buffers used to return values from certain calls. When the
  3970. library doesn't guard them against concurrent uses, these cases are
  3971. regarded as MT-Unsafe and AS-Unsafe (although the ‘race’ mark under
  3972. AS-Unsafe will be omitted as redundant with the one under
  3973. MT-Unsafe). As in the case of user-exposed objects, the mark may
  3974. be followed by a colon and an identifier. The identifier groups
  3975. all functions that operate on a certain unguarded object; users may
  3976. avoid the MT-Safety issues related with unguarded concurrent access
  3977. to such internal objects by creating a non-recursive mutex related
  3978. with the identifier, and always holding the mutex when calling any
  3979. function marked as racy on that identifier, as they would have to
  3980. should the identifier be an object under user control. The
  3981. non-recursive mutex avoids the MT-Safety issue, but it trades one
  3982. AS-Safety issue for another, so use in asynchronous signals remains
  3983. undefined.
  3984. When the identifier relates to a static buffer used to hold return
  3985. values, the mutex must be held for as long as the buffer remains in
  3986. use by the caller. Many functions that return pointers to static
  3987. buffers offer reentrant variants that store return values in
  3988. caller-supplied buffers instead. In some cases, such as ‘tmpname’,
  3989. the variant is chosen not by calling an alternate entry point, but
  3990. by passing a non-‘NULL’ pointer to the buffer in which the returned
  3991. values are to be stored. These variants are generally preferable
  3992. in multi-threaded programs, although some of them are not MT-Safe
  3993. because of other internal buffers, also documented with ‘race’
  3994. notes.
  3995. • ‘const’
  3996. Functions marked with ‘const’ as an MT-Safety issue non-atomically
  3997. modify internal objects that are better regarded as constant,
  3998. because a substantial portion of the GNU C Library accesses them
  3999. without synchronization. Unlike ‘race’, that causes both readers
  4000. and writers of internal objects to be regarded as MT-Unsafe and
  4001. AS-Unsafe, this mark is applied to writers only. Writers remain
  4002. equally MT- and AS-Unsafe to call, but the then-mandatory constness
  4003. of objects they modify enables readers to be regarded as MT-Safe
  4004. and AS-Safe (as long as no other reasons for them to be unsafe
  4005. remain), since the lack of synchronization is not a problem when
  4006. the objects are effectively constant.
  4007. The identifier that follows the ‘const’ mark will appear by itself
  4008. as a safety note in readers. Programs that wish to work around
  4009. this safety issue, so as to call writers, may use a non-recursve
  4010. ‘rwlock’ associated with the identifier, and guard _all_ calls to
  4011. functions marked with ‘const’ followed by the identifier with a
  4012. write lock, and _all_ calls to functions marked with the identifier
  4013. by itself with a read lock. The non-recursive locking removes the
  4014. MT-Safety problem, but it trades one AS-Safety problem for another,
  4015. so use in asynchronous signals remains undefined.
  4016. • ‘sig’
  4017. Functions marked with ‘sig’ as a MT-Safety issue (that implies an
  4018. identical AS-Safety issue, omitted for brevity) may temporarily
  4019. install a signal handler for internal purposes, which may interfere
  4020. with other uses of the signal, identified after a colon.
  4021. This safety problem can be worked around by ensuring that no other
  4022. uses of the signal will take place for the duration of the call.
  4023. Holding a non-recursive mutex while calling all functions that use
  4024. the same temporary signal; blocking that signal before the call and
  4025. resetting its handler afterwards is recommended.
  4026. There is no safe way to guarantee the original signal handler is
  4027. restored in case of asynchronous cancellation, therefore so-marked
  4028. functions are also AC-Unsafe.
  4029. Besides the measures recommended to work around the MT- and
  4030. AS-Safety problem, in order to avert the cancellation problem,
  4031. disabling asynchronous cancellation _and_ installing a cleanup
  4032. handler to restore the signal to the desired state and to release
  4033. the mutex are recommended.
  4034. • ‘term’
  4035. Functions marked with ‘term’ as an MT-Safety issue may change the
  4036. terminal settings in the recommended way, namely: call ‘tcgetattr’,
  4037. modify some flags, and then call ‘tcsetattr’; this creates a window
  4038. in which changes made by other threads are lost. Thus, functions
  4039. marked with ‘term’ are MT-Unsafe. The same window enables changes
  4040. made by asynchronous signals to be lost. These functions are also
  4041. AS-Unsafe, but the corresponding mark is omitted as redundant.
  4042. It is thus advisable for applications using the terminal to avoid
  4043. concurrent and reentrant interactions with it, by not using it in
  4044. signal handlers or blocking signals that might use it, and holding
  4045. a lock while calling these functions and interacting with the
  4046. terminal. This lock should also be used for mutual exclusion with
  4047. functions marked with ‘race:tcattr(fd)’, where FD is a file
  4048. descriptor for the controlling terminal. The caller may use a
  4049. single mutex for simplicity, or use one mutex per terminal, even if
  4050. referenced by different file descriptors.
  4051. Functions marked with ‘term’ as an AC-Safety issue are supposed to
  4052. restore terminal settings to their original state, after
  4053. temporarily changing them, but they may fail to do so if cancelled.
  4054. Besides the measures recommended to work around the MT- and
  4055. AS-Safety problem, in order to avert the cancellation problem,
  4056. disabling asynchronous cancellation _and_ installing a cleanup
  4057. handler to restore the terminal settings to the original state and
  4058. to release the mutex are recommended.
  4059. 
  4060. File: libc.info, Node: Other Safety Remarks, Prev: Conditionally Safe Features, Up: POSIX
  4061. 1.2.2.4 Other Safety Remarks
  4062. ............................
  4063. Additional keywords may be attached to functions, indicating features
  4064. that do not make a function unsafe to call, but that may need to be
  4065. taken into account in certain classes of programs:
  4066. • ‘locale’
  4067. Functions annotated with ‘locale’ as an MT-Safety issue read from
  4068. the locale object without any form of synchronization. Functions
  4069. annotated with ‘locale’ called concurrently with locale changes may
  4070. behave in ways that do not correspond to any of the locales active
  4071. during their execution, but an unpredictable mix thereof.
  4072. We do not mark these functions as MT- or AS-Unsafe, however,
  4073. because functions that modify the locale object are marked with
  4074. ‘const:locale’ and regarded as unsafe. Being unsafe, the latter
  4075. are not to be called when multiple threads are running or
  4076. asynchronous signals are enabled, and so the locale can be
  4077. considered effectively constant in these contexts, which makes the
  4078. former safe.
  4079. • ‘env’
  4080. Functions marked with ‘env’ as an MT-Safety issue access the
  4081. environment with ‘getenv’ or similar, without any guards to ensure
  4082. safety in the presence of concurrent modifications.
  4083. We do not mark these functions as MT- or AS-Unsafe, however,
  4084. because functions that modify the environment are all marked with
  4085. ‘const:env’ and regarded as unsafe. Being unsafe, the latter are
  4086. not to be called when multiple threads are running or asynchronous
  4087. signals are enabled, and so the environment can be considered
  4088. effectively constant in these contexts, which makes the former
  4089. safe.
  4090. • ‘hostid’
  4091. The function marked with ‘hostid’ as an MT-Safety issue reads from
  4092. the system-wide data structures that hold the "host ID" of the
  4093. machine. These data structures cannot generally be modified
  4094. atomically. Since it is expected that the "host ID" will not
  4095. normally change, the function that reads from it (‘gethostid’) is
  4096. regarded as safe, whereas the function that modifies it
  4097. (‘sethostid’) is marked with ‘const:hostid’, indicating it may
  4098. require special care if it is to be called. In this specific case,
  4099. the special care amounts to system-wide (not merely intra-process)
  4100. coordination.
  4101. • ‘sigintr’
  4102. Functions marked with ‘sigintr’ as an MT-Safety issue access the
  4103. ‘_sigintr’ internal data structure without any guards to ensure
  4104. safety in the presence of concurrent modifications.
  4105. We do not mark these functions as MT- or AS-Unsafe, however,
  4106. because functions that modify the this data structure are all
  4107. marked with ‘const:sigintr’ and regarded as unsafe. Being unsafe,
  4108. the latter are not to be called when multiple threads are running
  4109. or asynchronous signals are enabled, and so the data structure can
  4110. be considered effectively constant in these contexts, which makes
  4111. the former safe.
  4112. • ‘fd’
  4113. Functions annotated with ‘fd’ as an AC-Safety issue may leak file
  4114. descriptors if asynchronous thread cancellation interrupts their
  4115. execution.
  4116. Functions that allocate or deallocate file descriptors will
  4117. generally be marked as such. Even if they attempted to protect the
  4118. file descriptor allocation and deallocation with cleanup regions,
  4119. allocating a new descriptor and storing its number where the
  4120. cleanup region could release it cannot be performed as a single
  4121. atomic operation. Similarly, releasing the descriptor and taking
  4122. it out of the data structure normally responsible for releasing it
  4123. cannot be performed atomically. There will always be a window in
  4124. which the descriptor cannot be released because it was not stored
  4125. in the cleanup handler argument yet, or it was already taken out
  4126. before releasing it. It cannot be taken out after release: an open
  4127. descriptor could mean either that the descriptor still has to be
  4128. closed, or that it already did so but the descriptor was
  4129. reallocated by another thread or signal handler.
  4130. Such leaks could be internally avoided, with some performance
  4131. penalty, by temporarily disabling asynchronous thread cancellation.
  4132. However, since callers of allocation or deallocation functions
  4133. would have to do this themselves, to avoid the same sort of leak in
  4134. their own layer, it makes more sense for the library to assume they
  4135. are taking care of it than to impose a performance penalty that is
  4136. redundant when the problem is solved in upper layers, and
  4137. insufficient when it is not.
  4138. This remark by itself does not cause a function to be regarded as
  4139. AC-Unsafe. However, cumulative effects of such leaks may pose a
  4140. problem for some programs. If this is the case, suspending
  4141. asynchronous cancellation for the duration of calls to such
  4142. functions is recommended.
  4143. • ‘mem’
  4144. Functions annotated with ‘mem’ as an AC-Safety issue may leak
  4145. memory if asynchronous thread cancellation interrupts their
  4146. execution.
  4147. The problem is similar to that of file descriptors: there is no
  4148. atomic interface to allocate memory and store its address in the
  4149. argument to a cleanup handler, or to release it and remove its
  4150. address from that argument, without at least temporarily disabling
  4151. asynchronous cancellation, which these functions do not do.
  4152. This remark does not by itself cause a function to be regarded as
  4153. generally AC-Unsafe. However, cumulative effects of such leaks may
  4154. be severe enough for some programs that disabling asynchronous
  4155. cancellation for the duration of calls to such functions may be
  4156. required.
  4157. • ‘cwd’
  4158. Functions marked with ‘cwd’ as an MT-Safety issue may temporarily
  4159. change the current working directory during their execution, which
  4160. may cause relative pathnames to be resolved in unexpected ways in
  4161. other threads or within asynchronous signal or cancellation
  4162. handlers.
  4163. This is not enough of a reason to mark so-marked functions as MT-
  4164. or AS-Unsafe, but when this behavior is optional (e.g., ‘nftw’ with
  4165. ‘FTW_CHDIR’), avoiding the option may be a good alternative to
  4166. using full pathnames or file descriptor-relative (e.g. ‘openat’)
  4167. system calls.
  4168. • ‘!posix’
  4169. This remark, as an MT-, AS- or AC-Safety note to a function,
  4170. indicates the safety status of the function is known to differ from
  4171. the specified status in the POSIX standard. For example, POSIX
  4172. does not require a function to be Safe, but our implementation is,
  4173. or vice-versa.
  4174. For the time being, the absence of this remark does not imply the
  4175. safety properties we documented are identical to those mandated by
  4176. POSIX for the corresponding functions.
  4177. • ‘:identifier’
  4178. Annotations may sometimes be followed by identifiers, intended to
  4179. group several functions that e.g. access the data structures in an
  4180. unsafe way, as in ‘race’ and ‘const’, or to provide more specific
  4181. information, such as naming a signal in a function marked with
  4182. ‘sig’. It is envisioned that it may be applied to ‘lock’ and
  4183. ‘corrupt’ as well in the future.
  4184. In most cases, the identifier will name a set of functions, but it
  4185. may name global objects or function arguments, or identifiable
  4186. properties or logical components associated with them, with a
  4187. notation such as e.g. ‘:buf(arg)’ to denote a buffer associated
  4188. with the argument ARG, or ‘:tcattr(fd)’ to denote the terminal
  4189. attributes of a file descriptor FD.
  4190. The most common use for identifiers is to provide logical groups of
  4191. functions and arguments that need to be protected by the same
  4192. synchronization primitive in order to ensure safe operation in a
  4193. given context.
  4194. • ‘/condition’
  4195. Some safety annotations may be conditional, in that they only apply
  4196. if a boolean expression involving arguments, global variables or
  4197. even the underlying kernel evaluates to true. Such conditions as
  4198. ‘/hurd’ or ‘/!linux!bsd’ indicate the preceding marker only applies
  4199. when the underlying kernel is the HURD, or when it is neither Linux
  4200. nor a BSD kernel, respectively. ‘/!ps’ and ‘/one_per_line’
  4201. indicate the preceding marker only applies when argument PS is
  4202. NULL, or global variable ONE_PER_LINE is nonzero.
  4203. When all marks that render a function unsafe are adorned with such
  4204. conditions, and none of the named conditions hold, then the
  4205. function can be regarded as safe.
  4206. 
  4207. File: libc.info, Node: Berkeley Unix, Next: SVID, Prev: POSIX, Up: Standards and Portability
  4208. 1.2.3 Berkeley Unix
  4209. -------------------
  4210. The GNU C Library defines facilities from some versions of Unix which
  4211. are not formally standardized, specifically from the 4.2 BSD, 4.3 BSD,
  4212. and 4.4 BSD Unix systems (also known as “Berkeley Unix”) and from
  4213. “SunOS” (a popular 4.2 BSD derivative that includes some Unix System V
  4214. functionality). These systems support most of the ISO C and POSIX
  4215. facilities, and 4.4 BSD and newer releases of SunOS in fact support them
  4216. all.
  4217. The BSD facilities include symbolic links (*note Symbolic Links::),
  4218. the ‘select’ function (*note Waiting for I/O::), the BSD signal
  4219. functions (*note BSD Signal Handling::), and sockets (*note Sockets::).
  4220. 
  4221. File: libc.info, Node: SVID, Next: XPG, Prev: Berkeley Unix, Up: Standards and Portability
  4222. 1.2.4 SVID (The System V Interface Description)
  4223. -----------------------------------------------
  4224. The “System V Interface Description” (SVID) is a document describing the
  4225. AT&T Unix System V operating system. It is to some extent a superset of
  4226. the POSIX standard (*note POSIX::).
  4227. The GNU C Library defines most of the facilities required by the SVID
  4228. that are not also required by the ISO C or POSIX standards, for
  4229. compatibility with System V Unix and other Unix systems (such as SunOS)
  4230. which include these facilities. However, many of the more obscure and
  4231. less generally useful facilities required by the SVID are not included.
  4232. (In fact, Unix System V itself does not provide them all.)
  4233. The supported facilities from System V include the methods for
  4234. inter-process communication and shared memory, the ‘hsearch’ and
  4235. ‘drand48’ families of functions, ‘fmtmsg’ and several of the
  4236. mathematical functions.
  4237. 
  4238. File: libc.info, Node: XPG, Next: Linux Kernel, Prev: SVID, Up: Standards and Portability
  4239. 1.2.5 XPG (The X/Open Portability Guide)
  4240. ----------------------------------------
  4241. The X/Open Portability Guide, published by the X/Open Company, Ltd., is
  4242. a more general standard than POSIX. X/Open owns the Unix copyright and
  4243. the XPG specifies the requirements for systems which are intended to be
  4244. a Unix system.
  4245. The GNU C Library complies to the X/Open Portability Guide, Issue
  4246. 4.2, with all extensions common to XSI (X/Open System Interface)
  4247. compliant systems and also all X/Open UNIX extensions.
  4248. The additions on top of POSIX are mainly derived from functionality
  4249. available in System V and BSD systems. Some of the really bad mistakes
  4250. in System V systems were corrected, though. Since fulfilling the XPG
  4251. standard with the Unix extensions is a precondition for getting the Unix
  4252. brand chances are good that the functionality is available on commercial
  4253. systems.
  4254. 
  4255. File: libc.info, Node: Linux Kernel, Prev: XPG, Up: Standards and Portability
  4256. 1.2.6 Linux (The Linux Kernel)
  4257. ------------------------------
  4258. The GNU C Library includes by reference the Linux man-pages 6.9.1
  4259. documentation to document the listed syscalls for the Linux kernel. For
  4260. reference purposes only, the latest Linux man-pages Project
  4261. (https://www.kernel.org/doc/man-pages/) documentation can be accessed
  4262. from the Linux kernel (https://www.kernel.org) website. Where the
  4263. syscall has more specific documentation in this manual that more
  4264. specific documentation is considered authoritative.
  4265. Throughout this manual, when we refer to a man page, for example:
  4266. sendmsg(2) (Latest, online:
  4267. <https://man7.org/linux/man-pages/man2/sendmsg.2.html>) *Note Linux
  4268. Kernel::
  4269. we are referring primarily to the specific version noted above (the
  4270. "normative" version), typically accessed by running (for example) ‘man 2
  4271. sendmsg’ on a system with that version installed. For convenience, we
  4272. will also link to the online latest copy of the man pages, but keep in
  4273. mind that version will almost always be newer than, and thus different
  4274. than, the normative version noted above.
  4275. Additional details on the Linux system call interface can be found in
  4276. *Note System Calls::.
  4277. 
  4278. File: libc.info, Node: Using the Library, Next: Roadmap to the Manual, Prev: Standards and Portability, Up: Introduction
  4279. 1.3 Using the Library
  4280. =====================
  4281. This section describes some of the practical issues involved in using
  4282. the GNU C Library.
  4283. * Menu:
  4284. * Header Files:: How to include the header files in your
  4285. programs.
  4286. * Macro Definitions:: Some functions in the library may really
  4287. be implemented as macros.
  4288. * Reserved Names:: The C standard reserves some names for
  4289. the library, and some for users.
  4290. * Feature Test Macros:: How to control what names are defined.
  4291. 
  4292. File: libc.info, Node: Header Files, Next: Macro Definitions, Up: Using the Library
  4293. 1.3.1 Header Files
  4294. ------------------
  4295. Libraries for use by C programs really consist of two parts: “header
  4296. files” that define types and macros and declare variables and functions;
  4297. and the actual library or “archive” that contains the definitions of the
  4298. variables and functions.
  4299. (Recall that in C, a “declaration” merely provides information that a
  4300. function or variable exists and gives its type. For a function
  4301. declaration, information about the types of its arguments might be
  4302. provided as well. The purpose of declarations is to allow the compiler
  4303. to correctly process references to the declared variables and functions.
  4304. A “definition”, on the other hand, actually allocates storage for a
  4305. variable or says what a function does.)
  4306. In order to use the facilities in the GNU C Library, you should be
  4307. sure that your program source files include the appropriate header
  4308. files. This is so that the compiler has declarations of these
  4309. facilities available and can correctly process references to them. Once
  4310. your program has been compiled, the linker resolves these references to
  4311. the actual definitions provided in the archive file.
  4312. Header files are included into a program source file by the
  4313. ‘#include’ preprocessor directive. The C language supports two forms of
  4314. this directive; the first,
  4315. #include "HEADER"
  4316. is typically used to include a header file HEADER that you write
  4317. yourself; this would contain definitions and declarations describing the
  4318. interfaces between the different parts of your particular application.
  4319. By contrast,
  4320. #include <file.h>
  4321. is typically used to include a header file ‘file.h’ that contains
  4322. definitions and declarations for a standard library. This file would
  4323. normally be installed in a standard place by your system administrator.
  4324. You should use this second form for the C library header files.
  4325. Typically, ‘#include’ directives are placed at the top of the C
  4326. source file, before any other code. If you begin your source files with
  4327. some comments explaining what the code in the file does (a good idea),
  4328. put the ‘#include’ directives immediately afterwards, following the
  4329. feature test macro definition (*note Feature Test Macros::).
  4330. For more information about the use of header files and ‘#include’
  4331. directives, *note (cpp)Header Files::.
  4332. The GNU C Library provides several header files, each of which
  4333. contains the type and macro definitions and variable and function
  4334. declarations for a group of related facilities. This means that your
  4335. programs may need to include several header files, depending on exactly
  4336. which facilities you are using.
  4337. Some library header files include other library header files
  4338. automatically. However, as a matter of programming style, you should
  4339. not rely on this; it is better to explicitly include all the header
  4340. files required for the library facilities you are using. The GNU C
  4341. Library header files have been written in such a way that it doesn't
  4342. matter if a header file is accidentally included more than once;
  4343. including a header file a second time has no effect. Likewise, if your
  4344. program needs to include multiple header files, the order in which they
  4345. are included doesn't matter.
  4346. *Compatibility Note:* Inclusion of standard header files in any order
  4347. and any number of times works in any ISO C implementation. However,
  4348. this has traditionally not been the case in many older C
  4349. implementations.
  4350. Strictly speaking, you don't _have to_ include a header file to use a
  4351. function it declares; you could declare the function explicitly
  4352. yourself, according to the specifications in this manual. But it is
  4353. usually better to include the header file because it may define types
  4354. and macros that are not otherwise available and because it may define
  4355. more efficient macro replacements for some functions. It is also a sure
  4356. way to have the correct declaration.
  4357. 
  4358. File: libc.info, Node: Macro Definitions, Next: Reserved Names, Prev: Header Files, Up: Using the Library
  4359. 1.3.2 Macro Definitions of Functions
  4360. ------------------------------------
  4361. If we describe something as a function in this manual, it may have a
  4362. macro definition as well. This normally has no effect on how your
  4363. program runs--the macro definition does the same thing as the function
  4364. would. In particular, macro equivalents for library functions evaluate
  4365. arguments exactly once, in the same way that a function call would. The
  4366. main reason for these macro definitions is that sometimes they can
  4367. produce an inline expansion that is considerably faster than an actual
  4368. function call.
  4369. Taking the address of a library function works even if it is also
  4370. defined as a macro. This is because, in this context, the name of the
  4371. function isn't followed by the left parenthesis that is syntactically
  4372. necessary to recognize a macro call.
  4373. You might occasionally want to avoid using the macro definition of a
  4374. function--perhaps to make your program easier to debug. There are two
  4375. ways you can do this:
  4376. • You can avoid a macro definition in a specific use by enclosing the
  4377. name of the function in parentheses. This works because the name
  4378. of the function doesn't appear in a syntactic context where it is
  4379. recognizable as a macro call.
  4380. • You can suppress any macro definition for a whole source file by
  4381. using the ‘#undef’ preprocessor directive, unless otherwise stated
  4382. explicitly in the description of that facility.
  4383. For example, suppose the header file ‘stdlib.h’ declares a function
  4384. named ‘abs’ with
  4385. extern int abs (int);
  4386. and also provides a macro definition for ‘abs’. Then, in:
  4387. #include <stdlib.h>
  4388. int f (int *i) { return abs (++*i); }
  4389. the reference to ‘abs’ might refer to either a macro or a function. On
  4390. the other hand, in each of the following examples the reference is to a
  4391. function and not a macro.
  4392. #include <stdlib.h>
  4393. int g (int *i) { return (abs) (++*i); }
  4394. #undef abs
  4395. int h (int *i) { return abs (++*i); }
  4396. Since macro definitions that double for a function behave in exactly
  4397. the same way as the actual function version, there is usually no need
  4398. for any of these methods. In fact, removing macro definitions usually
  4399. just makes your program slower.
  4400. 
  4401. File: libc.info, Node: Reserved Names, Next: Feature Test Macros, Prev: Macro Definitions, Up: Using the Library
  4402. 1.3.3 Reserved Names
  4403. --------------------
  4404. The names of all library types, macros, variables and functions that
  4405. come from the ISO C standard are reserved unconditionally; your program
  4406. *may not* redefine these names. All other library names are reserved if
  4407. your program explicitly includes the header file that defines or
  4408. declares them. There are several reasons for these restrictions:
  4409. • Other people reading your code could get very confused if you were
  4410. using a function named ‘exit’ to do something completely different
  4411. from what the standard ‘exit’ function does, for example.
  4412. Preventing this situation helps to make your programs easier to
  4413. understand and contributes to modularity and maintainability.
  4414. • It avoids the possibility of a user accidentally redefining a
  4415. library function that is called by other library functions. If
  4416. redefinition were allowed, those other functions would not work
  4417. properly.
  4418. • It allows the compiler to do whatever special optimizations it
  4419. pleases on calls to these functions, without the possibility that
  4420. they may have been redefined by the user. Some library facilities,
  4421. such as those for dealing with variadic arguments (*note Variadic
  4422. Functions::) and non-local exits (*note Non-Local Exits::),
  4423. actually require a considerable amount of cooperation on the part
  4424. of the C compiler, and with respect to the implementation, it might
  4425. be easier for the compiler to treat these as built-in parts of the
  4426. language.
  4427. In addition to the names documented in this manual, reserved names
  4428. include all external identifiers (global functions and variables) that
  4429. begin with an underscore (‘_’) and all identifiers regardless of use
  4430. that begin with either two underscores or an underscore followed by a
  4431. capital letter are reserved names. This is so that the library and
  4432. header files can define functions, variables, and macros for internal
  4433. purposes without risk of conflict with names in user programs.
  4434. Some additional classes of identifier names are reserved for future
  4435. extensions to the C language or the POSIX.1 environment. While using
  4436. these names for your own purposes right now might not cause a problem,
  4437. they do raise the possibility of conflict with future versions of the C
  4438. or POSIX standards, so you should avoid these names.
  4439. • Names beginning with a capital ‘E’ followed a digit or uppercase
  4440. letter may be used for additional error code names. *Note Error
  4441. Reporting::.
  4442. • Names that begin with either ‘is’ or ‘to’ followed by a lowercase
  4443. letter may be used for additional character testing and conversion
  4444. functions. *Note Character Handling::.
  4445. • Names that begin with ‘LC_’ followed by an uppercase letter may be
  4446. used for additional macros specifying locale attributes. *Note
  4447. Locales::.
  4448. • Names of all existing mathematics functions (*note Mathematics::)
  4449. suffixed with ‘f’ or ‘l’ are reserved for corresponding functions
  4450. that operate on ‘float’ and ‘long double’ arguments, respectively.
  4451. • Names that begin with ‘SIG’ followed by an uppercase letter are
  4452. reserved for additional signal names. *Note Standard Signals::.
  4453. • Names that begin with ‘SIG_’ followed by an uppercase letter are
  4454. reserved for additional signal actions. *Note Basic Signal
  4455. Handling::.
  4456. • Names beginning with ‘str’, ‘mem’, or ‘wcs’ followed by a lowercase
  4457. letter are reserved for additional string and array functions.
  4458. *Note String and Array Utilities::.
  4459. • Names that end with ‘_t’ are reserved for additional type names.
  4460. In addition, some individual header files reserve names beyond those
  4461. that they actually define. You only need to worry about these
  4462. restrictions if your program includes that particular header file.
  4463. • The header file ‘dirent.h’ reserves names prefixed with ‘d_’.
  4464. • The header file ‘fcntl.h’ reserves names prefixed with ‘l_’, ‘F_’,
  4465. ‘O_’, and ‘S_’.
  4466. • The header file ‘grp.h’ reserves names prefixed with ‘gr_’.
  4467. • The header file ‘limits.h’ reserves names suffixed with ‘_MAX’.
  4468. • The header file ‘pwd.h’ reserves names prefixed with ‘pw_’.
  4469. • The header file ‘signal.h’ reserves names prefixed with ‘sa_’ and
  4470. ‘SA_’.
  4471. • The header file ‘sys/stat.h’ reserves names prefixed with ‘st_’ and
  4472. ‘S_’.
  4473. • The header file ‘sys/times.h’ reserves names prefixed with ‘tms_’.
  4474. • The header file ‘termios.h’ reserves names prefixed with ‘c_’, ‘V’,
  4475. ‘I’, ‘O’, and ‘TC’; and names prefixed with ‘B’ followed by a
  4476. digit.
  4477. 
  4478. File: libc.info, Node: Feature Test Macros, Prev: Reserved Names, Up: Using the Library
  4479. 1.3.4 Feature Test Macros
  4480. -------------------------
  4481. The exact set of features available when you compile a source file is
  4482. controlled by which “feature test macros” you define.
  4483. If you compile your programs using ‘gcc -ansi’, you get only the
  4484. ISO C library features, unless you explicitly request additional
  4485. features by defining one or more of the feature macros. *Note GNU CC
  4486. Command Options: (gcc)Invoking GCC, for more information about GCC
  4487. options.
  4488. You should define these macros by using ‘#define’ preprocessor
  4489. directives at the top of your source code files. These directives
  4490. _must_ come before any ‘#include’ of a system header file. It is best
  4491. to make them the very first thing in the file, preceded only by
  4492. comments. You could also use the ‘-D’ option to GCC, but it's better if
  4493. you make the source files indicate their own meaning in a self-contained
  4494. way.
  4495. This system exists to allow the library to conform to multiple
  4496. standards. Although the different standards are often described as
  4497. supersets of each other, they are usually incompatible because larger
  4498. standards require functions with names that smaller ones reserve to the
  4499. user program. This is not mere pedantry -- it has been a problem in
  4500. practice. For instance, some non-GNU programs define functions named
  4501. ‘getline’ that have nothing to do with this library's ‘getline’. They
  4502. would not be compilable if all features were enabled indiscriminately.
  4503. This should not be used to verify that a program conforms to a
  4504. limited standard. It is insufficient for this purpose, as it will not
  4505. protect you from including header files outside the standard, or relying
  4506. on semantics undefined within the standard.
  4507. -- Macro: _POSIX_SOURCE
  4508. If you define this macro, then the functionality from the POSIX.1
  4509. standard (IEEE Standard 1003.1) is available, as well as all of the
  4510. ISO C facilities.
  4511. The state of ‘_POSIX_SOURCE’ is irrelevant if you define the macro
  4512. ‘_POSIX_C_SOURCE’ to a positive integer.
  4513. -- Macro: _POSIX_C_SOURCE
  4514. Define this macro to a positive integer to control which POSIX
  4515. functionality is made available. The greater the value of this
  4516. macro, the more functionality is made available.
  4517. If you define this macro to a value greater than or equal to ‘1’,
  4518. then the functionality from the 1990 edition of the POSIX.1
  4519. standard (IEEE Standard 1003.1-1990) is made available.
  4520. If you define this macro to a value greater than or equal to ‘2’,
  4521. then the functionality from the 1992 edition of the POSIX.2
  4522. standard (IEEE Standard 1003.2-1992) is made available.
  4523. If you define this macro to a value greater than or equal to
  4524. ‘199309L’, then the functionality from the 1993 edition of the
  4525. POSIX.1b standard (IEEE Standard 1003.1b-1993) is made available.
  4526. If you define this macro to a value greater than or equal to
  4527. ‘199506L’, then the functionality from the 1995 edition of the
  4528. POSIX.1c standard (IEEE Standard 1003.1c-1995) is made available.
  4529. If you define this macro to a value greater than or equal to
  4530. ‘200112L’, then the functionality from the 2001 edition of the
  4531. POSIX standard (IEEE Standard 1003.1-2001) is made available.
  4532. If you define this macro to a value greater than or equal to
  4533. ‘200809L’, then the functionality from the 2008 edition of the
  4534. POSIX standard (IEEE Standard 1003.1-2008) is made available.
  4535. If you define this macro to a value greater than or equal to
  4536. ‘202405L’, then the functionality from the 2024 edition of the
  4537. POSIX standard (IEEE Standard 1003.1-2024) is made available.
  4538. Greater values for ‘_POSIX_C_SOURCE’ will enable future extensions.
  4539. The POSIX standards process will define these values as necessary,
  4540. and the GNU C Library should support them some time after they
  4541. become standardized. The 1996 edition of POSIX.1 (ISO/IEC 9945-1:
  4542. 1996) states that if you define ‘_POSIX_C_SOURCE’ to a value
  4543. greater than or equal to ‘199506L’, then the functionality from the
  4544. 1996 edition is made available. In general, in the GNU C Library,
  4545. bugfixes to the standards are included when specifying the base
  4546. version; e.g., POSIX.1-2004 will always be included with a value of
  4547. ‘200112L’.
  4548. -- Macro: _XOPEN_SOURCE
  4549. -- Macro: _XOPEN_SOURCE_EXTENDED
  4550. If you define this macro, functionality described in the X/Open
  4551. Portability Guide is included. This is a superset of the POSIX.1
  4552. and POSIX.2 functionality and in fact ‘_POSIX_SOURCE’ and
  4553. ‘_POSIX_C_SOURCE’ are automatically defined.
  4554. As the unification of all Unices, functionality only available in
  4555. BSD and SVID is also included.
  4556. If the macro ‘_XOPEN_SOURCE_EXTENDED’ is also defined, even more
  4557. functionality is available. The extra functions will make all
  4558. functions available which are necessary for the X/Open Unix brand.
  4559. If the macro ‘_XOPEN_SOURCE’ has the value 500 this includes all
  4560. functionality described so far plus some new definitions from the
  4561. Single Unix Specification, version 2. The value 600 (corresponding
  4562. to the sixth revision) includes definitions from SUSv3, and using
  4563. 700 (the seventh revision) includes definitions from SUSv4. The
  4564. value 800 includes definitions from POSIX.1-2024.
  4565. -- Macro: _LARGEFILE_SOURCE
  4566. If this macro is defined some extra functions are available which
  4567. rectify a few shortcomings in all previous standards.
  4568. Specifically, the functions ‘fseeko’ and ‘ftello’ are available.
  4569. Without these functions the difference between the ISO C interface
  4570. (‘fseek’, ‘ftell’) and the low-level POSIX interface (‘lseek’)
  4571. would lead to problems.
  4572. This macro was introduced as part of the Large File Support
  4573. extension (LFS).
  4574. -- Macro: _LARGEFILE64_SOURCE
  4575. If you define this macro an additional set of functions is made
  4576. available which enables 32 bit systems to use files of sizes beyond
  4577. the usual limit of 2GB. This interface is not available if the
  4578. system does not support files that large. On systems where the
  4579. natural file size limit is greater than 2GB (i.e., on 64 bit
  4580. systems) the new functions are identical to the replaced functions.
  4581. The new functionality is made available by a new set of types and
  4582. functions which replace the existing ones. The names of these new
  4583. objects contain ‘64’ to indicate the intention, e.g., ‘off_t’ vs.
  4584. ‘off64_t’ and ‘fseeko’ vs. ‘fseeko64’.
  4585. This macro was introduced as part of the Large File Support
  4586. extension (LFS). It is a transition interface for the period when
  4587. 64 bit offsets are not generally used (see ‘_FILE_OFFSET_BITS’).
  4588. -- Macro: _FILE_OFFSET_BITS
  4589. This macro determines which file system interface shall be used,
  4590. one replacing the other. Whereas ‘_LARGEFILE64_SOURCE’ makes the
  4591. 64 bit interface available as an additional interface,
  4592. ‘_FILE_OFFSET_BITS’ allows the 64 bit interface to replace the old
  4593. interface.
  4594. If ‘_FILE_OFFSET_BITS’ is defined to the value ‘32’, the 32 bit
  4595. interface is used and types like ‘off_t’ have a size of 32 bits on
  4596. 32 bit systems.
  4597. If the macro is defined to the value ‘64’, the large file interface
  4598. replaces the old interface. I.e., the functions are not made
  4599. available under different names (as they are with
  4600. ‘_LARGEFILE64_SOURCE’). Instead the old function names now
  4601. reference the new functions, e.g., a call to ‘fseeko’ now indeed
  4602. calls ‘fseeko64’.
  4603. If the macro is not defined it currently defaults to ‘32’, but this
  4604. default is planned to change due to a need to update ‘time_t’ for
  4605. Y2038 safety, and applications should not rely on the default.
  4606. This macro should only be selected if the system provides
  4607. mechanisms for handling large files. On 64 bit systems this macro
  4608. has no effect since the ‘*64’ functions are identical to the normal
  4609. functions.
  4610. This macro was introduced as part of the Large File Support
  4611. extension (LFS).
  4612. -- Macro: _TIME_BITS
  4613. Define this macro to control the bit size of ‘time_t’, and
  4614. therefore the bit size of all ‘time_t’-derived types and the
  4615. prototypes of all related functions.
  4616. 1. If ‘_TIME_BITS’ is undefined, the bit size of ‘time_t’ is
  4617. architecture dependent. Currently it defaults to 64 bits on
  4618. most architectures. Although it defaults to 32 bits on some
  4619. traditional architectures (i686, ARM), this is planned to
  4620. change and applications should not rely on this.
  4621. 2. If ‘_TIME_BITS’ is defined to be 64, ‘time_t’ is defined to be
  4622. a 64-bit integer. On platforms where ‘time_t’ was
  4623. traditionally 32 bits, calls to proper syscalls depend on the
  4624. Linux kernel version on which the system is running. For
  4625. Linux kernel version above 5.1 syscalls supporting 64-bit time
  4626. are used. Otherwise, a fallback code is used with legacy
  4627. (i.e. 32-bit) syscalls.
  4628. On such platforms, the GNU C Library will also define
  4629. ‘__USE_TIME64_REDIRECTS’ to indicate whether the declarations
  4630. are expanded to different ones (either by redefining the
  4631. symbol name or using a symbol alias). For instance, if the
  4632. symbol ‘clock_gettime’ expands to ‘__clock_gettime64’.
  4633. 3. If ‘_TIME_BITS’ is defined to be 32, ‘time_t’ is defined to be
  4634. a 32-bit integer where that is supported. This is not
  4635. recommended, as 32-bit ‘time_t’ stops working in the year
  4636. 2038.
  4637. 4. For any other use case a compile-time error is emitted.
  4638. ‘_TIME_BITS=64’ can be defined only when ‘_FILE_OFFSET_BITS=64’ is
  4639. also defined.
  4640. By using this macro certain ports gain support for 64-bit time and
  4641. as a result become immune to the Y2038 problem.
  4642. -- Macro: _ISOC99_SOURCE
  4643. If this macro is defined, features from ISO C99 are included.
  4644. Since these features are included by default, this macro is mostly
  4645. relevant when the compiler uses an earlier language version.
  4646. -- Macro: _ISOC11_SOURCE
  4647. If this macro is defined, ISO C11 extensions to ISO C99 are
  4648. included.
  4649. -- Macro: _ISOC23_SOURCE
  4650. If this macro is defined, ISO C23 extensions to ISO C11 are
  4651. included. Only some features from this draft standard are
  4652. supported by the GNU C Library. The older name ‘_ISOC2X_SOURCE’ is
  4653. also supported.
  4654. -- Macro: _ISOC2Y_SOURCE
  4655. If this macro is defined, ISO C2Y extensions to ISO C23 are
  4656. included. Only some features from this draft standard are
  4657. supported by the GNU C Library.
  4658. -- Macro: __STDC_WANT_LIB_EXT2__
  4659. If you define this macro to the value ‘1’, features from ISO/IEC TR
  4660. 24731-2:2010 (Dynamic Allocation Functions) are enabled. Only some
  4661. of the features from this TR are supported by the GNU C Library.
  4662. -- Macro: __STDC_WANT_IEC_60559_BFP_EXT__
  4663. If you define this macro, features from ISO/IEC TS 18661-1:2014
  4664. (Floating-point extensions for C: Binary floating-point arithmetic)
  4665. are enabled. Only some of the features from this TS are supported
  4666. by the GNU C Library.
  4667. -- Macro: __STDC_WANT_IEC_60559_FUNCS_EXT__
  4668. If you define this macro, features from ISO/IEC TS 18661-4:2015
  4669. (Floating-point extensions for C: Supplementary functions) are
  4670. enabled. Only some of the features from this TS are supported by
  4671. the GNU C Library.
  4672. -- Macro: __STDC_WANT_IEC_60559_TYPES_EXT__
  4673. If you define this macro, features from ISO/IEC TS 18661-3:2015
  4674. (Floating-point extensions for C: Interchange and extended types)
  4675. are enabled. Only some of the features from this TS are supported
  4676. by the GNU C Library.
  4677. -- Macro: __STDC_WANT_IEC_60559_EXT__
  4678. If you define this macro, ISO C23 features defined in Annex F of
  4679. that standard are enabled. This affects declarations of the
  4680. ‘totalorder’ functions and functions related to NaN payloads.
  4681. -- Macro: _GNU_SOURCE
  4682. If you define this macro, everything is included: ISO C89, ISO C99,
  4683. POSIX.1, POSIX.2, BSD, SVID, X/Open, LFS, and GNU extensions. In
  4684. the cases where POSIX.1 conflicts with BSD, the POSIX definitions
  4685. take precedence.
  4686. -- Macro: _DEFAULT_SOURCE
  4687. If you define this macro, most features are included apart from
  4688. X/Open, LFS and GNU extensions: the effect is to enable features
  4689. from the 2008 edition of POSIX, as well as certain BSD and SVID
  4690. features without a separate feature test macro to control them.
  4691. Be aware that compiler options also affect included features:
  4692. • If you use a strict conformance option, features beyond those
  4693. from the compiler's language version will be disabled, though
  4694. feature test macros may be used to enable them.
  4695. • Features enabled by compiler options are not overridden by
  4696. feature test macros.
  4697. -- Macro: _ATFILE_SOURCE
  4698. If this macro is defined, additional ‘*at’ interfaces are included.
  4699. -- Macro: _FORTIFY_SOURCE
  4700. If this macro is defined to 1, security hardening is added to
  4701. various library functions. If defined to 2, even stricter checks
  4702. are applied. If defined to 3, the GNU C Library may also use
  4703. checks that may have an additional performance overhead. *Note
  4704. Fortification of function calls: Source Fortification.
  4705. -- Macro: _DYNAMIC_STACK_SIZE_SOURCE
  4706. If this macro is defined, correct (but non compile-time constant)
  4707. MINSIGSTKSZ, SIGSTKSZ and PTHREAD_STACK_MIN are defined.
  4708. -- Macro: _REENTRANT
  4709. -- Macro: _THREAD_SAFE
  4710. These macros are obsolete. They have the same effect as defining
  4711. ‘_POSIX_C_SOURCE’ with the value ‘199506L’.
  4712. Some very old C libraries required one of these macros to be
  4713. defined for basic functionality (e.g. ‘getchar’) to be thread-safe.
  4714. We recommend you use ‘_GNU_SOURCE’ in new programs. If you don't
  4715. specify the ‘-ansi’ option to GCC, or other conformance options such as
  4716. ‘-std=c99’, and don't define any of these macros explicitly, the effect
  4717. is the same as defining ‘_DEFAULT_SOURCE’ to 1.
  4718. When you define a feature test macro to request a larger class of
  4719. features, it is harmless to define in addition a feature test macro for
  4720. a subset of those features. For example, if you define
  4721. ‘_POSIX_C_SOURCE’, then defining ‘_POSIX_SOURCE’ as well has no effect.
  4722. Likewise, if you define ‘_GNU_SOURCE’, then defining either
  4723. ‘_POSIX_SOURCE’ or ‘_POSIX_C_SOURCE’ as well has no effect.
  4724. 
  4725. File: libc.info, Node: Roadmap to the Manual, Prev: Using the Library, Up: Introduction
  4726. 1.4 Roadmap to the Manual
  4727. =========================
  4728. Here is an overview of the contents of the remaining chapters of this
  4729. manual.
  4730. • *note Error Reporting::, describes how errors detected by the
  4731. library are reported.
  4732. • *note Memory::, describes the GNU C Library's facilities for
  4733. managing and using virtual and real memory, including dynamic
  4734. allocation of virtual memory. If you do not know in advance how
  4735. much memory your program needs, you can allocate it dynamically
  4736. instead, and manipulate it via pointers.
  4737. • *note Character Handling::, contains information about character
  4738. classification functions (such as ‘isspace’) and functions for
  4739. performing case conversion.
  4740. • *note String and Array Utilities::, has descriptions of functions
  4741. for manipulating strings (null-terminated character arrays) and
  4742. general byte arrays, including operations such as copying and
  4743. comparison.
  4744. • *note Character Set Handling::, contains information about
  4745. manipulating characters and strings using character sets larger
  4746. than will fit in the usual ‘char’ data type.
  4747. • *note Locales::, describes how selecting a particular country or
  4748. language affects the behavior of the library. For example, the
  4749. locale affects collation sequences for strings and how monetary
  4750. values are formatted.
  4751. • *note Searching and Sorting::, contains information about functions
  4752. for searching and sorting arrays. You can use these functions on
  4753. any kind of array by providing an appropriate comparison function.
  4754. • *note Pattern Matching::, presents functions for matching regular
  4755. expressions and shell file name patterns, and for expanding words
  4756. as the shell does.
  4757. • *note I/O Overview::, gives an overall look at the input and output
  4758. facilities in the library, and contains information about basic
  4759. concepts such as file names.
  4760. • *note I/O on Streams::, describes I/O operations involving streams
  4761. (or ‘FILE *’ objects). These are the normal C library functions
  4762. from ‘stdio.h’.
  4763. • *note Low-Level I/O::, contains information about I/O operations on
  4764. file descriptors. File descriptors are a lower-level mechanism
  4765. specific to the Unix family of operating systems.
  4766. • *note File System Interface::, has descriptions of operations on
  4767. entire files, such as functions for deleting and renaming them and
  4768. for creating new directories. This chapter also contains
  4769. information about how you can access the attributes of a file, such
  4770. as its owner and file protection modes.
  4771. • *note Pipes and FIFOs::, contains information about simple
  4772. interprocess communication mechanisms. Pipes allow communication
  4773. between two related processes (such as between a parent and child),
  4774. while FIFOs allow communication between processes sharing a common
  4775. file system on the same machine.
  4776. • *note Sockets::, describes a more complicated interprocess
  4777. communication mechanism that allows processes running on different
  4778. machines to communicate over a network. This chapter also contains
  4779. information about Internet host addressing and how to use the
  4780. system network databases.
  4781. • *note Low-Level Terminal Interface::, describes how you can change
  4782. the attributes of a terminal device. If you want to disable echo
  4783. of characters typed by the user, for example, read this chapter.
  4784. • *note Mathematics::, contains information about the math library
  4785. functions. These include things like random-number generators and
  4786. remainder functions on integers as well as the usual trigonometric
  4787. and exponential functions on floating-point numbers.
  4788. • *note Low-Level Arithmetic Functions: Arithmetic, describes
  4789. functions for simple arithmetic, analysis of floating-point values,
  4790. and reading numbers from strings.
  4791. • *note Date and Time::, describes functions for measuring both
  4792. calendar time and CPU time, as well as functions for setting alarms
  4793. and timers.
  4794. • *note Non-Local Exits::, contains descriptions of the ‘setjmp’ and
  4795. ‘longjmp’ functions. These functions provide a facility for
  4796. ‘goto’-like jumps which can jump from one function to another.
  4797. • *note Signal Handling::, tells you all about signals--what they
  4798. are, how to establish a handler that is called when a particular
  4799. kind of signal is delivered, and how to prevent signals from
  4800. arriving during critical sections of your program.
  4801. • *note Program Basics::, tells how your programs can access their
  4802. command-line arguments and environment variables.
  4803. • *note Processes::, contains information about how to start new
  4804. processes and run programs.
  4805. • *note Job Control::, describes functions for manipulating process
  4806. groups and the controlling terminal. This material is probably
  4807. only of interest if you are writing a shell or other program which
  4808. handles job control specially.
  4809. • *note Name Service Switch::, describes the services which are
  4810. available for looking up names in the system databases, how to
  4811. determine which service is used for which database, and how these
  4812. services are implemented so that contributors can design their own
  4813. services.
  4814. • *note User Database::, and *note Group Database::, tell you how to
  4815. access the system user and group databases.
  4816. • *note System Management::, describes functions for controlling and
  4817. getting information about the hardware and software configuration
  4818. your program is executing under.
  4819. • *note System Configuration::, tells you how you can get information
  4820. about various operating system limits. Most of these parameters
  4821. are provided for compatibility with POSIX.
  4822. • *note Language Features::, contains information about library
  4823. support for standard parts of the C language, including things like
  4824. the ‘sizeof’ operator and the symbolic constant ‘NULL’, how to
  4825. write functions accepting variable numbers of arguments, and
  4826. constants describing the ranges and other properties of the
  4827. numerical types. There is also a simple debugging mechanism which
  4828. allows you to put assertions in your code, and have diagnostic
  4829. messages printed if the tests fail.
  4830. • *note Library Summary::, gives a summary of all the functions,
  4831. variables, and macros in the library, with complete data types and
  4832. function prototypes, and says what standard or system each is
  4833. derived from.
  4834. • *note Installation::, explains how to build and install the GNU C
  4835. Library on your system, and how to report any bugs you might find.
  4836. • *note Maintenance::, explains how to add new functions or port the
  4837. library to a new system.
  4838. If you already know the name of the facility you are interested in,
  4839. you can look it up in *note Library Summary::. This gives you a summary
  4840. of its syntax and a pointer to where you can find a more detailed
  4841. description. This appendix is particularly useful if you just want to
  4842. verify the order and type of arguments to a function, for example. It
  4843. also tells you what standard or system each function, variable, or macro
  4844. is derived from.
  4845. 
  4846. File: libc.info, Node: Error Reporting, Next: Memory, Prev: Introduction, Up: Top
  4847. 2 Error Reporting
  4848. *****************
  4849. Many functions in the GNU C Library detect and report error conditions,
  4850. and sometimes your programs need to check for these error conditions.
  4851. For example, when you open an input file, you should verify that the
  4852. file was actually opened correctly, and print an error message or take
  4853. other appropriate action if the call to the library function failed.
  4854. This chapter describes how the error reporting facility works. Your
  4855. program should include the header file ‘errno.h’ to use this facility.
  4856. * Menu:
  4857. * Checking for Errors:: How errors are reported by library functions.
  4858. * Error Codes:: Error code macros; all of these expand
  4859. into integer constant values.
  4860. * Error Messages:: Mapping error codes onto error messages.
  4861. 
  4862. File: libc.info, Node: Checking for Errors, Next: Error Codes, Up: Error Reporting
  4863. 2.1 Checking for Errors
  4864. =======================
  4865. Most library functions return a special value to indicate that they have
  4866. failed. The special value is typically ‘-1’, a null pointer, or a
  4867. constant such as ‘EOF’ that is defined for that purpose. But this
  4868. return value tells you only that an error has occurred. To find out
  4869. what kind of error it was, you need to look at the error code stored in
  4870. the variable ‘errno’. This variable is declared in the header file
  4871. ‘errno.h’.
  4872. -- Variable: volatile int errno
  4873. The variable ‘errno’ contains the system error number. You can
  4874. change the value of ‘errno’.
  4875. Since ‘errno’ is declared ‘volatile’, it might be changed
  4876. asynchronously by a signal handler; see *note Defining Handlers::.
  4877. However, a properly written signal handler saves and restores the
  4878. value of ‘errno’, so you generally do not need to worry about this
  4879. possibility except when writing signal handlers.
  4880. The initial value of ‘errno’ at program startup is zero. In many
  4881. cases, when a library function encounters an error, it will set
  4882. ‘errno’ to a non-zero value to indicate what specific error
  4883. condition occurred. The documentation for each function lists the
  4884. error conditions that are possible for that function. Not all
  4885. library functions use this mechanism; some return an error code
  4886. directly, instead.
  4887. *Warning:* Many library functions may set ‘errno’ to some
  4888. meaningless non-zero value even if they did not encounter any
  4889. errors, and even if they return error codes directly. Therefore,
  4890. it is usually incorrect to check _whether_ an error occurred by
  4891. inspecting the value of ‘errno’. The proper way to check for error
  4892. is documented for each function.
  4893. *Portability Note:* ISO C specifies ‘errno’ as a "modifiable
  4894. lvalue" rather than as a variable, permitting it to be implemented
  4895. as a macro. For example, its expansion might involve a function
  4896. call, like ‘*__errno_location ()’. In fact, that is what it is on
  4897. GNU/Linux and GNU/Hurd systems. The GNU C Library, on each system,
  4898. does whatever is right for the particular system.
  4899. There are a few library functions, like ‘sqrt’ and ‘atan’, that
  4900. return a perfectly legitimate value in case of an error, but also
  4901. set ‘errno’. For these functions, if you want to check to see
  4902. whether an error occurred, the recommended method is to set ‘errno’
  4903. to zero before calling the function, and then check its value
  4904. afterward.
  4905. All the error codes have symbolic names; they are macros defined in
  4906. ‘errno.h’. The names start with ‘E’ and an upper-case letter or digit;
  4907. you should consider names of this form to be reserved names. *Note
  4908. Reserved Names::.
  4909. The error code values are all positive integers and are all distinct,
  4910. with one exception: ‘EWOULDBLOCK’ and ‘EAGAIN’ are the same. Since the
  4911. values are distinct, you can use them as labels in a ‘switch’ statement;
  4912. just don't use both ‘EWOULDBLOCK’ and ‘EAGAIN’. Your program should not
  4913. make any other assumptions about the specific values of these symbolic
  4914. constants.
  4915. The value of ‘errno’ doesn't necessarily have to correspond to any of
  4916. these macros, since some library functions might return other error
  4917. codes of their own for other situations. The only values that are
  4918. guaranteed to be meaningful for a particular library function are the
  4919. ones that this manual lists for that function.
  4920. Except on GNU/Hurd systems, almost any system call can return
  4921. ‘EFAULT’ if it is given an invalid pointer as an argument. Since this
  4922. could only happen as a result of a bug in your program, and since it
  4923. will not happen on GNU/Hurd systems, we have saved space by not
  4924. mentioning ‘EFAULT’ in the descriptions of individual functions.
  4925. In some Unix systems, many system calls can also return ‘EFAULT’ if
  4926. given as an argument a pointer into the stack, and the kernel for some
  4927. obscure reason fails in its attempt to extend the stack. If this ever
  4928. happens, you should probably try using statically or dynamically
  4929. allocated memory instead of stack memory on that system.
  4930. 
  4931. File: libc.info, Node: Error Codes, Next: Error Messages, Prev: Checking for Errors, Up: Error Reporting
  4932. 2.2 Error Codes
  4933. ===============
  4934. The error code macros are defined in the header file ‘errno.h’. All of
  4935. them expand into integer constant values. Some of these error codes
  4936. can't occur on GNU systems, but they can occur using the GNU C Library
  4937. on other systems.
  4938. -- Macro: int EPERM
  4939. "Operation not permitted." Only the owner of the file (or other
  4940. resource) or processes with special privileges can perform the
  4941. operation.
  4942. -- Macro: int ENOENT
  4943. "No such file or directory." This is a "file doesn't exist" error
  4944. for ordinary files that are referenced in contexts where they are
  4945. expected to already exist.
  4946. -- Macro: int ESRCH
  4947. "No such process." No process matches the specified process ID.
  4948. -- Macro: int EINTR
  4949. "Interrupted system call." An asynchronous signal occurred and
  4950. prevented completion of the call. When this happens, you should
  4951. try the call again.
  4952. You can choose to have functions resume after a signal that is
  4953. handled, rather than failing with ‘EINTR’; see *note Interrupted
  4954. Primitives::.
  4955. -- Macro: int EIO
  4956. "Input/output error." Usually used for physical read or write
  4957. errors.
  4958. -- Macro: int ENXIO
  4959. "No such device or address." The system tried to use the device
  4960. represented by a file you specified, and it couldn't find the
  4961. device. This can mean that the device file was installed
  4962. incorrectly, or that the physical device is missing or not
  4963. correctly attached to the computer.
  4964. -- Macro: int E2BIG
  4965. "Argument list too long." Used when the arguments passed to a new
  4966. program being executed with one of the ‘exec’ functions (*note
  4967. Executing a File::) occupy too much memory space. This condition
  4968. never arises on GNU/Hurd systems.
  4969. -- Macro: int ENOEXEC
  4970. "Exec format error." Invalid executable file format. This
  4971. condition is detected by the ‘exec’ functions; see *note Executing
  4972. a File::.
  4973. -- Macro: int EBADF
  4974. "Bad file descriptor." For example, I/O on a descriptor that has
  4975. been closed or reading from a descriptor open only for writing (or
  4976. vice versa).
  4977. -- Macro: int ECHILD
  4978. "No child processes." This error happens on operations that are
  4979. supposed to manipulate child processes, when there aren't any
  4980. processes to manipulate.
  4981. -- Macro: int EDEADLK
  4982. "Resource deadlock avoided." Allocating a system resource would
  4983. have resulted in a deadlock situation. The system does not
  4984. guarantee that it will notice all such situations. This error
  4985. means you got lucky and the system noticed; it might just hang.
  4986. *Note File Locks::, for an example.
  4987. -- Macro: int ENOMEM
  4988. "Cannot allocate memory." The system cannot allocate more virtual
  4989. memory because its capacity is full.
  4990. -- Macro: int EACCES
  4991. "Permission denied." The file permissions do not allow the
  4992. attempted operation.
  4993. -- Macro: int EFAULT
  4994. "Bad address." An invalid pointer was detected. On GNU/Hurd
  4995. systems, this error never happens; you get a signal instead.
  4996. -- Macro: int ENOTBLK
  4997. "Block device required." A file that isn't a block special file
  4998. was given in a situation that requires one. For example, trying to
  4999. mount an ordinary file as a file system in Unix gives this error.
  5000. -- Macro: int EBUSY
  5001. "Device or resource busy." A system resource that can't be shared
  5002. is already in use. For example, if you try to delete a file that
  5003. is the root of a currently mounted filesystem, you get this error.
  5004. -- Macro: int EEXIST
  5005. "File exists." An existing file was specified in a context where
  5006. it only makes sense to specify a new file.
  5007. -- Macro: int EXDEV
  5008. "Invalid cross-device link." An attempt to make an improper link
  5009. across file systems was detected. This happens not only when you
  5010. use ‘link’ (*note Hard Links::) but also when you rename a file
  5011. with ‘rename’ (*note Renaming Files::).
  5012. -- Macro: int ENODEV
  5013. "No such device." The wrong type of device was given to a function
  5014. that expects a particular sort of device.
  5015. -- Macro: int ENOTDIR
  5016. "Not a directory." A file that isn't a directory was specified
  5017. when a directory is required.
  5018. -- Macro: int EISDIR
  5019. "Is a directory." You cannot open a directory for writing, or
  5020. create or remove hard links to it.
  5021. -- Macro: int EINVAL
  5022. "Invalid argument." This is used to indicate various kinds of
  5023. problems with passing the wrong argument to a library function.
  5024. -- Macro: int EMFILE
  5025. "Too many open files." The current process has too many files open
  5026. and can't open any more. Duplicate descriptors do count toward
  5027. this limit.
  5028. In BSD and GNU, the number of open files is controlled by a
  5029. resource limit that can usually be increased. If you get this
  5030. error, you might want to increase the ‘RLIMIT_NOFILE’ limit or make
  5031. it unlimited; *note Limits on Resources::.
  5032. -- Macro: int ENFILE
  5033. "Too many open files in system." There are too many distinct file
  5034. openings in the entire system. Note that any number of linked
  5035. channels count as just one file opening; see *note Linked
  5036. Channels::. This error never occurs on GNU/Hurd systems.
  5037. -- Macro: int ENOTTY
  5038. "Inappropriate ioctl for device." Inappropriate I/O control
  5039. operation, such as trying to set terminal modes on an ordinary
  5040. file.
  5041. -- Macro: int ETXTBSY
  5042. "Text file busy." An attempt to execute a file that is currently
  5043. open for writing, or write to a file that is currently being
  5044. executed. Often using a debugger to run a program is considered
  5045. having it open for writing and will cause this error. (The name
  5046. stands for "text file busy".) This is not an error on GNU/Hurd
  5047. systems; the text is copied as necessary.
  5048. -- Macro: int EFBIG
  5049. "File too large." The size of a file would be larger than allowed
  5050. by the system.
  5051. -- Macro: int ENOSPC
  5052. "No space left on device." Write operation on a file failed
  5053. because the disk is full.
  5054. -- Macro: int ESPIPE
  5055. "Illegal seek." Invalid seek operation (such as on a pipe).
  5056. -- Macro: int EROFS
  5057. "Read-only file system." An attempt was made to modify something
  5058. on a read-only file system.
  5059. -- Macro: int EMLINK
  5060. "Too many links." The link count of a single file would become too
  5061. large. ‘rename’ can cause this error if the file being renamed
  5062. already has as many links as it can take (*note Renaming Files::).
  5063. -- Macro: int EPIPE
  5064. "Broken pipe." There is no process reading from the other end of a
  5065. pipe. Every library function that returns this error code also
  5066. generates a ‘SIGPIPE’ signal; this signal terminates the program if
  5067. not handled or blocked. Thus, your program will never actually see
  5068. ‘EPIPE’ unless it has handled or blocked ‘SIGPIPE’.
  5069. -- Macro: int EDOM
  5070. "Numerical argument out of domain." Used by mathematical functions
  5071. when an argument value does not fall into the domain over which the
  5072. function is defined.
  5073. -- Macro: int ERANGE
  5074. "Numerical result out of range." Used by mathematical functions
  5075. when the result value is not representable because of overflow or
  5076. underflow.
  5077. -- Macro: int EAGAIN
  5078. "Resource temporarily unavailable." The call might work if you try
  5079. again later. The macro ‘EWOULDBLOCK’ is another name for ‘EAGAIN’;
  5080. they are always the same in the GNU C Library.
  5081. This error can happen in a few different situations:
  5082. • An operation that would block was attempted on an object that
  5083. has non-blocking mode selected. Trying the same operation
  5084. again will block until some external condition makes it
  5085. possible to read, write, or connect (whatever the operation).
  5086. You can use ‘select’ to find out when the operation will be
  5087. possible; *note Waiting for I/O::.
  5088. *Portability Note:* In many older Unix systems, this condition
  5089. was indicated by ‘EWOULDBLOCK’, which was a distinct error
  5090. code different from ‘EAGAIN’. To make your program portable,
  5091. you should check for both codes and treat them the same.
  5092. • A temporary resource shortage made an operation impossible.
  5093. ‘fork’ can return this error. It indicates that the shortage
  5094. is expected to pass, so your program can try the call again
  5095. later and it may succeed. It is probably a good idea to delay
  5096. for a few seconds before trying it again, to allow time for
  5097. other processes to release scarce resources. Such shortages
  5098. are usually fairly serious and affect the whole system, so
  5099. usually an interactive program should report the error to the
  5100. user and return to its command loop.
  5101. -- Macro: int EWOULDBLOCK
  5102. "Operation would block." In the GNU C Library, this is another
  5103. name for ‘EAGAIN’ (above). The values are always the same, on
  5104. every operating system.
  5105. C libraries in many older Unix systems have ‘EWOULDBLOCK’ as a
  5106. separate error code.
  5107. -- Macro: int EINPROGRESS
  5108. "Operation now in progress." An operation that cannot complete
  5109. immediately was initiated on an object that has non-blocking mode
  5110. selected. Some functions that must always block (such as
  5111. ‘connect’; *note Connecting::) never return ‘EAGAIN’. Instead,
  5112. they return ‘EINPROGRESS’ to indicate that the operation has begun
  5113. and will take some time. Attempts to manipulate the object before
  5114. the call completes return ‘EALREADY’. You can use the ‘select’
  5115. function to find out when the pending operation has completed;
  5116. *note Waiting for I/O::.
  5117. -- Macro: int EALREADY
  5118. "Operation already in progress." An operation is already in
  5119. progress on an object that has non-blocking mode selected.
  5120. -- Macro: int ENOTSOCK
  5121. "Socket operation on non-socket." A file that isn't a socket was
  5122. specified when a socket is required.
  5123. -- Macro: int EMSGSIZE
  5124. "Message too long." The size of a message sent on a socket was
  5125. larger than the supported maximum size.
  5126. -- Macro: int EPROTOTYPE
  5127. "Protocol wrong type for socket." The socket type does not support
  5128. the requested communications protocol.
  5129. -- Macro: int ENOPROTOOPT
  5130. "Protocol not available." You specified a socket option that
  5131. doesn't make sense for the particular protocol being used by the
  5132. socket. *Note Socket Options::.
  5133. -- Macro: int EPROTONOSUPPORT
  5134. "Protocol not supported." The socket domain does not support the
  5135. requested communications protocol (perhaps because the requested
  5136. protocol is completely invalid). *Note Creating a Socket::.
  5137. -- Macro: int ESOCKTNOSUPPORT
  5138. "Socket type not supported." The socket type is not supported.
  5139. -- Macro: int EOPNOTSUPP
  5140. "Operation not supported." The operation you requested is not
  5141. supported. Some socket functions don't make sense for all types of
  5142. sockets, and others may not be implemented for all communications
  5143. protocols. On GNU/Hurd systems, this error can happen for many
  5144. calls when the object does not support the particular operation; it
  5145. is a generic indication that the server knows nothing to do for
  5146. that call.
  5147. -- Macro: int EPFNOSUPPORT
  5148. "Protocol family not supported." The socket communications
  5149. protocol family you requested is not supported.
  5150. -- Macro: int EAFNOSUPPORT
  5151. "Address family not supported by protocol." The address family
  5152. specified for a socket is not supported; it is inconsistent with
  5153. the protocol being used on the socket. *Note Sockets::.
  5154. -- Macro: int EADDRINUSE
  5155. "Address already in use." The requested socket address is already
  5156. in use. *Note Socket Addresses::.
  5157. -- Macro: int EADDRNOTAVAIL
  5158. "Cannot assign requested address." The requested socket address is
  5159. not available; for example, you tried to give a socket a name that
  5160. doesn't match the local host name. *Note Socket Addresses::.
  5161. -- Macro: int ENETDOWN
  5162. "Network is down." A socket operation failed because the network
  5163. was down.
  5164. -- Macro: int ENETUNREACH
  5165. "Network is unreachable." A socket operation failed because the
  5166. subnet containing the remote host was unreachable.
  5167. -- Macro: int ENETRESET
  5168. "Network dropped connection on reset." A network connection was
  5169. reset because the remote host crashed.
  5170. -- Macro: int ECONNABORTED
  5171. "Software caused connection abort." A network connection was
  5172. aborted locally.
  5173. -- Macro: int ECONNRESET
  5174. "Connection reset by peer." A network connection was closed for
  5175. reasons outside the control of the local host, such as by the
  5176. remote machine rebooting or an unrecoverable protocol violation.
  5177. -- Macro: int ENOBUFS
  5178. "No buffer space available." The kernel's buffers for I/O
  5179. operations are all in use. In GNU, this error is always synonymous
  5180. with ‘ENOMEM’; you may get one or the other from network
  5181. operations.
  5182. -- Macro: int EISCONN
  5183. "Transport endpoint is already connected." You tried to connect a
  5184. socket that is already connected. *Note Connecting::.
  5185. -- Macro: int ENOTCONN
  5186. "Transport endpoint is not connected." The socket is not connected
  5187. to anything. You get this error when you try to transmit data over
  5188. a socket, without first specifying a destination for the data. For
  5189. a connectionless socket (for datagram protocols, such as UDP), you
  5190. get ‘EDESTADDRREQ’ instead.
  5191. -- Macro: int EDESTADDRREQ
  5192. "Destination address required." No default destination address was
  5193. set for the socket. You get this error when you try to transmit
  5194. data over a connectionless socket, without first specifying a
  5195. destination for the data with ‘connect’.
  5196. -- Macro: int ESHUTDOWN
  5197. "Cannot send after transport endpoint shutdown." The socket has
  5198. already been shut down.
  5199. -- Macro: int ETOOMANYREFS
  5200. "Too many references: cannot splice."
  5201. -- Macro: int ETIMEDOUT
  5202. "Connection timed out." A socket operation with a specified
  5203. timeout received no response during the timeout period.
  5204. -- Macro: int ECONNREFUSED
  5205. "Connection refused." A remote host refused to allow the network
  5206. connection (typically because it is not running the requested
  5207. service).
  5208. -- Macro: int ELOOP
  5209. "Too many levels of symbolic links." Too many levels of symbolic
  5210. links were encountered in looking up a file name. This often
  5211. indicates a cycle of symbolic links.
  5212. -- Macro: int ENAMETOOLONG
  5213. "File name too long." Filename too long (longer than ‘PATH_MAX’;
  5214. *note Limits for Files::) or host name too long (in ‘gethostname’
  5215. or ‘sethostname’; *note Host Identification::).
  5216. -- Macro: int EHOSTDOWN
  5217. "Host is down." The remote host for a requested network connection
  5218. is down.
  5219. -- Macro: int EHOSTUNREACH
  5220. "No route to host." The remote host for a requested network
  5221. connection is not reachable.
  5222. -- Macro: int ENOTEMPTY
  5223. "Directory not empty." Directory not empty, where an empty
  5224. directory was expected. Typically, this error occurs when you are
  5225. trying to delete a directory.
  5226. -- Macro: int EPROCLIM
  5227. "Too many processes." This means that the per-user limit on new
  5228. process would be exceeded by an attempted ‘fork’. *Note Limits on
  5229. Resources::, for details on the ‘RLIMIT_NPROC’ limit.
  5230. -- Macro: int EUSERS
  5231. "Too many users." The file quota system is confused because there
  5232. are too many users.
  5233. -- Macro: int EDQUOT
  5234. "Disk quota exceeded." The user's disk quota was exceeded.
  5235. -- Macro: int ESTALE
  5236. "Stale file handle." This indicates an internal confusion in the
  5237. file system which is due to file system rearrangements on the
  5238. server host for NFS file systems or corruption in other file
  5239. systems. Repairing this condition usually requires unmounting,
  5240. possibly repairing and remounting the file system.
  5241. -- Macro: int EREMOTE
  5242. "Object is remote." An attempt was made to NFS-mount a remote file
  5243. system with a file name that already specifies an NFS-mounted file.
  5244. (This is an error on some operating systems, but we expect it to
  5245. work properly on GNU/Hurd systems, making this error code
  5246. impossible.)
  5247. -- Macro: int EBADRPC
  5248. "RPC struct is bad."
  5249. -- Macro: int ERPCMISMATCH
  5250. "RPC version wrong."
  5251. -- Macro: int EPROGUNAVAIL
  5252. "RPC program not available."
  5253. -- Macro: int EPROGMISMATCH
  5254. "RPC program version wrong."
  5255. -- Macro: int EPROCUNAVAIL
  5256. "RPC bad procedure for program."
  5257. -- Macro: int ENOLCK
  5258. "No locks available." This is used by the file locking facilities;
  5259. see *note File Locks::. This error is never generated by GNU/Hurd
  5260. systems, but it can result from an operation to an NFS server
  5261. running another operating system.
  5262. -- Macro: int EFTYPE
  5263. "Inappropriate file type or format." The file was the wrong type
  5264. for the operation, or a data file had the wrong format.
  5265. On some systems ‘chmod’ returns this error if you try to set the
  5266. sticky bit on a non-directory file; *note Setting Permissions::.
  5267. -- Macro: int EAUTH
  5268. "Authentication error."
  5269. -- Macro: int ENEEDAUTH
  5270. "Need authenticator."
  5271. -- Macro: int ENOSYS
  5272. "Function not implemented." This indicates that the function
  5273. called is not implemented at all, either in the C library itself or
  5274. in the operating system. When you get this error, you can be sure
  5275. that this particular function will always fail with ‘ENOSYS’ unless
  5276. you install a new version of the C library or the operating system.
  5277. -- Macro: int ELIBEXEC
  5278. "Cannot exec a shared library directly."
  5279. -- Macro: int ENOTSUP
  5280. "Not supported." A function returns this error when certain
  5281. parameter values are valid, but the functionality they request is
  5282. not available. This can mean that the function does not implement
  5283. a particular command or option value or flag bit at all. For
  5284. functions that operate on some object given in a parameter, such as
  5285. a file descriptor or a port, it might instead mean that only _that
  5286. specific object_ (file descriptor, port, etc.) is unable to
  5287. support the other parameters given; different file descriptors
  5288. might support different ranges of parameter values.
  5289. If the entire function is not available at all in the
  5290. implementation, it returns ‘ENOSYS’ instead.
  5291. -- Macro: int EILSEQ
  5292. "Invalid or incomplete multibyte or wide character." While
  5293. decoding a multibyte character the function came along an invalid
  5294. or an incomplete sequence of bytes or the given wide character is
  5295. invalid.
  5296. -- Macro: int EBACKGROUND
  5297. "Inappropriate operation for background process." On GNU/Hurd
  5298. systems, servers supporting the ‘term’ protocol return this error
  5299. for certain operations when the caller is not in the foreground
  5300. process group of the terminal. Users do not usually see this error
  5301. because functions such as ‘read’ and ‘write’ translate it into a
  5302. ‘SIGTTIN’ or ‘SIGTTOU’ signal. *Note Job Control::, for
  5303. information on process groups and these signals.
  5304. -- Macro: int EDIED
  5305. "Translator died." On GNU/Hurd systems, opening a file returns
  5306. this error when the file is translated by a program and the
  5307. translator program dies while starting up, before it has connected
  5308. to the file.
  5309. -- Macro: int ED
  5310. "?." The experienced user will know what is wrong.
  5311. -- Macro: int EGREGIOUS
  5312. "You really blew it this time." You did *what*?
  5313. -- Macro: int EIEIO
  5314. "Computer bought the farm." Go home and have a glass of warm,
  5315. dairy-fresh milk.
  5316. -- Macro: int EGRATUITOUS
  5317. "Gratuitous error." This error code has no purpose.
  5318. -- Macro: int EBADMSG
  5319. "Bad message."
  5320. -- Macro: int EIDRM
  5321. "Identifier removed."
  5322. -- Macro: int EMULTIHOP
  5323. "Multihop attempted."
  5324. -- Macro: int ENODATA
  5325. "No data available."
  5326. -- Macro: int ENOLINK
  5327. "Link has been severed."
  5328. -- Macro: int ENOMSG
  5329. "No message of desired type."
  5330. -- Macro: int ENOSR
  5331. "Out of streams resources."
  5332. -- Macro: int ENOSTR
  5333. "Device not a stream."
  5334. -- Macro: int EOVERFLOW
  5335. "Value too large for defined data type."
  5336. -- Macro: int EPROTO
  5337. "Protocol error."
  5338. -- Macro: int ETIME
  5339. "Timer expired."
  5340. -- Macro: int ECANCELED
  5341. "Operation canceled." An asynchronous operation was canceled
  5342. before it completed. *Note Asynchronous I/O::. When you call
  5343. ‘aio_cancel’, the normal result is for the operations affected to
  5344. complete with this error; *note Cancel AIO Operations::.
  5345. -- Macro: int EOWNERDEAD
  5346. "Owner died."
  5347. -- Macro: int ENOTRECOVERABLE
  5348. "State not recoverable."
  5349. _The following error codes are defined by the Linux/i386 kernel.
  5350. They are not yet documented._
  5351. -- Macro: int ERESTART
  5352. "Interrupted system call should be restarted."
  5353. -- Macro: int ECHRNG
  5354. "Channel number out of range."
  5355. -- Macro: int EL2NSYNC
  5356. "Level 2 not synchronized."
  5357. -- Macro: int EL3HLT
  5358. "Level 3 halted."
  5359. -- Macro: int EL3RST
  5360. "Level 3 reset."
  5361. -- Macro: int ELNRNG
  5362. "Link number out of range."
  5363. -- Macro: int EUNATCH
  5364. "Protocol driver not attached."
  5365. -- Macro: int ENOCSI
  5366. "No CSI structure available."
  5367. -- Macro: int EL2HLT
  5368. "Level 2 halted."
  5369. -- Macro: int EBADE
  5370. "Invalid exchange."
  5371. -- Macro: int EBADR
  5372. "Invalid request descriptor."
  5373. -- Macro: int EXFULL
  5374. "Exchange full."
  5375. -- Macro: int ENOANO
  5376. "No anode."
  5377. -- Macro: int EBADRQC
  5378. "Invalid request code."
  5379. -- Macro: int EBADSLT
  5380. "Invalid slot."
  5381. -- Macro: int EDEADLOCK
  5382. "File locking deadlock error."
  5383. -- Macro: int EBFONT
  5384. "Bad font file format."
  5385. -- Macro: int ENONET
  5386. "Machine is not on the network."
  5387. -- Macro: int ENOPKG
  5388. "Package not installed."
  5389. -- Macro: int EADV
  5390. "Advertise error."
  5391. -- Macro: int ESRMNT
  5392. "Srmount error."
  5393. -- Macro: int ECOMM
  5394. "Communication error on send."
  5395. -- Macro: int EDOTDOT
  5396. "RFS specific error."
  5397. -- Macro: int ENOTUNIQ
  5398. "Name not unique on network."
  5399. -- Macro: int EBADFD
  5400. "File descriptor in bad state."
  5401. -- Macro: int EREMCHG
  5402. "Remote address changed."
  5403. -- Macro: int ELIBACC
  5404. "Can not access a needed shared library."
  5405. -- Macro: int ELIBBAD
  5406. "Accessing a corrupted shared library."
  5407. -- Macro: int ELIBSCN
  5408. ".lib section in a.out corrupted."
  5409. -- Macro: int ELIBMAX
  5410. "Attempting to link in too many shared libraries."
  5411. -- Macro: int ESTRPIPE
  5412. "Streams pipe error."
  5413. -- Macro: int EUCLEAN
  5414. "Structure needs cleaning."
  5415. -- Macro: int ENOTNAM
  5416. "Not a XENIX named type file."
  5417. -- Macro: int ENAVAIL
  5418. "No XENIX semaphores available."
  5419. -- Macro: int EISNAM
  5420. "Is a named type file."
  5421. -- Macro: int EREMOTEIO
  5422. "Remote I/O error."
  5423. -- Macro: int ENOMEDIUM
  5424. "No medium found."
  5425. -- Macro: int EMEDIUMTYPE
  5426. "Wrong medium type."
  5427. -- Macro: int ENOKEY
  5428. "Required key not available."
  5429. -- Macro: int EKEYEXPIRED
  5430. "Key has expired."
  5431. -- Macro: int EKEYREVOKED
  5432. "Key has been revoked."
  5433. -- Macro: int EKEYREJECTED
  5434. "Key was rejected by service."
  5435. -- Macro: int ERFKILL
  5436. "Operation not possible due to RF-kill."
  5437. -- Macro: int EHWPOISON
  5438. "Memory page has hardware error."
  5439. 
  5440. File: libc.info, Node: Error Messages, Prev: Error Codes, Up: Error Reporting
  5441. 2.3 Error Messages
  5442. ==================
  5443. The library has functions and variables designed to make it easy for
  5444. your program to report informative error messages in the customary
  5445. format about the failure of a library call. The functions ‘strerror’
  5446. and ‘perror’ give you the standard error message for a given error code;
  5447. the variable ‘program_invocation_short_name’ gives you convenient access
  5448. to the name of the program that encountered the error.
  5449. -- Function: char * strerror (int ERRNUM)
  5450. Preliminary: | MT-Safe | AS-Unsafe heap i18n | AC-Unsafe mem |
  5451. *Note POSIX Safety Concepts::.
  5452. The ‘strerror’ function maps the error code (*note Checking for
  5453. Errors::) specified by the ERRNUM argument to a descriptive error
  5454. message string. The string is translated according to the current
  5455. locale. The return value is a pointer to this string.
  5456. The value ERRNUM normally comes from the variable ‘errno’.
  5457. You should not modify the string returned by ‘strerror’. Also, if
  5458. you make subsequent calls to ‘strerror’ or ‘strerror_l’, or the
  5459. thread that obtained the string exits, the returned pointer will be
  5460. invalidated.
  5461. As there is no way to restore the previous state after calling
  5462. ‘strerror’, library code should not call this function because it
  5463. may interfere with application use of ‘strerror’, invalidating the
  5464. string pointer before the application is done using it. Instead,
  5465. ‘strerror_r’, ‘snprintf’ with the ‘%m’ or ‘%#m’ specifiers,
  5466. ‘strerrorname_np’, or ‘strerrordesc_np’ can be used instead.
  5467. The ‘strerror’ function preserves the value of ‘errno’ and cannot
  5468. fail.
  5469. The function ‘strerror’ is declared in ‘string.h’.
  5470. -- Function: char * strerror_l (int ERRNUM, locale_t LOCALE)
  5471. Preliminary: | MT-Safe | AS-Unsafe heap i18n | AC-Unsafe mem |
  5472. *Note POSIX Safety Concepts::.
  5473. This function is like ‘strerror’, except that the returned string
  5474. is translated according to LOCALE (instead of the current locale
  5475. used by ‘strerror’). Note that calling ‘strerror_l’ invalidates
  5476. the pointer returned by ‘strerror’ and vice versa.
  5477. The function ‘strerror_l’ is defined by POSIX and is declared in
  5478. ‘string.h’.
  5479. -- Function: char * strerror_r (int ERRNUM, char *BUF, size_t N)
  5480. Preliminary: | MT-Safe | AS-Unsafe i18n | AC-Unsafe | *Note POSIX
  5481. Safety Concepts::.
  5482. The following description is for the GNU variant of the function,
  5483. used if ‘_GNU_SOURCE’ is defined. *Note Feature Test Macros::.
  5484. The ‘strerror_r’ function works like ‘strerror’ but instead of
  5485. returning a pointer to a string that is managed by the GNU C
  5486. Library, it can use the user supplied buffer starting at BUF for
  5487. storing the string.
  5488. At most N characters are written (including the NUL byte) to BUF,
  5489. so it is up to the user to select a buffer large enough. Whether
  5490. returned pointer points to the BUF array or not depends on the
  5491. ERRNUM argument. If the result string is not stored in BUF, the
  5492. string will not change for the remaining execution of the program.
  5493. The function ‘strerror_r’ as described above is a GNU extension and
  5494. it is declared in ‘string.h’. There is a POSIX variant of this
  5495. function, described next.
  5496. -- Function: int strerror_r (int ERRNUM, char *BUF, size_t N)
  5497. Preliminary: | MT-Safe | AS-Unsafe i18n | AC-Unsafe | *Note POSIX
  5498. Safety Concepts::.
  5499. This variant of the ‘strerror_r’ function is used if a standard is
  5500. selected that includes ‘strerror_r’, but ‘_GNU_SOURCE’ is not
  5501. defined. This POSIX variant of the function always writes the
  5502. error message to the specified buffer BUF of size N bytes.
  5503. Upon success, ‘strerror_r’ returns 0. Two more return values are
  5504. used to indicate failure.
  5505. ‘EINVAL’
  5506. The ERRNUM argument does not correspond to a known error
  5507. constant.
  5508. ‘ERANGE’
  5509. The buffer size N is not large enough to store the entire
  5510. error message.
  5511. Even if an error is reported, ‘strerror_r’ still writes as much of
  5512. the error message to the output buffer as possible. After a call
  5513. to ‘strerror_r’, the value of ‘errno’ is unspecified.
  5514. If you want to use the always-copying POSIX semantics of
  5515. ‘strerror_r’ in a program that is potentially compiled with
  5516. ‘_GNU_SOURCE’ defined, you can use ‘snprintf’ with the ‘%m’
  5517. conversion specifier, like this:
  5518. int saved_errno = errno;
  5519. errno = errnum;
  5520. int ret = snprintf (buf, n, "%m");
  5521. errno = saved_errno;
  5522. if (strerrorname_np (errnum) == NULL)
  5523. return EINVAL;
  5524. if (ret >= n)
  5525. return ERANGE:
  5526. return 0;
  5527. This function is declared in ‘string.h’ if it is declared at all.
  5528. It is a POSIX extension.
  5529. -- Function: void perror (const char *MESSAGE)
  5530. Preliminary: | MT-Unsafe race:stderr | AS-Unsafe corrupt i18n heap
  5531. lock | AC-Unsafe corrupt lock mem fd | *Note POSIX Safety
  5532. Concepts::.
  5533. This function prints an error message to the stream ‘stderr’; see
  5534. *note Standard Streams::. The orientation of ‘stderr’ is not
  5535. changed.
  5536. If you call ‘perror’ with a MESSAGE that is either a null pointer
  5537. or an empty string, ‘perror’ just prints the error message
  5538. corresponding to ‘errno’, adding a trailing newline.
  5539. If you supply a non-null MESSAGE argument, then ‘perror’ prefixes
  5540. its output with this string. It adds a colon and a space character
  5541. to separate the MESSAGE from the error string corresponding to
  5542. ‘errno’.
  5543. The function ‘perror’ is declared in ‘stdio.h’.
  5544. -- Function: const char * strerrorname_np (int ERRNUM)
  5545. | MT-Safe | AS-Safe | AC-Safe | *Note POSIX Safety Concepts::.
  5546. This function returns the name describing the error ERRNUM or
  5547. ‘NULL’ if there is no known constant with this value (e.g "EINVAL"
  5548. for ‘EINVAL’). The returned string does not change for the
  5549. remaining execution of the program.
  5550. This function is a GNU extension, declared in the header file
  5551. ‘string.h’.
  5552. -- Function: const char * strerrordesc_np (int ERRNUM)
  5553. | MT-Safe | AS-Safe | AC-Safe | *Note POSIX Safety Concepts::.
  5554. This function returns the message describing the error ERRNUM or
  5555. ‘NULL’ if there is no known constant with this value (e.g "Invalid
  5556. argument" for ‘EINVAL’). Different than ‘strerror’ the returned
  5557. description is not translated, and the returned string does not
  5558. change for the remaining execution of the program.
  5559. This function is a GNU extension, declared in the header file
  5560. ‘string.h’.
  5561. ‘strerror’ and ‘perror’ produce the exact same message for any given
  5562. error code under the same locale; the precise text varies from system to
  5563. system. With the GNU C Library, the messages are fairly short; there
  5564. are no multi-line messages or embedded newlines. Each error message
  5565. begins with a capital letter and does not include any terminating
  5566. punctuation.
  5567. Many programs that don't read input from the terminal are designed to
  5568. exit if any system call fails. By convention, the error message from
  5569. such a program should start with the program's name, sans directories.
  5570. You can find that name in the variable ‘program_invocation_short_name’;
  5571. the full file name is stored the variable ‘program_invocation_name’.
  5572. -- Variable: char * program_invocation_name
  5573. This variable's value is the name that was used to invoke the
  5574. program running in the current process. It is the same as
  5575. ‘argv[0]’. Note that this is not necessarily a useful file name;
  5576. often it contains no directory names. *Note Program Arguments::.
  5577. This variable is a GNU extension and is declared in ‘errno.h’.
  5578. -- Variable: char * program_invocation_short_name
  5579. This variable's value is the name that was used to invoke the
  5580. program running in the current process, with directory names
  5581. removed. (That is to say, it is the same as
  5582. ‘program_invocation_name’ minus everything up to the last slash, if
  5583. any.)
  5584. This variable is a GNU extension and is declared in ‘errno.h’.
  5585. The library initialization code sets up both of these variables
  5586. before calling ‘main’.
  5587. *Portability Note:* If you want your program to work with non-GNU
  5588. libraries, you must save the value of ‘argv[0]’ in ‘main’, and then
  5589. strip off the directory names yourself. We added these extensions to
  5590. make it possible to write self-contained error-reporting subroutines
  5591. that require no explicit cooperation from ‘main’.
  5592. Here is an example showing how to handle failure to open a file
  5593. correctly. The function ‘open_sesame’ tries to open the named file for
  5594. reading and returns a stream if successful. The ‘fopen’ library
  5595. function returns a null pointer if it couldn't open the file for some
  5596. reason. In that situation, ‘open_sesame’ constructs an appropriate
  5597. error message using the ‘strerror’ function, and terminates the program.
  5598. If we were going to make some other library calls before passing the
  5599. error code to ‘strerror’, we'd have to save it in a local variable
  5600. instead, because those other library functions might overwrite ‘errno’
  5601. in the meantime.
  5602. #define _GNU_SOURCE
  5603. #include <errno.h>
  5604. #include <stdio.h>
  5605. #include <stdlib.h>
  5606. #include <string.h>
  5607. FILE *
  5608. open_sesame (char *name)
  5609. {
  5610. FILE *stream;
  5611. errno = 0;
  5612. stream = fopen (name, "r");
  5613. if (stream == NULL)
  5614. {
  5615. fprintf (stderr, "%s: Couldn't open file %s; %s\n",
  5616. program_invocation_short_name, name, strerror (errno));
  5617. exit (EXIT_FAILURE);
  5618. }
  5619. else
  5620. return stream;
  5621. }
  5622. Using ‘perror’ has the advantage that the function is portable and
  5623. available on all systems implementing ISO C. But often the text ‘perror’
  5624. generates is not what is wanted and there is no way to extend or change
  5625. what ‘perror’ does. The GNU coding standard, for instance, requires
  5626. error messages to be preceded by the program name and programs which
  5627. read some input files should provide information about the input file
  5628. name and the line number in case an error is encountered while reading
  5629. the file. For these occasions there are two functions available which
  5630. are widely used throughout the GNU project. These functions are
  5631. declared in ‘error.h’.
  5632. -- Function: void error (int STATUS, int ERRNUM, const char *FORMAT,
  5633. ...)
  5634. Preliminary: | MT-Safe locale | AS-Unsafe corrupt heap i18n |
  5635. AC-Safe | *Note POSIX Safety Concepts::.
  5636. The ‘error’ function can be used to report general problems during
  5637. program execution. The FORMAT argument is a format string just
  5638. like those given to the ‘printf’ family of functions. The
  5639. arguments required for the format can follow the FORMAT parameter.
  5640. Just like ‘perror’, ‘error’ also can report an error code in
  5641. textual form. But unlike ‘perror’ the error value is explicitly
  5642. passed to the function in the ERRNUM parameter. This eliminates
  5643. the problem mentioned above that the error reporting function must
  5644. be called immediately after the function causing the error since
  5645. otherwise ‘errno’ might have a different value.
  5646. ‘error’ prints first the program name. If the application defined
  5647. a global variable ‘error_print_progname’ and points it to a
  5648. function this function will be called to print the program name.
  5649. Otherwise the string from the global variable ‘program_name’ is
  5650. used. The program name is followed by a colon and a space which in
  5651. turn is followed by the output produced by the format string. If
  5652. the ERRNUM parameter is non-zero the format string output is
  5653. followed by a colon and a space, followed by the error message for
  5654. the error code ERRNUM. In any case is the output terminated with a
  5655. newline.
  5656. The output is directed to the ‘stderr’ stream. If the ‘stderr’
  5657. wasn't oriented before the call it will be narrow-oriented
  5658. afterwards.
  5659. The function will return unless the STATUS parameter has a non-zero
  5660. value. In this case the function will call ‘exit’ with the STATUS
  5661. value for its parameter and therefore never return. If ‘error’
  5662. returns, the global variable ‘error_message_count’ is incremented
  5663. by one to keep track of the number of errors reported.
  5664. -- Function: void error_at_line (int STATUS, int ERRNUM, const char
  5665. *FNAME, unsigned int LINENO, const char *FORMAT, ...)
  5666. Preliminary: | MT-Unsafe race:error_at_line/error_one_per_line
  5667. locale | AS-Unsafe corrupt heap i18n | AC-Unsafe
  5668. corrupt/error_one_per_line | *Note POSIX Safety Concepts::.
  5669. The ‘error_at_line’ function is very similar to the ‘error’
  5670. function. The only differences are the additional parameters FNAME
  5671. and LINENO. The handling of the other parameters is identical to
  5672. that of ‘error’ except that between the program name and the string
  5673. generated by the format string additional text is inserted.
  5674. Directly following the program name a colon, followed by the file
  5675. name pointed to by FNAME, another colon, and the value of LINENO is
  5676. printed.
  5677. This additional output of course is meant to be used to locate an
  5678. error in an input file (like a programming language source code
  5679. file etc).
  5680. If the global variable ‘error_one_per_line’ is set to a non-zero
  5681. value ‘error_at_line’ will avoid printing consecutive messages for
  5682. the same file and line. Repetition which are not directly
  5683. following each other are not caught.
  5684. Just like ‘error’ this function only returns if STATUS is zero.
  5685. Otherwise ‘exit’ is called with the non-zero value. If ‘error’
  5686. returns, the global variable ‘error_message_count’ is incremented
  5687. by one to keep track of the number of errors reported.
  5688. As mentioned above, the ‘error’ and ‘error_at_line’ functions can be
  5689. customized by defining a variable named ‘error_print_progname’.
  5690. -- Variable: void (*error_print_progname) (void)
  5691. If the ‘error_print_progname’ variable is defined to a non-zero
  5692. value the function pointed to is called by ‘error’ or
  5693. ‘error_at_line’. It is expected to print the program name or do
  5694. something similarly useful.
  5695. The function is expected to print to the ‘stderr’ stream and must
  5696. be able to handle whatever orientation the stream has.
  5697. The variable is global and shared by all threads.
  5698. -- Variable: unsigned int error_message_count
  5699. The ‘error_message_count’ variable is incremented whenever one of
  5700. the functions ‘error’ or ‘error_at_line’ returns. The variable is
  5701. global and shared by all threads.
  5702. -- Variable: int error_one_per_line
  5703. The ‘error_one_per_line’ variable influences only ‘error_at_line’.
  5704. Normally the ‘error_at_line’ function creates output for every
  5705. invocation. If ‘error_one_per_line’ is set to a non-zero value
  5706. ‘error_at_line’ keeps track of the last file name and line number
  5707. for which an error was reported and avoids directly following
  5708. messages for the same file and line. This variable is global and
  5709. shared by all threads.
  5710. A program which read some input file and reports errors in it could look
  5711. like this:
  5712. {
  5713. char *line = NULL;
  5714. size_t len = 0;
  5715. unsigned int lineno = 0;
  5716. error_message_count = 0;
  5717. while (! feof_unlocked (fp))
  5718. {
  5719. ssize_t n = getline (&line, &len, fp);
  5720. if (n <= 0)
  5721. /* End of file or error. */
  5722. break;
  5723. ++lineno;
  5724. /* Process the line. */
  5725. ...
  5726. if (Detect error in line)
  5727. error_at_line (0, errval, filename, lineno,
  5728. "some error text %s", some_variable);
  5729. }
  5730. if (error_message_count != 0)
  5731. error (EXIT_FAILURE, 0, "%u errors found", error_message_count);
  5732. }
  5733. ‘error’ and ‘error_at_line’ are clearly the functions of choice and
  5734. enable the programmer to write applications which follow the GNU coding
  5735. standard. The GNU C Library additionally contains functions which are
  5736. used in BSD for the same purpose. These functions are declared in
  5737. ‘err.h’. It is generally advised to not use these functions. They are
  5738. included only for compatibility.
  5739. -- Function: void warn (const char *FORMAT, ...)
  5740. Preliminary: | MT-Safe locale | AS-Unsafe corrupt heap i18n |
  5741. AC-Unsafe corrupt lock mem | *Note POSIX Safety Concepts::.
  5742. The ‘warn’ function is roughly equivalent to a call like
  5743. error (0, errno, format, the parameters)
  5744. except that the global variables ‘error’ respects and modifies are
  5745. not used.
  5746. -- Function: void vwarn (const char *FORMAT, va_list AP)
  5747. Preliminary: | MT-Safe locale | AS-Unsafe corrupt heap i18n |
  5748. AC-Unsafe corrupt lock mem | *Note POSIX Safety Concepts::.
  5749. The ‘vwarn’ function is just like ‘warn’ except that the parameters
  5750. for the handling of the format string FORMAT are passed in as a
  5751. value of type ‘va_list’.
  5752. -- Function: void warnx (const char *FORMAT, ...)
  5753. Preliminary: | MT-Safe locale | AS-Unsafe corrupt heap | AC-Unsafe
  5754. corrupt lock mem | *Note POSIX Safety Concepts::.
  5755. The ‘warnx’ function is roughly equivalent to a call like
  5756. error (0, 0, format, the parameters)
  5757. except that the global variables ‘error’ respects and modifies are
  5758. not used. The difference to ‘warn’ is that no error number string
  5759. is printed.
  5760. -- Function: void vwarnx (const char *FORMAT, va_list AP)
  5761. Preliminary: | MT-Safe locale | AS-Unsafe corrupt heap | AC-Unsafe
  5762. corrupt lock mem | *Note POSIX Safety Concepts::.
  5763. The ‘vwarnx’ function is just like ‘warnx’ except that the
  5764. parameters for the handling of the format string FORMAT are passed
  5765. in as a value of type ‘va_list’.
  5766. -- Function: void err (int STATUS, const char *FORMAT, ...)
  5767. Preliminary: | MT-Safe locale | AS-Unsafe corrupt heap i18n |
  5768. AC-Unsafe corrupt lock mem | *Note POSIX Safety Concepts::.
  5769. The ‘err’ function is roughly equivalent to a call like
  5770. error (status, errno, format, the parameters)
  5771. except that the global variables ‘error’ respects and modifies are
  5772. not used and that the program is exited even if STATUS is zero.
  5773. -- Function: void verr (int STATUS, const char *FORMAT, va_list AP)
  5774. Preliminary: | MT-Safe locale | AS-Unsafe corrupt heap i18n |
  5775. AC-Unsafe corrupt lock mem | *Note POSIX Safety Concepts::.
  5776. The ‘verr’ function is just like ‘err’ except that the parameters
  5777. for the handling of the format string FORMAT are passed in as a
  5778. value of type ‘va_list’.
  5779. -- Function: void errx (int STATUS, const char *FORMAT, ...)
  5780. Preliminary: | MT-Safe locale | AS-Unsafe corrupt heap | AC-Unsafe
  5781. corrupt lock mem | *Note POSIX Safety Concepts::.
  5782. The ‘errx’ function is roughly equivalent to a call like
  5783. error (status, 0, format, the parameters)
  5784. except that the global variables ‘error’ respects and modifies are
  5785. not used and that the program is exited even if STATUS is zero.
  5786. The difference to ‘err’ is that no error number string is printed.
  5787. -- Function: void verrx (int STATUS, const char *FORMAT, va_list AP)
  5788. Preliminary: | MT-Safe locale | AS-Unsafe corrupt heap | AC-Unsafe
  5789. corrupt lock mem | *Note POSIX Safety Concepts::.
  5790. The ‘verrx’ function is just like ‘errx’ except that the parameters
  5791. for the handling of the format string FORMAT are passed in as a
  5792. value of type ‘va_list’.
  5793. 
  5794. File: libc.info, Node: Memory, Next: Character Handling, Prev: Error Reporting, Up: Top
  5795. 3 Virtual Memory Allocation And Paging
  5796. **************************************
  5797. This chapter describes how processes manage and use memory in a system
  5798. that uses the GNU C Library.
  5799. The GNU C Library has several functions for dynamically allocating
  5800. virtual memory in various ways. They vary in generality and in
  5801. efficiency. The library also provides functions for controlling paging
  5802. and allocation of real memory.
  5803. * Menu:
  5804. * Memory Concepts:: An introduction to concepts and terminology.
  5805. * Memory Allocation:: Allocating storage for your program data
  5806. * Resizing the Data Segment:: ‘brk’, ‘sbrk’
  5807. * Memory Protection:: Controlling access to memory regions.
  5808. * Locking Pages:: Preventing page faults
  5809. Memory mapped I/O is not discussed in this chapter. *Note
  5810. Memory-mapped I/O::.
  5811. 
  5812. File: libc.info, Node: Memory Concepts, Next: Memory Allocation, Up: Memory
  5813. 3.1 Process Memory Concepts
  5814. ===========================
  5815. One of the most basic resources a process has available to it is memory.
  5816. There are a lot of different ways systems organize memory, but in a
  5817. typical one, each process has one linear virtual address space, with
  5818. addresses running from zero to some huge maximum. It need not be
  5819. contiguous; i.e., not all of these addresses actually can be used to
  5820. store data.
  5821. The virtual memory is divided into pages (4 kilobytes is typical).
  5822. Backing each page of virtual memory is a page of real memory (called a
  5823. “frame”) or some secondary storage, usually disk space. The disk space
  5824. might be swap space or just some ordinary disk file. Actually, a page
  5825. of all zeroes sometimes has nothing at all backing it - there's just a
  5826. flag saying it is all zeroes.
  5827. The same frame of real memory or backing store can back multiple
  5828. virtual pages belonging to multiple processes. This is normally the
  5829. case, for example, with virtual memory occupied by GNU C Library code.
  5830. The same real memory frame containing the ‘printf’ function backs a
  5831. virtual memory page in each of the existing processes that has a
  5832. ‘printf’ call in its program.
  5833. In order for a program to access any part of a virtual page, the page
  5834. must at that moment be backed by ("connected to") a real frame. But
  5835. because there is usually a lot more virtual memory than real memory, the
  5836. pages must move back and forth between real memory and backing store
  5837. regularly, coming into real memory when a process needs to access them
  5838. and then retreating to backing store when not needed anymore. This
  5839. movement is called “paging”.
  5840. When a program attempts to access a page which is not at that moment
  5841. backed by real memory, this is known as a “page fault”. When a page
  5842. fault occurs, the kernel suspends the process, places the page into a
  5843. real page frame (this is called "paging in" or "faulting in"), then
  5844. resumes the process so that from the process' point of view, the page
  5845. was in real memory all along. In fact, to the process, all pages always
  5846. seem to be in real memory. Except for one thing: the elapsed execution
  5847. time of an instruction that would normally be a few nanoseconds is
  5848. suddenly much, much, longer (because the kernel normally has to do I/O
  5849. to complete the page-in). For programs sensitive to that, the functions
  5850. described in *note Locking Pages:: can control it.
  5851. Within each virtual address space, a process has to keep track of
  5852. what is at which addresses, and that process is called memory
  5853. allocation. Allocation usually brings to mind meting out scarce
  5854. resources, but in the case of virtual memory, that's not a major goal,
  5855. because there is generally much more of it than anyone needs. Memory
  5856. allocation within a process is mainly just a matter of making sure that
  5857. the same byte of memory isn't used to store two different things.
  5858. Processes allocate memory in two major ways: by exec and
  5859. programmatically. Actually, forking is a third way, but it's not very
  5860. interesting. *Note Creating a Process::.
  5861. Exec is the operation of creating a virtual address space for a
  5862. process, loading its basic program into it, and executing the program.
  5863. It is done by the "exec" family of functions (e.g. ‘execl’). The
  5864. operation takes a program file (an executable), it allocates space to
  5865. load all the data in the executable, loads it, and transfers control to
  5866. it. That data is most notably the instructions of the program (the
  5867. “text”), but also literals and constants in the program and even some
  5868. variables: C variables with the static storage class (*note Memory
  5869. Allocation and C::).
  5870. Once that program begins to execute, it uses programmatic allocation
  5871. to gain additional memory. In a C program with the GNU C Library, there
  5872. are two kinds of programmatic allocation: automatic and dynamic. *Note
  5873. Memory Allocation and C::.
  5874. Memory-mapped I/O is another form of dynamic virtual memory
  5875. allocation. Mapping memory to a file means declaring that the contents
  5876. of certain range of a process' addresses shall be identical to the
  5877. contents of a specified regular file. The system makes the virtual
  5878. memory initially contain the contents of the file, and if you modify the
  5879. memory, the system writes the same modification to the file. Note that
  5880. due to the magic of virtual memory and page faults, there is no reason
  5881. for the system to do I/O to read the file, or allocate real memory for
  5882. its contents, until the program accesses the virtual memory. *Note
  5883. Memory-mapped I/O::.
  5884. Just as it programmatically allocates memory, the program can
  5885. programmatically deallocate (“free”) it. You can't free the memory that
  5886. was allocated by exec. When the program exits or execs, you might say
  5887. that all its memory gets freed, but since in both cases the address
  5888. space ceases to exist, the point is really moot. *Note Program
  5889. Termination::.
  5890. A process' virtual address space is divided into segments. A segment
  5891. is a contiguous range of virtual addresses. Three important segments
  5892. are:
  5893. The “text segment” contains a program's instructions and literals
  5894. and static constants. It is allocated by exec and stays the same
  5895. size for the life of the virtual address space.
  5896. • The “data segment” is working storage for the program. It can be
  5897. preallocated and preloaded by exec and the process can extend or
  5898. shrink it by calling functions as described in *Note Resizing the
  5899. Data Segment::. Its lower end is fixed.
  5900. • The “stack segment” contains a program stack. It grows as the
  5901. stack grows, but doesn't shrink when the stack shrinks.
  5902. 
  5903. File: libc.info, Node: Memory Allocation, Next: Resizing the Data Segment, Prev: Memory Concepts, Up: Memory
  5904. 3.2 Allocating Storage For Program Data
  5905. =======================================
  5906. This section covers how ordinary programs manage storage for their data,
  5907. including the famous ‘malloc’ function and some fancier facilities
  5908. special to the GNU C Library and GNU Compiler.
  5909. * Menu:
  5910. * Memory Allocation and C:: How to get different kinds of allocation in C.
  5911. * The GNU Allocator:: An overview of the GNU ‘malloc’
  5912. implementation.
  5913. * Unconstrained Allocation:: The ‘malloc’ facility allows fully general
  5914. dynamic allocation.
  5915. * Allocation Debugging:: Finding memory leaks and not freed memory.
  5916. * Replacing malloc:: Using your own ‘malloc’-style allocator.
  5917. * Obstacks:: Obstacks are less general than malloc
  5918. but more efficient and convenient.
  5919. * Variable Size Automatic:: Allocation of variable-sized blocks
  5920. of automatic storage that are freed when the
  5921. calling function returns.
  5922. 
  5923. File: libc.info, Node: Memory Allocation and C, Next: The GNU Allocator, Up: Memory Allocation
  5924. 3.2.1 Memory Allocation in C Programs
  5925. -------------------------------------
  5926. The C language supports two kinds of memory allocation through the
  5927. variables in C programs:
  5928. • “Static allocation” is what happens when you declare a static or
  5929. global variable. Each static or global variable defines one block
  5930. of space, of a fixed size. The space is allocated once, when your
  5931. program is started (part of the exec operation), and is never
  5932. freed.
  5933. • “Automatic allocation” happens when you declare an automatic
  5934. variable, such as a function argument or a local variable. The
  5935. space for an automatic variable is allocated when the compound
  5936. statement containing the declaration is entered, and is freed when
  5937. that compound statement is exited.
  5938. In GNU C, the size of the automatic storage can be an expression
  5939. that varies. In other C implementations, it must be a constant.
  5940. A third important kind of memory allocation, “dynamic allocation”, is
  5941. not supported by C variables but is available via GNU C Library
  5942. functions.
  5943. 3.2.1.1 Dynamic Memory Allocation
  5944. .................................
  5945. “Dynamic memory allocation” is a technique in which programs determine
  5946. as they are running where to store some information. You need dynamic
  5947. allocation when the amount of memory you need, or how long you continue
  5948. to need it, depends on factors that are not known before the program
  5949. runs.
  5950. For example, you may need a block to store a line read from an input
  5951. file; since there is no limit to how long a line can be, you must
  5952. allocate the memory dynamically and make it dynamically larger as you
  5953. read more of the line.
  5954. Or, you may need a block for each record or each definition in the
  5955. input data; since you can't know in advance how many there will be, you
  5956. must allocate a new block for each record or definition as you read it.
  5957. When you use dynamic allocation, the allocation of a block of memory
  5958. is an action that the program requests explicitly. You call a function
  5959. or macro when you want to allocate space, and specify the size with an
  5960. argument. If you want to free the space, you do so by calling another
  5961. function or macro. You can do these things whenever you want, as often
  5962. as you want.
  5963. Dynamic allocation is not supported by C variables; there is no
  5964. storage class "dynamic", and there can never be a C variable whose value
  5965. is stored in dynamically allocated space. The only way to get
  5966. dynamically allocated memory is via a system call (which is generally
  5967. via a GNU C Library function call), and the only way to refer to
  5968. dynamically allocated space is through a pointer. Because it is less
  5969. convenient, and because the actual process of dynamic allocation
  5970. requires more computation time, programmers generally use dynamic
  5971. allocation only when neither static nor automatic allocation will serve.
  5972. For example, if you want to allocate dynamically some space to hold a
  5973. ‘struct foobar’, you cannot declare a variable of type ‘struct foobar’
  5974. whose contents are the dynamically allocated space. But you can declare
  5975. a variable of pointer type ‘struct foobar *’ and assign it the address
  5976. of the space. Then you can use the operators ‘*’ and ‘->’ on this
  5977. pointer variable to refer to the contents of the space:
  5978. {
  5979. struct foobar *ptr = malloc (sizeof *ptr);
  5980. ptr->name = x;
  5981. ptr->next = current_foobar;
  5982. current_foobar = ptr;
  5983. }
  5984. 
  5985. File: libc.info, Node: The GNU Allocator, Next: Unconstrained Allocation, Prev: Memory Allocation and C, Up: Memory Allocation
  5986. 3.2.2 The GNU Allocator
  5987. -----------------------
  5988. The ‘malloc’ implementation in the GNU C Library is derived from
  5989. ptmalloc (pthreads malloc), which in turn is derived from dlmalloc (Doug
  5990. Lea malloc). This ‘malloc’ may allocate memory in two different ways
  5991. depending on their size and certain parameters that may be controlled by
  5992. users. The most common way is to allocate portions of memory (called
  5993. chunks) from a large contiguous area of memory and manage these areas to
  5994. optimize their use and reduce wastage in the form of unusable chunks.
  5995. Traditionally the system heap was set up to be the one large memory area
  5996. but the GNU C Library ‘malloc’ implementation maintains multiple such
  5997. areas to optimize their use in multi-threaded applications. Each such
  5998. area is internally referred to as an “arena”.
  5999. As opposed to other versions, the ‘malloc’ in the GNU C Library does
  6000. not round up chunk sizes to powers of two, neither for large nor for
  6001. small sizes. Neighboring chunks can be coalesced on a ‘free’ no matter
  6002. what their size is. This makes the implementation suitable for all
  6003. kinds of allocation patterns without generally incurring high memory
  6004. waste through fragmentation. The presence of multiple arenas allows
  6005. multiple threads to allocate memory simultaneously in separate arenas,
  6006. thus improving performance.
  6007. The other way of memory allocation is for very large blocks, i.e.
  6008. much larger than a page. These requests are allocated with ‘mmap’
  6009. (anonymous or via ‘/dev/zero’; *note Memory-mapped I/O::)). This has
  6010. the great advantage that these chunks are returned to the system
  6011. immediately when they are freed. Therefore, it cannot happen that a
  6012. large chunk becomes "locked" in between smaller ones and even after
  6013. calling ‘free’ wastes memory. The size threshold for ‘mmap’ to be used
  6014. is dynamic and gets adjusted according to allocation patterns of the
  6015. program. ‘mallopt’ can be used to statically adjust the threshold using
  6016. ‘M_MMAP_THRESHOLD’ and the use of ‘mmap’ can be disabled completely with
  6017. ‘M_MMAP_MAX’; *note Malloc Tunable Parameters::.
  6018. A more detailed technical description of the GNU Allocator is
  6019. maintained in the GNU C Library wiki. See
  6020. <https://sourceware.org/glibc/wiki/MallocInternals>.
  6021. It is possible to use your own custom ‘malloc’ instead of the
  6022. built-in allocator provided by the GNU C Library. *Note Replacing
  6023. malloc::.