ChangeLog.nptl 502 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230
  1. This file describes changes to the nptl/ subdirectory prior to 2014-03-03.
  2. Later nptl/ changes go into the top-level ChangeLog file, not here.
  3. 2014-02-28 Roland McGrath <roland@hack.frob.com>
  4. * Makefile (generated-dirs): Use += rather than =.
  5. 2014-02-26 Joseph Myers <joseph@codesourcery.com>
  6. * Makefile: Include Makeconfig immediately after defining subdir.
  7. 2014-02-21 Joseph Myers <joseph@codesourcery.com>
  8. * Makefile ($(objpfx)tst-stack3-mem): Use $(evaluate-test).
  9. ($(objpfx)tst-tls6.out): Likewise.
  10. ($(objpfx)tst-cleanup0.out): Likewise.
  11. ($(objpfx)tst-cleanup0-cmp.out): Likewise.
  12. ($(objpfx)tst-cancel-wrappers.out): Likewise.
  13. ($(objpfx)tst-oddstacklimit.out): Likewise.
  14. 2014-02-14 Joseph Myers <joseph@codesourcery.com>
  15. * Makefile ($(objpfx)tst-cleanup0.out): Do not run cmp.
  16. [$(run-built-tests) = yes] (tests): Depend on
  17. $(objpfx)tst-cleanup0-cmp.out.
  18. ($(objpfx)tst-cleanup0-cmp.out): New rule.
  19. 2014-02-10 Ondřej Bílka <neleai@seznam.cz>
  20. * allocatestack.c (queue_stack, allocate_stack,
  21. __deallocate_stack, __reclaim_stacks): Use glibc_likely instead
  22. __builtin_expect.
  23. * cancellation.c (__pthread_enable_asynccancel,
  24. __pthread_disable_asynccancel): Likewise.
  25. * cleanup_defer.c (__pthread_register_cancel_defer,
  26. __pthread_unregister_cancel_restore): Likewise.
  27. * cleanup_defer_compat.c (_pthread_cleanup_push_defer,
  28. _pthread_cleanup_pop_restore): Likewise.
  29. * cond-perf.c (main): Likewise.
  30. * nptl-init.c (sigcancel_handler, sighandler_setxid): Likewise.
  31. * perf.c (get_clockfreq): Likewise.
  32. * pthread_barrier_destroy.c (pthread_barrier_destroy): Likewise.
  33. * pthread_barrier_init.c (pthread_barrier_init): Likewise.
  34. * pthread_cond_timedwait.c (__pthread_cond_timedwait): Likewise.
  35. * pthread_cond_wait.c (__pthread_cond_wait): Likewise.
  36. * pthread_create.c (__free_tcb, start_thread, __pthread_create_2_1):
  37. Likewise.
  38. * pthread_getattr_np.c (pthread_getattr_np): Likewise.
  39. * pthread_getspecific.c (__pthread_getspecific): Likewise.
  40. * pthread_join.c (pthread_join): Likewise.
  41. * pthread_key_delete.c (pthread_key_delete): Likewise.
  42. * pthread_mutex_init.c (__pthread_mutex_init): Likewise.
  43. * pthread_mutex_lock.c (__pthread_mutex_lock,
  44. __pthread_mutex_lock_full): Likewise.
  45. * pthread_mutex_timedlock.c (pthread_mutex_timedlock): Likewise.
  46. * pthread_mutex_trylock.c (__pthread_mutex_trylock): Likewise.
  47. * pthread_mutex_unlock.c (__pthread_mutex_unlock_usercnt): Likewise.
  48. * pthread_rwlock_rdlock.c (__pthread_rwlock_rdlock): Likewise.
  49. * pthread_rwlock_timedrdlock.c (pthread_rwlock_timedrdlock): Likewise.
  50. * pthread_rwlock_timedwrlock.c (pthread_rwlock_timedwrlock): Likewise.
  51. * pthread_rwlock_tryrdlock.c (__pthread_rwlock_tryrdlock): Likewise.
  52. * pthread_setcancelstate.c (__pthread_setcancelstate): Likewise.
  53. * pthread_setcanceltype.c (__pthread_setcanceltype): Likewise.
  54. * pthread_setschedprio.c (pthread_setschedprio): Likewise.
  55. * pthread_setspecific.c (__pthread_setspecific): Likewise.
  56. * sem_init.c (__new_sem_init): Likewise.
  57. * sem_open.c (__where_is_shmfs): Likewise.
  58. * sigaction.c: Likewise.
  59. * sockperf.c (get_clockfreq): Likewise.
  60. * sysdeps/pthread/createthread.c (do_clone, create_thread): Likewise.
  61. * sysdeps/pthread/setxid.h: Likewise.
  62. * sysdeps/pthread/timer_create.c (timer_create): Likewise.
  63. * sysdeps/pthread/unwind-forcedunwind.c (pthread_cancel_init,
  64. __unwind_freeres, _Unwind_Resume, __gcc_personality_v0,
  65. _Unwind_ForcedUnwind): Likewise.
  66. * sysdeps/unix/sysv/linux/getpid.c (__getpid): Likewise.
  67. * sysdeps/unix/sysv/linux/lowlevelrobustlock.c
  68. (__lll_robust_lock_wait, __lll_robust_timedlock_wait): Likewise.
  69. * sysdeps/unix/sysv/linux/mq_notify.c (mq_notify): Likewise.
  70. * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Likewise.
  71. * sysdeps/unix/sysv/linux/pthread_kill.c (__pthread_kill): Likewise.
  72. * sysdeps/unix/sysv/linux/pthread_setaffinity.c
  73. (__pthread_setaffinity_new): Likewise.
  74. * sysdeps/unix/sysv/linux/pthread_sigqueue.c (pthread_sigqueue):
  75. Likewise.
  76. * sysdeps/unix/sysv/linux/pt-raise.c (raise): Likewise.
  77. * sysdeps/unix/sysv/linux/raise.c (raise): Likewise.
  78. * sysdeps/unix/sysv/linux/s390/lowlevellock.h (__lll_robust_trylock,
  79. __lll_robust_lock, __lll_cond_lock, __lll_robust_timedlock): Likewise.
  80. * sysdeps/unix/sysv/linux/sparc/lowlevellock.h (__lll_lock,
  81. __lll_cond_lock, __lll_timedlock, __lll_robust_timedlock): Likewise.
  82. * sysdeps/unix/sysv/linux/sparc/pthread_barrier_destroy.c
  83. (pthread_barrier_destroy): Likewise.
  84. * sysdeps/unix/sysv/linux/sparc/pthread_barrier_init.c
  85. (pthread_barrier_init): Likewise.
  86. * sysdeps/unix/sysv/linux/sparc/sem_init.c (__new_sem_init): Likewise.
  87. * sysdeps/unix/sysv/linux/x86_64/timer_create.c (__timer_create_old):
  88. Likewise.
  89. * unwind.c (unwind_stop): Likewise.
  90. 2014-02-08 Mike Frysinger <vapier@gentoo.org>
  91. * sem_open.c (__where_is_shmfs): Compare f.f_type to RAMFS_MAGIC too.
  92. 2014-02-05 Carlos O'Donell <carlos@redhat.com>
  93. * sysdeps/unix/sysv/linux/tst-setgetname.c (do_test): Skip the
  94. test if !__ASSUME_PROC_PID_TASK_COMM and get_self_comm returns
  95. ENOENT.
  96. 2014-01-23 Stefan Liebler <stli@linux.vnet.ibm.com>
  97. * tst-tls7.c: Adjust testcase timeout
  98. 2014-01-18 H.J. Lu <hongjiu.lu@intel.com>
  99. [BZ #14782]
  100. * tst-cancel-wrappers.sh: Remove system.
  101. 2014-01-11 Paul Pluzhnikov <ppluzhnikov@google.com>
  102. * tst-tls7.c (action): New function.
  103. (do_test): Call it.
  104. * tst-tls7mod.c (action): Move sem_post to caller.
  105. 2011-12-12 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
  106. * sysdeps/powerpc/tls.h (struct tcbhead_t): Add DSO and TAR fields.
  107. * nptl/sysdeps/powerpc/tcb-offsets.sym: Likewise.
  108. 2013-12-09 Carlos O'Donell <carlos@redhat.com>
  109. * sysdeps/unix/sysv/linux/tst-setgetname.c: New file.
  110. * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-setgetname.
  111. 2013-12-09 Andreas Schwab <schwab@suse.de>
  112. [BZ #15843]
  113. * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S
  114. (__pthread_cond_timedwait): Remove wrong cfi_adjust_cfa_offset
  115. before __condvar_tw_cleanup2 label.
  116. 2013-12-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
  117. * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h
  118. (CANCEL_FRAMESIZE, CANCEL_PARM_SAVE): New macros to save parameters
  119. into our own stack frame instead of the caller's.
  120. (PSEUDO): Use them. Use symbolic stack frame offsets.
  121. (DOCARGS_1, UNDOCARGS_1): Use CANCEL_PARM_SAVE.
  122. (DOCARGS_2, UNDOCARGS_2): Likewise.
  123. (DOCARGS_3, UNDOCARGS_3): Likewise.
  124. (DOCARGS_4, UNDOCARGS_4): Likewise.
  125. (DOCARGS_5, UNDOCARGS_5): Likewise.
  126. (DOCARGS_6, UNDOCARGS_6): Likewise.
  127. 2013-11-26 Ondřej Bílka <neleai@seznam.cz>
  128. * sysdeps/i386/tls.h: Use __glibc_reserved instead __unused.
  129. * sysdeps/x86_64/tls.h: Likewise.
  130. 2013-11-25 Paul Pluzhnikov <ppluzhnikov@google.com>
  131. [BZ #11214]
  132. * Makefile (tst-getpid2-ENV): New variable.
  133. 2013-11-20 Paul Pluzhnikov <ppluzhnikov@google.com>
  134. * Makefile (tst-cleanup2, tst-cleanupx2): Add -fno-builtin
  135. 2013-10-30 Mike Frysinger <vapier@gentoo.org>
  136. * sysdeps/pthread/configure.in: Moved to ...
  137. * sysdeps/pthread/configure.ac: ... here.
  138. * sysdeps/x86_64/configure.in: Moved to ...
  139. * sysdeps/x86_64/configure.ac: ... here.
  140. * sysdeps/pthread/configure: Regenerated.
  141. * sysdeps/x86_64/configure: Likewise.
  142. 2013-10-04 Maciej W. Rozycki <macro@codesourcery.com>
  143. * tst-mutex8.c (check_type) [ENABLE_PI]: Handle ENOTSUP failure
  144. from pthread_mutex_init.
  145. 2013-10-01 Siddhesh Poyarekar <siddhesh@redhat.com>
  146. [BZ #15988]
  147. * pthread_cond_broadcast.c (__pthread_cond_broadcast)
  148. [lll_futex_cmp_requeue_pi && __ASSUME_REQUEUE_PI]: Use
  149. USE_REQUEUE_PI.
  150. * pthread_cond_signal.c (__pthread_cond_signal)
  151. [lll_futex_cmd_requeue_pi && __ASSUME_REQUEUE_PI]: Likewise.
  152. 2013-09-27 Siddhesh Poyarekar <siddhesh@redhat.com>
  153. * sysdeps/pthread/bits/libc-lock.h [_LIBC && (!NOT_IN_libc ||
  154. IS_IN_libpthread)] (__libc_lock_fini_recursive): Use the mutex
  155. member of the argument.
  156. (__libc_lock_trylock_recursive): Likewise.
  157. (__libc_lock_unlock_recursive): Likewise.
  158. 2013-09-04 Joseph Myers <joseph@codesourcery.com>
  159. * sysdeps/unix/sysv/linux/x86_64/cancellation.S
  160. [SHARED && DO_VERSIONING && !NO_HIDDEN]: Change conditional to
  161. [SHARED && !NO_HIDDEN].
  162. 2013-09-03 Siddhesh Poyarekar <siddhesh@redhat.com>
  163. [BZ #15921]
  164. * tst-cleanup2.c (do_test): New volatile variable RET to
  165. return success.
  166. 2013-08-30 Ondřej Bílka <neleai@seznam.cz>
  167. * sysdeps/pthread/pthread.h: Fix typos.
  168. * sysdeps/unix/sysv/linux/internaltypes.h: Likewise.
  169. * tst-cancel4.c: Likewise.
  170. 2013-08-21 Ondřej Bílka <neleai@seznam.cz>
  171. * pthread_getschedparam.c: Fix typos.
  172. * sysdeps/unix/sysv/linux/register-atfork.c: Likewise.
  173. 2013-07-23 David S. Miller <davem@davemloft.net>
  174. * tst-cancel4.c (WRITE_BUFFER_SIZE): Adjust comment.
  175. 2013-07-22 David S. Miller <davem@davemloft.net>
  176. * tst-cancel4.c (WRITE_BUFFER_SIZE): Increase to 16384.
  177. 2013-07-19 Dominik Vogt <vogt@de.ibm.com>
  178. * pthread_mutex_lock.c: Fix whitespace.
  179. * pthread_mutex_trylock.c: Likewise.
  180. * sysdeps/unix/sysv/linux/x86/bits/pthreadtypes.h: Likewise.
  181. * sysdeps/unix/sysv/linux/x86/elision-conf.c: Likewise.
  182. * sysdeps/unix/sysv/linux/x86/elision-conf.h: Likewise.
  183. * sysdeps/unix/sysv/linux/x86/elision-lock.c: Likewise.
  184. * sysdeps/unix/sysv/linux/x86/elision-timed.c: Likewise.
  185. * sysdeps/unix/sysv/linux/x86/elision-trylock.c: Likewise.
  186. * sysdeps/unix/sysv/linux/x86/force-elision.h: Likewise.
  187. * sysdeps/unix/sysv/linux/x86/hle.h: Likewise.
  188. * sysdeps/unix/sysv/linux/x86/pthread_mutex_cond_lock.c: Likewise.
  189. * sysdeps/unix/sysv/linux/x86/pthread_mutex_lock.c: Likewise.
  190. * sysdeps/unix/sysv/linux/x86/pthread_mutex_timedlock.c: Likewise.
  191. * sysdeps/unix/sysv/linux/x86/pthread_mutex_trylock.c: Likewise.
  192. * sysdeps/unix/sysv/linux/x86/elision-conf.c:
  193. Remove __rwlock_rtm_enabled and __rwlock_rtm_read_retries.
  194. (elision_init): Don't set __rwlock_rtm_enabled.
  195. * sysdeps/unix/sysv/linux/x86/elision-conf.h:
  196. Remove __rwlock_rtm_enabled.
  197. 2013-07-03 H.J. Lu <hongjiu.lu@intel.com>
  198. * sysdeps/unix/sysv/linux/x86/init-arch.c: New file.
  199. * sysdeps/unix/sysv/linux/x86/init-arch.h: Likewise.
  200. 2013-07-02 Andi Kleen <ak@linux.intel.com>
  201. * sysdeps/unix/sysv/linux/x86/elision-conf.c (elision_init):
  202. Check ENABLE_LOCK_ELISION.
  203. 2013-07-02 Andi Kleen <ak@linux.intel.com>
  204. * pthread_mutexattr_settype.c (__pthread_mutexattr_settype):
  205. Disable elision for PTHREAD_MUTEX_DEFAULT.
  206. 2013-07-02 Andi Kleen <ak@linux.intel.com>
  207. Hongjiu Lu <hongjiu.lu@intel.com>
  208. * pthread_mutex_lock.c
  209. (__pthread_mutex_lock): Add lock elision support.
  210. * pthread_mutex_timedlock.c (pthread_mutex_timedlock): Likewise.
  211. * pthread_mutex_trylock.c (__pthread_mutex_trylock): Likewise.
  212. * pthread_mutex_unlock.c (__pthread_mutex_unlock_usercnt): Likewise.
  213. * sysdeps/unix/sysv/linux/pthread_mutex_cond_lock.c: Likewise.
  214. * sysdeps/unix/sysv/linux/x86/bits/pthreadtypes.h: Likewise.
  215. * sysdeps/unix/sysv/linux/x86/Makefile: New file.
  216. * sysdeps/unix/sysv/linux/x86/force-elision.h: New file
  217. * sysdeps/unix/sysv/linux/x86/pthread_mutex_cond_lock.c: Likewise.
  218. * sysdeps/unix/sysv/linux/x86/pthread_mutex_lock.c: Likewise.
  219. * sysdeps/unix/sysv/linux/x86/pthread_mutex_timedlock.c: Likewise.
  220. * sysdeps/unix/sysv/linux/x86/pthread_mutex_trylock.c: Likewise.
  221. * sysdeps/unix/sysv/linux/x86/pthread_mutex_unlock.c: Likewise.
  222. 2013-07-02 Andi Kleen <ak@linux.intel.com>
  223. * tst-mutex5.c: Include config.h.
  224. (do_test): Add checks for ENABLE_LOCK_ELISION.
  225. * tst-mutex8.c: Include config.h
  226. (tf): Add checks for ENABLE_LOCK_ELISION.
  227. (check_type): Likewise.
  228. 2013-07-02 Andi Kleen <ak@linux.intel.com>
  229. * pthreadP.h: Add elision types.
  230. (PTHREAD_MUTEX_TYPE_ELISION): Add.
  231. * sysdeps/pthread/pthread.h: Add elision initializers.
  232. (PTHREAD_MUTEX_ELISION_NP, PTHREAD_MUTEX_NO_ELISION_NP,
  233. PTHREAD_MUTEX_PSHARED_NP): Add new flags.
  234. (__PTHREAD_SPINS): Add.
  235. 2013-07-02 Andi Kleen <ak@linux.intel.com>
  236. Hongjiu Lu <hongjiu.lu@intel.com>
  237. * sysdeps/unix/sysv/linux/i386/lowlevellock.h (__lll_timedwait_tid,
  238. lll_timedlock_elision, __lll_lock_elision, __lll_unlock_elision,
  239. __lll_trylock_elision, lll_lock_elision, lll_unlock_elision,
  240. lll_trylock_elision): Add.
  241. * sysdeps/unix/sysv/linux/x86/Makefile: Imply x86.
  242. * sysdeps/unix/sysv/linux/x86/elision-conf.c: New file.
  243. * sysdeps/unix/sysv/linux/x86/elision-conf.h: New file.
  244. * sysdeps/unix/sysv/linux/x86/elision-lock.c: New file.
  245. * sysdeps/unix/sysv/linux/x86/elision-timed.c: New file.
  246. * sysdeps/unix/sysv/linux/x86/elision-trylock.c: New file.
  247. * sysdeps/unix/sysv/linux/x86/elision-unlock.c: New file.
  248. * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (__lll_timedwait_tid,
  249. lll_timedlock_elision, __lll_lock_elision, __lll_unlock_elision,
  250. __lll_trylock_elision, lll_lock_elision, lll_unlock_elision,
  251. lll_trylock_elision): Add.
  252. * nptl/sysdeps/unix/sysv/linux/x86/hle.h: New file.
  253. * elision-conf.h: New file.
  254. 2013-06-24 Vladimir Nikulichev <v.nikulichev@gmail.com>
  255. [BZ #12310]
  256. * pthread_exit.c: Add reference to pthread_create.
  257. 2013-06-22 Joseph Myers <joseph@codesourcery.com>
  258. * pthread_getattr_default_np.c: Include <string.h>.
  259. 2013-06-15 Siddhesh Poyarekar <siddhesh@redhat.com>
  260. * Versions (libpthread): Add GLIBC_2.18.
  261. (GLIBC_2.18): Add pthread_setattr_default_np and
  262. pthread_getattr_default_np.
  263. * allocatestack.c (allocate_stack): Synchronize read from
  264. __default_pthread_attr.
  265. (__reclaim_stacks): Initialize __default_pthread_attr_lock.
  266. * nptl-init.c (__pthread_initialize_minimal_internal):
  267. Synchronize write to __default_pthread_attr.
  268. * pthreadP.h (__default_pthread_attr_lock): Declare.
  269. * pthread_attr_getstacksize (__pthread_attr_getstacksize):
  270. Synchronize read from __default_pthread_attr.
  271. * pthread_create.c (__pthread_create_2_1): Make a local copy of
  272. __default_pthread_attr. Check value of flags in IATTR even if
  273. input ATTR is NULL.
  274. * pthread_getattr_default_np.c: New file.
  275. * pthread_setattr_default_np.c: New file.
  276. * sysdeps/pthread/pthread.h [__USE_GNU]
  277. (pthread_getattr_default_np, pthread_setattr_default_np):
  278. Declare.
  279. * tst-default-attr.c: New test case.
  280. * Makefile (libpthread-routines): Add
  281. pthread_setattr_default_np and pthread_getattr_default_np.
  282. (tests): Add tst-default-attr.
  283. * vars.c (__default_pthread_attr_lock): Declare and initialize.
  284. 2013-06-13 Siddhesh Poyarekar <siddhesh@redhat.com>
  285. Carlos O'Donell <carlos@redhat.com>
  286. [BZ #15618]
  287. * tst-pthread-attr-affinity: New test case.
  288. * Makefile (tests): Add it.
  289. * sysdeps/unix/sysv/linux/pthread_attr_getaffinity.c
  290. (__pthread_attr_getaffinity_new): Copy minimum of source and
  291. destination sizes to avoid a buffer overrun.
  292. 2013-06-10 Carlos O'Donell <carlos@redhat.com>
  293. * sysdeps/unix/sysv/linux/i386/lowlevellock.h
  294. (lll_futex_wake): Return syscall error.
  295. * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h
  296. (lll_futex_wake): Return syscall error.
  297. 2013-08-06 Ondřej Bílka <neleai@seznam.cz>
  298. * sysdeps/pthread/allocalim.h: (__libc_use_alloca): Fix warning.
  299. 2013-06-06 Ondřej Bílka <neleai@seznam.cz>
  300. * tst-cond22.c: Fix leading whitespaces.
  301. * tst-umask1.c: Likewise.
  302. 2013-06-06 Joseph Myers <joseph@codesourcery.com>
  303. * sysdeps/unix/sysv/linux/i386/i486/pthread_barrier_wait.S: Remove
  304. trailing whitespace.
  305. * sysdeps/unix/sysv/linux/powerpc/pt-longjmp.c: Likewise.
  306. * sysdeps/unix/sysv/linux/sh/lowlevellock.h: Likewise.
  307. * sysdeps/unix/sysv/linux/sh/pthread_barrier_wait.S: Likewise.
  308. * sysdeps/unix/sysv/linux/sh/pthread_cond_broadcast.S: Likewise.
  309. * sysdeps/unix/sysv/linux/sh/pthread_cond_signal.S: Likewise.
  310. * sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S: Likewise.
  311. * sysdeps/unix/sysv/linux/sh/pthread_cond_wait.S: Likewise.
  312. * sysdeps/unix/sysv/linux/sh/pthread_once.S: Likewise.
  313. * sysdeps/unix/sysv/linux/sh/pthread_rwlock_rdlock.S: Likewise.
  314. * sysdeps/unix/sysv/linux/sh/pthread_rwlock_unlock.S: Likewise.
  315. * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Likewise.
  316. * tst-mutexpp10.c: Likewise.
  317. * tst-stackguard1.c: Likewise.
  318. 2013-05-31 Joseph Myers <joseph@codesourcery.com>
  319. * Makefile ($(objpfx)libpthread.so): Remove dependencies on libc
  320. and ld.so.
  321. 2013-05-16 Ryan S. Arnold <rsa@linux.vnet.ibm.com>
  322. * pthread_create.c: Add missing #include <stdint.h> due to uint64_t or
  323. uint32_t usage.
  324. * sysdeps/pthread/createthread.c: Likewise.
  325. 2013-05-14 Andreas Jaeger <aj@suse.de>
  326. [BZ #10686]
  327. * sysdeps/x86_64/tls.h (struct tcbhead_t): Add __private_ss field.
  328. * sysdeps/i386/tls.h (struct tcbhead_t): Likewise.
  329. 2013-05-09 Andi Kleen <ak@linux.intel.com>
  330. * tst-mutex8.c (do_test): Check for ENABLE_PI.
  331. 2013-04-22 Siddhesh Poyarekar <siddhesh@redhat.com>
  332. * pthreadP.h (check_sched_policy_attr): New inline function.
  333. (check_sched_priority_attr): Likewise.
  334. (check_stacksize_attr): Likewise.
  335. (__kernel_cpumask_size, __determine_cpumask_size): Declare
  336. extern.
  337. (check_cpuset_attr): New inline function.
  338. * pthread_attr_setschedparam (__pthread_attr_setschedparam):
  339. Use check_sched_priority_attr.
  340. * pthread_attr_setschedpolicy.c
  341. (__pthread_attr_setschedpolicy): Use check_sched_policy_attr.
  342. * pthread_attr_setstack.c (__pthread_attr_setstack): Use
  343. check_stacksize_attr.
  344. * pthread_attr_setstacksize.c (__pthread_attr_setstacksize):
  345. Likewise.
  346. * sysdeps/unix/sysv/linux/pthread_attr_setaffinity.c
  347. (__pthread_attr_setaffinity_new): Use check_cpuset_attr.
  348. 2013-04-11 Andreas Schwab <schwab@suse.de>
  349. * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S
  350. (__pthread_cond_timedwait): If possible use FUTEX_WAIT_BITSET to
  351. directly use absolute timeout.
  352. 2013-04-07 Carlos O'Donell <carlos@redhat.com>
  353. * sysdeps/unix/sysv/linux/sem_post.c: Include atomic.h.
  354. 2013-04-04 Siddhesh Poyarekar <siddhesh@redhat.com>
  355. [BZ #15337]
  356. * sysdeps/unix/sysv/linux/x86_64/cancellation.S
  357. [IS_IN_libpthread]
  358. [SHARED && defined DO_VERSIONING && !defined NO_HIDDEN]: Mark
  359. __pthread_unwind hidden.
  360. 2013-03-28 Roland McGrath <roland@hack.frob.com>
  361. * pthread_create.c (start_thread) [!SHARED]:
  362. Call __call_tls_dtors only if it's not NULL.
  363. 2013-03-19 Siddhesh Poyarekar <siddhesh@redhat.com>
  364. * allocatestack.c (allocate_stack): Use __default_pthread_attr
  365. instead of __default_stacksize.
  366. * nptl-init.c (__pthread_initialize_minimal_internal):
  367. Likewise. Initialize guardsize.
  368. * pthreadP.h (__default_pthread_attr): Declare.
  369. * pthread_attr_getstacksize.c (__pthread_attr_getstacksize):
  370. Use __default_pthread_attr instead of __default_stacksize.
  371. * pthread_create.c (default_attr): Remove.
  372. (__pthread_create_2_1): Use __default_pthread_attr instead of
  373. default_attr.
  374. * vars.c (__default_stacksize): Remove.
  375. (__default_pthread_attr): New static variable to store
  376. default thread attributes.
  377. 2013-03-18 Siddhesh Poyarekar <siddhesh@redhat.com>
  378. * pthread_barrier_init.c (default_attr): Rename to
  379. default_barrierattr.
  380. (pthread_barrier_init): Adjust for the rename.
  381. * pthread_mutex_init.c (default_attr): Rename to
  382. default_mutexattr.
  383. (__pthread_mutex_init): Adjust for the rename.
  384. * pthread_rwlock_init.c (default_attr): Rebane to
  385. default_rwlockattr.
  386. (__pthread_rwlock_init): Adjust for the rename.
  387. 2013-03-12 Carlos O'Donell <carlos@redhat.com>
  388. * sysdeps/unix/sysv/linux/lowlevellock.c: Include <atomic.h>.
  389. 2013-03-04 Roland McGrath <roland@hack.frob.com>
  390. * sysdeps/unix/sysv/linux/i386/i686/dl-sysdep.h:
  391. Change multiple inclusion guard to _LINUX_I686_DL_SYSDEP_H.
  392. Use #include_next.
  393. (HAVE_DL_DISCOVER_OSVERSION): Remove definition, now redundant.
  394. (RTLD_PRIVATE_ERRNO): Likewise.
  395. (NEED_DL_SYSINFO, DL_SYSINFO_DEFAULT, DL_SYSINFO_IMPLEMENTATION):
  396. Move macros and associated declaration to ...
  397. * sysdeps/unix/sysv/linux/i386/dl-sysdep.h: ... here.
  398. Change multiple include guard to _LINUX_I386_DL_SYSDEP_H.
  399. Use #include_next.
  400. 2013-03-01 Carlos O'Donell <carlos@redhat.com>
  401. * Makefile (tests): Revert last change.
  402. (tst-pthread-stack-env-ENV): Likewise.
  403. * nptl-init.c (set_default_stacksize): Likewise.
  404. (__pthread_initialize_minimal_internal): Likewise.
  405. * tst-pthread-stack-env.c: Likewise.
  406. 2013-03-01 Siddhesh Poyarekar <siddhesh@redhat.com>
  407. * tst-oddstacklimit.c: Include stdlib.h.
  408. * Makefile (tests): Add tst-pthread-stack-env.
  409. (tst-pthread-stack-env-ENV): Set environment for test.
  410. * nptl-init.c (set_default_stacksize): New function.
  411. (__pthread_initialize_minimal_internal): Accept ARGC, ARGV and
  412. ENVP. Initialize __ENVIRON and set __DEFAULT_STACKSIZE.
  413. * tst-pthread-stack-env.c: New test case.
  414. 2013-02-21 David S. Miller <davem@davemloft.net>
  415. * sysdeps/unix/sysv/linux/sparc/lowlevellock.h
  416. (FUTEX_WAIT_REQUEUE_PI): Define.
  417. (FUTEX_CMP_REQUEUE_PI): Likewise.
  418. (lll_futex_wait_requeue_pi): Likewise.
  419. (lll_futex_timed_wait_requeue_pi): Likewise.
  420. (lll_futex_cmp_requeue_pi): Likewise.
  421. 2013-02-21 Carlos O'Donell <carlos@redhat.com>
  422. * sysdeps/unix/sysv/linux/fork.c: Fix comment typo.
  423. 2013-02-18 Siddhesh Poyarekar <siddhesh@redhat.com>
  424. * sysdeps/pthread/tst-timer.c: Include stdlib.h for declaration
  425. of exit.
  426. * tst-barrier4.c: Likewise.
  427. * tst-robust7.c: Likewise.
  428. [BZ #14920]
  429. * pthreadP.h (USE_REQUEUE_PI): New macro to check if mutex is
  430. PI-aware.
  431. * pthread_cond_broadcast.c (__pthread_cond_broadcast): Use
  432. PI-aware futex operations if available and mutex is PI-aware.
  433. * pthread_cond_signal.c (__pthread_cond_signal): Likewise.
  434. * nptl/pthread_cond_timedwait.c (__pthread_cond_timedwait):
  435. Likewise.
  436. * pthread_cond_wait.c (__condvar_cleanup): Adjust lock if
  437. cancellation occurred just after futex returned successfully
  438. from a PI operation with the mutex held.
  439. (__pthread_cond_wait): Use PI-aware futex operations if
  440. available and mutex is PI-aware.
  441. * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h
  442. (FUTEX_WAIT_REQUEUE_PI): Define.
  443. (FUTEX_CMP_REQUEUE_PI): Likewise.
  444. (lll_futex_wait_requeue_pi): Likewise.
  445. (lll_futex_timed_wait_requeue_pi): Likewise.
  446. (lll_futex_cmp_requeue_pi): Likewise.
  447. * nptl/sysdeps/unix/sysv/linux/s390/lowlevellock.h
  448. (FUTEX_WAIT_REQUEUE_PI): Define.
  449. (FUTEX_CMP_REQUEUE_PI): Likewise.
  450. (lll_futex_wait_requeue_pi): Likewise.
  451. (lll_futex_timed_wait_requeue_pi): Likewise.
  452. (lll_futex_cmp_requeue_pi): Likewise.
  453. * sysdeps/unix/sysv/linux/kernel-features.h: Define
  454. __ASSUME_REQUEUE_PI for Linux version higher than 2.6.31.
  455. 2013-02-04 Andreas Schwab <schwab@suse.de>
  456. [BZ #14142]
  457. * tst-cancel14.c: Include <sys/time.h>.
  458. * tst-cancel15.c: Likewise.
  459. * tst-mutex9.c: Include <stdint.h>, <stdlib.h> and <sys/time.h>.
  460. * tst-stackguard1.c: Include <tls.h>
  461. 2013-01-16 Andreas Schwab <schwab@suse.de>
  462. [BZ #14327]
  463. * sem_open.c (sem_open): Use __mktemp instead of mktemp.
  464. 2013-01-11 Carlos O'Donell <codonell@redhat.com>
  465. * allocatestack.c (allocate_stack): Add comment. Remove assert
  466. on attr.
  467. 2013-01-11 H.J. Lu <hongjiu.lu@intel.com>
  468. * Makefile (tst-cancel7-ARGS: Replace $(host-built-program-cmd)
  469. with $(host-test-program-cmd).
  470. (tst-exec4-ARGS): Likewise.
  471. (tst-stackguard1-ARGS): Likewise.
  472. ($(objpfx)tst-tls6.out): Don't pass $(elf-objpfx) to tst-tls6.sh.
  473. Replace $(rtld-installed-name) with $(test-via-rtld-prefix).
  474. * tst-tls6.sh (elf_objpfx): Removed.
  475. (rtld_installed_name): Renamed to ...
  476. (test_via_rtld_prefix): This.
  477. (tst_tls5): Prepend ${test_via_rtld_prefix}.
  478. 2013-01-02 Joseph Myers <joseph@codesourcery.com>
  479. * All files with FSF copyright notices: Update copyright dates
  480. using scripts/update-copyrights.
  481. 2013-01-01 Joseph Myers <joseph@codesourcery.com>
  482. * sysdeps/unix/sysv/linux/x86_64/lowlevelrobustlock.S: Reformat
  483. copyright notice.
  484. 2012-12-28 Andi Kleen <ak@linux.intel.com>
  485. * pthread_rwlock_tryrdlock.c (__pthread_rwlock_tryrdlock): Convert
  486. to prototype.
  487. * pthread_rwlock_trywrlock.c (__pthread_rwlock_trywrlock):
  488. Likewise.
  489. 2012-12-27 David S. Miller <davem@davemloft.net>
  490. * sysdeps/unix/sysv/linux/sparc/lowlevellock.h
  491. (lll_futex_timed_wait_bitset): New macro.
  492. 2012-12-27 Siddhesh Poyarekar <siddhesh@redhat.com>
  493. * sysdeps/unix/sysv/linux/s390/lowlevellock.h (SYS_futex):
  494. Remove definition.
  495. (lll_futex_timed_wait): Replace assembly code with
  496. INTERNAL_SYSCALL.
  497. (lll_futex_timed_wait_bitset): Likewise.
  498. (lll_futex_wake): Likewise.
  499. (lll_futex_requeue): Likewise.
  500. (lll_futex_wake_unlock): Likewise.
  501. 2012-12-08 Siddhesh Poyarekar <siddhesh@redhat.com>
  502. * sysdeps/unix/sysv/linux/s390/jmp-unwind.c (_longjmp_unwind):
  503. Declare LOCAL_VAR as char.
  504. 2012-12-04 Joseph Myers <joseph@codesourcery.com>
  505. * sysdeps/unix/sysv/linux/powerpc/sem_post.c (__old_sem_post):
  506. Cast result of atomic_increment_val to (void) instead of storing
  507. in otherwise-unused variable.
  508. 2012-12-03 Allan McRae <allan@archlinux.org>
  509. * Makefile (LDFLAGS-tst-cond24, LDFLAGS-tst-cond25): Remove.
  510. 2012-11-26 H.J. Lu <hongjiu.lu@intel.com>
  511. * unwind.c (__pthread_unwind): Pass address of unwind_cleanup
  512. to THREAD_SETMEM.
  513. * sysdeps/i386/tls.h: Include <libc-internal.h>.
  514. (THREAD_SETMEM): Use cast_to_integer before casting to uint64_t.
  515. (THREAD_SETMEM_NC): Likewise.
  516. * sysdeps/x86_64/tls.h: Include <libc-internal.h>.
  517. (THREAD_SETMEM): Use cast_to_integer before casting to uint64_t.
  518. (THREAD_SETMEM_NC): Likewise.
  519. 2012-11-21 Joseph Myers <joseph@codesourcery.com>
  520. * sysdeps/unix/sysv/linux/sem_post.c (__old_sem_post): Cast result
  521. of atomic_increment_val to (void) instead of storing in
  522. otherwise-unused variable.
  523. * pthread_cond_timedwait.c (__pthread_cond_timedwait)
  524. [__NR_clock_gettime]: Cast result of INTERNAL_VSYSCALL to void
  525. instead of storing in otherwise-unused variable.
  526. 2012-11-14 Marcus Shawcroft <marcus.shawcroft@linaro.org>
  527. * Makefile (CFLAGS-open.c, CFLAGS-open64.c, CFLAGS-pause.c)
  528. (CFLAGS-recv.c, CFLAGS-send.c): Define.
  529. 2012-11-06 Chris Metcalf <cmetcalf@tilera.com>
  530. * tst-sem14.c (TIMEOUT): Set timeout to 10 seconds.
  531. * tst-cond24.c (TIMEOUT): Increase from 10 to 20 seconds.
  532. 2012-11-05 Siddhesh Poyarekar <siddhesh@redhat.com>
  533. * pthread_cond_timedwait.c (__pthread_cond_timedwait): Time out
  534. if absolute timeout is negative.
  535. [__ASSUME_FUTEX_CLOCK_REALTIME &&
  536. lll_futex_timed_wait_bitset]: Use lll_futex_timed_wait_bitset.
  537. * pthread_rwlock_timedrdlock.c (pthread_rwlock_timedrdlock):
  538. Likewise.
  539. * pthread_rwlock_timedwrlock.c (pthread_rwlock_timedwrlock):
  540. Likewise.
  541. * sysdeps/unix/sysv/linux/lowlevelrobustlock.c
  542. (__lll_robust_timedlock_wait): Likewise.
  543. * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h
  544. (lll_futex_timed_wait_bitset): New macro.
  545. * sysdeps/unix/sysv/linux/s390/lowlevellock.h
  546. (lll_futex_timed_wait_bitset): Likewise.
  547. 2012-11-03 David S. Miller <davem@davemloft.net>
  548. * sysdeps/unix/sysv/linux/sparc/lowlevellock.h (BUSY_WAIT_NOP):
  549. Add missing spaces.
  550. (__cpu_relax): Likewise.
  551. 2012-11-02 H.J. Lu <hongjiu.lu@intel.com>
  552. * sysdeps/x86_64/tls.h: Don't include <xmmintrin.h>.
  553. (__128bits): New struct typedef.
  554. (tcbhead_t): Replace __m128 with __128bits.
  555. 2012-10-30 Aurelien Jarno <aurelien@aurel32.net>
  556. Joseph Myers <joseph@codesourcery.com>
  557. * Makefile (tst-cancel7-ARGS): Use exec in --command argument.
  558. 2012-10-28 David S. Miller <davem@davemloft.net>
  559. * sysdeps/unix/sysv/linux/sparc/lowlevellock.h (BUSY_WAIT_NOP):
  560. Define when we have v9 instructions available.
  561. * sysdeps/unix/sysv/linux/sparc/sparc64/cpu_relax.S: New file.
  562. * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/cpu_relax.S: New
  563. file.
  564. * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/Makefile: New
  565. file.
  566. * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile: Add cpu_relax
  567. to libpthread-routines.
  568. 2012-10-25 Roland McGrath <roland@hack.frob.com>
  569. * tst-cond-except.c (TEST_FUNCTION): New macro.
  570. 2012-10-25 Joseph Myers <joseph@codesourcery.com>
  571. * Makefile ($(objpfx)tst-tls6.out): Use $(BASH) not $(SHELL) to
  572. run tst-tls6.sh.
  573. * tst-tls6.sh: Use /bin/bash not /bin/sh.
  574. 2012-10-25 Roland McGrath <roland@hack.frob.com>
  575. * tst-basic2.c (do_test): Return RESULT, not always zero.
  576. * tst-cond25.c: Include <stdint.h>
  577. (waiter): Add casts to uintptr_t between casting integer<->pointer.
  578. (timed_waiter): Likewise.
  579. (do_test_wait): Likewise.
  580. * tst-cond-except.c (thr): Likewise.
  581. (do_test): Use prototype definition.
  582. 2012-10-24 Joseph Myers <joseph@codesourcery.com>
  583. Jim Blandy <jimb@codesourcery.com>
  584. * Makefile ($(objpfx)tst-tls6.out): Pass $(test-wrapper-env) to
  585. tst-tls6.sh.
  586. * tst-tls6.sh (test_wrapper_env): New variable. Use it to run
  587. programs with LD_PRELOAD set.
  588. 2012-10-24 Roland McGrath <roland@hack.frob.com>
  589. * Makefile ($(objpfx)tst-cond11, $(objpfx)tst-cond19): Targets removed.
  590. ($(objpfx)tst-sem5, $(objpfx)tst-cancel18): Likewise.
  591. ((objpfx)tst-cancelx18, $(objpfx)tst-clock2): Likewise.
  592. ($(objpfx)tst-rwlock14): Likewise.
  593. 2012-10-24 Joseph Myers <joseph@codesourcery.com>
  594. * Makefile (tests): Remove tst-oddstacklimit.
  595. (test-srcs): New variable.
  596. (tst-oddstacklimit-ENV): Remove.
  597. [$(run-built-tests) = yes] (tests): Depend on
  598. $(objpfx)tst-oddstacklimit.out.
  599. [$(run-built-tests) = yes] ($(objpfx)tst-oddstacklimit.out): New
  600. target.
  601. * tst-oddstacklimit.c: Do not include "tst-basic1.c". Use
  602. setrlimit before executing tst-basic1 test passed to --command.
  603. 2012-10-23 Joseph Myers <joseph@codesourcery.com>
  604. * Makefile [$(cross-compiling) = no]: Change condition to
  605. [$(run-built-tests) = yes].
  606. 2012-10-23 Jim Blandy <jimb@codesourcery.com>
  607. Joseph Myers <joseph@codesourcery.com>
  608. * Makefile (tst-cancel7-ARGS): Use $(host-built-program-cmd).
  609. (tst-exec4-ARGS): Likewise.
  610. (tst-stackguard1-ARGS): Likewise.
  611. 2012-10-21 Jim Blandy <jimb@codesourcery.com>
  612. Joseph Myers <joseph@codesourcery.com>
  613. * Makefile ($(objpfx)tst-cancel-wrappers.out): Pass $(NM) to
  614. tst-cancel-wrappers.sh.
  615. * tst-cancel-wrappers.sh: Use nm program given as first argument,
  616. not hardcoded "nm".
  617. 2012-10-17 Siddhesh Poyarekar <siddhesh@redhat.com>
  618. * tst-cond25.c (do_test_wait): Don't check for return value from
  619. pthread_cancel.
  620. 2012-10-16 Siddhesh Poyarekar <siddhesh@redhat.com>
  621. [BZ #14652]
  622. * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S
  623. (__condvar_tw_cleanup): Adjust the mutex data structure if it
  624. was locked by FUTEX_WAIT_REQUEUE_PI.
  625. * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait
  626. (__condvar_w_cleanup): Likewise.
  627. * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S
  628. (__condvar_cleanup2): Likewise.
  629. * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S
  630. (__condvar_cleanup1): Likewise.
  631. 2012-10-10 Carlos O'Donell <carlos@systemhalted.org>
  632. * sysdeps/pthread/pthread.h [!(defined __GNUC__ &&
  633. defined __EXCEPTIONS) && defined __USE_GNU]
  634. (pthread_cleanup_push_defer_np): Fix formatting.
  635. 2012-10-10 Siddhesh Poyarekar <siddhesh@redhat.com>
  636. [BZ #14652]
  637. * Makefile (tests): New test case tst-cond25.
  638. (LDFLAGS-tst-cond25): Link tst-cond25 against librt.
  639. * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S
  640. (__condvar_tw_cleanup): Lock mutex only if we don't already
  641. own it.
  642. * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S
  643. (__condvar_w_cleanup): Likewise.
  644. * sysdeps/unix/sysv/linux/pthread-pi-defines.sym: Add TID_MASK.
  645. * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S
  646. (__condvar_cleanup2): Lock mutex only if we don't already
  647. own it.
  648. * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S
  649. (__condvar_cleanup1): Likewise.
  650. * tst-cond25.c: New test case.
  651. 2012-10-09 Roland McGrath <roland@hack.frob.com>
  652. * sysdeps/pthread/configure: Regenerated.
  653. * sysdeps/x86_64/configure: Regenerated.
  654. 2012-10-05 David S. Miller <davem@davemloft.net>
  655. [BZ #14568]
  656. * sysdeps/sparc/tls.h (DB_THREAD_SELF_INCLUDE): Delete.
  657. (DB_THREAD_SELF): Use constants for the register offsets. Correct
  658. the case of a 64-bit debugger with a 32-bit inferior.
  659. 2012-10-05 H.J. Lu <hongjiu.lu@intel.com>
  660. [BZ #14557]
  661. * Makefile (tests-static): Add tst-cancel24-static,
  662. tst-cond8-static tst-mutex8-static, tst-mutexpi8-static,
  663. tst-sem11-static and tst-sem12-static.
  664. (tests): Likewise.
  665. (LDLIBS-tst-cancel24-static): New macro.
  666. * tst-cancel24-static.cc: New file.
  667. * tst-cond8-static.c: Likewise.
  668. * tst-mutex8-static.c: Likewise.
  669. * tst-mutexpi8-static.c: Likewise.
  670. * tst-sem11-static.c: Likewise.
  671. * tst-sem12-static.c: Likewise.
  672. 2012-10-05 Siddhesh Poyarekar <siddhesh@redhat.com>
  673. [BZ #14417]
  674. * Makefile (tests): New test case tst-cond24.
  675. (LDFLAGS-tst-cond24): Link tst-cond24 against librt.
  676. * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S
  677. (__pthread_cond_timedwait): Unlock mutex before going back to
  678. wait in PI case.
  679. * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S
  680. (__pthread_cond_wait): Likewise. Revert handling of EAGAIN
  681. return from futex_wait.
  682. * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S
  683. (__pthread_cond_timedwait): Unlock mutex before going back to
  684. wait in PI case. Set requeue_pi flag only if wait returned 0.
  685. * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S
  686. (__pthread_cond_wait): Likewise. Revert handling of EAGAIN
  687. return from futex_wait.
  688. * tst-cond24.c: New test case.
  689. 2012-10-04 Roland McGrath <roland@hack.frob.com>
  690. * pthread_create.c (start_thread): Use __madvise, not madvise.
  691. 2012-10-02 H.J. Lu <hongjiu.lu@intel.com>
  692. * sysdeps/i386/tls.h: Update copyright years.
  693. 2012-10-02 Siddhesh Poyarekar <siddhesh@redhat.com>
  694. * pthread_create.c (start_thread): Fix clone flag name in
  695. comment to CLONE_CHILD_CLEARTID.
  696. * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Likewise.
  697. * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Likewise.
  698. * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
  699. * sysdeps/unix/sysv/linux/sh/lowlevellock.h: Likewise.
  700. * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Likewise.
  701. * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
  702. 2012-10-01 Siddhesh Poyarekar <siddhesh@redhat.com>
  703. [BZ #14477]
  704. * Makefile (tests): Add tst-cond-except.
  705. * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S
  706. (__pthread_cond_timedwait): Mark instructions where %ebx is
  707. incremented in PI case.
  708. (.gcc_except_table): Add entry to jump to __condvar_tw_cleanup2
  709. for the marked PI case instructions.
  710. * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S
  711. (__pthread_cond_wait): Mark instructions where %ebx is
  712. incremented in PI case.
  713. (.gcc_except_table): Add entry to jump to __condvar_w_cleanup2
  714. for the marked PI case instructions.
  715. * tst-cond-except.c: New test case.
  716. 2012-09-24 Dmitry V. Levin <ldv@altlinux.org>
  717. * tst-tls6.sh: Add "set -e".
  718. * Makefile: Do not specify -e option when running testsuite
  719. shell scripts.
  720. * tst-tls6.sh: Add copyright header.
  721. 2012-09-24 H.J. Lu <hongjiu.lu@intel.com>
  722. * sysdeps/x86_64/tls.h (THREAD_SETMEM): Add "()" when casting
  723. to uint64_t for 64-bit store.
  724. (THREAD_SETMEM_NC): Likewise.
  725. 2012-09-19 H.J. Lu <hongjiu.lu@intel.com>
  726. * sysdeps/i386/tls.h (THREAD_SETMEM): Cast to uint64_t for
  727. 64-bit store.
  728. (THREAD_SETMEM_NC): Likewise.
  729. 2012-09-14 Jeff Law <law@redhat.com>
  730. [BZ #14583]
  731. * sysdeps/pthread/pthread.h: Fix prototype of __sigsetjmp.
  732. 2012-09-13 H.J. Lu <hongjiu.lu@intel.com>
  733. [BZ #14576]
  734. * sysdeps/pthread/bits/libc-lockP.h (__rtld_lock_init_recursive):
  735. Removed.
  736. 2012-09-07 H.J. Lu <hongjiu.lu@intel.com>
  737. * Makefile (LDFLAGS-tst-cancel24): Renamed to ...
  738. (LDLIBS-tst-cancel24): This.
  739. 2012-09-06 H.J. Lu <hongjiu.lu@intel.com>
  740. [BZ #14545]
  741. * Makefile (tests-static): Add tst-cancel21-static.
  742. (tests): Likewise.
  743. * tst-cancel21-static.c: New file.
  744. 2012-09-01 Joseph Myers <joseph@codesourcery.com>
  745. * sysdeps/unix/sysv/linux/pthread_getcpuclockid.c
  746. [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
  747. [__NR_clock_getres]: Make code unconditional.
  748. (pthread_getcpuclockid): Remove code left unreachable by removal
  749. of conditionals.
  750. 2012-08-31 Joseph Myers <joseph@codesourcery.com>
  751. [BZ #14532]
  752. * sysdeps/unix/sysv/linux/sem_post.c (__new_sem_post): Use
  753. atomic_compare_and_exchange_bool_rel.
  754. * tst-sem14.c: New file.
  755. * Makefile (tests): Add tst-sem14.
  756. 2012-08-15 Roland McGrath <roland@hack.frob.com>
  757. * Makefile (CFLAGS-flockfile.c): Use $(libio-mtsafe) instead
  758. of -D_IO_MTSAFE_IO.
  759. (CFLAGS-ftrylockfile.c, CFLAGS-funlockfile.c): Likewise.
  760. * sysdeps/unix/sysv/linux/Makefile (CFLAGS-fork.c): Likewise.
  761. 2012-08-16 Joseph Myers <joseph@codesourcery.com>
  762. * pthread_cond_timedwait.c (__pthread_cond_timedwait)
  763. [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
  764. * pthread_condattr_setclock.c (pthread_condattr_setclock)
  765. [!__ASSUME_POSIX_TIMERS]: Likewise.
  766. * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S
  767. (__pthread_cond_timedwait) [!__ASSUME_POSIX_TIMERS]: Likewise.
  768. * sysdeps/unix/sysv/linux/pthread_getcpuclockid.c
  769. [!__ASSUME_POSIX_TIMERS]: Likewise.
  770. * sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S
  771. (__pthread_cond_timedwait) [!__ASSUME_POSIX_TIMERS]: Likewise.
  772. * sysdeps/unix/sysv/linux/timer_create.c [__NR_timer_create]: Make
  773. code unconditional.
  774. [!__NR-timer_create]: Remove conditional code.
  775. (timer_create) [!__ASSUME_POSIX_TIMERS]: Likewise.
  776. * sysdeps/unix/sysv/linux/timer_delete.c [__NR_timer_delete]: Make
  777. code unconditional.
  778. [!__NR_timer_delete]: Remove conditional code.
  779. (timer_delete) [!__ASSUME_POSIX_TIMERS]: Likewise.
  780. * sysdeps/unix/sysv/linux/timer_getoverr.c
  781. [__NR_timer_getoverrun]: Make code unconditional.
  782. [!__NR_timer_getoverrun]: Remove conditional code.
  783. (timer_getoverrun) [!__ASSUME_POSIX_TIMERS]: Likewise.
  784. * sysdeps/unix/sysv/linux/timer_gettime.c [__NR_timer_gettime]:
  785. Make code unconditional.
  786. [!__NR_timer_gettime]: Remove conditional code.
  787. (timer_gettime) [!__ASSUME_POSIX_TIMERS]: Likewise.
  788. * sysdeps/unix/sysv/linux/timer_routines.c [__NR_timer_create]:
  789. Make code unconditional.
  790. [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
  791. * sysdeps/unix/sysv/linux/timer_settime.c [__NR_timer_settime]:
  792. Make code unconditional.
  793. [!__NR_timer_settime]: Remove conditional code.
  794. (timer_settime) [!__ASSUME_POSIX_TIMERS]: Likewise.
  795. * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S
  796. (__pthread_cond_timedwait) [!__ASSUME_POSIX_TIMERS]: Remove
  797. conditional code.
  798. 2012-08-15 Tom de Vries <vries@codesourcery.com>
  799. Maxim Kuvyrkov <maxim@codesourcery.com>
  800. * sysdeps/pthread/bits/libc-lockP.h (__libc_lock_lock)
  801. (__libc_lock_trylock): Allow pre-existing definitions.
  802. 2012-08-15 Maxim Kuvyrkov <maxim@codesourcery.com>
  803. * pthread_spin_lock.c: New file.
  804. * pthread_spin_trylock.c: New file.
  805. 2012-08-08 Joseph Myers <joseph@codesourcery.com>
  806. * allocatestack.c (setxid_signal_thread) [__ASSUME_TGKILL]: Make
  807. code unconditional.
  808. (setxid_signal_thread) [!__ASSUME_TGKILL]: Remove conditional code.
  809. * pthread_cancel.c (pthread_cancel) [__ASSUME_TGKILL]: Make code
  810. unconditional.
  811. (pthread_cancel) [!__ASSUME_TGKILL]: Remove conditional code.
  812. * sysdeps/pthread/createthread.c (do_clone) [__ASSUME_TGKILL]:
  813. Make code unconditional.
  814. (do_clone) [!__ASSUME_TGKILL]: Remove conditional code.
  815. * sysdeps/unix/sysv/linux/pt-raise.c (raise) [__ASSUME_TGKILL ||
  816. __NR_tgkill]: Make code unconditional.
  817. (raise) [__ASSUME_TGKILL]: Likewise.
  818. (raise) [!__ASSUME_TGKILL]: Remove conditional code.
  819. * sysdeps/unix/sysv/linux/pthread_kill.c (__pthread_kill)
  820. [__ASSUME_TGKILL]: Make code unconditional.
  821. (__pthread_kill) [!__ASSUME_TGKILL]: Remove conditional code.
  822. * sysdeps/unix/sysv/linux/raise.c (raise) [__ASSUME_TGKILL ||
  823. __NR_tgkill]: Make code unconditional.
  824. (raise) [__ASSUME_TGKILL]: Likewise.
  825. (raise) [!__ASSUME_TGKILL]: Remove conditional code.
  826. 2012-08-07 Joseph Myers <joseph@codesourcery.com>
  827. * sysdeps/pthread/createthread.c (create_thread)
  828. [!__ASSUME_NO_CLONE_DETACHED]: Remove conditional code.
  829. 2012-08-03 Joseph Myers <joseph@codesourcery.com>
  830. * nptl-init.c (sigcancel_handler) [__ASSUME_CORRECT_SI_PID]: Make
  831. code unconditional.
  832. (sighandler_setxid) [__ASSUME_CORRECT_SI_PID]: Likewise.
  833. 2012-07-28 Siddhesh Poyarekar <siddhesh@redhat.com>
  834. * tst-pthread-getattr.c (MAX_STACK_SIZE): New macro.
  835. (pagesize): New static variable.
  836. (allocate_and_test): Return MEM. Rename parameter to TARGET.
  837. (check_stack_top): New local variables MEM and PAGEMASK. Cap
  838. stack size to MAX_STACK_SIZE. Call allocate_and_test for
  839. halfway up the stack top page. Verify that the top page was
  840. written into.
  841. (do_test): Get pagesize using sysconf.
  842. 2012-07-25 Andreas Schwab <schwab@linux-m68k.org>
  843. * sysdeps/unix/sysv/linux/i386/pt-vfork.S: Remove pseudo_end
  844. label.
  845. * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (PSEUDO): Likewise.
  846. * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h (PSEUDO):
  847. Likewise.
  848. 2012-07-25 Siddhesh Poyarekar <siddhesh@redhat.com>
  849. * tst-pthread-getattr.c: Revert last change.
  850. 2012-07-20 Siddhesh Poyarekar <siddhesh@redhat.com>
  851. * tst-pthread-getattr.c (MAX_STACK_SIZE): New max cap for stack
  852. size.
  853. (_MIN): New macro.
  854. (allocate_and_test): Return STACKADDR. Access STACKADDR instead
  855. of MEM to test.
  856. (check_stack_top): Read valued written into STACKADDR in
  857. allocate_and_test. Cap stack size to MAX_STACK_SIZE.
  858. 2012-07-19 Siddhesh Poyarekar <siddhesh@redhat.com>
  859. * nptl-init.c (sighandler_setxid): Fix the comment that
  860. describes it.
  861. 2012-06-23 Thomas Schwinge <thomas@codesourcery.com>
  862. * sysdeps/unix/sysv/linux/sh/lowlevelrobustlock.S
  863. (__lll_robust_timedlock_wait): Simplify CFI directives.
  864. 2012-06-20 Siddhesh Poyarekar <siddhesh@redhat.com>
  865. [BZ #12416]
  866. * Makefile (tests): Add test case.
  867. * pthread_getattr_np.c (pthread_getattr_np): Deduct pages below
  868. the __libc_stack_end page from stacksize. Truncate stacksize to
  869. make it page aligned when it is computed from RLIMIT_STACK.
  870. * tst-pthread-getattr.c: New test case. Verify that stackaddr is
  871. accessible.
  872. 2012-06-07 Carlos Sánchez de La Lama <csanchezdll@gmail.com>
  873. [BZ #14205]
  874. * sysdeps/sparc/sparc32/pthread_spin_lock.S: Do not use v9
  875. branches.
  876. 2012-06-04 Siddhesh Poyarekar <siddhesh@redhat.com>
  877. Jakub Jelinek <jakub@redhat.com>
  878. [BZ #14188]
  879. * sysdeps/pthread/pthread.h
  880. [!(defined __GNUC__ && defined __EXCEPTIONS)]
  881. (pthread_cleanup_push, pthread_cleanup_push_defer_np): Use
  882. __libc_unlikely instead of __builtin_expect.
  883. 2012-05-30 H.J. Lu <hongjiu.lu@intel.com>
  884. [BZ #14117]
  885. * sysdeps/unix/sysv/linux/i386/bits/pthreadtypes.h: Removed.
  886. * sysdeps/unix/sysv/linux/i386/bits/semaphore.h: Likewise.
  887. * sysdeps/unix/sysv/linux/i386/Implies: New file.
  888. * sysdeps/unix/sysv/linux/x86_64/Implies: Likewise.
  889. * sysdeps/unix/sysv/linux/x86_64/bits/pthreadtypes.h: Renamed
  890. to ...
  891. * sysdeps/unix/sysv/linux/x86/bits/pthreadtypes.h: This.
  892. * sysdeps/unix/sysv/linux/x86_64/bits/semaphore.h: Renamed
  893. to ...
  894. * sysdeps/unix/sysv/linux/x86/bits/semaphore.h: This.
  895. 2012-05-30 Andreas Schwab <schwab@linux-m68k.org>
  896. [BZ #14132]
  897. * nptl-init.c (pthread_functions): Remove use of INTUSE and
  898. _internal aliases.
  899. (__pthread_initialize_minimal_internal): Likewise.
  900. * sem_open.c: Likewise.
  901. * sem_unlink.c: Likewise.
  902. * pthreadP.h: Replace _internal aliases by hidden_proto
  903. declarations.
  904. * pthread_getspecific.c: Replace _internal alias by hidden_def.
  905. * pthread_key_create.c: Likewise.
  906. * pthread_mutex_destroy.c: Likewise.
  907. * pthread_mutex_init.c: Likewise.
  908. * pthread_mutex_lock.c: Likewise.
  909. * pthread_mutex_unlock.c: Likewise.
  910. * pthread_once.c: Likewise.
  911. * pthread_rwlock_rdlock.c: Likewise.
  912. * pthread_rwlock_unlock.c: Likewise.
  913. * pthread_rwlock_wrlock.c: Likewise.
  914. * pthread_setspecific.c: Likewise.
  915. * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_rdlock.S:
  916. Likewise.
  917. * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_unlock.S:
  918. Likewise.
  919. * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_wrlock.S:
  920. Likewise.
  921. * sysdeps/unix/sysv/linux/i386/pthread_once.S: Likewise.
  922. * sysdeps/unix/sysv/linux/powerpc/pthread_once.c: Likewise.
  923. * sysdeps/unix/sysv/linux/s390/pthread_once.c: Likewise.
  924. * sysdeps/unix/sysv/linux/sh/pthread_once.S: Likewise.
  925. * sysdeps/unix/sysv/linux/sh/pthread_rwlock_rdlock.S: Likewise.
  926. * sysdeps/unix/sysv/linux/sh/pthread_rwlock_unlock.S: Likewise.
  927. * sysdeps/unix/sysv/linux/sh/pthread_rwlock_wrlock.S: Likewise.
  928. * sysdeps/unix/sysv/linux/sparc/pthread_once.c: Likewise.
  929. * sysdeps/unix/sysv/linux/x86_64/pthread_once.S: Likewise.
  930. * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_rdlock.S:
  931. Likewise.
  932. * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_unlock.S:
  933. Likewise.
  934. * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_wrlock.S:
  935. Likewise.
  936. 2012-05-27 Chung-Lin Tang <cltang@codesourcery.com>
  937. * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h (PSEUDO, LOAD_ARGS_1)
  938. (LOAD_ARGS_2 ,LOAD_ARGS_3 ,LOAD_ARGS_4): Add CFI restores.
  939. * sysdeps/unix/sysv/linux/sh/lowlevellock.S (__lll_lock_wait_private)
  940. (__lll_lock_wait, __lll_timedlock_wait, __lll_timedwait_tid): Add CFI
  941. directives.
  942. * sysdeps/unix/sysv/linux/sh/lowlevelrobustlock.S
  943. (__lll_robust_lock_wait, __lll_robust_timedlock_wait): Likewise.
  944. * sysdeps/unix/sysv/linux/sh/pthread_barrier_wait.S
  945. (pthread_barrier_wait): Likewise.
  946. * sysdeps/unix/sysv/linux/sh/pthread_cond_broadcast.S
  947. (__pthread_cond_broadcast): Likewise.
  948. * sysdeps/unix/sysv/linux/sh/pthread_cond_signal.S
  949. (__pthread_cond_signal): Likewise.
  950. * sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S
  951. (__pthread_cond_timedwait): Likewise.
  952. * sysdeps/unix/sysv/linux/sh/pthread_cond_wait.S (__pthread_cond_wait):
  953. Likewise.
  954. * sysdeps/unix/sysv/linux/sh/pthread_rwlock_rdlock.S
  955. (__pthread_rwlock_rdlock): Likewise.
  956. * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedrdlock.S
  957. (pthread_rwlock_timedrdlock): Likewise.
  958. * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedwrlock.S
  959. (pthread_rwlock_timedwrlock): Likewise.
  960. * sysdeps/unix/sysv/linux/sh/pthread_rwlock_unlock.S
  961. (__pthread_rwlock_unlock): Likewise.
  962. * sysdeps/unix/sysv/linux/sh/pthread_rwlock_wrlock.S
  963. (__pthread_rwlock_wrlock): Likewise.
  964. * sysdeps/unix/sysv/linux/sh/sem_post.S (__new_sem_post): Likewise.
  965. * sysdeps/unix/sysv/linux/sh/sem_timedwait.S (sem_timedwait): Likewise.
  966. * sysdeps/unix/sysv/linux/sh/sem_trywait.S (__new_sem_trywait):
  967. Likewise.
  968. * sysdeps/unix/sysv/linux/sh/sem_wait.S (__new_sem_wait): Likewise.
  969. 2012-05-26 Siddhesh Poyarekar <siddhesh@redhat.com>
  970. [BZ #12416]
  971. * nptl/pthread_getattr_np.c (pthread_getattr_np): Use
  972. __libc_stack_end rounded to the end of containing page as the
  973. real stack end.
  974. 2012-05-25 Rayson Ho <rho@redhat.com>
  975. * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Low-level SystemTap
  976. probes for i386.
  977. * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S: Likewise.
  978. * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S: Likewise.
  979. * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_broadcast.S: Likewise.
  980. * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S: Likewise.
  981. * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: Likewise.
  982. * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Likewise.
  983. * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_rdlock.S: Likewise.
  984. * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_wrlock.S: Likewise.
  985. 2012-05-25 Rayson Ho <rho@redhat.com>
  986. Roland McGrath <roland@hack.frob.com>
  987. * DESIGN-systemtap-probes.txt: New file.
  988. * pthread_cond_broadcast.c: SystemTap probes.
  989. * pthread_cond_init.c: Likewise.
  990. * pthread_cond_signal.c: Likewise.
  991. * pthread_cond_wait.c: Likewise.
  992. * pthread_cond_destroy.c: Likewise.
  993. * pthread_create.c: Likewise.
  994. * pthread_join.c: Likewise.
  995. * pthread_mutex_destroy.c: Likewise.
  996. * pthread_mutex_init.c: Likewise.
  997. * pthread_mutex_lock.c: Likewise.
  998. * pthread_mutex_timedlock.c: Likewise.
  999. * pthread_mutex_unlock.c: Likewise.
  1000. * pthread_rwlock_destroy.c: Likewise.
  1001. * pthread_rwlock_rdlock.c: Likewise.
  1002. * pthread_rwlock_unlock.c: Likewise.
  1003. * pthread_rwlock_wrlock.c: Likewise.
  1004. * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
  1005. * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
  1006. * sysdeps/unix/sysv/linux/x86_64/pthread_cond_broadcast.S: Likewise.
  1007. * sysdeps/unix/sysv/linux/x86_64/pthread_cond_signal.S: Likewise.
  1008. * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: Likewise.
  1009. * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: Likewise.
  1010. * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_rdlock.S: Likewise.
  1011. * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_wrlock.S: Likewise.
  1012. 2012-05-24 Roland McGrath <roland@hack.frob.com>
  1013. * pthread_create.c (start_thread): Define pthread_start LIBC_PROBE.
  1014. 2012-05-17 Andreas Jaeger <aj@suse.de>
  1015. * sysdeps/unix/sysv/linux/i386/i686/dl-sysdep.h
  1016. (HAVE_DL_DISCOVER_OSVERSION): Don't declare _dl_discover_osversion
  1017. only for older kernels.
  1018. 2012-05-15 Joseph Myers <joseph@codesourcery.com>
  1019. * pthreadP.h [!__NR_set_robust_list] (__NR_set_robust_list): Do
  1020. not define.
  1021. 2012-05-15 H.J. Lu <hongjiu.lu@intel.com>
  1022. * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (lll_lock): Load
  1023. futex pointer into RDI_LP. Use RSP_LP to operate on stack.
  1024. (lll_robust_lock): Likewise.
  1025. (lll_cond_lock): Likewise.
  1026. (lll_robust_cond_lock): Likewise.
  1027. (lll_timedlock): Likewise.
  1028. (lll_robust_timedlock): Likewise.
  1029. (lll_unlock): Likewise.
  1030. (lll_robust_unlock): Likewise.
  1031. 2012-05-15 H.J. Lu <hongjiu.lu@intel.com>
  1032. * sysdeps/unix/sysv/linux/x86_64/pthread_cond_signal.S: Use
  1033. LP_OP(cmp) and RCX_LP on dep_mutex pointer.
  1034. 2012-05-15 H.J. Lu <hongjiu.lu@intel.com>
  1035. * sysdeps/unix/sysv/linux/x86_64/sem_wait.S: Use LP_OP(op)
  1036. on NWAITERS.
  1037. (__gcc_personality_v0): Replace 8-byte data alignment with
  1038. LP_SIZE alignment and .quad with ASM_ADDR.
  1039. 2012-05-15 H.J. Lu <hongjiu.lu@intel.com>
  1040. * sysdeps/unix/sysv/linux/x86_64/sem_timedwait.S: Use LP_OP(op)
  1041. on NWAITERS.
  1042. (__gcc_personality_v0): Replace 8-byte data alignment with
  1043. LP_SIZE alignment and .quad with ASM_ADDR.
  1044. 2012-05-15 H.J. Lu <hongjiu.lu@intel.com>
  1045. * sysdeps/unix/sysv/linux/x86_64/sem_post.S: Use LP_OP(cmp) on
  1046. NWAITERS, which is unsigned long int.
  1047. 2012-05-15 H.J. Lu <hongjiu.lu@intel.com>
  1048. * sysdeps/unix/sysv/linux/x86_64/pthread_once.S
  1049. (__gcc_personality_v0): Replace 8-byte data alignment with
  1050. LP_SIZE alignment and .quad with ASM_ADDR.
  1051. 2012-05-15 H.J. Lu <hongjiu.lu@intel.com>
  1052. * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: Use
  1053. LP_OP(cmp), RSI_LP and R8_LP on dep_mutex pointer. Load
  1054. __vdso_clock_gettime pointer into RAX_LP.
  1055. (__gcc_personality_v0): Replace 8-byte data alignment with
  1056. LP_SIZE alignment and .quad with ASM_ADDR.
  1057. 2012-05-15 H.J. Lu <hongjiu.lu@intel.com>
  1058. * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: Use
  1059. LP_OP(cmp), RSI_LP and R8_LP on dep_mutex pointer. Load
  1060. __vdso_clock_gettime pointer into RAX_LP.
  1061. (__gcc_personality_v0): Replace 8-byte data alignment with
  1062. LP_SIZE alignment and .quad with ASM_ADDR.
  1063. 2012-05-15 H.J. Lu <hongjiu.lu@intel.com>
  1064. * sysdeps/unix/sysv/linux/x86_64/pthread_cond_broadcast.S: Use
  1065. LP_OP(cmp) and R8_LP on dep_mutex pointer.
  1066. 2012-05-15 H.J. Lu <hongjiu.lu@intel.com>
  1067. * sysdeps/unix/sysv/linux/x86_64/cancellation.S: Use LP_OP(mov)
  1068. to update pointer in memory. Load pointer into RDI_LP.
  1069. 2012-05-15 H.J. Lu <hongjiu.lu@intel.com>
  1070. * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h
  1071. (LLL_STUB_UNWIND_INFO_START): Align label to LP_SIZE instead
  1072. of 8.
  1073. (LLL_STUB_UNWIND_INFO_END): Likewise.
  1074. (lll_timedlock): Load timeout pointer into RDX_LP.
  1075. (lll_robust_timedlock): Likewise.
  1076. 2012-05-15 Siddhesh Poyarekar <siddhesh@redhat.com>
  1077. Jakub Jelinek <jakub@redhat.com>
  1078. [BZ #13613]
  1079. * Makefile (tests): Add test cases.
  1080. * descr.h (struct pthread): Add a comment describing multiple_threads.
  1081. * pthreadP.h (__pthread_multiple_threads): Expand comment to include
  1082. single-process case.
  1083. * pthread_cancel.c (pthread_cancel): Enable multiple_threads
  1084. before setting cancelstate of the thread.
  1085. * sysdeps/unix/sysv/linux/libc_multiple_threads.c
  1086. (__libc_multiple_threads): Add explanatory comment.
  1087. * tst-cancel-self-cancelstate.c: New test case.
  1088. * tst-cancel-self-canceltype.c: Likewise.
  1089. * tst-cancel-self-cleanup.c: Supporting file for test cases.
  1090. * tst-cancel-self-testcancel.c: New test case.
  1091. * tst-cancel-self.c: Likewise.
  1092. * vars.c: Expand comment to include single-process case.
  1093. 2012-05-14 H.J. Lu <hongjiu.lu@intel.com>
  1094. * sysdeps/x86_64/tls.h: Don't include <bits/wordsize.h>.
  1095. (tcbhead_t): Remove __x86_64__ check. Align rtld_savespace_sse
  1096. to 32 bytes.
  1097. 2012-05-14 H.J. Lu <hongjiu.lu@intel.com>
  1098. * sysdeps/pthread/pthread.h (__PTHREAD_RWLOCK_INT_FLAGS_SHARED):
  1099. New.
  1100. (PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_NP): Check
  1101. __PTHREAD_RWLOCK_INT_FLAGS_SHARED instead of __WORDSIZE.
  1102. 2012-05-14 H.J. Lu <hongjiu.lu@intel.com>
  1103. * shlib-versions: Move x86_64-.*-linux.* entry to ...
  1104. * sysdeps/x86_64/64/shlib-versions: Here. New file.
  1105. * sysdeps/x86_64/x32/shlib-versions: New file.
  1106. 2012-05-14 H.J. Lu <hongjiu.lu@intel.com>
  1107. * sysdeps/unix/sysv/linux/x86_64/bits/pthreadtypes.h: Define x32
  1108. __SIZEOF_PTHREAD_XXX_T.
  1109. (__pthread_internal_list): Check __x86_64__ instead of __WORDSIZE.
  1110. (pthread_mutex_t): Likewise.
  1111. (pthread_rwlock_t): Likewise.
  1112. (__PTHREAD_RWLOCK_INT_FLAGS_SHARED): New. Defined if __x86_64__
  1113. is defined.
  1114. 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
  1115. * sysdeps/x86_64/x32/tls.h: New file.
  1116. 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
  1117. * sysdeps/x86_64/tls.h (THREAD_SETMEM): Use uint64_t on 64-bit
  1118. integer.
  1119. (THREAD_SETMEM_NC): Likewise.
  1120. 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
  1121. * sysdeps/x86_64/tls.h (THREAD_SELF): Replace movq/%q0 with
  1122. mov/%0.
  1123. 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
  1124. * sysdeps/unix/sysv/linux/x86_64/bits/pthreadtypes.h
  1125. (__cleanup_fct_attribute): Check __x86_64__ instead of
  1126. __WORDSIZE.
  1127. 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
  1128. * sysdeps/pthread/pthread.h (PTHREAD_MUTEX_INITIALIZER): Check
  1129. __PTHREAD_MUTEX_HAVE_PREV instead of __WORDSIZE.
  1130. (PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP): Likewise.
  1131. (PTHREAD_ERRORCHECK_MUTEX_INITIALIZER_NP): Likewise.
  1132. (PTHREAD_ADAPTIVE_MUTEX_INITIALIZER_NP): Likewise.
  1133. 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
  1134. * pthread_create.c (start_thread): Check __PTHREAD_MUTEX_HAVE_PREV
  1135. instead of __WORDSIZE.
  1136. 2012-05-10 Thomas Schwinge <thomas@schwinge.name>
  1137. [BZ #3748]
  1138. * sysdeps/pthread/bits/libc-lockP.h (__libc_once_get): New macro.
  1139. 2012-05-09 Chung-Lin Tang <cltang@codesourcery.com>
  1140. * sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S
  1141. (__pthread_cond_timedwait): Use CFI directives.
  1142. * sysdeps/unix/sysv/linux/sh/pthread_cond_wait.S
  1143. (__pthread_cond_wait): Likewise.
  1144. * sysdeps/unix/sysv/linux/sh/sem_timedwait.S (sem_timedwait): Likewise.
  1145. * sysdeps/unix/sysv/linux/sh/sem_wait.S (__new_sem_wait): Likewise.
  1146. 2012-05-03 David S. Miller <davem@davemloft.net>
  1147. * sysdeps/sparc/sparc64/pthread_spin_unlock.S: Fix thinko, we
  1148. always have to return 0, especially for the pthread_spin_init
  1149. alias.
  1150. * sysdeps/sparc/sparc32/pthread_spin_lock.S: Add missing trailing
  1151. newline.
  1152. * sysdeps/sparc/sparc32/sparcv9/pthread_spin_lock.S: Likewise.
  1153. * sysdeps/sparc/sparc64/pthread_spin_lock.S: Likewise.
  1154. 2012-05-02 David S. Miller <davem@davemloft.net>
  1155. * sysdeps/sparc/sparc64/pthread_spin_lock.S: New.
  1156. * sysdeps/sparc/sparc64/pthread_spin_lock.c: Delete.
  1157. * sysdeps/sparc/sparc64/pthread_spin_unlock.S: New.
  1158. * sysdeps/sparc/sparc64/pthread_spin_unlock.c: Delete.
  1159. * sysdeps/sparc/sparc64/pthread_spin_trylock.S: New.
  1160. * sysdeps/sparc/sparc64/pthread_spin_trylock.c: Delete.
  1161. * sysdeps/sparc/sparc64/pthread_spin_init.c: New.
  1162. * sysdeps/sparc/sparc32/pthread_spin_lock.S: New.
  1163. * sysdeps/sparc/sparc32/pthread_spin_lock.c: Delete.
  1164. * sysdeps/sparc/sparc32/pthread_spin_trylock.S: New.
  1165. * sysdeps/sparc/sparc32/pthread_spin_trylock.c: Delete.
  1166. * sysdeps/sparc/sparc32/sparcv9/pthread_spin_lock.S: New.
  1167. * sysdeps/sparc/sparc32/sparcv9/pthread_spin_lock.c: Delete.
  1168. * sysdeps/sparc/sparc32/sparcv9/pthread_spin_trylock.S: New.
  1169. * sysdeps/sparc/sparc32/sparcv9/pthread_spin_trylock.c: Delete.
  1170. * sysdeps/sparc/sparc32/sparcv9/pthread_spin_unlock.S: New.
  1171. * sysdeps/sparc/sparc32/sparcv9/pthread_spin_unlock.c: Delete.
  1172. * sysdeps/sparc/sparc32/sparcv9/pthread_spin_init.c: New.
  1173. 2012-05-02 Allan McRae <allan@archlinux.org>
  1174. * Makefile: (LDFLAGS-tst-tls5): Use $(no-as-needed).
  1175. (LDFLAGS-tst-cancel24): Likewise.
  1176. 2012-05-02 Paul Pluzhnikov <ppluzhnikov@google.com>
  1177. * sysdeps/i386/pthread_spin_lock.S: New.
  1178. * sysdeps/i386/pthread_spin_lock.c: Delete.
  1179. * sysdeps/x86_64/pthread_spin_lock.S: New.
  1180. * sysdeps/x86_64/pthread_spin_lock.c: Delete.
  1181. 2012-04-28 Andreas Schwab <schwab@linux-m68k.org>
  1182. * Makefile ($(objpfx)tst-stack3-mem, $(objpfx)tst-tls6.out): Don't
  1183. run when cross-compiling.
  1184. 2012-04-26 Siddhesh Poyarekar <siddhesh@redhat.com>
  1185. * sysdeps/pthread/unwind-forcedunwind.c: Include gnu/lib-names.h
  1186. instead of libgcc_s.h.
  1187. 2012-04-20 Paul Pluzhnikov <ppluzhnikov@google.com>
  1188. * sysdeps/x86_64/tls.h (TLS_GET_FS, TLS_SET_FS): Delete.
  1189. 2012-03-27 David S. Miller <davem@davemloft.net>
  1190. * tst-cond16.c (do_test): Use a thread stack size which is either
  1191. PTHREAD_STACK_MIN or the page size, whichever is larger.
  1192. * tst-cond18.c (do_test): Likewise.
  1193. 2012-03-19 H.J. Lu <hongjiu.lu@intel.com>
  1194. * sysdeps/x86_64/pthreaddef.h (CURRENT_STACK_FRAME): Use
  1195. register char * __asm__("rsp") to get stack frame.
  1196. 2012-03-19 H.J. Lu <hongjiu.lu@intel.com>
  1197. * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (SYS_futex): Use
  1198. __NR_futex directly.
  1199. 2012-03-19 H.J. Lu <hongjiu.lu@intel.com>
  1200. * unwind.c (unwind_stop): Cast _Unwind_GetCFA return to
  1201. _Unwind_Ptr first.
  1202. 2012-03-16 David S. Miller <davem@davemloft.net>
  1203. [BZ #13844]
  1204. * sysdeps/unix/sysv/linux/libc-lowlevellock.c: Include using <..>
  1205. instead of "...".
  1206. * sysdeps/unix/sysv/linux/sparc/sparc32/libc-lowlevellock.c:
  1207. Delete, not needed.
  1208. 2012-03-15 David S. Miller <davem@davemloft.net>
  1209. [BZ #13844]
  1210. * sysdeps/unix/sysv/linux/sparc/sparc32/libc-lowlevellock.c: New file.
  1211. 2012-03-09 Paul Eggert <eggert@cs.ucla.edu>
  1212. [BZ #13673]
  1213. * pt-crti.S: Replace FSF snail mail address with URL.
  1214. 2012-03-09 Joseph Myers <joseph@codesourcery.com>
  1215. * sysdeps/pthread/pthread.h (__need_clockid_t, __need_timespec):
  1216. Do not define before including <time.h>.
  1217. 2012-03-08 David S. Miller <davem@davemloft.net>
  1218. * sysdeps/unix/sysv/linux/sparc/sem_post.c: Update copyright year.
  1219. 2012-03-08 Thomas Schwinge <thomas@codesourcery.com>
  1220. * sysdeps/unix/sysv/linux/sh/lowlevellock.S (__lll_timedlock_wait):
  1221. Check for timestamp before the Epoch.
  1222. * sysdeps/unix/sysv/linux/sh/sem_timedwait.S (sem_timedwait): Fix
  1223. updating nwaiters.
  1224. * tst-sem13.c (do_test): Add another test case.
  1225. * sysdeps/unix/sysv/linux/i386/i486/sem_timedwait.S (sem_timedwait):
  1226. Fix updating nwaiters.
  1227. 2012-03-07 Joseph Myers <joseph@codesourcery.com>
  1228. [BZ #10545]
  1229. * sysdeps/pthread/configure.in (libc_cv_forced_unwind): Change
  1230. link test to a compile test.
  1231. (libc_cv_c_cleanup): Likewise. Declare puts rather than including
  1232. <stdio.h>.
  1233. * sysdeps/pthread/configure: Regenerated.
  1234. 2012-03-07 Ulrich Drepper <drepper@gmail.com>
  1235. * Makefile (distribute): Remove variable.
  1236. 2012-01-23 Thomas Schwinge <thomas@codesourcery.com>
  1237. * sysdeps/unix/sysv/linux/sem_timedwait.c (sem_timedwait): Get rid of
  1238. superfluous assignment.
  1239. * sysdeps/unix/sysv/linux/sparc/sem_timedwait.c (sem_timedwait):
  1240. Likewise.
  1241. * sysdeps/unix/sysv/linux/sparc/sparc32/sem_timedwait.c
  1242. (sem_timedwait): Likewise.
  1243. 2012-03-06 Ulrich Drepper <drepper@gmail.com>
  1244. * sysdeps/pthread/bits/libc-lock.h: Move information not needed in
  1245. installed headers to...
  1246. * sysdeps/pthread/bits/libc-lockP.h: ...here. New file.
  1247. 2012-03-06 David S. Miller <davem@davemloft.net>
  1248. * sysdeps/unix/sysv/linux/sparc/sem_post.c (__new_sem_post): Use
  1249. atomic_increment and remove unused local variable.
  1250. (__old_sem_post): Likewise.
  1251. 2012-02-27 David S. Miller <davem@davemloft.net>
  1252. * sysdeps/unix/sysv/linux/i386/bits/pthreadtypes.h: Don't refer to
  1253. non-existing __pthread_attr.
  1254. * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: Likewise.
  1255. * sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h: Likewise.
  1256. * sysdeps/unix/sysv/linux/sh/bits/pthreadtypes.h: Likewise.
  1257. * sysdeps/unix/sysv/linux/sparc/bits/pthreadtypes.h: Likewise.
  1258. * sysdeps/unix/sysv/linux/x86_64/bits/pthreadtypes.h: Likewise.
  1259. 2012-02-26 Ulrich Drepper <drepper@gmail.com>
  1260. * sysdeps/pthread/pthread.h: Define __need_clockid_t for __USE_XOPEN2K.
  1261. * sysdeps/pthread/pthread.h: Define __need_timespec before including
  1262. <time.h>.
  1263. * sysdeps/unix/sysv/linux/i386/bits/pthreadtypes.h: Name pthread_attr_t
  1264. union.
  1265. * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: Likewise.
  1266. * sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h: Likewise.
  1267. * sysdeps/unix/sysv/linux/sh/bits/pthreadtypes.h: Likewise.
  1268. * sysdeps/unix/sysv/linux/sparc/bits/pthreadtypes.h: Likewise.
  1269. * sysdeps/unix/sysv/linux/x86_64/bits/pthreadtypes.h: Likewise.
  1270. 2012-02-21 Joseph Myers <joseph@codesourcery.com>
  1271. [BZ #13695]
  1272. * Makefile (generated): Remove crti.S, crtn.S, defs.h and
  1273. pt-initfini.s.
  1274. [crti.S not in sysdirs] (omit-deps): Do not append.
  1275. [crti.S not in sysdirs] (CFLAGS-pt-initfini.s): Remove variable.
  1276. [crti.S not in sysdirs] (pt-initfini.c): Remove vpath directive.
  1277. [crti.S not in sysdirs] ($(objpfx)crti.S): Remove rule.
  1278. [crti.S not in sysdirs] ($(objpfx)crtn.S): Likewise.
  1279. [crti.S not in sysdirs] ($(objpfx)defs.h): Likewise.
  1280. [crti.S not in sysdirs] ($(objpfx)crti.o): Likewise.
  1281. [crti.S not in sysdirs] ($(objpfx)crtn.o): Likewise.
  1282. [crti.S in sysdirs] (extra-objs): Append unconditionally.
  1283. [crti.S in sysdirs] ($(objpfx)crti.o): Define rule
  1284. unconditionally.
  1285. * sysdeps/pthread/pt-initfini.c: Remove file.
  1286. 2012-02-16 Richard Henderson <rth@twiddle.net>
  1287. * sysdeps/unix/sysv/linux/s390/s390-32/pt-initfini.c: Remove file.
  1288. * sysdeps/unix/sysv/linux/s390/s390-64/pt-initfini.c: Remove file.
  1289. 2012-02-15 Kaz Kojima <kkojima@rr.iij4u.or.jp>
  1290. * sysdeps/unix/sysv/linux/sh/pt-initfini.c: Remove file.
  1291. 2012-02-16 David S. Miller <davem@davemloft.net>
  1292. * sysdeps/sparc/Makefile: Add -fPIC when building pt-crti.S and crtn.S
  1293. 2012-02-15 Marek Polacek <polacek@redhat.com>
  1294. * sysdeps/unix/sysv/linux/x86_64/Makefile: Remove file.
  1295. 2012-02-09 Paul Eggert <eggert@cs.ucla.edu>
  1296. Replace FSF snail mail address with URLs, as per GNU coding standards.
  1297. 2012-02-08 Andreas Schwab <schwab@linux-m68k.org>
  1298. * Makefile (extra-objs) [crti.S in sysdirs]: Add pt-crti.o.
  1299. 2012-02-08 Joseph Myers <joseph@codesourcery.com>
  1300. Support crti.S and crtn.S provided directly by architectures.
  1301. * Makefile [crti.S in sysdirs] (omit-deps): Do not append.
  1302. [crti.S in sysdirs] (CFLAGS-pt-initfini.s): Do not define variable.
  1303. [crti.S in sysdirs] ($(objpfx)pt-initfini.s): Disable rule.
  1304. [crti.S in sysdirs] ($(objpfx)crti.S): Likewise.
  1305. [crti.S in sysdirs] ($(objpfx)crtn.S): Likewise.
  1306. [crti.S in sysdirs] ($(objpfx)defs.h): Likewise.
  1307. [crti.S in sysdirs] ($(objpfx)crti.o): Likewise.
  1308. [crti.S in sysdirs] ($(objpfx)crtn.o): Likewise.
  1309. [crti.S in sysdirs] (pt-initfini.c): Remove vpath directive.
  1310. [crti.S in sysdirs] ($(objpfx)crti.o): New rule.
  1311. * pt-crti.S: New file.
  1312. * sysdeps/unix/sysv/linux/i386/Makefile: Remove file.
  1313. 2012-02-03 Joseph Myers <joseph@codesourcery.com>
  1314. * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Use
  1315. macros for PIC register setup.
  1316. * sysdeps/unix/sysv/linux/i386/i486/sem_post.S: Likewise.
  1317. * sysdeps/unix/sysv/linux/i386/i486/sem_timedwait.S: Likewise.
  1318. * sysdeps/unix/sysv/linux/i386/i486/sem_trywait.S: Likewise.
  1319. * sysdeps/unix/sysv/linux/i386/i486/sem_wait.S: Likewise.
  1320. * sysdeps/unix/sysv/linux/i386/pthread_once.S: Likewise.
  1321. 2012-01-11 Marek Polacek <polacek@redhat.com>
  1322. * forward.c (FORWARD_NORETURN): Define macro.
  1323. (__pthread_unwind): Use FORWARD_NORETURN macro to avoid warning.
  1324. (__pthread_exit): Likewise.
  1325. 2012-01-10 Ulrich Drepper <drepper@gmail.com>
  1326. * sysdeps/pthread/pthread.h: Add const attribute to pthread_equal.
  1327. * pthreadP.h: Add noreturn to __pthread_exit.
  1328. * sysdeps/pthread/pthread-functions.h: Likewise for ptr___pthread_exit.
  1329. 2011-12-30 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
  1330. * sysdeps/unix/sysv/linux/aio_misc.h (__aio_create_helper_thread):
  1331. Call pthread_attr_setstacksize() with result of
  1332. __pthread_get_minstack() to account for application TLS usage.
  1333. 2012-01-08 Marek Polacek <polacek@redhat.com>
  1334. * sysdeps/unix/sysv/linux/mq_notify.c: Include <nptl/pthreadP.h>.
  1335. 2012-01-07 Ulrich Drepper <drepper@gmail.com>
  1336. [BZ #13553]
  1337. * pthreadP.h: Use const instead of __const.
  1338. * semaphore.h: Likewise.
  1339. * sysdeps/pthread/bits/libc-lock.h: Likewise.
  1340. * sysdeps/pthread/bits/sigthread.h: Likewise.
  1341. * sysdeps/pthread/pthread.h: Likewise.
  1342. * Makefile: Remove elf=yes test, only ELF is supported.
  1343. * shlib-versions: Remove entries for ports architectures.
  1344. In case anyone cares, the IA-64 architecture could move to ports.
  1345. * sysdeps/ia64/*: Removed.
  1346. * sysdeps/unix/sysv/linux/ia64/*: Removed.
  1347. 2011-12-22 Ulrich Drepper <drepper@gmail.com>
  1348. * sysdeps/pthread/gai_misc.h (__gai_create_helper_thread): Use
  1349. __pthread_get_minstack.
  1350. * sysdeps/unix/sysv/linux/mq_notify.c (init_mq_netlink): Likewise.
  1351. [BZ #13088]
  1352. * sysdeps/unix/sysv/linux/timer_routines.c: Get minimum stack size
  1353. through __pthread_get_minstack.
  1354. * nptl-init.c (__pthread_initialize_minimal_internal): Get page size
  1355. directly from _rtld_global_ro.
  1356. (__pthread_get_minstack): New function.
  1357. * pthreadP.h: Declare __pthread_get_minstack.
  1358. * Versions (libpthread) [GLIBC_PRIVATE]: Add __pthread_get_minstack.
  1359. 2011-12-21 Ulrich Drepper <drepper@gmail.com>
  1360. [BZ #13515]
  1361. * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
  1362. Correct reading name from file.
  1363. 2011-12-14 Carlos O'Donell <carlos@systemhalted.org>
  1364. * allocatestack.c (allocate_stack): Return errno on failure.
  1365. 2011-12-14 Jeff Law <law@redhat.com>
  1366. [BZ #5245]
  1367. * pthread_create.c (__pthread_create_2_1): Translate ENOMEM to EAGAIN.
  1368. 2011-11-28 Andreas Schwab <schwab@redhat.com>
  1369. * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Handle
  1370. EAGAIN from FUTEX_WAIT_REQUEUE_PI.
  1371. * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: Likewise.
  1372. 2011-11-15 Ulrich Drepper <drepper@gmail.com>
  1373. * pthread_getattr_np.c (pthread_getattr_np): Set FD_CLOEXEC for
  1374. /proc/self/maps.
  1375. 2011-10-29 Ulrich Drepper <drepper@gmail.com>
  1376. [BZ #13358]
  1377. * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S
  1378. (__pthread_cond_timedwait): Initialize %r15 correctly also for code
  1379. path for kernels with FUTEX_CLOCK_REALTIME.
  1380. Debugged by H.J. Lu <hjl.tools@gmail.com>.
  1381. 2011-10-27 Andreas Schwab <schwab@redhat.com>
  1382. [BZ #13344]
  1383. * sysdeps/pthread/pthread.h: Use __THREADNL instead of __THREAD
  1384. for memory synchronization functions.
  1385. * semaphore.h: Likewise.
  1386. 2011-10-24 Ulrich Drepper <drepper@gmail.com>
  1387. * tst-cancel7.c: Avoid warning.
  1388. * tst-mutex6.c: Likewise.
  1389. * tst-mutex9.c: Likewise.
  1390. * tst-mutexpi6.c: Likewise.
  1391. 2011-10-23 Ulrich Drepper <drepper@gmail.com>
  1392. * sysdeps/i386/tls.h: Remove #include <list.h>.
  1393. 2011-10-15 Ulrich Drepper <drepper@gmail.com>
  1394. * pthread_create.c (start_thread): Call __ctype_init.
  1395. 2011-09-15 Andreas Schwab <schwab@redhat.com>
  1396. * sysdeps/pthread/list.h: Define only list_t if __need_list_t is
  1397. defined.
  1398. (list_add): Add atomic_write_barrier.
  1399. * descr.h: Define __need_list_t before including <list.h>.
  1400. * nptl-init.c: Include <list.h>
  1401. * allocatestack.c: Likewise.
  1402. 2011-09-11 Ulrich Drepper <drepper@gmail.com>
  1403. * sysdeps/i386/tls.h: Remove HAVE_TLS_SUPPORT test.
  1404. * sysdeps/ia64/tls.h: Likewise.
  1405. * sysdeps/powerpc/tls.h: Likewise.
  1406. * sysdeps/s390/tls.h: Likewise.
  1407. * sysdeps/sh/tls.h: Likewise.
  1408. * sysdeps/sparc/tls.h: Likewise.
  1409. * sysdeps/x86_64/tls.h: Likewise.
  1410. 2011-09-10 Ulrich Drepper <drepper@gmail.com>
  1411. * sysdeps/pthread/malloc-machine.h: Define MUTEX_INITIALIZER.
  1412. * sysdeps/unix/sysv/linux/i386/i486/sem_post.S: Don't handle
  1413. !USE___THREAD.
  1414. * sysdeps/unix/sysv/linux/i386/i486/sem_timedwait.S: Likewise.
  1415. * sysdeps/unix/sysv/linux/i386/i486/sem_trywait.S: Likewise.
  1416. * sysdeps/unix/sysv/linux/i386/i486/sem_wait.S: Likewise.
  1417. * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h: Likewise.
  1418. * sysdeps/unix/sysv/linux/sh/sem_post.S: Likewise.
  1419. * sysdeps/unix/sysv/linux/sh/sem_timedwait.S: Likewise.
  1420. * sysdeps/unix/sysv/linux/sh/sem_trywait.S: Likewise.
  1421. * sysdeps/unix/sysv/linux/sh/sem_wait.S: Likewise.
  1422. * sysdeps/unix/sysv/linux/x86_64/sem_post.S: Likewise.
  1423. * sysdeps/unix/sysv/linux/x86_64/sem_timedwait.S: Likewise.
  1424. * sysdeps/unix/sysv/linux/x86_64/sem_trywait.S: Likewise.
  1425. * sysdeps/unix/sysv/linux/x86_64/sem_wait.S: Likewise.
  1426. * tst-tls1.c: Support for __thread is now mandatory.
  1427. * tst-tls2.c: Likewise.
  1428. * tst-tls3.c: Likewise.
  1429. * tst-tls3mod.c: Likewise.
  1430. * tst-tls4.c: Likewise.
  1431. * tst-tls4moda.c: Likewise.
  1432. * tst-tls4modb.c: Likewise.
  1433. * tst-tls5.h: Likewise.
  1434. 2011-09-08 Ulrich Drepper <drepper@gmail.com>
  1435. [BZ #12403]
  1436. * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedwrlock.S
  1437. (pthread_rwlock_timedwrlock): Use correct macro in test.
  1438. Patch by H.J. Lu <hongjiu.lu@intel.com>.
  1439. 2011-09-06 Ulrich Drepper <drepper@gmail.com>
  1440. * sysdeps/unix/sysv/linux/x86_64/sem_timedwait.S (sem_timedwait): Don't
  1441. use gettimeofday vsyscall, just call gettimeofday.
  1442. * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
  1443. * sysdeps/unix/sysv/linux/x86_64/lowlevelrobustlock.S: Likewise.
  1444. * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedrdlock.S:
  1445. Likewise.
  1446. * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedwrlock.S:
  1447. Likewise.
  1448. * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: Likewise.
  1449. Simplify __vdso_clock_gettime use.
  1450. 2011-09-05 David S. Miller <davem@davemloft.net>
  1451. * sysdeps/unix/sysv/linux/sem_timedwait.c (do_futex_timed_wait):
  1452. New function.
  1453. (sem_timedwait): Call it to force an exception region around
  1454. the async cancel enable and the futex operation.
  1455. * sysdeps/unix/sysv/linux/sparc/sem_timedwait.c: Likewise.
  1456. * sysdeps/unix/sysv/linux/sparc/sparc32/sem_timedwait.c: Likewise.
  1457. * sysdeps/unix/sysv/linux/sem_wait.c (do_futex_wait): New function.
  1458. (__new_sem_wait): Call it to force an exception region around
  1459. the async cancel enable and the futex operation.
  1460. * sysdeps/unix/sysv/linux/sparc/sem_wait.c: Likewise.
  1461. * sysdeps/unix/sysv/linux/sparc/sparc32/sem_wait.c: Likewise.
  1462. 2011-08-31 Andreas Schwab <schwab@redhat.com>
  1463. * allocatestack.c (setxid_mark_thread): Ensure that the exiting
  1464. thread is woken up.
  1465. 2011-08-20 David S. Miller <davem@davemloft.net>
  1466. * Makefile (tst-cleanup0.out): Fix typo in output redirection.
  1467. 2011-08-14 Roland McGrath <roland@hack.frob.com>
  1468. * sysdeps/i386/pthreaddef.h (TCB_ALIGNMENT): Set to 64, optimal on Atom.
  1469. * sysdeps/x86_64/pthreaddef.h (TCB_ALIGNMENT): Likewise.
  1470. 2011-08-08 Andreas Schwab <schwab@redhat.com>
  1471. * sysdeps/unix/sysv/linux/x86_64/cancellation.S: Maintain aligned
  1472. stack.
  1473. * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: Likewise.
  1474. * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: Likewise.
  1475. 2011-07-22 Ulrich Drepper <drepper@gmail.com>
  1476. * sysdeps/pthread/unwind-forcedunwind.c (_Unwind_Resume): Add read
  1477. barrier.
  1478. (__gcc_personality_v0): Likewise.
  1479. (_Unwind_ForcedUnwind): Likewise.
  1480. (_Unwind_GetCFA): Likewise.
  1481. 2011-07-14 Roland McGrath <roland@hack.frob.com>
  1482. * allocatestack.c (__reclaim_stacks): Use uintptr_t cast rather than
  1483. UINTMAX_C.
  1484. 2011-06-30 Ulrich Drepper <drepper@gmail.com>
  1485. * nptl-init.c (__nptl_set_robust): New function.
  1486. (pthread_functions): Add reference.
  1487. * npthreadP.h: Declare __nptl_set_robust.
  1488. * sysdeps/pthread/pthread-functions.h (pthread_functions): Add
  1489. ptr_set_robust member.
  1490. * sysdeps/unix/sysv/linux/fork.c: Call set_robust_list syscall in
  1491. child if threads are used.
  1492. 2011-06-14 Andreas Jaeger <aj@suse.de>
  1493. * pthread_rwlock_init.c: Include <string.h> for memset declaration.
  1494. 2011-05-11 Ulrich Drepper <drepper@gmail.com>
  1495. [BZ #386]
  1496. * allocatestack.c (allocate_stack): Convert ENOMEM error to EAGAIN.
  1497. 2011-04-10 Ulrich Drepper <drepper@gmail.com>
  1498. [BZ #12650]
  1499. * allocatestack.c (get_cached_stack): Deallocate DTV entries before
  1500. clearing memory.
  1501. Patch partly by Robert Rex <robert.rex@exasol.com>.
  1502. 2011-01-19 Roland McGrath <roland@redhat.com>
  1503. * pthread_cond_wait.c (__pthread_cond_wait): Fix comment typo.
  1504. * pthread_cond_timedwait.c (__pthread_cond_timedwait): Likewise.
  1505. * pthread_rwlock_rdlock.c (__pthread_rwlock_rdlock): Likewise.
  1506. * pthread_rwlock_wrlock.c (__pthread_rwlock_wrlock): Likewise.
  1507. * pthread_rwlock_timedrdlock.c (pthread_rwlock_timedrdlock): Likewise.
  1508. * pthread_rwlock_timedwrlock.c (pthread_rwlock_timedwrlock): Likewise.
  1509. 2011-01-16 Andreas Schwab <schwab@linux-m68k.org>
  1510. * Makefile (test-extras): Add tst-cleanup4aux.
  1511. 2011-01-14 Ulrich Drepper <drepper@gmail.com>
  1512. [BZ #10563]
  1513. * sysdeps/pthread/setxid.h (__SETXID_1): Add cast to assignment.
  1514. (__SETXID_2): Likewise.
  1515. (__SETXID_3): Likewise.
  1516. 2011-01-13 Ulrich Drepper <drepper@gmail.com>
  1517. [BZ #10484]
  1518. * Versions [libc] (GLIBC_PRIVATE): Export __libc_alloca_cutoff.
  1519. * alloca_cutoff.c: Add libc_hidden_def.
  1520. 2010-10-13 H.J. Lu <hongjiu.lu@intel.com>
  1521. [BZ #12113]
  1522. * sysdeps/x86_64/pthreaddef.h (TCB_ALIGNMENT): Changed to 32.
  1523. * sysdeps/x86_64/tls.h (TLS_TCB_ALIGN): Defined with alignment
  1524. of "struct pthread".
  1525. 2010-09-21 Andreas Schwab <schwab@redhat.com>
  1526. * sysdeps/pthread/pthread.h (pthread_cleanup_push)
  1527. [!__EXCEPTIONS]: Mangle local variable not_first_call.
  1528. (pthread_cleanup_push_defer_np): Likewise.
  1529. 2010-09-03 Ulrich Drepper <drepper@redhat.com>
  1530. * sysdeps/pthread/allocalim.h (__libc_use_alloca): Expect blocks are
  1531. small.
  1532. 2010-08-10 Dinakar Guniguntala <dino@in.ibm.com>
  1533. Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
  1534. * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S: If
  1535. FUTEX_WAKE_OP fails make sure to call FUTEX_WAKE instead.
  1536. 2010-08-12 H.J. Lu <hongjiu.lu@intel.com>
  1537. * sysdeps/unix/sysv/linux/i386/Makefile: New file.
  1538. 2010-05-01 Alan Modra <amodra@gmail.com>
  1539. * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h
  1540. (PSEUDO): Use correct cr save. Don't use wrong parm save area
  1541. to save temps. Correct cfi for possible later frame manipulation.
  1542. (DOCARGS_1, UNDOCARGS_1): Use the correct parm save area.
  1543. (DOCARGS_2, UNDOCARGS_2, DOCARGS_3, UNDOCARGS_3): Likewise.
  1544. (DOCARGS_4, UNDOCARGS_4, DOCARGS_5, UNDOCARGS_5): Likewise.
  1545. (DOCARGS_6, UNDOCARGS_6): Likewise.
  1546. (CENABLE, CDISABLE): Add nops for non-shared calls.
  1547. 2010-07-06 Andreas Schwab <schwab@redhat.com>
  1548. * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
  1549. Fix type mismatch.
  1550. 2010-07-03 Ulrich Drepper <drepper@redhat.com>
  1551. * tst-abstime.c (do_test): Some more cleanups
  1552. 2010-07-02 Ulrich Drepper <drepper@redhat.com>
  1553. * tst-abstime.c: Correct testing and add test for sem_timedwait.
  1554. 2010-07-01 Andreas Schwab <schwab@redhat.com>
  1555. Ulrich Drepper <drepper@redhat.com>
  1556. * Makefile (tests): Add tst-abstime.
  1557. * tst-abstime.c: New file.
  1558. * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S
  1559. (__lll_timedlock_wait): Check for timestamp before the Epoch.
  1560. * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S
  1561. (__lll_timedlock_wait): Likewise.
  1562. * sysdeps/unix/sysv/linux/x86_64/lowlevelrobustlock.S
  1563. (__lll_robust_timedlock_wait): Likewise.
  1564. * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S
  1565. (__pthread_cond_timedwait): Likewise.
  1566. * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedrdlock.S
  1567. (pthread_rwlock_timedrdlock): Likewise.
  1568. * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedwrlock.S
  1569. (pthread_rwlock_timedwrlock): Likewise.
  1570. * sysdeps/unix/sysv/linux/x86_64/sem_timedwait.S (sem_timedwait):
  1571. Likewise.
  1572. 2010-07-01 Ulrich Drepper <drepper@redhat.com>
  1573. * Makefile (tst-_res1): Add tst-_res1mod1 to dependency list.
  1574. 2010-06-01 Takashi Yoshii <takashi.yoshii.zj@renesas.com>
  1575. * sysdeps/unix/sysv/linux/sh/lowlevellock.S: Fix incorrect
  1576. location of ifndef __ASSUME_FUTEX_CLOCK_REALTIME.
  1577. 2010-04-09 Ulrich Drepper <drepper@redhat.com>
  1578. [BZ #11390]
  1579. * sysdeps/unix/sysv/linux/pthread_getname.c: New file.
  1580. * sysdeps/unix/sysv/linux/pthread_setname.c: New file.
  1581. * nptl/sysdeps/pthread/pthread.h: Declare pthread_getname and
  1582. pthread_setname.
  1583. * Makefile (libpthread-routines): Add pthread_getname and
  1584. pthread_setname.
  1585. * Versions: Export pthread_getname and pthread_setname for GLIBC_2.12.
  1586. 2010-04-05 Thomas Schwinge <thomas@schwinge.name>
  1587. * sysdeps/pthread/unwind-resume.c: Moved to main tree sysdeps/gnu/.
  1588. * sysdeps/pthread/rt-unwind-resume.c: Likewise.
  1589. * sysdeps/pthread/Makefile: Remove csu section and rt section's
  1590. unwind-resume bits, now in main tree sysdeps/gnu/Makefile instead.
  1591. 2010-03-23 Luis Machado <luisgpm@br.ibm.com>
  1592. * pthread_cond_timedwait.c: Add check for
  1593. HAVE_CLOCK_GETTIME_VSYSCALL to use VDSO whenever possible.
  1594. (pthread_cond_timedwait): Use INTERNAL_VSYSCALL instead of
  1595. INTERNAL_SYSCALL.
  1596. 2010-03-09 Ulrich Drepper <drepper@redhat.com>
  1597. * pthread_create.c (__pthread_create_2_1): If priorities are incorrect
  1598. and the call fails wake eventually waiting setxid threads. Don't free
  1599. stack here if we try starting a thread.
  1600. * sysdeps/pthread/createthread.c (do_clone): Only wake setxid waiter
  1601. if the clone call failed.
  1602. 2010-03-08 Andreas Schwab <schwab@redhat.com>
  1603. * pthread_create.c (__pthread_create_2_1): Don't set setxid_futex.
  1604. * allocatestack.c (get_cached_stack): Set setxid_futex.
  1605. (allocate_stack): Likewise.
  1606. 2010-03-05 Andreas Schwab <schwab@redhat.com>
  1607. Ulrich Drepper <drepper@redhat.com>
  1608. * allocatestack.c (setxid_mark_thread): Delay handling of thread if
  1609. it is creating a thread or it is just being created.
  1610. * pthread_create.c (start_thread): Wake setxid thread if it is
  1611. waiting.
  1612. (__pthread_create_2_1): Initialize setxid_futex.
  1613. * sysdeps/pthread/createthread.c (do_clone): Wake setxid thread if it
  1614. is waiting.
  1615. 2010-01-15 Ulrich Drepper <drepper@redhat.com>
  1616. * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S:
  1617. Fix unwind info.
  1618. * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Likewise.
  1619. 2010-01-15 Michal Schmidt <mschmidt@redhat.com>
  1620. * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S:
  1621. Fix pthread_cond_timedwait with requeue-PI.
  1622. * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S:
  1623. Fix pthread_cond_wait with requeue-PI.
  1624. 2010-01-14 Ulrich Drepper <drepper@redhat.com>
  1625. * Versions: Add pthread_mutex_consistent, pthread_mutexattr_getrobust,
  1626. and pthread_mutexattr_setrobust for GLIBC_2.12.
  1627. * pthread_mutex_consistent.c: Define alias pthread_mutex_consistent.
  1628. * pthread_mutexattr_getrobust.c: Define alias
  1629. pthread_mutexattr_getrobust.
  1630. * pthread_mutexattr_setrobust.c: Define alias
  1631. pthread_mutexattr_setrobust.
  1632. 2010-01-12 Ulrich Drepper <drepper@redhat.com>
  1633. * sysdeps/pthread/pthread.h: Cleanup. Fix up for XPG7.
  1634. 2010-01-08 Ulrich Drepper <drepper@redhat.com>
  1635. * sysdeps/pthread/pthread.h: Fix pthread_mutex_consistent declaration.
  1636. 2009-12-18 Thomas Schwinge <thomas@codesourcery.com>
  1637. * sysdeps/unix/sysv/linux/s390/s390-32/pt-initfini.c (_init): Don't
  1638. call __gmon_start__.
  1639. * sysdeps/unix/sysv/linux/s390/s390-64/pt-initfini.c (_init): Likewise.
  1640. 2009-12-17 Ulrich Drepper <drepper@redhat.com>
  1641. * pthread_rwlock_init.c (__pthread_rwlock_init): Simplify code by
  1642. using memset.
  1643. 2009-12-01 Dinakar Guniguntala <dino@in.ibm.com>
  1644. * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.h: Define
  1645. FUTEX_WAIT_REQUEUE_PI and FUTEX_CMP_REQUEUE_PI.
  1646. * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_broadcast.S: If mutex
  1647. is a non robust PI mutex, then use FUTEX_CMP_REQUEUE_PI.
  1648. * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S: Likewise.
  1649. * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: If mutex
  1650. is a non robust PI mutex, then use FUTEX_WAIT_REQUEUE_PI.
  1651. * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Likewise.
  1652. 2009-12-12 Ulrich Drepper <drepper@redhat.com>
  1653. * sysdeps/unix/sysv/linux/i386/i486/sem_timedwait.S (sem_timedwait):
  1654. Don't update nwaiters after invalid timeout is recognized.
  1655. 2009-11-27 Thomas Schwinge <thomas@codesourcery.com>
  1656. * sysdeps/unix/sysv/linux/sh/pt-initfini.c (_init): Don't call
  1657. __gmon_start__.
  1658. 2009-11-27 Andreas Schwab <schwab@redhat.com>
  1659. * sysdeps/unix/sysv/linux/x86_64/cancellation.S: Reload
  1660. THREAD_SELF->cancelhandling after returning from futex call.
  1661. 2009-11-24 Ulrich Drepper <drepper@redhat.com>
  1662. * tst-sem13.c: New file.
  1663. * Makefile (tests): Add tst-sem13.
  1664. 2009-11-22 Roland McGrath <roland@redhat.com>
  1665. * sysdeps/unix/sysv/linux/i386/dl-sysdep.h: # include "i686/dl-sysdep.h"
  1666. instead of recapitulating its contents.
  1667. 2009-11-18 Ulrich Drepper <drepper@redhat.com>
  1668. * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_broadcast.S: Minor
  1669. optimizations and cleanups.
  1670. 2009-11-18 Dinakar Guniguntala <dino@in.ibm.com>
  1671. * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_broadcast.S:
  1672. Remove redundant code. Fix cfi offsets.
  1673. * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S:
  1674. Fix cfi offsets.
  1675. 2009-11-17 Ulrich Drepper <drepper@redhat.com>
  1676. * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: Minimally
  1677. reduce size of unwind info.
  1678. * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Convert to use
  1679. cfi directives.
  1680. * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: Likewise.
  1681. Based on a patch by Dinakar Guniguntala <dino@in.ibm.com>.
  1682. 2009-11-03 Andreas Schwab <schwab@linux-m68k.org>
  1683. [BZ #4457]
  1684. * sysdeps/pthread/unwind-resume.c: Include <libgcc_s.h> and use
  1685. LIBGCC_S_SO.
  1686. * sysdeps/pthread/unwind-forcedunwind.c: Likewise.
  1687. 2009-10-30 Ulrich Drepper <drepper@redhat.com>
  1688. * tst-sem11.c (main): Rewrite to avoid aliasing problems.
  1689. [BZ #3270]
  1690. * allocatestack.c (__nptl_setxid): Perform the operation in multiple
  1691. steps to avoid races with creation and terminations.
  1692. * nptl-init.c (sighandler_setxid): Adjust.
  1693. Patch by Daniel Jacobowitz.
  1694. 2009-09-07 Andreas Schwab <schwab@redhat.com>
  1695. * sysdeps/pthread/bits/libc-lock.h (BP_SYM): Remove space before paren.
  1696. 2009-09-02 Suzuki K P <suzuki@in.ibm.com>
  1697. Joseph Myers <joseph@codesourcery.com>
  1698. [BZ #7094]
  1699. * sysdeps/unix/sysv/linux/timer_create.c (timer_create):
  1700. Initialize the sigev_notify field for newly created timer to make sure
  1701. the timer gets deleted from the active timer's list upon timer_delete.
  1702. 2009-08-27 Andrew Stubbs <ams@codesourcery.com>
  1703. * sysdeps/unix/sysv/linux/sh/lowlevellock.S (__lll_timedlock_wait):
  1704. Correct a logic error.
  1705. 2009-08-25 Ulrich Drepper <drepper@redhat.com>
  1706. * sysdeps/x86_64/tls.h (RTLD_ENABLE_FOREIGN_CALL): Store old value
  1707. of the field in local variables.
  1708. (RTLD_FINALIZE_FOREIGN_CALL): Restore rtld_must_xmm_save from local
  1709. variable and don't unconditionally clear it.
  1710. 2009-08-24 Ulrich Drepper <drepper@redhat.com>
  1711. * pthread_create.c (start_thread): Hint to the kernel that memory for
  1712. the stack can be reused. We do not mark all the memory. The part
  1713. still in use and some reserve are kept.
  1714. 2009-08-23 Ulrich Drepper <drepper@redhat.com>
  1715. * sysdeps/unix/sysv/linux/bits/posix_opt.h: Clean up namespace.
  1716. 2009-08-11 Ulrich Drepper <drepper@redhat.com>
  1717. * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_unlock.S: Add CFI
  1718. directives.
  1719. 2009-08-10 Ulrich Drepper <drepper@redhat.com>
  1720. * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_rdlock.S: Add CFI
  1721. directives.
  1722. * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_wrlock.S: Likewise.
  1723. 2009-08-10 Andreas Schwab <schwab@redhat.com>
  1724. * sysdeps/unix/sysv/linux/x86_64/pthread_cond_signal.S
  1725. (__pthread_cond_signal): Don't clobber register used for syscall
  1726. number.
  1727. 2009-08-08 Ulrich Drepper <drepper@redhat.com>
  1728. * sysdeps/unix/sysv/linux/x86_64/sem_timedwait.S (sem_timedwait):
  1729. Optimize code path used when FUTEX_CLOCK_REALTIME is supported.
  1730. * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S
  1731. (__pthread_cond_wait): Optimize by avoiding use of callee-safe
  1732. register.
  1733. 2009-08-07 Ulrich Drepper <drepper@redhat.com>
  1734. * sysdeps/unix/sysv/linux/x86_64/sem_wait.S: Little optimizations
  1735. enabled by the special *_asynccancel functions.
  1736. * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: Likewise.
  1737. * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: Likewise.
  1738. * sysdeps/unix/sysv/linux/x86_64/cancellation.S: Include lowlevellock.h.
  1739. 2009-08-04 Ulrich Drepper <drepper@redhat.com>
  1740. * sysdeps/unix/sysv/linux/x86_64/cancellation.S: New file.
  1741. * sysdeps/unix/sysv/linux/x86_64/libc-cancellation.S: New file.
  1742. * sysdeps/unix/sysv/linux/x86_64/librt-cancellation.S: New file.
  1743. * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h (PSEUDO): Optimize
  1744. since we can assume the special __*_{en,dis}able_asynccancel
  1745. functions.
  1746. (PUSHARGS_*, POPARGS_*, SAVESTK_*, RESTSTK_*): Removed.
  1747. * sysdeps/x86_64/tcb-offsets.sym: Add cancellation-related bits
  1748. and PTHREAD_CANCELED.
  1749. 2009-07-31 Ulrich Drepper <drepper@redhat.com>
  1750. * descr.h: Better definition of *_BITMASK macros for cancellation.
  1751. 2009-07-29 Ulrich Drepper <drepper@redhat.com>
  1752. * sysdeps/x86_64/tls.h (TLS_TCB_ALIGN): Define explicitly to 32.
  1753. * sysdeps/x86_64/tls.h (tcbhead_t): Add room for SSE registers the
  1754. dynamic linker might have to save.
  1755. Define RTLD_CHECK_FOREIGN_CALL, RTLD_ENABLE_FOREIGN_CALL,
  1756. RTLD_PREPARE_FOREIGN_CALL, and RTLD_FINALIZE_FOREIGN_CALL. Pretty
  1757. printing.
  1758. * sysdeps/x86_64/tcb-offsets.sym: Add RTLD_SAVESPACE_SSE.
  1759. 2009-07-28 Ulrich Drepper <drepper@redhat.com>
  1760. * pthread_mutex_lock.c [NO_INCR] (__pthread_mutex_cond_lock_adjust):
  1761. New function.
  1762. * pthreadP.h: Declare __pthread_mutex_cond_lock_adjust.
  1763. * sysdeps/unix/sysv/linux/pthread-pi-defines.sym: Add ROBUST_BIT.
  1764. * sysdeps/unix/sysv/linux/x86_64/pthread_cond_broadcast.S: Don't use
  1765. requeue_pi for robust mutexes.
  1766. * sysdeps/unix/sysv/linux/x86_64/pthread_cond_signal.S: Likewise.
  1767. * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: Likewise.
  1768. Don't only skip __pthread_mutex_cond_lock. Call instead
  1769. __pthread_mutex_cond_lock_adjust.
  1770. * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: Likewise.
  1771. * pthread_mutex_unlock.c (__pthread_mutex_unlock_full): Minor
  1772. optimization of PI mutex handling.
  1773. 2009-07-27 Ulrich Drepper <drepper@redhat.com>
  1774. [BZ #10418]
  1775. * pthread_mutex_unlock.c (__pthread_mutex_unlock_full): Use _rel
  1776. instead of of _acq variants of cmpxchg.
  1777. 2009-07-23 Ulrich Drepper <drepper@redhat.com>
  1778. * sysdeps/x86_64/configure.in: New file.
  1779. * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: Fix error
  1780. path when not using absolute timeout futex.
  1781. 2009-07-20 Ulrich Drepper <drepper@redhat.com>
  1782. * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: Minor
  1783. optimizations of last changes.
  1784. * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: Likewise.
  1785. 2009-07-19 Ulrich Drepper <drepper@redhat.com>
  1786. * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Define
  1787. FUTEX_WAIT_REQUEUE_PI and FUTEX_CMP_REQUEUE_PI.
  1788. * sysdeps/unix/sysv/linux/x86_64/pthread_cond_broadcast.S: If mutex
  1789. is a PI mutex, then use FUTEX_CMP_REQUEUE_PI.
  1790. * sysdeps/unix/sysv/linux/x86_64/pthread_cond_signal.S: Likewise.
  1791. * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: If mutex
  1792. is a PI mutex, then use FUTEX_WAIT_REQUEUE_PI.
  1793. * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: Likewise.
  1794. * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S
  1795. (__pthread_cond_timedwait): Make more robust.
  1796. 2009-07-18 Ulrich Drepper <drepper@redhat.com>
  1797. * sysdeps/unix/sysv/linux/x86_64/lowlevelrobustlock.S
  1798. (__lll_robust_timedlock_wait): If possible use FUTEX_WAIT_BITSET to
  1799. directly use absolute timeout.
  1800. * tst-sem5.c (do_test): Add test for premature timeout.
  1801. * Makefile: Linu tst-sem5 with librt.
  1802. * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedwrlock.S
  1803. (pthread_rwlock_timedwrlock): If possible use FUTEX_WAIT_BITSET to
  1804. directly use absolute timeout.
  1805. * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedrdlock.S
  1806. (pthread_rwlock_timedrdlock): Likewise.
  1807. * tst-cond11.c (run_test): Add test to check that the timeout is
  1808. long enough.
  1809. * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S
  1810. (__pthread_cond_timedwait): If possible use FUTEX_WAIT_BITSET to
  1811. directly use absolute timeout.
  1812. * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S
  1813. (__pthread_cond_wait): Convert to using exception handler instead of
  1814. registered unwind buffer.
  1815. * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S
  1816. (__pthread_cond_timedwait): Likewise.
  1817. 2009-07-17 Ulrich Drepper <drepper@redhat.com>
  1818. * sysdeps/unix/sysv/linux/x86_64/sem_timedwait.S (sem_timedwait):
  1819. If possible use FUTEX_WAIT_BITSET|FUTEX_CLOCK_REALTIME to directly
  1820. use absolute timeout.
  1821. * sysdeps/unix/sysv/linux/x86_64/sem_wait.S (sem_wait): Optimize
  1822. handling of uncontested semaphore.
  1823. * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S
  1824. (__condvar_cleanup): Rewrite to use cfi directives instead of
  1825. hand-coded unwind tables.
  1826. * sysdeps/unix/sysv/linux/x86_64/pthread_once.S (__pthread_once):
  1827. Likewise.
  1828. * sysdeps/unix/sysv/linux/x86_64/sem_wait.S (sem_wait): Likewise.
  1829. * sysdeps/unix/sysv/linux/x86_64/sem_timedwait.S (sem_timedwait):
  1830. Likewise.
  1831. 2009-06-12 Ulrich Drepper <drepper@redhat.com>
  1832. * Makefile (libpthread-routines): Add pthread_sigqueue.
  1833. * Versions: Add pthread_sigqueue for GLIBC_2.11.
  1834. * sysdeps/pthread/bits/sigthread.h: Declare pthread_sigqueue.
  1835. * sysdeps/unix/sysv/linux/pthread_sigqueue.c: New file.
  1836. 2009-06-11 Ulrich Drepper <drepper@redhat.com>
  1837. [BZ #10262]
  1838. * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S
  1839. (LOAD_FUTEX_WAIT_ABS): Fix futex parameter in case private futexes
  1840. cannot be assumed.
  1841. Patch by Bryan Kadzban <bz-glibc@kdzbn.homelinux.net>.
  1842. 2009-05-16 Ulrich Drepper <drepper@redhat.com>
  1843. * libc-cancellation.c: Move __libc_cleanup_routine to...
  1844. * libc-cleanup.c: ...here. New file.
  1845. * Makefile (routines): Add libc-cleanup.
  1846. * cancellation.c (__pthread_disable_asynccancel): Remove unnecessary
  1847. test.
  1848. * libc-cancellation.c: Use <nptl/cancellation.c: to define the code.
  1849. * sysdeps/pthread/librt-cancellation.c: Likewise.
  1850. [BZ #9924]
  1851. * nptl-init.c: Renamed from init.c.
  1852. * Makefile: Change all occurences of init.c to nptl-init.c.
  1853. 2009-05-15 Ulrich Drepper <drepper@redhat.com>
  1854. * cancellation.c (__pthread_disable_asynccancel): Correct the bits
  1855. to test when deciding on the delay.
  1856. * libc-cancellation.c (__libc_disable_asynccancel): Likewise.
  1857. * pthread_cancel.c: Close race between deciding on sending a signal
  1858. and setting the CANCELING_BIT bit.
  1859. * cancellation.c (__pthread_disable_asynccancel): Don't return if
  1860. thread is canceled.
  1861. * libc-cancellation.c (__libc_disable_asynccancel): Likewise.
  1862. 2009-04-27 Ulrich Drepper <drepper@redhat.com>
  1863. * cancellation.c (__pthread_disable_asynccancel): Use THREAD_ATOMIC_AND
  1864. is available.
  1865. * libc-cancellation.c (__libc_disable_asynccancel): Likewise.
  1866. * sysdeps/x86_64/tls.h: Define THREAD_ATOMIC_AND.
  1867. * sysdeps/i386/tls.h: Likewise.
  1868. (tcbhead_t): Add __private_tm member.
  1869. 2009-04-26 Ulrich Drepper <drepper@redhat.com>
  1870. * sem_open.c (sem_open): Rewrite initialization of initsem to
  1871. avoid warnings.
  1872. * sysdeps/unix/sysv/linux/libc_pthread_init.c (__libc_pthread_init):
  1873. Avoid warning by using may_alias attribute on ptrhack.
  1874. 2009-04-22 Ulrich Drepper <drepper@redhat.com>
  1875. [BZ #10090]
  1876. * pthread_attr_setschedparam.c (__pthread_attr_setschedparam):
  1877. Check policy and priority for validity.
  1878. Patch mostly by Zhang Xiliang <zhangxiliang@cn.fujitsu.com>.
  1879. 2009-03-15 Ulrich Drepper <drepper@redhat.com>
  1880. * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S
  1881. (__pthread_cond_timedwait): Change to use cfi directives instead of
  1882. hand-coded unwind sections.
  1883. 2009-03-10 Ulrich Drepper <drepper@redhat.com>
  1884. * init.c (nptl_freeres): Compile only for SHARED.
  1885. 2009-03-09 Jakub Jelinek <jakub@redhat.com>
  1886. * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Define
  1887. FUTEX_WAIT_BITSET, FUTEX_WAKE_BITSET, FUTEX_CLOCK_REALTIME and
  1888. FUTEX_BITSET_MATCH_ANY.
  1889. 2009-02-27 Roland McGrath <roland@redhat.com>
  1890. * init.c (__nptl_initial_report_events): Mark __attribute_used__.
  1891. * pthread_create.c (__nptl_threads_events, __nptl_last_event): Likewise.
  1892. 2009-02-26 Ulrich Drepper <drepper@redhat.com>
  1893. * sysdeps/unix/sysv/linux/bits/posix_opt.h: Define
  1894. _POSIX_THREAD_ROBUST_PRIO_INHERIT and
  1895. _POSIX_THREAD_ROBUST_PRIO_PROTECT. Reset value of macros from
  1896. 200112L to 200809L.
  1897. 2009-02-25 Ulrich Drepper <drepper@redhat.com>
  1898. * sysdeps/pthread/pthread.h: The robust mutex functions are in
  1899. POSIX 2008.
  1900. 2009-02-24 Ulrich Drepper <drepper@redhat.com>
  1901. * sysdeps/unix/sysv/linux/bits/posix_opt.h (_BITS_POSIX_OPT_H):
  1902. Unify name of include protector macro.
  1903. 2009-02-14 SUGIOKA Toshinobu <sugioka@itonet.co.jp>
  1904. * sysdeps/unix/sysv/linux/sh/lowlevellock.S: Define
  1905. LOAD_FUTEX_WAIT_ABS even if (FUTEX_WAIT == 0).
  1906. 2009-01-29 Ulrich Drepper <drepper@redhat.com>
  1907. * sysdeps/pthread/unwind-forcedunwind.c: Encrypt all function
  1908. pointer variables.
  1909. * allocatestack.c (__free_stacks): Renamed from free_stacks.
  1910. (__free_stack_cache): Removed. Change callers to call __free_stacks.
  1911. * init.c (nptl_freeres): New function.
  1912. (pthread_functions): Initialize ptr_freeres to nptl_freeres.
  1913. * pthreadP.h: Don't declare __free_stack_cache. Declare __free_stacks.
  1914. * sysdeps/pthread/unwind-forcedunwind.c (libgcc_s_handle): New
  1915. variable.
  1916. (pthread_cancel_init): Depend in libgcc_s_handle for decision to
  1917. load DSO. Assign last.
  1918. (__unwind_freeres): New function.
  1919. * allocatestack.c (__reclaim_stacks): Reset in_flight_stack later
  1920. for better debugging. No need to use stack_list_add here.
  1921. 2009-01-14 Kaz Kojima <kkojima@rr.iij4u.or.jp>
  1922. * sysdeps/unix/sysv/linux/sh/lowlevellock.S
  1923. (__lll_timedlock_wait): Use FUTEX_WAIT_BITSET|FUTEX_CLOCK_REALTIME
  1924. instead of computing relative timeout.
  1925. * sysdeps/unix/sysv/linux/sh/lowlevellock.h: Define
  1926. FUTEX_CLOCK_REALTIME and FUTEX_BITSET_MATCH_ANY.
  1927. 2009-01-25 Ulrich Drepper <drepper@redhat.com>
  1928. * pthread_mutex_lock.c (__pthread_mutex_lock): Remove unused label out.
  1929. 2009-01-08 Ulrich Drepper <drepper@redhat.com>
  1930. * sysdeps/pthread/list.h (list_add): Initialize new element first.
  1931. (list_add_tail): Removed.
  1932. 2009-01-07 Ulrich Drepper <drepper@redhat.com>
  1933. * (in_flight_stack): New variable.
  1934. (stack_list_del): New function. Use instead of list_del.
  1935. (stack_list_add): New function. Use instead of list_add when adding to
  1936. stack_cache and stack_used lists.
  1937. (__reclaim_stacks): Complete operations on stack_cache and stack_used lists
  1938. when the fork call interrupted another thread.
  1939. 2009-01-04 Ulrich Drepper <drepper@redhat.com>
  1940. * init.c (__pthread_initialize_minimal_internal): Optimize test
  1941. FUTEX_CLOCK_REALTIME a bit.
  1942. 2009-01-03 Ulrich Drepper <drepper@redhat.com>
  1943. * init.c (__pthread_initialize_minimal_internal): Cheat a bit by
  1944. only passing five parameters to FUTEX_WAIT_BITSET call.
  1945. * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S
  1946. (__lll_timedlock_wait): Use FUTEX_WAIT_BITSET|FUTEX_CLOCK_REALTIME
  1947. instead of computing relative timeout.
  1948. 2009-01-02 Ulrich Drepper <drepper@redhat.com>
  1949. * init.c (__pthread_initialize_minimal_internal): Check for
  1950. FUTEX_CLOCK_REALTIME flag.
  1951. * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S (__lll_timedlock_wait):
  1952. Use FUTEX_WAIT_BITSET|FUTEX_CLOCK_REALTIME instead of computing
  1953. relative timeout.
  1954. * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Define
  1955. FUTEX_CLOCK_REALTIME and FUTEX_BITSET_MATCH_ANY.
  1956. * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Likewise.
  1957. * sysdeps/unix/sysv/linux/ia64/lowlevellock.h: Likewise.
  1958. * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Likewise.
  1959. * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
  1960. 2008-12-09 Ulrich Drepper <drepper@redhat.com>
  1961. * sysdeps/pthread/pthread.h (pthread_cleanup_pop): Use { } as empty
  1962. loop body instead of ; to avoid gcc warnings.
  1963. (pthread_cleanup_pop_restore_np): Likewise.
  1964. Patch by Caolán McNamara <caolanm@redhat.com>.
  1965. 2008-12-09 Jakub Jelinek <jakub@redhat.com>
  1966. * pthread_mutex_lock.c (__pthread_mutex_lock): Handle only the
  1967. fast path here, for robust/PI/PP mutexes call
  1968. __pthread_mutex_lock_full. Don't use switch, instead use a series
  1969. of ifs according to their probability.
  1970. (__pthread_mutex_lock_full): New function.
  1971. * pthread_mutex_unlock.c: Include assert.h.
  1972. (__pthread_mutex_unlock_usercnt): Handle only the
  1973. fast path here, for robust/PI/PP mutexes call
  1974. __pthread_mutex_unlock_full. Don't use switch, instead use a series
  1975. of ifs according to their probability.
  1976. (__pthread_mutex_unlock_full): New function.
  1977. * sysdeps/unix/sysv/linux/pthread_mutex_cond_lock.c
  1978. (__pthread_mutex_lock_full): Define.
  1979. 2008-12-08 Ulrich Drepper <drepper@redhat.com>
  1980. * sysdeps/x86_64/tls.h (tcbhead_t): Add fields reserved for TM
  1981. implementation. Add necessary padding and.
  1982. * descr.h (struct pthread): Increase padding for tcbhead_t to 24
  1983. words.
  1984. 2008-12-04 Kaz Kojima <kkojima@rr.iij4u.or.jp>
  1985. * sysdeps/unix/sysv/linux/sh/lowlevellock.h: Define FUTEX_WAIT_BITSET
  1986. and FUTEX_WAKE_BITSET.
  1987. 2008-12-02 Ulrich Drepper <drepper@redhat.com>
  1988. * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Define FUTEX_WAIT_BITSET
  1989. and FUTEX_WAKE_BITSET.
  1990. * sysdeps/unix/sysv/linux/ia64/lowlevellock.h: Likewise.
  1991. * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Likewise.
  1992. * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
  1993. * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
  1994. 2008-11-25 Roland McGrath <roland@redhat.com>
  1995. * sysdeps/alpha, sysdeps/unix/sysv/linux/alpha:
  1996. Subdirectories moved to ports repository as
  1997. sysdeps/.../nptl subdirectories.
  1998. 2008-11-12 Jakub Jelinek <jakub@redhat.com>
  1999. [BZ #7008]
  2000. * pthread_condattr_setclock.c (pthread_condattr_setclock): Fix masking
  2001. of old value.
  2002. * pthread_cond_init.c (__pthread_cond_init): Fix
  2003. cond->__data.__nwaiters initialization.
  2004. * Makefile (tests): Add tst-cond23.
  2005. * tst-cond23.c: New test.
  2006. 2008-11-07 Jakub Jelinek <jakub@redhat.com>
  2007. * sysdeps/pthread/malloc-machine.h (MALLOC): Adjust __libc_tsd_define
  2008. arguments.
  2009. (tsd_setspecific, tsd_getspecific): Adjust __libc_tsd_{set,get}
  2010. arguments.
  2011. 2008-11-01 Ulrich Drepper <drepper@redhat.com>
  2012. [BZ #6955]
  2013. * pthread_mutex_lock.c: Add support for private PI mutexes.
  2014. * pthread_mutex_timedlock.c: Likewise.
  2015. * pthread_mutex_trylock.c: Likewise.
  2016. * pthread_mutex_unlock.c: Likewise.
  2017. Patch mostly by Ben Jackson <ben@ben.com>.
  2018. 2008-10-31 Ulrich Drepper <drepper@redhat.com>
  2019. [BZ #6843]
  2020. * sysdeps/pthread/gai_misc.h (__gai_create_helper_thread):
  2021. Increase stack size for helper thread.
  2022. 2008-10-06 Martin Schwidefsky <schwidefsky@de.ibm.com>
  2023. * sysdeps/s390/tls.h (THREAD_SET_STACK_GUARD): Add empty inline
  2024. assembly with a clobber list for access registers a0 and a1.
  2025. 2008-09-11 Martin Schwidefsky <schwidefsky@de.ibm.com>
  2026. * sysdeps/unix/sysv/linux/fork.c (__libc_fork): Add memory barrier
  2027. to force runp->refcntr to be read from memory.
  2028. 2008-09-08 Richard Guenther <rguenther@suse.de>
  2029. * sysdeps/unix/sysv/linux/i386/lowlevellock.h (lll_lock,
  2030. lll_robust_lock, lll_cond_lock, lll_robust_cond_lock,
  2031. lll_timedlock, lll_robust_timedlock, lll_unlock,
  2032. lll_robust_unlock): Promote private to int.
  2033. 2008-08-15 Ulrich Drepper <drepper@redhat.com>
  2034. * sysdeps/x86_64/pthreaddef.h: Remove ARCH_MAP_FLAGS and
  2035. ARCH_RETRY_MMAP definitions.
  2036. * allocatestack.c: Remove definition of ARCH_MAP_FLAGS.
  2037. Define MAP_STACK when not defined.
  2038. (allocate_stack): Use MAP_STACK instead of ARCH_MAP_FLAGS. Remove
  2039. handling of ARCH_RETRY_MMAP.
  2040. 2008-07-30 Ulrich Drepper <drepper@redhat.com>
  2041. * tst-align2.c (f): Print message that f is reached.
  2042. 2008-04-28 Hiroki Kaminaga <kaminaga@sm.sony.co.jp>
  2043. [BZ #6740]
  2044. * sysdeps/powerpc/tcb-offsets.sym (PRIVATE_FUTEX_OFFSET): Guard symbol
  2045. definition with #ifndef __ASSUME_PRIVATE_FUTEX.
  2046. 2008-07-25 Ulrich Drepper <drepper@redhat.com>
  2047. * sysdeps/unix/sysv/linux/mq_notify.c (init_mq_netlink): Use
  2048. SOCK_CLOEXEC if possible.
  2049. 2008-05-29 Ulrich Drepper <drepper@redhat.com>
  2050. * Makefile (tests): Add tst-rwlock2a.
  2051. * tst-rwlock2.c: Use TYPE macro to decide what rwlock type to use.
  2052. * tst-rwlock2a.c: New file.
  2053. 2008-06-12 Ulrich Drepper <drepper@redhat.com>
  2054. * sysdeps/pthread/pthread.h: Remove inadvertant checkin.
  2055. 2008-05-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
  2056. * sysdeps/pthread/pthread.h: Fix typo in comment.
  2057. 2008-05-28 Ulrich Drepper <drepper@redhat.com>
  2058. * sysdeps/pthread/createthread.c (do_clone): Pass accurate length
  2059. of CPU set to the kernel.
  2060. 2008-05-23 Paul Pluzhnikov <ppluzhnikov@google.com>
  2061. * sysdeps/unix/sysv/linux/i386/i486/pthread_barrier_wait.S: Add
  2062. cfi directives.
  2063. * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_broadcast.S: Likewise.
  2064. * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S: Likewise.
  2065. * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_rdlock.S: Likewise.
  2066. * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_unlock.S: Likewise.
  2067. * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_wrlock.S: Likewise.
  2068. * sysdeps/unix/sysv/linux/i386/i486/sem_post.S: Likewise.
  2069. 2008-05-22 Paul Pluzhnikov <ppluzhnikov@google.com>
  2070. * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S: Add
  2071. cfi directives.
  2072. * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S:
  2073. Likewise.
  2074. * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedrdlock.S:
  2075. Likewise.
  2076. * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedwrlock.S:
  2077. Likewise.
  2078. 2008-05-26 Ulrich Drepper <drepper@redhat.com>
  2079. * tst-typesizes.c: Explicitly check __SIZEOF_PTHREAD_* constants.
  2080. 2008-05-20 Jakub Jelinek <jakub@redhat.com>
  2081. David S. Miller <davem@davemloft.net>
  2082. * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile: New file.
  2083. 2008-05-10 Ulrich Drepper <drepper@redhat.com>
  2084. * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_rdlock.S: Access
  2085. __pshared correctly.
  2086. * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S:
  2087. Likewise.
  2088. * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S:
  2089. Likewise.
  2090. * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_unlock.S:
  2091. Likewise.
  2092. * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_wrlock.S:
  2093. Likewise.
  2094. Reported by Clemens Kolbitsch <clemens.kol@gmx.at>.
  2095. 2008-04-14 David S. Miller <davem@davemloft.net>
  2096. * sysdeps/unix/sysv/linux/sparc/sparc32/sem_wait.c
  2097. (__old_sem_wait): Fix argument to lll_futex_wait().
  2098. 2007-11-26 Daniel Jacobowitz <dan@codesourcery.com>
  2099. * pthread_create.c: Require pthread_mutex_trylock and
  2100. pthread_key_delete for libgcc.
  2101. 2008-04-08 Jakub Jelinek <jakub@redhat.com>
  2102. [BZ #6020]
  2103. * sysdeps/unix/sysv/linux/sparc/lowlevellock.h
  2104. (lll_futex_wake_unlock): Add private argument to the pre-v9 macro.
  2105. Patch by Sunil Amitkumar Janki <devel.sjanki@gmail.com>.
  2106. 2008-03-27 Ulrich Drepper <drepper@redhat.com>
  2107. * sysdeps/unix/sysv/linux/bits/local_lim.h: Undefine ARG_MAX if
  2108. <linux/limits.h> has defined it.
  2109. * sysdeps/unix/sysv/linux/alpha/bits/local_lim.h: Likewise.
  2110. * sysdeps/unix/sysv/linux/ia64/bits/local_lim.h: Likewise.
  2111. * sysdeps/unix/sysv/linux/powerpc/bits/local_lim.h: Likewise.
  2112. * sysdeps/unix/sysv/linux/sparc/bits/local_lim.h: Likewise.
  2113. 2008-03-18 Jakub Jelinek <jakub@redhat.com>
  2114. * sysdeps/unix/sysv/linux/ia64/dl-sysdep.h: Use __ASSEMBLER__ instead
  2115. of ASSEMBLER.
  2116. * sysdeps/unix/sysv/linux/i386/i686/dl-sysdep.h: Likewise.
  2117. * sysdeps/unix/sysv/linux/i386/dl-sysdep.h: Likewise.
  2118. 2008-03-14 Ulrich Drepper <drepper@redhat.com>
  2119. * sysdeps/unix/sysv/linux/i386/dl-sysdep.h: Define
  2120. HAVE_DL_DISCOVER_OSVERSION.
  2121. * sysdeps/unix/sysv/linux/i386/i686/dl-sysdep.h: Likewise.
  2122. * sysdeps/unix/sysv/linux/ia64/dl-sysdep.h: Likewise.
  2123. 2008-03-07 Ulrich Drepper <drepper@redhat.com>
  2124. [BZ #5778]
  2125. * sysdeps/unix/sysv/linux/bits/posix_opt.h: Change
  2126. _POSIX_CHOWN_RESTRICTED value to zero.
  2127. 2008-01-31 Roland McGrath <roland@redhat.com>
  2128. * Makefile (omit-deps): Variable removed.
  2129. 2008-01-30 Ulrich Drepper <drepper@redhat.com>
  2130. * sysdeps/unix/sysv/linux/x86_64/sem_post.S (sem_post): Avoid
  2131. unnecessary addr32 prefix.
  2132. 2008-01-29 Roland McGrath <roland@redhat.com>
  2133. * Makeconfig (ptw-CPPFLAGS, sysd-rules-patterns): New variables.
  2134. 2008-01-22 Kaz Kojima <kkojima@rr.iij4u.or.jp>
  2135. * sysdeps/unix/sysv/linux/sh/sem_post.S: Don't overflow value field.
  2136. 2008-01-21 Kaz Kojima <kkojima@rr.iij4u.or.jp>
  2137. * sysdeps/unix/sysv/linux/sh/lowlevel-atomic.h (XADD): Use
  2138. a scratch register.
  2139. * sysdeps/unix/sysv/linux/sh/lowlevellock.S
  2140. (__lll_lock_wait_private): Fix typo.
  2141. * sysdeps/unix/sysv/linux/sh/pthread_barrier_wait.S
  2142. (pthread_barrier_wait): Likewise. Adjust XADD use.
  2143. * sysdeps/unix/sysv/linux/sh/sem_post.S (__new_sem_post):
  2144. Adjust XADD use.
  2145. * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedrdlock.S
  2146. (pthread_rwlock_timedrdlock): Return correct return value.
  2147. * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedwrlock.S
  2148. (pthread_rwlock_timedwrlock): Likewise.
  2149. 2008-01-15 Ulrich Drepper <drepper@redhat.com>
  2150. * tst-eintr2.c (do_test): make sure that if mutex_lock in main
  2151. thread returns the program exits with an error code.
  2152. 2008-01-10 Ulrich Drepper <drepper@redhat.com>
  2153. * pthread-errnos.sym: Add EOVERFLOW.
  2154. * sysdeps/unix/sysv/linux/structsem.sym: Add SEM_VALUE_MAX.
  2155. * sysdeps/unix/sysv/linux/sem_post.c: Don't overflow value field.
  2156. * sysdeps/unix/sysv/linux/i386/i486/sem_post.S: Likewise.
  2157. * sysdeps/unix/sysv/linux/x86_64/sem_post.S: Likewise.
  2158. 2007-12-14 Ulrich Drepper <drepper@redhat.com>
  2159. * sysdeps/x86_64/pthreaddef.h (ARCH_RETRY_MMAP): Take additional
  2160. parameter. Passed it as permission to mmap.
  2161. * allocatestack.c (allocate_stack): Pass prot as second parameter
  2162. to ARCH_RETRY_MMAP.
  2163. 2007-12-12 Ulrich Drepper <drepper@redhat.com>
  2164. * tst-basic7.c: Allocate memory for the stack.
  2165. [BZ #5465]
  2166. * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S [!SHARED]
  2167. (__pthread_cond_timedwait): Don't use VDSO.
  2168. Patch by Michal Januszewski.
  2169. 2007-12-07 Ulrich Drepper <drepper@redhat.com>
  2170. [BZ #5455]
  2171. * sysdeps/pthread/pthread.h [!__EXCEPTIONS] (pthread_cleanup_pop):
  2172. Allow label before pthread_cleanup_pop.
  2173. (pthread_cleanup_pop_restore_np): Likewise.
  2174. 2007-12-04 Kaz Kojima <kkojima@rr.iij4u.or.jp>
  2175. * sysdeps/unix/sysv/linux/sh/lowlevellock.S (__lll_timedlock_wait):
  2176. Store 2 before returning ETIMEDOUT.
  2177. 2007-11-23 Ulrich Drepper <drepper@redhat.com>
  2178. * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S (__lll_timedlock_wait):
  2179. Store 2 before returning ETIMEDOUT.
  2180. * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S: Likewise
  2181. * sysdeps/unix/sysv/linux/lowlevellock.c: Likewise.
  2182. (__lll_lock_wait_private): Optimize.
  2183. (__lll_lock_wait): Likewise.
  2184. 2007-11-20 Jakub Jelinek <jakub@redhat.com>
  2185. * sysdeps/pthread/pthread.h (pthread_cleanup_push,
  2186. pthread_cleanup_push_defer_np): Add extra (void *) cast to shut up
  2187. g++ 4.1 and 4.2 -Wstrict-aliasing warnings.
  2188. 2007-11-08 Ulrich Drepper <drepper@redhat.com>
  2189. [BZ #5240]
  2190. * sysdeps/unix/sysv/linux/lowlevellock.c (__lll_timedlock_wait):
  2191. If we time out, try one last time to lock the futex to avoid
  2192. losing a wakeup signal.
  2193. * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S: Likewise.
  2194. * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
  2195. [BZ #5245]
  2196. * sysdeps/pthread/createthread.c (do_clone): Translate clone error
  2197. if necessary.
  2198. 2007-11-07 Ulrich Drepper <drepper@redhat.com>
  2199. [BZ #5245]
  2200. * allocatestack.c (allocate_stack): Change ENOMEM error in case
  2201. mmap failed to EAGAIN.
  2202. * Makefile (tests): Add tst-basic7.
  2203. * tst-basic7.c: New file.
  2204. 2007-11-05 Ulrich Drepper <drepper@redhat.com>
  2205. * sysdeps/unix/sysv/linux/register-atfork.c (__register_atfork):
  2206. Use __linkin_atfork.
  2207. 2007-11-03 Mike Frysinger <vapier@gentoo.org>
  2208. * sysdeps/unix/sysv/linux/sh/lowlevellock.S (LOAD_FUTEX_WAIT): Add
  2209. missing line continuations.
  2210. * sysdeps/unix/sysv/linux/sh/lowlevelrobustlock.S (LOAD_FUTEX_WAIT,
  2211. LOAD_FUTEX_WAKE): Likewise. Also add missing 3rd parameter.
  2212. 2007-10-28 Ulrich Drepper <drepper@redhat.com>
  2213. [BZ #5220]
  2214. * sysdeps/unix/sysv/linux/kernel-posix-timers.h: Declare
  2215. __active_timer_sigev_thread and __active_timer_sigev_thread_lock.
  2216. (struct timer): Add next element.
  2217. * sysdeps/unix/sysv/linux/timer_create.c: For SIGEV_THREAD timers,
  2218. enqueue timer structure into __active_timer_sigev_thread list.
  2219. * sysdeps/unix/sysv/linux/timer_delete.c: For SIGEV_THREAD timers,
  2220. remove timer struct from __active_timer_sigev_thread.
  2221. * sysdeps/unix/sysv/linux/timer_routines.c (timer_helper_thread):
  2222. Before using timer structure make sure it is still on the
  2223. __active_timer_sigev_thread list. Keep lock until done.
  2224. Define __active_timer_sigev_thread and
  2225. __active_timer_sigev_thread_lock.
  2226. 2007-10-27 Ulrich Drepper <drepper@redhat.com>
  2227. * sysdeps/pthread/malloc-machine.h: Define ATFORK_MEM.
  2228. Redefine thread_atfork for use of ATFORK_MEM.
  2229. * sysdeps/unix/sysv/linux/fork.h: Define __linkin_atfork.
  2230. * sysdeps/unix/sysv/linux/register-atfork.c (__linkin_atfork): New
  2231. function.
  2232. * sysdeps/unix/sysv/linux/unregister-atfork.c (__unregister_atfork):
  2233. Use atomic operation when removing first element of list.
  2234. 2007-10-17 Jakub Jelinek <jakub@redhat.com>
  2235. * sysdeps/unix/sysv/linux/i386/i486/sem_post.S (__old_sem_post): New
  2236. routine instead of an alias to __new_sem_post.
  2237. 2007-10-15 Jakub Jelinek <jakub@redhat.com>
  2238. * init.c (__pthread_initialize_minimal): Initialize word to appease
  2239. valgrind.
  2240. 2007-10-10 Jakub Jelinek <jakub@redhat.com>
  2241. * sysdeps/pthread/bits/libc-lock.h (__libc_rwlock_init): Inside of
  2242. libc.so just clear NAME.
  2243. (__libc_rwlock_fini): Nop inside of libc.so.
  2244. * tst-initializers1.c (main): Test if PTHREAD_RWLOCK_INITIALIZER is
  2245. all zeros.
  2246. 2007-09-02 Ulrich Drepper <drepper@redhat.com>
  2247. * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S
  2248. (__pthread_cond_wait): Fix unlocking of internal lock after mutex
  2249. unlocking failed.
  2250. Patch by Luca Barbieri <luca.barbieri@gmail.com>.
  2251. 2007-08-21 Ulrich Drepper <drepper@redhat.com>
  2252. [BZ #4938]
  2253. * allocatestack.c (__reclaim_stacks): Clear the TSD in the
  2254. reclaimed stack if necessary.
  2255. * Makefile (tests): Add tst-tsd6.
  2256. * tst-tsd6.c: New file.
  2257. 2007-08-21 Jakub Jelinek <jakub@redhat.com>
  2258. * sysdeps/unix/sysv/linux/alpha/lowlevellock.h (lll_robust_dead):
  2259. Add private argument.
  2260. 2007-08-20 Ulrich Drepper <drepper@redhat.com>
  2261. * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S
  2262. (__pthread_cond_timedwait): Use clock_gettime from VDSO if possible.
  2263. 2007-08-16 Jakub Jelinek <jakub@redhat.com>
  2264. * sysdeps/unix/sysv/linux/alpha/lowlevellock.h
  2265. (__lll_robust_timedlock): Pass private as last argument to
  2266. __lll_robust_timedlock_wait.
  2267. (__lll_unlock): Fix a pasto.
  2268. 2007-08-15 Jakub Jelinek <jakub@redhat.com>
  2269. * sysdeps/unix/sysv/linux/sparc/internaltypes.h (sparc_new_sem,
  2270. sparc_old_sem): New structs.
  2271. * sysdeps/unix/sysv/linux/sparc/sparc32/sem_wait.c
  2272. (__sem_wait_cleanup): New function.
  2273. (__new_sem_wait): Use sparc_new_sem structure. Bump and afterwards
  2274. decrease nwaiters. Register __sem_wait_cleanup as cleanup handler.
  2275. Pass isem->private ^ FUTEX_PRIVATE_FLAG as last argument to
  2276. lll_futex_wait.
  2277. (__old_sem_wait): New function.
  2278. * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/sem_wait.c: Include
  2279. nptl/sysdeps/unix/sysv/linux/sparc version.
  2280. * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/sem_timedwait.c:
  2281. Likewise.
  2282. * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/sem_post.c: Likewise.
  2283. * sysdeps/unix/sysv/linux/sparc/sparc32/sem_trywait.c
  2284. (__new_sem_trywait): Use sparc_old_sem structure.
  2285. * sysdeps/unix/sysv/linux/sparc/sparc32/sem_timedwait.c
  2286. (sem_timedwait): Use sparc_new_sem structure. Bump and afterwards
  2287. decrease nwaiters. Register __sem_wait_cleanup as cleanup handler.
  2288. Pass isem->private ^ FUTEX_PRIVATE_FLAG as last argument to
  2289. lll_futex_timed_wait.
  2290. * sysdeps/unix/sysv/linux/sparc/sparc32/sem_post.c (__new_sem_post):
  2291. Use sparc_new_sem structure. Only wake if nwaiters > 0. Pass
  2292. isem->private ^ FUTEX_PRIVATE_FLAG as last argument to
  2293. lll_futex_wake.
  2294. (__old_sem_post): New function.
  2295. * sysdeps/unix/sysv/linux/sparc/sem_wait.c: New file.
  2296. * sysdeps/unix/sysv/linux/sparc/sem_init.c: New file.
  2297. * sysdeps/unix/sysv/linux/sparc/sem_timedwait.c: New file.
  2298. * sysdeps/unix/sysv/linux/sparc/sem_post.c: New file.
  2299. * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/sem_init.c: Remove.
  2300. * sysdeps/unix/sysv/linux/sparc/sparc32/sem_init.c: Remove.
  2301. 2007-08-14 Kaz Kojima <kkojima@rr.iij4u.or.jp>
  2302. * sysdeps/unix/sysv/linux/sh/pthread_cond_broadcast.S
  2303. (__pthread_cond_broadcast): Pass LLL_PRIVATE to lll_* and or
  2304. FUTEX_PRIVATE_FLAG into SYS_futex op if cv is process private.
  2305. Don't use FUTEX_CMP_REQUEUE if dep_mutex is not process private.
  2306. * sysdeps/unix/sysv/linux/shpthread_cond_signal.S
  2307. (__pthread_cond_signal): Pass LLL_PRIVATE to lll_* and or
  2308. FUTEX_PRIVATE_FLAG into SYS_futex op if cv is process private.
  2309. Use FUTEX_WAKE_OP.
  2310. * sysdeps/unix/sysv/linux/sh/pthread_cond_wait.S: Include
  2311. kernel-features.h and tcb-offsets.h.
  2312. (__pthread_cond_wait, __condvar_w_cleanup): Pass LLL_PRIVATE to
  2313. lll_* and or FUTEX_PRIVATE_FLAG into SYS_futex op if cv is
  2314. process private.
  2315. * sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S: Include
  2316. tcb-offsets.h.
  2317. (__pthread_cond_timedwait, __condvar_tw_cleanup): Pass LLL_PRIVATE
  2318. to lll_* and or FUTEX_PRIVATE_FLAG into SYS_futex op if cv is
  2319. process private.
  2320. * sysdeps/unix/sysv/linux/sh/pthread_once.S: Use #ifdef
  2321. __ASSUME_PRIVATE_FUTEX instead of #if __ASSUME_PRIVATE_FUTEX.
  2322. * sysdeps/unix/sysv/linux/sh/pthread_rwlock_rdlock.S: Likewise.
  2323. * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedrdlock.S: Likewise.
  2324. * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedwrlock.S: Likewise.
  2325. * sysdeps/unix/sysv/linux/sh/pthread_rwlock_unlock.S: Likewise.
  2326. * sysdeps/unix/sysv/linux/sh/pthread_rwlock_wrlock.S: Likewise.
  2327. 2007-08-14 Jakub Jelinek <jakub@redhat.com>
  2328. * sysdeps/unix/sysv/linux/lowlevellock.c: Comment fix.
  2329. * sysdeps/unix/sysv/linux/sparc/sparc32/lowlevellock.c
  2330. (__lll_timedwait_tid): Pass LLL_SHARED as 4th argument to
  2331. lll_futex_timed_wait.
  2332. * sysdeps/unix/sysv/linux/alpha/lowlevellock.h (__lll_unlock,
  2333. __lll_robust_unlock): Rewrite as macros instead of inline functions.
  2334. * sysdeps/unix/sysv/linux/s390/lowlevellock.h (__lll_unlock,
  2335. __lll_robust_unlock, __lll_wait_tid): Likewise.
  2336. 2007-08-13 Jakub Jelinek <jakub@redhat.com>
  2337. * sysdeps/unix/sysv/linux/i386/lowlevellock.h (__lll_private_flag):
  2338. Fix a pasto.
  2339. * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_broadcast.S
  2340. (__pthread_cond_broadcast): Pass LLL_PRIVATE to lll_* and or
  2341. FUTEX_PRIVATE_FLAG into SYS_futex op if cv is process private.
  2342. Don't use FUTEX_CMP_REQUEUE if dep_mutex is not process private.
  2343. * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S
  2344. (__pthread_cond_signal): Pass LLL_PRIVATE to lll_* and or
  2345. FUTEX_PRIVATE_FLAG into SYS_futex op if cv is process private.
  2346. * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Include
  2347. kernel-features.h.
  2348. (__pthread_cond_wait, __condvar_w_cleanup): Pass LLL_PRIVATE to
  2349. lll_* and or FUTEX_PRIVATE_FLAG into SYS_futex op if cv is
  2350. process private. Switch DW_CFA_advance_loc1 and some
  2351. DW_CFA_advance_loc .eh_frame opcodes to DW_CFA_advance_loc4.
  2352. * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S
  2353. (__pthread_cond_timedwait, __condvar_tw_cleanup): Pass LLL_PRIVATE to
  2354. lll_* and or FUTEX_PRIVATE_FLAG into SYS_futex op if cv is
  2355. process private. Switch DW_CFA_advance_loc{1,2} and some
  2356. DW_CFA_advance_loc .eh_frame opcodes to DW_CFA_advance_loc4.
  2357. * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_rdlock.S: Use
  2358. #ifdef __ASSUME_PRIVATE_FUTEX instead of #if __ASSUME_PRIVATE_FUTEX.
  2359. * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S:
  2360. Likewise.
  2361. * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_unlock.S: Likewise.
  2362. * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_wrlock.S: Likewise.
  2363. * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S:
  2364. Likewise.
  2365. * sysdeps/unix/sysv/linux/x86_64/pthread_cond_broadcast.S
  2366. (__pthread_cond_broadcast): Compare %r8 instead of
  2367. dep_mutex-cond_*(%rdi) with $-1.
  2368. * sysdeps/unix/sysv/linux/x86_64/pthread_cond_signal.S
  2369. (__pthread_cond_signal): Xor FUTEX_WAKE_OP with FUTEX_WAKE instead
  2370. of oring.
  2371. 2007-08-13 Ulrich Drepper <drepper@redhat.com>
  2372. * sysdeps/unix/sysv/linux/i386/i786/Implies: New file.
  2373. 2007-08-13 Jakub Jelinek <jakub@redhat.com>
  2374. * allocatestack.c: Include kernel-features.h.
  2375. * pthread_create.c: Likewise.
  2376. * pthread_mutex_init.c: Likewise.
  2377. * init.c: Likewise.
  2378. * pthread_cond_timedwait.c: Likewise.
  2379. * sysdeps/unix/sysv/linux/alpha/lowlevellock.h: Likewise.
  2380. * sysdeps/unix/sysv/linux/ia64/lowlevellock.h: Likewise.
  2381. * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_wrlock.S: Likewise.
  2382. * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_rdlock.S: Likewise.
  2383. * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_unlock.S: Likewise.
  2384. * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: Likewise.
  2385. * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S:
  2386. Likewise.
  2387. * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S:
  2388. Likewise.
  2389. * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
  2390. * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Likewise.
  2391. * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Likewise.
  2392. * sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S: Likewise.
  2393. 2007-08-12 Jakub Jelinek <jakub@redhat.com>
  2394. * sysdeps/unix/sysv/linux/sparc/bits/pthreadtypes.h
  2395. [__WORDSIZE=32] (pthread_rwlock_t): Split __flags element into four
  2396. byte elements. One of them is the new __shared element.
  2397. [__WORDSIZE=64] (pthread_rwlock_t): Renamed __pad1 element to __shared,
  2398. adjust names of other padding elements.
  2399. * sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h
  2400. [__WORDSIZE=32] (pthread_rwlock_t): Split __flags element into four
  2401. byte elements. One of them is the new __shared element.
  2402. [__WORDSIZE=64] (pthread_rwlock_t): Renamed __pad1 element to __shared,
  2403. adjust names of other padding elements.
  2404. * sysdeps/unix/sysv/linux/ia64/bits/pthreadtypes.h (pthread_rwlock_t):
  2405. Renamed __pad1 element to __shared, adjust names of other padding
  2406. elements.
  2407. * sysdeps/unix/sysv/linux/alpha/bits/pthreadtypes.h
  2408. (pthread_rwlock_t): Likewise.
  2409. * sysdeps/unix/sysv/linux/ia64/lowlevellock.h (__lll_lock): Fix a
  2410. typo.
  2411. 2007-08-09 Anton Blanchard <anton@samba.org>
  2412. * sysdeps/unix/sysv/linux/powerpc/pthread_spin_unlock.c: New file.
  2413. 2007-08-12 Ulrich Drepper <drepper@redhat.com>
  2414. * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: Include
  2415. <kernel-features.h>.
  2416. * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: Likewise.
  2417. 2007-08-11 Ulrich Drepper <drepper@redhat.com>
  2418. * pthreadP.h (PTHREAD_ROBUST_MUTEX_PSHARED): Define.
  2419. * pthread_mutex_lock.c: Use it instead of PTHREAD_MUTEX_PSHARED when
  2420. dealing with robust mutexes.
  2421. * pthread_mutex_timedlock.c: Likewise.
  2422. * pthread_mutex_trylock.c: Likewise.
  2423. * pthread_mutex_unlock.c: Likewise.
  2424. * sysdeps/unix/sysv/linux/pthread_mutex_cond_lock.c: Likewise.
  2425. 2007-08-06 Jakub Jelinek <jakub@redhat.com>
  2426. * pthreadP.h (PTHREAD_MUTEX_PSHARED_BIT): Define.
  2427. (PTHREAD_MUTEX_TYPE): Mask __kind with 127.
  2428. (PTHREAD_MUTEX_PSHARED): Define.
  2429. * pthread_mutex_init.c (__pthread_mutex_init): Set
  2430. PTHREAD_MUTEX_PSHARED_BIT for pshared or robust
  2431. mutexes.
  2432. * pthread_mutex_lock.c (LLL_MUTEX_LOCK): Take mutex as argument
  2433. instead of its __data.__lock field, pass PTHREAD_MUTEX_PSHARED
  2434. as second argument to lll_lock.
  2435. (LLL_MUTEX_TRYLOCK): Take mutex as argument
  2436. instead of its __data.__lock field.
  2437. (LLL_ROBUST_MUTEX_LOCK): Take mutex as argument instead of its
  2438. __data.__lock field, pass PTHREAD_MUTEX_PSHARED as second argument
  2439. to lll_robust_lock.
  2440. (__pthread_mutex_lock): Update LLL_MUTEX_LOCK, LLL_MUTEX_TRYLOCK,
  2441. LLL_ROBUST_MUTEX_LOCK users, use PTHREAD_MUTEX_TYPE (mutex)
  2442. instead of mutex->__data.__kind directly, pass
  2443. PTHREAD_MUTEX_PSHARED (mutex) to lll_unlock and lll_futex_wait.
  2444. * pthread_mutex_trylock.c (__pthread_mutex_trylock): Use
  2445. PTHREAD_MUTEX_TYPE (mutex) instead of mutex->__data.__kind
  2446. directly, pass PTHREAD_MUTEX_PSHARED (mutex) to lll_unlock.
  2447. (pthread_mutex_timedlock): Pass PTHREAD_MUTEX_PSHARED (mutex)
  2448. to lll_timedlock, lll_robust_timedlock, lll_unlock and
  2449. lll_futex_timed_wait. Use PTHREAD_MUTEX_TYPE (mutex) instead
  2450. of mutex->__data.__kind directly.
  2451. * pthread_mutex_timedlock.c (pthread_mutex_timedlock): Pass
  2452. PTHREAD_MUTEX_PSHARED (mutex) to lll_timedlock,
  2453. lll_robust_timedlock, lll_unlock and lll_futex_timed_wait. Use
  2454. PTHREAD_MUTEX_TYPE (mutex) instead of mutex->__data.__kind directly.
  2455. * pthread_mutex_unlock.c (__pthread_mutex_unlock_usercnt): Pass
  2456. PTHREAD_MUTEX_PSHARED (mutex) to lll_unlock, lll_robust_unlock
  2457. and lll_futex_wake.
  2458. * pthread_mutex_setprioceiling.c (pthread_mutex_setprioceiling): Pass
  2459. PTHREAD_MUTEX_PSHARED (mutex) to lll_futex_wait and lll_futex_wake.
  2460. Use PTHREAD_MUTEX_TYPE (mutex) instead of mutex->__data.__kind
  2461. directly.
  2462. * sysdeps/unix/sysv/linux/pthread_mutex_cond_lock.c (LLL_MUTEX_LOCK):
  2463. Take mutex as argument instead of its __data.__lock field, pass
  2464. PTHREAD_MUTEX_PSHARED as second argument to lll_cond_lock.
  2465. (LLL_MUTEX_TRYLOCK): Take mutex as argument instead of its
  2466. __data.__lock field.
  2467. (LLL_ROBUST_MUTEX_LOCK): Take mutex as argument instead of its
  2468. __data.__lock field, pass PTHREAD_MUTEX_PSHARED as second argument
  2469. to lll_robust_cond_lock.
  2470. * pthread_cond_broadcast.c (__pthread_cond_broadcast): Add pshared
  2471. variable, pass it to lll_lock, lll_unlock, lll_futex_requeue and
  2472. lll_futex_wake. Don't use lll_futex_requeue if dependent mutex
  2473. has PTHREAD_MUTEX_PSHARED_BIT bit set in its __data.__kind.
  2474. * pthread_cond_destroy.c (__pthread_cond_destroy): Add pshared
  2475. variable, pass it to lll_lock, lll_unlock, lll_futex_wake and
  2476. lll_futex_wait.
  2477. * pthread_cond_signal.c (__pthread_cond_signal): Add pshared
  2478. variable, pass it to lll_lock, lll_unlock, lll_futex_wake_unlock and
  2479. lll_futex_wake.
  2480. * pthread_cond_timedwait.c (__pthread_cond_wait): Add
  2481. pshared variable, pass it to lll_lock, lll_unlock,
  2482. lll_futex_timedwait and lll_futex_wake.
  2483. * pthread_cond_wait.c (__condvar_cleanup, __pthread_cond_wait): Add
  2484. pshared variable, pass it to lll_lock, lll_unlock, lll_futex_wait
  2485. and lll_futex_wake.
  2486. * sysdeps/unix/sysv/linux/alpha/lowlevellock.h (lll_futex_requeue,
  2487. lll_futex_wake_unlock): Add private argument, use __lll_private_flag
  2488. macro.
  2489. * sysdeps/unix/sysv/linux/ia64/lowlevellock.h (lll_futex_requeue,
  2490. lll_futex_wake_unlock): Likewise.
  2491. * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h (lll_futex_requeue):
  2492. Likewise.
  2493. * sysdeps/unix/sysv/linux/sparc/lowlevellock.h (lll_futex_requeue,
  2494. lll_futex_wake_unlock): Likewise.
  2495. * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (lll_futex_requeue):
  2496. Likewise.
  2497. * sysdeps/unix/sysv/linux/s390/lowlevellock.h (lll_futex_requeue,
  2498. lll_futex_wake_unlock): Likewise.
  2499. (lll_futex_wake): Fix a typo.
  2500. * sysdeps/unix/sysv/linux/pthread-pi-defines.sym (PS_BIT): Add.
  2501. * sysdeps/unix/sysv/linux/x86_64/pthread_cond_broadcast.S
  2502. (__pthread_cond_broadcast): Pass LLL_PRIVATE to lll_* and or
  2503. FUTEX_PRIVATE_FLAG into SYS_futex op if cv is process private.
  2504. Don't use FUTEX_CMP_REQUEUE if dep_mutex is not process private.
  2505. * sysdeps/unix/sysv/linux/x86_64/pthread_cond_signal.S
  2506. (__pthread_cond_signal): Pass LLL_PRIVATE to lll_* and or
  2507. FUTEX_PRIVATE_FLAG into SYS_futex op if cv is process private.
  2508. * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S
  2509. (__pthread_cond_timedwait): Likewise.
  2510. * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:
  2511. (__condvar_cleanup, __pthread_cond_wait): Likewise.
  2512. 2007-08-05 Jakub Jelinek <jakub@redhat.com>
  2513. * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h (PSEUDO):
  2514. Don't use CGOTSETUP and CGOTRESTORE macros.
  2515. (CGOTSETUP, CGOTRESTORE): Remove.
  2516. <IS_IN_rtld> (CENABLE, CDISABLE): Don't use JUMPTARGET, branch to
  2517. @local symbol.
  2518. 2007-08-01 Kaz Kojima <kkojima@rr.iij4u.or.jp>
  2519. * sysdeps/unix/sysv/linux/sh/libc-lowlevellock.S: Remove
  2520. definitions for private futexes.
  2521. * sysdeps/unix/sysv/linux/sh/lowlevellock.S: Include
  2522. kernel-features.h and lowlevellock.h. Use private futexes if
  2523. they are available.
  2524. (__lll_lock_wait_private, __lll_unlock_wake_private): New.
  2525. (__lll_mutex_lock_wait): Rename to
  2526. (__lll_lock_wait): ... this. Don't compile in for libc.so.
  2527. (__lll_mutex_timedlock_wait): Rename to ...
  2528. (__lll_timedlock_wait): ... this. Use __NR_gettimeofday.
  2529. Don't compile in for libc.so.
  2530. (__lll_mutex_unlock_wake): Rename to ...
  2531. (__lll_unlock_wake): ... this. Don't compile in for libc.so.
  2532. (__lll_timedwait_tid): Use __NR_gettimeofday.
  2533. * sysdeps/unix/sysv/linux/sh/lowlevellock.h: Allow including
  2534. the header from assembler. Renamed all lll_mutex_* resp.
  2535. lll_robust_mutex_* macros to lll_* resp. lll_robust_*.
  2536. Renamed all LLL_MUTEX_LOCK_* macros to LLL_LOCK_*.
  2537. (FUTEX_CMP_REQUEUE, FUTEX_WAKE_OP, FUTEX_OP_CLEAR_WAKE_IF_GT_ONE):
  2538. Define.
  2539. (__lll_lock_wait_private): Add prototype.
  2540. (__lll_lock_wait, __lll_timedlock_wait, __lll_robust_lock_wait,
  2541. __lll_robust_timedlock_wait, __lll_unlock_wake_private,
  2542. __lll_unlock_wake): Likewise.
  2543. (lll_lock): Add private argument. Call __lll_lock_wait_private
  2544. if private is constant LLL_PRIVATE.
  2545. (lll_robust_lock, lll_cond_lock, lll_robust_cond_lock,
  2546. lll_timedlock, lll_robust_timedlock): Add private argument.
  2547. (lll_unlock): Add private argument. Call __lll_unlock_wake_private
  2548. if private is constant LLL_PRIVATE.
  2549. (lll_robust_unlock, lll_robust_dead): Add private argument.
  2550. (lll_lock_t): Remove.
  2551. (__lll_cond_wait, __lll_cond_timedwait, __lll_cond_wake,
  2552. __lll_cond_broadcast, lll_cond_wait, lll_cond_timedwait,
  2553. lll_cond_wake, lll_cond_broadcast): Remove.
  2554. * sysdeps/unix/sysv/linux/sh/lowlevelrobustlock.S: Include
  2555. kernel-features.h and lowlevellock.h.
  2556. (SYS_gettimeofday, SYS_futex, FUTEX_WAIT, FUTEX_WAKE): Remove.
  2557. (LOAD_FUTEX_WAIT): Define.
  2558. (__lll_robust_mutex_lock_wait): Rename to ...
  2559. (__lll_robust_lock_wait): ... this. Add private argument.
  2560. Use LOAD_FUTEX_WAIT macro.
  2561. (__lll_robust_mutex_timedlock_wait): Rename to ...
  2562. (__lll_robust_timedlock_wait): ... this. Add private argument.
  2563. Use __NR_gettimeofday. Use LOAD_FUTEX_WAIT macro.
  2564. * sysdeps/unix/sysv/linux/sh/pthread_barrier_wait.S: Include
  2565. lowlevellock.h.
  2566. (SYS_futex, FUTEX_WAIT, FUTEX_WAKE): Remove.
  2567. (pthread_barrier_wait): Use __lll_{lock,unlock}_* instead of
  2568. __lll_mutex_{lock,unlock}_*.
  2569. * sysdeps/unix/sysv/linux/sh/pthread_cond_broadcast.S: Include
  2570. lowlevellock.h and pthread-errnos.h.
  2571. (SYS_futex, FUTEX_WAIT, FUTEX_WAKE, FUTEX_REQUEUE,
  2572. FUTEX_CMP_REQUEUE, EINVAL): Remove.
  2573. (__pthread_cond_broadcast): Use __lll_{lock,unlock}_* instead of
  2574. __lll_mutex_{lock,unlock}_*.
  2575. * sysdeps/unix/sysv/linux/sh/pthread_cond_signal.S: Include
  2576. lowlevellock.h and pthread-errnos.h.
  2577. (SYS_futex, FUTEX_WAIT, FUTEX_WAKE, FUTEX_REQUEUE, EINVAL): Remove.
  2578. (__pthread_cond_signal): Use __lll_{lock,unlock}_* instead of
  2579. __lll_mutex_{lock,unlock}_*.
  2580. * sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S: Include
  2581. lowlevellock.h.
  2582. (SYS_futex, SYS_gettimeofday, FUTEX_WAIT, FUTEX_WAKE): Remove.
  2583. (__pthread_cond_timedwait): Use __lll_{lock,unlock}_* instead of
  2584. __lll_mutex_{lock,unlock}_*. Use __NR_gettimeofday.
  2585. (__condvar_tw_cleanup): Likewise.
  2586. * sysdeps/unix/sysv/linux/sh/pthread_cond_wait.S: Include
  2587. lowlevellock.h.
  2588. (SYS_futex, FUTEX_WAIT, FUTEX_WAKE): Remove.
  2589. (__pthread_cond_wait): Use __lll_{lock,unlock}_* instead of
  2590. __lll_mutex_{lock,unlock}_*.
  2591. ( __condvar_w_cleanup): Likewise.
  2592. * sysdeps/unix/sysv/linux/sh/pthread_once.S: Include lowlevellock.h.
  2593. (SYS_futex, FUTEX_WAIT, FUTEX_WAKE, FUTEX_PRIVATE_FLAG): Remove.
  2594. * sysdeps/unix/sysv/linux/sh/pthread_rwlock_rdlock.S: Include
  2595. lowlevellock.h.
  2596. (SYS_futex, FUTEX_WAIT, FUTEX_WAKE, FUTEX_PRIVATE_FLAG): Remove.
  2597. (__pthread_rwlock_rdlock): Use __lll_{lock,unlock}_* instead of
  2598. __lll_mutex_{lock,unlock}_*.
  2599. * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedrdlock.S: Include
  2600. lowlevellock.h.
  2601. (SYS_gettimeofday, SYS_futex, FUTEX_WAIT, FUTEX_WAKE,
  2602. FUTEX_PRIVATE_FLAG): Remove.
  2603. (pthread_rwlock_timedrdlock): Use __lll_{lock,unlock}_* instead of
  2604. __lll_mutex_{lock,unlock}_*. Use __NR_gettimeofday.
  2605. * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedwrlock.S: Include
  2606. lowlevellock.h.
  2607. (SYS_gettimeofday, SYS_futex, FUTEX_WAIT, FUTEX_WAKE,
  2608. FUTEX_PRIVATE_FLAG): Remove.
  2609. (pthread_rwlock_timedwrlock): Use __lll_{lock,unlock}_* instead of
  2610. __lll_mutex_{lock,unlock}_*. Use __NR_gettimeofday.
  2611. * sysdeps/unix/sysv/linux/sh/pthread_rwlock_unlock.S: Include
  2612. lowlevellock.h.
  2613. (SYS_futex, FUTEX_WAIT, FUTEX_WAKE, FUTEX_PRIVATE_FLAG): Remove.
  2614. (__pthread_rwlock_unlock): Use __lll_{lock,unlock}_* instead of
  2615. __lll_mutex_{lock,unlock}_*.
  2616. * sysdeps/unix/sysv/linux/sh/pthread_rwlock_wrlock.S: Include
  2617. lowlevellock.h.
  2618. (SYS_futex, FUTEX_WAIT, FUTEX_WAKE, FUTEX_PRIVATE_FLAG): Remove.
  2619. (__pthread_rwlock_wrlock): Use __lll_{lock,unlock}_* instead of
  2620. __lll_mutex_{lock,unlock}_*.
  2621. * sysdeps/unix/sysv/linux/sh/sem_post.S: Include lowlevellock.h.
  2622. (SYS_futex, FUTEX_WAIT, FUTEX_WAKE, FUTEX_PRIVATE_FLAG): Remove.
  2623. (__new_sem_post): Use standard initial exec code sequences.
  2624. * sysdeps/unix/sysv/linux/sh/sem_timedwait.S: Include
  2625. lowlevellock.h.
  2626. (SYS_gettimeofday, SYS_futex, FUTEX_WAIT, FUTEX_WAKE,
  2627. FUTEX_PRIVATE_FLAG): Remove.
  2628. (sem_timedwait): Use __NR_gettimeofday. Use standard initial
  2629. exec code sequences.
  2630. * sysdeps/unix/sysv/linux/sh/sem_trywait.S: Include lowlevellock.h.
  2631. (__new_sem_trywait): Use standard initial exec code sequences.
  2632. * sysdeps/unix/sysv/linux/sh/sem_wait.S: Include lowlevellock.h.
  2633. (__new_sem_wait): Use standard initial exec code sequences.
  2634. 2007-07-31 Anton Blanchard <anton@samba.org>
  2635. * sysdeps/unix/sysv/linux/powerpc/sem_post.c (__new_sem_post):
  2636. Use __asm __volatile (__lll_acq_instr ::: "memory") instead of
  2637. atomic_full_barrier.
  2638. 2007-07-31 Jakub Jelinek <jakub@redhat.com>
  2639. * allocatestack.c (stack_cache_lock): Change type to int.
  2640. (get_cached_stack, allocate_stack, __deallocate_stack,
  2641. __make_stacks_executable, __find_thread_by_id, __nptl_setxid,
  2642. __pthread_init_static_tls, __wait_lookup_done): Add LLL_PRIVATE
  2643. as second argument to lll_lock and lll_unlock macros on
  2644. stack_cache_lock.
  2645. * pthread_create.c (__find_in_stack_list): Likewise.
  2646. (start_thread): Similarly with pd->lock. Use lll_robust_dead
  2647. macro instead of lll_robust_mutex_dead, pass LLL_SHARED to it
  2648. as second argument.
  2649. * descr.h (struct pthread): Change lock and setxid_futex field
  2650. type to int.
  2651. * old_pthread_cond_broadcast.c (__pthread_cond_broadcast_2_0): Use
  2652. LLL_LOCK_INITIALIZER instead of LLL_MUTEX_LOCK_INITIALIZER.
  2653. * old_pthread_cond_signal.c (__pthread_cond_signal_2_0): Likewise.
  2654. * old_pthread_cond_timedwait.c (__pthread_cond_timedwait_2_0):
  2655. Likewise.
  2656. * old_pthread_cond_wait.c (__pthread_cond_wait_2_0): Likewise.
  2657. * pthread_cond_init.c (__pthread_cond_init): Likewise.
  2658. * pthreadP.h (__attr_list_lock): Change type to int.
  2659. * pthread_attr_init.c (__attr_list_lock): Likewise.
  2660. * pthread_barrier_destroy.c (pthread_barrier_destroy): Pass
  2661. ibarrier->private ^ FUTEX_PRIVATE_FLAG as second argument to
  2662. lll_{,un}lock.
  2663. * pthread_barrier_wait.c (pthread_barrier_wait): Likewise and
  2664. also for lll_futex_{wake,wait}.
  2665. * pthread_barrier_init.c (pthread_barrier_init): Make iattr
  2666. a pointer to const.
  2667. * pthread_cond_broadcast.c (__pthread_cond_broadcast): Pass
  2668. LLL_SHARED as second argument to lll_{,un}lock.
  2669. * pthread_cond_destroy.c (__pthread_cond_destroy): Likewise.
  2670. * pthread_cond_signal.c (__pthread_cond_singal): Likewise.
  2671. * pthread_cond_timedwait.c (__pthread_cond_timedwait): Likewise.
  2672. * pthread_cond_wait.c (__condvar_cleanup, __pthread_cond_wait):
  2673. Likewise.
  2674. * pthread_getattr_np.c (pthread_getattr_np): Add LLL_PRIVATE
  2675. as second argument to lll_{,un}lock macros on pd->lock.
  2676. * pthread_getschedparam.c (__pthread_getschedparam): Likewise.
  2677. * pthread_setschedparam.c (__pthread_setschedparam): Likewise.
  2678. * pthread_setschedprio.c (pthread_setschedprio): Likewise.
  2679. * tpp.c (__pthread_tpp_change_priority, __pthread_current_priority):
  2680. Likewise.
  2681. * sysdeps/pthread/createthread.c (do_clone, create_thread):
  2682. Likewise.
  2683. * pthread_once.c (once_lock): Change type to int.
  2684. (__pthread_once): Pass LLL_PRIVATE as second argument to
  2685. lll_{,un}lock macros on once_lock.
  2686. * pthread_rwlock_rdlock.c (__pthread_rwlock_rdlock): Use
  2687. lll_{,un}lock macros instead of lll_mutex_{,un}lock, pass
  2688. rwlock->__data.__shared as second argument to them and similarly
  2689. for lll_futex_w*.
  2690. * pthread_rwlock_timedrdlock.c (pthread_rwlock_timedrdlock):
  2691. Likewise.
  2692. * pthread_rwlock_timedwrlock.c (pthread_rwlock_timedwrlock):
  2693. Likewise.
  2694. * pthread_rwlock_tryrdlock.c (__pthread_rwlock_tryrdlock): Likewise.
  2695. * pthread_rwlock_trywrlock.c (__pthread_rwlock_trywrlock): Likewise.
  2696. * pthread_rwlock_unlock.c (__pthread_rwlock_unlock): Likewise.
  2697. * pthread_rwlock_wrlock.c (__pthread_rwlock_wrlock): Likewise.
  2698. * sem_close.c (sem_close): Pass LLL_PRIVATE as second argument
  2699. to lll_{,un}lock macros on __sem_mappings_lock.
  2700. * sem_open.c (check_add_mapping): Likewise.
  2701. (__sem_mappings_lock): Change type to int.
  2702. * semaphoreP.h (__sem_mappings_lock): Likewise.
  2703. * pthread_mutex_lock.c (LLL_MUTEX_LOCK, LLL_MUTEX_TRYLOCK,
  2704. LLL_ROBUST_MUTEX_LOCK): Use lll_{,try,robust_}lock macros
  2705. instead of lll_*mutex_*, pass LLL_SHARED as last
  2706. argument.
  2707. (__pthread_mutex_lock): Use lll_unlock instead of lll_mutex_unlock,
  2708. pass LLL_SHARED as last argument.
  2709. * sysdeps/unix/sysv/linux/pthread_mutex_cond_lock.c (LLL_MUTEX_LOCK,
  2710. LLL_MUTEX_TRYLOCK, LLL_ROBUST_MUTEX_LOCK): Use
  2711. lll_{cond_,cond_try,robust_cond}lock macros instead of lll_*mutex_*,
  2712. pass LLL_SHARED as last argument.
  2713. * pthread_mutex_timedlock.c (pthread_mutex_timedlock): Use
  2714. lll_{timed,try,robust_timed,un}lock instead of lll_*mutex*, pass
  2715. LLL_SHARED as last argument.
  2716. * pthread_mutex_trylock.c (__pthread_mutex_trylock): Similarly.
  2717. * pthread_mutex_unlock.c (__pthread_mutex_unlock_usercnt):
  2718. Similarly.
  2719. * sysdeps/pthread/bits/libc-lock.h (__libc_lock_lock,
  2720. __libc_lock_lock_recursive, __libc_lock_unlock,
  2721. __libc_lock_unlock_recursive): Pass LLL_PRIVATE as second
  2722. argument to lll_{,un}lock.
  2723. * sysdeps/pthread/bits/stdio-lock.h (_IO_lock_lock,
  2724. _IO_lock_unlock): Likewise.
  2725. * sysdeps/unix/sysv/linux/fork.c (__libc_fork): Don't use
  2726. compound literal.
  2727. * sysdeps/unix/sysv/linux/unregister-atfork.c (__unregister_atfork):
  2728. Pass LLL_PRIVATE as second argument to lll_{,un}lock macros on
  2729. __fork_lock.
  2730. * sysdeps/unix/sysv/linux/register-atfork.c (__register_atfork,
  2731. free_mem): Likewise.
  2732. (__fork_lock): Change type to int.
  2733. * sysdeps/unix/sysv/linux/fork.h (__fork_lock): Likewise.
  2734. * sysdeps/unix/sysv/linux/sem_post.c (__new_sem_post): Pass
  2735. isem->private ^ FUTEX_PRIVATE_FLAG as second argument to
  2736. lll_futex_wake.
  2737. * sysdeps/unix/sysv/linux/sem_timedwait.c (sem_timedwait): Likewise.
  2738. * sysdeps/unix/sysv/linux/sem_wait.c (__new_sem_wait): Likewise.
  2739. * sysdeps/unix/sysv/linux/lowlevellock.c (__lll_lock_wait_private):
  2740. New function.
  2741. (__lll_lock_wait, __lll_timedlock_wait): Add private argument and
  2742. pass it through to lll_futex_*wait, only compile in when
  2743. IS_IN_libpthread.
  2744. * sysdeps/unix/sysv/linux/lowlevelrobustlock.c
  2745. (__lll_robust_lock_wait, __lll_robust_timedlock_wait): Add private
  2746. argument and pass it through to lll_futex_*wait.
  2747. * sysdeps/unix/sysv/linux/alpha/lowlevellock.h: Renamed all
  2748. lll_mutex_* resp. lll_robust_mutex_* macros to lll_* resp.
  2749. lll_robust_*. Renamed all __lll_mutex_* resp. __lll_robust_mutex_*
  2750. inline functions to __lll_* resp. __lll_robust_*.
  2751. (LLL_MUTEX_LOCK_INITIALIZER): Remove.
  2752. (lll_mutex_dead): Add private argument.
  2753. (__lll_lock_wait_private): New prototype.
  2754. (__lll_lock_wait, __lll_robust_lock_wait, __lll_lock_timedwait,
  2755. __lll_robust_lock_timedwait): Add private argument to prototypes.
  2756. (__lll_lock): Add private argument, if it is constant LLL_PRIVATE,
  2757. call __lll_lock_wait_private, otherwise pass private to
  2758. __lll_lock_wait.
  2759. (__lll_robust_lock, __lll_cond_lock, __lll_timedlock,
  2760. __lll_robust_timedlock): Add private argument, pass it to
  2761. __lll_*wait functions.
  2762. (__lll_unlock): Add private argument, if it is constant LLL_PRIVATE,
  2763. call __lll_unlock_wake_private, otherwise pass private to
  2764. __lll_unlock_wake.
  2765. (__lll_robust_unlock): Add private argument, pass it to
  2766. __lll_robust_unlock_wake.
  2767. (lll_lock, lll_robust_lock, lll_cond_lock, lll_timedlock,
  2768. lll_robust_timedlock, lll_unlock, lll_robust_unlock): Add private
  2769. argument, pass it through to __lll_* inline function.
  2770. (__lll_mutex_unlock_force, lll_mutex_unlock_force): Remove.
  2771. (lll_lock_t): Remove.
  2772. (__lll_cond_wait, __lll_cond_timedwait, __lll_cond_wake,
  2773. __lll_cond_broadcast, lll_cond_wait, lll_cond_timedwait,
  2774. lll_cond_wake, lll_cond_broadcast): Remove.
  2775. * sysdeps/unix/sysv/linux/ia64/lowlevellock.h: Likewise.
  2776. * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Likewise.
  2777. * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
  2778. * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Likewise.
  2779. * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Allow including
  2780. the header from assembler. Renamed all lll_mutex_* resp.
  2781. lll_robust_mutex_* macros to lll_* resp. lll_robust_*.
  2782. (LOCK, FUTEX_CMP_REQUEUE, FUTEX_WAKE_OP,
  2783. FUTEX_OP_CLEAR_WAKE_IF_GT_ONE): Define.
  2784. (LLL_MUTEX_LOCK_INITIALIZER, LLL_MUTEX_LOCK_INITIALIZER_LOCKED,
  2785. LLL_MUTEX_LOCK_INITIALIZER_WAITERS): Remove.
  2786. (__lll_mutex_lock_wait, __lll_mutex_timedlock_wait,
  2787. __lll_mutex_unlock_wake, __lll_lock_wait, __lll_unlock_wake):
  2788. Remove prototype.
  2789. (__lll_trylock_asm, __lll_lock_asm_start, __lll_unlock_asm): Define.
  2790. (lll_robust_trylock, lll_cond_trylock): Use LLL_LOCK_INITIALIZER*
  2791. rather than LLL_MUTEX_LOCK_INITIALIZER* macros.
  2792. (lll_trylock): Likewise, use __lll_trylock_asm, pass
  2793. MULTIPLE_THREADS_OFFSET as another asm operand.
  2794. (lll_lock): Add private argument, use __lll_lock_asm_start, pass
  2795. MULTIPLE_THREADS_OFFSET as last asm operand, call
  2796. __lll_lock_wait_private if private is constant LLL_PRIVATE,
  2797. otherwise pass private as another argument to __lll_lock_wait.
  2798. (lll_robust_lock, lll_cond_lock, lll_robust_cond_lock,
  2799. lll_timedlock, lll_robust_timedlock): Add private argument, pass
  2800. private as another argument to __lll_*lock_wait call.
  2801. (lll_unlock): Add private argument, use __lll_unlock_asm, pass
  2802. MULTIPLE_THREADS_OFFSET as another asm operand, call
  2803. __lll_unlock_wake_private if private is constant LLL_PRIVATE,
  2804. otherwise pass private as another argument to __lll_unlock_wake.
  2805. (lll_robust_unlock): Add private argument, pass private as another
  2806. argument to __lll_unlock_wake.
  2807. (lll_robust_dead): Add private argument, use __lll_private_flag
  2808. macro.
  2809. (lll_islocked): Use LLL_LOCK_INITIALIZER instead of
  2810. LLL_MUTEX_LOCK_INITIALIZER.
  2811. (lll_lock_t): Remove.
  2812. (LLL_LOCK_INITIALIZER_WAITERS): Define.
  2813. (__lll_cond_wait, __lll_cond_timedwait, __lll_cond_wake,
  2814. __lll_cond_broadcast, lll_cond_wait, lll_cond_timedwait,
  2815. lll_cond_wake, lll_cond_broadcast): Remove.
  2816. * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
  2817. * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S: Revert
  2818. 2007-05-2{3,9} changes.
  2819. * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S: Include
  2820. kernel-features.h and lowlevellock.h.
  2821. (LOAD_PRIVATE_FUTEX_WAIT): Define.
  2822. (LOAD_FUTEX_WAIT): Rewritten.
  2823. (LOCK, SYS_gettimeofday, SYS_futex, FUTEX_WAIT, FUTEX_WAKE): Don't
  2824. define.
  2825. (__lll_lock_wait_private, __lll_unlock_wake_private): New functions.
  2826. (__lll_mutex_lock_wait): Rename to ...
  2827. (__lll_lock_wait): ... this. Take futex addr from %edx instead of
  2828. %ecx, %ecx is now private argument. Don't compile in for libc.so.
  2829. (__lll_mutex_timedlock_wait): Rename to ...
  2830. (__lll_timedlock_wait): ... this. Use __NR_gettimeofday. %esi
  2831. contains private argument. Don't compile in for libc.so.
  2832. (__lll_mutex_unlock_wake): Rename to ...
  2833. (__lll_unlock_wake): ... this. %ecx contains private argument.
  2834. Don't compile in for libc.so.
  2835. (__lll_timedwait_tid): Use __NR_gettimeofday.
  2836. * sysdeps/unix/sysv/linux/i386/i486/lowlevelrobustlock.S: Include
  2837. kernel-features.h and lowlevellock.h.
  2838. (LOAD_FUTEX_WAIT): Define.
  2839. (LOCK, SYS_gettimeofday, SYS_futex, FUTEX_WAIT, FUTEX_WAKE): Don't
  2840. define.
  2841. (__lll_robust_mutex_lock_wait): Rename to ...
  2842. (__lll_robust_lock_wait): ... this. Futex addr is now in %edx
  2843. argument, %ecx argument contains private. Use LOAD_FUTEX_WAIT
  2844. macro.
  2845. (__lll_robust_mutex_timedlock_wait): Rename to ...
  2846. (__lll_robust_timedlock_wait): ... this. Use __NR_gettimeofday.
  2847. %esi argument contains private, use LOAD_FUTEX_WAIT macro.
  2848. * sysdeps/unix/sysv/linux/i386/i486/pthread_barrier_wait.S: Include
  2849. lowlevellock.h.
  2850. (SYS_futex, FUTEX_WAIT, FUTEX_WAKE, LOCK): Don't define.
  2851. (pthread_barrier_wait): Rename __lll_mutex_* to __lll_*, pass
  2852. PRIVATE(%ebx) ^ LLL_SHARED as private argument in %ecx to
  2853. __lll_lock_wait and __lll_unlock_wake, pass MUTEX(%ebx) address
  2854. to __lll_lock_wait in %edx.
  2855. * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_broadcast.S:
  2856. Include lowlevellock.h and pthread-errnos.h.
  2857. (SYS_futex, FUTEX_WAIT, FUTEX_WAKE, FUTEX_REQUEUE,
  2858. FUTEX_CMP_REQUEUE, EINVAL, LOCK): Don't define.
  2859. (__pthread_cond_broadcast): Rename __lll_mutex_* to __lll_*, pass
  2860. cond_lock address in %edx rather than %ecx to __lll_lock_wait,
  2861. pass LLL_SHARED in %ecx to both __lll_lock_wait and
  2862. __lll_unlock_wake.
  2863. * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S:
  2864. Include lowlevellock.h and pthread-errnos.h.
  2865. (SYS_futex, FUTEX_WAIT, FUTEX_WAKE, FUTEX_WAKE_OP,
  2866. FUTEX_OP_CLEAR_WAKE_IF_GT_ONE, EINVAL, LOCK): Don't define.
  2867. (__pthread_cond_signal): Rename __lll_mutex_* to __lll_*, pass
  2868. cond_lock address in %edx rather than %ecx to __lll_lock_wait,
  2869. pass LLL_SHARED in %ecx to both __lll_lock_wait and
  2870. __lll_unlock_wake.
  2871. * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S:
  2872. Include lowlevellock.h.
  2873. (SYS_futex, SYS_gettimeofday, FUTEX_WAIT, FUTEX_WAKE, LOCK):
  2874. Don't define.
  2875. (__pthread_cond_timedwait): Rename __lll_mutex_* to __lll_*, pass
  2876. cond_lock address in %edx rather than %ecx to __lll_lock_wait,
  2877. pass LLL_SHARED in %ecx to both __lll_lock_wait and
  2878. __lll_unlock_wake. Use __NR_gettimeofday.
  2879. * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S:
  2880. Include lowlevellock.h.
  2881. (SYS_futex, FUTEX_WAIT, FUTEX_WAKE, LOCK): Don't define.
  2882. (__pthread_cond_wait, __condvar_w_cleanup): Rename __lll_mutex_*
  2883. to __lll_*, pass cond_lock address in %edx rather than %ecx to
  2884. __lll_lock_wait, pass LLL_SHARED in %ecx to both __lll_lock_wait
  2885. and __lll_unlock_wake.
  2886. * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_rdlock.S:
  2887. Include lowlevellock.h.
  2888. (SYS_futex, FUTEX_WAIT, FUTEX_WAKE, LOCK): Don't define.
  2889. (__pthread_rwlock_rdlock): Rename __lll_mutex_* to __lll_*, pass
  2890. MUTEX(%ebx) address in %edx rather than %ecx to
  2891. __lll_lock_wait, pass PSHARED(%ebx) in %ecx to both __lll_lock_wait
  2892. and __lll_unlock_wake. Move return value from %ecx to %edx
  2893. register.
  2894. * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S:
  2895. Include lowlevellock.h.
  2896. (SYS_futex, SYS_gettimeofday, FUTEX_WAIT, FUTEX_WAKE, LOCK):
  2897. Don't define.
  2898. (__pthread_rwlock_wrlock): Rename __lll_mutex_* to __lll_*, pass
  2899. MUTEX(%ebp) address in %edx rather than %ecx to
  2900. __lll_lock_wait, pass PSHARED(%ebp) in %ecx to both __lll_lock_wait
  2901. and __lll_unlock_wake. Move return value from %ecx to %edx
  2902. register. Use __NR_gettimeofday.
  2903. * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S:
  2904. Include lowlevellock.h.
  2905. (SYS_futex, SYS_gettimeofday, FUTEX_WAIT, FUTEX_WAKE, LOCK):
  2906. Don't define.
  2907. (__pthread_rwlock_wrlock): Rename __lll_mutex_* to __lll_*, pass
  2908. MUTEX(%ebp) address in %edx rather than %ecx to
  2909. __lll_lock_wait, pass PSHARED(%ebp) in %ecx to both __lll_lock_wait
  2910. and __lll_unlock_wake. Move return value from %ecx to %edx
  2911. register. Use __NR_gettimeofday.
  2912. * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_unlock.S:
  2913. Include lowlevellock.h.
  2914. (SYS_futex, FUTEX_WAIT, FUTEX_WAKE, LOCK): Don't define.
  2915. (__pthread_rwlock_unlock): Rename __lll_mutex_* to __lll_*, pass
  2916. MUTEX(%edi) address in %edx rather than %ecx to
  2917. __lll_lock_wait, pass PSHARED(%edi) in %ecx to both __lll_lock_wait
  2918. and __lll_unlock_wake.
  2919. * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_wrlock.S:
  2920. Include lowlevellock.h.
  2921. (SYS_futex, FUTEX_WAIT, FUTEX_WAKE, LOCK): Don't define.
  2922. (__pthread_rwlock_wrlock): Rename __lll_mutex_* to __lll_*, pass
  2923. MUTEX(%ebx) address in %edx rather than %ecx to
  2924. __lll_lock_wait, pass PSHARED(%ebx) in %ecx to both __lll_lock_wait
  2925. and __lll_unlock_wake. Move return value from %ecx to %edx
  2926. register.
  2927. * sysdeps/unix/sysv/linux/i386/pthread_once.S: Include
  2928. lowlevellock.h.
  2929. (LOCK, SYS_futex, FUTEX_WAIT, FUTEX_WAKE, FUTEX_PRIVATE_FLAG): Don't
  2930. define.
  2931. * sysdeps/unix/sysv/linux/i386/i486/sem_post.S: Include lowlevellock.h.
  2932. (LOCK, SYS_futex, FUTEX_WAKE): Don't define.
  2933. * sysdeps/unix/sysv/linux/i386/i486/sem_timedwait.S: Include
  2934. lowlevellock.h.
  2935. (LOCK, SYS_futex, SYS_gettimeofday, FUTEX_WAIT): Don't define.
  2936. (sem_timedwait): Use __NR_gettimeofday.
  2937. * sysdeps/unix/sysv/linux/i386/i486/sem_trywait.S: Include
  2938. lowlevellock.h.
  2939. (LOCK): Don't define.
  2940. * sysdeps/unix/sysv/linux/i386/i486/sem_wait.S: Include
  2941. lowlevellock.h.
  2942. (LOCK, SYS_futex, FUTEX_WAIT): Don't define.
  2943. * sysdeps/unix/sysv/linux/powerpc/sem_post.c: Wake only when there
  2944. are waiters.
  2945. * sysdeps/unix/sysv/linux/x86_64/libc-lowlevellock.S: Revert
  2946. 2007-05-2{3,9} changes.
  2947. * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Include
  2948. kernel-features.h and lowlevellock.h.
  2949. (LOAD_PRIVATE_FUTEX_WAIT): Define.
  2950. (LOAD_FUTEX_WAIT): Rewritten.
  2951. (LOCK, SYS_futex, FUTEX_WAIT, FUTEX_WAKE): Don't define.
  2952. (__lll_lock_wait_private, __lll_unlock_wake_private): New functions.
  2953. (__lll_mutex_lock_wait): Rename to ...
  2954. (__lll_lock_wait): ... this. %esi is now private argument.
  2955. Don't compile in for libc.so.
  2956. (__lll_mutex_timedlock_wait): Rename to ...
  2957. (__lll_timedlock_wait): ... this. %esi contains private argument.
  2958. Don't compile in for libc.so.
  2959. (__lll_mutex_unlock_wake): Rename to ...
  2960. (__lll_unlock_wake): ... this. %esi contains private argument.
  2961. Don't compile in for libc.so.
  2962. * sysdeps/unix/sysv/linux/x86_64/lowlevelrobustlock.S: Include
  2963. kernel-features.h and lowlevellock.h.
  2964. (LOAD_FUTEX_WAIT): Define.
  2965. (LOCK, SYS_futex, FUTEX_WAIT, FUTEX_WAKE): Don't define.
  2966. (__lll_robust_mutex_lock_wait): Rename to ...
  2967. (__lll_robust_lock_wait): ... this. %esi argument contains private.
  2968. Use LOAD_FUTEX_WAIT macro.
  2969. (__lll_robust_mutex_timedlock_wait): Rename to ...
  2970. (__lll_robust_timedlock_wait): ... this. %esi argument contains
  2971. private, use LOAD_FUTEX_WAIT macro.
  2972. * sysdeps/unix/sysv/linux/x86_64/pthread_barrier_wait.S: Include
  2973. lowlevellock.h.
  2974. (SYS_futex, FUTEX_WAIT, FUTEX_WAKE, LOCK): Don't define.
  2975. (pthread_barrier_wait): Rename __lll_mutex_* to __lll_*, pass
  2976. PRIVATE(%rdi) ^ LLL_SHARED as private argument in %esi to
  2977. __lll_lock_wait and __lll_unlock_wake.
  2978. * sysdeps/unix/sysv/linux/x86_64/pthread_cond_broadcast.S:
  2979. Include lowlevellock.h and pthread-errnos.h.
  2980. (SYS_futex, FUTEX_WAIT, FUTEX_WAKE, FUTEX_REQUEUE,
  2981. FUTEX_CMP_REQUEUE, EINVAL, LOCK): Don't define.
  2982. (__pthread_cond_broadcast): Rename __lll_mutex_* to __lll_*,
  2983. pass LLL_SHARED in %esi to both __lll_lock_wait and
  2984. __lll_unlock_wake.
  2985. * sysdeps/unix/sysv/linux/x86_64/pthread_cond_signal.S:
  2986. Include lowlevellock.h and pthread-errnos.h.
  2987. (SYS_futex, FUTEX_WAIT, FUTEX_WAKE, FUTEX_WAKE_OP,
  2988. FUTEX_OP_CLEAR_WAKE_IF_GT_ONE, EINVAL, LOCK): Don't define.
  2989. (__pthread_cond_signal): Rename __lll_mutex_* to __lll_*,
  2990. pass LLL_SHARED in %esi to both __lll_lock_wait and
  2991. __lll_unlock_wake.
  2992. * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:
  2993. Include lowlevellock.h.
  2994. (SYS_futex, FUTEX_WAIT, FUTEX_WAKE, LOCK): Don't define.
  2995. (__pthread_cond_timedwait): Rename __lll_mutex_* to __lll_*,
  2996. pass LLL_SHARED in %esi to both __lll_lock_wait and
  2997. __lll_unlock_wake.
  2998. * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:
  2999. Include lowlevellock.h.
  3000. (SYS_futex, FUTEX_WAIT, FUTEX_WAKE, LOCK): Don't define.
  3001. (__pthread_cond_wait, __condvar_cleanup): Rename __lll_mutex_*
  3002. to __lll_*, pass LLL_SHARED in %esi to both __lll_lock_wait
  3003. and __lll_unlock_wake.
  3004. * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_rdlock.S:
  3005. Include lowlevellock.h.
  3006. (SYS_futex, FUTEX_WAIT, FUTEX_WAKE, FUTEX_PRIVATE_FLAG, LOCK):
  3007. Don't define.
  3008. (__pthread_rwlock_rdlock): Rename __lll_mutex_* to __lll_*,
  3009. pass PSHARED(%rdi) in %esi to both __lll_lock_wait
  3010. and __lll_unlock_wake.
  3011. * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedrdlock.S:
  3012. Include lowlevellock.h.
  3013. (SYS_futex, FUTEX_WAIT, FUTEX_WAKE, FUTEX_PRIVATE_FLAG, LOCK):
  3014. Don't define.
  3015. (__pthread_rwlock_wrlock): Rename __lll_mutex_* to __lll_*,
  3016. pass PSHARED(%rdi) in %esi to both __lll_lock_wait
  3017. and __lll_unlock_wake.
  3018. * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedwrlock.S:
  3019. Include lowlevellock.h.
  3020. (SYS_futex, FUTEX_WAIT, FUTEX_WAKE, FUTEX_PRIVATE_FLAG, LOCK):
  3021. Don't define.
  3022. (__pthread_rwlock_wrlock): Rename __lll_mutex_* to __lll_*,
  3023. pass PSHARED(%rdi) in %esi to both __lll_lock_wait
  3024. and __lll_unlock_wake.
  3025. * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_unlock.S:
  3026. Include lowlevellock.h.
  3027. (SYS_futex, FUTEX_WAIT, FUTEX_WAKE, FUTEX_PRIVATE_FLAG, LOCK):
  3028. Don't define.
  3029. (__pthread_rwlock_unlock): Rename __lll_mutex_* to __lll_*,
  3030. pass PSHARED(%rdi) in %esi to both __lll_lock_wait
  3031. and __lll_unlock_wake.
  3032. * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_wrlock.S:
  3033. Include lowlevellock.h.
  3034. (SYS_futex, FUTEX_WAIT, FUTEX_WAKE, FUTEX_PRIVATE_FLAG, LOCK):
  3035. Don't define.
  3036. (__pthread_rwlock_wrlock): Rename __lll_mutex_* to __lll_*,
  3037. pass PSHARED(%rdi) in %ecx to both __lll_lock_wait
  3038. and __lll_unlock_wake.
  3039. * sysdeps/unix/sysv/linux/x86_64/pthread_once.S: Include
  3040. lowlevellock.h.
  3041. (LOCK, SYS_futex, FUTEX_WAIT, FUTEX_WAKE, FUTEX_PRIVATE_FLAG): Don't
  3042. define.
  3043. * sysdeps/unix/sysv/linux/x86_64/sem_post.S: Include lowlevellock.h.
  3044. (LOCK, SYS_futex, FUTEX_WAKE): Don't define.
  3045. * sysdeps/unix/sysv/linux/x86_64/sem_timedwait.S: Include
  3046. lowlevellock.h.
  3047. (LOCK, SYS_futex, FUTEX_WAIT): Don't define.
  3048. * sysdeps/unix/sysv/linux/x86_64/sem_trywait.S: Include
  3049. lowlevellock.h.
  3050. (LOCK): Don't define.
  3051. * sysdeps/unix/sysv/linux/x86_64/sem_wait.S: Include
  3052. lowlevellock.h.
  3053. (LOCK, SYS_futex, FUTEX_WAIT): Don't define.
  3054. * sysdeps/unix/sysv/linux/sparc/internaltypes.h: New file.
  3055. * sysdeps/unix/sysv/linux/sparc/pthread_barrier_destroy.c: New file.
  3056. * sysdeps/unix/sysv/linux/sparc/pthread_barrier_init.c: New file.
  3057. * sysdeps/unix/sysv/linux/sparc/pthread_barrier_wait.c: New file.
  3058. * sysdeps/unix/sysv/linux/sparc/sparc32/lowlevellock.c
  3059. (__lll_lock_wait_private): New function.
  3060. (__lll_lock_wait, __lll_timedlock_wait): Add private argument, pass
  3061. it to lll_futex_*wait. Don't compile in for libc.so.
  3062. * sysdeps/unix/sysv/linux/sparc/sparc32/pthread_barrier_init.c:
  3063. Remove.
  3064. * sysdeps/unix/sysv/linux/sparc/sparc32/pthread_barrier_wait.c
  3065. (struct sparc_pthread_barrier): Remove.
  3066. (pthread_barrier_wait): Use union sparc_pthread_barrier instead of
  3067. struct sparc_pthread_barrier. Pass
  3068. ibarrier->s.pshared ? LLL_SHARED : LLL_PRIVATE to lll_{,un}lock
  3069. and lll_futex_wait macros.
  3070. * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/pthread_barrier_init.c:
  3071. Remove.
  3072. * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/pthread_barrier_wait.c:
  3073. Include sparc pthread_barrier_wait.c instead of generic one.
  3074. 2007-07-30 Jakub Jelinek <jakub@redhat.com>
  3075. * tst-rwlock14.c (do_test): Avoid warnings on 32-bit arches.
  3076. * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S
  3077. (pthread_rwlock_timedrdlock): Copy futex retval to %esi rather than
  3078. %ecx.
  3079. * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S
  3080. (pthread_rwlock_timedwrlock): Likewise.
  3081. * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_unlock.S
  3082. (__pthread_rwlock_unlock): Fix MUTEX != 0 args to __lll_*.
  3083. 2007-07-31 Jakub Jelinek <jakub@redhat.com>
  3084. * sysdeps/sparc/tls.h (tcbhead_t): Add private_futex field.
  3085. 2007-07-26 Jakub Jelinek <jakub@redhat.com>
  3086. * tst-locale2.c (useless): Add return statement.
  3087. 2007-07-24 Jakub Jelinek <jakub@redhat.com>
  3088. * allocatestack.c (__nptl_setxid, __wait_lookup_done): Replace
  3089. lll_private_futex_* (*) with lll_futex_* (*, LLL_PRIVATE).
  3090. * pthread_create.c (start_thread): Likewise.
  3091. * init.c (sighandler_setxid): Likewise.
  3092. * sysdeps/alpha/tls.h (THREAD_GSCOPE_RESET_FLAG): Likewise.
  3093. * sysdeps/ia64/tls.h (THREAD_GSCOPE_RESET_FLAG): Likewise.
  3094. * sysdeps/i386/tls.h (THREAD_GSCOPE_RESET_FLAG): Likewise.
  3095. * sysdeps/s390/tls.h (THREAD_GSCOPE_RESET_FLAG): Likewise.
  3096. * sysdeps/powerpc/tls.h (THREAD_GSCOPE_RESET_FLAG): Likewise.
  3097. * sysdeps/x86_64/tls.h (THREAD_GSCOPE_RESET_FLAG): Likewise.
  3098. * sysdeps/sparc/tls.h (THREAD_GSCOPE_RESET_FLAG): Likewise.
  3099. * sysdeps/sh/tls.h (THREAD_GSCOPE_RESET_FLAG): Likewise.
  3100. * sysdeps/pthread/aio_misc.h (AIO_MISC_NOTIFY, AIO_MISC_WAIT):
  3101. Likewise.
  3102. * sysdeps/pthread/gai_misc.h (GAI_MISC_NOTIFY, GAI_MISC_WAIT):
  3103. Likewise.
  3104. * sysdeps/unix/sysv/linux/unregister-atfork.c (__unregister_atfork):
  3105. Likewise.
  3106. * sysdeps/unix/sysv/linux/rtld-lowlevel.h (__rtld_waitzero,
  3107. __rtld_notify): Likewise.
  3108. * sysdeps/unix/sysv/linux/fork.c (__libc_fork): Likewise.
  3109. * sysdeps/unix/sysv/linux/powerpc/pthread_once.c (clear_once_control,
  3110. __pthread_once): Likewise.
  3111. * sysdeps/unix/sysv/linux/alpha/pthread_once.c (clear_once_control,
  3112. __pthread_once): Add LLL_PRIVATE as last argument to lll_futex_*.
  3113. * sysdeps/unix/sysv/linux/alpha/lowlevellock.h (FUTEX_PRIVATE_FLAG,
  3114. LLL_PRIVATE, LLL_SHARED, __lll_private_flag): Define.
  3115. (lll_futex_wait): Add private argument, define as wrapper around
  3116. lll_futex_timed_wait.
  3117. (lll_futex_timed_wait, lll_futex_wake): Add private argument,
  3118. use __lll_private_flag macro.
  3119. (lll_robust_mutex_dead, __lll_mutex_unlock, __lll_robust_mutex_unlock,
  3120. __lll_mutex_unlock_force): Pass LLL_SHARED as last arg to lll_futex_*.
  3121. * sysdeps/unix/sysv/linux/ia64/pthread_once.c (clear_once_control,
  3122. __pthread_once): Add LLL_PRIVATE as last argument to lll_futex_*.
  3123. * sysdeps/unix/sysv/linux/ia64/lowlevellock.h (FUTEX_PRIVATE_FLAG,
  3124. LLL_PRIVATE, LLL_SHARED, __lll_private_flag): Define.
  3125. (lll_futex_wait): Add private argument, define as wrapper around
  3126. lll_futex_timed_wait.
  3127. (lll_futex_timed_wait, lll_futex_wake): Add private argument,
  3128. use __lll_private_flag macro.
  3129. (__lll_mutex_unlock, __lll_robust_mutex_unlock, lll_wait_tid,
  3130. __lll_mutex_unlock_force): Pass LLL_SHARED as last arg to lll_futex_*.
  3131. * sysdeps/unix/sysv/linux/i386/lowlevellock.h (__lll_private_flag):
  3132. Define.
  3133. (lll_futex_timed_wait, lll_futex_wake): Use it.
  3134. (lll_private_futex_wait, lll_private_futex_timed_wait,
  3135. lll_private_futex_wake): Removed.
  3136. * sysdeps/unix/sysv/linux/s390/pthread_once.c (clear_once_control,
  3137. __pthread_once): Add LLL_PRIVATE as last argument to lll_futex_*.
  3138. * sysdeps/unix/sysv/linux/s390/lowlevellock.h (FUTEX_PRIVATE_FLAG,
  3139. LLL_PRIVATE, LLL_SHARED, __lll_private_flag): Define.
  3140. (lll_futex_wait): Add private argument, define as wrapper around
  3141. lll_futex_timed_wait.
  3142. (lll_futex_timed_wait, lll_futex_wake): Add private argument,
  3143. use __lll_private_flag macro.
  3144. (lll_robust_mutex_dead, __lll_mutex_unlock, __lll_robust_mutex_unlock,
  3145. lll_wait_tid, __lll_mutex_unlock_force): Pass LLL_SHARED as last arg
  3146. to lll_futex_*.
  3147. * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h
  3148. (lll_private_futex_wait, lll_private_futex_timed_wait,
  3149. lll_private_futex_wake): Removed.
  3150. * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (__lll_private_flag):
  3151. Fix !__ASSUME_PRIVATE_FUTEX non-constant private case.
  3152. (lll_private_futex_wait, lll_private_futex_timed_wait,
  3153. lll_private_futex_wake): Removed.
  3154. * sysdeps/unix/sysv/linux/sparc/pthread_once.c (clear_once_control,
  3155. __pthread_once): Add LLL_PRIVATE as last argument to lll_futex_*.
  3156. * sysdeps/unix/sysv/linux/sparc/lowlevellock.h (FUTEX_PRIVATE_FLAG,
  3157. LLL_PRIVATE, LLL_SHARED, __lll_private_flag): Define.
  3158. (lll_futex_wait): Add private argument, define as wrapper around
  3159. lll_futex_timed_wait.
  3160. (lll_futex_timed_wait, lll_futex_wake): Add private argument,
  3161. use __lll_private_flag macro.
  3162. (lll_robust_mutex_dead, __lll_mutex_unlock, __lll_robust_mutex_unlock,
  3163. lll_wait_tid, __lll_mutex_unlock_force): Pass LLL_SHARED as last arg
  3164. to lll_futex_*.
  3165. * sysdeps/unix/sysv/linux/sh/lowlevellock.h (__lll_private_flag):
  3166. Define.
  3167. (lll_futex_timed_wait, lll_futex_wake): Use it.
  3168. (lll_private_futex_wait, lll_private_futex_timed_wait,
  3169. lll_private_futex_wake): Removed.
  3170. 2007-07-27 Jakub Jelinek <jakub@redhat.com>
  3171. * sysdeps/sparc/tls.h (tcbhead_t): Move gscope_flag to the end
  3172. of the structure for sparc32.
  3173. 2007-07-26 Aurelien Jarno <aurelien@aurel32.net>
  3174. * sysdeps/sparc/tls.h (tcbhead_t): Add gscope_flag.
  3175. 2007-07-23 Ulrich Drepper <drepper@redhat.com>
  3176. * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedrdlock.S: Fix
  3177. code used when private futexes are assumed.
  3178. * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedwrlock.S:
  3179. Likewise.
  3180. 2007-07-23 Jakub Jelinek <jakub@redhat.com>
  3181. * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h
  3182. (__lll_private_flag): Define.
  3183. (lll_futex_wait): Define as a wrapper around lll_futex_timed_wait.
  3184. (lll_futex_timed_wait, lll_futex_wake, lll_futex_wake_unlock): Use
  3185. __lll_private_flag.
  3186. (lll_private_futex_wait, lll_private_futex_timedwait,
  3187. lll_private_futex_wake): Define as wrapper around non-_private
  3188. macros.
  3189. * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h
  3190. (__lll_private_flag): Define.
  3191. (lll_futex_timed_wait, lll_futex_wake): Use __lll_private_flag.
  3192. (lll_private_futex_wait, lll_private_futex_timedwait,
  3193. lll_private_futex_wake): Define as wrapper around non-_private
  3194. macros.
  3195. 2007-07-10 Steven Munroe <sjmunroe@us.ibm.com>
  3196. * pthread_rwlock_rdlock.c (__pthread_rwlock_rdlock): Add LLL_SHARED
  3197. parameter to lll_futex_wait call.
  3198. * pthread_rwlock_wrlock.c (__pthread_rwlock_wrlock): Likewise.
  3199. * sysdeps/unix/sysv/linux/powerpc/pthread_once.c (__pthread_once):
  3200. Replace lll_futex_wait with lll_private_futex_wait.
  3201. * sysdeps/unix/sysv/linux/powerpc/sem_post.c (__new_sem_post):
  3202. Add LLL_SHARED parameter to lll_futex_wake().
  3203. * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Define LLL_PRIVATE
  3204. LLL_SHARED, lll_private_futex_wait, lll_private_futex_timed_wait and
  3205. lll_private_futex_wake.
  3206. (lll_futex_wait): Add private parameter. Adjust FUTEX_PRIVATE_FLAG
  3207. bit from private parm before syscall.
  3208. (lll_futex_timed_wait): Likewise.
  3209. (lll_futex_wake): Likewise.
  3210. (lll_futex_wake_unlock): Likewise.
  3211. (lll_mutex_unlock): Add LLL_SHARED parm to lll_futex_wake call.
  3212. (lll_robust_mutex_unlock): Likewise.
  3213. (lll_mutex_unlock_force): Likewise.
  3214. (lll_wait_tid): Add LLL_SHARED parm to lll_futex_wait call.
  3215. 2007-07-23 Ulrich Drepper <drepper@redhat.com>
  3216. * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedrdlock.S: Fix
  3217. compilation when unconditionally using private futexes.
  3218. * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_rdlock.S: Likewise.
  3219. * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedwrlock.S:
  3220. Likewise.
  3221. * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_unlock.S: Likewise.
  3222. * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_wrlock.S: Likewise.
  3223. 2007-07-17 Jakub Jelinek <jakub@redhat.com>
  3224. * sysdeps/pthread/bits/stdio-lock.h (_IO_acquire_lock_clear_flags2):
  3225. Define.
  3226. 2007-07-06 Kaz Kojima <kkojima@rr.iij4u.or.jp>
  3227. * sysdeps/sh/tls.h: Include stdlib.h, list.h, sysdep.h and
  3228. kernel-features.h.
  3229. 2007-05-16 Roland McGrath <roland@redhat.com>
  3230. * init.c (__nptl_initial_report_events): New variable.
  3231. (__pthread_initialize_minimal_internal): Initialize pd->report_events
  3232. to that.
  3233. 2007-06-22 Jakub Jelinek <jakub@redhat.com>
  3234. * pthread_getattr_np.c (pthread_getattr_np): Clear cpuset and
  3235. cpusetsize if pthread_getaffinity_np failed with ENOSYS.
  3236. 2007-06-19 Ulrich Drepper <drepper@redhat.com>
  3237. * sysdeps/unix/sysv/linux/rtld-lowlevel.h: Remove mrlock
  3238. implementation.
  3239. 2007-06-18 Ulrich Drepper <drepper@redhat.com>
  3240. * pthreadP.h: Define PTHREAD_MUTEX_TYPE.
  3241. * phtread_mutex_lock.c: Use PTHREAD_MUTEX_TYPE.
  3242. * pthread_mutex_timedlock.c: Likewise.
  3243. * pthread_mutex_trylock.c: Likewise.
  3244. * pthread_mutex_unlock.c: Likewise.
  3245. 2007-06-17 Andreas Schwab <schwab@suse.de>
  3246. * sysdeps/pthread/pt-initfini.c: Tell gcc about the nonstandard
  3247. sections.
  3248. 2007-06-17 Ulrich Drepper <drepper@redhat.com>
  3249. * allocatestack.c (allocate_stack): Make code compile if
  3250. __ASSUME_PRIVATE_FUTEX is set.
  3251. 2007-06-17 Kaz Kojima <kkojima@rr.iij4u.or.jp>
  3252. * sysdeps/unix/sysv/linux/sh/pthread_rwlock_rdlock.S:
  3253. (__pthread_rwlock_rdlock): Don't use non SH-3/4 instruction.
  3254. * sysdeps/unix/sysv/linux/sh/pthread_rwlock_wrlock.S:
  3255. (__pthread_rwlock_wrlock): Likewise.
  3256. * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedrdlock.S:
  3257. (pthread_rwlock_timedrdlock): Likewise.
  3258. * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedwrlock.S:
  3259. (pthread_rwlock_timedwrlock): Likewise.
  3260. * sysdeps/unix/sysv/linux/sh/pthread_rwlock_unlock.S:
  3261. (__pthread_rwlock_unlock): Likewise.
  3262. 2007-06-10 Kaz Kojima <kkojima@rr.iij4u.or.jp>
  3263. * sysdeps/sh/tcb-offsets.sym: Add PRIVATE_FUTEX.
  3264. * sysdeps/unix/sysv/linux/sh/bits/pthreadtypes.h: Include endian.h.
  3265. Split __flags into __flags, __shared, __pad1 and __pad2.
  3266. * sysdeps/unix/sysv/linux/sh/libc-lowlevellock.S: Use private
  3267. futexes if they are available.
  3268. * sysdeps/unix/sysv/linux/sh/lowlevellock.S: Adjust so that change
  3269. in libc-lowlevellock.S allow using private futexes.
  3270. * sysdeps/unix/sysv/linux/sh/lowlevellock.h: Define
  3271. FUTEX_PRIVATE_FLAG. Add additional parameter to lll_futex_wait,
  3272. lll_futex_timed_wait and lll_futex_wake. Change lll_futex_wait
  3273. to call lll_futex_timed_wait. Add lll_private_futex_wait,
  3274. lll_private_futex_timed_wait and lll_private_futex_wake.
  3275. (lll_robust_mutex_unlock): Fix typo.
  3276. * sysdeps/unix/sysv/linux/sh/pthread_barrier_wait.S: Use private
  3277. field in futex command setup.
  3278. * sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S: Use
  3279. COND_NWAITERS_SHIFT instead of COND_CLOCK_BITS.
  3280. * sysdeps/unix/sysv/linux/sh/pthread_cond_wait.S: Likewise.
  3281. * sysdeps/unix/sysv/linux/sh/pthread_once.S: Use private futexes
  3282. if they are available. Remove clear_once_control.
  3283. * sysdeps/unix/sysv/linux/sh/pthread_rwlock_rdlock.S: Use private
  3284. futexes if they are available.
  3285. * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedrdlock.S: Likewise.
  3286. * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedwrlock.S: Likewise.
  3287. * sysdeps/unix/sysv/linux/sh/pthread_rwlock_unlock.S: Likewise.
  3288. * sysdeps/unix/sysv/linux/sh/pthread_rwlock_wrlock.S: Likewise.
  3289. * sysdeps/unix/sysv/linux/sh/sem_post.S: Add private futex support.
  3290. Wake only when there are waiters.
  3291. * sysdeps/unix/sysv/linux/sh/sem_wait.S: Add private futex
  3292. support. Indicate that there are waiters. Remove unnecessary
  3293. extra cancellation test.
  3294. * sysdeps/unix/sysv/linux/sh/sem_timedwait.S: Likewise. Removed
  3295. left-over duplication of __sem_wait_cleanup.
  3296. 2007-06-07 Ulrich Drepper <drepper@redhat.com>
  3297. * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Add additional
  3298. parameter to lll_futex_wait, lll_futex_timed_wait, and
  3299. lll_futex_wake. Change lll_futex_wait to call lll_futex_timed_wait.
  3300. Add lll_private_futex_wait, lll_private_futex_timed_wait, and
  3301. lll_private_futex_wake.
  3302. * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Likewise.
  3303. * allocatestack.c: Adjust use of lll_futex_* macros.
  3304. * init.c: Likewise.
  3305. * lowlevellock.h: Likewise.
  3306. * pthread_barrier_wait.c: Likewise.
  3307. * pthread_cond_broadcast.c: Likewise.
  3308. * pthread_cond_destroy.c: Likewise.
  3309. * pthread_cond_signal.c: Likewise.
  3310. * pthread_cond_timedwait.c: Likewise.
  3311. * pthread_cond_wait.c: Likewise.
  3312. * pthread_create.c: Likewise.
  3313. * pthread_mutex_lock.c: Likewise.
  3314. * pthread_mutex_setprioceiling.c: Likewise.
  3315. * pthread_mutex_timedlock.c: Likewise.
  3316. * pthread_mutex_unlock.c: Likewise.
  3317. * pthread_rwlock_timedrdlock.c: Likewise.
  3318. * pthread_rwlock_timedwrlock.c: Likewise.
  3319. * pthread_rwlock_unlock.c: Likewise.
  3320. * sysdeps/alpha/tls.h: Likewise.
  3321. * sysdeps/i386/tls.h: Likewise.
  3322. * sysdeps/ia64/tls.h: Likewise.
  3323. * sysdeps/powerpc/tls.h: Likewise.
  3324. * sysdeps/pthread/aio_misc.h: Likewise.
  3325. * sysdeps/pthread/gai_misc.h: Likewise.
  3326. * sysdeps/s390/tls.h: Likewise.
  3327. * sysdeps/sh/tls.h: Likewise.
  3328. * sysdeps/sparc/tls.h: Likewise.
  3329. * sysdeps/unix/sysv/linux/fork.c: Likewise.
  3330. * sysdeps/unix/sysv/linux/lowlevellock.c: Likewise.
  3331. * sysdeps/unix/sysv/linux/lowlevelrobustlock.c: Likewise.
  3332. * sysdeps/unix/sysv/linux/rtld-lowlevel.h: Likewise.
  3333. * sysdeps/unix/sysv/linux/sem_post.c: Likewise.
  3334. * sysdeps/unix/sysv/linux/sem_timedwait.c: Likewise.
  3335. * sysdeps/unix/sysv/linux/sem_wait.c: Likewise.
  3336. * sysdeps/unix/sysv/linux/unregister-atfork.c: Likewise.
  3337. * sysdeps/unix/sysv/linux/sparc/pthread_once.c: Likewise.
  3338. * sysdeps/unix/sysv/linux/sparc/sparc32/pthread_barrier_wait.c:
  3339. Likewise.
  3340. * sysdeps/unix/sysv/linux/sparc/sparc32/sem_post.c: Likewise.
  3341. * sysdeps/x86_64/tls.h: Likewise.
  3342. 2007-05-29 Ulrich Drepper <drepper@redhat.com>
  3343. * pthread_getattr_np.c: No need to install a cancellation handler,
  3344. this is no cancellation point.
  3345. * pthread_getschedparam.c: Likewise.
  3346. * pthread_setschedparam.c: Likewise.
  3347. * pthread_setschedprio.c: Likewise.
  3348. * sysdeps/unix/sysv/linux/lowlevellock.c: Remove all traces of
  3349. lll_unlock_wake_cb.
  3350. * sysdeps/unix/sysv/linux/alpha/lowlevellock.h: Likewise.
  3351. * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Likewise.
  3352. * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S: Likewise.
  3353. * sysdeps/unix/sysv/linux/ia64/lowlevellock.h: Likewise.
  3354. * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Likewise.
  3355. * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
  3356. * sysdeps/unix/sysv/linux/sh/lowlevellock.S: Likewise.
  3357. * sysdeps/unix/sysv/linux/sh/lowlevellock.h: Likewise.
  3358. * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Likewise.
  3359. * sysdeps/unix/sysv/linux/sparc/sparc32/lowlevellock.c: Likewise.
  3360. * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
  3361. * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
  3362. * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S: Checking
  3363. whether there are more than one thread makes no sense here since
  3364. we only call the slow path if the locks are taken.
  3365. * sysdeps/unix/sysv/linux/x86_64/libc-lowlevellock.S: Likewise.
  3366. * sysdeps/unix/sysv/linux/internaltypes.h: Introduce
  3367. COND_NWAITERS_SHIFT.
  3368. * pthread_cond_destroy.c: Use COND_NWAITERS_SHIFT instead of
  3369. COND_CLOCK_BITS.
  3370. * pthread_cond_init.c: Likewise.
  3371. * pthread_cond_timedwait.c: Likewise.
  3372. * pthread_cond_wait.c: Likewise.
  3373. * pthread_condattr_getclock.c: Likewise.
  3374. * pthread_condattr_setclock.c: Likewise.
  3375. * sysdeps/unix/sysv/linux/lowlevelcond.sym: Likewise.
  3376. * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: Likewise.
  3377. * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Likewise.
  3378. * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: Likewise.
  3379. * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: Likewise.
  3380. 2007-05-28 Jakub Jelinek <jakub@redhat.com>
  3381. * sysdeps/unix/sysv/linux/powerpc/pthread_attr_setstacksize.c: Include
  3382. unistd.h.
  3383. * sysdeps/i386/tls.h (THREAD_GSCOPE_RESET_FLAG): Use explicit
  3384. insn suffix.
  3385. (THREAD_GSCOPE_GET_FLAG): Remove.
  3386. * sysdeps/x86_64/tls.h (THREAD_GSCOPE_GET_FLAG): Remove.
  3387. * allocatestack.c (__wait_lookup_done): Revert 2007-05-24
  3388. changes.
  3389. * sysdeps/powerpc/tls.h (tcbhead_t): Remove gscope_flag.
  3390. (THREAD_GSCOPE_GET_FLAG): Remove.
  3391. (THREAD_GSCOPE_RESET_FLAG): Use THREAD_SELF->header.gscope_flag
  3392. instead of THREAD_GSCOPE_GET_FLAG.
  3393. (THREAD_GSCOPE_SET_FLAG): Likewise. Add atomic_write_barrier after
  3394. it.
  3395. * sysdeps/s390/tls.h (THREAD_GSCOPE_FLAG_UNUSED,
  3396. THREAD_GSCOPE_FLAG_USED, THREAD_GSCOPE_FLAG_WAIT,
  3397. THREAD_GSCOPE_RESET_FLAG, THREAD_GSCOPE_SET_FLAG,
  3398. THREAD_GSCOPE_WAIT): Define.
  3399. * sysdeps/sparc/tls.h (THREAD_GSCOPE_FLAG_UNUSED,
  3400. THREAD_GSCOPE_FLAG_USED, THREAD_GSCOPE_FLAG_WAIT,
  3401. THREAD_GSCOPE_RESET_FLAG, THREAD_GSCOPE_SET_FLAG,
  3402. THREAD_GSCOPE_WAIT): Define.
  3403. * sysdeps/sh/tls.h (THREAD_GSCOPE_FLAG_UNUSED,
  3404. THREAD_GSCOPE_FLAG_USED, THREAD_GSCOPE_FLAG_WAIT,
  3405. THREAD_GSCOPE_RESET_FLAG, THREAD_GSCOPE_SET_FLAG,
  3406. THREAD_GSCOPE_WAIT): Define.
  3407. * sysdeps/ia64/tls.h (THREAD_GSCOPE_FLAG_UNUSED,
  3408. THREAD_GSCOPE_FLAG_USED, THREAD_GSCOPE_FLAG_WAIT,
  3409. THREAD_GSCOPE_RESET_FLAG, THREAD_GSCOPE_SET_FLAG,
  3410. THREAD_GSCOPE_WAIT): Define.
  3411. 2007-05-24 Richard Henderson <rth@redhat.com>
  3412. * descr.h (struct pthread): Add header.gscope_flag.
  3413. * sysdeps/alpha/tls.h (THREAD_GSCOPE_FLAG_UNUSED,
  3414. THREAD_GSCOPE_FLAG_USED, THREAD_GSCOPE_FLAG_WAIT,
  3415. THREAD_GSCOPE_RESET_FLAG, THREAD_GSCOPE_SET_FLAG,
  3416. THREAD_GSCOPE_WAIT): Define.
  3417. 2007-05-27 Ulrich Drepper <drepper@redhat.com>
  3418. * init.c: Make it compile with older kernel headers.
  3419. * tst-initializers1.c: Show through exit code which test failed.
  3420. * pthread_rwlock_init.c: Also initialize __shared field.
  3421. * sysdeps/unix/sysv/linux/i386/bits/pthreadtypes.h: Split __flags
  3422. element in rwlock structure into four byte elements. One of them is
  3423. the new __shared element.
  3424. * sysdeps/unix/sysv/linux/x86_64/bits/pthreadtypes.h [__WORDSIZE=32]:
  3425. Likewise.
  3426. [__WORDSIZE=64]: Renamed __pad1 element int rwlock structure to
  3427. __shared, adjust names of other padding elements.
  3428. * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: Likewise.
  3429. * sysdeps/pthread/pthread.h: Adjust rwlock initializers.
  3430. * sysdeps/unix/sysv/linux/lowlevelrwlock.sym: Add PSHARED.
  3431. * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Define
  3432. FUTEX_PRIVATE_FLAG.
  3433. * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_rdlock.S: Change main
  3434. futex to use private operations if possible.
  3435. * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedrdlock.S:
  3436. Likewise.
  3437. * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedwrlock.S:
  3438. Likewise.
  3439. * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_unlock.S: Likewise.
  3440. * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_wrlock.S: Likewise.
  3441. * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_rdlock.S: Likewise.
  3442. * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S:
  3443. Likewise.
  3444. * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S:
  3445. Likewise.
  3446. * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_unlock.S: Likewise.
  3447. * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_wrlock.S: Likewise.
  3448. 2007-05-26 Ulrich Drepper <drepper@redhat.com>
  3449. * pthreadP.h (PTHREAD_RWLOCK_PREFER_READER_P): Define.
  3450. * pthread_rwlock_rdlock.c: Use PTHREAD_RWLOCK_PREFER_READER_P.
  3451. * pthread_rwlock_timedrdlock.c: Likewise.
  3452. * pthread_rwlock_tryrdlock.c: Likewise.
  3453. * sysdeps/unix/sysv/linux/x86_64/sem_trywait.S (sem_trywait): Tiny
  3454. optimization.
  3455. * sysdeps/unix/sysv/linux/sem_wait.c: Add missing break.
  3456. * sysdeps/unix/sysv/linux/sem_timedwait.c: Removed left-over
  3457. duplication of __sem_wait_cleanup.
  3458. * allocatestack.c: Revert last change.
  3459. * init.c: Likewise.
  3460. * sysdeps/i386/tls.h: Likewise.
  3461. * sysdeps/x86_64/tls.h: Likewise.
  3462. * descr.h [TLS_DTV_AT_TP] (struct pthread): Add private_futex field to
  3463. header structure.
  3464. * sysdeps/powerpc/tcb-offsets.sym: Add PRIVATE_FUTEX_OFFSET.
  3465. * sysdeps/unix/sysv/linux/internaltypes.h (struct pthread_barrier):
  3466. Add private field.
  3467. * sysdeps/unix/sysv/linux/lowlevelbarrier.sym: Add PRIVATE definition.
  3468. * pthread_barrier_init.c: Set private flag if pshared and private
  3469. futexes are supported.
  3470. * sysdeps/unix/sysv/linux/i386/i486/pthread_barrier_wait.S: Use
  3471. private field in futex command setup.
  3472. * sysdeps/unix/sysv/linux/x86_64/pthread_barrier_wait.S: Likewise.
  3473. 2007-05-25 Ulrich Drepper <drepper@redhat.com>
  3474. * sysdeps/unix/sysv/linux/i386/i486/sem_post.S: Add private futex
  3475. support.
  3476. * sysdeps/unix/sysv/linux/i386/i486/sem_timedwait.S: Likewise.
  3477. * sysdeps/unix/sysv/linux/i386/i486/sem_wait.S: Likewise.
  3478. * sysdeps/unix/sysv/linux/x86_64/sem_post.S: Likewise.
  3479. * sysdeps/unix/sysv/linux/x86_64/sem_timedwait.S: Likewise.
  3480. * sysdeps/unix/sysv/linux/x86_64/sem_wait.S: Likewise.
  3481. * semaphoreP.h: Declare __old_sem_init and __old_sem_wait.
  3482. * sem_init.c (__new_sem_init): Rewrite to initialize all three
  3483. fields in the structure.
  3484. (__old_sem_init): New function.
  3485. * sem_open.c: Initialize all fields of the structure.
  3486. * sem_getvalue.c: Adjust for renamed element.
  3487. * sysdeps/unix/sysv/linux/Makefile [subdir=nptl]
  3488. (gen-as-const-headers): Add structsem.sym.
  3489. * sysdeps/unix/sysv/linux/structsem.sym: New file.
  3490. * sysdeps/unix/sysv/linux/internaltypes.h: Rename struct sem to
  3491. struct new_sem. Add struct old_sem.
  3492. * sysdeps/unix/sysv/linux/sem_post.c: Wake only when there are waiters.
  3493. * sysdeps/unix/sysv/linux/i386/i486/sem_post.S: Likewise.
  3494. * sysdeps/unix/sysv/linux/x86_64/sem_post.S: Likewise.
  3495. * sysdeps/unix/sysv/linux/sem_wait.c: Indicate that there are waiters.
  3496. * sysdeps/unix/sysv/linux/i386/i486/sem_wait.S: Likewise.
  3497. * sysdeps/unix/sysv/linux/x86_64/sem_wait.S: Likewise.
  3498. * sysdeps/unix/sysv/linux/sem_timedwait.c: Likewise.
  3499. * sysdeps/unix/sysv/linux/i386/i486/sem_timedwait.S: Likewise.
  3500. * sysdeps/unix/sysv/linux/x86_64/sem_timedwait.S: Likewise.
  3501. * Makefile (tests): Add tst-sem10, tst-sem11, tst-sem12.
  3502. * tst-sem10.c: New file.
  3503. * tst-sem11.c: New file.
  3504. * tst-sem12.c: New file.
  3505. * tst-typesizes.c: Test struct new_sem and struct old_sem instead
  3506. of struct sem.
  3507. 2007-05-25 Ulrich Drepper <drepper@redhat.com>
  3508. Jakub Jelinek <jakub@redhat.com>
  3509. * sysdeps/unix/sysv/linux/i386/i486/sem_timedwait.S (sem_timedwait):
  3510. Move __pthread_enable_asynccancel right before futex syscall.
  3511. * sysdeps/unix/sysv/linux/x86_64/sem_timedwait.S (sem_timedwait):
  3512. Likewise.
  3513. 2007-05-24 Jakub Jelinek <jakub@redhat.com>
  3514. * sysdeps/i386/tls.h (THREAD_SET_PRIVATE_FUTEX,
  3515. THREAD_COPY_PRIVATE_FUTEX): Define.
  3516. * sysdeps/x86_64/tls.h (THREAD_SET_PRIVATE_FUTEX,
  3517. THREAD_COPY_PRIVATE_FUTEX): Define.
  3518. * allocatestack.c (allocate_stack): Use THREAD_COPY_PRIVATE_FUTEX.
  3519. * init.c (__pthread_initialize_minimal_internal): Use
  3520. THREAD_SET_PRIVATE_FUTEX.
  3521. * sysdeps/powerpc/tls.h (tcbhead_t): Add gscope_flag.
  3522. (THREAD_GSCOPE_FLAG_UNUSED, THREAD_GSCOPE_FLAG_USED,
  3523. THREAD_GSCOPE_FLAG_WAIT): Define.
  3524. (THREAD_GSCOPE_GET_FLAG, THREAD_GSCOPE_SET_FLAG,
  3525. THREAD_GSCOPE_RESET_FLAG, THREAD_GSCOPE_WAIT): Define.
  3526. * sysdeps/i386/tls.h (THREAD_GSCOPE_WAIT): Don't use
  3527. PTR_DEMANGLE.
  3528. (THREAD_GSCOPE_GET_FLAG): Define.
  3529. * sysdeps/x86_64/tls.h (THREAD_GSCOPE_GET_FLAG): Define.
  3530. * allocatestack.c (__wait_lookup_done): Use THREAD_GSCOPE_GET_FLAG
  3531. instead of ->header.gscope_flag directly.
  3532. 2007-05-23 Ulrich Drepper <drepper@redhat.com>
  3533. * init.c (__pthread_initialize_minimal_internal): Check whether
  3534. private futexes are available.
  3535. * allocatestack.c (allocate_stack): Copy private_futex field from
  3536. current thread into the new stack.
  3537. * sysdeps/unix/sysv/linux/x86_64/libc-lowlevellock.S: Use private
  3538. futexes if they are available.
  3539. * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S: Likewise
  3540. * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Adjust so that change
  3541. in libc-lowlevellock.S allow using private futexes.
  3542. * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S: Likewise.
  3543. * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Define
  3544. FUTEX_PRIVATE_FLAG.
  3545. * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Likewise.
  3546. * sysdeps/unix/sysv/linux/x86_64/pthread_once.S: Use private futexes
  3547. if they are available.
  3548. * sysdeps/unix/sysv/linux/i386/pthread_once.S: Likewise.
  3549. * sysdeps/x86_64/tcb-offsets.sym: Add PRIVATE_FUTEX.
  3550. * sysdeps/i386/tcb-offsets.sym: Likewise.
  3551. * sysdeps/x86_64/tls.h (tcbhead_t): Add private_futex field.
  3552. * sysdeps/i386/tls.h (tcbhead_t): Likewise.
  3553. 2007-05-21 Ulrich Drepper <drepper@redhat.com>
  3554. * sysdeps/pthread/pthread-functions.h (struct pthread_functions):
  3555. Remove ptr_wait_lookup_done again.
  3556. * init.c (pthread_functions): Don't add .ptr_wait_lookup_done here.
  3557. (__pthread_initialize_minimal_internal): Initialize
  3558. _dl_wait_lookup_done pointer in _rtld_global directly.
  3559. * sysdeps/unix/sysv/linux/libc_pthread_init.c (__libc_pthread_init):
  3560. Remove code to code _dl_wait_lookup_done.
  3561. * sysdeps/x86_64/tls.h (THREAD_GSCOPE_WAIT): The pointer is not
  3562. encrypted for now.
  3563. 2007-05-21 Jakub Jelinek <jakub@redhat.com>
  3564. * tst-robust9.c (do_test): Don't fail if ENABLE_PI and
  3565. pthread_mutex_init failed with ENOTSUP.
  3566. 2007-05-19 Ulrich Drepper <drepper@redhat.com>
  3567. * allocatestack.c (__wait_lookup_done): New function.
  3568. * sysdeps/pthread/pthread-functions.h (struct pthread_functions):
  3569. Add ptr_wait_lookup_done.
  3570. * init.c (pthread_functions): Initialize .ptr_wait_lookup_done.
  3571. * pthreadP.h: Declare __wait_lookup_done.
  3572. * sysdeps/i386/tls.h (tcbhead_t): Add gscope_flag.
  3573. Define macros to implement reference handling of global scope.
  3574. * sysdeps/x86_64/tls.h: Likewise.
  3575. * sysdeps/unix/sysv/linux/libc_pthread_init.c (__libc_pthread_init):
  3576. Initialize GL(dl_wait_lookup_done).
  3577. 2007-05-17 Ulrich Drepper <drepper@redhat.com>
  3578. [BZ #4512]
  3579. * pthread_mutex_lock.c: Preserve FUTEX_WAITERS bit when dead owner
  3580. is detected.
  3581. * pthread_mutex_timedlock.c: Likewise.
  3582. * pthread_mutex_trylock.c: Likewise.
  3583. Patch in part by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
  3584. * Makefile (tests): Add tst-robust9 and tst-robustpi9.
  3585. * tst-robust9.c: New file.
  3586. * tst-robustpi9.c: New file.
  3587. * sysdeps/unix/sysv/linux/sem_wait.c (__new_sem_wait): Remove
  3588. unnecessary extra cancellation test.
  3589. 2007-05-14 Ulrich Drepper <drepper@redhat.com>
  3590. * sysdeps/unix/sysv/linux/x86_64/sem_wait.S: Remove unnecessary
  3591. extra cancellation test.
  3592. * sysdeps/unix/sysv/linux/x86_64/sem_timedwait.S: Likewise.
  3593. 2007-05-10 Ulrich Drepper <drepper@redhat.com>
  3594. * descr.h (struct pthread): Rearrange members to fill hole in
  3595. 64-bit layout.
  3596. * sysdeps/unix/sysv/linux/pthread_setaffinity.c
  3597. (__pthread_setaffinity_new): If syscall was successful and
  3598. RESET_VGETCPU_CACHE is defined, use it before returning.
  3599. * sysdeps/unix/sysv/linux/x86_64/pthread_setaffinity.c: New file.
  3600. 2007-05-10 Jakub Jelinek <jakub@redhat.com>
  3601. [BZ #4455]
  3602. * tst-align2.c: Include stackinfo.h.
  3603. * tst-getpid1.c: Likewise.
  3604. 2007-05-02 Carlos O'Donell <carlos@systemhalted.org>
  3605. [BZ #4455]
  3606. * tst-align2.c (do_test): Add _STACK_GROWS_UP case.
  3607. * tst-getpid1.c (do_test): Likewise.
  3608. [BZ #4456]
  3609. * allocatestack.c (change_stack_perm): Add _STACK_GROWS_UP case.
  3610. (allocate_stack): Likewise.
  3611. 2007-05-07 Ulrich Drepper <drepper@redhat.com>
  3612. * sysdeps/unix/sysv/linux/lowlevelrobustlock.c
  3613. (__lll_robust_lock_wait): Fix race caused by reloading of futex value.
  3614. (__lll_robust_timedlock_wait): Likewise.
  3615. Reported by Alexey Kuznetsov <kuznet@ms2.inr.ac.ru>.
  3616. 2007-05-06 Mike Frysinger <vapier@gentoo.org>
  3617. [BZ #4465]
  3618. * tst-cancel-wrappers.sh: Set C["fdatasync"] to 1.
  3619. * tst-cancel4.c (tf_fdatasync): New test.
  3620. 2007-04-27 Ulrich Drepper <drepper@redhat.com>
  3621. [BZ #4392]
  3622. * pthread_mutex_trylock.c (__pthread_mutex_trylock): Treat error
  3623. check mutexes like normal mutexes.
  3624. [BZ #4306]
  3625. * sysdeps/unix/sysv/linux/timer_create.c (timer_create):
  3626. Initialize the whole sigevent structure to appease valgrind.
  3627. 2007-04-25 Ulrich Drepper <drepper@redhat.com>
  3628. * sysdeps/x86_64/tls.h (tcbhead_t): Add vgetcpu_cache.
  3629. * sysdeps/x86_64/tcb-offsets.sym: Add VGETCPU_CACHE_OFFSET.
  3630. 2007-04-06 Ulrich Drepper <drepper@redhat.com>
  3631. * tst-locale1.c: Avoid warnings.
  3632. * tst-locale2.c: Likewise.
  3633. 2007-03-19 Steven Munroe <sjmunroe@us.ibm.com>
  3634. * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h
  3635. (__lll_robust_trylock): Add MUTEX_HINT_ACQ to lwarx instruction.
  3636. 2007-03-16 Jakub Jelinek <jakub@redhat.com>
  3637. * sysdeps/pthread/bits/libc-lock.h: Use __extern_inline and
  3638. __extern_always_inline where appropriate.
  3639. * sysdeps/pthread/pthread.h: Likewise.
  3640. 2007-03-13 Richard Henderson <rth@redhat.com>
  3641. * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h (PSEUDO): Use two
  3642. separate cfi regions for the two subsections.
  3643. 2007-02-25 Ulrich Drepper <drepper@redhat.com>
  3644. * sysdeps/unix/sysv/linux/fork.c (__libc_fork): Reset refcntr in
  3645. new thread, don't just decrement it.
  3646. Patch by Suzuki K P <suzuki@in.ibm.com>.
  3647. 2007-02-21 Ulrich Drepper <drepper@redhat.com>
  3648. * sysdeps/pthread/pthread-functions.h: Correct last patch, correct
  3649. PTHFCT_CALL definition.
  3650. 2007-02-18 Ulrich Drepper <drepper@redhat.com>
  3651. * sysdeps/pthread/pthread-functions.h: If PTR_DEMANGLE is not
  3652. available, don't use it.
  3653. 2007-02-09 Jakub Jelinek <jakub@redhat.com>
  3654. * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S
  3655. (__lll_mutex_timedlock_wait): Use correct pointer when we don't
  3656. call into the kernel to delay.
  3657. 2007-01-18 Ulrich Drepper <drepper@redhat.com>
  3658. * tst-initializers1.c: We want to test the initializers as seen
  3659. outside of libc, so undefined _LIBC.
  3660. * pthread_join.c (cleanup): Avoid warning.
  3661. 2007-01-17 Ulrich Drepper <drepper@redhat.com>
  3662. * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S
  3663. (__lll_timedwait_tid): Add unwind info.
  3664. * sysdeps/unix/sysv/linux/libc_pthread_init.c: Don't just copy the
  3665. function table, mangle the pointers.
  3666. * sysdeps/pthread/pthread-functions.h: Define PTHFCT_CALL.
  3667. * forward.c: Use PTHFCT_CALL and __libc_pthread_functions_init.
  3668. * sysdeps/pthread/bits/libc-lock.h: When using __libc_pthread_functions
  3669. demangle pointers before use.
  3670. * sysdeps/unix/sysv/linux/s390/jmp-unwind.c: Use PTHFCT_CALL to
  3671. demangle pointer.
  3672. * sysdeps/unix/sysv/linux/jmp-unwind.c: Likewise.
  3673. * sysdeps/pthread/setxid.h: Likewise.
  3674. 2007-01-12 Ulrich Drepper <drepper@redhat.com>
  3675. * tst-rwlock7.c: Show some more information in case of correct
  3676. behavior.
  3677. 2007-01-11 Ulrich Drepper <drepper@redhat.com>
  3678. * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h
  3679. (lll_futex_timed_wait): Undo part of last change, don't negate
  3680. return value.
  3681. 2007-01-10 Ulrich Drepper <drepper@redhat.com>
  3682. * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Cleanups. Define
  3683. FUTEX_CMP_REQUEUE and lll_futex_requeue.
  3684. 2006-12-28 David S. Miller <davem@davemloft.net>
  3685. * shlib-versions: Fix sparc64 linux target specification.
  3686. 2007-01-10 Jakub Jelinek <jakub@redhat.com>
  3687. * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/pthread_barrier_wait.c:
  3688. Adjust include path for pthread_barrier_wait.c move.
  3689. 2006-12-21 Jakub Jelinek <jakub@redhat.com>
  3690. * sysdeps/unix/sysv/linux/pthread_kill.c (pthread_kill): Make sure
  3691. tid isn't reread from pd->tid in between ESRCH test and the syscall.
  3692. 2006-12-06 Jakub Jelinek <jakub@redhat.com>
  3693. * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h (PSEUDO): Handle
  3694. 6 argument cancellable syscalls.
  3695. (STM_6, LM_6, LR7_0, LR7_1, LR7_2, LR7_3, LR7_4, LR7_5, LR7_6): Define.
  3696. * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h (PSEUDO): Handle
  3697. 6 argument cancellable syscalls.
  3698. (STM_6, LM_6, LR7_0, LR7_1, LR7_2, LR7_3, LR7_4, LR7_5, LR7_6): Define.
  3699. 2006-12-09 Ulrich Drepper <drepper@redhat.com>
  3700. * sysdeps/unix/sysv/linux/rtld-lowlevel.h
  3701. (__rtld_mrlock_initialize): Add missing closing parenthesis.
  3702. 2006-10-30 Jakub Jelinek <jakub@redhat.com>
  3703. * sysdeps/ia64/pthread_spin_unlock.c (pthread_spin_unlock): Use
  3704. __sync_lock_release instead of __sync_lock_release_si.
  3705. 2006-10-29 Jakub Jelinek <jakub@redhat.com>
  3706. * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (RTLD_SINGLE_THREAD_P):
  3707. Define.
  3708. (SINGLE_THREAD_P): Define to 1 if IS_IN_rtld.
  3709. * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: Likewise.
  3710. * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h: Likewise.
  3711. * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: Likewise.
  3712. * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: Likewise.
  3713. * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: Likewise.
  3714. * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h: Likewise.
  3715. * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Likewise.
  3716. * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Likewise.
  3717. * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Likewise.
  3718. * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Likewise.
  3719. 2006-10-27 Ulrich Drepper <drepper@redhat.com>
  3720. * sysdeps/pthread/pthread_barrier_wait.c: Move to...
  3721. * pthread_barrier_wait.c: ...here.
  3722. * sysdeps/pthread/pthread_cond_broadcast.c: Move to...
  3723. * pthread_cond_broadcast.c: ...here.
  3724. * sysdeps/pthread/pthread_cond_signal.c: Move to...
  3725. * pthread_cond_signal.c: ...here.
  3726. * sysdeps/pthread/pthread_cond_timedwait.c: Move to...
  3727. * pthread_cond_timedwait.c: ...here.
  3728. * sysdeps/pthread/pthread_cond_wait.c: Move to...
  3729. * pthread_cond_wait.c: ...here.
  3730. * sysdeps/pthread/pthread_once.c: Move to...
  3731. * pthread_once.c: ...here.
  3732. * sysdeps/pthread/pthread_rwlock_rdlock.c: Move to...
  3733. * pthread_rwlock_rdlock.c: ...here.
  3734. * sysdeps/pthread/pthread_rwlock_timedrdlock.c: Move to...
  3735. * pthread_rwlock_timedrdlock.c: ...here.
  3736. * sysdeps/pthread/pthread_rwlock_timedwrlock.c: Move to...
  3737. * pthread_rwlock_timedwrlock.c: ...here.
  3738. * sysdeps/pthread/pthread_rwlock_unlock.c: Move to...
  3739. * pthread_rwlock_unlock.c: ...here.
  3740. * sysdeps/pthread/pthread_rwlock_wrlock.c: Move to...
  3741. * pthread_rwlock_wrlock.c: ...here.
  3742. * sysdeps/pthread/pthread_spin_destroy.c: Move to...
  3743. * pthread_spin_destroy.c: ...here.
  3744. * sysdeps/pthread/pthread_spin_init.c: Move to...
  3745. * pthread_spin_init.c: ...here.
  3746. * sysdeps/pthread/pthread_spin_unlock.c: Move to...
  3747. * pthread_spin_unlock.c: ...here.
  3748. * sysdeps/pthread/pthread_getcpuclockid.c: Move to...
  3749. * pthread_getcpuclockid.c: ...here.
  3750. * init.c: USE_TLS support is now always enabled.
  3751. * tst-tls5.h: Likewise.
  3752. * sysdeps/alpha/tls.h: Likewise.
  3753. * sysdeps/i386/tls.h: Likewise.
  3754. * sysdeps/ia64/tls.h: Likewise.
  3755. * sysdeps/powerpc/tls.h: Likewise.
  3756. * sysdeps/s390/tls.h: Likewise.
  3757. * sysdeps/sh/tls.h: Likewise.
  3758. * sysdeps/sparc/tls.h: Likewise.
  3759. * sysdeps/x86_64/tls.h: Likewise.
  3760. 2006-10-27 Jakub Jelinek <jakub@redhat.com>
  3761. * sysdeps/unix/sysv/linux/rtld-lowlevel.h (__rtld_mrlock_lock,
  3762. __rtld_mrlock_change): Update oldval if atomic compare and exchange
  3763. failed.
  3764. * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h (SINGLE_THREAD_P):
  3765. Define to THREAD_SELF->header.multiple_threads.
  3766. * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (SINGLE_THREAD_P):
  3767. Likewise.
  3768. * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (SINGLE_THREAD_P):
  3769. Likewise.
  3770. * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h
  3771. (SINGLE_THREAD_P): Likewise.
  3772. * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h
  3773. (SINGLE_THREAD_P): Likewise.
  3774. * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h
  3775. (SINGLE_THREAD_P): Likewise.
  3776. * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h
  3777. (SINGLE_THREAD_P): Likewise.
  3778. * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h (SINGLE_THREAD_P):
  3779. Likewise.
  3780. * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h
  3781. (SINGLE_THREAD_P): Likewise.
  3782. * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h
  3783. (SINGLE_THREAD_P): Likewise.
  3784. * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h (SINGLE_THREAD_P):
  3785. Likewise.
  3786. 2006-10-26 Jakub Jelinek <jakub@redhat.com>
  3787. * pthread_attr_setstacksize.c (NEW_VERNUM): Define to GLIBC_2_3_3
  3788. by default rather than 2_3_3.
  3789. 2006-10-17 Jakub Jelinek <jakub@redhat.com>
  3790. * sysdeps/unix/sysv/linux/rtld-lowlevel.h (__rtld_mrlock_lock,
  3791. __rtld_mrlock_unlock, __rtld_mrlock_change, __rtld_mrlock_done): Use
  3792. atomic_* instead of catomic_* macros.
  3793. 2006-10-12 Ulrich Drepper <drepper@redhat.com>
  3794. [BZ #3285]
  3795. * sysdeps/unix/sysv/linux/bits/local_lim.h: Add SEM_VALUE_MAX.
  3796. * sysdeps/unix/sysv/linux/powerpc/bits/local_lim.h: Likewise.
  3797. * sysdeps/unix/sysv/linux/sparc/bits/local_lim.h: Likewise.
  3798. * sysdeps/unix/sysv/linux/alpha/bits/local_lim.h: Likewise.
  3799. * sysdeps/unix/sysv/linux/ia64/bits/local_lim.h: Likewise.
  3800. * sysdeps/unix/sysv/linux/i386/bits/semaphore.h: Remove SEM_VALUE_MAX.
  3801. * sysdeps/unix/sysv/linux/powerpc/bits/semaphore.h: Likewise.
  3802. * sysdeps/unix/sysv/linux/x86_64/bits/semaphore.h: Likewise.
  3803. * sysdeps/unix/sysv/linux/sparc/bits/semaphore.h: Likewise.
  3804. * sysdeps/unix/sysv/linux/alpha/bits/semaphore.h: Likewise.
  3805. * sysdeps/unix/sysv/linux/sh/bits/semaphore.h: Likewise.
  3806. * sysdeps/unix/sysv/linux/ia64/bits/semaphore.h: Likewise.
  3807. * sysdeps/unix/sysv/linux/s390/bits/semaphore.h: Likewise.
  3808. 2006-10-11 Ulrich Drepper <drepper@redhat.com>
  3809. * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: Add support for
  3810. cancelable syscalls with six parameters.
  3811. * sysdeps/unix/sysv/linux/rtld-lowlevel.h: Use catomic_*
  3812. operations instead of atomic_*.
  3813. 2006-10-09 Ulrich Drepper <drepper@redhat.com>
  3814. * sysdeps/unix/sysv/linux/rtld-lowlevel.h: New file..
  3815. 2006-10-07 Ulrich Drepper <drepper@redhat.com>
  3816. * sysdeps/unix/sysv/linux/powerpc/bits/local_lim.h: New file.
  3817. * sysdeps/unix/sysv/linux/powerpc/pthread_attr_setstack.c: New file.
  3818. * sysdeps/unix/sysv/linux/powerpc/pthread_attr_setstacksize.c:
  3819. New file.
  3820. * pthread_attr_setstack.c: Allow overwriting the version number of the
  3821. new symbol.
  3822. * pthread_attr_setstacksize.c: Likewise.
  3823. (__old_pthread_attr_setstacksize): If STACKSIZE_ADJUST is defined use
  3824. it.
  3825. * sysdeps/unix/sysv/linux/powerpc/Versions (libpthread): Add
  3826. pthread_attr_setstack and pthread_attr_setstacksize to GLIBC_2.6.
  3827. 2006-09-24 Ulrich Drepper <drepper@redhat.com>
  3828. [BZ #3251]
  3829. * descr.h (ENQUEUE_MUTEX_BOTH): Add cast to avoid warning.
  3830. Patch by Petr Baudiš.
  3831. 2006-09-18 Jakub Jelinek <jakub@redhat.com>
  3832. * tst-kill4.c (do_test): Explicitly set tf thread's stack size.
  3833. * tst-cancel2.c (tf): Loop as long as something was written.
  3834. 2006-09-12 Kaz Kojima <kkojima@rr.iij4u.or.jp>
  3835. * sysdeps/unix/sysv/linux/sh/pthread_cond_broadcast.S: For PI
  3836. mutexes wake all mutexes.
  3837. * sysdeps/unix/sysv/linux/sh/pthread_cond_wait.S: Don't increment
  3838. WAKEUP_SEQ if this would increase the value beyond TOTAL_SEQ.
  3839. * sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S: Likewise.
  3840. 2006-09-12 Ulrich Drepper <drepper@redhat.com>
  3841. * tst-cond22.c (tf): Slight changes to the pthread_cond_wait use
  3842. to guarantee the thread is always canceled.
  3843. 2006-09-08 Jakub Jelinek <jakub@redhat.com>
  3844. * tst-cond22.c: Include pthread.h instead of pthreadP.h.
  3845. Include stdlib.h.
  3846. * sysdeps/pthread/pthread_cond_wait.c (__condvar_cleanup): Only
  3847. increase FUTEX if increasing WAKEUP_SEQ. Fix comment typo.
  3848. * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Likewise.
  3849. * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: Likewise.
  3850. * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: Likewise.
  3851. 2006-09-08 Ulrich Drepper <drepper@redhat.com>
  3852. [BZ #3123]
  3853. * sysdeps/pthread/pthread_cond_wait.c (__condvar_cleanup): Don't
  3854. increment WAKEUP_SEQ if this would increase the value beyond TOTAL_SEQ.
  3855. * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Likewise.
  3856. * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: Likewise.
  3857. * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: Likewise.
  3858. * Makefile (tests): Add tst-cond22.
  3859. * tst-cond22.c: New file.
  3860. 2006-09-05 Ulrich Drepper <drepper@redhat.com>
  3861. [BZ #3124]
  3862. * descr.h (struct pthread): Add parent_cancelhandling.
  3863. * sysdeps/pthread/createthread.c (create_thread): Pass parent
  3864. cancelhandling value to child.
  3865. * pthread_create.c (start_thread): If parent thread was canceled
  3866. reset the SIGCANCEL mask.
  3867. * Makefile (tests): Add tst-cancel25.
  3868. * tst-cancel25.c: New file.
  3869. 2006-09-05 Jakub Jelinek <jakub@redhat.com>
  3870. Ulrich Drepper <drepper@redhat.com>
  3871. * sysdeps/pthread/gai_misc.h (GAI_MISC_NOTIFY): Don't decrement
  3872. counterp if it is already zero.
  3873. * sysdeps/pthread/aio_misc.h (AIO_MISC_NOTIFY): Likewise..
  3874. 2006-03-04 Jakub Jelinek <jakub@redhat.com>
  3875. Roland McGrath <roland@redhat.com>
  3876. * sysdeps/unix/sysv/linux/i386/lowlevellock.h
  3877. (LLL_STUB_UNWIND_INFO_START, LLL_STUB_UNWIND_INFO_END,
  3878. LLL_STUB_UNWIND_INFO_3, LLL_STUB_UNWIND_INFO_4): Define.
  3879. (lll_mutex_lock, lll_robust_mutex_lock, lll_mutex_cond_lock,
  3880. lll_robust_mutex_cond_lock, lll_mutex_timedlock,
  3881. lll_robust_mutex_timedlock, lll_mutex_unlock,
  3882. lll_robust_mutex_unlock, lll_lock, lll_unlock): Use them.
  3883. Add _L_*_ symbols around the subsection.
  3884. * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S: Add unwind info.
  3885. * sysdeps/unix/sysv/linux/i386/i486/lowlevelrobustlock.S: Likewise.
  3886. 2006-03-03 Jakub Jelinek <jakub@redhat.com>
  3887. Roland McGrath <roland@redhat.com>
  3888. * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h
  3889. (LLL_STUB_UNWIND_INFO_START, LLL_STUB_UNWIND_INFO_END,
  3890. LLL_STUB_UNWIND_INFO_5, LLL_STUB_UNWIND_INFO_6): Define.
  3891. (lll_mutex_lock, lll_robust_mutex_lock, lll_mutex_cond_lock,
  3892. lll_robust_mutex_cond_lock, lll_mutex_timedlock,
  3893. lll_robust_mutex_timedlock, lll_mutex_unlock,
  3894. lll_robust_mutex_unlock, lll_lock, lll_unlock): Use them.
  3895. Add _L_*_ symbols around the subsection.
  3896. * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Add unwind info.
  3897. * sysdeps/unix/sysv/linux/x86_64/lowlevelrobustlock.S: Likewise.
  3898. 2006-08-31 Ulrich Drepper <drepper@redhat.com>
  3899. * pthread_rwlock_trywrlock.c (__pthread_rwlock_trywrlock): Undo last
  3900. change because it can disturb too much existing code. If real hard
  3901. reader preference is needed we'll introduce another type.
  3902. * sysdeps/pthread/pthread_rwlock_timedwrlock.c
  3903. (pthread_rwlock_timedwrlock): Likewise.
  3904. * sysdeps/pthread/pthread_rwlock_wrlock.c (__pthread_rwlock_wrlock):
  3905. Likewise.
  3906. 2006-08-30 Ulrich Drepper <drepper@redhat.com>
  3907. * pthread_rwlock_trywrlock.c (__pthread_rwlock_trywrlock): Respect
  3908. reader preference.
  3909. * sysdeps/pthread/pthread_rwlock_timedwrlock.c
  3910. (pthread_rwlock_timedwrlock): Likewise.
  3911. * sysdeps/pthread/pthread_rwlock_wrlock.c (__pthread_rwlock_wrlock):
  3912. Likewise.
  3913. 2006-08-25 Jakub Jelinek <jakub@redhat.com>
  3914. * sysdeps/unix/sysv/linux/libc_pthread_init.c (freeres_libpthread):
  3915. Only define ifdef SHARED.
  3916. 2006-08-23 Ulrich Drepper <drepper@redhat.com>
  3917. * allocatestack.c (queue_stack): Move freeing of surplus stacks to...
  3918. (free_stacks): ...here.
  3919. (__free_stack_cache): New function.
  3920. * pthreadP.h: Declare __free_stack_cache.
  3921. * sysdeps/pthread/pthread-functions.h (pthread_functions): Add
  3922. ptr_freeres.
  3923. * init.c (pthread_functions): Initialize ptr_freeres.
  3924. * sysdeps/unix/sysv/linux/libc_pthread_init.c (freeres_libptread):
  3925. New freeres function.
  3926. 2006-07-30 Joseph S. Myers <joseph@codesourcery.com>
  3927. [BZ #3018]
  3928. * Makefile (extra-objs): Add modules to extra-test-objs instead.
  3929. 2006-08-20 Ulrich Drepper <drepper@redhat.com>
  3930. * sysdeps/unix/sysv/linux/bits/posix_opt.h: Define
  3931. _XOPEN_REALTIME_THREADS.
  3932. 2006-08-15 Jakub Jelinek <jakub@redhat.com>
  3933. * sysdeps/unix/sysv/linux/clock_settime.c (INTERNAL_VSYSCALL): Use
  3934. HAVE_CLOCK_GETRES_VSYSCALL as guard macro rather than
  3935. HAVE_CLOCK_GETTIME_VSYSCALL.
  3936. (maybe_syscall_settime_cpu): Use plain INTERNAL_VSYSCALL here.
  3937. 2006-08-14 Jakub Jelinek <jakub@redhat.com>
  3938. * sysdeps/unix/sysv/linux/bits/posix_opt.h
  3939. (_POSIX_THREAD_PRIO_PROTECT): Define to 200112L.
  3940. * descr.h (struct priority_protection_data): New type.
  3941. (struct pthread): Add tpp field.
  3942. * pthreadP.h (PTHREAD_MUTEX_PP_NORMAL_NP,
  3943. PTHREAD_MUTEX_PP_RECURSIVE_NP, PTHREAD_MUTEX_PP_ERRORCHECK_NP,
  3944. PTHREAD_MUTEX_PP_ADAPTIVE_NP): New enum values.
  3945. * pthread_mutex_init.c (__pthread_mutex_init): Handle non-robust
  3946. TPP mutexes.
  3947. * pthread_mutex_lock.c (__pthread_mutex_lock): Handle TPP mutexes.
  3948. * pthread_mutex_trylock.c (__pthread_mutex_trylock): Likewise.
  3949. * pthread_mutex_timedlock.c (pthread_mutex_timedlock): Likewise.
  3950. * pthread_mutex_unlock.c (__pthread_mutex_unlock_usercnt): Likewise.
  3951. * tpp.c: New file.
  3952. * pthread_setschedparam.c (__pthread_setschedparam): Handle priority
  3953. boosted by TPP.
  3954. * pthread_setschedprio.c (pthread_setschedprio): Likewise.
  3955. * pthread_mutexattr_getprioceiling.c
  3956. (pthread_mutexattr_getprioceiling): If ceiling is 0, ensure it is
  3957. in the SCHED_FIFO priority range.
  3958. * pthread_mutexattr_setprioceiling.c
  3959. (pthread_mutexattr_setprioceiling): Fix prioceiling validation.
  3960. * pthread_mutex_getprioceiling.c (pthread_mutex_getprioceiling): Fail
  3961. if mutex is not TPP. Ceiling is now in __data.__lock.
  3962. * pthread_mutex_setprioceiling.c: Include stdbool.h.
  3963. (pthread_mutex_setprioceiling): Fix prioceiling validation. Ceiling
  3964. is now in __data.__lock. Add locking.
  3965. * pthread_create.c (__free_tcb): Free pd->tpp structure.
  3966. * Makefile (libpthread-routines): Add tpp.
  3967. (xtests): Add tst-mutexpp1, tst-mutexpp6 and tst-mutexpp10.
  3968. * tst-tpp.h: New file.
  3969. * tst-mutexpp1.c: New file.
  3970. * tst-mutexpp6.c: New file.
  3971. * tst-mutexpp10.c: New file.
  3972. * tst-mutex1.c (TEST_FUNCTION): Don't redefine if already defined.
  3973. * tst-mutex6.c (TEST_FUNCTION): Likewise.
  3974. 2006-08-12 Ulrich Drepper <drepper@redhat.com>
  3975. [BZ #2843]
  3976. * pthread_join.c (pthread_join): Account for self being canceled
  3977. when checking for deadlocks.
  3978. * tst-join5.c: Cleanups. Allow to be used in tst-join6.
  3979. (tf1): Don't print anything after pthread_join returns, this would be
  3980. another cancellation point.
  3981. (tf2): Likewise.
  3982. * tst-join6.c: New file.
  3983. * Makefile (tests): Add tst-join6.
  3984. 2006-08-03 Ulrich Drepper <drepper@redhat.com>
  3985. [BZ #2892]
  3986. * pthread_setspecific.c (__pthread_setspecific): Check
  3987. out-of-range index before checking for unused key.
  3988. * sysdeps/pthread/gai_misc.h: New file.
  3989. 2006-08-01 Ulrich Drepper <drepper@redhat.com>
  3990. * sysdeps/unix/sysv/linux/i386/smp.h: New file. Old Linux-specific
  3991. file. Don't use sysctl.
  3992. * sysdeps/unix/sysv/linux/smp.h: Always assume SMP. Archs can
  3993. overwrite the file if this is likely not true.
  3994. 2006-07-31 Daniel Jacobowitz <dan@codesourcery.com>
  3995. * allocatestack.c (__reclaim_stacks): Reset the PID on cached stacks.
  3996. * Makefile (tests): Add tst-getpid3.
  3997. * tst-getpid3.c: New file.
  3998. 2006-07-30 Roland McGrath <roland@redhat.com>
  3999. * Makefile (libpthread-routines): Add ptw-sigsuspend.
  4000. * sysdeps/unix/sysv/linux/i386/not-cancel.h
  4001. (pause_not_cancel): New macro.
  4002. (nanosleep_not_cancel): New macro.
  4003. (sigsuspend_not_cancel): New macro.
  4004. * pthread_mutex_timedlock.c (pthread_mutex_timedlock): Use
  4005. nanosleep_not_cancel macro from <not-cancel.h>.
  4006. * pthread_mutex_lock.c (__pthread_mutex_lock): Use pause_not_cancel
  4007. macro from <not-cancel.h>.
  4008. 2006-07-28 Ulrich Drepper <drepper@redhat.com>
  4009. Jakub Jelinek <jakub@redhat.com>
  4010. * descr.h: Change ENQUEUE_MUTEX and DEQUEUE_MUTEX for bit 0
  4011. notification of PI mutex. Add ENQUEUE_MUTEX_PI.
  4012. * pthreadP.h: Define PTHREAD_MUTEX_PI_* macros for PI mutex types.
  4013. * pthread_mutex_setprioceilining.c: Adjust for mutex type name change.
  4014. * pthread_mutex_init.c: Add support for priority inheritance mutex.
  4015. * pthread_mutex_lock.c: Likewise.
  4016. * pthread_mutex_timedlock.c: Likewise.
  4017. * pthread_mutex_trylock.c: Likewise.
  4018. * pthread_mutex_unlock.c: Likewise.
  4019. * sysdeps/pthread/pthread_cond_broadcast.c: For PI mutexes wake
  4020. all mutexes.
  4021. * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_broadcast.c: Likewise.
  4022. * sysdeps/unix/sysv/linux/x86_64/pthread_cond_broadcast.c: Likewise.
  4023. * sysdeps/unix/sysv/linux/pthread-pi-defines.sym: New file.
  4024. * sysdeps/unix/sysv/linux/Makefile (gen-as-const-header): Add
  4025. pthread-pi-defines.sym.
  4026. * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Define FUTEX_LOCK_PI,
  4027. FUTEX_UNLOCK_PI, and FUTEX_TRYLOCK_PI.
  4028. * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
  4029. * sysdeps/unix/sysv/linux/alpha/lowlevellock.h: Likewise.
  4030. * sysdeps/unix/sysv/linux/ia64/lowlevellock.h: Likewise.
  4031. * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Likewise.
  4032. * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
  4033. * sysdeps/unix/sysv/linux/sh/lowlevellock.h: Likewise.
  4034. * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Likewise.
  4035. * sysdeps/unix/sysv/linux/bits/posix_opt.h: Define
  4036. _POSIX_THREAD_PRIO_INHERIT to 200112L.
  4037. * tst-mutex1.c: Adjust to allow use in PI mutex test.
  4038. * tst-mutex2.c: Likewise.
  4039. * tst-mutex3.c: Likewise.
  4040. * tst-mutex4.c: Likewise.
  4041. * tst-mutex5.c: Likewise.
  4042. * tst-mutex6.c: Likewise.
  4043. * tst-mutex7.c: Likewise.
  4044. * tst-mutex7a.c: Likewise.
  4045. * tst-mutex8.c: Likewise.
  4046. * tst-mutex9.c: Likewise.
  4047. * tst-robust1.c: Likewise.
  4048. * tst-robust7.c: Likewise.
  4049. * tst-robust8.c: Likewise.
  4050. * tst-mutexpi1.c: New file.
  4051. * tst-mutexpi2.c: New file.
  4052. * tst-mutexpi3.c: New file.
  4053. * tst-mutexpi4.c: New file.
  4054. * tst-mutexpi5.c: New file.
  4055. * tst-mutexpi6.c: New file.
  4056. * tst-mutexpi7.c: New file.
  4057. * tst-mutexpi7a.c: New file.
  4058. * tst-mutexpi8.c: New file.
  4059. * tst-mutexpi9.c: New file.
  4060. * tst-robust1.c: New file.
  4061. * tst-robust2.c: New file.
  4062. * tst-robust3.c: New file.
  4063. * tst-robust4.c: New file.
  4064. * tst-robust5.c: New file.
  4065. * tst-robust6.c: New file.
  4066. * tst-robust7.c: New file.
  4067. * tst-robust8.c: New file.
  4068. * Makefile (tests): Add the new tests.
  4069. * pthread_create.c (start_thread): Add some casts to avoid warnings.
  4070. * pthread_mutex_destroy.c: Remove unneeded label.
  4071. 2006-07-01 Ulrich Drepper <drepper@redhat.com>
  4072. * pthread_mutex_init.c (__pthread_mutex_init): Move some
  4073. computations to compile time.
  4074. 2006-06-04 Ulrich Drepper <drepper@redhat.com>
  4075. * sysdeps/pthread/pthread.h: Add pthread_equal inline version.
  4076. 2006-05-15 Ulrich Drepper <drepper@redhat.com>
  4077. * sysdeps/unix/sysv/linux/fork.h: Mark __fork_handlers as hidden.
  4078. 2006-05-11 Ulrich Drepper <drepper@redhat.com>
  4079. * pthread_key_create.c (__pthread_key_create): Do away with
  4080. __pthread_keys_lock.
  4081. * sysdeps/unix/sysv/linux/pthread_setaffinity.c
  4082. (__kernel_cpumask_size): Mark as hidden.
  4083. * sysdeps/unix/sysv/linux/pthread_attr_setaffinity.c: Likewise.
  4084. * sem_open.c (__sem_mappings_lock): Mark as hidden.
  4085. * semaphoreP.h (__sem_mappings_lock): Likewise.
  4086. 2006-05-10 Ulrich Drepper <drepper@redhat.com>
  4087. * pthread_atfork.c: Mark __dso_handle as hidden.
  4088. 2006-05-09 Ulrich Drepper <drepper@redhat.com>
  4089. [BZ #2644]
  4090. * sysdeps/pthread/unwind-forcedunwind.c: Different solution for
  4091. the reload problem. Change the one path in pthread_cancel_init
  4092. which causes the problem. Force gcc to reload. Simplify callers.
  4093. * sysdeps/unix/sysv/linux/ia64/unwind-forcedunwind.c
  4094. (_Unwind_GetBSP): Undo last patch.
  4095. 2006-05-07 Ulrich Drepper <drepper@redhat.com>
  4096. * sysdeps/unix/sysv/linux/ia64/unwind-forcedunwind.c: Make sure the
  4097. function pointer is reloaded after pthread_cancel_init calls.
  4098. [BZ #2644]
  4099. * sysdeps/pthread/unwind-forcedunwind.c: Make sure functions
  4100. pointers are reloaded after pthread_cancel_init calls.
  4101. 2006-05-01 Ulrich Drepper <drepper@redhat.com>
  4102. * sysdeps/pthread/allocalim.h (__libc_use_alloca): Mark with
  4103. __always_inline.
  4104. 2006-04-27 Ulrich Drepper <drepper@redhat.com>
  4105. * sysdeps/unix/sysv/linux/timer_routines.c (timer_helper_thread):
  4106. Allocate new object which is passed to timer_sigev_thread so that
  4107. the timer can be deleted before the new thread is scheduled.
  4108. 2006-04-26 Roland McGrath <roland@redhat.com>
  4109. * sysdeps/x86_64/tls.h: Include <asm/prctl.h> inside [! __ASSEMBLER__].
  4110. 2006-04-08 Ulrich Drepper <drepper@redhat.com>
  4111. * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Remove branch predicion
  4112. suffix for conditional jumps.
  4113. * sysdeps/unix/sysv/linux/i386/i486/sem_trywait.S: Likewise.
  4114. * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S: Likewise.
  4115. * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S: Likewise.
  4116. * sysdeps/unix/sysv/linux/i386/i486/pthread_barrier_wait.S: Likewise.
  4117. * sysdeps/unix/sysv/linux/i386/i486/sem_timedwait.S: Likewise.
  4118. * sysdeps/unix/sysv/linux/i386/i486/sem_wait.S: Likewise.
  4119. * init.c (sigcancel_handler): Compare with correct PID even if the
  4120. thread is in the middle of a fork call.
  4121. (sighandler_setxid): Likewise.
  4122. Reported by Suzuki K P <suzuki@in.ibm.com> .
  4123. 2006-04-07 Jakub Jelinek <jakub@redhat.com>
  4124. * pthreadP.h (FUTEX_TID_MASK): Sync with kernel.
  4125. 2006-04-06 Ulrich Drepper <drepper@redhat.com>
  4126. * pthread_getattr_np.c (pthread_getattr_np): Close fp if getrlimit
  4127. fails [Coverity CID 105].
  4128. 2006-04-05 Ulrich Drepper <drepper@redhat.com>
  4129. * sysdeps/pthread/pthread.h: Add nonnull attributes.
  4130. 2006-04-03 Steven Munroe <sjmunroe@us.ibm.com>
  4131. [BZ #2505]
  4132. * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h [_ARCH_PWR4]:
  4133. Define __lll_rel_instr using lwsync.
  4134. 2006-03-27 Ulrich Drepper <drepper@redhat.com>
  4135. * allocatestack.c (allocate_stack): Always initialize robust_head.
  4136. * descr.h: Define struct robust_list_head.
  4137. (struct pthread): Use robust_list_head in robust mutex list definition.
  4138. Adjust ENQUEUE_MUTEX and DEQUEUE_MUTEX.
  4139. * init.c [!__ASSUME_SET_ROBUST_LIST] (__set_robust_list_avail): Define.
  4140. (__pthread_initialize_minimal_internal): Register robust_list with
  4141. the kernel.
  4142. * pthreadP.h: Remove PRIVATE_ from PTHREAD_MUTEX_ROBUST_* names.
  4143. Declare __set_robust_list_avail.
  4144. * pthread_create.c (start_thread): Register robust_list of new thread.
  4145. [!__ASSUME_SET_ROBUST_LIST]: If robust_list is not empty wake up
  4146. waiters.
  4147. * pthread_mutex_destroy.c: For robust mutexes don't look at the
  4148. number of users, it's unreliable.
  4149. * pthread_mutex_init.c: Allow use of pshared robust mutexes if
  4150. set_robust_list syscall is available.
  4151. * pthread_mutex_consistent.c: Adjust for PTHREAD_MUTEX_ROBUST_* rename.
  4152. * pthread_mutex_lock.c: Simplify robust mutex code a bit.
  4153. Set robust_head.list_op_pending before trying to lock a robust mutex.
  4154. * pthread_mutex_timedlock.c: Likewise.
  4155. * pthread_mutex_trylock.c: Likewise.
  4156. * pthread_mutex_unlock.c: Likewise for unlocking.
  4157. * Makefile (tests): Add tst-robust8.
  4158. * tst-robust8.c: New file.
  4159. 2006-03-08 Andreas Schwab <schwab@suse.de>
  4160. * sysdeps/unix/sysv/linux/ia64/dl-sysdep.h
  4161. (DL_SYSINFO_IMPLEMENTATION): Add missing newline.
  4162. 2006-03-05 Roland McGrath <roland@redhat.com>
  4163. * configure (libc_add_on): Disable add-on when $add_ons_automatic = yes
  4164. and $config_os doesn't match *linux*.
  4165. 2006-03-05 David S. Miller <davem@sunset.davemloft.net>
  4166. * sysdeps/unix/sysv/linux/sparc/sparc32/pt-vfork.S:
  4167. Use __syscall_error.
  4168. * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Likewise.
  4169. * sysdeps/unix/sysv/linux/sparc/sparc32/vfork.S: Likewise.
  4170. * sysdeps/unix/sysv/linux/sparc/sparc64/pt-vfork.S: Likewise.
  4171. * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Likewise.
  4172. * sysdeps/unix/sysv/linux/sparc/sparc64/vfork.S: Likewise.
  4173. * sysdeps/unix/sysv/linux/sparc/Makefile: New file.
  4174. 2006-03-02 Ulrich Drepper <drepper@redhat.com>
  4175. * sysdeps/unix/sysv/linux/aio_misc.h: Various cleanups.
  4176. 2006-03-01 Ulrich Drepper <drepper@redhat.com>
  4177. * sysdeps/unix/sysv/linux/x86_64/lowlevelrobustlock.S
  4178. (__lll_robust_lock_wait): Also set FUTEX_WAITERS bit if we got the
  4179. mutex.
  4180. (__lll_robust_timedlock_wait): Likewise.
  4181. * sysdeps/unix/sysv/linux/i386/i486/lowlevelrobustlock.S
  4182. (__lll_robust_lock_wait): Likewise.
  4183. (__lll_robust_timedlock_wait): Likewise.
  4184. * sysdeps/unix/sysv/linux/lowlevelrobustlock.c
  4185. (__lll_robust_lock_wait): Likewise.
  4186. (__lll_robust_timedlock_wait): Likewise.
  4187. 2006-03-01 Jakub Jelinek <jakub@redhat.com>
  4188. * sysdeps/unix/sysv/linux/sparc/lowlevellock.h (lll_robust_mutex_dead,
  4189. lll_robust_mutex_trylock, lll_robust_mutex_lock,
  4190. lll_robust_mutex_cond_lock, lll_robust_mutex_timedlock,
  4191. lll_robust_mutex_unlock): Define.
  4192. (__lll_robust_lock_wait, __lll_robust_timedlock_wait): New prototypes.
  4193. 2006-02-28 H.J. Lu <hongjiu.lu@intel.com>
  4194. * sysdeps/unix/sysv/linux/ia64/clone2.S: Include <clone2.S>
  4195. instead of <clone.S>.
  4196. 2006-02-27 Jakub Jelinek <jakub@redhat.com>
  4197. * Makefile (libpthread-routines): Add
  4198. pthread_mutexattr_[sg]etprotocol, pthread_mutexattr_[sg]etprioceiling
  4199. and pthread_mutex_[sg]etprioceiling.
  4200. * Versions (GLIBC_2.4): Export pthread_mutexattr_getprotocol,
  4201. pthread_mutexattr_setprotocol, pthread_mutexattr_getprioceiling,
  4202. pthread_mutexattr_setprioceiling, pthread_mutex_getprioceiling and
  4203. pthread_mutex_setprioceiling.
  4204. * sysdeps/pthread/pthread.h (PTHREAD_PRIO_NONE, PTHREAD_PRIO_INHERIT,
  4205. PTHREAD_PRIO_PROTECT): New enum values.
  4206. (pthread_mutexattr_getprotocol, pthread_mutexattr_setprotocol,
  4207. pthread_mutexattr_getprioceiling, pthread_mutexattr_setprioceiling,
  4208. pthread_mutex_getprioceiling, pthread_mutex_setprioceiling): New
  4209. prototypes.
  4210. * pthreadP.h (PTHREAD_MUTEX_PRIO_INHERIT_PRIVATE_NP,
  4211. PTHREAD_MUTEX_PRIO_PROTECT_PRIVATE_NP): New enum values.
  4212. (PTHREAD_MUTEX_PRIO_CEILING_SHIFT, PTHREAD_MUTEX_PRIO_CEILING_MASK):
  4213. Define.
  4214. (PTHREAD_MUTEXATTR_PROTOCOL_SHIFT, PTHREAD_MUTEXATTR_PROTOCOL_MASK,
  4215. PTHREAD_MUTEXATTR_PRIO_CEILING_SHIFT,
  4216. PTHREAD_MUTEXATTR_PRIO_CEILING_MASK): Define.
  4217. (PTHREAD_MUTEXATTR_FLAG_BITS): Or in PTHREAD_MUTEXATTR_PROTOCOL_MASK
  4218. and PTHREAD_MUTEXATTR_PRIO_CEILING_MASK.
  4219. * pthread_mutex_init.c (__pthread_mutex_init): For the time being
  4220. return ENOTSUP for PTHREAD_PRIO_INHERIT or PTHREAD_PRIO_PROTECT
  4221. protocol mutexes.
  4222. * pthread_mutex_getprioceiling.c: New file.
  4223. * pthread_mutex_setprioceiling.c: New file.
  4224. * pthread_mutexattr_getprioceiling.c: New file.
  4225. * pthread_mutexattr_setprioceiling.c: New file.
  4226. * pthread_mutexattr_getprotocol.c: New file.
  4227. * pthread_mutexattr_setprotocol.c: New file.
  4228. 2006-02-27 Daniel Jacobowitz <dan@codesourcery.com>
  4229. * sysdeps/unix/sysv/linux/aio_misc.h: Include <limits.h>.
  4230. 2006-02-27 Roland McGrath <roland@redhat.com>
  4231. * sysdeps/pthread/Subdirs: List nptl here too.
  4232. * configure (libc_add_on_canonical): New variable.
  4233. * sysdeps/unix/sysv/linux/sh/sh4/lowlevellock.h: Use #include_next.
  4234. * sysdeps/unix/sysv/linux/sleep.c: Use #include_next after #include of
  4235. self to get main source tree's file.
  4236. * sysdeps/unix/sysv/linux/alpha/clone.S: Likewise.
  4237. * sysdeps/unix/sysv/linux/i386/clone.S: Likewise.
  4238. * sysdeps/unix/sysv/linux/i386/vfork.S: Likewise.
  4239. * sysdeps/unix/sysv/linux/ia64/clone2.S: Likewise.
  4240. * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Likewise.
  4241. * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: Likewise.
  4242. * sysdeps/unix/sysv/linux/s390/s390-32/clone.S: Likewise.
  4243. * sysdeps/unix/sysv/linux/s390/s390-64/clone.S: Likewise.
  4244. * sysdeps/unix/sysv/linux/sh/clone.S: Likewise.
  4245. * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S: Likewise.
  4246. * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S: Likewise.
  4247. * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
  4248. * sysdeps/unix/sysv/linux/x86_64/vfork.S: Likewise.
  4249. * Makefile: Use $(sysdirs) in vpath directive.
  4250. * sysdeps/pthread/Makefile (CFLAGS-libc-start.c): Variable removed.
  4251. (CPPFLAGS-timer_routines.c): Likewise.
  4252. * Makeconfig (includes): Variable removed.
  4253. 2006-02-26 Roland McGrath <roland@redhat.com>
  4254. * sysdeps/generic/pt-raise.c: Moved to ...
  4255. * pt-raise.c: ... here.
  4256. * sysdeps/generic/lowlevellock.h: Moved to ...
  4257. * lowlevellock.h: ... here.
  4258. 2006-02-23 Roland McGrath <roland@redhat.com>
  4259. * descr.h (struct pthread): Add final member `end_padding'.
  4260. (PTHREAD_STRUCT_END_PADDING): Use it.
  4261. 2006-02-20 Roland McGrath <roland@redhat.com>
  4262. * sysdeps/mips: Directory removed, saved in ports repository.
  4263. * sysdeps/unix/sysv/linux/mips: Likewise.
  4264. 2006-02-18 Ulrich Drepper <drepper@redhat.com>
  4265. * tst-robust1.c: Add second mutex to check that the mutex list is
  4266. handled correctly.
  4267. 2006-02-17 Jakub Jelinek <jakub@redhat.com>
  4268. * sysdeps/unix/sysv/linux/alpha/lowlevellock.h (lll_robust_mutex_dead,
  4269. lll_robust_mutex_trylock, lll_robust_mutex_lock,
  4270. lll_robust_mutex_cond_lock, lll_robust_mutex_timedlock,
  4271. lll_robust_mutex_unlock): New macros.
  4272. (__lll_robust_lock_wait, __lll_robust_timedlock_wait): New prototypes.
  4273. * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
  4274. * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Likewise.
  4275. * sysdeps/unix/sysv/linux/ia64/lowlevellock.h: Likewise.
  4276. * sysdeps/unix/sysv/linux/lowlevelrobustlock.c: New file.
  4277. 2006-02-17 Kaz Kojima <kkojima@rr.iij4u.or.jp>
  4278. * sysdeps/unix/sysv/linux/sh/lowlevellock.h: Add lll_robust_mutex_*
  4279. definitions.
  4280. * sysdeps/unix/sysv/linux/sh/lowlevelrobustlock.S: New file.
  4281. 2006-02-17 Ulrich Drepper <drepper@redhat.com>
  4282. * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h
  4283. (lll_robust_mutex_unlock): Avoid unnecessary wakeups.
  4284. * sysdeps/unix/sysv/linux/i386/lowlevellock.h
  4285. (lll_robust_mutex_unlock): Likewise.
  4286. 2006-02-13 Jakub Jelinek <jakub@redhat.com>
  4287. * descr.h [!__PTHREAD_MUTEX_HAVE_PREV] (DEQUEUE_MUTEX):
  4288. Set robust_list.__next rather than robust_list.
  4289. * sysdeps/unix/sysv/linux/alpha/bits/pthreadtypes.h
  4290. (__pthread_list_t): New typedef.
  4291. (pthread_mutex_t): Replace __next and __prev fields with __list.
  4292. * sysdeps/unix/sysv/linux/ia64/bits/pthreadtypes.h
  4293. (__pthread_list_t): New typedef.
  4294. (pthread_mutex_t): Replace __next and __prev fields with __list.
  4295. * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h
  4296. (__pthread_list_t, __pthread_slist_t): New typedefs.
  4297. (pthread_mutex_t): Replace __next and __prev fields with __list.
  4298. * sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h
  4299. (__pthread_list_t, __pthread_slist_t): New typedefs.
  4300. (pthread_mutex_t): Replace __next and __prev fields with __list.
  4301. * sysdeps/unix/sysv/linux/sparc/bits/pthreadtypes.h
  4302. (__pthread_list_t, __pthread_slist_t): New typedefs.
  4303. (pthread_mutex_t): Replace __next and __prev fields with __list.
  4304. * sysdeps/unix/sysv/linux/sh/bits/pthreadtypes.h
  4305. (__pthread_slist_t): New typedef.
  4306. (pthread_mutex_t): Replace __next field with __list.
  4307. 2006-02-15 Ulrich Drepper <drepper@redhat.com>
  4308. * pthreadP.h: Define PTHREAD_MUTEX_INCONSISTENT instead of
  4309. PTHREAD_MUTEX_OWNERDEAD.
  4310. (PTHREAD_MUTEX_ROBUST_PRIVATE_NP): Define as 16, not 256.
  4311. Define FUTEX_WAITERS, FUTEX_OWNER_DIED, FUTEX_TID_MASK.
  4312. * Makefile (libpthread-routines): Add lowlevelrobustlock.
  4313. * pthread_create.c (start_thread): Very much simplify robust_list loop.
  4314. * pthread_mutex_consistent.c: Inconsistent mutex have __owner now set
  4315. to PTHREAD_MUTEX_INCONSISTENT.
  4316. * pthread_mutex_destroy.c: Allow destroying of inconsistent mutexes.
  4317. * pthread_mutex_lock.c: Reimplement robust mutex handling.
  4318. * pthread_mutex_trylock.c: Likewise.
  4319. * pthread_mutex_timedlock.c: Likewise.
  4320. * pthread_mutex_unlock.c: Likewise.
  4321. * sysdeps/unix/sysv/linux/pthread_mutex_cond_lock.c: Likewise.
  4322. * sysdeps/unix/sysv/linux/Makefile (gen-as-const-headers): Add
  4323. lowlevelrobustlock.sym.
  4324. * sysdeps/unix/sysv/linux/lowlevelrobustlock.sym: New file.
  4325. * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Add lll_robust_mutex_*
  4326. definitions.
  4327. * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
  4328. * sysdeps/unix/sysv/linux/i386/i486/lowlevelrobustlock.S: New file.
  4329. * sysdeps/unix/sysv/linux/i386/i586/lowlevelrobustlock.S: New file.
  4330. * sysdeps/unix/sysv/linux/i386/i686/lowlevelrobustlock.S: New file.
  4331. * sysdeps/unix/sysv/linux/x86_64/lowlevelrobustlock.S: New file.
  4332. 2006-02-12 Ulrich Drepper <drepper@redhat.com>
  4333. * allocatestack.c (allocate_stack): Initialize robust_list.
  4334. * init.c (__pthread_initialize_minimal_internal): Likewise.
  4335. * descr.h (struct xid_command): Pretty printing.
  4336. (struct pthread): Use __pthread_list_t or __pthread_slist_t for
  4337. robust_list. Adjust macros.
  4338. * pthread_create.c (start_thread): Adjust robust_list handling.
  4339. * phtread_mutex_unlock.c: Don't allow unlocking from any thread
  4340. but the owner for all robust mutex types.
  4341. * sysdeps/unix/sysv/linux/i386/bits/pthreadtypes.h: Define
  4342. __pthread_list_t and __pthread_slist_t. Use them in pthread_mutex_t.
  4343. * sysdeps/unix/sysv/linux/x86_64/bits/pthreadtypes.h: Likewise.
  4344. * sysdeps/pthread/pthread.h: Adjust mutex initializers.
  4345. * sysdeps/unix/sysv/linux/i386/not-cancel.h: Define openat_not_cancel,
  4346. openat_not_cancel_3, openat64_not_cancel, and openat64_not_cancel_3.
  4347. 2006-02-08 Jakub Jelinek <jakub@redhat.com>
  4348. * sysdeps/unix/sysv/linux/i386/lowlevellock.h (lll_futex_wait,
  4349. lll_futex_timedwait, lll_wait_tid): Add "memory" clobber.
  4350. 2006-01-20 Kaz Kojima <kkojima@rr.iij4u.or.jp>
  4351. * sysdeps/unix/sysv/linux/sh/lowlevellock.h (lll_futex_wait):
  4352. Return status.
  4353. (lll_futex_timed_wait): Define.
  4354. 2006-01-19 Ulrich Drepper <drepper@redhat.com>
  4355. * tst-cancel4.c: Test ppoll.
  4356. 2006-01-18 Andreas Jaeger <aj@suse.de>
  4357. [BZ #2167]
  4358. * sysdeps/unix/sysv/linux/mips/bits/pthreadtypes.h
  4359. (pthread_mutex_t): Follow changes for other archs. Based on patch
  4360. by Jim Gifford <patches@jg555.com>.
  4361. 2006-01-13 Richard Henderson <rth@redhat.com>
  4362. * sysdeps/alpha/tls.h (tcbhead_t): Rename member to __private.
  4363. 2006-01-10 Roland McGrath <roland@redhat.com>
  4364. * sysdeps/alpha/jmpbuf-unwind.h: File moved to main source tree.
  4365. * sysdeps/i386/jmpbuf-unwind.h: Likewise.
  4366. * sysdeps/mips/jmpbuf-unwind.h: Likewise.
  4367. * sysdeps/powerpc/jmpbuf-unwind.h: Likewise.
  4368. * sysdeps/s390/jmpbuf-unwind.h: Likewise.
  4369. * sysdeps/sh/jmpbuf-unwind.h: Likewise.
  4370. * sysdeps/sparc/sparc32/jmpbuf-unwind.h: Likewise.
  4371. * sysdeps/sparc/sparc64/jmpbuf-unwind.h: Likewise.
  4372. * sysdeps/x86_64/jmpbuf-unwind.h: Likewise.
  4373. * sysdeps/unix/sysv/linux/ia64/jmpbuf-unwind.h: Likewise.
  4374. 2006-01-09 Roland McGrath <roland@redhat.com>
  4375. * tst-initializers1-c89.c: New file.
  4376. * tst-initializers1-c99.c: New file.
  4377. * tst-initializers1-gnu89.c: New file.
  4378. * tst-initializers1-gnu99.c: New file.
  4379. * Makefile (tests): Add them.
  4380. (CFLAGS-tst-initializers1-c89.c): New variable.
  4381. (CFLAGS-tst-initializers1-c99.c): New variable.
  4382. (CFLAGS-tst-initializers1-gnu89.c): New variable.
  4383. (CFLAGS-tst-initializers1-gnu99.c): New variable.
  4384. * sysdeps/unix/sysv/linux/i386/bits/pthreadtypes.h (pthread_mutex_t):
  4385. Use __extension__ on anonymous union definition.
  4386. * sysdeps/unix/sysv/linux/x86_64/bits/pthreadtypes.h: Likewise.
  4387. * sysdeps/unix/sysv/linux/sh/bits/pthreadtypes.h: Likewise.
  4388. * sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h: Likewise.
  4389. * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: Likewise.
  4390. * sysdeps/unix/sysv/linux/sparc/bits/pthreadtypes.h: Likewise.
  4391. 2006-01-08 Jakub Jelinek <jakub@redhat.com>
  4392. * sysdeps/unix/sysv/linux/alpha/bits/pthreadtypes.h (pthread_mutex_t):
  4393. Don't give the union a name because it changes the mangled name.
  4394. Instead name the struct for __data.
  4395. * sysdeps/unix/sysv/linux/sh/bits/pthreadtypes.h (pthread_mutex_t):
  4396. Likewise.
  4397. * sysdeps/unix/sysv/linux/sparc/bits/pthreadtypes.h (pthread_mutex_t):
  4398. Likewise.
  4399. 2006-01-09 Jakub Jelinek <jakub@redhat.com>
  4400. * sysdeps/sparc/sparc64/jmpbuf-unwind.h (_JMPBUF_UNWINDS_ADJ): Add
  4401. stack bias to mc_ftp field.
  4402. 2006-01-07 Ulrich Drepper <drepper@redhat.com>
  4403. * sysdeps/pthread/aio_misc.h (AIO_MISC_WAIT): Work around gcc
  4404. being too clever and reloading the futex value where it shouldn't.
  4405. 2006-01-06 Ulrich Drepper <drepper@redhat.com>
  4406. * descr.h [!__PTHREAD_MUTEX_HAVE_PREV] (DEQUEUE_MUTEX): Use
  4407. correct type.
  4408. 2006-01-06 Jakub Jelinek <jakub@redhat.com>
  4409. * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h (PSEUDO):
  4410. Add cfi directives.
  4411. 2006-01-06 Ulrich Drepper <drepper@redhat.com>
  4412. * sysdeps/ia64/tls.h (tcbhead_t): Rename private member to __private.
  4413. * sysdeps/ia64/tcb-offsets.sym: Adjust for private->__private
  4414. rename in tcbhead_t.
  4415. * sysdeps/unix/sysv/linux/i386/bits/pthreadtypes.h (pthread_mutex_t):
  4416. Don't give the union a name because it changes the mangled name.
  4417. Instead name the struct for __data.
  4418. * sysdeps/unix/sysv/linux/ia64/bits/pthreadtypes.h: Likewise.
  4419. * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: Likewise.
  4420. * sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h: Likewise.
  4421. * sysdeps/unix/sysv/linux/x86_64/bits/pthreadtypes.h: Likewise.
  4422. * pthread_create.c (start_thread): Adjust robust mutex free loop.
  4423. * descr.h (ENQUEUE_MUTEX, DEQUEUE_MUTEX): Adjust.
  4424. 2006-01-05 Ulrich Drepper <drepper@redhat.com>
  4425. * sysdeps/unix/sysv/linux/i386/lowlevellock.h (lll_futex_wait):
  4426. Return status.
  4427. (lll_futex_timed_wait): Define.
  4428. * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
  4429. * sysdeps/pthread/aio_misc.h: New file.
  4430. 2006-01-03 Joseph S. Myers <joseph@codesourcery.com>
  4431. * Makefile ($(objpfx)$(multidir)): Use mkdir -p.
  4432. 2006-01-03 Steven Munroe <sjmunroe@us.ibm.com>
  4433. * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h
  4434. (PSEUDO): Remove redundant cfi_startproc and cfi_endproc directives.
  4435. * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: Likewise.
  4436. 2006-01-04 Ulrich Drepper <drepper@redhat.com>
  4437. * tst-cancel24.cc: Use C headers instead of C++ headers.
  4438. 2006-01-03 Jakub Jelinek <jakub@redhat.com>
  4439. * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Remove #error for
  4440. sparc-linux configured glibc.
  4441. (lll_futex_wake_unlock): Define to 1 for sparc-linux configured glibc.
  4442. (__lll_mutex_trylock, __lll_mutex_cond_trylock, __lll_mutex_lock,
  4443. __lll_mutex_cond_lock, __lll_mutex_timedlock): Use
  4444. atomic_compare_and_exchange_val_24_acq instead of
  4445. atomic_compare_and_exchange_val_acq.
  4446. (lll_mutex_unlock, lll_mutex_unlock_force): Use atomic_exchange_24_rel
  4447. instead of atomic_exchange_rel.
  4448. * sysdeps/unix/sysv/linux/sparc/sparc32/lowlevellock.c: New file.
  4449. * sysdeps/unix/sysv/linux/sparc/sparc32/pthread_barrier_init.c: New
  4450. file.
  4451. * sysdeps/unix/sysv/linux/sparc/sparc32/pthread_barrier_wait.c: New
  4452. file.
  4453. * sysdeps/unix/sysv/linux/sparc/sparc32/sem_init.c: New file.
  4454. * sysdeps/unix/sysv/linux/sparc/sparc32/sem_post.c: New file.
  4455. * sysdeps/unix/sysv/linux/sparc/sparc32/sem_timedwait.c: New file.
  4456. * sysdeps/unix/sysv/linux/sparc/sparc32/sem_trywait.c: New file.
  4457. * sysdeps/unix/sysv/linux/sparc/sparc32/sem_wait.c: New file.
  4458. * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/pthread_barrier_init.c:
  4459. New file.
  4460. * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/pthread_barrier_wait.c:
  4461. New file.
  4462. * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/sem_init.c: New file.
  4463. * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/sem_post.c: New file.
  4464. * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/sem_timedwait.c: New
  4465. file.
  4466. * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/sem_trywait.c: New
  4467. file.
  4468. * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/sem_wait.c: New file.
  4469. 2006-01-03 Ulrich Drepper <drepper@redhat.com>
  4470. * sysdeps/pthread/pthread.h [__WORDSIZE==64]: Don't use cast in
  4471. mutex initializers.
  4472. 2006-01-02 Jakub Jelinek <jakub@redhat.com>
  4473. * sysdeps/sparc/tls.h (tcbhead_t): Add pointer_guard field.
  4474. (THREAD_GET_POINTER_GUARD, THREAD_SET_POINTER_GUARD,
  4475. THREAD_COPY_POINTER_GUARD): Define.
  4476. * sysdeps/sparc/tcb-offsets.sym (POINTER_GUARD): Define.
  4477. * sysdeps/sparc/sparc64/jmpbuf-unwind.h: Revert 2005-12-27 changes.
  4478. 2006-01-01 Ulrich Drepper <drepper@redhat.com>
  4479. * version.c: Update copyright year.
  4480. 2005-12-29 Kaz Kojima <kkojima@rr.iij4u.or.jp>
  4481. * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Remove explicit
  4482. .eh_frame section, use cfi_* directives.
  4483. * sysdeps/unix/sysv/linux/sh/lowlevellock.S: Add cfi instrumentation.
  4484. 2005-12-30 Ulrich Drepper <drepper@redhat.com>
  4485. * sysdeps/unix/sysv/linux/ia64/jmpbuf-unwind.h: Undo last change for
  4486. now.
  4487. 2005-12-29 Ulrich Drepper <drepper@redhat.com>
  4488. * sysdeps/pthread/sigaction.c: Removed.
  4489. * sigaction.c: New file.
  4490. * sysdeps/unix/sysv/linux/Makefile: Define CFLAGS-sigaction.c.
  4491. 2005-12-28 Ulrich Drepper <drepper@redhat.com>
  4492. * Makefile (tests): Add tst-signal7.
  4493. * tst-signal7.c: New file.
  4494. 2005-12-27 Roland McGrath <roland@redhat.com>
  4495. * sysdeps/x86_64/jmpbuf-unwind.h (_jmpbuf_sp): New inline function.
  4496. (_JMPBUF_UNWINDS_ADJ): Use it, to PTR_DEMANGLE before comparison.
  4497. * sysdeps/alpha/jmpbuf-unwind.h: Likewise.
  4498. * sysdeps/i386/jmpbuf-unwind.h: Likewise.
  4499. * sysdeps/mips/jmpbuf-unwind.h: Likewise.
  4500. * sysdeps/powerpc/jmpbuf-unwind.h: Likewise.
  4501. * sysdeps/s390/jmpbuf-unwind.h: Likewise.
  4502. * sysdeps/sh/jmpbuf-unwind.h: Likewise.
  4503. * sysdeps/sparc/sparc32/jmpbuf-unwind.h: Likewise.
  4504. * sysdeps/sparc/sparc64/jmpbuf-unwind.h: Likewise.
  4505. * sysdeps/unix/sysv/linux/ia64/jmpbuf-unwind.h: Likewise.
  4506. 2005-12-27 Jakub Jelinek <jakub@redhat.com>
  4507. * sysdeps/unix/sysv/linux/alpha/bits/pthreadtypes.h: Add __next
  4508. and __prev field to pthread_mutex_t.
  4509. * sysdeps/unix/sysv/linux/ia64/bits/pthreadtypes.h: Likewise.
  4510. * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: Likewise.
  4511. * sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h: Likewise.
  4512. * sysdeps/unix/sysv/linux/sparc/bits/pthreadtypes.h: Likewise.
  4513. * sysdeps/unix/sysv/linux/sh/bits/pthreadtypes.h: Add __next field
  4514. to pthread_mutex_t.
  4515. 2005-12-26 Ulrich Drepper <drepper@redhat.com>
  4516. * pthreadP.h: Define PTHREAD_MUTEX_ROBUST_PRIVATE_NP,
  4517. PTHREAD_MUTEX_ROBUST_PRIVATE_RECURSIVE_NP,
  4518. PTHREAD_MUTEX_ROBUST_PRIVATE_ERRORCHECK_NP,
  4519. PTHREAD_MUTEX_ROBUST_PRIVATE_ADAPTIVE_NP,
  4520. PTHREAD_MUTEXATTR_FLAG_ROBUST, PTHREAD_MUTEXATTR_FLAG_PSHARED,
  4521. and PTHREAD_MUTEXATTR_FLAG_BITS.
  4522. * descr.h (struct pthread): Add robust_list field and define
  4523. ENQUEUE_MUTEX and DEQUEUE_MUTEX macros.
  4524. * pthread_mutexattr_getrobust.c: New file.
  4525. * pthread_mutexattr_setrobust.c: New file.
  4526. * pthread_mutex_consistent.c: New file.
  4527. * sysdeps/pthread/pthread.h: Declare pthread_mutexattr_getrobust,
  4528. pthread_mutexattr_setrobust, and pthread_mutex_consistent.
  4529. Define PTHREAD_MUTEX_STALLED_NP and PTHREAD_MUTEX_ROBUST_NP.
  4530. Adjust pthread_mutex_t initializers.
  4531. * nptl/sysdeps/unix/sysv/linux/i386/bits/pthreadtypes.h: Add __next
  4532. field to pthread_mutex_t.
  4533. * nptl/sysdeps/unix/sysv/linux/x86_64/bits/pthreadtypes.h: Add __next
  4534. and __prev field to pthread_mutex_t.
  4535. * Versions [GLIBC_2.4]: Export pthread_mutexattr_getrobust_np,
  4536. pthread_mutexattr_setrobust_np, and pthread_mutex_consistent_np.
  4537. * pthread_mutexattr_getpshared.c: Use PTHREAD_MUTEXATTR_FLAG_PSHARED
  4538. and PTHREAD_MUTEXATTR_FLAG_BITS macros instead of magic numbers.
  4539. * pthread_mutexattr_gettype.c: Likewise.
  4540. * pthread_mutexattr_setpshared.c: Likewise.
  4541. * pthread_mutexattr_settype.c: Likewise.
  4542. * pthread_mutex_init.c: Reject robust+pshared attribute for now.
  4543. Initialize mutex kind according to robust flag.
  4544. * pthread_mutex_lock.c: Implement local robust mutex.
  4545. * pthread_mutex_timedlock.c: Likewise.
  4546. * pthread_mutex_trylock.c: Likewise.
  4547. * pthread_mutex_unlock.c: Likewise.
  4548. * pthread_create.c (start_thread): Mark robust mutexes which remained
  4549. locked as dead.
  4550. * tst-robust1.c: New file.
  4551. * tst-robust2.c: New file.
  4552. * tst-robust3.c: New file.
  4553. * tst-robust4.c: New file.
  4554. * tst-robust5.c: New file.
  4555. * tst-robust6.c: New file.
  4556. * tst-robust7.c: New file.
  4557. * Makefile (libpthread-routines): Add pthread_mutexattr_getrobust,
  4558. pthread_mutexattr_setrobust, and pthread_mutex_consistent.
  4559. (tests): Add tst-robust1, tst-robust2, tst-robust3, tst-robust4,
  4560. tst-robust5, tst-robust6, and tst-robust7.
  4561. * tst-typesizes.c: New file.
  4562. * Makefile (tests): Add tst-typesizes.
  4563. * tst-once3.c: More debug output.
  4564. 2005-12-24 Ulrich Drepper <drepper@redhat.com>
  4565. * pthread_mutex_trylock.c (__pthread_mutex_trylock): Add break
  4566. missing after last change.
  4567. * version.c: Update copyright year.
  4568. 2005-12-23 Ulrich Drepper <drepper@redhat.com>
  4569. * pthread_mutex_destroy.c: Set mutex type to an invalid value.
  4570. * pthread_mutex_lock.c: Return EINVAL for invalid mutex type.
  4571. * pthread_mutex_trylock.c: Likewise.
  4572. * pthread_mutex_timedlock.c: Likewise.
  4573. * pthread_mutex_unlock.c: Likewise.
  4574. 2005-12-22 Roland McGrath <roland@redhat.com>
  4575. * sysdeps/pthread/sigaction.c: Use "" instead of <> to include self,
  4576. so that #include_next's search location is not reset to the -I..
  4577. directory where <nptl/...> can be found.
  4578. 2005-12-22 Ulrich Drepper <drepper@redhat.com>
  4579. [BZ #1913]
  4580. * sysdeps/unix/sysv/linux/i386/i486/sem_wait.S (__new_sem_wait):
  4581. Fix unwind info. Remove useless branch prediction prefix.
  4582. * tst-cancel24.cc: New file.
  4583. * Makefile: Add rules to build and run tst-cancel24.
  4584. 2005-12-21 Roland McGrath <roland@redhat.com>
  4585. * libc-cancellation.c: Use <> rather than "" #includes.
  4586. * pt-cleanup.c: Likewise.
  4587. * pthread_create.c: Likewise.
  4588. * pthread_join.c: Likewise.
  4589. * pthread_timedjoin.c: Likewise.
  4590. * pthread_tryjoin.c: Likewise.
  4591. * sysdeps/unix/sysv/linux/libc_pthread_init.c: Likewise.
  4592. * sysdeps/unix/sysv/linux/register-atfork.c: Likewise.
  4593. * sysdeps/unix/sysv/linux/unregister-atfork.c: Likewise.
  4594. * unwind.c: Likewise.
  4595. 2005-12-19 Kaz Kojima <kkojima@rr.iij4u.or.jp>
  4596. * sysdeps/sh/tcb-offsets.sym: Add POINTER_GUARD.
  4597. * sysdeps/sh/tls.h (tcbhead_t): Remove private and add pointer_guard.
  4598. (THREAD_GET_POINTER_GUARD, THREAD_SET_POINTER_GUARD,
  4599. THREAD_COPY_POINTER_GUARD): Define.
  4600. 2005-12-19 Jakub Jelinek <jakub@redhat.com>
  4601. * sysdeps/ia64/tls.h (TLS_PRE_TCB_SIZE): Make room for 2 uintptr_t's
  4602. rather than one.
  4603. (THREAD_GET_POINTER_GUARD, THREAD_SET_POINTER_GUARD,
  4604. THREAD_COPY_POINTER_GUARD): Define.
  4605. * sysdeps/powerpc/tcb-offsets.sym (POINTER_GUARD): Add.
  4606. * sysdeps/powerpc/tls.h (tcbhead_t): Add pointer_guard field.
  4607. (THREAD_GET_POINTER_GUARD, THREAD_SET_POINTER_GUARD,
  4608. THREAD_COPY_POINTER_GUARD): Define.
  4609. * sysdeps/s390/tcb-offsets.sym (STACK_GUARD): Add.
  4610. * sysdeps/s390/tls.h (THREAD_GET_POINTER_GUARD,
  4611. THREAD_SET_POINTER_GUARD, THREAD_COPY_POINTER_GUARD): Define.
  4612. * sysdeps/unix/sysv/linux/ia64/__ia64_longjmp.S (__ia64_longjmp):
  4613. Use PTR_DEMANGLE for B0 if defined.
  4614. 2005-12-17 Ulrich Drepper <drepper@redhat.com>
  4615. * pthread_create.c (__pthread_create_2_1): Use
  4616. THREAD_COPY_POINTER_GUARD if available.
  4617. * sysdeps/i386/tcb-offsets.sym: Add POINTER_GUARD.
  4618. * sysdeps/x86_64/tcb-offsets.sym: Likewise.
  4619. * sysdeps/i386/tls.h (tcbhead_t): Add pointer_guard.
  4620. Define THREAD_SET_POINTER_GUARD and THREAD_COPY_POINTER_GUARD.
  4621. * sysdeps/x86_64/tls.h: Likewise.
  4622. 2005-12-15 Roland McGrath <roland@redhat.com>
  4623. * sysdeps/unix/sysv/linux/mq_notify.c: Don't use sysdeps/generic.
  4624. 2005-12-13 Ulrich Drepper <drepper@redhat.com>
  4625. * sysdeps/pthread/sigfillset.c: Adjust for files moved out of
  4626. sysdeps/generic.
  4627. * errno-loc.c: New file.
  4628. 2005-12-12 Roland McGrath <roland@redhat.com>
  4629. * init.c (__pthread_initialize_minimal_internal): Do __static_tls_size
  4630. adjustments before choosing stack size. Update minimum stack size
  4631. calculation to match allocate_stack change.
  4632. 2005-12-12 Ulrich Drepper <drepper@redhat.com>
  4633. * allocatestack.c (allocate_stack): Don't demand that there is an
  4634. additional full page available on the stack beside guard, TLS, the
  4635. minimum stack.
  4636. 2005-11-24 Ulrich Drepper <drepper@redhat.com>
  4637. * sysdeps/unix/sysv/linux/i386/bits/pthreadtypes.h
  4638. (__cleanup_fct_attribute): Use __regparm__ not regparm.
  4639. * sysdeps/unix/sysv/linux/x86_64/bits/pthreadtypes.h: When
  4640. compiling 32-bit code we must define __cleanup_fct_attribute.
  4641. 005-11-24 Jakub Jelinek <jakub@redhat.com>
  4642. [BZ #1920]
  4643. * sysdeps/pthread/pthread.h (__pthread_unwind_next): Use
  4644. __attribute__ instead of __attribute.
  4645. * sysdeps/unix/sysv/linux/i386/bits/pthreadtypes.h
  4646. (__cleanup_fct_attribute): Likewise.
  4647. 2005-11-17 Jakub Jelinek <jakub@redhat.com>
  4648. * sysdeps/pthread/unwind-forcedunwind.c (pthread_cancel_init): Put
  4649. a write barrier before writing libgcc_s_getcfa.
  4650. 2005-11-06 Ulrich Drepper <drepper@redhat.com>
  4651. * sysdeps/unix/sysv/linux/configure: Removed.
  4652. 2005-11-05 Ulrich Drepper <drepper@redhat.com>
  4653. * sysdeps/unix/sysv/linux/ia64/pt-initfini.c: Remove trace of
  4654. optional init_array/fini_array support.
  4655. 2005-10-24 Roland McGrath <roland@redhat.com>
  4656. * sysdeps/unix/sysv/linux/x86_64/sem_trywait.S: Remove unnecessary
  4657. versioned_symbol use.
  4658. 2005-10-16 Roland McGrath <roland@redhat.com>
  4659. * init.c (__pthread_initialize_minimal_internal): Even when using a
  4660. compile-time default stack size, apply the minimum that allocate_stack
  4661. will require, and round up to page size.
  4662. 2005-10-10 Daniel Jacobowitz <dan@codesourcery.com>
  4663. * Makefile ($(test-modules)): Remove static pattern rule.
  4664. 2005-10-14 Jakub Jelinek <jakub@redhat.com>
  4665. Ulrich Drepper <drepper@redhat.com>
  4666. * sysdeps/unix/sysv/linux/x86_64/pthread_once.S: Fix stack
  4667. alignment in callback function.
  4668. * Makefile: Add rules to build and run tst-align3.
  4669. * tst-align3.c: New file.
  4670. 2005-10-03 Jakub Jelinek <jakub@redhat.com>
  4671. * allocatestack.c (setxid_signal_thread): Add
  4672. INTERNAL_SYSCALL_DECL (err).
  4673. 2005-10-02 Jakub Jelinek <jakub@redhat.com>
  4674. * allocatestack.c (setxid_signal_thread): Need to use
  4675. atomic_compare_and_exchange_bool_acq.
  4676. 2005-10-01 Ulrich Drepper <drepper@redhat.com>
  4677. Jakub Jelinek <jakub@redhat.com>
  4678. * descr.h: Define SETXID_BIT and SETXID_BITMASK. Adjust
  4679. CANCEL_RESTMASK.
  4680. (struct pthread): Move specific_used field to avoid padding.
  4681. Add setxid_futex field.
  4682. * init.c (sighandler_setxid): Reset setxid flag and release the
  4683. setxid futex.
  4684. * allocatestack.c (setxid_signal_thread): New function. Broken
  4685. out of the bodies of the two loops in __nptl_setxid. For undetached
  4686. threads check whether they are exiting and if yes, don't send a signal.
  4687. (__nptl_setxid): Simplify loops by using setxid_signal_thread.
  4688. * pthread_create.c (start_thread): For undetached threads, check
  4689. whether setxid bit is set. If yes, wait until signal has been
  4690. processed.
  4691. * allocatestack.c (STACK_VARIABLES): Initialize them.
  4692. * pthread_create.c (__pthread_create_2_1): Initialize pd.
  4693. 2004-09-02 Jakub Jelinek <jakub@redhat.com>
  4694. * pthread_cond_destroy.c (__pthread_cond_destroy): If there are
  4695. waiters, awake all waiters on the associated mutex.
  4696. 2005-09-22 Roland McGrath <roland@redhat.com>
  4697. * perf.c [__x86_64__] (HP_TIMING_NOW): New macro (copied from
  4698. ../sysdeps/x86_64/hp-timing.h).
  4699. 2005-08-29 Jakub Jelinek <jakub@redhat.com>
  4700. * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h (FUTEX_WAKE_OP,
  4701. FUTEX_OP_CLEAR_WAKE_IF_GT_ONE): Define.
  4702. (lll_futex_wake_unlock): Define.
  4703. * sysdeps/unix/sysv/linux/alpha/lowlevellock.h (FUTEX_WAKE_OP,
  4704. FUTEX_OP_CLEAR_WAKE_IF_GT_ONE): Define.
  4705. (lll_futex_wake_unlock): Define.
  4706. * sysdeps/unix/sysv/linux/ia64/lowlevellock.h (FUTEX_WAKE_OP,
  4707. FUTEX_OP_CLEAR_WAKE_IF_GT_ONE): Define.
  4708. (lll_futex_wake_unlock): Define.
  4709. * sysdeps/unix/sysv/linux/s390/lowlevellock.h (FUTEX_WAKE_OP,
  4710. FUTEX_OP_CLEAR_WAKE_IF_GT_ONE): Define.
  4711. (lll_futex_wake_unlock): Define.
  4712. * sysdeps/unix/sysv/linux/sparc/lowlevellock.h (FUTEX_WAKE_OP,
  4713. FUTEX_OP_CLEAR_WAKE_IF_GT_ONE): Define.
  4714. (lll_futex_wake_unlock): Define.
  4715. * sysdeps/pthread/pthread_cond_signal.c (__pthread_cond_signal): Use
  4716. lll_futex_wake_unlock.
  4717. * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S
  4718. (FUTEX_WAKE_OP, FUTEX_OP_CLEAR_WAKE_IF_GT_ONE): Define.
  4719. (__pthread_cond_signal): Use FUTEX_WAKE_OP.
  4720. * sysdeps/unix/sysv/linux/x86_64/pthread_cond_signal.S
  4721. (FUTEX_WAKE_OP, FUTEX_OP_CLEAR_WAKE_IF_GT_ONE): Define.
  4722. (__pthread_cond_signal): Use FUTEX_WAKE_OP.
  4723. 2005-09-05 Kaz Kojima <kkojima@rr.iij4u.or.jp>
  4724. * sysdeps/unix/sysv/linux/sh/lowlevellock.S (__lll_mutex_lock_wait):
  4725. Fix typo in register name.
  4726. 2005-08-23 Ulrich Drepper <drepper@redhat.com>
  4727. * sysdeps/unix/sysv/linux/timer_routines.c (timer_helper_thread):
  4728. Use __sigfillset. Document that sigfillset does the right thing wrt
  4729. to SIGSETXID.
  4730. 2005-07-11 Jakub Jelinek <jakub@redhat.com>
  4731. [BZ #1102]
  4732. * sysdeps/pthread/pthread.h (PTHREAD_MUTEX_INITIALIZER,
  4733. PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP,
  4734. PTHREAD_ERRORCHECK_MUTEX_INITIALIZER_NP,
  4735. PTHREAD_MUTEX_ADAPTIVE_NP, PTHREAD_RWLOCK_INITIALIZER,
  4736. PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_NP,
  4737. PTHREAD_COND_INITIALIZER): Supply zeros for all fields
  4738. in the structure.
  4739. * Makefile (tests): Add tst-initializers1.
  4740. (CFLAGS-tst-initializers1.c): Set.
  4741. * tst-initializers1.c: New test.
  4742. 2005-07-11 Jakub Jelinek <jakub@redhat.com>
  4743. * sysdeps/unix/sysv/linux/alpha/bits/pthreadtypes.h (pthread_rwlock_t):
  4744. Make sure __flags are located at offset 48 from the start of the
  4745. structure.
  4746. 2005-07-02 Roland McGrath <roland@redhat.com>
  4747. * Makeconfig: Comment fix.
  4748. 2005-07-05 Jakub Jelinek <jakub@redhat.com>
  4749. * descr.h (PTHREAD_STRUCT_END_PADDING): Define.
  4750. * sysdeps/ia64/tls.h (TLS_PRE_TCB_SIZE): If PTHREAD_STRUCT_END_PADDING
  4751. is smaller than 8 bytes, increase TLS_PRE_TCB_SIZE by 16 bytes.
  4752. (THREAD_SYSINFO, THREAD_SELF, DB_THREAD_SELF): Don't assume
  4753. TLS_PRE_TCB_SIZE is sizeof (struct pthread).
  4754. (THREAD_SET_STACK_GUARD, THREAD_COPY_STACK_GUARD): Define.
  4755. * sysdeps/ia64/tcb-offsets.sym (PID, TID, MULTIPLE_THREADS_OFFSET):
  4756. Use TLS_PRE_TCB_SIZE instead of sizeof (struct pthread).
  4757. * sysdeps/unix/sysv/linux/ia64/createthread.c (TLS_VALUE): Don't
  4758. assume TLS_PRE_TCB_SIZE is sizeof (struct pthread).
  4759. 2005-06-25 Jakub Jelinek <jakub@redhat.com>
  4760. * sysdeps/i386/tls.h (tcbhead_t): Add stack_guard field.
  4761. (THREAD_SET_STACK_GUARD, THREAD_COPY_STACK_GUARD): Define.
  4762. * sysdeps/x86_64/tls.h (tcbhead_t): Add sysinfo and stack_guard
  4763. fields.
  4764. (THREAD_SET_STACK_GUARD, THREAD_COPY_STACK_GUARD): Define.
  4765. * sysdeps/s390/tls.h (tcbhead_t): Add stack_guard
  4766. field. Put in sysinfo field unconditionally.
  4767. (THREAD_SET_STACK_GUARD, THREAD_COPY_STACK_GUARD): Define.
  4768. * sysdeps/powerpc/tls.h (tcbhead_t): Add stack_guard field.
  4769. (THREAD_SET_STACK_GUARD, THREAD_COPY_STACK_GUARD): Define.
  4770. * sysdeps/sparc/tls.h (tcbhead_t): Add sysinfo and stack_guard
  4771. fields.
  4772. (THREAD_SET_STACK_GUARD, THREAD_COPY_STACK_GUARD): Define.
  4773. * pthread_create.c (__pthread_create_2_1): Use
  4774. THREAD_COPY_STACK_GUARD macro.
  4775. * Makefile: Add rules to build and run tst-stackguard1{,-static}
  4776. tests.
  4777. * tst-stackguard1.c: New file.
  4778. * tst-stackguard1-static.c: New file.
  4779. 2005-06-14 Alan Modra <amodra@bigpond.net.au>
  4780. * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h (PSEUDO):
  4781. Invoke CGOTSETUP and CGOTRESTORE.
  4782. (CGOTSETUP, CGOTRESTORE): Define.
  4783. 2005-05-29 Richard Henderson <rth@redhat.com>
  4784. * tst-cancel4.c (WRITE_BUFFER_SIZE): New.
  4785. (tf_write, tf_writev): Use it.
  4786. (do_test): Use socketpair instead of pipe. Set SO_SNDBUF to
  4787. the system minimum.
  4788. 2005-05-23 Jakub Jelinek <jakub@redhat.com>
  4789. * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h
  4790. [IS_IN_librt] (CENABLE, CDISABLE): Use JUMPTARGET instead of
  4791. __librt_*_asynccancel@local.
  4792. 2005-05-17 Alan Modra <amodra@bigpond.net.au>
  4793. * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h: Delete
  4794. all occurrences of JUMPTARGET. Instead append @local to labels.
  4795. 2005-05-20 Jakub Jelinek <jakub@redhat.com>
  4796. * sysdeps/i386/tls.h (TLS_INIT_TCB_SIZE, TLS_INIT_TCB_ALIGN): Define to
  4797. size/alignment of struct pthread rather than tcbhead_t.
  4798. * sysdeps/x86_64/tls.h (TLS_INIT_TCB_SIZE, TLS_INIT_TCB_ALIGN):
  4799. Likewise.
  4800. * sysdeps/s390/tls.h (TLS_INIT_TCB_SIZE, TLS_INIT_TCB_ALIGN):
  4801. Likewise.
  4802. * sysdeps/sparc/tls.h (TLS_INIT_TCB_SIZE, TLS_INIT_TCB_ALIGN):
  4803. Likewise.
  4804. 2005-05-19 Richard Henderson <rth@redhat.com>
  4805. * sysdeps/ia64/pthread_spin_lock.c (pthread_spin_lock): Use
  4806. __sync_val_compare_and_swap, not explicit _si variant.
  4807. * sysdeps/ia64/pthread_spin_trylock.c (pthread_spin_trylock): Likewise.
  4808. 2005-05-03 Ulrich Drepper <drepper@redhat.com>
  4809. [BZ #915]
  4810. * sysdeps/pthread/pthread.h: Avoid empty initializers.
  4811. 2005-05-03 Jakub Jelinek <jakub@redhat.com>
  4812. * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: Remove explicit
  4813. .eh_frame section, use cfi_* directives.
  4814. 2005-04-27 Jakub Jelinek <jakub@redhat.com>
  4815. * sysdeps/unix/sysv/linux/pthread_getcpuclockid.c: Use <> instead
  4816. of "" includes.
  4817. 2005-04-27 Ulrich Drepper <drepper@redhat.com>
  4818. [BZ #1075]
  4819. * tst-cancel17.c (do_test): Add arbitrary factor to make sure
  4820. aio_write blocks.
  4821. 2005-04-27 Roland McGrath <roland@redhat.com>
  4822. * Makefile (tests): Remove tst-clock2.
  4823. * sysdeps/unix/sysv/linux/timer_create.c (timer_create): Handle
  4824. CLOCK_PROCESS_CPUTIME_ID and CLOCK_PROCESS_THREAD_ID specially,
  4825. translating to the kernel clockid_t for our own process/thread clock.
  4826. * sysdeps/unix/sysv/linux/pthread_getcpuclockid.c: New file.
  4827. 2005-04-15 Jakub Jelinek <jakub@redhat.com>
  4828. * old_pthread_cond_init.c: Include <errno.h>.
  4829. (__pthread_cond_init_2_0): Fail with EINVAL if COND_ATTR is
  4830. process shared or uses clock other than CLOCK_REALTIME.
  4831. * pthread_cond_init.c (__pthread_cond_init): Remove bogus comment.
  4832. 2005-04-13 David S. Miller <davem@davemloft.net>
  4833. * sysdeps/sparc/sparc64/jmpbuf-unwind.h: New file.
  4834. * sysdeps/sparc/sparc64/clone.S: New file.
  4835. 2005-04-05 Jakub Jelinek <jakub@redhat.com>
  4836. [BZ #1102]
  4837. * sysdeps/pthread/pthread.h (__pthread_cleanup_routine): Use
  4838. __inline instead of inline.
  4839. * sysdeps/pthread/bits/libc-lock.h (__libc_cleanup_routine): Likewise.
  4840. 2005-03-31 Jakub Jelinek <jakub@redhat.com>
  4841. * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_unlock.S: Use
  4842. functionally equivalent, but shorter instructions.
  4843. * sysdeps/unix/sysv/linux/x86_64/pthread_cond_broadcast.S: Likewise.
  4844. * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Likewise.
  4845. * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedrdlock.S:
  4846. Likewise.
  4847. * sysdeps/unix/sysv/linux/x86_64/pthread_barrier_wait.S: Likewise.
  4848. * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_rdlock.S: Likewise.
  4849. * sysdeps/unix/sysv/linux/x86_64/sem_wait.S: Likewise.
  4850. * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_wrlock.S: Likewise.
  4851. * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: Likewise.
  4852. * sysdeps/unix/sysv/linux/x86_64/pthread_once.S: Likewise.
  4853. * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedwrlock.S:
  4854. Likewise.
  4855. * sysdeps/unix/sysv/linux/x86_64/pthread_cond_signal.S: Likewise.
  4856. * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
  4857. * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: Likewise.
  4858. * sysdeps/unix/sysv/linux/x86_64/sem_post.S: Likewise.
  4859. * sysdeps/unix/sysv/linux/x86_64/sem_timedwait.S: Likewise.
  4860. 2005-03-28 Daniel Jacobowitz <dan@codesourcery.com>
  4861. * sysdeps/mips/Makefile: New file.
  4862. * sysdeps/mips/nptl-sysdep.S: New file.
  4863. * sysdeps/mips/tcb-offsets.sym: New file.
  4864. * sysdeps/mips/pthread_spin_lock.S: New file.
  4865. * sysdeps/mips/pthread_spin_trylock.S: New file.
  4866. * sysdeps/mips/pthreaddef.h: New file.
  4867. * sysdeps/mips/tls.h: New file.
  4868. * sysdeps/mips/jmpbuf-unwind.h: New file.
  4869. * sysdeps/unix/sysv/linux/mips/lowlevellock.h: New file.
  4870. * sysdeps/unix/sysv/linux/mips/bits/pthreadtypes.h: New file.
  4871. * sysdeps/unix/sysv/linux/mips/bits/semaphore.h: New file.
  4872. * sysdeps/unix/sysv/linux/mips/pthread_once.c: New file.
  4873. * sysdeps/unix/sysv/linux/mips/fork.c: New file.
  4874. * sysdeps/unix/sysv/linux/mips/pt-vfork.S: New file.
  4875. * sysdeps/unix/sysv/linux/mips/vfork.S: New file.
  4876. * sysdeps/unix/sysv/linux/mips/clone.S: New file.
  4877. * sysdeps/unix/sysv/linux/mips/createthread.c: New file.
  4878. * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h: New file.
  4879. 2005-03-23 Ulrich Drepper <drepper@redhat.com>
  4880. [BZ #1112]
  4881. * pthread_create.c (__pthread_create_2_1): Rename syscall error
  4882. variable to scerr.
  4883. 2005-03-10 Jakub Jelinek <jakub@redhat.com>
  4884. * tst-getpid1.c (do_test): Align stack passed to clone{2,}.
  4885. 2005-02-25 Roland McGrath <roland@redhat.com>
  4886. * alloca_cutoff.c: Correct license text.
  4887. * tst-unload.c: Likewise.
  4888. * sysdeps/pthread/allocalim.h: Likewise.
  4889. * sysdeps/pthread/pt-initfini.c: Likewise.
  4890. * sysdeps/pthread/bits/libc-lock.h: Likewise.
  4891. * sysdeps/pthread/bits/sigthread.h: Likewise.
  4892. * sysdeps/unix/sysv/linux/bits/local_lim.h: Likewise.
  4893. * sysdeps/unix/sysv/linux/bits/posix_opt.h: Likewise.
  4894. 2005-02-16 Roland McGrath <roland@redhat.com>
  4895. * sysdeps/pthread/pthread-functions.h (struct pthread_functions):
  4896. Use unsigned int * for ptr_nthreads.
  4897. 2005-02-14 Alan Modra <amodra@bigpond.net.au>
  4898. [BZ #721]
  4899. * sysdeps/powerpc/tcb-offsets.sym (thread_offsetof): Redefine to suit
  4900. gcc4.
  4901. 2005-02-07 Richard Henderson <rth@redhat.com>
  4902. [BZ #787]
  4903. * sysdeps/pthread/pthread.h (__sigsetjmp): Use pointer as first
  4904. argument.
  4905. 2004-11-03 Marcus Brinkmann <marcus@gnu.org>
  4906. * sysdeps/generic/lowlevellock.h (__generic_mutex_unlock): Fix
  4907. order of arguments in invocation of atomic_add_zero.
  4908. 2005-01-26 Jakub Jelinek <jakub@redhat.com>
  4909. [BZ #737]
  4910. * sysdeps/unix/sysv/linux/i386/i486/sem_trywait.S (__new_sem_trywait):
  4911. Use direct %gs segment access or, if NO_TLS_DIRECT_SEG_REFS,
  4912. at least gotntpoff relocation and addition.
  4913. * sysdeps/unix/sysv/linux/i386/i486/sem_timedwait.S (sem_timedwait):
  4914. Likewise.
  4915. * sysdeps/unix/sysv/linux/i386/i486/sem_post.S (__new_sem_post):
  4916. Likewise.
  4917. * sysdeps/unix/sysv/linux/i386/i486/sem_wait.S (__new_sem_wait):
  4918. Likewise.
  4919. 2005-01-06 Ulrich Drepper <drepper@redhat.com>
  4920. * allocatestack.c (init_one_static_tls): Adjust initialization of DTV
  4921. entry for static tls deallocation fix.
  4922. * sysdeps/alpha/tls.h (dtv_t): Change pointer type to be struct which
  4923. also contains information whether the memory pointed to is static
  4924. TLS or not.
  4925. * sysdeps/i386/tls.h: Likewise.
  4926. * sysdeps/ia64/tls.h: Likewise.
  4927. * sysdeps/powerpc/tls.h: Likewise.
  4928. * sysdeps/s390/tls.h: Likewise.
  4929. * sysdeps/sh/tls.h: Likewise.
  4930. * sysdeps/sparc/tls.h: Likewise.
  4931. * sysdeps/x86_64/tls.h: Likewise.
  4932. 2004-12-27 Ulrich Drepper <drepper@redhat.com>
  4933. * init.c (__pthread_initialize_minimal_internal): Use __sigemptyset.
  4934. 2004-12-21 Jakub Jelinek <jakub@redhat.com>
  4935. * sysdeps/i386/tls.h (CALL_THREAD_FCT): Maintain 16 byte alignment of
  4936. %esp.
  4937. * Makefile (tests): Add tst-align2.
  4938. * tst-align2.c: New test.
  4939. * sysdeps/i386/Makefile (CFLAGS-tst-align{,2}.c): Add
  4940. -mpreferred-stack-boundary=4.
  4941. 2004-12-18 Roland McGrath <roland@redhat.com>
  4942. * sysdeps/unix/sysv/linux/powerpc/powerpc64/bits/local_lim.h:
  4943. New file removed withdrawn for the moment.
  4944. 2004-12-17 Richard Henderson <rth@redhat.com>
  4945. * sysdeps/unix/sysv/linux/alpha/clone.S: New file.
  4946. * sysdeps/alpha/tcb-offsets.sym (TID_OFFSET): New.
  4947. 2004-12-16 Ulrich Drepper <drepper@redhat.com>
  4948. * sysdeps/unix/sysv/linux/powerpc/powerpc64/bits/local_lim.h: New file.
  4949. Increased PTHREAD_STACK_MIN.
  4950. * tst-context1.c (stacks): Use bigger stack size.
  4951. 2004-12-16 Jakub Jelinek <jakub@redhat.com>
  4952. * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S: New file.
  4953. * sysdeps/sparc/tcb-offsets.sym: Add TID.
  4954. 2004-12-15 Jakub Jelinek <jakub@redhat.com>
  4955. * sysdeps/unix/sysv/linux/s390/s390-32/clone.S: New file.
  4956. * sysdeps/unix/sysv/linux/s390/s390-64/clone.S: New file.
  4957. * sysdeps/s390/tcb-offsets.sym (TID): Add.
  4958. 2004-12-15 Ulrich Drepper <drepper@redhat.com>
  4959. * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: New file.
  4960. 2004-12-14 Ulrich Drepper <drepper@redhat.com>
  4961. * sysdeps/powerpc/tcb-offsets.sym: Add TID.
  4962. * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: New file.
  4963. * tst-getpid1.c: If child crashes, report this first. Print which
  4964. signal.
  4965. 2004-12-09 Ulrich Drepper <drepper@redhat.com>
  4966. * init.c (__pthread_initialize_minimal_internal): Also unblock
  4967. SIGSETXID.
  4968. 2004-12-01 Jakub Jelinek <jakub@redhat.com>
  4969. * sysdeps/unix/sysv/linux/bits/posix_opt.h (_POSIX_CPUTIME,
  4970. _POSIX_THREAD_CPUTIME): Define to 0.
  4971. * sysdeps/pthread/timer_create.c (timer_create): Remove unused code
  4972. handling CLOCK_PROCESS_CPUTIME_ID and CLOCK_THREAD_CPUTIME_ID.
  4973. * sysdeps/pthread/timer_routines.c (__timer_signal_thread_pclk,
  4974. __timer_signal_thread_tclk): Remove.
  4975. (init_module): Remove their initialization.
  4976. (thread_cleanup): Remove their cleanup assertions.
  4977. * sysdeps/pthread/posix-timer.h (__timer_signal_thread_pclk,
  4978. __timer_signal_thread_tclk): Remove.
  4979. * sysdeps/unix/sysv/linux/i386/bits/posix_opt.h: Removed.
  4980. * sysdeps/unix/sysv/linux/ia64/bits/posix_opt.h: Removed.
  4981. * sysdeps/unix/sysv/linux/x86_64/bits/posix_opt.h: Removed.
  4982. 2004-12-07 Jakub Jelinek <jakub@redhat.com>
  4983. * sysdeps/ia64/tcb-offsets.sym (TID): Add.
  4984. * sysdeps/unix/sysv/linux/ia64/clone2.S: New file.
  4985. * Makefile (tests): Add tst-getpid2.
  4986. * tst-getpid1.c (TEST_CLONE_FLAGS): Define.
  4987. (do_test): Use it. Use __clone2 instead of clone on ia64.
  4988. * tst-getpid2.c: New test.
  4989. 2004-12-07 Kaz Kojima <kkojima@rr.iij4u.or.jp>
  4990. * sysdeps/unix/sysv/linux/sh/clone.S: New file.
  4991. 2004-12-04 Ulrich Drepper <drepper@redhat.com>
  4992. * Makefile (tests): Add tst-getpid1.
  4993. * tst-getpid1.c: New file.
  4994. * sysdeps/unix/sysv/linux/i386/clone.S: New file.
  4995. * sysdeps/unix/sysv/linux/x86_64/clone.S: New file.
  4996. 2004-12-02 Roland McGrath <roland@redhat.com>
  4997. * Makefile (libpthread-nonshared): Variable removed.
  4998. ($(objpfx)libpthread_nonshared.a): Target removed.
  4999. ($(inst_libdir)/libpthread_nonshared.a): Likewise.
  5000. These are now handled by generic magic from
  5001. libpthread-static-only-routines being set.
  5002. 2004-11-27 Ulrich Drepper <drepper@redhat.com>
  5003. * sysdeps/unix/sysv/linux/bits/posix_opt.h (_POSIX_PRIORITIZED_IO,
  5004. _POSIX2_CHAR_TERM, _POSIX_THREAD_PRIO_INHERIT,
  5005. _POSIX_THREAD_PRIO_PROTECT): Define.
  5006. * sysdeps/unix/sysv/linux/i386/bits/posix_opt.h: Likewise.
  5007. * sysdeps/unix/sysv/linux/ia64/bits/posix_opt.h: Likewise.
  5008. * sysdeps/unix/sysv/linux/x86_64/bits/posix_opt.h: Likewise.
  5009. 2004-11-26 Jakub Jelinek <jakub@redhat.com>
  5010. * sysdeps/unix/sysv/linux/bits/posix_opt.h (_POSIX_ADVISORY_INFO,
  5011. _POSIX_SPORADIC_SERVER, _POSIX_THREAD_SPORADIC_SERVER, _POSIX_TRACE,
  5012. _POSIX_TRACE_EVENT_FILTER, _POSIX_TRACE_INHERIT, _POSIX_TRACE_LOG,
  5013. _POSIX_TYPED_MEMORY_OBJECTS, _POSIX_IPV6, _POSIX_RAW_SOCKETS): Define.
  5014. * sysdeps/unix/sysv/linux/i386/bits/posix_opt.h: Likewise.
  5015. * sysdeps/unix/sysv/linux/ia64/bits/posix_opt.h: Likewise.
  5016. * sysdeps/unix/sysv/linux/x86_64/bits/posix_opt.h: Likewise.
  5017. 2004-11-24 Ulrich Drepper <drepper@redhat.com>
  5018. * sysdeps/x86_64/Makefile [nptl]: Define CFLAGS-pthread_create.c.
  5019. * Makefile (libpthread-routines): Add pthread_setschedprio.
  5020. * Versions [libpthread, GLIBC_2.3.4]: Add pthread_setschedprio.
  5021. * sysdeps/pthread/pthread.h: Declare pthread_setschedprio.
  5022. * pthread_setschedprio.c: New file.
  5023. 2004-11-20 Jakub Jelinek <jakub@redhat.com>
  5024. * pthread_create.c (pthread_cancel): Add PTHREAD_STATIC_FN_REQUIRE.
  5025. * pthread_cancel.c (pthread_create): Likewise.
  5026. * Makefile (libpthread-routines): Add vars.
  5027. * sysdeps/pthread/createthread.c (__pthread_multiple_threads): Remove.
  5028. * init.c (__default_stacksize, __is_smp): Remove.
  5029. * vars.c: New file.
  5030. * pthreadP.h (__find_thread_by_id): If !SHARED, add weak_function
  5031. and define a wrapper macro.
  5032. (PTHREAD_STATIC_FN_REQUIRE): Define.
  5033. * allocatestack.c (__find_thread_by_id): Undefine.
  5034. * pthread_create (__pthread_keys): Remove.
  5035. (pthread_mutex_lock, pthread_mutex_unlock, pthread_once,
  5036. pthread_key_create, pthread_setspecific, pthread_getspecific): Add
  5037. PTHREAD_STATIC_FN_REQUIRE.
  5038. 2004-11-18 Kaz Kojima <kkojima@rr.iij4u.or.jp>
  5039. * sysdeps/sh/tls.h (DB_THREAD_SELF): Set the correct bias
  5040. parameter to REGISTER macro.
  5041. 2004-11-17 Roland McGrath <roland@redhat.com>
  5042. * sysdeps/unix/sysv/linux/timer_routines.c (__start_helper_thread):
  5043. Make sure SIGCANCEL is blocked as well.
  5044. 2004-11-10 Jakub Jelinek <jakub@redhat.com>
  5045. * sysdeps/pthread/setxid.h: New file.
  5046. * sysdeps/pthread/pthread-functions.h (HAVE_PTR__NPTL_SETXID): Remove.
  5047. (struct xid_command): Add forward decl.
  5048. (struct pthread_functions): Change return type of __nptl_setxid hook
  5049. to int.
  5050. * pthreadP.h (__nptl_setxid): Change return type to int.
  5051. * allocatestack.c (__nptl_setxid): Call INTERNAL_SYSCALL_NCS in the
  5052. calling thread, return its return value and set errno on failure.
  5053. * descr.h (struct xid_command): Change id type to long array.
  5054. * Makefile: Add rules to build and test tst-setuid1 and
  5055. tst-setuid1-static.
  5056. * tst-setuid1.c: New test.
  5057. * tst-setuid1-static.c: New test.
  5058. 2004-11-10 Jakub Jelinek <jakub@redhat.com>
  5059. * Makefile (tests): Add tst-exit3.
  5060. * tst-exit3.c: New test.
  5061. 2004-11-09 Ulrich Drepper <drepper@redhat.com>
  5062. * Makefile (tests): Add tst-exit2.
  5063. * tst-exit2.c: New file.
  5064. 2004-11-09 Roland McGrath <roland@redhat.com>
  5065. [BZ #530]
  5066. * sysdeps/pthread/createthread.c (do_clone): Increment __nptl_nthreads
  5067. here, before calling clone.
  5068. * pthread_create.c (start_thread): Don't do it here.
  5069. 2004-11-02 Jakub Jelinek <jakub@redhat.com>
  5070. * sysdeps/unix/sysv/linux/smp.h: Include <errno.h>.
  5071. 2004-10-29 Kaz Kojima <kkojima@rr.iij4u.or.jp>
  5072. * sysdeps/unix/sysv/linux/sh/sem_timedwait.S (sem_timedwait):
  5073. Set ETIMEDOUT to errno when time is up. Tweak to avoid
  5074. assembler warning.
  5075. 2004-10-28 Jakub Jelinek <jakub@redhat.com>
  5076. * pthread_create.c (__pthread_create_2_1): Avoid leaking stacks
  5077. if sched_priority is not between minprio and maxprio.
  5078. 2004-10-25 Kaz Kojima <kkojima@rr.iij4u.or.jp>
  5079. * sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S
  5080. (__pthread_cond_timedwait): Use clock_gettime syscall if exists.
  5081. * sysdeps/unix/sysv/linux/sh/lowlevellock.S
  5082. (__lll_mutex_timedlock_wait): Fix a bad branch condition.
  5083. 2004-10-24 Ulrich Drepper <drepper@redhat.com>
  5084. * sysdeps/unix/sysv/linux/smp.h (is_smp_system): Use
  5085. not-cancelable I/O functions.
  5086. 2004-10-21 Kaz Kojima <kkojima@rr.iij4u.or.jp>
  5087. * sysdeps/unix/sysv/linux/sh/lowlevellock.S
  5088. (__lll_mutex_timedlock_wait): If woken but cannot get the lock,
  5089. make sure 2 is stored in the futex and we looked at the old value.
  5090. Fix a few other problems to return the correct value.
  5091. 2004-10-14 Richard Henderson <rth@redhat.com>
  5092. * sysdeps/alpha/tcb-offsets.sym (thread_offsetof): Redefine to
  5093. make gcc4 happy.
  5094. 2004-10-06 Jakub Jelinek <jakub@redhat.com>
  5095. * sysdeps/unix/sysv/linux/jmp-unwind.c: Include pthreadP.h instead
  5096. of pthread-functions.h and pthreaddef.h.
  5097. * sysdeps/unix/sysv/linux/s390/jmp-unwind.c: Likewise.
  5098. * sysdeps/unix/sysv/linux/x86_64/bits/pthreadtypes.h (pthread_cond_t):
  5099. Change __data.__nwaiters from int to unsigned int.
  5100. * tst-clock2.c (do_test): Don't fail if _POSIX_THREAD_CPUTIME == 0 and
  5101. sysconf (_SC_THREAD_CPUTIME) returns negative value.
  5102. * allocatestack.c (__find_thread_by_id): Move attribute_hidden
  5103. before return type.
  5104. * sysdeps/s390/jmpbuf-unwind.h: Include bits/wordsize.h.
  5105. (JMPBUF_CFA_UNWINDS_ADJ): Subtract 96 resp. 160 bytes from CFA.
  5106. 2004-10-06 Ulrich Drepper <drepper@redhat.com>
  5107. * tst-cancel4.c (tf_msgrcv): Check for failure in msgget. If the
  5108. test fails, remove message queue.
  5109. (tf_msgsnd): Likewise.
  5110. 2004-10-05 Jakub Jelinek <jakub@redhat.com>
  5111. * tst-clock1.c: Change #ifdef to #if defined.
  5112. * tst-clock2.c: Likewise.
  5113. * tst-cond11.c: Likewise.
  5114. * sysdeps/pthread/timer_create.c (timer_create): Use
  5115. defined _POSIX_CPUTIME && _POSIX_CPUTIME >= 0 instead of
  5116. defined CLOCK_PROCESS_CPUTIME_ID #ifs and similarly for
  5117. THREAD_CPUTIME.
  5118. 2004-10-05 Jakub Jelinek <jakub@redhat.com>
  5119. * sysdeps/unix/sysv/linux/x86_64/bits/posix_opt.h (_POSIX_CPUTIME,
  5120. _POSIX_THREAD_CPUTIME): Define to 0.
  5121. 2004-10-04 Ulrich Drepper <drepper@redhat.com>
  5122. * sysdeps/unix/sysv/linux/i386/bits/posix_opt.h: Define _POSIX_CPUTIME
  5123. and _POSIX_THREAD_CPUTIME to zero.
  5124. * sysdeps/unix/sysv/linux/ia64/bits/posix_opt.h: Likewise.
  5125. * tst-barrier2.c: Fix testing for POSIX feature.
  5126. * tst-clock1.c: Likewise.
  5127. * tst-clock2.c: Likewise.
  5128. * tst-cond11.c: Likewise.
  5129. * tst-cond4.c: Likewise.
  5130. * tst-cond6.c: Likewise.
  5131. * tst-flock2.c: Likewise.
  5132. * tst-mutex4.c: Likewise.
  5133. * tst-mutex9.c: Likewise.
  5134. * tst-rwlock12.c: Likewise.
  5135. * tst-rwlock4.c: Likewise.
  5136. * tst-signal1.c: Likewise.
  5137. * tst-spin2.c: Likewise.
  5138. * sysdeps/pthread/posix-timer.h: Likewise.
  5139. * sysdeps/pthread/timer_create.c: Likewise.
  5140. * sysdeps/pthread/timer_routines.c: Likewise.
  5141. 2004-10-01 Ulrich Drepper <drepper@redhat.com>
  5142. * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S
  5143. (__lll_mutex_timedlock_wait): Address futex correctly.
  5144. * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S
  5145. (__lll_mutex_timedlock_wait): If woken but cannot get the lock,
  5146. make sure 2 is stored in the futex and we looked at the old value.
  5147. * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S
  5148. (__lll_mutex_timedlock_wait): Likewise. Fix a few other problems
  5149. which might very well made the code not working at all before.
  5150. [BZ #417]
  5151. 2004-09-28 Ulrich Drepper <drepper@redhat.com>
  5152. * sysdeps/unix/sysv/linux/pthread_kill.c (__pthread_kill): Don't
  5153. allow SIGSETXID to be sent.
  5154. * sysdeps/pthread/sigaction.c (__sigaction): Don't allow action
  5155. for SIGSETXID to be defined.
  5156. * sysdeps/pthread/pthread_sigmask.c (pthread_sigmask): Make sure
  5157. SIGSETXID cannot be blocked.
  5158. * sysdeps/unix/sysv/linux/sh/bits/pthreadtypes.h (pthread_cond_t):
  5159. Add __extension__ to long long types.
  5160. * sysdeps/unix/sysv/linux/sparc/bits/pthreadtypes.h: Likewise.
  5161. * sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h: Likewise.
  5162. * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: Likewise.
  5163. * sysdeps/unix/sysv/linux/ia64/bits/pthreadtypes.h: Likewise.
  5164. * sysdeps/unix/sysv/linux/alpha/bits/pthreadtypes.h: Likewise.
  5165. * sysdeps/unix/sysv/linux/i386/bits/pthreadtypes.h: Likewise.
  5166. * sysdeps/unix/sysv/linux/x86_64/bits/pthreadtypes.h: Likewise.
  5167. 2004-09-25 Ulrich Drepper <drepper@redhat.com>
  5168. * descr.h (struct pthread): Add stopped_start field.
  5169. * sysdeps/pthread/createthread.c (create_thread): Set
  5170. start_stopped flag in descriptor for new thread appropriately.
  5171. * pthread_create.c (start_thread): Only take lock to be stopped on
  5172. startup if stopped_start flag says so.
  5173. 2004-09-24 Ulrich Drepper <drepper@redhat.com>
  5174. * pthread_create.c (__pthread_create_2_1): Remember whether thread
  5175. is created detached and if yes, do not try to free the stack in case
  5176. the thread creation failed.
  5177. * sysdeps/pthread/createthread.c (do_clone): Free stack here if clone
  5178. call fails. Don't depend on INTERNAL_SYSCALL_ERRNO return zero in
  5179. case there has been no error. [BZ #405]
  5180. * pthread_create.c (start_thread): Don't wait for scheduler data
  5181. etc to be set at the beginning of the function. The cancellation
  5182. infrastructure must have been set up. And enable async
  5183. cancellation before potentially going to sleep. [BZ #401]
  5184. 2004-09-20 Ulrich Drepper <drepper@redhat.com>
  5185. * Versions: Remove exports for pthread_set*id_np functions.
  5186. * sysdeps/pthread/pthread.h: Remove pthread_set*id_np prototypes
  5187. for now.
  5188. * Makefile: Don't build pthread_set*id code for now.
  5189. 2004-09-19 Ulrich Drepper <drepper@redhat.com>
  5190. * sysdeps/unix/sysv/linux/allocrtsig.c: Allocate second signal for
  5191. internal use.
  5192. * allocatestack.c (__nptl_setxid): New function.
  5193. * descr.h (struct xid_command): Define type.
  5194. * init.c (pthread_functions): Add ptr__nptl_setxid initialization.
  5195. (sighandler_setxid): New function.
  5196. (__pthread_initialize_minimal): Register sighandler_setxid for
  5197. SIGCANCEL.
  5198. * pt-allocrtsig.c: Update comment.
  5199. * pthreadP.h: Define SIGSETXID. Declare __xidcmd variable.
  5200. Declare __nptl_setxid.
  5201. * sysdeps/pthread/pthread-functions.h: Add ptr__nptl_setxid.
  5202. * sysdeps/pthread/pthread.h: Declare pthread_setgid_np,
  5203. pthread_setuid_np, pthread_setegid_np, pthread_seteuid_np,
  5204. pthread_setregid_np, pthread_setreuid_np, pthread_setresgid_np,
  5205. and pthread_setresuid_np.
  5206. * pthread_setgid_np.c: New file.
  5207. * pthread_setuid_np.c: New file.
  5208. * pthread_setegid_np.c: New file.
  5209. * pthread_seteuid_np.c: New file.
  5210. * pthread_setregid_np.c: New file.
  5211. * pthread_setreuid_np.c: New file.
  5212. * pthread_setresgid_np.c: New file.
  5213. * pthread_setresuid_np.c: New file.
  5214. * Versions [libpthread, GLIBC_2.3.4]: Add pthread_setgid_np,
  5215. pthread_setuid_np, pthread_setegid_np, pthread_seteuid_np,
  5216. pthread_setregid_np, pthread_setreuid_np, pthread_setresgid_np,
  5217. and pthread_setresuid_np.
  5218. * Makefile (libpthread-routines): Add pthread_setuid, pthread_seteuid,
  5219. pthread_setreuid, pthread_setresuid, pthread_setgid, pthread_setegid,
  5220. pthread_setregid, and pthread_setresgid.
  5221. 2004-09-18 Ulrich Drepper <drepper@redhat.com>
  5222. * allocatestack.c (allocate_stack): Return EAGAIN instead of
  5223. ENOMEM when out of memory.
  5224. 2004-09-10 Roland McGrath <roland@redhat.com>
  5225. [BZ #379]
  5226. * allocatestack.c (allocate_stack): Remove [__ASSUME_CLONE_STOPPED]
  5227. code, since we don't try to use the broken CLONE_STOPPED any more.
  5228. * pthread_create.c (start_thread): Likewise.
  5229. 2004-09-15 Richard Henderson <rth@redhat.com>
  5230. * sysdeps/unix/sysv/linux/alpha/vfork.S: Use libc_hidden_def.
  5231. 2004-09-01 David Mosberger <davidm@hpl.hp.com>
  5232. * sysdeps/unix/sysv/linux/ia64/jmpbuf-unwind.h
  5233. (__libc_unwind_longjmp): Delete macro and declare as function.
  5234. * sysdeps/unix/sysv/linux/ia64/Makefile (sysdep_routines): Mention
  5235. __ia64_longjmp, sigstack_longjmp, and __sigstack_longjmp for
  5236. nptl directory.
  5237. * sysdeps/unix/sysv/linux/ia64/__ia64_longjmp.S: New file.
  5238. * sysdeps/unix/sysv/linux/ia64/__sigstack_longjmp.c: New file.
  5239. * sysdeps/unix/sysv/linux/ia64/unwind_longjmp.c: New file.
  5240. 2004-09-12 Ulrich Drepper <drepper@redhat.com>
  5241. * sysdeps/pthread/pthread.h: Make rwlock prototypes available also
  5242. for __USE_XOPEN2K.
  5243. * sysdeps/unix/sysv/linux/alpha/bits/pthreadtypes.h: Define rwlock
  5244. types also for __USE_XOPEN2K.
  5245. * sysdeps/unix/sysv/linux/i386/bits/pthreadtypes.h: Likewise.
  5246. * sysdeps/unix/sysv/linux/ia64/bits/pthreadtypes.h: Likewise.
  5247. * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: Likewise.
  5248. * sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h: Likewise.
  5249. * sysdeps/unix/sysv/linux/sh/bits/pthreadtypes.h: Likewise.
  5250. * sysdeps/unix/sysv/linux/sparc/bits/pthreadtypes.h: Likewise.
  5251. * sysdeps/unix/sysv/linux/x86_64/bits/pthreadtypes.h: Likewise.
  5252. [BZ #320]
  5253. 2004-09-08 Ulrich Drepper <drepper@redhat.com>
  5254. * sysdeps/pthread/pthread.h
  5255. (PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP): Make safe for C++.
  5256. (PTHREAD_ERRORCHECK_MUTEX_INITIALIZER_NP): Likewise.
  5257. (PTHREAD_ADAPTIVE_MUTEX_INITIALIZER_NP): Likewise.
  5258. (PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_NP): Likewise.
  5259. [BZ #375]
  5260. 2004-09-07 Ulrich Drepper <drepper@redhat.com>
  5261. * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: Allow
  5262. PSEUDO to be used with . prefix.
  5263. * sysdeps/unix/sysv/linux/alpha/pthread_once.c (__pthread_once):
  5264. Use atomic_increment instead of atomic_exchange_and_add.
  5265. * sysdeps/unix/sysv/linux/sparc/pthread_once.c (__pthread_once):
  5266. Likewise.
  5267. * sysdeps/unix/sysv/linux/ia64/pthread_once.c (__pthread_once):
  5268. Likewise.
  5269. * sysdeps/unix/sysv/linux/powerpc/pthread_once.c (__pthread_once):
  5270. Likewise.
  5271. * allocatestack.c (allocate_stack): Use atomic_increment_val
  5272. instead of atomic_exchange_and_add.
  5273. * sysdeps/unix/sysv/linux/sem_post.c (__new_sem_post): Likewise.
  5274. * sysdeps/unix/sysv/linux/powerpc/sem_post.c (__new_sem_post):
  5275. Likewise.
  5276. * sysdeps/pthread/pthread_barrier_wait.c (pthread_barrier_wait):
  5277. Likewise.
  5278. * sysdeps/pthread/pthread.h (pthread_once): Remove __THROW since
  5279. the initialization function might throw.
  5280. 2005-09-05 Richard Henderson <rth@redhat.com>
  5281. * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h (SINGLE_THREAD_P):
  5282. Move definition inside libpthread, libc, librt check. Provide
  5283. definition for rtld.
  5284. 2004-09-02 Ulrich Drepper <drepper@redhat.com>
  5285. * sysdeps/alpha/jmpbuf-unwind.h: Define __libc_unwind_longjmp.
  5286. * sysdeps/i386/jmpbuf-unwind.h: Likewise
  5287. * sysdeps/powerpc/jmpbuf-unwind.h: Likewise.
  5288. * sysdeps/s390/jmpbuf-unwind.h: Likewise.
  5289. * sysdeps/sh/jmpbuf-unwind.h: Likewise.
  5290. * sysdeps/sparc/sparc32/jmpbuf-unwind.h: Likewise.
  5291. * sysdeps/unix/sysv/linux/ia64/jmpbuf-unwind.h: Likewise.
  5292. * sysdeps/x86_64/jmpbuf-unwind.h: Likewise.
  5293. * unwind.c: Use it.
  5294. * sysdeps/unix/sysv/linux/i386/bits/pthreadtypes.h (pthread_cond_t):
  5295. Rename __data.__clock to __data.__nwaiters, make it unsigned int.
  5296. * sysdeps/unix/sysv/linux/x86_64/bits/pthreadtypes.h (pthread_cond_t):
  5297. Likewise.
  5298. * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S:
  5299. Decrement __nwaiters. If pthread_cond_destroy has been called and
  5300. this is the last waiter, signal pthread_cond_destroy caller and
  5301. avoid using the pthread_cond_t structure after unlock.
  5302. * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: Likewise.
  5303. * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: Likewise.
  5304. Read clock type from the least significant bits of __nwaiters instead
  5305. of __clock.
  5306. * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: Likewise.
  5307. * sysdeps/unix/sysv/linux/internaltypes.h: Define COND_CLOCK_BITS.
  5308. 2004-08-31 Jakub Jelinek <jakub@redhat.com>
  5309. [BZ #342]
  5310. * Makefile (tests): Add tst-cond20 and tst-cond21.
  5311. * tst-cond20.c: New test.
  5312. * tst-cond21.c: New test.
  5313. * sysdeps/unix/sysv/linux/alpha/bits/pthreadtypes.h
  5314. (pthread_cond_t): Rename __data.__clock to __data.__nwaiters, make
  5315. it unsigned int.
  5316. * sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h (pthread_cond_t):
  5317. Likewise.
  5318. * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h
  5319. (pthread_cond_t): Likewise.
  5320. * sysdeps/unix/sysv/linux/sparc/bits/pthreadtypes.h (pthread_cond_t):
  5321. Likewise.
  5322. * sysdeps/unix/sysv/linux/sh/bits/pthreadtypes.h (pthread_cond_t):
  5323. Likewise.
  5324. * sysdeps/unix/sysv/linux/ia64/bits/pthreadtypes.h (pthread_cond_t):
  5325. Likewise.
  5326. * sysdeps/unix/sysv/linux/lowlevelcond.sym (cond_clock): Remove.
  5327. (cond_nwaiters): New.
  5328. (clock_bits): New.
  5329. * pthread_cond_destroy.c (__pthread_cond_destroy): Return EBUSY
  5330. if there are waiters not signalled yet.
  5331. Wait until all already signalled waiters wake up.
  5332. * sysdeps/pthread/pthread_cond_wait.c (__condvar_cleanup): Decrement
  5333. __nwaiters. If pthread_cond_destroy has been called and this is the
  5334. last waiter, signal pthread_cond_destroy caller and avoid using
  5335. the pthread_cond_t structure after unlock.
  5336. (__pthread_cond_wait): Increment __nwaiters in the beginning,
  5337. decrement it when leaving. If pthread_cond_destroy has been called
  5338. and this is the last waiter, signal pthread_cond_destroy caller.
  5339. * sysdeps/pthread/pthread_cond_timedwait.c (__pthread_cond_timedwait):
  5340. Likewise. Read clock type from the least significant bits of
  5341. __nwaiters instead of __clock.
  5342. * pthread_condattr_setclock.c (pthread_condattr_setclock): Check
  5343. whether clock ID can be encoded in COND_CLOCK_BITS bits.
  5344. * pthread_condattr_getclock.c (pthread_condattr_getclock): Decode
  5345. clock type just from the last COND_CLOCK_BITS bits of value.
  5346. * pthread_cond_init.c (__pthread_cond_init): Initialize __nwaiters
  5347. instead of __clock, just from second bit of condattr's value.
  5348. 2004-08-30 Jakub Jelinek <jakub@redhat.com>
  5349. * sysdeps/unix/sysv/linux/x86_64/bits/pthreadtypes.h: Include
  5350. bits/wordsize.h. Make the header match i386 header when __WORDSIZE
  5351. != 64.
  5352. * sysdeps/unix/sysv/linux/x86_64/bits/semaphore.h: Likewise.
  5353. 2004-08-15 Roland McGrath <roland@frob.com>
  5354. * pthread_atfork.c: Update copyright terms including special exception
  5355. for these trivial files, which are statically linked into executables
  5356. that use dynamic linking for the significant library code.
  5357. 2004-08-09 Jakub Jelinek <jakub@redhat.com>
  5358. * DESIGN-rwlock.txt: Add decreasing of nr_readers_queued to
  5359. pthread_rwlock_rdlock.
  5360. * sysdeps/pthread/pthread_rwlock_rdlock (__pthread_rwlock_rdlock):
  5361. Decrease __nr_readers_queued after reacquiring lock.
  5362. * sysdeps/pthread/pthread_rwlock_timedrdlock
  5363. (pthread_rwlock_timedrdlock): Likewise.
  5364. Reported by Bob Cook <bobcook47@hotmail.com>.
  5365. 2004-08-11 Jakub Jelinek <jakub@redhat.com>
  5366. * tst-rwlock14.c (tf): Read main thread handle from *ARG
  5367. before pthread_barrier_wait.
  5368. 2004-08-07 Ulrich Drepper <drepper@redhat.com>
  5369. * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S:
  5370. Remove unnecessary exception handling data.
  5371. 2004-07-23 Jakub Jelinek <jakub@redhat.com>
  5372. [BZ #284]
  5373. * sysdeps/pthread/pthread.h (pthread_getcpuclockid): Use __clockid_t
  5374. instead of clockid_t.
  5375. 2004-07-21 Roland McGrath <roland@redhat.com>
  5376. * Makefile ($(objpfx)multidir.mk): Use $(make-target-directory).
  5377. 2004-07-19 Roland McGrath <roland@redhat.com>
  5378. * tst-cancel4.c (tf_waitid): Use WEXITED flag bit if available.
  5379. 2004-07-02 Roland McGrath <roland@redhat.com>
  5380. * configure: Don't exit.
  5381. 2004-07-14 Kaz Kojima <kkojima@rr.iij4u.or.jp>
  5382. * sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S
  5383. (__pthread_cond_timedwait): Check for invalid nanosecond in
  5384. timeout value.
  5385. 2004-07-07 Ulrich Drepper <drepper@redhat.com>
  5386. * Makefile: Add rules to build and run tst-fini1.
  5387. * tst-fini1.c: New file.
  5388. * tst-fini1mod.c: New file.
  5389. 2004-07-05 Ulrich Drepper <drepper@redhat.com>
  5390. * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: Define NO_CANCELLATION
  5391. if no cancellation support is needed.
  5392. * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h: Likewise.
  5393. * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Likewise.
  5394. * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Likewise.
  5395. * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h: Likewise.
  5396. * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: Likewise.
  5397. * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: Likewise.
  5398. * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: Likewise.
  5399. * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Likewise.
  5400. * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Likewise.
  5401. * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Define __NR_futex
  5402. only if not already defined.
  5403. 2004-07-05 Jakub Jelinek <jakub@redhat.com>
  5404. * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (lll_unlock): Use
  5405. constraint "m" instead of "0" for futex.
  5406. * shlib-versions: Add powerpc64-.*-linux.*.
  5407. 2004-07-04 Jakub Jelinek <jakub@redhat.com>
  5408. * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedrdlock.S
  5409. (pthread_rwlock_timedrdlock): Use cmpq instead of cmpl to check
  5410. for valid tv_nsec.
  5411. * tst-rwlock14.c (do_test): Test for invalid tv_nsec equal to
  5412. 1 billion and 64-bit tv_nsec which is valid when truncated to 32
  5413. bits.
  5414. 2004-06-29 Roland McGrath <roland@redhat.com>
  5415. * Banner: NPTL no longer has its own version number.
  5416. * Makefile (nptl-version): Variable removed.
  5417. * sysdeps/pthread/Makefile (CFLAGS-confstr.c): Set LIBPTHREAD_VERSION
  5418. using $(version), the glibc version number.
  5419. 2004-06-29 Kaz Kojima <kkojima@rr.iij4u.or.jp>
  5420. * sysdeps/unix/sysv/linux/sh/pthread_once.S (__pthread_once):
  5421. Fix branch offset for a PLT entry.
  5422. * sysdeps/unix/sysv/linux/sh/sem_post.S (__new_sem_post):
  5423. Likewise.
  5424. * sysdeps/unix/sysv/linux/sh/sem_timedwait.S (sem_timedwait):
  5425. Likewise.
  5426. * sysdeps/unix/sysv/linux/sh/sem_trywait.S (__new_sem_trywait):
  5427. Likewise.
  5428. * sysdeps/unix/sysv/linux/sh/sem_wait.S (__new_sem_wait):
  5429. Likewise.
  5430. 2004-06-28 Jakub Jelinek <jakub@redhat.com>
  5431. * sysdeps/alpha/tcb-offsets.sym (MULTIPLE_THREADS_OFFSET): Define
  5432. unconditionally.
  5433. 2004-06-28 Jakub Jelinek <jakub@redhat.com>
  5434. * sysdeps/pthread/pthread_rwlock_timedwrlock.c
  5435. (pthread_rwlock_timedwrlock): Return EINVAL if tv_nsec is negative,
  5436. instead of tv_sec.
  5437. * sysdeps/pthread/pthread_rwlock_timedrdlock.c
  5438. (pthread_rwlock_timedrdlock): Likewise.
  5439. 2004-06-22 Jakub Jelinek <jakub@redhat.com>
  5440. * sysdeps/unix/sysv/linux/s390/lowlevellock.h (lll_futex_requeue):
  5441. Set __r7 to val, not mutex.
  5442. 2004-06-27 Ulrich Drepper <drepper@redhat.com>
  5443. * Makefile: Add rules to build tst-rwlock14.
  5444. * tst-rwlock14.c: New file.
  5445. 2004-06-24 Boris Hu <boris.hu@intel.com>
  5446. * sysdeps/pthread/pthread_rwlock_timedrdlock.c: Add timeout validation
  5447. check.
  5448. * sysdeps/pthread/pthread_rwlock_timedwrlock.c: Likewise.
  5449. 2004-06-19 Andreas Jaeger <aj@suse.de>
  5450. * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: Fix
  5451. assembler in last patch.
  5452. 2004-06-17 Ulrich Drepper <drepper@redhat.com>
  5453. * sysdeps/pthread/pthread_cond_timedwait.c
  5454. (__pthread_cond_timedwait): Also check for negativ nanoseconds.
  5455. * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S
  5456. (__pthread_cond_timedwait): Check for invalid nanosecond in
  5457. timeout value.
  5458. * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: Likewise.
  5459. * tst-cond19.c: New file.
  5460. * Makefile: Add rules to build and run tst-cond19.
  5461. 2004-06-15 Steven Munroe <sjmunroe@us.ibm.com>
  5462. * tst-context1.c (GUARD_PATTERN): Defined.
  5463. (tst_context_t): Define struct containing ucontext_t & guard words.
  5464. (ctx): Declare as an array of tst_context_t.
  5465. (fct): Verify uc_link & guard words are still valid.
  5466. (tf): Initialize guard words in ctx. Adjust ctx refs for new struct.
  5467. 2004-06-13 Kaz Kojima <kkojima@rr.iij4u.or.jp>
  5468. * sysdeps/unix/sysv/linux/sh/bits/pthreadtypes.h (pthread_cond_t):
  5469. Add __data.__futex field, reshuffle __data.__clock.
  5470. * sysdeps/unix/sysv/linux/sh/pthread_cond_signal.S
  5471. (__pthread_cond_signal): Increment __futex at the same time as
  5472. __wakeup_seq or __total_seq. Pass address of __futex instead of
  5473. address of low 32-bits of __wakeup_seq to futex syscall.
  5474. * sysdeps/unix/sysv/linux/sh/pthread_cond_wait.S
  5475. (__pthread_cond_wait): Likewise. Pass __futex value from before
  5476. releasing internal lock to FUTEX_WAIT.
  5477. * sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S
  5478. (__pthread_cond_timedwait): Likewise.
  5479. * sysdeps/unix/sysv/linux/sh/pthread_cond_broadcast.S
  5480. (FUTEX_CMP_REQUEUE): Define.
  5481. (__pthread_cond_broadcast): Set __futex to 2 * __total_seq.
  5482. Use FUTEX_CMP_REQUEUE operation instead of FUTEX_REQUEUE.
  5483. Pass __futex value from before the unlock and __futex address instead
  5484. of address of low 32-bits of __wakeup_seq to futex syscall.
  5485. Fallback to FUTEX_WAKE all on any errors.
  5486. 2004-06-08 Jakub Jelinek <jakub@redhat.com>
  5487. * pthread_mutexattr_getpshared.c (pthread_mutex_getpshared): Fix
  5488. comment typo.
  5489. * pthread_mutexattr_gettype.c (pthread_mutexattr_gettype): Likewise.
  5490. * pthread_mutexattr_init.c (__pthread_mutexattr_init): Likewise.
  5491. * pthread_mutexattr_settype.c (__pthread_mutexattr_settype): Likewise.
  5492. * pthread_mutexattr_setpshared.c (pthread_mutexattr_setpshared):
  5493. Likewise. Reported by Bob Cook <bobcook47@hotmail.com>.
  5494. 2004-06-11 Martin Schwidefsky <schwidefsky@de.ibm.com>
  5495. * sysdeps/unix/sysv/linux/s390/lowlevellock.h (lll_compare_and_swap):
  5496. Add memory clobber to inline assembly.
  5497. (__lll_mutex_trylock): Likewise.
  5498. (__lll_mutex_cond_trylock): Likewise.
  5499. 2004-06-07 Martin Schwidefsky <schwidefsky@de.ibm.com>
  5500. * sysdeps/unix/sysv/linux/s390/lowlevellock.h (lll_futex_requeue):
  5501. Pass val argument as 6th system call argument in %r7.
  5502. 2004-05-21 Jakub Jelinek <jakub@redhat.com>
  5503. * Makefile (tests): Add tst-cond16.
  5504. * sysdeps/unix/sysv/linux/lowlevelcond.sym (cond_futex): Add.
  5505. * pthread_cond_init.c (__pthread_cond_init): Clear __data.__futex.
  5506. * sysdeps/unix/sysv/linux/i386/bits/pthreadtypes.h (pthread_cond_t):
  5507. Add __data.__futex field, reshuffle __data.__clock.
  5508. * sysdeps/unix/sysv/linux/i386/pthread_cond_signal.S
  5509. (__pthread_cond_signal): Increment __futex at the same time as
  5510. __wakeup_seq or __total_seq. Pass address of __futex instead of
  5511. address of low 32-bits of __wakeup_seq to futex syscall.
  5512. * sysdeps/unix/sysv/linux/i386/pthread_cond_wait.S
  5513. (__pthread_cond_wait): Likewise. Pass __futex value from before
  5514. releasing internal lock to FUTEX_WAIT.
  5515. * sysdeps/unix/sysv/linux/i386/pthread_cond_timedwait.S
  5516. (__pthread_cond_timedwait): Likewise.
  5517. * sysdeps/unix/sysv/linux/i386/pthread_cond_broadcast.S
  5518. (FUTEX_CMP_REQUEUE): Define.
  5519. (__pthread_cond_broadcast): Set __futex to 2 * __total_seq.
  5520. Use FUTEX_CMP_REQUEUE operation instead of FUTEX_REQUEUE.
  5521. Pass __futex value from before the unlock and __futex address instead
  5522. of address of low 32-bits of __wakeup_seq to futex syscall.
  5523. Fallback to FUTEX_WAKE all on any errors.
  5524. * sysdeps/unix/sysv/linux/alpha/lowlevellock.h (FUTEX_CMP_REQUEUE):
  5525. Define.
  5526. (lll_futex_requeue): Add val argument, use FUTEX_CMP_REQUEUE
  5527. internally. Return non-zero if error, zero if success.
  5528. * sysdeps/unix/sysv/linux/alpha/bits/pthreadtypes.h (pthread_cond_t):
  5529. Add __data.__futex field, reshuffle __data.__clock.
  5530. * sysdeps/unix/sysv/linux/s390/lowlevellock.h (FUTEX_CMP_REQUEUE):
  5531. Define.
  5532. (lll_futex_requeue): Add val argument, return 1 unconditionally
  5533. for the time being.
  5534. * sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h (pthread_cond_t):
  5535. Add __data.__futex field, reshuffle __data.__clock.
  5536. * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h (FUTEX_CMP_REQUEUE):
  5537. Define.
  5538. (lll_futex_requeue): Add val argument, use FUTEX_CMP_REQUEUE
  5539. internally. Return non-zero if error, zero if success.
  5540. * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h
  5541. (pthread_cond_t): Add __data.__futex field, reshuffle __data.__clock.
  5542. * sysdeps/unix/sysv/linux/sparc/lowlevellock.h (FUTEX_CMP_REQUEUE):
  5543. Define.
  5544. (lll_futex_requeue): Add val argument, use FUTEX_CMP_REQUEUE
  5545. internally. Return non-zero if error, zero if success.
  5546. * sysdeps/unix/sysv/linux/sparc/bits/pthreadtypes.h (pthread_cond_t):
  5547. Add __data.__futex field, reshuffle __data.__clock.
  5548. * sysdeps/unix/sysv/linux/ia64/lowlevellock.h (FUTEX_CMP_REQUEUE):
  5549. Define.
  5550. (lll_futex_requeue): Add val argument, use FUTEX_CMP_REQUEUE
  5551. internally. Return non-zero if error, zero if success.
  5552. * sysdeps/unix/sysv/linux/ia64/bits/pthreadtypes.h (pthread_cond_t):
  5553. Add __data.__futex field, reshuffle __data.__clock.
  5554. * sysdeps/unix/sysv/linux/x86_64/bits/pthreadtypes.h (pthread_cond_t):
  5555. Add __data.__futex field, reshuffle __data.__clock.
  5556. * sysdeps/pthread/pthread_cond_signal.c (__pthread_cond_signal):
  5557. Increment __futex at the same time as __wakeup_seq or __total_seq.
  5558. Pass address of __futex instead of address of low 32-bits of
  5559. __wakeup_seq to futex syscall.
  5560. * sysdeps/pthread/pthread_cond_wait.c (__pthread_cond_wait): Likewise.
  5561. Pass __futex value from before releasing internal lock
  5562. to FUTEX_WAIT.
  5563. * sysdeps/pthread/pthread_cond_timedwait.c (__pthread_cond_timedwait):
  5564. Likewise. Avoid unnecessary shadowing of variables.
  5565. * sysdeps/pthread/pthread_cond_broadcast.c (__pthread_cond_broadcast):
  5566. Set __futex to 2 * __total_seq. Pass __futex value from before the
  5567. unlock and __futex address instead of address of low 32-bits of
  5568. __wakeup_seq to futex_requeue macro, adjust for new return value
  5569. meaning.
  5570. * sysdeps/unix/sysv/linux/x86_64/pthread_cond_signal.S
  5571. (__pthread_cond_signal): Increment __futex at the same time as
  5572. __wakeup_seq or __total_seq. Pass address of __futex instead of
  5573. address of low 32-bits of __wakeup_seq to futex syscall.
  5574. * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S
  5575. (__pthread_cond_wait): Likewise. Pass __futex value from before
  5576. releasing internal lock to FUTEX_WAIT.
  5577. * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S
  5578. (__pthread_cond_timedwait): Likewise.
  5579. * sysdeps/unix/sysv/linux/x86_64/pthread_cond_broadcast.S
  5580. (FUTEX_CMP_REQUEUE): Define.
  5581. (__pthread_cond_broadcast): Set __futex to 2 * __total_seq.
  5582. Use FUTEX_CMP_REQUEUE operation instead of FUTEX_REQUEUE.
  5583. Pass __futex value from before the unlock and __futex address instead
  5584. of address of low 32-bits of __wakeup_seq to futex syscall.
  5585. Fallback to FUTEX_WAKE all on any errors.
  5586. 2004-06-03 Kaz Kojima <kkojima@rr.iij4u.or.jp>
  5587. * sysdeps/unix/sysv/linux/sh/lowlevellock.h (lll_mutex_lock):
  5588. Add nop to align the end of critical section.
  5589. (lll_mutex_cond_lock, lll_mutex_timedlock): Likewise.
  5590. 2004-06-01 Kaz Kojima <kkojima@rr.iij4u.or.jp>
  5591. * sysdeps/unix/sysv/linux/sh/bits/pthreadtypes.h (pthread_cond_t):
  5592. Add __broadcast_seq field.
  5593. * sysdeps/unix/sysv/linux/sh/pthread_cond_broadcast.S: Mark
  5594. all waiters as woken with woken_seq and bump broadcast counter.
  5595. * sysdeps/unix/sysv/linux/sh/pthread_cond_wait.S: Use new
  5596. __broadcast_seq. Increment __woken_seq correctly when cleanuped.
  5597. * sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S: Likewise.
  5598. Comment typo fixes. Avoid returning -ETIMEDOUT.
  5599. 2004-06-01 Ulrich Drepper <drepper@redhat.com>
  5600. * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S
  5601. (__condvar_tw_cleanup): Fix access to saved broadcast_seq value.
  5602. Reported by Kaz Kojima.
  5603. 2004-05-25 Jakub Jelinek <jakub@redhat.com>
  5604. * sysdeps/unix/sysv/linux/aio_misc.h: New file.
  5605. 2004-05-21 Jakub Jelinek <jakub@redhat.com>
  5606. * sysdeps/pthread/pthread_cond_wait.c (__pthread_cond_wait): Compare
  5607. __broadcast_seq with bc_seq after acquiring internal lock instead of
  5608. before it.
  5609. 2004-05-18 Jakub Jelinek <jakub@redhat.com>
  5610. * Makefile (.NOTPARALLEL): Only serialize make check/xcheck, not
  5611. compilation.
  5612. * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S
  5613. (__pthread_cond_timedwait): Avoid returning -ETIMEDOUT.
  5614. * sysdeps/unix/sysv/linux/x86_64/bits/pthreadtypes.h
  5615. (pthread_cond_t): Add __data.__broadcast_seq field.
  5616. * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S
  5617. (FRAME_SIZE): Define.
  5618. (__pthread_cond_timedwait): Use it. Store/check broadcast_seq.
  5619. Comment typo fixes.
  5620. * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S (FRAME_SIZE):
  5621. Define.
  5622. (__pthread_cond_wait): Use it. Store/check broadcast_seq. Comment
  5623. typo fixes.
  5624. * sysdeps/unix/sysv/linux/x86_64/pthread_cond_broadcast.S
  5625. (__pthread_cond_broadcast): Increment broadcast_seq. Comment typo
  5626. fixes.
  5627. 2004-05-18 Ulrich Drepper <drepper@redhat.com>
  5628. * sysdeps/unix/sysv/linux/lowlevelcond.sym: Add broadcast_seq entry.
  5629. * sysdeps/unix/sysv/linux/alpha/bits/pthreadtypes.h (pthread_cond_t):
  5630. Add __broadcast_seq field.
  5631. * sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h: Likewise.
  5632. * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: Likewise.
  5633. * sysdeps/unix/sysv/linux/sparc/bits/pthreadtypes.h: Likewise.
  5634. * sysdeps/unix/sysv/linux/i386/bits/pthreadtypes.h: Likewise.
  5635. * sysdeps/unix/sysv/linux/ia64/bits/pthreadtypes.h: Likewise.
  5636. * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_broadcast.S: Mark
  5637. all waiters as woken with woken_seq and bump broadcast counter.
  5638. * sysdeps/pthread/pthread_cond_broadcast.c: Likewise.
  5639. * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Use new
  5640. __broadcast_seq field.
  5641. * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: Likewise.
  5642. * sysdeps/pthread/pthread_cond_wait.c: Likewise.
  5643. * sysdeps/pthread/pthread_cond_timedwait.c: Likewise.
  5644. * pthread_cond_init.c: Initialize __broadcast_seq field.
  5645. * Makefile (tests): Add tst-cond17 and tst-cond18.
  5646. Add .NOTPARALLEL goal.
  5647. * tst-cond16.c: New file. From Jakub.
  5648. * tst-cond17.c: New file. From Jakub.
  5649. * tst-cond18.c: New file. From Jakub.
  5650. 2004-05-16 Ulrich Drepper <drepper@redhat.com>
  5651. * sysdeps/unix/sysv/linux/i386/i486/sem_timedwait.S: Correct some
  5652. unwind info.
  5653. * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S:
  5654. Parametrize frame size. Correct some unwind info.
  5655. * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: Likewise.
  5656. 2004-05-04 Jakub Jelinek <jakub@redhat.com>
  5657. * tst-stack3.c: Note testing functionality beyond POSIX.
  5658. 2004-05-04 Jakub Jelinek <jakub@redhat.com>
  5659. * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (USE___THREAD):
  5660. Change conditional from ifdef to if.
  5661. 2004-04-23 Jakub Jelinek <jakub@redhat.com>
  5662. * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (SYSDEP_CANCEL_ERRNO,
  5663. SYSDEP_CANCEL_ERROR): Define.
  5664. (PSEUDO): Use it.
  5665. 2004-05-01 Jakub Jelinek <jakub@redhat.com>
  5666. * Versions (libpthread): Remove __pthread_cleanup_upto@@GLIBC_PRIVATE.
  5667. 2004-04-20 Jakub Jelinek <jakub@redhat.com>
  5668. * sem_unlink.c (sem_unlink): Change EPERM into EACCES.
  5669. 2004-04-19 Kaz Kojima <kkojima@rr.iij4u.or.jp>
  5670. * sysdeps/unix/sysv/linux/sh/sem_timedwait.S: Add frame info.
  5671. Use HIDDEN_JUMPTARGET to jump to __pthread_unwind.
  5672. * sysdeps/unix/sysv/linux/sh/sem_wait.S: Remove unneeded frame
  5673. info. Use HIDDEN_JUMPTARGET to jump to __pthread_unwind.
  5674. 2004-04-19 Ulrich Drepper <drepper@redhat.com>
  5675. * sysdeps/unix/sysv/linux/timer_routines.c: Make sure helper
  5676. thread has all signals blocked.
  5677. 2004-04-18 Andreas Jaeger <aj@suse.de>
  5678. * sysdeps/unix/sysv/linux/x86_64/bits/semaphore.h
  5679. (SEM_VALUE_MAX): Add missing brace.
  5680. 2004-04-17 Jakub Jelinek <jakub@redhat.com>
  5681. * sysdeps/pthread/Makefile (tests): Add tst-mqueue8x
  5682. in rt subdir.
  5683. (CFLAGS-tst-mqueue8x.c): Add -fexceptions.
  5684. * sysdeps/pthread/tst-mqueue8x.c: New test.
  5685. * tst-cancel4.c: Update comment about message queues.
  5686. * sysdeps/pthread/timer_gettime.c (timer_gettime): For expired timer
  5687. return it_value { 0, 0 }.
  5688. * sysdeps/pthread/timer_create.c (timer_create): Handle SIGEV_NONE
  5689. like SIGEV_SIGNAL.
  5690. * sysdeps/pthread/timer_routines.c (thread_expire_timer): Remove
  5691. assertion for SIGEV_NONE.
  5692. (thread_attr_compare): Compare all attributes, not just a partial
  5693. subset.
  5694. 2004-04-17 Jakub Jelinek <jakub@redhat.com>
  5695. * sysdeps/unix/sysv/linux/mq_notify.c: Include stdlib.h.
  5696. 2004-04-17 Ulrich Drepper <drepper@redhat.com>
  5697. * sysdeps/unix/sysv/linux/alpha/bits/semaphore.h (SEM_VALUE_MAX):
  5698. Just use a plain number.
  5699. * sysdeps/unix/sysv/linux/i386/bits/semaphore.h: Likewise.
  5700. * sysdeps/unix/sysv/linux/ia64/bits/semaphore.h: Likewise.
  5701. * sysdeps/unix/sysv/linux/powerpc/bits/semaphore.h: Likewise.
  5702. * sysdeps/unix/sysv/linux/s390/bits/semaphore.h: Likewise.
  5703. * sysdeps/unix/sysv/linux/sh/bits/semaphore.h: Likewise.
  5704. * sysdeps/unix/sysv/linux/sparc/bits/semaphore.h: Likewise.
  5705. * sysdeps/unix/sysv/linux/x86_64/bits/semaphore.h: Likewise.
  5706. 2004-04-16 Kaz Kojima <kkojima@rr.iij4u.or.jp>
  5707. * sysdeps/unix/sysv/linux/sh/pthread_cond_wait.S: Remove unneeded
  5708. frame info.
  5709. * sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S: Likewise.
  5710. 2004-04-15 Jakub Jelinek <jakub@redhat.com>
  5711. * sysdeps/unix/sysv/linux/timer_routines.c: Include errno.h.
  5712. (timer_helper_thread): Use inline rt_sigtimedwait syscall instead
  5713. of calling sigwaitinfo.
  5714. 2004-04-16 Ulrich Drepper <drepper@redhat.com>
  5715. * allocatestack.c (allocate_stack): Set reported_guardsize
  5716. unconditionally.
  5717. * pthread_getattr_np.c (pthread_getattr_np): Use
  5718. reported_guardsize instead of guardsize.
  5719. * descr.h (struct pthread): Add reported_guardsize field.
  5720. 2004-04-13 Jakub Jelinek <jakub@redhat.com>
  5721. * sysdeps/unix/sysv/linux/mq_notify.c: Shut up GCC warning.
  5722. 2004-04-12 Ulrich Drepper <drepper@redhat.com>
  5723. * sysdeps/unix/sysv/linux/mq-notify.c: New file.
  5724. 2004-04-08 Jakub Jelinek <jakub@redhat.com>
  5725. * sysdeps/unix/sysv/linux/bits/local_lim.h (MQ_PRIO_MAX): Define.
  5726. * sysdeps/unix/sysv/linux/alpha/bits/local_lim.h (MQ_PRIO_MAX): Define.
  5727. * sysdeps/unix/sysv/linux/ia64/bits/local_lim.h (MQ_PRIO_MAX): Define.
  5728. * sysdeps/unix/sysv/linux/sparc/bits/local_lim.h (MQ_PRIO_MAX): Define.
  5729. * sysdeps/unix/sysv/linux/bits/posix_opt.h (_POSIX_MESSAGE_PASSING):
  5730. Define.
  5731. * sysdeps/unix/sysv/linux/i386/bits/posix_opt.h
  5732. (_POSIX_MESSAGE_PASSING): Define.
  5733. * sysdeps/unix/sysv/linux/ia64/bits/posix_opt.h
  5734. (_POSIX_MESSAGE_PASSING): Define.
  5735. * sysdeps/unix/sysv/linux/x86_64/bits/posix_opt.h
  5736. (_POSIX_MESSAGE_PASSING): Define.
  5737. 2004-04-04 Ulrich Drepper <drepper@redhat.com>
  5738. * tst-context1.c (fct): Check whether correct stack is used.
  5739. 2004-04-03 Ulrich Drepper <drepper@redhat.com>
  5740. * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Never use
  5741. matching constraints for asm mem parameters.
  5742. * tst-clock2.c (tf): Don't define unless needed.
  5743. 2004-03-30 H.J. Lu <hongjiu.lu@intel.com>
  5744. * Makefile (link-libc-static): Use $(static-gnulib) instead of
  5745. $(gnulib).
  5746. 2004-03-30 Ulrich Drepper <drepper@redhat.com>
  5747. * sysdeps/pthread/pthread-functions.h: Add ptr__nptl_deallocate_tsd.
  5748. * init.c (pthread_functions): Add ptr__nptl_deallocate_tsd.
  5749. * pthreadP.h: Declare __nptl_deallocate_tsd.
  5750. * pthread_create.c (deallocate_tsd): Remove to __nptl_deallocate_tsd.
  5751. Adjust caller.
  5752. * Makefile (tests): Add tst-tsd5.
  5753. * tst-tsd5.c: New file.
  5754. 2004-03-29 Ulrich Drepper <drepper@redhat.com>
  5755. * sysdeps/unix/sysv/linux/pthread_attr_setaffinity.c
  5756. (__pthread_attr_setaffinity_old): Prepend GLIBC_ to version names
  5757. is SHLIB_COMPAT check.
  5758. * sysdeps/unix/sysv/linux/pthread_attr_getaffinity.c
  5759. (__pthread_attr_getaffinity_old): Likewise.
  5760. * sysdeps/unix/sysv/linux/pthread_getaffinity.c
  5761. (__pthread_getaffinity_old): Likewise.
  5762. * sysdeps/unix/sysv/linux/pthread_setaffinity.c
  5763. (__pthread_setaffinity_old): Likewise.
  5764. 2004-03-26 Ulrich Drepper <drepper@redhat.com>
  5765. * allocatestack.c (_make_stacks_executable): Call
  5766. _dl_make_stack_executable first.
  5767. 2004-03-24 Roland McGrath <roland@redhat.com>
  5768. * sysdeps/i386/pthread_spin_lock.c (pthread_spin_lock): Use "m"
  5769. constraint instead of "0".
  5770. 2004-03-24 Ulrich Drepper <drepper@redhat.com>
  5771. * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h
  5772. (lll_mutex_cond_trylock): Define as wrapper around __lll_cond_trylock.
  5773. * sysdeps/unix/sysv/linux/getpid.c (really_getpid): Reorganize
  5774. code to avoid warning.
  5775. 2004-03-24 Andreas Jaeger <aj@suse.de>
  5776. * sysdeps/unix/sysv/linux/pthread_attr_setaffinity.c
  5777. (__pthread_attr_setaffinity_old): Remove const.
  5778. 2004-03-23 Ulrich Drepper <drepper@redhat.com>
  5779. * sysdeps/unix/sysv/linux/smp.h: New file.
  5780. * sysdeps/unix/sysv/linux/sh/smp.h: New file.
  5781. * init.c: Define __is_smp.
  5782. (__pthread_initialize_minimal_internal): Call is_smp_system to
  5783. initialize __is_smp.
  5784. * pthreadP.h: Declare __is_smp.
  5785. Define MAX_ADAPTIVE_COUNT is necessary.
  5786. * pthread_mutex_init.c: Add comment regarding __spins field.
  5787. * pthread_mutex_lock.c: Implement adaptive mutex type.
  5788. * pthread_mutex_timedlock.c: Likewise.
  5789. * sysdeps/unix/sysv/linux/pthread_mutex_cond_lock.c: Likewise.
  5790. * sysdeps/unix/sysv/linux/alpha/bits/pthreadtypes.h (pthread_mutex_t):
  5791. Add __spins field.
  5792. * sysdeps/unix/sysv/linux/i386/bits/pthreadtypes.h: Likewise.
  5793. * sysdeps/unix/sysv/linux/ia64/bits/pthreadtypes.h: Likewise.
  5794. * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: Likewise.
  5795. * sysdeps/unix/sysv/linux/sh/bits/pthreadtypes.h: Likewise.
  5796. * sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h: Likewise.
  5797. * sysdeps/unix/sysv/linux/sparc/bits/pthreadtypes.h: Likewise.
  5798. * sysdeps/unix/sysv/linux/x86_64/bits/pthreadtypes.h: Likewise.
  5799. * sysdeps/unix/sysv/linux/alpha/bits/pthreadtypes.h: Define
  5800. lll_mutex_cond_trylock.
  5801. * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: Likewise.
  5802. * sysdeps/unix/sysv/linux/sh/bits/pthreadtypes.h: Likewise.
  5803. * sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h: Likewise.
  5804. * sysdeps/unix/sysv/linux/sparc/bits/pthreadtypes.h: Likewise.
  5805. * sysdeps/unix/sysv/linux/i386/bits/pthreadtypes.h: Likewise.
  5806. Define BUSY_WAIT_NOP.
  5807. * sysdeps/unix/sysv/linux/ia64/bits/pthreadtypes.h: Likewise.
  5808. * sysdeps/unix/sysv/linux/x86_64/bits/pthreadtypes.h: Likewise.
  5809. * tst-mutex5.c: Add support for testing adaptive mutexes.
  5810. * tst-mutex7.c: Likewise.
  5811. * tst-mutex5a.c: New file.
  5812. * tst-mutex7a.c: New file.
  5813. * Makefile (tests): Add tst-mutex5a and tst-mutex7a.
  5814. * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S
  5815. (__lll_mutex_timedlock_wait): Preserve r8 and r9 since the
  5816. vgettimeofday call might destroy the content.
  5817. * sysdeps/ia64/pthread_spin_lock.c (pthread_spin_lock): Use hint
  5818. @pause in the loop.
  5819. * sysdeps/unix/sysv/linux/i386/lowlevellock.h (lll_mutex_trylock):
  5820. No need to restrict type of ret. Make it int. Add comment.
  5821. * sysdeps/unix/sysv/linux/i386/lowlevellock.h (lll_mutex_trylock):
  5822. Remove unnecessary setne instruction.
  5823. 2004-03-22 Jakub Jelinek <jakub@redhat.com>
  5824. * sysdeps/unix/sysv/linux/pthread_getaffinity.c
  5825. (__pthread_getaffinity_new): Use INT_MAX instead of UINT_MAX.
  5826. * pthread_getattr_np.c (pthread_getattr_np): Double size every cycle.
  5827. If realloc fails, break out of the loop.
  5828. 2004-03-20 Andreas Jaeger <aj@suse.de>
  5829. * sysdeps/unix/sysv/linux/pthread_setaffinity.c
  5830. (__pthread_setaffinity_old): Fix interface.
  5831. * sysdeps/unix/sysv/linux/pthread_getaffinity.c
  5832. (__pthread_getaffinity_old): Likewise.
  5833. * sysdeps/unix/sysv/linux/pthread_setaffinity.c
  5834. (__pthread_setaffinity_new): Remove duplicate declaration.
  5835. 2004-03-20 Kaz Kojima <kkojima@rr.iij4u.or.jp>
  5836. * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h (CENABLE): Save
  5837. the return value to a safe register.
  5838. (CDISABLE): Set the function argument correctly.
  5839. 2004-03-17 Kaz Kojima <kkojima@rr.iij4u.or.jp>
  5840. * sysdeps/unix/sysv/linux/sh/lowlevel-atomic.h (XCHG): Define.
  5841. * sysdeps/unix/sysv/linux/sh/lowlevellock.S (__lll_mutex_lock_wait):
  5842. Rewrite so that only one locked memory operation per round is needed.
  5843. * sysdeps/unix/sysv/linux/sh/pthread_barrier_wait.S
  5844. (pthread_barrier_wait): After wakeup, release lock only when the
  5845. last thread stopped using the barrier object.
  5846. * sysdeps/unix/sysv/linux/sh/pthread_cond_wait.S
  5847. (__pthread_cond_wait): Don't store mutex address if the current
  5848. value is ~0l. Add correct cleanup support and unwind info.
  5849. * sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S: Likewise.
  5850. * sysdeps/unix/sysv/linux/sh/pthread_cond_broadcast.S
  5851. (__pthread_cond_broadcast): Don't use requeue for pshared condvars.
  5852. * sysdeps/unix/sysv/linux/sh/pthread_cond_signal.S: Update comment.
  5853. * sysdeps/unix/sysv/linux/sh/pthread_once.S (__pthread_once):
  5854. Add correct cleanup support and unwind info.
  5855. * sysdeps/unix/sysv/linux/sh/sem_wait.S (__new_sem_wait): Likewise.
  5856. * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Add unwind
  5857. information for syscall wrappers.
  5858. 2004-03-18 Ulrich Drepper <drepper@redhat.com>
  5859. * sysdeps/unix/sysv/linux/internaltypes.h (struct pthread_attr): Add
  5860. cpusetsize field, remove next.
  5861. * sysdeps/pthread/pthread.h (pthread_getaffinity_np): Add new second
  5862. parameter for size of the CPU set.
  5863. (pthread_setaffinity_np): Likewise.
  5864. (pthread_attr_getaffinity_np): Likewise.
  5865. (pthread_attr_setaffinity_np): Likewise.
  5866. * sysdeps/unix/sysv/linux/pthread_attr_getaffinity.c: Implement
  5867. interface change, keep compatibility code.
  5868. * sysdeps/unix/sysv/linux/pthread_attr_setaffinity.c: Likewise.
  5869. * sysdeps/unix/sysv/linux/pthread_getaffinity.c: Likewise.
  5870. * sysdeps/unix/sysv/linux/pthread_setaffinity.c: Likewise.
  5871. * pthreadP.h: Remove hidden_proto for pthread_getaffinity_np. Declare
  5872. __pthread_getaffinity_np.
  5873. * Versions: Add version for changed interfaces.
  5874. * tst-attr3.c: Adjust test for interface change.
  5875. * pthread_getattr_np.c: Query the kernel about the affinity mask with
  5876. increasing buffer sizes.
  5877. * pthread_attr_destroy.c: Remove unused list handling.
  5878. * pthread_attr_init.c: Likewise.
  5879. 2004-03-17 Roland McGrath <roland@redhat.com>
  5880. * sysdeps/unix/sysv/linux/timer_create.c (timer_create): Pass missing
  5881. first argument to clock_getres so we ever enable kernel timers.
  5882. 2004-03-15 Ulrich Weigand <uweigand@de.ibm.com>
  5883. * init.c (nptl_version): Add __attribute_used__ to nptl_version.
  5884. 2004-03-12 Richard Henderson <rth@redhat.com>
  5885. * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: Propagate
  5886. oldvalue from CENABLE to CDISABLE.
  5887. 2004-03-12 Ulrich Drepper <drepper@redhat.com>
  5888. * sysdeps/unix/sysv/linux/bits/local_lim.h: Define HOST_NAME_MAX.
  5889. * sysdeps/unix/sysv/linux/alpha/bits/local_lim.h: Likewise.
  5890. * sysdeps/unix/sysv/linux/ia64/bits/local_lim.h: Likewise.
  5891. * sysdeps/unix/sysv/linux/sparc/bits/local_lim.h: Likewise.
  5892. 2004-03-11 Richard Henderson <rth@redhat.com>
  5893. * sysdeps/alpha/tcb-offsets.sym (PID_OFFSET): New.
  5894. * sysdeps/unix/sysv/linux/alpha/pt-vfork.S: Save/restore PID.
  5895. * sysdeps/unix/sysv/linux/alpha/vfork.S: New file.
  5896. 2004-03-11 Jakub Jelinek <jakub@redhat.com>
  5897. * sysdeps/unix/sysv/linux/s390/s390-64/vfork.S (__vfork): Use jgnl
  5898. instead of jnl instruction to jump to SYSCALL_ERROR_LABEL.
  5899. * sysdeps/unix/sysv/linux/s390/s390-64/pt-vfork.S (__vfork): Likewise.
  5900. 2004-03-11 Jakub Jelinek <jakub@redhat.com>
  5901. * forward.c (__pthread_cond_broadcast_2_0,
  5902. __pthread_cond_destroy_2_0, __pthread_cond_init_2_0,
  5903. __pthread_cond_signal_2_0, __pthread_cond_wait_2_0,
  5904. __pthread_cond_timedwait_2_0): Use return 0 as defaction instead of 0.
  5905. 2004-03-11 Kaz Kojima <kkojima@rr.iij4u.or.jp>
  5906. * sysdeps/sh/tcb-offsets.sym: Add PID.
  5907. * sysdeps/unix/sysv/linux/sh/pt-vfork.S: Properly handle PID cache.
  5908. * sysdeps/unix/sysv/linux/sh/vfork.S: New file.
  5909. 2004-03-10 Ulrich Drepper <drepper@redhat.com>
  5910. * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S: No need to
  5911. include <sysdep-cancel.h>, vfork is no cancellation point.
  5912. * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S: Likewise.
  5913. * sysdeps/unix/sysv/linux/powerpc/powerpc64/pt-vfork.S: Likewise.
  5914. * sysdeps/unix/sysv/linux/powerpc/powerpc32/pt-vfork.S: Likewise.
  5915. 2004-03-10 Jakub Jelinek <jakub@redhat.com>
  5916. * sysdeps/unix/sysv/linux/s390/s390-32/vfork.S (__vfork): Add
  5917. libc_hidden_def.
  5918. * sysdeps/unix/sysv/linux/s390/s390-64/vfork.S (__vfork): Likewise.
  5919. * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S (__vfork):
  5920. Likewise.
  5921. * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork):
  5922. Likewise.
  5923. * sysdeps/unix/sysv/linux/sparc/sparc32/vfork.S (__vfork): Likewise.
  5924. * sysdeps/unix/sysv/linux/sparc/sparc64/vfork.S (__vfork): Likewise.
  5925. * sysdeps/unix/sysv/linux/ia64/pt-vfork.S: Include tcb-offsets.h.
  5926. * sysdeps/unix/sysv/linux/ia64/vfork.S (__vfork): Use DO_CALL instead
  5927. of DO_CALL_VIA_BREAK. Work around a gas problem.
  5928. * sysdeps/unix/sysv/linux/powerpc/pt-vfork.S: Remove.
  5929. * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S: New file.
  5930. * sysdeps/unix/sysv/linux/powerpc/powerpc32/pt-vfork.S: New file.
  5931. * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S: New file.
  5932. * sysdeps/unix/sysv/linux/powerpc/powerpc64/pt-vfork.S: New file.
  5933. * sysdeps/powerpc/tcb-offsets.sym: Add PID.
  5934. * sysdeps/unix/sysv/linux/ia64/pt-vfork.S (__vfork): Don't use
  5935. a local register for saving old PID. Negate PID in parent upon exit.
  5936. * sysdeps/unix/sysv/linux/s390/s390-32/pt-vfork.S: Include
  5937. tcb-offsets.h.
  5938. (__vfork): Negate PID if non-zero and set to INT_MIN if zero
  5939. before syscall, set to the old value in the parent afterwards.
  5940. * sysdeps/unix/sysv/linux/s390/s390-32/vfork.S: New file.
  5941. * sysdeps/unix/sysv/linux/s390/s390-64/pt-vfork.S: Include
  5942. tcb-offsets.h.
  5943. (__vfork): Negate PID if non-zero and set to INT_MIN if zero
  5944. before syscall, set to the old value in the parent afterwards.
  5945. * sysdeps/unix/sysv/linux/s390/s390-64/vfork.S: New file.
  5946. * sysdeps/s390/tcb-offsets.sym: Add PID.
  5947. * sysdeps/unix/sysv/linux/sparc/pt-vfork.S: Remove.
  5948. * sysdeps/unix/sysv/linux/sparc/sparc32/vfork.S: New file.
  5949. * sysdeps/unix/sysv/linux/sparc/sparc32/pt-vfork.S: New file.
  5950. * sysdeps/unix/sysv/linux/sparc/sparc64/vfork.S: New file.
  5951. * sysdeps/unix/sysv/linux/sparc/sparc64/pt-vfork.S: New file.
  5952. * sysdeps/sparc/tcb-offsets.sym: Add PID.
  5953. 2004-03-10 Andreas Schwab <schwab@suse.de>
  5954. * sysdeps/ia64/tcb-offsets.sym: Add PID.
  5955. * sysdeps/unix/sysv/linux/ia64/vfork.S: New file.
  5956. * sysdeps/unix/sysv/linux/ia64/pt-vfork.S: Properly handle PID cache.
  5957. 2004-03-09 Jakub Jelinek <jakub@redhat.com>
  5958. * tst-cancel20.c (do_one_test): Clear in_sh_body first.
  5959. * tst-cancel21.c (do_one_test): Likewise.
  5960. Reported by Gordon Jin <gordon.jin@intel.com>.
  5961. 2004-02-09 Jakub Jelinek <jakub@redhat.com>
  5962. * sysdeps/unix/sysv/linux/i386/vfork.S (SAVE_PID): Negate PID
  5963. if non-zero and set to INT_MIN if zero.
  5964. * sysdeps/unix/sysv/linux/x86_64/vfork.S (SAVE_PID): Likewise.
  5965. * sysdeps/unix/sysv/linux/i386/pt-vfork.S: Include tcb-offsets.h.
  5966. (SAVE_PID, RESTORE_PID): Define.
  5967. (__vfork): Use it.
  5968. * sysdeps/unix/sysv/linux/x86_64/pt-vfork.S: Include tcb-offsets.h.
  5969. Use relative path to avoid including NPTL i386/vfork.S.
  5970. (SAVE_PID, RESTORE_PID): Define.
  5971. * sysdeps/unix/sysv/linux/raise.c: Include limits.h.
  5972. (raise): Handle THREAD_SELF->pid INT_MIN the same as 0.
  5973. * Makefile (tests): Add tst-vfork1, tst-vfork2, tst-vfork1x and
  5974. tst-vfork2x.
  5975. (tests-reverse): Add tst-vfork1x and tst-vfork2x.
  5976. * tst-vfork1.c: New test.
  5977. * tst-vfork2.c: New test.
  5978. * tst-vfork1x.c: New test.
  5979. * tst-vfork2x.c: New test.
  5980. 2004-03-08 Ulrich Drepper <drepper@redhat.com>
  5981. * sysdeps/i386/tcb-offsets.sym: Add PID.
  5982. * sysdeps/x86_64/tcb-offsets.sym: Likewise.
  5983. * sysdeps/unix/sysv/linux/i386/vfork.S: New file.
  5984. * sysdeps/unix/sysv/linux/x86_64/vfork.S: New file.
  5985. 2004-03-08 Steven Munroe <sjmunroe@us.ibm.com>
  5986. * sysdeps/unix/sysv/linux/powerpc/Versions: Remove leading tabs.
  5987. 2004-03-08 H.J. Lu <hongjiu.lu@intel.com>
  5988. * sysdeps/s390/tls.h (INIT_SYSINFO): _dl_sysinfo is now in
  5989. _rtld_global_ro.
  5990. 2004-03-07 Ulrich Drepper <drepper@redhat.com>
  5991. * sysdeps/ia64/tls.h (INIT_SYSINFO): _dl_sysinfo is now in
  5992. _rtld_global_ro.
  5993. * tst-once4.c: Remove unnecessary macro definition.
  5994. * tst-mutex7.c (do_test): Limit thread stack size.
  5995. * tst-once2.c (do_test): Likewise.
  5996. * tst-tls3.c (do_test): Likewise.
  5997. * tst-tls1.c (do_test): Likewise.
  5998. * tst-signal3.c (do_test): Likewise.
  5999. * tst-kill6.c (do_test): Likewise.
  6000. * tst-key4.c (do_test): Likewise.
  6001. * tst-join4.c (do_test): Likewise.
  6002. * tst-fork1.c (do_test): Likewise.
  6003. * tst-context1.c (do_test): Likewise.
  6004. * tst-cond2.c (do_test): Likewise.
  6005. * tst-cond10.c (do_test): Likewise.
  6006. * tst-clock2.c (do_test): Likewise.
  6007. * tst-cancel10.c (do_test): Likewise.
  6008. * tst-basic2.c (do_test): Likewise.
  6009. * tst-barrier4.c (do_test): Likewise.
  6010. 2004-03-05 Ulrich Drepper <drepper@redhat.com>
  6011. * sysdeps/i386/tls.h: Use GLRO instead of GL where appropriate.
  6012. 2004-03-01 Ulrich Drepper <drepper@redhat.com>
  6013. * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S
  6014. (__pthread_cond_timedwait): Optimize wakeup test.
  6015. * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S
  6016. (__pthread_cond_wait): Likewise.
  6017. * sysdeps/pthread/pthread_cond_wait.c (__pthread_cond_wait): Likewise.
  6018. * sysdeps/pthread/pthread_cond_timedwait.c (__pthread_cond_timedwait):
  6019. Likewise.
  6020. 2004-02-29 Ulrich Drepper <drepper@redhat.com>
  6021. * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S
  6022. (__lll_mutex_lock_wait): Optimize a bit more. Just one copy of
  6023. the atomic instruction needed.
  6024. * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S
  6025. (__lll_mutex_lock_wait): Likewise.
  6026. 2004-02-28 Ulrich Drepper <drepper@redhat.com>
  6027. * Makefile (tests): Add tst-cond14 and tst-cond15.
  6028. * tst-cond14.c: New file.
  6029. * tst-cond15.c: New file.
  6030. 2004-02-27 Ulrich Drepper <drepper@redhat.com>
  6031. * sysdeps/pthread/createthread.c (create_thread): Remove use of
  6032. CLONE_STOPPED. We cannot use SIGCONT which means CLONE_STOPPED
  6033. needs to be implemented differently to be useful.
  6034. 2004-02-26 Ulrich Drepper <drepper@redhat.com>
  6035. * pthread_attr_setschedparam.c: Don't test priority against limits
  6036. here. Set ATTR_FLAG_SCHED_SET flag.
  6037. * pthread_attr_setschedpolicy.c: Set ATTR_FLAG_POLICY_SET flag.
  6038. * pthread_create.c (__pthread_create_2_1): Copy scheduling attributes
  6039. from parent thread to child. If attribute is used and scheduling
  6040. parameters are not inherited, copy parameters from attribute or
  6041. compute them. Check priority value.
  6042. * pthread_getschedparam.c: If the parameters aren't known yet get
  6043. them from the kernel.
  6044. * pthread_setschedparam.c: Set ATTR_FLAG_SCHED_SET and
  6045. ATTR_FLAG_POLICY_SET flag for thread.
  6046. * sysdeps/unix/sysv/linux/internaltypes.h: Define ATTR_FLAG_SCHED_SET
  6047. and ATTR_FLAG_POLICY_SET.
  6048. * sysdeps/pthread/createthread.c: Use tgkill if possible.
  6049. * pthread_attr_getstackaddr.c (__pthread_attr_getstackaddr): Don't
  6050. fail if stack address hasn't been set. Just return 0.
  6051. 2004-02-25 Ulrich Drepper <drepper@redhat.com>
  6052. * Makefile (tests-nolibpthread): Add tst-unload. Don't link with
  6053. libpthread for the files in this list.
  6054. (CFLAGS-tst-unload): Removed.
  6055. * tst-unload.c (do_test): Don't use complete path for
  6056. LIBPHREAD_SO.
  6057. * Makefile: Define sonames for tst-tls5mod, tst-_res1mod1, and
  6058. tst-_res1mod2.
  6059. 2004-02-22 Ulrich Drepper <drepper@redhat.com>
  6060. * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S
  6061. (__lll_mutex_lock_wait): Rewrite so that only one locked memory
  6062. operation per round is needed.
  6063. * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S
  6064. (__lll_mutex_lock_wait): Likewise.
  6065. 2004-02-20 Ulrich Drepper <drepper@redhat.com>
  6066. * tst-cancel9.c (cleanup): Don't print to stderr.
  6067. 2004-02-20 Kaz Kojima <kkojima@rr.iij4u.or.jp>
  6068. * sysdeps/sh/jmpbuf-unwind.h (_JMPBUF_UNWINDS_ADJ): Fix variable name.
  6069. 2004-02-20 Jakub Jelinek <jakub@redhat.com>
  6070. * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h
  6071. (__syscall_error_handler2): Call CDISABLE.
  6072. * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h
  6073. (__syscall_error_handler2): Call CDISABLE.
  6074. * sysdeps/pthread/pthread_barrier_wait.c (pthread_barrier_wait):
  6075. Release lock before the loop, don't reacquire it.
  6076. * sysdeps/unix/sysv/linux/ia64/dl-sysdep.h (DL_ARGV_NOT_RELRO): Define.
  6077. 2004-02-19 Andreas Schwab <schwab@suse.de>
  6078. * sysdeps/pthread/pthread_barrier_wait.c (pthread_barrier_wait):
  6079. Fix last change.
  6080. 2004-02-18 Ulrich Drepper <drepper@redhat.com>
  6081. * sysdeps/unix/sysv/linux/i386/i486/pthread_barrier_wait.S
  6082. (pthread_barrier_wait): After wakeup, release lock only when the
  6083. last thread stopped using the barrier object.
  6084. * sysdeps/unix/sysv/linux/x86_64/pthread_barrier_wait.S
  6085. (pthread_barrier_wait): Likewise.
  6086. * sysdeps/pthread/pthread_barrier_wait.c (pthread_barrier_wait):
  6087. Likewise.
  6088. * Makefile (tests): Add tst-barrier4.
  6089. * tst-barrier4.c: New file.
  6090. * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S
  6091. (__pthread_cond_timedwait): Perform timeout test while holding
  6092. internal lock to prevent wakeup race.
  6093. Patch by Dinakar Guniguntala <dgunigun@in.ibm.com>.
  6094. * sysdeps/pthread/pthread_cond_timedwait.c
  6095. (__pthread_cond_timedwait): Likewise.
  6096. * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S
  6097. (__pthread_cond_timedwait): Likewise.
  6098. 2004-02-18 Jakub Jelinek <jakub@redhat.com>
  6099. * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_unlock.S
  6100. (__pthread_rwlock_unlock): Access WRITER as 32-bit value.
  6101. * Makefile (tests): Add tst-rwlock13.
  6102. * tst-rwlock13.c: New test.
  6103. 2004-02-16 Ulrich Drepper <drepper@redhat.com>
  6104. * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S
  6105. (__condvar_tw_cleanup): Little optimization.
  6106. Patch by Dinakar Guniguntala <dgunigun@in.ibm.com>.
  6107. 2004-02-16 Steven Munroe <sjmunroe@us.ibm.com>
  6108. * sysdeps/unix/sysv/linux/powerpc/pt-longjmp.c: Replace libc with
  6109. libpthread as "lib" parameter to SHLIB_COMPAT.
  6110. (__novmx_siglongjmp): Fix typo in function name.
  6111. (__novmx_longjmp): Fix typo in function name.
  6112. 2004-02-13 Ulrich Drepper <drepper@redhat.com>
  6113. * sysdeps/pthread/pthread_cond_wait.c (__pthread_cond_wait): Add a
  6114. __builtin_expect.
  6115. * sysdeps/generic/pt-longjmp.c: Moved to...
  6116. * sysdeps/pthread/pt-longjmp.c: ...here. New file.
  6117. 2004-01-29 Steven Munroe <sjmunroe@us.ibm.com>
  6118. * Makefile (libpthread-routines): Add pt-cleanup.
  6119. * pt-longjmp.c: Removed.
  6120. * pt-cleanup.c: Copied __pthread_cleanup_upto to here. New file.
  6121. * sysdeps/generic/pt-longjmp.c: Copied longjmp to here. New file.
  6122. * sysdeps/unix/sysv/linux/powerpc/Versions: New file.
  6123. Version longjmp, siglongjmp for GLIBC_2.3.4.
  6124. * sysdeps/unix/sysv/linux/powerpc/pt-longjmp.c: New File.
  6125. 2004-02-13 Ulrich Drepper <drepper@redhat.com>
  6126. * sysdeps/pthread/pthread_cond_timedwait.c
  6127. (__pthread_cond_timedwait): Optimize. Drop internal lock earlier.
  6128. Reuse code. Add __builtin_expects.
  6129. * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S
  6130. (__pthread_cond_timedwait): Get internal lock in case timeout has
  6131. passed before the futex syscall.
  6132. * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: Likewise.
  6133. 2004-01-20 Ulrich Drepper <drepper@redhat.com>
  6134. * allocatestack.c: Pretty printing.
  6135. * sysdeps/pthread/createthread.c (create_thread): Don't add
  6136. CLONE_DETACHED bit if it is not necessary.
  6137. 2004-01-16 Ulrich Drepper <drepper@redhat.com>
  6138. * pthread_getattr_np.c: Include ldsodefs.h.
  6139. 2004-01-16 Richard Henderson <rth@redhat.com>
  6140. * allocatestack.c: Don't declare __libc_stack_end.
  6141. * init.c (__pthread_initialize_minimal_internal): Likewise.
  6142. * pthread_getattr_np.c (pthread_getattr_np): Likewise.
  6143. 2004-01-15 Richard Henderson <rth@redhat.com>
  6144. * sysdeps/alpha/tls.h (tcbhead_t): Add private.
  6145. (TLS_INIT_TCB_SIZE, TLS_INIT_TCB_ALIGN, TLS_TCB_SIZE,
  6146. TLS_PRE_TCB_SIZE, TLS_TCB_ALIGN, INSTALL_DTV, INSTALL_NEW_DTV,
  6147. GET_DTV, THREAD_DTV, THREAD_SELF, DB_THREAD_SELF): Match ia64.
  6148. (TLS_TCB_OFFSET, THREAD_ID, NO_TLS_OFFSET): Remove.
  6149. (THREAD_GETMEM, THREAD_GETMEM_NC): Simplify.
  6150. (THREAD_SETMEM, THREAD_SETMEM_NC): Likewise.
  6151. * sysdeps/unix/sysv/linux/alpha/createthread.c (TLS_VALUE): Match ia64.
  6152. 2004-01-14 Ulrich Drepper <drepper@redhat.com>
  6153. * init.c (pthread_functions): Make array const.
  6154. 2004-01-13 Ulrich Drepper <drepper@redhat.com>
  6155. * allocatestack.c (__make_stacks_executable): Change interface.
  6156. Check parameters. Pass parameter on to libc counterpart.
  6157. * pthreadP.h: Change declaration.
  6158. 2004-01-13 Richard Henderson <rth@redhat.com>
  6159. * pthread_attr_setstack.c (__old_pthread_attr_setstack): Use
  6160. prototype form.
  6161. * pthread_attr_setstacksize.c (__old_pthread_attr_setstacksize):
  6162. Likewise.
  6163. * sysdeps/alpha/Makefile: New file.
  6164. * sysdeps/alpha/tcb-offsets.sym: New file.
  6165. * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h (SINGLE_THREAD_P):
  6166. Use MULTIPLE_THREADS_OFFSET to implement !libpthread !libc version.
  6167. * sysdeps/unix/sysv/linux/alpha/lowlevellock.h: Rewrite based
  6168. on powerpc version.
  6169. 2004-01-08 Jakub Jelinek <jakub@redhat.com>
  6170. * Makefile (tests): Add tst-backtrace1.
  6171. * tst-backtrace1.c: New test.
  6172. 2003-12-11 Ulrich Weigand <uweigand@de.ibm.com>
  6173. * sysdeps/alpha/tls.h (DB_THREAD_SELF): Pass bit size of thread
  6174. register as second parameter to the REGISTER macro.
  6175. * sysdeps/ia64/tls.h (DB_THREAD_SELF): Likewise.
  6176. * sysdeps/powerpc/tls.h (DB_THREAD_SELF): Likewise.
  6177. * sysdeps/sh/tls.h (DB_THREAD_SELF): Likewise.
  6178. * sysdeps/sparc/tls.h (DB_THREAD_SELF): Likewise.
  6179. * sysdeps/s390/tls.h (DB_THREAD_SELF): Pass __WORDSIZE as bit size
  6180. of thread register as second parameter to REGISTER macro in 64 case.
  6181. 2004-01-03 Ulrich Drepper <drepper@redhat.com>
  6182. * sysdeps/unix/sysv/linux/Makefile (CFLAGS-getpid.c): Removed.
  6183. (CFLAGS-getpid.o): Defined.
  6184. (CFLAGS-getpid.os): Defined.
  6185. 2003-12-31 Ulrich Drepper <drepper@redhat.com>
  6186. * pthread_getattr_np.c (pthread_getattr_np): Make sure stack info
  6187. returned for main thread does not overlap with any other VMA.
  6188. Patch by Jakub Jelinek.
  6189. 2003-12-29 Jakub Jelinek <jakub@redhat.com>
  6190. * tst-raise1.c: Include stdio.h.
  6191. 2003-12-23 Jakub Jelinek <jakub@redhat.com>
  6192. * sysdeps/unix/sysv/linux/raise.c (raise): Protect pid = selftid
  6193. setting with __ASSUME_TGKILL || defined __NR_tgkill.
  6194. If pid is 0, set it to selftid.
  6195. * sysdeps/unix/sysv/linux/getpid.c (really_getpid): Make inline.
  6196. Don't set self->pid but self->tid. If self->pid == 0 and self->tid
  6197. != 0, return self->tid without doing a syscall.
  6198. * descr.h (struct pthread): Move pid field after tid.
  6199. * Makefile (tests): Add tst-raise1.
  6200. * tst-raise1.c: New file.
  6201. 2003-12-23 Roland McGrath <roland@redhat.com>
  6202. * tst-oddstacklimit.c: New file.
  6203. * Makefile (tests): Add it.
  6204. (tst-oddstacklimit-ENV): New variable.
  6205. * init.c (__pthread_initialize_minimal_internal): Round stack rlimit
  6206. value up to page size for __default_stacksize.
  6207. 2003-12-21 Ulrich Drepper <drepper@redhat.com>
  6208. * Makefile (tests): Add tst-eintr5.
  6209. * tst-eintr5.c: New file.
  6210. * eintr.c (eintr_source): Prevent sending signal to self.
  6211. * tst-eintr2.c (tf1): Improve error message.
  6212. 2003-12-20 Ulrich Drepper <drepper@redhat.com>
  6213. * sysdeps/unix/sysv/linux/Makefile (CFLAGS-getpid.c): Define.
  6214. * sysdeps/unix/sysv/linux/getpid.c: New file.
  6215. * pthread_cancel.c: Add comment explaining use of PID field.
  6216. * sysdeps/unix/sysv/linux/pthread_kill.c: Likewise.
  6217. * pthread_getattr_np.c: Use abs() when comparing PID and TID fields.
  6218. * sysdeps/unix/sysv/linux/fork.c: Negate PID field of parent
  6219. temporarily to signal the field must not be relied on and updated
  6220. by getpid().
  6221. * sysdeps/unix/sysv/linux/pt-raise.c: Handle case where PID is
  6222. temporarily negative.
  6223. * sysdeps/unix/sysv/linux/raise.c: Likewise.
  6224. 2003-12-19 Ulrich Drepper <drepper@redhat.com>
  6225. * eintr.c (setup_eintr): Add new parameter. Pass to thread function.
  6226. (eintr_source): If ARG != NULL, use pthread_kill.
  6227. * tst-eintr1.c: Adjust for this change.
  6228. * tst-eintr2.c: Likewise.
  6229. * Makefile (tests): Add tst-eintr3 and tst-eintr4.
  6230. * tst-eintr3.c: New file.
  6231. * tst-eintr4.c: New file.
  6232. 2003-12-19 Jakub Jelinek <jakub@redhat.com>
  6233. * libc-cancellation.c (__libc_enable_asynccancel): Don't cancel
  6234. if CANCELSTATE_BITMASK is set.
  6235. * sysdeps/pthread/librt-cancellation.c (__librt_enable_asynccancel):
  6236. Likewise.
  6237. * Makefile (tests): Add tst-cancel22 and tst-cancel23.
  6238. (tests-reverse): Add tst-cancel23.
  6239. * tst-cancel22.c: New test.
  6240. * tst-cancel23.c: New test.
  6241. 2003-12-18 Ulrich Drepper <drepper@redhat.com>
  6242. * tst-eintr1.c: Better error messages.
  6243. * Makefile (tests): Add tst-eintr2.
  6244. * tst-eintr2.c: New file.
  6245. 2003-12-18 Jakub Jelinek <jakub@redhat.com>
  6246. * Makefile (tests): Add tst-cancel21 and tst-cancelx21.
  6247. (CFLAGS-tst-cancelx21.c): Set.
  6248. * tst-cancel21.c: New test.
  6249. * tst-cancelx21.c: New test.
  6250. * unwind.c (FRAME_LEFT): Add adj argument. Subtract it from each
  6251. comparison operand.
  6252. (unwind_stop): Use _JMPBUF_CFA_UNWINDS_ADJ macro instead of
  6253. _JMPBUF_CFA_UNWINDS. Adjust FRAME_LEFT invocations.
  6254. * pt-longjmp.c: Include jmpbuf-unwind.h.
  6255. (__pthread_cleanup_upto): Use _JMPBUF_UNWINDS_ADJ macro instead of
  6256. _JMPBUF_UNWINDS. Adjust compared pointers.
  6257. * init.c (__pthread_initialize_minimal_internal): Initialize
  6258. pd->stackblock_size.
  6259. * sysdeps/pthread/jmpbuf-unwind.h: Removed.
  6260. * sysdeps/alpha/jmpbuf-unwind.h: New file.
  6261. * sysdeps/i386/jmpbuf-unwind.h: New file.
  6262. * sysdeps/powerpc/jmpbuf-unwind.h: New file.
  6263. * sysdeps/s390/jmpbuf-unwind.h: New file.
  6264. * sysdeps/sh/jmpbuf-unwind.h: New file.
  6265. * sysdeps/sparc/sparc32/jmpbuf-unwind.h: New file.
  6266. * sysdeps/x86_64/jmpbuf-unwind.h: New file.
  6267. * sysdeps/unix/sysv/linux/ia64/jmpbuf-unwind.h: Include stdint.h.
  6268. (_JMPBUF_CFA_UNWINDS): Remove.
  6269. (_JMPBUF_CFA_UNWINDS_ADJ, _JMPBUF_UNWINDS_ADJ): Define.
  6270. 2003-12-12 Jakub Jelinek <jakub@redhat.com>
  6271. * Makefile (tests): Add tst-cancel20 and tst-cancelx20.
  6272. (CFLAGS-tst-cancelx20.c): Set.
  6273. * tst-cancel20.c: New test.
  6274. * tst-cancelx20.c: New test.
  6275. 2003-12-17 Ulrich Drepper <drepper@redhat.com>
  6276. * init.c (__pthread_initialize_minimal_internal): Don't treat
  6277. architectures with separate register stack special here when
  6278. computing default stack size.
  6279. 2003-12-17 Roland McGrath <roland@redhat.com>
  6280. * Makefile (tst-cancelx7-ARGS): New variable.
  6281. Reportd by Greg Schafer <gschafer@zip.com.au>.
  6282. 2003-12-17 Jakub Jelinek <jakub@redhat.com>
  6283. * Makefile (tests): Add tst-stack3. Depend on $(objpfx)tst-stack3-mem.
  6284. (generated): Add tst-stack3.mtrace and tst-stack3-mem.
  6285. (tst-stack3-ENV): Set.
  6286. ($(objpfx)tst-stack3-mem): New.
  6287. * tst-stack3.c: New test.
  6288. 2003-12-10 David Mosberger <davidm@hpl.hp.com>
  6289. * sysdeps/unix/sysv/linux/ia64/pt-initfini.c (_init_EPILOG_BEGINS):
  6290. Add unwind directives. Drop unused .regstk directive.
  6291. (_fini_EPILOG_BEGINS): Add unwind directives.
  6292. 2003-12-11 Ulrich Drepper <drepper@redhat.com>
  6293. * sysdeps/unix/sysv/linux/i386/lowlevellock.h (lll_futex_wait):
  6294. Assume parameter is a pointer.
  6295. (lll_futex_wake): Likewise.
  6296. * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (lll_futex_wait):
  6297. Likewise.
  6298. (lll_futex_wake): Likewise.
  6299. Reported by Boris Hu.
  6300. * sysdeps/unix/sysv/linux/unregister-atfork.c
  6301. (__unregister_atfork): Pass pointer to refcntr to lll_futex_wait.
  6302. * sysdeps/unix/sysv/linux/sem_wait.c (__new_sem_wait): Simplify a bit.
  6303. 2003-12-10 Ulrich Drepper <drepper@redhat.com>
  6304. * sysdeps/pthread/bits/libc-lock.h (__rtld_lock_initialize): Define.
  6305. * sysdeps/unix/sysv/linux/fork.c (__libc_fork): Call
  6306. __rtld_lock_initialize for ld.so lock.
  6307. Patch in part by Adam Li <adam.li@intel.com>.
  6308. 2003-12-02 David Mosberger <davidm@hpl.hp.com>
  6309. * Makefile (link-libc-static): Remove -lgcc_eh---it's already mentioned
  6310. in $(gnulib). Also, remove stale comment.
  6311. 2003-11-12 David Mosberger <davidm@hpl.hp.com>
  6312. * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (PSEUDO): Take
  6313. advantage of new syscall stub and optimize accordingly.
  6314. * sysdeps/unix/sysv/linux/ia64/lowlevellock.h (__NR_futex): Rename
  6315. from SYS_futex, to match expectations of
  6316. sysdep.h:DO_INLINE_SYSCALL.
  6317. (lll_futex_clobbers): Remove.
  6318. (lll_futex_timed_wait): Rewrite in terms of DO_INLINE_SYSCALL.
  6319. (lll_futex_wake): Likewise.
  6320. (lll_futex_requeue): Likewise.
  6321. (__lll_mutex_trylock): Rewrite to a macro, so we can include this
  6322. file before DO_INLINE_SYSCALL is defined (proposed by Jakub
  6323. Jelinek).
  6324. (__lll_mutex_lock): Likewise.
  6325. (__lll_mutex_cond_lock): Likewise.
  6326. (__lll_mutex_timed_lock): Likewise.
  6327. (__lll_mutex_unlock): Likewise.
  6328. (__lll_mutex_unlock_force): Likewise.
  6329. * sysdeps/ia64/tls.h: Move declaration of __thread_self up so it
  6330. comes before the include of <sysdep.h>.
  6331. (THREAD_SELF_SYSINFO): New macro.
  6332. (THREAD_SYSINFO): Likewise.
  6333. (INIT_SYSINFO): New macro.
  6334. (TLS_INIT_TP): Call INIT_SYSINFO.
  6335. * sysdeps/ia64/tcb-offsets.sym: Add SYSINFO_OFFSET.
  6336. * sysdeps/pthread/createthread.c (create_thread): Use
  6337. THREAD_SELF_SYSINFO and THREAD_SYSINFO instead of open code.
  6338. * allocatestack.c (allocate_stack): Use THREAD_SYSINFO and
  6339. THREAD_SELF_SYSINFO instead of open code.
  6340. * sysdeps/i386/tls.h (THREAD_SELF_SYSINFO): New macro.
  6341. (THREAD_SYSINFO): Likewise.
  6342. * sysdeps/unix/sysv/linux/ia64/dl-sysdep.h: New file.
  6343. * sysdeps/unix/sysv/linux/ia64/pt-vfork.S: Work around gas problem.
  6344. 2003-12-06 Ulrich Drepper <drepper@redhat.com>
  6345. * sysdeps/unix/sysv/linux/ia64/pt-initfini.c: Use .init_array
  6346. instead of .init. Patch by David Mosberger.
  6347. 2003-11-30 Thorsten Kukuk <kukuk@suse.de>
  6348. * sysdeps/pthread/configure.in: Remove broken declaration in C
  6349. cleanup handling check.
  6350. 2003-11-30 Andreas Jaeger <aj@suse.de>
  6351. * Makefile (CFLAGS-pt-initfini.s): Add $(fno_unit_at_a_time).
  6352. * sysdeps/unix/sysv/linux/x86_64/Makefile (CFLAGS-pt-initfini.s):
  6353. Likewise.
  6354. 2003-11-27 Jakub Jelinek <jakub@redhat.com>
  6355. * sysdeps/unix/sysv/linux/internaltypes.h (ATTR_FLAG_OLDATTR): Define.
  6356. * pthread_attr_destroy.c: Include shlib-compat.h.
  6357. (__pthread_attr_destroy): Return immediately if ATTR_FLAG_OLDATTR
  6358. is set in iattr->flags.
  6359. * pthread_attr_init.c (__pthread_attr_init_2_0): Set ATTR_FLAG_OLDATTR.
  6360. 2003-11-21 Jakub Jelinek <jakub@redhat.com>
  6361. * Makefile (distribute): Add tst-cleanup4aux.c.
  6362. * tst-cond12.c (prepare): Add prototype. Move after test-skeleton.c
  6363. include.
  6364. 2003-11-21 Ulrich Drepper <drepper@redhat.com>
  6365. * tst-cond12.c (do_test): If USE_COND_SIGNAL is defined, use
  6366. pthread_cond_signal.
  6367. * sysdeps/pthread/pthread_cond_wait.c (__pthread_cond_wait): Don't
  6368. store mutex address if the current value is ~0l.
  6369. * sysdeps/pthread/pthread_cond_timedwait.c
  6370. (__pthread_cond_timedwait): Likewise.
  6371. * sysdeps/pthread/pthread_cond_broadcast.c
  6372. (__pthread_cond_broadcast): Don't use requeue for pshared
  6373. condvars.
  6374. * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S
  6375. (__pthread_cond_wait): Don't store mutex address if the current
  6376. value is ~0l.
  6377. * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S
  6378. (__pthread_cond_timedwait): Likewise.
  6379. * sysdeps/unix/sysv/linux/x86_64/pthread_cond_broadcast.S
  6380. (__pthread_cond_broadcast): Don't use requeue for pshared
  6381. condvars.
  6382. * pthread_cond_init.c (__pthread_cond_init): Initialize __mutex
  6383. element with ~0l for pshared condvars, with NULL otherwise.
  6384. * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S
  6385. (__pthread_cond_wait): Don't store mutex address if the current
  6386. value is ~0l.
  6387. * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S
  6388. (__pthread_cond_timedwait): Likewise.
  6389. * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_broadcast.S
  6390. (__pthread_cond_broadcast): Don't use requeue for pshared
  6391. condvars.
  6392. * Makefile: Add rules to build and run tst-cond12 and tst-cond13.
  6393. * tst-cond12.c: New file.
  6394. * tst-cond13.c: New file.
  6395. 2003-11-17 Ulrich Drepper <drepper@redhat.com>
  6396. * sysdeps/pthread/configure.in: Make missing forced unwind support
  6397. fatal.
  6398. 2003-11-11 Ulrich Drepper <drepper@redhat.com>
  6399. * pthreadP.h: Don't declare __pthread_unwind as weak inside libpthread.
  6400. 2003-11-06 Ulrich Drepper <drepper@redhat.com>
  6401. * Makefile: Add magic to clean up correctly.
  6402. 2003-11-05 Jakub Jelinek <jakub@redhat.com>
  6403. * unwind.c (FRAME_LEFT): Define.
  6404. (unwind_stop): Handle old style cleanups here.
  6405. (__pthread_unwind): Handle old style cleanups only if
  6406. !HAVE_FORCED_UNWIND.
  6407. * Makefile (tests): Add tst-cleanup4 and tst-cleanupx4.
  6408. (CFLAGS-tst-cleanupx4.c): Add -fexceptions.
  6409. ($(objpfx)tst-cleanup4): Depend on $(objpfx)tst-cleanup4aux.o.
  6410. ($(objpfx)tst-cleanupx4): Likewise.
  6411. * tst-cleanup4.c: New test.
  6412. * tst-cleanup4aux.c: New.
  6413. * tst-cleanupx4.c: New test.
  6414. 2003-11-04 Ulrich Drepper <drepper@redhat.com>
  6415. * sysdeps/pthread/bits/stdio-lock.h: Use lll_*lock instead of
  6416. lll_mutex_*lock macros to skip atomic operations on some archs.
  6417. 2003-11-03 Ulrich Drepper <drepper@redhat.com>
  6418. * sysdeps/pthread/tst-timer.c (main): Initialize
  6419. sigev2.sigev_value as well.
  6420. 2003-10-15 Roland McGrath <roland@redhat.com>
  6421. * sysdeps/pthread/configure.in: Barf if visibility attribute support
  6422. is missing.
  6423. * sysdeps/pthread/configure: Regenerated.
  6424. 2003-10-09 Kaz Kojima <kkojima@rr.iij4u.or.jp>
  6425. * sysdeps/unix/sysv/linux/sh/lowlevellock.h: Completely revamp the
  6426. locking macros. No distinction between normal and mutex locking
  6427. anymore.
  6428. * sysdeps/unix/sysv/linux/sh/lowlevellock.S: Rewrite mutex locking.
  6429. Merge bits from lowlevelmutex.S we still need.
  6430. * sysdeps/unix/sysv/linux/sh/libc-lowlevelmutex.S: Remove.
  6431. * sysdeps/unix/sysv/linux/sh/lowlevelmutex.S: Likewise.
  6432. * sysdeps/unix/sysv/linux/sh/not-cancel.h: New file.
  6433. * sysdeps/unix/sysv/linux/sh/pthread_barrier_wait.S: Adjust for
  6434. new mutex implementation.
  6435. * sysdeps/unix/sysv/linux/sh/pthread_cond_broadcast.S: Likewise.
  6436. * sysdeps/unix/sysv/linux/sh/pthread_cond_signal.S: Likewise.
  6437. * sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S: Likewise.
  6438. * sysdeps/unix/sysv/linux/sh/pthread_cond_wait.S: Likewise.
  6439. * sysdeps/unix/sysv/linux/sh/pthread_rwlock_rdlock.S: Likewise.
  6440. * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedrdlock.S: Likewise.
  6441. * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedwrlock.S: Likewise.
  6442. * sysdeps/unix/sysv/linux/sh/pthread_rwlock_unlock.S: Likewise.
  6443. * sysdeps/unix/sysv/linux/sh/pthread_rwlock_wrlock.S: Likewise.
  6444. * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h (PSEUDO): Also defined
  6445. symbol for entry point to avoid cancellation.
  6446. 2003-10-07 Jakub Jelinek <jakub@redhat.com>
  6447. * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: Backout 2003-10-02
  6448. changes.
  6449. (SAVE_OLDTYPE_0): Fix a typo.
  6450. 2003-10-03 Ulrich Drepper <drepper@redhat.com>
  6451. * sysdeps/unix/sysv/linux/i386/pthread_once.S (__pthread_once):
  6452. Check __sigsetjmp return value. Reported by Daniel Jacobowitz.
  6453. 2003-10-02 Ulrich Drepper <drepper@redhat.com>
  6454. * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (DOCARGS_1): Use
  6455. correct offset.
  6456. 2003-10-02 Jakub Jelinek <jakub@redhat.com>
  6457. * Makefile (tests): Add tst-cancel19.
  6458. * tst-cancel19.c: New test.
  6459. 2003-10-02 Ulrich Drepper <drepper@redhat.com>
  6460. * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: Fix saving and
  6461. restoring of the old cancellation type.
  6462. 2003-09-30 Jakub Jelinek <jakub@redhat.com>
  6463. * sysdeps/pthread/malloc-machine.h: Remove misleading comment.
  6464. 2003-09-27 Wolfram Gloger <wg@malloc.de>
  6465. * sysdeps/pthread/malloc-machine.h: New file
  6466. 2003-09-24 Roland McGrath <roland@redhat.com>
  6467. * allocatestack.c (__make_stacks_executable): Don't ignore return
  6468. value from _dl_make_stack_executable.
  6469. 2003-09-24 Ulrich Drepper <drepper@redhat.com>
  6470. * allocatestack.c (__make_stacks_executable): Also change
  6471. permission of the currently unused stacks.
  6472. * allocatestack.c (change_stack_perm): Split out from
  6473. __make_stacks_executable.
  6474. (allocate_stack): If the required permission changed between the time
  6475. we started preparing the stack and queueing it, change the permission.
  6476. (__make_stacks_executable): Call change_stack_perm.
  6477. * Makefile: Build tst-execstack-mod locally.
  6478. * tst-execstack-mod.c: New file.
  6479. 2003-09-23 Jakub Jelinek <jakub@redhat.com>
  6480. * Makefile (tests): Only add tst-execstack if have-z-execstack is yes.
  6481. 2003-09-23 Roland McGrath <roland@redhat.com>
  6482. * tst-execstack.c: New file.
  6483. * Makefile (tests): Add it.
  6484. ($(objpfx)tst-execstack, $(objpfx)tst-execstack.out): New targets.
  6485. (LDFLAGS-tst-execstack): New variable.
  6486. * allocatestack.c (allocate_stack): Use GL(dl_stack_flags) to decide
  6487. whether to use PROT_EXEC for stack mmap.
  6488. (__make_stacks_executable): New function.
  6489. * pthreadP.h: Declare it.
  6490. * init.c (__pthread_initialize_minimal_internal): Set
  6491. GL(dl_make_stack_executable_hook) to that.
  6492. 2003-09-22 Ulrich Drepper <drepper@redhat.com>
  6493. * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Adjust for latest
  6494. recommendation from AMD re avoidance of lock prefix.
  6495. 2003-09-22 Jakub Jelinek <jakub@redhat.com>
  6496. * sysdeps/unix/sysv/linux/lowlevellock.c (__lll_timedlock_wait): Use
  6497. lll_futex_timed_wait instead of lll_futex_wait.
  6498. * sysdeps/unix/sysv/linux/s390/lowlevellock.c: Removed.
  6499. * sysdeps/unix/sysv/linux/s390/lowlevelmutex.c: Removed.
  6500. * sysdeps/unix/sysv/linux/s390/libc-lowlevellock.c: Removed.
  6501. * sysdeps/unix/sysv/linux/s390/libc-lowlevelmutex.c: Removed.
  6502. * sysdeps/unix/sysv/linux/s390/sem_trywait.c: Removed.
  6503. * sysdeps/unix/sysv/linux/s390/sem_wait.c: Removed.
  6504. * sysdeps/unix/sysv/linux/s390/sem_post.c: Removed.
  6505. * sysdeps/unix/sysv/linux/s390/sem_timedwait.c: Removed.
  6506. * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Include atomic.h.
  6507. Completely revamp the locking macros. No distinction between
  6508. normal and mutex locking anymore.
  6509. * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Likewise.
  6510. * sysdeps/unix/sysv/linux/ia64/lowlevellock.h (__lll_lock_wait,
  6511. __lll_lock_timedwait): Fix prototypes.
  6512. * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h (__lll_lock_wait,
  6513. __lll_lock_timedwait): Likewise.
  6514. (lll_mutex_lock, lll_mutex_cond_lock): Use _val instead of _bool
  6515. macros, add __builtin_expect.
  6516. (lll_mutex_timedlock): Likewise. Fix return value.
  6517. * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevelmutex.S: Removed.
  6518. * sysdeps/unix/sysv/linux/i386/i586/libc-lowlevelmutex.S: Removed.
  6519. * sysdeps/unix/sysv/linux/i386/i586/lowlevelmutex.S: Removed.
  6520. * sysdeps/unix/sysv/linux/i386/i686/libc-lowlevelmutex.S: Removed.
  6521. * sysdeps/unix/sysv/linux/i386/i686/lowlevelmutex.S: Removed.
  6522. * sysdeps/unix/sysv/linux/x86_64/libc-lowlevelmutex.S: Removed.
  6523. * sysdeps/unix/sysv/linux/lowlevelmutex.c: Removed.
  6524. * sysdeps/unix/sysv/linux/libc-lowlevelmutex.c: Removed.
  6525. 2003-09-22 Ulrich Drepper <drepper@redhat.com>
  6526. * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S
  6527. (__lll_mutex_lock_wait): Minor optimization to avoid one atomic
  6528. operation if possible.
  6529. * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Don't play tricks
  6530. like jumping over the lock prefix.
  6531. 2003-09-21 Ulrich Drepper <drepper@redhat.com>
  6532. * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Completely revamp the
  6533. locking macros. No distinction between normal and mutex locking
  6534. anymore.
  6535. * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
  6536. * sysdeps/unix/sysv/linux/ia64/lowlevellock.h: Likewise.
  6537. * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Likewise.
  6538. * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S: Rewrite mutex
  6539. locking. Merge bits from lowlevelmutex.S we still need.
  6540. * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
  6541. * sysdeps/unix/sysv/linux/lowlevellock.c: Likewise.
  6542. * sysdeps/unix/sysv/linux/i386/i486/lowlevelmutex.S: Removed.
  6543. * sysdeps/unix/sysv/linux/x86_64/lowlevelmutex.S: Removed.
  6544. * Makefile (routines): Remove libc-lowlevelmutex.
  6545. (libpthread-rountines): Remove lowlevelmutex.
  6546. * sysdeps/unix/sysv/linux/i386/i486/pthread_barrier_wait.S: Adjust
  6547. for new mutex implementation.
  6548. * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_broadcast.S: Likewise.
  6549. * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: Likewise.
  6550. * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Likewise.
  6551. * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_rdlock.S: Likewise.
  6552. * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S:
  6553. Likewise.
  6554. * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S:
  6555. Likewise.
  6556. * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_unlock.S: Likewise.
  6557. * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_wrlock.S: Likewise.
  6558. * sysdeps/unix/sysv/linux/x86_64/pthread_barrier_wait.S: Likewise
  6559. * sysdeps/unix/sysv/linux/x86_64/pthread_cond_broadcast.S: Likewise.
  6560. * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: Likewise.
  6561. * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: Likewise.
  6562. * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_rdlock.S: Likewise.
  6563. * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedrdlock.S:
  6564. Likewise.
  6565. * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedwrlock.S:
  6566. Likewise.
  6567. * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_unlock.S: Likewise.
  6568. * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_wrlock.S: Likewise.
  6569. * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S: Likewise.
  6570. Don't use requeue.
  6571. * sysdeps/unix/sysv/linux/x86_64/pthread_cond_signal.S: Likewise.
  6572. * sysdeps/pthread/pthread_cond_signal.c: Don't use requeue.
  6573. 2003-09-20 Ulrich Drepper <drepper@redhat.com>
  6574. * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Don't match memory
  6575. in parameters of asm with output parameters.
  6576. * pthread_mutex_unlock.c (__pthread_mutex_unlock_usercnt): Change
  6577. type of DECR parameter to int.
  6578. * pthreadP.h: Adjust prototype of __pthread_mutex_unlock_usercnt.
  6579. 2003-09-18 Jakub Jelinek <jakub@redhat.com>
  6580. * tst-attr3.c (tf, do_test): Print stack start/end/size and
  6581. guardsize for each thread.
  6582. 2003-09-17 Jakub Jelinek <jakub@redhat.com>
  6583. * sysdeps/pthread/pthread.h (pthread_getattr_np): Clarify usage.
  6584. * sysdeps/unix/sysv/linux/pthread_attr_setaffinity.c
  6585. (pthread_attr_setaffinity_np): Handle cpuset == NULL.
  6586. * sysdeps/unix/sysv/linux/pthread_attr_getaffinity.c
  6587. (pthread_attr_getaffinity_np): Don't segfault if iattr->cpuset is
  6588. NULL.
  6589. * pthread_getattr_np.c: Set cpuset using pthread_getaffinity_np.
  6590. * pthreadP.h (pthread_getaffinity_np): Add hidden_proto.
  6591. * sysdeps/unix/sysv/linux/pthread_getaffinity.c
  6592. (pthread_getaffinity_np): Add hidden_def.
  6593. * Makefile (tests): Add tst-attr3.
  6594. * tst-attr3.c: New test.
  6595. * sysdeps/i386/Makefile (CFLAGS-tst-align.c): Remove.
  6596. 2003-09-15 Jakub Jelinek <jakub@redhat.com>
  6597. * sysdeps/i386/Makefile (CFLAGS-pthread_create.c,
  6598. CFLAGS-tst-align.c): Add -mpreferred-stack-boundary=4.
  6599. 2003-09-17 Jakub Jelinek <jakub@redhat.com>
  6600. * Makefile (CFLAGS-tst-align.c): Add $(stack-align-test-flags).
  6601. * tst-align.c: Include tst-stack-align.h.
  6602. (tf, do_test): Use TEST_STACK_ALIGN macro.
  6603. 2003-09-17 Ulrich Drepper <drepper@redhat.com>
  6604. * pthread_attr_init.c (__pthread_attr_init_2_0): Remove unused
  6605. variable.
  6606. 2003-09-16 Ulrich Drepper <drepper@redhat.com>
  6607. * pthread_getattr_np.c (pthread_getattr_np): Correctly fill in the
  6608. stack-related values for the initial thread.
  6609. 2003-09-15 Jakub Jelinek <jakub@redhat.com>
  6610. * Makefile (CFLAGS-pthread_once.c): Add $(uses-callbacks).
  6611. 2003-09-11 Ulrich Drepper <drepper@redhat.com>
  6612. * pthread_mutex_lock.c: Minor code rearrangements.
  6613. 2003-09-05 Roland McGrath <roland@redhat.com>
  6614. * pthread_create.c (__pthread_pthread_sizeof_descr): Removed.
  6615. Instead, include ../nptl_db/db_info.c to do its magic.
  6616. * pthread_key_create.c (__pthread_pthread_keys_max): Removed.
  6617. (__pthread_pthread_key_2ndlevel_size): Likewise.
  6618. * sysdeps/alpha/tls.h (DB_THREAD_SELF): New macro.
  6619. * sysdeps/i386/tls.h (DB_THREAD_SELF): New macro.
  6620. * sysdeps/ia64/tls.h (DB_THREAD_SELF): New macro.
  6621. * sysdeps/powerpc/tls.h (DB_THREAD_SELF): New macro.
  6622. * sysdeps/s390/tls.h (DB_THREAD_SELF): New macro.
  6623. * sysdeps/sh/tls.h (DB_THREAD_SELF): New macro.
  6624. * sysdeps/sparc/tls.h (DB_THREAD_SELF): New macro.
  6625. * sysdeps/x86_64/tls.h (DB_THREAD_SELF): New macro.
  6626. * sysdeps/alpha/td_ta_map_lwp2thr.c: File removed.
  6627. * sysdeps/generic/td_ta_map_lwp2thr.c: File removed.
  6628. * sysdeps/i386/td_ta_map_lwp2thr.c: File removed.
  6629. * sysdeps/ia64/td_ta_map_lwp2thr.c: File removed.
  6630. * sysdeps/powerpc/td_ta_map_lwp2thr.c: File removed.
  6631. * sysdeps/s390/td_ta_map_lwp2thr.c: File removed.
  6632. * sysdeps/sh/td_ta_map_lwp2thr.c: File removed.
  6633. * sysdeps/sparc/td_ta_map_lwp2thr.c: File removed.
  6634. * sysdeps/x86_64/td_ta_map_lwp2thr.c: File removed.
  6635. 2003-09-08 Ulrich Drepper <drepper@redhat.com>
  6636. * sysdeps/unix/sysv/linux/x86_64/bits/pthreadtypes.h: Change type
  6637. of pthread_t to be compatible with LT.
  6638. * sysdeps/unix/sysv/linux/sparc/bits/pthreadtypes.h: Likewise.
  6639. * sysdeps/unix/sysv/linux/sh/bits/pthreadtypes.h: Likewise.
  6640. * sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h: Likewise.
  6641. * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: Likewise.
  6642. * sysdeps/unix/sysv/linux/alpha/bits/pthreadtypes.h: Likewise.
  6643. * sysdeps/unix/sysv/linux/ia64/bits/pthreadtypes.h: Likewise.
  6644. * sysdeps/unix/sysv/linux/i386/bits/pthreadtypes.h: Likewise.
  6645. 2003-09-04 Ulrich Drepper <drepper@redhat.com>
  6646. * sysdeps/unix/sysv/linux/i386/not-cancel.h (fcntl_not_cancel): Define.
  6647. 2003-09-04 Jakub Jelinek <jakub@redhat.com>
  6648. * unwind-forcedunwind.c: Move to...
  6649. * sysdeps/pthread/unwind-forcedunwind.c: ...here.
  6650. (pthread_cancel_init): Use ARCH_CANCEL_INIT if defined.
  6651. * sysdeps/pthread/jmpbuf-unwind.h: New file.
  6652. * sysdeps/unix/sysv/linux/ia64/unwind-forcedunwind.c: New file.
  6653. * sysdeps/unix/sysv/linux/ia64/jmpbuf-unwind.h: New file.
  6654. * unwind.c: Include jmpbuf-unwind.h.
  6655. (unwind_stop): Use _JMPBUF_CFA_UNWINDS macro.
  6656. 2003-09-02 Jakub Jelinek <jakub@redhat.com>
  6657. * sysdeps/unix/sysv/linux/ia64/bits/local_lim.h: New file.
  6658. * sysdeps/unix/sysv/linux/ia64/Versions (libpthread): Export
  6659. pthread_attr_setstack and pthread_attr_setstacksize @@GLIBC_2.3.3.
  6660. * sysdeps/unix/sysv/linux/alpha/bits/local_lim.h: New file.
  6661. * sysdeps/unix/sysv/linux/alpha/Versions: New file.
  6662. * sysdeps/unix/sysv/linux/sparc/bits/local_lim.h: New file.
  6663. * sysdeps/unix/sysv/linux/sparc/Versions: New file.
  6664. * pthread_attr_setstack.c (__old_pthread_attr_setstack): New function.
  6665. (pthread_attr_setstack): If PTHREAD_STACK_MIN != 16384, export
  6666. as @@GLIBC_2.3.2 and also export compatibility @GLIBC_2.2.
  6667. * pthread_attr_setstacksize.c (__old_pthread_attr_setstacksize): New
  6668. function.
  6669. (pthread_attr_setstacksize): If PTHREAD_STACK_MIN != 16384, export
  6670. as @@GLIBC_2.3.2 and also export compatibility @GLIBC_2.1.
  6671. * Makefile (tests): Add tst-stack2.
  6672. * tst-stack2.c: New test.
  6673. * tst-stack1.c: Include limits.h and sys/param.h.
  6674. (do_test): Set size to MAX (4 * getpagesize (), PTHREAD_STACK_MIN).
  6675. * pthread_condattr_setpshared.c: Include errno.h.
  6676. (pthread_condattr_setpshared): Return EINVAL if pshared
  6677. is neither PTHREAD_PROCESS_PRIVATE nor PTHREAD_PROCESS_SHARED.
  6678. * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h (PSEUDO): Also
  6679. defined symbol for entry point to avoid cancellation.
  6680. * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h (PSEUDO):
  6681. Likewise.
  6682. * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h (PSEUDO):
  6683. Likewise.
  6684. * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h (PSEUDO):
  6685. Likewise.
  6686. * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h (PSEUDO):
  6687. Likewise.
  6688. * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h (PSEUDO):
  6689. Likewise.
  6690. * sysdeps/unix/sysv/linux/i386/not-cancel.h (__open_nocancel,
  6691. __close_nocancel, __read_nocancel, __write_nocancel,
  6692. __waitpid_nocancel): Add attribute_hidden. If not in libc.so,
  6693. libpthread.so or librt.so, define to corresponding function
  6694. without _nocancel suffix.
  6695. * sysdeps/unix/sysv/linux/s390/not-cancel.h: New file.
  6696. * sysdeps/unix/sysv/linux/powerpc/not-cancel.h: New file.
  6697. * sysdeps/unix/sysv/linux/sparc/not-cancel.h: New file.
  6698. * sysdeps/unix/sysv/linux/x86_64/not-cancel.h: Fix a typo.
  6699. 2003-09-02 Ulrich Drepper <drepper@redhat.com>
  6700. * sysdeps/unix/sysv/linux/i386/not-cancel.h: New file.
  6701. * sysdeps/unix/sysv/linux/x86_64/not-cancel.h: New file.
  6702. * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Make sure the code
  6703. in subsections has a symbol associated with it.
  6704. * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (PSEUDO): Also
  6705. defined symbol for entry point to avoid cancellation.
  6706. * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h (PSEUDO): Likewise.
  6707. 2003-09-01 Jakub Jelinek <jakub@redhat.com>
  6708. * Makefile (tests): Add tst-tls5.
  6709. (module-names): Add tst-tls5mod{,a,b,c,d,e,f}.
  6710. ($(objpfx)tst-tls5mod{,a,b,c,d,e,f}.so-no-z-defs): Set to yes.
  6711. ($(objpfx)tst-tls5): New.
  6712. ($(objpfx)tst-tls6.out): Likewise.
  6713. (tests): Depend on $(objpfx)tst-tls6.out.
  6714. * tst-tls3.c: Include stdint.h and pthreaddef.h.
  6715. (do_test): Check pthread_self () return value alignment.
  6716. * tst-tls3mod.c: Include stdint.h and pthreaddef.h.
  6717. (tf): Check pthread_self () return value alignment.
  6718. * tst-tls5.c: New test.
  6719. * tst-tls5.h: New.
  6720. * tst-tls5mod.c: New.
  6721. * tst-tls5moda.c: New.
  6722. * tst-tls5modb.c: New.
  6723. * tst-tls5modc.c: New.
  6724. * tst-tls5modd.c: New.
  6725. * tst-tls5mode.c: New.
  6726. * tst-tls5modf.c: New.
  6727. * tst-tls6.sh: New test.
  6728. * sysdeps/pthread/pthread-functions.h (struct pthread_functions): Add
  6729. ptr___pthread_cond_timedwait and ptr___pthread_cond_timedwait_2_0.
  6730. * init.c (pthread_functions): Initialize them.
  6731. * forward.c (pthread_cond_timedwait@GLIBC_2.0,
  6732. pthread_cond_timedwait@@GLIBC_2.3.2): New forwards.
  6733. * Versions (libc): Export pthread_cond_timedwait@GLIBC_2.0,
  6734. pthread_cond_timedwait@@GLIBC_2.3.2.
  6735. 2003-09-01 Jakub Jelinek <jakub@redhat.com>
  6736. * sysdeps/unix/sysv/linux/alpha/timer_create.c: New file.
  6737. * sysdeps/unix/sysv/linux/alpha/timer_delete.c: New file.
  6738. * sysdeps/unix/sysv/linux/alpha/timer_getoverr.c: New file.
  6739. * sysdeps/unix/sysv/linux/alpha/timer_gettime.c: New file.
  6740. * sysdeps/unix/sysv/linux/alpha/timer_settime.c: New file.
  6741. * sysdeps/unix/sysv/linux/alpha/Versions: New file.
  6742. * sysdeps/unix/sysv/linux/alpha/aio_cancel.c: New file.
  6743. * sysdeps/unix/sysv/linux/ia64/bits/posix_opt.h: Define
  6744. _POSIX_THREAD_PRIORITY_SCHEDULING.
  6745. * sysdeps/unix/sysv/linux/x86_64/bits/posix_opt.h: Likewise.
  6746. 2003-08-31 Ulrich Drepper <drepper@redhat.com>
  6747. * sysdeps/pthread/bits/stdio-lock.h (_IO_acquire_lock): Avoid
  6748. nested function, use static inline function from libio.h.
  6749. Code by Richard Henderson.
  6750. * sysdeps/pthread/bits/libc-lock.h: Mark pthread_setcancelstate as
  6751. weak.
  6752. 2003-08-30 Jakub Jelinek <jakub@redhat.com>
  6753. * sysdeps/unix/sysv/linux/sparc/sparc64/Versions: New file.
  6754. * sysdeps/unix/sysv/linux/sparc/sparc64/timer_create.c: New file.
  6755. * sysdeps/unix/sysv/linux/sparc/sparc64/timer_delete.c: New file.
  6756. * sysdeps/unix/sysv/linux/sparc/sparc64/timer_getoverr.c: New file.
  6757. * sysdeps/unix/sysv/linux/sparc/sparc64/timer_gettime.c: New file.
  6758. * sysdeps/unix/sysv/linux/sparc/sparc64/timer_settime.c: New file.
  6759. * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: New file.
  6760. * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: New file.
  6761. * sysdeps/unix/sysv/linux/sparc/bits/pthreadtypes.h: New file.
  6762. * sysdeps/unix/sysv/linux/sparc/bits/semaphore.h: New file.
  6763. * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: New file.
  6764. * sysdeps/unix/sysv/linux/sparc/pthread_once.c: New file.
  6765. * sysdeps/unix/sysv/linux/sparc/pt-vfork.S: New file.
  6766. * sysdeps/unix/sysv/linux/sparc/fork.c: New file.
  6767. * sysdeps/unix/sysv/linux/sparc/aio_cancel.c: New file.
  6768. * sysdeps/sparc/sparc32/sparcv9/pthread_spin_lock.c: New file.
  6769. * sysdeps/sparc/sparc32/sparcv9/pthread_spin_trylock.c: New file.
  6770. * sysdeps/sparc/sparc32/sparcv9/pthread_spin_unlock.c: New file.
  6771. * sysdeps/sparc/sparc32/pthread_spin_lock.c: New file.
  6772. * sysdeps/sparc/sparc32/pthread_spin_trylock.c: New file.
  6773. * sysdeps/sparc/sparc32/pthreaddef.h: New file.
  6774. * sysdeps/sparc/sparc64/pthread_spin_lock.c: New file.
  6775. * sysdeps/sparc/sparc64/pthread_spin_trylock.c: New file.
  6776. * sysdeps/sparc/sparc64/pthread_spin_unlock.c: New file.
  6777. * sysdeps/sparc/sparc64/pthreaddef.h: New file.
  6778. * sysdeps/sparc/tls.h: New file.
  6779. * sysdeps/sparc/tcb-offsets.sym: New file.
  6780. * sysdeps/sparc/Makefile: New file.
  6781. * sysdeps/sparc/td_ta_map_lwp2thr.c: New file.
  6782. * init.c [__sparc__] (__NR_set_tid_address): Define.
  6783. 2003-08-29 Jakub Jelinek <jakub@redhat.com>
  6784. * sysdeps/pthread/bits/stdio-lock.h (_IO_acquire_lock,
  6785. _IO_release_lock): Define.
  6786. 2003-08-29 Jakub Jelinek <jakuB@redhat.com>
  6787. * tst-cancel4.c (tf_sigwait, tf_sigwaitinfo, tf_sigtimedwait): Add
  6788. sigemptyset before sigaddset. Reported by jreiser@BitWagon.com.
  6789. 2003-08-27 Ulrich Drepper <drepper@redhat.com>
  6790. * sysdeps/pthread/pthread.h (pthread_exit): Remove __THROW.
  6791. (__pthread_cleanup_class): Add missing return types of member
  6792. functions.
  6793. 2003-08-26 Steven Munroe <sjmunroe@us.ibm.com>
  6794. * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h
  6795. (lll_mutex_unlock_force): Add memory barrier between store and futex
  6796. syscall.
  6797. 2003-08-25 Ulrich Drepper <drepper@redhat.com>
  6798. * tst-cancel4.c (do_test): Also unlink tempfname and remove
  6799. tempmsg in first loop.
  6800. 2003-08-18 Ulrich Drepper <drepper@redhat.com>
  6801. * sysdeps/unix/sysv/linux/bits/posix_opt.h: Define
  6802. _POSIX_THREAD_PRIORITY_SCHEDULING.
  6803. * sysdeps/unix/sysv/linux/i386/bits/posix_opt.h: Likewise.
  6804. 2003-08-07 Jakub Jelinek <jakub@redhat.com>
  6805. * sysdeps/pthread/bits/libc-lock.h [_LIBC && SHARED]
  6806. (__rtld_lock_default_lock_recursive,
  6807. __rtld_lock_default_unlock_recursive): Define.
  6808. [_LIBC && SHARED] (__rtld_lock_lock_recursive,
  6809. __rtld_lock_unlock_recursive): Define using
  6810. GL(_dl_rtld_*lock_recursive).
  6811. * init.c (__pthread_initialize_minimal_internal): Initialize
  6812. _dl_rtld_lock_recursive and _dl_rtld_unlock_recursive.
  6813. Lock GL(_dl_load_lock) the same number of times as
  6814. GL(_dl_load_lock) using non-mt implementation was nested.
  6815. * pthreadP.h (__pthread_cleanup_upto): Add hidden_proto.
  6816. * pt-longjmp.c (__pthread_cleanup_upto): Add hidden_def.
  6817. 2003-08-06 Jakub Jelinek <jakub@redhat.com>
  6818. * tst-cancel17.c (do_test): Make len2 maximum of page size and
  6819. PIPE_BUF.
  6820. 2003-08-07 Jakub Jelinek <jakub@redhat.com>
  6821. * pthread_create.c (__pthread_create_2_0): Clear new_attr.cpuset.
  6822. 2003-08-03 Jakub Jelinek <jakub@redhat.com>
  6823. * sysdeps/pthread/createthread.c (do_clone): Move error handling
  6824. to first syscall error check. Move syscall error check for tkill
  6825. into __ASSUME_CLONE_STOPPED #ifdef.
  6826. 2003-08-02 Ulrich Drepper <drepper@redhat.com>
  6827. * sysdeps/pthread/createthread.c (do_clone): If __ASSUME_CLONE_STOPPED
  6828. is not defined, do explicit synchronization.
  6829. (create_thread): Do not lock pd->lock here. If __ASSUME_CLONE_STOPPED
  6830. is not defined also unlock pd->lock for non-debugging case in case
  6831. it is necessary.
  6832. * pthread_create.c (start_thread): Always get and release pd->lock
  6833. if __ASSUME_CLONE_STOPPED is not defined.
  6834. (start_thread_debug): Removed. Adjust users.
  6835. * allocatestack.c (allocate_stack): Always initialize lock if
  6836. __ASSUME_CLONE_STOPPED is not defined.
  6837. * Makefile (tests): Add tst-sched1.
  6838. * tst-sched1.c: New file.
  6839. * sysdeps/pthread/createthread.c (do_clone): Only use
  6840. sched_setschduler and pass correct parameters.
  6841. 2003-07-31 Jakub Jelinek <jakub@redhat.com>
  6842. * sysdeps/pthread/pthread.h (pthread_attr_setstackaddr,
  6843. pthread_attr_setstacksize): Change PTHREAD_STACK_SIZE to
  6844. PTHREAD_STACK_MIN in comments.
  6845. 2003-07-31 Jakub Jelinek <jakub@redhat.com>
  6846. * sysdeps/pthread/pthread_cond_timedwait.c (__pthread_cond_timedwait):
  6847. Shut up warnings if INTERNAL_SYSCALL_ERROR_P does not use its first
  6848. argument.
  6849. * sysdeps/unix/sysv/linux/timer_create.c (timer_create): Likewise.
  6850. * pthread_condattr_setclock.c (pthread_condattr_setclock): Likewise.
  6851. * sysdeps/unix/sysv/linux/s390/jmp-unwind.c: Include pthreaddef.h.
  6852. (__pthread_cleanup_upto): Fix prototype.
  6853. (_longjmp_unwind): Adjust caller.
  6854. * sysdeps/unix/sysv/linux/s390/lowlevellock.h (__lll_mutex_timedlock):
  6855. Change second argument to const struct pointer.
  6856. * tst-sem8.c (main): Remove unused s2 and s3 variables.
  6857. * tst-sem9.c (main): Likewise.
  6858. * unwind.c: Include string.h for strlen prototype.
  6859. 2003-07-31 Ulrich Drepper <drepper@redhat.com>
  6860. * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S
  6861. (__pthread_cond_timedwait): Don't use cmov unless HAVE_CMOV is defined.
  6862. * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_timedwait.S:
  6863. Define HAVE_CMOV.
  6864. Patch by Nicholas Miell <nmiell@attbi.com>.
  6865. 2003-07-30 Jakub Jelinek <jakub@redhat.com>
  6866. * init.c (__pthread_initialize_minimal_internal): Initialize
  6867. GL(dl_init_static_tls).
  6868. * pthreadP.h (__pthread_init_static_tls): New prototype.
  6869. * allocatestack.c (init_one_static_tls, __pthread_init_static_tls):
  6870. New functions.
  6871. * Makefile (tests): Add tst-tls4.
  6872. (modules-names): Add tst-tls4moda and tst-tls4modb.
  6873. ($(objpfx)tst-tls4): Link against libdl and libpthread.
  6874. ($(objpfx)tst-tls4.out): Depend on tst-tls4moda.so and
  6875. tst-tls4modb.so.
  6876. * tst-tls4.c: New file.
  6877. * tst-tls4moda.c: New file.
  6878. * tst-tls4modb.c: New file.
  6879. 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
  6880. * sysdeps/pthread/timer_create.c (timer_create): Call timer_delref
  6881. before __timer_dealloc.
  6882. * sysdeps/pthread/timer_routines.c (__timer_thread_find_matching):
  6883. Don't call list_unlink.
  6884. 2003-07-29 Roland McGrath <roland@redhat.com>
  6885. * Makefile [$(build-shared) = yes] (tests): Depend on $(test-modules).
  6886. 2003-07-25 Jakub Jelinek <jakub@redhat.com>
  6887. * tst-cancel17.c (do_test): Check if aio_cancel failed.
  6888. Don't reuse struct aiocb A if it failed.
  6889. Write fpathconf (fds[1], _PC_PIPE_BUF) + 2 bytes using aio_write,
  6890. not just one byte, as that does not block.
  6891. 2003-07-22 Jakub Jelinek <jakub@redhat.com>
  6892. * sysdeps/pthread/unwind-resume.c: New file.
  6893. * sysdeps/pthread/Makefile (routines, shared-only-routines): Add
  6894. unwind-resume in csu subdir.
  6895. (CFLAGS-unwind-resume.c, CFLAGS-rt-unwind-resume.c): Compile with
  6896. exceptions.
  6897. (librt-sysdep_routines, librt-shared-only-routines): Add
  6898. rt-unwind-resume.
  6899. * sysdeps/pthread/rt-unwind-resume.c: New file.
  6900. * unwind-forcedunwind.c: New file.
  6901. * Makefile (libpthread-routines): Add unwind-forcedunwind.
  6902. (libpthread-shared-only-routines): Likewise.
  6903. (CFLAGS-unwind-forcedunwind.c): Compile with exceptions.
  6904. * pthreadP.h (pthread_cancel_init): New prototype.
  6905. * pthread_cancel.c (pthread_cancel): Call pthread_cancel_init.
  6906. * sysdeps/pthread/createthread.c (do_thread, create_thread): Make
  6907. attr argument const struct pthread_attr *.
  6908. * res.c (__res_state): Return __resp.
  6909. * descr.h: Include resolv.h.
  6910. (struct pthread): Add res field.
  6911. * pthread_create.c: Include resolv.h.
  6912. (start_thread): Initialize __resp.
  6913. * Makefile (tests): Add tst-_res1.
  6914. (module-names): Add tst-_res1mod1, tst-_res1mod2.
  6915. ($(objpfx)tst-_res1mod2.so): Depend on $(objpfx)tst-_res1mod1.so.
  6916. ($(objpfx)tst-_res1): Depend on $(objpfx)tst-_res1mod2.so and
  6917. libpthread.
  6918. * tst-_res1.c: New file.
  6919. * tst-_res1mod1.c: New file.
  6920. * tst-_res1mod2.c: New file.
  6921. 2003-07-21 Ulrich Drepper <drepper@redhat.com>
  6922. * sysdeps/pthread/createthread.c: Don't define CLONE_STOPPED.
  6923. * Makefile: Define various *-no-z-defs variables for test DSOs
  6924. which has undefined symbols.
  6925. 2003-07-21 Steven Munroe <sjmunroe@us.ibm.com>
  6926. * sysdeps/unix/sysv/linux/powerpc/pthread_once.c (__pthread_once):
  6927. Retry if the stwcx fails to store once_control.
  6928. 2003-07-20 Ulrich Drepper <drepper@redhat.com>
  6929. * Makefile (libpthread-routines): Add pthread_attr_getaffinity and
  6930. pthread_attr_setaffinity.
  6931. * Versions [libpthread] (GLIBC_2.3.3): Likewise.
  6932. * sysdeps/unix/sysv/linux/pthread_attr_getaffinity.c: New file.
  6933. * sysdeps/unix/sysv/linux/pthread_attr_setaffinity.c: New file.
  6934. * pthread_attr_destroy.c: Free cpuset element if allocated.
  6935. * pthread_create.c: Pass iattr as additional parameter to
  6936. create_thread.
  6937. * sysdeps/pthread/createthread.c: If attribute is provided and
  6938. a new thread is created with affinity set or scheduling parameters,
  6939. start thread with CLONE_STOPPED.
  6940. * sysdeps/pthread/pthread.h: Declare pthread_attr_getaffinity and
  6941. pthread_attr_setaffinity.
  6942. * sysdeps/unix/sysv/linux/internaltypes.h (struct pthread_attr): Add
  6943. cpuset element.
  6944. 2003-07-15 Ulrich Drepper <drepper@redhat.com>
  6945. * tst-tcancel-wrappers.sh: lseek and llseek are not cancelation points.
  6946. 2003-07-14 Ulrich Drepper <drepper@redhat.com>
  6947. * sysdeps/pthread/configure.in: Require CFI directives also for
  6948. ppc and s390.
  6949. 2003-07-15 Jakub Jelinek <jakub@redhat.com>
  6950. * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h (PSEUDO):
  6951. Add cfi directives.
  6952. 2003-07-12 Kaz Kojima <kkojima@rr.iij4u.or.jp>
  6953. * sysdeps/sh/tcb-offsets.sym: Add RESULT, TID, CANCELHANDLING and
  6954. CLEANUP_JMP_BUF.
  6955. * sysdeps/unix/sysv/linux/sh/pthread_cond_wait.S: Use more
  6956. registers as variables. Call __pthread_mutex_unlock_usercnt.
  6957. * sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S: Likewise.
  6958. * sysdeps/unix/sysv/linux/sh/pthread_rwlock_rdlock.S: Store TID
  6959. not self pointer in __writer. Compare with TID to determine
  6960. deadlocks.
  6961. * sysdeps/unix/sysv/linux/sh/pthread_rwlock_wrlock.S: Likewise.
  6962. * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedrdlock.S:
  6963. Likewise.
  6964. * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedwrlock.S:
  6965. Likewise.
  6966. * sysdeps/unix/sysv/linux/sh/sem_wait.S: Add cancellation support.
  6967. * sysdeps/unix/sysv/linux/sh/sem_timedwait.S: Likewise.
  6968. * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Define all the nice
  6969. macros also when compiling librt.
  6970. 2003-07-11 Jakub Jelinek <jakub@redhat.com>
  6971. * Makefile (CFLAGS-pthread_once.c): Add -fexceptions
  6972. -fasynchronous-unwind-tables.
  6973. * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h
  6974. (PSEUDO): Add cfi directives.
  6975. * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h (PSEUDO):
  6976. Likewise.
  6977. * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h (PSEUDO):
  6978. Likewise.
  6979. 2003-07-08 Jakub Jelinek <jakub@redhat.com>
  6980. * pthreadP.h (__pthread_unwind_next, __pthread_register_cancel,
  6981. __pthread_unregister_cancel): Add prototypes and hidden_proto.
  6982. * unwind.c (__pthread_unwind_next): Add hidden_def.
  6983. * cleanup.c (__pthread_register_cancel, __pthread_unregister_cancel):
  6984. Likewise.
  6985. * sysdeps/unix/sysv/linux/i386/i486/sem_wait.S (__new_sem_wait):
  6986. Use HIDDEN_JUMPTARGET to jump to __pthread_unwind.
  6987. * sysdeps/unix/sysv/linux/i386/i486/sem_timedwait.S (sem_timedwait):
  6988. Likewise.
  6989. * sysdeps/unix/sysv/linux/x86_64/sem_wait.S (sem_wait): Likewise.
  6990. * sysdeps/unix/sysv/linux/x86_64/sem_timedwait.S (sem_timedwait):
  6991. Likewise.
  6992. * sysdeps/unix/sysv/linux/i386/pthread_once.S (__pthread_once): Use
  6993. HIDDEN_JUMPTARGET to call __pthread_register_cancel,
  6994. __pthread_unregister_cancel and __pthread_unwind_next.
  6995. 2003-07-04 Jakub Jelinek <jakub@redhat.com>
  6996. * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (PSEUDO): Use
  6997. different symbol for the cancellation syscall wrapper and
  6998. non-cancellation syscall wrapper.
  6999. (PSEUDO_END): Define.
  7000. 2003-07-05 Richard Henderson <rth@redhat.com>
  7001. * sysdeps/alpha/elf/pt-initfini.c: Avoid .ent/.end.
  7002. * sysdeps/unix/sysv/linux/alpha/lowlevellock.h (lll_futex_wait,
  7003. lll_futex_timed_wait, lll_futex_wake, lll_futex_requeue): On success
  7004. return actual return value from the syscall, not 0.
  7005. 2003-07-07 Ulrich Drepper <drepper@redhat.com>
  7006. * descr.h (struct pthread): Add pid field.
  7007. * allocatestack.c (allocate_stack): Initialize pid field in descriptor.
  7008. (__reclaim_stacks): Likewise.
  7009. * init.c (sigcancel_handler): If __ASSUME_CORRECT_SI_PID is defined
  7010. also check for PID of the signal source.
  7011. (__pthread_initialize_minimal_internal): Also initialize pid field
  7012. of initial thread's descriptor.
  7013. * pthread_cancel.c: Use tgkill instead of tkill if possible.
  7014. * sysdeps/unix/sysv/linux/fork.c: Likewise.
  7015. * sysdeps/unix/sysv/linux/pt-raise.c: Likewise.
  7016. * sysdeps/unix/sysv/linux/pthread_kill.c: Likewise.
  7017. * sysdeps/unix/sysv/linux/raise.c: Likewise.
  7018. 2003-07-05 Ulrich Drepper <drepper@redhat.com>
  7019. * sysdeps/pthread/bits/libc-lock.h (__libc_cleanup_push): Renamed.
  7020. Fix use of parameter.
  7021. (__libc_cleanup_pop): Likewise.
  7022. 2003-07-04 Ulrich Drepper <drepper@redhat.com>
  7023. * init.c (sigcancel_handler): Change parameters to match handler
  7024. for SA_SIGACTION. Check signal number and code to recognize
  7025. invalid invocations.
  7026. 2003-07-03 Roland McGrath <roland@redhat.com>
  7027. * sysdeps/ia64/td_ta_map_lwp2thr.c (td_ta_map_lwp2thr):
  7028. Apply sizeof (struct pthread) bias to r13 value.
  7029. 2003-07-03 Ulrich Drepper <drepper@redhat.com>
  7030. * sysdeps/pthread/configure.in: Require CFI directives.
  7031. * sysdeps/pthread/librt-cancellation.c (__pthread_unwind): Remove
  7032. definition.
  7033. * pthreadP.h (__pthread_unwind): Add hidden_proto if used in
  7034. libpthread compilation.
  7035. * unwind.c (__pthread_unwind): Add hidden_def.
  7036. * Versions (libpthread) [GLIBC_PRIVATE]: Add __pthread_unwind.
  7037. 2003-07-01 Ulrich Drepper <drepper@redhat.com>
  7038. * libc-cancellation.c (__libc_cleanup_routine): Define.
  7039. * sysdeps/pthread/bits/libc-lock.h (__pthread_cleanup_push): Define.
  7040. (__pthread_cleanup_pop): Define.
  7041. 2003-07-01 Richard Henderson <rth@redhat.com>
  7042. * sysdeps/alpha/elf/pt-initfini.c: New file.
  7043. * sysdeps/alpha/pthread_spin_lock.S: New file.
  7044. * sysdeps/alpha/pthread_spin_trylock.S: New file.
  7045. * sysdeps/alpha/pthreaddef.h: New file.
  7046. * sysdeps/alpha/td_ta_map_lwp2thr.c: New file.
  7047. * sysdeps/alpha/tls.h: New file.
  7048. * sysdeps/unix/sysv/linux/alpha/Makefile: New file.
  7049. * sysdeps/unix/sysv/linux/alpha/bits/pthreadtypes.h: New file.
  7050. * sysdeps/unix/sysv/linux/alpha/bits/semaphore.h: New file.
  7051. * sysdeps/unix/sysv/linux/alpha/createthread.c: New file.
  7052. * sysdeps/unix/sysv/linux/alpha/fork.c: New file.
  7053. * sysdeps/unix/sysv/linux/alpha/lowlevellock.h: New file.
  7054. * sysdeps/unix/sysv/linux/alpha/pt-vfork.S: New file.
  7055. * sysdeps/unix/sysv/linux/alpha/pthread_once.c: New file.
  7056. * sysdeps/unix/sysv/linux/alpha/sem_post.c: New file.
  7057. * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: New file.
  7058. 2003-07-01 Ulrich Drepper <drepper@redhat.com>
  7059. * sysdeps/unix/sysv/linux/x86_64/pthread_once.S: Add correct
  7060. cleanup support and unwind info.
  7061. 2003-06-30 Ulrich Drepper <drepper@redhat.com>
  7062. * sysdeps/unix/sysv/linux/i386/pthread_once.S (__pthread_once):
  7063. Use correct cleanup handler registration. Add unwind info.
  7064. * sysdeps/unix/sysv/linux/unwindbuf.sym: New file.
  7065. * sysdeps/unix/sysv/linux/Makefile: Add rule to build unwindbuf.h.
  7066. * tst-once3.c: Add cleanup handler and check it is called.
  7067. * tst-once4.c: Likewise.
  7068. * tst-oncex3.c: New file.
  7069. * tst-oncex4.c: New file.
  7070. * Makefile: Add rules to build and run tst-oncex3 and tst-oncex4.
  7071. 2003-06-29 Ulrich Drepper <drepper@redhat.com>
  7072. * sysdeps/pthread/configure.in: Check for C cleanup handling in gcc.
  7073. 2003-06-27 Ulrich Drepper <drepper@redhat.com>
  7074. * tst-cancel4.c (tf_msgrcv): Use IPC_PRIVATE in msgget call.
  7075. (tf_msgsnd): Likewise.
  7076. * tst-cancel4.c (tf_msgrcv): Strengthen test against valid
  7077. premature returns a bit more.
  7078. 2003-06-26 Ulrich Drepper <drepper@redhat.com>
  7079. * sysdeps/pthread/librt-cancellation.c: Move __pthread_unwind
  7080. definition to the front.
  7081. * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: Rename
  7082. the cleanup functions to make the names unique. Fix dwarf opcode
  7083. un unwind table.
  7084. * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Rename cleanup
  7085. functions to make the names unique. Fix CFA offset for two blocks.
  7086. 2003-06-25 Ulrich Drepper <drepper@redhat.com>
  7087. * sysdeps/pthread/pthread.h (class __pthread_cleanup_class): Add
  7088. missing closing braces.
  7089. Patch by Christophe Saout <christophe@saout.de>.
  7090. 2003-06-24 Roland McGrath <roland@redhat.com>
  7091. * pthread_mutex_trylock.c (__pthread_mutex_trylock): Typo fix.
  7092. 2003-06-24 Ulrich Drepper <drepper@redhat.com>
  7093. * sysdeps/unix/sysv/linux/ia64/bits/posix_opt.h: New file.
  7094. * sysdeps/unix/sysv/linux/x86_64/bits/posix_opt.h: New file.
  7095. * pthreadP.h: Declare __find_thread_by_id.
  7096. * allocatestack.c [HP_TIMING_AVAIL]: Define __find_thread_by_id.
  7097. * pthread_clock_gettime.c: Allow using other thread's clock.
  7098. * pthread_clock_settime.c: Likewise.
  7099. * sysdeps/pthread/pthread_getcpuclockid.c: Likewise.
  7100. * Makefile: Add rules to build and run tst-clock2.
  7101. * tst-clock2.c: New file.
  7102. 2003-06-23 Ulrich Drepper <drepper@redhat.com>
  7103. * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: Rewrite
  7104. to use exception-based cleanup handler.
  7105. * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Likewise.
  7106. * tst-cond8.c (ch): Announce that we are done.
  7107. * pthreadP.h (__pthread_mutex_cond_lock): Mark with internal_function.
  7108. * tst-cancel17.c (tf): Retry aio_suspend in case of EINTR.
  7109. Also test aio_suspend with timeout value.
  7110. 2003-06-22 Ulrich Drepper <drepper@redhat.com>
  7111. * pthreadP.h: Mark __pthread_mutex_unlock_usercnt also hidden.
  7112. * pthread_mutex_unlock.c (__pthread_mutex_unlock_usercnt): Add
  7113. attribute_hidden.
  7114. * pthreadP.h (__pthread_mutex_init_internal): Mark hidden.
  7115. (__pthread_mutex_lock_internal): Likewise.
  7116. (__pthread_mutex_unlock_internal): Likewise.
  7117. (__pthread_mutex_unlock_usercnt): Declare.
  7118. * pthread_mutex_destroy.c: Always fail if used in any way.
  7119. * pthread_mutex_init.c: Update comment.
  7120. * pthread_mutex_lock.c: If NO_INCR is not defined adjust __nusers.
  7121. * pthread_mutex_timedlock.c: Adjust __nusers.
  7122. * pthread_mutex_trylock.c: Adjust __nusers.
  7123. * pthread_mutex_unlock.c: Old code is in __pthread_mutex_unlock_usercnt
  7124. and public interfaces are wrapper with pass additional parameter.
  7125. __pthread_mutex_unlock_usercnt does not adjust __nusers if second
  7126. parameter zero.
  7127. * tst-mutex8.c: New file.
  7128. * Makefile (tests): Add tst-mutex8.
  7129. * sysdeps/pthread/pthread_cond_timedwait.c: Call
  7130. __pthread_mutex_unlock_usercnt.
  7131. * sysdeps/pthread/pthread_cond_wait.c: Likewise.
  7132. * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: Likewise.
  7133. * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Likewise.
  7134. * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: Likewise.
  7135. * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: Likewise.
  7136. * sysdeps/unix/sysv/linux/pthread_mutex_cond_lock.c: Define NO_INCR.
  7137. * sysdeps/unix/sysv/linux/i386/bits/pthreadtypes.h (pthread_mutex_t):
  7138. Add __nusers.
  7139. * sysdeps/unix/sysv/linux/ia64/bits/pthreadtypes.h: Likewise.
  7140. * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: Likewise.
  7141. * sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h: Likewise.
  7142. * sysdeps/unix/sysv/linux/sh/bits/pthreadtypes.h: Likewise.
  7143. * sysdeps/unix/sysv/linux/x86_64/bits/pthreadtypes.h: Likewise.
  7144. * pthread_mutex_lock.c: Don't store THREAD_ID in __owner, use TID.
  7145. * pthread_mutex_timedlock.c: Likewise.
  7146. * pthread_mutex_trylock.c: Adjust __nusers.
  7147. * pthread_mutex_unlock.c: Compare with TID not THREAD_ID.
  7148. * tst-mutex9.c: New file.
  7149. * Makefile (tests): Add tst-mutex9.
  7150. * sysdeps/i386/tls.h: Remove THREAD_ID definition.
  7151. * sysdeps/ia64/tls.h: Likewise.
  7152. * sysdeps/powerpc/tls.h: Likewise.
  7153. * sysdeps/s390/tls.h: Likewise.
  7154. * sysdeps/sh/tls.h: Likewise.
  7155. * sysdeps/x86_64/tls.h: Likewise.
  7156. * sysdeps/unix/sysv/linux/i386/bits/pthreadtypes.h (pthread_mutex_t):
  7157. Change type of __owner.
  7158. * sysdeps/unix/sysv/linux/ia64/bits/pthreadtypes.h: Likewise.
  7159. * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: Likewise.
  7160. * sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h: Likewise.
  7161. * sysdeps/unix/sysv/linux/sh/bits/pthreadtypes.h: Likewise.
  7162. * sysdeps/unix/sysv/linux/x86_64/bits/pthreadtypes.h: Likewise.
  7163. 2003-06-19 Jakub Jelinek <jakub@redhat.com>
  7164. * sysdeps/unix/sysv/linux/ia64/sem_post.c: Move to...
  7165. * sysdeps/unix/sysv/linux/sem_post.c: ...here.
  7166. * sysdeps/unix/sysv/linux/sem_post.c: Move to...
  7167. * sysdeps/unix/sysv/linux/powerpc/sem_post.c: ... here. Pass nr + 1
  7168. instead of nr to lll_futex_wake. Only set errno and return -1
  7169. if err < 0.
  7170. * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h (lll_futex_wait,
  7171. lll_futex_timed_wait, lll_futex_wake, lll_futex_requeue): On success
  7172. return actual return value from the syscall, not 0.
  7173. 2003-06-18 Ulrich Drepper <drepper@redhat.com>
  7174. * tst-cancel4.c (tf_msgsnd): Don't always use 100 as the type,
  7175. find a random value.
  7176. (tf_msgrcv): Likewise. Also don't report msgrcv returns if
  7177. errno==EIDRM.
  7178. * sysdeps/unix/sysv/linux/timer_settime.c: Add prototype for
  7179. compat_timer_settime.
  7180. * sysdeps/unix/sysv/linux/timer_gettime.c: Add prototype for
  7181. compat_timer_gettime.
  7182. * sysdeps/unix/sysv/linux/timer_getoverr.c: Add prototype for
  7183. compat_timer_getoverrun.
  7184. * sysdeps/unix/sysv/linux/timer_delete.c: Add prototype for
  7185. compat_timer_delete.
  7186. * pthread_mutex_destroy.c (__pthread_mutex_destroy): For
  7187. error-checking mutex detect busy mutexes.
  7188. 2003-06-17 Ulrich Drepper <drepper@redhat.com>
  7189. * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (lll_mutex_lock):
  7190. Add ax to clobber list.
  7191. (lll_mutex_cond_lock): Likewise.
  7192. (lll_mutex_unlock): Likewise.
  7193. (lll_lock): Likewise.
  7194. (lll_unlock): Likewise.
  7195. * Makefile: Add rules to build and run tst-cancel18 and tst-cancelx18.
  7196. * tst-cancel18.c: New file.
  7197. * tst-cancelx18.c: New file.
  7198. * tst-cancel4.c: Test connect, creat, msgrcv, msgsnd, sendmsg, sendto,
  7199. and tcdrain.
  7200. * Makefile: Add rules to build and run tst-cancel17 and tst-cancel17x.
  7201. * tst-cancel17.c: New file.
  7202. * tst-cancelx17.c: New file.
  7203. * sysdeps/unix/sysv/linux/sigtimedwait.c: New file.
  7204. * sysdeps/unix/sysv/linux/sigwait.c: New file.
  7205. * sysdeps/unix/sysv/linux/sigwaitinfo.c: New file.
  7206. * tst-cancel4.c: Test open, close, pread, pwrite, fsync, and msync.
  7207. 2003-06-16 Jakub Jelinek <jakub@redhat.com>
  7208. * sysdeps/pthread/createthread.c (create_thread): Set
  7209. header.multiple_threads unconditionally.
  7210. * allocatestack.c (allocate_stack): Likewise.
  7211. * descr.h (struct pthread): Add header.multiple_threads
  7212. unconditionally.
  7213. * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (CENABLE, CDISABLE):
  7214. Define for librt. #error if neither libpthread, libc nor librt.
  7215. * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (CENABLE, CDISABLE):
  7216. Likewise.
  7217. * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h (CENABLE,
  7218. CDISABLE): Likewise.
  7219. * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h (CENABLE,
  7220. CDISABLE): Likewise.
  7221. * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h (CENABLE,
  7222. CDISABLE): Likewise.
  7223. * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h (CENABLE,
  7224. CDISABLE): Likewise. Access header.multiple_threads outside of
  7225. libc and libpthread.
  7226. * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h (CENABLE, CDISABLE):
  7227. Likewise.
  7228. * sysdeps/x86_64/tls.h (tcbhead_t): Add multiple_threads.
  7229. * sysdeps/x86_64/tcb-offsets.sym (MULTIPLE_THREADS_OFFSET): Define.
  7230. 2003-06-17 Ulrich Drepper <drepper@redhat.com>
  7231. * tst-cancel4.c: Add tests for the socket and signal functions, pause.
  7232. Also test early cancellation before the thread reaches the cancellation
  7233. point.
  7234. * Makefile: Compile forward.c with exceptions.
  7235. * sysdeps/unix/sysv/linux/sleep.c: New file.
  7236. 2003-06-16 Ulrich Drepper <drepper@redhat.com>
  7237. * Makefile: Add CFLAGS definition to compile function wrappers
  7238. duplicated from libc with exceptions.
  7239. * tst-cancel4.c: Also check cancellation handlers.
  7240. * Makefile: Add rules to build and run tst-cancel16 and
  7241. tst-cancelx16. Add missing CFLAGS definitions.
  7242. * tst-cancel16.c: New file.
  7243. * tst-cancelx16.c: New file.
  7244. 2003-06-15 Ulrich Drepper <drepper@redhat.com>
  7245. * sysdeps/unix/sysv/linux/i386/dl-sysdep.h
  7246. (DL_SYSINFO_IMPLEMENTATION): Use CFI opcodes.
  7247. * sysdeps/unix/sysv/linux/i386/i686/dl-sysdep.h
  7248. (DL_SYSINFO_IMPLEMENTATION): Likewise.
  7249. * pthreadP.h (LIBC_CANCEL_ASYNC): Also define for librt.
  7250. (LIBC_CANCEL_RESET): Likewise.
  7251. Declare __librt_enable_asynccancel and __librt_disable_asynccancel.
  7252. * sysdeps/pthread/Makefile (librt-sysdep_routines): Add
  7253. librt-cancellation.
  7254. (CFLAGS-libcrt-cancellation.c): Define.
  7255. * sysdeps/pthread/librt-cancellation.c: New file.
  7256. * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: Define all the nice
  7257. macros also when compiling librt.
  7258. * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h: Likewise.
  7259. * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h: Likewise.
  7260. * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: Likewise.
  7261. * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: Likewise.
  7262. * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: Likewise.
  7263. * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Likewise.
  7264. * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Likewise.
  7265. * sysdeps/unix/sysv/linux/timer_create.c: Add prototype for
  7266. compat_timer_create.
  7267. 2003-06-14 Ulrich Drepper <drepper@redhat.com>
  7268. * sysdeps/pthread/posix-timer.h (timespec_compare): Always inline.
  7269. * sysdeps/unix/sysv/linux/fork.h: Add libc_hidden_proto for
  7270. __register_atfork.
  7271. * sysdeps/unix/sysv/linux/register-atfork.c (__register_atfork):
  7272. Add libc_hidden_def.
  7273. 2003-06-13 Roland McGrath <roland@redhat.com>
  7274. * sysdeps/x86_64/td_ta_map_lwp2thr.c (td_ta_map_lwp2thr): Pass FS
  7275. constant from <sys/reg.h> to ps_get_thread_area, not register contents.
  7276. 2003-06-11 Ulrich Drepper <drepper@redhat.com>
  7277. * allocatestack.c (queue_stack): Always inline.
  7278. * ptreadhP.h (__do_cancel): Likewise.
  7279. 2003-06-10 Jakub Jelinek <jakub@redhat.com>
  7280. * sysdeps/unix/sysv/linux/s390/sem_timedwait.c (sem_timedwait): Fix
  7281. a typo.
  7282. 2003-06-10 Ulrich Drepper <drepper@redhat.com>
  7283. * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S
  7284. (__pthread_cond_signal): Remove incorrect second addition for
  7285. cond_lock!=0.
  7286. 2003-06-09 Ulrich Drepper <drepper@redhat.com>
  7287. * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S
  7288. (__pthread_cond_signal): Use correct futex pointer in
  7289. __lll_mutex_lock_wait call.
  7290. * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S
  7291. (__pthread_cond_signal): Some more tweaks to handle cond_lock!=0.
  7292. 2003-06-08 Ulrich Drepper <drepper@redhat.com>
  7293. * sysdeps/unix/sysv/linux/s390/sem_wait.c (__new_sem_wait): Make
  7294. cancelable.
  7295. * sysdeps/unix/sysv/linux/s390/sem_timedwait.c (sem_timedwait):
  7296. Likewise.
  7297. * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Remove
  7298. hand-written CFI generation code. Since ENTRY/END also initiated
  7299. CFI frames this caused two CFI sets to be generated.
  7300. 2003-06-07 Ulrich Drepper <drepper@redhat.com>
  7301. * cleanup_routine.c: New file.
  7302. * Versions (libpthread) [GLIBC_2.3.3]: Add __pthread_cleanup_routine.
  7303. * sysdeps/pthread/pthread.h: Add support for fully exception-based
  7304. cleanup handling.
  7305. * Makefile (libpthread-routines): Add cleanup_routine.
  7306. Add more CFLAGS variables to compile with exceptions. Add comments
  7307. why which file needs unwind tables.
  7308. (tests) [have-forced-unwind==yes]: Add tst-cancelx* and tst-cleanupx*
  7309. tests.
  7310. * tst-cancelx1.c: New file.
  7311. * tst-cancelx2.c: New file.
  7312. * tst-cancelx3.c: New file.
  7313. * tst-cancelx4.c: New file.
  7314. * tst-cancelx5.c: New file.
  7315. * tst-cancelx6.c: New file.
  7316. * tst-cancelx7.c: New file.
  7317. * tst-cancelx8.c: New file.
  7318. * tst-cancelx9.c: New file.
  7319. * tst-cancelx10.c: New file.
  7320. * tst-cancelx11.c: New file.
  7321. * tst-cancelx12.c: New file.
  7322. * tst-cancelx13.c: New file.
  7323. * tst-cancelx14.c: New file.
  7324. * tst-cancelx15.c: New file.
  7325. * tst-cleanupx0.c: New file.
  7326. * tst-cleanupx0.expect: New file.
  7327. * tst-cleanupx1.c: New file.
  7328. * tst-cleanupx2.c: New file.
  7329. * tst-cleanupx3.c: New file.
  7330. * tst-cleanup0.c: Make standard compliant.
  7331. * tst-cleanup1.c: Likewise.
  7332. * sysdeps/unix/sysv/linux/sem_timedwait.c: Add cancellation support.
  7333. * sysdeps/unix/sysv/linux/sem_wait.c: Likewise.
  7334. * sysdeps/unix/sysv/linux/i386/i486/sem_timedwait.S: Likewise.
  7335. * sysdeps/unix/sysv/linux/i386/i486/sem_wait.S: Likewise.
  7336. * sysdeps/unix/sysv/linux/x86_64/sem_timedwait.S: Likewise.
  7337. * sysdeps/unix/sysv/linux/x86_64/sem_wait.S: Likewise.
  7338. * sysdeps/i386/tcb-offsets.sym: Add RESULT, CANCELHANDLING, and
  7339. CLEANUP_JMP_BUF.
  7340. * sysdeps/x86_64/tcb-offsets.sym: Likewise.
  7341. * tst-cancel12.c: New file.
  7342. * tst-cancel13.c: New file.
  7343. * tst-cancel14.c: New file.
  7344. * tst-cancel15.c: New file.
  7345. * Makefile (tests): Add tst-cancel12, tst-cancel13, tst-cancel14,
  7346. and tst-cancel15.
  7347. * tst-cancel1.c: Add some comments.
  7348. * sysdeps/unix/sysv/linux/x86_64/sem_timedwait.S: Compute relative
  7349. timeout correctly.
  7350. 2003-06-06 Ulrich Drepper <drepper@redhat.com>
  7351. * Makefile (CFLAGS-pthread_cancel.c): Define.
  7352. 2003-06-05 Ulrich Drepper <drepper@redhat.com>
  7353. * sysdeps/unix/sysv/linux/i386/bits/pthreadtypes.h (pthread_rwlock_t):
  7354. Change type of __writer element to int.
  7355. * sysdeps/unix/sysv/linux/ia64/bits/pthreadtypes.h: Likewise.
  7356. * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: Likewise.
  7357. * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: Likewise.
  7358. * sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h: Likewise.
  7359. * sysdeps/unix/sysv/linux/x86_64/bits/pthreadtypes.h: Likewise.
  7360. * sysdeps/i386/tcb-offsets.sym: Replace SELF entry with TID entry.
  7361. * sysdeps/x86_64/tcb-offsets.sym: Likewise.
  7362. * pthread_rwlock_trywrlock.c: Store TID not self pointer in __writer.
  7363. Compare with TID to determine deadlocks.
  7364. * sysdeps/pthread/pthread_rwlock_rdlock.c: Likewise.
  7365. * sysdeps/pthread/pthread_rwlock_timedrdlock.c: Likewise.
  7366. * sysdeps/pthread/pthread_rwlock_timedwrlock.: Likewise.
  7367. * sysdeps/pthread/pthread_rwlock_wrlock.c: Likewise.
  7368. * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_rdlock.S: Likewise.
  7369. * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S:
  7370. Likewise.
  7371. * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S:
  7372. Likewise.
  7373. * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_wrlock.S: Likewise.
  7374. * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_rdlock.S: Likewise.
  7375. * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedrdlock.S:
  7376. Likewise.
  7377. * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedwrlock.S:
  7378. Likewise.
  7379. * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_wrlock.S: Likewise.
  7380. * Makefile (tests): Add tst-rwlock12.
  7381. * tst-rwlock12.c: New file.
  7382. 2003-06-05 Jakub Jelinek <jakub@redhat.com>
  7383. * sysdeps/unix/sysv/linux/lowlevellock.c (__lll_lock_wait,
  7384. __lll_timedlock_wait, lll_unlock_wake_cb, __lll_timedwait_tid):
  7385. Remove bogus hidden_proto.
  7386. * sysdeps/unix/sysv/linux/s390/libc-lowlevellock.c (___lll_lock):
  7387. Likewise.
  7388. * sysdeps/unix/sysv/linux/s390/lowlevellock.c (___lll_lock,
  7389. lll_unlock_wake_cb, ___lll_timedwait_tid): Likewise.
  7390. * sysdeps/unix/sysv/linux/s390/lowlevelmutex.c (___lll_mutex_lock,
  7391. ___lll_mutex_timedlock): Likewise.
  7392. 2003-06-04 Ulrich Drepper <drepper@redhat.com>
  7393. * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S
  7394. (__pthread_cond_signal): Add some code to eventually handle
  7395. cond_lock!=0.
  7396. 2003-06-01 Ulrich Drepper <drepper@redhat.com>
  7397. * Makefile (tests): Add tst-exec4.
  7398. (tst-exec4-ARGS): Define.
  7399. * tst-exec4.c: New file.
  7400. 2003-05-31 Ulrich Drepper <drepper@redhat.com>
  7401. * sysdeps/unix/sysv/linux/lowlevellock.c (__lll_timedlock_wait):
  7402. Also fail if tv_nsec < 0.
  7403. (__lll_timedwait_tid): Likewise.
  7404. * sysdeps/unix/sysv/linux/sem_timedwait.c (sem_timedwait): Likewise.
  7405. * sysdeps/unix/sysv/linux/i386/lowlevellock.h (lll_timedwait_tid):
  7406. Likewise.
  7407. * sysdeps/unix/sysv/linux/s390/lowlevellock.c (___lll_timedwait_tid):
  7408. Likewise.
  7409. * sysdeps/unix/sysv/linux/s390/lowlevelmutex.c (__lll_mutex_timedlock):
  7410. Likewise.
  7411. * sysdeps/unix/sysv/linux/s390/sem_timedwait.c (sem_timedwait):
  7412. Likewise.
  7413. * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (lll_timedwait_tid):
  7414. Likewise.
  7415. * sysdeps/unix/sysv/linux/sh/lowlevellock.h (lll_timedwait_tid):
  7416. Likewise.
  7417. * Makefile (tests): Add tst-sem8 and tst-sem9.
  7418. * tst-sem8.c: New file.
  7419. * tst-sem9.c: New file.
  7420. * sem_open.c: Fix creation of in_use record if the file exists but
  7421. no internal record.
  7422. * posix-timer.h: Remove old, unused timer_id2ptr and timer_ptr2id
  7423. definitions.
  7424. * sysdeps/pthread/timer_create.c (timer_create): In case
  7425. evp==NULL, assign timer ID to sival_ptr.
  7426. * descr.h (struct pthread_unwind_buf): Change type of prev element to
  7427. struct pthread_unwind_buf *.
  7428. (struct pthread): Likewise for cleanup_jmp_buf element.
  7429. * cleanup.c (__pthread_register_cancel): Add cast to avoid warning.
  7430. * cleanup_defer.c (__pthread_register_cancel_defer): Likewise.
  7431. * unwind.c (__pthread_unwind_next): Likewise.
  7432. 2003-05-30 Ulrich Drepper <drepper@redhat.com>
  7433. * sysdeps/unix/sysv/linux/ia64/lowlevellock.h
  7434. (lll_futex_timed_wait): Use int for futex value parameter.
  7435. (lll_futex_wake): Likewise.
  7436. (lll_futex_requeue): Likewise.
  7437. * sysdeps/unix/sysv/linux/lowlevellock.c (__lll_lock_wait):
  7438. Replace one memory operation with one register operation.
  7439. * tst-join4.c (do_test): Fix error message.
  7440. * tst-rwlock6.c (do_test): Use correct format specifier.
  7441. * sysdeps/unix/sysv/linux/i386/i486/lowlevelmutex.S
  7442. (__lll_mutex_lock_wait): Replace one memory operation with one
  7443. register operation.
  7444. * sysdeps/unix/sysv/linux/x86_64/lowlevelmutex.S
  7445. (__lll_mutex_lock_wait): Likewise.
  7446. * sysdeps/unix/sysv/linux/ia64/lowlevellock.h
  7447. (__lll_mutex_cond_lock): Add one to value parameter of
  7448. __lll_lock_wait to reflect reality in the futex syscall.
  7449. * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h
  7450. (lll_mutex_cond_lock): Likewise.
  7451. 2003-05-30 Jakub Jelinek <jakub@redhat.com>
  7452. * sysdeps/unix/sysv/linux/s390/lowlevellock.h (__lll_mutex_cond_lock):
  7453. New function.
  7454. (lll_mutex_cond_lock): Define.
  7455. 2003-05-29 Ulrich Drepper <drepper@redhat.com>
  7456. * Makefile (tests): Add tst-signal6.
  7457. * tst-signal6.c: New file.
  7458. * sysdeps/unix/sysv/linux/s390/lowlevellock.h
  7459. (__lll_mutex_unlock_force): New function
  7460. (lll_mutex_unlock_force): Use __lll_mutex_unlock_force.
  7461. * sysdeps/unix/sysv/linux/ia64/lowlevellock.h
  7462. (__lll_mutex_unlock_force): New function.
  7463. (lll_mutex_unlock_force): Use __lll_mutex_unlock_force.
  7464. * tst-rwlock7.c (do_test): Use correct format specifier.
  7465. * sysdeps/unix/sysv/linux/ia64/lowlevellock.h (lll_futex_requeue):
  7466. Find break parameter in correct asm argument.
  7467. 2003-05-27 Jakub Jelinek <jakub@redhat.com>
  7468. * sysdeps/unix/sysv/linux/ia64/lowlevellock.h (lll_futex_clobbers):
  7469. Remove out4.
  7470. (lll_futex_requeue): Fix __o3 constraint, return negative errno if
  7471. error occured.
  7472. * sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h (pthread_cond_t):
  7473. Add __mutex.
  7474. * sysdeps/unix/sysv/linux/s390/lowlevellock.h (FUTEX_REQUEUE,
  7475. lll_futex_requeue, lll_mutex_unlock_force): Define.
  7476. 2003-05-30 Jakub Jelinek <jakub@redhat.com>
  7477. * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h
  7478. (pthread_cond_t): Add __mutex.
  7479. * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h (FUTEX_REQUEUE,
  7480. lll_futex_requeue, lll_mutex_unlock_force): Define.
  7481. 2003-05-28 Kaz Kojima <kkojima@rr.iij4u.or.jp>
  7482. * sysdeps/sh/tcb-offsets.sym: Define MUTEX_FUTEX.
  7483. * sysdeps/unix/sysv/linux/sh/bits/pthreadtypes.h (pthread_cond_t):
  7484. Add __mutex field.
  7485. * sysdeps/unix/sysv/linux/sh/lowlevellock.h (SYSCALL_WITH_INST_PAD):
  7486. Define.
  7487. (lll_futex_wait, lll_futex_wake): Define.
  7488. * sysdeps/unix/sysv/linux/sh/sh4/lowlevellock.h: New file.
  7489. * sysdeps/unix/sysv/linux/sh/pthread_cond_broadcast.S: Try using
  7490. FUTEX_REQUEUE instead of FUTEX_WAIT.
  7491. * sysdeps/unix/sysv/linux/sh/pthread_cond_signal.S: Likewise.
  7492. * sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S: Remember
  7493. mutex which was used in condvar structure. Call
  7494. __pthread_mutex_cond_lock instead of __pthread_mutex_lock_internal.
  7495. * sysdeps/unix/sysv/linux/sh/pthread_cond_wait.S: Likewise.
  7496. * sysdeps/unix/sysv/linux/sh/pthread_rwlock_rdlock.S: Don't
  7497. include tcb-offsets.h. Read wakeup value in locked region.
  7498. Use the value of gbr register as THREAD_ID.
  7499. * sysdeps/unix/sysv/linux/sh/pthread_rwlock_wrlock.S: Likewise.
  7500. * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedrdlock.S: Likewise.
  7501. * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedwrlock.S: Likewise.
  7502. * sysdeps/unix/sysv/linux/sh/sem_trywait.S: Remove futex related
  7503. macros.
  7504. 2003-05-28 Ulrich Drepper <drepper@redhat.com>
  7505. * sysdeps/pthread/pthread_cond_broadcast.c
  7506. (__pthread_cond_broadcast): Fix typo: MAX_INT -> INT_MAX.
  7507. 2003-05-26 Ulrich Drepper <drepper@redhat.com>
  7508. * sysdeps/unix/sysv/linux/x86_64/pthread_cond_broadcast.S: Fix
  7509. typo in register name.
  7510. * sysdeps/unix/sysv/linux/x86_64/pthread_cond_signal.S: Use parameters
  7511. correctly. Actually use requeue. Little optimization.
  7512. * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: Store
  7513. mutex address early. Handle cancellation state as 32-bit value.
  7514. * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: Likewise.
  7515. Remove unnecessary label.
  7516. 2003-05-25 Ulrich Drepper <drepper@redhat.com>
  7517. * sysdeps/pthread/pthread_cond_broadcast.c: Try using FUTEX_REQUEUE
  7518. instead of FUTEX_WAIT.
  7519. * sysdeps/pthread/pthread_cond_signal.c: Likewise.
  7520. * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_broadcast.S: Likewise.
  7521. * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S: Likewise.
  7522. * sysdeps/unix/sysv/linux/x86_64/pthread_cond_broadcast.S: Likewise.
  7523. * sysdeps/unix/sysv/linux/x86_64/pthread_cond_signal.S: Likewise.
  7524. * sysdeps/pthread/pthread_cond_timedwait.c: Remember mutex which was
  7525. used in condvar structure. Call __pthread_mutex_cond_lock instead
  7526. of __pthread_mutex_lock_internal.
  7527. * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: Likewise.
  7528. * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: Likewise.
  7529. * sysdeps/pthread/pthread_cond_wait.c: Likewise.
  7530. (__condvar_cleanup): Always call __pthread_mutex_cond_lock.
  7531. * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Likewise.
  7532. * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: Likewise.
  7533. * sysdeps/unix/sysv/linux/Makefile (libpthread-sysdep_routines):
  7534. Add pthread_mutex_cond_lock.
  7535. * sysdeps/unix/sysv/linux/lowlevelcond.sym: Add dep_mutex.
  7536. * sysdeps/unix/sysv/linux/pthread_cond_mutex_lock.c: New file.
  7537. * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Define
  7538. lll_mutex_cond_lock.
  7539. * sysdeps/unix/sysv/linux/ia64/lowlevellock.h: Likewise.
  7540. * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
  7541. * sysdeps/unix/sysv/linux/i386/bits/pthreadtypes.h (pthread_cond_t):
  7542. Add __mutex field.
  7543. * sysdeps/unix/sysv/linux/ia64/bits/pthreadtypes.h: Likewise.
  7544. * sysdeps/unix/sysv/linux/x86_64/bits/pthreadtypes.h: Likewise.
  7545. * sysdeps/i386/tcb-offsets.sym: Define MUTEX_FUTEX.
  7546. * sysdeps/x86_64/tcb-offsets.sym: Likewise.
  7547. * pthreadP.h: Declare __pthread_mutex_cond_lock.
  7548. * pthread_mutex_lock.c: Define LLL_MUTEX_LOCK if not already defined.
  7549. Use it instead of lll_mutex_lock. If __pthread_mutex_lock is a
  7550. macro don't define aliases.
  7551. * cancellation.c: Remove __pthread_enable_asynccancel_2.
  7552. * pthreadP.h: Remove declaration of __pthread_enable_asynccancel_2.
  7553. * sysdeps/pthread/pthread_cond_timedwait.c: Use
  7554. __pthread_enable_asynccancel instead of __pthread_enable_asynccancel_2.
  7555. * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: Likewise.
  7556. * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: Likewise.
  7557. * sysdeps/pthread/pthread_cond_wait.c: Likewise.
  7558. * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Likewise.
  7559. * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: Likewise.
  7560. 2003-05-17 Ulrich Drepper <drepper@redhat.com>
  7561. * sem_open.c: Fix one endless loop. Implement correct semantics
  7562. wrt opening the same semaphore more then once.
  7563. * sem_close.c: Adjust for sem_open change.
  7564. * semaphoreP.h: Include <semaphore.h>. Define struct inuse_sem.
  7565. Declare __sem_mappings, __sem_mappings_lock, __sem_search.
  7566. * Makefile (tests): Add tst-sem7.
  7567. * tst-sem7.c: New file.
  7568. 2003-05-16 Roland McGrath <roland@redhat.com>
  7569. * sysdeps/unix/sysv/linux/register-atfork.c (libc_freeres_fn): Fix
  7570. uninitialized variable braino.
  7571. 2003-05-16 Ulrich Drepper <drepper@redhat.com>
  7572. * sysdeps/unix/sysv/linux/timer_gettime.c (timer_gettime): Correct
  7573. test for syscall availability.
  7574. * sysdeps/unix/sysv/linux/timer_settime.c (timer_settime): Set
  7575. __no_posix_timers to -1 if the syscalls don't exist.
  7576. * pthread_join.c (pthread_join): Set tid field of the joined
  7577. thread to -1. This isn't necessary but helps to recognize some
  7578. error conditions with almost no cost.
  7579. * allocatestack.c (FREE_P): Also negative values indicate an
  7580. unused stack.
  7581. * unwind.c: Include <unistd.h>.
  7582. 2003-05-14 Ulrich Drepper <drepper@redhat.com>
  7583. * Makefile ($(objpfx)$(multidir)): Add rule to create the directory.
  7584. 2003-05-14 Jakub Jelinek <jakub@redhat.com>
  7585. * Makefile (crti-objs, crtn-objs): New variables.
  7586. (omit-deps, extra-objs): Add crtn.
  7587. ($(objpfx)libpthread.so): Depend on both crti and crtn
  7588. and links to them in multidir.
  7589. ($(objpfx)crtn.S, $(objpfx)crtn.o): New rules.
  7590. 2003-05-12 Steven Munroe <sjmunroe@us.ibm.com>
  7591. * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h
  7592. (lll_mutex_unlock): Use atomic_exchange_rel.
  7593. 2003-05-11 Ulrich Drepper <drepper@redhat.com>
  7594. * cond-perf.c (cons): Add missing locking around setting of alldone.
  7595. 2003-05-10 Ulrich Drepper <drepper@redhat.com>
  7596. * sysdeps/unix/sysv/linux/i386/i486/sem_trywait.S: Remove futex
  7597. related macros.
  7598. * sysdeps/unix/sysv/linux/x86_64/sem_trywait.S: Likewise.
  7599. 2003-05-09 Ulrich Drepper <drepper@redhat.com>
  7600. * tst-sem6.c: New file.
  7601. * Makefile (tests): Add tst-sem6.
  7602. * sysdeps/unix/sysv/linux/ia64/lowlevellock.h (___lll_mutex_unlock):
  7603. Use atomic_exchange_rel instead of atomic_exchange.
  7604. * sysdeps/unix/sysv/linux/lowlevellock.c (lll_unlock_wake_cb):
  7605. Likewise.
  7606. * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Improve quality of
  7607. code for lll_futex_wait and lll_futex_wake in static apps. Use
  7608. vsyscall is possible.
  7609. * sysdeps/unix/sysv/linux/pthread_getaffinity.c: New file.
  7610. * sysdeps/unix/sysv/linux/pthread_setaffinity.c: New file.
  7611. * sysdeps/pthread/pthread.h: Declare pthread_getaffinity_np and
  7612. pthread_setaffinity_np.
  7613. * Versions [libpthread] (GLIBC_2.3.3): Add pthread_getaffinity_np
  7614. and pthread_setaffinity_np.
  7615. * Makefile (libpthread-routines): Add pthread_getaffinity and
  7616. pthread_setaffinity.
  7617. * allocatestack.c (allocate_stack): If ARCH_RETRY_MMAP is defined,
  7618. use it in case mmap to allocate the stack fails.
  7619. * sysdeps/unix/sysv/linux/x86_64/Makefile: Don't define
  7620. ARCH_MAP_FLAGS here.
  7621. * sysdeps/x86_64/pthreaddef.h: Define ARCH_MAP_FLAGS and
  7622. ARCH_RETRY_MMAP.
  7623. 2003-05-08 Ulrich Drepper <drepper@redhat.com>
  7624. * sysdeps/unix/sysv/linux/fork.c: Complete rewrite of the atfork
  7625. handler implementation. It is now lockless in fork().
  7626. * sysdeps/unix/sysv/linux/register-atfork.c: Likewise.
  7627. * sysdeps/unix/sysv/linux/unregister-atfork.c: Likewise.
  7628. * sysdeps/unix/sysv/linux/fork.h: Don't include <link.h>. Don't
  7629. declare the __fork_*_lists.
  7630. (struct fork_handler): Include pointers to all three functions.
  7631. Add next, refcntr and need_signal elements.
  7632. (__fork_handlers): New declaration.
  7633. (__register_atfork_malloc): Remove declaration.
  7634. (HAVE_register_atfork_malloc): Remove definition.
  7635. * sysdeps/unix/sysv/linux/libc_pthread_init.c: Remove
  7636. __pthread_child_handler variable.
  7637. (__libc_pthread_init): Use __register_atfork instead of explicitly
  7638. adding to the list.
  7639. * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Define lll_futex_wait
  7640. and lll_futex_wake.
  7641. * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
  7642. * unwind.c (unwind_cleanup): Print error message and then abort. This
  7643. function must never be reached.
  7644. * cond-perf.c: New file.
  7645. 2003-05-05 Ulrich Drepper <drepper@redhat.com>
  7646. * sysdeps/i386/tls.h (TLS_INIT_TP): Include \n in error message.
  7647. 2003-05-04 Roland McGrath <roland@redhat.com>
  7648. * Makefile ($(objpfx)../libc.so): New target.
  7649. 2003-05-02 Ulrich Drepper <drepper@redhat.com>
  7650. * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h
  7651. (pthread_condattr_t): Size is only an int, don't use long for
  7652. alignment.
  7653. (pthread_mutexattr_t): Likewise.
  7654. * sysdeps/unix/sysv/linux/ia64/bits/pthreadtypes.h: Likewise.
  7655. * sysdeps/unix/sysv/linux/x86_64/bits/pthreadtypes.h: Likewise.
  7656. * sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h: Likewise.
  7657. 2003-05-01 Ulrich Drepper <drepper@redhat.com>
  7658. * sysdeps/i386/tls.h: Define THREAD_ID.
  7659. * sysdeps/ia64/tls.h: Likewise.
  7660. * sysdeps/powerpc/tls.h: Likewise.
  7661. * sysdeps/s390/tls.h: Likewise.
  7662. * sysdeps/sh/tls.h: Likewise.
  7663. * sysdeps/x86_64/tls.h: Likewise.
  7664. * pthread_mutex_lock.c: Use THREAD_ID instead of THREAD_SELF to
  7665. record ownership.
  7666. * pthread_mutex_timedlock.c: Likewise.
  7667. * pthread_mutex_trylock.c: Likewise.
  7668. * pthread_mutex_unlock.c: Likewise.
  7669. * pthread_rwlock_trywrlock.c: Likewise.
  7670. * sysdeps/pthread/pthread_rwlocklock_rdlock.c: Likewise.
  7671. * sysdeps/pthread/pthread_rwlock_timedrdlock.c: Likewise.
  7672. * sysdeps/pthread/pthread_rwlock_timedwrlock.c: Likewise.
  7673. * sysdeps/pthread/pthread_rwlock_wrlock.c: Likewise.
  7674. * sysdeps/pthread/createthread.c (create_thread): Use CLONE_SYSVSEM
  7675. flag.
  7676. 2003-04-29 Jakub Jelinek <jakub@redhat.com>
  7677. * sysdeps/unix/sysv/linux/x86_64/bits/pthreadtypes.h
  7678. (__SIZEOF_PTHREAD_COND_T): Define to 48.
  7679. (pthread_rwlock_t): Add 16 bytes of pad instead of 8 before __flags.
  7680. * sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h (pthread_cond_t):
  7681. Make __align long long instead of long.
  7682. (pthread_rwlock_t): Formatting.
  7683. * sysdeps/unix/sysv/linux/ia64/bits/pthreadtypes.h
  7684. (pthread_rwlock_t): Formatting.
  7685. * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h
  7686. (pthread_cond_t): Make __align long long instead of long.
  7687. (pthread_rwlock_t): Move __flags field to the same position as in
  7688. linuxthreads.
  7689. 2003-04-30 Ulrich Drepper <drepper@redhat.com>
  7690. * tst-rwlock6.c (do_test): Use correct printf format specifiers.
  7691. * tst-rwlock7.c (do_test): Likewise.
  7692. 2003-04-26 Roland McGrath <roland@redhat.com>
  7693. * Makefile ($(test-modules)): Depend on $(common-objpfx)shlib.lds.
  7694. 2003-04-22 Jakub Jelinek <jakub@redhat.com>
  7695. * allocatestack.c (TLS_TPADJ): Add TLS_PRE_TCB_SIZE instead of
  7696. sizeof (struct pthread).
  7697. (allocate_stack): Subtract TLS_PRE_TCB_SIZE bytes instead of
  7698. 1 struct pthread.
  7699. * sysdeps/powerpc/tls.h (TLS_INIT_TCB_SIZE, TLS_TCB_SIZE): Define
  7700. to 0.
  7701. (TLS_INIT_TCB_ALIGN, TLS_TCB_ALIGN): Define to alignment of
  7702. struct pthread.
  7703. (TLS_PRE_TCB_SIZE): Increase to cover tcbhead_t preceeded by pad
  7704. to 32-bit bytes.
  7705. (INSTALL_DTV, GET_DTV, THREAD_DTV): tcbhead_t is immediately before
  7706. tcbp.
  7707. (TLS_INIT_TP, THREAD_SELF, INIT_THREAD_SELF): Don't add TLS_TCB_SIZE
  7708. unneccessarily.
  7709. (NO_TLS_OFFSET): Define.
  7710. * sysdeps/unix/sysv/linux/powerpc/createthread.c (TLS_VALUE): Don't
  7711. add TLS_TCB_SIZE unnecessarily.
  7712. 2003-04-22 Roland McGrath <roland@redhat.com>
  7713. * Makeconfig (shared-thread-library): Reverse link order to work
  7714. around linker bug.
  7715. 2003-04-22 Ulrich Drepper <drepper@redhat.com>
  7716. * semaphore.h: Fix typo in comment.
  7717. 2003-04-21 Ulrich Drepper <drepper@redhat.com>
  7718. * sysdeps/pthread/sigfillset.c: New file.
  7719. * init.c (__pthread_initialize_minimal): Don't block SIGTIMER.
  7720. * pthreadP.h: Make SIGTIMER and SIGCANCEL the same.
  7721. * sysdeps/pthread/pthread_sigmask.c: Remove handling of SIGTIMER.
  7722. * sysdeps/pthread/sigaction.c: Likewise.
  7723. * sysdeps/pthread/sigprocmask.c: New file.
  7724. * sysdeps/unix/sysv/linux/allocrtsig.c (current_rtmin): Define as
  7725. __SIGRTMIN+1.
  7726. * sysdeps/unix/sysv/linux/timer_routines.c (timer_helper_thread):
  7727. Block SIGTIMER. Also handle SI_TKILL events and terminate thread
  7728. in this case.
  7729. 2003-04-19 Ulrich Drepper <drepper@redhat.com>
  7730. * sysdeps/unix/sysv/linux/i386/dl-sysdep.h
  7731. (DL_SYSINFO_IMPLEMENTATION): Add .eh_frame information.
  7732. * sysdeps/unix/sysv/linux/unregister-atfork.c
  7733. (__unregister_atfork): Don't free memory not allocated dynamically.
  7734. * semaphore.h: Remove __THROW marker from cancellation points.
  7735. * nptl/sysdeps/pthread/pthread.h: Likewise.
  7736. 2003-04-18 Ulrich Drepper <drepper@redhat.com>
  7737. * sysdeps/pthread/pthread.h: Don't mark pthread_testcancel,
  7738. pthread_cancel, pthread_setcancelstate, and pthread_setcanceltype with
  7739. __THROW.
  7740. 2003-04-16 Jakub Jelinek <jakub@redhat.com>
  7741. * tst-cancel4.c (do_test): Use %zd instead of %d when printing cnt.
  7742. 2003-04-15 Roland McGrath <roland@redhat.com>
  7743. * forward.c (__pthread_unwind): Tweak to avoid warning.
  7744. 2003-04-15 Ulrich Drepper <drepper@redhat.com>
  7745. * pthreadP.h: Move THREAD_ATOMIC_* replacements to the top.
  7746. 2003-04-14 Ulrich Drepper <drepper@redhat.com>
  7747. * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: Don't
  7748. overflow CFA advance instructions.
  7749. * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: Likewise.
  7750. 2003-04-14 Jakub Jelinek <jakub@redhat.com>
  7751. * sysdeps/i386/tls.h: Rename LOCK to LOCK_PREFIX.
  7752. * sysdeps/i386/pthread_spin_lock.c: Likewise.
  7753. * sysdeps/x86_64/tls.h: Likewise. Define LOCK_PREFIX if not already
  7754. defined.
  7755. * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: Use
  7756. DW_CFA_advance_loc2 for .Laddl-.Lsubl.
  7757. * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Use
  7758. DW_CFA_advance_loc for .Laddl-.Lsubl.
  7759. 2003-04-13 Ulrich Drepper <drepper@redhat.com>
  7760. * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: Don't use
  7761. position-independent unwind data for static libraries.
  7762. Add missing unwind info. Add comments.
  7763. * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: Add unwind info.
  7764. * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: Likewise.
  7765. * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Likewise.
  7766. * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: Likewise.
  7767. 2003-04-12 Ulrich Drepper <drepper@redhat.com>
  7768. * Makefile: Make sure all cancellation points are compiled with
  7769. exception and asynchronous unwind tables.
  7770. * sysdeps/x86_64/tls.h (THREAD_SETMEM): Word around compiler bug
  7771. which mishandles loading of global object addresses in PIC.
  7772. (THREAD_SETMEM_NC): Likewise.
  7773. 2003-04-11 Ulrich Drepper <drepper@redhat.com>
  7774. * pthread.h: Define new data structure for cleanup buffer. Declare
  7775. new cleanup handler interfaces.
  7776. * descr.h: Include <unwind.h> if necessary. Define pthread_unwind_buf.
  7777. (struct pthread): Add cleanup_jmp_buf pointer. Define
  7778. HAVE_CLEANUP_JMP_BUF and not HAVE_CANCELBUF.
  7779. * pthreadP.h: Declare __pthread_unwind. Define __do_cancel to use
  7780. it. Declare old cleanup handler installation functions.
  7781. * cleanup.c: Rewrite. Install handler for unwind-based cleanup
  7782. handling.
  7783. * cleanup_defer.c: Likewise.
  7784. * cleanup_compat.c: New file. Old cleanup code.
  7785. * cleanup_def_compat.c: New file. Old cleanup code.
  7786. * pthread_create.c (start_thread): Initialize cleanup_jmp_buf element
  7787. if own thread descriptor.
  7788. * unwind.c: New file.
  7789. * forward.c: Add __pthread_unwind.
  7790. * init.c (pthread_functions): Add __pthread_unwind.
  7791. * sysdeps/pthread/pthread-functions.s (struct pthread_functions):
  7792. Add ptr___pthread_unwind.
  7793. * Versions [GLIBC_2.3.3] (libpthread): Export new cleanup handling
  7794. and unwind function.
  7795. * Makefile (libpthread-routines): Add cleanup_compat,
  7796. cleanup_def_compat, and unwind. Define CFLAGS to enable unwind
  7797. table generation if necessary.
  7798. * version.c: Record whether unwind support is compiled in.
  7799. * sysdeps/pthread/configure.in: Add checks for unwind unterfaces.
  7800. * sysdeps/pthread/bits/libc-lock.h: Add prototypes of the old cleanup
  7801. handler interfaces.
  7802. * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: Add quite a bit of
  7803. complication to generate unwind information for syscall wrappers.
  7804. * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Likewise.
  7805. * sysdeps/unix/sysv/linux/i386/bits/pthreadtypes.h: Define
  7806. __cleanup_fct_attribute.
  7807. * Makefile: Add rules to build and run tst-cleanup0.
  7808. * tst-cleanup0.c: New file.
  7809. * tst-cleanup0.expect: New file.
  7810. * pthread_create.c (deallocate_tsd): Don't take parameter. Adjust
  7811. caller. Optimize to avoid often unecessary local variable.
  7812. 2003-04-11 Roland McGrath <roland@redhat.com>
  7813. * Makefile ($(objpfx)multidir.mk): New target, generated makefile that
  7814. sets variable `multidir'; include that.
  7815. (generated): Add it.
  7816. ($(objpfx)$(multidir)/crti.o): New target.
  7817. [$(multidir) != .] (generated-dirs, extra-objs, omit-deps): Add it.
  7818. 2003-04-11 Ulrich Drepper <drepper@redhat.com>
  7819. * tst-attr2.c (do_test): Add cast to avoid warning.
  7820. * tst-mutex4.c (do_test): Likewise.
  7821. 2003-04-10 Ulrich Drepper <drepper@redhat.com>
  7822. * sysdeps/unix/sysv/linux/fork.c (__libc_fork): Reset CPU clocks
  7823. in child.
  7824. 2003-04-09 Ulrich Drepper <drepper@redhat.com>
  7825. * Makefile (tests): Add tst-detach1.
  7826. * tst-detach1.c: New file.
  7827. 2003-04-08 Ulrich Drepper <drepper@redhat.com>
  7828. * sysdeps/pthread/pthread.h: Remove duplicate
  7829. pthread_cleanup_{push,pop} definitions.
  7830. * tst-barrier2.c: Eliminate warnings.
  7831. * tst-cancel4.c: Likewise.
  7832. * tst-cond4.c: Likewise.
  7833. * tst-cond6.c: Likewise.
  7834. * tst-detach1.c: Likewise.
  7835. * tst-rwlock4.c: Likewise.
  7836. * tst-rwlock6.c: Likewise.
  7837. * tst-rwlock7.c: Likewise.
  7838. * tst-sem3.c: Likewise.
  7839. * tst-spin2.c: Likewise.
  7840. * tst-umask1.c: Likewise.
  7841. 2003-04-07 Ulrich Drepper <drepper@redhat.com>
  7842. * pthread_detach.c (pthread_detach): Fix test for invalid TID.
  7843. 2003-04-06 Ulrich Drepper <drepper@redhat.com>
  7844. * descr.h (struct pthread): Move cancelhandling member to the front.
  7845. 2003-04-05 Ulrich Drepper <drepper@redhat.com>
  7846. * sysdeps/unix/sysv/linux/register-atfork.c: Define malloc_prepare,
  7847. malloc_parent, and malloc_child statically.
  7848. (__register_atfork_malloc): New function.
  7849. (free_mem): Don't free any of the malloc_* variables on the list.
  7850. * sysdeps/unix/sysv/linux/fork.h: Declare __register_atfork_malloc.
  7851. Define HAVE_register_atfork_malloc.
  7852. 2003-04-04 Ulrich Drepper <drepper@redhat.com>
  7853. * sysdeps/pthread/createthread.c (create_thread): Add some more
  7854. comments explaining when to set multiple_threads and when not.
  7855. * pthreadP.h: Define THREAD_ATOMIC_CMPXCHG_VAL and
  7856. THREAD_ATOMIC_BIT_SET if not already defined.
  7857. * sysdeps/i386/tls.h: Define THREAD_ATOMIC_CMPXCHG_VAL and
  7858. THREAD_ATOMIC_BIT_SET:
  7859. * sysdeps/x86_64/tls.h: Likewise.
  7860. * cleanup_defer.c (_pthread_cleanup_push_defer): Rewrite to use
  7861. THREAD_ATOMIC_CMPXCHG_VAL.
  7862. (_pthread_cleanup_pop_restore): Likewise.
  7863. * cancellation.c (__pthread_enable_asynccancel): Likewise.
  7864. (__pthread_enable_asynccancel_2): Likewise.
  7865. (__pthread_disable_asynccancel): Likewise.
  7866. * libc-cancellation.c (__libc_enable_asynccancel): Likewise.
  7867. (__libc_disable_asynccancel): Likewise.
  7868. * init.c (sigcancel_handler): Likewise.
  7869. * pthread_setcancelstate.c (__pthread_setcancelstate): Likewise.
  7870. * pthread_setcanceltype.c (__pthread_setcanceltype): Likewise.
  7871. 2003-04-03 Ulrich Drepper <drepper@redhat.com>
  7872. * init.c (sigcancel_handler): Don't set EXITING_BIT here.
  7873. * libc-cancellation.c (__libc_enable_asynccancel): Likewise.
  7874. * pthreadP.h (__do_cancel): Set EXITING_BIT here.
  7875. * Makefile (tests): Add tst-cancel11.
  7876. * tst-cancel11.c: New file.
  7877. 2003-04-01 Ulrich Drepper <drepper@redhat.com>
  7878. * pthread_create.c (deallocate_tsd): Clear/free memory after the last
  7879. round, not the first. Use specific_used flag instead of local
  7880. found_nonzero variable. Use THREAD_[SG]ETMEM where possible.
  7881. (__free_tcb): Don't call deallocate_tsd here.
  7882. (start_thread): Call deallocate_tsd here.
  7883. * pthread_setspecific.c: Set specific_used flag really only when
  7884. needed.
  7885. * Makefile (tests): Add tst-tsd3.c and tst-tsd4.
  7886. * tst-tsd3.c: New file.
  7887. * tst-tsd4.c: New file.
  7888. 2003-03-31 Ulrich Drepper <drepper@redhat.com>
  7889. * sysdeps/unix/sysv/linux/ia64/lowlevellock.h (__lll_mutex_lock):
  7890. Use atomic_exchange_and_add instead of __lll_add.
  7891. (__lll_mutex_timedlock): Likewise.
  7892. Patch by Ian Wienand.
  7893. 2003-03-24 Steven Munroe <sjmunroe@us.ibm.com>
  7894. * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h
  7895. (SINGLE_THREAD_P): Fix typo.
  7896. * tst-cancel-wrappers.sh: Handle '.'ed symbols.
  7897. 2003-03-31 Ulrich Drepper <drepper@redhat.com>
  7898. * Makefile (tests): Add tst-align.
  7899. * tst-align.c: New file.
  7900. * sysdeps/i386/Makefile: Define CFLAGS-tst-align.
  7901. * sysdeps/i386/tls.h (CALL_THREAD_FCT): Align stack of called
  7902. function correctly.
  7903. * tst-tsd2.c: Add casts to avoid warnings.
  7904. 2003-03-30 Ulrich Drepper <drepper@redhat.com>
  7905. * descr.h (struct pthread): Move most often used elements to the front.
  7906. 2003-03-29 Ulrich Drepper <drepper@redhat.com>
  7907. * Makefile (libpthread-routines): Add pthread_atfork.
  7908. (libpthread-static-only-routines): Add pthread_atfork.
  7909. 2003-03-28 Kaz Kojima <kkojima@rr.iij4u.or.jp>
  7910. * sysdeps/sh/tls.h: Include nptl/descr.h after the definition
  7911. of TLS_DTV_AT_TP.
  7912. (INSTALL_DTV): Add parens.
  7913. (THREAD_GETMEM, THREAD_GETMEM_NC, THREAD_SETMEM, THREAD_SETMEM_NC):
  7914. Use passed descr instead of THREAD_SELF.
  7915. * sysdeps/unix/sysv/linux/sh/lowlevelmutex.S
  7916. (__lll_mutex_timedlock_wait): Correct expected value after
  7917. spurious wakeup.
  7918. * sysdeps/unix/sysv/linux/sh/pthread_cond_broadcast.S:
  7919. Release lock before waking up the waiters.
  7920. * sysdeps/unix/sysv/linux/sh/pthread_cond_wait.S: Correct exit
  7921. criteria. Reorderstruct passed to cleanup handler. Fix
  7922. handling of cancellation and failung pthread_mutex_unlock call.
  7923. Use __pthread_enable_asynccancel_2 instead of
  7924. __pthread_enable_asynccancel.
  7925. * sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S: Likewise.
  7926. Return result of lock re-get if it fails.
  7927. * sysdeps/unix/sysv/linux/sh/pthread_once.S: Fix wrong argument
  7928. for __pthread_cleanup_push.
  7929. * sysdeps/unix/sysv/linux/sh/pthread_rwlock_rdlock.S: Fix
  7930. completely broken rwlock implementation.
  7931. * sysdeps/unix/sysv/linux/sh/pthread_rwlock_wrlock.S: Likewise.
  7932. * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedrdlock.S: Likewise.
  7933. * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedwrlock.S: Likewise.
  7934. * sysdeps/unix/sysv/linux/sh/pthread_rwlock_unlock.S: Likewise.
  7935. * sysdeps/unix/sysv/linux/sh/pthread_rwlock_wrlock.S: Likewise.
  7936. * sysdeps/unix/sysv/linux/sh/sem_post.S: Fix error value. Use
  7937. versioned_symbol macro.
  7938. * sysdeps/unix/sysv/linux/sh/sem_trywait.S: Use versioned_symbol macro.
  7939. * sysdeps/unix/sysv/linux/sh/sem_wait.S: Likewise.
  7940. 2003-03-27 Ulrich Drepper <drepper@redhat.com>
  7941. * sysdeps/unix/sysv/linux/kernel-posix-timers.h: Don't declare
  7942. __timer_helper_thread. Declare __start_helper_thread, __helper_once,
  7943. and __helper_tid.
  7944. (struct timer): Remove th and bar field.
  7945. * sysdeps/unix/sysv/linux/timer_create.c (timer_create): Remove
  7946. debugging code. Create only one helper thread.
  7947. * sysdeps/unix/sysv/linux/timer_delete.c (timer_delete): Don't kill
  7948. helper thread.
  7949. * sysdeps/unix/sysv/linux/timer_routines.c (timer_helper_thread):
  7950. Renamed. Define statically. Use thread info from siginfo.
  7951. (__helper_once): New variable.
  7952. (__helper_tid): New variable.
  7953. (__reset_helper_control): New function.
  7954. (__start_helper_thread): New function.
  7955. * pthread_create.c (start_thread): Don't use setjmp inside
  7956. __builtin_expect to work around gcc bug.
  7957. * sysdeps/unix/sysv/linux/timer_delete.c (timer_delete): Even if
  7958. timer_delete syscall fails, but not with ENOSYS, set
  7959. __no_posix_timers.
  7960. * sysdeps/unix/sysv/linux/timer_settime.c [!__ASSUME_POSIX_TIMERS]
  7961. (timer_settime): Fix typo.
  7962. * sysdeps/unix/sysv/linux/timer_getoverr.c
  7963. [!__ASSUME_POSIX_TIMERS] (timer_getoverrun): Likewise.
  7964. 2003-03-27 Jakub Jelinek <jakub@redhat.com>
  7965. * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: Fix
  7966. offset of cleanupbuf.__prev.
  7967. 2003-03-26 Jakub Jelinek <jakub@redhat.com>
  7968. * sysdeps/unix/sysv/linux/timer_getoverr.c: Fix typo in name
  7969. of included file.
  7970. 2003-03-26 Ulrich Drepper <drepper@redhat.com>
  7971. * sysdeps/unix/sysv/linux/timer_create.c (timer_create): If EVP ==
  7972. NULL provide default definition to syscall.
  7973. 2003-03-25 Roland McGrath <roland@redhat.com>
  7974. * sysdeps/pthread/posix-timer.h (TIMER_MAX): Define if not defined.
  7975. (timer_id2ptr): Fix typo.
  7976. 2003-03-25 Ulrich Drepper <drepper@redhat.com>
  7977. * pthreadP.h: Define SIGCANCEL and SIGTIMER.
  7978. * sysdeps/i386/pthreaddef.h: Remove SIGCANCEL definition.
  7979. * sysdeps/ia64/pthreaddef.h: Likewise.
  7980. * sysdeps/powerpc/pthreaddef.h: Likewise.
  7981. * sysdeps/s390/pthreaddef.h: Likewise.
  7982. * sysdeps/sh/pthreaddef.h: Likewise.
  7983. * sysdeps/x86_64/pthreaddef.h: Likewise.
  7984. * init.c (__pthread_initialize_minimal): Block SIGTIMER.
  7985. * sysdeps/pthread/sigaction.c: Also prevent SIGTIMER handler from
  7986. being changed.
  7987. * sysdeps/pthread/pthread_sigmask.c (pthread_sigmask): Make sure
  7988. SIGTIMER is not unblocked.
  7989. * sysdeps/unix/sysv/linux/allocrtsig.c (current_rtmin): One more
  7990. RT signal taken.
  7991. * sysdeps/unix/sysv/linux/pthread_kill.c: Do not allow SIGTIMER to
  7992. be send.
  7993. * sysdeps/pthread/posix-timer.h (timer_id2ptr, timer_ptr2id): Just
  7994. pass pointer through as ID.
  7995. * sysdeps/unix/sysv/linux/bits/local_lim.h (TIMER_MAX): Removed.
  7996. * sysdeps/unix/sysv/linux/kernel-posix-timers.h: New file.
  7997. * sysdeps/unix/sysv/linux/timer_create.c: New file.
  7998. * sysdeps/unix/sysv/linux/timer_delete.c: New file.
  7999. * sysdeps/unix/sysv/linux/timer_getoverr.c: New file.
  8000. * sysdeps/unix/sysv/linux/timer_gettime.c: New file.
  8001. * sysdeps/unix/sysv/linux/timer_routines.c: New file.
  8002. * sysdeps/unix/sysv/linux/timer_settime.c: New file.
  8003. * sysdeps/unix/sysv/linux/ia64/Versions: New file.
  8004. * sysdeps/unix/sysv/linux/ia64/timer_create.c: New file.
  8005. * sysdeps/unix/sysv/linux/ia64/timer_delete.c: New file.
  8006. * sysdeps/unix/sysv/linux/ia64/timer_getoverr.c: New file.
  8007. * sysdeps/unix/sysv/linux/ia64/timer_gettime.c: New file.
  8008. * sysdeps/unix/sysv/linux/ia64/timer_settime.c: New file.
  8009. * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions: New file.
  8010. * sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_create.c: New file.
  8011. * sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_delete.c: New file.
  8012. * sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_getoverr.c: New file.
  8013. * sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_gettime.c: New file.
  8014. * sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_settime.c: New file.
  8015. * sysdeps/unix/sysv/linux/s390/s390-64/Versions: New file.
  8016. * sysdeps/unix/sysv/linux/s390/s390-64/timer_create.c: New file.
  8017. * sysdeps/unix/sysv/linux/s390/s390-64/timer_delete.c: New file.
  8018. * sysdeps/unix/sysv/linux/s390/s390-64/timer_getoverr.c: New file.
  8019. * sysdeps/unix/sysv/linux/s390/s390-64/timer_gettime.c: New file.
  8020. * sysdeps/unix/sysv/linux/s390/s390-64/timer_settime.c: New file.
  8021. * sysdeps/unix/sysv/linux/x86_64/Versions: New file.
  8022. * sysdeps/unix/sysv/linux/x86_64/compat-timer.h: New file.
  8023. * sysdeps/unix/sysv/linux/x86_64/timer_create.c: New file.
  8024. * sysdeps/unix/sysv/linux/x86_64/timer_delete.c: New file.
  8025. * sysdeps/unix/sysv/linux/x86_64/timer_getoverr.c: New file.
  8026. * sysdeps/unix/sysv/linux/x86_64/timer_gettime.c: New file.
  8027. * sysdeps/unix/sysv/linux/x86_64/timer_settime.c: New file.
  8028. * pthreadP.h: Remove FRAME_LEFT definition.
  8029. * cleanup.c (_pthread_cleanup_push): Don't check for reference to
  8030. already left frame. Programs which have this problem are not POSIX
  8031. compliant.
  8032. * cleanup_defer.c (_pthread_cleanup_push_defer): Likewise.
  8033. 2003-03-24 Ulrich Drepper <drepper@redhat.com>
  8034. * sysdeps/pthread/tst-timer.c: Check return values of the
  8035. functions we test.
  8036. 2003-03-23 Roland McGrath <roland@redhat.com>
  8037. * tst-tls3.c (do_test) [! HAVE___THREAD]: Don't test anything.
  8038. * tst-tls3mod.c: Likewise.
  8039. * tst-tls1.c: Likewise.
  8040. * tst-tls2.c: Likewise.
  8041. * tst-mutex5.c (do_test): Unlock before destroy, otherwise we invoke
  8042. undefined behavior.
  8043. * tst-join5.c (tf1, tf2): Add a cast.
  8044. * Makeconfig (includes): Append -I$(..)nptl to this variable.
  8045. * tst-barrier2.c (do_test) [! _POSIX_THREAD_PROCESS_SHARED]:
  8046. Don't test anything.
  8047. * tst-cond4.c: Likewise.
  8048. * tst-cond6.c: Likewise.
  8049. * tst-flock2.c: Likewise.
  8050. * tst-mutex4.c: Likewise.
  8051. * tst-rwlock4.c: Likewise.
  8052. * tst-signal1.c: Likewise.
  8053. * tst-spin2.c: Likewise.
  8054. * tst-cond11.c [! _POSIX_CLOCK_SELECTION]: Likewise.
  8055. * tst-mutex4.c: Use test-skeleton.c.
  8056. * tst-spin2.c: Likewise.
  8057. * tst-sysconf.c: Likewise.
  8058. * tst-barrier2.c: Likewise.
  8059. * tst-cond4.c: Likewise.
  8060. * tst-cond6.c: Likewise.
  8061. * tst-rwlock4.c: Likewise.
  8062. * tst-unload.c: Likewise.
  8063. * tst-flock2.c (do_test): Use return instead of exit.
  8064. 2003-03-22 Jakub Jelinek <jakub@redhat.com>
  8065. * sysdeps/unix/sysv/linux/fork.c (__fork): Add libc_hidden_def.
  8066. 2003-03-21 Ulrich Drepper <drepper@redhat.com>
  8067. * sysdeps/unix/sysv/linux/ia64/lowlevellock.h
  8068. (__lll_mutex_trylock): Use atomic_compare_and_exchange_val_acq
  8069. instead of __lll_compare_and_swap.
  8070. * sysdeps/unix/sysv/linux/ia64/pthread_once.c (__pthread_once):
  8071. Likewise.
  8072. Removed definition if __lll_compare_and_swap.
  8073. * cancellation.c: Adjust for new form of compare&exchange macros.
  8074. * cleanup_defer.c: Likewise.
  8075. * init.c: Likewise.
  8076. * libc-cancellation.c: Likewise.
  8077. * old_pthread_cond_broadcast.c: Likewise.
  8078. * old_pthread_cond_signal.c: Likewise.
  8079. * old_pthread_cond_timedwait.c: Likewise.
  8080. * old_pthread_cond_wait.c: Likewise.
  8081. * pthread_cancel.c: Likewise.
  8082. * pthread_create.c: Likewise.
  8083. * pthread_detach.c: Likewise.
  8084. * pthread_join.c: Likewise.
  8085. * pthread_key_delete.c: Likewise.
  8086. * pthread_setcancelstate.c: Likewise.
  8087. * pthread_setcanceltype.c: Likewise.
  8088. * pthread_timedjoin.c: Likewise.
  8089. * pthread_tryjoin.c: Likewise.
  8090. * sysdeps/pthread/createthread.c: Likewise.
  8091. 2003-03-20 Ulrich Drepper <drepper@redhat.com>
  8092. * sysdeps/unix/sysv/linux/ia64/lowlevellock.h: Include <atomic.h>.
  8093. Remove __lll_add, __lll_dec_if_positive, and __lll_test_and_set
  8094. definitions. Replace uses with calls to atomic_* functions.
  8095. * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Likewise.
  8096. * sysdeps/unix/sysv/linux/lowlevellock.c: Replace __lll_add and
  8097. __lll_test_and_set calls with atomic_exchange_and_add and
  8098. atomic_exchange calls respectively.
  8099. * sysdeps/unix/sysv/linux/sem_post.c: Likewise.
  8100. * sysdeps/unix/sysv/linux/sem_timedwait.c: Likewise.
  8101. * sysdeps/unix/sysv/linux/sem_trywait.c: Likewise.
  8102. * sysdeps/unix/sysv/linux/sem_wait.c: Likewise.
  8103. * sysdeps/unix/sysv/linux/ia64/pthread_once.c: Likewise.
  8104. * sysdeps/unix/sysv/linux/ia64/sem_port.c: Likewise.
  8105. * sysdeps/unix/sysv/linux/powerpc/pthread_once.c: Likewise.
  8106. * allocatestack.c (allocate_stack): Assume atomic_exchange_and_add
  8107. returns the old value.
  8108. 2003-03-20 Martin Schwidefsky <sky@mschwid3.boeblingen.de.ibm.com>
  8109. * sysdeps/s390/pthread_spin_lock.c (pthread_spin_lock): Use type
  8110. int for variable OLDVAL and correct inline assembler contraint.
  8111. * sysdeps/s390/pthread_spin_trylock.c (pthread_spin_trylock): Use
  8112. type int for variable OLD.
  8113. * sysdeps/s390/tls.h (TLS_MULTIPLE_THREADS_IN_TCB): Define it
  8114. only for s390-32.
  8115. * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h
  8116. (SINGLE_THREAD_P): Use global variable __local_multiple_threads
  8117. instead of multiple_threads field in the TCB.
  8118. 2003-03-19 Ulrich Drepper <drepper@redhat.com>
  8119. * sysdeps/i386/i686/bits/atomic.h: Removed.
  8120. * sysdeps/i386/i586/bits/atomic.h: Removed.
  8121. * sysdeps/i386/i486/bits/atomic.h: Removed. Moved to glibc.
  8122. * sysdeps/x86_64/bits/atomic.h: Removed. Moved to glibc.
  8123. * sysdeps/s390/bits/atomic.h: Removed. Moved to glibc.
  8124. * sysdeps/sh/bits/atomic.h: Removed. Moved to glibc.
  8125. * sysdeps/ia64/bits/atomic.h: Removed. Moved to glibc.
  8126. * sysdeps/powerpc/bits/atomic.h: Removed. Moved to glibc.
  8127. * atomic.h: Removed. Moved to glibc.
  8128. * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: Add
  8129. support for clock selection.
  8130. * sysdeps/pthread/pthread_cond_broadcast.c: Release lock before
  8131. signalling waiters.
  8132. 2003-03-18 Roland McGrath <roland@redhat.com>
  8133. * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h (__lll_test_and_set):
  8134. Add __lll_rel_instr first. Add memory clobber.
  8135. (lll_mutex_unlock): Use __lll_test_and_set.
  8136. From Paul Mackerras <paulus@samba.org>.
  8137. * sysdeps/powerpc/tls.h (TLS_MULTIPLE_THREADS_IN_TCB): Define
  8138. unconditionally.
  8139. * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h
  8140. (SINGLE_THREAD_P): Add `header.' prefix.
  8141. From Paul Mackerras <paulus@samba.org>.
  8142. * Versions (libpthread: GLIBC_2.3.2): Move pthread_tryjoin_np and
  8143. pthread_timedjoin_np to ...
  8144. (libpthread: GLIBC_2.3.3): ... here.
  8145. (libpthread: GLIBC_2.2): Move pthread_barrierattr_getpshared there too.
  8146. * sysdeps/pthread/pthread_cond_timedwait.c (__pthread_cond_timedwait):
  8147. Avoid shadowing VAL variable.
  8148. * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h (__lll_test_and_set):
  8149. New macro.
  8150. 2003-03-18 Ulrich Drepper <drepper@redhat.com>
  8151. * Makefile (tests): Add tst-cond11.
  8152. * tst-cond11.c: New file.
  8153. * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Reorder
  8154. struct passed to cleanup handler to eliminate one more
  8155. instruction.
  8156. * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: Likewise.
  8157. * sysdeps/unix/sysv/linux/x86_64/bits/pthreadtypes.h
  8158. (pthrad_cond_t): Replace __unused field with __clock.
  8159. * sysdeps/pthread/pthread_cond_wait.c: Release condvar lock before
  8160. waken all waiters in cleanup handler.
  8161. * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: Likewise.
  8162. * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Likewise.
  8163. * pthread_condattr_getclock.c: New file.
  8164. * pthread_condattr_setclock.c: New file.
  8165. * sysdeps/pthread/pthread.h: Declare these new functions.
  8166. * Versions [GLIBC_2.3.3] (libpthread): Add the new functions.
  8167. * Makefile (libpthread-routines): Add the new functions.
  8168. * sysdeps/unix/sysv/linux/internaltypes.h (struct pthread_condattr):
  8169. Renamed field to value. Document use of the bits.
  8170. * pthread_condattr_getpshared.c: Adjust for struct pthread_condattr
  8171. change.
  8172. * pthread_condattr_setpshared.c: Likewise.
  8173. * pthread_cond_init.c (__pthread_cond_init): Initialized __clock field.
  8174. * sysdeps/unix/sysv/linux/lowlevelcond.sym: Add cond_clock symbol.
  8175. * sysdeps/unix/sysv/linux/i386/bits/pthreadtypes.h (pthread_cond_t):
  8176. Add __clock field.
  8177. * sysdeps/unix/sysv/linux/ia64/bits/pthreadtypes.h: Likewise.
  8178. * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: Likewise.
  8179. * sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h: Likewise.
  8180. * sysdeps/unix/sysv/linux/sh/bits/pthreadtypes.h: Likewise.
  8181. * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S:
  8182. Implement clock selection.
  8183. * sysdeps/pthread/pthread_cond_timedwait.c: Likewise.
  8184. * pthread-errnos.sym: Add ENOSYS.
  8185. * sysdeps/unix/sysv/linux/bits/posix_opt.h: Define
  8186. _POSIX_CLOCK_SELECTION.
  8187. * sysdeps/unix/sysv/linux/i386/bits/posix_opt.h: Likewise.
  8188. * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: Remove
  8189. invalid .size directive.
  8190. 2003-03-17 Roland McGrath <roland@redhat.com>
  8191. * sysdeps/unix/sysv/linux/lowlevellock.c (__lll_lock_wait):
  8192. Formatting tweaks.
  8193. 2003-03-17 Ulrich Drepper <drepper@redhat.com>
  8194. * sysdeps/unix/sysv/linux/ia64/pthread_once.c: Use __builtin_expect.
  8195. Use __lll_add instead of spelling it out. Use protected symbol names.
  8196. * sysdeps/unix/sysv/linux/ia64/sem_post.c: Use __builtin_expect.
  8197. Use __lll_add.
  8198. * sysdeps/unix/sysv/linux/ia64/lowlevellock.h (__lll_compare_and_swap):
  8199. Renamed from lll_compare_and_swap. Use new name where necessary.
  8200. (__lll_add): Defined.
  8201. (__lll_dec_if_positive): Defined.
  8202. (__lll_test_and_set): Defined.
  8203. * sysdeps/ia64/pthread_spin_init.c: Removed.
  8204. * sysdeps/unix/sysv/linux/ia64/lowlevelmutex.c: Removed.
  8205. * sysdeps/unix/sysv/linux/ia64/sem_trywait.c: Removed.
  8206. * sysdeps/unix/sysv/linux/ia64/sem_wait.c: Removed.
  8207. * sysdeps/unix/sysv/linux/ia64/lowlevellock.c: Removed.
  8208. * sysdeps/unix/sysv/linux/ia64/libc-lowlevellock.c: Removed.
  8209. * sysdeps/unix/sysv/linux/ia64/libc-lowlevelmutex.c: Removed.
  8210. * sysdeps/unix/sysv/linux/ia64/sem_timedwait.c: Removed.
  8211. * sysdeps/ia64/bits/atomic.h: Add __builtin_expect where appropriate.
  8212. * sysdeps/ia64/pthread_spin_unlock.c (pthread_spin_unlock): Use
  8213. __sync_lock_release_si.
  8214. Patch by Jakub Jelinek.
  8215. * sysdeps/unix/sysv/linux/lowlevellock.c (__lll_timedlock_wait):
  8216. Fix timeout handling.
  8217. (__lll_timedwait_tid): Likewise.
  8218. (lll_unlock_wake_cb): Wake up other waiters if necessary.
  8219. Patch by Jakub Jelinek.
  8220. * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Pretty printing.
  8221. 2003-03-17 Roland McGrath <roland@redhat.com>
  8222. PowerPC port contributed by Paul Mackerras <paulus@samba.org>.
  8223. * sysdeps/pthread/pthread_spin_init.c: New file.
  8224. * sysdeps/pthread/pthread_spin_unlock.c: New file.
  8225. * sysdeps/powerpc/Makefile: New file.
  8226. * sysdeps/powerpc/pthread_spin_lock.c: New file.
  8227. * sysdeps/powerpc/pthread_spin_trylock.c: New file.
  8228. * sysdeps/powerpc/pthreaddef.h: New file.
  8229. * sysdeps/powerpc/tcb-offsets.sym: New file.
  8230. * sysdeps/powerpc/td_ta_map_lwp2thr.c: New file.
  8231. * sysdeps/powerpc/tls.h: New file.
  8232. * sysdeps/powerpc/bits/atomic.h: New file.
  8233. * sysdeps/unix/sysv/linux/libc-lowlevelmutex.c: New file.
  8234. * sysdeps/unix/sysv/linux/libc-lowlevellock.c: New file.
  8235. * sysdeps/unix/sysv/linux/lowlevellock.c: New file.
  8236. * sysdeps/unix/sysv/linux/lowlevelmutex.c: New file.
  8237. * sysdeps/unix/sysv/linux/sem_post.c: New file.
  8238. * sysdeps/unix/sysv/linux/sem_timedwait.c: New file.
  8239. * sysdeps/unix/sysv/linux/sem_trywait.c: New file.
  8240. * sysdeps/unix/sysv/linux/sem_wait.c: New file.
  8241. * sysdeps/unix/sysv/linux/powerpc/Makefile: New file.
  8242. * sysdeps/unix/sysv/linux/powerpc/createthread.c: New file.
  8243. * sysdeps/unix/sysv/linux/powerpc/fork.c: New file.
  8244. * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: New file.
  8245. * sysdeps/unix/sysv/linux/powerpc/pt-vfork.S: New file.
  8246. * sysdeps/unix/sysv/linux/powerpc/pthread_once.c: New file.
  8247. * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: New file.
  8248. * sysdeps/unix/sysv/linux/powerpc/bits/semaphore.h: New file.
  8249. * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h: New file.
  8250. * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: New file.
  8251. * sysdeps/unix/sysv/linux/ia64/lowlevellock.c: Use __gettimeofday,
  8252. not gettimeofday.
  8253. * sysdeps/unix/sysv/linux/ia64/lowlevelmutex.c: Likewise.
  8254. * sysdeps/unix/sysv/linux/ia64/sem_timedwait.c: Likewise.
  8255. * sysdeps/unix/sysv/linux/s390/lowlevellock.c: Likewise.
  8256. * sysdeps/unix/sysv/linux/s390/lowlevelmutex.c: Likewise.
  8257. * sysdeps/unix/sysv/linux/s390/sem_timedwait.c: Likewise.
  8258. 2003-03-17 Ulrich Drepper <drepper@redhat.com>
  8259. * sysdeps/pthread/pthread_cond_wait.c: Correct exit criteria.
  8260. * sysdeps/pthread/pthread_cond_timedwait.c: Likewise.
  8261. * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: Likewise.
  8262. * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Likewise.
  8263. Patch by Ewald Snel <ewald@rambo.its.tudelft.nl>.
  8264. 2003-03-16 Roland McGrath <roland@redhat.com>
  8265. * tst-fork4.c: Include <string.h>.
  8266. * tst-signal2.c: Likewise.
  8267. * tst-mutex5.c (do_test): exit -> return.
  8268. * tst-mutex2.c: Include <stdlib.h>.
  8269. 2003-03-16 Ulrich Drepper <drepper@redhat.com>
  8270. * sysdeps/unix/sysv/linux/i386/i486/lowlevelmutex.S
  8271. (__lll_mutex_timedlock_wait): Correct expected value after
  8272. spurious wakeup. Otherwise we would never wait again.
  8273. * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Work around red
  8274. zone versus inline asm stupidity. Use correct instructions.
  8275. * tst-rwlock6.c: Add some more status output.
  8276. 2003-03-15 Roland McGrath <roland@redhat.com>
  8277. * sysdeps/pthread/configure.in: New file.
  8278. * sysdeps/pthread/configure: New file (generated).
  8279. 2003-03-15 Ulrich Drepper <drepper@redhat.com>
  8280. * allocatestack.c (allocate_stack): Store the exact stack size of
  8281. user allocated stacks.
  8282. 2003-03-15 Jakub Jelinek <jakub@redhat.com>
  8283. * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h
  8284. (SINGLE_THREAD): Use `header' prefix instead of `header.data'.
  8285. * sysdeps/sh/tcb-offsets.sym (MULTIPLE_THREADS_OFFSET): Likewise.
  8286. * sysdeps/sh/tls.h (TLS_MULTIPLE_THREADS_IN_TCB): Define.
  8287. * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (SINGLE_THREAD_P):
  8288. Use `header.' prefix.
  8289. * sysdeps/ia64/tcb-offsets.sym (MULTIPLE_THREADS_OFFSET): Likewise.
  8290. 2003-03-15 Ulrich Drepper <drepper@redhat.com>
  8291. * sysdeps/x86_64/pthreaddef.h (CURRENT_STACK_FRAME): Don't use
  8292. __builtin_frame_address, use stack pointer.
  8293. * sysdeps/unix/sysv/linux/jmp-unwind.c: Use CURRENT_STACK_FRAME
  8294. instead of __builtin_frame_pointer.
  8295. 2003-03-14 Ulrich Drepper <drepper@redhat.com>
  8296. * tst-basic1.c (do_test): Add cast to avoid warning.
  8297. * tst-basic2.c (do_test): Likewise.
  8298. * sysdeps/unix/sysv/linux/x86_64/pthread_once.S: Use correct
  8299. amount of stack correction.
  8300. * tst-fork4.c: Use test-skeleton.c.
  8301. 2003-03-14 Roland McGrath <roland@redhat.com>
  8302. * init.c: Fix typo "#eli" for "#else".
  8303. 2003-03-14 Steven Munroe <sjmunroe@us.ibm.com>
  8304. * allocatestack.c (__stack_user): Use hidden_data_def.
  8305. * pthread_create.c (__pthread_keys): Likewise.
  8306. * init.c [__powerpc__] (__NR_set_tid_address): Define it.
  8307. 2003-03-14 Roland McGrath <roland@redhat.com>
  8308. * tst-fork4.c: New file.
  8309. * Makefile (tests): Add it.
  8310. * descr.h (struct pthread): Move the union out of [!TLS_DTV_AT_TP], so
  8311. we always define the padding space.
  8312. [!TLS_DTV_AT_TP]: Give tcbhead_t field a name, `header', since GCC
  8313. stopped supporting its own extensions fully.
  8314. [TLS_MULTIPLE_THREADS_IN_TCB]: Put `multiple_threads' inside a wrapper
  8315. struct also called `header', so `header.multiple_threads' is the field
  8316. name to use on all machines.
  8317. * allocatestack.c (allocate_stack): Use `header.' prefix.
  8318. * sysdeps/pthread/createthread.c (create_thread): Likewise.
  8319. * pthread_create.c (__pthread_create_2_1): Likewise.
  8320. * sysdeps/i386/tls.h (INSTALL_NEW_DTV, THREAD_DTV): Likewise.
  8321. (THREAD_SELF): Likewise.
  8322. * sysdeps/x86_64/tls.h: Likewise.
  8323. * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h
  8324. (SINGLE_THREAD_P): Likewise.
  8325. * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h
  8326. (SINGLE_THREAD_P): Likewise.
  8327. * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h
  8328. (SINGLE_THREAD_P): Likewise.
  8329. * sysdeps/s390/td_ta_map_lwp2thr.c (td_ta_map_lwp2thr): Use REGS[18]
  8330. value directly.
  8331. 2003-03-14 Ulrich Drepper <drepper@redhat.com>
  8332. * pthread_create.c (start_thread): Use CALL_THREAD_FCT if defined.
  8333. * sysdeps/i386/tls.h: Define CALL_THREAD_FCT.
  8334. * pthread_create.c (start_thread): setjmp is expected to return 0.
  8335. * sysdeps/x86_64/tls.h (THREAD_GETMEM): Mark asms volatile.
  8336. (THREAD_GETMEM_NC): Likewise.
  8337. 2003-03-13 Ulrich Drepper <drepper@redhat.com>
  8338. * allocatestack.c (allocate_stack): If MULTI_PAGE_ALIASING is defined
  8339. and the size of the stack which must be allocated is a multiple,
  8340. allocate one more page.
  8341. * sysdeps/i386/i686/Makefile: Don't define COLORING_INCREMENT, but
  8342. MULTI_PAGE_ALIASING.
  8343. 2003-03-13 Roland McGrath <roland@redhat.com>
  8344. * pthread_create.c (start_thread): Set EXITING_BIT after the
  8345. event-reporting (and destructors), not before.
  8346. 2003-03-13 Jakub Jelinek <jakub@redhat.com>
  8347. * sysdeps/unix/sysv/linux/ia64/lowlevellock.h (lll_futex_timed_wait,
  8348. lll_futex_wake): Declare register variables as long int instead of
  8349. unsigned long int. Patch by Ian Wienand <ianw@gelato.unsw.edu.au>.
  8350. Make syscall arguments clobbered by the syscall.
  8351. (lll_futex_wait): Define using lll_futex_timed_wait.
  8352. * sysdeps/ia64/td_ta_map_lwp2thr.c (td_ta_map_lwp2thr): Cast regs[13]
  8353. to void *.
  8354. * sysdeps/unix/sysv/linux/fork.c (__libc_fork): Only declare and set
  8355. PPID if [! NDEBUG].
  8356. * allocatestack.c (nptl_ncreated): Only declare if
  8357. COLORING_INCREMENT != 0.
  8358. * pthreadP.h (__pthread_enable_asynccancel_2): New prototype.
  8359. (__libc_enable_asynccancel_2): Remove prototype.
  8360. * sysdeps/unix/sysv/linux/ia64/fork.c (ARCH_FORK): Swap ptid and
  8361. ctid to match kernel.
  8362. 2003-03-12 Ulrich Drepper <drepper@redhat.com>
  8363. * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add
  8364. libc_multiple_threads.
  8365. * sysdeps/unix/sysv/linux/libc_pthread_init.c: Move definition of
  8366. __libc_multiple_threads to...
  8367. * sysdeps/unix/sysv/linux/libc_multiple_threads.c: ...here. New file.
  8368. * sysdeps/unix/sysv/linux/x86_64/sem_post.S: Remove unnecessary
  8369. versioning.
  8370. * sysdeps/unix/sysv/linux/x86_64/sem_trywait.S: Likewise.
  8371. * sysdeps/unix/sysv/linux/x86_64/sem_wait.S: Likewise.
  8372. * sysdeps/unix/sysv/linux/x86_64/pthread_once.S
  8373. (__pthread_once_internal): Define.
  8374. * sysdeps/unix/sysv/linux/i386/i486/sem_post.S: Use shlib-compat.h
  8375. macros instead of .symver directly.
  8376. * sysdeps/unix/sysv/linux/i386/i486/sem_trywait.S: Likewise.
  8377. * sysdeps/unix/sysv/linux/i386/i486/sem_wait.S: Likewise.
  8378. * sysdeps/x86_64/tls.h [__ASSEMBLER__]: Include tcb-offsets.h.
  8379. * sysdeps/x86_64/tcb-offsets.sym: New file.
  8380. * sysdeps/x86_64/Makefile: New file.
  8381. * sysdeps/i386/tcb-offsets.sym: Add SELF.
  8382. * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_rdlock.S: Use SELF
  8383. to access own pthread_t in TCB.
  8384. * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S:
  8385. Likewise.
  8386. * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S:
  8387. Likewise.
  8388. * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_wrlock.S: Likewise.
  8389. 2003-03-12 Roland McGrath <roland@redhat.com>
  8390. * pthread-errnos.sym: New file.
  8391. * Makefile (gen-as-const-headers): New variable, list that file.
  8392. * sysdeps/unix/sysv/linux/i386/i486/sem_wait.S: Include generated
  8393. header <pthread-errnos.h> instead of defining errno values here.
  8394. * sysdeps/unix/sysv/linux/i386/i486/sem_trywait.S: Likewise.
  8395. * sysdeps/unix/sysv/linux/i386/i486/sem_timedwait.S: Likewise.
  8396. * sysdeps/unix/sysv/linux/i386/i486/sem_post.S: Likewise.
  8397. * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_wrlock.S: Likewise.
  8398. * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S:
  8399. Likewise.
  8400. * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S:
  8401. Likewise.
  8402. * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_rdlock.S: Likewise.
  8403. * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: Likewise.
  8404. * sysdeps/unix/sysv/linux/i386/i486/lowlevelmutex.S: Likewise.
  8405. * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S: Likewise.
  8406. * sysdeps/unix/sysv/linux/x86_64/sem_wait.S: Likewise.
  8407. * sysdeps/unix/sysv/linux/x86_64/sem_trywait.S: Likewise.
  8408. * sysdeps/unix/sysv/linux/x86_64/sem_timedwait.S: Likewise.
  8409. * sysdeps/unix/sysv/linux/x86_64/sem_post.S: Likewise.
  8410. * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: Likewise.
  8411. * sysdeps/unix/sysv/linux/x86_64/lowlevelmutex.S: Likewise.
  8412. * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
  8413. * sysdeps/unix/sysv/linux/sh/sem_trywait.S: Likewise.
  8414. * sysdeps/unix/sysv/linux/sh/sem_timedwait.S: Likewise.
  8415. * sysdeps/unix/sysv/linux/sh/sem_post.S: Likewise.
  8416. * sysdeps/unix/sysv/linux/sh/sem_wait.S: Likewise.
  8417. * sysdeps/unix/sysv/linux/sh/pthread_rwlock_wrlock.S: Likewise.
  8418. * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedwrlock.S: Likewise.
  8419. * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedrdlock.S: Likewise.
  8420. * sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S: Likewise.
  8421. * sysdeps/unix/sysv/linux/sh/pthread_rwlock_rdlock.S: Likewise.
  8422. * sysdeps/unix/sysv/linux/sh/lowlevellock.S: Likewise.
  8423. * sysdeps/unix/sysv/linux/sh/lowlevelmutex.S: Likewise.
  8424. * sysdeps/i386/i486/pthread_spin_trylock.S: Likewise.
  8425. * sysdeps/x86_64/pthread_spin_trylock.S: Likewise.
  8426. * sysdeps/sh/pthread_spin_trylock.S: Likewise.
  8427. * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_rdlock.S: Likewise.
  8428. * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_wrlock.S: Likewise.
  8429. * sysdeps/unix/sysv/linux/fork.c: Add an assert to check that
  8430. CLONE_CHILD_SETTID worked.
  8431. 2003-03-12 Ulrich Drepper <drepper@redhat.com>
  8432. * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedrdlock.S: New
  8433. file.
  8434. * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedwrlock.S: New
  8435. file.
  8436. * sysdeps/unix/sysv/linux/x86_64/bits/pthreadtypes.h
  8437. (pthread_cond_t): Add padding.
  8438. * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_rdlock.S: New file.
  8439. * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_wrlock.S: New file.
  8440. * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_unlock.S: New file.
  8441. * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S
  8442. (__pthread_rwlock_timedwrlock): Add missing opcode suffix.
  8443. * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S
  8444. (__pthread_rwlock_timedrdlock): Likewise.
  8445. * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_wrlock.S
  8446. (__pthread_rwlock_wrlock): Likewise.
  8447. * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_rdlock.S
  8448. (__pthread_rwlock_rdlock): Likewise.
  8449. * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: New file.
  8450. * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: Return
  8451. result of lock re-get if it fails.
  8452. 2003-03-11 Ulrich Drepper <drepper@redhat.com>
  8453. * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Fix asm syntax.
  8454. * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
  8455. * sysdeps/unix/sysv/linux/x86_64/lowlevelmutex.S: Likewise.
  8456. * sysdeps/unix/sysv/linux/x86_64/pthread_cond_signal.S: Likewise.
  8457. * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: Likewise.
  8458. * sysdeps/unix/sysv/linux/x86_64/pthread_once.S: Likewise.
  8459. * sysdeps/unix/sysv/linux/x86_64/sem_post.S: Likewise.
  8460. * sysdeps/unix/sysv/linux/x86_64/sem_timedwait.S: Likewise.
  8461. * sysdeps/unix/sysv/linux/x86_64/sem_trywait.S: Likewise.
  8462. * sysdeps/unix/sysv/linux/x86_64/sem_wait.S: Likewise.
  8463. * sysdeps/x86_64/tls.h (THREAD_SELF, THREAD_GETMEM, THREAD_GETMEM_NC,
  8464. THREAD_SETMEM, THREAD_SETMEM_NC): Correct asm syntax.
  8465. * allocatestack.c [! TLS_MULTIPLE_THREADS_IN_TCB] (allocate_stack):
  8466. Initialize *__libc_multiple_threads_ptr not __libc_multiple_threads.
  8467. * sysdeps/pthread/createthread.c [! TLS_MULTIPLE_THREADS_IN_TCB]
  8468. (create_thread): Likewise.
  8469. Define __pthread_multiple_threads and __libc_multiple_threads_ptr.
  8470. * init.c (__pthread_initialize_minimal_internal): Initialize
  8471. __libc_multiple_threads_ptr if necessary.
  8472. * pthreadP.h: Adjust prototype for __libc_pthread_init. Declare
  8473. __pthread_multiple_threads and __libc_multiple_threads_ptr.
  8474. * sysdeps/unix/sysv/linux/libc_pthread_init.c: Define
  8475. __libc_multiple_threads.
  8476. (__libc_pthread_init): Return pointer to __libc_pthread_init if
  8477. necessary.
  8478. * sysdeps/i386/tls.h (THREAD_SETMEM): Fix one-byte variant.
  8479. (THREAD_SETMEM_NC): Likewise.
  8480. * sysdeps/x86_64/pthread_spin_trylock.c: Removed.
  8481. * sysdeps/x86_64/pthread_spin_trylock.S: New file.
  8482. * sysdeps/x86_64/pthread_spin_unlock.c: Removed.
  8483. * sysdeps/x86_64/pthread_spin_unlock.S: New file.
  8484. * sysdeps/i386/i486/pthread_spin_trylock.S (pthread_spin_trylock):
  8485. Eliminate one entire instruction.
  8486. * cancellation.c (__pthread_enable_asynccancel_2): New function.
  8487. * pthreadP.h: Declare __pthread_enable_asynccancel_2.
  8488. * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S
  8489. (__pthread_cond_timedwait): Use __pthread_enable_asynccancel_2
  8490. instead of __pthread_enable_asynccancel.
  8491. * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S
  8492. (__pthread_cond_wait): Likewise.
  8493. * sysdeps/pthread/pthread_cond_timedwait.c
  8494. (__pthread_cond_timedwait): Likewise.
  8495. * sysdeps/pthread/pthread_cond_wait.c (__pthread_cond_wait): Likewise.
  8496. * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S
  8497. (__condvar_cleanup): Wake up all waiters in case we got signaled
  8498. after being woken up but before disabling asynchronous
  8499. cancellation.
  8500. * sysdeps/pthread/pthread_cond_wait.c (__condvar_cleanup): Likewise.
  8501. * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S
  8502. (__condvar_cleanup): Likewise.
  8503. * init.c (__NR_set_tid_address): If already defined, don't redefine.
  8504. Make it an error if architecture has no #if case. Add x86-64.
  8505. * sysdeps/unix/sysv/linux/x86_64/Makefile: Add flags for
  8506. pt-initfini.s generation.
  8507. * sysdeps/x86_64/tls.h: Include <asm/prctl.h>.
  8508. (TLS_INIT_TP): Fix typo.
  8509. 2003-03-11 Jakub Jelinek <jakub@redhat.com>
  8510. * sysdeps/ia64/bits/atomic.h (atomic_exchange_and_add): Swap 2nd and
  8511. 3rd argument of __arch_compare_and_exchange_{32,64}_val_acq.
  8512. * sysdeps/unix/sysv/linux/ia64/sem_post.c: Include semaphore.h.
  8513. * sysdeps/unix/sysv/linux/ia64/sem_timedwait.c: Likewise.
  8514. * sysdeps/unix/sysv/linux/ia64/sem_trywait.c: Likewise.
  8515. * sysdeps/unix/sysv/linux/ia64/sem_wait.c: Likewise.
  8516. * sysdeps/unix/sysv/linux/s390/sem_post.c: Likewise.
  8517. * sysdeps/unix/sysv/linux/s390/sem_timedwait.c: Likewise.
  8518. * sysdeps/unix/sysv/linux/s390/sem_trywait.c: Likewise.
  8519. * sysdeps/unix/sysv/linux/s390/sem_wait.c: Likewise.
  8520. 2003-03-11 Ulrich Drepper <drepper@redhat.com>
  8521. * sysdeps/pthread/pthread_cond_timedwait.c
  8522. (__pthread_cond_timedwait): Return the result of the final
  8523. locking. If it succeeds, the regular function return value.
  8524. * sysdeps/pthread/pthread_cond_wait.c (__pthread_cond_wait):
  8525. Return result of the final locking.
  8526. * version.c (__nptl_main): Work around problems with the strange
  8527. INTERNAL_SYSCALL macro on ppc32.
  8528. * init.c (__pthread_initialize_minimal_internal): Unblock
  8529. SIGCANCEL in case the parent blocked it.
  8530. Reported by Paul Mackerras <paulus@samba.org>.
  8531. * sysdeps/unix/sysv/linux/x86_64/pthread_cond_broadcast.S: New file.
  8532. * sysdeps/unix/sysv/linux/x86_64/pthread_cond_signal.S: New file.
  8533. * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: New file.
  8534. 2003-03-11 Jakub Jelinek <jakub@redhat.com>
  8535. * sysdeps/pthread/pthread_cond_timedwait.c
  8536. (__pthread_cond_timedwait): Unlock and fail if
  8537. __pthread_mutex_unlock_internal failed.
  8538. * sysdeps/pthread/createthread.c (ARCH_CLONE): Define if not defined.
  8539. (create_thread): Only assert PD->tcb != NULL under [TLS_TCB_AT_TP].
  8540. Use ARCH_CLONE.
  8541. * allocatestack.c (ALLOCATE_STACK_PARMS): New macro.
  8542. [NEED_SEPARATE_REGISTER_STACK] (STACK_VARIABLES,
  8543. STACK_VARIABLES_ARGS, STACK_VARIABLES_PARMS, ALLOCATE_STACK_PARMS,
  8544. ALLOCATE_STACK): New macros.
  8545. (TLS_TPADJ): New macro.
  8546. (get_cached_stack, queue_stack, __deallocate_stack): Use TLS_TPADJ.
  8547. (allocate_stack): Handle TLS_DTV_AT_TP and
  8548. NEED_SEPARATE_REGISTER_STACK. Use TLS_TPADJ.
  8549. * pthread_create.c (__pthread_create_2_1) [! TLS_TCB_AT_TP]:
  8550. Don't set PD->self.
  8551. * init.c [__ia64__] (__NR_set_tid_address): Define.
  8552. * sysdeps/unix/sysv/linux/ia64/bits/pthreadtypes.h: New file.
  8553. * sysdeps/unix/sysv/linux/ia64/bits/semaphore.h: New file.
  8554. * sysdeps/unix/sysv/linux/ia64/fork.c: New file.
  8555. * sysdeps/unix/sysv/linux/ia64/createthread.c: New file.
  8556. * sysdeps/unix/sysv/linux/ia64/libc-lowlevellock.c: New file.
  8557. * sysdeps/unix/sysv/linux/ia64/libc-lowlevelmutex.c: New file.
  8558. * sysdeps/unix/sysv/linux/ia64/lowlevellock.c: New file.
  8559. * sysdeps/unix/sysv/linux/ia64/lowlevellock.h: New file.
  8560. * sysdeps/unix/sysv/linux/ia64/lowlevelmutex.c: New file.
  8561. * sysdeps/unix/sysv/linux/ia64/pt-initfini.c: New file.
  8562. * sysdeps/unix/sysv/linux/ia64/pt-vfork.S: New file.
  8563. * sysdeps/unix/sysv/linux/ia64/pthread_once.c: New file.
  8564. * sysdeps/unix/sysv/linux/ia64/sem_post.c: New file.
  8565. * sysdeps/unix/sysv/linux/ia64/sem_timedwait.c: New file.
  8566. * sysdeps/unix/sysv/linux/ia64/sem_trywait.c: New file.
  8567. * sysdeps/unix/sysv/linux/ia64/sem_wait.c: New file.
  8568. * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h: New file.
  8569. * sysdeps/ia64/bits/atomic.h: New file.
  8570. * sysdeps/ia64/Makefile: New file.
  8571. * sysdeps/ia64/pthread_spin_init.c: New file.
  8572. * sysdeps/ia64/pthread_spin_lock.c: New file.
  8573. * sysdeps/ia64/pthread_spin_trylock.c: New file.
  8574. * sysdeps/ia64/pthread_spin_unlock.c: New file.
  8575. * sysdeps/ia64/pthreaddef.h: New file.
  8576. * sysdeps/ia64/tcb-offsets.sym: New file.
  8577. * sysdeps/ia64/td_ta_map_lwp2thr.c: New file.
  8578. * sysdeps/ia64/tls.h: New file.
  8579. * sysdeps/s390/pthreaddef.h (__exit_thread_inline): Pass 1 argument
  8580. to syscall instead of no arguments.
  8581. 2003-03-10 Ulrich Drepper <drepper@redhat.com>
  8582. * sysdeps/unix/sysv/linux/x86_64/sem_post.S: New file.
  8583. * sysdeps/unix/sysv/linux/x86_64/sem_trywait.S: New file.
  8584. * sysdeps/unix/sysv/linux/x86_64/sem_wait.S: New file.
  8585. * sysdeps/unix/sysv/linux/x86_64/sem_timedwait.S: New file.
  8586. * sysdeps/unix/sysv/linux/i386/i486/sem_post.S: Fix error value in
  8587. unused code.
  8588. * sysdeps/unix/sysv/linux/x86_64/pthread_barrier_wait.S: New file
  8589. * sysdeps/unix/sysv/linux/Makefile (gen-as-const-headers): Add
  8590. lowlevelbarrier.sym.
  8591. * sysdeps/unix/sysv/linux/lowlevelbarrier.sym: New file.
  8592. * sysdeps/unix/sysv/linux/i386/i486/pthread_barrier_wait.S:
  8593. Include lowlevelbarrier.h and don't define offsets locally.
  8594. * sysdeps/unix/sysv/linux/sh/pthread_barrier_wait.S: Likewise.
  8595. * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h
  8596. (__lll_mutex_lock_wait): Reverse order of first two parameters.
  8597. (__lll_mutex_timedlock_wait): Likewise.
  8598. (lll_mutex_lock): Adjust asm for that.
  8599. (lll_mutex_timedlock): Likewise. Mark cx, cc, r10 as clobbered.
  8600. (lll_lock): Adjust asm for operand order change.
  8601. * sysdeps/unix/sysv/linux/x86_64/lowlevelmutex.S: New file.
  8602. * sysdeps/unix/sysv/linux/x86_64/libc-lowlevelmutex.S: New file.
  8603. * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (__lll_lock_wait):
  8604. Reverse order of parameters.
  8605. (__lll_timedwait_tid): Remove regparms attribute.
  8606. * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: New file.
  8607. * sysdeps/unix/sysv/linux/x86_64/libc-lowlevellock.S: New file.
  8608. * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S
  8609. (__lll_timedwait_tid): Remove one unnecessary instruction.
  8610. * sysdeps/unix/sysv/linux/sh/lowlevelmutex.S: Define
  8611. __lll_mutex_timedlock_wait only for NOT_IN_libc.
  8612. * sysdeps/unix/sysv/linux/sh/libc-lowlevelmutex.S: Include
  8613. lowlevelmutex.S.
  8614. * sysdeps/unix/sysv/linux/sh/lowlevellock.S: Define
  8615. lll_unlock_wake_cb, __lll_wait_tid, and __lll_timedwait_tid only
  8616. for NOT_IN_libc.
  8617. * sysdeps/unix/sysv/linux/sh/libc-lowlevellock.S: Include
  8618. lowlevellock.S.
  8619. * sysdeps/unix/sysv/linux/i386/i486/lowlevelmutex.S: Don't define
  8620. LOCK is already defined. Don't define __lll_mutex_timedlock_wait
  8621. for libc.so.
  8622. * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevelmutex.S: Only
  8623. define LOCK here (if UP is not defined). The actual code is in
  8624. lowlevelmutex.S.
  8625. * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S: Don't define
  8626. LOCK is already defined. Don't define lll_unlock_wake_cb and
  8627. __lll_timedwait_tid for libc.so.
  8628. * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S: Only
  8629. define LOCK here (if UP is not defined). The actual code is in
  8630. lowlevellock.S.
  8631. * sysdeps/unix/sysv/linux/i386/lowlevelsem.h: Not needed anymore.
  8632. * sysdeps/unix/sysv/linux/s390/lowlevelsem.h: Likewise.
  8633. * sysdeps/unix/sysv/linux/s390/sem_post.c: Include lowlevellock.h
  8634. instead of lowlevelsem.h.
  8635. * sysdeps/unix/sysv/linux/s390/sem_timedwait.c: Likewise.
  8636. * sysdeps/unix/sysv/linux/s390/sem_trywait.c: Likewise.
  8637. * sysdeps/unix/sysv/linux/s390/sem_wait.c: Likewise.
  8638. * sysdeps/unix/sysv/linux/Makefile (gen-as-const-headers): Add
  8639. lowlevelrwlock.sym.
  8640. * sysdeps/unix/sysv/linux/lowlevelrwlock.sym: New file.
  8641. * sysdeps/unix/sysv/linux/i386/lowlevelrwlock.h: Removed.
  8642. * sysdeps/unix/sysv/linux/sh/lowlevelrwlock.h: Removed.
  8643. * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (lll_trylock): Fix
  8644. register loading.
  8645. * sysdeps/unix/sysv/linux/i386/lowlevellock.h (lll_trylock): Undo
  8646. last changed. D'oh.
  8647. * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: New file.
  8648. * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Remove declaration
  8649. of __libc_locking_needed.
  8650. (lll_trylock): Initialize %eax to zero.
  8651. * sysdeps/unix/sysv/linux/x86_64/bits/pthreadtypes.h: Update
  8652. pthread_cond_t definition.
  8653. 2003-03-10 Roland McGrath <roland@redhat.com>
  8654. * sysdeps/unix/sysv/linux/lowlevelcond.sym: New file.
  8655. * sysdeps/unix/sysv/linux/Makefile (gen-as-const-headers): Add it.
  8656. * sysdeps/unix/sysv/linux/sh/lowlevelcond.h: File removed.
  8657. * sysdeps/unix/sysv/linux/i386/lowlevelcond.h: Likewise.
  8658. * sysdeps/unix/sysv/linux/x86_64/lowlevelcond.h: Likewise.
  8659. * allocatestack.c (allocate_stack) [!TLS_MULTIPLE_THREADS_IN_TCB]:
  8660. Instead of setting PD->multiple_threads, set globals
  8661. __pthread_multiple_threads and __libc_multiple_threads.
  8662. * sysdeps/pthread/createthread.c (create_thread): Likewise.
  8663. * sysdeps/i386/tls.h (TLS_MULTIPLE_THREADS_IN_TCB): Define it.
  8664. * sysdeps/s390/tls.h (TLS_MULTIPLE_THREADS_IN_TCB): Likewise.
  8665. * descr.h (struct pthread): Conditionalize first member on
  8666. [!TLS_DTV_AT_TP]. Replace the `header' member with an anonymous union
  8667. containing an anonymous tcbhead_t. Move `list' member out.
  8668. [TLS_MULTIPLE_THREADS_IN_TCB]: Define a `multiple_threads' member.
  8669. * allocatestack.c: Remove use of `header.data.' prefix.
  8670. * pthread_create.c: Likewise.
  8671. * init.c (__pthread_initialize_minimal_internal): Likewise.
  8672. * sysdeps/pthread/createthread.c (create_thread): Likewise.
  8673. * sysdeps/i386/tls.h (INSTALL_DTV): Add parens.
  8674. (THREAD_SELF, THREAD_DTV, INSTALL_NEW_DTV): No `header.data.' prefix.
  8675. * sysdeps/x86_64/tls.h: Likewise.
  8676. * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h
  8677. (SINGLE_THREAD_P): Likewise.
  8678. * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h
  8679. (SINGLE_THREAD_P): Likewise.
  8680. * sysdeps/i386/tls.h (tcbhead_t): Remove `list' member.
  8681. * sysdeps/s390/tls.h (tcbhead_t): Likewise.
  8682. 2003-03-09 Ulrich Drepper <drepper@redhat.com>
  8683. * sysdeps/unix/sysv/linux/x86_64/lowlevelcond.h: New file.
  8684. * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: New file.
  8685. * sysdeps/unix/sysv/linux/x86_64/fork.c: New file.
  8686. * sysdeps/unix/sysv/linux/x86_64/pthread_once.S: Fix many
  8687. leftovers from the ia32 code.
  8688. * sysdeps/unix/sysv/linux/i386/pthread_once.S: Remove unneccessary
  8689. memory load.
  8690. (clear_once_control): Don't load %esi.
  8691. * sysdeps/x86_64/tls.h: Remove all traces of segment descriptor
  8692. handling.
  8693. * sysdeps/unix/sysv/linux/x86_64/fork.c: New file.
  8694. * sysdeps/unix/sysv/linux/s390/createthread.c: Moved to...
  8695. * sysdeps/unix/sysv/linux/createthread.c: ...here.
  8696. * Makefile (tests): Add tst-cond10.
  8697. * tst-cond10.c: New file.
  8698. 2003-03-08 Ulrich Drepper <drepper@redhat.com>
  8699. * tst-tls2.c (do_test): Add TEMP_FAILURE_RETRY around sem_wait call.
  8700. * tst-signal3.c (do_test): Likewise.
  8701. * tst-sem5.c (do_test): Likewise.
  8702. * tst-kill6.c (do_test): Likewise.
  8703. * tst-tls3.c (do_test): Likewise. Include <errno.h>.
  8704. * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Use add/sub instead
  8705. of inc/dec.
  8706. * sysdeps/unix/sysv/linux/i386/lowlevelsem.h: Likewise.
  8707. * sysdeps/unix/sysv/linux/i386/pthread_once.S: Likewise
  8708. * sysdeps/unix/sysv/linux/i386/i486/sem_timedwait.S: Likewise.
  8709. * sysdeps/unix/sysv/linux/i386/i486/sem_post.S: Likewise.
  8710. * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_wrlock.S: Likewise.
  8711. * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_unlock.S: Likewise.
  8712. * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S:
  8713. Likewise.
  8714. * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S:
  8715. Likewise.
  8716. * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_rdlock.S: Likewise.
  8717. * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Likewise.
  8718. * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: Likewise.
  8719. * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S: Likewise.
  8720. * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_broadcast.S: Likewise.
  8721. * sysdeps/unix/sysv/linux/i386/i486/pthread_barrier_wait.S: Likewise.
  8722. * sysdeps/unix/sysv/linux/i386/i486/lowlevelmutex.S: Likewise.
  8723. * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S: Likewise.
  8724. * allocatestack.c (allocate_stack): If mprotect() fails free the
  8725. TLS memory.
  8726. 2003-03-07 Ulrich Drepper <drepper@redhat.com>
  8727. * sysdeps/i386/i486/bits/atomic.h: Fix a few unused definitions.
  8728. * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Remove all trace of
  8729. lll_wake_tid. This was used only to work around kernel limits in
  8730. the early days.
  8731. * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
  8732. * sysdeps/unix/sysv/linux/sh/libc-lowlevellock.S: Likewise.
  8733. * sysdeps/unix/sysv/linux/sh/lowlevellock.S: Likewise.
  8734. * sysdeps/unix/sysv/linux/sh/lowlevellock.h: Likewise.
  8735. * init.c (__static_tls_align_m1): Renamed from __static_tls_align.
  8736. (__pthread_initialize_minimal_internal): Change initialization of
  8737. __static_tls_align_m1 appropriately.
  8738. * pthreadP.h (__static_tls_align_m1): Renamed from
  8739. __static_tls_align.
  8740. * allocatestack.c (allocate_stack): Use __static_tls_align_m1
  8741. instead of __static_tls_align-1.
  8742. 2003-03-04 Ulrich Drepper <drepper@redhat.com>
  8743. * sysdeps/unix/sysv/linux/x86_64/Makefile: New file.
  8744. * pthread_create.c: Define __pthread_keys using nocommon
  8745. attribute, not by placing it explicitly in bss.
  8746. Remove DEFINE_DEALLOC definition. Not needed anymore.
  8747. * allocatestack.c: Define ARCH_MAP_FLAGS if not already defined.
  8748. Use it in mmap call to allocate stacks.
  8749. * sysdeps/pthread/createthread.c (create_thread): Fix comment.
  8750. * pthread_create.c (start_thread): Use THREAD_SETMEM to store
  8751. result of the thread function.
  8752. 2003-03-03 Ulrich Drepper <drepper@redhat.com>
  8753. * sysdeps/unix/sysv/linux/s390/dl-sysdep.h: Removed. The generic
  8754. version is just fine.
  8755. * sysdeps/unix/sysv/linux/libc_pthread_init.c
  8756. (__pthread_child_handler): Renamed from pthread_child_handler,
  8757. exported, and marked hidden. Change all users.
  8758. * sysdeps/unix/sysv/linux/register-atfork.c (free_mem): Do not
  8759. free __pthread_child_handler from child list.
  8760. 2003-03-03 Martin Schwidefsky <schwidefsky@de.ibm.com>
  8761. * atomic.h (atomic_exchange_and_add): Return newval, not oldval.
  8762. * sysdeps/pthread/pthread_cond_timedwait.c (__pthread_cond_timedwait):
  8763. Fix handling of cancellation and failing pthread_mutex_unlock call.
  8764. * sysdeps/pthread/pthread_cond_wait.c (__condvar_cleanup): Likewise.
  8765. (__pthread_cond_wait): Likewise.
  8766. * sysdeps/pthread/pthread_rwlock_timedrdlock.c
  8767. (pthread_rwlock_timedrdlock): Fix clobber of result variable by
  8768. lll_futex_timed_wait call.
  8769. * sysdeps/pthread/pthread_rwlock_timedwrlock.c
  8770. (pthread_rwlock_timedwrlock): Likewise.
  8771. * sysdeps/unix/sysv/linux/s390/libc-lowlevellock.c (___lll_lock):
  8772. Don't define lll_unlock_wake_cb and ___lll_timedwait_tid in libc.so.
  8773. * sysdeps/unix/sysv/linux/s390/lowlevellock.c: Remove XXX comments.
  8774. * sysdeps/unix/sysv/linux/s390/sem_post.c (__new_sem_post): Fix
  8775. check of lll_futex_wake return value.
  8776. 2003-03-03 Roland McGrath <roland@redhat.com>
  8777. * forward.c: Fix typo in __pthread_attr_init_2_0 compat_symbol decl.
  8778. * sysdeps/pthread/pthread-functions.h (struct pthread_functions):
  8779. Argument to ptr___pthread_cleanup_upto is __jmp_buf, not jmp_buf.
  8780. * sysdeps/unix/sysv/linux/jmp-unwind.c: Likewise.
  8781. 2003-03-02 Ulrich Drepper <drepper@redhat.com>
  8782. * sysdeps/pthread/timer_create.c (timer_create): Return correct
  8783. error for CPU clocks.
  8784. * sysdeps/unix/sysv/linux/bits/posix_opt.h: Define
  8785. _POSIX_MONOTONIC_CLOCK.
  8786. * sysdeps/unix/sysv/linux/i386/bits/posix_opt.h: Likewise.
  8787. * tst-cancel4.c (tf_sleep): Lower sleep time a bit to not upset
  8788. recent kernels.
  8789. 2003-03-01 Ulrich Drepper <drepper@redhat.com>
  8790. * descr.h (struct pthread): Move cleanup field to the front.
  8791. 2003-03-01 Roland McGrath <roland@redhat.com>
  8792. * sem_open.c (sem_open): Braino fix.
  8793. 2003-03-01 Ulrich Drepper <drepper@redhat.com>
  8794. * sysdeps/i386/tcb-offsets.sym: Add CLEANUP and CLEANUP_PREV.
  8795. * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Inline
  8796. __pthread_cleanup_pop functionality.
  8797. * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: Likewise.
  8798. * descr.h (struct pthread): Move tid field to the front now that
  8799. it is often used.
  8800. * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevelmutex.S
  8801. (__lll_mutex_timedlock_wait): Remove.
  8802. (__lll_mutex_unlock_wake): Don't save, load, and restore %esi.
  8803. * sysdeps/unix/sysv/linux/i386/i486/lowlevelmutex.S
  8804. (__lll_mutex_unlock_wake): Don't save, load, and restore %esi.
  8805. * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S
  8806. (lll_unlock_wake_cb): Don't save and restore %esi.
  8807. (__lll_unlock_wake): Add alignment. Don't save, load, and restore
  8808. %esi.
  8809. (__lll_timedwait_tid): Add alignment.
  8810. * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S
  8811. (__lll_unlock_wake): Add alignment. Don't save, load, and restore
  8812. %esi.
  8813. (__lll_timedwait_tid): Removed.
  8814. * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_broadcast.S
  8815. (__pthread_cond_broadcast): Don't save, load, and restore %esi.
  8816. * sysdeps/unix/sysv/linux/i386/i486/pthread_barrier_wait.S
  8817. (pthread_barrier_wait): Don't save, load, and restore %esi for
  8818. last thread.
  8819. * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S
  8820. (__pthread_cond_signal): Don't save, load, and restore %esi.
  8821. * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_unlock.S
  8822. (__pthread_rwlock_unlock): Don't save, load, and restore %esi.
  8823. * sysdeps/unix/sysv/linux/i386/i486/sem_post.S (__new_sem_post):
  8824. Don't save, load, and restore %esi.
  8825. 2003-02-27 Ulrich Drepper <drepper@redhat.com>
  8826. * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_broadcast.S:
  8827. Release lock before waking up the waiters.
  8828. * tst-exit1.c (do_test): Don't start more than one thread in parallel.
  8829. * tst-rwlock9.c (writer_thread): Correct adding TIMEOUT.
  8830. (reader_thread): Likewise.
  8831. * sysdeps/pthread/pthread_rwlock_unlock.c
  8832. (__pthread_rwlock_unlock): Release internal lock early. Don't try
  8833. to wake up readers if there are none.
  8834. * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_unlock.S:
  8835. Release internal lock before wake threads.
  8836. 2003-02-26 Ulrich Drepper <drepper@redhat.com>
  8837. * Makefile (tests): Add tst-rwlock10 and tst-rwlock11.
  8838. * tst-rwlock8.c: Initialize lock with INIT. Allow INIT to be
  8839. predefined.
  8840. * tst-rwlock9.c: Likewise.
  8841. * tst-rwlock10.c: New file.
  8842. * tst-rwlock11.c: New file.
  8843. * Makefile (tests): Add tst-dlsym1.
  8844. * tst-dlsym1.c: New file.
  8845. * init.c (__pthread_initialize_minimal_internal): Set
  8846. GL(dl_error_catch_tsd) to __libc_dl_error_tsd.
  8847. * Versions (libc:GLIBC_PRIVATE): Export __libc_dl_error_tsd.
  8848. 2003-02-24 Ulrich Drepper <drepper@redhat.com>
  8849. * sem_open.c (sem_open): Fix handling of O_CREAT without O_EXCL.
  8850. * tst-cond2.c: Fix sychronization with child.
  8851. * tst-rwlock8.c (reader_thread): Remove unused variable.
  8852. * Makefile: Add rules to build and run tst-tls3.
  8853. * tst-tls3.c: New file.
  8854. * tst-tls3mod.c: New file.
  8855. * Makefile (tests): Add tst-rwlock8 and tst-rwlock9.
  8856. * tst-rwlock8.c: New file.
  8857. * tst-rwlock9.c: New file.
  8858. * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_rdlock.S: Fix
  8859. complete broken rwlock implementation.
  8860. * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S:
  8861. Likewise.
  8862. * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S:
  8863. Likewise.
  8864. * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_unlock.S: Likewise.
  8865. * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_wrlock.S: Likewise.
  8866. * sysdeps/pthread/pthread_rwlock_rdlock.c: Likewise.
  8867. * sysdeps/pthread/pthread_rwlock_timedrdlock.c: Likewise.
  8868. * sysdeps/pthread/pthread_rwlock_timedwrlock.c: Likewise.
  8869. * sysdeps/pthread/pthread_rwlock_unlock.c: Likewise.
  8870. * sysdeps/pthread/pthread_rwlock_wrlock.c: Likewise.
  8871. 2003-02-23 Roland McGrath <roland@redhat.com>
  8872. * Makefile (nptl-version): Change regexp so case sensitivity is ok.
  8873. 2003-02-23 Ulrich Drepper <drepper@redhat.com>
  8874. * Makefile (tests): Add tst-context1.
  8875. * tst-context1.c: New file.
  8876. * Makefile (tests): Add tst-tls1 and tst-tls2.
  8877. * tst-tls1.c: New file.
  8878. * tst-tls2.c: New file.
  8879. * libc-cancellation.c (__libc_enable_asynccancel): Correct test
  8880. for failed cmpxchg.
  8881. * pthread_create.c (start_thread): Set EXITING_BIT early.
  8882. * sysdeps/i386/tls.h (THREAD_GETMEM): Mark asm as volatile.
  8883. (THREAD_GETMEM_NC): Likewise.
  8884. 2003-02-22 Ulrich Drepper <drepper@redhat.com>
  8885. * sysdeps/unix/sysv/linux/i386/i486/pthread_barrier_wait.S: Shave
  8886. off 3 more bytes by using offset-less instructions when possible.
  8887. * Makefile: Add dependency for $(objpfx)version.d.
  8888. * eintr.c (eintr_source): Add unnecessary return but the compiler
  8889. insists.
  8890. * tst-kill3.c: Include <unistd.h>.
  8891. 2003-02-21 Roland McGrath <roland@redhat.com>
  8892. * pthread_create.c (start_thread): Call __libc_thread_freeres.
  8893. 2003-02-21 Ulrich Drepper <drepper@redhat.com>
  8894. * Makefile (tests): Add tst-eintr1.
  8895. (distribute): Add eintr.c.
  8896. * tst-eintr1.c: New file.
  8897. * eintr.c: New file.
  8898. * pthread_cancel.c (pthread_cancel): Use tkill directly.
  8899. * sysdeps/unix/sysv/linux/pthread_kill.c (__pthread_kill):
  8900. Disallow sending SIGCANCEL.
  8901. * Makefile (tests): Remove tst-basic7. Add tst-kill1, tst-kill2,
  8902. tst-kill3, tst-kill4, tst-kill5, tst-kill6.
  8903. * tst-kill1.c: New file.
  8904. * tst-kill2.c: New file.
  8905. * tst-kill3.c: New file.
  8906. * tst-kill5.c: New file.
  8907. * tst-kill6.c: New file.
  8908. * tst-basic7.c: Renamed to...
  8909. * tst-kill4.c: ...this.
  8910. 2003-02-21 Roland McGrath <roland@redhat.com>
  8911. * Makefile (install-lib-ldscripts): New variable.
  8912. 2003-02-21 Ulrich Drepper <drepper@redhat.com>
  8913. * pthreadP.h: Define INVALID_TD_P and INVALID_NOT_TERMINATED_TD_P.
  8914. * pthread_cancel.c: Use INVALID_TD_P.
  8915. * pthread_detach.c: Likewise.
  8916. * pthread_getschedparam.c: Likewise.
  8917. * pthread_setschedparam.c: Likewise.
  8918. * sysdeps/pthread/pthread_getcpuclockid.c: Likewise.
  8919. * sysdeps/unix/sysv/linux/pthread_kill.c: Likewise.
  8920. * pthread_join.c: Use INVALID_NOT_TERMINATED_TD_P.
  8921. * pthread_timedjoin.c: Likewise.
  8922. * tst-basic7.c: Include <signal.h>.
  8923. * pthread_join.c (pthread_join): Limited checking for invalid
  8924. descriptors.
  8925. * pthread_timedjoin.c (pthread_timedjoin_np): Likewise.
  8926. 2003-02-20 Ulrich Drepper <drepper@redhat.com>
  8927. * pthread_create.c (deallocate_tsd): Reset found_nonzero at the
  8928. beginning of the loop. Clear the entire first block of TSD.
  8929. * Makefile (tests): Add tst-key4.
  8930. * tst-key4.c: New file.
  8931. 2003-02-18 Ulrich Drepper <drepper@redhat.com>
  8932. * Makefile (tests): Add tst-basic7.
  8933. * tst-basic7.c: New file.
  8934. * pthread_create.c (deallocate_tsd): Mark as internal_function.
  8935. Add some more __builtin_expect.
  8936. * pthreadP.h: Define dummy version of DEBUGGING_P.
  8937. 2003-02-17 Ulrich Drepper <drepper@redhat.com>
  8938. * sysdeps/unix/sysv/linux/i386/bits/posix_opt.h: Remnove
  8939. _POSIX_THREAD_PRIORITY_SCHEDULING.
  8940. * sysdeps/unix/sysv/linux/i386/bits/posix_opt.h: Remove
  8941. _XOPEN_REALTIME_THREADS.
  8942. * sysdeps/unix/sysv/linux/bits/posix_opt.h: Likewise.
  8943. * sysdeps/unix/sysv/linux/pthread_kill.c (__pthread_kill): The
  8944. kernel returns EINVAL for PID <= 0, work around it.
  8945. * Makefile (tests): Add tst-signal5.
  8946. * tst-signal5.c: New file.
  8947. * sysdeps/unix/sysv/linux/bits/local_lim.h: Define TTY_NAME_MAX
  8948. and LOGIN_NAME_MAX.
  8949. * tst-cancel1.c (tf): Block all signals.
  8950. * Makefile (tests): Add tst-basic6.
  8951. * tst-basic6.c: New file.
  8952. * tst-basic1.c: Add test for process ID.
  8953. * Makefile (tests): Add tst-cancel10.
  8954. * tst-cancel10.c: New file.
  8955. * Makefile (tests): Add tst-signal4.
  8956. * tst-signal4.c: New file.
  8957. * sysdeps/pthread/pthread_sigmask.c (pthread_sigmask): Use
  8958. __sigismember instead of sigismember. Add __builtin_expect.
  8959. 2003-02-16 Ulrich Drepper <drepper@redhat.com>
  8960. * tst-attr1.c (do_test): Add tests for pthread_setcanceltype,
  8961. pthread_setcancelstate, and pthread_rwlock_setpshared.
  8962. * tst-cancel7.c (do_test): Make sure the pid file exists before
  8963. canceling the thread.
  8964. * tst-rwlock6.c: More pthread_rwlock_timedwrlock and
  8965. pthread_rwlock_timedrdlock tests.
  8966. * tst-rwlock7.c: More pthread_rwlock_timedwrlock tests.
  8967. * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S:
  8968. Check for invalid tv_nsec field.
  8969. * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S:
  8970. Likewise.
  8971. * pthread_mutex_trylock.c (__pthread_mutex_trylock): Protect
  8972. recursive mutex of overflow.
  8973. * tst-attr1.c (do_test): Add test for pthread_mutexattr_setpshared.
  8974. * libc-cancellation.c (__libc_enable_asynccancel): Rewrite to avoid
  8975. going into an endless loop.
  8976. * Makefile (tests): Add tst-cancel9.
  8977. * tst-cancel9.c: New file.
  8978. * pthread_cancel.c (pthread_cancel): Use the result of __pthread_kill.
  8979. 2003-02-15 Ulrich Drepper <drepper@redhat.com>
  8980. * tst-mutex5.c (do_test): Add more timedlock tests.
  8981. * tst-mutex2.c: Tests of trylock and unlock with ERROR mutexes.
  8982. * tst-mutex3.c (do_test): Add tests for trylock with RECURSIVE mutexes.
  8983. * sysdeps/unix/sysv/linux/pthread_kill.c (__pthread_kill): Don't
  8984. use INLINE_SYSCALL. Error number is returned, not -1.
  8985. * pthreadP.h: Mark declarations of __find_in_stack_list, __free_tcb,
  8986. and __deallocate_stack with internal_function.
  8987. * pthread_create.c: Adjust definitions appropriately.
  8988. * allocatestack.c: Likewise.
  8989. * pthread_join.c: Add one more __builtin_expect.
  8990. * pthread_timedjoin.c: Likewise.
  8991. * pthread_getspecific.c (__pthread_getspecific): Clear data->data
  8992. not data of sequence number does not match.
  8993. Add one __builtin_expect.
  8994. * Makefile (tests): Add tst-clock1.
  8995. * tst-clock1.c: New file.
  8996. * pthread_setconcurrency.c (pthread_setconcurrency): Fail for
  8997. negative arguments.
  8998. * Makefile (tests): Add tst-basic5.
  8999. * tst-basic5.c: New file.
  9000. 2003-02-14 Ulrich Drepper <drepper@redhat.com>
  9001. * Makefile (tests): Add tst-basic4.
  9002. * tst-basic4.c: New file.
  9003. * pthreadP.h: Add declaraction for __nptl_nthreads.
  9004. * pthread_create.c: Define __nptl_nthreads
  9005. (start_thread): Increment __nptl_nthreads at beginning. Decrement
  9006. after thread is done. If then zero, call exit(0).
  9007. * sysdeps/pthread/pthread-functions.h (struct pthread_functions):
  9008. Add ptr_nthreads. Define HAVE_PTR_NTHREADS.
  9009. * init.c (pthread_functions): Initialize ptr_nthreads.
  9010. * allocatestack.c (nptl_nthreads): Remove definition and all uses.
  9011. (__reclaim_stacks): Decrement __nptl_nthreads.
  9012. * sysdeps/pthread/Makefile [$(subdir)==csu] (CFLAGS-libc-start.c):
  9013. Define.
  9014. * Makefile (tests): Add tst-basic3.
  9015. * tst-basic3.c: New file.
  9016. * descr.h: Define CANCELING_BIT and CANCELING_BITMASK. Introduce
  9017. after CANCELTYPE_BIT, move the other bits up. Update CANCEL_RESTMASK.
  9018. * init.c (sigcancel_handler): Also set CANCELING_BITMASK bit in newval.
  9019. * pthread_cancel.c (pthread_cancel): Likewise. Also set CANCELING_BIT
  9020. if asynchronous canceling is enabled.
  9021. * pthread_join.c (pthread_join): When recognizing circular joins,
  9022. take into account the other thread might be already canceled.
  9023. * Makefile (tests): Add tst-join5.
  9024. * tst-join5.c: New file.
  9025. * Makefile (tests): Add tst-join4.
  9026. * tst-join4.c: New file.
  9027. 2003-02-13 Ulrich Drepper <drepper@redhat.com>
  9028. * tst-cond4.c (main): Add test of pthread_attr_getpshared.
  9029. 2003-02-13 Martin Schwidefsky <schwidefsky@de.ibm.com>
  9030. * sysdeps/s390/tls.h (THREAD_GETMEM, THREAD_GETMEM_NC, THREAD_SETMEM,
  9031. THREAD_SETMEM_NC): Use passed descr instead of THREAD_SELF.
  9032. * sysdeps/unix/sysv/linux/s390/jmp-unwind.c (_longjmp_unwind): Avoid
  9033. warning.
  9034. * sysdeps/unix/sysv/linux/s390/lowlevellock.c: Include <sys/time.h>
  9035. to avoid warning.
  9036. * sysdeps/unix/sysv/linux/s390/sem_post.c (__new_sem_post): Return
  9037. error if lll_futex_wake failed.
  9038. 2003-02-13 Ulrich Drepper <drepper@redhat.com>
  9039. * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Fix
  9040. handling of cancellation and failung pthread_mutex_unlock call.
  9041. * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: Likewise.
  9042. * Makefile (tests): Add tst-cond8 and tst-cond9.
  9043. * tst-cond8.c: New file.
  9044. * tst-cond9.c: New file.
  9045. * tst-cond7.c (do_test): Unlock the mutex before canceling the thread.
  9046. * sysdeps/pthread/pthread.h: Add missing initializers. Protect
  9047. non-standard initializers with __USE_GNU.
  9048. * Makefile (tests): Add tst-cleanup3.
  9049. * tst-cleanup3.c: New file.
  9050. 2003-02-12 Ulrich Drepper <drepper@redhat.com>
  9051. * Makefile (tests): Add tst-attr1 and tst-attr2.
  9052. * tst-attr1.c: New file.
  9053. * tst-attr2.c: New file.
  9054. * Makefile: Add rules to build and run tst-atfork2 test.
  9055. * tst-atfork2.c: New file.
  9056. * tst-atfork2mod.c: New file.
  9057. * sysdeps/unix/sysv/linux/unregister-atfork.c
  9058. (__unregister_atfork): Free the memory allocated for the handlers
  9059. after removing them from the lists.
  9060. * sysdeps/unix/sysv/linux/register-atfork.c: Define memeory
  9061. cleanup function.
  9062. * tst-atfork1.c (do_test): Wait for the child we forked.
  9063. Report error in child.
  9064. * sysdeps/unix/sysv/linux/fork.c (__libc_fork): Fix comment.
  9065. * sysdeps/pthread/Makefile: Define CFLAGS-confstr.c.
  9066. 2003-02-10 Ulrich Drepper <drepper@redhat.com>
  9067. * Makefile (tests): Add tst-cancel8.
  9068. * tst-cancel8.c: New file.
  9069. * sysdeps/unix/sysv/linux/i386/pthread_once.S (clear_once_control): Fix
  9070. clearing of control variable.
  9071. * Makefile (tests): Add tst-once3 and tst-once4.
  9072. * tst-once3.c: New file.
  9073. * tst-once4.c: New file.
  9074. 2003-02-08 kaz Kojima <kkojima@rr.iij4u.or.jp>
  9075. * sysdeps/sh/Makefile: New file.
  9076. * sysdeps/sh/bits/atomic.h: New file.
  9077. * sysdeps/sh/pthread_spin_init.c: New file.
  9078. * sysdeps/sh/pthread_spin_lock.c: New file.
  9079. * sysdeps/sh/pthread_spin_trylock.S: New file.
  9080. * sysdeps/sh/pthread_spin_unlock.S: New file.
  9081. * sysdeps/sh/pthreaddef.h: New file.
  9082. * sysdeps/sh/tcb-offsets.sym: New file.
  9083. * sysdeps/sh/td_ta_map_lwp2thr.c: New file.
  9084. * sysdeps/sh/tls.h: New file.
  9085. * sysdeps/unix/sysv/linux/sh/bits/pthreadtypes.h: New file.
  9086. * sysdeps/unix/sysv/linux/sh/bits/semaphore.h: New file.
  9087. * sysdeps/unix/sysv/linux/sh/createthread.c: New file.
  9088. * sysdeps/unix/sysv/linux/sh/fork.c: New file.
  9089. * sysdeps/unix/sysv/linux/sh/libc-lowlevellock.S: New file.
  9090. * sysdeps/unix/sysv/linux/sh/libc-lowlevelmutex.S: New file.
  9091. * sysdeps/unix/sysv/linux/sh/lowlevel-atomic.h: New file.
  9092. * sysdeps/unix/sysv/linux/sh/lowlevelcond.h: New file.
  9093. * sysdeps/unix/sysv/linux/sh/lowlevellock.S: New file.
  9094. * sysdeps/unix/sysv/linux/sh/lowlevellock.h: New file.
  9095. * sysdeps/unix/sysv/linux/sh/lowlevelmutex.S: New file.
  9096. * sysdeps/unix/sysv/linux/sh/lowlevelrwlock.h: New file.
  9097. * sysdeps/unix/sysv/linux/sh/pt-initfini.c: New file.
  9098. * sysdeps/unix/sysv/linux/sh/pt-vfork.S: New file.
  9099. * sysdeps/unix/sysv/linux/sh/pthread_barrier_wait.S: New file.
  9100. * sysdeps/unix/sysv/linux/sh/pthread_cond_broadcast.S: New file.
  9101. * sysdeps/unix/sysv/linux/sh/pthread_cond_signal.S: New file.
  9102. * sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S: New file.
  9103. * sysdeps/unix/sysv/linux/sh/pthread_cond_wait.S: New file.
  9104. * sysdeps/unix/sysv/linux/sh/pthread_once.S: New file.
  9105. * sysdeps/unix/sysv/linux/sh/pthread_rwlock_rdlock.S: New file.
  9106. * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedrdlock.S: New file.
  9107. * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedwrlock.S: New file.
  9108. * sysdeps/unix/sysv/linux/sh/pthread_rwlock_unlock.S: New file.
  9109. * sysdeps/unix/sysv/linux/sh/pthread_rwlock_wrlock.S: New file.
  9110. * sysdeps/unix/sysv/linux/sh/sem_post.S: New file.
  9111. * sysdeps/unix/sysv/linux/sh/sem_timedwait.S: New file.
  9112. * sysdeps/unix/sysv/linux/sh/sem_trywait.S: New file.
  9113. * sysdeps/unix/sysv/linux/sh/sem_wait.S: New file.
  9114. * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: New file.
  9115. 2003-02-08 Ulrich Drepper <drepper@redhat.com>
  9116. * tst-cond2.c: Rearrange code to not rely on behavior undefined
  9117. according to POSIX.
  9118. * tst-basic2.c (do_test): Lock mutex before creating the thread.
  9119. 2003-02-07 Ulrich Drepper <drepper@redhat.com>
  9120. * sysdeps/x86_64/tls.h: Remove unnecessary macros, left over from x86.
  9121. (TLS_GET_FS): New #define.
  9122. (TLS_SET_FS): New #define.
  9123. Correct value of __NR_set_thread_area.
  9124. * sysdeps/x86_64/td_ta_map_lwp2thr.c: New file.
  9125. 2003-02-06 Ulrich Drepper <drepper@redhat.com>
  9126. * Makefile (tests): Add tst-popen1.
  9127. * tst-popen1.c: New file.
  9128. * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Remove wrong
  9129. but inactive generalization.
  9130. * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: Likewise.
  9131. * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S: Likewise.
  9132. Minor optimization, remove one instruction.
  9133. * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_broadcast.S: Likewise.
  9134. 2003-02-04 Martin Schwidefsky <schwidefsky@de.ibm.com>
  9135. * sysdeps/unix/sysv/linux/s390/fork.c: Correct order of parameters.
  9136. 2003-01-31 Martin Schwidefsky <schwidefsky@de.ibm.com>
  9137. * init.c (__NR_set_tid_address): Add #ifdef for s390.
  9138. * sysdeps/pthread/pthread_barrier_wait.c: New file.
  9139. * sysdeps/pthread/pthread_cond_broadcast.c: New file.
  9140. * sysdeps/pthread/pthread_cond_signal.c: New file.
  9141. * sysdeps/pthread/pthread_cond_timedwait.c: New file.
  9142. * sysdeps/pthread/pthread_cond_wait.c: New file.
  9143. * sysdeps/pthread/pthread_rwlock_rdlock.c: New file.
  9144. * sysdeps/pthread/pthread_rwlock_timedrdlock.c: New file.
  9145. * sysdeps/pthread/pthread_rwlock_timedwrlock.c: New file.
  9146. * sysdeps/pthread/pthread_rwlock_unlock.c: New file.
  9147. * sysdeps/pthread/pthread_rwlock_wrlock.c: New file.
  9148. * sysdeps/s390/Makefile: New file.
  9149. * sysdeps/s390/bits/atomic.h: New file.
  9150. * sysdeps/s390/pthread_spin_init.c: New file.
  9151. * sysdeps/s390/pthread_spin_lock.c: New file.
  9152. * sysdeps/s390/pthread_spin_trylock.c: New file.
  9153. * sysdeps/s390/pthread_spin_unlock.c: New file.
  9154. * sysdeps/s390/pthreaddef.h: New file.
  9155. * sysdeps/s390/tcb-offsets.sym: New file.
  9156. * sysdeps/s390/td_ta_map_lwp2thr.c: New file.
  9157. * sysdeps/s390/tls.h: New file.
  9158. * sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h: New file.
  9159. * sysdeps/unix/sysv/linux/s390/bits/semaphore.h: New file.
  9160. * sysdeps/unix/sysv/linux/s390/createthread.c: New file.
  9161. * sysdeps/unix/sysv/linux/s390/dl-sysdep.h: New file.
  9162. * sysdeps/unix/sysv/linux/s390/fork.c: New file.
  9163. * sysdeps/unix/sysv/linux/s390/jmp-unwind.c: New file.
  9164. * sysdeps/unix/sysv/linux/s390/libc-lowlevellock.c: New file.
  9165. * sysdeps/unix/sysv/linux/s390/libc-lowlevelmutex.c: New file.
  9166. * sysdeps/unix/sysv/linux/s390/lowlevellock.c: New file.
  9167. * sysdeps/unix/sysv/linux/s390/lowlevellock.h: New file.
  9168. * sysdeps/unix/sysv/linux/s390/lowlevelmutex.c: New file.
  9169. * sysdeps/unix/sysv/linux/s390/lowlevelsem.h: New file.
  9170. * sysdeps/unix/sysv/linux/s390/pthread_once.c: New file.
  9171. * sysdeps/unix/sysv/linux/s390/s390-32/pt-initfini.c: New file.
  9172. * sysdeps/unix/sysv/linux/s390/s390-32/pt-vfork.S: New file.
  9173. * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: New file.
  9174. * sysdeps/unix/sysv/linux/s390/s390-64/pt-initfini.c: New file.
  9175. * sysdeps/unix/sysv/linux/s390/s390-64/pt-vfork.S: New file.
  9176. * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: New file.
  9177. * sysdeps/unix/sysv/linux/s390/sem_post.c: New file.
  9178. * sysdeps/unix/sysv/linux/s390/sem_timedwait.c: New file.
  9179. * sysdeps/unix/sysv/linux/s390/libc-lowlevellock.c: New file.
  9180. * sysdeps/unix/sysv/linux/s390/sem_wait.c: New file.
  9181. 2003-02-04 Ulrich Drepper <drepper@redhat.com>
  9182. * atomic.h: Add a couple more default implementations.
  9183. (atomic_compare_and_exchange_acq): Use
  9184. __arch_compare_and_exchange_32_acq in return value definition. It
  9185. always exists.
  9186. (atomic_bit_set): Renamed from atomic_set_bit.
  9187. Add missing atomic_ prefixes.
  9188. * sysdeps/pthread/bits/libc-lock.h (__libc_once): In case no
  9189. thread library is available, use correct value to mark initialized
  9190. once variable.
  9191. 2003-02-03 Ulrich Drepper <drepper@redhat.com>
  9192. * allocatestack.c (allocate_stack): Use __getpagesize instead of
  9193. __sysconf to determine pagesize.
  9194. * pthread_create.c: Include <atomic.h>.
  9195. * allocatestack.c (allocate_stack): Implement coloring of the
  9196. allocated stack memory. Rename pagesize to pagesize_m1. It's the
  9197. size minus one. Adjust users.
  9198. * sysdeps/i386/i686/Makefile: New file.
  9199. 2003-02-02 Ulrich Drepper <drepper@redhat.com>
  9200. * allocatestack.c: Improve comment throughout the file.
  9201. * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S
  9202. (__lll_lock_wait): Add branch prediction.
  9203. * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S
  9204. (__lll_lock_wait): Likewise.
  9205. (lll_unlock_wake_cb): Removed.
  9206. 2003-01-31 Ulrich Drepper <drepper@redhat.com>
  9207. * sysdeps/unix/sysv/linux/bits/posix_opt.h: Remove
  9208. _POSIX_THREAD_PRIORITY_SCHEDULING.
  9209. 2003-01-30 Jakub Jelinek <jakub@redhat.com>
  9210. * sysdeps/pthread/pthread-functions.h (struct pthread_functions):
  9211. Fix return type of ptr___pthread_getspecific.
  9212. 2003-01-29 Ulrich Drepper <drepper@redhat.com>
  9213. * Makefile (tests): Add tst-umask1.
  9214. (tst-umask1-ARGS): Define.
  9215. * tst-umask1.c: New file.
  9216. 2003-01-28 Ulrich Drepper <drepper@redhat.com>
  9217. * Makefile (libpthread-routines): Remove lowlevelrwlock. Add
  9218. pthread_rwlock_rdlock, pthread_rwlock_timedrdlock,
  9219. pthread_rwlock_wrlock, pthread_rwlock_timedwrlock, and
  9220. pthread_rwlock_unlock.
  9221. * sysdeps/unix/sysv/linux/i386/i486/lowlevelrwlock.S: Removed
  9222. * sysdeps/unix/sysv/linux/i386/i586/lowlevelrwlock.S: Removed
  9223. * sysdeps/unix/sysv/linux/i386/i686/lowlevelrwlock.S: Removed
  9224. * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_rdlock.S: New file.
  9225. * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S:
  9226. New file.
  9227. * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_wrlock.S: New file.
  9228. * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S:
  9229. New file.
  9230. * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_unlock.S: New file.
  9231. * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_rdlock.S: New file.
  9232. * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedrdlock.S:
  9233. New file.
  9234. * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_wrlock.S: New file.
  9235. * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedwrlock.S:
  9236. New file.
  9237. * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_unlock.S: New file.
  9238. * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_rdlock.S: New file.
  9239. * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedrdlock.S:
  9240. New file.
  9241. * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_wrlock.S: New file.
  9242. * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedwrlock.S:
  9243. New file.
  9244. * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_unlock.S: New file.
  9245. * Makefile (libpthread-routines): Remove lowlevelcond and
  9246. lowlevelsem. Add sem_wait, sem_trywait, sem_timedwait, sem_post,
  9247. pthread_cond_wait, pthread_cond_timedwait, pthread_cond_signal,
  9248. and pthread_cond_broadcast.
  9249. * sysdeps/unix/sysv/linux/i386/i486/lowlevelsem.S: Removed
  9250. * sysdeps/unix/sysv/linux/i386/i486/lowlevelcond.S: Removed
  9251. * sysdeps/unix/sysv/linux/i386/i586/lowlevelsem.S: Removed
  9252. * sysdeps/unix/sysv/linux/i386/i586/lowlevelcond.S: Removed
  9253. * sysdeps/unix/sysv/linux/i386/i686/lowlevelsem.S: Removed
  9254. * sysdeps/unix/sysv/linux/i386/i686/lowlevelcond.S: Removed
  9255. * sysdeps/unix/sysv/linux/i386/i486/sem_wait.S: New file.
  9256. * sysdeps/unix/sysv/linux/i386/i486/sem_trywait.S: New file.
  9257. * sysdeps/unix/sysv/linux/i386/i486/sem_timedwait.S: New file.
  9258. * sysdeps/unix/sysv/linux/i386/i486/sem_post.S: New file.
  9259. * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: New file.
  9260. * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: New file.
  9261. * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S: New file.
  9262. * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_broadcast.S: New file.
  9263. * sysdeps/unix/sysv/linux/i386/i586/sem_wait.S: New file.
  9264. * sysdeps/unix/sysv/linux/i386/i586/sem_trywait.S: New file.
  9265. * sysdeps/unix/sysv/linux/i386/i586/sem_timedwait.S: New file.
  9266. * sysdeps/unix/sysv/linux/i386/i586/sem_post.S: New file.
  9267. * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_wait.S: New file.
  9268. * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_timedwait.S: New file.
  9269. * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_signal.S: New file.
  9270. * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_broadcast.S: New file.
  9271. * sysdeps/unix/sysv/linux/i386/i686/sem_wait.S: New file.
  9272. * sysdeps/unix/sysv/linux/i386/i686/sem_trywait.S: New file.
  9273. * sysdeps/unix/sysv/linux/i386/i686/sem_timedwait.S: New file.
  9274. * sysdeps/unix/sysv/linux/i386/i686/sem_post.S: New file.
  9275. * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_wait.S: New file.
  9276. * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_timedwait.S: New file.
  9277. * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_signal.S: New file.
  9278. * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_broadcast.S: New file.
  9279. * sysdeps/unix/sysv/linux/i386/lowlevelcond.h: New file.
  9280. * sysdeps/unix/sysv/linux/i386/createthread.c: Define
  9281. PREPARE_CREATE and TLS_VALUE with x86-specific bits. All the rest
  9282. of the code is moved to ...
  9283. * sysdeps/pthread/createthread.c: ...here. New file.
  9284. 2003-01-27 Ulrich Drepper <drepper@redhat.com>
  9285. * sysdeps/unix/sysv/linux/i386/i486/lowlevelsem.S
  9286. (__new_sem_post): Clear %eax before returning.
  9287. Reported by MAEDA Naoaki <maeda.naoaki@jp.fujitsu.com>.
  9288. * Makefile (tests): Add tst-cleanup2.
  9289. * tst-cleanup2.c: New file.
  9290. * sysdeps/pthread/bits/libc-lock.h (__libc_cleanup_region_start):
  9291. Interpret first parameter correctly.
  9292. 2003-01-17 Ulrich Drepper <drepper@redhat.com>
  9293. * Makefile (headers): Add bits/semaphore.h.
  9294. 2003-01-16 Jakub Jelinek <jakub@redhat.com>
  9295. * sysdeps/i386/tls.h (INIT_SYSINFO): Initialize _head->sysinfo even
  9296. if not SHARED.
  9297. 2003-01-14 Ulrich Drepper <drepper@redhat.com>
  9298. * sem_open.c (sem_open): Return SEM_FAILED if existing semaphore
  9299. must be used and mapping failed.
  9300. Reported by Luke Elliott <luke.elliott@activfinancial.com>.
  9301. * Makefile (CFLAGS-pthread_self.os): Define this, not
  9302. CFLAGS-pthread_self.c.
  9303. 2003-01-13 Ulrich Drepper <drepper@redhat.com>
  9304. * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S: Don't export
  9305. lll_unlock_wake_cb.
  9306. * Makefile (libpthread-routines): Add version. Add rules to build
  9307. version.os and banner.h.
  9308. * version.c: New file.
  9309. 2003-01-13 Jakub Jelinek <jakub@redhat.com>
  9310. * pthread_mutex_lock.c (__pthread_mutex_lock_internal): Make
  9311. the alias unconditional.
  9312. * pthread_mutex_unlock.c (__pthread_mutex_unlock_internal): Likewise.
  9313. 2003-01-13 Ulrich Drepper <drepper@redhat.com>
  9314. * Makefile (CFLAGS-pthread_self.c): New definition.
  9315. 2003-01-06 Jakub Jelinek <jakub@redhat.com>
  9316. * sysdeps/pthread/pthread_sigmask.c (pthread_sigmask): Add
  9317. INTERNAL_SYSCALL_DECL, add err argument to INTERNAL_SYSCALL* macros.
  9318. * sysdeps/unix/sysv/linux/raise.c (raise): Likewise.
  9319. * init.c (__pthread_initialize_minimal_internal): Likewise.
  9320. 2003-01-07 Jakub Jelinek <jakub@redhat.com>
  9321. * pthreadP.h (__pthread_cond_timedwait): Add prototype.
  9322. * sysdeps/unix/sysv/linux/i386/dl-sysdep.h
  9323. (RTLD_CORRECT_DYNAMIC_WEAK): Remove.
  9324. (DL_SYSINFO_IMPLEMENTATION): Change into .text section and back.
  9325. * sysdeps/unix/sysv/linux/i386/i686/dl-sysdep.h
  9326. (RTLD_CORRECT_DYNAMIC_WEAK): Remove.
  9327. (DL_SYSINFO_IMPLEMENTATION): Change into .text section and back.
  9328. 2003-01-06 Jakub Jelinek <jakub@redhat.com>
  9329. * pthreadP.h (LIBC_CANCEL_HANDLED): Define.
  9330. * pt-system.c (LIBC_CANCEL_HANDLED): Add.
  9331. * tst-cancel-wrappers.sh: Remove all exceptions.
  9332. 2003-01-05 Ulrich Drepper <drepper@redhat.com>
  9333. * tst-cancel-wrappers.sh: Invoke gawk not awk since we use GNU awk
  9334. features. Reported by Marijn Ros <marijn@mad.scientist.com>.
  9335. * sysdeps/unix/sysv/linux/jmp-unwind.c: Include <pthread-functions.h>.
  9336. Use __libc_pthread_functions array if SHARED.
  9337. * pthreadP.h: Move pthread_cond_2_0_t definition to...
  9338. * sysdeps/unix/sysv/linux/internaltypes.h: ...here.
  9339. * sysdeps/pthread/bits/libc-lock.h (__libc_ptf_call): New #define.
  9340. (__libc_rwlock_rdlock, __libc_rwlock_wrlock, __libc_rwlock_unlock,
  9341. __libc_key_create, __libc_getspecific, __libc_setspecific): Use
  9342. __libc_ptf_call instead of __libc_maybe_call.
  9343. (PTF): New #define.
  9344. (__libc_cleanup_region_start): Wrap function name with PTF call.
  9345. (__libc_cleanup_region_end): Likewise.
  9346. (__libc_cleanup_end): Likewise.
  9347. * pthread_getspecific.c: Add __pthread_getspecific_internal alias.
  9348. * pthread_setspecific.c: Add __pthread_setspecific_internal alias.
  9349. * pthread_key_create.c: Add __pthread_key_create_internal alias.
  9350. * pthreadP.h: Add prototypes.
  9351. * sysdeps/unix/sysv/linux/i386/i486/lowlevelrwlock.S: Add
  9352. __pthread_rwlock_rdlock, __pthread_rwlock_wrlock, and
  9353. __pthread_rwlock_unlock aliases.
  9354. * pthreadP.h: Add prototypes for new aliases.
  9355. * pthreadP.h (struct pthead_functions): Moved to...
  9356. * sysdeps/pthread/pthread-functions.h: ...here. New file.
  9357. * init.c (pthread_functions): Add initializers for new elements.
  9358. * cleanup_defer.c: Add __pthread_cleanup_push_defer and
  9359. __pthread_cleanup_pop_restore aliases.
  9360. * pthreadP.h: Add prototypes.
  9361. * cleanup.c: Rename _GI_pthread_cleanup_push to __pthread_cleanup_push
  9362. and _GI_pthread_cleanup_pop to __pthread_cleanup_pop.
  9363. * sysdeps/unix/sysv/linux/i386/i486/lowlevelcond.S: Adjust caller.
  9364. * sysdeps/unix/sysv/linux/i386/pthread_once.S: Likewise.
  9365. * sysdeps/unix/sysv/linux/x86_64/pthread_once.S: Likewise.
  9366. * pthreadP.h: Adjust prototypes and callers.
  9367. 2003-01-04 Ulrich Drepper <drepper@redhat.com>
  9368. * Makefile (tests): Add tst-cancel7.
  9369. (tst-cancel7-ARGS): New variable.
  9370. * tst-cancel7.c: New file.
  9371. * old_pthread_cond_broadcast.c: Optimize initialization a bit to work
  9372. around gcc defficiencies.
  9373. * old_pthread_cond_signal.c: Likewise.
  9374. * old_pthread_cond_timedwait.c: Likewise.
  9375. * old_pthread_cond_wait.c: Likewise.
  9376. * pthreadP.h (pthread_cond_2_0_t): Remove unneeded lock element.
  9377. 2003-01-03 Ulrich Drepper <drepper@redhat.com>
  9378. * Makefile (tests): Add tst-cond7.
  9379. * tst-cond7.c: New file.
  9380. * sysdeps/unix/sysv/linux/i386/i486/lowlevelcond.S
  9381. (condvar_cleanup): Get condvar address from the right place.
  9382. * atomic.h: Correct definitions of atomic_full_barrier,
  9383. atomic_read_barrier, atomic_write_barrier.
  9384. * old_pthread_cond_broadcast.c: Make memory allocate and initialization
  9385. race-free.
  9386. * old_pthread_cond_signal.c: Likewise.
  9387. * old_pthread_cond_timedwait.c: Likewise.
  9388. * old_pthread_cond_wait.c: Likewise.
  9389. 2003-01-03 Jakub Jelinek <jakub@redhat.com>
  9390. * Makefile ($(objpfx)libpthread.so): Depend on ld.so.
  9391. 2003-01-03 Ulrich Drepper <drepper@redhat.com>
  9392. * pthreadP.h (pthread_cond_2_0_t): New type.
  9393. (struct pthread_functions): Use new type for 2.0 condvar callbacks.
  9394. Use new type for the 2.0 condvar function prototypes.
  9395. * forward.c: Use pthread_cond_2_0_t for 2.0 condvar functions.
  9396. * old_pthread_cond_init.c: Use pthread_cond_2_0_t for condvar
  9397. parameter.
  9398. * old_pthread_cond_destroy.c: Likewise.
  9399. * old_pthread_cond_broadcast.c: Likewise. Lock appropriately.
  9400. * old_pthread_cond_signal.c: Likewise.
  9401. * old_pthread_cond_timedwait.c: Likewise.
  9402. * old_pthread_cond_wait.c: Likewise.
  9403. * sysdeps/unix/sysv/linux/i386/i486/lowlevelcond.S
  9404. (__pthread_cond_wait): Don't save cancellation mode and seq value
  9405. in same location.
  9406. * herrno.c (__h_errno_location): Don't define as weak.
  9407. 2003-01-02 Jakub Jelinek <jakub@redhat.com>
  9408. * Versions [libc] (GLIBC_2.3.2): Export pthread_cond_broadcast,
  9409. pthread_cond_destroy, pthread_cond_init, pthread_cond_signal
  9410. and pthread_cond_wait.
  9411. * old_pthread_cond_broadcast.c (__old_pthread_cond_broadcast):
  9412. Renamed to...
  9413. (__pthread_cond_broadcast_2_0): ... this.
  9414. * old_pthread_cond_destroy.c (__old_pthread_cond_destroy):
  9415. Renamed to...
  9416. (__pthread_cond_destroy_2_0): ... this.
  9417. * old_pthread_cond_init.c (__old_pthread_cond_init):
  9418. Renamed to...
  9419. (__pthread_cond_init_2_0): ... this.
  9420. * old_pthread_cond_signal.c (__old_pthread_cond_signal):
  9421. Renamed to...
  9422. (__pthread_cond_signal_2_0): ... this.
  9423. * old_pthread_cond_wait.c (__old_pthread_cond_wait):
  9424. Renamed to...
  9425. (__pthread_cond_wait_2_0): ... this.
  9426. * pthread_cond_destroy.c: Include shlib-compat.h.
  9427. (pthread_cond_destroy): Change strong_alias into versioned_symbol.
  9428. * pthread_cond_init.c: Include shlib-compat.h.
  9429. (pthread_cond_init): Change strong_alias into versioned_symbol.
  9430. * pthreadP.h (struct pthread_functions): Rename ptr_pthread_cond_*
  9431. fields to ptr___pthread_cond_* and add ptr___pthread_cond_*_2_0
  9432. fields.
  9433. (__pthread_cond_broadcast_2_0, __pthread_cond_destroy_2_0,
  9434. __pthread_cond_init_2_0, __pthread_cond_signal_2_0,
  9435. __pthread_cond_wait_2_0): New prototypes.
  9436. (__old_pthread_cond_broadcast, __old_pthread_cond_destroy,
  9437. __old_pthread_cond_init, __old_pthread_cond_signal,
  9438. __old_pthread_cond_wait): Removed.
  9439. * init.c: Include shlib-compat.h.
  9440. (pthread_functions): Guard ptr___pthread_attr_init_2_0
  9441. initialization with SHLIB_COMPAT (GLIBC_2_0, GLIBC_2_1).
  9442. Rename ptr_pthread_cond_* to ptr___pthread_cond_*, initialize
  9443. ptr___pthread_cond_*_2_0 fields.
  9444. * forward.c: Export both pthread_cond_*@@GLIBC_2.3.2 and
  9445. pthread_cond_*@GLIBC_2.0 compatibility symbols.
  9446. * sysdeps/pthread/sigaction.c (SIGCANCEL): Only define if
  9447. LIBC_SIGACTION was not yet defined.
  9448. [!defined LIBC_SIGACTION]: Define LIBC_SIGACTION, #include self.
  9449. [!defined LIBC_SIGACTION] (__sigaction): New function and
  9450. libc_hidden_weak.
  9451. [!defined LIBC_SIGACTION] (sigaction): New weak_alias.
  9452. [defined LIBC_SIGACTION]: #include_next <sigaction.c>.
  9453. 2003-01-02 Jakub Jelinek <jakub@redhat.com>
  9454. * Makefile (CFLAGS-pthread_atfork.c): Add -DNOT_IN_libc.
  9455. 2003-01-02 Ulrich Drepper <drepper@redhat.com>
  9456. * sysdeps/unix/sysv/linux/i386/bits/pthreadtypes.h (pthread_cond_t):
  9457. New, larger type definition.
  9458. * sysdeps/unix/sysv/linux/i386/i486/lowlevelcond.S: New condvar
  9459. implementation.
  9460. * Versions [libpthread]: Add definitions for new pthread_cond_*
  9461. interfaces for version GLIBC_2.3.2.
  9462. * pthread_cond_init.c: Update initialization for new type definition.
  9463. * Makefile (libpthread-routines): Remove pthread_cond_wait,
  9464. pthread_cond_timedwait, pthread_cond_signal, and
  9465. pthread_cond_broadcast. Add old_pthread_cond_init,
  9466. old_pthread_cond_destroy, old_pthread_cond_wait,
  9467. old_pthread_cond_timedwait, old_pthread_cond_signal, and
  9468. old_pthread_cond_broadcast.
  9469. * old_pthread_cond_broadcast.c: New file.
  9470. * old_pthread_cond_destroy.c: New file.
  9471. * old_pthread_cond_init.c: New file.
  9472. * old_pthread_cond_signal.c: New file.
  9473. * old_pthread_cond_timedwait.c: New file.
  9474. * old_pthread_cond_wait.c: New file.
  9475. * pthreadP.h: Add prototypes for the compatibility interfaces.
  9476. * pthread_cond_destroy.c: Don't include <errno.h>.
  9477. 2003-01-01 Ulrich Drepper <drepper@redhat.com>
  9478. * sysdeps/unix/sysv/linux/i386/i486/lowlevelrwlock.S: Avoid
  9479. unnecessary zero offset when addressing MUTEX.
  9480. 2002-12-31 Ulrich Drepper <drepper@redhat.com>
  9481. * sysdeps/unix/sysv/linux/fork.h: Add libc_hidden_proto for
  9482. __register_atfork.
  9483. * sysdeps/unix/sysv/linux/register-atfork.c: Add libc_hidden_def
  9484. for __register_atfork.
  9485. 2002-12-31 Jakub Jelinek <jakub@redhat.com>
  9486. * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: Use __ASSEMBLER__
  9487. instead of ASSEMBLER test macro.
  9488. * sysdeps/unix/sysv/linux/allocrtsig.c (__libc_current_sigrtmin,
  9489. __libc_current_sigrtmax): Add libc_hidden_def.
  9490. * sysdeps/pthread/list.h: Remove assert.h include.
  9491. 2002-12-31 Ulrich Drepper <drepper@redhat.com>
  9492. * sysdeps/pthread/pt-initfini.c (call_initialize_minimal): Use
  9493. __pthread_initialize_minimal_internal not
  9494. __pthread_initialize_minimal.
  9495. 2002-12-30 Ulrich Drepper <drepper@redhat.com>
  9496. * sysdeps/pthread/pt-initfini.c (call_initialize_minimal): Mark
  9497. __pthread_initialize_minimal as hidden.
  9498. * init.c (__pthread_initialize_minimal_internal): Don't mark as
  9499. constructor.
  9500. 2002-12-31 Jakub Jelinek <jakub@redhat.com>
  9501. * Makefile ($(inst_libdir)/libpthread.so): Depend on
  9502. $(common-objpfx)format.lds, include that into the output script.
  9503. Fix comment.
  9504. (extra-B-pthread.so): Change linuxthreads/ into nptl/.
  9505. 2002-12-28 Andreas Jaeger <aj@suse.de>
  9506. * sysdeps/unix/sysv/linux/xstatconv.c (xstat_conv): Adjust for
  9507. nsec resolution changes.
  9508. (xstat64_conv): Likewise.
  9509. (xstat32_conv): Likewise.
  9510. * sysdeps/unix/sysv/linux/kernel_stat.h: Add nsec resolution for
  9511. struct kernel_stat.
  9512. * sysdeps/unix/sysv/linux/bits/stat.h: Add nsec resolution for
  9513. structs stat and stat64.
  9514. * time/time.h (__timespec_defined): Define for __USE_MISC.
  9515. * io/sys/stat.h [__USE_MISC]: Define __need_timespec for struct stat.
  9516. 2002-12-30 Jakub Jelinek <jakub@redhat.com>
  9517. * forward.c (FORWARD2): Renamed from FORWARD3. Remove unused export
  9518. argument.
  9519. (pthread_attr_init_2_0, pthread_attr_init_2_1): Use FORWARD macro.
  9520. (pthread_exit): Use strong_alias to avoid warnings.
  9521. * pthreadP.h (struct pthread_functions): Rename ptr_pthread_exit
  9522. and ptr_pthread_attr_init_2_* to ptr___pthread_exit and
  9523. ptr___pthread_attr_init_2_*.
  9524. * init.c (pthread_functions): Adjust.
  9525. 2002-12-29 Ulrich Drepper <drepper@redhat.com>
  9526. * forward.c: Make all functions available by default again. It
  9527. caused too much trouble.
  9528. * pt-siglongjmp.c: Removed.
  9529. 2002-12-28 Jakub Jelinek <jakub@redhat.com>
  9530. * sysdeps/i386/tls.h: Include tcb-offsets.h in assembler.
  9531. (SYSINFO_OFFSET, MULTIPLE_THREADS_OFFSET): Remove.
  9532. * sysdeps/i386/Makefile: New file.
  9533. * sysdeps/i386/tcb-offsets.sym: New file.
  9534. * sysdeps/pthread/tcb-offsets.h: New file.
  9535. * sysdeps/unix/sysv/linux/libc_pthread_init.c (__libc_pthread_init):
  9536. Remove MULTIPLE_THREADS_OFFSET and SYSINFO_OFFSET checks.
  9537. * sysdeps/unix/sysv/linux/Versions [libc] (GLIBC_PRIVATE): Move
  9538. __register_atfork...
  9539. (GLIBC_2.3.2): ...here.
  9540. 2002-12-28 Ulrich Drepper <drepper@redhat.com>
  9541. * sysdeps/pthread/pthread.h: Mark pthread_attr_getstackaddr and
  9542. pthread_attr_setstackaddr with __attribute_deprecated__.
  9543. 2002-12-27 Jakub Jelinek <jakub@redhat.com>
  9544. * pt-system.c (system): Remove cancellation handling.
  9545. * tst-cancel-wrappers.sh: Allow pt-system.o* to not use the
  9546. cancellation routines.
  9547. 2002-12-28 Ulrich Drepper <drepper@redhat.com>
  9548. * descr.h: Include <dl-sysdep.h>.
  9549. (struct pthread): Move header.data.list to the back of the struct.
  9550. * sysdeps/i386/tls.h (tcbhead_t): Move list to the back of the struct.
  9551. (MULTIPLE_THREADS_OFFSET): Adjust offset.
  9552. (SYSINFO_OFFSEET): Likewise.
  9553. 2002-12-27 Jakub Jelinek <jakub@redhat.com>
  9554. * sysdeps/unix/sysv/linux/i386/i686/dl-sysdep.h (USE_DL_SYSINFO):
  9555. Define.
  9556. (DL_SYSINFO_DEFAULT): Cast to uintptr_t to avoid warnings.
  9557. * sysdeps/unix/sysv/linux/i386/dl-sysdep.h (NEED_DL_SYSINFO,
  9558. DL_SYSINFO_DEFAULT, DL_SYSINFO_IMPLEMENTATION): Define.
  9559. (USE_DL_SYSINFO): Undef.
  9560. 2002-12-22 Jakub Jelinek <jakub@redhat.com>
  9561. * Makefile (tests-reverse): Use $(objpfx)../libc.so instead of
  9562. $(common-objpfx)libc.so.
  9563. * tst-cancel4.c (tf_write, tf_writev): Increase buf sizes so that
  9564. it is bigger than pipe buffer size even on arches with bigger
  9565. page size.
  9566. (tf_usleep): Cast usleep argument to useconds_t to avoid warnings.
  9567. 2002-12-25 Ulrich Drepper <drepper@redhat.com>
  9568. * sysdeps/unix/sysv/linux/i386/i486/lowlevelsem.S: Implement
  9569. correct errno access for case that USE___THREAD is not defined.
  9570. 2002-12-24 Ulrich Drepper <drepper@redhat.com>
  9571. * sysdeps/unix/sysv/linux/i386/dl-sysdep.h: Add missing #endif.
  9572. Patch by Marijn Ros <marijn@mad.scientist.com>.
  9573. 2002-12-22 Roland McGrath <roland@redhat.com>
  9574. * Makefile (omit-deps): Add $(unix-syscalls:%=ptw-%).
  9575. 2002-12-20 Ulrich Drepper <drepper@redhat.com>
  9576. * sysdeps/pthread/bits/stdio-lock.h (_IO_lock_inexpensive): Define.
  9577. 2002-12-19 Ulrich Drepper <drepper@redhat.com>
  9578. * sysdeps/unix/sysv/linux/i386/dl-sysdep.h: Don't define
  9579. NEED_DL_SYSINFO since no processor < i686 had the sysenter opcode.
  9580. * sysdeps/unix/sysv/linux/i386/i686/dl-sysdep.h: New file.
  9581. * sysdeps/unix/sysv/linux/i386/pthread_once.S: Use ENTER_KERNEL instead
  9582. of int $0x80.
  9583. * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S: Likewise.
  9584. * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevelmutex.S: Likewise.
  9585. * sysdeps/unix/sysv/linux/i386/i486/lowlevelcond.S: Likewise.
  9586. * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S: Likewise.
  9587. * sysdeps/unix/sysv/linux/i386/i486/lowlevelmutex.S: Likewise.
  9588. * sysdeps/unix/sysv/linux/i386/i486/lowlevelrwlock.S: Likewise.
  9589. * sysdeps/unix/sysv/linux/i386/i486/lowlevelsem.S: Likewise.
  9590. * sysdeps/unix/sysv/linux/i386/i486/pthread_barrier_wait.S: Likewise.
  9591. * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Add support for using
  9592. sysenter.
  9593. * sysdeps/unix/sysv/linux/i386/lowlevelsem.h: Likewise.
  9594. * sysdeps/i386/tls.h: Unconditionally include <dl-sysdep.h>.
  9595. * allocatestack.c (allocate_stack) [NEED_DL_SYSINFO]: Set sysinfo
  9596. in new TCB.
  9597. * sysdeps/unix/sysv/linux/i386/createthread.c (create_thread): Check
  9598. that sysinfo is properly initialized.
  9599. * sysdeps/unix/sysv/linux/i386/dl-sysdep.h: Define RTLD_PRIVATE_ERRNO
  9600. to 1 only for ld.so.
  9601. * sysdeps/unix/sysv/linux/i386/dl-sysdep.h: Define
  9602. RTLD_CORRECT_DYNAMIC_WEAK.
  9603. 2002-12-19 Jakub Jelinek <jakub@redhat.com>
  9604. * forward.c (pthread_attr_init_2_0, pthread_attr_init_2_1):
  9605. Use return 0 as 6th argument to FORWARD4.
  9606. * pthread_equal.c: Include pthreadP.h instead of pthread.h.
  9607. 2002-12-18 Ulrich Drepper <drepper@redhat.com>
  9608. * descr.h (struct pthread) [NEED_DL_SYSINFO]: Add sysinfo member.
  9609. * sysdeps/i386/tls.h (tcbhead_t): Add sysinfo member.
  9610. Define SYSINFO_OFFSEET if NEED_DL_SYSINFO is defined.
  9611. (INIT_SYSINFO): New #define.
  9612. (TLS_TP_INIT): Use INIT_SYSINFO.
  9613. * sysdeps/unix/sysv/linux/libc_pthread_init.c (__libc_pthread_init):
  9614. At test to make sure SYSINFO_OFFSET value is correct.
  9615. * sysdeps/unix/sysv/linux/i386/dl-sysdep.h: New file.
  9616. 2002-12-18 Jakub Jelinek <jakub@redhat.com>
  9617. * sysdeps/pthread/flockfile.c (flockfile): Change into weak alias.
  9618. * sysdeps/unix/sysv/linux/raise.c (gsignal): Add weak alias to raise.
  9619. * Versions [libc: GLIBC_2.0]: Add pthread_attr_init.
  9620. [libpthread: GLIBC_2.1]: Remove __pthread_rwlock_init,
  9621. __pthread_rwlock_destroy, __pthread_rwlock_rdlock,
  9622. __pthread_rwlock_wrlock, __pthread_rwlock_unlock,
  9623. __pthread_rwlock_tryrdlock and __pthread_rwlock_trywrlock.
  9624. 2002-12-18 Ulrich Drepper <drepper@redhat.com>
  9625. * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: Use ENTER_KERNEL
  9626. macro instead of using int $0x80 directly.
  9627. * sysdeps/pthread/bits/stdio-lock.h: New file.
  9628. * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevelmutex.S: New file.
  9629. * sysdeps/unix/sysv/linux/i386/i586/libc-lowlevelmutex.S: New file.
  9630. * sysdeps/unix/sysv/linux/i386/i686/libc-lowlevelmutex.S: New file.
  9631. * Makefile (routines): Add libc-lowlevelmutex.
  9632. * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S: Remove
  9633. __i686.get_pc_thunk.dx.
  9634. 2002-12-17 Jakub Jelinek <jakub@redhat.com>
  9635. * Makefile (libpthread-shared-only-routines): Add pt-allocrtsig.
  9636. (tests): Depend on $(objpfx)tst-cancel-wrappers.out.
  9637. ($(objpfx)tst-cancel-wrappers.out): New rule.
  9638. * tst-cancel-wrappers.sh: New test.
  9639. * tst-locale1.c: Include signal.h.
  9640. (uselocale): Test static linking of __libc_current_sigrt*.
  9641. 2002-12-17 Ulrich Drepper <drepper@redhat.com>
  9642. * Makefile (tests): Add tst-cancel6.
  9643. * tst-cancel6.c: New file
  9644. 2002-12-17 Jakub Jelinek <jakub@redhat.com>
  9645. * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (SINGLE_THREAD_P):
  9646. Define meaningfully for assembler as well.
  9647. * pthreadP.h (struct pthread_functions): Remove
  9648. ptr_pthread_attr_init field. Add ptr_pthread_attr_init_2_0
  9649. and ptr_pthread_attr_init_2_1 fields.
  9650. * init.c (pthread_functions): Initialize ptr_pthread_attr_init_2_0
  9651. and ptr_pthread_attr_init_2_1 instead of ptr_pthread_attr_init.
  9652. * forward.c (FORWARD4): Renamed from FORWARD3. Add export argument.
  9653. (FORWARD3): Define using FORWARD4.
  9654. (pthread_attr_init): Provide both @GLIBC_2.0 and @@GLIBC_2.1
  9655. versions.
  9656. * pt-system.c: Remove duplicate stdlib.h include.
  9657. 2002-12-16 Ulrich Drepper <drepper@redhat.com>
  9658. * sem_init.c: Define sem_init@GLIBC_2.0.
  9659. * sem_destroy.c: Define sem_destroy@GLIBC_2.0.
  9660. * sem_getvalue.c: Define sem_getvalue@GLIBC_2.0.
  9661. * flockfile.c: Moved to...
  9662. * sysdeps/pthread/flockfile.c: ...here. New file.
  9663. * funlockfile.c: Moved to...
  9664. * sysdeps/pthread/funlockfile.c: ...here. New file.
  9665. * ftrylockfile.c: Moved to...
  9666. * sysdeps/pthread/ftrylockfile.c: ...here. New file.
  9667. 2002-12-16 Jakub Jelinek <jakub@redhat.com>
  9668. * libc-cancellation.c: Guard both function with
  9669. #if !defined NOT_IN_libc.
  9670. * Makefile (libpthread-routines): Use ptw-, not pt- prefix for the
  9671. automatically provided pthread wrappers.
  9672. * pthreadP.h (LIBC_CANCEL_ASYNC, LIBC_CANCEL_RESET): Define to
  9673. CANCEL_* if IS_IN_libpthread and to dummy versions if not in libc
  9674. nor in libpthread.
  9675. * pt-open.c: Removed.
  9676. * pt-fcntl.c: Removed.
  9677. * pt-fsync.c: Removed.
  9678. * pt-lseek.c: Removed.
  9679. * pt-msgrcv.c: Removed.
  9680. * pt-msgsnd.c: Removed.
  9681. * pt-msync.c: Removed.
  9682. * pt-nanosleep.c: Removed.
  9683. * pt-open64.c: Removed.
  9684. * pt-pause.c: Removed.
  9685. * pt-pread.c: Removed.
  9686. * pt-pread64.c: Removed.
  9687. * pt-pwrite.c: Removed.
  9688. * pt-pwrite64.c: Removed.
  9689. * pt-read.c: Removed.
  9690. * pt-recv.c: Removed.
  9691. * pt-recvfrom.c: Removed.
  9692. * pt-recvmsg.c: Removed.
  9693. * pt-send.c: Removed.
  9694. * pt-sendto.c: Removed.
  9695. * pt-sigtimedwait.c: Removed.
  9696. * pt-sigwait.c: Removed.
  9697. * pt-wait.c: Removed.
  9698. * pt-waitpid.c: Removed.
  9699. * pt-write.c: Removed.
  9700. * pt-accept.c: Removed.
  9701. * pt-close.c: Removed.
  9702. * pt-connect.c: Removed.
  9703. * pt-lseek64.c: Removed.
  9704. * pt-sendmsg.c: Removed.
  9705. * pt-tcdrain.c: Removed.
  9706. 2002-12-15 Ulrich Drepper <drepper@redhat.com>
  9707. * init.c (__pthread_initialize_minimal_internal): Renamed from
  9708. __pthread_initialize_minimal. Make old name an alias. This
  9709. converts a normal relocation into a relative relocation.
  9710. * pt-fcntl.c (__fcntl): Use fcntl64 syscall, not fcntl.
  9711. * Versions [libpthread: GLIBC_2.3.2]: Remove creat, poll, pselect,
  9712. readv, select, sigpause, sigsuspend, sigwaitinfo, waitid, writev.
  9713. * Makefile (libpthread-routines): Remove pt-creat, pt-poll,
  9714. pt-pselect, pt-readv, pt-select, pt-sigpause, pt-sigsuspend,
  9715. pt-sigwaitinfo, pt-waitid, and pt-writev.
  9716. * pt-creat.c: Removed.
  9717. * pt-poll.c: Removed.
  9718. * pt-pselect.c: Removed.
  9719. * pt-readv.c: Removed.
  9720. * pt-select.c: Removed.
  9721. * pt-sigpause.c: Removed.
  9722. * pt-sigsuspend.c: Removed.
  9723. * pt-sigwaitinfo.c: Removed.
  9724. * pt-waitid.c: Removed.
  9725. * pt-writev.c: Removed.
  9726. * init.c (pthread_functions): New variable.
  9727. (__pthread_initialize_minimal): Pass pointer to pthread_functions
  9728. (or NULL) to __libc_pthread_init.
  9729. * forward.c: Rewrite to use __libc:pthread_functions array to get
  9730. function addresses.
  9731. * sysdeps/unix/sysv/linux/fork.h: Remove __libc_pthread_init
  9732. prototype.
  9733. * sysdeps/unix/sysv/linux/libc_pthread_init.c (__libc_pthread_init):
  9734. Take new parameter. Copy content of variable pointed to by it
  9735. to __libc_pthread_init.
  9736. * pthreadP.h (struct pthread_functions): New type.
  9737. (__libc_pthread_init): Declare.
  9738. * pthread_attr_destroy.c: Add namespace protected alias.
  9739. * pthread_attr_getdetachstate.c: Likewise.
  9740. * pthread_attr_getinheritsched.c: Likewise.
  9741. * pthread_attr_getschedparam.c: Likewise.
  9742. * pthread_attr_getschedpolicy.c: Likewise.
  9743. * pthread_attr_getscope.c: Likewise.
  9744. * pthread_attr_setdetachstate.c: Likewise.
  9745. * pthread_attr_setinheritsched.c: Likewise.
  9746. * pthread_attr_setschedparam.c: Likewise.
  9747. * pthread_attr_setschedpolicy.c: Likewise.
  9748. * pthread_attr_setscope.c: Likewise.
  9749. * pthread_cond_broadcast.c: Likewise.
  9750. * pthread_cond_destroy.c: Likewise.
  9751. * pthread_cond_init.c: Likewise.
  9752. * pthread_cond_signal.c: Likewise.
  9753. * pthread_cond_wait.c: Likewise.
  9754. * pthread_condattr_destroy.c: Likewise.
  9755. * pthread_condattr_init.c: Likewise.
  9756. * pthread_equal.c: Likewise.
  9757. * pthread_exit.c: Likewise.
  9758. * pthread_getschedparam.c: Likewise.
  9759. * pthread_self.c: Likewise.
  9760. * pthread_setcancelstate.c: Likewise.
  9761. * pthread_setschedparam.c: Likewise.
  9762. * pthread_mutex_destroy.c: Likewise.
  9763. * pthread_mutex_init.c: Likewise.
  9764. * pthreadP.h: Add prototypes for the aliases.
  9765. * sysdeps/unix/sysv/linux/i386/createthread.c (create_thread): Set
  9766. multiple_threads member in correct TCB to 1.
  9767. * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: Define
  9768. SINGLE_THREAD_P. If in libc or libpthread examine multiple_thread
  9769. member of thread decriptor, otherwise return unconditionally 1.
  9770. 2002-12-14 Ulrich Drepper <drepper@redhat.com>
  9771. * sysdeps/unix/sysv/linux/i386/pt-socket.S: Changes folded into the
  9772. regular Linux version. Remove file.
  9773. * sysdeps/unix/sysv/linux/connect.S: Likewise. Remove file.
  9774. * sysdeps/unix/sysv/linux/llseek.c: Likewise. Remove file.
  9775. * sysdeps/unix/sysv/linux/msgrcv.c: Likewise. Remove file.
  9776. * sysdeps/unix/sysv/linux/msgsnd.c: Likewise. Remove file.
  9777. * sysdeps/unix/sysv/linux/open64.c: Likewise. Remove file.
  9778. * sysdeps/unix/sysv/linux/poll.c: Likewise. Remove file.
  9779. * sysdeps/unix/sysv/linux/pread.c: Likewise. Remove file.
  9780. * sysdeps/unix/sysv/linux/pread64.c: Likewise. Remove file.
  9781. * sysdeps/unix/sysv/linux/pselect.c: Likewise. Remove file.
  9782. * sysdeps/unix/sysv/linux/pwrite.c: Likewise. Remove file.
  9783. * sysdeps/unix/sysv/linux/pwrite64.c: Likewise. Remove file.
  9784. * sysdeps/unix/sysv/linux/readv.c: Likewise. Remove file.
  9785. * sysdeps/unix/sysv/linux/recv.S: Likewise. Remove file.
  9786. * sysdeps/unix/sysv/linux/recvfrom.S: Likewise. Remove file.
  9787. * sysdeps/unix/sysv/linux/recvmsg.S: Likewise. Remove file.
  9788. * sysdeps/unix/sysv/linux/send.S: Likewise. Remove file.
  9789. * sysdeps/unix/sysv/linux/sendmsg.S: Likewise. Remove file.
  9790. * sysdeps/unix/sysv/linux/sendto.S: Likewise. Remove file.
  9791. * sysdeps/unix/sysv/linux/sigpause.c: Likewise. Remove file.
  9792. * sysdeps/unix/sysv/linux/sigsuspend.c: Likewise. Remove file.
  9793. * sysdeps/unix/sysv/linux/sigtimedwait.c: Likewise. Remove file.
  9794. * sysdeps/unix/sysv/linux/sigwait.c: Likewise. Remove file.
  9795. * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise. Remove file.
  9796. * sysdeps/unix/sysv/linux/system.c: Likewise. Remove file.
  9797. * sysdeps/unix/sysv/linux/tcdrain.c: Likewise. Remove file.
  9798. * sysdeps/unix/sysv/linux/wait.c: Likewise. Remove file.
  9799. * sysdeps/unix/sysv/linux/waitid.c: Likewise. Remove file.
  9800. * sysdeps/unix/sysv/linux/waitpid.c: Likewise. Remove file.
  9801. * sysdeps/unix/sysv/linux/writev.c: Likewise. Remove file.
  9802. * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise. Remove file.
  9803. 2002-12-14 Jakub Jelinek <jakub@redhat.com>
  9804. * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: New file.
  9805. * sysdeps/unix/sysv/linux/open.c: Removed.
  9806. * sysdeps/unix/sysv/linux/fsync.c: Removed.
  9807. * sysdeps/unix/sysv/linux/lseek.c: Removed.
  9808. * sysdeps/unix/sysv/linux/msync.c: Removed.
  9809. * sysdeps/unix/sysv/linux/read.c: Removed.
  9810. * sysdeps/unix/sysv/linux/close.c: Removed.
  9811. * sysdeps/unix/sysv/linux/creat.c: Removed.
  9812. * sysdeps/unix/sysv/linux/nanosleep.c: Removed.
  9813. * sysdeps/unix/sysv/linux/pause.c: Removed.
  9814. * sysdeps/unix/sysv/linux/select.c: Removed.
  9815. * sysdeps/unix/sysv/linux/write.c: Removed.
  9816. 2002-12-14 Ulrich Drepper <drepper@redhat.com>
  9817. * sysdeps/unix/sysv/linux/i386/pt-socket.S: Check multiple_threads
  9818. element in TCB to see whether locking is needed.
  9819. * sysdeps/unix/sysv/linux/libc_pthread_init.c: Check that
  9820. MULTIPLE_THREADS_OFFSET value is correct.
  9821. * sysdeps/unix/sysv/linux/close.c: New file.
  9822. * sysdeps/unix/sysv/linux/connect.S: New file.
  9823. * sysdeps/unix/sysv/linux/creat.c: New file.
  9824. * sysdeps/unix/sysv/linux/fsync.c: New file.
  9825. * sysdeps/unix/sysv/linux/llseek.c: New file.
  9826. * sysdeps/unix/sysv/linux/lseek.c: New file.
  9827. * sysdeps/unix/sysv/linux/msgrcv.c: New file.
  9828. * sysdeps/unix/sysv/linux/msgsnd.c: New file.
  9829. * sysdeps/unix/sysv/linux/msync.c: New file.
  9830. * sysdeps/unix/sysv/linux/nanosleep.c: New file.
  9831. * sysdeps/unix/sysv/linux/open.c: New file.
  9832. * sysdeps/unix/sysv/linux/open64.c: New file.
  9833. * sysdeps/unix/sysv/linux/pause.c: New file.
  9834. * sysdeps/unix/sysv/linux/poll.c: New file.
  9835. * sysdeps/unix/sysv/linux/pread.c: New file.
  9836. * sysdeps/unix/sysv/linux/pread64.c: New file.
  9837. * sysdeps/unix/sysv/linux/pselect.c: New file.
  9838. * sysdeps/unix/sysv/linux/pwrite.c: New file.
  9839. * sysdeps/unix/sysv/linux/pwrite64.c: New file.
  9840. * sysdeps/unix/sysv/linux/readv.c: New file.
  9841. * sysdeps/unix/sysv/linux/recv.S: New file.
  9842. * sysdeps/unix/sysv/linux/recvfrom.S: New file.
  9843. * sysdeps/unix/sysv/linux/recvmsg.S: New file.
  9844. * sysdeps/unix/sysv/linux/select.c: New file.
  9845. * sysdeps/unix/sysv/linux/send.S: New file.
  9846. * sysdeps/unix/sysv/linux/sendmsg.S: New file.
  9847. * sysdeps/unix/sysv/linux/sendto.S: New file.
  9848. * sysdeps/unix/sysv/linux/sigpause.c: New file.
  9849. * sysdeps/unix/sysv/linux/sigsuspend.c: New file.
  9850. * sysdeps/unix/sysv/linux/sigtimedwait.c: New file.
  9851. * sysdeps/unix/sysv/linux/sigwait.c: New file.
  9852. * sysdeps/unix/sysv/linux/sigwaitinfo.c: New file.
  9853. * sysdeps/unix/sysv/linux/system.c: New file.
  9854. * sysdeps/unix/sysv/linux/tcdrain.c: New file.
  9855. * sysdeps/unix/sysv/linux/wait.c: New file.
  9856. * sysdeps/unix/sysv/linux/waitid.c: New file.
  9857. * sysdeps/unix/sysv/linux/waitpid.c: New file.
  9858. * sysdeps/unix/sysv/linux/writev.c: New file.
  9859. * sysdeps/unix/sysv/linux/i386/fcntl.c: New file.
  9860. * pt-readv.c: Fix comment.
  9861. 2002-12-14 Jakub Jelinek <jakub@redhat.com>
  9862. * tst-cleanup1.c: Include stdlib.h.
  9863. * tst-cancel5.c: New test.
  9864. * Makefile (tests): Add tst-cancel5.
  9865. (tst-cancel5): Link against libc.so libpthread.so in that order.
  9866. 2002-12-13 Ulrich Drepper <drepper@redhat.com>
  9867. * forward.c (test_loaded): Prevent recursive calls.
  9868. * Makefile (routines): Add libc-cancellation.
  9869. * libc-cancellation.c: New file.
  9870. * descr.h (struct pthread): Add multiple_threads field.
  9871. * allocatestack.c (allocate_stack): Initialize multiple_header field of
  9872. new thread descriptor to 1.
  9873. * sysdeps/unix/sysv/linux/i386/createthread.c (create_thread):
  9874. Initialize multiple_thread field after successful thread creation.
  9875. * cancellation.c (__do_cancel): Move to pthreadP.h.
  9876. (__pthread_enable_asynccancel): Remove parameter from __do_cancel call.
  9877. (__pthread_disable_asynccancel): Add internal_function attribute.
  9878. * init.c (sigcancel_handler): Remove parameter from __do_cancel call.
  9879. * pthread_setcancelstate.c: Likewise.
  9880. * pthread_setcanceltype.c: Likewise.
  9881. * pthread_exit.c: Likewise.
  9882. * pthreadP.h (CANCELLATION_P): Likewise.
  9883. (__do_cancel): Define as static inline.
  9884. (LIBC_CANCEL_ASYNC, LIBC_CANCEL_RESET): New #defines.
  9885. (__libc_enable_asynccancel, __libc_disable_asynccancel): New
  9886. declarations.
  9887. * sysdeps/i386/tls.h (tcbhead_t): Add list and multiple_threads
  9888. fields. Define MULTIPLE_THREADS_OFFSET.
  9889. * sysdeps/pthread/bits/libc-lock.h: Remove __libc_locking_needed
  9890. declaration.
  9891. * sysdeps/unix/sysv/linux/accept.S: New file.
  9892. * sysdeps/unix/sysv/linux/read.c: New file.
  9893. * sysdeps/unix/sysv/linux/write.c: New file.
  9894. * sysdeps/unix/sysv/linux/i386/pt-socket.S: New file.
  9895. * sysdeps/unix/sysv/linux/libc_pthread_init.c: Remove definition and
  9896. initialization of __libc_locking_needed.
  9897. * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Don't use
  9898. __libc_locking_needed, use multiple_threads field in TCB.
  9899. * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S: Likewise.
  9900. 2002-12-12 Ulrich Drepper <drepper@redhat.com>
  9901. * sysdeps/unix/sysv/linux/i386/i686/libc-lowlevellock.S: Use i486
  9902. version.
  9903. * sysdeps/unix/sysv/linux/i386/i586/libc-lowlevellock.S: Likewise.
  9904. * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S: Correct
  9905. access to __libc_locking_needed for PIC.
  9906. 2002-12-12 Jakub Jelinek <jakub@redhat.com>
  9907. * sysdeps/pthread/bits/libc-lock.h (__libc_locking_needed): Only
  9908. declare for libc.so.
  9909. (__libc_lock_init, __libc_lock_init_recursive): Change into comma
  9910. expression.
  9911. (__libc_lock_lock): Put into statement expression.
  9912. (__libc_lock_unlock): Remove trailing semicolon.
  9913. * sysdeps/unix/sysv/linux/fork.h (__libc_pthread_init): Fix typo.
  9914. 2002-12-12 Roland McGrath <roland@redhat.com>
  9915. * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Use asm operand with
  9916. "m" constraint to refer to __libc_locking_needed. Declare it here.
  9917. 2002-12-12 Ulrich Drepper <drepper@redhat.com>
  9918. * sysdeps/unix/sysv/linux/fork-gen.c: Renamed to...
  9919. * sysdeps/unix/sysv/linux/libc_pthread_init.c: ...this.
  9920. Initialize __libc_locking_needed.
  9921. * init.c (__pthread_initialize_minimal): Call __libc_pthread_init
  9922. instead of __register_pthread_fork_handler.
  9923. * sysdeps/pthread/bits/libc-lock.h: Declare __libc_locking_needed.
  9924. * sysdeps/unix/sysv/linux/Makefile (sysdep_routimes): Replace
  9925. fork-gen with libc_pthread_init.
  9926. * sysdeps/unix/sysv/linux/Versions: Use __libc_pthread_init instead
  9927. of __register_pthread_fork_handler.
  9928. * sysdeps/unix/sysv/linux/fork.h: Declare __libc_pthread_init instead
  9929. of __register_pthread_fork_handler.
  9930. * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Use
  9931. __libc_locking_needed to determine whether lock prefix can be avoided.
  9932. * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S: Likewise.
  9933. 2002-12-11 Ulrich Drepper <drepper@redhat.com>
  9934. * Makefile (tests): Add tst-cleanup1.
  9935. * tst-cleanup1.c: New file.
  9936. * cancellation.c (__cleanup_thread): Removed.
  9937. (__do_cancel): Remove call to __cleanup_thread.
  9938. * pthreadP.h: Remove __cleanup_thread prorotype.
  9939. * sysdeps/pthread/bits/libc-lock.h (__libc_cleanup_region_start):
  9940. Remember function and argument even if cancellation handler
  9941. function is not available.
  9942. (__libc_cleanup_region_end): Execute registered function directly if
  9943. pthread functions are not available.
  9944. (__libc_cleanup_end): Likewise.
  9945. * init.c (__pthread_initialize_minimal): Fix initialization in
  9946. static lib by preventing gcc from being too clever.
  9947. 2002-12-10 Ulrich Drepper <drepper@redhat.com>
  9948. * init.c (__pthread_initialize_minimal): Remove unneccesary
  9949. sigaddset call.
  9950. * Makefile (tests): We can run tst-locale2 now.
  9951. 2002-12-09 Ulrich Drepper <drepper@redhat.com>
  9952. * Versions: Remove duplicated sigwait entry.
  9953. 2002-12-08 Ulrich Drepper <drepper@redhat.com>
  9954. * pthreadP.h: Enable pthread_cleanup_{push,pop} optimizations only
  9955. inside libpthread.
  9956. * pt-fcntl.c (__fcntl): Initialize oldtype to avoid warning.
  9957. * pthreadP.h: Declare __pthread_enable_asynccancel and
  9958. __pthread_disable_asynccancel.
  9959. (CANCEL_ASYNC): Use __pthread_enable_asynccancel.
  9960. (CANCEL_RESET): Use __pthread_disable_asynccancel.
  9961. * cancellation.c (__pthread_enable_asynccancel): New function.
  9962. (__pthread_disable_asynccancel): New function.
  9963. * pt-accept.c: Adjust for CANCEL_ASYNC and CANCEL_RESET change.
  9964. * pt-close.c: Likewise.
  9965. * pt-connect.c: Likewise.
  9966. * pt-creat.c: Likewise.
  9967. * pt-fcntl.c: Likewise.
  9968. * pt-fsync.c: Likewise.
  9969. * pt-lseek.c: Likewise.
  9970. * pt-lseek64.c: Likewise.
  9971. * pt-msgrcv.c: Likewise.
  9972. * pt-msgsnd.c: Likewise.
  9973. * pt-msync.c: Likewise.
  9974. * pt-nanosleep.c: Likewise.
  9975. * pt-open.c: Likewise.
  9976. * pt-open64.c: Likewise.
  9977. * pt-pause.c: Likewise.
  9978. * pt-poll.c: Likewise.
  9979. * pt-pread.c: Likewise.
  9980. * pt-pread64.c: Likewise.
  9981. * pt-pselect.c: Likewise.
  9982. * pt-pwrite.c: Likewise.
  9983. * pt-pwrite64.c: Likewise.
  9984. * pt-read.c: Likewise.
  9985. * pt-readv.c: Likewise.
  9986. * pt-recv.c: Likewise.
  9987. * pt-recvfrom.c: Likewise.
  9988. * pt-recvmsg.c: Likewise.
  9989. * pt-select.c: Likewise.
  9990. * pt-send.c: Likewise.
  9991. * pt-sendmsg.c: Likewise.
  9992. * pt-sendto.c: Likewise.
  9993. * pt-sigpause.c: Likewise.
  9994. * pt-sigsuspend.c: Likewise.
  9995. * pt-sigtimedwait.c: Likewise.
  9996. * pt-sigwait.c: Likewise.
  9997. * pt-sigwaitinfo.c: Likewise.
  9998. * pt-system.c: Likewise.
  9999. * pt-tcdrain.c: Likewise.
  10000. * pt-wait.c: Likewise.
  10001. * pt-waitid.c: Likewise.
  10002. * pt-waitpid.c: Likewise.
  10003. * pt-write.c: Likewise.
  10004. * pt-writev.c: Likewise.
  10005. * pthread_join.c: Likewise.
  10006. * pthread_timedjoin.c: Likewise.
  10007. * pt-sigpause.c (sigsuspend): Call __sigsuspend.
  10008. (__xpg_sigpause): New function.
  10009. * Versions (libpthread:GLIBC_2.3.2): Add __xpg_sigpause.
  10010. 2002-12-07 Ulrich Drepper <drepper@redhat.com>
  10011. * Makefile (CFLAGS-ftrylockfile.c): Add -D_IO_MTSAFE_IO.
  10012. * cleanup.c: Move declarations of _GI_pthread_cleanup_push and
  10013. _GI_pthread_cleanup_pop to pthreadP.h.
  10014. * ftrylockfile.c: Use _IO_lock_trylock instead of
  10015. pthread_mutex_trylock.
  10016. * pthreadP.h (CANCEL_ASYNC): Use __pthread_setcanceltype.
  10017. (CANCEL_RESET): Likewise.
  10018. (__pthread_setcanceltype_): Declare.
  10019. (__pthread_mutex_lock_internal): Declare.
  10020. (__pthread_mutex_unlock_internal): Declare.
  10021. (__pthread_once_internal): Declare.
  10022. (pthread_cleanup_push): Redefine using _GI_pthread_cleanup_push.
  10023. (pthread_cleanup_pop): Redefine using _GI_pthread_cleanup_pop.
  10024. * pthread_cond_timedwait.c: Use INTUSE is calls to pthread_mutex_lock
  10025. and pthread_mutex_unlock.
  10026. * pthread_cond_wait.c: Likewise.
  10027. * pthread_mutex_lock.c: Use INTDEF to define alias if needed.
  10028. * pthread_mutex_unlock.c: Likewise.
  10029. * pthread_setcanceltype.c: Add additional alias
  10030. __pthread_setcanceltype.
  10031. * sem_unlink.c (sem_unlink): Use __pthread_once with INTDEF.
  10032. * sem_open.c (sem_open): Likewise.
  10033. Use __libc_open, __libc_write, and __libc_close instead of
  10034. open, write, and close respectively.
  10035. * sysdeps/pthread/bits/libc-lock.h (__libc_lock_trylock_internal):
  10036. Rewrite as statement expression since it must return a value.
  10037. * pthread_cancel.c: Use __pthread_kill instead of pthread_kill.
  10038. * sysdeps/unix/sysv/linux/pthread_kill.c: Define additional alias
  10039. __pthread_kill.
  10040. * sysdeps/unix/sysv/linux/i386/pthread_once.S: Define additional
  10041. alias __pthread_once_internal.
  10042. * sysdeps/unix/sysv/linux/raise.c: Use libc_hidden_def for raise.
  10043. 2002-12-06 Ulrich Drepper <drepper@redhat.com>
  10044. * Makefile (tests): Add tst-stdio1 and tst-stdio2.
  10045. * tst-stdio1.c: New file.
  10046. * tst-stdio2.c: New file.
  10047. * init.c (__pthread_initialize_minimal): Correct INIT_LIST_HEAD use.
  10048. * Makefile (tests): Comment out tst-locale2 for now.
  10049. (CFLAGS-flockfile.c, CFLAGS-funlockfile.c): Define to -D_IO_MTSAFE_IO.
  10050. * sysdeps/unix/sysv/linux/Makefile: Define CFLAGS-fork.c to
  10051. -D_IO_MTSAFE_IO.
  10052. * sysdeps/unix/sysv/linux/fork.c: Include <bits/stdio-lock.h>.
  10053. Use _IO_lock_init instead of explicit assignment.
  10054. * sysdeps/pthread/bits/libc-lock.h: Define __rtld_lock_* macros.
  10055. Define __libc_lock_* and __libc_lock_recursive macros with
  10056. lowlevellock macros, not pthread mutexes.
  10057. * flockfile.c: Include <bits/stdio-lock.h>. Use _IO_lock_lock instead
  10058. of pthread_mutex_lock.
  10059. * funlockfile.c: Include <bits/stdio-lock.h>. Use _IO_lock_unlock
  10060. instead of pthread_mutex_unlock.
  10061. 2002-12-06 Roland McGrath <roland@redhat.com>
  10062. * allocatestack.c (__stack_user): Use uninitialized defn.
  10063. * init.c (__pthread_initialize_minimal): Initialize it here.
  10064. 2002-12-05 Roland McGrath <roland@redhat.com>
  10065. * sysdeps/i386/tls.h (TLS_INIT_TP): Make it return zero or an error
  10066. string.
  10067. * sysdeps/x86_64/tls.h (TLS_INIT_TP): Likewise.
  10068. * sysdeps/unix/sysv/linux/i386/createthread.c (create_thread): Add
  10069. missing & here too.
  10070. 2002-12-05 Ulrich Drepper <drepper@redhat.com>
  10071. * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Remove
  10072. lowlevellock.
  10073. * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S: New file.
  10074. * sysdeps/unix/sysv/linux/i386/i586/libc-lowlevellock.S: New file.
  10075. * sysdeps/unix/sysv/linux/i386/i686/libc-lowlevellock.S: New file.
  10076. * sysdeps/pthread/bits/libc-lock.h: Use lowlevellock implementation
  10077. for __libc_lock_* macros.
  10078. * Makefile (routines): Add libc-lowlevellock.
  10079. 2002-10-09 Roland McGrath <roland@redhat.com>
  10080. * sysdeps/pthread/bits/libc-lock.h (__libc_maybe_call): New macro.
  10081. Under [__PIC__], call the function via the pointer fetched for
  10082. comparison rather than a call by name that uses the PLT.
  10083. (__libc_lock_init, __libc_rwlock_init, __libc_lock_fini)
  10084. (__libc_rwlock_fini, __libc_lock_lock, __libc_rwlock_rdlock)
  10085. (__libc_rwlock_wrlock, __libc_lock_trylock, __libc_rwlock_tryrdlock)
  10086. (__libc_rwlock_trywrlock, __libc_lock_unlock, __libc_rwlock_unlock)
  10087. (__libc_key_create, __libc_getspecific, __libc_setspecific): Use it.
  10088. 2002-12-04 Roland McGrath <roland@redhat.com>
  10089. * forward.c (pthread_self): Use FORWARD3 macro to correct return type.
  10090. * sysdeps/i386/td_ta_map_lwp2thr.c: Moved from ../nptl_db.
  10091. * sysdeps/generic/td_ta_map_lwp2thr.c: New file.
  10092. * pthread_create.c (start_thread): Add missing & on __nptl_last_event.
  10093. 2002-12-04 Ulrich Drepper <drepper@redhat.com>
  10094. * sysdeps/unix/sysv/linux/i386/bits/pthreadtypes.h: Make pthread_t
  10095. a completely opaque, non-integer type.
  10096. * sysdeps/unix/sysv/linux/x86_64/bits/pthreadtypes.h: Likewise.
  10097. 2002-12-05 Jakub Jelinek <jakub@redhat.com>
  10098. * sysdeps/i386/tls.h: Include stdlib.h.
  10099. * sysdeps/x86_64/tls.h: Likewise.
  10100. 2002-12-04 Ulrich Drepper <drepper@redhat.com>
  10101. * Makefile (tests): Add tst-locale2.
  10102. (tests-static): Likewise.
  10103. * tst-locale2.c: New file.
  10104. * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Mark asms as
  10105. volatile and add memory clobbers to lock operations.
  10106. 2002-12-03 Ulrich Drepper <drepper@redhat.com>
  10107. * sysdeps/i386/i686/bits/atomic.h: Use i486 version.
  10108. * sysdeps/i386/i486/bits/atomic.h: New file.
  10109. * sysdeps/i386/i586/bits/atomic.h: New file.
  10110. * sysdeps/i386/i686/pthread_spin_trylock.S: Define HAVE_CMOV and
  10111. include i486 version.
  10112. * sysdeps/i386/i486/pthread_spin_trylock.S: New file.
  10113. * sysdeps/i386/i586/pthread_spin_trylock.S: New file.
  10114. Patch by Marijn Ros <marijn@mad.scientist.com>.
  10115. * allocatestack.c (get_cached_stack): Don't crash if we first
  10116. found a stack with a larger size then needed.
  10117. Reported by Hui Huang <hui.huang@sun.com>.
  10118. * Makefile (tests): Add tst-sysconf.
  10119. * tst-sysconf.c: New file.
  10120. * sysdeps/unix/sysv/linux/bits/local_lim.h: Undefine
  10121. PTHREAD_THREADS_MAX.
  10122. 2002-12-02 Roland McGrath <roland@redhat.com>
  10123. * pthreadP.h (__stack_user, __nptl_create_event, __nptl_death_event):
  10124. Declare using hidden_proto instead of attribute_hidden, so there are
  10125. non-.hidden static symbols for gdb to find.
  10126. (__pthread_keys): Likewise.
  10127. * events.c (__nptl_create_event, __nptl_death_event): Add hidden_def.
  10128. * allocatestack.c (__stack_user): Likewise.
  10129. * pthread_create.c (__pthread_keys): Likewise.
  10130. (__nptl_threads_events, __nptl_last_event): Make these static instead
  10131. of hidden.
  10132. * pthread_key_create.c (__pthread_pthread_keys_max,
  10133. __pthread_pthread_key_2ndlevel_size): Renamed from __linuxthreads_*.
  10134. 2002-12-02 Ulrich Drepper <drepper@redhat.com>
  10135. * Makefile (tests): Add tst-locale1. If buid-static is yes link
  10136. statically.
  10137. * tst-locale1.c: New file.
  10138. * pthread_cond_timedwait.c: Include <stdlib.h>.
  10139. * Makefile (tests): Add tst-fork2 and tst-fork3.
  10140. * tst-fork2.c: New file.
  10141. * tst-fork3.c: New file.
  10142. 2002-11-28 Ulrich Drepper <drepper@redhat.com>
  10143. * sysdeps/unix/sysv/linux/i386/bits/posix_opt.h: New file.
  10144. * sysdeps/unix/sysv/linux/bits/posix_opt.h: Define macros which
  10145. require it to 200112L.
  10146. * sysdeps/unix/sysv/linux/i386/i486/lowlevelrwlock.S: Use cmov
  10147. instruction only if HAVE_CMOV is defined.
  10148. * sysdeps/unix/sysv/linux/i386/i686/lowlevelrwlock.S: Define HAVE_CMOV.
  10149. * sysdeps/unix/sysv/linux/x86_64/bits/semaphore.h: New file.
  10150. * sysdeps/unix/sysv/linux/x86_64/pthread_once.S: New file.
  10151. * sysdeps/unix/sysv/linux/x86_64/bits/pthreadtypes.h: New file.
  10152. * sysdeps/unix/sysv/linux/x86_64/pt-vfork.S: New file.
  10153. 2002-11-27 Ulrich Drepper <drepper@redhat.com>
  10154. * sysdeps/x86_64/bits/atomic.h: New file.
  10155. * sysdeps/i386/i686/bits/atomic.h: Fix asm syntax for 8- and
  10156. 16-bit operations.
  10157. * sysdeps/unix/sysv/linux/raise.c (raise): Use INTERNAL_SYSCALL if
  10158. possible since gettid cannot fail.
  10159. * sysdeps/x86_64/pthreaddef.h: New file.
  10160. * sysdeps/i386/pthreaddef.h (gettid): Removed.
  10161. * sysdeps/x86_64/pthread_spin_init.c: New file.
  10162. * sysdeps/x86_64/pthread_spin_lock.c: New file.
  10163. * sysdeps/x86_64/pthread_spin_trylock.c: New file.
  10164. * sysdeps/x86_64/pthread_spin_unlock.c: New file.
  10165. * sysdeps/i386/i686/pthread_spin_trylock.S (pthread_spin_trylock):
  10166. Add missing lock prefix. Minute optimization.
  10167. * tst-spin2.c (main): Also check successful trylock call.
  10168. * sysdeps/pthread/pthread_sigmask.c (pthread_sigmask): Use correct
  10169. syscall. Fix typo in case INTERNAL_SYSCALL is not used.
  10170. * sysdeps/i386/pthread_spin_destroy.c: Moved to...
  10171. * sysdeps/pthread/pthread_spin_destroy.c: ...here. New file.
  10172. * sysdeps/i386/pthread_sigmask.c: Removed. Use the generic code.
  10173. * sysdeps/pthread/pthread_sigmask.c (pthread_sigmask): Return correct
  10174. value in case of an error. Add support for INTERNAL_SYSCALL.
  10175. * sysdeps/i386/pthread_sigmask.c (pthread_sigmask): Return correct
  10176. value in case of an error.
  10177. * sysdeps/x86_64/tls.h: New file.
  10178. 2002-11-26 Ulrich Drepper <drepper@redhat.com>
  10179. * sysdeps/i386/tls.h (THREAD_GETMEM_NC): Change interface. It now
  10180. takes the array member name and the index as parameters.
  10181. (THREAD_SETMEM_NC): Likewise.
  10182. * pthread_getspecific.c: Use new THREAD_GETMEM_NC interface.
  10183. * pthread_setspecific.c: Use new THREAD_GETMEM_NC and THREAD_SETMEM_NC
  10184. interfaces.
  10185. * sysdeps/i386/tls.h (THREAD_SETMEM): Use size of member element
  10186. to decide which code to use.
  10187. (THREAD_SETMEM_NC): Likewise.
  10188. * allocatestack.c (queue_stack): Don't remove stack from list here.
  10189. Do it in the caller. Correct condition to prematurely terminate
  10190. loop to free stacks.
  10191. (__deallocate_stack): Remove stack from list here.
  10192. 2002-11-26 Ulrich Drepper <drepper@redhat.com>
  10193. * Makefile (tests): Add tst-stack1.
  10194. * tst-stack1.c: New file.
  10195. * allocatestack.c (allocate_stack): Initialize the TCB on a user
  10196. provided stack.
  10197. * pthread_attr_getstack.c: Return bottom of the thread area.
  10198. 2002-11-25 Ulrich Drepper <drepper@redhat.com>
  10199. * Makefile (libpthread-routines): Add pt-allocrtsig and
  10200. pthread_kill_other_threads.
  10201. * pt-allocrtsig.c: New file.
  10202. * pthread_kill_other_threads.c: New file.
  10203. * sysdeps/unix/sysv/linux/allocrtsig.c: Add additional aliases for
  10204. all three functions.
  10205. * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Remove
  10206. allocrtsig.
  10207. * sysdeps/unix/sysv/linux/Versions (libc:GLIBC_PRIVATE): Export
  10208. __libc_current_sigrtmin_private, __libc_current_sigrtmax_private,
  10209. and __libc_allocate_rtsig_private.
  10210. * Versions (libpthread): Export pthread_kill_other_threads_np,
  10211. __libc_current_sigrtmin, and __libc_current_sigrtmax.
  10212. 2002-11-24 Ulrich Drepper <drepper@redhat.com>
  10213. * allocatestack.c (allocate_stack): stackaddr in attribute points to
  10214. the end of the stack. Adjust computations.
  10215. When mprotect call fails dequeue stack and free it.
  10216. * pthread_attr_setstack.c: Store top of the stack in stackaddr
  10217. attribute.
  10218. * pthread_getattr_np.c: Likewise.
  10219. * descr.h (IS_DETACHED): Add some more parenthesis to prevent
  10220. surprises.
  10221. 2002-11-23 Ulrich Drepper <drepper@redhat.com>
  10222. * sysdeps/pthread/pthread.h (pthread_self): __THROW must come before
  10223. attribute definitions. Patch by Luca Barbieri <ldb@ldb.ods.org>.
  10224. 2002-11-22 Ulrich Drepper <drepper@redhat.com>
  10225. * pthread_getspecific.c: Optimize access to first 2nd-level array.
  10226. * pthread_setspecific.c: Likewise.
  10227. 2002-11-21 Ulrich Drepper <drepper@redhat.com>
  10228. * sysdeps/unix/sysv/linux/i386/createthread.c: Remove CLONE_ flags
  10229. definitions. Get them from the official place.
  10230. * sysdeps/unix/sysv/linux/i386/fork.c: Likewise.
  10231. * sysdeps/unix/sysv/linux/i386/createthread.c: Update CLONE_* flags.
  10232. Use new CLONE_ flags in clone() calls.
  10233. * sysdeps/unix/sysv/linux/fork.c: Use ARCH_FORK to actually fork.
  10234. * sysdeps/unix/sysv/linux/i386/fork.c: New file.
  10235. * Versions: Add pthread_* functions for libc.
  10236. * forward.c: New file.
  10237. * sysdeps/pthread/Makefile (libpthread-sysdeps_routines): Add
  10238. errno-loc.
  10239. * herrno.c: New file.
  10240. * res.c: New file.
  10241. * Makefile (libpthread-routines): Remove sem_post, sem_wait,
  10242. sem_trywait, and sem_timedwait. Add herrno and res.
  10243. * sem_init.c: Don't initialize lock and waiters members.
  10244. * sem_open.c: Likewise.
  10245. * sem_post.c: Removed.
  10246. * sem_wait.c: Removed.
  10247. * sem_trywait.c: Removed.
  10248. * sem_timedwait.c: Removed.
  10249. * sysdeps/unix/sysv/linux/i386/i486/lowlevelsem.S: Complete rewrite.
  10250. Includes full implementations of sem_post, sem_wait, sem_trywait,
  10251. and sem_timedwait.
  10252. * sysdeps/unix/sysv/linux/i386/lowlevelsem.h (lll_sem_post): Adjust
  10253. for new implementation.
  10254. * sysdeps/unix/sysv/linux/internaltypes.h (struct sem): Remove lock
  10255. and waiters fields.
  10256. * tst-sem3.c: Improve error message.
  10257. * tst-signal3.c: Likewise.
  10258. * init.c (__pthread_initialize_minimal): Use set_tid_address syscall
  10259. to tell the kernel about the termination futex and to initialize tid
  10260. member. Don't initialize main_thread.
  10261. * descr.h (struct pthread): Remove main_thread member.
  10262. * cancelllation.c (__do_cancel): Remove code handling main thread.
  10263. The main thread is not special anymore.
  10264. * allocatestack.c (__reclaim_stacks): Mark stacks as unused. Add
  10265. size of the stacks to stack_cache_actsize.
  10266. * pt-readv.c: Add missing "defined".
  10267. * pt-sigwait.c: Likewise.
  10268. * pt-writev.c: Likewise.
  10269. 2002-11-09 Ulrich Drepper <drepper@redhat.com>
  10270. * Versions: Export __connect from libpthread.
  10271. Patch by Luca Barbieri <ldb@ldb.ods.org>.
  10272. * Makefile (libpthread-routines): Add pt-raise.
  10273. * sysdeps/unix/sysv/linux/raise.c: New file.
  10274. * sysdeps/unix/sysv/linux/pt-raise.c: New file.
  10275. * sysdeps/generic/pt-raise.c: New file.
  10276. * pthread_cond_init.c: Initialize all data elements of the condvar
  10277. structure. Patch by Luca Barbieri <ldb@ldb.ods.org>.
  10278. * pthread_attr_init.c: Actually implement 2.0 compatibility version.
  10279. * pthread_create.c: Likewise.
  10280. * Makefile (tests): Add tst-key1, tst-key2, tst-key3.
  10281. * tst-key1.c: New file.
  10282. * tst-key2.c: New file.
  10283. * tst-key3.c: New file.
  10284. * Versions: Export pthread_detach for version GLIBC_2.0.
  10285. Reported by Saurabh Desai <sdesai@austin.ibm.com>.
  10286. 2002-11-08 Ulrich Drepper <drepper@redhat.com>
  10287. * pthread_key_create.c: Terminate search after an unused key was found.
  10288. Patch by Luca Barbieri <ldb@ldb.ods.org>.
  10289. * sysdeps/unix/sysv/linux/i386/pthread_once.S: Return zero.
  10290. Patch by Luca Barbieri <ldb@ldb.ods.org>.
  10291. 2002-10-10 Ulrich Drepper <drepper@redhat.com>
  10292. * sysdeps/unix/sysv/linux/i386/i486/lowlevelsem.S: Use slow generic
  10293. dynamic lookup for errno in PIC.
  10294. * allocatestack.c (get_cached_stack): Rearrange code slightly to
  10295. release the stack lock as soon as possible.
  10296. Call _dl_allocate_tls_init for TCB from the cache to re-initialize
  10297. the static TLS block.
  10298. (allocate_stack): Call _dl_allocate_tls_init for user-provided stack.
  10299. * cancellation.c: Renamed from cancelation.c.
  10300. * Makefile: Adjust accordingly.
  10301. * pthreadP.h (CANCELLATION_P): Renamed from CANCELATION_P.
  10302. * cleanup_defer.c: Use CANCELLATION_P.
  10303. * pthread_testcancel.c: Likewise.
  10304. * descr.h: Fix spelling in comments.
  10305. * init.c: Likewise.
  10306. * pthread_getattr_np.c: Likewise.
  10307. * pthread_getschedparam.c: Likewise.
  10308. * pthread_setschedparam.c: Likewise.
  10309. * Versions: Likewise.
  10310. * pt-pselect.c: New file.
  10311. * Makefile (libpthread-routines): Add pt-pselect.
  10312. * Versions: Add pselect.
  10313. * tst-cancel4.c: New file.
  10314. * Makefile (tests): Add tst-cancel4.
  10315. 2002-10-09 Ulrich Drepper <drepper@redhat.com>
  10316. * pthread_mutex_lock.c: Always record lock ownership.
  10317. * pthread_mutex_timedlock.c: Likewise.
  10318. * pthread_mutex_trylock.c: Likewise.
  10319. * pt-readv.c: New file.
  10320. * pt-writev.c: New file.
  10321. * pt-creat.c: New file.
  10322. * pt-msgrcv.c: New file.
  10323. * pt-msgsnd.c: New file.
  10324. * pt-poll.c: New file.
  10325. * pt-select.c: New file.
  10326. * pt-sigpause.c: New file.
  10327. * pt-sigsuspend.c: New file.
  10328. * pt-sigwait.c: New file.
  10329. * pt-sigwaitinfo.c: New file.
  10330. * pt-waitid.c: New file.
  10331. * Makefile (libpthread-routines): Add pt-readv, pt-writev, pt-creat,
  10332. pt-msgrcv, pt-msgsnd, pt-poll, pt-select, pt-sigpause, pt-sigsuspend,
  10333. pt-sigwait, pt-sigwaitinfo, and pt-waitid.
  10334. * Versions: Add all the new functions.
  10335. * tst-exit1.c: New file.
  10336. * Makefile (tests): Add tst-exit1.
  10337. * sem_timedwait.c: Minor optimization for more optimal fastpath.
  10338. 2002-10-08 Ulrich Drepper <drepper@redhat.com>
  10339. * pt-fcntl.c: Only enable asynchronous cancellation for F_SETLKW.
  10340. * pthread_join.c: Enable asynchronous cancellation around lll_wait_tid
  10341. call. pthread_join is an official cancellation point.
  10342. * pthread_timedjoin.c: Likewise.
  10343. * pthread_cond_wait.c: Revert order in which internal lock are dropped
  10344. and the condvar's mutex are retrieved.
  10345. * pthread_cond_timedwait.c: Likewise.
  10346. Reported by dice@saros.East.Sun.COM.
  10347. 2002-10-07 Ulrich Drepper <drepper@redhat.com>
  10348. * pthreadP.h: Cut out all type definitions and move them...
  10349. * sysdeps/unix/sysv/linux/internaltypes.h: ...here. New file.
  10350. * pthreadP.h: Include <internaltypes.h>.
  10351. * sysdeps/unix/sysv/linux/i386/lowlevelsem.h (lll_sem_post): Little
  10352. performance tweaks.
  10353. * sem_trywait.c: Shuffle #includes around to get right order.
  10354. * sem_timedwait.c: Likewise.
  10355. * sem_post.c: Likewise.
  10356. * sem_wait.c: Likewise.
  10357. * nptl 0.3 released.
  10358. * Makefile (tests): Add tst-signal3.
  10359. * tst-signal3.c: New file.
  10360. 2002-10-05 Ulrich Drepper <drepper@redhat.com>
  10361. * sysdeps/unix/sysv/linux/i386/lowlevelsem.h: Tell the compiler that
  10362. the asms modify the sem object.
  10363. (__lll_sem_timedwait): Now takes struct sem* as first parameter.
  10364. * sysdeps/unix/sysv/linux/i386/bits/semaphore.h (sem_t): Don't expose
  10365. the actual members.
  10366. * pthreadP.h (struct sem): New type. Actual semaphore type.
  10367. * semaphoreP.h: Include pthreadP.h.
  10368. * sem_getvalue.c: Adjust to sem_t change.
  10369. * sem_init.c: Likewise.
  10370. * sem_open.c: Likewise.
  10371. * sem_post.c: Likewise.
  10372. * sem_timedwait.c: Likewise.
  10373. * sem_trywait.c: Likewise.
  10374. * sem_wait.c: Likewise.
  10375. 2002-10-04 Ulrich Drepper <drepper@redhat.com>
  10376. * Makefile (tests): Add tst-basic2, tst-exec1, tst-exec3, tst-exec3.
  10377. * tst-basic2.c: New file.
  10378. * tst-exec1.c: New file.
  10379. * tst-exec2.c: New file.
  10380. * tst-exec3.c: New file.
  10381. * tst-fork1.c: Remove extra */.
  10382. * nptl 0.2 released. The API for IA-32 is complete.