tst_mbrlen.i 169 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009
  1. # 1 "tst_mbrlen.c"
  2. # 1 "/vob/stsca_uClibc-nptl/uClibc-nptl/test/locale-mbwc//"
  3. # 1 "<built-in>"
  4. #define __STDC__ 1
  5. # 1 "<built-in>"
  6. #define __STDC_HOSTED__ 1
  7. # 1 "<built-in>"
  8. #define __GNUC__ 4
  9. # 1 "<built-in>"
  10. #define __GNUC_MINOR__ 1
  11. # 1 "<built-in>"
  12. #define __GNUC_PATCHLEVEL__ 1
  13. # 1 "<built-in>"
  14. #define __SIZE_TYPE__ unsigned int
  15. # 1 "<built-in>"
  16. #define __PTRDIFF_TYPE__ int
  17. # 1 "<built-in>"
  18. #define __WCHAR_TYPE__ long int
  19. # 1 "<built-in>"
  20. #define __WINT_TYPE__ unsigned int
  21. # 1 "<built-in>"
  22. #define __INTMAX_TYPE__ long long int
  23. # 1 "<built-in>"
  24. #define __UINTMAX_TYPE__ long long unsigned int
  25. # 1 "<built-in>"
  26. #define __GXX_ABI_VERSION 1002
  27. # 1 "<built-in>"
  28. #define __SCHAR_MAX__ 127
  29. # 1 "<built-in>"
  30. #define __SHRT_MAX__ 32767
  31. # 1 "<built-in>"
  32. #define __INT_MAX__ 2147483647
  33. # 1 "<built-in>"
  34. #define __LONG_MAX__ 2147483647L
  35. # 1 "<built-in>"
  36. #define __LONG_LONG_MAX__ 9223372036854775807LL
  37. # 1 "<built-in>"
  38. #define __WCHAR_MAX__ 2147483647
  39. # 1 "<built-in>"
  40. #define __CHAR_BIT__ 8
  41. # 1 "<built-in>"
  42. #define __INTMAX_MAX__ 9223372036854775807LL
  43. # 1 "<built-in>"
  44. #define __FLT_EVAL_METHOD__ 0
  45. # 1 "<built-in>"
  46. #define __FLT_RADIX__ 2
  47. # 1 "<built-in>"
  48. #define __FLT_MANT_DIG__ 24
  49. # 1 "<built-in>"
  50. #define __FLT_DIG__ 6
  51. # 1 "<built-in>"
  52. #define __FLT_MIN_EXP__ (-125)
  53. # 1 "<built-in>"
  54. #define __FLT_MIN_10_EXP__ (-37)
  55. # 1 "<built-in>"
  56. #define __FLT_MAX_EXP__ 128
  57. # 1 "<built-in>"
  58. #define __FLT_MAX_10_EXP__ 38
  59. # 1 "<built-in>"
  60. #define __FLT_MAX__ 3.40282347e+38F
  61. # 1 "<built-in>"
  62. #define __FLT_MIN__ 1.17549435e-38F
  63. # 1 "<built-in>"
  64. #define __FLT_EPSILON__ 1.19209290e-7F
  65. # 1 "<built-in>"
  66. #define __FLT_DENORM_MIN__ 1.40129846e-45F
  67. # 1 "<built-in>"
  68. #define __FLT_HAS_INFINITY__ 1
  69. # 1 "<built-in>"
  70. #define __FLT_HAS_QUIET_NAN__ 1
  71. # 1 "<built-in>"
  72. #define __DBL_MANT_DIG__ 53
  73. # 1 "<built-in>"
  74. #define __DBL_DIG__ 15
  75. # 1 "<built-in>"
  76. #define __DBL_MIN_EXP__ (-1021)
  77. # 1 "<built-in>"
  78. #define __DBL_MIN_10_EXP__ (-307)
  79. # 1 "<built-in>"
  80. #define __DBL_MAX_EXP__ 1024
  81. # 1 "<built-in>"
  82. #define __DBL_MAX_10_EXP__ 308
  83. # 1 "<built-in>"
  84. #define __DBL_MAX__ 1.7976931348623157e+308
  85. # 1 "<built-in>"
  86. #define __DBL_MIN__ 2.2250738585072014e-308
  87. # 1 "<built-in>"
  88. #define __DBL_EPSILON__ 2.2204460492503131e-16
  89. # 1 "<built-in>"
  90. #define __DBL_DENORM_MIN__ 4.9406564584124654e-324
  91. # 1 "<built-in>"
  92. #define __DBL_HAS_INFINITY__ 1
  93. # 1 "<built-in>"
  94. #define __DBL_HAS_QUIET_NAN__ 1
  95. # 1 "<built-in>"
  96. #define __LDBL_MANT_DIG__ 53
  97. # 1 "<built-in>"
  98. #define __LDBL_DIG__ 15
  99. # 1 "<built-in>"
  100. #define __LDBL_MIN_EXP__ (-1021)
  101. # 1 "<built-in>"
  102. #define __LDBL_MIN_10_EXP__ (-307)
  103. # 1 "<built-in>"
  104. #define __LDBL_MAX_EXP__ 1024
  105. # 1 "<built-in>"
  106. #define __LDBL_MAX_10_EXP__ 308
  107. # 1 "<built-in>"
  108. #define __DECIMAL_DIG__ 17
  109. # 1 "<built-in>"
  110. #define __LDBL_MAX__ 1.7976931348623157e+308L
  111. # 1 "<built-in>"
  112. #define __LDBL_MIN__ 2.2250738585072014e-308L
  113. # 1 "<built-in>"
  114. #define __LDBL_EPSILON__ 2.2204460492503131e-16L
  115. # 1 "<built-in>"
  116. #define __LDBL_DENORM_MIN__ 4.9406564584124654e-324L
  117. # 1 "<built-in>"
  118. #define __LDBL_HAS_INFINITY__ 1
  119. # 1 "<built-in>"
  120. #define __LDBL_HAS_QUIET_NAN__ 1
  121. # 1 "<built-in>"
  122. #define __REGISTER_PREFIX__
  123. # 1 "<built-in>"
  124. #define __USER_LABEL_PREFIX__
  125. # 1 "<built-in>"
  126. #define __VERSION__ "4.1.1 (STMicroelectronics Special) [build Jun 26 2007]"
  127. # 1 "<built-in>"
  128. #define __NO_INLINE__ 1
  129. # 1 "<built-in>"
  130. #define __FINITE_MATH_ONLY__ 1
  131. # 1 "<built-in>"
  132. #define __sh__ 1
  133. # 1 "<built-in>"
  134. #define __SH4__ 1
  135. # 1 "<built-in>"
  136. #define __SH_FPU_ANY__ 1
  137. # 1 "<built-in>"
  138. #define __SH_FPU_DOUBLE__ 1
  139. # 1 "<built-in>"
  140. #define __LITTLE_ENDIAN__ 1
  141. # 1 "<built-in>"
  142. #define __gnu_linux__ 1
  143. # 1 "<built-in>"
  144. #define __linux 1
  145. # 1 "<built-in>"
  146. #define __linux__ 1
  147. # 1 "<built-in>"
  148. #define linux 1
  149. # 1 "<built-in>"
  150. #define __unix 1
  151. # 1 "<built-in>"
  152. #define __unix__ 1
  153. # 1 "<built-in>"
  154. #define unix 1
  155. # 1 "<built-in>"
  156. #define __ELF__ 1
  157. # 1 "<command line>"
  158. #define DEBUG 1
  159. # 1 "<command line>"
  160. #define _GNU_SOURCE 1
  161. # 1 "<command line>"
  162. #define __USE_GNU 1
  163. # 1 "<command line>"
  164. # 1 "./../../include/libc-symbols.h" 1
  165. # 23 "./../../include/libc-symbols.h"
  166. #define _LIBC_SYMBOLS_H 1
  167. # 41 "./../../include/libc-symbols.h"
  168. # 1 "../../include/bits/uClibc_arch_features.h" 1
  169. #define _BITS_UCLIBC_ARCH_FEATURES_H
  170. #define __UCLIBC_ABORT_INSTRUCTION__ "trapa #0xff"
  171. #define __UCLIBC_MMAP_HAS_6_ARGS__
  172. #undef __UCLIBC_TRUNCATE64_HAS_4_ARGS__
  173. #undef __UCLIBC_BROKEN_CREATE_MODULE__
  174. #undef __UCLIBC_HANDLE_OLDER_RLIMIT__
  175. #define __UCLIBC_NO_UNDERSCORES__
  176. #define __UCLIBC_HAVE_ASM_SET_DIRECTIVE__
  177. #undef __UCLIBC_ASM_GLOBAL_DIRECTIVE__
  178. #define __UCLIBC_HAVE_ASM_WEAK_DIRECTIVE__
  179. #undef __UCLIBC_HAVE_ASM_WEAKEXT_DIRECTIVE__
  180. #undef __UCLIBC_HAVE_ASM_GLOBAL_DOT_NAME__
  181. #define __UCLIBC_HAVE_SIGNED_ZERO__
  182. # 42 "./../../include/libc-symbols.h" 2
  183. # 51 "./../../include/libc-symbols.h"
  184. #define _LIBC 1
  185. #define _GNU_SOURCE 1
  186. #define likely(x) __builtin_expect((!!(x)),1)
  187. #define unlikely(x) __builtin_expect((!!(x)),0)
  188. #define __LINUX_COMPILER_H
  189. #define __cast__(_to)
  190. #define attribute_unused __attribute__ ((unused))
  191. #define attribute_noreturn __attribute__ ((__noreturn__))
  192. #define IS_IN_libc 1
  193. #define NO_UNDERSCORES
  194. #define HAVE_ASM_SET_DIRECTIVE
  195. #define ASM_GLOBAL_DIRECTIVE .global
  196. #define HAVE_ASM_WEAK_DIRECTIVE
  197. #undef HAVE_ASM_WEAKEXT_DIRECTIVE
  198. #undef HAVE_ASM_GLOBAL_DOT_NAME
  199. #define HAVE_WEAK_SYMBOLS
  200. #undef C_SYMBOL_NAME
  201. #define C_SYMBOL_NAME(name) name
  202. #define ASM_LINE_SEP ;
  203. # 154 "./../../include/libc-symbols.h"
  204. #define strong_alias(name,aliasname) _strong_alias(name, aliasname)
  205. #define _strong_alias(name,aliasname) extern __typeof (name) aliasname __attribute__ ((alias (#name)));
  206. #define weak_function __attribute__ ((weak))
  207. #define weak_const_function __attribute__ ((weak, __const__))
  208. #define weak_alias(name,aliasname) _weak_alias (name, aliasname)
  209. #define _weak_alias(name,aliasname) extern __typeof (name) aliasname __attribute__ ((weak, alias (#name)));
  210. #define weak_extern(symbol) _weak_extern (weak symbol)
  211. #define _weak_extern(expr) _Pragma (#expr)
  212. # 278 "./../../include/libc-symbols.h"
  213. #define internal_function
  214. #define __make_section_unallocated(section_string) __asm__ (".section " section_string "\n\t.previous");
  215. #define __sec_comment "\n\t#"
  216. #define link_warning(symbol,msg) __make_section_unallocated (".gnu.warning." #symbol) static const char __evoke_link_warning_ ##symbol[] __attribute__ ((used, section (".gnu.warning." #symbol __sec_comment))) = msg;
  217. # 323 "./../../include/libc-symbols.h"
  218. #define INTUSE(name) name
  219. #define INTDEF(name)
  220. #define INTVARDEF(name)
  221. #define INTDEF2(name,newname)
  222. #define INTVARDEF2(name,newname)
  223. # 419 "./../../include/libc-symbols.h"
  224. #define attribute_hidden __attribute__ ((visibility ("hidden")))
  225. #define __hidden_proto_hiddenattr(attrs...) __attribute__ ((visibility ("hidden"), ##attrs))
  226. #define hidden_proto(name,attrs...) __hidden_proto (name, __GI_ ##name, ##attrs)
  227. #define __hidden_proto(name,internal,attrs...) extern __typeof (name) name __asm__ (__hidden_asmname (#internal)) __hidden_proto_hiddenattr (attrs);
  228. #define __hidden_asmname(name) __hidden_asmname1 (__USER_LABEL_PREFIX__, name)
  229. #define __hidden_asmname1(prefix,name) __hidden_asmname2(prefix, name)
  230. #define __hidden_asmname2(prefix,name) #prefix name
  231. #define __hidden_ver1(local,internal,name) extern __typeof (name) __EI_ ##name __asm__(__hidden_asmname (#internal)); extern __typeof (name) __EI_ ##name __attribute__((alias (__hidden_asmname1 (,#local))))
  232. #define hidden_def(name) __hidden_ver1(__GI_ ##name, name, name);
  233. #define hidden_data_def(name) hidden_def(name)
  234. #define hidden_weak(name) __hidden_ver1(__GI_ ##name, name, name) __attribute__((weak));
  235. #define hidden_data_weak(name) hidden_weak(name)
  236. # 515 "./../../include/libc-symbols.h"
  237. #define versioned_symbol(lib,local,symbol,version)
  238. #define hidden_ver(local,name)
  239. #define hidden_data_ver(local,name)
  240. #define libc_hidden_proto(name,attrs...) hidden_proto (name, ##attrs)
  241. #define libc_hidden_def(name) hidden_def (name)
  242. #define libc_hidden_weak(name) hidden_weak (name)
  243. #define libc_hidden_ver(local,name) hidden_ver (local, name)
  244. #define libc_hidden_data_def(name) hidden_data_def (name)
  245. #define libc_hidden_data_weak(name) hidden_data_weak (name)
  246. #define libc_hidden_data_ver(local,name) hidden_data_ver (local, name)
  247. # 546 "./../../include/libc-symbols.h"
  248. #define rtld_hidden_proto(name,attrs...)
  249. #define rtld_hidden_def(name)
  250. #define rtld_hidden_weak(name)
  251. #define rtld_hidden_ver(local,name)
  252. #define rtld_hidden_data_def(name)
  253. #define rtld_hidden_data_weak(name)
  254. #define rtld_hidden_data_ver(local,name)
  255. # 564 "./../../include/libc-symbols.h"
  256. #define libm_hidden_proto(name,attrs...)
  257. #define libm_hidden_def(name)
  258. #define libm_hidden_weak(name)
  259. #define libm_hidden_ver(local,name)
  260. #define libm_hidden_data_def(name)
  261. #define libm_hidden_data_weak(name)
  262. #define libm_hidden_data_ver(local,name)
  263. # 582 "./../../include/libc-symbols.h"
  264. #define libresolv_hidden_proto(name,attrs...)
  265. #define libresolv_hidden_def(name)
  266. #define libresolv_hidden_weak(name)
  267. #define libresolv_hidden_ver(local,name)
  268. #define libresolv_hidden_data_def(name)
  269. #define libresolv_hidden_data_weak(name)
  270. #define libresolv_hidden_data_ver(local,name)
  271. # 600 "./../../include/libc-symbols.h"
  272. #define librt_hidden_proto(name,attrs...)
  273. #define librt_hidden_def(name)
  274. #define librt_hidden_weak(name)
  275. #define librt_hidden_ver(local,name)
  276. #define librt_hidden_data_def(name)
  277. #define librt_hidden_data_weak(name)
  278. #define librt_hidden_data_ver(local,name)
  279. # 618 "./../../include/libc-symbols.h"
  280. #define libdl_hidden_proto(name,attrs...)
  281. #define libdl_hidden_def(name)
  282. #define libdl_hidden_weak(name)
  283. #define libdl_hidden_ver(local,name)
  284. #define libdl_hidden_data_def(name)
  285. #define libdl_hidden_data_weak(name)
  286. #define libdl_hidden_data_ver(local,name)
  287. # 636 "./../../include/libc-symbols.h"
  288. #define libintl_hidden_proto(name,attrs...)
  289. #define libintl_hidden_def(name)
  290. #define libintl_hidden_weak(name)
  291. #define libintl_hidden_ver(local,name)
  292. #define libintl_hidden_data_def(name)
  293. #define libintl_hidden_data_weak(name)
  294. #define libintl_hidden_data_ver(local,name)
  295. # 654 "./../../include/libc-symbols.h"
  296. #define libnsl_hidden_proto(name,attrs...)
  297. #define libnsl_hidden_def(name)
  298. #define libnsl_hidden_weak(name)
  299. #define libnsl_hidden_ver(local,name)
  300. #define libnsl_hidden_data_def(name)
  301. #define libnsl_hidden_data_weak(name)
  302. #define libnsl_hidden_data_ver(local,name)
  303. # 672 "./../../include/libc-symbols.h"
  304. #define libutil_hidden_proto(name,attrs...)
  305. #define libutil_hidden_def(name)
  306. #define libutil_hidden_weak(name)
  307. #define libutil_hidden_ver(local,name)
  308. #define libutil_hidden_data_def(name)
  309. #define libutil_hidden_data_weak(name)
  310. #define libutil_hidden_data_ver(local,name)
  311. # 690 "./../../include/libc-symbols.h"
  312. #define libcrypt_hidden_proto(name,attrs...)
  313. #define libcrypt_hidden_def(name)
  314. #define libcrypt_hidden_weak(name)
  315. #define libcrypt_hidden_ver(local,name)
  316. #define libcrypt_hidden_data_def(name)
  317. #define libcrypt_hidden_data_weak(name)
  318. #define libcrypt_hidden_data_ver(local,name)
  319. # 708 "./../../include/libc-symbols.h"
  320. #define libpthread_hidden_proto(name,attrs...)
  321. #define libpthread_hidden_def(name)
  322. #define libpthread_hidden_weak(name)
  323. #define libpthread_hidden_ver(local,name)
  324. #define libpthread_hidden_data_def(name)
  325. #define libpthread_hidden_data_weak(name)
  326. #define libpthread_hidden_data_ver(local,name)
  327. # 1 "<command line>" 2
  328. # 1 "tst_mbrlen.c"
  329. #define TST_FUNCTION mbrlen
  330. # 1 "tsp_common.c" 1
  331. #define TST_FUNCTION_CALL(func) _TST_FUNCTION_CALL(func)
  332. #define _TST_FUNCTION_CALL(func) tst ##_ ## func
  333. # 1 "../../include/stdio.h" 1
  334. # 27 "../../include/stdio.h"
  335. #define _STDIO_H 1
  336. # 1 "../../include/features.h" 1
  337. # 20 "../../include/features.h"
  338. #define _FEATURES_H 1
  339. #define __UCLIBC__ 1
  340. # 34 "../../include/features.h"
  341. #define __need_uClibc_config_h
  342. # 1 "../../include/bits/uClibc_config.h" 1
  343. # 12 "../../include/bits/uClibc_config.h"
  344. #define __UCLIBC_MAJOR__ 0
  345. #define __UCLIBC_MINOR__ 9
  346. #define __UCLIBC_SUBLEVEL__ 29
  347. #undef __TARGET_alpha__
  348. #undef __TARGET_arm__
  349. #undef __TARGET_bfin__
  350. #undef __TARGET_cris__
  351. #undef __TARGET_e1__
  352. #undef __TARGET_frv__
  353. #undef __TARGET_h8300__
  354. #undef __TARGET_hppa__
  355. #undef __TARGET_i386__
  356. #undef __TARGET_i960__
  357. #undef __TARGET_ia64__
  358. #undef __TARGET_m68k__
  359. #undef __TARGET_microblaze__
  360. #undef __TARGET_mips__
  361. #undef __TARGET_nios__
  362. #undef __TARGET_nios2__
  363. #undef __TARGET_powerpc__
  364. #define __TARGET_sh__ 1
  365. #undef __TARGET_sh64__
  366. #undef __TARGET_sparc__
  367. #undef __TARGET_v850__
  368. #undef __TARGET_vax__
  369. #undef __TARGET_x86_64__
  370. #define __TARGET_ARCH__ "sh"
  371. #define __FORCE_OPTIONS_FOR_ARCH__ 1
  372. #undef __CONFIG_SH2A__
  373. #undef __CONFIG_SH2__
  374. #undef __CONFIG_SH3__
  375. #define __CONFIG_SH4__ 1
  376. #define __ARCH_HAS_BWD_MEMCPY__ 1
  377. #define __TARGET_SUBARCH__ "sh4"
  378. #define __ARCH_ANY_ENDIAN__ 1
  379. #define __ARCH_LITTLE_ENDIAN__ 1
  380. #undef __ARCH_WANTS_BIG_ENDIAN__
  381. #define __ARCH_WANTS_LITTLE_ENDIAN__ 1
  382. #define __ARCH_HAS_MMU__ 1
  383. #define __ARCH_USE_MMU__ 1
  384. #define __UCLIBC_HAS_FLOATS__ 1
  385. #define __UCLIBC_HAS_FPU__ 1
  386. #define __DO_C99_MATH__ 1
  387. #define __KERNEL_HEADERS__ "/opt/STM/STLinux-2.3ear/devkit/sh4/uclibc_target/usr/include"
  388. #define __HAVE_DOT_CONFIG__ 1
  389. #undef __HAVE_NO_PIC__
  390. #undef __DOPIC__
  391. #undef __HAVE_NO_SHARED__
  392. #undef __ARCH_HAS_NO_LDSO__
  393. #define __HAVE_SHARED__ 1
  394. #define __FORCE_SHAREABLE_TEXT_SEGMENTS__ 1
  395. #define __LDSO_LDD_SUPPORT__ 1
  396. #define __LDSO_CACHE_SUPPORT__ 1
  397. #undef __LDSO_PRELOAD_FILE_SUPPORT__
  398. #define __LDSO_BASE_FILENAME__ "ld.so"
  399. #undef __UCLIBC_STATIC_LDCONFIG__
  400. #define __LDSO_RUNPATH__ 1
  401. #define __UCLIBC_CTOR_DTOR__ 1
  402. #define __LDSO_GNU_HASH_SUPPORT__ 1
  403. #undef __HAS_NO_THREADS__
  404. #define __UCLIBC_HAS_THREADS__ 1
  405. #define __UCLIBC_HAS_THREADS_NATIVE__ 1
  406. #define __PTHREADS_DEBUG_SUPPORT__ 1
  407. #undef __LINUXTHREADS_OLD__
  408. #define __UCLIBC_HAS_LFS__ 1
  409. #undef __MALLOC__
  410. #undef __MALLOC_SIMPLE__
  411. #define __MALLOC_STANDARD__ 1
  412. #undef __MALLOC_GLIBC_COMPAT__
  413. #undef __UCLIBC_DYNAMIC_ATEXIT__
  414. #define __COMPAT_ATEXIT__ 1
  415. #define __UCLIBC_SUSV3_LEGACY__ 1
  416. #undef __UCLIBC_SUSV3_LEGACY_MACROS__
  417. #define __UCLIBC_HAS_SHADOW__ 1
  418. #undef __UCLIBC_HAS_PROGRAM_INVOCATION_NAME__
  419. #define __UCLIBC_HAS___PROGNAME__ 1
  420. #define __UNIX98PTY_ONLY__ 1
  421. #define __ASSUME_DEVPTS__ 1
  422. #define __UCLIBC_HAS_TM_EXTENSIONS__ 1
  423. #define __UCLIBC_HAS_TZ_CACHING__ 1
  424. #define __UCLIBC_HAS_TZ_FILE__ 1
  425. #define __UCLIBC_HAS_TZ_FILE_READ_MANY__ 1
  426. #define __UCLIBC_TZ_FILE_PATH__ "/etc/TZ"
  427. #define __UCLIBC_HAS_IPV6__ 1
  428. #define __UCLIBC_HAS_RPC__ 1
  429. #define __UCLIBC_HAS_FULL_RPC__ 1
  430. #define __UCLIBC_HAS_REENTRANT_RPC__ 1
  431. #undef __UCLIBC_USE_NETLINK__
  432. #define __UCLIBC_HAS_STRING_GENERIC_OPT__ 1
  433. #define __UCLIBC_HAS_STRING_ARCH_OPT__ 1
  434. #define __UCLIBC_HAS_CTYPE_TABLES__ 1
  435. #define __UCLIBC_HAS_CTYPE_SIGNED__ 1
  436. #define __UCLIBC_HAS_CTYPE_UNSAFE__ 1
  437. #undef __UCLIBC_HAS_CTYPE_CHECKED__
  438. #undef __UCLIBC_HAS_CTYPE_ENFORCED__
  439. #define __UCLIBC_HAS_WCHAR__ 1
  440. #define __UCLIBC_HAS_LOCALE__ 1
  441. #undef __UCLIBC_PREGENERATED_LOCALE_DATA__
  442. #undef __UCLIBC_HAS_XLOCALE__
  443. #undef __UCLIBC_HAS_HEXADECIMAL_FLOATS__
  444. #undef __UCLIBC_HAS_GLIBC_DIGIT_GROUPING__
  445. #undef __UCLIBC_HAS_GLIBC_CUSTOM_PRINTF__
  446. #define __UCLIBC_PRINTF_SCANF_POSITIONAL_ARGS__ 9
  447. #undef __UCLIBC_HAS_SCANF_GLIBC_A_FLAG__
  448. #undef __UCLIBC_HAS_STDIO_BUFSIZ_NONE__
  449. #undef __UCLIBC_HAS_STDIO_BUFSIZ_256__
  450. #undef __UCLIBC_HAS_STDIO_BUFSIZ_512__
  451. #undef __UCLIBC_HAS_STDIO_BUFSIZ_1024__
  452. #undef __UCLIBC_HAS_STDIO_BUFSIZ_2048__
  453. #define __UCLIBC_HAS_STDIO_BUFSIZ_4096__ 1
  454. #undef __UCLIBC_HAS_STDIO_BUFSIZ_8192__
  455. #define __UCLIBC_HAS_STDIO_BUILTIN_BUFFER_NONE__ 1
  456. #undef __UCLIBC_HAS_STDIO_BUILTIN_BUFFER_4__
  457. #undef __UCLIBC_HAS_STDIO_BUILTIN_BUFFER_8__
  458. #undef __UCLIBC_HAS_STDIO_SHUTDOWN_ON_ABORT__
  459. #define __UCLIBC_HAS_STDIO_GETC_MACRO__ 1
  460. #define __UCLIBC_HAS_STDIO_PUTC_MACRO__ 1
  461. #define __UCLIBC_HAS_STDIO_AUTO_RW_TRANSITION__ 1
  462. #undef __UCLIBC_HAS_FOPEN_LARGEFILE_MODE__
  463. #undef __UCLIBC_HAS_FOPEN_EXCLUSIVE_MODE__
  464. #undef __UCLIBC_HAS_GLIBC_CUSTOM_STREAMS__
  465. #define __UCLIBC_HAS_PRINTF_M_SPEC__ 1
  466. #define __UCLIBC_HAS_ERRNO_MESSAGES__ 1
  467. #define __UCLIBC_HAS_SYS_ERRLIST__ 1
  468. #define __UCLIBC_HAS_SIGNUM_MESSAGES__ 1
  469. #undef __UCLIBC_HAS_SYS_SIGLIST__
  470. #undef __UCLIBC_HAS_GETTEXT_AWARENESS__
  471. #define __UCLIBC_HAS_GNU_GETOPT__ 1
  472. #define __UCLIBC_HAS_STDIO_FUTEXES__ 1
  473. #define __UCLIBC_HAS_GNU_GETSUBOPT__ 1
  474. #define __UCLIBC_HAS_REGEX__ 1
  475. #undef __UCLIBC_HAS_REGEX_OLD__
  476. #define __UCLIBC_HAS_FNMATCH__ 1
  477. #define __UCLIBC_HAS_FNMATCH_OLD__ 1
  478. #undef __UCLIBC_HAS_WORDEXP__
  479. #undef __UCLIBC_HAS_FTW__
  480. #define __UCLIBC_HAS_GLOB__ 1
  481. #define __UCLIBC_HAS_GNU_GLOB__ 1
  482. #define __SHARED_LIB_LOADER_PREFIX__ "/lib"
  483. #define __RUNTIME_PREFIX__ "/"
  484. #define __DEVEL_PREFIX__ "/usr"
  485. #undef __UCLIBC_HAS_ARC4RANDOM__
  486. #undef __HAVE_NO_SSP__
  487. #undef __UCLIBC_HAS_SSP__
  488. #define __UCLIBC_BUILD_RELRO__ 1
  489. #undef __UCLIBC_BUILD_NOW__
  490. #define __UCLIBC_BUILD_NOEXECSTACK__ 1
  491. #define __CROSS_COMPILER_PREFIX__ "sh4-linux-uclibc-"
  492. #define __UCLIBC_EXTRA_CFLAGS__ ""
  493. #define __DODEBUG__ 1
  494. #define __DOASSERTS__ 1
  495. #define __SUPPORT_LD_DEBUG__ 1
  496. #define __SUPPORT_LD_DEBUG_EARLY__ 1
  497. #undef __UCLIBC_MALLOC_DEBUGGING__
  498. #define __WARNINGS__ "-Wall"
  499. #define __EXTRA_WARNINGS__ 1
  500. #undef __DOMULTI__
  501. #define __UCLIBC_MJN3_ONLY__ 1
  502. # 36 "../../include/features.h" 2
  503. #undef __need_uClibc_config_h
  504. #define __OPTIMIZE_SIZE__ 1
  505. # 113 "../../include/features.h"
  506. #undef __USE_ISOC99
  507. #undef __USE_POSIX
  508. #undef __USE_POSIX2
  509. #undef __USE_POSIX199309
  510. #undef __USE_POSIX199506
  511. #undef __USE_XOPEN
  512. #undef __USE_XOPEN_EXTENDED
  513. #undef __USE_UNIX98
  514. #undef __USE_XOPEN2K
  515. #undef __USE_LARGEFILE
  516. #undef __USE_LARGEFILE64
  517. #undef __USE_FILE_OFFSET64
  518. #undef __USE_BSD
  519. #undef __USE_SVID
  520. #undef __USE_MISC
  521. #undef __USE_ATFILE
  522. #undef __USE_GNU
  523. #undef __USE_REENTRANT
  524. #undef __USE_FORTIFY_LEVEL
  525. #undef __FAVOR_BSD
  526. #undef __KERNEL_STRICT_NAMES
  527. #define __KERNEL_STRICT_NAMES
  528. #define __USE_ANSI 1
  529. # 152 "../../include/features.h"
  530. #define __GNUC_PREREQ(maj,min) ((__GNUC__ << 16) + __GNUC_MINOR__ >= ((maj) << 16) + (min))
  531. # 169 "../../include/features.h"
  532. #undef _ISOC99_SOURCE
  533. #define _ISOC99_SOURCE 1
  534. #undef _POSIX_SOURCE
  535. #define _POSIX_SOURCE 1
  536. #undef _POSIX_C_SOURCE
  537. #define _POSIX_C_SOURCE 199506L
  538. #undef _XOPEN_SOURCE
  539. #define _XOPEN_SOURCE 600
  540. #undef _XOPEN_SOURCE_EXTENDED
  541. #define _XOPEN_SOURCE_EXTENDED 1
  542. #undef _LARGEFILE64_SOURCE
  543. #define _LARGEFILE64_SOURCE 1
  544. #undef _BSD_SOURCE
  545. #define _BSD_SOURCE 1
  546. #undef _SVID_SOURCE
  547. #define _SVID_SOURCE 1
  548. #undef _ATFILE_SOURCE
  549. #define _ATFILE_SOURCE 1
  550. # 207 "../../include/features.h"
  551. #define __USE_ISOC99 1
  552. # 223 "../../include/features.h"
  553. #define __USE_POSIX 1
  554. #define __USE_POSIX2 1
  555. #define __USE_POSIX199309 1
  556. #define __USE_POSIX199506 1
  557. #define __USE_XOPEN 1
  558. #define __USE_XOPEN_EXTENDED 1
  559. #define __USE_UNIX98 1
  560. #undef _LARGEFILE_SOURCE
  561. #define _LARGEFILE_SOURCE 1
  562. #define __USE_XOPEN2K 1
  563. #undef __USE_ISOC99
  564. #define __USE_ISOC99 1
  565. # 262 "../../include/features.h"
  566. #define __USE_LARGEFILE 1
  567. #define __USE_LARGEFILE64 1
  568. #define __USE_MISC 1
  569. #define __USE_BSD 1
  570. #define __USE_SVID 1
  571. #define __USE_ATFILE 1
  572. #define __USE_GNU 1
  573. #undef _FORTIFY_SOURCE
  574. # 307 "../../include/features.h"
  575. #define __USE_FORTIFY_LEVEL 0
  576. #define __STDC_IEC_559__ 1
  577. #define __STDC_IEC_559_COMPLEX__ 1
  578. #define __STDC_ISO_10646__ 200009L
  579. # 340 "../../include/features.h"
  580. #define __GLIBC_PREREQ(maj,min) ((__GLIBC__ << 16) + __GLIBC_MINOR__ >= ((maj) << 16) + (min))
  581. # 356 "../../include/features.h"
  582. # 1 "../../include/sys/cdefs.h" 1
  583. # 20 "../../include/sys/cdefs.h"
  584. #define _SYS_CDEFS_H 1
  585. # 35 "../../include/sys/cdefs.h"
  586. #undef __P
  587. #undef __PMT
  588. # 46 "../../include/sys/cdefs.h"
  589. #define __THROW __attribute__ ((__nothrow__))
  590. #define __NTH(fct) __attribute__ ((__nothrow__)) fct
  591. # 73 "../../include/sys/cdefs.h"
  592. #define __P(args) args
  593. #define __PMT(args) args
  594. #define __CONCAT(x,y) x ## y
  595. #define __STRING(x) #x
  596. #define __ptr_t void *
  597. #define __long_double_t long double
  598. #define __BEGIN_DECLS
  599. #define __END_DECLS
  600. # 113 "../../include/sys/cdefs.h"
  601. #define __BEGIN_NAMESPACE_STD
  602. #define __END_NAMESPACE_STD
  603. #define __USING_NAMESPACE_STD(name)
  604. #define __BEGIN_NAMESPACE_C99
  605. #define __END_NAMESPACE_C99
  606. #define __USING_NAMESPACE_C99(name)
  607. #define __bounded
  608. #define __unbounded
  609. #define __ptrvalue
  610. #define __bos(ptr) __builtin_object_size (ptr, __USE_FORTIFY_LEVEL > 1)
  611. #define __bos0(ptr) __builtin_object_size (ptr, 0)
  612. #define __warndecl(name,msg) extern void name (void)
  613. #define __flexarr []
  614. # 166 "../../include/sys/cdefs.h"
  615. #define __REDIRECT(name,proto,alias) name proto __asm__ (__ASMNAME (#alias))
  616. #define __REDIRECT_NTH(name,proto,alias) name proto __asm__ (__ASMNAME (#alias)) __THROW
  617. #define __ASMNAME(cname) __ASMNAME2 (__USER_LABEL_PREFIX__, cname)
  618. #define __ASMNAME2(prefix,cname) __STRING (prefix) cname
  619. # 196 "../../include/sys/cdefs.h"
  620. #define __attribute_malloc__ __attribute__ ((__malloc__))
  621. # 205 "../../include/sys/cdefs.h"
  622. #define __attribute_pure__ __attribute__ ((__pure__))
  623. # 214 "../../include/sys/cdefs.h"
  624. #define __attribute_used__ __attribute__ ((__used__))
  625. #define __attribute_noinline__ __attribute__ ((__noinline__))
  626. #define __attribute_deprecated__ __attribute__ ((__deprecated__))
  627. # 235 "../../include/sys/cdefs.h"
  628. #define __attribute_format_arg__(x) __attribute__ ((__format_arg__ (x)))
  629. # 245 "../../include/sys/cdefs.h"
  630. #define __attribute_format_strfmon__(a,b) __attribute__ ((__format__ (__strfmon__, a, b)))
  631. # 254 "../../include/sys/cdefs.h"
  632. #define __nonnull(params) __attribute__ ((__nonnull__ params))
  633. #define __attribute_warn_unused_result__ __attribute__ ((__warn_unused_result__))
  634. # 271 "../../include/sys/cdefs.h"
  635. #define __wur
  636. #define __always_inline __inline __attribute__ ((__always_inline__))
  637. # 298 "../../include/sys/cdefs.h"
  638. #define __restrict_arr __restrict
  639. # 357 "../../include/features.h" 2
  640. # 396 "../../include/features.h"
  641. #undef _LARGEFILE_SOURCE
  642. #undef _LARGEFILE64_SOURCE
  643. #undef _FILE_OFFSET_BITS
  644. #undef __USE_LARGEFILE
  645. #undef __USE_LARGEFILE64
  646. #undef __USE_FILE_OFFSET64
  647. #define _LARGEFILE_SOURCE 1
  648. #define _LARGEFILE64_SOURCE 1
  649. #define __USE_LARGEFILE 1
  650. #define __USE_LARGEFILE64 1
  651. #undef _ATFILE_SOURCE
  652. #undef __USE_ATFILE
  653. # 1 "../../include/libc-internal.h" 1
  654. # 20 "../../include/libc-internal.h"
  655. #define _LIBC_INTERNAL_H 1
  656. # 1 "../../include/features.h" 1
  657. # 23 "../../include/libc-internal.h" 2
  658. #define attribute_relro __attribute__ ((section (".data.rel.ro")))
  659. #define attribute_tls_model_ie __attribute__ ((tls_model ("initial-exec")))
  660. # 43 "../../include/libc-internal.h"
  661. #define __need_size_t
  662. # 1 "/opt/STM/STLinux-2.3ear/devkit/sh4/lib/gcc/sh4-linux-uclibc/4.1.1/include/stddef.h" 1 3 4
  663. # 189 "/opt/STM/STLinux-2.3ear/devkit/sh4/lib/gcc/sh4-linux-uclibc/4.1.1/include/stddef.h" 3 4
  664. #define __size_t__
  665. #define __SIZE_T__
  666. #define _SIZE_T
  667. #define _SYS_SIZE_T_H
  668. #define _T_SIZE_
  669. #define _T_SIZE
  670. #define __SIZE_T
  671. #define _SIZE_T_
  672. #define _BSD_SIZE_T_
  673. #define _SIZE_T_DEFINED_
  674. #define _SIZE_T_DEFINED
  675. #define _BSD_SIZE_T_DEFINED_
  676. #define _SIZE_T_DECLARED
  677. #define ___int_size_t_h
  678. #define _GCC_SIZE_T
  679. #define _SIZET_
  680. #define __size_t
  681. typedef unsigned int size_t;
  682. # 236 "/opt/STM/STLinux-2.3ear/devkit/sh4/lib/gcc/sh4-linux-uclibc/4.1.1/include/stddef.h" 3 4
  683. #undef __need_size_t
  684. # 409 "/opt/STM/STLinux-2.3ear/devkit/sh4/lib/gcc/sh4-linux-uclibc/4.1.1/include/stddef.h" 3 4
  685. #undef __need_NULL
  686. # 45 "../../include/libc-internal.h" 2
  687. extern int __xpg_strerror_r (int __errnum, char *__buf, size_t __buflen);
  688. # 64 "../../include/libc-internal.h"
  689. extern const char *__uclibc_progname __attribute__ ((visibility ("hidden")));
  690. # 1 "../../include/bits/stackinfo.h" 1
  691. # 23 "../../include/bits/stackinfo.h"
  692. #define _STACKINFO_H 1
  693. #define _STACK_GROWS_DOWN 1
  694. # 70 "../../include/libc-internal.h" 2
  695. #define extend_alloca(buf,len,newlen) (__typeof (buf)) ({ size_t __newlen = (newlen); char *__newbuf = alloca (__newlen); if (__newbuf + __newlen == (char *) buf) len += __newlen; else len = __newlen; __newbuf; })
  696. # 414 "../../include/features.h" 2
  697. # 422 "../../include/features.h"
  698. #define __user
  699. # 29 "../../include/stdio.h" 2
  700. #define __need_size_t
  701. #define __need_NULL
  702. # 1 "/opt/STM/STLinux-2.3ear/devkit/sh4/lib/gcc/sh4-linux-uclibc/4.1.1/include/stddef.h" 1 3 4
  703. # 236 "/opt/STM/STLinux-2.3ear/devkit/sh4/lib/gcc/sh4-linux-uclibc/4.1.1/include/stddef.h" 3 4
  704. #undef __need_size_t
  705. # 398 "/opt/STM/STLinux-2.3ear/devkit/sh4/lib/gcc/sh4-linux-uclibc/4.1.1/include/stddef.h" 3 4
  706. #undef NULL
  707. #define NULL ((void *)0)
  708. #undef __need_NULL
  709. # 35 "../../include/stdio.h" 2
  710. # 1 "../../include/bits/types.h" 1
  711. # 25 "../../include/bits/types.h"
  712. #define _BITS_TYPES_H 1
  713. # 1 "../../include/bits/wordsize.h" 1
  714. # 19 "../../include/bits/wordsize.h"
  715. #define __WORDSIZE 32
  716. # 29 "../../include/bits/types.h" 2
  717. #define __need_size_t
  718. # 1 "/opt/STM/STLinux-2.3ear/devkit/sh4/lib/gcc/sh4-linux-uclibc/4.1.1/include/stddef.h" 1 3 4
  719. # 236 "/opt/STM/STLinux-2.3ear/devkit/sh4/lib/gcc/sh4-linux-uclibc/4.1.1/include/stddef.h" 3 4
  720. #undef __need_size_t
  721. # 409 "/opt/STM/STLinux-2.3ear/devkit/sh4/lib/gcc/sh4-linux-uclibc/4.1.1/include/stddef.h" 3 4
  722. #undef __need_NULL
  723. # 32 "../../include/bits/types.h" 2
  724. # 1 "../../include/bits/kernel_types.h" 1
  725. #define __ASM_SH_POSIX_TYPES_H
  726. typedef unsigned short __kernel_dev_t;
  727. typedef unsigned long __kernel_ino_t;
  728. typedef unsigned short __kernel_mode_t;
  729. typedef unsigned short __kernel_nlink_t;
  730. typedef long __kernel_off_t;
  731. typedef int __kernel_pid_t;
  732. typedef unsigned short __kernel_ipc_pid_t;
  733. typedef unsigned short __kernel_uid_t;
  734. typedef unsigned short __kernel_gid_t;
  735. typedef unsigned int __kernel_size_t;
  736. typedef int __kernel_ssize_t;
  737. typedef int __kernel_ptrdiff_t;
  738. typedef long __kernel_time_t;
  739. typedef long __kernel_suseconds_t;
  740. typedef long __kernel_clock_t;
  741. typedef int __kernel_daddr_t;
  742. typedef char * __kernel_caddr_t;
  743. typedef unsigned short __kernel_uid16_t;
  744. typedef unsigned short __kernel_gid16_t;
  745. typedef unsigned int __kernel_uid32_t;
  746. typedef unsigned int __kernel_gid32_t;
  747. typedef unsigned short __kernel_old_uid_t;
  748. typedef unsigned short __kernel_old_gid_t;
  749. typedef __kernel_dev_t __kernel_old_dev_t;
  750. typedef long long __kernel_loff_t;
  751. typedef struct {
  752. int __val[2];
  753. } __kernel_fsid_t;
  754. # 33 "../../include/bits/types.h" 2
  755. typedef unsigned char __u_char;
  756. typedef unsigned short int __u_short;
  757. typedef unsigned int __u_int;
  758. typedef unsigned long int __u_long;
  759. typedef signed char __int8_t;
  760. typedef unsigned char __uint8_t;
  761. typedef signed short int __int16_t;
  762. typedef unsigned short int __uint16_t;
  763. typedef signed int __int32_t;
  764. typedef unsigned int __uint32_t;
  765. __extension__ typedef signed long long int __int64_t;
  766. __extension__ typedef unsigned long long int __uint64_t;
  767. __extension__ typedef long long int __quad_t;
  768. __extension__ typedef unsigned long long int __u_quad_t;
  769. # 103 "../../include/bits/types.h"
  770. #define __S16_TYPE short int
  771. #define __U16_TYPE unsigned short int
  772. #define __S32_TYPE int
  773. #define __U32_TYPE unsigned int
  774. #define __SLONGWORD_TYPE long int
  775. #define __ULONGWORD_TYPE unsigned long int
  776. #define __SQUAD_TYPE __quad_t
  777. #define __UQUAD_TYPE __u_quad_t
  778. #define __SWORD_TYPE int
  779. #define __UWORD_TYPE unsigned int
  780. #define __SLONG32_TYPE long int
  781. #define __ULONG32_TYPE unsigned long int
  782. #define __S64_TYPE __quad_t
  783. #define __U64_TYPE __u_quad_t
  784. #define __STD_TYPE __extension__ typedef
  785. # 135 "../../include/bits/types.h"
  786. # 1 "../../include/bits/typesizes.h" 1
  787. # 25 "../../include/bits/typesizes.h"
  788. #define _BITS_TYPESIZES_H 1
  789. #define __DEV_T_TYPE __UQUAD_TYPE
  790. #define __UID_T_TYPE __U32_TYPE
  791. #define __GID_T_TYPE __U32_TYPE
  792. #define __INO_T_TYPE __ULONGWORD_TYPE
  793. #define __INO64_T_TYPE __UQUAD_TYPE
  794. #define __MODE_T_TYPE __U32_TYPE
  795. #define __NLINK_T_TYPE __UWORD_TYPE
  796. #define __OFF_T_TYPE __SLONGWORD_TYPE
  797. #define __OFF64_T_TYPE __SQUAD_TYPE
  798. #define __PID_T_TYPE __S32_TYPE
  799. #define __RLIM_T_TYPE __ULONGWORD_TYPE
  800. #define __RLIM64_T_TYPE __UQUAD_TYPE
  801. #define __BLKCNT_T_TYPE __SLONGWORD_TYPE
  802. #define __BLKCNT64_T_TYPE __SQUAD_TYPE
  803. #define __FSBLKCNT_T_TYPE __ULONGWORD_TYPE
  804. #define __FSBLKCNT64_T_TYPE __UQUAD_TYPE
  805. #define __FSFILCNT_T_TYPE __ULONGWORD_TYPE
  806. #define __FSFILCNT64_T_TYPE __UQUAD_TYPE
  807. #define __ID_T_TYPE __U32_TYPE
  808. #define __CLOCK_T_TYPE __SLONGWORD_TYPE
  809. #define __TIME_T_TYPE __SLONGWORD_TYPE
  810. #define __USECONDS_T_TYPE __U32_TYPE
  811. #define __SUSECONDS_T_TYPE __SLONGWORD_TYPE
  812. #define __DADDR_T_TYPE __S32_TYPE
  813. #define __SWBLK_T_TYPE __SLONGWORD_TYPE
  814. #define __KEY_T_TYPE __S32_TYPE
  815. #define __CLOCKID_T_TYPE __S32_TYPE
  816. #define __TIMER_T_TYPE void *
  817. #define __BLKSIZE_T_TYPE __SLONGWORD_TYPE
  818. #define __FSID_T_TYPE struct { int __val[2]; }
  819. #define __SSIZE_T_TYPE __SWORD_TYPE
  820. #define __FD_SETSIZE 1024
  821. # 136 "../../include/bits/types.h" 2
  822. __extension__ typedef __u_quad_t __dev_t;
  823. __extension__ typedef unsigned int __uid_t;
  824. __extension__ typedef unsigned int __gid_t;
  825. __extension__ typedef unsigned long int __ino_t;
  826. __extension__ typedef __u_quad_t __ino64_t;
  827. __extension__ typedef unsigned int __mode_t;
  828. __extension__ typedef unsigned int __nlink_t;
  829. __extension__ typedef long int __off_t;
  830. __extension__ typedef __quad_t __off64_t;
  831. __extension__ typedef int __pid_t;
  832. __extension__ typedef struct { int __val[2]; } __fsid_t;
  833. __extension__ typedef long int __clock_t;
  834. __extension__ typedef unsigned long int __rlim_t;
  835. __extension__ typedef __u_quad_t __rlim64_t;
  836. __extension__ typedef unsigned int __id_t;
  837. __extension__ typedef long int __time_t;
  838. __extension__ typedef unsigned int __useconds_t;
  839. __extension__ typedef long int __suseconds_t;
  840. __extension__ typedef int __daddr_t;
  841. __extension__ typedef long int __swblk_t;
  842. __extension__ typedef int __key_t;
  843. __extension__ typedef int __clockid_t;
  844. __extension__ typedef void * __timer_t;
  845. __extension__ typedef long int __blksize_t;
  846. __extension__ typedef long int __blkcnt_t;
  847. __extension__ typedef __quad_t __blkcnt64_t;
  848. __extension__ typedef unsigned long int __fsblkcnt_t;
  849. __extension__ typedef __u_quad_t __fsblkcnt64_t;
  850. __extension__ typedef unsigned long int __fsfilcnt_t;
  851. __extension__ typedef __u_quad_t __fsfilcnt64_t;
  852. __extension__ typedef int __ssize_t;
  853. typedef __off64_t __loff_t;
  854. typedef __quad_t *__qaddr_t;
  855. typedef char *__caddr_t;
  856. __extension__ typedef int __intptr_t;
  857. __extension__ typedef unsigned int __socklen_t;
  858. #undef __STD_TYPE
  859. typedef __kernel_ipc_pid_t __ipc_pid_t;
  860. # 1 "../../include/bits/pthreadtypes.h" 1
  861. # 21 "../../include/bits/pthreadtypes.h"
  862. #define _BITS_PTHREADTYPES_H 1
  863. #define __SIZEOF_PTHREAD_ATTR_T 36
  864. #define __SIZEOF_PTHREAD_MUTEX_T 24
  865. #define __SIZEOF_PTHREAD_MUTEXATTR_T 4
  866. #define __SIZEOF_PTHREAD_COND_T 48
  867. #define __SIZEOF_PTHREAD_COND_COMPAT_T 12
  868. #define __SIZEOF_PTHREAD_CONDATTR_T 4
  869. #define __SIZEOF_PTHREAD_RWLOCK_T 32
  870. #define __SIZEOF_PTHREAD_RWLOCKATTR_T 8
  871. #define __SIZEOF_PTHREAD_BARRIER_T 20
  872. #define __SIZEOF_PTHREAD_BARRIERATTR_T 4
  873. typedef unsigned long int pthread_t;
  874. typedef union
  875. {
  876. char __size[36];
  877. long int __align;
  878. } pthread_attr_t;
  879. typedef union
  880. {
  881. struct
  882. {
  883. int __lock;
  884. unsigned int __count;
  885. int __owner;
  886. int __kind;
  887. unsigned int __nusers;
  888. int __spins;
  889. } __data;
  890. char __size[24];
  891. long int __align;
  892. } pthread_mutex_t;
  893. typedef union
  894. {
  895. char __size[4];
  896. long int __align;
  897. } pthread_mutexattr_t;
  898. typedef union
  899. {
  900. struct
  901. {
  902. int __lock;
  903. unsigned int __futex;
  904. __extension__ unsigned long long int __total_seq;
  905. __extension__ unsigned long long int __wakeup_seq;
  906. __extension__ unsigned long long int __woken_seq;
  907. void *__mutex;
  908. unsigned int __nwaiters;
  909. unsigned int __broadcast_seq;
  910. } __data;
  911. char __size[48];
  912. __extension__ long long int __align;
  913. } pthread_cond_t;
  914. typedef union
  915. {
  916. char __size[4];
  917. long int __align;
  918. } pthread_condattr_t;
  919. typedef unsigned int pthread_key_t;
  920. typedef int pthread_once_t;
  921. typedef union
  922. {
  923. struct
  924. {
  925. int __lock;
  926. unsigned int __nr_readers;
  927. unsigned int __readers_wakeup;
  928. unsigned int __writer_wakeup;
  929. unsigned int __nr_readers_queued;
  930. unsigned int __nr_writers_queued;
  931. unsigned int __flags;
  932. pthread_t __writer;
  933. } __data;
  934. char __size[32];
  935. long int __align;
  936. } pthread_rwlock_t;
  937. typedef union
  938. {
  939. char __size[8];
  940. long int __align;
  941. } pthread_rwlockattr_t;
  942. typedef volatile int pthread_spinlock_t;
  943. typedef union
  944. {
  945. char __size[20];
  946. long int __align;
  947. } pthread_barrier_t;
  948. typedef union
  949. {
  950. char __size[4];
  951. int __align;
  952. } pthread_barrierattr_t;
  953. # 207 "../../include/bits/types.h" 2
  954. # 37 "../../include/stdio.h" 2
  955. #define __need_FILE
  956. #define __need___FILE
  957. typedef struct __STDIO_FILE_STRUCT FILE;
  958. #define __FILE_defined 1
  959. #undef __need_FILE
  960. typedef struct __STDIO_FILE_STRUCT __FILE;
  961. #define ____FILE_defined 1
  962. #undef __need___FILE
  963. #undef _STDIO_USES_IOSTREAM
  964. # 1 "../../include/bits/uClibc_stdio.h" 1
  965. # 14 "../../include/bits/uClibc_stdio.h"
  966. #define __STDIO_BUFFERS
  967. # 29 "../../include/bits/uClibc_stdio.h"
  968. #define __STDIO_BUFSIZ 4096
  969. # 40 "../../include/bits/uClibc_stdio.h"
  970. #define __STDIO_BUILTIN_BUF_SIZE 0
  971. # 51 "../../include/bits/uClibc_stdio.h"
  972. #define __STDIO_HAS_OPENLIST 1
  973. # 61 "../../include/bits/uClibc_stdio.h"
  974. #undef __USE_LARGEFILE
  975. #undef __USE_LARGEFILE64
  976. #undef __USE_FILE_OFFSET64
  977. #define __USE_LARGEFILE64 1
  978. # 80 "../../include/bits/uClibc_stdio.h"
  979. #define __need_wchar_t
  980. # 1 "/opt/STM/STLinux-2.3ear/devkit/sh4/lib/gcc/sh4-linux-uclibc/4.1.1/include/stddef.h" 1 3 4
  981. # 265 "/opt/STM/STLinux-2.3ear/devkit/sh4/lib/gcc/sh4-linux-uclibc/4.1.1/include/stddef.h" 3 4
  982. #define __wchar_t__
  983. #define __WCHAR_T__
  984. #define _WCHAR_T
  985. #define _T_WCHAR_
  986. #define _T_WCHAR
  987. #define __WCHAR_T
  988. #define _WCHAR_T_
  989. #define _BSD_WCHAR_T_
  990. #define _WCHAR_T_DEFINED_
  991. #define _WCHAR_T_DEFINED
  992. #define _WCHAR_T_H
  993. #define ___int_wchar_t_h
  994. #define __INT_WCHAR_T_H
  995. #define _GCC_WCHAR_T
  996. #define _WCHAR_T_DECLARED
  997. # 292 "/opt/STM/STLinux-2.3ear/devkit/sh4/lib/gcc/sh4-linux-uclibc/4.1.1/include/stddef.h" 3 4
  998. #undef _BSD_WCHAR_T_
  999. # 326 "/opt/STM/STLinux-2.3ear/devkit/sh4/lib/gcc/sh4-linux-uclibc/4.1.1/include/stddef.h" 3 4
  1000. typedef long int wchar_t;
  1001. # 345 "/opt/STM/STLinux-2.3ear/devkit/sh4/lib/gcc/sh4-linux-uclibc/4.1.1/include/stddef.h" 3 4
  1002. #undef __need_wchar_t
  1003. # 409 "/opt/STM/STLinux-2.3ear/devkit/sh4/lib/gcc/sh4-linux-uclibc/4.1.1/include/stddef.h" 3 4
  1004. #undef __need_NULL
  1005. # 82 "../../include/bits/uClibc_stdio.h" 2
  1006. #define __STDIO_MBSTATE
  1007. #define __need_mbstate_t
  1008. # 1 "../../include/wchar.h" 1
  1009. # 51 "../../include/wchar.h"
  1010. #define __need_wint_t
  1011. # 1 "/opt/STM/STLinux-2.3ear/devkit/sh4/lib/gcc/sh4-linux-uclibc/4.1.1/include/stddef.h" 1 3 4
  1012. # 350 "/opt/STM/STLinux-2.3ear/devkit/sh4/lib/gcc/sh4-linux-uclibc/4.1.1/include/stddef.h" 3 4
  1013. #define _WINT_T
  1014. typedef unsigned int wint_t;
  1015. #undef __need_wint_t
  1016. # 409 "/opt/STM/STLinux-2.3ear/devkit/sh4/lib/gcc/sh4-linux-uclibc/4.1.1/include/stddef.h" 3 4
  1017. #undef __need_NULL
  1018. # 53 "../../include/wchar.h" 2
  1019. # 1 "../../include/bits/wchar.h" 1
  1020. # 21 "../../include/bits/wchar.h"
  1021. #define _BITS_WCHAR_H 1
  1022. #define __WCHAR_MIN (-2147483647 - 1)
  1023. #define __WCHAR_MAX (2147483647)
  1024. # 55 "../../include/wchar.h" 2
  1025. # 78 "../../include/wchar.h"
  1026. #define __mbstate_t_defined 1
  1027. typedef struct
  1028. {
  1029. wchar_t __mask;
  1030. wchar_t __wc;
  1031. } __mbstate_t;
  1032. # 98 "../../include/wchar.h"
  1033. #undef __need_mbstate_t
  1034. # 88 "../../include/bits/uClibc_stdio.h" 2
  1035. #define __STDIO_GETC_MACRO
  1036. #define __STDIO_PUTC_MACRO
  1037. # 138 "../../include/bits/uClibc_stdio.h"
  1038. #define __STDIO_AUTO_THREADLOCK_VAR int __infunc_user_locking
  1039. # 165 "../../include/bits/uClibc_stdio.h"
  1040. #define __STDIO_AUTO_THREADLOCK(__stream) if ((__infunc_user_locking = (__stream)->__user_locking) == 0) { __pthread_mutex_lock(&(__stream)->__lock); }
  1041. #define __STDIO_AUTO_THREADUNLOCK(__stream) if (__infunc_user_locking == 0) { __pthread_mutex_unlock(&(__stream)->__lock); }
  1042. #define __STDIO_SET_USER_LOCKING(__stream) ((__stream)->__user_locking = 1)
  1043. #define __STDIO_ALWAYS_THREADLOCK(__stream) __pthread_mutex_lock(&(__stream)->__lock)
  1044. #define __STDIO_ALWAYS_THREADTRYLOCK(__stream) __pthread_mutex_trylock(&(__stream)->__lock)
  1045. #define __STDIO_ALWAYS_THREADUNLOCK(__stream) __pthread_mutex_unlock(&(__stream)->__lock)
  1046. # 204 "../../include/bits/uClibc_stdio.h"
  1047. #define __STDIO_IOFBF 0
  1048. #define __STDIO_IOLBF 1
  1049. #define __STDIO_IONBF 2
  1050. typedef struct {
  1051. __off_t __pos;
  1052. __mbstate_t __mbstate;
  1053. int __mblen_pending;
  1054. } __STDIO_fpos_t;
  1055. typedef struct {
  1056. __off64_t __pos;
  1057. __mbstate_t __mbstate;
  1058. int __mblen_pending;
  1059. } __STDIO_fpos64_t;
  1060. typedef __off64_t __offmax_t;
  1061. # 271 "../../include/bits/uClibc_stdio.h"
  1062. struct __STDIO_FILE_STRUCT {
  1063. unsigned short __modeflags;
  1064. unsigned char __ungot_width[2];
  1065. int __filedes;
  1066. unsigned char *__bufstart;
  1067. unsigned char *__bufend;
  1068. unsigned char *__bufpos;
  1069. unsigned char *__bufread;
  1070. unsigned char *__bufgetc_u;
  1071. unsigned char *__bufputc_u;
  1072. struct __STDIO_FILE_STRUCT *__nextopen;
  1073. wchar_t __ungot[2];
  1074. __mbstate_t __state;
  1075. int __user_locking;
  1076. pthread_mutex_t __lock;
  1077. };
  1078. # 347 "../../include/bits/uClibc_stdio.h"
  1079. #define __MASK_READING 0x0003U
  1080. #define __FLAG_READING 0x0001U
  1081. #define __FLAG_UNGOT 0x0002U
  1082. #define __FLAG_EOF 0x0004U
  1083. #define __FLAG_ERROR 0x0008U
  1084. #define __FLAG_WRITEONLY 0x0010U
  1085. #define __FLAG_READONLY 0x0020U
  1086. #define __FLAG_WRITING 0x0040U
  1087. #define __FLAG_NARROW 0x0080U
  1088. #define __FLAG_FBF 0x0000U
  1089. #define __FLAG_LBF 0x0100U
  1090. #define __FLAG_NBF 0x0200U
  1091. #define __MASK_BUFMODE 0x0300U
  1092. #define __FLAG_APPEND 0x0400U
  1093. #define __FLAG_WIDE 0x0800U
  1094. #define __FLAG_FREEFILE 0x2000U
  1095. #define __FLAG_FREEBUF 0x4000U
  1096. #define __FLAG_LARGEFILE 0x8000U
  1097. #define __FLAG_FAILED_FREOPEN __FLAG_LARGEFILE
  1098. # 388 "../../include/bits/uClibc_stdio.h"
  1099. extern void _stdio_init(void) __attribute__ ((visibility ("hidden")));
  1100. extern void _stdio_term(void) __attribute__ ((visibility ("hidden")));
  1101. extern struct __STDIO_FILE_STRUCT *_stdio_openlist;
  1102. extern pthread_mutex_t _stdio_openlist_lock;
  1103. extern int _stdio_openlist_delflag;
  1104. extern int _stdio_user_locking;
  1105. extern void __stdio_init_mutex(pthread_mutex_t *m) __attribute__ ((visibility ("hidden")));
  1106. # 413 "../../include/bits/uClibc_stdio.h"
  1107. #define __CLEARERR_UNLOCKED(__stream) ((void)((__stream)->__modeflags &= ~(__FLAG_EOF|__FLAG_ERROR)))
  1108. #define __FEOF_UNLOCKED(__stream) ((__stream)->__modeflags & __FLAG_EOF)
  1109. #define __FERROR_UNLOCKED(__stream) ((__stream)->__modeflags & __FLAG_ERROR)
  1110. #define __CLEARERR(__stream) (clearerr)(__stream)
  1111. #define __FERROR(__stream) (ferror)(__stream)
  1112. #define __FEOF(__stream) (feof)(__stream)
  1113. extern int __fgetc_unlocked(FILE *__stream);
  1114. extern int __fputc_unlocked(int __c, FILE *__stream);
  1115. #define __FGETC_UNLOCKED(__stream) (__fgetc_unlocked)((__stream))
  1116. #define __FGETC(__stream) (fgetc)((__stream))
  1117. #define __GETC_UNLOCKED_MACRO(__stream) (__fgetc_unlocked)((__stream))
  1118. #define __GETC_UNLOCKED(__stream) (__fgetc_unlocked)((__stream))
  1119. #define __GETC(__stream) (fgetc)((__stream))
  1120. #define __FPUTC_UNLOCKED(__c,__stream) (__fputc_unlocked)((__c),(__stream))
  1121. #define __FPUTC(__c,__stream) (fputc)((__c),(__stream))
  1122. #define __PUTC_UNLOCKED_MACRO(__c,__stream) (__fputc_unlocked)((__c),(__stream))
  1123. #define __PUTC_UNLOCKED(__c,__stream) (__fputc_unlocked)((__c),(__stream))
  1124. #define __PUTC(__c,__stream) (fputc)((__c),(__stream))
  1125. extern FILE *__stdin;
  1126. #undef __GETC_UNLOCKED_MACRO
  1127. #define __GETC_UNLOCKED_MACRO(__stream) ( ((__stream)->__bufpos < (__stream)->__bufgetc_u) ? (*(__stream)->__bufpos++) : __fgetc_unlocked(__stream) )
  1128. # 466 "../../include/bits/uClibc_stdio.h"
  1129. #undef __FGETC_UNLOCKED
  1130. #define __FGETC_UNLOCKED(__stream) (__extension__ ({ FILE *__S = (__stream); __GETC_UNLOCKED_MACRO(__S); }) )
  1131. #undef __GETC_UNLOCKED
  1132. #define __GETC_UNLOCKED(__stream) __FGETC_UNLOCKED((__stream))
  1133. #undef __FGETC
  1134. #define __FGETC(__stream) (__extension__ ({ FILE *__S = (__stream); ((__S->__user_locking ) ? __GETC_UNLOCKED_MACRO(__S) : (fgetc)(__S)); }) )
  1135. #undef __GETC
  1136. #define __GETC(__stream) __FGETC((__stream))
  1137. # 506 "../../include/bits/uClibc_stdio.h"
  1138. extern FILE *__stdout;
  1139. #undef __PUTC_UNLOCKED_MACRO
  1140. #define __PUTC_UNLOCKED_MACRO(__c,__stream) ( ((__stream)->__bufpos < (__stream)->__bufputc_u) ? (*(__stream)->__bufpos++) = (__c) : __fputc_unlocked((__c),(__stream)) )
  1141. # 527 "../../include/bits/uClibc_stdio.h"
  1142. #undef __FPUTC_UNLOCKED
  1143. #define __FPUTC_UNLOCKED(__c,__stream) (__extension__ ({ FILE *__S = (__stream); __PUTC_UNLOCKED_MACRO((__c),__S); }) )
  1144. #undef __PUTC_UNLOCKED
  1145. #define __PUTC_UNLOCKED(__c,__stream) __FPUTC_UNLOCKED((__c), (__stream))
  1146. #undef __FPUTC
  1147. #define __FPUTC(__c,__stream) (__extension__ ({ FILE *__S = (__stream); ((__S->__user_locking) ? __PUTC_UNLOCKED_MACRO((__c),__S) : (fputc)((__c),__S)); }) )
  1148. #undef __PUTC
  1149. #define __PUTC(__c,__stream) __FPUTC((__c), (__stream))
  1150. # 73 "../../include/stdio.h" 2
  1151. #define __need___va_list
  1152. # 1 "/opt/STM/STLinux-2.3ear/devkit/sh4/lib/gcc/sh4-linux-uclibc/4.1.1/include/stdarg.h" 1 3 4
  1153. # 37 "/opt/STM/STLinux-2.3ear/devkit/sh4/lib/gcc/sh4-linux-uclibc/4.1.1/include/stdarg.h" 3 4
  1154. #undef __need___va_list
  1155. #define __GNUC_VA_LIST
  1156. typedef __builtin_va_list __gnuc_va_list;
  1157. # 77 "../../include/stdio.h" 2
  1158. typedef __STDIO_fpos_t fpos_t;
  1159. typedef __STDIO_fpos64_t fpos64_t;
  1160. #define _IOFBF __STDIO_IOFBF
  1161. #define _IOLBF __STDIO_IOLBF
  1162. #define _IONBF __STDIO_IONBF
  1163. #define BUFSIZ __STDIO_BUFSIZ
  1164. #define EOF (-1)
  1165. #define SEEK_SET 0
  1166. #define SEEK_CUR 1
  1167. #define SEEK_END 2
  1168. #define P_tmpdir "/tmp"
  1169. # 131 "../../include/stdio.h"
  1170. # 1 "../../include/bits/stdio_lim.h" 1
  1171. # 24 "../../include/bits/stdio_lim.h"
  1172. #define L_tmpnam 20
  1173. #define TMP_MAX 238328
  1174. #define FILENAME_MAX 4095
  1175. #define L_ctermid 9
  1176. #define L_cuserid 9
  1177. #undef FOPEN_MAX
  1178. #define FOPEN_MAX 16
  1179. # 132 "../../include/stdio.h" 2
  1180. extern FILE *stdin;
  1181. extern FILE *stdout;
  1182. extern FILE *stderr;
  1183. #define stdin stdin
  1184. #define stdout stdout
  1185. #define stderr stderr
  1186. extern int remove (__const char *__filename) __attribute__ ((__nothrow__));
  1187. extern int rename (__const char *__old, __const char *__new) __attribute__ ((__nothrow__));
  1188. extern FILE *tmpfile (void);
  1189. # 167 "../../include/stdio.h"
  1190. extern FILE *tmpfile64 (void);
  1191. extern char *tmpnam (char *__s) __attribute__ ((__nothrow__));
  1192. extern char *tmpnam_r (char *__s) __attribute__ ((__nothrow__));
  1193. # 189 "../../include/stdio.h"
  1194. extern char *tempnam (__const char *__dir, __const char *__pfx)
  1195. __attribute__ ((__nothrow__)) __attribute__ ((__malloc__));
  1196. extern int fclose (FILE *__stream);
  1197. extern int fflush (FILE *__stream);
  1198. # 214 "../../include/stdio.h"
  1199. extern int fflush_unlocked (FILE *__stream);
  1200. # 224 "../../include/stdio.h"
  1201. extern int fcloseall (void);
  1202. extern FILE *fopen (__const char *__restrict __filename,
  1203. __const char *__restrict __modes);
  1204. extern FILE *freopen (__const char *__restrict __filename,
  1205. __const char *__restrict __modes,
  1206. FILE *__restrict __stream);
  1207. # 255 "../../include/stdio.h"
  1208. extern FILE *fopen64 (__const char *__restrict __filename,
  1209. __const char *__restrict __modes);
  1210. extern FILE *freopen64 (__const char *__restrict __filename,
  1211. __const char *__restrict __modes,
  1212. FILE *__restrict __stream);
  1213. extern FILE *fdopen (int __fd, __const char *__modes) __attribute__ ((__nothrow__));
  1214. # 289 "../../include/stdio.h"
  1215. extern void setbuf (FILE *__restrict __stream, char *__restrict __buf) __attribute__ ((__nothrow__));
  1216. extern int setvbuf (FILE *__restrict __stream, char *__restrict __buf,
  1217. int __modes, size_t __n) __attribute__ ((__nothrow__));
  1218. extern void setbuffer (FILE *__restrict __stream, char *__restrict __buf,
  1219. size_t __size) __attribute__ ((__nothrow__));
  1220. extern void setlinebuf (FILE *__stream) __attribute__ ((__nothrow__));
  1221. extern int fprintf (FILE *__restrict __stream,
  1222. __const char *__restrict __format, ...);
  1223. extern int printf (__const char *__restrict __format, ...);
  1224. extern int sprintf (char *__restrict __s,
  1225. __const char *__restrict __format, ...) __attribute__ ((__nothrow__));
  1226. extern int vfprintf (FILE *__restrict __s, __const char *__restrict __format,
  1227. __gnuc_va_list __arg);
  1228. extern int vprintf (__const char *__restrict __format, __gnuc_va_list __arg);
  1229. extern int vsprintf (char *__restrict __s, __const char *__restrict __format,
  1230. __gnuc_va_list __arg) __attribute__ ((__nothrow__));
  1231. extern int snprintf (char *__restrict __s, size_t __maxlen,
  1232. __const char *__restrict __format, ...)
  1233. __attribute__ ((__nothrow__)) __attribute__ ((__format__ (__printf__, 3, 4)));
  1234. extern int vsnprintf (char *__restrict __s, size_t __maxlen,
  1235. __const char *__restrict __format, __gnuc_va_list __arg)
  1236. __attribute__ ((__nothrow__)) __attribute__ ((__format__ (__printf__, 3, 0)));
  1237. extern int vasprintf (char **__restrict __ptr, __const char *__restrict __f,
  1238. __gnuc_va_list __arg)
  1239. __attribute__ ((__nothrow__)) __attribute__ ((__format__ (__printf__, 2, 0)));
  1240. extern int asprintf (char **__restrict __ptr,
  1241. __const char *__restrict __fmt, ...)
  1242. __attribute__ ((__nothrow__)) __attribute__ ((__format__ (__printf__, 2, 3)));
  1243. extern int vdprintf (int __fd, __const char *__restrict __fmt,
  1244. __gnuc_va_list __arg)
  1245. __attribute__ ((__format__ (__printf__, 2, 0)));
  1246. extern int dprintf (int __fd, __const char *__restrict __fmt, ...)
  1247. __attribute__ ((__format__ (__printf__, 2, 3)));
  1248. extern int fscanf (FILE *__restrict __stream,
  1249. __const char *__restrict __format, ...);
  1250. extern int scanf (__const char *__restrict __format, ...);
  1251. extern int sscanf (__const char *__restrict __s,
  1252. __const char *__restrict __format, ...) __attribute__ ((__nothrow__));
  1253. extern int vfscanf (FILE *__restrict __s, __const char *__restrict __format,
  1254. __gnuc_va_list __arg)
  1255. __attribute__ ((__format__ (__scanf__, 2, 0)));
  1256. extern int vscanf (__const char *__restrict __format, __gnuc_va_list __arg)
  1257. __attribute__ ((__format__ (__scanf__, 1, 0)));
  1258. extern int vsscanf (__const char *__restrict __s,
  1259. __const char *__restrict __format, __gnuc_va_list __arg)
  1260. __attribute__ ((__nothrow__)) __attribute__ ((__format__ (__scanf__, 2, 0)));
  1261. extern int fgetc (FILE *__stream);
  1262. extern int getc (FILE *__stream);
  1263. extern int getchar (void);
  1264. #define getc(_fp) __GETC(_fp)
  1265. extern int getc_unlocked (FILE *__stream);
  1266. extern int getchar_unlocked (void);
  1267. #define getc_unlocked(_fp) __GETC_UNLOCKED(_fp)
  1268. # 465 "../../include/stdio.h"
  1269. extern int fgetc_unlocked (FILE *__stream);
  1270. extern int fputc (int __c, FILE *__stream);
  1271. extern int putc (int __c, FILE *__stream);
  1272. extern int putchar (int __c);
  1273. #define putc(_ch,_fp) __PUTC(_ch, _fp)
  1274. # 498 "../../include/stdio.h"
  1275. extern int fputc_unlocked (int __c, FILE *__stream);
  1276. extern int putc_unlocked (int __c, FILE *__stream);
  1277. extern int putchar_unlocked (int __c);
  1278. #define putc_unlocked(_ch,_fp) __PUTC_UNLOCKED(_ch, _fp)
  1279. extern int getw (FILE *__stream);
  1280. extern int putw (int __w, FILE *__stream);
  1281. extern char *fgets (char *__restrict __s, int __n, FILE *__restrict __stream);
  1282. extern char *gets (char *__s);
  1283. # 546 "../../include/stdio.h"
  1284. extern char *fgets_unlocked (char *__restrict __s, int __n,
  1285. FILE *__restrict __stream);
  1286. # 567 "../../include/stdio.h"
  1287. extern __ssize_t getdelim (char **__restrict __lineptr,
  1288. size_t *__restrict __n, int __delimiter,
  1289. FILE *__restrict __stream);
  1290. extern __ssize_t getline (char **__restrict __lineptr,
  1291. size_t *__restrict __n,
  1292. FILE *__restrict __stream);
  1293. extern int fputs (__const char *__restrict __s, FILE *__restrict __stream);
  1294. extern int puts (__const char *__s);
  1295. extern int ungetc (int __c, FILE *__stream);
  1296. extern size_t fread (void *__restrict __ptr, size_t __size,
  1297. size_t __n, FILE *__restrict __stream);
  1298. extern size_t fwrite (__const void *__restrict __ptr, size_t __size,
  1299. size_t __n, FILE *__restrict __s);
  1300. # 625 "../../include/stdio.h"
  1301. extern int fputs_unlocked (__const char *__restrict __s,
  1302. FILE *__restrict __stream);
  1303. # 636 "../../include/stdio.h"
  1304. extern size_t fread_unlocked (void *__restrict __ptr, size_t __size,
  1305. size_t __n, FILE *__restrict __stream);
  1306. extern size_t fwrite_unlocked (__const void *__restrict __ptr, size_t __size,
  1307. size_t __n, FILE *__restrict __stream);
  1308. extern int fseek (FILE *__stream, long int __off, int __whence);
  1309. extern long int ftell (FILE *__stream);
  1310. extern void rewind (FILE *__stream);
  1311. # 672 "../../include/stdio.h"
  1312. extern int fseeko (FILE *__stream, __off_t __off, int __whence);
  1313. extern __off_t ftello (FILE *__stream);
  1314. # 691 "../../include/stdio.h"
  1315. extern int fgetpos (FILE *__restrict __stream, fpos_t *__restrict __pos);
  1316. extern int fsetpos (FILE *__stream, __const fpos_t *__pos);
  1317. # 714 "../../include/stdio.h"
  1318. extern int fseeko64 (FILE *__stream, __off64_t __off, int __whence);
  1319. extern __off64_t ftello64 (FILE *__stream);
  1320. extern int fgetpos64 (FILE *__restrict __stream, fpos64_t *__restrict __pos);
  1321. extern int fsetpos64 (FILE *__stream, __const fpos64_t *__pos);
  1322. extern void clearerr (FILE *__stream) __attribute__ ((__nothrow__));
  1323. extern int feof (FILE *__stream) __attribute__ ((__nothrow__));
  1324. extern int ferror (FILE *__stream) __attribute__ ((__nothrow__));
  1325. extern void clearerr_unlocked (FILE *__stream) __attribute__ ((__nothrow__));
  1326. extern int feof_unlocked (FILE *__stream) __attribute__ ((__nothrow__));
  1327. extern int ferror_unlocked (FILE *__stream) __attribute__ ((__nothrow__));
  1328. extern void perror (__const char *__s);
  1329. extern int sys_nerr;
  1330. extern __const char *__const sys_errlist[];
  1331. extern int fileno (FILE *__stream) __attribute__ ((__nothrow__));
  1332. extern int fileno_unlocked (FILE *__stream) __attribute__ ((__nothrow__));
  1333. # 775 "../../include/stdio.h"
  1334. extern FILE *popen (__const char *__command, __const char *__modes);
  1335. extern int pclose (FILE *__stream);
  1336. extern char *ctermid (char *__s) __attribute__ ((__nothrow__));
  1337. extern char *cuserid (char *__s);
  1338. # 815 "../../include/stdio.h"
  1339. extern void flockfile (FILE *__stream) __attribute__ ((__nothrow__));
  1340. extern int ftrylockfile (FILE *__stream) __attribute__ ((__nothrow__));
  1341. extern void funlockfile (FILE *__stream) __attribute__ ((__nothrow__));
  1342. # 835 "../../include/stdio.h"
  1343. #define fgetc(_fp) __FGETC(_fp)
  1344. #define fputc(_ch,_fp) __FPUTC(_ch, _fp)
  1345. #define fgetc_unlocked(_fp) __FGETC_UNLOCKED(_fp)
  1346. #define fputc_unlocked(_ch,_fp) __FPUTC_UNLOCKED(_ch, _fp)
  1347. #define getchar() __GETC(__stdin)
  1348. #define putchar(_ch) __PUTC((_ch), __stdout)
  1349. #define getchar_unlocked() __GETC_UNLOCKED(__stdin)
  1350. #define putchar_unlocked(_ch) __PUTC_UNLOCKED((_ch), __stdout)
  1351. #define clearerr(_fp) __CLEARERR(_fp)
  1352. #define feof(_fp) __FEOF(_fp)
  1353. #define ferror(_fp) __FERROR(_fp)
  1354. #define clearerr_unlocked(_fp) __CLEARERR_UNLOCKED(_fp)
  1355. #define feof_unlocked(_fp) __FEOF_UNLOCKED(_fp)
  1356. #define ferror_unlocked(_fp) __FERROR_UNLOCKED(_fp)
  1357. # 11 "tsp_common.c" 2
  1358. # 1 "../../include/stdlib.h" 1
  1359. # 28 "../../include/stdlib.h"
  1360. #define __need_size_t
  1361. #define __need_wchar_t
  1362. #define __need_NULL
  1363. # 1 "/opt/STM/STLinux-2.3ear/devkit/sh4/lib/gcc/sh4-linux-uclibc/4.1.1/include/stddef.h" 1 3 4
  1364. # 236 "/opt/STM/STLinux-2.3ear/devkit/sh4/lib/gcc/sh4-linux-uclibc/4.1.1/include/stddef.h" 3 4
  1365. #undef __need_size_t
  1366. # 345 "/opt/STM/STLinux-2.3ear/devkit/sh4/lib/gcc/sh4-linux-uclibc/4.1.1/include/stddef.h" 3 4
  1367. #undef __need_wchar_t
  1368. # 398 "/opt/STM/STLinux-2.3ear/devkit/sh4/lib/gcc/sh4-linux-uclibc/4.1.1/include/stddef.h" 3 4
  1369. #undef NULL
  1370. #define NULL ((void *)0)
  1371. #undef __need_NULL
  1372. # 36 "../../include/stdlib.h" 2
  1373. #define _STDLIB_H 1
  1374. # 1 "../../include/bits/waitflags.h" 1
  1375. # 26 "../../include/bits/waitflags.h"
  1376. #define WNOHANG 1
  1377. #define WUNTRACED 2
  1378. #define WSTOPPED 2
  1379. #define WEXITED 4
  1380. #define WCONTINUED 8
  1381. #define WNOWAIT 0x01000000
  1382. #define __WNOTHREAD 0x20000000
  1383. #define __WALL 0x40000000
  1384. #define __WCLONE 0x80000000
  1385. # 45 "../../include/stdlib.h" 2
  1386. # 1 "../../include/bits/waitstatus.h" 1
  1387. # 29 "../../include/bits/waitstatus.h"
  1388. #define __WEXITSTATUS(status) (((status) & 0xff00) >> 8)
  1389. #define __WTERMSIG(status) ((status) & 0x7f)
  1390. #define __WSTOPSIG(status) __WEXITSTATUS(status)
  1391. #define __WIFEXITED(status) (__WTERMSIG(status) == 0)
  1392. #define __WIFSIGNALED(status) (__extension__ ({ int __status = (status); !__WIFSTOPPED(__status) && !__WIFEXITED(__status); }))
  1393. #define __WIFSTOPPED(status) (((status) & 0xff) == 0x7f)
  1394. #define __WCOREDUMP(status) ((status) & __WCOREFLAG)
  1395. #define __W_EXITCODE(ret,sig) ((ret) << 8 | (sig))
  1396. #define __W_STOPCODE(sig) ((sig) << 8 | 0x7f)
  1397. #define __WCOREFLAG 0x80
  1398. # 1 "../../include/endian.h" 1
  1399. # 20 "../../include/endian.h"
  1400. #define _ENDIAN_H 1
  1401. # 32 "../../include/endian.h"
  1402. #define __LITTLE_ENDIAN 1234
  1403. #define __BIG_ENDIAN 4321
  1404. #define __PDP_ENDIAN 3412
  1405. # 1 "../../include/bits/endian.h" 1
  1406. #define __BYTE_ORDER __LITTLE_ENDIAN
  1407. #define __FLOAT_WORD_ORDER __LITTLE_ENDIAN
  1408. # 38 "../../include/endian.h" 2
  1409. # 46 "../../include/endian.h"
  1410. #define LITTLE_ENDIAN __LITTLE_ENDIAN
  1411. #define BIG_ENDIAN __BIG_ENDIAN
  1412. #define PDP_ENDIAN __PDP_ENDIAN
  1413. #define BYTE_ORDER __BYTE_ORDER
  1414. #define __LONG_LONG_PAIR(HI,LO) LO, HI
  1415. # 64 "../../include/bits/waitstatus.h" 2
  1416. union wait
  1417. {
  1418. int w_status;
  1419. struct
  1420. {
  1421. unsigned int __w_termsig:7;
  1422. unsigned int __w_coredump:1;
  1423. unsigned int __w_retcode:8;
  1424. unsigned int:16;
  1425. } __wait_terminated;
  1426. struct
  1427. {
  1428. unsigned int __w_stopval:8;
  1429. unsigned int __w_stopsig:8;
  1430. unsigned int:16;
  1431. } __wait_stopped;
  1432. };
  1433. #define w_termsig __wait_terminated.__w_termsig
  1434. #define w_coredump __wait_terminated.__w_coredump
  1435. #define w_retcode __wait_terminated.__w_retcode
  1436. #define w_stopsig __wait_stopped.__w_stopsig
  1437. #define w_stopval __wait_stopped.__w_stopval
  1438. # 46 "../../include/stdlib.h" 2
  1439. #define __WAIT_INT(status) (__extension__ ({ union { __typeof(status) __in; int __i; } __u; __u.__in = (status); __u.__i; }))
  1440. # 70 "../../include/stdlib.h"
  1441. typedef union
  1442. {
  1443. union wait *__uptr;
  1444. int *__iptr;
  1445. } __WAIT_STATUS __attribute__ ((__transparent_union__));
  1446. #define __WAIT_STATUS_DEFN int *
  1447. # 87 "../../include/stdlib.h"
  1448. #define WEXITSTATUS(status) __WEXITSTATUS(__WAIT_INT(status))
  1449. #define WTERMSIG(status) __WTERMSIG(__WAIT_INT(status))
  1450. #define WSTOPSIG(status) __WSTOPSIG(__WAIT_INT(status))
  1451. #define WIFEXITED(status) __WIFEXITED(__WAIT_INT(status))
  1452. #define WIFSIGNALED(status) __WIFSIGNALED(__WAIT_INT(status))
  1453. #define WIFSTOPPED(status) __WIFSTOPPED(__WAIT_INT(status))
  1454. typedef struct
  1455. {
  1456. int quot;
  1457. int rem;
  1458. } div_t;
  1459. typedef struct
  1460. {
  1461. long int quot;
  1462. long int rem;
  1463. } ldiv_t;
  1464. #define __ldiv_t_defined 1
  1465. __extension__ typedef struct
  1466. {
  1467. long long int quot;
  1468. long long int rem;
  1469. } lldiv_t;
  1470. #define __lldiv_t_defined 1
  1471. #define RAND_MAX 2147483647
  1472. #define EXIT_FAILURE 1
  1473. #define EXIT_SUCCESS 0
  1474. # 146 "../../include/stdlib.h"
  1475. #define MB_CUR_MAX (_stdlib_mb_cur_max ())
  1476. extern size_t _stdlib_mb_cur_max (void) __attribute__ ((__nothrow__)) ;
  1477. extern double atof (__const char *__nptr)
  1478. __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) ;
  1479. extern int atoi (__const char *__nptr)
  1480. __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) ;
  1481. extern long int atol (__const char *__nptr)
  1482. __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) ;
  1483. __extension__ extern long long int atoll (__const char *__nptr)
  1484. __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) ;
  1485. extern double strtod (__const char *__restrict __nptr,
  1486. char **__restrict __endptr)
  1487. __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ;
  1488. extern float strtof (__const char *__restrict __nptr,
  1489. char **__restrict __endptr) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ;
  1490. extern long double strtold (__const char *__restrict __nptr,
  1491. char **__restrict __endptr)
  1492. __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ;
  1493. extern long int strtol (__const char *__restrict __nptr,
  1494. char **__restrict __endptr, int __base)
  1495. __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ;
  1496. extern unsigned long int strtoul (__const char *__restrict __nptr,
  1497. char **__restrict __endptr, int __base)
  1498. __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ;
  1499. __extension__
  1500. extern long long int strtoq (__const char *__restrict __nptr,
  1501. char **__restrict __endptr, int __base)
  1502. __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ;
  1503. __extension__
  1504. extern unsigned long long int strtouq (__const char *__restrict __nptr,
  1505. char **__restrict __endptr, int __base)
  1506. __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ;
  1507. __extension__
  1508. extern long long int strtoll (__const char *__restrict __nptr,
  1509. char **__restrict __endptr, int __base)
  1510. __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ;
  1511. __extension__
  1512. extern unsigned long long int strtoull (__const char *__restrict __nptr,
  1513. char **__restrict __endptr, int __base)
  1514. __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ;
  1515. # 297 "../../include/stdlib.h"
  1516. extern char *l64a (long int __n) __attribute__ ((__nothrow__)) ;
  1517. extern long int a64l (__const char *__s)
  1518. __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) ;
  1519. # 1 "../../include/sys/types.h" 1
  1520. # 25 "../../include/sys/types.h"
  1521. #define _SYS_TYPES_H 1
  1522. typedef __u_char u_char;
  1523. typedef __u_short u_short;
  1524. typedef __u_int u_int;
  1525. typedef __u_long u_long;
  1526. typedef __quad_t quad_t;
  1527. typedef __u_quad_t u_quad_t;
  1528. typedef __fsid_t fsid_t;
  1529. #define __u_char_defined
  1530. typedef __loff_t loff_t;
  1531. typedef __ino_t ino_t;
  1532. #define __ino_t_defined
  1533. typedef __ino64_t ino64_t;
  1534. #define __ino64_t_defined
  1535. typedef __dev_t dev_t;
  1536. #define __dev_t_defined
  1537. typedef __gid_t gid_t;
  1538. #define __gid_t_defined
  1539. typedef __mode_t mode_t;
  1540. #define __mode_t_defined
  1541. typedef __nlink_t nlink_t;
  1542. #define __nlink_t_defined
  1543. typedef __uid_t uid_t;
  1544. #define __uid_t_defined
  1545. typedef __off_t off_t;
  1546. #define __off_t_defined
  1547. typedef __off64_t off64_t;
  1548. #define __off64_t_defined
  1549. typedef __pid_t pid_t;
  1550. #define __pid_t_defined
  1551. typedef __id_t id_t;
  1552. #define __id_t_defined
  1553. typedef __ssize_t ssize_t;
  1554. #define __ssize_t_defined
  1555. typedef __daddr_t daddr_t;
  1556. typedef __caddr_t caddr_t;
  1557. #define __daddr_t_defined
  1558. typedef __key_t key_t;
  1559. #define __key_t_defined
  1560. #define __need_clock_t
  1561. #define __need_time_t
  1562. #define __need_timer_t
  1563. #define __need_clockid_t
  1564. # 1 "../../include/time.h" 1
  1565. # 55 "../../include/time.h"
  1566. #define __clock_t_defined 1
  1567. typedef __clock_t clock_t;
  1568. #undef __need_clock_t
  1569. #define __time_t_defined 1
  1570. typedef __time_t time_t;
  1571. #undef __need_time_t
  1572. #define __clockid_t_defined 1
  1573. typedef __clockid_t clockid_t;
  1574. #undef __clockid_time_t
  1575. #define __timer_t_defined 1
  1576. typedef __timer_t timer_t;
  1577. #undef __need_timer_t
  1578. # 128 "../../include/time.h"
  1579. #undef __need_timespec
  1580. # 134 "../../include/sys/types.h" 2
  1581. typedef __useconds_t useconds_t;
  1582. #define __useconds_t_defined
  1583. typedef __suseconds_t suseconds_t;
  1584. #define __suseconds_t_defined
  1585. #define __need_size_t
  1586. # 1 "/opt/STM/STLinux-2.3ear/devkit/sh4/lib/gcc/sh4-linux-uclibc/4.1.1/include/stddef.h" 1 3 4
  1587. # 236 "/opt/STM/STLinux-2.3ear/devkit/sh4/lib/gcc/sh4-linux-uclibc/4.1.1/include/stddef.h" 3 4
  1588. #undef __need_size_t
  1589. # 409 "/opt/STM/STLinux-2.3ear/devkit/sh4/lib/gcc/sh4-linux-uclibc/4.1.1/include/stddef.h" 3 4
  1590. #undef __need_NULL
  1591. # 148 "../../include/sys/types.h" 2
  1592. typedef unsigned long int ulong;
  1593. typedef unsigned short int ushort;
  1594. typedef unsigned int uint;
  1595. # 184 "../../include/sys/types.h"
  1596. #define __intN_t(N,MODE) typedef int int ##N ##_t __attribute__ ((__mode__ (MODE)))
  1597. #define __u_intN_t(N,MODE) typedef unsigned int u_int ##N ##_t __attribute__ ((__mode__ (MODE)))
  1598. #define __int8_t_defined
  1599. typedef int int8_t __attribute__ ((__mode__ (__QI__)));
  1600. typedef int int16_t __attribute__ ((__mode__ (__HI__)));
  1601. typedef int int32_t __attribute__ ((__mode__ (__SI__)));
  1602. typedef int int64_t __attribute__ ((__mode__ (__DI__)));
  1603. typedef unsigned int u_int8_t __attribute__ ((__mode__ (__QI__)));
  1604. typedef unsigned int u_int16_t __attribute__ ((__mode__ (__HI__)));
  1605. typedef unsigned int u_int32_t __attribute__ ((__mode__ (__SI__)));
  1606. typedef unsigned int u_int64_t __attribute__ ((__mode__ (__DI__)));
  1607. typedef int register_t __attribute__ ((__mode__ (__word__)));
  1608. #define __BIT_TYPES_DEFINED__ 1
  1609. # 1 "../../include/sys/select.h" 1
  1610. # 23 "../../include/sys/select.h"
  1611. #define _SYS_SELECT_H 1
  1612. # 1 "../../include/bits/select.h" 1
  1613. # 26 "../../include/bits/select.h"
  1614. #define __FD_ZERO(s) do { unsigned int __i; fd_set *__arr = (s); for (__i = 0; __i < sizeof (fd_set) / sizeof (__fd_mask); ++__i) __FDS_BITS (__arr)[__i] = 0; } while (0)
  1615. #define __FD_SET(d,s) (__FDS_BITS (s)[__FDELT(d)] |= __FDMASK(d))
  1616. #define __FD_CLR(d,s) (__FDS_BITS (s)[__FDELT(d)] &= ~__FDMASK(d))
  1617. #define __FD_ISSET(d,s) ((__FDS_BITS (s)[__FDELT(d)] & __FDMASK(d)) != 0)
  1618. # 32 "../../include/sys/select.h" 2
  1619. # 1 "../../include/bits/sigset.h" 1
  1620. # 21 "../../include/bits/sigset.h"
  1621. #define _SIGSET_H_types 1
  1622. typedef int __sig_atomic_t;
  1623. #define _SIGSET_NWORDS (1024 / (8 * sizeof (unsigned long int)))
  1624. typedef struct
  1625. {
  1626. unsigned long int __val[(1024 / (8 * sizeof (unsigned long int)))];
  1627. } __sigset_t;
  1628. # 35 "../../include/sys/select.h" 2
  1629. #define __sigset_t_defined
  1630. typedef __sigset_t sigset_t;
  1631. #define __need_time_t
  1632. #define __need_timespec
  1633. # 1 "../../include/time.h" 1
  1634. # 68 "../../include/time.h"
  1635. #undef __need_clock_t
  1636. # 84 "../../include/time.h"
  1637. #undef __need_time_t
  1638. # 96 "../../include/time.h"
  1639. #undef __clockid_time_t
  1640. # 108 "../../include/time.h"
  1641. #undef __need_timer_t
  1642. #define __timespec_defined 1
  1643. struct timespec
  1644. {
  1645. __time_t tv_sec;
  1646. long int tv_nsec;
  1647. };
  1648. #undef __need_timespec
  1649. # 45 "../../include/sys/select.h" 2
  1650. #define __need_timeval
  1651. # 1 "../../include/bits/time.h" 1
  1652. # 66 "../../include/bits/time.h"
  1653. #undef __need_timeval
  1654. #define _STRUCT_TIMEVAL 1
  1655. struct timeval
  1656. {
  1657. __time_t tv_sec;
  1658. __suseconds_t tv_usec;
  1659. };
  1660. # 47 "../../include/sys/select.h" 2
  1661. # 55 "../../include/sys/select.h"
  1662. typedef long int __fd_mask;
  1663. #undef __NFDBITS
  1664. #undef __FDELT
  1665. #undef __FDMASK
  1666. #define __NFDBITS (8 * sizeof (__fd_mask))
  1667. #define __FDELT(d) ((d) / __NFDBITS)
  1668. #define __FDMASK(d) ((__fd_mask) 1 << ((d) % __NFDBITS))
  1669. typedef struct
  1670. {
  1671. __fd_mask fds_bits[1024 / (8 * sizeof (__fd_mask))];
  1672. #define __FDS_BITS(set) ((set)->fds_bits)
  1673. } fd_set;
  1674. #define FD_SETSIZE __FD_SETSIZE
  1675. typedef __fd_mask fd_mask;
  1676. #define NFDBITS __NFDBITS
  1677. #define FD_SET(fd,fdsetp) __FD_SET (fd, fdsetp)
  1678. #define FD_CLR(fd,fdsetp) __FD_CLR (fd, fdsetp)
  1679. #define FD_ISSET(fd,fdsetp) __FD_ISSET (fd, fdsetp)
  1680. #define FD_ZERO(fdsetp) __FD_ZERO (fdsetp)
  1681. # 109 "../../include/sys/select.h"
  1682. extern int select (int __nfds, fd_set *__restrict __readfds,
  1683. fd_set *__restrict __writefds,
  1684. fd_set *__restrict __exceptfds,
  1685. struct timeval *__restrict __timeout);
  1686. # 121 "../../include/sys/select.h"
  1687. extern int pselect (int __nfds, fd_set *__restrict __readfds,
  1688. fd_set *__restrict __writefds,
  1689. fd_set *__restrict __exceptfds,
  1690. const struct timespec *__restrict __timeout,
  1691. const __sigset_t *__restrict __sigmask);
  1692. # 217 "../../include/sys/types.h" 2
  1693. # 1 "../../include/sys/sysmacros.h" 1
  1694. # 21 "../../include/sys/sysmacros.h"
  1695. #define _SYS_SYSMACROS_H 1
  1696. __extension__
  1697. static __inline unsigned int gnu_dev_major (unsigned long long int __dev)
  1698. __attribute__ ((__nothrow__));
  1699. __extension__
  1700. static __inline unsigned int gnu_dev_minor (unsigned long long int __dev)
  1701. __attribute__ ((__nothrow__));
  1702. __extension__
  1703. static __inline unsigned long long int gnu_dev_makedev (unsigned int __major,
  1704. unsigned int __minor)
  1705. __attribute__ ((__nothrow__));
  1706. __extension__ static __inline unsigned int
  1707. __attribute__ ((__nothrow__)) gnu_dev_major (unsigned long long int __dev)
  1708. {
  1709. return ((__dev >> 8) & 0xfff) | ((unsigned int) (__dev >> 32) & ~0xfff);
  1710. }
  1711. __extension__ static __inline unsigned int
  1712. __attribute__ ((__nothrow__)) gnu_dev_minor (unsigned long long int __dev)
  1713. {
  1714. return (__dev & 0xff) | ((unsigned int) (__dev >> 12) & ~0xff);
  1715. }
  1716. __extension__ static __inline unsigned long long int
  1717. __attribute__ ((__nothrow__)) gnu_dev_makedev (unsigned int __major, unsigned int __minor)
  1718. {
  1719. return ((__minor & 0xff) | ((__major & 0xfff) << 8)
  1720. | (((unsigned long long int) (__minor & ~0xff)) << 12)
  1721. | (((unsigned long long int) (__major & ~0xfff)) << 32));
  1722. }
  1723. #define major(dev) gnu_dev_major (dev)
  1724. #define minor(dev) gnu_dev_minor (dev)
  1725. #define makedev(maj,min) gnu_dev_makedev (maj, min)
  1726. # 220 "../../include/sys/types.h" 2
  1727. typedef __blksize_t blksize_t;
  1728. #define __blksize_t_defined
  1729. typedef __blkcnt_t blkcnt_t;
  1730. #define __blkcnt_t_defined
  1731. typedef __fsblkcnt_t fsblkcnt_t;
  1732. #define __fsblkcnt_t_defined
  1733. typedef __fsfilcnt_t fsfilcnt_t;
  1734. #define __fsfilcnt_t_defined
  1735. # 258 "../../include/sys/types.h"
  1736. typedef __blkcnt64_t blkcnt64_t;
  1737. typedef __fsblkcnt64_t fsblkcnt64_t;
  1738. typedef __fsfilcnt64_t fsfilcnt64_t;
  1739. # 269 "../../include/sys/types.h"
  1740. # 307 "../../include/stdlib.h" 2
  1741. extern long int random (void) __attribute__ ((__nothrow__));
  1742. extern void srandom (unsigned int __seed) __attribute__ ((__nothrow__));
  1743. extern char *initstate (unsigned int __seed, char *__statebuf,
  1744. size_t __statelen) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2)));
  1745. extern char *setstate (char *__statebuf) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
  1746. struct random_data
  1747. {
  1748. int32_t *fptr;
  1749. int32_t *rptr;
  1750. int32_t *state;
  1751. int rand_type;
  1752. int rand_deg;
  1753. int rand_sep;
  1754. int32_t *end_ptr;
  1755. };
  1756. extern int random_r (struct random_data *__restrict __buf,
  1757. int32_t *__restrict __result) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
  1758. extern int srandom_r (unsigned int __seed, struct random_data *__buf)
  1759. __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2)));
  1760. extern int initstate_r (unsigned int __seed, char *__restrict __statebuf,
  1761. size_t __statelen,
  1762. struct random_data *__restrict __buf)
  1763. __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2, 4)));
  1764. extern int setstate_r (char *__restrict __statebuf,
  1765. struct random_data *__restrict __buf)
  1766. __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
  1767. extern int rand (void) __attribute__ ((__nothrow__));
  1768. extern void srand (unsigned int __seed) __attribute__ ((__nothrow__));
  1769. extern int rand_r (unsigned int *__seed) __attribute__ ((__nothrow__));
  1770. # 382 "../../include/stdlib.h"
  1771. extern double drand48 (void) __attribute__ ((__nothrow__));
  1772. extern double erand48 (unsigned short int __xsubi[3]) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
  1773. extern long int lrand48 (void) __attribute__ ((__nothrow__));
  1774. extern long int nrand48 (unsigned short int __xsubi[3])
  1775. __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
  1776. extern long int mrand48 (void) __attribute__ ((__nothrow__));
  1777. extern long int jrand48 (unsigned short int __xsubi[3])
  1778. __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
  1779. extern void srand48 (long int __seedval) __attribute__ ((__nothrow__));
  1780. extern unsigned short int *seed48 (unsigned short int __seed16v[3])
  1781. __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
  1782. extern void lcong48 (unsigned short int __param[7]) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
  1783. struct drand48_data
  1784. {
  1785. unsigned short int __x[3];
  1786. unsigned short int __old_x[3];
  1787. unsigned short int __c;
  1788. unsigned short int __init;
  1789. unsigned long long int __a;
  1790. };
  1791. extern int drand48_r (struct drand48_data *__restrict __buffer,
  1792. double *__restrict __result) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
  1793. extern int erand48_r (unsigned short int __xsubi[3],
  1794. struct drand48_data *__restrict __buffer,
  1795. double *__restrict __result) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
  1796. extern int lrand48_r (struct drand48_data *__restrict __buffer,
  1797. long int *__restrict __result)
  1798. __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
  1799. extern int nrand48_r (unsigned short int __xsubi[3],
  1800. struct drand48_data *__restrict __buffer,
  1801. long int *__restrict __result)
  1802. __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
  1803. extern int mrand48_r (struct drand48_data *__restrict __buffer,
  1804. long int *__restrict __result)
  1805. __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
  1806. extern int jrand48_r (unsigned short int __xsubi[3],
  1807. struct drand48_data *__restrict __buffer,
  1808. long int *__restrict __result)
  1809. __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
  1810. extern int srand48_r (long int __seedval, struct drand48_data *__buffer)
  1811. __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2)));
  1812. extern int seed48_r (unsigned short int __seed16v[3],
  1813. struct drand48_data *__buffer) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
  1814. extern int lcong48_r (unsigned short int __param[7],
  1815. struct drand48_data *__buffer)
  1816. __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
  1817. #define __malloc_and_calloc_defined
  1818. extern void *malloc (size_t __size) __attribute__ ((__nothrow__)) __attribute__ ((__malloc__)) ;
  1819. extern void *calloc (size_t __nmemb, size_t __size)
  1820. __attribute__ ((__nothrow__)) __attribute__ ((__malloc__)) ;
  1821. extern void *realloc (void *__ptr, size_t __size)
  1822. __attribute__ ((__nothrow__)) __attribute__ ((__malloc__)) __attribute__ ((__warn_unused_result__));
  1823. extern void free (void *__ptr) __attribute__ ((__nothrow__));
  1824. extern void cfree (void *__ptr) __attribute__ ((__nothrow__));
  1825. # 1 "../../include/alloca.h" 1
  1826. # 20 "../../include/alloca.h"
  1827. #define _ALLOCA_H 1
  1828. #define __need_size_t
  1829. # 1 "/opt/STM/STLinux-2.3ear/devkit/sh4/lib/gcc/sh4-linux-uclibc/4.1.1/include/stddef.h" 1 3 4
  1830. # 236 "/opt/STM/STLinux-2.3ear/devkit/sh4/lib/gcc/sh4-linux-uclibc/4.1.1/include/stddef.h" 3 4
  1831. #undef __need_size_t
  1832. # 409 "/opt/STM/STLinux-2.3ear/devkit/sh4/lib/gcc/sh4-linux-uclibc/4.1.1/include/stddef.h" 3 4
  1833. #undef __need_NULL
  1834. # 26 "../../include/alloca.h" 2
  1835. #undef alloca
  1836. extern void *alloca (size_t __size) __attribute__ ((__nothrow__));
  1837. #define alloca(size) __builtin_alloca (size)
  1838. #define __MAX_ALLOCA_CUTOFF 65536
  1839. # 485 "../../include/stdlib.h" 2
  1840. extern void *valloc (size_t __size) __attribute__ ((__nothrow__)) __attribute__ ((__malloc__)) ;
  1841. extern int posix_memalign (void **__memptr, size_t __alignment, size_t __size)
  1842. __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ;
  1843. extern void abort (void) __attribute__ ((__nothrow__)) __attribute__ ((__noreturn__));
  1844. extern int atexit (void (*__func) (void)) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
  1845. extern int on_exit (void (*__func) (int __status, void *__arg), void *__arg)
  1846. __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
  1847. extern void exit (int __status) __attribute__ ((__nothrow__)) __attribute__ ((__noreturn__));
  1848. extern void _Exit (int __status) __attribute__ ((__nothrow__)) __attribute__ ((__noreturn__));
  1849. extern char *getenv (__const char *__name) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ;
  1850. extern char *__secure_getenv (__const char *__name)
  1851. __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ;
  1852. extern int putenv (char *__string) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
  1853. extern int setenv (__const char *__name, __const char *__value, int __replace)
  1854. __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2)));
  1855. extern int unsetenv (__const char *__name) __attribute__ ((__nothrow__));
  1856. #define __UCLIBC_MAX_ATEXIT 20
  1857. extern int clearenv (void) __attribute__ ((__nothrow__));
  1858. # 579 "../../include/stdlib.h"
  1859. extern char *mktemp (char *__template) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ;
  1860. # 590 "../../include/stdlib.h"
  1861. extern int mkstemp (char *__template) __attribute__ ((__nonnull__ (1))) ;
  1862. # 600 "../../include/stdlib.h"
  1863. extern int mkstemp64 (char *__template) __attribute__ ((__nonnull__ (1))) ;
  1864. # 610 "../../include/stdlib.h"
  1865. extern char *mkdtemp (char *__template) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ;
  1866. extern int system (__const char *__command) ;
  1867. # 638 "../../include/stdlib.h"
  1868. extern char *realpath (__const char *__restrict __name,
  1869. char *__restrict __resolved) __attribute__ ((__nothrow__)) ;
  1870. #define __COMPAR_FN_T
  1871. typedef int (*__compar_fn_t) (__const void *, __const void *);
  1872. typedef __compar_fn_t comparison_fn_t;
  1873. extern void *bsearch (__const void *__key, __const void *__base,
  1874. size_t __nmemb, size_t __size, __compar_fn_t __compar)
  1875. __attribute__ ((__nonnull__ (1, 2, 5))) ;
  1876. extern void qsort (void *__base, size_t __nmemb, size_t __size,
  1877. __compar_fn_t __compar) __attribute__ ((__nonnull__ (1, 4)));
  1878. extern int abs (int __x) __attribute__ ((__nothrow__)) __attribute__ ((__const__)) ;
  1879. extern long int labs (long int __x) __attribute__ ((__nothrow__)) __attribute__ ((__const__)) ;
  1880. __extension__ extern long long int llabs (long long int __x)
  1881. __attribute__ ((__nothrow__)) __attribute__ ((__const__)) ;
  1882. extern div_t div (int __numer, int __denom)
  1883. __attribute__ ((__nothrow__)) __attribute__ ((__const__)) ;
  1884. extern ldiv_t ldiv (long int __numer, long int __denom)
  1885. __attribute__ ((__nothrow__)) __attribute__ ((__const__)) ;
  1886. __extension__ extern lldiv_t lldiv (long long int __numer,
  1887. long long int __denom)
  1888. __attribute__ ((__nothrow__)) __attribute__ ((__const__)) ;
  1889. # 719 "../../include/stdlib.h"
  1890. extern char *gcvt (double __value, int __ndigit, char *__buf)
  1891. __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (3))) ;
  1892. # 756 "../../include/stdlib.h"
  1893. extern int mblen (__const char *__s, size_t __n) __attribute__ ((__nothrow__)) ;
  1894. extern int mbtowc (wchar_t *__restrict __pwc,
  1895. __const char *__restrict __s, size_t __n) __attribute__ ((__nothrow__)) ;
  1896. extern int wctomb (char *__s, wchar_t __wchar) __attribute__ ((__nothrow__)) ;
  1897. extern size_t mbstowcs (wchar_t *__restrict __pwcs,
  1898. __const char *__restrict __s, size_t __n) __attribute__ ((__nothrow__));
  1899. extern size_t wcstombs (char *__restrict __s,
  1900. __const wchar_t *__restrict __pwcs, size_t __n)
  1901. __attribute__ ((__nothrow__));
  1902. # 785 "../../include/stdlib.h"
  1903. extern int rpmatch (__const char *__response) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ;
  1904. # 796 "../../include/stdlib.h"
  1905. extern int getsubopt (char **__restrict __optionp,
  1906. char *__const *__restrict __tokens,
  1907. char **__restrict __valuep)
  1908. __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2, 3))) ;
  1909. extern void setkey (__const char *__key) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
  1910. extern int posix_openpt (int __oflag) ;
  1911. extern int grantpt (int __fd) __attribute__ ((__nothrow__));
  1912. extern int unlockpt (int __fd) __attribute__ ((__nothrow__));
  1913. extern char *ptsname (int __fd) __attribute__ ((__nothrow__)) ;
  1914. extern int ptsname_r (int __fd, char *__buf, size_t __buflen)
  1915. __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2)));
  1916. extern int getpt (void);
  1917. # 860 "../../include/stdlib.h"
  1918. #undef __need_malloc_and_calloc
  1919. # 12 "tsp_common.c" 2
  1920. # 1 "../../include/string.h" 1
  1921. # 24 "../../include/string.h"
  1922. #define _STRING_H 1
  1923. #define __need_size_t
  1924. #define __need_NULL
  1925. # 1 "/opt/STM/STLinux-2.3ear/devkit/sh4/lib/gcc/sh4-linux-uclibc/4.1.1/include/stddef.h" 1 3 4
  1926. # 236 "/opt/STM/STLinux-2.3ear/devkit/sh4/lib/gcc/sh4-linux-uclibc/4.1.1/include/stddef.h" 3 4
  1927. #undef __need_size_t
  1928. # 398 "/opt/STM/STLinux-2.3ear/devkit/sh4/lib/gcc/sh4-linux-uclibc/4.1.1/include/stddef.h" 3 4
  1929. #undef NULL
  1930. #define NULL ((void *)0)
  1931. #undef __need_NULL
  1932. # 34 "../../include/string.h" 2
  1933. extern void *memcpy (void *__restrict __dest,
  1934. __const void *__restrict __src, size_t __n)
  1935. __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
  1936. extern void *memmove (void *__dest, __const void *__src, size_t __n)
  1937. __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
  1938. extern void *memccpy (void *__restrict __dest, __const void *__restrict __src,
  1939. int __c, size_t __n)
  1940. __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
  1941. extern void *memset (void *__s, int __c, size_t __n) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
  1942. extern int memcmp (__const void *__s1, __const void *__s2, size_t __n)
  1943. __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2)));
  1944. extern void *memchr (__const void *__s, int __c, size_t __n)
  1945. __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1)));
  1946. extern void *rawmemchr (__const void *__s, int __c)
  1947. __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1)));
  1948. extern void *memrchr (__const void *__s, int __c, size_t __n)
  1949. __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1)));
  1950. extern char *strcpy (char *__restrict __dest, __const char *__restrict __src)
  1951. __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
  1952. extern char *strncpy (char *__restrict __dest,
  1953. __const char *__restrict __src, size_t __n)
  1954. __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
  1955. extern char *strcat (char *__restrict __dest, __const char *__restrict __src)
  1956. __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
  1957. extern char *strncat (char *__restrict __dest, __const char *__restrict __src,
  1958. size_t __n) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
  1959. extern int strcmp (__const char *__s1, __const char *__s2)
  1960. __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2)));
  1961. extern int strncmp (__const char *__s1, __const char *__s2, size_t __n)
  1962. __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2)));
  1963. extern int strcoll (__const char *__s1, __const char *__s2)
  1964. __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2)));
  1965. extern size_t strxfrm (char *__restrict __dest,
  1966. __const char *__restrict __src, size_t __n)
  1967. __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2)));
  1968. # 130 "../../include/string.h"
  1969. extern char *strdup (__const char *__s)
  1970. __attribute__ ((__nothrow__)) __attribute__ ((__malloc__)) __attribute__ ((__nonnull__ (1)));
  1971. extern char *strndup (__const char *__string, size_t __n)
  1972. __attribute__ ((__nothrow__)) __attribute__ ((__malloc__)) __attribute__ ((__nonnull__ (1)));
  1973. #define strdupa(s) (__extension__ ({ __const char *__old = (s); size_t __len = strlen (__old) + 1; char *__new = (char *) __builtin_alloca (__len); (char *) memcpy (__new, __old, __len); }))
  1974. # 154 "../../include/string.h"
  1975. #define strndupa(s,n) (__extension__ ({ __const char *__old = (s); size_t __len = strnlen (__old, (n)); char *__new = (char *) __builtin_alloca (__len + 1); __new[__len] = '\0'; (char *) memcpy (__new, __old, __len); }))
  1976. # 165 "../../include/string.h"
  1977. extern char *strchr (__const char *__s, int __c)
  1978. __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1)));
  1979. extern char *strrchr (__const char *__s, int __c)
  1980. __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1)));
  1981. extern char *strchrnul (__const char *__s, int __c)
  1982. __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1)));
  1983. extern size_t strcspn (__const char *__s, __const char *__reject)
  1984. __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2)));
  1985. extern size_t strspn (__const char *__s, __const char *__accept)
  1986. __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2)));
  1987. extern char *strpbrk (__const char *__s, __const char *__accept)
  1988. __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2)));
  1989. extern char *strstr (__const char *__haystack, __const char *__needle)
  1990. __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2)));
  1991. extern char *strtok (char *__restrict __s, __const char *__restrict __delim)
  1992. __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2)));
  1993. # 212 "../../include/string.h"
  1994. extern char *strtok_r (char *__restrict __s, __const char *__restrict __delim,
  1995. char **__restrict __save_ptr)
  1996. __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2, 3)));
  1997. extern char *strcasestr (__const char *__haystack, __const char *__needle)
  1998. __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2)));
  1999. extern void *memmem (__const void *__haystack, size_t __haystacklen,
  2000. __const void *__needle, size_t __needlelen)
  2001. __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 3)));
  2002. # 238 "../../include/string.h"
  2003. extern void *mempcpy (void *__restrict __dest,
  2004. __const void *__restrict __src, size_t __n)
  2005. __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
  2006. extern size_t strlen (__const char *__s)
  2007. __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1)));
  2008. extern size_t strnlen (__const char *__string, size_t __maxlen)
  2009. __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1)));
  2010. extern char *strerror (int __errnum) __attribute__ ((__nothrow__));
  2011. # 285 "../../include/string.h"
  2012. extern char *__glibc_strerror_r (int __errnum, char *__buf, size_t __buflen)
  2013. __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2)));
  2014. extern char * strerror_r (int __errnum, char *__buf, size_t __buflen) __asm__ ("" "__glibc_strerror_r") __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2)));
  2015. # 306 "../../include/string.h"
  2016. extern void bcopy (__const void *__src, void *__dest, size_t __n)
  2017. __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
  2018. extern void bzero (void *__s, size_t __n) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
  2019. extern int bcmp (__const void *__s1, __const void *__s2, size_t __n)
  2020. __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2)));
  2021. extern char *index (__const char *__s, int __c)
  2022. __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1)));
  2023. extern char *rindex (__const char *__s, int __c)
  2024. __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1)));
  2025. # 339 "../../include/string.h"
  2026. extern int ffs (int __i) __attribute__ ((__nothrow__)) __attribute__ ((__const__));
  2027. # 352 "../../include/string.h"
  2028. extern int strcasecmp (__const char *__s1, __const char *__s2)
  2029. __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2)));
  2030. extern int strncasecmp (__const char *__s1, __const char *__s2, size_t __n)
  2031. __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2)));
  2032. # 375 "../../include/string.h"
  2033. extern char *strsep (char **__restrict __stringp,
  2034. __const char *__restrict __delim)
  2035. __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
  2036. # 388 "../../include/string.h"
  2037. extern char *strsignal (int __sig) __attribute__ ((__nothrow__));
  2038. extern char *stpcpy (char *__restrict __dest, __const char *__restrict __src)
  2039. __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
  2040. # 405 "../../include/string.h"
  2041. extern char *stpncpy (char *__restrict __dest,
  2042. __const char *__restrict __src, size_t __n)
  2043. __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
  2044. # 422 "../../include/string.h"
  2045. extern char *basename (__const char *__filename) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
  2046. extern size_t strlcat(char *__restrict dst, const char *__restrict src,
  2047. size_t n) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
  2048. extern size_t strlcpy(char *__restrict dst, const char *__restrict src,
  2049. size_t n) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
  2050. # 13 "tsp_common.c" 2
  2051. # 1 "../../include/locale.h" 1
  2052. # 24 "../../include/locale.h"
  2053. #define _LOCALE_H 1
  2054. #define __need_NULL
  2055. # 1 "/opt/STM/STLinux-2.3ear/devkit/sh4/lib/gcc/sh4-linux-uclibc/4.1.1/include/stddef.h" 1 3 4
  2056. # 398 "/opt/STM/STLinux-2.3ear/devkit/sh4/lib/gcc/sh4-linux-uclibc/4.1.1/include/stddef.h" 3 4
  2057. #undef NULL
  2058. #define NULL ((void *)0)
  2059. #undef __need_NULL
  2060. # 30 "../../include/locale.h" 2
  2061. # 1 "../../include/bits/uClibc_locale.h" 1
  2062. # 31 "../../include/bits/uClibc_locale.h"
  2063. #define _UCLIBC_LOCALE_H
  2064. #undef __LOCALE_C_ONLY
  2065. # 52 "../../include/bits/uClibc_locale.h"
  2066. #define __NL_ITEM_CATEGORY_SHIFT (8)
  2067. #define __NL_ITEM_INDEX_MASK (0xff)
  2068. #define __LC_CTYPE 0
  2069. #define __LC_NUMERIC 1
  2070. #define __LC_MONETARY 2
  2071. #define __LC_TIME 3
  2072. #define __LC_COLLATE 4
  2073. #define __LC_MESSAGES 5
  2074. #define __LC_ALL 6
  2075. # 1 "/opt/STM/STLinux-2.3ear/devkit/sh4/lib/gcc/sh4-linux-uclibc/4.1.1/include/stddef.h" 1 3 4
  2076. # 43 "/opt/STM/STLinux-2.3ear/devkit/sh4/lib/gcc/sh4-linux-uclibc/4.1.1/include/stddef.h" 3 4
  2077. #define _STDDEF_H
  2078. #define _STDDEF_H_
  2079. #define _ANSI_STDDEF_H
  2080. #define __STDDEF_H__
  2081. # 141 "/opt/STM/STLinux-2.3ear/devkit/sh4/lib/gcc/sh4-linux-uclibc/4.1.1/include/stddef.h" 3 4
  2082. #define _PTRDIFF_T
  2083. #define _T_PTRDIFF_
  2084. #define _T_PTRDIFF
  2085. #define __PTRDIFF_T
  2086. #define _PTRDIFF_T_
  2087. #define _BSD_PTRDIFF_T_
  2088. #define ___int_ptrdiff_t_h
  2089. #define _GCC_PTRDIFF_T
  2090. typedef int ptrdiff_t;
  2091. # 163 "/opt/STM/STLinux-2.3ear/devkit/sh4/lib/gcc/sh4-linux-uclibc/4.1.1/include/stddef.h" 3 4
  2092. #undef __need_ptrdiff_t
  2093. # 236 "/opt/STM/STLinux-2.3ear/devkit/sh4/lib/gcc/sh4-linux-uclibc/4.1.1/include/stddef.h" 3 4
  2094. #undef __need_size_t
  2095. # 345 "/opt/STM/STLinux-2.3ear/devkit/sh4/lib/gcc/sh4-linux-uclibc/4.1.1/include/stddef.h" 3 4
  2096. #undef __need_wchar_t
  2097. # 398 "/opt/STM/STLinux-2.3ear/devkit/sh4/lib/gcc/sh4-linux-uclibc/4.1.1/include/stddef.h" 3 4
  2098. #undef NULL
  2099. #define NULL ((void *)0)
  2100. #undef __need_NULL
  2101. #define offsetof(TYPE,MEMBER) __builtin_offsetof (TYPE, MEMBER)
  2102. # 70 "../../include/bits/uClibc_locale.h" 2
  2103. # 1 "../../include/stdint.h" 1
  2104. # 24 "../../include/stdint.h"
  2105. #define _STDINT_H 1
  2106. # 1 "../../include/bits/wordsize.h" 1
  2107. # 19 "../../include/bits/wordsize.h"
  2108. #define __WORDSIZE 32
  2109. # 31 "../../include/stdint.h" 2
  2110. # 51 "../../include/stdint.h"
  2111. typedef unsigned char uint8_t;
  2112. typedef unsigned short int uint16_t;
  2113. typedef unsigned int uint32_t;
  2114. #define __uint32_t_defined
  2115. __extension__
  2116. typedef unsigned long long int uint64_t;
  2117. typedef signed char int_least8_t;
  2118. typedef short int int_least16_t;
  2119. typedef int int_least32_t;
  2120. __extension__
  2121. typedef long long int int_least64_t;
  2122. typedef unsigned char uint_least8_t;
  2123. typedef unsigned short int uint_least16_t;
  2124. typedef unsigned int uint_least32_t;
  2125. __extension__
  2126. typedef unsigned long long int uint_least64_t;
  2127. typedef signed char int_fast8_t;
  2128. typedef int int_fast16_t;
  2129. typedef int int_fast32_t;
  2130. __extension__
  2131. typedef long long int int_fast64_t;
  2132. typedef unsigned char uint_fast8_t;
  2133. typedef unsigned int uint_fast16_t;
  2134. typedef unsigned int uint_fast32_t;
  2135. __extension__
  2136. typedef unsigned long long int uint_fast64_t;
  2137. # 128 "../../include/stdint.h"
  2138. typedef int intptr_t;
  2139. #define __intptr_t_defined
  2140. typedef unsigned int uintptr_t;
  2141. # 140 "../../include/stdint.h"
  2142. __extension__
  2143. typedef long long int intmax_t;
  2144. __extension__
  2145. typedef unsigned long long int uintmax_t;
  2146. # 155 "../../include/stdint.h"
  2147. #define __INT64_C(c) c ## LL
  2148. #define __UINT64_C(c) c ## ULL
  2149. #define INT8_MIN (-128)
  2150. #define INT16_MIN (-32767-1)
  2151. #define INT32_MIN (-2147483647-1)
  2152. #define INT64_MIN (-__INT64_C(9223372036854775807)-1)
  2153. #define INT8_MAX (127)
  2154. #define INT16_MAX (32767)
  2155. #define INT32_MAX (2147483647)
  2156. #define INT64_MAX (__INT64_C(9223372036854775807))
  2157. #define UINT8_MAX (255)
  2158. #define UINT16_MAX (65535)
  2159. #define UINT32_MAX (4294967295U)
  2160. #define UINT64_MAX (__UINT64_C(18446744073709551615))
  2161. #define INT_LEAST8_MIN (-128)
  2162. #define INT_LEAST16_MIN (-32767-1)
  2163. #define INT_LEAST32_MIN (-2147483647-1)
  2164. #define INT_LEAST64_MIN (-__INT64_C(9223372036854775807)-1)
  2165. #define INT_LEAST8_MAX (127)
  2166. #define INT_LEAST16_MAX (32767)
  2167. #define INT_LEAST32_MAX (2147483647)
  2168. #define INT_LEAST64_MAX (__INT64_C(9223372036854775807))
  2169. #define UINT_LEAST8_MAX (255)
  2170. #define UINT_LEAST16_MAX (65535)
  2171. #define UINT_LEAST32_MAX (4294967295U)
  2172. #define UINT_LEAST64_MAX (__UINT64_C(18446744073709551615))
  2173. #define INT_FAST8_MIN (-128)
  2174. #define INT_FAST16_MIN (-2147483647-1)
  2175. #define INT_FAST32_MIN (-2147483647-1)
  2176. #define INT_FAST64_MIN (-__INT64_C(9223372036854775807)-1)
  2177. #define INT_FAST8_MAX (127)
  2178. #define INT_FAST16_MAX (2147483647)
  2179. #define INT_FAST32_MAX (2147483647)
  2180. #define INT_FAST64_MAX (__INT64_C(9223372036854775807))
  2181. #define UINT_FAST8_MAX (255)
  2182. #define UINT_FAST16_MAX (4294967295U)
  2183. #define UINT_FAST32_MAX (4294967295U)
  2184. #define UINT_FAST64_MAX (__UINT64_C(18446744073709551615))
  2185. # 236 "../../include/stdint.h"
  2186. #define INTPTR_MIN (-2147483647-1)
  2187. #define INTPTR_MAX (2147483647)
  2188. #define UINTPTR_MAX (4294967295U)
  2189. #define INTMAX_MIN (-__INT64_C(9223372036854775807)-1)
  2190. #define INTMAX_MAX (__INT64_C(9223372036854775807))
  2191. #define UINTMAX_MAX (__UINT64_C(18446744073709551615))
  2192. # 266 "../../include/stdint.h"
  2193. #define PTRDIFF_MIN (-2147483647-1)
  2194. #define PTRDIFF_MAX (2147483647)
  2195. #define SIG_ATOMIC_MIN (-2147483647-1)
  2196. #define SIG_ATOMIC_MAX (2147483647)
  2197. #define SIZE_MAX (4294967295U)
  2198. #define WCHAR_MIN __WCHAR_MIN
  2199. #define WCHAR_MAX __WCHAR_MAX
  2200. #define WINT_MIN (0u)
  2201. #define WINT_MAX (4294967295u)
  2202. # 302 "../../include/stdint.h"
  2203. #define INT8_C(c) c
  2204. #define INT16_C(c) c
  2205. #define INT32_C(c) c
  2206. #define INT64_C(c) c ## LL
  2207. #define UINT8_C(c) c ## U
  2208. #define UINT16_C(c) c ## U
  2209. #define UINT32_C(c) c ## U
  2210. #define UINT64_C(c) c ## ULL
  2211. #define INTMAX_C(c) c ## LL
  2212. #define UINTMAX_C(c) c ## ULL
  2213. # 71 "../../include/bits/uClibc_locale.h" 2
  2214. # 1 "../../include/bits/uClibc_touplow.h" 1
  2215. # 31 "../../include/bits/uClibc_touplow.h"
  2216. #define _UCLIBC_TOUPLOW_H
  2217. typedef __uint16_t __ctype_mask_t;
  2218. typedef __int16_t __ctype_touplow_t;
  2219. #define __UCLIBC_CTYPE_B_TBL_OFFSET 128
  2220. #define __UCLIBC_CTYPE_TO_TBL_OFFSET 128
  2221. # 72 "../../include/bits/uClibc_locale.h" 2
  2222. # 1 "../../include/bits/uClibc_locale_data.h" 1
  2223. #define __lc_time_data_LEN 25900
  2224. #define __lc_time_rows_LEN 7650
  2225. #define __lc_time_item_offsets_LEN 50
  2226. #define __lc_time_item_idx_LEN 3190
  2227. #define __lc_numeric_data_LEN 22
  2228. #define __lc_numeric_rows_LEN 42
  2229. #define __lc_numeric_item_offsets_LEN 3
  2230. #define __lc_numeric_item_idx_LEN 13
  2231. #define __lc_monetary_data_LEN 1578
  2232. #define __lc_monetary_rows_LEN 3652
  2233. #define __lc_monetary_item_offsets_LEN 22
  2234. #define __lc_monetary_item_idx_LEN 391
  2235. #define __lc_messages_data_LEN 1583
  2236. #define __lc_messages_rows_LEN 312
  2237. #define __lc_messages_item_offsets_LEN 4
  2238. #define __lc_messages_item_idx_LEN 170
  2239. #define __lc_ctype_data_LEN 51
  2240. #define __lc_ctype_rows_LEN 20
  2241. #define __lc_ctype_item_offsets_LEN 10
  2242. #define __lc_ctype_item_idx_LEN 20
  2243. #define __CTYPE_HAS_UTF_8_LOCALES 1
  2244. #define __LOCALE_DATA_CATEGORIES 6
  2245. #define __LOCALE_DATA_WIDTH_LOCALES 9
  2246. #define __LOCALE_DATA_NUM_LOCALES 315
  2247. #define __LOCALE_DATA_NUM_LOCALE_NAMES 167
  2248. #define __LOCALE_DATA_AT_MODIFIERS_LENGTH 18
  2249. #define __lc_names_LEN 69
  2250. #define __lc_collate_data_LEN 91141
  2251. #define __CTYPE_HAS_8_BIT_LOCALES 1
  2252. #define __LOCALE_DATA_Cctype_IDX_SHIFT 3
  2253. #define __LOCALE_DATA_Cctype_IDX_LEN 16
  2254. #define __LOCALE_DATA_Cctype_ROW_LEN 4
  2255. #define __LOCALE_DATA_Cctype_PACKED 1
  2256. #define __LOCALE_DATA_Cuplow_IDX_SHIFT 3
  2257. #define __LOCALE_DATA_Cuplow_IDX_LEN 16
  2258. #define __LOCALE_DATA_Cuplow_ROW_LEN 8
  2259. #define __LOCALE_DATA_Cc2wc_IDX_LEN 16
  2260. #define __LOCALE_DATA_Cc2wc_IDX_SHIFT 3
  2261. #define __LOCALE_DATA_Cc2wc_ROW_LEN 8
  2262. typedef struct {
  2263. unsigned char idx8ctype[16];
  2264. unsigned char idx8uplow[16];
  2265. unsigned char idx8c2wc[16];
  2266. unsigned char idx8wc2c[38];
  2267. } __codeset_8_bit_t;
  2268. #define __LOCALE_DATA_Cwc2c_DOMAIN_MAX 0x25ff
  2269. #define __LOCALE_DATA_Cwc2c_TI_SHIFT 4
  2270. #define __LOCALE_DATA_Cwc2c_TT_SHIFT 4
  2271. #define __LOCALE_DATA_Cwc2c_II_LEN 38
  2272. #define __LOCALE_DATA_Cwc2c_TI_LEN 1072
  2273. #define __LOCALE_DATA_Cwc2c_TT_LEN 3456
  2274. #define __LOCALE_DATA_Cwc2c_TBL_LEN 4528
  2275. #define __LOCALE_DATA_Cuplow_TBL_LEN 504
  2276. #define __LOCALE_DATA_Cctype_TBL_LEN 420
  2277. #define __LOCALE_DATA_Cc2wc_TBL_LEN 1760
  2278. #define __LOCALE_DATA_NUM_CODESETS 23
  2279. #define __LOCALE_DATA_CODESET_LIST "\x18\x22\x31\x38\x3f\x4b\x56\x62" "\x6e\x7a\x86\x92\x9d\xa8\xb3\xbe" "\xc9\xd4\xdf\xea\xf1\xf8\xff" "\0" "ARMSCII-8\0" "ANSI_X3.4-1968\0" "CP1251\0" "CP1255\0" "GEORGIAN-PS\0" "ISO-8859-1\0" "ISO-8859-10\0" "ISO-8859-13\0" "ISO-8859-14\0" "ISO-8859-15\0" "ISO-8859-16\0" "ISO-8859-2\0" "ISO-8859-3\0" "ISO-8859-4\0" "ISO-8859-5\0" "ISO-8859-6\0" "ISO-8859-7\0" "ISO-8859-8\0" "ISO-8859-9\0" "KOI8-R\0" "KOI8-T\0" "KOI8-U\0" "TIS-620\0"
  2280. # 102 "../../include/bits/uClibc_locale_data.h"
  2281. #define __CTYPE_HAS_CODESET_ARMSCII_8
  2282. #define __CTYPE_HAS_CODESET_ANSI_X3 .4_1968
  2283. #define __CTYPE_HAS_CODESET_CP1251
  2284. #define __CTYPE_HAS_CODESET_CP1255
  2285. #define __CTYPE_HAS_CODESET_GEORGIAN_PS
  2286. #define __CTYPE_HAS_CODESET_ISO_8859_1
  2287. #define __CTYPE_HAS_CODESET_ISO_8859_10
  2288. #define __CTYPE_HAS_CODESET_ISO_8859_13
  2289. #define __CTYPE_HAS_CODESET_ISO_8859_14
  2290. #define __CTYPE_HAS_CODESET_ISO_8859_15
  2291. #define __CTYPE_HAS_CODESET_ISO_8859_16
  2292. #define __CTYPE_HAS_CODESET_ISO_8859_2
  2293. #define __CTYPE_HAS_CODESET_ISO_8859_3
  2294. #define __CTYPE_HAS_CODESET_ISO_8859_4
  2295. #define __CTYPE_HAS_CODESET_ISO_8859_5
  2296. #define __CTYPE_HAS_CODESET_ISO_8859_6
  2297. #define __CTYPE_HAS_CODESET_ISO_8859_7
  2298. #define __CTYPE_HAS_CODESET_ISO_8859_8
  2299. #define __CTYPE_HAS_CODESET_ISO_8859_9
  2300. #define __CTYPE_HAS_CODESET_KOI8_R
  2301. #define __CTYPE_HAS_CODESET_KOI8_T
  2302. #define __CTYPE_HAS_CODESET_KOI8_U
  2303. #define __CTYPE_HAS_CODESET_TIS_620
  2304. #define __CTYPE_HAS_CODESET_UTF_8
  2305. #define __LOCALE_DATA_WC_TABLE_DOMAIN_MAX 0x2ffff
  2306. #define __LOCALE_DATA_WCctype_II_LEN 768
  2307. #define __LOCALE_DATA_WCctype_TI_LEN 1888
  2308. #define __LOCALE_DATA_WCctype_UT_LEN 948
  2309. #define __LOCALE_DATA_WCctype_II_SHIFT 5
  2310. #define __LOCALE_DATA_WCctype_TI_SHIFT 3
  2311. #define __LOCALE_DATA_WCuplow_II_LEN 384
  2312. #define __LOCALE_DATA_WCuplow_TI_LEN 576
  2313. #define __LOCALE_DATA_WCuplow_UT_LEN 720
  2314. #define __LOCALE_DATA_WCuplow_II_SHIFT 6
  2315. #define __LOCALE_DATA_WCuplow_TI_SHIFT 3
  2316. #define __LOCALE_DATA_WCuplow_diffs 98
  2317. #define __WCHAR_ENABLED
  2318. #define __LOCALE_DATA_WCctype_TBL_LEN (__LOCALE_DATA_WCctype_II_LEN + __LOCALE_DATA_WCctype_TI_LEN + __LOCALE_DATA_WCctype_UT_LEN)
  2319. #define __LOCALE_DATA_WCuplow_TBL_LEN (__LOCALE_DATA_WCuplow_II_LEN + __LOCALE_DATA_WCuplow_TI_LEN + __LOCALE_DATA_WCuplow_UT_LEN)
  2320. #define __LOCALE_DATA_WCuplow_diff_TBL_LEN (2 * __LOCALE_DATA_WCuplow_diffs)
  2321. #undef __PASTE2
  2322. #define __PASTE2(A,B) A ## B
  2323. #undef __PASTE3
  2324. #define __PASTE3(A,B,C) A ## B ## C
  2325. #define __LOCALE_DATA_COMMON_MMAP(X) unsigned char __PASTE3(lc_,X,_data)[__PASTE3(__lc_,X,_data_LEN)];
  2326. #define __LOCALE_DATA_COMMON_MMIDX(X) unsigned char __PASTE3(lc_,X,_rows)[__PASTE3(__lc_,X,_rows_LEN)]; uint16_t __PASTE3(lc_,X,_item_offsets)[__PASTE3(__lc_,X,_item_offsets_LEN)]; uint16_t __PASTE3(lc_,X,_item_idx)[__PASTE3(__lc_,X,_item_idx_LEN)];
  2327. typedef struct {
  2328. const unsigned char tbl8ctype[420];
  2329. const unsigned char tbl8uplow[504];
  2330. const uint16_t tbl8c2wc[1760];
  2331. const unsigned char tbl8wc2c[4528];
  2332. const unsigned char tblwctype[(768 + 1888 + 948)];
  2333. const unsigned char tblwuplow[(384 + 576 + 720)];
  2334. const int16_t tblwuplow_diff[(2 * 98)];
  2335. unsigned char lc_ctype_data[51];;
  2336. unsigned char lc_numeric_data[22];;
  2337. unsigned char lc_monetary_data[1578];;
  2338. unsigned char lc_time_data[25900];;
  2339. unsigned char lc_messages_data[1583];;
  2340. const __codeset_8_bit_t codeset_8_bit[23];
  2341. unsigned char lc_ctype_rows[20]; uint16_t lc_ctype_item_offsets[10]; uint16_t lc_ctype_item_idx[20];;
  2342. unsigned char lc_numeric_rows[42]; uint16_t lc_numeric_item_offsets[3]; uint16_t lc_numeric_item_idx[13];;
  2343. unsigned char lc_monetary_rows[3652]; uint16_t lc_monetary_item_offsets[22]; uint16_t lc_monetary_item_idx[391];;
  2344. unsigned char lc_time_rows[7650]; uint16_t lc_time_item_offsets[50]; uint16_t lc_time_item_idx[3190];;
  2345. unsigned char lc_messages_rows[312]; uint16_t lc_messages_item_offsets[4]; uint16_t lc_messages_item_idx[170];;
  2346. const uint16_t collate_data[91141];
  2347. unsigned char lc_common_item_offsets_LEN[6];
  2348. size_t lc_common_tbl_offsets[6 * 4];
  2349. unsigned char locales[315 * 9];
  2350. unsigned char locale_names5[5*167];
  2351. unsigned char locale_at_modifiers[18];
  2352. unsigned char lc_names[69];
  2353. unsigned char codeset_list[sizeof("\x18\x22\x31\x38\x3f\x4b\x56\x62" "\x6e\x7a\x86\x92\x9d\xa8\xb3\xbe" "\xc9\xd4\xdf\xea\xf1\xf8\xff" "\0" "ARMSCII-8\0" "ANSI_X3.4-1968\0" "CP1251\0" "CP1255\0" "GEORGIAN-PS\0" "ISO-8859-1\0" "ISO-8859-10\0" "ISO-8859-13\0" "ISO-8859-14\0" "ISO-8859-15\0" "ISO-8859-16\0" "ISO-8859-2\0" "ISO-8859-3\0" "ISO-8859-4\0" "ISO-8859-5\0" "ISO-8859-6\0" "ISO-8859-7\0" "ISO-8859-8\0" "ISO-8859-9\0" "KOI8-R\0" "KOI8-T\0" "KOI8-U\0" "TIS-620\0")];
  2354. } __locale_mmap_t;
  2355. extern const __locale_mmap_t *__locale_mmap;
  2356. # 75 "../../include/bits/uClibc_locale.h" 2
  2357. enum {
  2358. __ctype_encoding_7_bit,
  2359. __ctype_encoding_utf8,
  2360. __ctype_encoding_8_bit
  2361. };
  2362. #define LOCALE_STRING_SIZE (2 * __LC_ALL + 2)
  2363. # 102 "../../include/bits/uClibc_locale.h"
  2364. typedef struct {
  2365. uint16_t num_weights;
  2366. uint16_t num_starters;
  2367. uint16_t ii_shift;
  2368. uint16_t ti_shift;
  2369. uint16_t ii_len;
  2370. uint16_t ti_len;
  2371. uint16_t max_weight;
  2372. uint16_t num_col_base;
  2373. uint16_t max_col_index;
  2374. uint16_t undefined_idx;
  2375. uint16_t range_low;
  2376. uint16_t range_count;
  2377. uint16_t range_base_weight;
  2378. uint16_t range_rule_offset;
  2379. uint16_t ii_mask;
  2380. uint16_t ti_mask;
  2381. const uint16_t *index2weight_tbl;
  2382. const uint16_t *index2ruleidx_tbl;
  2383. const uint16_t *multistart_tbl;
  2384. const uint16_t *wcs2colidt_tbl;
  2385. const uint16_t *overrides_tbl;
  2386. const uint16_t *weightstr;
  2387. const uint16_t *ruletable;
  2388. uint16_t *index2weight;
  2389. uint16_t *index2ruleidx;
  2390. uint16_t MAX_WEIGHTS;
  2391. } __collate_t;
  2392. typedef struct __uclibc_locale_struct {
  2393. __ctype_mask_t __ctype_b_data[256 + 128];
  2394. __ctype_touplow_t __ctype_tolower_data[256 + 128];
  2395. __ctype_touplow_t __ctype_toupper_data[256 + 128];
  2396. unsigned char cur_locale[(2 * 6 + 2)];
  2397. uint16_t category_offsets[6];
  2398. unsigned char category_item_count[6];
  2399. unsigned char encoding;
  2400. unsigned char mb_cur_max;
  2401. const unsigned char outdigit_length[10];
  2402. const unsigned char *idx8ctype;
  2403. const unsigned char *tbl8ctype;
  2404. const unsigned char *idx8uplow;
  2405. const unsigned char *tbl8uplow;
  2406. const unsigned char *idx8c2wc;
  2407. const uint16_t *tbl8c2wc;
  2408. const unsigned char *idx8wc2c;
  2409. const unsigned char *tbl8wc2c;
  2410. const uint16_t *code2flag;
  2411. const unsigned char *tblwctype;
  2412. const unsigned char *tblwuplow;
  2413. const int16_t *tblwuplow_diff;
  2414. wchar_t decimal_point_wc;
  2415. wchar_t thousands_sep_wc;
  2416. int decimal_point_len;
  2417. int thousands_sep_len;
  2418. const char *outdigit0_mb;
  2419. const char *outdigit1_mb;
  2420. const char *outdigit2_mb;
  2421. const char *outdigit3_mb;
  2422. const char *outdigit4_mb;
  2423. const char *outdigit5_mb;
  2424. const char *outdigit6_mb;
  2425. const char *outdigit7_mb;
  2426. const char *outdigit8_mb;
  2427. const char *outdigit9_mb;
  2428. const char *codeset;
  2429. const char *decimal_point;
  2430. const char *thousands_sep;
  2431. const char *grouping;
  2432. const char *int_curr_symbol;
  2433. const char *currency_symbol;
  2434. const char *mon_decimal_point;
  2435. const char *mon_thousands_sep;
  2436. const char *mon_grouping;
  2437. const char *positive_sign;
  2438. const char *negative_sign;
  2439. const char *int_frac_digits;
  2440. const char *frac_digits;
  2441. const char *p_cs_precedes;
  2442. const char *p_sep_by_space;
  2443. const char *n_cs_precedes;
  2444. const char *n_sep_by_space;
  2445. const char *p_sign_posn;
  2446. const char *n_sign_posn;
  2447. const char *int_p_cs_precedes;
  2448. const char *int_p_sep_by_space;
  2449. const char *int_n_cs_precedes;
  2450. const char *int_n_sep_by_space;
  2451. const char *int_p_sign_posn;
  2452. const char *int_n_sign_posn;
  2453. const char *crncystr;
  2454. const char *abday_1;
  2455. const char *abday_2;
  2456. const char *abday_3;
  2457. const char *abday_4;
  2458. const char *abday_5;
  2459. const char *abday_6;
  2460. const char *abday_7;
  2461. const char *day_1;
  2462. const char *day_2;
  2463. const char *day_3;
  2464. const char *day_4;
  2465. const char *day_5;
  2466. const char *day_6;
  2467. const char *day_7;
  2468. const char *abmon_1;
  2469. const char *abmon_2;
  2470. const char *abmon_3;
  2471. const char *abmon_4;
  2472. const char *abmon_5;
  2473. const char *abmon_6;
  2474. const char *abmon_7;
  2475. const char *abmon_8;
  2476. const char *abmon_9;
  2477. const char *abmon_10;
  2478. const char *abmon_11;
  2479. const char *abmon_12;
  2480. const char *mon_1;
  2481. const char *mon_2;
  2482. const char *mon_3;
  2483. const char *mon_4;
  2484. const char *mon_5;
  2485. const char *mon_6;
  2486. const char *mon_7;
  2487. const char *mon_8;
  2488. const char *mon_9;
  2489. const char *mon_10;
  2490. const char *mon_11;
  2491. const char *mon_12;
  2492. const char *am_str;
  2493. const char *pm_str;
  2494. const char *d_t_fmt;
  2495. const char *d_fmt;
  2496. const char *t_fmt;
  2497. const char *t_fmt_ampm;
  2498. const char *era;
  2499. const char *era_year;
  2500. const char *era_d_fmt;
  2501. const char *alt_digits;
  2502. const char *era_d_t_fmt;
  2503. const char *era_t_fmt;
  2504. const char *yesexpr;
  2505. const char *noexpr;
  2506. const char *yesstr;
  2507. const char *nostr;
  2508. __collate_t collate;
  2509. } __uclibc_locale_t;
  2510. extern __uclibc_locale_t __global_locale_data;
  2511. extern struct __uclibc_locale_struct * __global_locale;
  2512. typedef struct __uclibc_locale_struct *__locale_t;
  2513. extern int __locale_mbrtowc_l(wchar_t *__restrict dst,
  2514. const char *__restrict src,
  2515. __locale_t loc ) __attribute__ ((visibility ("hidden")));
  2516. # 355 "../../include/bits/uClibc_locale.h"
  2517. #define __UCLIBC_CURLOCALE (__global_locale)
  2518. #define __UCLIBC_CURLOCALE_DATA (*__global_locale)
  2519. # 369 "../../include/bits/uClibc_locale.h"
  2520. #define __XL_NPP(N) N
  2521. #define __LOCALE_PARAM
  2522. #define __LOCALE_ARG
  2523. #define __LOCALE_PTR __UCLIBC_CURLOCALE
  2524. # 31 "../../include/locale.h" 2
  2525. #define LC_CTYPE __LC_CTYPE
  2526. #define LC_NUMERIC __LC_NUMERIC
  2527. #define LC_TIME __LC_TIME
  2528. #define LC_COLLATE __LC_COLLATE
  2529. #define LC_MONETARY __LC_MONETARY
  2530. #define LC_MESSAGES __LC_MESSAGES
  2531. # 50 "../../include/locale.h"
  2532. #define LC_ALL __LC_ALL
  2533. struct lconv
  2534. {
  2535. char *decimal_point;
  2536. char *thousands_sep;
  2537. char *grouping;
  2538. char *int_curr_symbol;
  2539. char *currency_symbol;
  2540. char *mon_decimal_point;
  2541. char *mon_thousands_sep;
  2542. char *mon_grouping;
  2543. char *positive_sign;
  2544. char *negative_sign;
  2545. char int_frac_digits;
  2546. char frac_digits;
  2547. char p_cs_precedes;
  2548. char p_sep_by_space;
  2549. char n_cs_precedes;
  2550. char n_sep_by_space;
  2551. char p_sign_posn;
  2552. char n_sign_posn;
  2553. char int_p_cs_precedes;
  2554. char int_p_sep_by_space;
  2555. char int_n_cs_precedes;
  2556. char int_n_sep_by_space;
  2557. char int_p_sign_posn;
  2558. char int_n_sign_posn;
  2559. # 121 "../../include/locale.h"
  2560. };
  2561. extern char *setlocale (int __category, __const char *__locale) __attribute__ ((__nothrow__));
  2562. extern struct lconv *localeconv (void) __attribute__ ((__nothrow__));
  2563. # 152 "../../include/locale.h"
  2564. typedef __locale_t locale_t;
  2565. extern __locale_t newlocale (int __category_mask, __const char *__locale,
  2566. __locale_t __base) __attribute__ ((__nothrow__));
  2567. #define LC_CTYPE_MASK (1 << __LC_CTYPE)
  2568. #define LC_NUMERIC_MASK (1 << __LC_NUMERIC)
  2569. #define LC_TIME_MASK (1 << __LC_TIME)
  2570. #define LC_COLLATE_MASK (1 << __LC_COLLATE)
  2571. #define LC_MONETARY_MASK (1 << __LC_MONETARY)
  2572. #define LC_MESSAGES_MASK (1 << __LC_MESSAGES)
  2573. # 195 "../../include/locale.h"
  2574. #define LC_ALL_MASK (LC_CTYPE_MASK | LC_NUMERIC_MASK | LC_TIME_MASK | LC_COLLATE_MASK | LC_MONETARY_MASK | LC_MESSAGES_MASK )
  2575. # 206 "../../include/locale.h"
  2576. extern __locale_t duplocale (__locale_t __dataset) __attribute__ ((__nothrow__));
  2577. extern void freelocale (__locale_t __dataset) __attribute__ ((__nothrow__));
  2578. extern __locale_t uselocale (__locale_t __dataset) __attribute__ ((__nothrow__));
  2579. #define LC_GLOBAL_LOCALE ((__locale_t) -1L)
  2580. # 14 "tsp_common.c" 2
  2581. # 1 "../../include/errno.h" 1
  2582. # 28 "../../include/errno.h"
  2583. #define _ERRNO_H 1
  2584. # 1 "../../include/bits/errno.h" 1
  2585. # 22 "../../include/bits/errno.h"
  2586. # 1 "../../include/bits/errno_values.h" 1
  2587. #define _BITS_ERRNO_VALUES_H
  2588. # 12 "../../include/bits/errno_values.h"
  2589. #define EPERM 1
  2590. #define ENOENT 2
  2591. #define ESRCH 3
  2592. #define EINTR 4
  2593. #define EIO 5
  2594. #define ENXIO 6
  2595. #define E2BIG 7
  2596. #define ENOEXEC 8
  2597. #define EBADF 9
  2598. #define ECHILD 10
  2599. #define EAGAIN 11
  2600. #define ENOMEM 12
  2601. #define EACCES 13
  2602. #define EFAULT 14
  2603. #define ENOTBLK 15
  2604. #define EBUSY 16
  2605. #define EEXIST 17
  2606. #define EXDEV 18
  2607. #define ENODEV 19
  2608. #define ENOTDIR 20
  2609. #define EISDIR 21
  2610. #define EINVAL 22
  2611. #define ENFILE 23
  2612. #define EMFILE 24
  2613. #define ENOTTY 25
  2614. #define ETXTBSY 26
  2615. #define EFBIG 27
  2616. #define ENOSPC 28
  2617. #define ESPIPE 29
  2618. #define EROFS 30
  2619. #define EMLINK 31
  2620. #define EPIPE 32
  2621. #define EDOM 33
  2622. #define ERANGE 34
  2623. #define EDEADLK 35
  2624. #define ENAMETOOLONG 36
  2625. #define ENOLCK 37
  2626. #define ENOSYS 38
  2627. #define ENOTEMPTY 39
  2628. #define ELOOP 40
  2629. #define EWOULDBLOCK EAGAIN
  2630. #define ENOMSG 42
  2631. #define EIDRM 43
  2632. #define ECHRNG 44
  2633. #define EL2NSYNC 45
  2634. #define EL3HLT 46
  2635. #define EL3RST 47
  2636. #define ELNRNG 48
  2637. #define EUNATCH 49
  2638. #define ENOCSI 50
  2639. #define EL2HLT 51
  2640. #define EBADE 52
  2641. #define EBADR 53
  2642. #define EXFULL 54
  2643. #define ENOANO 55
  2644. #define EBADRQC 56
  2645. #define EBADSLT 57
  2646. #define EDEADLOCK EDEADLK
  2647. #define EBFONT 59
  2648. #define ENOSTR 60
  2649. #define ENODATA 61
  2650. #define ETIME 62
  2651. #define ENOSR 63
  2652. #define ENONET 64
  2653. #define ENOPKG 65
  2654. #define EREMOTE 66
  2655. #define ENOLINK 67
  2656. #define EADV 68
  2657. #define ESRMNT 69
  2658. #define ECOMM 70
  2659. #define EPROTO 71
  2660. #define EMULTIHOP 72
  2661. #define EDOTDOT 73
  2662. #define EBADMSG 74
  2663. #define EOVERFLOW 75
  2664. #define ENOTUNIQ 76
  2665. #define EBADFD 77
  2666. #define EREMCHG 78
  2667. #define ELIBACC 79
  2668. #define ELIBBAD 80
  2669. #define ELIBSCN 81
  2670. #define ELIBMAX 82
  2671. #define ELIBEXEC 83
  2672. #define EILSEQ 84
  2673. #define ERESTART 85
  2674. #define ESTRPIPE 86
  2675. #define EUSERS 87
  2676. #define ENOTSOCK 88
  2677. #define EDESTADDRREQ 89
  2678. #define EMSGSIZE 90
  2679. #define EPROTOTYPE 91
  2680. #define ENOPROTOOPT 92
  2681. #define EPROTONOSUPPORT 93
  2682. #define ESOCKTNOSUPPORT 94
  2683. #define EOPNOTSUPP 95
  2684. #define EPFNOSUPPORT 96
  2685. #define EAFNOSUPPORT 97
  2686. #define EADDRINUSE 98
  2687. #define EADDRNOTAVAIL 99
  2688. #define ENETDOWN 100
  2689. #define ENETUNREACH 101
  2690. #define ENETRESET 102
  2691. #define ECONNABORTED 103
  2692. #define ECONNRESET 104
  2693. #define ENOBUFS 105
  2694. #define EISCONN 106
  2695. #define ENOTCONN 107
  2696. #define ESHUTDOWN 108
  2697. #define ETOOMANYREFS 109
  2698. #define ETIMEDOUT 110
  2699. #define ECONNREFUSED 111
  2700. #define EHOSTDOWN 112
  2701. #define EHOSTUNREACH 113
  2702. #define EALREADY 114
  2703. #define EINPROGRESS 115
  2704. #define ESTALE 116
  2705. #define EUCLEAN 117
  2706. #define ENOTNAM 118
  2707. #define ENAVAIL 119
  2708. #define EISNAM 120
  2709. #define EREMOTEIO 121
  2710. #define EDQUOT 122
  2711. #define ENOMEDIUM 123
  2712. #define EMEDIUMTYPE 124
  2713. # 23 "../../include/bits/errno.h" 2
  2714. #define ENOTSUP EOPNOTSUPP
  2715. #define ECANCELED 125
  2716. extern int *__errno_location (void) __attribute__ ((__nothrow__)) __attribute__ ((__const__));
  2717. #define errno (*__errno_location ())
  2718. # 37 "../../include/errno.h" 2
  2719. #undef __need_Emath
  2720. # 59 "../../include/errno.h"
  2721. #undef errno
  2722. #define errno __libc_errno
  2723. extern __thread int __libc_errno __attribute__ ((tls_model ("initial-exec")));
  2724. #define __set_errno(val) (errno = (val))
  2725. extern int *__errno_location (void) __attribute__ ((__nothrow__)) __attribute__ ((__const__));
  2726. # 89 "../../include/errno.h"
  2727. typedef int error_t;
  2728. #define __error_t_defined 1
  2729. #undef __need_error_t
  2730. # 15 "tsp_common.c" 2
  2731. # 1 "../../include/signal.h" 1
  2732. # 26 "../../include/signal.h"
  2733. #define _SIGNAL_H
  2734. # 1 "../../include/bits/sigset.h" 1
  2735. # 43 "../../include/bits/sigset.h"
  2736. #define _SIGSET_H_fns 1
  2737. #define _EXTERN_INLINE extern __inline
  2738. #define __sigmask(sig) (((unsigned long int) 1) << (((sig) - 1) % (8 * sizeof (unsigned long int))))
  2739. #define __sigword(sig) (((sig) - 1) / (8 * sizeof (unsigned long int)))
  2740. #define __sigemptyset(set) (__extension__ ({ int __cnt = _SIGSET_NWORDS; sigset_t *__set = (set); while (--__cnt >= 0) __set->__val[__cnt] = 0; 0; }))
  2741. #define __sigfillset(set) (__extension__ ({ int __cnt = _SIGSET_NWORDS; sigset_t *__set = (set); while (--__cnt >= 0) __set->__val[__cnt] = ~0UL; 0; }))
  2742. # 72 "../../include/bits/sigset.h"
  2743. #define __sigisemptyset(set) (__extension__ ({ int __cnt = _SIGSET_NWORDS; const sigset_t *__set = (set); int __ret = __set->__val[--__cnt]; while (!__ret && --__cnt >= 0) __ret = __set->__val[__cnt]; __ret == 0; }))
  2744. #define __sigandset(dest,left,right) (__extension__ ({ int __cnt = _SIGSET_NWORDS; sigset_t *__dest = (dest); const sigset_t *__left = (left); const sigset_t *__right = (right); while (--__cnt >= 0) __dest->__val[__cnt] = (__left->__val[__cnt] & __right->__val[__cnt]); 0; }))
  2745. # 88 "../../include/bits/sigset.h"
  2746. #define __sigorset(dest,left,right) (__extension__ ({ int __cnt = _SIGSET_NWORDS; sigset_t *__dest = (dest); const sigset_t *__left = (left); const sigset_t *__right = (right); while (--__cnt >= 0) __dest->__val[__cnt] = (__left->__val[__cnt] | __right->__val[__cnt]); 0; }))
  2747. # 103 "../../include/bits/sigset.h"
  2748. extern int __sigismember (__const __sigset_t *, int);
  2749. extern int __sigaddset (__sigset_t *, int);
  2750. extern int __sigdelset (__sigset_t *, int);
  2751. # 34 "../../include/signal.h" 2
  2752. #define __sig_atomic_t_defined
  2753. typedef __sig_atomic_t sig_atomic_t;
  2754. #undef __need_sig_atomic_t
  2755. #undef __need_sigset_t
  2756. # 1 "../../include/bits/signum.h" 1
  2757. # 23 "../../include/bits/signum.h"
  2758. #define SIG_ERR ((__sighandler_t) -1)
  2759. #define SIG_DFL ((__sighandler_t) 0)
  2760. #define SIG_IGN ((__sighandler_t) 1)
  2761. #define SIG_HOLD ((__sighandler_t) 2)
  2762. #define SIGHUP 1
  2763. #define SIGINT 2
  2764. #define SIGQUIT 3
  2765. #define SIGILL 4
  2766. #define SIGTRAP 5
  2767. #define SIGABRT 6
  2768. #define SIGIOT 6
  2769. #define SIGBUS 7
  2770. #define SIGFPE 8
  2771. #define SIGKILL 9
  2772. #define SIGUSR1 10
  2773. #define SIGSEGV 11
  2774. #define SIGUSR2 12
  2775. #define SIGPIPE 13
  2776. #define SIGALRM 14
  2777. #define SIGTERM 15
  2778. #define SIGSTKFLT 16
  2779. #define SIGCLD SIGCHLD
  2780. #define SIGCHLD 17
  2781. #define SIGCONT 18
  2782. #define SIGSTOP 19
  2783. #define SIGTSTP 20
  2784. #define SIGTTIN 21
  2785. #define SIGTTOU 22
  2786. #define SIGURG 23
  2787. #define SIGXCPU 24
  2788. #define SIGXFSZ 25
  2789. #define SIGVTALRM 26
  2790. #define SIGPROF 27
  2791. #define SIGWINCH 28
  2792. #define SIGPOLL SIGIO
  2793. #define SIGIO 29
  2794. #define SIGPWR 30
  2795. #define SIGSYS 31
  2796. #define SIGUNUSED 31
  2797. #define _NSIG 64
  2798. #define SIGRTMIN (__libc_current_sigrtmin ())
  2799. #define SIGRTMAX (__libc_current_sigrtmax ())
  2800. #define __SIGRTMIN 32
  2801. #define __SIGRTMAX (_NSIG - 1)
  2802. # 59 "../../include/signal.h" 2
  2803. # 75 "../../include/signal.h"
  2804. typedef void (*__sighandler_t) (int);
  2805. extern __sighandler_t __sysv_signal (int __sig, __sighandler_t __handler)
  2806. __attribute__ ((__nothrow__));
  2807. extern __sighandler_t sysv_signal (int __sig, __sighandler_t __handler)
  2808. __attribute__ ((__nothrow__));
  2809. extern __sighandler_t signal (int __sig, __sighandler_t __handler)
  2810. __attribute__ ((__nothrow__));
  2811. # 104 "../../include/signal.h"
  2812. extern __sighandler_t bsd_signal (int __sig, __sighandler_t __handler)
  2813. __attribute__ ((__nothrow__));
  2814. extern int kill (__pid_t __pid, int __sig) __attribute__ ((__nothrow__));
  2815. extern int killpg (__pid_t __pgrp, int __sig) __attribute__ ((__nothrow__));
  2816. extern int raise (int __sig) __attribute__ ((__nothrow__));
  2817. extern __sighandler_t ssignal (int __sig, __sighandler_t __handler)
  2818. __attribute__ ((__nothrow__));
  2819. extern int gsignal (int __sig) __attribute__ ((__nothrow__));
  2820. extern void psignal (int __sig, __const char *__s);
  2821. # 153 "../../include/signal.h"
  2822. extern int __sigpause (int __sig_or_mask, int __is_sig);
  2823. # 163 "../../include/signal.h"
  2824. #define sigpause(sig) __sigpause ((sig), 1)
  2825. # 175 "../../include/signal.h"
  2826. #define sigmask(sig) __sigmask(sig)
  2827. extern int sigblock (int __mask) __attribute__ ((__nothrow__)) __attribute__ ((__deprecated__));
  2828. extern int sigsetmask (int __mask) __attribute__ ((__nothrow__)) __attribute__ ((__deprecated__));
  2829. extern int siggetmask (void) __attribute__ ((__nothrow__)) __attribute__ ((__deprecated__));
  2830. #define NSIG _NSIG
  2831. typedef __sighandler_t sighandler_t;
  2832. typedef __sighandler_t sig_t;
  2833. #define __need_timespec
  2834. # 1 "../../include/time.h" 1
  2835. # 68 "../../include/time.h"
  2836. #undef __need_clock_t
  2837. # 84 "../../include/time.h"
  2838. #undef __need_time_t
  2839. # 96 "../../include/time.h"
  2840. #undef __clockid_time_t
  2841. # 108 "../../include/time.h"
  2842. #undef __need_timer_t
  2843. # 128 "../../include/time.h"
  2844. #undef __need_timespec
  2845. # 207 "../../include/signal.h" 2
  2846. # 1 "../../include/bits/siginfo.h" 1
  2847. # 25 "../../include/bits/siginfo.h"
  2848. # 1 "../../include/bits/wordsize.h" 1
  2849. # 19 "../../include/bits/wordsize.h"
  2850. #define __WORDSIZE 32
  2851. # 26 "../../include/bits/siginfo.h" 2
  2852. #define __have_sigval_t 1
  2853. typedef union sigval
  2854. {
  2855. int sival_int;
  2856. void *sival_ptr;
  2857. } sigval_t;
  2858. #define __have_siginfo_t 1
  2859. #define __SI_MAX_SIZE 128
  2860. #define __SI_PAD_SIZE ((__SI_MAX_SIZE / sizeof (int)) - 3)
  2861. typedef struct siginfo
  2862. {
  2863. int si_signo;
  2864. int si_errno;
  2865. int si_code;
  2866. union
  2867. {
  2868. int _pad[((128 / sizeof (int)) - 3)];
  2869. struct
  2870. {
  2871. __pid_t si_pid;
  2872. __uid_t si_uid;
  2873. } _kill;
  2874. struct
  2875. {
  2876. unsigned int _timer1;
  2877. unsigned int _timer2;
  2878. } _timer;
  2879. struct
  2880. {
  2881. __pid_t si_pid;
  2882. __uid_t si_uid;
  2883. sigval_t si_sigval;
  2884. } _rt;
  2885. struct
  2886. {
  2887. __pid_t si_pid;
  2888. __uid_t si_uid;
  2889. int si_status;
  2890. __clock_t si_utime;
  2891. __clock_t si_stime;
  2892. } _sigchld;
  2893. struct
  2894. {
  2895. void *si_addr;
  2896. } _sigfault;
  2897. struct
  2898. {
  2899. long int si_band;
  2900. int si_fd;
  2901. } _sigpoll;
  2902. } _sifields;
  2903. } siginfo_t;
  2904. #define si_pid _sifields._kill.si_pid
  2905. #define si_uid _sifields._kill.si_uid
  2906. #define si_timer1 _sifields._timer._timer1
  2907. #define si_timer2 _sifields._timer._timer2
  2908. #define si_status _sifields._sigchld.si_status
  2909. #define si_utime _sifields._sigchld.si_utime
  2910. #define si_stime _sifields._sigchld.si_stime
  2911. #define si_value _sifields._rt.si_sigval
  2912. #define si_int _sifields._rt.si_sigval.sival_int
  2913. #define si_ptr _sifields._rt.si_sigval.sival_ptr
  2914. #define si_addr _sifields._sigfault.si_addr
  2915. #define si_band _sifields._sigpoll.si_band
  2916. #define si_fd _sifields._sigpoll.si_fd
  2917. enum
  2918. {
  2919. SI_ASYNCNL = -60,
  2920. #define SI_ASYNCNL SI_ASYNCNL
  2921. SI_TKILL = -6,
  2922. #define SI_TKILL SI_TKILL
  2923. SI_SIGIO,
  2924. #define SI_SIGIO SI_SIGIO
  2925. SI_ASYNCIO,
  2926. #define SI_ASYNCIO SI_ASYNCIO
  2927. SI_MESGQ,
  2928. #define SI_MESGQ SI_MESGQ
  2929. SI_TIMER,
  2930. #define SI_TIMER SI_TIMER
  2931. SI_QUEUE,
  2932. #define SI_QUEUE SI_QUEUE
  2933. SI_USER,
  2934. #define SI_USER SI_USER
  2935. SI_KERNEL = 0x80
  2936. #define SI_KERNEL SI_KERNEL
  2937. };
  2938. enum
  2939. {
  2940. ILL_ILLOPC = 1,
  2941. #define ILL_ILLOPC ILL_ILLOPC
  2942. ILL_ILLOPN,
  2943. #define ILL_ILLOPN ILL_ILLOPN
  2944. ILL_ILLADR,
  2945. #define ILL_ILLADR ILL_ILLADR
  2946. ILL_ILLTRP,
  2947. #define ILL_ILLTRP ILL_ILLTRP
  2948. ILL_PRVOPC,
  2949. #define ILL_PRVOPC ILL_PRVOPC
  2950. ILL_PRVREG,
  2951. #define ILL_PRVREG ILL_PRVREG
  2952. ILL_COPROC,
  2953. #define ILL_COPROC ILL_COPROC
  2954. ILL_BADSTK
  2955. #define ILL_BADSTK ILL_BADSTK
  2956. };
  2957. enum
  2958. {
  2959. FPE_INTDIV = 1,
  2960. #define FPE_INTDIV FPE_INTDIV
  2961. FPE_INTOVF,
  2962. #define FPE_INTOVF FPE_INTOVF
  2963. FPE_FLTDIV,
  2964. #define FPE_FLTDIV FPE_FLTDIV
  2965. FPE_FLTOVF,
  2966. #define FPE_FLTOVF FPE_FLTOVF
  2967. FPE_FLTUND,
  2968. #define FPE_FLTUND FPE_FLTUND
  2969. FPE_FLTRES,
  2970. #define FPE_FLTRES FPE_FLTRES
  2971. FPE_FLTINV,
  2972. #define FPE_FLTINV FPE_FLTINV
  2973. FPE_FLTSUB
  2974. #define FPE_FLTSUB FPE_FLTSUB
  2975. };
  2976. enum
  2977. {
  2978. SEGV_MAPERR = 1,
  2979. #define SEGV_MAPERR SEGV_MAPERR
  2980. SEGV_ACCERR
  2981. #define SEGV_ACCERR SEGV_ACCERR
  2982. };
  2983. enum
  2984. {
  2985. BUS_ADRALN = 1,
  2986. #define BUS_ADRALN BUS_ADRALN
  2987. BUS_ADRERR,
  2988. #define BUS_ADRERR BUS_ADRERR
  2989. BUS_OBJERR
  2990. #define BUS_OBJERR BUS_OBJERR
  2991. };
  2992. enum
  2993. {
  2994. TRAP_BRKPT = 1,
  2995. #define TRAP_BRKPT TRAP_BRKPT
  2996. TRAP_TRACE
  2997. #define TRAP_TRACE TRAP_TRACE
  2998. };
  2999. enum
  3000. {
  3001. CLD_EXITED = 1,
  3002. #define CLD_EXITED CLD_EXITED
  3003. CLD_KILLED,
  3004. #define CLD_KILLED CLD_KILLED
  3005. CLD_DUMPED,
  3006. #define CLD_DUMPED CLD_DUMPED
  3007. CLD_TRAPPED,
  3008. #define CLD_TRAPPED CLD_TRAPPED
  3009. CLD_STOPPED,
  3010. #define CLD_STOPPED CLD_STOPPED
  3011. CLD_CONTINUED
  3012. #define CLD_CONTINUED CLD_CONTINUED
  3013. };
  3014. enum
  3015. {
  3016. POLL_IN = 1,
  3017. #define POLL_IN POLL_IN
  3018. POLL_OUT,
  3019. #define POLL_OUT POLL_OUT
  3020. POLL_MSG,
  3021. #define POLL_MSG POLL_MSG
  3022. POLL_ERR,
  3023. #define POLL_ERR POLL_ERR
  3024. POLL_PRI,
  3025. #define POLL_PRI POLL_PRI
  3026. POLL_HUP
  3027. #define POLL_HUP POLL_HUP
  3028. };
  3029. #undef __need_siginfo_t
  3030. #define __have_sigevent_t 1
  3031. #define __SIGEV_MAX_SIZE 64
  3032. #define __SIGEV_PAD_SIZE ((__SIGEV_MAX_SIZE / sizeof (int)) - 3)
  3033. struct __pthread_attr_s;
  3034. typedef struct sigevent
  3035. {
  3036. sigval_t sigev_value;
  3037. int sigev_signo;
  3038. int sigev_notify;
  3039. union
  3040. {
  3041. int _pad[((64 / sizeof (int)) - 3)];
  3042. struct
  3043. {
  3044. void (*_function) (sigval_t);
  3045. struct __pthread_attr_s *_attribute;
  3046. } _sigev_thread;
  3047. } _sigev_un;
  3048. } sigevent_t;
  3049. #define sigev_notify_function _sigev_un._sigev_thread._function
  3050. #define sigev_notify_attributes _sigev_un._sigev_thread._attribute
  3051. enum
  3052. {
  3053. SIGEV_SIGNAL = 0,
  3054. #define SIGEV_SIGNAL SIGEV_SIGNAL
  3055. SIGEV_NONE,
  3056. #define SIGEV_NONE SIGEV_NONE
  3057. SIGEV_THREAD,
  3058. #define SIGEV_THREAD SIGEV_THREAD
  3059. SIGEV_THREAD_ID = 4
  3060. #define SIGEV_THREAD_ID SIGEV_THREAD_ID
  3061. };
  3062. # 210 "../../include/signal.h" 2
  3063. extern int sigemptyset (sigset_t *__set) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
  3064. extern int sigfillset (sigset_t *__set) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
  3065. extern int sigaddset (sigset_t *__set, int __signo) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
  3066. extern int sigdelset (sigset_t *__set, int __signo) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
  3067. extern int sigismember (__const sigset_t *__set, int __signo)
  3068. __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
  3069. extern int sigisemptyset (__const sigset_t *__set) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
  3070. extern int sigandset (sigset_t *__set, __const sigset_t *__left,
  3071. __const sigset_t *__right) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2, 3)));
  3072. extern int sigorset (sigset_t *__set, __const sigset_t *__left,
  3073. __const sigset_t *__right) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2, 3)));
  3074. # 1 "../../include/bits/sigaction.h" 1
  3075. # 25 "../../include/bits/sigaction.h"
  3076. struct sigaction
  3077. {
  3078. union
  3079. {
  3080. __sighandler_t sa_handler;
  3081. void (*sa_sigaction) (int, siginfo_t *, void *);
  3082. }
  3083. __sigaction_handler;
  3084. #define sa_handler __sigaction_handler.sa_handler
  3085. #define sa_sigaction __sigaction_handler.sa_sigaction
  3086. __sigset_t sa_mask;
  3087. int sa_flags;
  3088. void (*sa_restorer) (void);
  3089. };
  3090. #define SA_NOCLDSTOP 1
  3091. #define SA_NOCLDWAIT 2
  3092. #define SA_SIGINFO 4
  3093. #define SA_ONSTACK 0x08000000
  3094. #define SA_RESTART 0x10000000
  3095. #define SA_NODEFER 0x40000000
  3096. #define SA_RESETHAND 0x80000000
  3097. #define SA_INTERRUPT 0x20000000
  3098. #define SA_NOMASK SA_NODEFER
  3099. #define SA_ONESHOT SA_RESETHAND
  3100. #define SA_STACK SA_ONSTACK
  3101. #define SIG_BLOCK 0
  3102. #define SIG_UNBLOCK 1
  3103. #define SIG_SETMASK 2
  3104. # 244 "../../include/signal.h" 2
  3105. extern int sigprocmask (int __how, __const sigset_t *__restrict __set,
  3106. sigset_t *__restrict __oset) __attribute__ ((__nothrow__));
  3107. extern int sigsuspend (__const sigset_t *__set) __attribute__ ((__nonnull__ (1)));
  3108. extern int sigaction (int __sig, __const struct sigaction *__restrict __act,
  3109. struct sigaction *__restrict __oact) __attribute__ ((__nothrow__));
  3110. extern int sigpending (sigset_t *__set) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
  3111. extern int sigwait (__const sigset_t *__restrict __set, int *__restrict __sig)
  3112. __attribute__ ((__nonnull__ (1, 2)));
  3113. extern int sigwaitinfo (__const sigset_t *__restrict __set,
  3114. siginfo_t *__restrict __info) __attribute__ ((__nonnull__ (1)));
  3115. extern int sigtimedwait (__const sigset_t *__restrict __set,
  3116. siginfo_t *__restrict __info,
  3117. __const struct timespec *__restrict __timeout)
  3118. __attribute__ ((__nonnull__ (1)));
  3119. extern int sigqueue (__pid_t __pid, int __sig, __const union sigval __val)
  3120. __attribute__ ((__nothrow__));
  3121. # 307 "../../include/signal.h"
  3122. struct sigvec
  3123. {
  3124. __sighandler_t sv_handler;
  3125. int sv_mask;
  3126. int sv_flags;
  3127. #define sv_onstack sv_flags
  3128. };
  3129. #define SV_ONSTACK (1 << 0)
  3130. #define SV_INTERRUPT (1 << 1)
  3131. #define SV_RESETHAND (1 << 2)
  3132. extern int sigvec (int __sig, __const struct sigvec *__vec,
  3133. struct sigvec *__ovec) __attribute__ ((__nothrow__));
  3134. # 1 "../../include/bits/sigcontext.h" 1
  3135. # 26 "../../include/bits/sigcontext.h"
  3136. #define sigcontext_struct sigcontext
  3137. # 1 "/opt/STM/STLinux-2.3ear/devkit/sh4/uclibc_target/usr/include/asm/sigcontext.h" 1
  3138. #define __ASM_SH_SIGCONTEXT_H
  3139. struct sigcontext {
  3140. unsigned long oldmask;
  3141. unsigned long sc_regs[16];
  3142. unsigned long sc_pc;
  3143. unsigned long sc_pr;
  3144. unsigned long sc_sr;
  3145. unsigned long sc_gbr;
  3146. unsigned long sc_mach;
  3147. unsigned long sc_macl;
  3148. unsigned long sc_fpregs[16];
  3149. unsigned long sc_xfpregs[16];
  3150. unsigned int sc_fpscr;
  3151. unsigned int sc_fpul;
  3152. unsigned int sc_ownedfp;
  3153. };
  3154. # 29 "../../include/bits/sigcontext.h" 2
  3155. # 333 "../../include/signal.h" 2
  3156. extern int sigreturn (struct sigcontext *__scp) __attribute__ ((__nothrow__));
  3157. # 345 "../../include/signal.h"
  3158. extern int siginterrupt (int __sig, int __interrupt) __attribute__ ((__nothrow__));
  3159. # 1 "../../include/bits/sigstack.h" 1
  3160. # 26 "../../include/bits/sigstack.h"
  3161. struct sigstack
  3162. {
  3163. void *ss_sp;
  3164. int ss_onstack;
  3165. };
  3166. enum
  3167. {
  3168. SS_ONSTACK = 1,
  3169. #define SS_ONSTACK SS_ONSTACK
  3170. SS_DISABLE
  3171. #define SS_DISABLE SS_DISABLE
  3172. };
  3173. #define MINSIGSTKSZ 2048
  3174. #define SIGSTKSZ 8192
  3175. typedef struct sigaltstack
  3176. {
  3177. void *ss_sp;
  3178. int ss_flags;
  3179. size_t ss_size;
  3180. } stack_t;
  3181. # 348 "../../include/signal.h" 2
  3182. # 1 "../../include/ucontext.h" 1
  3183. # 20 "../../include/ucontext.h"
  3184. #define _UCONTEXT_H 1
  3185. # 1 "../../include/sys/ucontext.h" 1
  3186. # 22 "../../include/sys/ucontext.h"
  3187. #define _SYS_UCONTEXT_H 1
  3188. # 1 "../../include/signal.h" 1
  3189. # 26 "../../include/sys/ucontext.h" 2
  3190. # 1 "../../include/bits/sigcontext.h" 1
  3191. # 30 "../../include/sys/ucontext.h" 2
  3192. typedef int greg_t;
  3193. #define NFPREG 16
  3194. typedef greg_t gregset_t[16];
  3195. enum
  3196. {
  3197. R0 = 0,
  3198. #define R0 R0
  3199. R1 = 1,
  3200. #define R1 R1
  3201. R2 = 2,
  3202. #define R2 R2
  3203. R3 = 3,
  3204. #define R3 R3
  3205. R4 = 4,
  3206. #define R4 R4
  3207. R5 = 5,
  3208. #define R5 R5
  3209. R6 = 6,
  3210. #define R6 R6
  3211. R7 = 7,
  3212. #define R7 R7
  3213. R8 = 8,
  3214. #define R8 R8
  3215. R9 = 9,
  3216. #define R9 R9
  3217. R10 = 10,
  3218. #define R10 R10
  3219. R11 = 11,
  3220. #define R11 R11
  3221. R12 = 12,
  3222. #define R12 R12
  3223. R13 = 13,
  3224. #define R13 R13
  3225. R14 = 14,
  3226. #define R14 R14
  3227. R15 = 15,
  3228. #define R15 R15
  3229. };
  3230. typedef int freg_t;
  3231. #define NFPREG 16
  3232. typedef freg_t fpregset_t[16];
  3233. typedef struct
  3234. {
  3235. unsigned int oldmask;
  3236. gregset_t gregs;
  3237. unsigned int pc;
  3238. unsigned int pr;
  3239. unsigned int sr;
  3240. unsigned int gbr;
  3241. unsigned int mach;
  3242. unsigned int macl;
  3243. fpregset_t fpregs;
  3244. fpregset_t xfpregs;
  3245. unsigned int fpscr;
  3246. unsigned int fpul;
  3247. unsigned int ownedfp;
  3248. } mcontext_t;
  3249. typedef struct ucontext
  3250. {
  3251. unsigned long int uc_flags;
  3252. struct ucontext *uc_link;
  3253. stack_t uc_stack;
  3254. mcontext_t uc_mcontext;
  3255. __sigset_t uc_sigmask;
  3256. } ucontext_t;
  3257. # 26 "../../include/ucontext.h" 2
  3258. # 351 "../../include/signal.h" 2
  3259. extern int sigstack (struct sigstack *__ss, struct sigstack *__oss)
  3260. __attribute__ ((__nothrow__)) __attribute__ ((__deprecated__));
  3261. extern int sigaltstack (__const struct sigaltstack *__restrict __ss,
  3262. struct sigaltstack *__restrict __oss) __attribute__ ((__nothrow__));
  3263. extern int sighold (int __sig) __attribute__ ((__nothrow__));
  3264. extern int sigrelse (int __sig) __attribute__ ((__nothrow__));
  3265. extern int sigignore (int __sig) __attribute__ ((__nothrow__));
  3266. extern __sighandler_t sigset (int __sig, __sighandler_t __disp) __attribute__ ((__nothrow__));
  3267. # 1 "../../include/bits/sigthread.h" 1
  3268. # 21 "../../include/bits/sigthread.h"
  3269. #define _BITS_SIGTHREAD_H 1
  3270. # 31 "../../include/bits/sigthread.h"
  3271. extern int pthread_sigmask (int __how,
  3272. __const __sigset_t *__restrict __newmask,
  3273. __sigset_t *__restrict __oldmask)__attribute__ ((__nothrow__));
  3274. extern int pthread_kill (pthread_t __thread_id, int __signo) __attribute__ ((__nothrow__));
  3275. # 387 "../../include/signal.h" 2
  3276. extern int __libc_current_sigrtmin (void) __attribute__ ((__nothrow__));
  3277. extern int __libc_current_sigrtmax (void) __attribute__ ((__nothrow__));
  3278. # 16 "tsp_common.c" 2
  3279. # 1 "tst_types.h" 1
  3280. # 11 "tst_types.h"
  3281. #define TST_TYPES_H
  3282. # 1 "../../include/wchar.h" 1
  3283. # 27 "../../include/wchar.h"
  3284. #define _WCHAR_H 1
  3285. # 37 "../../include/wchar.h"
  3286. #define __need___FILE
  3287. #define __need_FILE
  3288. #define __need___va_list
  3289. # 1 "/opt/STM/STLinux-2.3ear/devkit/sh4/lib/gcc/sh4-linux-uclibc/4.1.1/include/stdarg.h" 1 3 4
  3290. # 37 "/opt/STM/STLinux-2.3ear/devkit/sh4/lib/gcc/sh4-linux-uclibc/4.1.1/include/stdarg.h" 3 4
  3291. #undef __need___va_list
  3292. # 45 "../../include/wchar.h" 2
  3293. #define __need_size_t
  3294. #define __need_wchar_t
  3295. #define __need_NULL
  3296. #define __need_wint_t
  3297. # 1 "/opt/STM/STLinux-2.3ear/devkit/sh4/lib/gcc/sh4-linux-uclibc/4.1.1/include/stddef.h" 1 3 4
  3298. # 163 "/opt/STM/STLinux-2.3ear/devkit/sh4/lib/gcc/sh4-linux-uclibc/4.1.1/include/stddef.h" 3 4
  3299. #undef __need_ptrdiff_t
  3300. # 236 "/opt/STM/STLinux-2.3ear/devkit/sh4/lib/gcc/sh4-linux-uclibc/4.1.1/include/stddef.h" 3 4
  3301. #undef __need_size_t
  3302. # 345 "/opt/STM/STLinux-2.3ear/devkit/sh4/lib/gcc/sh4-linux-uclibc/4.1.1/include/stddef.h" 3 4
  3303. #undef __need_wchar_t
  3304. # 357 "/opt/STM/STLinux-2.3ear/devkit/sh4/lib/gcc/sh4-linux-uclibc/4.1.1/include/stddef.h" 3 4
  3305. #undef __need_wint_t
  3306. # 398 "/opt/STM/STLinux-2.3ear/devkit/sh4/lib/gcc/sh4-linux-uclibc/4.1.1/include/stddef.h" 3 4
  3307. #undef NULL
  3308. #define NULL ((void *)0)
  3309. #undef __need_NULL
  3310. #define offsetof(TYPE,MEMBER) __builtin_offsetof (TYPE, MEMBER)
  3311. # 53 "../../include/wchar.h" 2
  3312. # 98 "../../include/wchar.h"
  3313. #undef __need_mbstate_t
  3314. typedef __mbstate_t mbstate_t;
  3315. # 120 "../../include/wchar.h"
  3316. #define WEOF (0xffffffffu)
  3317. # 130 "../../include/wchar.h"
  3318. struct tm;
  3319. extern wchar_t *wcscpy (wchar_t *__restrict __dest,
  3320. __const wchar_t *__restrict __src) __attribute__ ((__nothrow__));
  3321. extern wchar_t *wcsncpy (wchar_t *__restrict __dest,
  3322. __const wchar_t *__restrict __src, size_t __n)
  3323. __attribute__ ((__nothrow__));
  3324. extern wchar_t *wcscat (wchar_t *__restrict __dest,
  3325. __const wchar_t *__restrict __src) __attribute__ ((__nothrow__));
  3326. extern wchar_t *wcsncat (wchar_t *__restrict __dest,
  3327. __const wchar_t *__restrict __src, size_t __n)
  3328. __attribute__ ((__nothrow__));
  3329. extern int wcscmp (__const wchar_t *__s1, __const wchar_t *__s2)
  3330. __attribute__ ((__nothrow__)) __attribute__ ((__pure__));
  3331. extern int wcsncmp (__const wchar_t *__s1, __const wchar_t *__s2, size_t __n)
  3332. __attribute__ ((__nothrow__)) __attribute__ ((__pure__));
  3333. extern int wcscasecmp (__const wchar_t *__s1, __const wchar_t *__s2) __attribute__ ((__nothrow__));
  3334. extern int wcsncasecmp (__const wchar_t *__s1, __const wchar_t *__s2,
  3335. size_t __n) __attribute__ ((__nothrow__));
  3336. # 189 "../../include/wchar.h"
  3337. extern int wcscoll (__const wchar_t *__s1, __const wchar_t *__s2) __attribute__ ((__nothrow__));
  3338. extern size_t wcsxfrm (wchar_t *__restrict __s1,
  3339. __const wchar_t *__restrict __s2, size_t __n) __attribute__ ((__nothrow__));
  3340. # 219 "../../include/wchar.h"
  3341. extern wchar_t *wcsdup (__const wchar_t *__s) __attribute__ ((__nothrow__)) __attribute__ ((__malloc__));
  3342. extern wchar_t *wcschr (__const wchar_t *__wcs, wchar_t __wc)
  3343. __attribute__ ((__nothrow__)) __attribute__ ((__pure__));
  3344. extern wchar_t *wcsrchr (__const wchar_t *__wcs, wchar_t __wc)
  3345. __attribute__ ((__nothrow__)) __attribute__ ((__pure__));
  3346. extern wchar_t *wcschrnul (__const wchar_t *__s, wchar_t __wc)
  3347. __attribute__ ((__nothrow__)) __attribute__ ((__pure__));
  3348. extern size_t wcscspn (__const wchar_t *__wcs, __const wchar_t *__reject)
  3349. __attribute__ ((__nothrow__)) __attribute__ ((__pure__));
  3350. extern size_t wcsspn (__const wchar_t *__wcs, __const wchar_t *__accept)
  3351. __attribute__ ((__nothrow__)) __attribute__ ((__pure__));
  3352. extern wchar_t *wcspbrk (__const wchar_t *__wcs, __const wchar_t *__accept)
  3353. __attribute__ ((__nothrow__)) __attribute__ ((__pure__));
  3354. extern wchar_t *wcsstr (__const wchar_t *__haystack, __const wchar_t *__needle)
  3355. __attribute__ ((__nothrow__)) __attribute__ ((__pure__));
  3356. extern wchar_t *wcstok (wchar_t *__restrict __s,
  3357. __const wchar_t *__restrict __delim,
  3358. wchar_t **__restrict __ptr) __attribute__ ((__nothrow__));
  3359. extern size_t wcslen (__const wchar_t *__s) __attribute__ ((__nothrow__)) __attribute__ ((__pure__));
  3360. extern wchar_t *wcswcs (__const wchar_t *__haystack, __const wchar_t *__needle)
  3361. __attribute__ ((__nothrow__)) __attribute__ ((__pure__));
  3362. extern size_t wcsnlen (__const wchar_t *__s, size_t __maxlen)
  3363. __attribute__ ((__nothrow__)) __attribute__ ((__pure__));
  3364. extern wchar_t *wmemchr (__const wchar_t *__s, wchar_t __c, size_t __n)
  3365. __attribute__ ((__nothrow__)) __attribute__ ((__pure__));
  3366. extern int wmemcmp (__const wchar_t *__restrict __s1,
  3367. __const wchar_t *__restrict __s2, size_t __n)
  3368. __attribute__ ((__nothrow__)) __attribute__ ((__pure__));
  3369. extern wchar_t *wmemcpy (wchar_t *__restrict __s1,
  3370. __const wchar_t *__restrict __s2, size_t __n) __attribute__ ((__nothrow__));
  3371. extern wchar_t *wmemmove (wchar_t *__s1, __const wchar_t *__s2, size_t __n)
  3372. __attribute__ ((__nothrow__));
  3373. extern wchar_t *wmemset (wchar_t *__s, wchar_t __c, size_t __n) __attribute__ ((__nothrow__));
  3374. extern wchar_t *wmempcpy (wchar_t *__restrict __s1,
  3375. __const wchar_t *__restrict __s2, size_t __n)
  3376. __attribute__ ((__nothrow__));
  3377. extern wint_t btowc (int __c) __attribute__ ((__nothrow__));
  3378. extern int wctob (wint_t __c) __attribute__ ((__nothrow__));
  3379. extern int mbsinit (__const mbstate_t *__ps) __attribute__ ((__nothrow__)) __attribute__ ((__pure__));
  3380. extern size_t mbrtowc (wchar_t *__restrict __pwc,
  3381. __const char *__restrict __s, size_t __n,
  3382. mbstate_t *__p) __attribute__ ((__nothrow__));
  3383. extern size_t wcrtomb (char *__restrict __s, wchar_t __wc,
  3384. mbstate_t *__restrict __ps) __attribute__ ((__nothrow__));
  3385. extern size_t mbrlen (__const char *__restrict __s, size_t __n,
  3386. mbstate_t *__restrict __ps) __attribute__ ((__nothrow__));
  3387. extern size_t mbsrtowcs (wchar_t *__restrict __dst,
  3388. __const char **__restrict __src, size_t __len,
  3389. mbstate_t *__restrict __ps) __attribute__ ((__nothrow__));
  3390. extern size_t wcsrtombs (char *__restrict __dst,
  3391. __const wchar_t **__restrict __src, size_t __len,
  3392. mbstate_t *__restrict __ps) __attribute__ ((__nothrow__));
  3393. extern size_t mbsnrtowcs (wchar_t *__restrict __dst,
  3394. __const char **__restrict __src, size_t __nmc,
  3395. size_t __len, mbstate_t *__restrict __ps) __attribute__ ((__nothrow__));
  3396. extern size_t wcsnrtombs (char *__restrict __dst,
  3397. __const wchar_t **__restrict __src,
  3398. size_t __nwc, size_t __len,
  3399. mbstate_t *__restrict __ps) __attribute__ ((__nothrow__));
  3400. extern int wcwidth (wchar_t __c) __attribute__ ((__nothrow__));
  3401. extern int wcswidth (__const wchar_t *__s, size_t __n) __attribute__ ((__nothrow__));
  3402. extern double wcstod (__const wchar_t *__restrict __nptr,
  3403. wchar_t **__restrict __endptr) __attribute__ ((__nothrow__));
  3404. extern float wcstof (__const wchar_t *__restrict __nptr,
  3405. wchar_t **__restrict __endptr) __attribute__ ((__nothrow__));
  3406. extern long double wcstold (__const wchar_t *__restrict __nptr,
  3407. wchar_t **__restrict __endptr) __attribute__ ((__nothrow__));
  3408. extern long int wcstol (__const wchar_t *__restrict __nptr,
  3409. wchar_t **__restrict __endptr, int __base) __attribute__ ((__nothrow__));
  3410. extern unsigned long int wcstoul (__const wchar_t *__restrict __nptr,
  3411. wchar_t **__restrict __endptr, int __base)
  3412. __attribute__ ((__nothrow__));
  3413. __extension__
  3414. extern long long int wcstoll (__const wchar_t *__restrict __nptr,
  3415. wchar_t **__restrict __endptr, int __base)
  3416. __attribute__ ((__nothrow__));
  3417. __extension__
  3418. extern unsigned long long int wcstoull (__const wchar_t *__restrict __nptr,
  3419. wchar_t **__restrict __endptr,
  3420. int __base) __attribute__ ((__nothrow__));
  3421. __extension__
  3422. extern long long int wcstoq (__const wchar_t *__restrict __nptr,
  3423. wchar_t **__restrict __endptr, int __base)
  3424. __attribute__ ((__nothrow__));
  3425. __extension__
  3426. extern unsigned long long int wcstouq (__const wchar_t *__restrict __nptr,
  3427. wchar_t **__restrict __endptr,
  3428. int __base) __attribute__ ((__nothrow__));
  3429. # 499 "../../include/wchar.h"
  3430. extern wchar_t *wcpcpy (wchar_t *__dest, __const wchar_t *__src) __attribute__ ((__nothrow__));
  3431. extern wchar_t *wcpncpy (wchar_t *__dest, __const wchar_t *__src, size_t __n)
  3432. __attribute__ ((__nothrow__));
  3433. extern int fwide (__FILE *__fp, int __mode) __attribute__ ((__nothrow__));
  3434. extern int fwprintf (__FILE *__restrict __stream,
  3435. __const wchar_t *__restrict __format, ...)
  3436. ;
  3437. extern int wprintf (__const wchar_t *__restrict __format, ...)
  3438. ;
  3439. extern int swprintf (wchar_t *__restrict __s, size_t __n,
  3440. __const wchar_t *__restrict __format, ...)
  3441. __attribute__ ((__nothrow__)) ;
  3442. extern int vfwprintf (__FILE *__restrict __s,
  3443. __const wchar_t *__restrict __format,
  3444. __gnuc_va_list __arg)
  3445. ;
  3446. extern int vwprintf (__const wchar_t *__restrict __format,
  3447. __gnuc_va_list __arg)
  3448. ;
  3449. extern int vswprintf (wchar_t *__restrict __s, size_t __n,
  3450. __const wchar_t *__restrict __format,
  3451. __gnuc_va_list __arg)
  3452. __attribute__ ((__nothrow__)) ;
  3453. extern int fwscanf (__FILE *__restrict __stream,
  3454. __const wchar_t *__restrict __format, ...)
  3455. ;
  3456. extern int wscanf (__const wchar_t *__restrict __format, ...)
  3457. ;
  3458. extern int swscanf (__const wchar_t *__restrict __s,
  3459. __const wchar_t *__restrict __format, ...)
  3460. __attribute__ ((__nothrow__)) ;
  3461. extern int vfwscanf (__FILE *__restrict __s,
  3462. __const wchar_t *__restrict __format,
  3463. __gnuc_va_list __arg)
  3464. ;
  3465. extern int vwscanf (__const wchar_t *__restrict __format,
  3466. __gnuc_va_list __arg)
  3467. ;
  3468. extern int vswscanf (__const wchar_t *__restrict __s,
  3469. __const wchar_t *__restrict __format,
  3470. __gnuc_va_list __arg)
  3471. __attribute__ ((__nothrow__)) ;
  3472. extern wint_t fgetwc (__FILE *__stream);
  3473. extern wint_t getwc (__FILE *__stream);
  3474. extern wint_t getwchar (void);
  3475. extern wint_t fputwc (wchar_t __wc, __FILE *__stream);
  3476. extern wint_t putwc (wchar_t __wc, __FILE *__stream);
  3477. extern wint_t putwchar (wchar_t __wc);
  3478. extern wchar_t *fgetws (wchar_t *__restrict __ws, int __n,
  3479. __FILE *__restrict __stream);
  3480. extern int fputws (__const wchar_t *__restrict __ws,
  3481. __FILE *__restrict __stream);
  3482. extern wint_t ungetwc (wint_t __wc, __FILE *__stream);
  3483. # 667 "../../include/wchar.h"
  3484. extern wint_t getwc_unlocked (__FILE *__stream);
  3485. extern wint_t getwchar_unlocked (void);
  3486. extern wint_t fgetwc_unlocked (__FILE *__stream);
  3487. extern wint_t fputwc_unlocked (wchar_t __wc, __FILE *__stream);
  3488. # 693 "../../include/wchar.h"
  3489. extern wint_t putwc_unlocked (wchar_t __wc, __FILE *__stream);
  3490. extern wint_t putwchar_unlocked (wchar_t __wc);
  3491. # 703 "../../include/wchar.h"
  3492. extern wchar_t *fgetws_unlocked (wchar_t *__restrict __ws, int __n,
  3493. __FILE *__restrict __stream);
  3494. extern int fputws_unlocked (__const wchar_t *__restrict __ws,
  3495. __FILE *__restrict __stream);
  3496. extern size_t wcsftime (wchar_t *__restrict __s, size_t __maxsize,
  3497. __const wchar_t *__restrict __format,
  3498. __const struct tm *__restrict __tp) __attribute__ ((__nothrow__));
  3499. # 748 "../../include/wchar.h"
  3500. # 15 "tst_types.h" 2
  3501. # 1 "../../include/wctype.h" 1
  3502. # 34 "../../include/wctype.h"
  3503. #define _WCTYPE_H 1
  3504. #define __need_wint_t
  3505. # 1 "/opt/STM/STLinux-2.3ear/devkit/sh4/lib/gcc/sh4-linux-uclibc/4.1.1/include/stddef.h" 1 3 4
  3506. # 163 "/opt/STM/STLinux-2.3ear/devkit/sh4/lib/gcc/sh4-linux-uclibc/4.1.1/include/stddef.h" 3 4
  3507. #undef __need_ptrdiff_t
  3508. # 236 "/opt/STM/STLinux-2.3ear/devkit/sh4/lib/gcc/sh4-linux-uclibc/4.1.1/include/stddef.h" 3 4
  3509. #undef __need_size_t
  3510. # 345 "/opt/STM/STLinux-2.3ear/devkit/sh4/lib/gcc/sh4-linux-uclibc/4.1.1/include/stddef.h" 3 4
  3511. #undef __need_wchar_t
  3512. # 357 "/opt/STM/STLinux-2.3ear/devkit/sh4/lib/gcc/sh4-linux-uclibc/4.1.1/include/stddef.h" 3 4
  3513. #undef __need_wint_t
  3514. # 398 "/opt/STM/STLinux-2.3ear/devkit/sh4/lib/gcc/sh4-linux-uclibc/4.1.1/include/stddef.h" 3 4
  3515. #undef NULL
  3516. #define NULL ((void *)0)
  3517. #undef __need_NULL
  3518. #define offsetof(TYPE,MEMBER) __builtin_offsetof (TYPE, MEMBER)
  3519. # 40 "../../include/wctype.h" 2
  3520. # 49 "../../include/wctype.h"
  3521. # 59 "../../include/wctype.h"
  3522. #undef __need_iswxxx
  3523. #define __iswxxx_defined 1
  3524. typedef unsigned int wctype_t;
  3525. #define _ISwbit(bit) (1 << (bit))
  3526. enum
  3527. {
  3528. __ISwupper = 0,
  3529. __ISwlower = 1,
  3530. __ISwalpha = 2,
  3531. __ISwdigit = 3,
  3532. __ISwxdigit = 4,
  3533. __ISwspace = 5,
  3534. __ISwprint = 6,
  3535. __ISwgraph = 7,
  3536. __ISwblank = 8,
  3537. __ISwcntrl = 9,
  3538. __ISwpunct = 10,
  3539. __ISwalnum = 11,
  3540. _ISwupper = (1 << (__ISwupper)),
  3541. _ISwlower = (1 << (__ISwlower)),
  3542. _ISwalpha = (1 << (__ISwalpha)),
  3543. _ISwdigit = (1 << (__ISwdigit)),
  3544. _ISwxdigit = (1 << (__ISwxdigit)),
  3545. _ISwspace = (1 << (__ISwspace)),
  3546. _ISwprint = (1 << (__ISwprint)),
  3547. _ISwgraph = (1 << (__ISwgraph)),
  3548. _ISwblank = (1 << (__ISwblank)),
  3549. _ISwcntrl = (1 << (__ISwcntrl)),
  3550. _ISwpunct = (1 << (__ISwpunct)),
  3551. _ISwalnum = (1 << (__ISwalnum))
  3552. };
  3553. # 113 "../../include/wctype.h"
  3554. extern int iswalnum (wint_t __wc) __attribute__ ((__nothrow__));
  3555. extern int iswalpha (wint_t __wc) __attribute__ ((__nothrow__));
  3556. extern int iswcntrl (wint_t __wc) __attribute__ ((__nothrow__));
  3557. extern int iswdigit (wint_t __wc) __attribute__ ((__nothrow__));
  3558. extern int iswgraph (wint_t __wc) __attribute__ ((__nothrow__));
  3559. extern int iswlower (wint_t __wc) __attribute__ ((__nothrow__));
  3560. extern int iswprint (wint_t __wc) __attribute__ ((__nothrow__));
  3561. extern int iswpunct (wint_t __wc) __attribute__ ((__nothrow__));
  3562. extern int iswspace (wint_t __wc) __attribute__ ((__nothrow__));
  3563. extern int iswupper (wint_t __wc) __attribute__ ((__nothrow__));
  3564. extern int iswxdigit (wint_t __wc) __attribute__ ((__nothrow__));
  3565. extern int iswblank (wint_t __wc) __attribute__ ((__nothrow__));
  3566. # 182 "../../include/wctype.h"
  3567. extern wctype_t wctype (__const char *__property) __attribute__ ((__nothrow__));
  3568. extern int iswctype (wint_t __wc, wctype_t __desc) __attribute__ ((__nothrow__));
  3569. typedef unsigned int wctrans_t;
  3570. extern wint_t towlower (wint_t __wc) __attribute__ ((__nothrow__));
  3571. extern wint_t towupper (wint_t __wc) __attribute__ ((__nothrow__));
  3572. # 225 "../../include/wctype.h"
  3573. extern wctrans_t wctrans (__const char *__property) __attribute__ ((__nothrow__));
  3574. extern wint_t towctrans (wint_t __wc, wctrans_t __desc) __attribute__ ((__nothrow__));
  3575. # 326 "../../include/wctype.h"
  3576. # 16 "tst_types.h" 2
  3577. # 1 "tst_funcs.h" 1
  3578. # 11 "tst_funcs.h"
  3579. #define TST_FUNCS_H
  3580. #define C_SUCCESS 'S'
  3581. #define C_FAILURE 'F'
  3582. #define C_IGNORED 'I'
  3583. #define C_INVALID 'D'
  3584. #define C_LOCALES 'L'
  3585. extern int result (FILE * fp, char res, const char *func, const char *loc,
  3586. int rec_no, int seq_num, int case_no, const char *msg);
  3587. #define Result(C,S,E,M) result (fp, (C), (S), locale, rec+1, seq_num+1, (E), (M))
  3588. #define CASE_0 0
  3589. #define CASE_1 1
  3590. #define CASE_2 2
  3591. #define CASE_3 3
  3592. #define CASE_4 4
  3593. #define CASE_5 5
  3594. #define CASE_6 6
  3595. #define CASE_7 7
  3596. #define CASE_8 8
  3597. #define CASE_9 9
  3598. #define MS_PASSED "PASSED"
  3599. #define MS_SPACE " "
  3600. #define MS_FAILED " "
  3601. #define MS_NOTEST "NOTEST"
  3602. #define MS_ABORTU "ABEND0"
  3603. #define MS_ABORT "ABEND1"
  3604. #define MK_PASSED 0x00
  3605. #define MK_SPACE 0x01
  3606. #define MK_NOTEST 0x02
  3607. #define MK_ABORTU 0x04
  3608. #define MK_ABORT 0x08
  3609. #define TST_ABS(x) (((x) > 0) ? (x) : -(x))
  3610. #define TMD_ERRET(_type_) int err_val; int ret_flg; _type_ ret_val
  3611. #define TMD_RECHEAD(_FUNC_) typedef struct { TIN_ ##_FUNC_ ##_REC input; TEX_ ##_FUNC_ ##_REC expect; int is_last; } TST_ ##_FUNC_ ##_REC; typedef struct { TST_HEAD hd; TST_ ##_FUNC_ ##_REC rec[ MAX_LOC_TEST ]; } TST_ ##_FUNC_
  3612. # 72 "tst_funcs.h"
  3613. #define TST_FTYP(func) tst_ ##func ##_loc
  3614. #define TST_HEAD(func) tst_ ##func ##_loc[ loc ].hd
  3615. #define TST_INPUT(func) tst_ ##func ##_loc[ loc ].rec[ rec ].input
  3616. #define TST_EXPECT(func) tst_ ##func ##_loc[ loc ].rec[ rec ].expect
  3617. #define TST_INPUT_SEQ(func) tst_ ##func ##_loc[ loc ].rec[ rec ].input.seq[ seq_num ]
  3618. #define TST_EXPECT_SEQ(func) tst_ ##func ##_loc[ loc ].rec[ rec ].expect.seq[ seq_num ]
  3619. #define TST_IS_LAST(func) tst_ ##func ##_loc[ loc ].rec[ rec ].is_last
  3620. #define TST_DECL_VARS(_type_) int loc, rec, err_count = 0; int warn_count __attribute__ ((unused)); int func_id, seq_num = 0; const char *locale; int err_exp, ret_flg; int errno_save = 0; _type_ ret_exp; _type_ ret
  3621. # 94 "tst_funcs.h"
  3622. #define TST_DO_TEST(o_func) for (loc = 0; strcmp (TST_HEAD (o_func).locale, TST_LOC_end); ++loc)
  3623. #define TST_HEAD_LOCALE(ofunc,s_func) func_id = TST_HEAD (ofunc).func_id; locale = TST_HEAD (ofunc).locale; if (setlocale (LC_ALL, locale) == NULL) { fprintf (stderr, "Warning : can't set locale: %s\nskipping ...\n", locale); result (fp, C_LOCALES, s_func, locale, 0, 0, 0, "can't set locale"); ++err_count; continue; }
  3624. # 110 "tst_funcs.h"
  3625. #define TST_DO_REC(ofunc) for (rec=0; !TST_IS_LAST (ofunc); ++rec)
  3626. #define TST_DO_SEQ(_count_) for (seq_num=0; seq_num < _count_; seq_num++)
  3627. #define TST_GET_ERRET(_ofunc_) err_exp = TST_EXPECT (_ofunc_).err_val; ret_flg = TST_EXPECT (_ofunc_).ret_flg; ret_exp = TST_EXPECT (_ofunc_).ret_val
  3628. #define TST_GET_ERRET_SEQ(_ofunc_) err_exp = TST_EXPECT_SEQ (_ofunc_).err_val; ret_flg = TST_EXPECT_SEQ (_ofunc_).ret_flg; ret_exp = TST_EXPECT_SEQ (_ofunc_).ret_val
  3629. #define TST_CLEAR_ERRNO errno = 0
  3630. #define TST_SAVE_ERRNO errno_save = errno
  3631. #define TST_IF_RETURN(_s_func_) if (err_exp != 0) { if (errno_save == err_exp) { result (fp, C_SUCCESS, _s_func_, locale, rec+1, seq_num+1, 1, MS_PASSED); } else { err_count++; result (fp, C_FAILURE, _s_func_, locale, rec+1, seq_num+1, 1, "the value of errno is different from an expected value"); } } if (ret_flg == 1) { if (ret == ret_exp) { result (fp, C_SUCCESS, _s_func_, locale, rec+1, seq_num+1, 2, MS_PASSED); } else { err_count++; result (fp, C_FAILURE, _s_func_, locale, rec+1, seq_num+1, 2, "the return value is different from an expected value"); } } else
  3632. # 165 "tst_funcs.h"
  3633. #define TEX_ERRET_REC(_type_) struct { TMD_ERRET (_type_); }
  3634. #define TEX_ERRET_REC_SEQ(_type_,_count_) struct { struct { TMD_ERRET (_type_); } seq[ _count_ ]; }
  3635. # 181 "tst_funcs.h"
  3636. #define TST_ISW_STRUCT(_FUNC_,_func_) typedef struct { wint_t wc; } TIN_ISW ##_FUNC_ ##_REC; typedef TEX_ERRET_REC (int) TEX_ISW ##_FUNC_ ##_REC; TMD_RECHEAD (ISW ##_FUNC_)
  3637. # 190 "tst_funcs.h"
  3638. #define TST_FUNC_ISW(_FUNC_,_func_) int tst_isw ##_func_ (FILE *fp, int debug_flg) { TST_DECL_VARS(int); wint_t wc; TST_DO_TEST (isw ##_func_) { TST_HEAD_LOCALE (isw ##_func_, S_ISW ##_FUNC_); TST_DO_REC(isw ##_func_) { TST_GET_ERRET (isw ##_func_); wc = TST_INPUT (isw ##_func_).wc; ret = isw ##_func_ (wc); if (debug_flg) { fprintf (stdout, "isw*() [ %s : %d ] ret = %d\n", locale, rec+1, ret); } TST_IF_RETURN (S_ISW ##_FUNC_) { if (ret != 0) { result (fp, C_SUCCESS, S_ISW ##_FUNC_, locale, rec+1, seq_num+1, 3, MS_PASSED); } else { err_count++; result (fp, C_FAILURE, S_ISW ##_FUNC_, locale, rec+1, seq_num+1, 3, "the function returned 0, but should be non-zero"); } } } } return err_count; }
  3639. # 235 "tst_funcs.h"
  3640. #define TST_TOW_STRUCT(_FUNC_,_func_) typedef struct { wint_t wc; } TIN_TOW ##_FUNC_ ##_REC; typedef TEX_ERRET_REC (wint_t) TEX_TOW ##_FUNC_ ##_REC; TMD_RECHEAD (TOW ##_FUNC_)
  3641. # 244 "tst_funcs.h"
  3642. #define TST_FUNC_TOW(_FUNC_,_func_) int tst_tow ##_func_ (FILE *fp, int debug_flg) { TST_DECL_VARS (wint_t); wint_t wc; TST_DO_TEST (tow ##_func_) { TST_HEAD_LOCALE (tow ##_func_, S_TOW ##_FUNC_); TST_DO_REC (tow ##_func_) { TST_GET_ERRET (tow ##_func_); wc = TST_INPUT (tow ##_func_).wc; ret = tow ##_func_ (wc); if (debug_flg) { fprintf (stdout, "tow*() [ %s : %d ] ret = 0x%x\n", locale, rec+1, ret); } TST_IF_RETURN (S_TOW ##_FUNC_) { }; } } return err_count; }
  3643. # 17 "tst_types.h" 2
  3644. # 1 "tgn_funcdef.h" 1
  3645. #define TGN_FUNCDEF_H
  3646. #define Tiswalnum 1
  3647. #define Tiswalpha 2
  3648. #define Tiswcntrl 3
  3649. #define Tiswctype 4
  3650. #define Tiswdigit 5
  3651. #define Tiswgraph 6
  3652. #define Tiswlower 7
  3653. #define Tiswprint 8
  3654. #define Tiswpunct 9
  3655. #define Tiswspace 10
  3656. #define Tiswupper 11
  3657. #define Tiswxdigit 12
  3658. #define Tmblen 13
  3659. #define Tmbrlen 14
  3660. #define Tmbrtowc 15
  3661. #define Tmbsrtowcs 16
  3662. #define Tmbstowcs 17
  3663. #define Tmbtowc 18
  3664. #define Tstrcoll 19
  3665. #define Tstrfmon 20
  3666. #define Tstrxfrm 21
  3667. #define Tswscanf 22
  3668. #define Ttowctrans 23
  3669. #define Ttowlower 24
  3670. #define Ttowupper 25
  3671. #define Twcrtomb 26
  3672. #define Twcscat 27
  3673. #define Twcschr 28
  3674. #define Twcscmp 29
  3675. #define Twcscoll 30
  3676. #define Twcscpy 31
  3677. #define Twcscspn 32
  3678. #define Twcslen 33
  3679. #define Twcsncat 34
  3680. #define Twcsncmp 35
  3681. #define Twcsncpy 36
  3682. #define Twcspbrk 37
  3683. #define Twcsrtombs 38
  3684. #define Twcsspn 39
  3685. #define Twcsstr 40
  3686. #define Twcstod 41
  3687. #define Twcstok 42
  3688. #define Twcstombs 43
  3689. #define Twcswidth 44
  3690. #define Twcsxfrm 45
  3691. #define Twctob 46
  3692. #define Twctomb 47
  3693. #define Twctrans 48
  3694. #define Twctype 49
  3695. #define Twcwidth 50
  3696. #define S_ISWALNUM "iswalnum"
  3697. #define S_ISWALPHA "iswalpha"
  3698. #define S_ISWCNTRL "iswcntrl"
  3699. #define S_ISWCTYPE "iswctype"
  3700. #define S_ISWDIGIT "iswdigit"
  3701. #define S_ISWGRAPH "iswgraph"
  3702. #define S_ISWLOWER "iswlower"
  3703. #define S_ISWPRINT "iswprint"
  3704. #define S_ISWPUNCT "iswpunct"
  3705. #define S_ISWSPACE "iswspace"
  3706. #define S_ISWUPPER "iswupper"
  3707. #define S_ISWXDIGIT "iswxdigit"
  3708. #define S_MBLEN "mblen"
  3709. #define S_MBRLEN "mbrlen"
  3710. #define S_MBRTOWC "mbrtowc"
  3711. #define S_MBSRTOWCS "mbsrtowcs"
  3712. #define S_MBSTOWCS "mbstowcs"
  3713. #define S_MBTOWC "mbtowc"
  3714. #define S_STRCOLL "strcoll"
  3715. #define S_STRFMON "strfmon"
  3716. #define S_STRXFRM "strxfrm"
  3717. #define S_SWSCANF "swscanf"
  3718. #define S_TOWCTRANS "towctrans"
  3719. #define S_TOWLOWER "towlower"
  3720. #define S_TOWUPPER "towupper"
  3721. #define S_WCRTOMB "wcrtomb"
  3722. #define S_WCSCAT "wcscat"
  3723. #define S_WCSCHR "wcschr"
  3724. #define S_WCSCMP "wcscmp"
  3725. #define S_WCSCOLL "wcscoll"
  3726. #define S_WCSCPY "wcscpy"
  3727. #define S_WCSCSPN "wcscspn"
  3728. #define S_WCSLEN "wcslen"
  3729. #define S_WCSNCAT "wcsncat"
  3730. #define S_WCSNCMP "wcsncmp"
  3731. #define S_WCSNCPY "wcsncpy"
  3732. #define S_WCSPBRK "wcspbrk"
  3733. #define S_WCSRTOMBS "wcsrtombs"
  3734. #define S_WCSSPN "wcsspn"
  3735. #define S_WCSSTR "wcsstr"
  3736. #define S_WCSTOD "wcstod"
  3737. #define S_WCSTOK "wcstok"
  3738. #define S_WCSTOMBS "wcstombs"
  3739. #define S_WCSWIDTH "wcswidth"
  3740. #define S_WCSXFRM "wcsxfrm"
  3741. #define S_WCTOB "wctob"
  3742. #define S_WCTOMB "wctomb"
  3743. #define S_WCTRANS "wctrans"
  3744. #define S_WCTYPE "wctype"
  3745. #define S_WCWIDTH "wcwidth"
  3746. extern int tst_iswalnum (FILE *, int);
  3747. extern int tst_iswalpha (FILE *, int);
  3748. extern int tst_iswcntrl (FILE *, int);
  3749. extern int tst_iswctype (FILE *, int);
  3750. extern int tst_iswdigit (FILE *, int);
  3751. extern int tst_iswgraph (FILE *, int);
  3752. extern int tst_iswlower (FILE *, int);
  3753. extern int tst_iswprint (FILE *, int);
  3754. extern int tst_iswpunct (FILE *, int);
  3755. extern int tst_iswspace (FILE *, int);
  3756. extern int tst_iswupper (FILE *, int);
  3757. extern int tst_iswxdigit (FILE *, int);
  3758. extern int tst_mblen (FILE *, int);
  3759. extern int tst_mbrlen (FILE *, int);
  3760. extern int tst_mbrtowc (FILE *, int);
  3761. extern int tst_mbsrtowcs (FILE *, int);
  3762. extern int tst_mbstowcs (FILE *, int);
  3763. extern int tst_mbtowc (FILE *, int);
  3764. extern int tst_strcoll (FILE *, int);
  3765. extern int tst_strfmon (FILE *, int);
  3766. extern int tst_strxfrm (FILE *, int);
  3767. extern int tst_swscanf (FILE *, int);
  3768. extern int tst_towctrans (FILE *, int);
  3769. extern int tst_towlower (FILE *, int);
  3770. extern int tst_towupper (FILE *, int);
  3771. extern int tst_wcrtomb (FILE *, int);
  3772. extern int tst_wcscat (FILE *, int);
  3773. extern int tst_wcschr (FILE *, int);
  3774. extern int tst_wcscmp (FILE *, int);
  3775. extern int tst_wcscoll (FILE *, int);
  3776. extern int tst_wcscpy (FILE *, int);
  3777. extern int tst_wcscspn (FILE *, int);
  3778. extern int tst_wcslen (FILE *, int);
  3779. extern int tst_wcsncat (FILE *, int);
  3780. extern int tst_wcsncmp (FILE *, int);
  3781. extern int tst_wcsncpy (FILE *, int);
  3782. extern int tst_wcspbrk (FILE *, int);
  3783. extern int tst_wcsrtombs (FILE *, int);
  3784. extern int tst_wcsspn (FILE *, int);
  3785. extern int tst_wcsstr (FILE *, int);
  3786. extern int tst_wcstod (FILE *, int);
  3787. extern int tst_wcstok (FILE *, int);
  3788. extern int tst_wcstombs (FILE *, int);
  3789. extern int tst_wcswidth (FILE *, int);
  3790. extern int tst_wcsxfrm (FILE *, int);
  3791. extern int tst_wctob (FILE *, int);
  3792. extern int tst_wctomb (FILE *, int);
  3793. extern int tst_wctrans (FILE *, int);
  3794. extern int tst_wctype (FILE *, int);
  3795. extern int tst_wcwidth (FILE *, int);
  3796. # 18 "tst_types.h" 2
  3797. #define MBSSIZE 24
  3798. #define WCSSIZE 12
  3799. #define MONFMTSIZE 16
  3800. #define MONSIZE 64
  3801. #define USE_MBCURMAX 99
  3802. #define TST_DBL_EPS 2.22153e-16
  3803. #define WCSTOK_SEQNUM 3
  3804. #define MBLEN_SEQNUM 3
  3805. #define MBTOWC_SEQNUM 3
  3806. #define MBSTOWCS_SEQNUM 3
  3807. #define WCTOMB_SEQNUM 3
  3808. #define WCSTOMBS_SEQNUM 3
  3809. #define MBRLEN_SEQNUM 3
  3810. #define MBRTOWC_SEQNUM 3
  3811. #define MBSRTOWCS_SEQNUM 3
  3812. #define WCRTOMB_SEQNUM 3
  3813. #define WCSRTOMBS_SEQNUM 3
  3814. #define MAX_LOC_TEST 300
  3815. typedef struct
  3816. {
  3817. char *func_str;
  3818. int func_id;
  3819. }
  3820. TST_FID;
  3821. typedef struct
  3822. {
  3823. int func_id;
  3824. const char *locale;
  3825. }
  3826. TST_HEAD;
  3827. typedef struct
  3828. {
  3829. TST_HEAD *head;
  3830. }
  3831. TST_FUNCS;
  3832. typedef struct { wint_t wc; } TIN_ISWALNUM_REC; typedef struct { int err_val; int ret_flg; int ret_val; } TEX_ISWALNUM_REC; typedef struct { TIN_ISWALNUM_REC input; TEX_ISWALNUM_REC expect; int is_last; } TST_ISWALNUM_REC; typedef struct { TST_HEAD hd; TST_ISWALNUM_REC rec[ 300 ]; } TST_ISWALNUM;
  3833. typedef struct { wint_t wc; } TIN_ISWALPHA_REC; typedef struct { int err_val; int ret_flg; int ret_val; } TEX_ISWALPHA_REC; typedef struct { TIN_ISWALPHA_REC input; TEX_ISWALPHA_REC expect; int is_last; } TST_ISWALPHA_REC; typedef struct { TST_HEAD hd; TST_ISWALPHA_REC rec[ 300 ]; } TST_ISWALPHA;
  3834. typedef struct { wint_t wc; } TIN_ISWCNTRL_REC; typedef struct { int err_val; int ret_flg; int ret_val; } TEX_ISWCNTRL_REC; typedef struct { TIN_ISWCNTRL_REC input; TEX_ISWCNTRL_REC expect; int is_last; } TST_ISWCNTRL_REC; typedef struct { TST_HEAD hd; TST_ISWCNTRL_REC rec[ 300 ]; } TST_ISWCNTRL;
  3835. typedef struct { wint_t wc; } TIN_ISWDIGIT_REC; typedef struct { int err_val; int ret_flg; int ret_val; } TEX_ISWDIGIT_REC; typedef struct { TIN_ISWDIGIT_REC input; TEX_ISWDIGIT_REC expect; int is_last; } TST_ISWDIGIT_REC; typedef struct { TST_HEAD hd; TST_ISWDIGIT_REC rec[ 300 ]; } TST_ISWDIGIT;
  3836. typedef struct { wint_t wc; } TIN_ISWGRAPH_REC; typedef struct { int err_val; int ret_flg; int ret_val; } TEX_ISWGRAPH_REC; typedef struct { TIN_ISWGRAPH_REC input; TEX_ISWGRAPH_REC expect; int is_last; } TST_ISWGRAPH_REC; typedef struct { TST_HEAD hd; TST_ISWGRAPH_REC rec[ 300 ]; } TST_ISWGRAPH;
  3837. typedef struct { wint_t wc; } TIN_ISWLOWER_REC; typedef struct { int err_val; int ret_flg; int ret_val; } TEX_ISWLOWER_REC; typedef struct { TIN_ISWLOWER_REC input; TEX_ISWLOWER_REC expect; int is_last; } TST_ISWLOWER_REC; typedef struct { TST_HEAD hd; TST_ISWLOWER_REC rec[ 300 ]; } TST_ISWLOWER;
  3838. typedef struct { wint_t wc; } TIN_ISWPRINT_REC; typedef struct { int err_val; int ret_flg; int ret_val; } TEX_ISWPRINT_REC; typedef struct { TIN_ISWPRINT_REC input; TEX_ISWPRINT_REC expect; int is_last; } TST_ISWPRINT_REC; typedef struct { TST_HEAD hd; TST_ISWPRINT_REC rec[ 300 ]; } TST_ISWPRINT;
  3839. typedef struct { wint_t wc; } TIN_ISWPUNCT_REC; typedef struct { int err_val; int ret_flg; int ret_val; } TEX_ISWPUNCT_REC; typedef struct { TIN_ISWPUNCT_REC input; TEX_ISWPUNCT_REC expect; int is_last; } TST_ISWPUNCT_REC; typedef struct { TST_HEAD hd; TST_ISWPUNCT_REC rec[ 300 ]; } TST_ISWPUNCT;
  3840. typedef struct { wint_t wc; } TIN_ISWSPACE_REC; typedef struct { int err_val; int ret_flg; int ret_val; } TEX_ISWSPACE_REC; typedef struct { TIN_ISWSPACE_REC input; TEX_ISWSPACE_REC expect; int is_last; } TST_ISWSPACE_REC; typedef struct { TST_HEAD hd; TST_ISWSPACE_REC rec[ 300 ]; } TST_ISWSPACE;
  3841. typedef struct { wint_t wc; } TIN_ISWUPPER_REC; typedef struct { int err_val; int ret_flg; int ret_val; } TEX_ISWUPPER_REC; typedef struct { TIN_ISWUPPER_REC input; TEX_ISWUPPER_REC expect; int is_last; } TST_ISWUPPER_REC; typedef struct { TST_HEAD hd; TST_ISWUPPER_REC rec[ 300 ]; } TST_ISWUPPER;
  3842. typedef struct { wint_t wc; } TIN_ISWXDIGIT_REC; typedef struct { int err_val; int ret_flg; int ret_val; } TEX_ISWXDIGIT_REC; typedef struct { TIN_ISWXDIGIT_REC input; TEX_ISWXDIGIT_REC expect; int is_last; } TST_ISWXDIGIT_REC; typedef struct { TST_HEAD hd; TST_ISWXDIGIT_REC rec[ 300 ]; } TST_ISWXDIGIT;
  3843. typedef struct
  3844. {
  3845. wint_t wc;
  3846. const char *ts;
  3847. }
  3848. TIN_ISWCTYPE_REC;
  3849. typedef
  3850. struct { int err_val; int ret_flg; int ret_val; }
  3851. TEX_ISWCTYPE_REC;
  3852. typedef struct { TIN_ISWCTYPE_REC input; TEX_ISWCTYPE_REC expect; int is_last; } TST_ISWCTYPE_REC; typedef struct { TST_HEAD hd; TST_ISWCTYPE_REC rec[ 300 ]; } TST_ISWCTYPE;
  3853. typedef struct
  3854. {
  3855. char s_flg;
  3856. char s[24];
  3857. size_t n;
  3858. }
  3859. TIN_MBLEN_REC;
  3860. typedef struct { int err_val; int ret_flg; int ret_val; } TEX_MBLEN_REC;
  3861. typedef struct { TIN_MBLEN_REC input; TEX_MBLEN_REC expect; int is_last; } TST_MBLEN_REC; typedef struct { TST_HEAD hd; TST_MBLEN_REC rec[ 300 ]; } TST_MBLEN;
  3862. typedef struct
  3863. {
  3864. struct
  3865. {
  3866. int s_flg;
  3867. char s[24];
  3868. size_t n;
  3869. int t_flg;
  3870. int t_init;
  3871. }
  3872. seq[3];
  3873. }
  3874. TIN_MBRLEN_REC;
  3875. typedef struct { struct { int err_val; int ret_flg; size_t ret_val; } seq[ 3 ]; } TEX_MBRLEN_REC;
  3876. typedef struct { TIN_MBRLEN_REC input; TEX_MBRLEN_REC expect; int is_last; } TST_MBRLEN_REC; typedef struct { TST_HEAD hd; TST_MBRLEN_REC rec[ 300 ]; } TST_MBRLEN;
  3877. typedef struct
  3878. {
  3879. struct
  3880. {
  3881. int w_flg;
  3882. int s_flg;
  3883. char s[24];
  3884. size_t n;
  3885. int t_flg;
  3886. int t_init;
  3887. }
  3888. seq[3];
  3889. }
  3890. TIN_MBRTOWC_REC;
  3891. typedef struct
  3892. {
  3893. struct
  3894. {
  3895. int err_val; int ret_flg; size_t ret_val;
  3896. wchar_t wc;
  3897. }
  3898. seq[3];
  3899. }
  3900. TEX_MBRTOWC_REC;
  3901. typedef struct { TIN_MBRTOWC_REC input; TEX_MBRTOWC_REC expect; int is_last; } TST_MBRTOWC_REC; typedef struct { TST_HEAD hd; TST_MBRTOWC_REC rec[ 300 ]; } TST_MBRTOWC;
  3902. typedef struct
  3903. {
  3904. struct
  3905. {
  3906. int w_flg;
  3907. char s[24];
  3908. size_t n;
  3909. int t_flg;
  3910. int t_init;
  3911. }
  3912. seq[3];
  3913. }
  3914. TIN_MBSRTOWCS_REC;
  3915. typedef struct
  3916. {
  3917. struct
  3918. {
  3919. int err_val; int ret_flg; size_t ret_val;
  3920. wchar_t ws[12];
  3921. }
  3922. seq[3];
  3923. }
  3924. TEX_MBSRTOWCS_REC;
  3925. typedef struct { TIN_MBSRTOWCS_REC input; TEX_MBSRTOWCS_REC expect; int is_last; } TST_MBSRTOWCS_REC; typedef struct { TST_HEAD hd; TST_MBSRTOWCS_REC rec[ 300 ]; } TST_MBSRTOWCS;
  3926. typedef struct
  3927. {
  3928. struct
  3929. {
  3930. int w_flg;
  3931. int s_flg;
  3932. const char *s;
  3933. size_t n;
  3934. }
  3935. seq[3];
  3936. }
  3937. TIN_MBSTOWCS_REC;
  3938. typedef TEX_MBSRTOWCS_REC TEX_MBSTOWCS_REC;
  3939. typedef struct { TIN_MBSTOWCS_REC input; TEX_MBSTOWCS_REC expect; int is_last; } TST_MBSTOWCS_REC; typedef struct { TST_HEAD hd; TST_MBSTOWCS_REC rec[ 300 ]; } TST_MBSTOWCS;
  3940. typedef TIN_MBSTOWCS_REC TIN_MBTOWC_REC;
  3941. typedef struct
  3942. {
  3943. struct
  3944. {
  3945. int err_val; int ret_flg; int ret_val;
  3946. wchar_t wc;
  3947. }
  3948. seq[3];
  3949. }
  3950. TEX_MBTOWC_REC;
  3951. typedef struct { TIN_MBTOWC_REC input; TEX_MBTOWC_REC expect; int is_last; } TST_MBTOWC_REC; typedef struct { TST_HEAD hd; TST_MBTOWC_REC rec[ 300 ]; } TST_MBTOWC;
  3952. typedef struct
  3953. {
  3954. char s1[24];
  3955. char s2[24];
  3956. }
  3957. TIN_STRCOLL_REC;
  3958. typedef struct { int err_val; int ret_flg; int ret_val; } TEX_STRCOLL_REC;
  3959. typedef struct { TIN_STRCOLL_REC input; TEX_STRCOLL_REC expect; int is_last; } TST_STRCOLL_REC; typedef struct { TST_HEAD hd; TST_STRCOLL_REC rec[ 300 ]; } TST_STRCOLL;
  3960. typedef struct
  3961. {
  3962. int nbytes;
  3963. char fmt[16];
  3964. double val;
  3965. }
  3966. TIN_STRFMON_REC;
  3967. typedef struct
  3968. {
  3969. int err_val; int ret_flg; size_t ret_val;
  3970. char mon[64];
  3971. }
  3972. TEX_STRFMON_REC;
  3973. typedef struct { TIN_STRFMON_REC input; TEX_STRFMON_REC expect; int is_last; } TST_STRFMON_REC; typedef struct { TST_HEAD hd; TST_STRFMON_REC rec[ 300 ]; } TST_STRFMON;
  3974. typedef struct
  3975. {
  3976. char org1[24];
  3977. char org2[24];
  3978. size_t n1, n2;
  3979. }
  3980. TIN_STRXFRM_REC;
  3981. typedef struct { int err_val; int ret_flg; size_t ret_val; } TEX_STRXFRM_REC;
  3982. typedef struct { TIN_STRXFRM_REC input; TEX_STRXFRM_REC expect; int is_last; } TST_STRXFRM_REC; typedef struct { TST_HEAD hd; TST_STRXFRM_REC rec[ 300 ]; } TST_STRXFRM;
  3983. typedef struct
  3984. {
  3985. wchar_t ws[12 * 3];
  3986. wchar_t fmt[12 * 3];
  3987. int wch;
  3988. }
  3989. TIN_SWSCANF_REC;
  3990. typedef struct
  3991. {
  3992. int err_val; int ret_flg; int ret_val;
  3993. int val_int;
  3994. unsigned val_uns;
  3995. float val_flt;
  3996. int val_c;
  3997. char val_s[24 * 2];
  3998. wchar_t val_S[12 * 2];
  3999. }
  4000. TEX_SWSCANF_REC;
  4001. typedef struct { TIN_SWSCANF_REC input; TEX_SWSCANF_REC expect; int is_last; } TST_SWSCANF_REC; typedef struct { TST_HEAD hd; TST_SWSCANF_REC rec[ 300 ]; } TST_SWSCANF;
  4002. typedef TIN_ISWCTYPE_REC TIN_TOWCTRANS_REC;
  4003. typedef struct { int err_val; int ret_flg; wint_t ret_val; } TEX_TOWCTRANS_REC;
  4004. typedef struct { TIN_TOWCTRANS_REC input; TEX_TOWCTRANS_REC expect; int is_last; } TST_TOWCTRANS_REC; typedef struct { TST_HEAD hd; TST_TOWCTRANS_REC rec[ 300 ]; } TST_TOWCTRANS;
  4005. typedef struct { wint_t wc; } TIN_TOWLOWER_REC; typedef struct { int err_val; int ret_flg; wint_t ret_val; } TEX_TOWLOWER_REC; typedef struct { TIN_TOWLOWER_REC input; TEX_TOWLOWER_REC expect; int is_last; } TST_TOWLOWER_REC; typedef struct { TST_HEAD hd; TST_TOWLOWER_REC rec[ 300 ]; } TST_TOWLOWER;
  4006. typedef struct { wint_t wc; } TIN_TOWUPPER_REC; typedef struct { int err_val; int ret_flg; wint_t ret_val; } TEX_TOWUPPER_REC; typedef struct { TIN_TOWUPPER_REC input; TEX_TOWUPPER_REC expect; int is_last; } TST_TOWUPPER_REC; typedef struct { TST_HEAD hd; TST_TOWUPPER_REC rec[ 300 ]; } TST_TOWUPPER;
  4007. typedef struct
  4008. {
  4009. int s_flg;
  4010. wchar_t wc;
  4011. int t_flg;
  4012. int t_init;
  4013. }
  4014. TIN_WCRTOMB_REC;
  4015. typedef struct
  4016. {
  4017. int err_val; int ret_flg; wchar_t ret_val;
  4018. char s[24];
  4019. }
  4020. TEX_WCRTOMB_REC;
  4021. typedef struct { TIN_WCRTOMB_REC input; TEX_WCRTOMB_REC expect; int is_last; } TST_WCRTOMB_REC; typedef struct { TST_HEAD hd; TST_WCRTOMB_REC rec[ 300 ]; } TST_WCRTOMB;
  4022. typedef struct
  4023. {
  4024. wchar_t ws1[12];
  4025. wchar_t ws2[12];
  4026. }
  4027. TIN_WCSCAT_REC;
  4028. typedef struct
  4029. {
  4030. int err_val; int ret_flg; wchar_t * ret_val;
  4031. wchar_t ws[12];
  4032. }
  4033. TEX_WCSCAT_REC;
  4034. typedef struct { TIN_WCSCAT_REC input; TEX_WCSCAT_REC expect; int is_last; } TST_WCSCAT_REC; typedef struct { TST_HEAD hd; TST_WCSCAT_REC rec[ 300 ]; } TST_WCSCAT;
  4035. typedef struct
  4036. {
  4037. wchar_t ws[12];
  4038. wchar_t wc;
  4039. }
  4040. TIN_WCSCHR_REC;
  4041. typedef struct { int err_val; int ret_flg; wchar_t * ret_val; } TEX_WCSCHR_REC;
  4042. typedef struct { TIN_WCSCHR_REC input; TEX_WCSCHR_REC expect; int is_last; } TST_WCSCHR_REC; typedef struct { TST_HEAD hd; TST_WCSCHR_REC rec[ 300 ]; } TST_WCSCHR;
  4043. typedef TIN_WCSCAT_REC TIN_WCSCMP_REC;
  4044. typedef struct { int err_val; int ret_flg; int ret_val; } TEX_WCSCMP_REC;
  4045. typedef struct { TIN_WCSCMP_REC input; TEX_WCSCMP_REC expect; int is_last; } TST_WCSCMP_REC; typedef struct { TST_HEAD hd; TST_WCSCMP_REC rec[ 300 ]; } TST_WCSCMP;
  4046. typedef TIN_WCSCMP_REC TIN_WCSCOLL_REC;
  4047. typedef struct
  4048. {
  4049. int err_val; int ret_flg; int ret_val;
  4050. int cmp_flg;
  4051. }
  4052. TEX_WCSCOLL_REC;
  4053. typedef struct { TIN_WCSCOLL_REC input; TEX_WCSCOLL_REC expect; int is_last; } TST_WCSCOLL_REC; typedef struct { TST_HEAD hd; TST_WCSCOLL_REC rec[ 300 ]; } TST_WCSCOLL;
  4054. typedef struct
  4055. {
  4056. wchar_t ws[12];
  4057. }
  4058. TIN_WCSCPY_REC;
  4059. typedef TEX_WCSCAT_REC TEX_WCSCPY_REC;
  4060. typedef struct { TIN_WCSCPY_REC input; TEX_WCSCPY_REC expect; int is_last; } TST_WCSCPY_REC; typedef struct { TST_HEAD hd; TST_WCSCPY_REC rec[ 300 ]; } TST_WCSCPY;
  4061. typedef TIN_WCSCAT_REC TIN_WCSCSPN_REC;
  4062. typedef struct { int err_val; int ret_flg; size_t ret_val; } TEX_WCSCSPN_REC;
  4063. typedef struct { TIN_WCSCSPN_REC input; TEX_WCSCSPN_REC expect; int is_last; } TST_WCSCSPN_REC; typedef struct { TST_HEAD hd; TST_WCSCSPN_REC rec[ 300 ]; } TST_WCSCSPN;
  4064. typedef TIN_WCSCPY_REC TIN_WCSLEN_REC;
  4065. typedef struct { int err_val; int ret_flg; size_t ret_val; } TEX_WCSLEN_REC;
  4066. typedef struct { TIN_WCSLEN_REC input; TEX_WCSLEN_REC expect; int is_last; } TST_WCSLEN_REC; typedef struct { TST_HEAD hd; TST_WCSLEN_REC rec[ 300 ]; } TST_WCSLEN;
  4067. typedef struct
  4068. {
  4069. wchar_t ws1[12];
  4070. wchar_t ws2[12];
  4071. size_t n;
  4072. }
  4073. TIN_WCSNCAT_REC;
  4074. typedef TEX_WCSCAT_REC TEX_WCSNCAT_REC;
  4075. typedef struct { TIN_WCSNCAT_REC input; TEX_WCSNCAT_REC expect; int is_last; } TST_WCSNCAT_REC; typedef struct { TST_HEAD hd; TST_WCSNCAT_REC rec[ 300 ]; } TST_WCSNCAT;
  4076. typedef TIN_WCSNCAT_REC TIN_WCSNCMP_REC;
  4077. typedef struct { int err_val; int ret_flg; int ret_val; } TEX_WCSNCMP_REC;
  4078. typedef struct { TIN_WCSNCMP_REC input; TEX_WCSNCMP_REC expect; int is_last; } TST_WCSNCMP_REC; typedef struct { TST_HEAD hd; TST_WCSNCMP_REC rec[ 300 ]; } TST_WCSNCMP;
  4079. typedef struct
  4080. {
  4081. wchar_t ws[12];
  4082. size_t n;
  4083. }
  4084. TIN_WCSNCPY_REC;
  4085. typedef TEX_WCSCPY_REC TEX_WCSNCPY_REC;
  4086. typedef struct { TIN_WCSNCPY_REC input; TEX_WCSNCPY_REC expect; int is_last; } TST_WCSNCPY_REC; typedef struct { TST_HEAD hd; TST_WCSNCPY_REC rec[ 300 ]; } TST_WCSNCPY;
  4087. typedef TIN_WCSCSPN_REC TIN_WCSPBRK_REC;
  4088. typedef struct
  4089. {
  4090. int err_val; int ret_flg; wchar_t * ret_val;
  4091. wchar_t wc;
  4092. }
  4093. TEX_WCSPBRK_REC;
  4094. typedef struct { TIN_WCSPBRK_REC input; TEX_WCSPBRK_REC expect; int is_last; } TST_WCSPBRK_REC; typedef struct { TST_HEAD hd; TST_WCSPBRK_REC rec[ 300 ]; } TST_WCSPBRK;
  4095. typedef struct
  4096. {
  4097. int s_flg;
  4098. int w_flg;
  4099. wchar_t ws[12];
  4100. size_t n;
  4101. int t_flg;
  4102. int t_init;
  4103. }
  4104. TIN_WCSRTOMBS_REC;
  4105. typedef struct
  4106. {
  4107. int err_val; int ret_flg; size_t ret_val;
  4108. char s[24];
  4109. }
  4110. TEX_WCSRTOMBS_REC;
  4111. typedef struct { TIN_WCSRTOMBS_REC input; TEX_WCSRTOMBS_REC expect; int is_last; } TST_WCSRTOMBS_REC; typedef struct { TST_HEAD hd; TST_WCSRTOMBS_REC rec[ 300 ]; } TST_WCSRTOMBS;
  4112. typedef TIN_WCSCSPN_REC TIN_WCSSPN_REC;
  4113. typedef TEX_WCSCSPN_REC TEX_WCSSPN_REC;
  4114. typedef struct { TIN_WCSSPN_REC input; TEX_WCSSPN_REC expect; int is_last; } TST_WCSSPN_REC; typedef struct { TST_HEAD hd; TST_WCSSPN_REC rec[ 300 ]; } TST_WCSSPN;
  4115. typedef TIN_WCSCSPN_REC TIN_WCSSTR_REC;
  4116. typedef struct { int err_val; int ret_flg; wchar_t * ret_val; } TEX_WCSSTR_REC;
  4117. typedef struct { TIN_WCSSTR_REC input; TEX_WCSSTR_REC expect; int is_last; } TST_WCSSTR_REC; typedef struct { TST_HEAD hd; TST_WCSSTR_REC rec[ 300 ]; } TST_WCSSTR;
  4118. typedef struct
  4119. {
  4120. wchar_t np[12];
  4121. }
  4122. TIN_WCSTOD_REC;
  4123. typedef struct
  4124. {
  4125. int err_val; int ret_flg; double ret_val;
  4126. double val;
  4127. wchar_t fwc;
  4128. }
  4129. TEX_WCSTOD_REC;
  4130. typedef struct { TIN_WCSTOD_REC input; TEX_WCSTOD_REC expect; int is_last; } TST_WCSTOD_REC; typedef struct { TST_HEAD hd; TST_WCSTOD_REC rec[ 300 ]; } TST_WCSTOD;
  4131. typedef struct
  4132. {
  4133. struct
  4134. {
  4135. int w_flg;
  4136. wchar_t ws[12];
  4137. wchar_t dt[12];
  4138. }
  4139. seq[3];
  4140. }
  4141. TIN_WCSTOK_REC;
  4142. typedef struct
  4143. {
  4144. struct
  4145. {
  4146. int err_val; int ret_flg; wchar_t * ret_val;
  4147. wchar_t ws[12];
  4148. }
  4149. seq[3];
  4150. }
  4151. TEX_WCSTOK_REC;
  4152. typedef struct { TIN_WCSTOK_REC input; TEX_WCSTOK_REC expect; int is_last; } TST_WCSTOK_REC; typedef struct { TST_HEAD hd; TST_WCSTOK_REC rec[ 300 ]; } TST_WCSTOK;
  4153. typedef struct
  4154. {
  4155. int s_flg;
  4156. int w_flg;
  4157. wchar_t ws[12];
  4158. size_t n;
  4159. }
  4160. TIN_WCSTOMBS_REC;
  4161. typedef struct
  4162. {
  4163. int err_val; int ret_flg; size_t ret_val;
  4164. char s[24];
  4165. }
  4166. TEX_WCSTOMBS_REC;
  4167. typedef struct { TIN_WCSTOMBS_REC input; TEX_WCSTOMBS_REC expect; int is_last; } TST_WCSTOMBS_REC; typedef struct { TST_HEAD hd; TST_WCSTOMBS_REC rec[ 300 ]; } TST_WCSTOMBS;
  4168. typedef TIN_WCSNCPY_REC TIN_WCSWIDTH_REC;
  4169. typedef struct { int err_val; int ret_flg; int ret_val; } TEX_WCSWIDTH_REC;
  4170. typedef struct { TIN_WCSWIDTH_REC input; TEX_WCSWIDTH_REC expect; int is_last; } TST_WCSWIDTH_REC; typedef struct { TST_HEAD hd; TST_WCSWIDTH_REC rec[ 300 ]; } TST_WCSWIDTH;
  4171. typedef struct
  4172. {
  4173. wchar_t org1[12];
  4174. wchar_t org2[12];
  4175. int n1, n2;
  4176. }
  4177. TIN_WCSXFRM_REC;
  4178. typedef struct { int err_val; int ret_flg; size_t ret_val; } TEX_WCSXFRM_REC;
  4179. typedef struct { TIN_WCSXFRM_REC input; TEX_WCSXFRM_REC expect; int is_last; } TST_WCSXFRM_REC; typedef struct { TST_HEAD hd; TST_WCSXFRM_REC rec[ 300 ]; } TST_WCSXFRM;
  4180. typedef struct
  4181. {
  4182. wint_t wc;
  4183. }
  4184. TIN_WCTOB_REC;
  4185. typedef struct { int err_val; int ret_flg; int ret_val; } TEX_WCTOB_REC;
  4186. typedef struct { TIN_WCTOB_REC input; TEX_WCTOB_REC expect; int is_last; } TST_WCTOB_REC; typedef struct { TST_HEAD hd; TST_WCTOB_REC rec[ 300 ]; } TST_WCTOB;
  4187. typedef struct
  4188. {
  4189. int s_flg;
  4190. wchar_t wc;
  4191. }
  4192. TIN_WCTOMB_REC;
  4193. typedef struct
  4194. {
  4195. int err_val; int ret_flg; int ret_val;
  4196. char s[24];
  4197. }
  4198. TEX_WCTOMB_REC;
  4199. typedef struct { TIN_WCTOMB_REC input; TEX_WCTOMB_REC expect; int is_last; } TST_WCTOMB_REC; typedef struct { TST_HEAD hd; TST_WCTOMB_REC rec[ 300 ]; } TST_WCTOMB;
  4200. typedef struct
  4201. {
  4202. char class[24];
  4203. }
  4204. TIN_WCTRANS_REC;
  4205. typedef struct { int err_val; int ret_flg; wctrans_t ret_val; } TEX_WCTRANS_REC;
  4206. typedef struct { TIN_WCTRANS_REC input; TEX_WCTRANS_REC expect; int is_last; } TST_WCTRANS_REC; typedef struct { TST_HEAD hd; TST_WCTRANS_REC rec[ 300 ]; } TST_WCTRANS;
  4207. typedef TIN_WCTRANS_REC TIN_WCTYPE_REC;
  4208. typedef struct { int err_val; int ret_flg; wctype_t ret_val; } TEX_WCTYPE_REC;
  4209. typedef struct { TIN_WCTYPE_REC input; TEX_WCTYPE_REC expect; int is_last; } TST_WCTYPE_REC; typedef struct { TST_HEAD hd; TST_WCTYPE_REC rec[ 300 ]; } TST_WCTYPE;
  4210. typedef struct
  4211. {
  4212. wchar_t wc;
  4213. }
  4214. TIN_WCWIDTH_REC;
  4215. typedef struct { int err_val; int ret_flg; int ret_val; } TEX_WCWIDTH_REC;
  4216. typedef struct { TIN_WCWIDTH_REC input; TEX_WCWIDTH_REC expect; int is_last; } TST_WCWIDTH_REC; typedef struct { TST_HEAD hd; TST_WCWIDTH_REC rec[ 300 ]; } TST_WCWIDTH;
  4217. # 18 "tsp_common.c" 2
  4218. # 1 "tgn_locdef.h" 1
  4219. #define TGN_LOCDEF_H
  4220. #define TST_LOC_C "C"
  4221. #define TST_LOC_de "de_DE.ISO-8859-1"
  4222. #define TST_LOC_enUS "en_US.ANSI_X3.4-1968"
  4223. #define TST_LOC_eucJP "ja_JP.EUC-JP"
  4224. #define TST_LOC_de_UTF8 "de_DE.UTF-8"
  4225. #define TST_LOC_end "lastEntry"
  4226. # 19 "tsp_common.c" 2
  4227. int
  4228. main (int argc, char *argv[])
  4229. {
  4230. int ret;
  4231. int debug;
  4232. debug = argc > 1 ? atoi (argv[1]) : 0;
  4233. if (debug)
  4234. {
  4235. fprintf (stdout, "\nTST_MBWC ===> %s ...\n", argv[0]);
  4236. }
  4237. ret = tst_mbrlen (stdout, debug);
  4238. return (ret != 0);
  4239. }
  4240. #define MAX_RESULT_REC 132
  4241. char result_rec[132];
  4242. int
  4243. result (FILE * fp, char res, const char *func, const char *loc, int rec_no,
  4244. int seq_no, int case_no, const char *msg)
  4245. {
  4246. if (fp == ((void *)0)
  4247. || strlen (func) + strlen (loc) + strlen (msg) + 32 > 132)
  4248. {
  4249. fprintf (stderr,
  4250. "Warning: result(): can't write the result: %s:%s:%d:%d:%s\n",
  4251. func, loc, rec_no, case_no, msg);
  4252. return 0;
  4253. }
  4254. sprintf (result_rec, "%s:%s:%d:%d:%d:%c:%s\n", func, loc, rec_no, seq_no,
  4255. case_no, res, msg);
  4256. if (fputs (result_rec, fp) == (-1))
  4257. {
  4258. return 0;
  4259. }
  4260. return 1;
  4261. }
  4262. # 8 "tst_mbrlen.c" 2
  4263. # 1 "dat_mbrlen.c" 1
  4264. # 19 "dat_mbrlen.c"
  4265. TST_MBRLEN tst_mbrlen_loc [] = {
  4266. {
  4267. { 14, "de_DE.ISO-8859-1" },
  4268. {
  4269. {
  4270. {
  4271. {
  4272. { 1, "", 0, 0, 0 },
  4273. { 1, "", 1, 0, 0 },
  4274. { 1, "\300", 99, 0, 0 },
  4275. }
  4276. },
  4277. {
  4278. {
  4279. { 0, 1, 0, },
  4280. { 0, 1, 0, },
  4281. { 0, 1, 1, },
  4282. }
  4283. }
  4284. },
  4285. {
  4286. {
  4287. {
  4288. { 1, "\300\001", 0, 0, 0 },
  4289. { 1, "\300\001", 1, 0, 0 },
  4290. { 1, "\317\001", 99, 0, 0 },
  4291. }
  4292. },
  4293. {
  4294. {
  4295. { 0, 1, 0, },
  4296. { 0, 1, 1, },
  4297. { 0, 1, 1, },
  4298. }
  4299. }
  4300. },
  4301. { .is_last = 1 }
  4302. }
  4303. },
  4304. {
  4305. { 14, "en_US.ANSI_X3.4-1968" },
  4306. {
  4307. {
  4308. {
  4309. {
  4310. { 1, "A", 0, 0, 0 },
  4311. { 1, "A", 1, 0, 0 },
  4312. { 1, "A", 99, 0, 0 },
  4313. }
  4314. },
  4315. {
  4316. {
  4317. { 0, 1, 0, },
  4318. { 0, 1, 1, },
  4319. { 0, 1, 1, },
  4320. }
  4321. }
  4322. },
  4323. {
  4324. {
  4325. {
  4326. { 1, "\317\001", 0, 1, 0 },
  4327. { 1, "\317\001", 1, 1, 0 },
  4328. { 1, "\317\001", 99, 1, 0 },
  4329. }
  4330. },
  4331. {
  4332. {
  4333. { 0, 1, 0, },
  4334. { 84, 1, -1, },
  4335. { 84, 1, -1, },
  4336. }
  4337. }
  4338. },
  4339. { .is_last = 1 }
  4340. }
  4341. },
  4342. {
  4343. { 14, "ja_JP.EUC-JP" },
  4344. {
  4345. {
  4346. {
  4347. {
  4348. { 1, "\317\302", 1, 1, 1 },
  4349. { 0, "", 0, 1, 0 },
  4350. { 1, "\317\302", 99, 1, 1 },
  4351. }
  4352. },
  4353. {
  4354. {
  4355. { 0, 1, -2, },
  4356. { 0, 1, -1, },
  4357. { 0, 1, 2, },
  4358. }
  4359. }
  4360. },
  4361. {
  4362. {
  4363. {
  4364. { 1, "\317", 1, 1, 0 },
  4365. { 1, "\302", 1, 1, 0 },
  4366. { 1, "\317\302", 99, 0, 0 },
  4367. }
  4368. },
  4369. {
  4370. {
  4371. { 0, 1, -2, },
  4372. { 0, 1, +1, },
  4373. { 0, 1, 2, },
  4374. }
  4375. }
  4376. },
  4377. {
  4378. {
  4379. {
  4380. { 1, "\216\217", 0, 0, 0 },
  4381. { 1, "\216\217", 1, 0, 0 },
  4382. { 1, "\216\217", 99, 0, 0 },
  4383. }
  4384. },
  4385. {
  4386. {
  4387. { 0, 1, 0, },
  4388. { 0, 1, -2, },
  4389. { 84, 1, -1, },
  4390. }
  4391. }
  4392. },
  4393. { .is_last = 1 }
  4394. }
  4395. },
  4396. {
  4397. { 14, "lastEntry" }
  4398. }
  4399. };
  4400. # 9 "tst_mbrlen.c" 2
  4401. int
  4402. tst_mbrlen (FILE * fp, int debug_flg)
  4403. {
  4404. int loc, rec, err_count = 0; int warn_count __attribute__ ((unused)); int func_id, seq_num = 0; const char *locale; int err_exp, ret_flg; int errno_save = 0; size_t ret_exp; size_t ret;
  4405. char s_flg;
  4406. const char *s_in;
  4407. size_t n;
  4408. char t_flg;
  4409. char t_ini;
  4410. static mbstate_t s = { 0 };
  4411. mbstate_t *ps;
  4412. for (loc = 0; strcmp (tst_mbrlen_loc[ loc ].hd.locale, "lastEntry"); ++loc)
  4413. {
  4414. func_id = tst_mbrlen_loc[ loc ].hd.func_id; locale = tst_mbrlen_loc[ loc ].hd.locale; if (setlocale (6, locale) == ((void *)0)) { fprintf (stderr, "Warning : can't set locale: %s\nskipping ...\n", locale); result (fp, 'L', "mbrlen", locale, 0, 0, 0, "can't set locale"); ++err_count; continue; };
  4415. for (rec=0; !tst_mbrlen_loc[ loc ].rec[ rec ].is_last; ++rec)
  4416. {
  4417. if (mbrlen (((void *)0), 0, &s) != 0)
  4418. {
  4419. err_count++;
  4420. result (fp, ('F'), ("mbrlen"), locale, rec+1, seq_num+1, (3), ("Initialization (external mbstate object) failed " "- skipped this test case."));
  4421. continue;
  4422. }
  4423. for (seq_num=0; seq_num < 3; seq_num++)
  4424. {
  4425. err_exp = tst_mbrlen_loc[ loc ].rec[ rec ].expect.seq[ seq_num ].err_val; ret_flg = tst_mbrlen_loc[ loc ].rec[ rec ].expect.seq[ seq_num ].ret_flg; ret_exp = tst_mbrlen_loc[ loc ].rec[ rec ].expect.seq[ seq_num ].ret_val;
  4426. s_flg = tst_mbrlen_loc[ loc ].rec[ rec ].input.seq[ seq_num ].s_flg;
  4427. s_in = tst_mbrlen_loc[ loc ].rec[ rec ].input.seq[ seq_num ].s;
  4428. n = tst_mbrlen_loc[ loc ].rec[ rec ].input.seq[ seq_num ].n;
  4429. t_flg = tst_mbrlen_loc[ loc ].rec[ rec ].input.seq[ seq_num ].t_flg;
  4430. t_ini = tst_mbrlen_loc[ loc ].rec[ rec ].input.seq[ seq_num ].t_init;
  4431. if (s_flg == 0)
  4432. {
  4433. s_in = ((void *)0);
  4434. }
  4435. fprintf(stdout, "n = %d.\n", n);
  4436. if (n == 99)
  4437. {
  4438. n = (_stdlib_mb_cur_max ());
  4439. }
  4440. ps = (t_flg == 0) ? ((void *)0) : &s;
  4441. if (t_ini != 0)
  4442. {
  4443. memset (&s, 0, sizeof (s));
  4444. mbrlen (((void *)0), 0, ((void *)0));
  4445. }
  4446. __libc_errno = 0;
  4447. ret = mbrlen (s_in, n, ps);
  4448. errno_save = __libc_errno;
  4449. fprintf(stdout, "s_in = %c, n = %d, t_ini = %d, s_flg = %d, t_flg = %d, MB_CUR_MAX = %d.\n",
  4450. s_in, n, t_ini, s_flg, t_flg, (_stdlib_mb_cur_max ()));
  4451. if (debug_flg)
  4452. {
  4453. fprintf (stdout, "mbrlen() [ %s : %d : %d ] ret = %zd\n",
  4454. locale, rec + 1, seq_num + 1, ret);
  4455. fprintf (stdout, " errno = %d\n", errno_save);
  4456. }
  4457. if (err_exp != 0) { if (errno_save == err_exp) { result (fp, 'S', "mbrlen", locale, rec+1, seq_num+1, 1, "PASSED"); } else { err_count++; result (fp, 'F', "mbrlen", locale, rec+1, seq_num+1, 1, "the value of errno is different from an expected value"); } } if (ret_flg == 1) { if (ret == ret_exp) { result (fp, 'S', "mbrlen", locale, rec+1, seq_num+1, 2, "PASSED"); } else { err_count++; result (fp, 'F', "mbrlen", locale, rec+1, seq_num+1, 2, "the return value is different from an expected value"); } } else
  4458. {
  4459. };
  4460. }
  4461. }
  4462. }
  4463. return err_count;
  4464. }