12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009 |
- # 1 "tst_mbrlen.c"
- # 1 "/vob/stsca_uClibc-nptl/uClibc-nptl/test/locale-mbwc//"
- # 1 "<built-in>"
- #define __STDC__ 1
- # 1 "<built-in>"
- #define __STDC_HOSTED__ 1
- # 1 "<built-in>"
- #define __GNUC__ 4
- # 1 "<built-in>"
- #define __GNUC_MINOR__ 1
- # 1 "<built-in>"
- #define __GNUC_PATCHLEVEL__ 1
- # 1 "<built-in>"
- #define __SIZE_TYPE__ unsigned int
- # 1 "<built-in>"
- #define __PTRDIFF_TYPE__ int
- # 1 "<built-in>"
- #define __WCHAR_TYPE__ long int
- # 1 "<built-in>"
- #define __WINT_TYPE__ unsigned int
- # 1 "<built-in>"
- #define __INTMAX_TYPE__ long long int
- # 1 "<built-in>"
- #define __UINTMAX_TYPE__ long long unsigned int
- # 1 "<built-in>"
- #define __GXX_ABI_VERSION 1002
- # 1 "<built-in>"
- #define __SCHAR_MAX__ 127
- # 1 "<built-in>"
- #define __SHRT_MAX__ 32767
- # 1 "<built-in>"
- #define __INT_MAX__ 2147483647
- # 1 "<built-in>"
- #define __LONG_MAX__ 2147483647L
- # 1 "<built-in>"
- #define __LONG_LONG_MAX__ 9223372036854775807LL
- # 1 "<built-in>"
- #define __WCHAR_MAX__ 2147483647
- # 1 "<built-in>"
- #define __CHAR_BIT__ 8
- # 1 "<built-in>"
- #define __INTMAX_MAX__ 9223372036854775807LL
- # 1 "<built-in>"
- #define __FLT_EVAL_METHOD__ 0
- # 1 "<built-in>"
- #define __FLT_RADIX__ 2
- # 1 "<built-in>"
- #define __FLT_MANT_DIG__ 24
- # 1 "<built-in>"
- #define __FLT_DIG__ 6
- # 1 "<built-in>"
- #define __FLT_MIN_EXP__ (-125)
- # 1 "<built-in>"
- #define __FLT_MIN_10_EXP__ (-37)
- # 1 "<built-in>"
- #define __FLT_MAX_EXP__ 128
- # 1 "<built-in>"
- #define __FLT_MAX_10_EXP__ 38
- # 1 "<built-in>"
- #define __FLT_MAX__ 3.40282347e+38F
- # 1 "<built-in>"
- #define __FLT_MIN__ 1.17549435e-38F
- # 1 "<built-in>"
- #define __FLT_EPSILON__ 1.19209290e-7F
- # 1 "<built-in>"
- #define __FLT_DENORM_MIN__ 1.40129846e-45F
- # 1 "<built-in>"
- #define __FLT_HAS_INFINITY__ 1
- # 1 "<built-in>"
- #define __FLT_HAS_QUIET_NAN__ 1
- # 1 "<built-in>"
- #define __DBL_MANT_DIG__ 53
- # 1 "<built-in>"
- #define __DBL_DIG__ 15
- # 1 "<built-in>"
- #define __DBL_MIN_EXP__ (-1021)
- # 1 "<built-in>"
- #define __DBL_MIN_10_EXP__ (-307)
- # 1 "<built-in>"
- #define __DBL_MAX_EXP__ 1024
- # 1 "<built-in>"
- #define __DBL_MAX_10_EXP__ 308
- # 1 "<built-in>"
- #define __DBL_MAX__ 1.7976931348623157e+308
- # 1 "<built-in>"
- #define __DBL_MIN__ 2.2250738585072014e-308
- # 1 "<built-in>"
- #define __DBL_EPSILON__ 2.2204460492503131e-16
- # 1 "<built-in>"
- #define __DBL_DENORM_MIN__ 4.9406564584124654e-324
- # 1 "<built-in>"
- #define __DBL_HAS_INFINITY__ 1
- # 1 "<built-in>"
- #define __DBL_HAS_QUIET_NAN__ 1
- # 1 "<built-in>"
- #define __LDBL_MANT_DIG__ 53
- # 1 "<built-in>"
- #define __LDBL_DIG__ 15
- # 1 "<built-in>"
- #define __LDBL_MIN_EXP__ (-1021)
- # 1 "<built-in>"
- #define __LDBL_MIN_10_EXP__ (-307)
- # 1 "<built-in>"
- #define __LDBL_MAX_EXP__ 1024
- # 1 "<built-in>"
- #define __LDBL_MAX_10_EXP__ 308
- # 1 "<built-in>"
- #define __DECIMAL_DIG__ 17
- # 1 "<built-in>"
- #define __LDBL_MAX__ 1.7976931348623157e+308L
- # 1 "<built-in>"
- #define __LDBL_MIN__ 2.2250738585072014e-308L
- # 1 "<built-in>"
- #define __LDBL_EPSILON__ 2.2204460492503131e-16L
- # 1 "<built-in>"
- #define __LDBL_DENORM_MIN__ 4.9406564584124654e-324L
- # 1 "<built-in>"
- #define __LDBL_HAS_INFINITY__ 1
- # 1 "<built-in>"
- #define __LDBL_HAS_QUIET_NAN__ 1
- # 1 "<built-in>"
- #define __REGISTER_PREFIX__
- # 1 "<built-in>"
- #define __USER_LABEL_PREFIX__
- # 1 "<built-in>"
- #define __VERSION__ "4.1.1 (STMicroelectronics Special) [build Jun 26 2007]"
- # 1 "<built-in>"
- #define __NO_INLINE__ 1
- # 1 "<built-in>"
- #define __FINITE_MATH_ONLY__ 1
- # 1 "<built-in>"
- #define __sh__ 1
- # 1 "<built-in>"
- #define __SH4__ 1
- # 1 "<built-in>"
- #define __SH_FPU_ANY__ 1
- # 1 "<built-in>"
- #define __SH_FPU_DOUBLE__ 1
- # 1 "<built-in>"
- #define __LITTLE_ENDIAN__ 1
- # 1 "<built-in>"
- #define __gnu_linux__ 1
- # 1 "<built-in>"
- #define __linux 1
- # 1 "<built-in>"
- #define __linux__ 1
- # 1 "<built-in>"
- #define linux 1
- # 1 "<built-in>"
- #define __unix 1
- # 1 "<built-in>"
- #define __unix__ 1
- # 1 "<built-in>"
- #define unix 1
- # 1 "<built-in>"
- #define __ELF__ 1
- # 1 "<command line>"
- #define DEBUG 1
- # 1 "<command line>"
- #define _GNU_SOURCE 1
- # 1 "<command line>"
- #define __USE_GNU 1
- # 1 "<command line>"
- # 1 "./../../include/libc-symbols.h" 1
- # 23 "./../../include/libc-symbols.h"
- #define _LIBC_SYMBOLS_H 1
- # 41 "./../../include/libc-symbols.h"
- # 1 "../../include/bits/uClibc_arch_features.h" 1
- #define _BITS_UCLIBC_ARCH_FEATURES_H
- #define __UCLIBC_ABORT_INSTRUCTION__ "trapa #0xff"
- #define __UCLIBC_MMAP_HAS_6_ARGS__
- #undef __UCLIBC_TRUNCATE64_HAS_4_ARGS__
- #undef __UCLIBC_BROKEN_CREATE_MODULE__
- #undef __UCLIBC_HANDLE_OLDER_RLIMIT__
- #define __UCLIBC_NO_UNDERSCORES__
- #define __UCLIBC_HAVE_ASM_SET_DIRECTIVE__
- #undef __UCLIBC_ASM_GLOBAL_DIRECTIVE__
- #define __UCLIBC_HAVE_ASM_WEAK_DIRECTIVE__
- #undef __UCLIBC_HAVE_ASM_WEAKEXT_DIRECTIVE__
- #undef __UCLIBC_HAVE_ASM_GLOBAL_DOT_NAME__
- #define __UCLIBC_HAVE_SIGNED_ZERO__
- # 42 "./../../include/libc-symbols.h" 2
- # 51 "./../../include/libc-symbols.h"
- #define _LIBC 1
- #define _GNU_SOURCE 1
- #define likely(x) __builtin_expect((!!(x)),1)
- #define unlikely(x) __builtin_expect((!!(x)),0)
- #define __LINUX_COMPILER_H
- #define __cast__(_to)
- #define attribute_unused __attribute__ ((unused))
- #define attribute_noreturn __attribute__ ((__noreturn__))
- #define IS_IN_libc 1
- #define NO_UNDERSCORES
- #define HAVE_ASM_SET_DIRECTIVE
- #define ASM_GLOBAL_DIRECTIVE .global
- #define HAVE_ASM_WEAK_DIRECTIVE
- #undef HAVE_ASM_WEAKEXT_DIRECTIVE
- #undef HAVE_ASM_GLOBAL_DOT_NAME
- #define HAVE_WEAK_SYMBOLS
- #undef C_SYMBOL_NAME
- #define C_SYMBOL_NAME(name) name
- #define ASM_LINE_SEP ;
- # 154 "./../../include/libc-symbols.h"
- #define strong_alias(name,aliasname) _strong_alias(name, aliasname)
- #define _strong_alias(name,aliasname) extern __typeof (name) aliasname __attribute__ ((alias (#name)));
- #define weak_function __attribute__ ((weak))
- #define weak_const_function __attribute__ ((weak, __const__))
- #define weak_alias(name,aliasname) _weak_alias (name, aliasname)
- #define _weak_alias(name,aliasname) extern __typeof (name) aliasname __attribute__ ((weak, alias (#name)));
- #define weak_extern(symbol) _weak_extern (weak symbol)
- #define _weak_extern(expr) _Pragma (#expr)
- # 278 "./../../include/libc-symbols.h"
- #define internal_function
- #define __make_section_unallocated(section_string) __asm__ (".section " section_string "\n\t.previous");
- #define __sec_comment "\n\t#"
- #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;
- # 323 "./../../include/libc-symbols.h"
- #define INTUSE(name) name
- #define INTDEF(name)
- #define INTVARDEF(name)
- #define INTDEF2(name,newname)
- #define INTVARDEF2(name,newname)
- # 419 "./../../include/libc-symbols.h"
- #define attribute_hidden __attribute__ ((visibility ("hidden")))
- #define __hidden_proto_hiddenattr(attrs...) __attribute__ ((visibility ("hidden"), ##attrs))
- #define hidden_proto(name,attrs...) __hidden_proto (name, __GI_ ##name, ##attrs)
- #define __hidden_proto(name,internal,attrs...) extern __typeof (name) name __asm__ (__hidden_asmname (#internal)) __hidden_proto_hiddenattr (attrs);
- #define __hidden_asmname(name) __hidden_asmname1 (__USER_LABEL_PREFIX__, name)
- #define __hidden_asmname1(prefix,name) __hidden_asmname2(prefix, name)
- #define __hidden_asmname2(prefix,name) #prefix name
- #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))))
- #define hidden_def(name) __hidden_ver1(__GI_ ##name, name, name);
- #define hidden_data_def(name) hidden_def(name)
- #define hidden_weak(name) __hidden_ver1(__GI_ ##name, name, name) __attribute__((weak));
- #define hidden_data_weak(name) hidden_weak(name)
- # 515 "./../../include/libc-symbols.h"
- #define versioned_symbol(lib,local,symbol,version)
- #define hidden_ver(local,name)
- #define hidden_data_ver(local,name)
- #define libc_hidden_proto(name,attrs...) hidden_proto (name, ##attrs)
- #define libc_hidden_def(name) hidden_def (name)
- #define libc_hidden_weak(name) hidden_weak (name)
- #define libc_hidden_ver(local,name) hidden_ver (local, name)
- #define libc_hidden_data_def(name) hidden_data_def (name)
- #define libc_hidden_data_weak(name) hidden_data_weak (name)
- #define libc_hidden_data_ver(local,name) hidden_data_ver (local, name)
- # 546 "./../../include/libc-symbols.h"
- #define rtld_hidden_proto(name,attrs...)
- #define rtld_hidden_def(name)
- #define rtld_hidden_weak(name)
- #define rtld_hidden_ver(local,name)
- #define rtld_hidden_data_def(name)
- #define rtld_hidden_data_weak(name)
- #define rtld_hidden_data_ver(local,name)
- # 564 "./../../include/libc-symbols.h"
- #define libm_hidden_proto(name,attrs...)
- #define libm_hidden_def(name)
- #define libm_hidden_weak(name)
- #define libm_hidden_ver(local,name)
- #define libm_hidden_data_def(name)
- #define libm_hidden_data_weak(name)
- #define libm_hidden_data_ver(local,name)
- # 582 "./../../include/libc-symbols.h"
- #define libresolv_hidden_proto(name,attrs...)
- #define libresolv_hidden_def(name)
- #define libresolv_hidden_weak(name)
- #define libresolv_hidden_ver(local,name)
- #define libresolv_hidden_data_def(name)
- #define libresolv_hidden_data_weak(name)
- #define libresolv_hidden_data_ver(local,name)
- # 600 "./../../include/libc-symbols.h"
- #define librt_hidden_proto(name,attrs...)
- #define librt_hidden_def(name)
- #define librt_hidden_weak(name)
- #define librt_hidden_ver(local,name)
- #define librt_hidden_data_def(name)
- #define librt_hidden_data_weak(name)
- #define librt_hidden_data_ver(local,name)
- # 618 "./../../include/libc-symbols.h"
- #define libdl_hidden_proto(name,attrs...)
- #define libdl_hidden_def(name)
- #define libdl_hidden_weak(name)
- #define libdl_hidden_ver(local,name)
- #define libdl_hidden_data_def(name)
- #define libdl_hidden_data_weak(name)
- #define libdl_hidden_data_ver(local,name)
- # 636 "./../../include/libc-symbols.h"
- #define libintl_hidden_proto(name,attrs...)
- #define libintl_hidden_def(name)
- #define libintl_hidden_weak(name)
- #define libintl_hidden_ver(local,name)
- #define libintl_hidden_data_def(name)
- #define libintl_hidden_data_weak(name)
- #define libintl_hidden_data_ver(local,name)
- # 654 "./../../include/libc-symbols.h"
- #define libnsl_hidden_proto(name,attrs...)
- #define libnsl_hidden_def(name)
- #define libnsl_hidden_weak(name)
- #define libnsl_hidden_ver(local,name)
- #define libnsl_hidden_data_def(name)
- #define libnsl_hidden_data_weak(name)
- #define libnsl_hidden_data_ver(local,name)
- # 672 "./../../include/libc-symbols.h"
- #define libutil_hidden_proto(name,attrs...)
- #define libutil_hidden_def(name)
- #define libutil_hidden_weak(name)
- #define libutil_hidden_ver(local,name)
- #define libutil_hidden_data_def(name)
- #define libutil_hidden_data_weak(name)
- #define libutil_hidden_data_ver(local,name)
- # 690 "./../../include/libc-symbols.h"
- #define libcrypt_hidden_proto(name,attrs...)
- #define libcrypt_hidden_def(name)
- #define libcrypt_hidden_weak(name)
- #define libcrypt_hidden_ver(local,name)
- #define libcrypt_hidden_data_def(name)
- #define libcrypt_hidden_data_weak(name)
- #define libcrypt_hidden_data_ver(local,name)
- # 708 "./../../include/libc-symbols.h"
- #define libpthread_hidden_proto(name,attrs...)
- #define libpthread_hidden_def(name)
- #define libpthread_hidden_weak(name)
- #define libpthread_hidden_ver(local,name)
- #define libpthread_hidden_data_def(name)
- #define libpthread_hidden_data_weak(name)
- #define libpthread_hidden_data_ver(local,name)
- # 1 "<command line>" 2
- # 1 "tst_mbrlen.c"
- #define TST_FUNCTION mbrlen
- # 1 "tsp_common.c" 1
- #define TST_FUNCTION_CALL(func) _TST_FUNCTION_CALL(func)
- #define _TST_FUNCTION_CALL(func) tst ##_ ## func
- # 1 "../../include/stdio.h" 1
- # 27 "../../include/stdio.h"
- #define _STDIO_H 1
- # 1 "../../include/features.h" 1
- # 20 "../../include/features.h"
- #define _FEATURES_H 1
- #define __UCLIBC__ 1
- # 34 "../../include/features.h"
- #define __need_uClibc_config_h
- # 1 "../../include/bits/uClibc_config.h" 1
- # 12 "../../include/bits/uClibc_config.h"
- #define __UCLIBC_MAJOR__ 0
- #define __UCLIBC_MINOR__ 9
- #define __UCLIBC_SUBLEVEL__ 29
- #undef __TARGET_alpha__
- #undef __TARGET_arm__
- #undef __TARGET_bfin__
- #undef __TARGET_cris__
- #undef __TARGET_e1__
- #undef __TARGET_frv__
- #undef __TARGET_h8300__
- #undef __TARGET_hppa__
- #undef __TARGET_i386__
- #undef __TARGET_i960__
- #undef __TARGET_ia64__
- #undef __TARGET_m68k__
- #undef __TARGET_microblaze__
- #undef __TARGET_mips__
- #undef __TARGET_nios__
- #undef __TARGET_nios2__
- #undef __TARGET_powerpc__
- #define __TARGET_sh__ 1
- #undef __TARGET_sh64__
- #undef __TARGET_sparc__
- #undef __TARGET_v850__
- #undef __TARGET_vax__
- #undef __TARGET_x86_64__
- #define __TARGET_ARCH__ "sh"
- #define __FORCE_OPTIONS_FOR_ARCH__ 1
- #undef __CONFIG_SH2A__
- #undef __CONFIG_SH2__
- #undef __CONFIG_SH3__
- #define __CONFIG_SH4__ 1
- #define __ARCH_HAS_BWD_MEMCPY__ 1
- #define __TARGET_SUBARCH__ "sh4"
- #define __ARCH_ANY_ENDIAN__ 1
- #define __ARCH_LITTLE_ENDIAN__ 1
- #undef __ARCH_WANTS_BIG_ENDIAN__
- #define __ARCH_WANTS_LITTLE_ENDIAN__ 1
- #define __ARCH_HAS_MMU__ 1
- #define __ARCH_USE_MMU__ 1
- #define __UCLIBC_HAS_FLOATS__ 1
- #define __UCLIBC_HAS_FPU__ 1
- #define __DO_C99_MATH__ 1
- #define __KERNEL_HEADERS__ "/opt/STM/STLinux-2.3ear/devkit/sh4/uclibc_target/usr/include"
- #define __HAVE_DOT_CONFIG__ 1
- #undef __HAVE_NO_PIC__
- #undef __DOPIC__
- #undef __HAVE_NO_SHARED__
- #undef __ARCH_HAS_NO_LDSO__
- #define __HAVE_SHARED__ 1
- #define __FORCE_SHAREABLE_TEXT_SEGMENTS__ 1
- #define __LDSO_LDD_SUPPORT__ 1
- #define __LDSO_CACHE_SUPPORT__ 1
- #undef __LDSO_PRELOAD_FILE_SUPPORT__
- #define __LDSO_BASE_FILENAME__ "ld.so"
- #undef __UCLIBC_STATIC_LDCONFIG__
- #define __LDSO_RUNPATH__ 1
- #define __UCLIBC_CTOR_DTOR__ 1
- #define __LDSO_GNU_HASH_SUPPORT__ 1
- #undef __HAS_NO_THREADS__
- #define __UCLIBC_HAS_THREADS__ 1
- #define __UCLIBC_HAS_THREADS_NATIVE__ 1
- #define __PTHREADS_DEBUG_SUPPORT__ 1
- #undef __LINUXTHREADS_OLD__
- #define __UCLIBC_HAS_LFS__ 1
- #undef __MALLOC__
- #undef __MALLOC_SIMPLE__
- #define __MALLOC_STANDARD__ 1
- #undef __MALLOC_GLIBC_COMPAT__
- #undef __UCLIBC_DYNAMIC_ATEXIT__
- #define __COMPAT_ATEXIT__ 1
- #define __UCLIBC_SUSV3_LEGACY__ 1
- #undef __UCLIBC_SUSV3_LEGACY_MACROS__
- #define __UCLIBC_HAS_SHADOW__ 1
- #undef __UCLIBC_HAS_PROGRAM_INVOCATION_NAME__
- #define __UCLIBC_HAS___PROGNAME__ 1
- #define __UNIX98PTY_ONLY__ 1
- #define __ASSUME_DEVPTS__ 1
- #define __UCLIBC_HAS_TM_EXTENSIONS__ 1
- #define __UCLIBC_HAS_TZ_CACHING__ 1
- #define __UCLIBC_HAS_TZ_FILE__ 1
- #define __UCLIBC_HAS_TZ_FILE_READ_MANY__ 1
- #define __UCLIBC_TZ_FILE_PATH__ "/etc/TZ"
- #define __UCLIBC_HAS_IPV6__ 1
- #define __UCLIBC_HAS_RPC__ 1
- #define __UCLIBC_HAS_FULL_RPC__ 1
- #define __UCLIBC_HAS_REENTRANT_RPC__ 1
- #undef __UCLIBC_USE_NETLINK__
- #define __UCLIBC_HAS_STRING_GENERIC_OPT__ 1
- #define __UCLIBC_HAS_STRING_ARCH_OPT__ 1
- #define __UCLIBC_HAS_CTYPE_TABLES__ 1
- #define __UCLIBC_HAS_CTYPE_SIGNED__ 1
- #define __UCLIBC_HAS_CTYPE_UNSAFE__ 1
- #undef __UCLIBC_HAS_CTYPE_CHECKED__
- #undef __UCLIBC_HAS_CTYPE_ENFORCED__
- #define __UCLIBC_HAS_WCHAR__ 1
- #define __UCLIBC_HAS_LOCALE__ 1
- #undef __UCLIBC_PREGENERATED_LOCALE_DATA__
- #undef __UCLIBC_HAS_XLOCALE__
- #undef __UCLIBC_HAS_HEXADECIMAL_FLOATS__
- #undef __UCLIBC_HAS_GLIBC_DIGIT_GROUPING__
- #undef __UCLIBC_HAS_GLIBC_CUSTOM_PRINTF__
- #define __UCLIBC_PRINTF_SCANF_POSITIONAL_ARGS__ 9
- #undef __UCLIBC_HAS_SCANF_GLIBC_A_FLAG__
- #undef __UCLIBC_HAS_STDIO_BUFSIZ_NONE__
- #undef __UCLIBC_HAS_STDIO_BUFSIZ_256__
- #undef __UCLIBC_HAS_STDIO_BUFSIZ_512__
- #undef __UCLIBC_HAS_STDIO_BUFSIZ_1024__
- #undef __UCLIBC_HAS_STDIO_BUFSIZ_2048__
- #define __UCLIBC_HAS_STDIO_BUFSIZ_4096__ 1
- #undef __UCLIBC_HAS_STDIO_BUFSIZ_8192__
- #define __UCLIBC_HAS_STDIO_BUILTIN_BUFFER_NONE__ 1
- #undef __UCLIBC_HAS_STDIO_BUILTIN_BUFFER_4__
- #undef __UCLIBC_HAS_STDIO_BUILTIN_BUFFER_8__
- #undef __UCLIBC_HAS_STDIO_SHUTDOWN_ON_ABORT__
- #define __UCLIBC_HAS_STDIO_GETC_MACRO__ 1
- #define __UCLIBC_HAS_STDIO_PUTC_MACRO__ 1
- #define __UCLIBC_HAS_STDIO_AUTO_RW_TRANSITION__ 1
- #undef __UCLIBC_HAS_FOPEN_LARGEFILE_MODE__
- #undef __UCLIBC_HAS_FOPEN_EXCLUSIVE_MODE__
- #undef __UCLIBC_HAS_GLIBC_CUSTOM_STREAMS__
- #define __UCLIBC_HAS_PRINTF_M_SPEC__ 1
- #define __UCLIBC_HAS_ERRNO_MESSAGES__ 1
- #define __UCLIBC_HAS_SYS_ERRLIST__ 1
- #define __UCLIBC_HAS_SIGNUM_MESSAGES__ 1
- #undef __UCLIBC_HAS_SYS_SIGLIST__
- #undef __UCLIBC_HAS_GETTEXT_AWARENESS__
- #define __UCLIBC_HAS_GNU_GETOPT__ 1
- #define __UCLIBC_HAS_STDIO_FUTEXES__ 1
- #define __UCLIBC_HAS_GNU_GETSUBOPT__ 1
- #define __UCLIBC_HAS_REGEX__ 1
- #undef __UCLIBC_HAS_REGEX_OLD__
- #define __UCLIBC_HAS_FNMATCH__ 1
- #define __UCLIBC_HAS_FNMATCH_OLD__ 1
- #undef __UCLIBC_HAS_WORDEXP__
- #undef __UCLIBC_HAS_FTW__
- #define __UCLIBC_HAS_GLOB__ 1
- #define __UCLIBC_HAS_GNU_GLOB__ 1
- #define __SHARED_LIB_LOADER_PREFIX__ "/lib"
- #define __RUNTIME_PREFIX__ "/"
- #define __DEVEL_PREFIX__ "/usr"
- #undef __UCLIBC_HAS_ARC4RANDOM__
- #undef __HAVE_NO_SSP__
- #undef __UCLIBC_HAS_SSP__
- #define __UCLIBC_BUILD_RELRO__ 1
- #undef __UCLIBC_BUILD_NOW__
- #define __UCLIBC_BUILD_NOEXECSTACK__ 1
- #define __CROSS_COMPILER_PREFIX__ "sh4-linux-uclibc-"
- #define __UCLIBC_EXTRA_CFLAGS__ ""
- #define __DODEBUG__ 1
- #define __DOASSERTS__ 1
- #define __SUPPORT_LD_DEBUG__ 1
- #define __SUPPORT_LD_DEBUG_EARLY__ 1
- #undef __UCLIBC_MALLOC_DEBUGGING__
- #define __WARNINGS__ "-Wall"
- #define __EXTRA_WARNINGS__ 1
- #undef __DOMULTI__
- #define __UCLIBC_MJN3_ONLY__ 1
- # 36 "../../include/features.h" 2
- #undef __need_uClibc_config_h
- #define __OPTIMIZE_SIZE__ 1
- # 113 "../../include/features.h"
- #undef __USE_ISOC99
- #undef __USE_POSIX
- #undef __USE_POSIX2
- #undef __USE_POSIX199309
- #undef __USE_POSIX199506
- #undef __USE_XOPEN
- #undef __USE_XOPEN_EXTENDED
- #undef __USE_UNIX98
- #undef __USE_XOPEN2K
- #undef __USE_LARGEFILE
- #undef __USE_LARGEFILE64
- #undef __USE_FILE_OFFSET64
- #undef __USE_BSD
- #undef __USE_SVID
- #undef __USE_MISC
- #undef __USE_ATFILE
- #undef __USE_GNU
- #undef __USE_REENTRANT
- #undef __USE_FORTIFY_LEVEL
- #undef __FAVOR_BSD
- #undef __KERNEL_STRICT_NAMES
- #define __KERNEL_STRICT_NAMES
- #define __USE_ANSI 1
- # 152 "../../include/features.h"
- #define __GNUC_PREREQ(maj,min) ((__GNUC__ << 16) + __GNUC_MINOR__ >= ((maj) << 16) + (min))
- # 169 "../../include/features.h"
- #undef _ISOC99_SOURCE
- #define _ISOC99_SOURCE 1
- #undef _POSIX_SOURCE
- #define _POSIX_SOURCE 1
- #undef _POSIX_C_SOURCE
- #define _POSIX_C_SOURCE 199506L
- #undef _XOPEN_SOURCE
- #define _XOPEN_SOURCE 600
- #undef _XOPEN_SOURCE_EXTENDED
- #define _XOPEN_SOURCE_EXTENDED 1
- #undef _LARGEFILE64_SOURCE
- #define _LARGEFILE64_SOURCE 1
- #undef _BSD_SOURCE
- #define _BSD_SOURCE 1
- #undef _SVID_SOURCE
- #define _SVID_SOURCE 1
- #undef _ATFILE_SOURCE
- #define _ATFILE_SOURCE 1
- # 207 "../../include/features.h"
- #define __USE_ISOC99 1
- # 223 "../../include/features.h"
- #define __USE_POSIX 1
- #define __USE_POSIX2 1
- #define __USE_POSIX199309 1
- #define __USE_POSIX199506 1
- #define __USE_XOPEN 1
- #define __USE_XOPEN_EXTENDED 1
- #define __USE_UNIX98 1
- #undef _LARGEFILE_SOURCE
- #define _LARGEFILE_SOURCE 1
- #define __USE_XOPEN2K 1
- #undef __USE_ISOC99
- #define __USE_ISOC99 1
- # 262 "../../include/features.h"
- #define __USE_LARGEFILE 1
- #define __USE_LARGEFILE64 1
- #define __USE_MISC 1
- #define __USE_BSD 1
- #define __USE_SVID 1
- #define __USE_ATFILE 1
- #define __USE_GNU 1
- #undef _FORTIFY_SOURCE
- # 307 "../../include/features.h"
- #define __USE_FORTIFY_LEVEL 0
- #define __STDC_IEC_559__ 1
- #define __STDC_IEC_559_COMPLEX__ 1
- #define __STDC_ISO_10646__ 200009L
- # 340 "../../include/features.h"
- #define __GLIBC_PREREQ(maj,min) ((__GLIBC__ << 16) + __GLIBC_MINOR__ >= ((maj) << 16) + (min))
- # 356 "../../include/features.h"
- # 1 "../../include/sys/cdefs.h" 1
- # 20 "../../include/sys/cdefs.h"
- #define _SYS_CDEFS_H 1
- # 35 "../../include/sys/cdefs.h"
- #undef __P
- #undef __PMT
- # 46 "../../include/sys/cdefs.h"
- #define __THROW __attribute__ ((__nothrow__))
- #define __NTH(fct) __attribute__ ((__nothrow__)) fct
- # 73 "../../include/sys/cdefs.h"
- #define __P(args) args
- #define __PMT(args) args
- #define __CONCAT(x,y) x ## y
- #define __STRING(x) #x
- #define __ptr_t void *
- #define __long_double_t long double
- #define __BEGIN_DECLS
- #define __END_DECLS
- # 113 "../../include/sys/cdefs.h"
- #define __BEGIN_NAMESPACE_STD
- #define __END_NAMESPACE_STD
- #define __USING_NAMESPACE_STD(name)
- #define __BEGIN_NAMESPACE_C99
- #define __END_NAMESPACE_C99
- #define __USING_NAMESPACE_C99(name)
- #define __bounded
- #define __unbounded
- #define __ptrvalue
- #define __bos(ptr) __builtin_object_size (ptr, __USE_FORTIFY_LEVEL > 1)
- #define __bos0(ptr) __builtin_object_size (ptr, 0)
- #define __warndecl(name,msg) extern void name (void)
- #define __flexarr []
- # 166 "../../include/sys/cdefs.h"
- #define __REDIRECT(name,proto,alias) name proto __asm__ (__ASMNAME (#alias))
- #define __REDIRECT_NTH(name,proto,alias) name proto __asm__ (__ASMNAME (#alias)) __THROW
- #define __ASMNAME(cname) __ASMNAME2 (__USER_LABEL_PREFIX__, cname)
- #define __ASMNAME2(prefix,cname) __STRING (prefix) cname
- # 196 "../../include/sys/cdefs.h"
- #define __attribute_malloc__ __attribute__ ((__malloc__))
- # 205 "../../include/sys/cdefs.h"
- #define __attribute_pure__ __attribute__ ((__pure__))
- # 214 "../../include/sys/cdefs.h"
- #define __attribute_used__ __attribute__ ((__used__))
- #define __attribute_noinline__ __attribute__ ((__noinline__))
- #define __attribute_deprecated__ __attribute__ ((__deprecated__))
- # 235 "../../include/sys/cdefs.h"
- #define __attribute_format_arg__(x) __attribute__ ((__format_arg__ (x)))
- # 245 "../../include/sys/cdefs.h"
- #define __attribute_format_strfmon__(a,b) __attribute__ ((__format__ (__strfmon__, a, b)))
- # 254 "../../include/sys/cdefs.h"
- #define __nonnull(params) __attribute__ ((__nonnull__ params))
- #define __attribute_warn_unused_result__ __attribute__ ((__warn_unused_result__))
- # 271 "../../include/sys/cdefs.h"
- #define __wur
- #define __always_inline __inline __attribute__ ((__always_inline__))
- # 298 "../../include/sys/cdefs.h"
- #define __restrict_arr __restrict
- # 357 "../../include/features.h" 2
- # 396 "../../include/features.h"
- #undef _LARGEFILE_SOURCE
- #undef _LARGEFILE64_SOURCE
- #undef _FILE_OFFSET_BITS
- #undef __USE_LARGEFILE
- #undef __USE_LARGEFILE64
- #undef __USE_FILE_OFFSET64
- #define _LARGEFILE_SOURCE 1
- #define _LARGEFILE64_SOURCE 1
- #define __USE_LARGEFILE 1
- #define __USE_LARGEFILE64 1
- #undef _ATFILE_SOURCE
- #undef __USE_ATFILE
- # 1 "../../include/libc-internal.h" 1
- # 20 "../../include/libc-internal.h"
- #define _LIBC_INTERNAL_H 1
- # 1 "../../include/features.h" 1
- # 23 "../../include/libc-internal.h" 2
- #define attribute_relro __attribute__ ((section (".data.rel.ro")))
- #define attribute_tls_model_ie __attribute__ ((tls_model ("initial-exec")))
- # 43 "../../include/libc-internal.h"
- #define __need_size_t
- # 1 "/opt/STM/STLinux-2.3ear/devkit/sh4/lib/gcc/sh4-linux-uclibc/4.1.1/include/stddef.h" 1 3 4
- # 189 "/opt/STM/STLinux-2.3ear/devkit/sh4/lib/gcc/sh4-linux-uclibc/4.1.1/include/stddef.h" 3 4
- #define __size_t__
- #define __SIZE_T__
- #define _SIZE_T
- #define _SYS_SIZE_T_H
- #define _T_SIZE_
- #define _T_SIZE
- #define __SIZE_T
- #define _SIZE_T_
- #define _BSD_SIZE_T_
- #define _SIZE_T_DEFINED_
- #define _SIZE_T_DEFINED
- #define _BSD_SIZE_T_DEFINED_
- #define _SIZE_T_DECLARED
- #define ___int_size_t_h
- #define _GCC_SIZE_T
- #define _SIZET_
- #define __size_t
- typedef unsigned int size_t;
- # 236 "/opt/STM/STLinux-2.3ear/devkit/sh4/lib/gcc/sh4-linux-uclibc/4.1.1/include/stddef.h" 3 4
- #undef __need_size_t
- # 409 "/opt/STM/STLinux-2.3ear/devkit/sh4/lib/gcc/sh4-linux-uclibc/4.1.1/include/stddef.h" 3 4
- #undef __need_NULL
- # 45 "../../include/libc-internal.h" 2
- extern int __xpg_strerror_r (int __errnum, char *__buf, size_t __buflen);
- # 64 "../../include/libc-internal.h"
- extern const char *__uclibc_progname __attribute__ ((visibility ("hidden")));
- # 1 "../../include/bits/stackinfo.h" 1
- # 23 "../../include/bits/stackinfo.h"
- #define _STACKINFO_H 1
- #define _STACK_GROWS_DOWN 1
- # 70 "../../include/libc-internal.h" 2
- #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; })
- # 414 "../../include/features.h" 2
- # 422 "../../include/features.h"
- #define __user
- # 29 "../../include/stdio.h" 2
- #define __need_size_t
- #define __need_NULL
- # 1 "/opt/STM/STLinux-2.3ear/devkit/sh4/lib/gcc/sh4-linux-uclibc/4.1.1/include/stddef.h" 1 3 4
- # 236 "/opt/STM/STLinux-2.3ear/devkit/sh4/lib/gcc/sh4-linux-uclibc/4.1.1/include/stddef.h" 3 4
- #undef __need_size_t
- # 398 "/opt/STM/STLinux-2.3ear/devkit/sh4/lib/gcc/sh4-linux-uclibc/4.1.1/include/stddef.h" 3 4
- #undef NULL
- #define NULL ((void *)0)
- #undef __need_NULL
- # 35 "../../include/stdio.h" 2
- # 1 "../../include/bits/types.h" 1
- # 25 "../../include/bits/types.h"
- #define _BITS_TYPES_H 1
- # 1 "../../include/bits/wordsize.h" 1
- # 19 "../../include/bits/wordsize.h"
- #define __WORDSIZE 32
- # 29 "../../include/bits/types.h" 2
- #define __need_size_t
- # 1 "/opt/STM/STLinux-2.3ear/devkit/sh4/lib/gcc/sh4-linux-uclibc/4.1.1/include/stddef.h" 1 3 4
- # 236 "/opt/STM/STLinux-2.3ear/devkit/sh4/lib/gcc/sh4-linux-uclibc/4.1.1/include/stddef.h" 3 4
- #undef __need_size_t
- # 409 "/opt/STM/STLinux-2.3ear/devkit/sh4/lib/gcc/sh4-linux-uclibc/4.1.1/include/stddef.h" 3 4
- #undef __need_NULL
- # 32 "../../include/bits/types.h" 2
- # 1 "../../include/bits/kernel_types.h" 1
- #define __ASM_SH_POSIX_TYPES_H
- typedef unsigned short __kernel_dev_t;
- typedef unsigned long __kernel_ino_t;
- typedef unsigned short __kernel_mode_t;
- typedef unsigned short __kernel_nlink_t;
- typedef long __kernel_off_t;
- typedef int __kernel_pid_t;
- typedef unsigned short __kernel_ipc_pid_t;
- typedef unsigned short __kernel_uid_t;
- typedef unsigned short __kernel_gid_t;
- typedef unsigned int __kernel_size_t;
- typedef int __kernel_ssize_t;
- typedef int __kernel_ptrdiff_t;
- typedef long __kernel_time_t;
- typedef long __kernel_suseconds_t;
- typedef long __kernel_clock_t;
- typedef int __kernel_daddr_t;
- typedef char * __kernel_caddr_t;
- typedef unsigned short __kernel_uid16_t;
- typedef unsigned short __kernel_gid16_t;
- typedef unsigned int __kernel_uid32_t;
- typedef unsigned int __kernel_gid32_t;
- typedef unsigned short __kernel_old_uid_t;
- typedef unsigned short __kernel_old_gid_t;
- typedef __kernel_dev_t __kernel_old_dev_t;
- typedef long long __kernel_loff_t;
- typedef struct {
- int __val[2];
- } __kernel_fsid_t;
- # 33 "../../include/bits/types.h" 2
- typedef unsigned char __u_char;
- typedef unsigned short int __u_short;
- typedef unsigned int __u_int;
- typedef unsigned long int __u_long;
- typedef signed char __int8_t;
- typedef unsigned char __uint8_t;
- typedef signed short int __int16_t;
- typedef unsigned short int __uint16_t;
- typedef signed int __int32_t;
- typedef unsigned int __uint32_t;
- __extension__ typedef signed long long int __int64_t;
- __extension__ typedef unsigned long long int __uint64_t;
- __extension__ typedef long long int __quad_t;
- __extension__ typedef unsigned long long int __u_quad_t;
- # 103 "../../include/bits/types.h"
- #define __S16_TYPE short int
- #define __U16_TYPE unsigned short int
- #define __S32_TYPE int
- #define __U32_TYPE unsigned int
- #define __SLONGWORD_TYPE long int
- #define __ULONGWORD_TYPE unsigned long int
- #define __SQUAD_TYPE __quad_t
- #define __UQUAD_TYPE __u_quad_t
- #define __SWORD_TYPE int
- #define __UWORD_TYPE unsigned int
- #define __SLONG32_TYPE long int
- #define __ULONG32_TYPE unsigned long int
- #define __S64_TYPE __quad_t
- #define __U64_TYPE __u_quad_t
- #define __STD_TYPE __extension__ typedef
- # 135 "../../include/bits/types.h"
- # 1 "../../include/bits/typesizes.h" 1
- # 25 "../../include/bits/typesizes.h"
- #define _BITS_TYPESIZES_H 1
- #define __DEV_T_TYPE __UQUAD_TYPE
- #define __UID_T_TYPE __U32_TYPE
- #define __GID_T_TYPE __U32_TYPE
- #define __INO_T_TYPE __ULONGWORD_TYPE
- #define __INO64_T_TYPE __UQUAD_TYPE
- #define __MODE_T_TYPE __U32_TYPE
- #define __NLINK_T_TYPE __UWORD_TYPE
- #define __OFF_T_TYPE __SLONGWORD_TYPE
- #define __OFF64_T_TYPE __SQUAD_TYPE
- #define __PID_T_TYPE __S32_TYPE
- #define __RLIM_T_TYPE __ULONGWORD_TYPE
- #define __RLIM64_T_TYPE __UQUAD_TYPE
- #define __BLKCNT_T_TYPE __SLONGWORD_TYPE
- #define __BLKCNT64_T_TYPE __SQUAD_TYPE
- #define __FSBLKCNT_T_TYPE __ULONGWORD_TYPE
- #define __FSBLKCNT64_T_TYPE __UQUAD_TYPE
- #define __FSFILCNT_T_TYPE __ULONGWORD_TYPE
- #define __FSFILCNT64_T_TYPE __UQUAD_TYPE
- #define __ID_T_TYPE __U32_TYPE
- #define __CLOCK_T_TYPE __SLONGWORD_TYPE
- #define __TIME_T_TYPE __SLONGWORD_TYPE
- #define __USECONDS_T_TYPE __U32_TYPE
- #define __SUSECONDS_T_TYPE __SLONGWORD_TYPE
- #define __DADDR_T_TYPE __S32_TYPE
- #define __SWBLK_T_TYPE __SLONGWORD_TYPE
- #define __KEY_T_TYPE __S32_TYPE
- #define __CLOCKID_T_TYPE __S32_TYPE
- #define __TIMER_T_TYPE void *
- #define __BLKSIZE_T_TYPE __SLONGWORD_TYPE
- #define __FSID_T_TYPE struct { int __val[2]; }
- #define __SSIZE_T_TYPE __SWORD_TYPE
- #define __FD_SETSIZE 1024
- # 136 "../../include/bits/types.h" 2
- __extension__ typedef __u_quad_t __dev_t;
- __extension__ typedef unsigned int __uid_t;
- __extension__ typedef unsigned int __gid_t;
- __extension__ typedef unsigned long int __ino_t;
- __extension__ typedef __u_quad_t __ino64_t;
- __extension__ typedef unsigned int __mode_t;
- __extension__ typedef unsigned int __nlink_t;
- __extension__ typedef long int __off_t;
- __extension__ typedef __quad_t __off64_t;
- __extension__ typedef int __pid_t;
- __extension__ typedef struct { int __val[2]; } __fsid_t;
- __extension__ typedef long int __clock_t;
- __extension__ typedef unsigned long int __rlim_t;
- __extension__ typedef __u_quad_t __rlim64_t;
- __extension__ typedef unsigned int __id_t;
- __extension__ typedef long int __time_t;
- __extension__ typedef unsigned int __useconds_t;
- __extension__ typedef long int __suseconds_t;
- __extension__ typedef int __daddr_t;
- __extension__ typedef long int __swblk_t;
- __extension__ typedef int __key_t;
- __extension__ typedef int __clockid_t;
- __extension__ typedef void * __timer_t;
- __extension__ typedef long int __blksize_t;
- __extension__ typedef long int __blkcnt_t;
- __extension__ typedef __quad_t __blkcnt64_t;
- __extension__ typedef unsigned long int __fsblkcnt_t;
- __extension__ typedef __u_quad_t __fsblkcnt64_t;
- __extension__ typedef unsigned long int __fsfilcnt_t;
- __extension__ typedef __u_quad_t __fsfilcnt64_t;
- __extension__ typedef int __ssize_t;
- typedef __off64_t __loff_t;
- typedef __quad_t *__qaddr_t;
- typedef char *__caddr_t;
- __extension__ typedef int __intptr_t;
- __extension__ typedef unsigned int __socklen_t;
- #undef __STD_TYPE
- typedef __kernel_ipc_pid_t __ipc_pid_t;
- # 1 "../../include/bits/pthreadtypes.h" 1
- # 21 "../../include/bits/pthreadtypes.h"
- #define _BITS_PTHREADTYPES_H 1
- #define __SIZEOF_PTHREAD_ATTR_T 36
- #define __SIZEOF_PTHREAD_MUTEX_T 24
- #define __SIZEOF_PTHREAD_MUTEXATTR_T 4
- #define __SIZEOF_PTHREAD_COND_T 48
- #define __SIZEOF_PTHREAD_COND_COMPAT_T 12
- #define __SIZEOF_PTHREAD_CONDATTR_T 4
- #define __SIZEOF_PTHREAD_RWLOCK_T 32
- #define __SIZEOF_PTHREAD_RWLOCKATTR_T 8
- #define __SIZEOF_PTHREAD_BARRIER_T 20
- #define __SIZEOF_PTHREAD_BARRIERATTR_T 4
- typedef unsigned long int pthread_t;
- typedef union
- {
- char __size[36];
- long int __align;
- } pthread_attr_t;
- typedef union
- {
- struct
- {
- int __lock;
- unsigned int __count;
- int __owner;
- int __kind;
- unsigned int __nusers;
- int __spins;
- } __data;
- char __size[24];
- long int __align;
- } pthread_mutex_t;
- typedef union
- {
- char __size[4];
- long int __align;
- } pthread_mutexattr_t;
- typedef union
- {
- struct
- {
- int __lock;
- unsigned int __futex;
- __extension__ unsigned long long int __total_seq;
- __extension__ unsigned long long int __wakeup_seq;
- __extension__ unsigned long long int __woken_seq;
- void *__mutex;
- unsigned int __nwaiters;
- unsigned int __broadcast_seq;
- } __data;
- char __size[48];
- __extension__ long long int __align;
- } pthread_cond_t;
- typedef union
- {
- char __size[4];
- long int __align;
- } pthread_condattr_t;
- typedef unsigned int pthread_key_t;
- typedef int pthread_once_t;
- typedef union
- {
- struct
- {
- int __lock;
- unsigned int __nr_readers;
- unsigned int __readers_wakeup;
- unsigned int __writer_wakeup;
- unsigned int __nr_readers_queued;
- unsigned int __nr_writers_queued;
- unsigned int __flags;
- pthread_t __writer;
- } __data;
- char __size[32];
- long int __align;
- } pthread_rwlock_t;
- typedef union
- {
- char __size[8];
- long int __align;
- } pthread_rwlockattr_t;
- typedef volatile int pthread_spinlock_t;
- typedef union
- {
- char __size[20];
- long int __align;
- } pthread_barrier_t;
- typedef union
- {
- char __size[4];
- int __align;
- } pthread_barrierattr_t;
- # 207 "../../include/bits/types.h" 2
- # 37 "../../include/stdio.h" 2
- #define __need_FILE
- #define __need___FILE
- typedef struct __STDIO_FILE_STRUCT FILE;
- #define __FILE_defined 1
- #undef __need_FILE
- typedef struct __STDIO_FILE_STRUCT __FILE;
- #define ____FILE_defined 1
- #undef __need___FILE
- #undef _STDIO_USES_IOSTREAM
- # 1 "../../include/bits/uClibc_stdio.h" 1
- # 14 "../../include/bits/uClibc_stdio.h"
- #define __STDIO_BUFFERS
- # 29 "../../include/bits/uClibc_stdio.h"
- #define __STDIO_BUFSIZ 4096
- # 40 "../../include/bits/uClibc_stdio.h"
- #define __STDIO_BUILTIN_BUF_SIZE 0
- # 51 "../../include/bits/uClibc_stdio.h"
- #define __STDIO_HAS_OPENLIST 1
- # 61 "../../include/bits/uClibc_stdio.h"
- #undef __USE_LARGEFILE
- #undef __USE_LARGEFILE64
- #undef __USE_FILE_OFFSET64
- #define __USE_LARGEFILE64 1
- # 80 "../../include/bits/uClibc_stdio.h"
- #define __need_wchar_t
- # 1 "/opt/STM/STLinux-2.3ear/devkit/sh4/lib/gcc/sh4-linux-uclibc/4.1.1/include/stddef.h" 1 3 4
- # 265 "/opt/STM/STLinux-2.3ear/devkit/sh4/lib/gcc/sh4-linux-uclibc/4.1.1/include/stddef.h" 3 4
- #define __wchar_t__
- #define __WCHAR_T__
- #define _WCHAR_T
- #define _T_WCHAR_
- #define _T_WCHAR
- #define __WCHAR_T
- #define _WCHAR_T_
- #define _BSD_WCHAR_T_
- #define _WCHAR_T_DEFINED_
- #define _WCHAR_T_DEFINED
- #define _WCHAR_T_H
- #define ___int_wchar_t_h
- #define __INT_WCHAR_T_H
- #define _GCC_WCHAR_T
- #define _WCHAR_T_DECLARED
- # 292 "/opt/STM/STLinux-2.3ear/devkit/sh4/lib/gcc/sh4-linux-uclibc/4.1.1/include/stddef.h" 3 4
- #undef _BSD_WCHAR_T_
- # 326 "/opt/STM/STLinux-2.3ear/devkit/sh4/lib/gcc/sh4-linux-uclibc/4.1.1/include/stddef.h" 3 4
- typedef long int wchar_t;
- # 345 "/opt/STM/STLinux-2.3ear/devkit/sh4/lib/gcc/sh4-linux-uclibc/4.1.1/include/stddef.h" 3 4
- #undef __need_wchar_t
- # 409 "/opt/STM/STLinux-2.3ear/devkit/sh4/lib/gcc/sh4-linux-uclibc/4.1.1/include/stddef.h" 3 4
- #undef __need_NULL
- # 82 "../../include/bits/uClibc_stdio.h" 2
- #define __STDIO_MBSTATE
- #define __need_mbstate_t
- # 1 "../../include/wchar.h" 1
- # 51 "../../include/wchar.h"
- #define __need_wint_t
- # 1 "/opt/STM/STLinux-2.3ear/devkit/sh4/lib/gcc/sh4-linux-uclibc/4.1.1/include/stddef.h" 1 3 4
- # 350 "/opt/STM/STLinux-2.3ear/devkit/sh4/lib/gcc/sh4-linux-uclibc/4.1.1/include/stddef.h" 3 4
- #define _WINT_T
- typedef unsigned int wint_t;
- #undef __need_wint_t
- # 409 "/opt/STM/STLinux-2.3ear/devkit/sh4/lib/gcc/sh4-linux-uclibc/4.1.1/include/stddef.h" 3 4
- #undef __need_NULL
- # 53 "../../include/wchar.h" 2
- # 1 "../../include/bits/wchar.h" 1
- # 21 "../../include/bits/wchar.h"
- #define _BITS_WCHAR_H 1
- #define __WCHAR_MIN (-2147483647 - 1)
- #define __WCHAR_MAX (2147483647)
- # 55 "../../include/wchar.h" 2
- # 78 "../../include/wchar.h"
- #define __mbstate_t_defined 1
- typedef struct
- {
- wchar_t __mask;
- wchar_t __wc;
- } __mbstate_t;
- # 98 "../../include/wchar.h"
- #undef __need_mbstate_t
- # 88 "../../include/bits/uClibc_stdio.h" 2
- #define __STDIO_GETC_MACRO
- #define __STDIO_PUTC_MACRO
- # 138 "../../include/bits/uClibc_stdio.h"
- #define __STDIO_AUTO_THREADLOCK_VAR int __infunc_user_locking
- # 165 "../../include/bits/uClibc_stdio.h"
- #define __STDIO_AUTO_THREADLOCK(__stream) if ((__infunc_user_locking = (__stream)->__user_locking) == 0) { __pthread_mutex_lock(&(__stream)->__lock); }
- #define __STDIO_AUTO_THREADUNLOCK(__stream) if (__infunc_user_locking == 0) { __pthread_mutex_unlock(&(__stream)->__lock); }
- #define __STDIO_SET_USER_LOCKING(__stream) ((__stream)->__user_locking = 1)
- #define __STDIO_ALWAYS_THREADLOCK(__stream) __pthread_mutex_lock(&(__stream)->__lock)
- #define __STDIO_ALWAYS_THREADTRYLOCK(__stream) __pthread_mutex_trylock(&(__stream)->__lock)
- #define __STDIO_ALWAYS_THREADUNLOCK(__stream) __pthread_mutex_unlock(&(__stream)->__lock)
- # 204 "../../include/bits/uClibc_stdio.h"
- #define __STDIO_IOFBF 0
- #define __STDIO_IOLBF 1
- #define __STDIO_IONBF 2
- typedef struct {
- __off_t __pos;
- __mbstate_t __mbstate;
- int __mblen_pending;
- } __STDIO_fpos_t;
- typedef struct {
- __off64_t __pos;
- __mbstate_t __mbstate;
- int __mblen_pending;
- } __STDIO_fpos64_t;
- typedef __off64_t __offmax_t;
- # 271 "../../include/bits/uClibc_stdio.h"
- struct __STDIO_FILE_STRUCT {
- unsigned short __modeflags;
- unsigned char __ungot_width[2];
- int __filedes;
- unsigned char *__bufstart;
- unsigned char *__bufend;
- unsigned char *__bufpos;
- unsigned char *__bufread;
- unsigned char *__bufgetc_u;
- unsigned char *__bufputc_u;
- struct __STDIO_FILE_STRUCT *__nextopen;
- wchar_t __ungot[2];
- __mbstate_t __state;
- int __user_locking;
- pthread_mutex_t __lock;
- };
- # 347 "../../include/bits/uClibc_stdio.h"
- #define __MASK_READING 0x0003U
- #define __FLAG_READING 0x0001U
- #define __FLAG_UNGOT 0x0002U
- #define __FLAG_EOF 0x0004U
- #define __FLAG_ERROR 0x0008U
- #define __FLAG_WRITEONLY 0x0010U
- #define __FLAG_READONLY 0x0020U
- #define __FLAG_WRITING 0x0040U
- #define __FLAG_NARROW 0x0080U
- #define __FLAG_FBF 0x0000U
- #define __FLAG_LBF 0x0100U
- #define __FLAG_NBF 0x0200U
- #define __MASK_BUFMODE 0x0300U
- #define __FLAG_APPEND 0x0400U
- #define __FLAG_WIDE 0x0800U
- #define __FLAG_FREEFILE 0x2000U
- #define __FLAG_FREEBUF 0x4000U
- #define __FLAG_LARGEFILE 0x8000U
- #define __FLAG_FAILED_FREOPEN __FLAG_LARGEFILE
- # 388 "../../include/bits/uClibc_stdio.h"
- extern void _stdio_init(void) __attribute__ ((visibility ("hidden")));
- extern void _stdio_term(void) __attribute__ ((visibility ("hidden")));
- extern struct __STDIO_FILE_STRUCT *_stdio_openlist;
- extern pthread_mutex_t _stdio_openlist_lock;
- extern int _stdio_openlist_delflag;
- extern int _stdio_user_locking;
- extern void __stdio_init_mutex(pthread_mutex_t *m) __attribute__ ((visibility ("hidden")));
- # 413 "../../include/bits/uClibc_stdio.h"
- #define __CLEARERR_UNLOCKED(__stream) ((void)((__stream)->__modeflags &= ~(__FLAG_EOF|__FLAG_ERROR)))
- #define __FEOF_UNLOCKED(__stream) ((__stream)->__modeflags & __FLAG_EOF)
- #define __FERROR_UNLOCKED(__stream) ((__stream)->__modeflags & __FLAG_ERROR)
- #define __CLEARERR(__stream) (clearerr)(__stream)
- #define __FERROR(__stream) (ferror)(__stream)
- #define __FEOF(__stream) (feof)(__stream)
- extern int __fgetc_unlocked(FILE *__stream);
- extern int __fputc_unlocked(int __c, FILE *__stream);
- #define __FGETC_UNLOCKED(__stream) (__fgetc_unlocked)((__stream))
- #define __FGETC(__stream) (fgetc)((__stream))
- #define __GETC_UNLOCKED_MACRO(__stream) (__fgetc_unlocked)((__stream))
- #define __GETC_UNLOCKED(__stream) (__fgetc_unlocked)((__stream))
- #define __GETC(__stream) (fgetc)((__stream))
- #define __FPUTC_UNLOCKED(__c,__stream) (__fputc_unlocked)((__c),(__stream))
- #define __FPUTC(__c,__stream) (fputc)((__c),(__stream))
- #define __PUTC_UNLOCKED_MACRO(__c,__stream) (__fputc_unlocked)((__c),(__stream))
- #define __PUTC_UNLOCKED(__c,__stream) (__fputc_unlocked)((__c),(__stream))
- #define __PUTC(__c,__stream) (fputc)((__c),(__stream))
- extern FILE *__stdin;
- #undef __GETC_UNLOCKED_MACRO
- #define __GETC_UNLOCKED_MACRO(__stream) ( ((__stream)->__bufpos < (__stream)->__bufgetc_u) ? (*(__stream)->__bufpos++) : __fgetc_unlocked(__stream) )
- # 466 "../../include/bits/uClibc_stdio.h"
- #undef __FGETC_UNLOCKED
- #define __FGETC_UNLOCKED(__stream) (__extension__ ({ FILE *__S = (__stream); __GETC_UNLOCKED_MACRO(__S); }) )
- #undef __GETC_UNLOCKED
- #define __GETC_UNLOCKED(__stream) __FGETC_UNLOCKED((__stream))
- #undef __FGETC
- #define __FGETC(__stream) (__extension__ ({ FILE *__S = (__stream); ((__S->__user_locking ) ? __GETC_UNLOCKED_MACRO(__S) : (fgetc)(__S)); }) )
- #undef __GETC
- #define __GETC(__stream) __FGETC((__stream))
- # 506 "../../include/bits/uClibc_stdio.h"
- extern FILE *__stdout;
- #undef __PUTC_UNLOCKED_MACRO
- #define __PUTC_UNLOCKED_MACRO(__c,__stream) ( ((__stream)->__bufpos < (__stream)->__bufputc_u) ? (*(__stream)->__bufpos++) = (__c) : __fputc_unlocked((__c),(__stream)) )
- # 527 "../../include/bits/uClibc_stdio.h"
- #undef __FPUTC_UNLOCKED
- #define __FPUTC_UNLOCKED(__c,__stream) (__extension__ ({ FILE *__S = (__stream); __PUTC_UNLOCKED_MACRO((__c),__S); }) )
- #undef __PUTC_UNLOCKED
- #define __PUTC_UNLOCKED(__c,__stream) __FPUTC_UNLOCKED((__c), (__stream))
- #undef __FPUTC
- #define __FPUTC(__c,__stream) (__extension__ ({ FILE *__S = (__stream); ((__S->__user_locking) ? __PUTC_UNLOCKED_MACRO((__c),__S) : (fputc)((__c),__S)); }) )
- #undef __PUTC
- #define __PUTC(__c,__stream) __FPUTC((__c), (__stream))
- # 73 "../../include/stdio.h" 2
- #define __need___va_list
- # 1 "/opt/STM/STLinux-2.3ear/devkit/sh4/lib/gcc/sh4-linux-uclibc/4.1.1/include/stdarg.h" 1 3 4
- # 37 "/opt/STM/STLinux-2.3ear/devkit/sh4/lib/gcc/sh4-linux-uclibc/4.1.1/include/stdarg.h" 3 4
- #undef __need___va_list
- #define __GNUC_VA_LIST
- typedef __builtin_va_list __gnuc_va_list;
- # 77 "../../include/stdio.h" 2
- typedef __STDIO_fpos_t fpos_t;
- typedef __STDIO_fpos64_t fpos64_t;
- #define _IOFBF __STDIO_IOFBF
- #define _IOLBF __STDIO_IOLBF
- #define _IONBF __STDIO_IONBF
- #define BUFSIZ __STDIO_BUFSIZ
- #define EOF (-1)
- #define SEEK_SET 0
- #define SEEK_CUR 1
- #define SEEK_END 2
- #define P_tmpdir "/tmp"
- # 131 "../../include/stdio.h"
- # 1 "../../include/bits/stdio_lim.h" 1
- # 24 "../../include/bits/stdio_lim.h"
- #define L_tmpnam 20
- #define TMP_MAX 238328
- #define FILENAME_MAX 4095
- #define L_ctermid 9
- #define L_cuserid 9
- #undef FOPEN_MAX
- #define FOPEN_MAX 16
- # 132 "../../include/stdio.h" 2
- extern FILE *stdin;
- extern FILE *stdout;
- extern FILE *stderr;
- #define stdin stdin
- #define stdout stdout
- #define stderr stderr
- extern int remove (__const char *__filename) __attribute__ ((__nothrow__));
- extern int rename (__const char *__old, __const char *__new) __attribute__ ((__nothrow__));
- extern FILE *tmpfile (void);
- # 167 "../../include/stdio.h"
- extern FILE *tmpfile64 (void);
- extern char *tmpnam (char *__s) __attribute__ ((__nothrow__));
- extern char *tmpnam_r (char *__s) __attribute__ ((__nothrow__));
- # 189 "../../include/stdio.h"
- extern char *tempnam (__const char *__dir, __const char *__pfx)
- __attribute__ ((__nothrow__)) __attribute__ ((__malloc__));
- extern int fclose (FILE *__stream);
- extern int fflush (FILE *__stream);
- # 214 "../../include/stdio.h"
- extern int fflush_unlocked (FILE *__stream);
- # 224 "../../include/stdio.h"
- extern int fcloseall (void);
- extern FILE *fopen (__const char *__restrict __filename,
- __const char *__restrict __modes);
- extern FILE *freopen (__const char *__restrict __filename,
- __const char *__restrict __modes,
- FILE *__restrict __stream);
- # 255 "../../include/stdio.h"
- extern FILE *fopen64 (__const char *__restrict __filename,
- __const char *__restrict __modes);
- extern FILE *freopen64 (__const char *__restrict __filename,
- __const char *__restrict __modes,
- FILE *__restrict __stream);
- extern FILE *fdopen (int __fd, __const char *__modes) __attribute__ ((__nothrow__));
- # 289 "../../include/stdio.h"
- extern void setbuf (FILE *__restrict __stream, char *__restrict __buf) __attribute__ ((__nothrow__));
- extern int setvbuf (FILE *__restrict __stream, char *__restrict __buf,
- int __modes, size_t __n) __attribute__ ((__nothrow__));
- extern void setbuffer (FILE *__restrict __stream, char *__restrict __buf,
- size_t __size) __attribute__ ((__nothrow__));
- extern void setlinebuf (FILE *__stream) __attribute__ ((__nothrow__));
- extern int fprintf (FILE *__restrict __stream,
- __const char *__restrict __format, ...);
- extern int printf (__const char *__restrict __format, ...);
- extern int sprintf (char *__restrict __s,
- __const char *__restrict __format, ...) __attribute__ ((__nothrow__));
- extern int vfprintf (FILE *__restrict __s, __const char *__restrict __format,
- __gnuc_va_list __arg);
- extern int vprintf (__const char *__restrict __format, __gnuc_va_list __arg);
- extern int vsprintf (char *__restrict __s, __const char *__restrict __format,
- __gnuc_va_list __arg) __attribute__ ((__nothrow__));
- extern int snprintf (char *__restrict __s, size_t __maxlen,
- __const char *__restrict __format, ...)
- __attribute__ ((__nothrow__)) __attribute__ ((__format__ (__printf__, 3, 4)));
- extern int vsnprintf (char *__restrict __s, size_t __maxlen,
- __const char *__restrict __format, __gnuc_va_list __arg)
- __attribute__ ((__nothrow__)) __attribute__ ((__format__ (__printf__, 3, 0)));
- extern int vasprintf (char **__restrict __ptr, __const char *__restrict __f,
- __gnuc_va_list __arg)
- __attribute__ ((__nothrow__)) __attribute__ ((__format__ (__printf__, 2, 0)));
- extern int asprintf (char **__restrict __ptr,
- __const char *__restrict __fmt, ...)
- __attribute__ ((__nothrow__)) __attribute__ ((__format__ (__printf__, 2, 3)));
- extern int vdprintf (int __fd, __const char *__restrict __fmt,
- __gnuc_va_list __arg)
- __attribute__ ((__format__ (__printf__, 2, 0)));
- extern int dprintf (int __fd, __const char *__restrict __fmt, ...)
- __attribute__ ((__format__ (__printf__, 2, 3)));
- extern int fscanf (FILE *__restrict __stream,
- __const char *__restrict __format, ...);
- extern int scanf (__const char *__restrict __format, ...);
- extern int sscanf (__const char *__restrict __s,
- __const char *__restrict __format, ...) __attribute__ ((__nothrow__));
- extern int vfscanf (FILE *__restrict __s, __const char *__restrict __format,
- __gnuc_va_list __arg)
- __attribute__ ((__format__ (__scanf__, 2, 0)));
- extern int vscanf (__const char *__restrict __format, __gnuc_va_list __arg)
- __attribute__ ((__format__ (__scanf__, 1, 0)));
- extern int vsscanf (__const char *__restrict __s,
- __const char *__restrict __format, __gnuc_va_list __arg)
- __attribute__ ((__nothrow__)) __attribute__ ((__format__ (__scanf__, 2, 0)));
- extern int fgetc (FILE *__stream);
- extern int getc (FILE *__stream);
- extern int getchar (void);
- #define getc(_fp) __GETC(_fp)
- extern int getc_unlocked (FILE *__stream);
- extern int getchar_unlocked (void);
- #define getc_unlocked(_fp) __GETC_UNLOCKED(_fp)
- # 465 "../../include/stdio.h"
- extern int fgetc_unlocked (FILE *__stream);
- extern int fputc (int __c, FILE *__stream);
- extern int putc (int __c, FILE *__stream);
- extern int putchar (int __c);
- #define putc(_ch,_fp) __PUTC(_ch, _fp)
- # 498 "../../include/stdio.h"
- extern int fputc_unlocked (int __c, FILE *__stream);
- extern int putc_unlocked (int __c, FILE *__stream);
- extern int putchar_unlocked (int __c);
- #define putc_unlocked(_ch,_fp) __PUTC_UNLOCKED(_ch, _fp)
- extern int getw (FILE *__stream);
- extern int putw (int __w, FILE *__stream);
- extern char *fgets (char *__restrict __s, int __n, FILE *__restrict __stream);
- extern char *gets (char *__s);
- # 546 "../../include/stdio.h"
- extern char *fgets_unlocked (char *__restrict __s, int __n,
- FILE *__restrict __stream);
- # 567 "../../include/stdio.h"
- extern __ssize_t getdelim (char **__restrict __lineptr,
- size_t *__restrict __n, int __delimiter,
- FILE *__restrict __stream);
- extern __ssize_t getline (char **__restrict __lineptr,
- size_t *__restrict __n,
- FILE *__restrict __stream);
- extern int fputs (__const char *__restrict __s, FILE *__restrict __stream);
- extern int puts (__const char *__s);
- extern int ungetc (int __c, FILE *__stream);
- extern size_t fread (void *__restrict __ptr, size_t __size,
- size_t __n, FILE *__restrict __stream);
- extern size_t fwrite (__const void *__restrict __ptr, size_t __size,
- size_t __n, FILE *__restrict __s);
- # 625 "../../include/stdio.h"
- extern int fputs_unlocked (__const char *__restrict __s,
- FILE *__restrict __stream);
- # 636 "../../include/stdio.h"
- extern size_t fread_unlocked (void *__restrict __ptr, size_t __size,
- size_t __n, FILE *__restrict __stream);
- extern size_t fwrite_unlocked (__const void *__restrict __ptr, size_t __size,
- size_t __n, FILE *__restrict __stream);
- extern int fseek (FILE *__stream, long int __off, int __whence);
- extern long int ftell (FILE *__stream);
- extern void rewind (FILE *__stream);
- # 672 "../../include/stdio.h"
- extern int fseeko (FILE *__stream, __off_t __off, int __whence);
- extern __off_t ftello (FILE *__stream);
- # 691 "../../include/stdio.h"
- extern int fgetpos (FILE *__restrict __stream, fpos_t *__restrict __pos);
- extern int fsetpos (FILE *__stream, __const fpos_t *__pos);
- # 714 "../../include/stdio.h"
- extern int fseeko64 (FILE *__stream, __off64_t __off, int __whence);
- extern __off64_t ftello64 (FILE *__stream);
- extern int fgetpos64 (FILE *__restrict __stream, fpos64_t *__restrict __pos);
- extern int fsetpos64 (FILE *__stream, __const fpos64_t *__pos);
- extern void clearerr (FILE *__stream) __attribute__ ((__nothrow__));
- extern int feof (FILE *__stream) __attribute__ ((__nothrow__));
- extern int ferror (FILE *__stream) __attribute__ ((__nothrow__));
- extern void clearerr_unlocked (FILE *__stream) __attribute__ ((__nothrow__));
- extern int feof_unlocked (FILE *__stream) __attribute__ ((__nothrow__));
- extern int ferror_unlocked (FILE *__stream) __attribute__ ((__nothrow__));
- extern void perror (__const char *__s);
- extern int sys_nerr;
- extern __const char *__const sys_errlist[];
- extern int fileno (FILE *__stream) __attribute__ ((__nothrow__));
- extern int fileno_unlocked (FILE *__stream) __attribute__ ((__nothrow__));
- # 775 "../../include/stdio.h"
- extern FILE *popen (__const char *__command, __const char *__modes);
- extern int pclose (FILE *__stream);
- extern char *ctermid (char *__s) __attribute__ ((__nothrow__));
- extern char *cuserid (char *__s);
- # 815 "../../include/stdio.h"
- extern void flockfile (FILE *__stream) __attribute__ ((__nothrow__));
- extern int ftrylockfile (FILE *__stream) __attribute__ ((__nothrow__));
- extern void funlockfile (FILE *__stream) __attribute__ ((__nothrow__));
- # 835 "../../include/stdio.h"
- #define fgetc(_fp) __FGETC(_fp)
- #define fputc(_ch,_fp) __FPUTC(_ch, _fp)
- #define fgetc_unlocked(_fp) __FGETC_UNLOCKED(_fp)
- #define fputc_unlocked(_ch,_fp) __FPUTC_UNLOCKED(_ch, _fp)
- #define getchar() __GETC(__stdin)
- #define putchar(_ch) __PUTC((_ch), __stdout)
- #define getchar_unlocked() __GETC_UNLOCKED(__stdin)
- #define putchar_unlocked(_ch) __PUTC_UNLOCKED((_ch), __stdout)
- #define clearerr(_fp) __CLEARERR(_fp)
- #define feof(_fp) __FEOF(_fp)
- #define ferror(_fp) __FERROR(_fp)
- #define clearerr_unlocked(_fp) __CLEARERR_UNLOCKED(_fp)
- #define feof_unlocked(_fp) __FEOF_UNLOCKED(_fp)
- #define ferror_unlocked(_fp) __FERROR_UNLOCKED(_fp)
- # 11 "tsp_common.c" 2
- # 1 "../../include/stdlib.h" 1
- # 28 "../../include/stdlib.h"
- #define __need_size_t
- #define __need_wchar_t
- #define __need_NULL
- # 1 "/opt/STM/STLinux-2.3ear/devkit/sh4/lib/gcc/sh4-linux-uclibc/4.1.1/include/stddef.h" 1 3 4
- # 236 "/opt/STM/STLinux-2.3ear/devkit/sh4/lib/gcc/sh4-linux-uclibc/4.1.1/include/stddef.h" 3 4
- #undef __need_size_t
- # 345 "/opt/STM/STLinux-2.3ear/devkit/sh4/lib/gcc/sh4-linux-uclibc/4.1.1/include/stddef.h" 3 4
- #undef __need_wchar_t
- # 398 "/opt/STM/STLinux-2.3ear/devkit/sh4/lib/gcc/sh4-linux-uclibc/4.1.1/include/stddef.h" 3 4
- #undef NULL
- #define NULL ((void *)0)
- #undef __need_NULL
- # 36 "../../include/stdlib.h" 2
- #define _STDLIB_H 1
- # 1 "../../include/bits/waitflags.h" 1
- # 26 "../../include/bits/waitflags.h"
- #define WNOHANG 1
- #define WUNTRACED 2
- #define WSTOPPED 2
- #define WEXITED 4
- #define WCONTINUED 8
- #define WNOWAIT 0x01000000
- #define __WNOTHREAD 0x20000000
- #define __WALL 0x40000000
- #define __WCLONE 0x80000000
- # 45 "../../include/stdlib.h" 2
- # 1 "../../include/bits/waitstatus.h" 1
- # 29 "../../include/bits/waitstatus.h"
- #define __WEXITSTATUS(status) (((status) & 0xff00) >> 8)
- #define __WTERMSIG(status) ((status) & 0x7f)
- #define __WSTOPSIG(status) __WEXITSTATUS(status)
- #define __WIFEXITED(status) (__WTERMSIG(status) == 0)
- #define __WIFSIGNALED(status) (__extension__ ({ int __status = (status); !__WIFSTOPPED(__status) && !__WIFEXITED(__status); }))
- #define __WIFSTOPPED(status) (((status) & 0xff) == 0x7f)
- #define __WCOREDUMP(status) ((status) & __WCOREFLAG)
- #define __W_EXITCODE(ret,sig) ((ret) << 8 | (sig))
- #define __W_STOPCODE(sig) ((sig) << 8 | 0x7f)
- #define __WCOREFLAG 0x80
- # 1 "../../include/endian.h" 1
- # 20 "../../include/endian.h"
- #define _ENDIAN_H 1
- # 32 "../../include/endian.h"
- #define __LITTLE_ENDIAN 1234
- #define __BIG_ENDIAN 4321
- #define __PDP_ENDIAN 3412
- # 1 "../../include/bits/endian.h" 1
- #define __BYTE_ORDER __LITTLE_ENDIAN
- #define __FLOAT_WORD_ORDER __LITTLE_ENDIAN
- # 38 "../../include/endian.h" 2
- # 46 "../../include/endian.h"
- #define LITTLE_ENDIAN __LITTLE_ENDIAN
- #define BIG_ENDIAN __BIG_ENDIAN
- #define PDP_ENDIAN __PDP_ENDIAN
- #define BYTE_ORDER __BYTE_ORDER
- #define __LONG_LONG_PAIR(HI,LO) LO, HI
- # 64 "../../include/bits/waitstatus.h" 2
- union wait
- {
- int w_status;
- struct
- {
- unsigned int __w_termsig:7;
- unsigned int __w_coredump:1;
- unsigned int __w_retcode:8;
- unsigned int:16;
- } __wait_terminated;
- struct
- {
- unsigned int __w_stopval:8;
- unsigned int __w_stopsig:8;
- unsigned int:16;
- } __wait_stopped;
- };
- #define w_termsig __wait_terminated.__w_termsig
- #define w_coredump __wait_terminated.__w_coredump
- #define w_retcode __wait_terminated.__w_retcode
- #define w_stopsig __wait_stopped.__w_stopsig
- #define w_stopval __wait_stopped.__w_stopval
- # 46 "../../include/stdlib.h" 2
- #define __WAIT_INT(status) (__extension__ ({ union { __typeof(status) __in; int __i; } __u; __u.__in = (status); __u.__i; }))
- # 70 "../../include/stdlib.h"
- typedef union
- {
- union wait *__uptr;
- int *__iptr;
- } __WAIT_STATUS __attribute__ ((__transparent_union__));
- #define __WAIT_STATUS_DEFN int *
- # 87 "../../include/stdlib.h"
- #define WEXITSTATUS(status) __WEXITSTATUS(__WAIT_INT(status))
- #define WTERMSIG(status) __WTERMSIG(__WAIT_INT(status))
- #define WSTOPSIG(status) __WSTOPSIG(__WAIT_INT(status))
- #define WIFEXITED(status) __WIFEXITED(__WAIT_INT(status))
- #define WIFSIGNALED(status) __WIFSIGNALED(__WAIT_INT(status))
- #define WIFSTOPPED(status) __WIFSTOPPED(__WAIT_INT(status))
- typedef struct
- {
- int quot;
- int rem;
- } div_t;
- typedef struct
- {
- long int quot;
- long int rem;
- } ldiv_t;
- #define __ldiv_t_defined 1
- __extension__ typedef struct
- {
- long long int quot;
- long long int rem;
- } lldiv_t;
- #define __lldiv_t_defined 1
- #define RAND_MAX 2147483647
- #define EXIT_FAILURE 1
- #define EXIT_SUCCESS 0
- # 146 "../../include/stdlib.h"
- #define MB_CUR_MAX (_stdlib_mb_cur_max ())
- extern size_t _stdlib_mb_cur_max (void) __attribute__ ((__nothrow__)) ;
- extern double atof (__const char *__nptr)
- __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) ;
- extern int atoi (__const char *__nptr)
- __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) ;
- extern long int atol (__const char *__nptr)
- __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) ;
- __extension__ extern long long int atoll (__const char *__nptr)
- __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) ;
- extern double strtod (__const char *__restrict __nptr,
- char **__restrict __endptr)
- __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ;
- extern float strtof (__const char *__restrict __nptr,
- char **__restrict __endptr) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ;
- extern long double strtold (__const char *__restrict __nptr,
- char **__restrict __endptr)
- __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ;
- extern long int strtol (__const char *__restrict __nptr,
- char **__restrict __endptr, int __base)
- __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ;
- extern unsigned long int strtoul (__const char *__restrict __nptr,
- char **__restrict __endptr, int __base)
- __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ;
- __extension__
- extern long long int strtoq (__const char *__restrict __nptr,
- char **__restrict __endptr, int __base)
- __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ;
- __extension__
- extern unsigned long long int strtouq (__const char *__restrict __nptr,
- char **__restrict __endptr, int __base)
- __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ;
- __extension__
- extern long long int strtoll (__const char *__restrict __nptr,
- char **__restrict __endptr, int __base)
- __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ;
- __extension__
- extern unsigned long long int strtoull (__const char *__restrict __nptr,
- char **__restrict __endptr, int __base)
- __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ;
- # 297 "../../include/stdlib.h"
- extern char *l64a (long int __n) __attribute__ ((__nothrow__)) ;
- extern long int a64l (__const char *__s)
- __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) ;
- # 1 "../../include/sys/types.h" 1
- # 25 "../../include/sys/types.h"
- #define _SYS_TYPES_H 1
- typedef __u_char u_char;
- typedef __u_short u_short;
- typedef __u_int u_int;
- typedef __u_long u_long;
- typedef __quad_t quad_t;
- typedef __u_quad_t u_quad_t;
- typedef __fsid_t fsid_t;
- #define __u_char_defined
- typedef __loff_t loff_t;
- typedef __ino_t ino_t;
- #define __ino_t_defined
- typedef __ino64_t ino64_t;
- #define __ino64_t_defined
- typedef __dev_t dev_t;
- #define __dev_t_defined
- typedef __gid_t gid_t;
- #define __gid_t_defined
- typedef __mode_t mode_t;
- #define __mode_t_defined
- typedef __nlink_t nlink_t;
- #define __nlink_t_defined
- typedef __uid_t uid_t;
- #define __uid_t_defined
- typedef __off_t off_t;
- #define __off_t_defined
- typedef __off64_t off64_t;
- #define __off64_t_defined
- typedef __pid_t pid_t;
- #define __pid_t_defined
- typedef __id_t id_t;
- #define __id_t_defined
- typedef __ssize_t ssize_t;
- #define __ssize_t_defined
- typedef __daddr_t daddr_t;
- typedef __caddr_t caddr_t;
- #define __daddr_t_defined
- typedef __key_t key_t;
- #define __key_t_defined
- #define __need_clock_t
- #define __need_time_t
- #define __need_timer_t
- #define __need_clockid_t
- # 1 "../../include/time.h" 1
- # 55 "../../include/time.h"
- #define __clock_t_defined 1
- typedef __clock_t clock_t;
- #undef __need_clock_t
- #define __time_t_defined 1
- typedef __time_t time_t;
- #undef __need_time_t
- #define __clockid_t_defined 1
- typedef __clockid_t clockid_t;
- #undef __clockid_time_t
- #define __timer_t_defined 1
- typedef __timer_t timer_t;
- #undef __need_timer_t
- # 128 "../../include/time.h"
- #undef __need_timespec
- # 134 "../../include/sys/types.h" 2
- typedef __useconds_t useconds_t;
- #define __useconds_t_defined
- typedef __suseconds_t suseconds_t;
- #define __suseconds_t_defined
- #define __need_size_t
- # 1 "/opt/STM/STLinux-2.3ear/devkit/sh4/lib/gcc/sh4-linux-uclibc/4.1.1/include/stddef.h" 1 3 4
- # 236 "/opt/STM/STLinux-2.3ear/devkit/sh4/lib/gcc/sh4-linux-uclibc/4.1.1/include/stddef.h" 3 4
- #undef __need_size_t
- # 409 "/opt/STM/STLinux-2.3ear/devkit/sh4/lib/gcc/sh4-linux-uclibc/4.1.1/include/stddef.h" 3 4
- #undef __need_NULL
- # 148 "../../include/sys/types.h" 2
- typedef unsigned long int ulong;
- typedef unsigned short int ushort;
- typedef unsigned int uint;
- # 184 "../../include/sys/types.h"
- #define __intN_t(N,MODE) typedef int int ##N ##_t __attribute__ ((__mode__ (MODE)))
- #define __u_intN_t(N,MODE) typedef unsigned int u_int ##N ##_t __attribute__ ((__mode__ (MODE)))
- #define __int8_t_defined
- typedef int int8_t __attribute__ ((__mode__ (__QI__)));
- typedef int int16_t __attribute__ ((__mode__ (__HI__)));
- typedef int int32_t __attribute__ ((__mode__ (__SI__)));
- typedef int int64_t __attribute__ ((__mode__ (__DI__)));
- typedef unsigned int u_int8_t __attribute__ ((__mode__ (__QI__)));
- typedef unsigned int u_int16_t __attribute__ ((__mode__ (__HI__)));
- typedef unsigned int u_int32_t __attribute__ ((__mode__ (__SI__)));
- typedef unsigned int u_int64_t __attribute__ ((__mode__ (__DI__)));
- typedef int register_t __attribute__ ((__mode__ (__word__)));
- #define __BIT_TYPES_DEFINED__ 1
- # 1 "../../include/sys/select.h" 1
- # 23 "../../include/sys/select.h"
- #define _SYS_SELECT_H 1
- # 1 "../../include/bits/select.h" 1
- # 26 "../../include/bits/select.h"
- #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)
- #define __FD_SET(d,s) (__FDS_BITS (s)[__FDELT(d)] |= __FDMASK(d))
- #define __FD_CLR(d,s) (__FDS_BITS (s)[__FDELT(d)] &= ~__FDMASK(d))
- #define __FD_ISSET(d,s) ((__FDS_BITS (s)[__FDELT(d)] & __FDMASK(d)) != 0)
- # 32 "../../include/sys/select.h" 2
- # 1 "../../include/bits/sigset.h" 1
- # 21 "../../include/bits/sigset.h"
- #define _SIGSET_H_types 1
- typedef int __sig_atomic_t;
- #define _SIGSET_NWORDS (1024 / (8 * sizeof (unsigned long int)))
- typedef struct
- {
- unsigned long int __val[(1024 / (8 * sizeof (unsigned long int)))];
- } __sigset_t;
- # 35 "../../include/sys/select.h" 2
- #define __sigset_t_defined
- typedef __sigset_t sigset_t;
- #define __need_time_t
- #define __need_timespec
- # 1 "../../include/time.h" 1
- # 68 "../../include/time.h"
- #undef __need_clock_t
- # 84 "../../include/time.h"
- #undef __need_time_t
- # 96 "../../include/time.h"
- #undef __clockid_time_t
- # 108 "../../include/time.h"
- #undef __need_timer_t
- #define __timespec_defined 1
- struct timespec
- {
- __time_t tv_sec;
- long int tv_nsec;
- };
- #undef __need_timespec
- # 45 "../../include/sys/select.h" 2
- #define __need_timeval
- # 1 "../../include/bits/time.h" 1
- # 66 "../../include/bits/time.h"
- #undef __need_timeval
- #define _STRUCT_TIMEVAL 1
- struct timeval
- {
- __time_t tv_sec;
- __suseconds_t tv_usec;
- };
- # 47 "../../include/sys/select.h" 2
- # 55 "../../include/sys/select.h"
- typedef long int __fd_mask;
- #undef __NFDBITS
- #undef __FDELT
- #undef __FDMASK
- #define __NFDBITS (8 * sizeof (__fd_mask))
- #define __FDELT(d) ((d) / __NFDBITS)
- #define __FDMASK(d) ((__fd_mask) 1 << ((d) % __NFDBITS))
- typedef struct
- {
- __fd_mask fds_bits[1024 / (8 * sizeof (__fd_mask))];
- #define __FDS_BITS(set) ((set)->fds_bits)
- } fd_set;
- #define FD_SETSIZE __FD_SETSIZE
- typedef __fd_mask fd_mask;
- #define NFDBITS __NFDBITS
- #define FD_SET(fd,fdsetp) __FD_SET (fd, fdsetp)
- #define FD_CLR(fd,fdsetp) __FD_CLR (fd, fdsetp)
- #define FD_ISSET(fd,fdsetp) __FD_ISSET (fd, fdsetp)
- #define FD_ZERO(fdsetp) __FD_ZERO (fdsetp)
- # 109 "../../include/sys/select.h"
- extern int select (int __nfds, fd_set *__restrict __readfds,
- fd_set *__restrict __writefds,
- fd_set *__restrict __exceptfds,
- struct timeval *__restrict __timeout);
- # 121 "../../include/sys/select.h"
- extern int pselect (int __nfds, fd_set *__restrict __readfds,
- fd_set *__restrict __writefds,
- fd_set *__restrict __exceptfds,
- const struct timespec *__restrict __timeout,
- const __sigset_t *__restrict __sigmask);
- # 217 "../../include/sys/types.h" 2
- # 1 "../../include/sys/sysmacros.h" 1
- # 21 "../../include/sys/sysmacros.h"
- #define _SYS_SYSMACROS_H 1
- __extension__
- static __inline unsigned int gnu_dev_major (unsigned long long int __dev)
- __attribute__ ((__nothrow__));
- __extension__
- static __inline unsigned int gnu_dev_minor (unsigned long long int __dev)
- __attribute__ ((__nothrow__));
- __extension__
- static __inline unsigned long long int gnu_dev_makedev (unsigned int __major,
- unsigned int __minor)
- __attribute__ ((__nothrow__));
- __extension__ static __inline unsigned int
- __attribute__ ((__nothrow__)) gnu_dev_major (unsigned long long int __dev)
- {
- return ((__dev >> 8) & 0xfff) | ((unsigned int) (__dev >> 32) & ~0xfff);
- }
- __extension__ static __inline unsigned int
- __attribute__ ((__nothrow__)) gnu_dev_minor (unsigned long long int __dev)
- {
- return (__dev & 0xff) | ((unsigned int) (__dev >> 12) & ~0xff);
- }
- __extension__ static __inline unsigned long long int
- __attribute__ ((__nothrow__)) gnu_dev_makedev (unsigned int __major, unsigned int __minor)
- {
- return ((__minor & 0xff) | ((__major & 0xfff) << 8)
- | (((unsigned long long int) (__minor & ~0xff)) << 12)
- | (((unsigned long long int) (__major & ~0xfff)) << 32));
- }
- #define major(dev) gnu_dev_major (dev)
- #define minor(dev) gnu_dev_minor (dev)
- #define makedev(maj,min) gnu_dev_makedev (maj, min)
- # 220 "../../include/sys/types.h" 2
- typedef __blksize_t blksize_t;
- #define __blksize_t_defined
- typedef __blkcnt_t blkcnt_t;
- #define __blkcnt_t_defined
- typedef __fsblkcnt_t fsblkcnt_t;
- #define __fsblkcnt_t_defined
- typedef __fsfilcnt_t fsfilcnt_t;
- #define __fsfilcnt_t_defined
- # 258 "../../include/sys/types.h"
- typedef __blkcnt64_t blkcnt64_t;
- typedef __fsblkcnt64_t fsblkcnt64_t;
- typedef __fsfilcnt64_t fsfilcnt64_t;
- # 269 "../../include/sys/types.h"
- # 307 "../../include/stdlib.h" 2
- extern long int random (void) __attribute__ ((__nothrow__));
- extern void srandom (unsigned int __seed) __attribute__ ((__nothrow__));
- extern char *initstate (unsigned int __seed, char *__statebuf,
- size_t __statelen) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2)));
- extern char *setstate (char *__statebuf) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
- struct random_data
- {
- int32_t *fptr;
- int32_t *rptr;
- int32_t *state;
- int rand_type;
- int rand_deg;
- int rand_sep;
- int32_t *end_ptr;
- };
- extern int random_r (struct random_data *__restrict __buf,
- int32_t *__restrict __result) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
- extern int srandom_r (unsigned int __seed, struct random_data *__buf)
- __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2)));
- extern int initstate_r (unsigned int __seed, char *__restrict __statebuf,
- size_t __statelen,
- struct random_data *__restrict __buf)
- __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2, 4)));
- extern int setstate_r (char *__restrict __statebuf,
- struct random_data *__restrict __buf)
- __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
- extern int rand (void) __attribute__ ((__nothrow__));
- extern void srand (unsigned int __seed) __attribute__ ((__nothrow__));
- extern int rand_r (unsigned int *__seed) __attribute__ ((__nothrow__));
- # 382 "../../include/stdlib.h"
- extern double drand48 (void) __attribute__ ((__nothrow__));
- extern double erand48 (unsigned short int __xsubi[3]) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
- extern long int lrand48 (void) __attribute__ ((__nothrow__));
- extern long int nrand48 (unsigned short int __xsubi[3])
- __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
- extern long int mrand48 (void) __attribute__ ((__nothrow__));
- extern long int jrand48 (unsigned short int __xsubi[3])
- __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
- extern void srand48 (long int __seedval) __attribute__ ((__nothrow__));
- extern unsigned short int *seed48 (unsigned short int __seed16v[3])
- __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
- extern void lcong48 (unsigned short int __param[7]) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
- struct drand48_data
- {
- unsigned short int __x[3];
- unsigned short int __old_x[3];
- unsigned short int __c;
- unsigned short int __init;
- unsigned long long int __a;
- };
- extern int drand48_r (struct drand48_data *__restrict __buffer,
- double *__restrict __result) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
- extern int erand48_r (unsigned short int __xsubi[3],
- struct drand48_data *__restrict __buffer,
- double *__restrict __result) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
- extern int lrand48_r (struct drand48_data *__restrict __buffer,
- long int *__restrict __result)
- __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
- extern int nrand48_r (unsigned short int __xsubi[3],
- struct drand48_data *__restrict __buffer,
- long int *__restrict __result)
- __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
- extern int mrand48_r (struct drand48_data *__restrict __buffer,
- long int *__restrict __result)
- __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
- extern int jrand48_r (unsigned short int __xsubi[3],
- struct drand48_data *__restrict __buffer,
- long int *__restrict __result)
- __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
- extern int srand48_r (long int __seedval, struct drand48_data *__buffer)
- __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2)));
- extern int seed48_r (unsigned short int __seed16v[3],
- struct drand48_data *__buffer) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
- extern int lcong48_r (unsigned short int __param[7],
- struct drand48_data *__buffer)
- __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
- #define __malloc_and_calloc_defined
- extern void *malloc (size_t __size) __attribute__ ((__nothrow__)) __attribute__ ((__malloc__)) ;
- extern void *calloc (size_t __nmemb, size_t __size)
- __attribute__ ((__nothrow__)) __attribute__ ((__malloc__)) ;
- extern void *realloc (void *__ptr, size_t __size)
- __attribute__ ((__nothrow__)) __attribute__ ((__malloc__)) __attribute__ ((__warn_unused_result__));
- extern void free (void *__ptr) __attribute__ ((__nothrow__));
- extern void cfree (void *__ptr) __attribute__ ((__nothrow__));
- # 1 "../../include/alloca.h" 1
- # 20 "../../include/alloca.h"
- #define _ALLOCA_H 1
- #define __need_size_t
- # 1 "/opt/STM/STLinux-2.3ear/devkit/sh4/lib/gcc/sh4-linux-uclibc/4.1.1/include/stddef.h" 1 3 4
- # 236 "/opt/STM/STLinux-2.3ear/devkit/sh4/lib/gcc/sh4-linux-uclibc/4.1.1/include/stddef.h" 3 4
- #undef __need_size_t
- # 409 "/opt/STM/STLinux-2.3ear/devkit/sh4/lib/gcc/sh4-linux-uclibc/4.1.1/include/stddef.h" 3 4
- #undef __need_NULL
- # 26 "../../include/alloca.h" 2
- #undef alloca
- extern void *alloca (size_t __size) __attribute__ ((__nothrow__));
- #define alloca(size) __builtin_alloca (size)
- #define __MAX_ALLOCA_CUTOFF 65536
- # 485 "../../include/stdlib.h" 2
- extern void *valloc (size_t __size) __attribute__ ((__nothrow__)) __attribute__ ((__malloc__)) ;
- extern int posix_memalign (void **__memptr, size_t __alignment, size_t __size)
- __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ;
- extern void abort (void) __attribute__ ((__nothrow__)) __attribute__ ((__noreturn__));
- extern int atexit (void (*__func) (void)) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
- extern int on_exit (void (*__func) (int __status, void *__arg), void *__arg)
- __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
- extern void exit (int __status) __attribute__ ((__nothrow__)) __attribute__ ((__noreturn__));
- extern void _Exit (int __status) __attribute__ ((__nothrow__)) __attribute__ ((__noreturn__));
- extern char *getenv (__const char *__name) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ;
- extern char *__secure_getenv (__const char *__name)
- __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ;
- extern int putenv (char *__string) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
- extern int setenv (__const char *__name, __const char *__value, int __replace)
- __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2)));
- extern int unsetenv (__const char *__name) __attribute__ ((__nothrow__));
- #define __UCLIBC_MAX_ATEXIT 20
- extern int clearenv (void) __attribute__ ((__nothrow__));
- # 579 "../../include/stdlib.h"
- extern char *mktemp (char *__template) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ;
- # 590 "../../include/stdlib.h"
- extern int mkstemp (char *__template) __attribute__ ((__nonnull__ (1))) ;
- # 600 "../../include/stdlib.h"
- extern int mkstemp64 (char *__template) __attribute__ ((__nonnull__ (1))) ;
- # 610 "../../include/stdlib.h"
- extern char *mkdtemp (char *__template) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ;
- extern int system (__const char *__command) ;
- # 638 "../../include/stdlib.h"
- extern char *realpath (__const char *__restrict __name,
- char *__restrict __resolved) __attribute__ ((__nothrow__)) ;
- #define __COMPAR_FN_T
- typedef int (*__compar_fn_t) (__const void *, __const void *);
- typedef __compar_fn_t comparison_fn_t;
- extern void *bsearch (__const void *__key, __const void *__base,
- size_t __nmemb, size_t __size, __compar_fn_t __compar)
- __attribute__ ((__nonnull__ (1, 2, 5))) ;
- extern void qsort (void *__base, size_t __nmemb, size_t __size,
- __compar_fn_t __compar) __attribute__ ((__nonnull__ (1, 4)));
- extern int abs (int __x) __attribute__ ((__nothrow__)) __attribute__ ((__const__)) ;
- extern long int labs (long int __x) __attribute__ ((__nothrow__)) __attribute__ ((__const__)) ;
- __extension__ extern long long int llabs (long long int __x)
- __attribute__ ((__nothrow__)) __attribute__ ((__const__)) ;
- extern div_t div (int __numer, int __denom)
- __attribute__ ((__nothrow__)) __attribute__ ((__const__)) ;
- extern ldiv_t ldiv (long int __numer, long int __denom)
- __attribute__ ((__nothrow__)) __attribute__ ((__const__)) ;
- __extension__ extern lldiv_t lldiv (long long int __numer,
- long long int __denom)
- __attribute__ ((__nothrow__)) __attribute__ ((__const__)) ;
- # 719 "../../include/stdlib.h"
- extern char *gcvt (double __value, int __ndigit, char *__buf)
- __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (3))) ;
- # 756 "../../include/stdlib.h"
- extern int mblen (__const char *__s, size_t __n) __attribute__ ((__nothrow__)) ;
- extern int mbtowc (wchar_t *__restrict __pwc,
- __const char *__restrict __s, size_t __n) __attribute__ ((__nothrow__)) ;
- extern int wctomb (char *__s, wchar_t __wchar) __attribute__ ((__nothrow__)) ;
- extern size_t mbstowcs (wchar_t *__restrict __pwcs,
- __const char *__restrict __s, size_t __n) __attribute__ ((__nothrow__));
- extern size_t wcstombs (char *__restrict __s,
- __const wchar_t *__restrict __pwcs, size_t __n)
- __attribute__ ((__nothrow__));
- # 785 "../../include/stdlib.h"
- extern int rpmatch (__const char *__response) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ;
- # 796 "../../include/stdlib.h"
- extern int getsubopt (char **__restrict __optionp,
- char *__const *__restrict __tokens,
- char **__restrict __valuep)
- __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2, 3))) ;
- extern void setkey (__const char *__key) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
- extern int posix_openpt (int __oflag) ;
- extern int grantpt (int __fd) __attribute__ ((__nothrow__));
- extern int unlockpt (int __fd) __attribute__ ((__nothrow__));
- extern char *ptsname (int __fd) __attribute__ ((__nothrow__)) ;
- extern int ptsname_r (int __fd, char *__buf, size_t __buflen)
- __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2)));
- extern int getpt (void);
- # 860 "../../include/stdlib.h"
- #undef __need_malloc_and_calloc
- # 12 "tsp_common.c" 2
- # 1 "../../include/string.h" 1
- # 24 "../../include/string.h"
- #define _STRING_H 1
- #define __need_size_t
- #define __need_NULL
- # 1 "/opt/STM/STLinux-2.3ear/devkit/sh4/lib/gcc/sh4-linux-uclibc/4.1.1/include/stddef.h" 1 3 4
- # 236 "/opt/STM/STLinux-2.3ear/devkit/sh4/lib/gcc/sh4-linux-uclibc/4.1.1/include/stddef.h" 3 4
- #undef __need_size_t
- # 398 "/opt/STM/STLinux-2.3ear/devkit/sh4/lib/gcc/sh4-linux-uclibc/4.1.1/include/stddef.h" 3 4
- #undef NULL
- #define NULL ((void *)0)
- #undef __need_NULL
- # 34 "../../include/string.h" 2
- extern void *memcpy (void *__restrict __dest,
- __const void *__restrict __src, size_t __n)
- __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
- extern void *memmove (void *__dest, __const void *__src, size_t __n)
- __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
- extern void *memccpy (void *__restrict __dest, __const void *__restrict __src,
- int __c, size_t __n)
- __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
- extern void *memset (void *__s, int __c, size_t __n) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
- extern int memcmp (__const void *__s1, __const void *__s2, size_t __n)
- __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2)));
- extern void *memchr (__const void *__s, int __c, size_t __n)
- __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1)));
- extern void *rawmemchr (__const void *__s, int __c)
- __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1)));
- extern void *memrchr (__const void *__s, int __c, size_t __n)
- __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1)));
- extern char *strcpy (char *__restrict __dest, __const char *__restrict __src)
- __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
- extern char *strncpy (char *__restrict __dest,
- __const char *__restrict __src, size_t __n)
- __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
- extern char *strcat (char *__restrict __dest, __const char *__restrict __src)
- __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
- extern char *strncat (char *__restrict __dest, __const char *__restrict __src,
- size_t __n) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
- extern int strcmp (__const char *__s1, __const char *__s2)
- __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2)));
- extern int strncmp (__const char *__s1, __const char *__s2, size_t __n)
- __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2)));
- extern int strcoll (__const char *__s1, __const char *__s2)
- __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2)));
- extern size_t strxfrm (char *__restrict __dest,
- __const char *__restrict __src, size_t __n)
- __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2)));
- # 130 "../../include/string.h"
- extern char *strdup (__const char *__s)
- __attribute__ ((__nothrow__)) __attribute__ ((__malloc__)) __attribute__ ((__nonnull__ (1)));
- extern char *strndup (__const char *__string, size_t __n)
- __attribute__ ((__nothrow__)) __attribute__ ((__malloc__)) __attribute__ ((__nonnull__ (1)));
- #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); }))
- # 154 "../../include/string.h"
- #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); }))
- # 165 "../../include/string.h"
- extern char *strchr (__const char *__s, int __c)
- __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1)));
- extern char *strrchr (__const char *__s, int __c)
- __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1)));
- extern char *strchrnul (__const char *__s, int __c)
- __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1)));
- extern size_t strcspn (__const char *__s, __const char *__reject)
- __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2)));
- extern size_t strspn (__const char *__s, __const char *__accept)
- __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2)));
- extern char *strpbrk (__const char *__s, __const char *__accept)
- __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2)));
- extern char *strstr (__const char *__haystack, __const char *__needle)
- __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2)));
- extern char *strtok (char *__restrict __s, __const char *__restrict __delim)
- __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2)));
- # 212 "../../include/string.h"
- extern char *strtok_r (char *__restrict __s, __const char *__restrict __delim,
- char **__restrict __save_ptr)
- __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2, 3)));
- extern char *strcasestr (__const char *__haystack, __const char *__needle)
- __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2)));
- extern void *memmem (__const void *__haystack, size_t __haystacklen,
- __const void *__needle, size_t __needlelen)
- __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 3)));
- # 238 "../../include/string.h"
- extern void *mempcpy (void *__restrict __dest,
- __const void *__restrict __src, size_t __n)
- __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
- extern size_t strlen (__const char *__s)
- __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1)));
- extern size_t strnlen (__const char *__string, size_t __maxlen)
- __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1)));
- extern char *strerror (int __errnum) __attribute__ ((__nothrow__));
- # 285 "../../include/string.h"
- extern char *__glibc_strerror_r (int __errnum, char *__buf, size_t __buflen)
- __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2)));
- extern char * strerror_r (int __errnum, char *__buf, size_t __buflen) __asm__ ("" "__glibc_strerror_r") __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2)));
- # 306 "../../include/string.h"
- extern void bcopy (__const void *__src, void *__dest, size_t __n)
- __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
- extern void bzero (void *__s, size_t __n) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
- extern int bcmp (__const void *__s1, __const void *__s2, size_t __n)
- __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2)));
- extern char *index (__const char *__s, int __c)
- __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1)));
- extern char *rindex (__const char *__s, int __c)
- __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1)));
- # 339 "../../include/string.h"
- extern int ffs (int __i) __attribute__ ((__nothrow__)) __attribute__ ((__const__));
- # 352 "../../include/string.h"
- extern int strcasecmp (__const char *__s1, __const char *__s2)
- __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2)));
- extern int strncasecmp (__const char *__s1, __const char *__s2, size_t __n)
- __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2)));
- # 375 "../../include/string.h"
- extern char *strsep (char **__restrict __stringp,
- __const char *__restrict __delim)
- __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
- # 388 "../../include/string.h"
- extern char *strsignal (int __sig) __attribute__ ((__nothrow__));
- extern char *stpcpy (char *__restrict __dest, __const char *__restrict __src)
- __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
- # 405 "../../include/string.h"
- extern char *stpncpy (char *__restrict __dest,
- __const char *__restrict __src, size_t __n)
- __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
- # 422 "../../include/string.h"
- extern char *basename (__const char *__filename) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
- extern size_t strlcat(char *__restrict dst, const char *__restrict src,
- size_t n) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
- extern size_t strlcpy(char *__restrict dst, const char *__restrict src,
- size_t n) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
- # 13 "tsp_common.c" 2
- # 1 "../../include/locale.h" 1
- # 24 "../../include/locale.h"
- #define _LOCALE_H 1
- #define __need_NULL
- # 1 "/opt/STM/STLinux-2.3ear/devkit/sh4/lib/gcc/sh4-linux-uclibc/4.1.1/include/stddef.h" 1 3 4
- # 398 "/opt/STM/STLinux-2.3ear/devkit/sh4/lib/gcc/sh4-linux-uclibc/4.1.1/include/stddef.h" 3 4
- #undef NULL
- #define NULL ((void *)0)
- #undef __need_NULL
- # 30 "../../include/locale.h" 2
- # 1 "../../include/bits/uClibc_locale.h" 1
- # 31 "../../include/bits/uClibc_locale.h"
- #define _UCLIBC_LOCALE_H
- #undef __LOCALE_C_ONLY
- # 52 "../../include/bits/uClibc_locale.h"
- #define __NL_ITEM_CATEGORY_SHIFT (8)
- #define __NL_ITEM_INDEX_MASK (0xff)
- #define __LC_CTYPE 0
- #define __LC_NUMERIC 1
- #define __LC_MONETARY 2
- #define __LC_TIME 3
- #define __LC_COLLATE 4
- #define __LC_MESSAGES 5
- #define __LC_ALL 6
- # 1 "/opt/STM/STLinux-2.3ear/devkit/sh4/lib/gcc/sh4-linux-uclibc/4.1.1/include/stddef.h" 1 3 4
- # 43 "/opt/STM/STLinux-2.3ear/devkit/sh4/lib/gcc/sh4-linux-uclibc/4.1.1/include/stddef.h" 3 4
- #define _STDDEF_H
- #define _STDDEF_H_
- #define _ANSI_STDDEF_H
- #define __STDDEF_H__
- # 141 "/opt/STM/STLinux-2.3ear/devkit/sh4/lib/gcc/sh4-linux-uclibc/4.1.1/include/stddef.h" 3 4
- #define _PTRDIFF_T
- #define _T_PTRDIFF_
- #define _T_PTRDIFF
- #define __PTRDIFF_T
- #define _PTRDIFF_T_
- #define _BSD_PTRDIFF_T_
- #define ___int_ptrdiff_t_h
- #define _GCC_PTRDIFF_T
- typedef int ptrdiff_t;
- # 163 "/opt/STM/STLinux-2.3ear/devkit/sh4/lib/gcc/sh4-linux-uclibc/4.1.1/include/stddef.h" 3 4
- #undef __need_ptrdiff_t
- # 236 "/opt/STM/STLinux-2.3ear/devkit/sh4/lib/gcc/sh4-linux-uclibc/4.1.1/include/stddef.h" 3 4
- #undef __need_size_t
- # 345 "/opt/STM/STLinux-2.3ear/devkit/sh4/lib/gcc/sh4-linux-uclibc/4.1.1/include/stddef.h" 3 4
- #undef __need_wchar_t
- # 398 "/opt/STM/STLinux-2.3ear/devkit/sh4/lib/gcc/sh4-linux-uclibc/4.1.1/include/stddef.h" 3 4
- #undef NULL
- #define NULL ((void *)0)
- #undef __need_NULL
- #define offsetof(TYPE,MEMBER) __builtin_offsetof (TYPE, MEMBER)
- # 70 "../../include/bits/uClibc_locale.h" 2
- # 1 "../../include/stdint.h" 1
- # 24 "../../include/stdint.h"
- #define _STDINT_H 1
- # 1 "../../include/bits/wordsize.h" 1
- # 19 "../../include/bits/wordsize.h"
- #define __WORDSIZE 32
- # 31 "../../include/stdint.h" 2
- # 51 "../../include/stdint.h"
- typedef unsigned char uint8_t;
- typedef unsigned short int uint16_t;
- typedef unsigned int uint32_t;
- #define __uint32_t_defined
- __extension__
- typedef unsigned long long int uint64_t;
- typedef signed char int_least8_t;
- typedef short int int_least16_t;
- typedef int int_least32_t;
- __extension__
- typedef long long int int_least64_t;
- typedef unsigned char uint_least8_t;
- typedef unsigned short int uint_least16_t;
- typedef unsigned int uint_least32_t;
- __extension__
- typedef unsigned long long int uint_least64_t;
- typedef signed char int_fast8_t;
- typedef int int_fast16_t;
- typedef int int_fast32_t;
- __extension__
- typedef long long int int_fast64_t;
- typedef unsigned char uint_fast8_t;
- typedef unsigned int uint_fast16_t;
- typedef unsigned int uint_fast32_t;
- __extension__
- typedef unsigned long long int uint_fast64_t;
- # 128 "../../include/stdint.h"
- typedef int intptr_t;
- #define __intptr_t_defined
- typedef unsigned int uintptr_t;
- # 140 "../../include/stdint.h"
- __extension__
- typedef long long int intmax_t;
- __extension__
- typedef unsigned long long int uintmax_t;
- # 155 "../../include/stdint.h"
- #define __INT64_C(c) c ## LL
- #define __UINT64_C(c) c ## ULL
- #define INT8_MIN (-128)
- #define INT16_MIN (-32767-1)
- #define INT32_MIN (-2147483647-1)
- #define INT64_MIN (-__INT64_C(9223372036854775807)-1)
- #define INT8_MAX (127)
- #define INT16_MAX (32767)
- #define INT32_MAX (2147483647)
- #define INT64_MAX (__INT64_C(9223372036854775807))
- #define UINT8_MAX (255)
- #define UINT16_MAX (65535)
- #define UINT32_MAX (4294967295U)
- #define UINT64_MAX (__UINT64_C(18446744073709551615))
- #define INT_LEAST8_MIN (-128)
- #define INT_LEAST16_MIN (-32767-1)
- #define INT_LEAST32_MIN (-2147483647-1)
- #define INT_LEAST64_MIN (-__INT64_C(9223372036854775807)-1)
- #define INT_LEAST8_MAX (127)
- #define INT_LEAST16_MAX (32767)
- #define INT_LEAST32_MAX (2147483647)
- #define INT_LEAST64_MAX (__INT64_C(9223372036854775807))
- #define UINT_LEAST8_MAX (255)
- #define UINT_LEAST16_MAX (65535)
- #define UINT_LEAST32_MAX (4294967295U)
- #define UINT_LEAST64_MAX (__UINT64_C(18446744073709551615))
- #define INT_FAST8_MIN (-128)
- #define INT_FAST16_MIN (-2147483647-1)
- #define INT_FAST32_MIN (-2147483647-1)
- #define INT_FAST64_MIN (-__INT64_C(9223372036854775807)-1)
- #define INT_FAST8_MAX (127)
- #define INT_FAST16_MAX (2147483647)
- #define INT_FAST32_MAX (2147483647)
- #define INT_FAST64_MAX (__INT64_C(9223372036854775807))
- #define UINT_FAST8_MAX (255)
- #define UINT_FAST16_MAX (4294967295U)
- #define UINT_FAST32_MAX (4294967295U)
- #define UINT_FAST64_MAX (__UINT64_C(18446744073709551615))
- # 236 "../../include/stdint.h"
- #define INTPTR_MIN (-2147483647-1)
- #define INTPTR_MAX (2147483647)
- #define UINTPTR_MAX (4294967295U)
- #define INTMAX_MIN (-__INT64_C(9223372036854775807)-1)
- #define INTMAX_MAX (__INT64_C(9223372036854775807))
- #define UINTMAX_MAX (__UINT64_C(18446744073709551615))
- # 266 "../../include/stdint.h"
- #define PTRDIFF_MIN (-2147483647-1)
- #define PTRDIFF_MAX (2147483647)
- #define SIG_ATOMIC_MIN (-2147483647-1)
- #define SIG_ATOMIC_MAX (2147483647)
- #define SIZE_MAX (4294967295U)
- #define WCHAR_MIN __WCHAR_MIN
- #define WCHAR_MAX __WCHAR_MAX
- #define WINT_MIN (0u)
- #define WINT_MAX (4294967295u)
- # 302 "../../include/stdint.h"
- #define INT8_C(c) c
- #define INT16_C(c) c
- #define INT32_C(c) c
- #define INT64_C(c) c ## LL
- #define UINT8_C(c) c ## U
- #define UINT16_C(c) c ## U
- #define UINT32_C(c) c ## U
- #define UINT64_C(c) c ## ULL
- #define INTMAX_C(c) c ## LL
- #define UINTMAX_C(c) c ## ULL
- # 71 "../../include/bits/uClibc_locale.h" 2
- # 1 "../../include/bits/uClibc_touplow.h" 1
- # 31 "../../include/bits/uClibc_touplow.h"
- #define _UCLIBC_TOUPLOW_H
- typedef __uint16_t __ctype_mask_t;
- typedef __int16_t __ctype_touplow_t;
- #define __UCLIBC_CTYPE_B_TBL_OFFSET 128
- #define __UCLIBC_CTYPE_TO_TBL_OFFSET 128
- # 72 "../../include/bits/uClibc_locale.h" 2
- # 1 "../../include/bits/uClibc_locale_data.h" 1
- #define __lc_time_data_LEN 25900
- #define __lc_time_rows_LEN 7650
- #define __lc_time_item_offsets_LEN 50
- #define __lc_time_item_idx_LEN 3190
- #define __lc_numeric_data_LEN 22
- #define __lc_numeric_rows_LEN 42
- #define __lc_numeric_item_offsets_LEN 3
- #define __lc_numeric_item_idx_LEN 13
- #define __lc_monetary_data_LEN 1578
- #define __lc_monetary_rows_LEN 3652
- #define __lc_monetary_item_offsets_LEN 22
- #define __lc_monetary_item_idx_LEN 391
- #define __lc_messages_data_LEN 1583
- #define __lc_messages_rows_LEN 312
- #define __lc_messages_item_offsets_LEN 4
- #define __lc_messages_item_idx_LEN 170
- #define __lc_ctype_data_LEN 51
- #define __lc_ctype_rows_LEN 20
- #define __lc_ctype_item_offsets_LEN 10
- #define __lc_ctype_item_idx_LEN 20
- #define __CTYPE_HAS_UTF_8_LOCALES 1
- #define __LOCALE_DATA_CATEGORIES 6
- #define __LOCALE_DATA_WIDTH_LOCALES 9
- #define __LOCALE_DATA_NUM_LOCALES 315
- #define __LOCALE_DATA_NUM_LOCALE_NAMES 167
- #define __LOCALE_DATA_AT_MODIFIERS_LENGTH 18
- #define __lc_names_LEN 69
- #define __lc_collate_data_LEN 91141
- #define __CTYPE_HAS_8_BIT_LOCALES 1
- #define __LOCALE_DATA_Cctype_IDX_SHIFT 3
- #define __LOCALE_DATA_Cctype_IDX_LEN 16
- #define __LOCALE_DATA_Cctype_ROW_LEN 4
- #define __LOCALE_DATA_Cctype_PACKED 1
- #define __LOCALE_DATA_Cuplow_IDX_SHIFT 3
- #define __LOCALE_DATA_Cuplow_IDX_LEN 16
- #define __LOCALE_DATA_Cuplow_ROW_LEN 8
- #define __LOCALE_DATA_Cc2wc_IDX_LEN 16
- #define __LOCALE_DATA_Cc2wc_IDX_SHIFT 3
- #define __LOCALE_DATA_Cc2wc_ROW_LEN 8
- typedef struct {
- unsigned char idx8ctype[16];
- unsigned char idx8uplow[16];
- unsigned char idx8c2wc[16];
- unsigned char idx8wc2c[38];
- } __codeset_8_bit_t;
- #define __LOCALE_DATA_Cwc2c_DOMAIN_MAX 0x25ff
- #define __LOCALE_DATA_Cwc2c_TI_SHIFT 4
- #define __LOCALE_DATA_Cwc2c_TT_SHIFT 4
- #define __LOCALE_DATA_Cwc2c_II_LEN 38
- #define __LOCALE_DATA_Cwc2c_TI_LEN 1072
- #define __LOCALE_DATA_Cwc2c_TT_LEN 3456
- #define __LOCALE_DATA_Cwc2c_TBL_LEN 4528
- #define __LOCALE_DATA_Cuplow_TBL_LEN 504
- #define __LOCALE_DATA_Cctype_TBL_LEN 420
- #define __LOCALE_DATA_Cc2wc_TBL_LEN 1760
- #define __LOCALE_DATA_NUM_CODESETS 23
- #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"
- # 102 "../../include/bits/uClibc_locale_data.h"
- #define __CTYPE_HAS_CODESET_ARMSCII_8
- #define __CTYPE_HAS_CODESET_ANSI_X3 .4_1968
- #define __CTYPE_HAS_CODESET_CP1251
- #define __CTYPE_HAS_CODESET_CP1255
- #define __CTYPE_HAS_CODESET_GEORGIAN_PS
- #define __CTYPE_HAS_CODESET_ISO_8859_1
- #define __CTYPE_HAS_CODESET_ISO_8859_10
- #define __CTYPE_HAS_CODESET_ISO_8859_13
- #define __CTYPE_HAS_CODESET_ISO_8859_14
- #define __CTYPE_HAS_CODESET_ISO_8859_15
- #define __CTYPE_HAS_CODESET_ISO_8859_16
- #define __CTYPE_HAS_CODESET_ISO_8859_2
- #define __CTYPE_HAS_CODESET_ISO_8859_3
- #define __CTYPE_HAS_CODESET_ISO_8859_4
- #define __CTYPE_HAS_CODESET_ISO_8859_5
- #define __CTYPE_HAS_CODESET_ISO_8859_6
- #define __CTYPE_HAS_CODESET_ISO_8859_7
- #define __CTYPE_HAS_CODESET_ISO_8859_8
- #define __CTYPE_HAS_CODESET_ISO_8859_9
- #define __CTYPE_HAS_CODESET_KOI8_R
- #define __CTYPE_HAS_CODESET_KOI8_T
- #define __CTYPE_HAS_CODESET_KOI8_U
- #define __CTYPE_HAS_CODESET_TIS_620
- #define __CTYPE_HAS_CODESET_UTF_8
- #define __LOCALE_DATA_WC_TABLE_DOMAIN_MAX 0x2ffff
- #define __LOCALE_DATA_WCctype_II_LEN 768
- #define __LOCALE_DATA_WCctype_TI_LEN 1888
- #define __LOCALE_DATA_WCctype_UT_LEN 948
- #define __LOCALE_DATA_WCctype_II_SHIFT 5
- #define __LOCALE_DATA_WCctype_TI_SHIFT 3
- #define __LOCALE_DATA_WCuplow_II_LEN 384
- #define __LOCALE_DATA_WCuplow_TI_LEN 576
- #define __LOCALE_DATA_WCuplow_UT_LEN 720
- #define __LOCALE_DATA_WCuplow_II_SHIFT 6
- #define __LOCALE_DATA_WCuplow_TI_SHIFT 3
- #define __LOCALE_DATA_WCuplow_diffs 98
- #define __WCHAR_ENABLED
- #define __LOCALE_DATA_WCctype_TBL_LEN (__LOCALE_DATA_WCctype_II_LEN + __LOCALE_DATA_WCctype_TI_LEN + __LOCALE_DATA_WCctype_UT_LEN)
- #define __LOCALE_DATA_WCuplow_TBL_LEN (__LOCALE_DATA_WCuplow_II_LEN + __LOCALE_DATA_WCuplow_TI_LEN + __LOCALE_DATA_WCuplow_UT_LEN)
- #define __LOCALE_DATA_WCuplow_diff_TBL_LEN (2 * __LOCALE_DATA_WCuplow_diffs)
- #undef __PASTE2
- #define __PASTE2(A,B) A ## B
- #undef __PASTE3
- #define __PASTE3(A,B,C) A ## B ## C
- #define __LOCALE_DATA_COMMON_MMAP(X) unsigned char __PASTE3(lc_,X,_data)[__PASTE3(__lc_,X,_data_LEN)];
- #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)];
- typedef struct {
- const unsigned char tbl8ctype[420];
- const unsigned char tbl8uplow[504];
- const uint16_t tbl8c2wc[1760];
- const unsigned char tbl8wc2c[4528];
- const unsigned char tblwctype[(768 + 1888 + 948)];
- const unsigned char tblwuplow[(384 + 576 + 720)];
- const int16_t tblwuplow_diff[(2 * 98)];
- unsigned char lc_ctype_data[51];;
- unsigned char lc_numeric_data[22];;
- unsigned char lc_monetary_data[1578];;
- unsigned char lc_time_data[25900];;
- unsigned char lc_messages_data[1583];;
- const __codeset_8_bit_t codeset_8_bit[23];
- unsigned char lc_ctype_rows[20]; uint16_t lc_ctype_item_offsets[10]; uint16_t lc_ctype_item_idx[20];;
- unsigned char lc_numeric_rows[42]; uint16_t lc_numeric_item_offsets[3]; uint16_t lc_numeric_item_idx[13];;
- unsigned char lc_monetary_rows[3652]; uint16_t lc_monetary_item_offsets[22]; uint16_t lc_monetary_item_idx[391];;
- unsigned char lc_time_rows[7650]; uint16_t lc_time_item_offsets[50]; uint16_t lc_time_item_idx[3190];;
- unsigned char lc_messages_rows[312]; uint16_t lc_messages_item_offsets[4]; uint16_t lc_messages_item_idx[170];;
- const uint16_t collate_data[91141];
- unsigned char lc_common_item_offsets_LEN[6];
- size_t lc_common_tbl_offsets[6 * 4];
- unsigned char locales[315 * 9];
- unsigned char locale_names5[5*167];
- unsigned char locale_at_modifiers[18];
- unsigned char lc_names[69];
- 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")];
- } __locale_mmap_t;
- extern const __locale_mmap_t *__locale_mmap;
- # 75 "../../include/bits/uClibc_locale.h" 2
- enum {
- __ctype_encoding_7_bit,
- __ctype_encoding_utf8,
- __ctype_encoding_8_bit
- };
- #define LOCALE_STRING_SIZE (2 * __LC_ALL + 2)
- # 102 "../../include/bits/uClibc_locale.h"
- typedef struct {
- uint16_t num_weights;
- uint16_t num_starters;
- uint16_t ii_shift;
- uint16_t ti_shift;
- uint16_t ii_len;
- uint16_t ti_len;
- uint16_t max_weight;
- uint16_t num_col_base;
- uint16_t max_col_index;
- uint16_t undefined_idx;
- uint16_t range_low;
- uint16_t range_count;
- uint16_t range_base_weight;
- uint16_t range_rule_offset;
- uint16_t ii_mask;
- uint16_t ti_mask;
- const uint16_t *index2weight_tbl;
- const uint16_t *index2ruleidx_tbl;
- const uint16_t *multistart_tbl;
- const uint16_t *wcs2colidt_tbl;
- const uint16_t *overrides_tbl;
- const uint16_t *weightstr;
- const uint16_t *ruletable;
- uint16_t *index2weight;
- uint16_t *index2ruleidx;
- uint16_t MAX_WEIGHTS;
- } __collate_t;
- typedef struct __uclibc_locale_struct {
- __ctype_mask_t __ctype_b_data[256 + 128];
- __ctype_touplow_t __ctype_tolower_data[256 + 128];
- __ctype_touplow_t __ctype_toupper_data[256 + 128];
- unsigned char cur_locale[(2 * 6 + 2)];
- uint16_t category_offsets[6];
- unsigned char category_item_count[6];
- unsigned char encoding;
- unsigned char mb_cur_max;
- const unsigned char outdigit_length[10];
- const unsigned char *idx8ctype;
- const unsigned char *tbl8ctype;
- const unsigned char *idx8uplow;
- const unsigned char *tbl8uplow;
- const unsigned char *idx8c2wc;
- const uint16_t *tbl8c2wc;
- const unsigned char *idx8wc2c;
- const unsigned char *tbl8wc2c;
- const uint16_t *code2flag;
- const unsigned char *tblwctype;
- const unsigned char *tblwuplow;
- const int16_t *tblwuplow_diff;
- wchar_t decimal_point_wc;
- wchar_t thousands_sep_wc;
- int decimal_point_len;
- int thousands_sep_len;
- const char *outdigit0_mb;
- const char *outdigit1_mb;
- const char *outdigit2_mb;
- const char *outdigit3_mb;
- const char *outdigit4_mb;
- const char *outdigit5_mb;
- const char *outdigit6_mb;
- const char *outdigit7_mb;
- const char *outdigit8_mb;
- const char *outdigit9_mb;
- const char *codeset;
- const char *decimal_point;
- const char *thousands_sep;
- const char *grouping;
- const char *int_curr_symbol;
- const char *currency_symbol;
- const char *mon_decimal_point;
- const char *mon_thousands_sep;
- const char *mon_grouping;
- const char *positive_sign;
- const char *negative_sign;
- const char *int_frac_digits;
- const char *frac_digits;
- const char *p_cs_precedes;
- const char *p_sep_by_space;
- const char *n_cs_precedes;
- const char *n_sep_by_space;
- const char *p_sign_posn;
- const char *n_sign_posn;
- const char *int_p_cs_precedes;
- const char *int_p_sep_by_space;
- const char *int_n_cs_precedes;
- const char *int_n_sep_by_space;
- const char *int_p_sign_posn;
- const char *int_n_sign_posn;
- const char *crncystr;
- const char *abday_1;
- const char *abday_2;
- const char *abday_3;
- const char *abday_4;
- const char *abday_5;
- const char *abday_6;
- const char *abday_7;
- const char *day_1;
- const char *day_2;
- const char *day_3;
- const char *day_4;
- const char *day_5;
- const char *day_6;
- const char *day_7;
- const char *abmon_1;
- const char *abmon_2;
- const char *abmon_3;
- const char *abmon_4;
- const char *abmon_5;
- const char *abmon_6;
- const char *abmon_7;
- const char *abmon_8;
- const char *abmon_9;
- const char *abmon_10;
- const char *abmon_11;
- const char *abmon_12;
- const char *mon_1;
- const char *mon_2;
- const char *mon_3;
- const char *mon_4;
- const char *mon_5;
- const char *mon_6;
- const char *mon_7;
- const char *mon_8;
- const char *mon_9;
- const char *mon_10;
- const char *mon_11;
- const char *mon_12;
- const char *am_str;
- const char *pm_str;
- const char *d_t_fmt;
- const char *d_fmt;
- const char *t_fmt;
- const char *t_fmt_ampm;
- const char *era;
- const char *era_year;
- const char *era_d_fmt;
- const char *alt_digits;
- const char *era_d_t_fmt;
- const char *era_t_fmt;
- const char *yesexpr;
- const char *noexpr;
- const char *yesstr;
- const char *nostr;
- __collate_t collate;
- } __uclibc_locale_t;
- extern __uclibc_locale_t __global_locale_data;
- extern struct __uclibc_locale_struct * __global_locale;
- typedef struct __uclibc_locale_struct *__locale_t;
- extern int __locale_mbrtowc_l(wchar_t *__restrict dst,
- const char *__restrict src,
- __locale_t loc ) __attribute__ ((visibility ("hidden")));
- # 355 "../../include/bits/uClibc_locale.h"
- #define __UCLIBC_CURLOCALE (__global_locale)
- #define __UCLIBC_CURLOCALE_DATA (*__global_locale)
- # 369 "../../include/bits/uClibc_locale.h"
- #define __XL_NPP(N) N
- #define __LOCALE_PARAM
- #define __LOCALE_ARG
- #define __LOCALE_PTR __UCLIBC_CURLOCALE
- # 31 "../../include/locale.h" 2
- #define LC_CTYPE __LC_CTYPE
- #define LC_NUMERIC __LC_NUMERIC
- #define LC_TIME __LC_TIME
- #define LC_COLLATE __LC_COLLATE
- #define LC_MONETARY __LC_MONETARY
- #define LC_MESSAGES __LC_MESSAGES
- # 50 "../../include/locale.h"
- #define LC_ALL __LC_ALL
- struct lconv
- {
- char *decimal_point;
- char *thousands_sep;
- char *grouping;
- char *int_curr_symbol;
- char *currency_symbol;
- char *mon_decimal_point;
- char *mon_thousands_sep;
- char *mon_grouping;
- char *positive_sign;
- char *negative_sign;
- char int_frac_digits;
- char frac_digits;
- char p_cs_precedes;
- char p_sep_by_space;
- char n_cs_precedes;
- char n_sep_by_space;
- char p_sign_posn;
- char n_sign_posn;
- char int_p_cs_precedes;
- char int_p_sep_by_space;
- char int_n_cs_precedes;
- char int_n_sep_by_space;
- char int_p_sign_posn;
- char int_n_sign_posn;
- # 121 "../../include/locale.h"
- };
- extern char *setlocale (int __category, __const char *__locale) __attribute__ ((__nothrow__));
- extern struct lconv *localeconv (void) __attribute__ ((__nothrow__));
- # 152 "../../include/locale.h"
- typedef __locale_t locale_t;
- extern __locale_t newlocale (int __category_mask, __const char *__locale,
- __locale_t __base) __attribute__ ((__nothrow__));
- #define LC_CTYPE_MASK (1 << __LC_CTYPE)
- #define LC_NUMERIC_MASK (1 << __LC_NUMERIC)
- #define LC_TIME_MASK (1 << __LC_TIME)
- #define LC_COLLATE_MASK (1 << __LC_COLLATE)
- #define LC_MONETARY_MASK (1 << __LC_MONETARY)
- #define LC_MESSAGES_MASK (1 << __LC_MESSAGES)
- # 195 "../../include/locale.h"
- #define LC_ALL_MASK (LC_CTYPE_MASK | LC_NUMERIC_MASK | LC_TIME_MASK | LC_COLLATE_MASK | LC_MONETARY_MASK | LC_MESSAGES_MASK )
- # 206 "../../include/locale.h"
- extern __locale_t duplocale (__locale_t __dataset) __attribute__ ((__nothrow__));
- extern void freelocale (__locale_t __dataset) __attribute__ ((__nothrow__));
- extern __locale_t uselocale (__locale_t __dataset) __attribute__ ((__nothrow__));
- #define LC_GLOBAL_LOCALE ((__locale_t) -1L)
- # 14 "tsp_common.c" 2
- # 1 "../../include/errno.h" 1
- # 28 "../../include/errno.h"
- #define _ERRNO_H 1
- # 1 "../../include/bits/errno.h" 1
- # 22 "../../include/bits/errno.h"
- # 1 "../../include/bits/errno_values.h" 1
- #define _BITS_ERRNO_VALUES_H
- # 12 "../../include/bits/errno_values.h"
- #define EPERM 1
- #define ENOENT 2
- #define ESRCH 3
- #define EINTR 4
- #define EIO 5
- #define ENXIO 6
- #define E2BIG 7
- #define ENOEXEC 8
- #define EBADF 9
- #define ECHILD 10
- #define EAGAIN 11
- #define ENOMEM 12
- #define EACCES 13
- #define EFAULT 14
- #define ENOTBLK 15
- #define EBUSY 16
- #define EEXIST 17
- #define EXDEV 18
- #define ENODEV 19
- #define ENOTDIR 20
- #define EISDIR 21
- #define EINVAL 22
- #define ENFILE 23
- #define EMFILE 24
- #define ENOTTY 25
- #define ETXTBSY 26
- #define EFBIG 27
- #define ENOSPC 28
- #define ESPIPE 29
- #define EROFS 30
- #define EMLINK 31
- #define EPIPE 32
- #define EDOM 33
- #define ERANGE 34
- #define EDEADLK 35
- #define ENAMETOOLONG 36
- #define ENOLCK 37
- #define ENOSYS 38
- #define ENOTEMPTY 39
- #define ELOOP 40
- #define EWOULDBLOCK EAGAIN
- #define ENOMSG 42
- #define EIDRM 43
- #define ECHRNG 44
- #define EL2NSYNC 45
- #define EL3HLT 46
- #define EL3RST 47
- #define ELNRNG 48
- #define EUNATCH 49
- #define ENOCSI 50
- #define EL2HLT 51
- #define EBADE 52
- #define EBADR 53
- #define EXFULL 54
- #define ENOANO 55
- #define EBADRQC 56
- #define EBADSLT 57
- #define EDEADLOCK EDEADLK
- #define EBFONT 59
- #define ENOSTR 60
- #define ENODATA 61
- #define ETIME 62
- #define ENOSR 63
- #define ENONET 64
- #define ENOPKG 65
- #define EREMOTE 66
- #define ENOLINK 67
- #define EADV 68
- #define ESRMNT 69
- #define ECOMM 70
- #define EPROTO 71
- #define EMULTIHOP 72
- #define EDOTDOT 73
- #define EBADMSG 74
- #define EOVERFLOW 75
- #define ENOTUNIQ 76
- #define EBADFD 77
- #define EREMCHG 78
- #define ELIBACC 79
- #define ELIBBAD 80
- #define ELIBSCN 81
- #define ELIBMAX 82
- #define ELIBEXEC 83
- #define EILSEQ 84
- #define ERESTART 85
- #define ESTRPIPE 86
- #define EUSERS 87
- #define ENOTSOCK 88
- #define EDESTADDRREQ 89
- #define EMSGSIZE 90
- #define EPROTOTYPE 91
- #define ENOPROTOOPT 92
- #define EPROTONOSUPPORT 93
- #define ESOCKTNOSUPPORT 94
- #define EOPNOTSUPP 95
- #define EPFNOSUPPORT 96
- #define EAFNOSUPPORT 97
- #define EADDRINUSE 98
- #define EADDRNOTAVAIL 99
- #define ENETDOWN 100
- #define ENETUNREACH 101
- #define ENETRESET 102
- #define ECONNABORTED 103
- #define ECONNRESET 104
- #define ENOBUFS 105
- #define EISCONN 106
- #define ENOTCONN 107
- #define ESHUTDOWN 108
- #define ETOOMANYREFS 109
- #define ETIMEDOUT 110
- #define ECONNREFUSED 111
- #define EHOSTDOWN 112
- #define EHOSTUNREACH 113
- #define EALREADY 114
- #define EINPROGRESS 115
- #define ESTALE 116
- #define EUCLEAN 117
- #define ENOTNAM 118
- #define ENAVAIL 119
- #define EISNAM 120
- #define EREMOTEIO 121
- #define EDQUOT 122
- #define ENOMEDIUM 123
- #define EMEDIUMTYPE 124
- # 23 "../../include/bits/errno.h" 2
- #define ENOTSUP EOPNOTSUPP
- #define ECANCELED 125
- extern int *__errno_location (void) __attribute__ ((__nothrow__)) __attribute__ ((__const__));
- #define errno (*__errno_location ())
- # 37 "../../include/errno.h" 2
- #undef __need_Emath
- # 59 "../../include/errno.h"
- #undef errno
- #define errno __libc_errno
- extern __thread int __libc_errno __attribute__ ((tls_model ("initial-exec")));
- #define __set_errno(val) (errno = (val))
- extern int *__errno_location (void) __attribute__ ((__nothrow__)) __attribute__ ((__const__));
- # 89 "../../include/errno.h"
- typedef int error_t;
- #define __error_t_defined 1
- #undef __need_error_t
- # 15 "tsp_common.c" 2
- # 1 "../../include/signal.h" 1
- # 26 "../../include/signal.h"
- #define _SIGNAL_H
- # 1 "../../include/bits/sigset.h" 1
- # 43 "../../include/bits/sigset.h"
- #define _SIGSET_H_fns 1
- #define _EXTERN_INLINE extern __inline
- #define __sigmask(sig) (((unsigned long int) 1) << (((sig) - 1) % (8 * sizeof (unsigned long int))))
- #define __sigword(sig) (((sig) - 1) / (8 * sizeof (unsigned long int)))
- #define __sigemptyset(set) (__extension__ ({ int __cnt = _SIGSET_NWORDS; sigset_t *__set = (set); while (--__cnt >= 0) __set->__val[__cnt] = 0; 0; }))
- #define __sigfillset(set) (__extension__ ({ int __cnt = _SIGSET_NWORDS; sigset_t *__set = (set); while (--__cnt >= 0) __set->__val[__cnt] = ~0UL; 0; }))
- # 72 "../../include/bits/sigset.h"
- #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; }))
- #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; }))
- # 88 "../../include/bits/sigset.h"
- #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; }))
- # 103 "../../include/bits/sigset.h"
- extern int __sigismember (__const __sigset_t *, int);
- extern int __sigaddset (__sigset_t *, int);
- extern int __sigdelset (__sigset_t *, int);
- # 34 "../../include/signal.h" 2
- #define __sig_atomic_t_defined
- typedef __sig_atomic_t sig_atomic_t;
- #undef __need_sig_atomic_t
- #undef __need_sigset_t
- # 1 "../../include/bits/signum.h" 1
- # 23 "../../include/bits/signum.h"
- #define SIG_ERR ((__sighandler_t) -1)
- #define SIG_DFL ((__sighandler_t) 0)
- #define SIG_IGN ((__sighandler_t) 1)
- #define SIG_HOLD ((__sighandler_t) 2)
- #define SIGHUP 1
- #define SIGINT 2
- #define SIGQUIT 3
- #define SIGILL 4
- #define SIGTRAP 5
- #define SIGABRT 6
- #define SIGIOT 6
- #define SIGBUS 7
- #define SIGFPE 8
- #define SIGKILL 9
- #define SIGUSR1 10
- #define SIGSEGV 11
- #define SIGUSR2 12
- #define SIGPIPE 13
- #define SIGALRM 14
- #define SIGTERM 15
- #define SIGSTKFLT 16
- #define SIGCLD SIGCHLD
- #define SIGCHLD 17
- #define SIGCONT 18
- #define SIGSTOP 19
- #define SIGTSTP 20
- #define SIGTTIN 21
- #define SIGTTOU 22
- #define SIGURG 23
- #define SIGXCPU 24
- #define SIGXFSZ 25
- #define SIGVTALRM 26
- #define SIGPROF 27
- #define SIGWINCH 28
- #define SIGPOLL SIGIO
- #define SIGIO 29
- #define SIGPWR 30
- #define SIGSYS 31
- #define SIGUNUSED 31
- #define _NSIG 64
- #define SIGRTMIN (__libc_current_sigrtmin ())
- #define SIGRTMAX (__libc_current_sigrtmax ())
- #define __SIGRTMIN 32
- #define __SIGRTMAX (_NSIG - 1)
- # 59 "../../include/signal.h" 2
- # 75 "../../include/signal.h"
- typedef void (*__sighandler_t) (int);
- extern __sighandler_t __sysv_signal (int __sig, __sighandler_t __handler)
- __attribute__ ((__nothrow__));
- extern __sighandler_t sysv_signal (int __sig, __sighandler_t __handler)
- __attribute__ ((__nothrow__));
- extern __sighandler_t signal (int __sig, __sighandler_t __handler)
- __attribute__ ((__nothrow__));
- # 104 "../../include/signal.h"
- extern __sighandler_t bsd_signal (int __sig, __sighandler_t __handler)
- __attribute__ ((__nothrow__));
- extern int kill (__pid_t __pid, int __sig) __attribute__ ((__nothrow__));
- extern int killpg (__pid_t __pgrp, int __sig) __attribute__ ((__nothrow__));
- extern int raise (int __sig) __attribute__ ((__nothrow__));
- extern __sighandler_t ssignal (int __sig, __sighandler_t __handler)
- __attribute__ ((__nothrow__));
- extern int gsignal (int __sig) __attribute__ ((__nothrow__));
- extern void psignal (int __sig, __const char *__s);
- # 153 "../../include/signal.h"
- extern int __sigpause (int __sig_or_mask, int __is_sig);
- # 163 "../../include/signal.h"
- #define sigpause(sig) __sigpause ((sig), 1)
- # 175 "../../include/signal.h"
- #define sigmask(sig) __sigmask(sig)
- extern int sigblock (int __mask) __attribute__ ((__nothrow__)) __attribute__ ((__deprecated__));
- extern int sigsetmask (int __mask) __attribute__ ((__nothrow__)) __attribute__ ((__deprecated__));
- extern int siggetmask (void) __attribute__ ((__nothrow__)) __attribute__ ((__deprecated__));
- #define NSIG _NSIG
- typedef __sighandler_t sighandler_t;
- typedef __sighandler_t sig_t;
- #define __need_timespec
- # 1 "../../include/time.h" 1
- # 68 "../../include/time.h"
- #undef __need_clock_t
- # 84 "../../include/time.h"
- #undef __need_time_t
- # 96 "../../include/time.h"
- #undef __clockid_time_t
- # 108 "../../include/time.h"
- #undef __need_timer_t
- # 128 "../../include/time.h"
- #undef __need_timespec
- # 207 "../../include/signal.h" 2
- # 1 "../../include/bits/siginfo.h" 1
- # 25 "../../include/bits/siginfo.h"
- # 1 "../../include/bits/wordsize.h" 1
- # 19 "../../include/bits/wordsize.h"
- #define __WORDSIZE 32
- # 26 "../../include/bits/siginfo.h" 2
- #define __have_sigval_t 1
- typedef union sigval
- {
- int sival_int;
- void *sival_ptr;
- } sigval_t;
- #define __have_siginfo_t 1
- #define __SI_MAX_SIZE 128
- #define __SI_PAD_SIZE ((__SI_MAX_SIZE / sizeof (int)) - 3)
- typedef struct siginfo
- {
- int si_signo;
- int si_errno;
- int si_code;
- union
- {
- int _pad[((128 / sizeof (int)) - 3)];
- struct
- {
- __pid_t si_pid;
- __uid_t si_uid;
- } _kill;
- struct
- {
- unsigned int _timer1;
- unsigned int _timer2;
- } _timer;
- struct
- {
- __pid_t si_pid;
- __uid_t si_uid;
- sigval_t si_sigval;
- } _rt;
- struct
- {
- __pid_t si_pid;
- __uid_t si_uid;
- int si_status;
- __clock_t si_utime;
- __clock_t si_stime;
- } _sigchld;
- struct
- {
- void *si_addr;
- } _sigfault;
- struct
- {
- long int si_band;
- int si_fd;
- } _sigpoll;
- } _sifields;
- } siginfo_t;
- #define si_pid _sifields._kill.si_pid
- #define si_uid _sifields._kill.si_uid
- #define si_timer1 _sifields._timer._timer1
- #define si_timer2 _sifields._timer._timer2
- #define si_status _sifields._sigchld.si_status
- #define si_utime _sifields._sigchld.si_utime
- #define si_stime _sifields._sigchld.si_stime
- #define si_value _sifields._rt.si_sigval
- #define si_int _sifields._rt.si_sigval.sival_int
- #define si_ptr _sifields._rt.si_sigval.sival_ptr
- #define si_addr _sifields._sigfault.si_addr
- #define si_band _sifields._sigpoll.si_band
- #define si_fd _sifields._sigpoll.si_fd
- enum
- {
- SI_ASYNCNL = -60,
- #define SI_ASYNCNL SI_ASYNCNL
- SI_TKILL = -6,
- #define SI_TKILL SI_TKILL
- SI_SIGIO,
- #define SI_SIGIO SI_SIGIO
- SI_ASYNCIO,
- #define SI_ASYNCIO SI_ASYNCIO
- SI_MESGQ,
- #define SI_MESGQ SI_MESGQ
- SI_TIMER,
- #define SI_TIMER SI_TIMER
- SI_QUEUE,
- #define SI_QUEUE SI_QUEUE
- SI_USER,
- #define SI_USER SI_USER
- SI_KERNEL = 0x80
- #define SI_KERNEL SI_KERNEL
- };
- enum
- {
- ILL_ILLOPC = 1,
- #define ILL_ILLOPC ILL_ILLOPC
- ILL_ILLOPN,
- #define ILL_ILLOPN ILL_ILLOPN
- ILL_ILLADR,
- #define ILL_ILLADR ILL_ILLADR
- ILL_ILLTRP,
- #define ILL_ILLTRP ILL_ILLTRP
- ILL_PRVOPC,
- #define ILL_PRVOPC ILL_PRVOPC
- ILL_PRVREG,
- #define ILL_PRVREG ILL_PRVREG
- ILL_COPROC,
- #define ILL_COPROC ILL_COPROC
- ILL_BADSTK
- #define ILL_BADSTK ILL_BADSTK
- };
- enum
- {
- FPE_INTDIV = 1,
- #define FPE_INTDIV FPE_INTDIV
- FPE_INTOVF,
- #define FPE_INTOVF FPE_INTOVF
- FPE_FLTDIV,
- #define FPE_FLTDIV FPE_FLTDIV
- FPE_FLTOVF,
- #define FPE_FLTOVF FPE_FLTOVF
- FPE_FLTUND,
- #define FPE_FLTUND FPE_FLTUND
- FPE_FLTRES,
- #define FPE_FLTRES FPE_FLTRES
- FPE_FLTINV,
- #define FPE_FLTINV FPE_FLTINV
- FPE_FLTSUB
- #define FPE_FLTSUB FPE_FLTSUB
- };
- enum
- {
- SEGV_MAPERR = 1,
- #define SEGV_MAPERR SEGV_MAPERR
- SEGV_ACCERR
- #define SEGV_ACCERR SEGV_ACCERR
- };
- enum
- {
- BUS_ADRALN = 1,
- #define BUS_ADRALN BUS_ADRALN
- BUS_ADRERR,
- #define BUS_ADRERR BUS_ADRERR
- BUS_OBJERR
- #define BUS_OBJERR BUS_OBJERR
- };
- enum
- {
- TRAP_BRKPT = 1,
- #define TRAP_BRKPT TRAP_BRKPT
- TRAP_TRACE
- #define TRAP_TRACE TRAP_TRACE
- };
- enum
- {
- CLD_EXITED = 1,
- #define CLD_EXITED CLD_EXITED
- CLD_KILLED,
- #define CLD_KILLED CLD_KILLED
- CLD_DUMPED,
- #define CLD_DUMPED CLD_DUMPED
- CLD_TRAPPED,
- #define CLD_TRAPPED CLD_TRAPPED
- CLD_STOPPED,
- #define CLD_STOPPED CLD_STOPPED
- CLD_CONTINUED
- #define CLD_CONTINUED CLD_CONTINUED
- };
- enum
- {
- POLL_IN = 1,
- #define POLL_IN POLL_IN
- POLL_OUT,
- #define POLL_OUT POLL_OUT
- POLL_MSG,
- #define POLL_MSG POLL_MSG
- POLL_ERR,
- #define POLL_ERR POLL_ERR
- POLL_PRI,
- #define POLL_PRI POLL_PRI
- POLL_HUP
- #define POLL_HUP POLL_HUP
- };
- #undef __need_siginfo_t
- #define __have_sigevent_t 1
- #define __SIGEV_MAX_SIZE 64
- #define __SIGEV_PAD_SIZE ((__SIGEV_MAX_SIZE / sizeof (int)) - 3)
- struct __pthread_attr_s;
- typedef struct sigevent
- {
- sigval_t sigev_value;
- int sigev_signo;
- int sigev_notify;
- union
- {
- int _pad[((64 / sizeof (int)) - 3)];
- struct
- {
- void (*_function) (sigval_t);
- struct __pthread_attr_s *_attribute;
- } _sigev_thread;
- } _sigev_un;
- } sigevent_t;
- #define sigev_notify_function _sigev_un._sigev_thread._function
- #define sigev_notify_attributes _sigev_un._sigev_thread._attribute
- enum
- {
- SIGEV_SIGNAL = 0,
- #define SIGEV_SIGNAL SIGEV_SIGNAL
- SIGEV_NONE,
- #define SIGEV_NONE SIGEV_NONE
- SIGEV_THREAD,
- #define SIGEV_THREAD SIGEV_THREAD
- SIGEV_THREAD_ID = 4
- #define SIGEV_THREAD_ID SIGEV_THREAD_ID
- };
- # 210 "../../include/signal.h" 2
- extern int sigemptyset (sigset_t *__set) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
- extern int sigfillset (sigset_t *__set) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
- extern int sigaddset (sigset_t *__set, int __signo) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
- extern int sigdelset (sigset_t *__set, int __signo) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
- extern int sigismember (__const sigset_t *__set, int __signo)
- __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
- extern int sigisemptyset (__const sigset_t *__set) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
- extern int sigandset (sigset_t *__set, __const sigset_t *__left,
- __const sigset_t *__right) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2, 3)));
- extern int sigorset (sigset_t *__set, __const sigset_t *__left,
- __const sigset_t *__right) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2, 3)));
- # 1 "../../include/bits/sigaction.h" 1
- # 25 "../../include/bits/sigaction.h"
- struct sigaction
- {
- union
- {
- __sighandler_t sa_handler;
- void (*sa_sigaction) (int, siginfo_t *, void *);
- }
- __sigaction_handler;
- #define sa_handler __sigaction_handler.sa_handler
- #define sa_sigaction __sigaction_handler.sa_sigaction
- __sigset_t sa_mask;
- int sa_flags;
- void (*sa_restorer) (void);
- };
- #define SA_NOCLDSTOP 1
- #define SA_NOCLDWAIT 2
- #define SA_SIGINFO 4
- #define SA_ONSTACK 0x08000000
- #define SA_RESTART 0x10000000
- #define SA_NODEFER 0x40000000
- #define SA_RESETHAND 0x80000000
- #define SA_INTERRUPT 0x20000000
- #define SA_NOMASK SA_NODEFER
- #define SA_ONESHOT SA_RESETHAND
- #define SA_STACK SA_ONSTACK
- #define SIG_BLOCK 0
- #define SIG_UNBLOCK 1
- #define SIG_SETMASK 2
- # 244 "../../include/signal.h" 2
- extern int sigprocmask (int __how, __const sigset_t *__restrict __set,
- sigset_t *__restrict __oset) __attribute__ ((__nothrow__));
- extern int sigsuspend (__const sigset_t *__set) __attribute__ ((__nonnull__ (1)));
- extern int sigaction (int __sig, __const struct sigaction *__restrict __act,
- struct sigaction *__restrict __oact) __attribute__ ((__nothrow__));
- extern int sigpending (sigset_t *__set) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
- extern int sigwait (__const sigset_t *__restrict __set, int *__restrict __sig)
- __attribute__ ((__nonnull__ (1, 2)));
- extern int sigwaitinfo (__const sigset_t *__restrict __set,
- siginfo_t *__restrict __info) __attribute__ ((__nonnull__ (1)));
- extern int sigtimedwait (__const sigset_t *__restrict __set,
- siginfo_t *__restrict __info,
- __const struct timespec *__restrict __timeout)
- __attribute__ ((__nonnull__ (1)));
- extern int sigqueue (__pid_t __pid, int __sig, __const union sigval __val)
- __attribute__ ((__nothrow__));
- # 307 "../../include/signal.h"
- struct sigvec
- {
- __sighandler_t sv_handler;
- int sv_mask;
- int sv_flags;
- #define sv_onstack sv_flags
- };
- #define SV_ONSTACK (1 << 0)
- #define SV_INTERRUPT (1 << 1)
- #define SV_RESETHAND (1 << 2)
- extern int sigvec (int __sig, __const struct sigvec *__vec,
- struct sigvec *__ovec) __attribute__ ((__nothrow__));
- # 1 "../../include/bits/sigcontext.h" 1
- # 26 "../../include/bits/sigcontext.h"
- #define sigcontext_struct sigcontext
- # 1 "/opt/STM/STLinux-2.3ear/devkit/sh4/uclibc_target/usr/include/asm/sigcontext.h" 1
- #define __ASM_SH_SIGCONTEXT_H
- struct sigcontext {
- unsigned long oldmask;
- unsigned long sc_regs[16];
- unsigned long sc_pc;
- unsigned long sc_pr;
- unsigned long sc_sr;
- unsigned long sc_gbr;
- unsigned long sc_mach;
- unsigned long sc_macl;
- unsigned long sc_fpregs[16];
- unsigned long sc_xfpregs[16];
- unsigned int sc_fpscr;
- unsigned int sc_fpul;
- unsigned int sc_ownedfp;
- };
- # 29 "../../include/bits/sigcontext.h" 2
- # 333 "../../include/signal.h" 2
- extern int sigreturn (struct sigcontext *__scp) __attribute__ ((__nothrow__));
- # 345 "../../include/signal.h"
- extern int siginterrupt (int __sig, int __interrupt) __attribute__ ((__nothrow__));
- # 1 "../../include/bits/sigstack.h" 1
- # 26 "../../include/bits/sigstack.h"
- struct sigstack
- {
- void *ss_sp;
- int ss_onstack;
- };
- enum
- {
- SS_ONSTACK = 1,
- #define SS_ONSTACK SS_ONSTACK
- SS_DISABLE
- #define SS_DISABLE SS_DISABLE
- };
- #define MINSIGSTKSZ 2048
- #define SIGSTKSZ 8192
- typedef struct sigaltstack
- {
- void *ss_sp;
- int ss_flags;
- size_t ss_size;
- } stack_t;
- # 348 "../../include/signal.h" 2
- # 1 "../../include/ucontext.h" 1
- # 20 "../../include/ucontext.h"
- #define _UCONTEXT_H 1
- # 1 "../../include/sys/ucontext.h" 1
- # 22 "../../include/sys/ucontext.h"
- #define _SYS_UCONTEXT_H 1
- # 1 "../../include/signal.h" 1
- # 26 "../../include/sys/ucontext.h" 2
- # 1 "../../include/bits/sigcontext.h" 1
- # 30 "../../include/sys/ucontext.h" 2
- typedef int greg_t;
- #define NFPREG 16
- typedef greg_t gregset_t[16];
- enum
- {
- R0 = 0,
- #define R0 R0
- R1 = 1,
- #define R1 R1
- R2 = 2,
- #define R2 R2
- R3 = 3,
- #define R3 R3
- R4 = 4,
- #define R4 R4
- R5 = 5,
- #define R5 R5
- R6 = 6,
- #define R6 R6
- R7 = 7,
- #define R7 R7
- R8 = 8,
- #define R8 R8
- R9 = 9,
- #define R9 R9
- R10 = 10,
- #define R10 R10
- R11 = 11,
- #define R11 R11
- R12 = 12,
- #define R12 R12
- R13 = 13,
- #define R13 R13
- R14 = 14,
- #define R14 R14
- R15 = 15,
- #define R15 R15
- };
- typedef int freg_t;
- #define NFPREG 16
- typedef freg_t fpregset_t[16];
- typedef struct
- {
- unsigned int oldmask;
- gregset_t gregs;
- unsigned int pc;
- unsigned int pr;
- unsigned int sr;
- unsigned int gbr;
- unsigned int mach;
- unsigned int macl;
- fpregset_t fpregs;
- fpregset_t xfpregs;
- unsigned int fpscr;
- unsigned int fpul;
- unsigned int ownedfp;
- } mcontext_t;
- typedef struct ucontext
- {
- unsigned long int uc_flags;
- struct ucontext *uc_link;
- stack_t uc_stack;
- mcontext_t uc_mcontext;
- __sigset_t uc_sigmask;
- } ucontext_t;
- # 26 "../../include/ucontext.h" 2
- # 351 "../../include/signal.h" 2
- extern int sigstack (struct sigstack *__ss, struct sigstack *__oss)
- __attribute__ ((__nothrow__)) __attribute__ ((__deprecated__));
- extern int sigaltstack (__const struct sigaltstack *__restrict __ss,
- struct sigaltstack *__restrict __oss) __attribute__ ((__nothrow__));
- extern int sighold (int __sig) __attribute__ ((__nothrow__));
- extern int sigrelse (int __sig) __attribute__ ((__nothrow__));
- extern int sigignore (int __sig) __attribute__ ((__nothrow__));
- extern __sighandler_t sigset (int __sig, __sighandler_t __disp) __attribute__ ((__nothrow__));
- # 1 "../../include/bits/sigthread.h" 1
- # 21 "../../include/bits/sigthread.h"
- #define _BITS_SIGTHREAD_H 1
- # 31 "../../include/bits/sigthread.h"
- extern int pthread_sigmask (int __how,
- __const __sigset_t *__restrict __newmask,
- __sigset_t *__restrict __oldmask)__attribute__ ((__nothrow__));
- extern int pthread_kill (pthread_t __thread_id, int __signo) __attribute__ ((__nothrow__));
- # 387 "../../include/signal.h" 2
- extern int __libc_current_sigrtmin (void) __attribute__ ((__nothrow__));
- extern int __libc_current_sigrtmax (void) __attribute__ ((__nothrow__));
- # 16 "tsp_common.c" 2
- # 1 "tst_types.h" 1
- # 11 "tst_types.h"
- #define TST_TYPES_H
- # 1 "../../include/wchar.h" 1
- # 27 "../../include/wchar.h"
- #define _WCHAR_H 1
- # 37 "../../include/wchar.h"
- #define __need___FILE
- #define __need_FILE
- #define __need___va_list
- # 1 "/opt/STM/STLinux-2.3ear/devkit/sh4/lib/gcc/sh4-linux-uclibc/4.1.1/include/stdarg.h" 1 3 4
- # 37 "/opt/STM/STLinux-2.3ear/devkit/sh4/lib/gcc/sh4-linux-uclibc/4.1.1/include/stdarg.h" 3 4
- #undef __need___va_list
- # 45 "../../include/wchar.h" 2
- #define __need_size_t
- #define __need_wchar_t
- #define __need_NULL
- #define __need_wint_t
- # 1 "/opt/STM/STLinux-2.3ear/devkit/sh4/lib/gcc/sh4-linux-uclibc/4.1.1/include/stddef.h" 1 3 4
- # 163 "/opt/STM/STLinux-2.3ear/devkit/sh4/lib/gcc/sh4-linux-uclibc/4.1.1/include/stddef.h" 3 4
- #undef __need_ptrdiff_t
- # 236 "/opt/STM/STLinux-2.3ear/devkit/sh4/lib/gcc/sh4-linux-uclibc/4.1.1/include/stddef.h" 3 4
- #undef __need_size_t
- # 345 "/opt/STM/STLinux-2.3ear/devkit/sh4/lib/gcc/sh4-linux-uclibc/4.1.1/include/stddef.h" 3 4
- #undef __need_wchar_t
- # 357 "/opt/STM/STLinux-2.3ear/devkit/sh4/lib/gcc/sh4-linux-uclibc/4.1.1/include/stddef.h" 3 4
- #undef __need_wint_t
- # 398 "/opt/STM/STLinux-2.3ear/devkit/sh4/lib/gcc/sh4-linux-uclibc/4.1.1/include/stddef.h" 3 4
- #undef NULL
- #define NULL ((void *)0)
- #undef __need_NULL
- #define offsetof(TYPE,MEMBER) __builtin_offsetof (TYPE, MEMBER)
- # 53 "../../include/wchar.h" 2
- # 98 "../../include/wchar.h"
- #undef __need_mbstate_t
- typedef __mbstate_t mbstate_t;
- # 120 "../../include/wchar.h"
- #define WEOF (0xffffffffu)
- # 130 "../../include/wchar.h"
- struct tm;
- extern wchar_t *wcscpy (wchar_t *__restrict __dest,
- __const wchar_t *__restrict __src) __attribute__ ((__nothrow__));
- extern wchar_t *wcsncpy (wchar_t *__restrict __dest,
- __const wchar_t *__restrict __src, size_t __n)
- __attribute__ ((__nothrow__));
- extern wchar_t *wcscat (wchar_t *__restrict __dest,
- __const wchar_t *__restrict __src) __attribute__ ((__nothrow__));
- extern wchar_t *wcsncat (wchar_t *__restrict __dest,
- __const wchar_t *__restrict __src, size_t __n)
- __attribute__ ((__nothrow__));
- extern int wcscmp (__const wchar_t *__s1, __const wchar_t *__s2)
- __attribute__ ((__nothrow__)) __attribute__ ((__pure__));
- extern int wcsncmp (__const wchar_t *__s1, __const wchar_t *__s2, size_t __n)
- __attribute__ ((__nothrow__)) __attribute__ ((__pure__));
- extern int wcscasecmp (__const wchar_t *__s1, __const wchar_t *__s2) __attribute__ ((__nothrow__));
- extern int wcsncasecmp (__const wchar_t *__s1, __const wchar_t *__s2,
- size_t __n) __attribute__ ((__nothrow__));
- # 189 "../../include/wchar.h"
- extern int wcscoll (__const wchar_t *__s1, __const wchar_t *__s2) __attribute__ ((__nothrow__));
- extern size_t wcsxfrm (wchar_t *__restrict __s1,
- __const wchar_t *__restrict __s2, size_t __n) __attribute__ ((__nothrow__));
- # 219 "../../include/wchar.h"
- extern wchar_t *wcsdup (__const wchar_t *__s) __attribute__ ((__nothrow__)) __attribute__ ((__malloc__));
- extern wchar_t *wcschr (__const wchar_t *__wcs, wchar_t __wc)
- __attribute__ ((__nothrow__)) __attribute__ ((__pure__));
- extern wchar_t *wcsrchr (__const wchar_t *__wcs, wchar_t __wc)
- __attribute__ ((__nothrow__)) __attribute__ ((__pure__));
- extern wchar_t *wcschrnul (__const wchar_t *__s, wchar_t __wc)
- __attribute__ ((__nothrow__)) __attribute__ ((__pure__));
- extern size_t wcscspn (__const wchar_t *__wcs, __const wchar_t *__reject)
- __attribute__ ((__nothrow__)) __attribute__ ((__pure__));
- extern size_t wcsspn (__const wchar_t *__wcs, __const wchar_t *__accept)
- __attribute__ ((__nothrow__)) __attribute__ ((__pure__));
- extern wchar_t *wcspbrk (__const wchar_t *__wcs, __const wchar_t *__accept)
- __attribute__ ((__nothrow__)) __attribute__ ((__pure__));
- extern wchar_t *wcsstr (__const wchar_t *__haystack, __const wchar_t *__needle)
- __attribute__ ((__nothrow__)) __attribute__ ((__pure__));
- extern wchar_t *wcstok (wchar_t *__restrict __s,
- __const wchar_t *__restrict __delim,
- wchar_t **__restrict __ptr) __attribute__ ((__nothrow__));
- extern size_t wcslen (__const wchar_t *__s) __attribute__ ((__nothrow__)) __attribute__ ((__pure__));
- extern wchar_t *wcswcs (__const wchar_t *__haystack, __const wchar_t *__needle)
- __attribute__ ((__nothrow__)) __attribute__ ((__pure__));
- extern size_t wcsnlen (__const wchar_t *__s, size_t __maxlen)
- __attribute__ ((__nothrow__)) __attribute__ ((__pure__));
- extern wchar_t *wmemchr (__const wchar_t *__s, wchar_t __c, size_t __n)
- __attribute__ ((__nothrow__)) __attribute__ ((__pure__));
- extern int wmemcmp (__const wchar_t *__restrict __s1,
- __const wchar_t *__restrict __s2, size_t __n)
- __attribute__ ((__nothrow__)) __attribute__ ((__pure__));
- extern wchar_t *wmemcpy (wchar_t *__restrict __s1,
- __const wchar_t *__restrict __s2, size_t __n) __attribute__ ((__nothrow__));
- extern wchar_t *wmemmove (wchar_t *__s1, __const wchar_t *__s2, size_t __n)
- __attribute__ ((__nothrow__));
- extern wchar_t *wmemset (wchar_t *__s, wchar_t __c, size_t __n) __attribute__ ((__nothrow__));
- extern wchar_t *wmempcpy (wchar_t *__restrict __s1,
- __const wchar_t *__restrict __s2, size_t __n)
- __attribute__ ((__nothrow__));
- extern wint_t btowc (int __c) __attribute__ ((__nothrow__));
- extern int wctob (wint_t __c) __attribute__ ((__nothrow__));
- extern int mbsinit (__const mbstate_t *__ps) __attribute__ ((__nothrow__)) __attribute__ ((__pure__));
- extern size_t mbrtowc (wchar_t *__restrict __pwc,
- __const char *__restrict __s, size_t __n,
- mbstate_t *__p) __attribute__ ((__nothrow__));
- extern size_t wcrtomb (char *__restrict __s, wchar_t __wc,
- mbstate_t *__restrict __ps) __attribute__ ((__nothrow__));
- extern size_t mbrlen (__const char *__restrict __s, size_t __n,
- mbstate_t *__restrict __ps) __attribute__ ((__nothrow__));
- extern size_t mbsrtowcs (wchar_t *__restrict __dst,
- __const char **__restrict __src, size_t __len,
- mbstate_t *__restrict __ps) __attribute__ ((__nothrow__));
- extern size_t wcsrtombs (char *__restrict __dst,
- __const wchar_t **__restrict __src, size_t __len,
- mbstate_t *__restrict __ps) __attribute__ ((__nothrow__));
- extern size_t mbsnrtowcs (wchar_t *__restrict __dst,
- __const char **__restrict __src, size_t __nmc,
- size_t __len, mbstate_t *__restrict __ps) __attribute__ ((__nothrow__));
- extern size_t wcsnrtombs (char *__restrict __dst,
- __const wchar_t **__restrict __src,
- size_t __nwc, size_t __len,
- mbstate_t *__restrict __ps) __attribute__ ((__nothrow__));
- extern int wcwidth (wchar_t __c) __attribute__ ((__nothrow__));
- extern int wcswidth (__const wchar_t *__s, size_t __n) __attribute__ ((__nothrow__));
- extern double wcstod (__const wchar_t *__restrict __nptr,
- wchar_t **__restrict __endptr) __attribute__ ((__nothrow__));
- extern float wcstof (__const wchar_t *__restrict __nptr,
- wchar_t **__restrict __endptr) __attribute__ ((__nothrow__));
- extern long double wcstold (__const wchar_t *__restrict __nptr,
- wchar_t **__restrict __endptr) __attribute__ ((__nothrow__));
- extern long int wcstol (__const wchar_t *__restrict __nptr,
- wchar_t **__restrict __endptr, int __base) __attribute__ ((__nothrow__));
- extern unsigned long int wcstoul (__const wchar_t *__restrict __nptr,
- wchar_t **__restrict __endptr, int __base)
- __attribute__ ((__nothrow__));
- __extension__
- extern long long int wcstoll (__const wchar_t *__restrict __nptr,
- wchar_t **__restrict __endptr, int __base)
- __attribute__ ((__nothrow__));
- __extension__
- extern unsigned long long int wcstoull (__const wchar_t *__restrict __nptr,
- wchar_t **__restrict __endptr,
- int __base) __attribute__ ((__nothrow__));
- __extension__
- extern long long int wcstoq (__const wchar_t *__restrict __nptr,
- wchar_t **__restrict __endptr, int __base)
- __attribute__ ((__nothrow__));
- __extension__
- extern unsigned long long int wcstouq (__const wchar_t *__restrict __nptr,
- wchar_t **__restrict __endptr,
- int __base) __attribute__ ((__nothrow__));
- # 499 "../../include/wchar.h"
- extern wchar_t *wcpcpy (wchar_t *__dest, __const wchar_t *__src) __attribute__ ((__nothrow__));
- extern wchar_t *wcpncpy (wchar_t *__dest, __const wchar_t *__src, size_t __n)
- __attribute__ ((__nothrow__));
- extern int fwide (__FILE *__fp, int __mode) __attribute__ ((__nothrow__));
- extern int fwprintf (__FILE *__restrict __stream,
- __const wchar_t *__restrict __format, ...)
- ;
- extern int wprintf (__const wchar_t *__restrict __format, ...)
- ;
- extern int swprintf (wchar_t *__restrict __s, size_t __n,
- __const wchar_t *__restrict __format, ...)
- __attribute__ ((__nothrow__)) ;
- extern int vfwprintf (__FILE *__restrict __s,
- __const wchar_t *__restrict __format,
- __gnuc_va_list __arg)
- ;
- extern int vwprintf (__const wchar_t *__restrict __format,
- __gnuc_va_list __arg)
- ;
- extern int vswprintf (wchar_t *__restrict __s, size_t __n,
- __const wchar_t *__restrict __format,
- __gnuc_va_list __arg)
- __attribute__ ((__nothrow__)) ;
- extern int fwscanf (__FILE *__restrict __stream,
- __const wchar_t *__restrict __format, ...)
- ;
- extern int wscanf (__const wchar_t *__restrict __format, ...)
- ;
- extern int swscanf (__const wchar_t *__restrict __s,
- __const wchar_t *__restrict __format, ...)
- __attribute__ ((__nothrow__)) ;
- extern int vfwscanf (__FILE *__restrict __s,
- __const wchar_t *__restrict __format,
- __gnuc_va_list __arg)
- ;
- extern int vwscanf (__const wchar_t *__restrict __format,
- __gnuc_va_list __arg)
- ;
- extern int vswscanf (__const wchar_t *__restrict __s,
- __const wchar_t *__restrict __format,
- __gnuc_va_list __arg)
- __attribute__ ((__nothrow__)) ;
- extern wint_t fgetwc (__FILE *__stream);
- extern wint_t getwc (__FILE *__stream);
- extern wint_t getwchar (void);
- extern wint_t fputwc (wchar_t __wc, __FILE *__stream);
- extern wint_t putwc (wchar_t __wc, __FILE *__stream);
- extern wint_t putwchar (wchar_t __wc);
- extern wchar_t *fgetws (wchar_t *__restrict __ws, int __n,
- __FILE *__restrict __stream);
- extern int fputws (__const wchar_t *__restrict __ws,
- __FILE *__restrict __stream);
- extern wint_t ungetwc (wint_t __wc, __FILE *__stream);
- # 667 "../../include/wchar.h"
- extern wint_t getwc_unlocked (__FILE *__stream);
- extern wint_t getwchar_unlocked (void);
- extern wint_t fgetwc_unlocked (__FILE *__stream);
- extern wint_t fputwc_unlocked (wchar_t __wc, __FILE *__stream);
- # 693 "../../include/wchar.h"
- extern wint_t putwc_unlocked (wchar_t __wc, __FILE *__stream);
- extern wint_t putwchar_unlocked (wchar_t __wc);
- # 703 "../../include/wchar.h"
- extern wchar_t *fgetws_unlocked (wchar_t *__restrict __ws, int __n,
- __FILE *__restrict __stream);
- extern int fputws_unlocked (__const wchar_t *__restrict __ws,
- __FILE *__restrict __stream);
- extern size_t wcsftime (wchar_t *__restrict __s, size_t __maxsize,
- __const wchar_t *__restrict __format,
- __const struct tm *__restrict __tp) __attribute__ ((__nothrow__));
- # 748 "../../include/wchar.h"
- # 15 "tst_types.h" 2
- # 1 "../../include/wctype.h" 1
- # 34 "../../include/wctype.h"
- #define _WCTYPE_H 1
- #define __need_wint_t
- # 1 "/opt/STM/STLinux-2.3ear/devkit/sh4/lib/gcc/sh4-linux-uclibc/4.1.1/include/stddef.h" 1 3 4
- # 163 "/opt/STM/STLinux-2.3ear/devkit/sh4/lib/gcc/sh4-linux-uclibc/4.1.1/include/stddef.h" 3 4
- #undef __need_ptrdiff_t
- # 236 "/opt/STM/STLinux-2.3ear/devkit/sh4/lib/gcc/sh4-linux-uclibc/4.1.1/include/stddef.h" 3 4
- #undef __need_size_t
- # 345 "/opt/STM/STLinux-2.3ear/devkit/sh4/lib/gcc/sh4-linux-uclibc/4.1.1/include/stddef.h" 3 4
- #undef __need_wchar_t
- # 357 "/opt/STM/STLinux-2.3ear/devkit/sh4/lib/gcc/sh4-linux-uclibc/4.1.1/include/stddef.h" 3 4
- #undef __need_wint_t
- # 398 "/opt/STM/STLinux-2.3ear/devkit/sh4/lib/gcc/sh4-linux-uclibc/4.1.1/include/stddef.h" 3 4
- #undef NULL
- #define NULL ((void *)0)
- #undef __need_NULL
- #define offsetof(TYPE,MEMBER) __builtin_offsetof (TYPE, MEMBER)
- # 40 "../../include/wctype.h" 2
- # 49 "../../include/wctype.h"
- # 59 "../../include/wctype.h"
- #undef __need_iswxxx
- #define __iswxxx_defined 1
- typedef unsigned int wctype_t;
- #define _ISwbit(bit) (1 << (bit))
- enum
- {
- __ISwupper = 0,
- __ISwlower = 1,
- __ISwalpha = 2,
- __ISwdigit = 3,
- __ISwxdigit = 4,
- __ISwspace = 5,
- __ISwprint = 6,
- __ISwgraph = 7,
- __ISwblank = 8,
- __ISwcntrl = 9,
- __ISwpunct = 10,
- __ISwalnum = 11,
- _ISwupper = (1 << (__ISwupper)),
- _ISwlower = (1 << (__ISwlower)),
- _ISwalpha = (1 << (__ISwalpha)),
- _ISwdigit = (1 << (__ISwdigit)),
- _ISwxdigit = (1 << (__ISwxdigit)),
- _ISwspace = (1 << (__ISwspace)),
- _ISwprint = (1 << (__ISwprint)),
- _ISwgraph = (1 << (__ISwgraph)),
- _ISwblank = (1 << (__ISwblank)),
- _ISwcntrl = (1 << (__ISwcntrl)),
- _ISwpunct = (1 << (__ISwpunct)),
- _ISwalnum = (1 << (__ISwalnum))
- };
- # 113 "../../include/wctype.h"
- extern int iswalnum (wint_t __wc) __attribute__ ((__nothrow__));
- extern int iswalpha (wint_t __wc) __attribute__ ((__nothrow__));
- extern int iswcntrl (wint_t __wc) __attribute__ ((__nothrow__));
- extern int iswdigit (wint_t __wc) __attribute__ ((__nothrow__));
- extern int iswgraph (wint_t __wc) __attribute__ ((__nothrow__));
- extern int iswlower (wint_t __wc) __attribute__ ((__nothrow__));
- extern int iswprint (wint_t __wc) __attribute__ ((__nothrow__));
- extern int iswpunct (wint_t __wc) __attribute__ ((__nothrow__));
- extern int iswspace (wint_t __wc) __attribute__ ((__nothrow__));
- extern int iswupper (wint_t __wc) __attribute__ ((__nothrow__));
- extern int iswxdigit (wint_t __wc) __attribute__ ((__nothrow__));
- extern int iswblank (wint_t __wc) __attribute__ ((__nothrow__));
- # 182 "../../include/wctype.h"
- extern wctype_t wctype (__const char *__property) __attribute__ ((__nothrow__));
- extern int iswctype (wint_t __wc, wctype_t __desc) __attribute__ ((__nothrow__));
- typedef unsigned int wctrans_t;
- extern wint_t towlower (wint_t __wc) __attribute__ ((__nothrow__));
- extern wint_t towupper (wint_t __wc) __attribute__ ((__nothrow__));
- # 225 "../../include/wctype.h"
- extern wctrans_t wctrans (__const char *__property) __attribute__ ((__nothrow__));
- extern wint_t towctrans (wint_t __wc, wctrans_t __desc) __attribute__ ((__nothrow__));
- # 326 "../../include/wctype.h"
- # 16 "tst_types.h" 2
- # 1 "tst_funcs.h" 1
- # 11 "tst_funcs.h"
- #define TST_FUNCS_H
- #define C_SUCCESS 'S'
- #define C_FAILURE 'F'
- #define C_IGNORED 'I'
- #define C_INVALID 'D'
- #define C_LOCALES 'L'
- extern int result (FILE * fp, char res, const char *func, const char *loc,
- int rec_no, int seq_num, int case_no, const char *msg);
- #define Result(C,S,E,M) result (fp, (C), (S), locale, rec+1, seq_num+1, (E), (M))
- #define CASE_0 0
- #define CASE_1 1
- #define CASE_2 2
- #define CASE_3 3
- #define CASE_4 4
- #define CASE_5 5
- #define CASE_6 6
- #define CASE_7 7
- #define CASE_8 8
- #define CASE_9 9
- #define MS_PASSED "PASSED"
- #define MS_SPACE " "
- #define MS_FAILED " "
- #define MS_NOTEST "NOTEST"
- #define MS_ABORTU "ABEND0"
- #define MS_ABORT "ABEND1"
- #define MK_PASSED 0x00
- #define MK_SPACE 0x01
- #define MK_NOTEST 0x02
- #define MK_ABORTU 0x04
- #define MK_ABORT 0x08
- #define TST_ABS(x) (((x) > 0) ? (x) : -(x))
- #define TMD_ERRET(_type_) int err_val; int ret_flg; _type_ ret_val
- #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_
- # 72 "tst_funcs.h"
- #define TST_FTYP(func) tst_ ##func ##_loc
- #define TST_HEAD(func) tst_ ##func ##_loc[ loc ].hd
- #define TST_INPUT(func) tst_ ##func ##_loc[ loc ].rec[ rec ].input
- #define TST_EXPECT(func) tst_ ##func ##_loc[ loc ].rec[ rec ].expect
- #define TST_INPUT_SEQ(func) tst_ ##func ##_loc[ loc ].rec[ rec ].input.seq[ seq_num ]
- #define TST_EXPECT_SEQ(func) tst_ ##func ##_loc[ loc ].rec[ rec ].expect.seq[ seq_num ]
- #define TST_IS_LAST(func) tst_ ##func ##_loc[ loc ].rec[ rec ].is_last
- #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
- # 94 "tst_funcs.h"
- #define TST_DO_TEST(o_func) for (loc = 0; strcmp (TST_HEAD (o_func).locale, TST_LOC_end); ++loc)
- #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; }
- # 110 "tst_funcs.h"
- #define TST_DO_REC(ofunc) for (rec=0; !TST_IS_LAST (ofunc); ++rec)
- #define TST_DO_SEQ(_count_) for (seq_num=0; seq_num < _count_; seq_num++)
- #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
- #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
- #define TST_CLEAR_ERRNO errno = 0
- #define TST_SAVE_ERRNO errno_save = errno
- #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
- # 165 "tst_funcs.h"
- #define TEX_ERRET_REC(_type_) struct { TMD_ERRET (_type_); }
- #define TEX_ERRET_REC_SEQ(_type_,_count_) struct { struct { TMD_ERRET (_type_); } seq[ _count_ ]; }
- # 181 "tst_funcs.h"
- #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_)
- # 190 "tst_funcs.h"
- #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; }
- # 235 "tst_funcs.h"
- #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_)
- # 244 "tst_funcs.h"
- #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; }
- # 17 "tst_types.h" 2
- # 1 "tgn_funcdef.h" 1
- #define TGN_FUNCDEF_H
- #define Tiswalnum 1
- #define Tiswalpha 2
- #define Tiswcntrl 3
- #define Tiswctype 4
- #define Tiswdigit 5
- #define Tiswgraph 6
- #define Tiswlower 7
- #define Tiswprint 8
- #define Tiswpunct 9
- #define Tiswspace 10
- #define Tiswupper 11
- #define Tiswxdigit 12
- #define Tmblen 13
- #define Tmbrlen 14
- #define Tmbrtowc 15
- #define Tmbsrtowcs 16
- #define Tmbstowcs 17
- #define Tmbtowc 18
- #define Tstrcoll 19
- #define Tstrfmon 20
- #define Tstrxfrm 21
- #define Tswscanf 22
- #define Ttowctrans 23
- #define Ttowlower 24
- #define Ttowupper 25
- #define Twcrtomb 26
- #define Twcscat 27
- #define Twcschr 28
- #define Twcscmp 29
- #define Twcscoll 30
- #define Twcscpy 31
- #define Twcscspn 32
- #define Twcslen 33
- #define Twcsncat 34
- #define Twcsncmp 35
- #define Twcsncpy 36
- #define Twcspbrk 37
- #define Twcsrtombs 38
- #define Twcsspn 39
- #define Twcsstr 40
- #define Twcstod 41
- #define Twcstok 42
- #define Twcstombs 43
- #define Twcswidth 44
- #define Twcsxfrm 45
- #define Twctob 46
- #define Twctomb 47
- #define Twctrans 48
- #define Twctype 49
- #define Twcwidth 50
- #define S_ISWALNUM "iswalnum"
- #define S_ISWALPHA "iswalpha"
- #define S_ISWCNTRL "iswcntrl"
- #define S_ISWCTYPE "iswctype"
- #define S_ISWDIGIT "iswdigit"
- #define S_ISWGRAPH "iswgraph"
- #define S_ISWLOWER "iswlower"
- #define S_ISWPRINT "iswprint"
- #define S_ISWPUNCT "iswpunct"
- #define S_ISWSPACE "iswspace"
- #define S_ISWUPPER "iswupper"
- #define S_ISWXDIGIT "iswxdigit"
- #define S_MBLEN "mblen"
- #define S_MBRLEN "mbrlen"
- #define S_MBRTOWC "mbrtowc"
- #define S_MBSRTOWCS "mbsrtowcs"
- #define S_MBSTOWCS "mbstowcs"
- #define S_MBTOWC "mbtowc"
- #define S_STRCOLL "strcoll"
- #define S_STRFMON "strfmon"
- #define S_STRXFRM "strxfrm"
- #define S_SWSCANF "swscanf"
- #define S_TOWCTRANS "towctrans"
- #define S_TOWLOWER "towlower"
- #define S_TOWUPPER "towupper"
- #define S_WCRTOMB "wcrtomb"
- #define S_WCSCAT "wcscat"
- #define S_WCSCHR "wcschr"
- #define S_WCSCMP "wcscmp"
- #define S_WCSCOLL "wcscoll"
- #define S_WCSCPY "wcscpy"
- #define S_WCSCSPN "wcscspn"
- #define S_WCSLEN "wcslen"
- #define S_WCSNCAT "wcsncat"
- #define S_WCSNCMP "wcsncmp"
- #define S_WCSNCPY "wcsncpy"
- #define S_WCSPBRK "wcspbrk"
- #define S_WCSRTOMBS "wcsrtombs"
- #define S_WCSSPN "wcsspn"
- #define S_WCSSTR "wcsstr"
- #define S_WCSTOD "wcstod"
- #define S_WCSTOK "wcstok"
- #define S_WCSTOMBS "wcstombs"
- #define S_WCSWIDTH "wcswidth"
- #define S_WCSXFRM "wcsxfrm"
- #define S_WCTOB "wctob"
- #define S_WCTOMB "wctomb"
- #define S_WCTRANS "wctrans"
- #define S_WCTYPE "wctype"
- #define S_WCWIDTH "wcwidth"
- extern int tst_iswalnum (FILE *, int);
- extern int tst_iswalpha (FILE *, int);
- extern int tst_iswcntrl (FILE *, int);
- extern int tst_iswctype (FILE *, int);
- extern int tst_iswdigit (FILE *, int);
- extern int tst_iswgraph (FILE *, int);
- extern int tst_iswlower (FILE *, int);
- extern int tst_iswprint (FILE *, int);
- extern int tst_iswpunct (FILE *, int);
- extern int tst_iswspace (FILE *, int);
- extern int tst_iswupper (FILE *, int);
- extern int tst_iswxdigit (FILE *, int);
- extern int tst_mblen (FILE *, int);
- extern int tst_mbrlen (FILE *, int);
- extern int tst_mbrtowc (FILE *, int);
- extern int tst_mbsrtowcs (FILE *, int);
- extern int tst_mbstowcs (FILE *, int);
- extern int tst_mbtowc (FILE *, int);
- extern int tst_strcoll (FILE *, int);
- extern int tst_strfmon (FILE *, int);
- extern int tst_strxfrm (FILE *, int);
- extern int tst_swscanf (FILE *, int);
- extern int tst_towctrans (FILE *, int);
- extern int tst_towlower (FILE *, int);
- extern int tst_towupper (FILE *, int);
- extern int tst_wcrtomb (FILE *, int);
- extern int tst_wcscat (FILE *, int);
- extern int tst_wcschr (FILE *, int);
- extern int tst_wcscmp (FILE *, int);
- extern int tst_wcscoll (FILE *, int);
- extern int tst_wcscpy (FILE *, int);
- extern int tst_wcscspn (FILE *, int);
- extern int tst_wcslen (FILE *, int);
- extern int tst_wcsncat (FILE *, int);
- extern int tst_wcsncmp (FILE *, int);
- extern int tst_wcsncpy (FILE *, int);
- extern int tst_wcspbrk (FILE *, int);
- extern int tst_wcsrtombs (FILE *, int);
- extern int tst_wcsspn (FILE *, int);
- extern int tst_wcsstr (FILE *, int);
- extern int tst_wcstod (FILE *, int);
- extern int tst_wcstok (FILE *, int);
- extern int tst_wcstombs (FILE *, int);
- extern int tst_wcswidth (FILE *, int);
- extern int tst_wcsxfrm (FILE *, int);
- extern int tst_wctob (FILE *, int);
- extern int tst_wctomb (FILE *, int);
- extern int tst_wctrans (FILE *, int);
- extern int tst_wctype (FILE *, int);
- extern int tst_wcwidth (FILE *, int);
- # 18 "tst_types.h" 2
- #define MBSSIZE 24
- #define WCSSIZE 12
- #define MONFMTSIZE 16
- #define MONSIZE 64
- #define USE_MBCURMAX 99
- #define TST_DBL_EPS 2.22153e-16
- #define WCSTOK_SEQNUM 3
- #define MBLEN_SEQNUM 3
- #define MBTOWC_SEQNUM 3
- #define MBSTOWCS_SEQNUM 3
- #define WCTOMB_SEQNUM 3
- #define WCSTOMBS_SEQNUM 3
- #define MBRLEN_SEQNUM 3
- #define MBRTOWC_SEQNUM 3
- #define MBSRTOWCS_SEQNUM 3
- #define WCRTOMB_SEQNUM 3
- #define WCSRTOMBS_SEQNUM 3
- #define MAX_LOC_TEST 300
- typedef struct
- {
- char *func_str;
- int func_id;
- }
- TST_FID;
- typedef struct
- {
- int func_id;
- const char *locale;
- }
- TST_HEAD;
- typedef struct
- {
- TST_HEAD *head;
- }
- TST_FUNCS;
- 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;
- 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;
- 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;
- 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;
- 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;
- 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;
- 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;
- 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;
- 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;
- 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;
- 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;
- typedef struct
- {
- wint_t wc;
- const char *ts;
- }
- TIN_ISWCTYPE_REC;
- typedef
- struct { int err_val; int ret_flg; int ret_val; }
- TEX_ISWCTYPE_REC;
- 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;
- typedef struct
- {
- char s_flg;
- char s[24];
- size_t n;
- }
- TIN_MBLEN_REC;
- typedef struct { int err_val; int ret_flg; int ret_val; } TEX_MBLEN_REC;
- 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;
- typedef struct
- {
- struct
- {
- int s_flg;
- char s[24];
- size_t n;
- int t_flg;
- int t_init;
- }
- seq[3];
- }
- TIN_MBRLEN_REC;
- typedef struct { struct { int err_val; int ret_flg; size_t ret_val; } seq[ 3 ]; } TEX_MBRLEN_REC;
- 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;
- typedef struct
- {
- struct
- {
- int w_flg;
- int s_flg;
- char s[24];
- size_t n;
- int t_flg;
- int t_init;
- }
- seq[3];
- }
- TIN_MBRTOWC_REC;
- typedef struct
- {
- struct
- {
- int err_val; int ret_flg; size_t ret_val;
- wchar_t wc;
- }
- seq[3];
- }
- TEX_MBRTOWC_REC;
- 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;
- typedef struct
- {
- struct
- {
- int w_flg;
- char s[24];
- size_t n;
- int t_flg;
- int t_init;
- }
- seq[3];
- }
- TIN_MBSRTOWCS_REC;
- typedef struct
- {
- struct
- {
- int err_val; int ret_flg; size_t ret_val;
- wchar_t ws[12];
- }
- seq[3];
- }
- TEX_MBSRTOWCS_REC;
- 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;
- typedef struct
- {
- struct
- {
- int w_flg;
- int s_flg;
- const char *s;
- size_t n;
- }
- seq[3];
- }
- TIN_MBSTOWCS_REC;
- typedef TEX_MBSRTOWCS_REC TEX_MBSTOWCS_REC;
- 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;
- typedef TIN_MBSTOWCS_REC TIN_MBTOWC_REC;
- typedef struct
- {
- struct
- {
- int err_val; int ret_flg; int ret_val;
- wchar_t wc;
- }
- seq[3];
- }
- TEX_MBTOWC_REC;
- 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;
- typedef struct
- {
- char s1[24];
- char s2[24];
- }
- TIN_STRCOLL_REC;
- typedef struct { int err_val; int ret_flg; int ret_val; } TEX_STRCOLL_REC;
- 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;
- typedef struct
- {
- int nbytes;
- char fmt[16];
- double val;
- }
- TIN_STRFMON_REC;
- typedef struct
- {
- int err_val; int ret_flg; size_t ret_val;
- char mon[64];
- }
- TEX_STRFMON_REC;
- 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;
- typedef struct
- {
- char org1[24];
- char org2[24];
- size_t n1, n2;
- }
- TIN_STRXFRM_REC;
- typedef struct { int err_val; int ret_flg; size_t ret_val; } TEX_STRXFRM_REC;
- 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;
- typedef struct
- {
- wchar_t ws[12 * 3];
- wchar_t fmt[12 * 3];
- int wch;
- }
- TIN_SWSCANF_REC;
- typedef struct
- {
- int err_val; int ret_flg; int ret_val;
- int val_int;
- unsigned val_uns;
- float val_flt;
- int val_c;
- char val_s[24 * 2];
- wchar_t val_S[12 * 2];
- }
- TEX_SWSCANF_REC;
- 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;
- typedef TIN_ISWCTYPE_REC TIN_TOWCTRANS_REC;
- typedef struct { int err_val; int ret_flg; wint_t ret_val; } TEX_TOWCTRANS_REC;
- 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;
- 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;
- 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;
- typedef struct
- {
- int s_flg;
- wchar_t wc;
- int t_flg;
- int t_init;
- }
- TIN_WCRTOMB_REC;
- typedef struct
- {
- int err_val; int ret_flg; wchar_t ret_val;
- char s[24];
- }
- TEX_WCRTOMB_REC;
- 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;
- typedef struct
- {
- wchar_t ws1[12];
- wchar_t ws2[12];
- }
- TIN_WCSCAT_REC;
- typedef struct
- {
- int err_val; int ret_flg; wchar_t * ret_val;
- wchar_t ws[12];
- }
- TEX_WCSCAT_REC;
- 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;
- typedef struct
- {
- wchar_t ws[12];
- wchar_t wc;
- }
- TIN_WCSCHR_REC;
- typedef struct { int err_val; int ret_flg; wchar_t * ret_val; } TEX_WCSCHR_REC;
- 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;
- typedef TIN_WCSCAT_REC TIN_WCSCMP_REC;
- typedef struct { int err_val; int ret_flg; int ret_val; } TEX_WCSCMP_REC;
- 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;
- typedef TIN_WCSCMP_REC TIN_WCSCOLL_REC;
- typedef struct
- {
- int err_val; int ret_flg; int ret_val;
- int cmp_flg;
- }
- TEX_WCSCOLL_REC;
- 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;
- typedef struct
- {
- wchar_t ws[12];
- }
- TIN_WCSCPY_REC;
- typedef TEX_WCSCAT_REC TEX_WCSCPY_REC;
- 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;
- typedef TIN_WCSCAT_REC TIN_WCSCSPN_REC;
- typedef struct { int err_val; int ret_flg; size_t ret_val; } TEX_WCSCSPN_REC;
- 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;
- typedef TIN_WCSCPY_REC TIN_WCSLEN_REC;
- typedef struct { int err_val; int ret_flg; size_t ret_val; } TEX_WCSLEN_REC;
- 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;
- typedef struct
- {
- wchar_t ws1[12];
- wchar_t ws2[12];
- size_t n;
- }
- TIN_WCSNCAT_REC;
- typedef TEX_WCSCAT_REC TEX_WCSNCAT_REC;
- 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;
- typedef TIN_WCSNCAT_REC TIN_WCSNCMP_REC;
- typedef struct { int err_val; int ret_flg; int ret_val; } TEX_WCSNCMP_REC;
- 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;
- typedef struct
- {
- wchar_t ws[12];
- size_t n;
- }
- TIN_WCSNCPY_REC;
- typedef TEX_WCSCPY_REC TEX_WCSNCPY_REC;
- 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;
- typedef TIN_WCSCSPN_REC TIN_WCSPBRK_REC;
- typedef struct
- {
- int err_val; int ret_flg; wchar_t * ret_val;
- wchar_t wc;
- }
- TEX_WCSPBRK_REC;
- 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;
- typedef struct
- {
- int s_flg;
- int w_flg;
- wchar_t ws[12];
- size_t n;
- int t_flg;
- int t_init;
- }
- TIN_WCSRTOMBS_REC;
- typedef struct
- {
- int err_val; int ret_flg; size_t ret_val;
- char s[24];
- }
- TEX_WCSRTOMBS_REC;
- 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;
- typedef TIN_WCSCSPN_REC TIN_WCSSPN_REC;
- typedef TEX_WCSCSPN_REC TEX_WCSSPN_REC;
- 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;
- typedef TIN_WCSCSPN_REC TIN_WCSSTR_REC;
- typedef struct { int err_val; int ret_flg; wchar_t * ret_val; } TEX_WCSSTR_REC;
- 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;
- typedef struct
- {
- wchar_t np[12];
- }
- TIN_WCSTOD_REC;
- typedef struct
- {
- int err_val; int ret_flg; double ret_val;
- double val;
- wchar_t fwc;
- }
- TEX_WCSTOD_REC;
- 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;
- typedef struct
- {
- struct
- {
- int w_flg;
- wchar_t ws[12];
- wchar_t dt[12];
- }
- seq[3];
- }
- TIN_WCSTOK_REC;
- typedef struct
- {
- struct
- {
- int err_val; int ret_flg; wchar_t * ret_val;
- wchar_t ws[12];
- }
- seq[3];
- }
- TEX_WCSTOK_REC;
- 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;
- typedef struct
- {
- int s_flg;
- int w_flg;
- wchar_t ws[12];
- size_t n;
- }
- TIN_WCSTOMBS_REC;
- typedef struct
- {
- int err_val; int ret_flg; size_t ret_val;
- char s[24];
- }
- TEX_WCSTOMBS_REC;
- 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;
- typedef TIN_WCSNCPY_REC TIN_WCSWIDTH_REC;
- typedef struct { int err_val; int ret_flg; int ret_val; } TEX_WCSWIDTH_REC;
- 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;
- typedef struct
- {
- wchar_t org1[12];
- wchar_t org2[12];
- int n1, n2;
- }
- TIN_WCSXFRM_REC;
- typedef struct { int err_val; int ret_flg; size_t ret_val; } TEX_WCSXFRM_REC;
- 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;
- typedef struct
- {
- wint_t wc;
- }
- TIN_WCTOB_REC;
- typedef struct { int err_val; int ret_flg; int ret_val; } TEX_WCTOB_REC;
- 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;
- typedef struct
- {
- int s_flg;
- wchar_t wc;
- }
- TIN_WCTOMB_REC;
- typedef struct
- {
- int err_val; int ret_flg; int ret_val;
- char s[24];
- }
- TEX_WCTOMB_REC;
- 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;
- typedef struct
- {
- char class[24];
- }
- TIN_WCTRANS_REC;
- typedef struct { int err_val; int ret_flg; wctrans_t ret_val; } TEX_WCTRANS_REC;
- 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;
- typedef TIN_WCTRANS_REC TIN_WCTYPE_REC;
- typedef struct { int err_val; int ret_flg; wctype_t ret_val; } TEX_WCTYPE_REC;
- 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;
- typedef struct
- {
- wchar_t wc;
- }
- TIN_WCWIDTH_REC;
- typedef struct { int err_val; int ret_flg; int ret_val; } TEX_WCWIDTH_REC;
- 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;
- # 18 "tsp_common.c" 2
- # 1 "tgn_locdef.h" 1
- #define TGN_LOCDEF_H
- #define TST_LOC_C "C"
- #define TST_LOC_de "de_DE.ISO-8859-1"
- #define TST_LOC_enUS "en_US.ANSI_X3.4-1968"
- #define TST_LOC_eucJP "ja_JP.EUC-JP"
- #define TST_LOC_de_UTF8 "de_DE.UTF-8"
- #define TST_LOC_end "lastEntry"
- # 19 "tsp_common.c" 2
- int
- main (int argc, char *argv[])
- {
- int ret;
- int debug;
- debug = argc > 1 ? atoi (argv[1]) : 0;
- if (debug)
- {
- fprintf (stdout, "\nTST_MBWC ===> %s ...\n", argv[0]);
- }
- ret = tst_mbrlen (stdout, debug);
- return (ret != 0);
- }
- #define MAX_RESULT_REC 132
- char result_rec[132];
- int
- result (FILE * fp, char res, const char *func, const char *loc, int rec_no,
- int seq_no, int case_no, const char *msg)
- {
- if (fp == ((void *)0)
- || strlen (func) + strlen (loc) + strlen (msg) + 32 > 132)
- {
- fprintf (stderr,
- "Warning: result(): can't write the result: %s:%s:%d:%d:%s\n",
- func, loc, rec_no, case_no, msg);
- return 0;
- }
- sprintf (result_rec, "%s:%s:%d:%d:%d:%c:%s\n", func, loc, rec_no, seq_no,
- case_no, res, msg);
- if (fputs (result_rec, fp) == (-1))
- {
- return 0;
- }
- return 1;
- }
- # 8 "tst_mbrlen.c" 2
- # 1 "dat_mbrlen.c" 1
- # 19 "dat_mbrlen.c"
- TST_MBRLEN tst_mbrlen_loc [] = {
- {
- { 14, "de_DE.ISO-8859-1" },
- {
- {
- {
- {
- { 1, "", 0, 0, 0 },
- { 1, "", 1, 0, 0 },
- { 1, "\300", 99, 0, 0 },
- }
- },
- {
- {
- { 0, 1, 0, },
- { 0, 1, 0, },
- { 0, 1, 1, },
- }
- }
- },
- {
- {
- {
- { 1, "\300\001", 0, 0, 0 },
- { 1, "\300\001", 1, 0, 0 },
- { 1, "\317\001", 99, 0, 0 },
- }
- },
- {
- {
- { 0, 1, 0, },
- { 0, 1, 1, },
- { 0, 1, 1, },
- }
- }
- },
- { .is_last = 1 }
- }
- },
- {
- { 14, "en_US.ANSI_X3.4-1968" },
- {
- {
- {
- {
- { 1, "A", 0, 0, 0 },
- { 1, "A", 1, 0, 0 },
- { 1, "A", 99, 0, 0 },
- }
- },
- {
- {
- { 0, 1, 0, },
- { 0, 1, 1, },
- { 0, 1, 1, },
- }
- }
- },
- {
- {
- {
- { 1, "\317\001", 0, 1, 0 },
- { 1, "\317\001", 1, 1, 0 },
- { 1, "\317\001", 99, 1, 0 },
- }
- },
- {
- {
- { 0, 1, 0, },
- { 84, 1, -1, },
- { 84, 1, -1, },
- }
- }
- },
- { .is_last = 1 }
- }
- },
- {
- { 14, "ja_JP.EUC-JP" },
- {
- {
- {
- {
- { 1, "\317\302", 1, 1, 1 },
- { 0, "", 0, 1, 0 },
- { 1, "\317\302", 99, 1, 1 },
- }
- },
- {
- {
- { 0, 1, -2, },
- { 0, 1, -1, },
- { 0, 1, 2, },
- }
- }
- },
- {
- {
- {
- { 1, "\317", 1, 1, 0 },
- { 1, "\302", 1, 1, 0 },
- { 1, "\317\302", 99, 0, 0 },
- }
- },
- {
- {
- { 0, 1, -2, },
- { 0, 1, +1, },
- { 0, 1, 2, },
- }
- }
- },
- {
- {
- {
- { 1, "\216\217", 0, 0, 0 },
- { 1, "\216\217", 1, 0, 0 },
- { 1, "\216\217", 99, 0, 0 },
- }
- },
- {
- {
- { 0, 1, 0, },
- { 0, 1, -2, },
- { 84, 1, -1, },
- }
- }
- },
- { .is_last = 1 }
- }
- },
- {
- { 14, "lastEntry" }
- }
- };
- # 9 "tst_mbrlen.c" 2
- int
- tst_mbrlen (FILE * fp, int debug_flg)
- {
- 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;
- char s_flg;
- const char *s_in;
- size_t n;
- char t_flg;
- char t_ini;
- static mbstate_t s = { 0 };
- mbstate_t *ps;
- for (loc = 0; strcmp (tst_mbrlen_loc[ loc ].hd.locale, "lastEntry"); ++loc)
- {
- 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; };
- for (rec=0; !tst_mbrlen_loc[ loc ].rec[ rec ].is_last; ++rec)
- {
- if (mbrlen (((void *)0), 0, &s) != 0)
- {
- err_count++;
- result (fp, ('F'), ("mbrlen"), locale, rec+1, seq_num+1, (3), ("Initialization (external mbstate object) failed " "- skipped this test case."));
- continue;
- }
- for (seq_num=0; seq_num < 3; seq_num++)
- {
- 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;
- s_flg = tst_mbrlen_loc[ loc ].rec[ rec ].input.seq[ seq_num ].s_flg;
- s_in = tst_mbrlen_loc[ loc ].rec[ rec ].input.seq[ seq_num ].s;
- n = tst_mbrlen_loc[ loc ].rec[ rec ].input.seq[ seq_num ].n;
- t_flg = tst_mbrlen_loc[ loc ].rec[ rec ].input.seq[ seq_num ].t_flg;
- t_ini = tst_mbrlen_loc[ loc ].rec[ rec ].input.seq[ seq_num ].t_init;
- if (s_flg == 0)
- {
- s_in = ((void *)0);
- }
- fprintf(stdout, "n = %d.\n", n);
- if (n == 99)
- {
- n = (_stdlib_mb_cur_max ());
- }
- ps = (t_flg == 0) ? ((void *)0) : &s;
- if (t_ini != 0)
- {
- memset (&s, 0, sizeof (s));
- mbrlen (((void *)0), 0, ((void *)0));
- }
- __libc_errno = 0;
- ret = mbrlen (s_in, n, ps);
- errno_save = __libc_errno;
- fprintf(stdout, "s_in = %c, n = %d, t_ini = %d, s_flg = %d, t_flg = %d, MB_CUR_MAX = %d.\n",
- s_in, n, t_ini, s_flg, t_flg, (_stdlib_mb_cur_max ()));
- if (debug_flg)
- {
- fprintf (stdout, "mbrlen() [ %s : %d : %d ] ret = %zd\n",
- locale, rec + 1, seq_num + 1, ret);
- fprintf (stdout, " errno = %d\n", errno_save);
- }
- 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
- {
- };
- }
- }
- }
- return err_count;
- }
|