ChangeLog 426 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100
  1. 2010-01-15 Ulrich Drepper <drepper@redhat.com>
  2. * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S:
  3. Fix unwind info.
  4. * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Likewise.
  5. 2010-01-15 Michal Schmidt <mschmidt@redhat.com>
  6. * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S:
  7. Fix pthread_cond_timedwait with requeue-PI.
  8. * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S:
  9. Fix pthread_cond_wait with requeue-PI.
  10. 2010-01-14 Ulrich Drepper <drepper@redhat.com>
  11. * Versions: Add pthread_mutex_consistent, pthread_mutexattr_getrobust,
  12. and pthread_mutexattr_setrobust for GLIBC_2.12.
  13. * pthread_mutex_consistent.c: Define alias pthread_mutex_consistent.
  14. * pthread_mutexattr_getrobust.c: Define alias
  15. pthread_mutexattr_getrobust.
  16. * pthread_mutexattr_setrobust.c: Define alias
  17. pthread_mutexattr_setrobust.
  18. 2010-01-12 Ulrich Drepper <drepper@redhat.com>
  19. * sysdeps/pthread/pthread.h: Cleanup. Fix up for XPG7.
  20. 2010-01-08 Ulrich Drepper <drepper@redhat.com>
  21. * sysdeps/pthread/pthread.h: Fix pthread_mutex_consistent declaration.
  22. 2009-12-18 Thomas Schwinge <thomas@codesourcery.com>
  23. * sysdeps/unix/sysv/linux/s390/s390-32/pt-initfini.c (_init): Don't
  24. call __gmon_start__.
  25. * sysdeps/unix/sysv/linux/s390/s390-64/pt-initfini.c (_init): Likewise.
  26. 2009-12-17 Ulrich Drepper <drepper@redhat.com>
  27. * pthread_rwlock_init.c (__pthread_rwlock_init): Simplify code by
  28. using memset.
  29. 2009-12-01 Dinakar Guniguntala <dino@in.ibm.com>
  30. * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.h: Define
  31. FUTEX_WAIT_REQUEUE_PI and FUTEX_CMP_REQUEUE_PI.
  32. * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_broadcast.S: If mutex
  33. is a non robust PI mutex, then use FUTEX_CMP_REQUEUE_PI.
  34. * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S: Likewise.
  35. * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: If mutex
  36. is a non robust PI mutex, then use FUTEX_WAIT_REQUEUE_PI.
  37. * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Likewise.
  38. 2009-12-12 Ulrich Drepper <drepper@redhat.com>
  39. * sysdeps/unix/sysv/linux/i386/i486/sem_timedwait.S (sem_timedwait):
  40. Don't update nwaiters after invalid timeout is recognized.
  41. 2009-11-27 Thomas Schwinge <thomas@codesourcery.com>
  42. * sysdeps/unix/sysv/linux/sh/pt-initfini.c (_init): Don't call
  43. __gmon_start__.
  44. 2009-11-27 Andreas Schwab <schwab@redhat.com>
  45. * sysdeps/unix/sysv/linux/x86_64/cancellation.S: Reload
  46. THREAD_SELF->cancelhandling after returning from futex call.
  47. 2009-11-24 Ulrich Drepper <drepper@redhat.com>
  48. * tst-sem13.c: New file.
  49. * Makefile (tests): Add tst-sem13.
  50. 2009-11-22 Roland McGrath <roland@redhat.com>
  51. * sysdeps/unix/sysv/linux/i386/dl-sysdep.h: # include "i686/dl-sysdep.h"
  52. instead of recapitulating its contents.
  53. 2009-11-18 Ulrich Drepper <drepper@redhat.com>
  54. * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_broadcast.S: Minor
  55. optimizations and cleanups.
  56. 2009-11-18 Dinakar Guniguntala <dino@in.ibm.com>
  57. * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_broadcast.S:
  58. Remove redundant code. Fix cfi offsets.
  59. * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S:
  60. Fix cfi offsets.
  61. 2009-11-17 Ulrich Drepper <drepper@redhat.com>
  62. * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: Minimally
  63. reduce size of unwind info.
  64. * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Convert to use
  65. cfi directives.
  66. * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: Likewise.
  67. Based on a patch by Dinakar Guniguntala <dino@in.ibm.com>.
  68. 2009-11-03 Andreas Schwab <schwab@linux-m68k.org>
  69. [BZ #4457]
  70. * sysdeps/pthread/unwind-resume.c: Include <libgcc_s.h> and use
  71. LIBGCC_S_SO.
  72. * sysdeps/pthread/unwind-forcedunwind.c: Likewise.
  73. 2009-10-30 Ulrich Drepper <drepper@redhat.com>
  74. * tst-sem11.c (main): Rewrite to avoid aliasing problems.
  75. [BZ #3270]
  76. * allocatestack.c (__nptl_setxid): Perform the operation in multiple
  77. steps to avoid races with creation and terminations.
  78. * nptl-init.c (sighandler_setxid): Adjust.
  79. Patch by Daniel Jacobowitz.
  80. 2009-09-07 Andreas Schwab <schwab@redhat.com>
  81. * sysdeps/pthread/bits/libc-lock.h (BP_SYM): Remove space before paren.
  82. 2009-09-02 Suzuki K P <suzuki@in.ibm.com>
  83. Joseph Myers <joseph@codesourcery.com>
  84. [BZ #7094]
  85. * sysdeps/unix/sysv/linux/timer_create.c (timer_create):
  86. Initialize the sigev_notify field for newly created timer to make sure
  87. the timer gets deleted from the active timer's list upon timer_delete.
  88. 2009-08-27 Andrew Stubbs <ams@codesourcery.com>
  89. * sysdeps/unix/sysv/linux/sh/lowlevellock.S (__lll_timedlock_wait):
  90. Correct a logic error.
  91. 2009-08-25 Ulrich Drepper <drepper@redhat.com>
  92. * sysdeps/x86_64/tls.h (RTLD_ENABLE_FOREIGN_CALL): Store old value
  93. of the field in local variables.
  94. (RTLD_FINALIZE_FOREIGN_CALL): Restore rtld_must_xmm_save from local
  95. variable and don't unconditionally clear it.
  96. 2009-08-24 Ulrich Drepper <drepper@redhat.com>
  97. * pthread_create.c (start_thread): Hint to the kernel that memory for
  98. the stack can be reused. We do not mark all the memory. The part
  99. still in use and some reserve are kept.
  100. 2009-08-23 Ulrich Drepper <drepper@redhat.com>
  101. * sysdeps/unix/sysv/linux/bits/posix_opt.h: Clean up namespace.
  102. 2009-08-11 Ulrich Drepper <drepper@redhat.com>
  103. * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_unlock.S: Add CFI
  104. directives.
  105. 2009-08-10 Ulrich Drepper <drepper@redhat.com>
  106. * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_rdlock.S: Add CFI
  107. directives.
  108. * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_wrlock.S: Likewise.
  109. 2009-08-10 Andreas Schwab <schwab@redhat.com>
  110. * sysdeps/unix/sysv/linux/x86_64/pthread_cond_signal.S
  111. (__pthread_cond_signal): Don't clobber register used for syscall
  112. number.
  113. 2009-08-08 Ulrich Drepper <drepper@redhat.com>
  114. * sysdeps/unix/sysv/linux/x86_64/sem_timedwait.S (sem_timedwait):
  115. Optimize code path used when FUTEX_CLOCK_REALTIME is supported.
  116. * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S
  117. (__pthread_cond_wait): Optimize by avoiding use of callee-safe
  118. register.
  119. 2009-08-07 Ulrich Drepper <drepper@redhat.com>
  120. * sysdeps/unix/sysv/linux/x86_64/sem_wait.S: Little optimizations
  121. enabled by the special *_asynccancel functions.
  122. * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: Likewise.
  123. * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: Likewise.
  124. * sysdeps/unix/sysv/linux/x86_64/cancellation.S: Include lowlevellock.h.
  125. 2009-08-04 Ulrich Drepper <drepper@redhat.com>
  126. * sysdeps/unix/sysv/linux/x86_64/cancellation.S: New file.
  127. * sysdeps/unix/sysv/linux/x86_64/libc-cancellation.S: New file.
  128. * sysdeps/unix/sysv/linux/x86_64/librt-cancellation.S: New file.
  129. * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h (PSEUDO): Optimize
  130. since we can assume the special __*_{en,dis}able_asynccancel
  131. functions.
  132. (PUSHARGS_*, POPARGS_*, SAVESTK_*, RESTSTK_*): Removed.
  133. * sysdeps/x86_64/tcb-offsets.sym: Add cancellation-related bits
  134. and PTHREAD_CANCELED.
  135. 2009-07-31 Ulrich Drepper <drepper@redhat.com>
  136. * descr.h: Better definition of *_BITMASK macros for cancellation.
  137. 2009-07-29 Ulrich Drepper <drepper@redhat.com>
  138. * sysdeps/x86_64/tls.h (TLS_TCB_ALIGN): Define explicitly to 32.
  139. * sysdeps/x86_64/tls.h (tcbhead_t): Add room for SSE registers the
  140. dynamic linker might have to save.
  141. Define RTLD_CHECK_FOREIGN_CALL, RTLD_ENABLE_FOREIGN_CALL,
  142. RTLD_PREPARE_FOREIGN_CALL, and RTLD_FINALIZE_FOREIGN_CALL. Pretty
  143. printing.
  144. * sysdeps/x86_64/tcb-offsets.sym: Add RTLD_SAVESPACE_SSE.
  145. 2009-07-28 Ulrich Drepper <drepper@redhat.com>
  146. * pthread_mutex_lock.c [NO_INCR] (__pthread_mutex_cond_lock_adjust):
  147. New function.
  148. * pthreadP.h: Declare __pthread_mutex_cond_lock_adjust.
  149. * sysdeps/unix/sysv/linux/pthread-pi-defines.sym: Add ROBUST_BIT.
  150. * sysdeps/unix/sysv/linux/x86_64/pthread_cond_broadcast.S: Don't use
  151. requeue_pi for robust mutexes.
  152. * sysdeps/unix/sysv/linux/x86_64/pthread_cond_signal.S: Likewise.
  153. * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: Likewise.
  154. Don't only skip __pthread_mutex_cond_lock. Call instead
  155. __pthread_mutex_cond_lock_adjust.
  156. * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: Likewise.
  157. * pthread_mutex_unlock.c (__pthread_mutex_unlock_full): Minor
  158. optimization of PI mutex handling.
  159. 2009-07-27 Ulrich Drepper <drepper@redhat.com>
  160. [BZ #10418]
  161. * pthread_mutex_unlock.c (__pthread_mutex_unlock_full): Use _rel
  162. instead of of _acq variants of cmpxchg.
  163. 2009-07-23 Ulrich Drepper <drepper@redhat.com>
  164. * sysdeps/x86_64/configure.in: New file.
  165. * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: Fix error
  166. path when not using absolute timeout futex.
  167. 2009-07-20 Ulrich Drepper <drepper@redhat.com>
  168. * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: Minor
  169. optimizations of last changes.
  170. * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: Likewise.
  171. 2009-07-19 Ulrich Drepper <drepper@redhat.com>
  172. * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Define
  173. FUTEX_WAIT_REQUEUE_PI and FUTEX_CMP_REQUEUE_PI.
  174. * sysdeps/unix/sysv/linux/x86_64/pthread_cond_broadcast.S: If mutex
  175. is a PI mutex, then use FUTEX_CMP_REQUEUE_PI.
  176. * sysdeps/unix/sysv/linux/x86_64/pthread_cond_signal.S: Likewise.
  177. * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: If mutex
  178. is a PI mutex, then use FUTEX_WAIT_REQUEUE_PI.
  179. * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: Likewise.
  180. * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S
  181. (__pthread_cond_timedwait): Make more robust.
  182. 2009-07-18 Ulrich Drepper <drepper@redhat.com>
  183. * sysdeps/unix/sysv/linux/x86_64/lowlevelrobustlock.S
  184. (__lll_robust_timedlock_wait): If possible use FUTEX_WAIT_BITSET to
  185. directly use absolute timeout.
  186. * tst-sem5.c (do_test): Add test for premature timeout.
  187. * Makefile: Linu tst-sem5 with librt.
  188. * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedwrlock.S
  189. (pthread_rwlock_timedwrlock): If possible use FUTEX_WAIT_BITSET to
  190. directly use absolute timeout.
  191. * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedrdlock.S
  192. (pthread_rwlock_timedrdlock): Likewise.
  193. * tst-cond11.c (run_test): Add test to check that the timeout is
  194. long enough.
  195. * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S
  196. (__pthread_cond_timedwait): If possible use FUTEX_WAIT_BITSET to
  197. directly use absolute timeout.
  198. * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S
  199. (__pthread_cond_wait): Convert to using exception handler instead of
  200. registered unwind buffer.
  201. * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S
  202. (__pthread_cond_timedwait): Likewise.
  203. 2009-07-17 Ulrich Drepper <drepper@redhat.com>
  204. * sysdeps/unix/sysv/linux/x86_64/sem_timedwait.S (sem_timedwait):
  205. If possible use FUTEX_WAIT_BITSET|FUTEX_CLOCK_REALTIME to directly
  206. use absolute timeout.
  207. * sysdeps/unix/sysv/linux/x86_64/sem_wait.S (sem_wait): Optimize
  208. handling of uncontested semaphore.
  209. * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S
  210. (__condvar_cleanup): Rewrite to use cfi directives instead of
  211. hand-coded unwind tables.
  212. * sysdeps/unix/sysv/linux/x86_64/pthread_once.S (__pthread_once):
  213. Likewise.
  214. * sysdeps/unix/sysv/linux/x86_64/sem_wait.S (sem_wait): Likewise.
  215. * sysdeps/unix/sysv/linux/x86_64/sem_timedwait.S (sem_timedwait):
  216. Likewise.
  217. 2009-06-12 Ulrich Drepper <drepper@redhat.com>
  218. * Makefile (libpthread-routines): Add pthread_sigqueue.
  219. * Versions: Add pthread_sigqueue for GLIBC_2.11.
  220. * sysdeps/pthread/bits/sigthread.h: Declare pthread_sigqueue.
  221. * sysdeps/unix/sysv/linux/pthread_sigqueue.c: New file.
  222. 2009-06-11 Ulrich Drepper <drepper@redhat.com>
  223. [BZ #10262]
  224. * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S
  225. (LOAD_FUTEX_WAIT_ABS): Fix futex parameter in case private futexes
  226. cannot be assumed.
  227. Patch by Bryan Kadzban <bz-glibc@kdzbn.homelinux.net>.
  228. 2009-05-16 Ulrich Drepper <drepper@redhat.com>
  229. * libc-cancellation.c: Move __libc_cleanup_routine to...
  230. * libc-cleanup.c: ...here. New file.
  231. * Makefile (routines): Add libc-cleanup.
  232. * cancellation.c (__pthread_disable_asynccancel): Remove unnecessary
  233. test.
  234. * libc-cancellation.c: Use <nptl/cancellation.c: to define the code.
  235. * sysdeps/pthread/librt-cancellation.c: Likewise.
  236. [BZ #9924]
  237. * nptl-init.c: Renamed from init.c.
  238. * Makefile: Change all occurences of init.c to nptl-init.c.
  239. 2009-05-15 Ulrich Drepper <drepper@redhat.com>
  240. * cancellation.c (__pthread_disable_asynccancel): Correct the bits
  241. to test when deciding on the delay.
  242. * libc-cancellation.c (__libc_disable_asynccancel): Likewise.
  243. * pthread_cancel.c: Close race between deciding on sending a signal
  244. and setting the CANCELING_BIT bit.
  245. * cancellation.c (__pthread_disable_asynccancel): Don't return if
  246. thread is canceled.
  247. * libc-cancellation.c (__libc_disable_asynccancel): Likewise.
  248. 2009-04-27 Ulrich Drepper <drepper@redhat.com>
  249. * cancellation.c (__pthread_disable_asynccancel): Use THREAD_ATOMIC_AND
  250. is available.
  251. * libc-cancellation.c (__libc_disable_asynccancel): Likewise.
  252. * sysdeps/x86_64/tls.h: Define THREAD_ATOMIC_AND.
  253. * sysdeps/i386/tls.h: Likewise.
  254. (tcbhead_t): Add __private_tm member.
  255. 2009-04-26 Ulrich Drepper <drepper@redhat.com>
  256. * sem_open.c (sem_open): Rewrite initialization of initsem to
  257. avoid warnings.
  258. * sysdeps/unix/sysv/linux/libc_pthread_init.c (__libc_pthread_init):
  259. Avoid warning by using may_alias attribute on ptrhack.
  260. 2009-04-22 Ulrich Drepper <drepper@redhat.com>
  261. [BZ #10090]
  262. * pthread_attr_setschedparam.c (__pthread_attr_setschedparam):
  263. Check policy and priority for validity.
  264. Patch mostly by Zhang Xiliang <zhangxiliang@cn.fujitsu.com>.
  265. 2009-03-15 Ulrich Drepper <drepper@redhat.com>
  266. * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S
  267. (__pthread_cond_timedwait): Change to use cfi directives instead of
  268. hand-coded unwind sections.
  269. 2009-03-10 Ulrich Drepper <drepper@redhat.com>
  270. * init.c (nptl_freeres): Compile only for SHARED.
  271. 2009-03-09 Jakub Jelinek <jakub@redhat.com>
  272. * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Define
  273. FUTEX_WAIT_BITSET, FUTEX_WAKE_BITSET, FUTEX_CLOCK_REALTIME and
  274. FUTEX_BITSET_MATCH_ANY.
  275. 2009-02-27 Roland McGrath <roland@redhat.com>
  276. * init.c (__nptl_initial_report_events): Mark __attribute_used__.
  277. * pthread_create.c (__nptl_threads_events, __nptl_last_event): Likewise.
  278. 2009-02-26 Ulrich Drepper <drepper@redhat.com>
  279. * sysdeps/unix/sysv/linux/bits/posix_opt.h: Define
  280. _POSIX_THREAD_ROBUST_PRIO_INHERIT and
  281. _POSIX_THREAD_ROBUST_PRIO_PROTECT. Reset value of macros from
  282. 200112L to 200809L.
  283. 2009-02-25 Ulrich Drepper <drepper@redhat.com>
  284. * sysdeps/pthread/pthread.h: The robust mutex functions are in
  285. POSIX 2008.
  286. 2009-02-24 Ulrich Drepper <drepper@redhat.com>
  287. * sysdeps/unix/sysv/linux/bits/posix_opt.h (_BITS_POSIX_OPT_H):
  288. Unify name of include protector macro.
  289. 2009-02-14 SUGIOKA Toshinobu <sugioka@itonet.co.jp>
  290. * sysdeps/unix/sysv/linux/sh/lowlevellock.S: Define
  291. LOAD_FUTEX_WAIT_ABS even if (FUTEX_WAIT == 0).
  292. 2009-01-29 Ulrich Drepper <drepper@redhat.com>
  293. * sysdeps/pthread/unwind-forcedunwind.c: Encrypt all function
  294. pointer variables.
  295. * allocatestack.c (__free_stacks): Renamed from free_stacks.
  296. (__free_stack_cache): Removed. Change callers to call __free_stacks.
  297. * init.c (nptl_freeres): New function.
  298. (pthread_functions): Initialize ptr_freeres to nptl_freeres.
  299. * pthreadP.h: Don't declare __free_stack_cache. Declare __free_stacks.
  300. * sysdeps/pthread/unwind-forcedunwind.c (libgcc_s_handle): New
  301. variable.
  302. (pthread_cancel_init): Depend in libgcc_s_handle for decision to
  303. load DSO. Assign last.
  304. (__unwind_freeres): New function.
  305. * allocatestack.c (__reclaim_stacks): Reset in_flight_stack later
  306. for better debugging. No need to use stack_list_add here.
  307. 2009-01-14 Kaz Kojima <kkojima@rr.iij4u.or.jp>
  308. * sysdeps/unix/sysv/linux/sh/lowlevellock.S
  309. (__lll_timedlock_wait): Use FUTEX_WAIT_BITSET|FUTEX_CLOCK_REALTIME
  310. instead of computing relative timeout.
  311. * sysdeps/unix/sysv/linux/sh/lowlevellock.h: Define
  312. FUTEX_CLOCK_REALTIME and FUTEX_BITSET_MATCH_ANY.
  313. 2009-01-25 Ulrich Drepper <drepper@redhat.com>
  314. * pthread_mutex_lock.c (__pthread_mutex_lock): Remove unused label out.
  315. 2009-01-08 Ulrich Drepper <drepper@redhat.com>
  316. * sysdeps/pthread/list.h (list_add): Initialize new element first.
  317. (list_add_tail): Removed.
  318. 2009-01-07 Ulrich Drepper <drepper@redhat.com>
  319. * (in_flight_stack): New variable.
  320. (stack_list_del): New function. Use instead of list_del.
  321. (stack_list_add): New function. Use instead of list_add when adding to
  322. stack_cache and stack_used lists.
  323. (__reclaim_stacks): Complete operations on stack_cache and stack_used lists
  324. when the fork call interrupted another thread.
  325. 2009-01-04 Ulrich Drepper <drepper@redhat.com>
  326. * init.c (__pthread_initialize_minimal_internal): Optimize test
  327. FUTEX_CLOCK_REALTIME a bit.
  328. 2009-01-03 Ulrich Drepper <drepper@redhat.com>
  329. * init.c (__pthread_initialize_minimal_internal): Cheat a bit by
  330. only passing five parameters to FUTEX_WAIT_BITSET call.
  331. * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S
  332. (__lll_timedlock_wait): Use FUTEX_WAIT_BITSET|FUTEX_CLOCK_REALTIME
  333. instead of computing relative timeout.
  334. 2009-01-02 Ulrich Drepper <drepper@redhat.com>
  335. * init.c (__pthread_initialize_minimal_internal): Check for
  336. FUTEX_CLOCK_REALTIME flag.
  337. * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S (__lll_timedlock_wait):
  338. Use FUTEX_WAIT_BITSET|FUTEX_CLOCK_REALTIME instead of computing
  339. relative timeout.
  340. * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Define
  341. FUTEX_CLOCK_REALTIME and FUTEX_BITSET_MATCH_ANY.
  342. * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Likewise.
  343. * sysdeps/unix/sysv/linux/ia64/lowlevellock.h: Likewise.
  344. * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Likewise.
  345. * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
  346. 2008-12-09 Ulrich Drepper <drepper@redhat.com>
  347. * sysdeps/pthread/pthread.h (pthread_cleanup_pop): Use { } as empty
  348. loop body instead of ; to avoid gcc warnings.
  349. (pthread_cleanup_pop_restore_np): Likewise.
  350. Patch by Caolán McNamara <caolanm@redhat.com>.
  351. 2008-12-09 Jakub Jelinek <jakub@redhat.com>
  352. * pthread_mutex_lock.c (__pthread_mutex_lock): Handle only the
  353. fast path here, for robust/PI/PP mutexes call
  354. __pthread_mutex_lock_full. Don't use switch, instead use a series
  355. of ifs according to their probability.
  356. (__pthread_mutex_lock_full): New function.
  357. * pthread_mutex_unlock.c: Include assert.h.
  358. (__pthread_mutex_unlock_usercnt): Handle only the
  359. fast path here, for robust/PI/PP mutexes call
  360. __pthread_mutex_unlock_full. Don't use switch, instead use a series
  361. of ifs according to their probability.
  362. (__pthread_mutex_unlock_full): New function.
  363. * sysdeps/unix/sysv/linux/pthread_mutex_cond_lock.c
  364. (__pthread_mutex_lock_full): Define.
  365. 2008-12-08 Ulrich Drepper <drepper@redhat.com>
  366. * sysdeps/x86_64/tls.h (tcbhead_t): Add fields reserved for TM
  367. implementation. Add necessary padding and.
  368. * descr.h (struct pthread): Increase padding for tcbhead_t to 24
  369. words.
  370. 2008-12-04 Kaz Kojima <kkojima@rr.iij4u.or.jp>
  371. * sysdeps/unix/sysv/linux/sh/lowlevellock.h: Define FUTEX_WAIT_BITSET
  372. and FUTEX_WAKE_BITSET.
  373. 2008-12-02 Ulrich Drepper <drepper@redhat.com>
  374. * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Define FUTEX_WAIT_BITSET
  375. and FUTEX_WAKE_BITSET.
  376. * sysdeps/unix/sysv/linux/ia64/lowlevellock.h: Likewise.
  377. * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Likewise.
  378. * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
  379. * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
  380. 2008-11-25 Roland McGrath <roland@redhat.com>
  381. * sysdeps/alpha, sysdeps/unix/sysv/linux/alpha:
  382. Subdirectories moved to ports repository as
  383. sysdeps/.../nptl subdirectories.
  384. 2008-11-12 Jakub Jelinek <jakub@redhat.com>
  385. [BZ #7008]
  386. * pthread_condattr_setclock.c (pthread_condattr_setclock): Fix masking
  387. of old value.
  388. * pthread_cond_init.c (__pthread_cond_init): Fix
  389. cond->__data.__nwaiters initialization.
  390. * Makefile (tests): Add tst-cond23.
  391. * tst-cond23.c: New test.
  392. 2008-11-07 Jakub Jelinek <jakub@redhat.com>
  393. * sysdeps/pthread/malloc-machine.h (MALLOC): Adjust __libc_tsd_define
  394. arguments.
  395. (tsd_setspecific, tsd_getspecific): Adjust __libc_tsd_{set,get}
  396. arguments.
  397. 2008-11-01 Ulrich Drepper <drepper@redhat.com>
  398. [BZ #6955]
  399. * pthread_mutex_lock.c: Add support for private PI mutexes.
  400. * pthread_mutex_timedlock.c: Likewise.
  401. * pthread_mutex_trylock.c: Likewise.
  402. * pthread_mutex_unlock.c: Likewise.
  403. Patch mostly by Ben Jackson <ben@ben.com>.
  404. 2008-10-31 Ulrich Drepper <drepper@redhat.com>
  405. [BZ #6843]
  406. * sysdeps/pthread/gai_misc.h (__gai_create_helper_thread):
  407. Increase stack size for helper thread.
  408. 2008-10-06 Martin Schwidefsky <schwidefsky@de.ibm.com>
  409. * sysdeps/s390/tls.h (THREAD_SET_STACK_GUARD): Add empty inline
  410. assembly with a clobber list for access registers a0 and a1.
  411. 2008-09-11 Martin Schwidefsky <schwidefsky@de.ibm.com>
  412. * sysdeps/unix/sysv/linux/fork.c (__libc_fork): Add memory barrier
  413. to force runp->refcntr to be read from memory.
  414. 2008-09-08 Richard Guenther <rguenther@suse.de>
  415. * sysdeps/unix/sysv/linux/i386/lowlevellock.h (lll_lock,
  416. lll_robust_lock, lll_cond_lock, lll_robust_cond_lock,
  417. lll_timedlock, lll_robust_timedlock, lll_unlock,
  418. lll_robust_unlock): Promote private to int.
  419. 2008-08-15 Ulrich Drepper <drepper@redhat.com>
  420. * sysdeps/x86_64/pthreaddef.h: Remove ARCH_MAP_FLAGS and
  421. ARCH_RETRY_MMAP definitions.
  422. * allocatestack.c: Remove definition of ARCH_MAP_FLAGS.
  423. Define MAP_STACK when not defined.
  424. (allocate_stack): Use MAP_STACK instead of ARCH_MAP_FLAGS. Remove
  425. handling of ARCH_RETRY_MMAP.
  426. 2008-07-30 Ulrich Drepper <drepper@redhat.com>
  427. * tst-align2.c (f): Print message that f is reached.
  428. 2008-04-28 Hiroki Kaminaga <kaminaga@sm.sony.co.jp>
  429. [BZ #6740]
  430. * sysdeps/powerpc/tcb-offsets.sym (PRIVATE_FUTEX_OFFSET): Guard symbol
  431. definition with #ifndef __ASSUME_PRIVATE_FUTEX.
  432. 2008-07-25 Ulrich Drepper <drepper@redhat.com>
  433. * sysdeps/unix/sysv/linux/mq_notify.c (init_mq_netlink): Use
  434. SOCK_CLOEXEC if possible.
  435. 2008-05-29 Ulrich Drepper <drepper@redhat.com>
  436. * Makefile (tests): Add tst-rwlock2a.
  437. * tst-rwlock2.c: Use TYPE macro to decide what rwlock type to use.
  438. * tst-rwlock2a.c: New file.
  439. 2008-06-12 Ulrich Drepper <drepper@redhat.com>
  440. * sysdeps/pthread/pthread.h: Remove inadvertant checkin.
  441. 2008-05-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
  442. * sysdeps/pthread/pthread.h: Fix typo in comment.
  443. 2008-05-28 Ulrich Drepper <drepper@redhat.com>
  444. * sysdeps/pthread/createthread.c (do_clone): Pass accurate length
  445. of CPU set to the kernel.
  446. 2008-05-23 Paul Pluzhnikov <ppluzhnikov@google.com>
  447. * sysdeps/unix/sysv/linux/i386/i486/pthread_barrier_wait.S: Add
  448. cfi directives.
  449. * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_broadcast.S: Likewise.
  450. * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S: Likewise.
  451. * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_rdlock.S: Likewise.
  452. * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_unlock.S: Likewise.
  453. * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_wrlock.S: Likewise.
  454. * sysdeps/unix/sysv/linux/i386/i486/sem_post.S: Likewise.
  455. 2008-05-22 Paul Pluzhnikov <ppluzhnikov@google.com>
  456. * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S: Add
  457. cfi directives.
  458. * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S:
  459. Likewise.
  460. * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedrdlock.S:
  461. Likewise.
  462. * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedwrlock.S:
  463. Likewise.
  464. 2008-05-26 Ulrich Drepper <drepper@redhat.com>
  465. * tst-typesizes.c: Explicitly check __SIZEOF_PTHREAD_* constants.
  466. 2008-05-20 Jakub Jelinek <jakub@redhat.com>
  467. David S. Miller <davem@davemloft.net>
  468. * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile: New file.
  469. 2008-05-10 Ulrich Drepper <drepper@redhat.com>
  470. * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_rdlock.S: Access
  471. __pshared correctly.
  472. * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S:
  473. Likewise.
  474. * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S:
  475. Likewise.
  476. * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_unlock.S:
  477. Likewise.
  478. * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_wrlock.S:
  479. Likewise.
  480. Reported by Clemens Kolbitsch <clemens.kol@gmx.at>.
  481. 2008-04-14 David S. Miller <davem@davemloft.net>
  482. * sysdeps/unix/sysv/linux/sparc/sparc32/sem_wait.c
  483. (__old_sem_wait): Fix argument to lll_futex_wait().
  484. 2007-11-26 Daniel Jacobowitz <dan@codesourcery.com>
  485. * pthread_create.c: Require pthread_mutex_trylock and
  486. pthread_key_delete for libgcc.
  487. 2008-04-08 Jakub Jelinek <jakub@redhat.com>
  488. [BZ #6020]
  489. * sysdeps/unix/sysv/linux/sparc/lowlevellock.h
  490. (lll_futex_wake_unlock): Add private argument to the pre-v9 macro.
  491. Patch by Sunil Amitkumar Janki <devel.sjanki@gmail.com>.
  492. 2008-03-27 Ulrich Drepper <drepper@redhat.com>
  493. * sysdeps/unix/sysv/linux/bits/local_lim.h: Undefine ARG_MAX if
  494. <linux/limits.h> has defined it.
  495. * sysdeps/unix/sysv/linux/alpha/bits/local_lim.h: Likewise.
  496. * sysdeps/unix/sysv/linux/ia64/bits/local_lim.h: Likewise.
  497. * sysdeps/unix/sysv/linux/powerpc/bits/local_lim.h: Likewise.
  498. * sysdeps/unix/sysv/linux/sparc/bits/local_lim.h: Likewise.
  499. 2008-03-18 Jakub Jelinek <jakub@redhat.com>
  500. * sysdeps/unix/sysv/linux/ia64/dl-sysdep.h: Use __ASSEMBLER__ instead
  501. of ASSEMBLER.
  502. * sysdeps/unix/sysv/linux/i386/i686/dl-sysdep.h: Likewise.
  503. * sysdeps/unix/sysv/linux/i386/dl-sysdep.h: Likewise.
  504. 2008-03-14 Ulrich Drepper <drepper@redhat.com>
  505. * sysdeps/unix/sysv/linux/i386/dl-sysdep.h: Define
  506. HAVE_DL_DISCOVER_OSVERSION.
  507. * sysdeps/unix/sysv/linux/i386/i686/dl-sysdep.h: Likewise.
  508. * sysdeps/unix/sysv/linux/ia64/dl-sysdep.h: Likewise.
  509. 2008-03-07 Ulrich Drepper <drepper@redhat.com>
  510. [BZ #5778]
  511. * sysdeps/unix/sysv/linux/bits/posix_opt.h: Change
  512. _POSIX_CHOWN_RESTRICTED value to zero.
  513. 2008-01-31 Roland McGrath <roland@redhat.com>
  514. * Makefile (omit-deps): Variable removed.
  515. 2008-01-30 Ulrich Drepper <drepper@redhat.com>
  516. * sysdeps/unix/sysv/linux/x86_64/sem_post.S (sem_post): Avoid
  517. unnecessary addr32 prefix.
  518. 2008-01-29 Roland McGrath <roland@redhat.com>
  519. * Makeconfig (ptw-CPPFLAGS, sysd-rules-patterns): New variables.
  520. 2008-01-22 Kaz Kojima <kkojima@rr.iij4u.or.jp>
  521. * sysdeps/unix/sysv/linux/sh/sem_post.S: Don't overflow value field.
  522. 2008-01-21 Kaz Kojima <kkojima@rr.iij4u.or.jp>
  523. * sysdeps/unix/sysv/linux/sh/lowlevel-atomic.h (XADD): Use
  524. a scratch register.
  525. * sysdeps/unix/sysv/linux/sh/lowlevellock.S
  526. (__lll_lock_wait_private): Fix typo.
  527. * sysdeps/unix/sysv/linux/sh/pthread_barrier_wait.S
  528. (pthread_barrier_wait): Likewise. Adjust XADD use.
  529. * sysdeps/unix/sysv/linux/sh/sem_post.S (__new_sem_post):
  530. Adjust XADD use.
  531. * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedrdlock.S
  532. (pthread_rwlock_timedrdlock): Return correct return value.
  533. * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedwrlock.S
  534. (pthread_rwlock_timedwrlock): Likewise.
  535. 2008-01-15 Ulrich Drepper <drepper@redhat.com>
  536. * tst-eintr2.c (do_test): make sure that if mutex_lock in main
  537. thread returns the program exits with an error code.
  538. 2008-01-10 Ulrich Drepper <drepper@redhat.com>
  539. * pthread-errnos.sym: Add EOVERFLOW.
  540. * sysdeps/unix/sysv/linux/structsem.sym: Add SEM_VALUE_MAX.
  541. * sysdeps/unix/sysv/linux/sem_post.c: Don't overflow value field.
  542. * sysdeps/unix/sysv/linux/i386/i486/sem_post.S: Likewise.
  543. * sysdeps/unix/sysv/linux/x86_64/sem_post.S: Likewise.
  544. 2007-12-14 Ulrich Drepper <drepper@redhat.com>
  545. * sysdeps/x86_64/pthreaddef.h (ARCH_RETRY_MMAP): Take additional
  546. parameter. Passed it as permission to mmap.
  547. * allocatestack.c (allocate_stack): Pass prot as second parameter
  548. to ARCH_RETRY_MMAP.
  549. 2007-12-12 Ulrich Drepper <drepper@redhat.com>
  550. * tst-basic7.c: Allocate memory for the stack.
  551. [BZ #5465]
  552. * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S [!SHARED]
  553. (__pthread_cond_timedwait): Don't use VDSO.
  554. Patch by Michal Januszewski.
  555. 2007-12-07 Ulrich Drepper <drepper@redhat.com>
  556. [BZ #5455]
  557. * sysdeps/pthread/pthread.h [!__EXCEPTIONS] (pthread_cleanup_pop):
  558. Allow label before pthread_cleanup_pop.
  559. (pthread_cleanup_pop_restore_np): Likewise.
  560. 2007-12-04 Kaz Kojima <kkojima@rr.iij4u.or.jp>
  561. * sysdeps/unix/sysv/linux/sh/lowlevellock.S (__lll_timedlock_wait):
  562. Store 2 before returning ETIMEDOUT.
  563. 2007-11-23 Ulrich Drepper <drepper@redhat.com>
  564. * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S (__lll_timedlock_wait):
  565. Store 2 before returning ETIMEDOUT.
  566. * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S: Likewise
  567. * sysdeps/unix/sysv/linux/lowlevellock.c: Likewise.
  568. (__lll_lock_wait_private): Optimize.
  569. (__lll_lock_wait): Likewise.
  570. 2007-11-20 Jakub Jelinek <jakub@redhat.com>
  571. * sysdeps/pthread/pthread.h (pthread_cleanup_push,
  572. pthread_cleanup_push_defer_np): Add extra (void *) cast to shut up
  573. g++ 4.1 and 4.2 -Wstrict-aliasing warnings.
  574. 2007-11-08 Ulrich Drepper <drepper@redhat.com>
  575. [BZ #5240]
  576. * sysdeps/unix/sysv/linux/lowlevellock.c (__lll_timedlock_wait):
  577. If we time out, try one last time to lock the futex to avoid
  578. losing a wakeup signal.
  579. * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S: Likewise.
  580. * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
  581. [BZ #5245]
  582. * sysdeps/pthread/createthread.c (do_clone): Translate clone error
  583. if necessary.
  584. 2007-11-07 Ulrich Drepper <drepper@redhat.com>
  585. [BZ #5245]
  586. * allocatestack.c (allocate_stack): Change ENOMEM error in case
  587. mmap failed to EAGAIN.
  588. * Makefile (tests): Add tst-basic7.
  589. * tst-basic7.c: New file.
  590. 2007-11-05 Ulrich Drepper <drepper@redhat.com>
  591. * sysdeps/unix/sysv/linux/register-atfork.c (__register_atfork):
  592. Use __linkin_atfork.
  593. 2007-11-03 Mike Frysinger <vapier@gentoo.org>
  594. * sysdeps/unix/sysv/linux/sh/lowlevellock.S (LOAD_FUTEX_WAIT): Add
  595. missing line continuations.
  596. * sysdeps/unix/sysv/linux/sh/lowlevelrobustlock.S (LOAD_FUTEX_WAIT,
  597. LOAD_FUTEX_WAKE): Likewise. Also add missing 3rd parameter.
  598. 2007-10-28 Ulrich Drepper <drepper@redhat.com>
  599. [BZ #5220]
  600. * sysdeps/unix/sysv/linux/kernel-posix-timers.h: Declare
  601. __active_timer_sigev_thread and __active_timer_sigev_thread_lock.
  602. (struct timer): Add next element.
  603. * sysdeps/unix/sysv/linux/timer_create.c: For SIGEV_THREAD timers,
  604. enqueue timer structure into __active_timer_sigev_thread list.
  605. * sysdeps/unix/sysv/linux/timer_delete.c: For SIGEV_THREAD timers,
  606. remove timer struct from __active_timer_sigev_thread.
  607. * sysdeps/unix/sysv/linux/timer_routines.c (timer_helper_thread):
  608. Before using timer structure make sure it is still on the
  609. __active_timer_sigev_thread list. Keep lock until done.
  610. Define __active_timer_sigev_thread and
  611. __active_timer_sigev_thread_lock.
  612. 2007-10-27 Ulrich Drepper <drepper@redhat.com>
  613. * sysdeps/pthread/malloc-machine.h: Define ATFORK_MEM.
  614. Redefine thread_atfork for use of ATFORK_MEM.
  615. * sysdeps/unix/sysv/linux/fork.h: Define __linkin_atfork.
  616. * sysdeps/unix/sysv/linux/register-atfork.c (__linkin_atfork): New
  617. function.
  618. * sysdeps/unix/sysv/linux/unregister-atfork.c (__unregister_atfork):
  619. Use atomic operation when removing first element of list.
  620. 2007-10-17 Jakub Jelinek <jakub@redhat.com>
  621. * sysdeps/unix/sysv/linux/i386/i486/sem_post.S (__old_sem_post): New
  622. routine instead of an alias to __new_sem_post.
  623. 2007-10-15 Jakub Jelinek <jakub@redhat.com>
  624. * init.c (__pthread_initialize_minimal): Initialize word to appease
  625. valgrind.
  626. 2007-10-10 Jakub Jelinek <jakub@redhat.com>
  627. * sysdeps/pthread/bits/libc-lock.h (__libc_rwlock_init): Inside of
  628. libc.so just clear NAME.
  629. (__libc_rwlock_fini): Nop inside of libc.so.
  630. * tst-initializers1.c (main): Test if PTHREAD_RWLOCK_INITIALIZER is
  631. all zeros.
  632. 2007-09-02 Ulrich Drepper <drepper@redhat.com>
  633. * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S
  634. (__pthread_cond_wait): Fix unlocking of internal lock after mutex
  635. unlocking failed.
  636. Patch by Luca Barbieri <luca.barbieri@gmail.com>.
  637. 2007-08-21 Ulrich Drepper <drepper@redhat.com>
  638. [BZ #4938]
  639. * allocatestack.c (__reclaim_stacks): Clear the TSD in the
  640. reclaimed stack if necessary.
  641. * Makefile (tests): Add tst-tsd6.
  642. * tst-tsd6.c: New file.
  643. 2007-08-21 Jakub Jelinek <jakub@redhat.com>
  644. * sysdeps/unix/sysv/linux/alpha/lowlevellock.h (lll_robust_dead):
  645. Add private argument.
  646. 2007-08-20 Ulrich Drepper <drepper@redhat.com>
  647. * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S
  648. (__pthread_cond_timedwait): Use clock_gettime from VDSO if possible.
  649. 2007-08-16 Jakub Jelinek <jakub@redhat.com>
  650. * sysdeps/unix/sysv/linux/alpha/lowlevellock.h
  651. (__lll_robust_timedlock): Pass private as last argument to
  652. __lll_robust_timedlock_wait.
  653. (__lll_unlock): Fix a pasto.
  654. 2007-08-15 Jakub Jelinek <jakub@redhat.com>
  655. * sysdeps/unix/sysv/linux/sparc/internaltypes.h (sparc_new_sem,
  656. sparc_old_sem): New structs.
  657. * sysdeps/unix/sysv/linux/sparc/sparc32/sem_wait.c
  658. (__sem_wait_cleanup): New function.
  659. (__new_sem_wait): Use sparc_new_sem structure. Bump and afterwards
  660. decrease nwaiters. Register __sem_wait_cleanup as cleanup handler.
  661. Pass isem->private ^ FUTEX_PRIVATE_FLAG as last argument to
  662. lll_futex_wait.
  663. (__old_sem_wait): New function.
  664. * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/sem_wait.c: Include
  665. nptl/sysdeps/unix/sysv/linux/sparc version.
  666. * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/sem_timedwait.c:
  667. Likewise.
  668. * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/sem_post.c: Likewise.
  669. * sysdeps/unix/sysv/linux/sparc/sparc32/sem_trywait.c
  670. (__new_sem_trywait): Use sparc_old_sem structure.
  671. * sysdeps/unix/sysv/linux/sparc/sparc32/sem_timedwait.c
  672. (sem_timedwait): Use sparc_new_sem structure. Bump and afterwards
  673. decrease nwaiters. Register __sem_wait_cleanup as cleanup handler.
  674. Pass isem->private ^ FUTEX_PRIVATE_FLAG as last argument to
  675. lll_futex_timed_wait.
  676. * sysdeps/unix/sysv/linux/sparc/sparc32/sem_post.c (__new_sem_post):
  677. Use sparc_new_sem structure. Only wake if nwaiters > 0. Pass
  678. isem->private ^ FUTEX_PRIVATE_FLAG as last argument to
  679. lll_futex_wake.
  680. (__old_sem_post): New function.
  681. * sysdeps/unix/sysv/linux/sparc/sem_wait.c: New file.
  682. * sysdeps/unix/sysv/linux/sparc/sem_init.c: New file.
  683. * sysdeps/unix/sysv/linux/sparc/sem_timedwait.c: New file.
  684. * sysdeps/unix/sysv/linux/sparc/sem_post.c: New file.
  685. * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/sem_init.c: Remove.
  686. * sysdeps/unix/sysv/linux/sparc/sparc32/sem_init.c: Remove.
  687. 2007-08-14 Kaz Kojima <kkojima@rr.iij4u.or.jp>
  688. * sysdeps/unix/sysv/linux/sh/pthread_cond_broadcast.S
  689. (__pthread_cond_broadcast): Pass LLL_PRIVATE to lll_* and or
  690. FUTEX_PRIVATE_FLAG into SYS_futex op if cv is process private.
  691. Don't use FUTEX_CMP_REQUEUE if dep_mutex is not process private.
  692. * sysdeps/unix/sysv/linux/shpthread_cond_signal.S
  693. (__pthread_cond_signal): Pass LLL_PRIVATE to lll_* and or
  694. FUTEX_PRIVATE_FLAG into SYS_futex op if cv is process private.
  695. Use FUTEX_WAKE_OP.
  696. * sysdeps/unix/sysv/linux/sh/pthread_cond_wait.S: Include
  697. kernel-features.h and tcb-offsets.h.
  698. (__pthread_cond_wait, __condvar_w_cleanup): Pass LLL_PRIVATE to
  699. lll_* and or FUTEX_PRIVATE_FLAG into SYS_futex op if cv is
  700. process private.
  701. * sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S: Include
  702. tcb-offsets.h.
  703. (__pthread_cond_timedwait, __condvar_tw_cleanup): Pass LLL_PRIVATE
  704. to lll_* and or FUTEX_PRIVATE_FLAG into SYS_futex op if cv is
  705. process private.
  706. * sysdeps/unix/sysv/linux/sh/pthread_once.S: Use #ifdef
  707. __ASSUME_PRIVATE_FUTEX instead of #if __ASSUME_PRIVATE_FUTEX.
  708. * sysdeps/unix/sysv/linux/sh/pthread_rwlock_rdlock.S: Likewise.
  709. * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedrdlock.S: Likewise.
  710. * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedwrlock.S: Likewise.
  711. * sysdeps/unix/sysv/linux/sh/pthread_rwlock_unlock.S: Likewise.
  712. * sysdeps/unix/sysv/linux/sh/pthread_rwlock_wrlock.S: Likewise.
  713. 2007-08-14 Jakub Jelinek <jakub@redhat.com>
  714. * sysdeps/unix/sysv/linux/lowlevellock.c: Comment fix.
  715. * sysdeps/unix/sysv/linux/sparc/sparc32/lowlevellock.c
  716. (__lll_timedwait_tid): Pass LLL_SHARED as 4th argument to
  717. lll_futex_timed_wait.
  718. * sysdeps/unix/sysv/linux/alpha/lowlevellock.h (__lll_unlock,
  719. __lll_robust_unlock): Rewrite as macros instead of inline functions.
  720. * sysdeps/unix/sysv/linux/s390/lowlevellock.h (__lll_unlock,
  721. __lll_robust_unlock, __lll_wait_tid): Likewise.
  722. 2007-08-13 Jakub Jelinek <jakub@redhat.com>
  723. * sysdeps/unix/sysv/linux/i386/lowlevellock.h (__lll_private_flag):
  724. Fix a pasto.
  725. * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_broadcast.S
  726. (__pthread_cond_broadcast): Pass LLL_PRIVATE to lll_* and or
  727. FUTEX_PRIVATE_FLAG into SYS_futex op if cv is process private.
  728. Don't use FUTEX_CMP_REQUEUE if dep_mutex is not process private.
  729. * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S
  730. (__pthread_cond_signal): Pass LLL_PRIVATE to lll_* and or
  731. FUTEX_PRIVATE_FLAG into SYS_futex op if cv is process private.
  732. * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Include
  733. kernel-features.h.
  734. (__pthread_cond_wait, __condvar_w_cleanup): Pass LLL_PRIVATE to
  735. lll_* and or FUTEX_PRIVATE_FLAG into SYS_futex op if cv is
  736. process private. Switch DW_CFA_advance_loc1 and some
  737. DW_CFA_advance_loc .eh_frame opcodes to DW_CFA_advance_loc4.
  738. * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S
  739. (__pthread_cond_timedwait, __condvar_tw_cleanup): Pass LLL_PRIVATE to
  740. lll_* and or FUTEX_PRIVATE_FLAG into SYS_futex op if cv is
  741. process private. Switch DW_CFA_advance_loc{1,2} and some
  742. DW_CFA_advance_loc .eh_frame opcodes to DW_CFA_advance_loc4.
  743. * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_rdlock.S: Use
  744. #ifdef __ASSUME_PRIVATE_FUTEX instead of #if __ASSUME_PRIVATE_FUTEX.
  745. * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S:
  746. Likewise.
  747. * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_unlock.S: Likewise.
  748. * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_wrlock.S: Likewise.
  749. * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S:
  750. Likewise.
  751. * sysdeps/unix/sysv/linux/x86_64/pthread_cond_broadcast.S
  752. (__pthread_cond_broadcast): Compare %r8 instead of
  753. dep_mutex-cond_*(%rdi) with $-1.
  754. * sysdeps/unix/sysv/linux/x86_64/pthread_cond_signal.S
  755. (__pthread_cond_signal): Xor FUTEX_WAKE_OP with FUTEX_WAKE instead
  756. of oring.
  757. 2007-08-13 Ulrich Drepper <drepper@redhat.com>
  758. * sysdeps/unix/sysv/linux/i386/i786/Implies: New file.
  759. 2007-08-13 Jakub Jelinek <jakub@redhat.com>
  760. * allocatestack.c: Include kernel-features.h.
  761. * pthread_create.c: Likewise.
  762. * pthread_mutex_init.c: Likewise.
  763. * init.c: Likewise.
  764. * pthread_cond_timedwait.c: Likewise.
  765. * sysdeps/unix/sysv/linux/alpha/lowlevellock.h: Likewise.
  766. * sysdeps/unix/sysv/linux/ia64/lowlevellock.h: Likewise.
  767. * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_wrlock.S: Likewise.
  768. * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_rdlock.S: Likewise.
  769. * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_unlock.S: Likewise.
  770. * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: Likewise.
  771. * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S:
  772. Likewise.
  773. * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S:
  774. Likewise.
  775. * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
  776. * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Likewise.
  777. * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Likewise.
  778. * sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S: Likewise.
  779. 2007-08-12 Jakub Jelinek <jakub@redhat.com>
  780. * sysdeps/unix/sysv/linux/sparc/bits/pthreadtypes.h
  781. [__WORDSIZE=32] (pthread_rwlock_t): Split __flags element into four
  782. byte elements. One of them is the new __shared element.
  783. [__WORDSIZE=64] (pthread_rwlock_t): Renamed __pad1 element to __shared,
  784. adjust names of other padding elements.
  785. * sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h
  786. [__WORDSIZE=32] (pthread_rwlock_t): Split __flags element into four
  787. byte elements. One of them is the new __shared element.
  788. [__WORDSIZE=64] (pthread_rwlock_t): Renamed __pad1 element to __shared,
  789. adjust names of other padding elements.
  790. * sysdeps/unix/sysv/linux/ia64/bits/pthreadtypes.h (pthread_rwlock_t):
  791. Renamed __pad1 element to __shared, adjust names of other padding
  792. elements.
  793. * sysdeps/unix/sysv/linux/alpha/bits/pthreadtypes.h
  794. (pthread_rwlock_t): Likewise.
  795. * sysdeps/unix/sysv/linux/ia64/lowlevellock.h (__lll_lock): Fix a
  796. typo.
  797. 2007-08-09 Anton Blanchard <anton@samba.org>
  798. * sysdeps/unix/sysv/linux/powerpc/pthread_spin_unlock.c: New file.
  799. 2007-08-12 Ulrich Drepper <drepper@redhat.com>
  800. * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: Include
  801. <kernel-features.h>.
  802. * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: Likewise.
  803. 2007-08-11 Ulrich Drepper <drepper@redhat.com>
  804. * pthreadP.h (PTHREAD_ROBUST_MUTEX_PSHARED): Define.
  805. * pthread_mutex_lock.c: Use it instead of PTHREAD_MUTEX_PSHARED when
  806. dealing with robust mutexes.
  807. * pthread_mutex_timedlock.c: Likewise.
  808. * pthread_mutex_trylock.c: Likewise.
  809. * pthread_mutex_unlock.c: Likewise.
  810. * sysdeps/unix/sysv/linux/pthread_mutex_cond_lock.c: Likewise.
  811. 2007-08-06 Jakub Jelinek <jakub@redhat.com>
  812. * pthreadP.h (PTHREAD_MUTEX_PSHARED_BIT): Define.
  813. (PTHREAD_MUTEX_TYPE): Mask __kind with 127.
  814. (PTHREAD_MUTEX_PSHARED): Define.
  815. * pthread_mutex_init.c (__pthread_mutex_init): Set
  816. PTHREAD_MUTEX_PSHARED_BIT for pshared or robust
  817. mutexes.
  818. * pthread_mutex_lock.c (LLL_MUTEX_LOCK): Take mutex as argument
  819. instead of its __data.__lock field, pass PTHREAD_MUTEX_PSHARED
  820. as second argument to lll_lock.
  821. (LLL_MUTEX_TRYLOCK): Take mutex as argument
  822. instead of its __data.__lock field.
  823. (LLL_ROBUST_MUTEX_LOCK): Take mutex as argument instead of its
  824. __data.__lock field, pass PTHREAD_MUTEX_PSHARED as second argument
  825. to lll_robust_lock.
  826. (__pthread_mutex_lock): Update LLL_MUTEX_LOCK, LLL_MUTEX_TRYLOCK,
  827. LLL_ROBUST_MUTEX_LOCK users, use PTHREAD_MUTEX_TYPE (mutex)
  828. instead of mutex->__data.__kind directly, pass
  829. PTHREAD_MUTEX_PSHARED (mutex) to lll_unlock and lll_futex_wait.
  830. * pthread_mutex_trylock.c (__pthread_mutex_trylock): Use
  831. PTHREAD_MUTEX_TYPE (mutex) instead of mutex->__data.__kind
  832. directly, pass PTHREAD_MUTEX_PSHARED (mutex) to lll_unlock.
  833. (pthread_mutex_timedlock): Pass PTHREAD_MUTEX_PSHARED (mutex)
  834. to lll_timedlock, lll_robust_timedlock, lll_unlock and
  835. lll_futex_timed_wait. Use PTHREAD_MUTEX_TYPE (mutex) instead
  836. of mutex->__data.__kind directly.
  837. * pthread_mutex_timedlock.c (pthread_mutex_timedlock): Pass
  838. PTHREAD_MUTEX_PSHARED (mutex) to lll_timedlock,
  839. lll_robust_timedlock, lll_unlock and lll_futex_timed_wait. Use
  840. PTHREAD_MUTEX_TYPE (mutex) instead of mutex->__data.__kind directly.
  841. * pthread_mutex_unlock.c (__pthread_mutex_unlock_usercnt): Pass
  842. PTHREAD_MUTEX_PSHARED (mutex) to lll_unlock, lll_robust_unlock
  843. and lll_futex_wake.
  844. * pthread_mutex_setprioceiling.c (pthread_mutex_setprioceiling): Pass
  845. PTHREAD_MUTEX_PSHARED (mutex) to lll_futex_wait and lll_futex_wake.
  846. Use PTHREAD_MUTEX_TYPE (mutex) instead of mutex->__data.__kind
  847. directly.
  848. * sysdeps/unix/sysv/linux/pthread_mutex_cond_lock.c (LLL_MUTEX_LOCK):
  849. Take mutex as argument instead of its __data.__lock field, pass
  850. PTHREAD_MUTEX_PSHARED as second argument to lll_cond_lock.
  851. (LLL_MUTEX_TRYLOCK): Take mutex as argument instead of its
  852. __data.__lock field.
  853. (LLL_ROBUST_MUTEX_LOCK): Take mutex as argument instead of its
  854. __data.__lock field, pass PTHREAD_MUTEX_PSHARED as second argument
  855. to lll_robust_cond_lock.
  856. * pthread_cond_broadcast.c (__pthread_cond_broadcast): Add pshared
  857. variable, pass it to lll_lock, lll_unlock, lll_futex_requeue and
  858. lll_futex_wake. Don't use lll_futex_requeue if dependent mutex
  859. has PTHREAD_MUTEX_PSHARED_BIT bit set in its __data.__kind.
  860. * pthread_cond_destroy.c (__pthread_cond_destroy): Add pshared
  861. variable, pass it to lll_lock, lll_unlock, lll_futex_wake and
  862. lll_futex_wait.
  863. * pthread_cond_signal.c (__pthread_cond_signal): Add pshared
  864. variable, pass it to lll_lock, lll_unlock, lll_futex_wake_unlock and
  865. lll_futex_wake.
  866. * pthread_cond_timedwait.c (__pthread_cond_wait): Add
  867. pshared variable, pass it to lll_lock, lll_unlock,
  868. lll_futex_timedwait and lll_futex_wake.
  869. * pthread_cond_wait.c (__condvar_cleanup, __pthread_cond_wait): Add
  870. pshared variable, pass it to lll_lock, lll_unlock, lll_futex_wait
  871. and lll_futex_wake.
  872. * sysdeps/unix/sysv/linux/alpha/lowlevellock.h (lll_futex_requeue,
  873. lll_futex_wake_unlock): Add private argument, use __lll_private_flag
  874. macro.
  875. * sysdeps/unix/sysv/linux/ia64/lowlevellock.h (lll_futex_requeue,
  876. lll_futex_wake_unlock): Likewise.
  877. * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h (lll_futex_requeue):
  878. Likewise.
  879. * sysdeps/unix/sysv/linux/sparc/lowlevellock.h (lll_futex_requeue,
  880. lll_futex_wake_unlock): Likewise.
  881. * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (lll_futex_requeue):
  882. Likewise.
  883. * sysdeps/unix/sysv/linux/s390/lowlevellock.h (lll_futex_requeue,
  884. lll_futex_wake_unlock): Likewise.
  885. (lll_futex_wake): Fix a typo.
  886. * sysdeps/unix/sysv/linux/pthread-pi-defines.sym (PS_BIT): Add.
  887. * sysdeps/unix/sysv/linux/x86_64/pthread_cond_broadcast.S
  888. (__pthread_cond_broadcast): Pass LLL_PRIVATE to lll_* and or
  889. FUTEX_PRIVATE_FLAG into SYS_futex op if cv is process private.
  890. Don't use FUTEX_CMP_REQUEUE if dep_mutex is not process private.
  891. * sysdeps/unix/sysv/linux/x86_64/pthread_cond_signal.S
  892. (__pthread_cond_signal): Pass LLL_PRIVATE to lll_* and or
  893. FUTEX_PRIVATE_FLAG into SYS_futex op if cv is process private.
  894. * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S
  895. (__pthread_cond_timedwait): Likewise.
  896. * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:
  897. (__condvar_cleanup, __pthread_cond_wait): Likewise.
  898. 2007-08-05 Jakub Jelinek <jakub@redhat.com>
  899. * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h (PSEUDO):
  900. Don't use CGOTSETUP and CGOTRESTORE macros.
  901. (CGOTSETUP, CGOTRESTORE): Remove.
  902. <IS_IN_rtld> (CENABLE, CDISABLE): Don't use JUMPTARGET, branch to
  903. @local symbol.
  904. 2007-08-01 Kaz Kojima <kkojima@rr.iij4u.or.jp>
  905. * sysdeps/unix/sysv/linux/sh/libc-lowlevellock.S: Remove
  906. definitions for private futexes.
  907. * sysdeps/unix/sysv/linux/sh/lowlevellock.S: Include
  908. kernel-features.h and lowlevellock.h. Use private futexes if
  909. they are available.
  910. (__lll_lock_wait_private, __lll_unlock_wake_private): New.
  911. (__lll_mutex_lock_wait): Rename to
  912. (__lll_lock_wait): ... this. Don't compile in for libc.so.
  913. (__lll_mutex_timedlock_wait): Rename to ...
  914. (__lll_timedlock_wait): ... this. Use __NR_gettimeofday.
  915. Don't compile in for libc.so.
  916. (__lll_mutex_unlock_wake): Rename to ...
  917. (__lll_unlock_wake): ... this. Don't compile in for libc.so.
  918. (__lll_timedwait_tid): Use __NR_gettimeofday.
  919. * sysdeps/unix/sysv/linux/sh/lowlevellock.h: Allow including
  920. the header from assembler. Renamed all lll_mutex_* resp.
  921. lll_robust_mutex_* macros to lll_* resp. lll_robust_*.
  922. Renamed all LLL_MUTEX_LOCK_* macros to LLL_LOCK_*.
  923. (FUTEX_CMP_REQUEUE, FUTEX_WAKE_OP, FUTEX_OP_CLEAR_WAKE_IF_GT_ONE):
  924. Define.
  925. (__lll_lock_wait_private): Add prototype.
  926. (__lll_lock_wait, __lll_timedlock_wait, __lll_robust_lock_wait,
  927. __lll_robust_timedlock_wait, __lll_unlock_wake_private,
  928. __lll_unlock_wake): Likewise.
  929. (lll_lock): Add private argument. Call __lll_lock_wait_private
  930. if private is constant LLL_PRIVATE.
  931. (lll_robust_lock, lll_cond_lock, lll_robust_cond_lock,
  932. lll_timedlock, lll_robust_timedlock): Add private argument.
  933. (lll_unlock): Add private argument. Call __lll_unlock_wake_private
  934. if private is constant LLL_PRIVATE.
  935. (lll_robust_unlock, lll_robust_dead): Add private argument.
  936. (lll_lock_t): Remove.
  937. (__lll_cond_wait, __lll_cond_timedwait, __lll_cond_wake,
  938. __lll_cond_broadcast, lll_cond_wait, lll_cond_timedwait,
  939. lll_cond_wake, lll_cond_broadcast): Remove.
  940. * sysdeps/unix/sysv/linux/sh/lowlevelrobustlock.S: Include
  941. kernel-features.h and lowlevellock.h.
  942. (SYS_gettimeofday, SYS_futex, FUTEX_WAIT, FUTEX_WAKE): Remove.
  943. (LOAD_FUTEX_WAIT): Define.
  944. (__lll_robust_mutex_lock_wait): Rename to ...
  945. (__lll_robust_lock_wait): ... this. Add private argument.
  946. Use LOAD_FUTEX_WAIT macro.
  947. (__lll_robust_mutex_timedlock_wait): Rename to ...
  948. (__lll_robust_timedlock_wait): ... this. Add private argument.
  949. Use __NR_gettimeofday. Use LOAD_FUTEX_WAIT macro.
  950. * sysdeps/unix/sysv/linux/sh/pthread_barrier_wait.S: Include
  951. lowlevellock.h.
  952. (SYS_futex, FUTEX_WAIT, FUTEX_WAKE): Remove.
  953. (pthread_barrier_wait): Use __lll_{lock,unlock}_* instead of
  954. __lll_mutex_{lock,unlock}_*.
  955. * sysdeps/unix/sysv/linux/sh/pthread_cond_broadcast.S: Include
  956. lowlevellock.h and pthread-errnos.h.
  957. (SYS_futex, FUTEX_WAIT, FUTEX_WAKE, FUTEX_REQUEUE,
  958. FUTEX_CMP_REQUEUE, EINVAL): Remove.
  959. (__pthread_cond_broadcast): Use __lll_{lock,unlock}_* instead of
  960. __lll_mutex_{lock,unlock}_*.
  961. * sysdeps/unix/sysv/linux/sh/pthread_cond_signal.S: Include
  962. lowlevellock.h and pthread-errnos.h.
  963. (SYS_futex, FUTEX_WAIT, FUTEX_WAKE, FUTEX_REQUEUE, EINVAL): Remove.
  964. (__pthread_cond_signal): Use __lll_{lock,unlock}_* instead of
  965. __lll_mutex_{lock,unlock}_*.
  966. * sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S: Include
  967. lowlevellock.h.
  968. (SYS_futex, SYS_gettimeofday, FUTEX_WAIT, FUTEX_WAKE): Remove.
  969. (__pthread_cond_timedwait): Use __lll_{lock,unlock}_* instead of
  970. __lll_mutex_{lock,unlock}_*. Use __NR_gettimeofday.
  971. (__condvar_tw_cleanup): Likewise.
  972. * sysdeps/unix/sysv/linux/sh/pthread_cond_wait.S: Include
  973. lowlevellock.h.
  974. (SYS_futex, FUTEX_WAIT, FUTEX_WAKE): Remove.
  975. (__pthread_cond_wait): Use __lll_{lock,unlock}_* instead of
  976. __lll_mutex_{lock,unlock}_*.
  977. ( __condvar_w_cleanup): Likewise.
  978. * sysdeps/unix/sysv/linux/sh/pthread_once.S: Include lowlevellock.h.
  979. (SYS_futex, FUTEX_WAIT, FUTEX_WAKE, FUTEX_PRIVATE_FLAG): Remove.
  980. * sysdeps/unix/sysv/linux/sh/pthread_rwlock_rdlock.S: Include
  981. lowlevellock.h.
  982. (SYS_futex, FUTEX_WAIT, FUTEX_WAKE, FUTEX_PRIVATE_FLAG): Remove.
  983. (__pthread_rwlock_rdlock): Use __lll_{lock,unlock}_* instead of
  984. __lll_mutex_{lock,unlock}_*.
  985. * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedrdlock.S: Include
  986. lowlevellock.h.
  987. (SYS_gettimeofday, SYS_futex, FUTEX_WAIT, FUTEX_WAKE,
  988. FUTEX_PRIVATE_FLAG): Remove.
  989. (pthread_rwlock_timedrdlock): Use __lll_{lock,unlock}_* instead of
  990. __lll_mutex_{lock,unlock}_*. Use __NR_gettimeofday.
  991. * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedwrlock.S: Include
  992. lowlevellock.h.
  993. (SYS_gettimeofday, SYS_futex, FUTEX_WAIT, FUTEX_WAKE,
  994. FUTEX_PRIVATE_FLAG): Remove.
  995. (pthread_rwlock_timedwrlock): Use __lll_{lock,unlock}_* instead of
  996. __lll_mutex_{lock,unlock}_*. Use __NR_gettimeofday.
  997. * sysdeps/unix/sysv/linux/sh/pthread_rwlock_unlock.S: Include
  998. lowlevellock.h.
  999. (SYS_futex, FUTEX_WAIT, FUTEX_WAKE, FUTEX_PRIVATE_FLAG): Remove.
  1000. (__pthread_rwlock_unlock): Use __lll_{lock,unlock}_* instead of
  1001. __lll_mutex_{lock,unlock}_*.
  1002. * sysdeps/unix/sysv/linux/sh/pthread_rwlock_wrlock.S: Include
  1003. lowlevellock.h.
  1004. (SYS_futex, FUTEX_WAIT, FUTEX_WAKE, FUTEX_PRIVATE_FLAG): Remove.
  1005. (__pthread_rwlock_wrlock): Use __lll_{lock,unlock}_* instead of
  1006. __lll_mutex_{lock,unlock}_*.
  1007. * sysdeps/unix/sysv/linux/sh/sem_post.S: Include lowlevellock.h.
  1008. (SYS_futex, FUTEX_WAIT, FUTEX_WAKE, FUTEX_PRIVATE_FLAG): Remove.
  1009. (__new_sem_post): Use standard initial exec code sequences.
  1010. * sysdeps/unix/sysv/linux/sh/sem_timedwait.S: Include
  1011. lowlevellock.h.
  1012. (SYS_gettimeofday, SYS_futex, FUTEX_WAIT, FUTEX_WAKE,
  1013. FUTEX_PRIVATE_FLAG): Remove.
  1014. (sem_timedwait): Use __NR_gettimeofday. Use standard initial
  1015. exec code sequences.
  1016. * sysdeps/unix/sysv/linux/sh/sem_trywait.S: Include lowlevellock.h.
  1017. (__new_sem_trywait): Use standard initial exec code sequences.
  1018. * sysdeps/unix/sysv/linux/sh/sem_wait.S: Include lowlevellock.h.
  1019. (__new_sem_wait): Use standard initial exec code sequences.
  1020. 2007-07-31 Anton Blanchard <anton@samba.org>
  1021. * sysdeps/unix/sysv/linux/powerpc/sem_post.c (__new_sem_post):
  1022. Use __asm __volatile (__lll_acq_instr ::: "memory") instead of
  1023. atomic_full_barrier.
  1024. 2007-07-31 Jakub Jelinek <jakub@redhat.com>
  1025. * allocatestack.c (stack_cache_lock): Change type to int.
  1026. (get_cached_stack, allocate_stack, __deallocate_stack,
  1027. __make_stacks_executable, __find_thread_by_id, __nptl_setxid,
  1028. __pthread_init_static_tls, __wait_lookup_done): Add LLL_PRIVATE
  1029. as second argument to lll_lock and lll_unlock macros on
  1030. stack_cache_lock.
  1031. * pthread_create.c (__find_in_stack_list): Likewise.
  1032. (start_thread): Similarly with pd->lock. Use lll_robust_dead
  1033. macro instead of lll_robust_mutex_dead, pass LLL_SHARED to it
  1034. as second argument.
  1035. * descr.h (struct pthread): Change lock and setxid_futex field
  1036. type to int.
  1037. * old_pthread_cond_broadcast.c (__pthread_cond_broadcast_2_0): Use
  1038. LLL_LOCK_INITIALIZER instead of LLL_MUTEX_LOCK_INITIALIZER.
  1039. * old_pthread_cond_signal.c (__pthread_cond_signal_2_0): Likewise.
  1040. * old_pthread_cond_timedwait.c (__pthread_cond_timedwait_2_0):
  1041. Likewise.
  1042. * old_pthread_cond_wait.c (__pthread_cond_wait_2_0): Likewise.
  1043. * pthread_cond_init.c (__pthread_cond_init): Likewise.
  1044. * pthreadP.h (__attr_list_lock): Change type to int.
  1045. * pthread_attr_init.c (__attr_list_lock): Likewise.
  1046. * pthread_barrier_destroy.c (pthread_barrier_destroy): Pass
  1047. ibarrier->private ^ FUTEX_PRIVATE_FLAG as second argument to
  1048. lll_{,un}lock.
  1049. * pthread_barrier_wait.c (pthread_barrier_wait): Likewise and
  1050. also for lll_futex_{wake,wait}.
  1051. * pthread_barrier_init.c (pthread_barrier_init): Make iattr
  1052. a pointer to const.
  1053. * pthread_cond_broadcast.c (__pthread_cond_broadcast): Pass
  1054. LLL_SHARED as second argument to lll_{,un}lock.
  1055. * pthread_cond_destroy.c (__pthread_cond_destroy): Likewise.
  1056. * pthread_cond_signal.c (__pthread_cond_singal): Likewise.
  1057. * pthread_cond_timedwait.c (__pthread_cond_timedwait): Likewise.
  1058. * pthread_cond_wait.c (__condvar_cleanup, __pthread_cond_wait):
  1059. Likewise.
  1060. * pthread_getattr_np.c (pthread_getattr_np): Add LLL_PRIVATE
  1061. as second argument to lll_{,un}lock macros on pd->lock.
  1062. * pthread_getschedparam.c (__pthread_getschedparam): Likewise.
  1063. * pthread_setschedparam.c (__pthread_setschedparam): Likewise.
  1064. * pthread_setschedprio.c (pthread_setschedprio): Likewise.
  1065. * tpp.c (__pthread_tpp_change_priority, __pthread_current_priority):
  1066. Likewise.
  1067. * sysdeps/pthread/createthread.c (do_clone, create_thread):
  1068. Likewise.
  1069. * pthread_once.c (once_lock): Change type to int.
  1070. (__pthread_once): Pass LLL_PRIVATE as second argument to
  1071. lll_{,un}lock macros on once_lock.
  1072. * pthread_rwlock_rdlock.c (__pthread_rwlock_rdlock): Use
  1073. lll_{,un}lock macros instead of lll_mutex_{,un}lock, pass
  1074. rwlock->__data.__shared as second argument to them and similarly
  1075. for lll_futex_w*.
  1076. * pthread_rwlock_timedrdlock.c (pthread_rwlock_timedrdlock):
  1077. Likewise.
  1078. * pthread_rwlock_timedwrlock.c (pthread_rwlock_timedwrlock):
  1079. Likewise.
  1080. * pthread_rwlock_tryrdlock.c (__pthread_rwlock_tryrdlock): Likewise.
  1081. * pthread_rwlock_trywrlock.c (__pthread_rwlock_trywrlock): Likewise.
  1082. * pthread_rwlock_unlock.c (__pthread_rwlock_unlock): Likewise.
  1083. * pthread_rwlock_wrlock.c (__pthread_rwlock_wrlock): Likewise.
  1084. * sem_close.c (sem_close): Pass LLL_PRIVATE as second argument
  1085. to lll_{,un}lock macros on __sem_mappings_lock.
  1086. * sem_open.c (check_add_mapping): Likewise.
  1087. (__sem_mappings_lock): Change type to int.
  1088. * semaphoreP.h (__sem_mappings_lock): Likewise.
  1089. * pthread_mutex_lock.c (LLL_MUTEX_LOCK, LLL_MUTEX_TRYLOCK,
  1090. LLL_ROBUST_MUTEX_LOCK): Use lll_{,try,robust_}lock macros
  1091. instead of lll_*mutex_*, pass LLL_SHARED as last
  1092. argument.
  1093. (__pthread_mutex_lock): Use lll_unlock instead of lll_mutex_unlock,
  1094. pass LLL_SHARED as last argument.
  1095. * sysdeps/unix/sysv/linux/pthread_mutex_cond_lock.c (LLL_MUTEX_LOCK,
  1096. LLL_MUTEX_TRYLOCK, LLL_ROBUST_MUTEX_LOCK): Use
  1097. lll_{cond_,cond_try,robust_cond}lock macros instead of lll_*mutex_*,
  1098. pass LLL_SHARED as last argument.
  1099. * pthread_mutex_timedlock.c (pthread_mutex_timedlock): Use
  1100. lll_{timed,try,robust_timed,un}lock instead of lll_*mutex*, pass
  1101. LLL_SHARED as last argument.
  1102. * pthread_mutex_trylock.c (__pthread_mutex_trylock): Similarly.
  1103. * pthread_mutex_unlock.c (__pthread_mutex_unlock_usercnt):
  1104. Similarly.
  1105. * sysdeps/pthread/bits/libc-lock.h (__libc_lock_lock,
  1106. __libc_lock_lock_recursive, __libc_lock_unlock,
  1107. __libc_lock_unlock_recursive): Pass LLL_PRIVATE as second
  1108. argument to lll_{,un}lock.
  1109. * sysdeps/pthread/bits/stdio-lock.h (_IO_lock_lock,
  1110. _IO_lock_unlock): Likewise.
  1111. * sysdeps/unix/sysv/linux/fork.c (__libc_fork): Don't use
  1112. compound literal.
  1113. * sysdeps/unix/sysv/linux/unregister-atfork.c (__unregister_atfork):
  1114. Pass LLL_PRIVATE as second argument to lll_{,un}lock macros on
  1115. __fork_lock.
  1116. * sysdeps/unix/sysv/linux/register-atfork.c (__register_atfork,
  1117. free_mem): Likewise.
  1118. (__fork_lock): Change type to int.
  1119. * sysdeps/unix/sysv/linux/fork.h (__fork_lock): Likewise.
  1120. * sysdeps/unix/sysv/linux/sem_post.c (__new_sem_post): Pass
  1121. isem->private ^ FUTEX_PRIVATE_FLAG as second argument to
  1122. lll_futex_wake.
  1123. * sysdeps/unix/sysv/linux/sem_timedwait.c (sem_timedwait): Likewise.
  1124. * sysdeps/unix/sysv/linux/sem_wait.c (__new_sem_wait): Likewise.
  1125. * sysdeps/unix/sysv/linux/lowlevellock.c (__lll_lock_wait_private):
  1126. New function.
  1127. (__lll_lock_wait, __lll_timedlock_wait): Add private argument and
  1128. pass it through to lll_futex_*wait, only compile in when
  1129. IS_IN_libpthread.
  1130. * sysdeps/unix/sysv/linux/lowlevelrobustlock.c
  1131. (__lll_robust_lock_wait, __lll_robust_timedlock_wait): Add private
  1132. argument and pass it through to lll_futex_*wait.
  1133. * sysdeps/unix/sysv/linux/alpha/lowlevellock.h: Renamed all
  1134. lll_mutex_* resp. lll_robust_mutex_* macros to lll_* resp.
  1135. lll_robust_*. Renamed all __lll_mutex_* resp. __lll_robust_mutex_*
  1136. inline functions to __lll_* resp. __lll_robust_*.
  1137. (LLL_MUTEX_LOCK_INITIALIZER): Remove.
  1138. (lll_mutex_dead): Add private argument.
  1139. (__lll_lock_wait_private): New prototype.
  1140. (__lll_lock_wait, __lll_robust_lock_wait, __lll_lock_timedwait,
  1141. __lll_robust_lock_timedwait): Add private argument to prototypes.
  1142. (__lll_lock): Add private argument, if it is constant LLL_PRIVATE,
  1143. call __lll_lock_wait_private, otherwise pass private to
  1144. __lll_lock_wait.
  1145. (__lll_robust_lock, __lll_cond_lock, __lll_timedlock,
  1146. __lll_robust_timedlock): Add private argument, pass it to
  1147. __lll_*wait functions.
  1148. (__lll_unlock): Add private argument, if it is constant LLL_PRIVATE,
  1149. call __lll_unlock_wake_private, otherwise pass private to
  1150. __lll_unlock_wake.
  1151. (__lll_robust_unlock): Add private argument, pass it to
  1152. __lll_robust_unlock_wake.
  1153. (lll_lock, lll_robust_lock, lll_cond_lock, lll_timedlock,
  1154. lll_robust_timedlock, lll_unlock, lll_robust_unlock): Add private
  1155. argument, pass it through to __lll_* inline function.
  1156. (__lll_mutex_unlock_force, lll_mutex_unlock_force): Remove.
  1157. (lll_lock_t): Remove.
  1158. (__lll_cond_wait, __lll_cond_timedwait, __lll_cond_wake,
  1159. __lll_cond_broadcast, lll_cond_wait, lll_cond_timedwait,
  1160. lll_cond_wake, lll_cond_broadcast): Remove.
  1161. * sysdeps/unix/sysv/linux/ia64/lowlevellock.h: Likewise.
  1162. * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Likewise.
  1163. * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
  1164. * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Likewise.
  1165. * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Allow including
  1166. the header from assembler. Renamed all lll_mutex_* resp.
  1167. lll_robust_mutex_* macros to lll_* resp. lll_robust_*.
  1168. (LOCK, FUTEX_CMP_REQUEUE, FUTEX_WAKE_OP,
  1169. FUTEX_OP_CLEAR_WAKE_IF_GT_ONE): Define.
  1170. (LLL_MUTEX_LOCK_INITIALIZER, LLL_MUTEX_LOCK_INITIALIZER_LOCKED,
  1171. LLL_MUTEX_LOCK_INITIALIZER_WAITERS): Remove.
  1172. (__lll_mutex_lock_wait, __lll_mutex_timedlock_wait,
  1173. __lll_mutex_unlock_wake, __lll_lock_wait, __lll_unlock_wake):
  1174. Remove prototype.
  1175. (__lll_trylock_asm, __lll_lock_asm_start, __lll_unlock_asm): Define.
  1176. (lll_robust_trylock, lll_cond_trylock): Use LLL_LOCK_INITIALIZER*
  1177. rather than LLL_MUTEX_LOCK_INITIALIZER* macros.
  1178. (lll_trylock): Likewise, use __lll_trylock_asm, pass
  1179. MULTIPLE_THREADS_OFFSET as another asm operand.
  1180. (lll_lock): Add private argument, use __lll_lock_asm_start, pass
  1181. MULTIPLE_THREADS_OFFSET as last asm operand, call
  1182. __lll_lock_wait_private if private is constant LLL_PRIVATE,
  1183. otherwise pass private as another argument to __lll_lock_wait.
  1184. (lll_robust_lock, lll_cond_lock, lll_robust_cond_lock,
  1185. lll_timedlock, lll_robust_timedlock): Add private argument, pass
  1186. private as another argument to __lll_*lock_wait call.
  1187. (lll_unlock): Add private argument, use __lll_unlock_asm, pass
  1188. MULTIPLE_THREADS_OFFSET as another asm operand, call
  1189. __lll_unlock_wake_private if private is constant LLL_PRIVATE,
  1190. otherwise pass private as another argument to __lll_unlock_wake.
  1191. (lll_robust_unlock): Add private argument, pass private as another
  1192. argument to __lll_unlock_wake.
  1193. (lll_robust_dead): Add private argument, use __lll_private_flag
  1194. macro.
  1195. (lll_islocked): Use LLL_LOCK_INITIALIZER instead of
  1196. LLL_MUTEX_LOCK_INITIALIZER.
  1197. (lll_lock_t): Remove.
  1198. (LLL_LOCK_INITIALIZER_WAITERS): Define.
  1199. (__lll_cond_wait, __lll_cond_timedwait, __lll_cond_wake,
  1200. __lll_cond_broadcast, lll_cond_wait, lll_cond_timedwait,
  1201. lll_cond_wake, lll_cond_broadcast): Remove.
  1202. * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
  1203. * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S: Revert
  1204. 2007-05-2{3,9} changes.
  1205. * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S: Include
  1206. kernel-features.h and lowlevellock.h.
  1207. (LOAD_PRIVATE_FUTEX_WAIT): Define.
  1208. (LOAD_FUTEX_WAIT): Rewritten.
  1209. (LOCK, SYS_gettimeofday, SYS_futex, FUTEX_WAIT, FUTEX_WAKE): Don't
  1210. define.
  1211. (__lll_lock_wait_private, __lll_unlock_wake_private): New functions.
  1212. (__lll_mutex_lock_wait): Rename to ...
  1213. (__lll_lock_wait): ... this. Take futex addr from %edx instead of
  1214. %ecx, %ecx is now private argument. Don't compile in for libc.so.
  1215. (__lll_mutex_timedlock_wait): Rename to ...
  1216. (__lll_timedlock_wait): ... this. Use __NR_gettimeofday. %esi
  1217. contains private argument. Don't compile in for libc.so.
  1218. (__lll_mutex_unlock_wake): Rename to ...
  1219. (__lll_unlock_wake): ... this. %ecx contains private argument.
  1220. Don't compile in for libc.so.
  1221. (__lll_timedwait_tid): Use __NR_gettimeofday.
  1222. * sysdeps/unix/sysv/linux/i386/i486/lowlevelrobustlock.S: Include
  1223. kernel-features.h and lowlevellock.h.
  1224. (LOAD_FUTEX_WAIT): Define.
  1225. (LOCK, SYS_gettimeofday, SYS_futex, FUTEX_WAIT, FUTEX_WAKE): Don't
  1226. define.
  1227. (__lll_robust_mutex_lock_wait): Rename to ...
  1228. (__lll_robust_lock_wait): ... this. Futex addr is now in %edx
  1229. argument, %ecx argument contains private. Use LOAD_FUTEX_WAIT
  1230. macro.
  1231. (__lll_robust_mutex_timedlock_wait): Rename to ...
  1232. (__lll_robust_timedlock_wait): ... this. Use __NR_gettimeofday.
  1233. %esi argument contains private, use LOAD_FUTEX_WAIT macro.
  1234. * sysdeps/unix/sysv/linux/i386/i486/pthread_barrier_wait.S: Include
  1235. lowlevellock.h.
  1236. (SYS_futex, FUTEX_WAIT, FUTEX_WAKE, LOCK): Don't define.
  1237. (pthread_barrier_wait): Rename __lll_mutex_* to __lll_*, pass
  1238. PRIVATE(%ebx) ^ LLL_SHARED as private argument in %ecx to
  1239. __lll_lock_wait and __lll_unlock_wake, pass MUTEX(%ebx) address
  1240. to __lll_lock_wait in %edx.
  1241. * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_broadcast.S:
  1242. Include lowlevellock.h and pthread-errnos.h.
  1243. (SYS_futex, FUTEX_WAIT, FUTEX_WAKE, FUTEX_REQUEUE,
  1244. FUTEX_CMP_REQUEUE, EINVAL, LOCK): Don't define.
  1245. (__pthread_cond_broadcast): Rename __lll_mutex_* to __lll_*, pass
  1246. cond_lock address in %edx rather than %ecx to __lll_lock_wait,
  1247. pass LLL_SHARED in %ecx to both __lll_lock_wait and
  1248. __lll_unlock_wake.
  1249. * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S:
  1250. Include lowlevellock.h and pthread-errnos.h.
  1251. (SYS_futex, FUTEX_WAIT, FUTEX_WAKE, FUTEX_WAKE_OP,
  1252. FUTEX_OP_CLEAR_WAKE_IF_GT_ONE, EINVAL, LOCK): Don't define.
  1253. (__pthread_cond_signal): Rename __lll_mutex_* to __lll_*, pass
  1254. cond_lock address in %edx rather than %ecx to __lll_lock_wait,
  1255. pass LLL_SHARED in %ecx to both __lll_lock_wait and
  1256. __lll_unlock_wake.
  1257. * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S:
  1258. Include lowlevellock.h.
  1259. (SYS_futex, SYS_gettimeofday, FUTEX_WAIT, FUTEX_WAKE, LOCK):
  1260. Don't define.
  1261. (__pthread_cond_timedwait): Rename __lll_mutex_* to __lll_*, pass
  1262. cond_lock address in %edx rather than %ecx to __lll_lock_wait,
  1263. pass LLL_SHARED in %ecx to both __lll_lock_wait and
  1264. __lll_unlock_wake. Use __NR_gettimeofday.
  1265. * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S:
  1266. Include lowlevellock.h.
  1267. (SYS_futex, FUTEX_WAIT, FUTEX_WAKE, LOCK): Don't define.
  1268. (__pthread_cond_wait, __condvar_w_cleanup): Rename __lll_mutex_*
  1269. to __lll_*, pass cond_lock address in %edx rather than %ecx to
  1270. __lll_lock_wait, pass LLL_SHARED in %ecx to both __lll_lock_wait
  1271. and __lll_unlock_wake.
  1272. * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_rdlock.S:
  1273. Include lowlevellock.h.
  1274. (SYS_futex, FUTEX_WAIT, FUTEX_WAKE, LOCK): Don't define.
  1275. (__pthread_rwlock_rdlock): Rename __lll_mutex_* to __lll_*, pass
  1276. MUTEX(%ebx) address in %edx rather than %ecx to
  1277. __lll_lock_wait, pass PSHARED(%ebx) in %ecx to both __lll_lock_wait
  1278. and __lll_unlock_wake. Move return value from %ecx to %edx
  1279. register.
  1280. * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S:
  1281. Include lowlevellock.h.
  1282. (SYS_futex, SYS_gettimeofday, FUTEX_WAIT, FUTEX_WAKE, LOCK):
  1283. Don't define.
  1284. (__pthread_rwlock_wrlock): Rename __lll_mutex_* to __lll_*, pass
  1285. MUTEX(%ebp) address in %edx rather than %ecx to
  1286. __lll_lock_wait, pass PSHARED(%ebp) in %ecx to both __lll_lock_wait
  1287. and __lll_unlock_wake. Move return value from %ecx to %edx
  1288. register. Use __NR_gettimeofday.
  1289. * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S:
  1290. Include lowlevellock.h.
  1291. (SYS_futex, SYS_gettimeofday, FUTEX_WAIT, FUTEX_WAKE, LOCK):
  1292. Don't define.
  1293. (__pthread_rwlock_wrlock): Rename __lll_mutex_* to __lll_*, pass
  1294. MUTEX(%ebp) address in %edx rather than %ecx to
  1295. __lll_lock_wait, pass PSHARED(%ebp) in %ecx to both __lll_lock_wait
  1296. and __lll_unlock_wake. Move return value from %ecx to %edx
  1297. register. Use __NR_gettimeofday.
  1298. * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_unlock.S:
  1299. Include lowlevellock.h.
  1300. (SYS_futex, FUTEX_WAIT, FUTEX_WAKE, LOCK): Don't define.
  1301. (__pthread_rwlock_unlock): Rename __lll_mutex_* to __lll_*, pass
  1302. MUTEX(%edi) address in %edx rather than %ecx to
  1303. __lll_lock_wait, pass PSHARED(%edi) in %ecx to both __lll_lock_wait
  1304. and __lll_unlock_wake.
  1305. * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_wrlock.S:
  1306. Include lowlevellock.h.
  1307. (SYS_futex, FUTEX_WAIT, FUTEX_WAKE, LOCK): Don't define.
  1308. (__pthread_rwlock_wrlock): Rename __lll_mutex_* to __lll_*, pass
  1309. MUTEX(%ebx) address in %edx rather than %ecx to
  1310. __lll_lock_wait, pass PSHARED(%ebx) in %ecx to both __lll_lock_wait
  1311. and __lll_unlock_wake. Move return value from %ecx to %edx
  1312. register.
  1313. * sysdeps/unix/sysv/linux/i386/pthread_once.S: Include
  1314. lowlevellock.h.
  1315. (LOCK, SYS_futex, FUTEX_WAIT, FUTEX_WAKE, FUTEX_PRIVATE_FLAG): Don't
  1316. define.
  1317. * sysdeps/unix/sysv/linux/i386/i486/sem_post.S: Include lowlevellock.h.
  1318. (LOCK, SYS_futex, FUTEX_WAKE): Don't define.
  1319. * sysdeps/unix/sysv/linux/i386/i486/sem_timedwait.S: Include
  1320. lowlevellock.h.
  1321. (LOCK, SYS_futex, SYS_gettimeofday, FUTEX_WAIT): Don't define.
  1322. (sem_timedwait): Use __NR_gettimeofday.
  1323. * sysdeps/unix/sysv/linux/i386/i486/sem_trywait.S: Include
  1324. lowlevellock.h.
  1325. (LOCK): Don't define.
  1326. * sysdeps/unix/sysv/linux/i386/i486/sem_wait.S: Include
  1327. lowlevellock.h.
  1328. (LOCK, SYS_futex, FUTEX_WAIT): Don't define.
  1329. * sysdeps/unix/sysv/linux/powerpc/sem_post.c: Wake only when there
  1330. are waiters.
  1331. * sysdeps/unix/sysv/linux/x86_64/libc-lowlevellock.S: Revert
  1332. 2007-05-2{3,9} changes.
  1333. * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Include
  1334. kernel-features.h and lowlevellock.h.
  1335. (LOAD_PRIVATE_FUTEX_WAIT): Define.
  1336. (LOAD_FUTEX_WAIT): Rewritten.
  1337. (LOCK, SYS_futex, FUTEX_WAIT, FUTEX_WAKE): Don't define.
  1338. (__lll_lock_wait_private, __lll_unlock_wake_private): New functions.
  1339. (__lll_mutex_lock_wait): Rename to ...
  1340. (__lll_lock_wait): ... this. %esi is now private argument.
  1341. Don't compile in for libc.so.
  1342. (__lll_mutex_timedlock_wait): Rename to ...
  1343. (__lll_timedlock_wait): ... this. %esi contains private argument.
  1344. Don't compile in for libc.so.
  1345. (__lll_mutex_unlock_wake): Rename to ...
  1346. (__lll_unlock_wake): ... this. %esi contains private argument.
  1347. Don't compile in for libc.so.
  1348. * sysdeps/unix/sysv/linux/x86_64/lowlevelrobustlock.S: Include
  1349. kernel-features.h and lowlevellock.h.
  1350. (LOAD_FUTEX_WAIT): Define.
  1351. (LOCK, SYS_futex, FUTEX_WAIT, FUTEX_WAKE): Don't define.
  1352. (__lll_robust_mutex_lock_wait): Rename to ...
  1353. (__lll_robust_lock_wait): ... this. %esi argument contains private.
  1354. Use LOAD_FUTEX_WAIT macro.
  1355. (__lll_robust_mutex_timedlock_wait): Rename to ...
  1356. (__lll_robust_timedlock_wait): ... this. %esi argument contains
  1357. private, use LOAD_FUTEX_WAIT macro.
  1358. * sysdeps/unix/sysv/linux/x86_64/pthread_barrier_wait.S: Include
  1359. lowlevellock.h.
  1360. (SYS_futex, FUTEX_WAIT, FUTEX_WAKE, LOCK): Don't define.
  1361. (pthread_barrier_wait): Rename __lll_mutex_* to __lll_*, pass
  1362. PRIVATE(%rdi) ^ LLL_SHARED as private argument in %esi to
  1363. __lll_lock_wait and __lll_unlock_wake.
  1364. * sysdeps/unix/sysv/linux/x86_64/pthread_cond_broadcast.S:
  1365. Include lowlevellock.h and pthread-errnos.h.
  1366. (SYS_futex, FUTEX_WAIT, FUTEX_WAKE, FUTEX_REQUEUE,
  1367. FUTEX_CMP_REQUEUE, EINVAL, LOCK): Don't define.
  1368. (__pthread_cond_broadcast): Rename __lll_mutex_* to __lll_*,
  1369. pass LLL_SHARED in %esi to both __lll_lock_wait and
  1370. __lll_unlock_wake.
  1371. * sysdeps/unix/sysv/linux/x86_64/pthread_cond_signal.S:
  1372. Include lowlevellock.h and pthread-errnos.h.
  1373. (SYS_futex, FUTEX_WAIT, FUTEX_WAKE, FUTEX_WAKE_OP,
  1374. FUTEX_OP_CLEAR_WAKE_IF_GT_ONE, EINVAL, LOCK): Don't define.
  1375. (__pthread_cond_signal): Rename __lll_mutex_* to __lll_*,
  1376. pass LLL_SHARED in %esi to both __lll_lock_wait and
  1377. __lll_unlock_wake.
  1378. * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:
  1379. Include lowlevellock.h.
  1380. (SYS_futex, FUTEX_WAIT, FUTEX_WAKE, LOCK): Don't define.
  1381. (__pthread_cond_timedwait): Rename __lll_mutex_* to __lll_*,
  1382. pass LLL_SHARED in %esi to both __lll_lock_wait and
  1383. __lll_unlock_wake.
  1384. * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:
  1385. Include lowlevellock.h.
  1386. (SYS_futex, FUTEX_WAIT, FUTEX_WAKE, LOCK): Don't define.
  1387. (__pthread_cond_wait, __condvar_cleanup): Rename __lll_mutex_*
  1388. to __lll_*, pass LLL_SHARED in %esi to both __lll_lock_wait
  1389. and __lll_unlock_wake.
  1390. * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_rdlock.S:
  1391. Include lowlevellock.h.
  1392. (SYS_futex, FUTEX_WAIT, FUTEX_WAKE, FUTEX_PRIVATE_FLAG, LOCK):
  1393. Don't define.
  1394. (__pthread_rwlock_rdlock): Rename __lll_mutex_* to __lll_*,
  1395. pass PSHARED(%rdi) in %esi to both __lll_lock_wait
  1396. and __lll_unlock_wake.
  1397. * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedrdlock.S:
  1398. Include lowlevellock.h.
  1399. (SYS_futex, FUTEX_WAIT, FUTEX_WAKE, FUTEX_PRIVATE_FLAG, LOCK):
  1400. Don't define.
  1401. (__pthread_rwlock_wrlock): Rename __lll_mutex_* to __lll_*,
  1402. pass PSHARED(%rdi) in %esi to both __lll_lock_wait
  1403. and __lll_unlock_wake.
  1404. * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedwrlock.S:
  1405. Include lowlevellock.h.
  1406. (SYS_futex, FUTEX_WAIT, FUTEX_WAKE, FUTEX_PRIVATE_FLAG, LOCK):
  1407. Don't define.
  1408. (__pthread_rwlock_wrlock): Rename __lll_mutex_* to __lll_*,
  1409. pass PSHARED(%rdi) in %esi to both __lll_lock_wait
  1410. and __lll_unlock_wake.
  1411. * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_unlock.S:
  1412. Include lowlevellock.h.
  1413. (SYS_futex, FUTEX_WAIT, FUTEX_WAKE, FUTEX_PRIVATE_FLAG, LOCK):
  1414. Don't define.
  1415. (__pthread_rwlock_unlock): Rename __lll_mutex_* to __lll_*,
  1416. pass PSHARED(%rdi) in %esi to both __lll_lock_wait
  1417. and __lll_unlock_wake.
  1418. * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_wrlock.S:
  1419. Include lowlevellock.h.
  1420. (SYS_futex, FUTEX_WAIT, FUTEX_WAKE, FUTEX_PRIVATE_FLAG, LOCK):
  1421. Don't define.
  1422. (__pthread_rwlock_wrlock): Rename __lll_mutex_* to __lll_*,
  1423. pass PSHARED(%rdi) in %ecx to both __lll_lock_wait
  1424. and __lll_unlock_wake.
  1425. * sysdeps/unix/sysv/linux/x86_64/pthread_once.S: Include
  1426. lowlevellock.h.
  1427. (LOCK, SYS_futex, FUTEX_WAIT, FUTEX_WAKE, FUTEX_PRIVATE_FLAG): Don't
  1428. define.
  1429. * sysdeps/unix/sysv/linux/x86_64/sem_post.S: Include lowlevellock.h.
  1430. (LOCK, SYS_futex, FUTEX_WAKE): Don't define.
  1431. * sysdeps/unix/sysv/linux/x86_64/sem_timedwait.S: Include
  1432. lowlevellock.h.
  1433. (LOCK, SYS_futex, FUTEX_WAIT): Don't define.
  1434. * sysdeps/unix/sysv/linux/x86_64/sem_trywait.S: Include
  1435. lowlevellock.h.
  1436. (LOCK): Don't define.
  1437. * sysdeps/unix/sysv/linux/x86_64/sem_wait.S: Include
  1438. lowlevellock.h.
  1439. (LOCK, SYS_futex, FUTEX_WAIT): Don't define.
  1440. * sysdeps/unix/sysv/linux/sparc/internaltypes.h: New file.
  1441. * sysdeps/unix/sysv/linux/sparc/pthread_barrier_destroy.c: New file.
  1442. * sysdeps/unix/sysv/linux/sparc/pthread_barrier_init.c: New file.
  1443. * sysdeps/unix/sysv/linux/sparc/pthread_barrier_wait.c: New file.
  1444. * sysdeps/unix/sysv/linux/sparc/sparc32/lowlevellock.c
  1445. (__lll_lock_wait_private): New function.
  1446. (__lll_lock_wait, __lll_timedlock_wait): Add private argument, pass
  1447. it to lll_futex_*wait. Don't compile in for libc.so.
  1448. * sysdeps/unix/sysv/linux/sparc/sparc32/pthread_barrier_init.c:
  1449. Remove.
  1450. * sysdeps/unix/sysv/linux/sparc/sparc32/pthread_barrier_wait.c
  1451. (struct sparc_pthread_barrier): Remove.
  1452. (pthread_barrier_wait): Use union sparc_pthread_barrier instead of
  1453. struct sparc_pthread_barrier. Pass
  1454. ibarrier->s.pshared ? LLL_SHARED : LLL_PRIVATE to lll_{,un}lock
  1455. and lll_futex_wait macros.
  1456. * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/pthread_barrier_init.c:
  1457. Remove.
  1458. * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/pthread_barrier_wait.c:
  1459. Include sparc pthread_barrier_wait.c instead of generic one.
  1460. 2007-07-30 Jakub Jelinek <jakub@redhat.com>
  1461. * tst-rwlock14.c (do_test): Avoid warnings on 32-bit arches.
  1462. * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S
  1463. (pthread_rwlock_timedrdlock): Copy futex retval to %esi rather than
  1464. %ecx.
  1465. * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S
  1466. (pthread_rwlock_timedwrlock): Likewise.
  1467. * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_unlock.S
  1468. (__pthread_rwlock_unlock): Fix MUTEX != 0 args to __lll_*.
  1469. 2007-07-31 Jakub Jelinek <jakub@redhat.com>
  1470. * sysdeps/sparc/tls.h (tcbhead_t): Add private_futex field.
  1471. 2007-07-26 Jakub Jelinek <jakub@redhat.com>
  1472. * tst-locale2.c (useless): Add return statement.
  1473. 2007-07-24 Jakub Jelinek <jakub@redhat.com>
  1474. * allocatestack.c (__nptl_setxid, __wait_lookup_done): Replace
  1475. lll_private_futex_* (*) with lll_futex_* (*, LLL_PRIVATE).
  1476. * pthread_create.c (start_thread): Likewise.
  1477. * init.c (sighandler_setxid): Likewise.
  1478. * sysdeps/alpha/tls.h (THREAD_GSCOPE_RESET_FLAG): Likewise.
  1479. * sysdeps/ia64/tls.h (THREAD_GSCOPE_RESET_FLAG): Likewise.
  1480. * sysdeps/i386/tls.h (THREAD_GSCOPE_RESET_FLAG): Likewise.
  1481. * sysdeps/s390/tls.h (THREAD_GSCOPE_RESET_FLAG): Likewise.
  1482. * sysdeps/powerpc/tls.h (THREAD_GSCOPE_RESET_FLAG): Likewise.
  1483. * sysdeps/x86_64/tls.h (THREAD_GSCOPE_RESET_FLAG): Likewise.
  1484. * sysdeps/sparc/tls.h (THREAD_GSCOPE_RESET_FLAG): Likewise.
  1485. * sysdeps/sh/tls.h (THREAD_GSCOPE_RESET_FLAG): Likewise.
  1486. * sysdeps/pthread/aio_misc.h (AIO_MISC_NOTIFY, AIO_MISC_WAIT):
  1487. Likewise.
  1488. * sysdeps/pthread/gai_misc.h (GAI_MISC_NOTIFY, GAI_MISC_WAIT):
  1489. Likewise.
  1490. * sysdeps/unix/sysv/linux/unregister-atfork.c (__unregister_atfork):
  1491. Likewise.
  1492. * sysdeps/unix/sysv/linux/rtld-lowlevel.h (__rtld_waitzero,
  1493. __rtld_notify): Likewise.
  1494. * sysdeps/unix/sysv/linux/fork.c (__libc_fork): Likewise.
  1495. * sysdeps/unix/sysv/linux/powerpc/pthread_once.c (clear_once_control,
  1496. __pthread_once): Likewise.
  1497. * sysdeps/unix/sysv/linux/alpha/pthread_once.c (clear_once_control,
  1498. __pthread_once): Add LLL_PRIVATE as last argument to lll_futex_*.
  1499. * sysdeps/unix/sysv/linux/alpha/lowlevellock.h (FUTEX_PRIVATE_FLAG,
  1500. LLL_PRIVATE, LLL_SHARED, __lll_private_flag): Define.
  1501. (lll_futex_wait): Add private argument, define as wrapper around
  1502. lll_futex_timed_wait.
  1503. (lll_futex_timed_wait, lll_futex_wake): Add private argument,
  1504. use __lll_private_flag macro.
  1505. (lll_robust_mutex_dead, __lll_mutex_unlock, __lll_robust_mutex_unlock,
  1506. __lll_mutex_unlock_force): Pass LLL_SHARED as last arg to lll_futex_*.
  1507. * sysdeps/unix/sysv/linux/ia64/pthread_once.c (clear_once_control,
  1508. __pthread_once): Add LLL_PRIVATE as last argument to lll_futex_*.
  1509. * sysdeps/unix/sysv/linux/ia64/lowlevellock.h (FUTEX_PRIVATE_FLAG,
  1510. LLL_PRIVATE, LLL_SHARED, __lll_private_flag): Define.
  1511. (lll_futex_wait): Add private argument, define as wrapper around
  1512. lll_futex_timed_wait.
  1513. (lll_futex_timed_wait, lll_futex_wake): Add private argument,
  1514. use __lll_private_flag macro.
  1515. (__lll_mutex_unlock, __lll_robust_mutex_unlock, lll_wait_tid,
  1516. __lll_mutex_unlock_force): Pass LLL_SHARED as last arg to lll_futex_*.
  1517. * sysdeps/unix/sysv/linux/i386/lowlevellock.h (__lll_private_flag):
  1518. Define.
  1519. (lll_futex_timed_wait, lll_futex_wake): Use it.
  1520. (lll_private_futex_wait, lll_private_futex_timed_wait,
  1521. lll_private_futex_wake): Removed.
  1522. * sysdeps/unix/sysv/linux/s390/pthread_once.c (clear_once_control,
  1523. __pthread_once): Add LLL_PRIVATE as last argument to lll_futex_*.
  1524. * sysdeps/unix/sysv/linux/s390/lowlevellock.h (FUTEX_PRIVATE_FLAG,
  1525. LLL_PRIVATE, LLL_SHARED, __lll_private_flag): Define.
  1526. (lll_futex_wait): Add private argument, define as wrapper around
  1527. lll_futex_timed_wait.
  1528. (lll_futex_timed_wait, lll_futex_wake): Add private argument,
  1529. use __lll_private_flag macro.
  1530. (lll_robust_mutex_dead, __lll_mutex_unlock, __lll_robust_mutex_unlock,
  1531. lll_wait_tid, __lll_mutex_unlock_force): Pass LLL_SHARED as last arg
  1532. to lll_futex_*.
  1533. * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h
  1534. (lll_private_futex_wait, lll_private_futex_timed_wait,
  1535. lll_private_futex_wake): Removed.
  1536. * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (__lll_private_flag):
  1537. Fix !__ASSUME_PRIVATE_FUTEX non-constant private case.
  1538. (lll_private_futex_wait, lll_private_futex_timed_wait,
  1539. lll_private_futex_wake): Removed.
  1540. * sysdeps/unix/sysv/linux/sparc/pthread_once.c (clear_once_control,
  1541. __pthread_once): Add LLL_PRIVATE as last argument to lll_futex_*.
  1542. * sysdeps/unix/sysv/linux/sparc/lowlevellock.h (FUTEX_PRIVATE_FLAG,
  1543. LLL_PRIVATE, LLL_SHARED, __lll_private_flag): Define.
  1544. (lll_futex_wait): Add private argument, define as wrapper around
  1545. lll_futex_timed_wait.
  1546. (lll_futex_timed_wait, lll_futex_wake): Add private argument,
  1547. use __lll_private_flag macro.
  1548. (lll_robust_mutex_dead, __lll_mutex_unlock, __lll_robust_mutex_unlock,
  1549. lll_wait_tid, __lll_mutex_unlock_force): Pass LLL_SHARED as last arg
  1550. to lll_futex_*.
  1551. * sysdeps/unix/sysv/linux/sh/lowlevellock.h (__lll_private_flag):
  1552. Define.
  1553. (lll_futex_timed_wait, lll_futex_wake): Use it.
  1554. (lll_private_futex_wait, lll_private_futex_timed_wait,
  1555. lll_private_futex_wake): Removed.
  1556. 2007-07-27 Jakub Jelinek <jakub@redhat.com>
  1557. * sysdeps/sparc/tls.h (tcbhead_t): Move gscope_flag to the end
  1558. of the structure for sparc32.
  1559. 2007-07-26 Aurelien Jarno <aurelien@aurel32.net>
  1560. * sysdeps/sparc/tls.h (tcbhead_t): Add gscope_flag.
  1561. 2007-07-23 Ulrich Drepper <drepper@redhat.com>
  1562. * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedrdlock.S: Fix
  1563. code used when private futexes are assumed.
  1564. * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedwrlock.S:
  1565. Likewise.
  1566. 2007-07-23 Jakub Jelinek <jakub@redhat.com>
  1567. * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h
  1568. (__lll_private_flag): Define.
  1569. (lll_futex_wait): Define as a wrapper around lll_futex_timed_wait.
  1570. (lll_futex_timed_wait, lll_futex_wake, lll_futex_wake_unlock): Use
  1571. __lll_private_flag.
  1572. (lll_private_futex_wait, lll_private_futex_timedwait,
  1573. lll_private_futex_wake): Define as wrapper around non-_private
  1574. macros.
  1575. * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h
  1576. (__lll_private_flag): Define.
  1577. (lll_futex_timed_wait, lll_futex_wake): Use __lll_private_flag.
  1578. (lll_private_futex_wait, lll_private_futex_timedwait,
  1579. lll_private_futex_wake): Define as wrapper around non-_private
  1580. macros.
  1581. 2007-07-10 Steven Munroe <sjmunroe@us.ibm.com>
  1582. * pthread_rwlock_rdlock.c (__pthread_rwlock_rdlock): Add LLL_SHARED
  1583. parameter to lll_futex_wait call.
  1584. * pthread_rwlock_wrlock.c (__pthread_rwlock_wrlock): Likewise.
  1585. * sysdeps/unix/sysv/linux/powerpc/pthread_once.c (__pthread_once):
  1586. Replace lll_futex_wait with lll_private_futex_wait.
  1587. * sysdeps/unix/sysv/linux/powerpc/sem_post.c (__new_sem_post):
  1588. Add LLL_SHARED parameter to lll_futex_wake().
  1589. * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Define LLL_PRIVATE
  1590. LLL_SHARED, lll_private_futex_wait, lll_private_futex_timed_wait and
  1591. lll_private_futex_wake.
  1592. (lll_futex_wait): Add private parameter. Adjust FUTEX_PRIVATE_FLAG
  1593. bit from private parm before syscall.
  1594. (lll_futex_timed_wait): Likewise.
  1595. (lll_futex_wake): Likewise.
  1596. (lll_futex_wake_unlock): Likewise.
  1597. (lll_mutex_unlock): Add LLL_SHARED parm to lll_futex_wake call.
  1598. (lll_robust_mutex_unlock): Likewise.
  1599. (lll_mutex_unlock_force): Likewise.
  1600. (lll_wait_tid): Add LLL_SHARED parm to lll_futex_wait call.
  1601. 2007-07-23 Ulrich Drepper <drepper@redhat.com>
  1602. * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedrdlock.S: Fix
  1603. compilation when unconditionally using private futexes.
  1604. * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_rdlock.S: Likewise.
  1605. * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedwrlock.S:
  1606. Likewise.
  1607. * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_unlock.S: Likewise.
  1608. * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_wrlock.S: Likewise.
  1609. 2007-07-17 Jakub Jelinek <jakub@redhat.com>
  1610. * sysdeps/pthread/bits/stdio-lock.h (_IO_acquire_lock_clear_flags2):
  1611. Define.
  1612. 2007-07-06 Kaz Kojima <kkojima@rr.iij4u.or.jp>
  1613. * sysdeps/sh/tls.h: Include stdlib.h, list.h, sysdep.h and
  1614. kernel-features.h.
  1615. 2007-05-16 Roland McGrath <roland@redhat.com>
  1616. * init.c (__nptl_initial_report_events): New variable.
  1617. (__pthread_initialize_minimal_internal): Initialize pd->report_events
  1618. to that.
  1619. 2007-06-22 Jakub Jelinek <jakub@redhat.com>
  1620. * pthread_getattr_np.c (pthread_getattr_np): Clear cpuset and
  1621. cpusetsize if pthread_getaffinity_np failed with ENOSYS.
  1622. 2007-06-19 Ulrich Drepper <drepper@redhat.com>
  1623. * sysdeps/unix/sysv/linux/rtld-lowlevel.h: Remove mrlock
  1624. implementation.
  1625. 2007-06-18 Ulrich Drepper <drepper@redhat.com>
  1626. * pthreadP.h: Define PTHREAD_MUTEX_TYPE.
  1627. * phtread_mutex_lock.c: Use PTHREAD_MUTEX_TYPE.
  1628. * pthread_mutex_timedlock.c: Likewise.
  1629. * pthread_mutex_trylock.c: Likewise.
  1630. * pthread_mutex_unlock.c: Likewise.
  1631. 2007-06-17 Andreas Schwab <schwab@suse.de>
  1632. * sysdeps/pthread/pt-initfini.c: Tell gcc about the nonstandard
  1633. sections.
  1634. 2007-06-17 Ulrich Drepper <drepper@redhat.com>
  1635. * allocatestack.c (allocate_stack): Make code compile if
  1636. __ASSUME_PRIVATE_FUTEX is set.
  1637. 2007-06-17 Kaz Kojima <kkojima@rr.iij4u.or.jp>
  1638. * sysdeps/unix/sysv/linux/sh/pthread_rwlock_rdlock.S:
  1639. (__pthread_rwlock_rdlock): Don't use non SH-3/4 instruction.
  1640. * sysdeps/unix/sysv/linux/sh/pthread_rwlock_wrlock.S:
  1641. (__pthread_rwlock_wrlock): Likewise.
  1642. * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedrdlock.S:
  1643. (pthread_rwlock_timedrdlock): Likewise.
  1644. * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedwrlock.S:
  1645. (pthread_rwlock_timedwrlock): Likewise.
  1646. * sysdeps/unix/sysv/linux/sh/pthread_rwlock_unlock.S:
  1647. (__pthread_rwlock_unlock): Likewise.
  1648. 2007-06-10 Kaz Kojima <kkojima@rr.iij4u.or.jp>
  1649. * sysdeps/sh/tcb-offsets.sym: Add PRIVATE_FUTEX.
  1650. * sysdeps/unix/sysv/linux/sh/bits/pthreadtypes.h: Include endian.h.
  1651. Split __flags into __flags, __shared, __pad1 and __pad2.
  1652. * sysdeps/unix/sysv/linux/sh/libc-lowlevellock.S: Use private
  1653. futexes if they are available.
  1654. * sysdeps/unix/sysv/linux/sh/lowlevellock.S: Adjust so that change
  1655. in libc-lowlevellock.S allow using private futexes.
  1656. * sysdeps/unix/sysv/linux/sh/lowlevellock.h: Define
  1657. FUTEX_PRIVATE_FLAG. Add additional parameter to lll_futex_wait,
  1658. lll_futex_timed_wait and lll_futex_wake. Change lll_futex_wait
  1659. to call lll_futex_timed_wait. Add lll_private_futex_wait,
  1660. lll_private_futex_timed_wait and lll_private_futex_wake.
  1661. (lll_robust_mutex_unlock): Fix typo.
  1662. * sysdeps/unix/sysv/linux/sh/pthread_barrier_wait.S: Use private
  1663. field in futex command setup.
  1664. * sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S: Use
  1665. COND_NWAITERS_SHIFT instead of COND_CLOCK_BITS.
  1666. * sysdeps/unix/sysv/linux/sh/pthread_cond_wait.S: Likewise.
  1667. * sysdeps/unix/sysv/linux/sh/pthread_once.S: Use private futexes
  1668. if they are available. Remove clear_once_control.
  1669. * sysdeps/unix/sysv/linux/sh/pthread_rwlock_rdlock.S: Use private
  1670. futexes if they are available.
  1671. * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedrdlock.S: Likewise.
  1672. * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedwrlock.S: Likewise.
  1673. * sysdeps/unix/sysv/linux/sh/pthread_rwlock_unlock.S: Likewise.
  1674. * sysdeps/unix/sysv/linux/sh/pthread_rwlock_wrlock.S: Likewise.
  1675. * sysdeps/unix/sysv/linux/sh/sem_post.S: Add private futex support.
  1676. Wake only when there are waiters.
  1677. * sysdeps/unix/sysv/linux/sh/sem_wait.S: Add private futex
  1678. support. Indicate that there are waiters. Remove unnecessary
  1679. extra cancellation test.
  1680. * sysdeps/unix/sysv/linux/sh/sem_timedwait.S: Likewise. Removed
  1681. left-over duplication of __sem_wait_cleanup.
  1682. 2007-06-07 Ulrich Drepper <drepper@redhat.com>
  1683. * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Add additional
  1684. parameter to lll_futex_wait, lll_futex_timed_wait, and
  1685. lll_futex_wake. Change lll_futex_wait to call lll_futex_timed_wait.
  1686. Add lll_private_futex_wait, lll_private_futex_timed_wait, and
  1687. lll_private_futex_wake.
  1688. * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Likewise.
  1689. * allocatestack.c: Adjust use of lll_futex_* macros.
  1690. * init.c: Likewise.
  1691. * lowlevellock.h: Likewise.
  1692. * pthread_barrier_wait.c: Likewise.
  1693. * pthread_cond_broadcast.c: Likewise.
  1694. * pthread_cond_destroy.c: Likewise.
  1695. * pthread_cond_signal.c: Likewise.
  1696. * pthread_cond_timedwait.c: Likewise.
  1697. * pthread_cond_wait.c: Likewise.
  1698. * pthread_create.c: Likewise.
  1699. * pthread_mutex_lock.c: Likewise.
  1700. * pthread_mutex_setprioceiling.c: Likewise.
  1701. * pthread_mutex_timedlock.c: Likewise.
  1702. * pthread_mutex_unlock.c: Likewise.
  1703. * pthread_rwlock_timedrdlock.c: Likewise.
  1704. * pthread_rwlock_timedwrlock.c: Likewise.
  1705. * pthread_rwlock_unlock.c: Likewise.
  1706. * sysdeps/alpha/tls.h: Likewise.
  1707. * sysdeps/i386/tls.h: Likewise.
  1708. * sysdeps/ia64/tls.h: Likewise.
  1709. * sysdeps/powerpc/tls.h: Likewise.
  1710. * sysdeps/pthread/aio_misc.h: Likewise.
  1711. * sysdeps/pthread/gai_misc.h: Likewise.
  1712. * sysdeps/s390/tls.h: Likewise.
  1713. * sysdeps/sh/tls.h: Likewise.
  1714. * sysdeps/sparc/tls.h: Likewise.
  1715. * sysdeps/unix/sysv/linux/fork.c: Likewise.
  1716. * sysdeps/unix/sysv/linux/lowlevellock.c: Likewise.
  1717. * sysdeps/unix/sysv/linux/lowlevelrobustlock.c: Likewise.
  1718. * sysdeps/unix/sysv/linux/rtld-lowlevel.h: Likewise.
  1719. * sysdeps/unix/sysv/linux/sem_post.c: Likewise.
  1720. * sysdeps/unix/sysv/linux/sem_timedwait.c: Likewise.
  1721. * sysdeps/unix/sysv/linux/sem_wait.c: Likewise.
  1722. * sysdeps/unix/sysv/linux/unregister-atfork.c: Likewise.
  1723. * sysdeps/unix/sysv/linux/sparc/pthread_once.c: Likewise.
  1724. * sysdeps/unix/sysv/linux/sparc/sparc32/pthread_barrier_wait.c:
  1725. Likewise.
  1726. * sysdeps/unix/sysv/linux/sparc/sparc32/sem_post.c: Likewise.
  1727. * sysdeps/x86_64/tls.h: Likewise.
  1728. 2007-05-29 Ulrich Drepper <drepper@redhat.com>
  1729. * pthread_getattr_np.c: No need to install a cancellation handler,
  1730. this is no cancellation point.
  1731. * pthread_getschedparam.c: Likewise.
  1732. * pthread_setschedparam.c: Likewise.
  1733. * pthread_setschedprio.c: Likewise.
  1734. * sysdeps/unix/sysv/linux/lowlevellock.c: Remove all traces of
  1735. lll_unlock_wake_cb.
  1736. * sysdeps/unix/sysv/linux/alpha/lowlevellock.h: Likewise.
  1737. * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Likewise.
  1738. * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S: Likewise.
  1739. * sysdeps/unix/sysv/linux/ia64/lowlevellock.h: Likewise.
  1740. * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Likewise.
  1741. * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
  1742. * sysdeps/unix/sysv/linux/sh/lowlevellock.S: Likewise.
  1743. * sysdeps/unix/sysv/linux/sh/lowlevellock.h: Likewise.
  1744. * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Likewise.
  1745. * sysdeps/unix/sysv/linux/sparc/sparc32/lowlevellock.c: Likewise.
  1746. * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
  1747. * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
  1748. * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S: Checking
  1749. whether there are more than one thread makes no sense here since
  1750. we only call the slow path if the locks are taken.
  1751. * sysdeps/unix/sysv/linux/x86_64/libc-lowlevellock.S: Likewise.
  1752. * sysdeps/unix/sysv/linux/internaltypes.h: Introduce
  1753. COND_NWAITERS_SHIFT.
  1754. * pthread_cond_destroy.c: Use COND_NWAITERS_SHIFT instead of
  1755. COND_CLOCK_BITS.
  1756. * pthread_cond_init.c: Likewise.
  1757. * pthread_cond_timedwait.c: Likewise.
  1758. * pthread_cond_wait.c: Likewise.
  1759. * pthread_condattr_getclock.c: Likewise.
  1760. * pthread_condattr_setclock.c: Likewise.
  1761. * sysdeps/unix/sysv/linux/lowlevelcond.sym: Likewise.
  1762. * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: Likewise.
  1763. * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Likewise.
  1764. * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: Likewise.
  1765. * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: Likewise.
  1766. 2007-05-28 Jakub Jelinek <jakub@redhat.com>
  1767. * sysdeps/unix/sysv/linux/powerpc/pthread_attr_setstacksize.c: Include
  1768. unistd.h.
  1769. * sysdeps/i386/tls.h (THREAD_GSCOPE_RESET_FLAG): Use explicit
  1770. insn suffix.
  1771. (THREAD_GSCOPE_GET_FLAG): Remove.
  1772. * sysdeps/x86_64/tls.h (THREAD_GSCOPE_GET_FLAG): Remove.
  1773. * allocatestack.c (__wait_lookup_done): Revert 2007-05-24
  1774. changes.
  1775. * sysdeps/powerpc/tls.h (tcbhead_t): Remove gscope_flag.
  1776. (THREAD_GSCOPE_GET_FLAG): Remove.
  1777. (THREAD_GSCOPE_RESET_FLAG): Use THREAD_SELF->header.gscope_flag
  1778. instead of THREAD_GSCOPE_GET_FLAG.
  1779. (THREAD_GSCOPE_SET_FLAG): Likewise. Add atomic_write_barrier after
  1780. it.
  1781. * sysdeps/s390/tls.h (THREAD_GSCOPE_FLAG_UNUSED,
  1782. THREAD_GSCOPE_FLAG_USED, THREAD_GSCOPE_FLAG_WAIT,
  1783. THREAD_GSCOPE_RESET_FLAG, THREAD_GSCOPE_SET_FLAG,
  1784. THREAD_GSCOPE_WAIT): Define.
  1785. * sysdeps/sparc/tls.h (THREAD_GSCOPE_FLAG_UNUSED,
  1786. THREAD_GSCOPE_FLAG_USED, THREAD_GSCOPE_FLAG_WAIT,
  1787. THREAD_GSCOPE_RESET_FLAG, THREAD_GSCOPE_SET_FLAG,
  1788. THREAD_GSCOPE_WAIT): Define.
  1789. * sysdeps/sh/tls.h (THREAD_GSCOPE_FLAG_UNUSED,
  1790. THREAD_GSCOPE_FLAG_USED, THREAD_GSCOPE_FLAG_WAIT,
  1791. THREAD_GSCOPE_RESET_FLAG, THREAD_GSCOPE_SET_FLAG,
  1792. THREAD_GSCOPE_WAIT): Define.
  1793. * sysdeps/ia64/tls.h (THREAD_GSCOPE_FLAG_UNUSED,
  1794. THREAD_GSCOPE_FLAG_USED, THREAD_GSCOPE_FLAG_WAIT,
  1795. THREAD_GSCOPE_RESET_FLAG, THREAD_GSCOPE_SET_FLAG,
  1796. THREAD_GSCOPE_WAIT): Define.
  1797. 2007-05-24 Richard Henderson <rth@redhat.com>
  1798. * descr.h (struct pthread): Add header.gscope_flag.
  1799. * sysdeps/alpha/tls.h (THREAD_GSCOPE_FLAG_UNUSED,
  1800. THREAD_GSCOPE_FLAG_USED, THREAD_GSCOPE_FLAG_WAIT,
  1801. THREAD_GSCOPE_RESET_FLAG, THREAD_GSCOPE_SET_FLAG,
  1802. THREAD_GSCOPE_WAIT): Define.
  1803. 2007-05-27 Ulrich Drepper <drepper@redhat.com>
  1804. * init.c: Make it compile with older kernel headers.
  1805. * tst-initializers1.c: Show through exit code which test failed.
  1806. * pthread_rwlock_init.c: Also initialize __shared field.
  1807. * sysdeps/unix/sysv/linux/i386/bits/pthreadtypes.h: Split __flags
  1808. element in rwlock structure into four byte elements. One of them is
  1809. the new __shared element.
  1810. * sysdeps/unix/sysv/linux/x86_64/bits/pthreadtypes.h [__WORDSIZE=32]:
  1811. Likewise.
  1812. [__WORDSIZE=64]: Renamed __pad1 element int rwlock structure to
  1813. __shared, adjust names of other padding elements.
  1814. * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: Likewise.
  1815. * sysdeps/pthread/pthread.h: Adjust rwlock initializers.
  1816. * sysdeps/unix/sysv/linux/lowlevelrwlock.sym: Add PSHARED.
  1817. * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Define
  1818. FUTEX_PRIVATE_FLAG.
  1819. * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_rdlock.S: Change main
  1820. futex to use private operations if possible.
  1821. * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedrdlock.S:
  1822. Likewise.
  1823. * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedwrlock.S:
  1824. Likewise.
  1825. * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_unlock.S: Likewise.
  1826. * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_wrlock.S: Likewise.
  1827. * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_rdlock.S: Likewise.
  1828. * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S:
  1829. Likewise.
  1830. * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S:
  1831. Likewise.
  1832. * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_unlock.S: Likewise.
  1833. * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_wrlock.S: Likewise.
  1834. 2007-05-26 Ulrich Drepper <drepper@redhat.com>
  1835. * pthreadP.h (PTHREAD_RWLOCK_PREFER_READER_P): Define.
  1836. * pthread_rwlock_rdlock.c: Use PTHREAD_RWLOCK_PREFER_READER_P.
  1837. * pthread_rwlock_timedrdlock.c: Likewise.
  1838. * pthread_rwlock_tryrdlock.c: Likewise.
  1839. * sysdeps/unix/sysv/linux/x86_64/sem_trywait.S (sem_trywait): Tiny
  1840. optimization.
  1841. * sysdeps/unix/sysv/linux/sem_wait.c: Add missing break.
  1842. * sysdeps/unix/sysv/linux/sem_timedwait.c: Removed left-over
  1843. duplication of __sem_wait_cleanup.
  1844. * allocatestack.c: Revert last change.
  1845. * init.c: Likewise.
  1846. * sysdeps/i386/tls.h: Likewise.
  1847. * sysdeps/x86_64/tls.h: Likewise.
  1848. * descr.h [TLS_DTV_AT_TP] (struct pthread): Add private_futex field to
  1849. header structure.
  1850. * sysdeps/powerpc/tcb-offsets.sym: Add PRIVATE_FUTEX_OFFSET.
  1851. * sysdeps/unix/sysv/linux/internaltypes.h (struct pthread_barrier):
  1852. Add private field.
  1853. * sysdeps/unix/sysv/linux/lowlevelbarrier.sym: Add PRIVATE definition.
  1854. * pthread_barrier_init.c: Set private flag if pshared and private
  1855. futexes are supported.
  1856. * sysdeps/unix/sysv/linux/i386/i486/pthread_barrier_wait.S: Use
  1857. private field in futex command setup.
  1858. * sysdeps/unix/sysv/linux/x86_64/pthread_barrier_wait.S: Likewise.
  1859. 2007-05-25 Ulrich Drepper <drepper@redhat.com>
  1860. * sysdeps/unix/sysv/linux/i386/i486/sem_post.S: Add private futex
  1861. support.
  1862. * sysdeps/unix/sysv/linux/i386/i486/sem_timedwait.S: Likewise.
  1863. * sysdeps/unix/sysv/linux/i386/i486/sem_wait.S: Likewise.
  1864. * sysdeps/unix/sysv/linux/x86_64/sem_post.S: Likewise.
  1865. * sysdeps/unix/sysv/linux/x86_64/sem_timedwait.S: Likewise.
  1866. * sysdeps/unix/sysv/linux/x86_64/sem_wait.S: Likewise.
  1867. * semaphoreP.h: Declare __old_sem_init and __old_sem_wait.
  1868. * sem_init.c (__new_sem_init): Rewrite to initialize all three
  1869. fields in the structure.
  1870. (__old_sem_init): New function.
  1871. * sem_open.c: Initialize all fields of the structure.
  1872. * sem_getvalue.c: Adjust for renamed element.
  1873. * sysdeps/unix/sysv/linux/Makefile [subdir=nptl]
  1874. (gen-as-const-headers): Add structsem.sym.
  1875. * sysdeps/unix/sysv/linux/structsem.sym: New file.
  1876. * sysdeps/unix/sysv/linux/internaltypes.h: Rename struct sem to
  1877. struct new_sem. Add struct old_sem.
  1878. * sysdeps/unix/sysv/linux/sem_post.c: Wake only when there are waiters.
  1879. * sysdeps/unix/sysv/linux/i386/i486/sem_post.S: Likewise.
  1880. * sysdeps/unix/sysv/linux/x86_64/sem_post.S: Likewise.
  1881. * sysdeps/unix/sysv/linux/sem_wait.c: Indicate that there are waiters.
  1882. * sysdeps/unix/sysv/linux/i386/i486/sem_wait.S: Likewise.
  1883. * sysdeps/unix/sysv/linux/x86_64/sem_wait.S: Likewise.
  1884. * sysdeps/unix/sysv/linux/sem_timedwait.c: Likewise.
  1885. * sysdeps/unix/sysv/linux/i386/i486/sem_timedwait.S: Likewise.
  1886. * sysdeps/unix/sysv/linux/x86_64/sem_timedwait.S: Likewise.
  1887. * Makefile (tests): Add tst-sem10, tst-sem11, tst-sem12.
  1888. * tst-sem10.c: New file.
  1889. * tst-sem11.c: New file.
  1890. * tst-sem12.c: New file.
  1891. * tst-typesizes.c: Test struct new_sem and struct old_sem instead
  1892. of struct sem.
  1893. 2007-05-25 Ulrich Drepper <drepper@redhat.com>
  1894. Jakub Jelinek <jakub@redhat.com>
  1895. * sysdeps/unix/sysv/linux/i386/i486/sem_timedwait.S (sem_timedwait):
  1896. Move __pthread_enable_asynccancel right before futex syscall.
  1897. * sysdeps/unix/sysv/linux/x86_64/sem_timedwait.S (sem_timedwait):
  1898. Likewise.
  1899. 2007-05-24 Jakub Jelinek <jakub@redhat.com>
  1900. * sysdeps/i386/tls.h (THREAD_SET_PRIVATE_FUTEX,
  1901. THREAD_COPY_PRIVATE_FUTEX): Define.
  1902. * sysdeps/x86_64/tls.h (THREAD_SET_PRIVATE_FUTEX,
  1903. THREAD_COPY_PRIVATE_FUTEX): Define.
  1904. * allocatestack.c (allocate_stack): Use THREAD_COPY_PRIVATE_FUTEX.
  1905. * init.c (__pthread_initialize_minimal_internal): Use
  1906. THREAD_SET_PRIVATE_FUTEX.
  1907. * sysdeps/powerpc/tls.h (tcbhead_t): Add gscope_flag.
  1908. (THREAD_GSCOPE_FLAG_UNUSED, THREAD_GSCOPE_FLAG_USED,
  1909. THREAD_GSCOPE_FLAG_WAIT): Define.
  1910. (THREAD_GSCOPE_GET_FLAG, THREAD_GSCOPE_SET_FLAG,
  1911. THREAD_GSCOPE_RESET_FLAG, THREAD_GSCOPE_WAIT): Define.
  1912. * sysdeps/i386/tls.h (THREAD_GSCOPE_WAIT): Don't use
  1913. PTR_DEMANGLE.
  1914. (THREAD_GSCOPE_GET_FLAG): Define.
  1915. * sysdeps/x86_64/tls.h (THREAD_GSCOPE_GET_FLAG): Define.
  1916. * allocatestack.c (__wait_lookup_done): Use THREAD_GSCOPE_GET_FLAG
  1917. instead of ->header.gscope_flag directly.
  1918. 2007-05-23 Ulrich Drepper <drepper@redhat.com>
  1919. * init.c (__pthread_initialize_minimal_internal): Check whether
  1920. private futexes are available.
  1921. * allocatestack.c (allocate_stack): Copy private_futex field from
  1922. current thread into the new stack.
  1923. * sysdeps/unix/sysv/linux/x86_64/libc-lowlevellock.S: Use private
  1924. futexes if they are available.
  1925. * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S: Likewise
  1926. * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Adjust so that change
  1927. in libc-lowlevellock.S allow using private futexes.
  1928. * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S: Likewise.
  1929. * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Define
  1930. FUTEX_PRIVATE_FLAG.
  1931. * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Likewise.
  1932. * sysdeps/unix/sysv/linux/x86_64/pthread_once.S: Use private futexes
  1933. if they are available.
  1934. * sysdeps/unix/sysv/linux/i386/pthread_once.S: Likewise.
  1935. * sysdeps/x86_64/tcb-offsets.sym: Add PRIVATE_FUTEX.
  1936. * sysdeps/i386/tcb-offsets.sym: Likewise.
  1937. * sysdeps/x86_64/tls.h (tcbhead_t): Add private_futex field.
  1938. * sysdeps/i386/tls.h (tcbhead_t): Likewise.
  1939. 2007-05-21 Ulrich Drepper <drepper@redhat.com>
  1940. * sysdeps/pthread/pthread-functions.h (struct pthread_functions):
  1941. Remove ptr_wait_lookup_done again.
  1942. * init.c (pthread_functions): Don't add .ptr_wait_lookup_done here.
  1943. (__pthread_initialize_minimal_internal): Initialize
  1944. _dl_wait_lookup_done pointer in _rtld_global directly.
  1945. * sysdeps/unix/sysv/linux/libc_pthread_init.c (__libc_pthread_init):
  1946. Remove code to code _dl_wait_lookup_done.
  1947. * sysdeps/x86_64/tls.h (THREAD_GSCOPE_WAIT): The pointer is not
  1948. encrypted for now.
  1949. 2007-05-21 Jakub Jelinek <jakub@redhat.com>
  1950. * tst-robust9.c (do_test): Don't fail if ENABLE_PI and
  1951. pthread_mutex_init failed with ENOTSUP.
  1952. 2007-05-19 Ulrich Drepper <drepper@redhat.com>
  1953. * allocatestack.c (__wait_lookup_done): New function.
  1954. * sysdeps/pthread/pthread-functions.h (struct pthread_functions):
  1955. Add ptr_wait_lookup_done.
  1956. * init.c (pthread_functions): Initialize .ptr_wait_lookup_done.
  1957. * pthreadP.h: Declare __wait_lookup_done.
  1958. * sysdeps/i386/tls.h (tcbhead_t): Add gscope_flag.
  1959. Define macros to implement reference handling of global scope.
  1960. * sysdeps/x86_64/tls.h: Likewise.
  1961. * sysdeps/unix/sysv/linux/libc_pthread_init.c (__libc_pthread_init):
  1962. Initialize GL(dl_wait_lookup_done).
  1963. 2007-05-17 Ulrich Drepper <drepper@redhat.com>
  1964. [BZ #4512]
  1965. * pthread_mutex_lock.c: Preserve FUTEX_WAITERS bit when dead owner
  1966. is detected.
  1967. * pthread_mutex_timedlock.c: Likewise.
  1968. * pthread_mutex_trylock.c: Likewise.
  1969. Patch in part by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
  1970. * Makefile (tests): Add tst-robust9 and tst-robustpi9.
  1971. * tst-robust9.c: New file.
  1972. * tst-robustpi9.c: New file.
  1973. * sysdeps/unix/sysv/linux/sem_wait.c (__new_sem_wait): Remove
  1974. unnecessary extra cancellation test.
  1975. 2007-05-14 Ulrich Drepper <drepper@redhat.com>
  1976. * sysdeps/unix/sysv/linux/x86_64/sem_wait.S: Remove unnecessary
  1977. extra cancellation test.
  1978. * sysdeps/unix/sysv/linux/x86_64/sem_timedwait.S: Likewise.
  1979. 2007-05-10 Ulrich Drepper <drepper@redhat.com>
  1980. * descr.h (struct pthread): Rearrange members to fill hole in
  1981. 64-bit layout.
  1982. * sysdeps/unix/sysv/linux/pthread_setaffinity.c
  1983. (__pthread_setaffinity_new): If syscall was successful and
  1984. RESET_VGETCPU_CACHE is defined, use it before returning.
  1985. * sysdeps/unix/sysv/linux/x86_64/pthread_setaffinity.c: New file.
  1986. 2007-05-10 Jakub Jelinek <jakub@redhat.com>
  1987. [BZ #4455]
  1988. * tst-align2.c: Include stackinfo.h.
  1989. * tst-getpid1.c: Likewise.
  1990. 2007-05-02 Carlos O'Donell <carlos@systemhalted.org>
  1991. [BZ #4455]
  1992. * tst-align2.c (do_test): Add _STACK_GROWS_UP case.
  1993. * tst-getpid1.c (do_test): Likewise.
  1994. [BZ #4456]
  1995. * allocatestack.c (change_stack_perm): Add _STACK_GROWS_UP case.
  1996. (allocate_stack): Likewise.
  1997. 2007-05-07 Ulrich Drepper <drepper@redhat.com>
  1998. * sysdeps/unix/sysv/linux/lowlevelrobustlock.c
  1999. (__lll_robust_lock_wait): Fix race caused by reloading of futex value.
  2000. (__lll_robust_timedlock_wait): Likewise.
  2001. Reported by Alexey Kuznetsov <kuznet@ms2.inr.ac.ru>.
  2002. 2007-05-06 Mike Frysinger <vapier@gentoo.org>
  2003. [BZ #4465]
  2004. * tst-cancel-wrappers.sh: Set C["fdatasync"] to 1.
  2005. * tst-cancel4.c (tf_fdatasync): New test.
  2006. 2007-04-27 Ulrich Drepper <drepper@redhat.com>
  2007. [BZ #4392]
  2008. * pthread_mutex_trylock.c (__pthread_mutex_trylock): Treat error
  2009. check mutexes like normal mutexes.
  2010. [BZ #4306]
  2011. * sysdeps/unix/sysv/linux/timer_create.c (timer_create):
  2012. Initialize the whole sigevent structure to appease valgrind.
  2013. 2007-04-25 Ulrich Drepper <drepper@redhat.com>
  2014. * sysdeps/x86_64/tls.h (tcbhead_t): Add vgetcpu_cache.
  2015. * sysdeps/x86_64/tcb-offsets.sym: Add VGETCPU_CACHE_OFFSET.
  2016. 2007-04-06 Ulrich Drepper <drepper@redhat.com>
  2017. * tst-locale1.c: Avoid warnings.
  2018. * tst-locale2.c: Likewise.
  2019. 2007-03-19 Steven Munroe <sjmunroe@us.ibm.com>
  2020. * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h
  2021. (__lll_robust_trylock): Add MUTEX_HINT_ACQ to lwarx instruction.
  2022. 2007-03-16 Jakub Jelinek <jakub@redhat.com>
  2023. * sysdeps/pthread/bits/libc-lock.h: Use __extern_inline and
  2024. __extern_always_inline where appropriate.
  2025. * sysdeps/pthread/pthread.h: Likewise.
  2026. 2007-03-13 Richard Henderson <rth@redhat.com>
  2027. * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h (PSEUDO): Use two
  2028. separate cfi regions for the two subsections.
  2029. 2007-02-25 Ulrich Drepper <drepper@redhat.com>
  2030. * sysdeps/unix/sysv/linux/fork.c (__libc_fork): Reset refcntr in
  2031. new thread, don't just decrement it.
  2032. Patch by Suzuki K P <suzuki@in.ibm.com>.
  2033. 2007-02-21 Ulrich Drepper <drepper@redhat.com>
  2034. * sysdeps/pthread/pthread-functions.h: Correct last patch, correct
  2035. PTHFCT_CALL definition.
  2036. 2007-02-18 Ulrich Drepper <drepper@redhat.com>
  2037. * sysdeps/pthread/pthread-functions.h: If PTR_DEMANGLE is not
  2038. available, don't use it.
  2039. 2007-02-09 Jakub Jelinek <jakub@redhat.com>
  2040. * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S
  2041. (__lll_mutex_timedlock_wait): Use correct pointer when we don't
  2042. call into the kernel to delay.
  2043. 2007-01-18 Ulrich Drepper <drepper@redhat.com>
  2044. * tst-initializers1.c: We want to test the initializers as seen
  2045. outside of libc, so undefined _LIBC.
  2046. * pthread_join.c (cleanup): Avoid warning.
  2047. 2007-01-17 Ulrich Drepper <drepper@redhat.com>
  2048. * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S
  2049. (__lll_timedwait_tid): Add unwind info.
  2050. * sysdeps/unix/sysv/linux/libc_pthread_init.c: Don't just copy the
  2051. function table, mangle the pointers.
  2052. * sysdeps/pthread/pthread-functions.h: Define PTHFCT_CALL.
  2053. * forward.c: Use PTHFCT_CALL and __libc_pthread_functions_init.
  2054. * sysdeps/pthread/bits/libc-lock.h: When using __libc_pthread_functions
  2055. demangle pointers before use.
  2056. * sysdeps/unix/sysv/linux/s390/jmp-unwind.c: Use PTHFCT_CALL to
  2057. demangle pointer.
  2058. * sysdeps/unix/sysv/linux/jmp-unwind.c: Likewise.
  2059. * sysdeps/pthread/setxid.h: Likewise.
  2060. 2007-01-12 Ulrich Drepper <drepper@redhat.com>
  2061. * tst-rwlock7.c: Show some more information in case of correct
  2062. behavior.
  2063. 2007-01-11 Ulrich Drepper <drepper@redhat.com>
  2064. * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h
  2065. (lll_futex_timed_wait): Undo part of last change, don't negate
  2066. return value.
  2067. 2007-01-10 Ulrich Drepper <drepper@redhat.com>
  2068. * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Cleanups. Define
  2069. FUTEX_CMP_REQUEUE and lll_futex_requeue.
  2070. 2006-12-28 David S. Miller <davem@davemloft.net>
  2071. * shlib-versions: Fix sparc64 linux target specification.
  2072. 2007-01-10 Jakub Jelinek <jakub@redhat.com>
  2073. * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/pthread_barrier_wait.c:
  2074. Adjust include path for pthread_barrier_wait.c move.
  2075. 2006-12-21 Jakub Jelinek <jakub@redhat.com>
  2076. * sysdeps/unix/sysv/linux/pthread_kill.c (pthread_kill): Make sure
  2077. tid isn't reread from pd->tid in between ESRCH test and the syscall.
  2078. 2006-12-06 Jakub Jelinek <jakub@redhat.com>
  2079. * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h (PSEUDO): Handle
  2080. 6 argument cancellable syscalls.
  2081. (STM_6, LM_6, LR7_0, LR7_1, LR7_2, LR7_3, LR7_4, LR7_5, LR7_6): Define.
  2082. * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h (PSEUDO): Handle
  2083. 6 argument cancellable syscalls.
  2084. (STM_6, LM_6, LR7_0, LR7_1, LR7_2, LR7_3, LR7_4, LR7_5, LR7_6): Define.
  2085. 2006-12-09 Ulrich Drepper <drepper@redhat.com>
  2086. * sysdeps/unix/sysv/linux/rtld-lowlevel.h
  2087. (__rtld_mrlock_initialize): Add missing closing parenthesis.
  2088. 2006-10-30 Jakub Jelinek <jakub@redhat.com>
  2089. * sysdeps/ia64/pthread_spin_unlock.c (pthread_spin_unlock): Use
  2090. __sync_lock_release instead of __sync_lock_release_si.
  2091. 2006-10-29 Jakub Jelinek <jakub@redhat.com>
  2092. * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (RTLD_SINGLE_THREAD_P):
  2093. Define.
  2094. (SINGLE_THREAD_P): Define to 1 if IS_IN_rtld.
  2095. * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: Likewise.
  2096. * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h: Likewise.
  2097. * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: Likewise.
  2098. * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: Likewise.
  2099. * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: Likewise.
  2100. * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h: Likewise.
  2101. * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Likewise.
  2102. * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Likewise.
  2103. * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Likewise.
  2104. * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Likewise.
  2105. 2006-10-27 Ulrich Drepper <drepper@redhat.com>
  2106. * sysdeps/pthread/pthread_barrier_wait.c: Move to...
  2107. * pthread_barrier_wait.c: ...here.
  2108. * sysdeps/pthread/pthread_cond_broadcast.c: Move to...
  2109. * pthread_cond_broadcast.c: ...here.
  2110. * sysdeps/pthread/pthread_cond_signal.c: Move to...
  2111. * pthread_cond_signal.c: ...here.
  2112. * sysdeps/pthread/pthread_cond_timedwait.c: Move to...
  2113. * pthread_cond_timedwait.c: ...here.
  2114. * sysdeps/pthread/pthread_cond_wait.c: Move to...
  2115. * pthread_cond_wait.c: ...here.
  2116. * sysdeps/pthread/pthread_once.c: Move to...
  2117. * pthread_once.c: ...here.
  2118. * sysdeps/pthread/pthread_rwlock_rdlock.c: Move to...
  2119. * pthread_rwlock_rdlock.c: ...here.
  2120. * sysdeps/pthread/pthread_rwlock_timedrdlock.c: Move to...
  2121. * pthread_rwlock_timedrdlock.c: ...here.
  2122. * sysdeps/pthread/pthread_rwlock_timedwrlock.c: Move to...
  2123. * pthread_rwlock_timedwrlock.c: ...here.
  2124. * sysdeps/pthread/pthread_rwlock_unlock.c: Move to...
  2125. * pthread_rwlock_unlock.c: ...here.
  2126. * sysdeps/pthread/pthread_rwlock_wrlock.c: Move to...
  2127. * pthread_rwlock_wrlock.c: ...here.
  2128. * sysdeps/pthread/pthread_spin_destroy.c: Move to...
  2129. * pthread_spin_destroy.c: ...here.
  2130. * sysdeps/pthread/pthread_spin_init.c: Move to...
  2131. * pthread_spin_init.c: ...here.
  2132. * sysdeps/pthread/pthread_spin_unlock.c: Move to...
  2133. * pthread_spin_unlock.c: ...here.
  2134. * sysdeps/pthread/pthread_getcpuclockid.c: Move to...
  2135. * pthread_getcpuclockid.c: ...here.
  2136. * init.c: USE_TLS support is now always enabled.
  2137. * tst-tls5.h: Likewise.
  2138. * sysdeps/alpha/tls.h: Likewise.
  2139. * sysdeps/i386/tls.h: Likewise.
  2140. * sysdeps/ia64/tls.h: Likewise.
  2141. * sysdeps/powerpc/tls.h: Likewise.
  2142. * sysdeps/s390/tls.h: Likewise.
  2143. * sysdeps/sh/tls.h: Likewise.
  2144. * sysdeps/sparc/tls.h: Likewise.
  2145. * sysdeps/x86_64/tls.h: Likewise.
  2146. 2006-10-27 Jakub Jelinek <jakub@redhat.com>
  2147. * sysdeps/unix/sysv/linux/rtld-lowlevel.h (__rtld_mrlock_lock,
  2148. __rtld_mrlock_change): Update oldval if atomic compare and exchange
  2149. failed.
  2150. * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h (SINGLE_THREAD_P):
  2151. Define to THREAD_SELF->header.multiple_threads.
  2152. * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (SINGLE_THREAD_P):
  2153. Likewise.
  2154. * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (SINGLE_THREAD_P):
  2155. Likewise.
  2156. * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h
  2157. (SINGLE_THREAD_P): Likewise.
  2158. * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h
  2159. (SINGLE_THREAD_P): Likewise.
  2160. * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h
  2161. (SINGLE_THREAD_P): Likewise.
  2162. * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h
  2163. (SINGLE_THREAD_P): Likewise.
  2164. * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h (SINGLE_THREAD_P):
  2165. Likewise.
  2166. * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h
  2167. (SINGLE_THREAD_P): Likewise.
  2168. * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h
  2169. (SINGLE_THREAD_P): Likewise.
  2170. * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h (SINGLE_THREAD_P):
  2171. Likewise.
  2172. 2006-10-26 Jakub Jelinek <jakub@redhat.com>
  2173. * pthread_attr_setstacksize.c (NEW_VERNUM): Define to GLIBC_2_3_3
  2174. by default rather than 2_3_3.
  2175. 2006-10-17 Jakub Jelinek <jakub@redhat.com>
  2176. * sysdeps/unix/sysv/linux/rtld-lowlevel.h (__rtld_mrlock_lock,
  2177. __rtld_mrlock_unlock, __rtld_mrlock_change, __rtld_mrlock_done): Use
  2178. atomic_* instead of catomic_* macros.
  2179. 2006-10-12 Ulrich Drepper <drepper@redhat.com>
  2180. [BZ #3285]
  2181. * sysdeps/unix/sysv/linux/bits/local_lim.h: Add SEM_VALUE_MAX.
  2182. * sysdeps/unix/sysv/linux/powerpc/bits/local_lim.h: Likewise.
  2183. * sysdeps/unix/sysv/linux/sparc/bits/local_lim.h: Likewise.
  2184. * sysdeps/unix/sysv/linux/alpha/bits/local_lim.h: Likewise.
  2185. * sysdeps/unix/sysv/linux/ia64/bits/local_lim.h: Likewise.
  2186. * sysdeps/unix/sysv/linux/i386/bits/semaphore.h: Remove SEM_VALUE_MAX.
  2187. * sysdeps/unix/sysv/linux/powerpc/bits/semaphore.h: Likewise.
  2188. * sysdeps/unix/sysv/linux/x86_64/bits/semaphore.h: Likewise.
  2189. * sysdeps/unix/sysv/linux/sparc/bits/semaphore.h: Likewise.
  2190. * sysdeps/unix/sysv/linux/alpha/bits/semaphore.h: Likewise.
  2191. * sysdeps/unix/sysv/linux/sh/bits/semaphore.h: Likewise.
  2192. * sysdeps/unix/sysv/linux/ia64/bits/semaphore.h: Likewise.
  2193. * sysdeps/unix/sysv/linux/s390/bits/semaphore.h: Likewise.
  2194. 2006-10-11 Ulrich Drepper <drepper@redhat.com>
  2195. * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: Add support for
  2196. cancelable syscalls with six parameters.
  2197. * sysdeps/unix/sysv/linux/rtld-lowlevel.h: Use catomic_*
  2198. operations instead of atomic_*.
  2199. 2006-10-09 Ulrich Drepper <drepper@redhat.com>
  2200. * sysdeps/unix/sysv/linux/rtld-lowlevel.h: New file..
  2201. 2006-10-07 Ulrich Drepper <drepper@redhat.com>
  2202. * sysdeps/unix/sysv/linux/powerpc/bits/local_lim.h: New file.
  2203. * sysdeps/unix/sysv/linux/powerpc/pthread_attr_setstack.c: New file.
  2204. * sysdeps/unix/sysv/linux/powerpc/pthread_attr_setstacksize.c:
  2205. New file.
  2206. * pthread_attr_setstack.c: Allow overwriting the version number of the
  2207. new symbol.
  2208. * pthread_attr_setstacksize.c: Likewise.
  2209. (__old_pthread_attr_setstacksize): If STACKSIZE_ADJUST is defined use
  2210. it.
  2211. * sysdeps/unix/sysv/linux/powerpc/Versions (libpthread): Add
  2212. pthread_attr_setstack and pthread_attr_setstacksize to GLIBC_2.6.
  2213. 2006-09-24 Ulrich Drepper <drepper@redhat.com>
  2214. [BZ #3251]
  2215. * descr.h (ENQUEUE_MUTEX_BOTH): Add cast to avoid warning.
  2216. Patch by Petr Baudis.
  2217. 2006-09-18 Jakub Jelinek <jakub@redhat.com>
  2218. * tst-kill4.c (do_test): Explicitly set tf thread's stack size.
  2219. * tst-cancel2.c (tf): Loop as long as something was written.
  2220. 2006-09-12 Kaz Kojima <kkojima@rr.iij4u.or.jp>
  2221. * sysdeps/unix/sysv/linux/sh/pthread_cond_broadcast.S: For PI
  2222. mutexes wake all mutexes.
  2223. * sysdeps/unix/sysv/linux/sh/pthread_cond_wait.S: Don't increment
  2224. WAKEUP_SEQ if this would increase the value beyond TOTAL_SEQ.
  2225. * sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S: Likewise.
  2226. 2006-09-12 Ulrich Drepper <drepper@redhat.com>
  2227. * tst-cond22.c (tf): Slight changes to the pthread_cond_wait use
  2228. to guarantee the thread is always canceled.
  2229. 2006-09-08 Jakub Jelinek <jakub@redhat.com>
  2230. * tst-cond22.c: Include pthread.h instead of pthreadP.h.
  2231. Include stdlib.h.
  2232. * sysdeps/pthread/pthread_cond_wait.c (__condvar_cleanup): Only
  2233. increase FUTEX if increasing WAKEUP_SEQ. Fix comment typo.
  2234. * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Likewise.
  2235. * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: Likewise.
  2236. * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: Likewise.
  2237. 2006-09-08 Ulrich Drepper <drepper@redhat.com>
  2238. [BZ #3123]
  2239. * sysdeps/pthread/pthread_cond_wait.c (__condvar_cleanup): Don't
  2240. increment WAKEUP_SEQ if this would increase the value beyond TOTAL_SEQ.
  2241. * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Likewise.
  2242. * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: Likewise.
  2243. * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: Likewise.
  2244. * Makefile (tests): Add tst-cond22.
  2245. * tst-cond22.c: New file.
  2246. 2006-09-05 Ulrich Drepper <drepper@redhat.com>
  2247. [BZ #3124]
  2248. * descr.h (struct pthread): Add parent_cancelhandling.
  2249. * sysdeps/pthread/createthread.c (create_thread): Pass parent
  2250. cancelhandling value to child.
  2251. * pthread_create.c (start_thread): If parent thread was canceled
  2252. reset the SIGCANCEL mask.
  2253. * Makefile (tests): Add tst-cancel25.
  2254. * tst-cancel25.c: New file.
  2255. 2006-09-05 Jakub Jelinek <jakub@redhat.com>
  2256. Ulrich Drepper <drepper@redhat.com>
  2257. * sysdeps/pthread/gai_misc.h (GAI_MISC_NOTIFY): Don't decrement
  2258. counterp if it is already zero.
  2259. * sysdeps/pthread/aio_misc.h (AIO_MISC_NOTIFY): Likewise..
  2260. 2006-03-04 Jakub Jelinek <jakub@redhat.com>
  2261. Roland McGrath <roland@redhat.com>
  2262. * sysdeps/unix/sysv/linux/i386/lowlevellock.h
  2263. (LLL_STUB_UNWIND_INFO_START, LLL_STUB_UNWIND_INFO_END,
  2264. LLL_STUB_UNWIND_INFO_3, LLL_STUB_UNWIND_INFO_4): Define.
  2265. (lll_mutex_lock, lll_robust_mutex_lock, lll_mutex_cond_lock,
  2266. lll_robust_mutex_cond_lock, lll_mutex_timedlock,
  2267. lll_robust_mutex_timedlock, lll_mutex_unlock,
  2268. lll_robust_mutex_unlock, lll_lock, lll_unlock): Use them.
  2269. Add _L_*_ symbols around the subsection.
  2270. * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S: Add unwind info.
  2271. * sysdeps/unix/sysv/linux/i386/i486/lowlevelrobustlock.S: Likewise.
  2272. 2006-03-03 Jakub Jelinek <jakub@redhat.com>
  2273. Roland McGrath <roland@redhat.com>
  2274. * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h
  2275. (LLL_STUB_UNWIND_INFO_START, LLL_STUB_UNWIND_INFO_END,
  2276. LLL_STUB_UNWIND_INFO_5, LLL_STUB_UNWIND_INFO_6): Define.
  2277. (lll_mutex_lock, lll_robust_mutex_lock, lll_mutex_cond_lock,
  2278. lll_robust_mutex_cond_lock, lll_mutex_timedlock,
  2279. lll_robust_mutex_timedlock, lll_mutex_unlock,
  2280. lll_robust_mutex_unlock, lll_lock, lll_unlock): Use them.
  2281. Add _L_*_ symbols around the subsection.
  2282. * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Add unwind info.
  2283. * sysdeps/unix/sysv/linux/x86_64/lowlevelrobustlock.S: Likewise.
  2284. 2006-08-31 Ulrich Drepper <drepper@redhat.com>
  2285. * pthread_rwlock_trywrlock.c (__pthread_rwlock_trywrlock): Undo last
  2286. change because it can disturb too much existing code. If real hard
  2287. reader preference is needed we'll introduce another type.
  2288. * sysdeps/pthread/pthread_rwlock_timedwrlock.c
  2289. (pthread_rwlock_timedwrlock): Likewise.
  2290. * sysdeps/pthread/pthread_rwlock_wrlock.c (__pthread_rwlock_wrlock):
  2291. Likewise.
  2292. 2006-08-30 Ulrich Drepper <drepper@redhat.com>
  2293. * pthread_rwlock_trywrlock.c (__pthread_rwlock_trywrlock): Respect
  2294. reader preference.
  2295. * sysdeps/pthread/pthread_rwlock_timedwrlock.c
  2296. (pthread_rwlock_timedwrlock): Likewise.
  2297. * sysdeps/pthread/pthread_rwlock_wrlock.c (__pthread_rwlock_wrlock):
  2298. Likewise.
  2299. 2006-08-25 Jakub Jelinek <jakub@redhat.com>
  2300. * sysdeps/unix/sysv/linux/libc_pthread_init.c (freeres_libpthread):
  2301. Only define ifdef SHARED.
  2302. 2006-08-23 Ulrich Drepper <drepper@redhat.com>
  2303. * allocatestack.c (queue_stack): Move freeing of surplus stacks to...
  2304. (free_stacks): ...here.
  2305. (__free_stack_cache): New function.
  2306. * pthreadP.h: Declare __free_stack_cache.
  2307. * sysdeps/pthread/pthread-functions.h (pthread_functions): Add
  2308. ptr_freeres.
  2309. * init.c (pthread_functions): Initialize ptr_freeres.
  2310. * sysdeps/unix/sysv/linux/libc_pthread_init.c (freeres_libptread):
  2311. New freeres function.
  2312. 2006-07-30 Joseph S. Myers <joseph@codesourcery.com>
  2313. [BZ #3018]
  2314. * Makefile (extra-objs): Add modules to extra-test-objs instead.
  2315. 2006-08-20 Ulrich Drepper <drepper@redhat.com>
  2316. * sysdeps/unix/sysv/linux/bits/posix_opt.h: Define
  2317. _XOPEN_REALTIME_THREADS.
  2318. 2006-08-15 Jakub Jelinek <jakub@redhat.com>
  2319. * sysdeps/unix/sysv/linux/clock_settime.c (INTERNAL_VSYSCALL): Use
  2320. HAVE_CLOCK_GETRES_VSYSCALL as guard macro rather than
  2321. HAVE_CLOCK_GETTIME_VSYSCALL.
  2322. (maybe_syscall_settime_cpu): Use plain INTERNAL_VSYSCALL here.
  2323. 2006-08-14 Jakub Jelinek <jakub@redhat.com>
  2324. * sysdeps/unix/sysv/linux/bits/posix_opt.h
  2325. (_POSIX_THREAD_PRIO_PROTECT): Define to 200112L.
  2326. * descr.h (struct priority_protection_data): New type.
  2327. (struct pthread): Add tpp field.
  2328. * pthreadP.h (PTHREAD_MUTEX_PP_NORMAL_NP,
  2329. PTHREAD_MUTEX_PP_RECURSIVE_NP, PTHREAD_MUTEX_PP_ERRORCHECK_NP,
  2330. PTHREAD_MUTEX_PP_ADAPTIVE_NP): New enum values.
  2331. * pthread_mutex_init.c (__pthread_mutex_init): Handle non-robust
  2332. TPP mutexes.
  2333. * pthread_mutex_lock.c (__pthread_mutex_lock): Handle TPP mutexes.
  2334. * pthread_mutex_trylock.c (__pthread_mutex_trylock): Likewise.
  2335. * pthread_mutex_timedlock.c (pthread_mutex_timedlock): Likewise.
  2336. * pthread_mutex_unlock.c (__pthread_mutex_unlock_usercnt): Likewise.
  2337. * tpp.c: New file.
  2338. * pthread_setschedparam.c (__pthread_setschedparam): Handle priority
  2339. boosted by TPP.
  2340. * pthread_setschedprio.c (pthread_setschedprio): Likewise.
  2341. * pthread_mutexattr_getprioceiling.c
  2342. (pthread_mutexattr_getprioceiling): If ceiling is 0, ensure it is
  2343. in the SCHED_FIFO priority range.
  2344. * pthread_mutexattr_setprioceiling.c
  2345. (pthread_mutexattr_setprioceiling): Fix prioceiling validation.
  2346. * pthread_mutex_getprioceiling.c (pthread_mutex_getprioceiling): Fail
  2347. if mutex is not TPP. Ceiling is now in __data.__lock.
  2348. * pthread_mutex_setprioceiling.c: Include stdbool.h.
  2349. (pthread_mutex_setprioceiling): Fix prioceiling validation. Ceiling
  2350. is now in __data.__lock. Add locking.
  2351. * pthread_create.c (__free_tcb): Free pd->tpp structure.
  2352. * Makefile (libpthread-routines): Add tpp.
  2353. (xtests): Add tst-mutexpp1, tst-mutexpp6 and tst-mutexpp10.
  2354. * tst-tpp.h: New file.
  2355. * tst-mutexpp1.c: New file.
  2356. * tst-mutexpp6.c: New file.
  2357. * tst-mutexpp10.c: New file.
  2358. * tst-mutex1.c (TEST_FUNCTION): Don't redefine if already defined.
  2359. * tst-mutex6.c (TEST_FUNCTION): Likewise.
  2360. 2006-08-12 Ulrich Drepper <drepper@redhat.com>
  2361. [BZ #2843]
  2362. * pthread_join.c (pthread_join): Account for self being canceled
  2363. when checking for deadlocks.
  2364. * tst-join5.c: Cleanups. Allow to be used in tst-join6.
  2365. (tf1): Don't print anything after pthread_join returns, this would be
  2366. another cancellation point.
  2367. (tf2): Likewise.
  2368. * tst-join6.c: New file.
  2369. * Makefile (tests): Add tst-join6.
  2370. 2006-08-03 Ulrich Drepper <drepper@redhat.com>
  2371. [BZ #2892]
  2372. * pthread_setspecific.c (__pthread_setspecific): Check
  2373. out-of-range index before checking for unused key.
  2374. * sysdeps/pthread/gai_misc.h: New file.
  2375. 2006-08-01 Ulrich Drepper <drepper@redhat.com>
  2376. * sysdeps/unix/sysv/linux/i386/smp.h: New file. Old Linux-specific
  2377. file. Don't use sysctl.
  2378. * sysdeps/unix/sysv/linux/smp.h: Always assume SMP. Archs can
  2379. overwrite the file if this is likely not true.
  2380. 2006-07-31 Daniel Jacobowitz <dan@codesourcery.com>
  2381. * allocatestack.c (__reclaim_stacks): Reset the PID on cached stacks.
  2382. * Makefile (tests): Add tst-getpid3.
  2383. * tst-getpid3.c: New file.
  2384. 2006-07-30 Roland McGrath <roland@redhat.com>
  2385. * Makefile (libpthread-routines): Add ptw-sigsuspend.
  2386. * sysdeps/unix/sysv/linux/i386/not-cancel.h
  2387. (pause_not_cancel): New macro.
  2388. (nanosleep_not_cancel): New macro.
  2389. (sigsuspend_not_cancel): New macro.
  2390. * pthread_mutex_timedlock.c (pthread_mutex_timedlock): Use
  2391. nanosleep_not_cancel macro from <not-cancel.h>.
  2392. * pthread_mutex_lock.c (__pthread_mutex_lock): Use pause_not_cancel
  2393. macro from <not-cancel.h>.
  2394. 2006-07-28 Ulrich Drepper <drepper@redhat.com>
  2395. Jakub Jelinek <jakub@redhat.com>
  2396. * descr.h: Change ENQUEUE_MUTEX and DEQUEUE_MUTEX for bit 0
  2397. notification of PI mutex. Add ENQUEUE_MUTEX_PI.
  2398. * pthreadP.h: Define PTHREAD_MUTEX_PI_* macros for PI mutex types.
  2399. * pthread_mutex_setprioceilining.c: Adjust for mutex type name change.
  2400. * pthread_mutex_init.c: Add support for priority inheritance mutex.
  2401. * pthread_mutex_lock.c: Likewise.
  2402. * pthread_mutex_timedlock.c: Likewise.
  2403. * pthread_mutex_trylock.c: Likewise.
  2404. * pthread_mutex_unlock.c: Likewise.
  2405. * sysdeps/pthread/pthread_cond_broadcast.c: For PI mutexes wake
  2406. all mutexes.
  2407. * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_broadcast.c: Likewise.
  2408. * sysdeps/unix/sysv/linux/x86_64/pthread_cond_broadcast.c: Likewise.
  2409. * sysdeps/unix/sysv/linux/pthread-pi-defines.sym: New file.
  2410. * sysdeps/unix/sysv/linux/Makefile (gen-as-const-header): Add
  2411. pthread-pi-defines.sym.
  2412. * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Define FUTEX_LOCK_PI,
  2413. FUTEX_UNLOCK_PI, and FUTEX_TRYLOCK_PI.
  2414. * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
  2415. * sysdeps/unix/sysv/linux/alpha/lowlevellock.h: Likewise.
  2416. * sysdeps/unix/sysv/linux/ia64/lowlevellock.h: Likewise.
  2417. * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Likewise.
  2418. * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
  2419. * sysdeps/unix/sysv/linux/sh/lowlevellock.h: Likewise.
  2420. * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Likewise.
  2421. * sysdeps/unix/sysv/linux/bits/posix_opt.h: Define
  2422. _POSIX_THREAD_PRIO_INHERIT to 200112L.
  2423. * tst-mutex1.c: Adjust to allow use in PI mutex test.
  2424. * tst-mutex2.c: Likewise.
  2425. * tst-mutex3.c: Likewise.
  2426. * tst-mutex4.c: Likewise.
  2427. * tst-mutex5.c: Likewise.
  2428. * tst-mutex6.c: Likewise.
  2429. * tst-mutex7.c: Likewise.
  2430. * tst-mutex7a.c: Likewise.
  2431. * tst-mutex8.c: Likewise.
  2432. * tst-mutex9.c: Likewise.
  2433. * tst-robust1.c: Likewise.
  2434. * tst-robust7.c: Likewise.
  2435. * tst-robust8.c: Likewise.
  2436. * tst-mutexpi1.c: New file.
  2437. * tst-mutexpi2.c: New file.
  2438. * tst-mutexpi3.c: New file.
  2439. * tst-mutexpi4.c: New file.
  2440. * tst-mutexpi5.c: New file.
  2441. * tst-mutexpi6.c: New file.
  2442. * tst-mutexpi7.c: New file.
  2443. * tst-mutexpi7a.c: New file.
  2444. * tst-mutexpi8.c: New file.
  2445. * tst-mutexpi9.c: New file.
  2446. * tst-robust1.c: New file.
  2447. * tst-robust2.c: New file.
  2448. * tst-robust3.c: New file.
  2449. * tst-robust4.c: New file.
  2450. * tst-robust5.c: New file.
  2451. * tst-robust6.c: New file.
  2452. * tst-robust7.c: New file.
  2453. * tst-robust8.c: New file.
  2454. * Makefile (tests): Add the new tests.
  2455. * pthread_create.c (start_thread): Add some casts to avoid warnings.
  2456. * pthread_mutex_destroy.c: Remove unneeded label.
  2457. 2006-07-01 Ulrich Drepper <drepper@redhat.com>
  2458. * pthread_mutex_init.c (__pthread_mutex_init): Move some
  2459. computations to compile time.
  2460. 2006-06-04 Ulrich Drepper <drepper@redhat.com>
  2461. * sysdeps/pthread/pthread.h: Add pthread_equal inline version.
  2462. 2006-05-15 Ulrich Drepper <drepper@redhat.com>
  2463. * sysdeps/unix/sysv/linux/fork.h: Mark __fork_handlers as hidden.
  2464. 2006-05-11 Ulrich Drepper <drepper@redhat.com>
  2465. * pthread_key_create.c (__pthread_key_create): Do away with
  2466. __pthread_keys_lock.
  2467. * sysdeps/unix/sysv/linux/pthread_setaffinity.c
  2468. (__kernel_cpumask_size): Mark as hidden.
  2469. * sysdeps/unix/sysv/linux/pthread_attr_setaffinity.c: Likewise.
  2470. * sem_open.c (__sem_mappings_lock): Mark as hidden.
  2471. * semaphoreP.h (__sem_mappings_lock): Likewise.
  2472. 2006-05-10 Ulrich Drepper <drepper@redhat.com>
  2473. * pthread_atfork.c: Mark __dso_handle as hidden.
  2474. 2006-05-09 Ulrich Drepper <drepper@redhat.com>
  2475. [BZ #2644]
  2476. * sysdeps/pthread/unwind-forcedunwind.c: Different solution for
  2477. the reload problem. Change the one path in pthread_cancel_init
  2478. which causes the problem. Force gcc to reload. Simplify callers.
  2479. * sysdeps/unix/sysv/linux/ia64/unwind-forcedunwind.c
  2480. (_Unwind_GetBSP): Undo last patch.
  2481. 2006-05-07 Ulrich Drepper <drepper@redhat.com>
  2482. * sysdeps/unix/sysv/linux/ia64/unwind-forcedunwind.c: Make sure the
  2483. function pointer is reloaded after pthread_cancel_init calls.
  2484. [BZ #2644]
  2485. * sysdeps/pthread/unwind-forcedunwind.c: Make sure functions
  2486. pointers are reloaded after pthread_cancel_init calls.
  2487. 2006-05-01 Ulrich Drepper <drepper@redhat.com>
  2488. * sysdeps/pthread/allocalim.h (__libc_use_alloca): Mark with
  2489. __always_inline.
  2490. 2006-04-27 Ulrich Drepper <drepper@redhat.com>
  2491. * sysdeps/unix/sysv/linux/timer_routines.c (timer_helper_thread):
  2492. Allocate new object which is passed to timer_sigev_thread so that
  2493. the timer can be deleted before the new thread is scheduled.
  2494. 2006-04-26 Roland McGrath <roland@redhat.com>
  2495. * sysdeps/x86_64/tls.h: Include <asm/prctl.h> inside [! __ASSEMBLER__].
  2496. 2006-04-08 Ulrich Drepper <drepper@redhat.com>
  2497. * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Remove branch predicion
  2498. suffix for conditional jumps.
  2499. * sysdeps/unix/sysv/linux/i386/i486/sem_trywait.S: Likewise.
  2500. * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S: Likewise.
  2501. * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S: Likewise.
  2502. * sysdeps/unix/sysv/linux/i386/i486/pthread_barrier_wait.S: Likewise.
  2503. * sysdeps/unix/sysv/linux/i386/i486/sem_timedwait.S: Likewise.
  2504. * sysdeps/unix/sysv/linux/i386/i486/sem_wait.S: Likewise.
  2505. * init.c (sigcancel_handler): Compare with correct PID even if the
  2506. thread is in the middle of a fork call.
  2507. (sighandler_setxid): Likewise.
  2508. Reported by Suzuki K P <suzuki@in.ibm.com> .
  2509. 2006-04-07 Jakub Jelinek <jakub@redhat.com>
  2510. * pthreadP.h (FUTEX_TID_MASK): Sync with kernel.
  2511. 2006-04-06 Ulrich Drepper <drepper@redhat.com>
  2512. * pthread_getattr_np.c (pthread_getattr_np): Close fp if getrlimit
  2513. fails [Coverity CID 105].
  2514. 2006-04-05 Ulrich Drepper <drepper@redhat.com>
  2515. * sysdeps/pthread/pthread.h: Add nonnull attributes.
  2516. 2006-04-03 Steven Munroe <sjmunroe@us.ibm.com>
  2517. [BZ #2505]
  2518. * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h [_ARCH_PWR4]:
  2519. Define __lll_rel_instr using lwsync.
  2520. 2006-03-27 Ulrich Drepper <drepper@redhat.com>
  2521. * allocatestack.c (allocate_stack): Always initialize robust_head.
  2522. * descr.h: Define struct robust_list_head.
  2523. (struct pthread): Use robust_list_head in robust mutex list definition.
  2524. Adjust ENQUEUE_MUTEX and DEQUEUE_MUTEX.
  2525. * init.c [!__ASSUME_SET_ROBUST_LIST] (__set_robust_list_avail): Define.
  2526. (__pthread_initialize_minimal_internal): Register robust_list with
  2527. the kernel.
  2528. * pthreadP.h: Remove PRIVATE_ from PTHREAD_MUTEX_ROBUST_* names.
  2529. Declare __set_robust_list_avail.
  2530. * pthread_create.c (start_thread): Register robust_list of new thread.
  2531. [!__ASSUME_SET_ROBUST_LIST]: If robust_list is not empty wake up
  2532. waiters.
  2533. * pthread_mutex_destroy.c: For robust mutexes don't look at the
  2534. number of users, it's unreliable.
  2535. * pthread_mutex_init.c: Allow use of pshared robust mutexes if
  2536. set_robust_list syscall is available.
  2537. * pthread_mutex_consistent.c: Adjust for PTHREAD_MUTEX_ROBUST_* rename.
  2538. * pthread_mutex_lock.c: Simplify robust mutex code a bit.
  2539. Set robust_head.list_op_pending before trying to lock a robust mutex.
  2540. * pthread_mutex_timedlock.c: Likewise.
  2541. * pthread_mutex_trylock.c: Likewise.
  2542. * pthread_mutex_unlock.c: Likewise for unlocking.
  2543. * Makefile (tests): Add tst-robust8.
  2544. * tst-robust8.c: New file.
  2545. 2006-03-08 Andreas Schwab <schwab@suse.de>
  2546. * sysdeps/unix/sysv/linux/ia64/dl-sysdep.h
  2547. (DL_SYSINFO_IMPLEMENTATION): Add missing newline.
  2548. 2006-03-05 Roland McGrath <roland@redhat.com>
  2549. * configure (libc_add_on): Disable add-on when $add_ons_automatic = yes
  2550. and $config_os doesn't match *linux*.
  2551. 2006-03-05 David S. Miller <davem@sunset.davemloft.net>
  2552. * sysdeps/unix/sysv/linux/sparc/sparc32/pt-vfork.S:
  2553. Use __syscall_error.
  2554. * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Likewise.
  2555. * sysdeps/unix/sysv/linux/sparc/sparc32/vfork.S: Likewise.
  2556. * sysdeps/unix/sysv/linux/sparc/sparc64/pt-vfork.S: Likewise.
  2557. * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Likewise.
  2558. * sysdeps/unix/sysv/linux/sparc/sparc64/vfork.S: Likewise.
  2559. * sysdeps/unix/sysv/linux/sparc/Makefile: New file.
  2560. 2006-03-02 Ulrich Drepper <drepper@redhat.com>
  2561. * sysdeps/unix/sysv/linux/aio_misc.h: Various cleanups.
  2562. 2006-03-01 Ulrich Drepper <drepper@redhat.com>
  2563. * sysdeps/unix/sysv/linux/x86_64/lowlevelrobustlock.S
  2564. (__lll_robust_lock_wait): Also set FUTEX_WAITERS bit if we got the
  2565. mutex.
  2566. (__lll_robust_timedlock_wait): Likewise.
  2567. * sysdeps/unix/sysv/linux/i386/i486/lowlevelrobustlock.S
  2568. (__lll_robust_lock_wait): Likewise.
  2569. (__lll_robust_timedlock_wait): Likewise.
  2570. * sysdeps/unix/sysv/linux/lowlevelrobustlock.c
  2571. (__lll_robust_lock_wait): Likewise.
  2572. (__lll_robust_timedlock_wait): Likewise.
  2573. 2006-03-01 Jakub Jelinek <jakub@redhat.com>
  2574. * sysdeps/unix/sysv/linux/sparc/lowlevellock.h (lll_robust_mutex_dead,
  2575. lll_robust_mutex_trylock, lll_robust_mutex_lock,
  2576. lll_robust_mutex_cond_lock, lll_robust_mutex_timedlock,
  2577. lll_robust_mutex_unlock): Define.
  2578. (__lll_robust_lock_wait, __lll_robust_timedlock_wait): New prototypes.
  2579. 2006-02-28 H.J. Lu <hongjiu.lu@intel.com>
  2580. * sysdeps/unix/sysv/linux/ia64/clone2.S: Include <clone2.S>
  2581. instead of <clone.S>.
  2582. 2006-02-27 Jakub Jelinek <jakub@redhat.com>
  2583. * Makefile (libpthread-routines): Add
  2584. pthread_mutexattr_[sg]etprotocol, pthread_mutexattr_[sg]etprioceiling
  2585. and pthread_mutex_[sg]etprioceiling.
  2586. * Versions (GLIBC_2.4): Export pthread_mutexattr_getprotocol,
  2587. pthread_mutexattr_setprotocol, pthread_mutexattr_getprioceiling,
  2588. pthread_mutexattr_setprioceiling, pthread_mutex_getprioceiling and
  2589. pthread_mutex_setprioceiling.
  2590. * sysdeps/pthread/pthread.h (PTHREAD_PRIO_NONE, PTHREAD_PRIO_INHERIT,
  2591. PTHREAD_PRIO_PROTECT): New enum values.
  2592. (pthread_mutexattr_getprotocol, pthread_mutexattr_setprotocol,
  2593. pthread_mutexattr_getprioceiling, pthread_mutexattr_setprioceiling,
  2594. pthread_mutex_getprioceiling, pthread_mutex_setprioceiling): New
  2595. prototypes.
  2596. * pthreadP.h (PTHREAD_MUTEX_PRIO_INHERIT_PRIVATE_NP,
  2597. PTHREAD_MUTEX_PRIO_PROTECT_PRIVATE_NP): New enum values.
  2598. (PTHREAD_MUTEX_PRIO_CEILING_SHIFT, PTHREAD_MUTEX_PRIO_CEILING_MASK):
  2599. Define.
  2600. (PTHREAD_MUTEXATTR_PROTOCOL_SHIFT, PTHREAD_MUTEXATTR_PROTOCOL_MASK,
  2601. PTHREAD_MUTEXATTR_PRIO_CEILING_SHIFT,
  2602. PTHREAD_MUTEXATTR_PRIO_CEILING_MASK): Define.
  2603. (PTHREAD_MUTEXATTR_FLAG_BITS): Or in PTHREAD_MUTEXATTR_PROTOCOL_MASK
  2604. and PTHREAD_MUTEXATTR_PRIO_CEILING_MASK.
  2605. * pthread_mutex_init.c (__pthread_mutex_init): For the time being
  2606. return ENOTSUP for PTHREAD_PRIO_INHERIT or PTHREAD_PRIO_PROTECT
  2607. protocol mutexes.
  2608. * pthread_mutex_getprioceiling.c: New file.
  2609. * pthread_mutex_setprioceiling.c: New file.
  2610. * pthread_mutexattr_getprioceiling.c: New file.
  2611. * pthread_mutexattr_setprioceiling.c: New file.
  2612. * pthread_mutexattr_getprotocol.c: New file.
  2613. * pthread_mutexattr_setprotocol.c: New file.
  2614. 2006-02-27 Daniel Jacobowitz <dan@codesourcery.com>
  2615. * sysdeps/unix/sysv/linux/aio_misc.h: Include <limits.h>.
  2616. 2006-02-27 Roland McGrath <roland@redhat.com>
  2617. * sysdeps/pthread/Subdirs: List nptl here too.
  2618. * configure (libc_add_on_canonical): New variable.
  2619. * sysdeps/unix/sysv/linux/sh/sh4/lowlevellock.h: Use #include_next.
  2620. * sysdeps/unix/sysv/linux/sleep.c: Use #include_next after #include of
  2621. self to get main source tree's file.
  2622. * sysdeps/unix/sysv/linux/alpha/clone.S: Likewise.
  2623. * sysdeps/unix/sysv/linux/i386/clone.S: Likewise.
  2624. * sysdeps/unix/sysv/linux/i386/vfork.S: Likewise.
  2625. * sysdeps/unix/sysv/linux/ia64/clone2.S: Likewise.
  2626. * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Likewise.
  2627. * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: Likewise.
  2628. * sysdeps/unix/sysv/linux/s390/s390-32/clone.S: Likewise.
  2629. * sysdeps/unix/sysv/linux/s390/s390-64/clone.S: Likewise.
  2630. * sysdeps/unix/sysv/linux/sh/clone.S: Likewise.
  2631. * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S: Likewise.
  2632. * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S: Likewise.
  2633. * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
  2634. * sysdeps/unix/sysv/linux/x86_64/vfork.S: Likewise.
  2635. * Makefile: Use $(sysdirs) in vpath directive.
  2636. * sysdeps/pthread/Makefile (CFLAGS-libc-start.c): Variable removed.
  2637. (CPPFLAGS-timer_routines.c): Likewise.
  2638. * Makeconfig (includes): Variable removed.
  2639. 2006-02-26 Roland McGrath <roland@redhat.com>
  2640. * sysdeps/generic/pt-raise.c: Moved to ...
  2641. * pt-raise.c: ... here.
  2642. * sysdeps/generic/lowlevellock.h: Moved to ...
  2643. * lowlevellock.h: ... here.
  2644. 2006-02-23 Roland McGrath <roland@redhat.com>
  2645. * descr.h (struct pthread): Add final member `end_padding'.
  2646. (PTHREAD_STRUCT_END_PADDING): Use it.
  2647. 2006-02-20 Roland McGrath <roland@redhat.com>
  2648. * sysdeps/mips: Directory removed, saved in ports repository.
  2649. * sysdeps/unix/sysv/linux/mips: Likewise.
  2650. 2006-02-18 Ulrich Drepper <drepper@redhat.com>
  2651. * tst-robust1.c: Add second mutex to check that the mutex list is
  2652. handled correctly.
  2653. 2006-02-17 Jakub Jelinek <jakub@redhat.com>
  2654. * sysdeps/unix/sysv/linux/alpha/lowlevellock.h (lll_robust_mutex_dead,
  2655. lll_robust_mutex_trylock, lll_robust_mutex_lock,
  2656. lll_robust_mutex_cond_lock, lll_robust_mutex_timedlock,
  2657. lll_robust_mutex_unlock): New macros.
  2658. (__lll_robust_lock_wait, __lll_robust_timedlock_wait): New prototypes.
  2659. * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
  2660. * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Likewise.
  2661. * sysdeps/unix/sysv/linux/ia64/lowlevellock.h: Likewise.
  2662. * sysdeps/unix/sysv/linux/lowlevelrobustlock.c: New file.
  2663. 2006-02-17 Kaz Kojima <kkojima@rr.iij4u.or.jp>
  2664. * sysdeps/unix/sysv/linux/sh/lowlevellock.h: Add lll_robust_mutex_*
  2665. definitions.
  2666. * sysdeps/unix/sysv/linux/sh/lowlevelrobustlock.S: New file.
  2667. 2006-02-17 Ulrich Drepper <drepper@redhat.com>
  2668. * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h
  2669. (lll_robust_mutex_unlock): Avoid unnecessary wakeups.
  2670. * sysdeps/unix/sysv/linux/i386/lowlevellock.h
  2671. (lll_robust_mutex_unlock): Likewise.
  2672. 2006-02-13 Jakub Jelinek <jakub@redhat.com>
  2673. * descr.h [!__PTHREAD_MUTEX_HAVE_PREV] (DEQUEUE_MUTEX):
  2674. Set robust_list.__next rather than robust_list.
  2675. * sysdeps/unix/sysv/linux/alpha/bits/pthreadtypes.h
  2676. (__pthread_list_t): New typedef.
  2677. (pthread_mutex_t): Replace __next and __prev fields with __list.
  2678. * sysdeps/unix/sysv/linux/ia64/bits/pthreadtypes.h
  2679. (__pthread_list_t): New typedef.
  2680. (pthread_mutex_t): Replace __next and __prev fields with __list.
  2681. * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h
  2682. (__pthread_list_t, __pthread_slist_t): New typedefs.
  2683. (pthread_mutex_t): Replace __next and __prev fields with __list.
  2684. * sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h
  2685. (__pthread_list_t, __pthread_slist_t): New typedefs.
  2686. (pthread_mutex_t): Replace __next and __prev fields with __list.
  2687. * sysdeps/unix/sysv/linux/sparc/bits/pthreadtypes.h
  2688. (__pthread_list_t, __pthread_slist_t): New typedefs.
  2689. (pthread_mutex_t): Replace __next and __prev fields with __list.
  2690. * sysdeps/unix/sysv/linux/sh/bits/pthreadtypes.h
  2691. (__pthread_slist_t): New typedef.
  2692. (pthread_mutex_t): Replace __next field with __list.
  2693. 2006-02-15 Ulrich Drepper <drepper@redhat.com>
  2694. * pthreadP.h: Define PTHREAD_MUTEX_INCONSISTENT instead of
  2695. PTHREAD_MUTEX_OWNERDEAD.
  2696. (PTHREAD_MUTEX_ROBUST_PRIVATE_NP): Define as 16, not 256.
  2697. Define FUTEX_WAITERS, FUTEX_OWNER_DIED, FUTEX_TID_MASK.
  2698. * Makefile (libpthread-routines): Add lowlevelrobustlock.
  2699. * pthread_create.c (start_thread): Very much simplify robust_list loop.
  2700. * pthread_mutex_consistent.c: Inconsistent mutex have __owner now set
  2701. to PTHREAD_MUTEX_INCONSISTENT.
  2702. * pthread_mutex_destroy.c: Allow destroying of inconsistent mutexes.
  2703. * pthread_mutex_lock.c: Reimplement robust mutex handling.
  2704. * pthread_mutex_trylock.c: Likewise.
  2705. * pthread_mutex_timedlock.c: Likewise.
  2706. * pthread_mutex_unlock.c: Likewise.
  2707. * sysdeps/unix/sysv/linux/pthread_mutex_cond_lock.c: Likewise.
  2708. * sysdeps/unix/sysv/linux/Makefile (gen-as-const-headers): Add
  2709. lowlevelrobustlock.sym.
  2710. * sysdeps/unix/sysv/linux/lowlevelrobustlock.sym: New file.
  2711. * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Add lll_robust_mutex_*
  2712. definitions.
  2713. * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
  2714. * sysdeps/unix/sysv/linux/i386/i486/lowlevelrobustlock.S: New file.
  2715. * sysdeps/unix/sysv/linux/i386/i586/lowlevelrobustlock.S: New file.
  2716. * sysdeps/unix/sysv/linux/i386/i686/lowlevelrobustlock.S: New file.
  2717. * sysdeps/unix/sysv/linux/x86_64/lowlevelrobustlock.S: New file.
  2718. 2006-02-12 Ulrich Drepper <drepper@redhat.com>
  2719. * allocatestack.c (allocate_stack): Initialize robust_list.
  2720. * init.c (__pthread_initialize_minimal_internal): Likewise.
  2721. * descr.h (struct xid_command): Pretty printing.
  2722. (struct pthread): Use __pthread_list_t or __pthread_slist_t for
  2723. robust_list. Adjust macros.
  2724. * pthread_create.c (start_thread): Adjust robust_list handling.
  2725. * phtread_mutex_unlock.c: Don't allow unlocking from any thread
  2726. but the owner for all robust mutex types.
  2727. * sysdeps/unix/sysv/linux/i386/bits/pthreadtypes.h: Define
  2728. __pthread_list_t and __pthread_slist_t. Use them in pthread_mutex_t.
  2729. * sysdeps/unix/sysv/linux/x86_64/bits/pthreadtypes.h: Likewise.
  2730. * sysdeps/pthread/pthread.h: Adjust mutex initializers.
  2731. * sysdeps/unix/sysv/linux/i386/not-cancel.h: Define openat_not_cancel,
  2732. openat_not_cancel_3, openat64_not_cancel, and openat64_not_cancel_3.
  2733. 2006-02-08 Jakub Jelinek <jakub@redhat.com>
  2734. * sysdeps/unix/sysv/linux/i386/lowlevellock.h (lll_futex_wait,
  2735. lll_futex_timedwait, lll_wait_tid): Add "memory" clobber.
  2736. 2006-01-20 Kaz Kojima <kkojima@rr.iij4u.or.jp>
  2737. * sysdeps/unix/sysv/linux/sh/lowlevellock.h (lll_futex_wait):
  2738. Return status.
  2739. (lll_futex_timed_wait): Define.
  2740. 2006-01-19 Ulrich Drepper <drepper@redhat.com>
  2741. * tst-cancel4.c: Test ppoll.
  2742. 2006-01-18 Andreas Jaeger <aj@suse.de>
  2743. [BZ #2167]
  2744. * sysdeps/unix/sysv/linux/mips/bits/pthreadtypes.h
  2745. (pthread_mutex_t): Follow changes for other archs. Based on patch
  2746. by Jim Gifford <patches@jg555.com>.
  2747. 2006-01-13 Richard Henderson <rth@redhat.com>
  2748. * sysdeps/alpha/tls.h (tcbhead_t): Rename member to __private.
  2749. 2006-01-10 Roland McGrath <roland@redhat.com>
  2750. * sysdeps/alpha/jmpbuf-unwind.h: File moved to main source tree.
  2751. * sysdeps/i386/jmpbuf-unwind.h: Likewise.
  2752. * sysdeps/mips/jmpbuf-unwind.h: Likewise.
  2753. * sysdeps/powerpc/jmpbuf-unwind.h: Likewise.
  2754. * sysdeps/s390/jmpbuf-unwind.h: Likewise.
  2755. * sysdeps/sh/jmpbuf-unwind.h: Likewise.
  2756. * sysdeps/sparc/sparc32/jmpbuf-unwind.h: Likewise.
  2757. * sysdeps/sparc/sparc64/jmpbuf-unwind.h: Likewise.
  2758. * sysdeps/x86_64/jmpbuf-unwind.h: Likewise.
  2759. * sysdeps/unix/sysv/linux/ia64/jmpbuf-unwind.h: Likewise.
  2760. 2006-01-09 Roland McGrath <roland@redhat.com>
  2761. * tst-initializers1-c89.c: New file.
  2762. * tst-initializers1-c99.c: New file.
  2763. * tst-initializers1-gnu89.c: New file.
  2764. * tst-initializers1-gnu99.c: New file.
  2765. * Makefile (tests): Add them.
  2766. (CFLAGS-tst-initializers1-c89.c): New variable.
  2767. (CFLAGS-tst-initializers1-c99.c): New variable.
  2768. (CFLAGS-tst-initializers1-gnu89.c): New variable.
  2769. (CFLAGS-tst-initializers1-gnu99.c): New variable.
  2770. * sysdeps/unix/sysv/linux/i386/bits/pthreadtypes.h (pthread_mutex_t):
  2771. Use __extension__ on anonymous union definition.
  2772. * sysdeps/unix/sysv/linux/x86_64/bits/pthreadtypes.h: Likewise.
  2773. * sysdeps/unix/sysv/linux/sh/bits/pthreadtypes.h: Likewise.
  2774. * sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h: Likewise.
  2775. * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: Likewise.
  2776. * sysdeps/unix/sysv/linux/sparc/bits/pthreadtypes.h: Likewise.
  2777. 2006-01-08 Jakub Jelinek <jakub@redhat.com>
  2778. * sysdeps/unix/sysv/linux/alpha/bits/pthreadtypes.h (pthread_mutex_t):
  2779. Don't give the union a name because it changes the mangled name.
  2780. Instead name the struct for __data.
  2781. * sysdeps/unix/sysv/linux/sh/bits/pthreadtypes.h (pthread_mutex_t):
  2782. Likewise.
  2783. * sysdeps/unix/sysv/linux/sparc/bits/pthreadtypes.h (pthread_mutex_t):
  2784. Likewise.
  2785. 2006-01-09 Jakub Jelinek <jakub@redhat.com>
  2786. * sysdeps/sparc/sparc64/jmpbuf-unwind.h (_JMPBUF_UNWINDS_ADJ): Add
  2787. stack bias to mc_ftp field.
  2788. 2006-01-07 Ulrich Drepper <drepper@redhat.com>
  2789. * sysdeps/pthread/aio_misc.h (AIO_MISC_WAIT): Work around gcc
  2790. being too clever and reloading the futex value where it shouldn't.
  2791. 2006-01-06 Ulrich Drepper <drepper@redhat.com>
  2792. * descr.h [!__PTHREAD_MUTEX_HAVE_PREV] (DEQUEUE_MUTEX): Use
  2793. correct type.
  2794. 2006-01-06 Jakub Jelinek <jakub@redhat.com>
  2795. * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h (PSEUDO):
  2796. Add cfi directives.
  2797. 2006-01-06 Ulrich Drepper <drepper@redhat.com>
  2798. * sysdeps/ia64/tls.h (tcbhead_t): Rename private member to __private.
  2799. * sysdeps/ia64/tcb-offsets.sym: Adjust for private->__private
  2800. rename in tcbhead_t.
  2801. * sysdeps/unix/sysv/linux/i386/bits/pthreadtypes.h (pthread_mutex_t):
  2802. Don't give the union a name because it changes the mangled name.
  2803. Instead name the struct for __data.
  2804. * sysdeps/unix/sysv/linux/ia64/bits/pthreadtypes.h: Likewise.
  2805. * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: Likewise.
  2806. * sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h: Likewise.
  2807. * sysdeps/unix/sysv/linux/x86_64/bits/pthreadtypes.h: Likewise.
  2808. * pthread_create.c (start_thread): Adjust robust mutex free loop.
  2809. * descr.h (ENQUEUE_MUTEX, DEQUEUE_MUTEX): Adjust.
  2810. 2006-01-05 Ulrich Drepper <drepper@redhat.com>
  2811. * sysdeps/unix/sysv/linux/i386/lowlevellock.h (lll_futex_wait):
  2812. Return status.
  2813. (lll_futex_timed_wait): Define.
  2814. * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
  2815. * sysdeps/pthread/aio_misc.h: New file.
  2816. 2006-01-03 Joseph S. Myers <joseph@codesourcery.com>
  2817. * Makefile ($(objpfx)$(multidir)): Use mkdir -p.
  2818. 2006-01-03 Steven Munroe <sjmunroe@us.ibm.com>
  2819. * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h
  2820. (PSEUDO): Remove redundant cfi_startproc and cfi_endproc directives.
  2821. * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: Likewise.
  2822. 2006-01-04 Ulrich Drepper <drepper@redhat.com>
  2823. * tst-cancel24.cc: Use C headers instead of C++ headers.
  2824. 2006-01-03 Jakub Jelinek <jakub@redhat.com>
  2825. * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Remove #error for
  2826. sparc-linux configured glibc.
  2827. (lll_futex_wake_unlock): Define to 1 for sparc-linux configured glibc.
  2828. (__lll_mutex_trylock, __lll_mutex_cond_trylock, __lll_mutex_lock,
  2829. __lll_mutex_cond_lock, __lll_mutex_timedlock): Use
  2830. atomic_compare_and_exchange_val_24_acq instead of
  2831. atomic_compare_and_exchange_val_acq.
  2832. (lll_mutex_unlock, lll_mutex_unlock_force): Use atomic_exchange_24_rel
  2833. instead of atomic_exchange_rel.
  2834. * sysdeps/unix/sysv/linux/sparc/sparc32/lowlevellock.c: New file.
  2835. * sysdeps/unix/sysv/linux/sparc/sparc32/pthread_barrier_init.c: New
  2836. file.
  2837. * sysdeps/unix/sysv/linux/sparc/sparc32/pthread_barrier_wait.c: New
  2838. file.
  2839. * sysdeps/unix/sysv/linux/sparc/sparc32/sem_init.c: New file.
  2840. * sysdeps/unix/sysv/linux/sparc/sparc32/sem_post.c: New file.
  2841. * sysdeps/unix/sysv/linux/sparc/sparc32/sem_timedwait.c: New file.
  2842. * sysdeps/unix/sysv/linux/sparc/sparc32/sem_trywait.c: New file.
  2843. * sysdeps/unix/sysv/linux/sparc/sparc32/sem_wait.c: New file.
  2844. * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/pthread_barrier_init.c:
  2845. New file.
  2846. * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/pthread_barrier_wait.c:
  2847. New file.
  2848. * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/sem_init.c: New file.
  2849. * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/sem_post.c: New file.
  2850. * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/sem_timedwait.c: New
  2851. file.
  2852. * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/sem_trywait.c: New
  2853. file.
  2854. * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/sem_wait.c: New file.
  2855. 2006-01-03 Ulrich Drepper <drepper@redhat.com>
  2856. * sysdeps/pthread/pthread.h [__WORDSIZE==64]: Don't use cast in
  2857. mutex initializers.
  2858. 2006-01-02 Jakub Jelinek <jakub@redhat.com>
  2859. * sysdeps/sparc/tls.h (tcbhead_t): Add pointer_guard field.
  2860. (THREAD_GET_POINTER_GUARD, THREAD_SET_POINTER_GUARD,
  2861. THREAD_COPY_POINTER_GUARD): Define.
  2862. * sysdeps/sparc/tcb-offsets.sym (POINTER_GUARD): Define.
  2863. * sysdeps/sparc/sparc64/jmpbuf-unwind.h: Revert 2005-12-27 changes.
  2864. 2006-01-01 Ulrich Drepper <drepper@redhat.com>
  2865. * version.c: Update copyright year.
  2866. 2005-12-29 Kaz Kojima <kkojima@rr.iij4u.or.jp>
  2867. * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Remove explicit
  2868. .eh_frame section, use cfi_* directives.
  2869. * sysdeps/unix/sysv/linux/sh/lowlevellock.S: Add cfi instrumentation.
  2870. 2005-12-30 Ulrich Drepper <drepper@redhat.com>
  2871. * sysdeps/unix/sysv/linux/ia64/jmpbuf-unwind.h: Undo last change for
  2872. now.
  2873. 2005-12-29 Ulrich Drepper <drepper@redhat.com>
  2874. * sysdeps/pthread/sigaction.c: Removed.
  2875. * sigaction.c: New file.
  2876. * sysdeps/unix/sysv/linux/Makefile: Define CFLAGS-sigaction.c.
  2877. 2005-12-28 Ulrich Drepper <drepper@redhat.com>
  2878. * Makefile (tests): Add tst-signal7.
  2879. * tst-signal7.c: New file.
  2880. 2005-12-27 Roland McGrath <roland@redhat.com>
  2881. * sysdeps/x86_64/jmpbuf-unwind.h (_jmpbuf_sp): New inline function.
  2882. (_JMPBUF_UNWINDS_ADJ): Use it, to PTR_DEMANGLE before comparison.
  2883. * sysdeps/alpha/jmpbuf-unwind.h: Likewise.
  2884. * sysdeps/i386/jmpbuf-unwind.h: Likewise.
  2885. * sysdeps/mips/jmpbuf-unwind.h: Likewise.
  2886. * sysdeps/powerpc/jmpbuf-unwind.h: Likewise.
  2887. * sysdeps/s390/jmpbuf-unwind.h: Likewise.
  2888. * sysdeps/sh/jmpbuf-unwind.h: Likewise.
  2889. * sysdeps/sparc/sparc32/jmpbuf-unwind.h: Likewise.
  2890. * sysdeps/sparc/sparc64/jmpbuf-unwind.h: Likewise.
  2891. * sysdeps/unix/sysv/linux/ia64/jmpbuf-unwind.h: Likewise.
  2892. 2005-12-27 Jakub Jelinek <jakub@redhat.com>
  2893. * sysdeps/unix/sysv/linux/alpha/bits/pthreadtypes.h: Add __next
  2894. and __prev field to pthread_mutex_t.
  2895. * sysdeps/unix/sysv/linux/ia64/bits/pthreadtypes.h: Likewise.
  2896. * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: Likewise.
  2897. * sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h: Likewise.
  2898. * sysdeps/unix/sysv/linux/sparc/bits/pthreadtypes.h: Likewise.
  2899. * sysdeps/unix/sysv/linux/sh/bits/pthreadtypes.h: Add __next field
  2900. to pthread_mutex_t.
  2901. 2005-12-26 Ulrich Drepper <drepper@redhat.com>
  2902. * pthreadP.h: Define PTHREAD_MUTEX_ROBUST_PRIVATE_NP,
  2903. PTHREAD_MUTEX_ROBUST_PRIVATE_RECURSIVE_NP,
  2904. PTHREAD_MUTEX_ROBUST_PRIVATE_ERRORCHECK_NP,
  2905. PTHREAD_MUTEX_ROBUST_PRIVATE_ADAPTIVE_NP,
  2906. PTHREAD_MUTEXATTR_FLAG_ROBUST, PTHREAD_MUTEXATTR_FLAG_PSHARED,
  2907. and PTHREAD_MUTEXATTR_FLAG_BITS.
  2908. * descr.h (struct pthread): Add robust_list field and define
  2909. ENQUEUE_MUTEX and DEQUEUE_MUTEX macros.
  2910. * pthread_mutexattr_getrobust.c: New file.
  2911. * pthread_mutexattr_setrobust.c: New file.
  2912. * pthread_mutex_consistent.c: New file.
  2913. * sysdeps/pthread/pthread.h: Declare pthread_mutexattr_getrobust,
  2914. pthread_mutexattr_setrobust, and pthread_mutex_consistent.
  2915. Define PTHREAD_MUTEX_STALLED_NP and PTHREAD_MUTEX_ROBUST_NP.
  2916. Adjust pthread_mutex_t initializers.
  2917. * nptl/sysdeps/unix/sysv/linux/i386/bits/pthreadtypes.h: Add __next
  2918. field to pthread_mutex_t.
  2919. * nptl/sysdeps/unix/sysv/linux/x86_64/bits/pthreadtypes.h: Add __next
  2920. and __prev field to pthread_mutex_t.
  2921. * Versions [GLIBC_2.4]: Export pthread_mutexattr_getrobust_np,
  2922. pthread_mutexattr_setrobust_np, and pthread_mutex_consistent_np.
  2923. * pthread_mutexattr_getpshared.c: Use PTHREAD_MUTEXATTR_FLAG_PSHARED
  2924. and PTHREAD_MUTEXATTR_FLAG_BITS macros instead of magic numbers.
  2925. * pthread_mutexattr_gettype.c: Likewise.
  2926. * pthread_mutexattr_setpshared.c: Likewise.
  2927. * pthread_mutexattr_settype.c: Likewise.
  2928. * pthread_mutex_init.c: Reject robust+pshared attribute for now.
  2929. Initialize mutex kind according to robust flag.
  2930. * pthread_mutex_lock.c: Implement local robust mutex.
  2931. * pthread_mutex_timedlock.c: Likewise.
  2932. * pthread_mutex_trylock.c: Likewise.
  2933. * pthread_mutex_unlock.c: Likewise.
  2934. * pthread_create.c (start_thread): Mark robust mutexes which remained
  2935. locked as dead.
  2936. * tst-robust1.c: New file.
  2937. * tst-robust2.c: New file.
  2938. * tst-robust3.c: New file.
  2939. * tst-robust4.c: New file.
  2940. * tst-robust5.c: New file.
  2941. * tst-robust6.c: New file.
  2942. * tst-robust7.c: New file.
  2943. * Makefile (libpthread-routines): Add pthread_mutexattr_getrobust,
  2944. pthread_mutexattr_setrobust, and pthread_mutex_consistent.
  2945. (tests): Add tst-robust1, tst-robust2, tst-robust3, tst-robust4,
  2946. tst-robust5, tst-robust6, and tst-robust7.
  2947. * tst-typesizes.c: New file.
  2948. * Makefile (tests): Add tst-typesizes.
  2949. * tst-once3.c: More debug output.
  2950. 2005-12-24 Ulrich Drepper <drepper@redhat.com>
  2951. * pthread_mutex_trylock.c (__pthread_mutex_trylock): Add break
  2952. missing after last change.
  2953. * version.c: Update copyright year.
  2954. 2005-12-23 Ulrich Drepper <drepper@redhat.com>
  2955. * pthread_mutex_destroy.c: Set mutex type to an invalid value.
  2956. * pthread_mutex_lock.c: Return EINVAL for invalid mutex type.
  2957. * pthread_mutex_trylock.c: Likewise.
  2958. * pthread_mutex_timedlock.c: Likewise.
  2959. * pthread_mutex_unlock.c: Likewise.
  2960. 2005-12-22 Roland McGrath <roland@redhat.com>
  2961. * sysdeps/pthread/sigaction.c: Use "" instead of <> to include self,
  2962. so that #include_next's search location is not reset to the -I..
  2963. directory where <nptl/...> can be found.
  2964. 2005-12-22 Ulrich Drepper <drepper@redhat.com>
  2965. [BZ #1913]
  2966. * sysdeps/unix/sysv/linux/i386/i486/sem_wait.S (__new_sem_wait):
  2967. Fix unwind info. Remove useless branch prediction prefix.
  2968. * tst-cancel24.cc: New file.
  2969. * Makefile: Add rules to build and run tst-cancel24.
  2970. 2005-12-21 Roland McGrath <roland@redhat.com>
  2971. * libc-cancellation.c: Use <> rather than "" #includes.
  2972. * pt-cleanup.c: Likewise.
  2973. * pthread_create.c: Likewise.
  2974. * pthread_join.c: Likewise.
  2975. * pthread_timedjoin.c: Likewise.
  2976. * pthread_tryjoin.c: Likewise.
  2977. * sysdeps/unix/sysv/linux/libc_pthread_init.c: Likewise.
  2978. * sysdeps/unix/sysv/linux/register-atfork.c: Likewise.
  2979. * sysdeps/unix/sysv/linux/unregister-atfork.c: Likewise.
  2980. * unwind.c: Likewise.
  2981. 2005-12-19 Kaz Kojima <kkojima@rr.iij4u.or.jp>
  2982. * sysdeps/sh/tcb-offsets.sym: Add POINTER_GUARD.
  2983. * sysdeps/sh/tls.h (tcbhead_t): Remove private and add pointer_guard.
  2984. (THREAD_GET_POINTER_GUARD, THREAD_SET_POINTER_GUARD,
  2985. THREAD_COPY_POINTER_GUARD): Define.
  2986. 2005-12-19 Jakub Jelinek <jakub@redhat.com>
  2987. * sysdeps/ia64/tls.h (TLS_PRE_TCB_SIZE): Make room for 2 uintptr_t's
  2988. rather than one.
  2989. (THREAD_GET_POINTER_GUARD, THREAD_SET_POINTER_GUARD,
  2990. THREAD_COPY_POINTER_GUARD): Define.
  2991. * sysdeps/powerpc/tcb-offsets.sym (POINTER_GUARD): Add.
  2992. * sysdeps/powerpc/tls.h (tcbhead_t): Add pointer_guard field.
  2993. (THREAD_GET_POINTER_GUARD, THREAD_SET_POINTER_GUARD,
  2994. THREAD_COPY_POINTER_GUARD): Define.
  2995. * sysdeps/s390/tcb-offsets.sym (STACK_GUARD): Add.
  2996. * sysdeps/s390/tls.h (THREAD_GET_POINTER_GUARD,
  2997. THREAD_SET_POINTER_GUARD, THREAD_COPY_POINTER_GUARD): Define.
  2998. * sysdeps/unix/sysv/linux/ia64/__ia64_longjmp.S (__ia64_longjmp):
  2999. Use PTR_DEMANGLE for B0 if defined.
  3000. 2005-12-17 Ulrich Drepper <drepper@redhat.com>
  3001. * pthread_create.c (__pthread_create_2_1): Use
  3002. THREAD_COPY_POINTER_GUARD if available.
  3003. * sysdeps/i386/tcb-offsets.sym: Add POINTER_GUARD.
  3004. * sysdeps/x86_64/tcb-offsets.sym: Likewise.
  3005. * sysdeps/i386/tls.h (tcbhead_t): Add pointer_guard.
  3006. Define THREAD_SET_POINTER_GUARD and THREAD_COPY_POINTER_GUARD.
  3007. * sysdeps/x86_64/tls.h: Likewise.
  3008. 2005-12-15 Roland McGrath <roland@redhat.com>
  3009. * sysdeps/unix/sysv/linux/mq_notify.c: Don't use sysdeps/generic.
  3010. 2005-12-13 Ulrich Drepper <drepper@redhat.com>
  3011. * sysdeps/pthread/sigfillset.c: Adjust for files moved out of
  3012. sysdeps/generic.
  3013. * errno-loc.c: New file.
  3014. 2005-12-12 Roland McGrath <roland@redhat.com>
  3015. * init.c (__pthread_initialize_minimal_internal): Do __static_tls_size
  3016. adjustments before choosing stack size. Update minimum stack size
  3017. calculation to match allocate_stack change.
  3018. 2005-12-12 Ulrich Drepper <drepper@redhat.com>
  3019. * allocatestack.c (allocate_stack): Don't demand that there is an
  3020. additional full page available on the stack beside guard, TLS, the
  3021. minimum stack.
  3022. 2005-11-24 Ulrich Drepper <drepper@redhat.com>
  3023. * sysdeps/unix/sysv/linux/i386/bits/pthreadtypes.h
  3024. (__cleanup_fct_attribute): Use __regparm__ not regparm.
  3025. * sysdeps/unix/sysv/linux/x86_64/bits/pthreadtypes.h: When
  3026. compiling 32-bit code we must define __cleanup_fct_attribute.
  3027. 005-11-24 Jakub Jelinek <jakub@redhat.com>
  3028. [BZ #1920]
  3029. * sysdeps/pthread/pthread.h (__pthread_unwind_next): Use
  3030. __attribute__ instead of __attribute.
  3031. * sysdeps/unix/sysv/linux/i386/bits/pthreadtypes.h
  3032. (__cleanup_fct_attribute): Likewise.
  3033. 2005-11-17 Jakub Jelinek <jakub@redhat.com>
  3034. * sysdeps/pthread/unwind-forcedunwind.c (pthread_cancel_init): Put
  3035. a write barrier before writing libgcc_s_getcfa.
  3036. 2005-11-06 Ulrich Drepper <drepper@redhat.com>
  3037. * sysdeps/unix/sysv/linux/configure: Removed.
  3038. 2005-11-05 Ulrich Drepper <drepper@redhat.com>
  3039. * sysdeps/unix/sysv/linux/ia64/pt-initfini.c: Remove trace of
  3040. optional init_array/fini_array support.
  3041. 2005-10-24 Roland McGrath <roland@redhat.com>
  3042. * sysdeps/unix/sysv/linux/x86_64/sem_trywait.S: Remove unnecessary
  3043. versioned_symbol use.
  3044. 2005-10-16 Roland McGrath <roland@redhat.com>
  3045. * init.c (__pthread_initialize_minimal_internal): Even when using a
  3046. compile-time default stack size, apply the minimum that allocate_stack
  3047. will require, and round up to page size.
  3048. 2005-10-10 Daniel Jacobowitz <dan@codesourcery.com>
  3049. * Makefile ($(test-modules)): Remove static pattern rule.
  3050. 2005-10-14 Jakub Jelinek <jakub@redhat.com>
  3051. Ulrich Drepper <drepper@redhat.com>
  3052. * sysdeps/unix/sysv/linux/x86_64/pthread_once.S: Fix stack
  3053. alignment in callback function.
  3054. * Makefile: Add rules to build and run tst-align3.
  3055. * tst-align3.c: New file.
  3056. 2005-10-03 Jakub Jelinek <jakub@redhat.com>
  3057. * allocatestack.c (setxid_signal_thread): Add
  3058. INTERNAL_SYSCALL_DECL (err).
  3059. 2005-10-02 Jakub Jelinek <jakub@redhat.com>
  3060. * allocatestack.c (setxid_signal_thread): Need to use
  3061. atomic_compare_and_exchange_bool_acq.
  3062. 2005-10-01 Ulrich Drepper <drepper@redhat.com>
  3063. Jakub Jelinek <jakub@redhat.com>
  3064. * descr.h: Define SETXID_BIT and SETXID_BITMASK. Adjust
  3065. CANCEL_RESTMASK.
  3066. (struct pthread): Move specific_used field to avoid padding.
  3067. Add setxid_futex field.
  3068. * init.c (sighandler_setxid): Reset setxid flag and release the
  3069. setxid futex.
  3070. * allocatestack.c (setxid_signal_thread): New function. Broken
  3071. out of the bodies of the two loops in __nptl_setxid. For undetached
  3072. threads check whether they are exiting and if yes, don't send a signal.
  3073. (__nptl_setxid): Simplify loops by using setxid_signal_thread.
  3074. * pthread_create.c (start_thread): For undetached threads, check
  3075. whether setxid bit is set. If yes, wait until signal has been
  3076. processed.
  3077. * allocatestack.c (STACK_VARIABLES): Initialize them.
  3078. * pthread_create.c (__pthread_create_2_1): Initialize pd.
  3079. 2004-09-02 Jakub Jelinek <jakub@redhat.com>
  3080. * pthread_cond_destroy.c (__pthread_cond_destroy): If there are
  3081. waiters, awake all waiters on the associated mutex.
  3082. 2005-09-22 Roland McGrath <roland@redhat.com>
  3083. * perf.c [__x86_64__] (HP_TIMING_NOW): New macro (copied from
  3084. ../sysdeps/x86_64/hp-timing.h).
  3085. 2005-08-29 Jakub Jelinek <jakub@redhat.com>
  3086. * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h (FUTEX_WAKE_OP,
  3087. FUTEX_OP_CLEAR_WAKE_IF_GT_ONE): Define.
  3088. (lll_futex_wake_unlock): Define.
  3089. * sysdeps/unix/sysv/linux/alpha/lowlevellock.h (FUTEX_WAKE_OP,
  3090. FUTEX_OP_CLEAR_WAKE_IF_GT_ONE): Define.
  3091. (lll_futex_wake_unlock): Define.
  3092. * sysdeps/unix/sysv/linux/ia64/lowlevellock.h (FUTEX_WAKE_OP,
  3093. FUTEX_OP_CLEAR_WAKE_IF_GT_ONE): Define.
  3094. (lll_futex_wake_unlock): Define.
  3095. * sysdeps/unix/sysv/linux/s390/lowlevellock.h (FUTEX_WAKE_OP,
  3096. FUTEX_OP_CLEAR_WAKE_IF_GT_ONE): Define.
  3097. (lll_futex_wake_unlock): Define.
  3098. * sysdeps/unix/sysv/linux/sparc/lowlevellock.h (FUTEX_WAKE_OP,
  3099. FUTEX_OP_CLEAR_WAKE_IF_GT_ONE): Define.
  3100. (lll_futex_wake_unlock): Define.
  3101. * sysdeps/pthread/pthread_cond_signal.c (__pthread_cond_signal): Use
  3102. lll_futex_wake_unlock.
  3103. * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S
  3104. (FUTEX_WAKE_OP, FUTEX_OP_CLEAR_WAKE_IF_GT_ONE): Define.
  3105. (__pthread_cond_signal): Use FUTEX_WAKE_OP.
  3106. * sysdeps/unix/sysv/linux/x86_64/pthread_cond_signal.S
  3107. (FUTEX_WAKE_OP, FUTEX_OP_CLEAR_WAKE_IF_GT_ONE): Define.
  3108. (__pthread_cond_signal): Use FUTEX_WAKE_OP.
  3109. 2005-09-05 Kaz Kojima <kkojima@rr.iij4u.or.jp>
  3110. * sysdeps/unix/sysv/linux/sh/lowlevellock.S (__lll_mutex_lock_wait):
  3111. Fix typo in register name.
  3112. 2005-08-23 Ulrich Drepper <drepper@redhat.com>
  3113. * sysdeps/unix/sysv/linux/timer_routines.c (timer_helper_thread):
  3114. Use __sigfillset. Document that sigfillset does the right thing wrt
  3115. to SIGSETXID.
  3116. 2005-07-11 Jakub Jelinek <jakub@redhat.com>
  3117. [BZ #1102]
  3118. * sysdeps/pthread/pthread.h (PTHREAD_MUTEX_INITIALIZER,
  3119. PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP,
  3120. PTHREAD_ERRORCHECK_MUTEX_INITIALIZER_NP,
  3121. PTHREAD_MUTEX_ADAPTIVE_NP, PTHREAD_RWLOCK_INITIALIZER,
  3122. PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_NP,
  3123. PTHREAD_COND_INITIALIZER): Supply zeros for all fields
  3124. in the structure.
  3125. * Makefile (tests): Add tst-initializers1.
  3126. (CFLAGS-tst-initializers1.c): Set.
  3127. * tst-initializers1.c: New test.
  3128. 2005-07-11 Jakub Jelinek <jakub@redhat.com>
  3129. * sysdeps/unix/sysv/linux/alpha/bits/pthreadtypes.h (pthread_rwlock_t):
  3130. Make sure __flags are located at offset 48 from the start of the
  3131. structure.
  3132. 2005-07-02 Roland McGrath <roland@redhat.com>
  3133. * Makeconfig: Comment fix.
  3134. 2005-07-05 Jakub Jelinek <jakub@redhat.com>
  3135. * descr.h (PTHREAD_STRUCT_END_PADDING): Define.
  3136. * sysdeps/ia64/tls.h (TLS_PRE_TCB_SIZE): If PTHREAD_STRUCT_END_PADDING
  3137. is smaller than 8 bytes, increase TLS_PRE_TCB_SIZE by 16 bytes.
  3138. (THREAD_SYSINFO, THREAD_SELF, DB_THREAD_SELF): Don't assume
  3139. TLS_PRE_TCB_SIZE is sizeof (struct pthread).
  3140. (THREAD_SET_STACK_GUARD, THREAD_COPY_STACK_GUARD): Define.
  3141. * sysdeps/ia64/tcb-offsets.sym (PID, TID, MULTIPLE_THREADS_OFFSET):
  3142. Use TLS_PRE_TCB_SIZE instead of sizeof (struct pthread).
  3143. * sysdeps/unix/sysv/linux/ia64/createthread.c (TLS_VALUE): Don't
  3144. assume TLS_PRE_TCB_SIZE is sizeof (struct pthread).
  3145. 2005-06-25 Jakub Jelinek <jakub@redhat.com>
  3146. * sysdeps/i386/tls.h (tcbhead_t): Add stack_guard field.
  3147. (THREAD_SET_STACK_GUARD, THREAD_COPY_STACK_GUARD): Define.
  3148. * sysdeps/x86_64/tls.h (tcbhead_t): Add sysinfo and stack_guard
  3149. fields.
  3150. (THREAD_SET_STACK_GUARD, THREAD_COPY_STACK_GUARD): Define.
  3151. * sysdeps/s390/tls.h (tcbhead_t): Add stack_guard
  3152. field. Put in sysinfo field unconditionally.
  3153. (THREAD_SET_STACK_GUARD, THREAD_COPY_STACK_GUARD): Define.
  3154. * sysdeps/powerpc/tls.h (tcbhead_t): Add stack_guard field.
  3155. (THREAD_SET_STACK_GUARD, THREAD_COPY_STACK_GUARD): Define.
  3156. * sysdeps/sparc/tls.h (tcbhead_t): Add sysinfo and stack_guard
  3157. fields.
  3158. (THREAD_SET_STACK_GUARD, THREAD_COPY_STACK_GUARD): Define.
  3159. * pthread_create.c (__pthread_create_2_1): Use
  3160. THREAD_COPY_STACK_GUARD macro.
  3161. * Makefile: Add rules to build and run tst-stackguard1{,-static}
  3162. tests.
  3163. * tst-stackguard1.c: New file.
  3164. * tst-stackguard1-static.c: New file.
  3165. 2005-06-14 Alan Modra <amodra@bigpond.net.au>
  3166. * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h (PSEUDO):
  3167. Invoke CGOTSETUP and CGOTRESTORE.
  3168. (CGOTSETUP, CGOTRESTORE): Define.
  3169. 2005-05-29 Richard Henderson <rth@redhat.com>
  3170. * tst-cancel4.c (WRITE_BUFFER_SIZE): New.
  3171. (tf_write, tf_writev): Use it.
  3172. (do_test): Use socketpair instead of pipe. Set SO_SNDBUF to
  3173. the system minimum.
  3174. 2005-05-23 Jakub Jelinek <jakub@redhat.com>
  3175. * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h
  3176. [IS_IN_librt] (CENABLE, CDISABLE): Use JUMPTARGET instead of
  3177. __librt_*_asynccancel@local.
  3178. 2005-05-17 Alan Modra <amodra@bigpond.net.au>
  3179. * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h: Delete
  3180. all occurrences of JUMPTARGET. Instead append @local to labels.
  3181. 2005-05-20 Jakub Jelinek <jakub@redhat.com>
  3182. * sysdeps/i386/tls.h (TLS_INIT_TCB_SIZE, TLS_INIT_TCB_ALIGN): Define to
  3183. size/alignment of struct pthread rather than tcbhead_t.
  3184. * sysdeps/x86_64/tls.h (TLS_INIT_TCB_SIZE, TLS_INIT_TCB_ALIGN):
  3185. Likewise.
  3186. * sysdeps/s390/tls.h (TLS_INIT_TCB_SIZE, TLS_INIT_TCB_ALIGN):
  3187. Likewise.
  3188. * sysdeps/sparc/tls.h (TLS_INIT_TCB_SIZE, TLS_INIT_TCB_ALIGN):
  3189. Likewise.
  3190. 2005-05-19 Richard Henderson <rth@redhat.com>
  3191. * sysdeps/ia64/pthread_spin_lock.c (pthread_spin_lock): Use
  3192. __sync_val_compare_and_swap, not explicit _si variant.
  3193. * sysdeps/ia64/pthread_spin_trylock.c (pthread_spin_trylock): Likewise.
  3194. 2005-05-03 Ulrich Drepper <drepper@redhat.com>
  3195. [BZ #915]
  3196. * sysdeps/pthread/pthread.h: Avoid empty initializers.
  3197. 2005-05-03 Jakub Jelinek <jakub@redhat.com>
  3198. * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: Remove explicit
  3199. .eh_frame section, use cfi_* directives.
  3200. 2005-04-27 Jakub Jelinek <jakub@redhat.com>
  3201. * sysdeps/unix/sysv/linux/pthread_getcpuclockid.c: Use <> instead
  3202. of "" includes.
  3203. 2005-04-27 Ulrich Drepper <drepper@redhat.com>
  3204. [BZ #1075]
  3205. * tst-cancel17.c (do_test): Add arbitrary factor to make sure
  3206. aio_write blocks.
  3207. 2005-04-27 Roland McGrath <roland@redhat.com>
  3208. * Makefile (tests): Remove tst-clock2.
  3209. * sysdeps/unix/sysv/linux/timer_create.c (timer_create): Handle
  3210. CLOCK_PROCESS_CPUTIME_ID and CLOCK_PROCESS_THREAD_ID specially,
  3211. translating to the kernel clockid_t for our own process/thread clock.
  3212. * sysdeps/unix/sysv/linux/pthread_getcpuclockid.c: New file.
  3213. 2005-04-15 Jakub Jelinek <jakub@redhat.com>
  3214. * old_pthread_cond_init.c: Include <errno.h>.
  3215. (__pthread_cond_init_2_0): Fail with EINVAL if COND_ATTR is
  3216. process shared or uses clock other than CLOCK_REALTIME.
  3217. * pthread_cond_init.c (__pthread_cond_init): Remove bogus comment.
  3218. 2005-04-13 David S. Miller <davem@davemloft.net>
  3219. * sysdeps/sparc/sparc64/jmpbuf-unwind.h: New file.
  3220. * sysdeps/sparc/sparc64/clone.S: New file.
  3221. 2005-04-05 Jakub Jelinek <jakub@redhat.com>
  3222. [BZ #1102]
  3223. * sysdeps/pthread/pthread.h (__pthread_cleanup_routine): Use
  3224. __inline instead of inline.
  3225. * sysdeps/pthread/bits/libc-lock.h (__libc_cleanup_routine): Likewise.
  3226. 2005-03-31 Jakub Jelinek <jakub@redhat.com>
  3227. * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_unlock.S: Use
  3228. functionally equivalent, but shorter instructions.
  3229. * sysdeps/unix/sysv/linux/x86_64/pthread_cond_broadcast.S: Likewise.
  3230. * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Likewise.
  3231. * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedrdlock.S:
  3232. Likewise.
  3233. * sysdeps/unix/sysv/linux/x86_64/pthread_barrier_wait.S: Likewise.
  3234. * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_rdlock.S: Likewise.
  3235. * sysdeps/unix/sysv/linux/x86_64/sem_wait.S: Likewise.
  3236. * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_wrlock.S: Likewise.
  3237. * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: Likewise.
  3238. * sysdeps/unix/sysv/linux/x86_64/pthread_once.S: Likewise.
  3239. * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedwrlock.S:
  3240. Likewise.
  3241. * sysdeps/unix/sysv/linux/x86_64/pthread_cond_signal.S: Likewise.
  3242. * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
  3243. * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: Likewise.
  3244. * sysdeps/unix/sysv/linux/x86_64/sem_post.S: Likewise.
  3245. * sysdeps/unix/sysv/linux/x86_64/sem_timedwait.S: Likewise.
  3246. 2005-03-28 Daniel Jacobowitz <dan@codesourcery.com>
  3247. * sysdeps/mips/Makefile: New file.
  3248. * sysdeps/mips/nptl-sysdep.S: New file.
  3249. * sysdeps/mips/tcb-offsets.sym: New file.
  3250. * sysdeps/mips/pthread_spin_lock.S: New file.
  3251. * sysdeps/mips/pthread_spin_trylock.S: New file.
  3252. * sysdeps/mips/pthreaddef.h: New file.
  3253. * sysdeps/mips/tls.h: New file.
  3254. * sysdeps/mips/jmpbuf-unwind.h: New file.
  3255. * sysdeps/unix/sysv/linux/mips/lowlevellock.h: New file.
  3256. * sysdeps/unix/sysv/linux/mips/bits/pthreadtypes.h: New file.
  3257. * sysdeps/unix/sysv/linux/mips/bits/semaphore.h: New file.
  3258. * sysdeps/unix/sysv/linux/mips/pthread_once.c: New file.
  3259. * sysdeps/unix/sysv/linux/mips/fork.c: New file.
  3260. * sysdeps/unix/sysv/linux/mips/pt-vfork.S: New file.
  3261. * sysdeps/unix/sysv/linux/mips/vfork.S: New file.
  3262. * sysdeps/unix/sysv/linux/mips/clone.S: New file.
  3263. * sysdeps/unix/sysv/linux/mips/createthread.c: New file.
  3264. * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h: New file.
  3265. 2005-03-23 Ulrich Drepper <drepper@redhat.com>
  3266. [BZ #1112]
  3267. * pthread_create.c (__pthread_create_2_1): Rename syscall error
  3268. variable to scerr.
  3269. 2005-03-10 Jakub Jelinek <jakub@redhat.com>
  3270. * tst-getpid1.c (do_test): Align stack passed to clone{2,}.
  3271. 2005-02-25 Roland McGrath <roland@redhat.com>
  3272. * alloca_cutoff.c: Correct license text.
  3273. * tst-unload.c: Likewise.
  3274. * sysdeps/pthread/allocalim.h: Likewise.
  3275. * sysdeps/pthread/pt-initfini.c: Likewise.
  3276. * sysdeps/pthread/bits/libc-lock.h: Likewise.
  3277. * sysdeps/pthread/bits/sigthread.h: Likewise.
  3278. * sysdeps/unix/sysv/linux/bits/local_lim.h: Likewise.
  3279. * sysdeps/unix/sysv/linux/bits/posix_opt.h: Likewise.
  3280. 2005-02-16 Roland McGrath <roland@redhat.com>
  3281. * sysdeps/pthread/pthread-functions.h (struct pthread_functions):
  3282. Use unsigned int * for ptr_nthreads.
  3283. 2005-02-14 Alan Modra <amodra@bigpond.net.au>
  3284. [BZ #721]
  3285. * sysdeps/powerpc/tcb-offsets.sym (thread_offsetof): Redefine to suit
  3286. gcc4.
  3287. 2005-02-07 Richard Henderson <rth@redhat.com>
  3288. [BZ #787]
  3289. * sysdeps/pthread/pthread.h (__sigsetjmp): Use pointer as first
  3290. argument.
  3291. 2004-11-03 Marcus Brinkmann <marcus@gnu.org>
  3292. * sysdeps/generic/lowlevellock.h (__generic_mutex_unlock): Fix
  3293. order of arguments in invocation of atomic_add_zero.
  3294. 2005-01-26 Jakub Jelinek <jakub@redhat.com>
  3295. [BZ #737]
  3296. * sysdeps/unix/sysv/linux/i386/i486/sem_trywait.S (__new_sem_trywait):
  3297. Use direct %gs segment access or, if NO_TLS_DIRECT_SEG_REFS,
  3298. at least gotntpoff relocation and addition.
  3299. * sysdeps/unix/sysv/linux/i386/i486/sem_timedwait.S (sem_timedwait):
  3300. Likewise.
  3301. * sysdeps/unix/sysv/linux/i386/i486/sem_post.S (__new_sem_post):
  3302. Likewise.
  3303. * sysdeps/unix/sysv/linux/i386/i486/sem_wait.S (__new_sem_wait):
  3304. Likewise.
  3305. 2005-01-06 Ulrich Drepper <drepper@redhat.com>
  3306. * allocatestack.c (init_one_static_tls): Adjust initialization of DTV
  3307. entry for static tls deallocation fix.
  3308. * sysdeps/alpha/tls.h (dtv_t): Change pointer type to be struct which
  3309. also contains information whether the memory pointed to is static
  3310. TLS or not.
  3311. * sysdeps/i386/tls.h: Likewise.
  3312. * sysdeps/ia64/tls.h: Likewise.
  3313. * sysdeps/powerpc/tls.h: Likewise.
  3314. * sysdeps/s390/tls.h: Likewise.
  3315. * sysdeps/sh/tls.h: Likewise.
  3316. * sysdeps/sparc/tls.h: Likewise.
  3317. * sysdeps/x86_64/tls.h: Likewise.
  3318. 2004-12-27 Ulrich Drepper <drepper@redhat.com>
  3319. * init.c (__pthread_initialize_minimal_internal): Use __sigemptyset.
  3320. 2004-12-21 Jakub Jelinek <jakub@redhat.com>
  3321. * sysdeps/i386/tls.h (CALL_THREAD_FCT): Maintain 16 byte alignment of
  3322. %esp.
  3323. * Makefile (tests): Add tst-align2.
  3324. * tst-align2.c: New test.
  3325. * sysdeps/i386/Makefile (CFLAGS-tst-align{,2}.c): Add
  3326. -mpreferred-stack-boundary=4.
  3327. 2004-12-18 Roland McGrath <roland@redhat.com>
  3328. * sysdeps/unix/sysv/linux/powerpc/powerpc64/bits/local_lim.h:
  3329. New file removed withdrawn for the moment.
  3330. 2004-12-17 Richard Henderson <rth@redhat.com>
  3331. * sysdeps/unix/sysv/linux/alpha/clone.S: New file.
  3332. * sysdeps/alpha/tcb-offsets.sym (TID_OFFSET): New.
  3333. 2004-12-16 Ulrich Drepper <drepper@redhat.com>
  3334. * sysdeps/unix/sysv/linux/powerpc/powerpc64/bits/local_lim.h: New file.
  3335. Increased PTHREAD_STACK_MIN.
  3336. * tst-context1.c (stacks): Use bigger stack size.
  3337. 2004-12-16 Jakub Jelinek <jakub@redhat.com>
  3338. * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S: New file.
  3339. * sysdeps/sparc/tcb-offsets.sym: Add TID.
  3340. 2004-12-15 Jakub Jelinek <jakub@redhat.com>
  3341. * sysdeps/unix/sysv/linux/s390/s390-32/clone.S: New file.
  3342. * sysdeps/unix/sysv/linux/s390/s390-64/clone.S: New file.
  3343. * sysdeps/s390/tcb-offsets.sym (TID): Add.
  3344. 2004-12-15 Ulrich Drepper <drepper@redhat.com>
  3345. * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: New file.
  3346. 2004-12-14 Ulrich Drepper <drepper@redhat.com>
  3347. * sysdeps/powerpc/tcb-offsets.sym: Add TID.
  3348. * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: New file.
  3349. * tst-getpid1.c: If child crashes, report this first. Print which
  3350. signal.
  3351. 2004-12-09 Ulrich Drepper <drepper@redhat.com>
  3352. * init.c (__pthread_initialize_minimal_internal): Also unblock
  3353. SIGSETXID.
  3354. 2004-12-01 Jakub Jelinek <jakub@redhat.com>
  3355. * sysdeps/unix/sysv/linux/bits/posix_opt.h (_POSIX_CPUTIME,
  3356. _POSIX_THREAD_CPUTIME): Define to 0.
  3357. * sysdeps/pthread/timer_create.c (timer_create): Remove unused code
  3358. handling CLOCK_PROCESS_CPUTIME_ID and CLOCK_THREAD_CPUTIME_ID.
  3359. * sysdeps/pthread/timer_routines.c (__timer_signal_thread_pclk,
  3360. __timer_signal_thread_tclk): Remove.
  3361. (init_module): Remove their initialization.
  3362. (thread_cleanup): Remove their cleanup assertions.
  3363. * sysdeps/pthread/posix-timer.h (__timer_signal_thread_pclk,
  3364. __timer_signal_thread_tclk): Remove.
  3365. * sysdeps/unix/sysv/linux/i386/bits/posix_opt.h: Removed.
  3366. * sysdeps/unix/sysv/linux/ia64/bits/posix_opt.h: Removed.
  3367. * sysdeps/unix/sysv/linux/x86_64/bits/posix_opt.h: Removed.
  3368. 2004-12-07 Jakub Jelinek <jakub@redhat.com>
  3369. * sysdeps/ia64/tcb-offsets.sym (TID): Add.
  3370. * sysdeps/unix/sysv/linux/ia64/clone2.S: New file.
  3371. * Makefile (tests): Add tst-getpid2.
  3372. * tst-getpid1.c (TEST_CLONE_FLAGS): Define.
  3373. (do_test): Use it. Use __clone2 instead of clone on ia64.
  3374. * tst-getpid2.c: New test.
  3375. 2004-12-07 Kaz Kojima <kkojima@rr.iij4u.or.jp>
  3376. * sysdeps/unix/sysv/linux/sh/clone.S: New file.
  3377. 2004-12-04 Ulrich Drepper <drepper@redhat.com>
  3378. * Makefile (tests): Add tst-getpid1.
  3379. * tst-getpid1.c: New file.
  3380. * sysdeps/unix/sysv/linux/i386/clone.S: New file.
  3381. * sysdeps/unix/sysv/linux/x86_64/clone.S: New file.
  3382. 2004-12-02 Roland McGrath <roland@redhat.com>
  3383. * Makefile (libpthread-nonshared): Variable removed.
  3384. ($(objpfx)libpthread_nonshared.a): Target removed.
  3385. ($(inst_libdir)/libpthread_nonshared.a): Likewise.
  3386. These are now handled by generic magic from
  3387. libpthread-static-only-routines being set.
  3388. 2004-11-27 Ulrich Drepper <drepper@redhat.com>
  3389. * sysdeps/unix/sysv/linux/bits/posix_opt.h (_POSIX_PRIORITIZED_IO,
  3390. _POSIX2_CHAR_TERM, _POSIX_THREAD_PRIO_INHERIT,
  3391. _POSIX_THREAD_PRIO_PROTECT): Define.
  3392. * sysdeps/unix/sysv/linux/i386/bits/posix_opt.h: Likewise.
  3393. * sysdeps/unix/sysv/linux/ia64/bits/posix_opt.h: Likewise.
  3394. * sysdeps/unix/sysv/linux/x86_64/bits/posix_opt.h: Likewise.
  3395. 2004-11-26 Jakub Jelinek <jakub@redhat.com>
  3396. * sysdeps/unix/sysv/linux/bits/posix_opt.h (_POSIX_ADVISORY_INFO,
  3397. _POSIX_SPORADIC_SERVER, _POSIX_THREAD_SPORADIC_SERVER, _POSIX_TRACE,
  3398. _POSIX_TRACE_EVENT_FILTER, _POSIX_TRACE_INHERIT, _POSIX_TRACE_LOG,
  3399. _POSIX_TYPED_MEMORY_OBJECTS, _POSIX_IPV6, _POSIX_RAW_SOCKETS): Define.
  3400. * sysdeps/unix/sysv/linux/i386/bits/posix_opt.h: Likewise.
  3401. * sysdeps/unix/sysv/linux/ia64/bits/posix_opt.h: Likewise.
  3402. * sysdeps/unix/sysv/linux/x86_64/bits/posix_opt.h: Likewise.
  3403. 2004-11-24 Ulrich Drepper <drepper@redhat.com>
  3404. * sysdeps/x86_64/Makefile [nptl]: Define CFLAGS-pthread_create.c.
  3405. * Makefile (libpthread-routines): Add pthread_setschedprio.
  3406. * Versions [libpthread, GLIBC_2.3.4]: Add pthread_setschedprio.
  3407. * sysdeps/pthread/pthread.h: Declare pthread_setschedprio.
  3408. * pthread_setschedprio.c: New file.
  3409. 2004-11-20 Jakub Jelinek <jakub@redhat.com>
  3410. * pthread_create.c (pthread_cancel): Add PTHREAD_STATIC_FN_REQUIRE.
  3411. * pthread_cancel.c (pthread_create): Likewise.
  3412. * Makefile (libpthread-routines): Add vars.
  3413. * sysdeps/pthread/createthread.c (__pthread_multiple_threads): Remove.
  3414. * init.c (__default_stacksize, __is_smp): Remove.
  3415. * vars.c: New file.
  3416. * pthreadP.h (__find_thread_by_id): If !SHARED, add weak_function
  3417. and define a wrapper macro.
  3418. (PTHREAD_STATIC_FN_REQUIRE): Define.
  3419. * allocatestack.c (__find_thread_by_id): Undefine.
  3420. * pthread_create (__pthread_keys): Remove.
  3421. (pthread_mutex_lock, pthread_mutex_unlock, pthread_once,
  3422. pthread_key_create, pthread_setspecific, pthread_getspecific): Add
  3423. PTHREAD_STATIC_FN_REQUIRE.
  3424. 2004-11-18 Kaz Kojima <kkojima@rr.iij4u.or.jp>
  3425. * sysdeps/sh/tls.h (DB_THREAD_SELF): Set the correct bias
  3426. parameter to REGISTER macro.
  3427. 2004-11-17 Roland McGrath <roland@redhat.com>
  3428. * sysdeps/unix/sysv/linux/timer_routines.c (__start_helper_thread):
  3429. Make sure SIGCANCEL is blocked as well.
  3430. 2004-11-10 Jakub Jelinek <jakub@redhat.com>
  3431. * sysdeps/pthread/setxid.h: New file.
  3432. * sysdeps/pthread/pthread-functions.h (HAVE_PTR__NPTL_SETXID): Remove.
  3433. (struct xid_command): Add forward decl.
  3434. (struct pthread_functions): Change return type of __nptl_setxid hook
  3435. to int.
  3436. * pthreadP.h (__nptl_setxid): Change return type to int.
  3437. * allocatestack.c (__nptl_setxid): Call INTERNAL_SYSCALL_NCS in the
  3438. calling thread, return its return value and set errno on failure.
  3439. * descr.h (struct xid_command): Change id type to long array.
  3440. * Makefile: Add rules to build and test tst-setuid1 and
  3441. tst-setuid1-static.
  3442. * tst-setuid1.c: New test.
  3443. * tst-setuid1-static.c: New test.
  3444. 2004-11-10 Jakub Jelinek <jakub@redhat.com>
  3445. * Makefile (tests): Add tst-exit3.
  3446. * tst-exit3.c: New test.
  3447. 2004-11-09 Ulrich Drepper <drepper@redhat.com>
  3448. * Makefile (tests): Add tst-exit2.
  3449. * tst-exit2.c: New file.
  3450. 2004-11-09 Roland McGrath <roland@redhat.com>
  3451. [BZ #530]
  3452. * sysdeps/pthread/createthread.c (do_clone): Increment __nptl_nthreads
  3453. here, before calling clone.
  3454. * pthread_create.c (start_thread): Don't do it here.
  3455. 2004-11-02 Jakub Jelinek <jakub@redhat.com>
  3456. * sysdeps/unix/sysv/linux/smp.h: Include <errno.h>.
  3457. 2004-10-29 Kaz Kojima <kkojima@rr.iij4u.or.jp>
  3458. * sysdeps/unix/sysv/linux/sh/sem_timedwait.S (sem_timedwait):
  3459. Set ETIMEDOUT to errno when time is up. Tweak to avoid
  3460. assembler warning.
  3461. 2004-10-28 Jakub Jelinek <jakub@redhat.com>
  3462. * pthread_create.c (__pthread_create_2_1): Avoid leaking stacks
  3463. if sched_priority is not between minprio and maxprio.
  3464. 2004-10-25 Kaz Kojima <kkojima@rr.iij4u.or.jp>
  3465. * sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S
  3466. (__pthread_cond_timedwait): Use clock_gettime syscall if exists.
  3467. * sysdeps/unix/sysv/linux/sh/lowlevellock.S
  3468. (__lll_mutex_timedlock_wait): Fix a bad branch condition.
  3469. 2004-10-24 Ulrich Drepper <drepper@redhat.com>
  3470. * sysdeps/unix/sysv/linux/smp.h (is_smp_system): Use
  3471. not-cancelable I/O functions.
  3472. 2004-10-21 Kaz Kojima <kkojima@rr.iij4u.or.jp>
  3473. * sysdeps/unix/sysv/linux/sh/lowlevellock.S
  3474. (__lll_mutex_timedlock_wait): If woken but cannot get the lock,
  3475. make sure 2 is stored in the futex and we looked at the old value.
  3476. Fix a few other problems to return the correct value.
  3477. 2004-10-14 Richard Henderson <rth@redhat.com>
  3478. * sysdeps/alpha/tcb-offsets.sym (thread_offsetof): Redefine to
  3479. make gcc4 happy.
  3480. 2004-10-06 Jakub Jelinek <jakub@redhat.com>
  3481. * sysdeps/unix/sysv/linux/jmp-unwind.c: Include pthreadP.h instead
  3482. of pthread-functions.h and pthreaddef.h.
  3483. * sysdeps/unix/sysv/linux/s390/jmp-unwind.c: Likewise.
  3484. * sysdeps/unix/sysv/linux/x86_64/bits/pthreadtypes.h (pthread_cond_t):
  3485. Change __data.__nwaiters from int to unsigned int.
  3486. * tst-clock2.c (do_test): Don't fail if _POSIX_THREAD_CPUTIME == 0 and
  3487. sysconf (_SC_THREAD_CPUTIME) returns negative value.
  3488. * allocatestack.c (__find_thread_by_id): Move attribute_hidden
  3489. before return type.
  3490. * sysdeps/s390/jmpbuf-unwind.h: Include bits/wordsize.h.
  3491. (JMPBUF_CFA_UNWINDS_ADJ): Subtract 96 resp. 160 bytes from CFA.
  3492. 2004-10-06 Ulrich Drepper <drepper@redhat.com>
  3493. * tst-cancel4.c (tf_msgrcv): Check for failure in msgget. If the
  3494. test fails, remove message queue.
  3495. (tf_msgsnd): Likewise.
  3496. 2004-10-05 Jakub Jelinek <jakub@redhat.com>
  3497. * tst-clock1.c: Change #ifdef to #if defined.
  3498. * tst-clock2.c: Likewise.
  3499. * tst-cond11.c: Likewise.
  3500. * sysdeps/pthread/timer_create.c (timer_create): Use
  3501. defined _POSIX_CPUTIME && _POSIX_CPUTIME >= 0 instead of
  3502. defined CLOCK_PROCESS_CPUTIME_ID #ifs and similarly for
  3503. THREAD_CPUTIME.
  3504. 2004-10-05 Jakub Jelinek <jakub@redhat.com>
  3505. * sysdeps/unix/sysv/linux/x86_64/bits/posix_opt.h (_POSIX_CPUTIME,
  3506. _POSIX_THREAD_CPUTIME): Define to 0.
  3507. 2004-10-04 Ulrich Drepper <drepper@redhat.com>
  3508. * sysdeps/unix/sysv/linux/i386/bits/posix_opt.h: Define _POSIX_CPUTIME
  3509. and _POSIX_THREAD_CPUTIME to zero.
  3510. * sysdeps/unix/sysv/linux/ia64/bits/posix_opt.h: Likewise.
  3511. * tst-barrier2.c: Fix testing for POSIX feature.
  3512. * tst-clock1.c: Likewise.
  3513. * tst-clock2.c: Likewise.
  3514. * tst-cond11.c: Likewise.
  3515. * tst-cond4.c: Likewise.
  3516. * tst-cond6.c: Likewise.
  3517. * tst-flock2.c: Likewise.
  3518. * tst-mutex4.c: Likewise.
  3519. * tst-mutex9.c: Likewise.
  3520. * tst-rwlock12.c: Likewise.
  3521. * tst-rwlock4.c: Likewise.
  3522. * tst-signal1.c: Likewise.
  3523. * tst-spin2.c: Likewise.
  3524. * sysdeps/pthread/posix-timer.h: Likewise.
  3525. * sysdeps/pthread/timer_create.c: Likewise.
  3526. * sysdeps/pthread/timer_routines.c: Likewise.
  3527. 2004-10-01 Ulrich Drepper <drepper@redhat.com>
  3528. * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S
  3529. (__lll_mutex_timedlock_wait): Address futex correctly.
  3530. * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S
  3531. (__lll_mutex_timedlock_wait): If woken but cannot get the lock,
  3532. make sure 2 is stored in the futex and we looked at the old value.
  3533. * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S
  3534. (__lll_mutex_timedlock_wait): Likewise. Fix a few other problems
  3535. which might very well made the code not working at all before.
  3536. [BZ #417]
  3537. 2004-09-28 Ulrich Drepper <drepper@redhat.com>
  3538. * sysdeps/unix/sysv/linux/pthread_kill.c (__pthread_kill): Don't
  3539. allow SIGSETXID to be sent.
  3540. * sysdeps/pthread/sigaction.c (__sigaction): Don't allow action
  3541. for SIGSETXID to be defined.
  3542. * sysdeps/pthread/pthread_sigmask.c (pthread_sigmask): Make sure
  3543. SIGSETXID cannot be blocked.
  3544. * sysdeps/unix/sysv/linux/sh/bits/pthreadtypes.h (pthread_cond_t):
  3545. Add __extension__ to long long types.
  3546. * sysdeps/unix/sysv/linux/sparc/bits/pthreadtypes.h: Likewise.
  3547. * sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h: Likewise.
  3548. * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: Likewise.
  3549. * sysdeps/unix/sysv/linux/ia64/bits/pthreadtypes.h: Likewise.
  3550. * sysdeps/unix/sysv/linux/alpha/bits/pthreadtypes.h: Likewise.
  3551. * sysdeps/unix/sysv/linux/i386/bits/pthreadtypes.h: Likewise.
  3552. * sysdeps/unix/sysv/linux/x86_64/bits/pthreadtypes.h: Likewise.
  3553. 2004-09-25 Ulrich Drepper <drepper@redhat.com>
  3554. * descr.h (struct pthread): Add stopped_start field.
  3555. * sysdeps/pthread/createthread.c (create_thread): Set
  3556. start_stopped flag in descriptor for new thread appropriately.
  3557. * pthread_create.c (start_thread): Only take lock to be stopped on
  3558. startup if stopped_start flag says so.
  3559. 2004-09-24 Ulrich Drepper <drepper@redhat.com>
  3560. * pthread_create.c (__pthread_create_2_1): Remember whether thread
  3561. is created detached and if yes, do not try to free the stack in case
  3562. the thread creation failed.
  3563. * sysdeps/pthread/createthread.c (do_clone): Free stack here if clone
  3564. call fails. Don't depend on INTERNAL_SYSCALL_ERRNO return zero in
  3565. case there has been no error. [BZ #405]
  3566. * pthread_create.c (start_thread): Don't wait for scheduler data
  3567. etc to be set at the beginning of the function. The cancellation
  3568. infrastructure must have been set up. And enable async
  3569. cancellation before potentially going to sleep. [BZ #401]
  3570. 2004-09-20 Ulrich Drepper <drepper@redhat.com>
  3571. * Versions: Remove exports for pthread_set*id_np functions.
  3572. * sysdeps/pthread/pthread.h: Remove pthread_set*id_np prototypes
  3573. for now.
  3574. * Makefile: Don't build pthread_set*id code for now.
  3575. 2004-09-19 Ulrich Drepper <drepper@redhat.com>
  3576. * sysdeps/unix/sysv/linux/allocrtsig.c: Allocate second signal for
  3577. internal use.
  3578. * allocatestack.c (__nptl_setxid): New function.
  3579. * descr.h (struct xid_command): Define type.
  3580. * init.c (pthread_functions): Add ptr__nptl_setxid initialization.
  3581. (sighandler_setxid): New function.
  3582. (__pthread_initialize_minimal): Register sighandler_setxid for
  3583. SIGCANCEL.
  3584. * pt-allocrtsig.c: Update comment.
  3585. * pthreadP.h: Define SIGSETXID. Declare __xidcmd variable.
  3586. Declare __nptl_setxid.
  3587. * sysdeps/pthread/pthread-functions.h: Add ptr__nptl_setxid.
  3588. * sysdeps/pthread/pthread.h: Declare pthread_setgid_np,
  3589. pthread_setuid_np, pthread_setegid_np, pthread_seteuid_np,
  3590. pthread_setregid_np, pthread_setreuid_np, pthread_setresgid_np,
  3591. and pthread_setresuid_np.
  3592. * pthread_setgid_np.c: New file.
  3593. * pthread_setuid_np.c: New file.
  3594. * pthread_setegid_np.c: New file.
  3595. * pthread_seteuid_np.c: New file.
  3596. * pthread_setregid_np.c: New file.
  3597. * pthread_setreuid_np.c: New file.
  3598. * pthread_setresgid_np.c: New file.
  3599. * pthread_setresuid_np.c: New file.
  3600. * Versions [libpthread, GLIBC_2.3.4]: Add pthread_setgid_np,
  3601. pthread_setuid_np, pthread_setegid_np, pthread_seteuid_np,
  3602. pthread_setregid_np, pthread_setreuid_np, pthread_setresgid_np,
  3603. and pthread_setresuid_np.
  3604. * Makefile (libpthread-routines): Add pthread_setuid, pthread_seteuid,
  3605. pthread_setreuid, pthread_setresuid, pthread_setgid, pthread_setegid,
  3606. pthread_setregid, and pthread_setresgid.
  3607. 2004-09-18 Ulrich Drepper <drepper@redhat.com>
  3608. * allocatestack.c (allocate_stack): Return EAGAIN instead of
  3609. ENOMEM when out of memory.
  3610. 2004-09-10 Roland McGrath <roland@redhat.com>
  3611. [BZ #379]
  3612. * allocatestack.c (allocate_stack): Remove [__ASSUME_CLONE_STOPPED]
  3613. code, since we don't try to use the broken CLONE_STOPPED any more.
  3614. * pthread_create.c (start_thread): Likewise.
  3615. 2004-09-15 Richard Henderson <rth@redhat.com>
  3616. * sysdeps/unix/sysv/linux/alpha/vfork.S: Use libc_hidden_def.
  3617. 2004-09-01 David Mosberger <davidm@hpl.hp.com>
  3618. * sysdeps/unix/sysv/linux/ia64/jmpbuf-unwind.h
  3619. (__libc_unwind_longjmp): Delete macro and declare as function.
  3620. * sysdeps/unix/sysv/linux/ia64/Makefile (sysdep_routines): Mention
  3621. __ia64_longjmp, sigstack_longjmp, and __sigstack_longjmp for
  3622. nptl directory.
  3623. * sysdeps/unix/sysv/linux/ia64/__ia64_longjmp.S: New file.
  3624. * sysdeps/unix/sysv/linux/ia64/__sigstack_longjmp.c: New file.
  3625. * sysdeps/unix/sysv/linux/ia64/unwind_longjmp.c: New file.
  3626. 2004-09-12 Ulrich Drepper <drepper@redhat.com>
  3627. * sysdeps/pthread/pthread.h: Make rwlock prototypes available also
  3628. for __USE_XOPEN2K.
  3629. * sysdeps/unix/sysv/linux/alpha/bits/pthreadtypes.h: Define rwlock
  3630. types also for __USE_XOPEN2K.
  3631. * sysdeps/unix/sysv/linux/i386/bits/pthreadtypes.h: Likewise.
  3632. * sysdeps/unix/sysv/linux/ia64/bits/pthreadtypes.h: Likewise.
  3633. * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: Likewise.
  3634. * sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h: Likewise.
  3635. * sysdeps/unix/sysv/linux/sh/bits/pthreadtypes.h: Likewise.
  3636. * sysdeps/unix/sysv/linux/sparc/bits/pthreadtypes.h: Likewise.
  3637. * sysdeps/unix/sysv/linux/x86_64/bits/pthreadtypes.h: Likewise.
  3638. [BZ #320]
  3639. 2004-09-08 Ulrich Drepper <drepper@redhat.com>
  3640. * sysdeps/pthread/pthread.h
  3641. (PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP): Make safe for C++.
  3642. (PTHREAD_ERRORCHECK_MUTEX_INITIALIZER_NP): Likewise.
  3643. (PTHREAD_ADAPTIVE_MUTEX_INITIALIZER_NP): Likewise.
  3644. (PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_NP): Likewise.
  3645. [BZ #375]
  3646. 2004-09-07 Ulrich Drepper <drepper@redhat.com>
  3647. * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: Allow
  3648. PSEUDO to be used with . prefix.
  3649. * sysdeps/unix/sysv/linux/alpha/pthread_once.c (__pthread_once):
  3650. Use atomic_increment instead of atomic_exchange_and_add.
  3651. * sysdeps/unix/sysv/linux/sparc/pthread_once.c (__pthread_once):
  3652. Likewise.
  3653. * sysdeps/unix/sysv/linux/ia64/pthread_once.c (__pthread_once):
  3654. Likewise.
  3655. * sysdeps/unix/sysv/linux/powerpc/pthread_once.c (__pthread_once):
  3656. Likewise.
  3657. * allocatestack.c (allocate_stack): Use atomic_increment_val
  3658. instead of atomic_exchange_and_add.
  3659. * sysdeps/unix/sysv/linux/sem_post.c (__new_sem_post): Likewise.
  3660. * sysdeps/unix/sysv/linux/powerpc/sem_post.c (__new_sem_post):
  3661. Likewise.
  3662. * sysdeps/pthread/pthread_barrier_wait.c (pthread_barrier_wait):
  3663. Likewise.
  3664. * sysdeps/pthread/pthread.h (pthread_once): Remove __THROW since
  3665. the initialization function might throw.
  3666. 2005-09-05 Richard Henderson <rth@redhat.com>
  3667. * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h (SINGLE_THREAD_P):
  3668. Move definition inside libpthread, libc, librt check. Provide
  3669. definition for rtld.
  3670. 2004-09-02 Ulrich Drepper <drepper@redhat.com>
  3671. * sysdeps/alpha/jmpbuf-unwind.h: Define __libc_unwind_longjmp.
  3672. * sysdeps/i386/jmpbuf-unwind.h: Likewise
  3673. * sysdeps/powerpc/jmpbuf-unwind.h: Likewise.
  3674. * sysdeps/s390/jmpbuf-unwind.h: Likewise.
  3675. * sysdeps/sh/jmpbuf-unwind.h: Likewise.
  3676. * sysdeps/sparc/sparc32/jmpbuf-unwind.h: Likewise.
  3677. * sysdeps/unix/sysv/linux/ia64/jmpbuf-unwind.h: Likewise.
  3678. * sysdeps/x86_64/jmpbuf-unwind.h: Likewise.
  3679. * unwind.c: Use it.
  3680. * sysdeps/unix/sysv/linux/i386/bits/pthreadtypes.h (pthread_cond_t):
  3681. Rename __data.__clock to __data.__nwaiters, make it unsigned int.
  3682. * sysdeps/unix/sysv/linux/x86_64/bits/pthreadtypes.h (pthread_cond_t):
  3683. Likewise.
  3684. * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S:
  3685. Decrement __nwaiters. If pthread_cond_destroy has been called and
  3686. this is the last waiter, signal pthread_cond_destroy caller and
  3687. avoid using the pthread_cond_t structure after unlock.
  3688. * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: Likewise.
  3689. * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: Likewise.
  3690. Read clock type from the least significant bits of __nwaiters instead
  3691. of __clock.
  3692. * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: Likewise.
  3693. * sysdeps/unix/sysv/linux/internaltypes.h: Define COND_CLOCK_BITS.
  3694. 2004-08-31 Jakub Jelinek <jakub@redhat.com>
  3695. [BZ #342]
  3696. * Makefile (tests): Add tst-cond20 and tst-cond21.
  3697. * tst-cond20.c: New test.
  3698. * tst-cond21.c: New test.
  3699. * sysdeps/unix/sysv/linux/alpha/bits/pthreadtypes.h
  3700. (pthread_cond_t): Rename __data.__clock to __data.__nwaiters, make
  3701. it unsigned int.
  3702. * sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h (pthread_cond_t):
  3703. Likewise.
  3704. * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h
  3705. (pthread_cond_t): Likewise.
  3706. * sysdeps/unix/sysv/linux/sparc/bits/pthreadtypes.h (pthread_cond_t):
  3707. Likewise.
  3708. * sysdeps/unix/sysv/linux/sh/bits/pthreadtypes.h (pthread_cond_t):
  3709. Likewise.
  3710. * sysdeps/unix/sysv/linux/ia64/bits/pthreadtypes.h (pthread_cond_t):
  3711. Likewise.
  3712. * sysdeps/unix/sysv/linux/lowlevelcond.sym (cond_clock): Remove.
  3713. (cond_nwaiters): New.
  3714. (clock_bits): New.
  3715. * pthread_cond_destroy.c (__pthread_cond_destroy): Return EBUSY
  3716. if there are waiters not signalled yet.
  3717. Wait until all already signalled waiters wake up.
  3718. * sysdeps/pthread/pthread_cond_wait.c (__condvar_cleanup): Decrement
  3719. __nwaiters. If pthread_cond_destroy has been called and this is the
  3720. last waiter, signal pthread_cond_destroy caller and avoid using
  3721. the pthread_cond_t structure after unlock.
  3722. (__pthread_cond_wait): Increment __nwaiters in the beginning,
  3723. decrement it when leaving. If pthread_cond_destroy has been called
  3724. and this is the last waiter, signal pthread_cond_destroy caller.
  3725. * sysdeps/pthread/pthread_cond_timedwait.c (__pthread_cond_timedwait):
  3726. Likewise. Read clock type from the least significant bits of
  3727. __nwaiters instead of __clock.
  3728. * pthread_condattr_setclock.c (pthread_condattr_setclock): Check
  3729. whether clock ID can be encoded in COND_CLOCK_BITS bits.
  3730. * pthread_condattr_getclock.c (pthread_condattr_getclock): Decode
  3731. clock type just from the last COND_CLOCK_BITS bits of value.
  3732. * pthread_cond_init.c (__pthread_cond_init): Initialize __nwaiters
  3733. instead of __clock, just from second bit of condattr's value.
  3734. 2004-08-30 Jakub Jelinek <jakub@redhat.com>
  3735. * sysdeps/unix/sysv/linux/x86_64/bits/pthreadtypes.h: Include
  3736. bits/wordsize.h. Make the header match i386 header when __WORDSIZE
  3737. != 64.
  3738. * sysdeps/unix/sysv/linux/x86_64/bits/semaphore.h: Likewise.
  3739. 2004-08-15 Roland McGrath <roland@frob.com>
  3740. * pthread_atfork.c: Update copyright terms including special exception
  3741. for these trivial files, which are statically linked into executables
  3742. that use dynamic linking for the significant library code.
  3743. 2004-08-09 Jakub Jelinek <jakub@redhat.com>
  3744. * DESIGN-rwlock.txt: Add decreasing of nr_readers_queued to
  3745. pthread_rwlock_rdlock.
  3746. * sysdeps/pthread/pthread_rwlock_rdlock (__pthread_rwlock_rdlock):
  3747. Decrease __nr_readers_queued after reacquiring lock.
  3748. * sysdeps/pthread/pthread_rwlock_timedrdlock
  3749. (pthread_rwlock_timedrdlock): Likewise.
  3750. Reported by Bob Cook <bobcook47@hotmail.com>.
  3751. 2004-08-11 Jakub Jelinek <jakub@redhat.com>
  3752. * tst-rwlock14.c (tf): Read main thread handle from *ARG
  3753. before pthread_barrier_wait.
  3754. 2004-08-07 Ulrich Drepper <drepper@redhat.com>
  3755. * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S:
  3756. Remove unnecessary exception handling data.
  3757. 2004-07-23 Jakub Jelinek <jakub@redhat.com>
  3758. [BZ #284]
  3759. * sysdeps/pthread/pthread.h (pthread_getcpuclockid): Use __clockid_t
  3760. instead of clockid_t.
  3761. 2004-07-21 Roland McGrath <roland@redhat.com>
  3762. * Makefile ($(objpfx)multidir.mk): Use $(make-target-directory).
  3763. 2004-07-19 Roland McGrath <roland@redhat.com>
  3764. * tst-cancel4.c (tf_waitid): Use WEXITED flag bit if available.
  3765. 2004-07-02 Roland McGrath <roland@redhat.com>
  3766. * configure: Don't exit.
  3767. 2004-07-14 Kaz Kojima <kkojima@rr.iij4u.or.jp>
  3768. * sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S
  3769. (__pthread_cond_timedwait): Check for invalid nanosecond in
  3770. timeout value.
  3771. 2004-07-07 Ulrich Drepper <drepper@redhat.com>
  3772. * Makefile: Add rules to build and run tst-fini1.
  3773. * tst-fini1.c: New file.
  3774. * tst-fini1mod.c: New file.
  3775. 2004-07-05 Ulrich Drepper <drepper@redhat.com>
  3776. * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: Define NO_CANCELLATION
  3777. if no cancellation support is needed.
  3778. * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h: Likewise.
  3779. * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Likewise.
  3780. * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Likewise.
  3781. * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h: Likewise.
  3782. * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: Likewise.
  3783. * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: Likewise.
  3784. * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: Likewise.
  3785. * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Likewise.
  3786. * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Likewise.
  3787. * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Define __NR_futex
  3788. only if not already defined.
  3789. 2004-07-05 Jakub Jelinek <jakub@redhat.com>
  3790. * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (lll_unlock): Use
  3791. constraint "m" instead of "0" for futex.
  3792. * shlib-versions: Add powerpc64-.*-linux.*.
  3793. 2004-07-04 Jakub Jelinek <jakub@redhat.com>
  3794. * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedrdlock.S
  3795. (pthread_rwlock_timedrdlock): Use cmpq instead of cmpl to check
  3796. for valid tv_nsec.
  3797. * tst-rwlock14.c (do_test): Test for invalid tv_nsec equal to
  3798. 1 billion and 64-bit tv_nsec which is valid when truncated to 32
  3799. bits.
  3800. 2004-06-29 Roland McGrath <roland@redhat.com>
  3801. * Banner: NPTL no longer has its own version number.
  3802. * Makefile (nptl-version): Variable removed.
  3803. * sysdeps/pthread/Makefile (CFLAGS-confstr.c): Set LIBPTHREAD_VERSION
  3804. using $(version), the glibc version number.
  3805. 2004-06-29 Kaz Kojima <kkojima@rr.iij4u.or.jp>
  3806. * sysdeps/unix/sysv/linux/sh/pthread_once.S (__pthread_once):
  3807. Fix branch offset for a PLT entry.
  3808. * sysdeps/unix/sysv/linux/sh/sem_post.S (__new_sem_post):
  3809. Likewise.
  3810. * sysdeps/unix/sysv/linux/sh/sem_timedwait.S (sem_timedwait):
  3811. Likewise.
  3812. * sysdeps/unix/sysv/linux/sh/sem_trywait.S (__new_sem_trywait):
  3813. Likewise.
  3814. * sysdeps/unix/sysv/linux/sh/sem_wait.S (__new_sem_wait):
  3815. Likewise.
  3816. 2004-06-28 Jakub Jelinek <jakub@redhat.com>
  3817. * sysdeps/alpha/tcb-offsets.sym (MULTIPLE_THREADS_OFFSET): Define
  3818. unconditionally.
  3819. 2004-06-28 Jakub Jelinek <jakub@redhat.com>
  3820. * sysdeps/pthread/pthread_rwlock_timedwrlock.c
  3821. (pthread_rwlock_timedwrlock): Return EINVAL if tv_nsec is negative,
  3822. instead of tv_sec.
  3823. * sysdeps/pthread/pthread_rwlock_timedrdlock.c
  3824. (pthread_rwlock_timedrdlock): Likewise.
  3825. 2004-06-22 Jakub Jelinek <jakub@redhat.com>
  3826. * sysdeps/unix/sysv/linux/s390/lowlevellock.h (lll_futex_requeue):
  3827. Set __r7 to val, not mutex.
  3828. 2004-06-27 Ulrich Drepper <drepper@redhat.com>
  3829. * Makefile: Add rules to build tst-rwlock14.
  3830. * tst-rwlock14.c: New file.
  3831. 2004-06-24 Boris Hu <boris.hu@intel.com>
  3832. * sysdeps/pthread/pthread_rwlock_timedrdlock.c: Add timeout validation
  3833. check.
  3834. * sysdeps/pthread/pthread_rwlock_timedwrlock.c: Likewise.
  3835. 2004-06-19 Andreas Jaeger <aj@suse.de>
  3836. * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: Fix
  3837. assembler in last patch.
  3838. 2004-06-17 Ulrich Drepper <drepper@redhat.com>
  3839. * sysdeps/pthread/pthread_cond_timedwait.c
  3840. (__pthread_cond_timedwait): Also check for negativ nanoseconds.
  3841. * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S
  3842. (__pthread_cond_timedwait): Check for invalid nanosecond in
  3843. timeout value.
  3844. * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: Likewise.
  3845. * tst-cond19.c: New file.
  3846. * Makefile: Add rules to build and run tst-cond19.
  3847. 2004-06-15 Steven Munroe <sjmunroe@us.ibm.com>
  3848. * tst-context1.c (GUARD_PATTERN): Defined.
  3849. (tst_context_t): Define struct containing ucontext_t & guard words.
  3850. (ctx): Declare as an array of tst_context_t.
  3851. (fct): Verify uc_link & guard words are still valid.
  3852. (tf): Initialize guard words in ctx. Adjust ctx refs for new struct.
  3853. 2004-06-13 Kaz Kojima <kkojima@rr.iij4u.or.jp>
  3854. * sysdeps/unix/sysv/linux/sh/bits/pthreadtypes.h (pthread_cond_t):
  3855. Add __data.__futex field, reshuffle __data.__clock.
  3856. * sysdeps/unix/sysv/linux/sh/pthread_cond_signal.S
  3857. (__pthread_cond_signal): Increment __futex at the same time as
  3858. __wakeup_seq or __total_seq. Pass address of __futex instead of
  3859. address of low 32-bits of __wakeup_seq to futex syscall.
  3860. * sysdeps/unix/sysv/linux/sh/pthread_cond_wait.S
  3861. (__pthread_cond_wait): Likewise. Pass __futex value from before
  3862. releasing internal lock to FUTEX_WAIT.
  3863. * sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S
  3864. (__pthread_cond_timedwait): Likewise.
  3865. * sysdeps/unix/sysv/linux/sh/pthread_cond_broadcast.S
  3866. (FUTEX_CMP_REQUEUE): Define.
  3867. (__pthread_cond_broadcast): Set __futex to 2 * __total_seq.
  3868. Use FUTEX_CMP_REQUEUE operation instead of FUTEX_REQUEUE.
  3869. Pass __futex value from before the unlock and __futex address instead
  3870. of address of low 32-bits of __wakeup_seq to futex syscall.
  3871. Fallback to FUTEX_WAKE all on any errors.
  3872. 2004-06-08 Jakub Jelinek <jakub@redhat.com>
  3873. * pthread_mutexattr_getpshared.c (pthread_mutex_getpshared): Fix
  3874. comment typo.
  3875. * pthread_mutexattr_gettype.c (pthread_mutexattr_gettype): Likewise.
  3876. * pthread_mutexattr_init.c (__pthread_mutexattr_init): Likewise.
  3877. * pthread_mutexattr_settype.c (__pthread_mutexattr_settype): Likewise.
  3878. * pthread_mutexattr_setpshared.c (pthread_mutexattr_setpshared):
  3879. Likewise. Reported by Bob Cook <bobcook47@hotmail.com>.
  3880. 2004-06-11 Martin Schwidefsky <schwidefsky@de.ibm.com>
  3881. * sysdeps/unix/sysv/linux/s390/lowlevellock.h (lll_compare_and_swap):
  3882. Add memory clobber to inline assembly.
  3883. (__lll_mutex_trylock): Likewise.
  3884. (__lll_mutex_cond_trylock): Likewise.
  3885. 2004-06-07 Martin Schwidefsky <schwidefsky@de.ibm.com>
  3886. * sysdeps/unix/sysv/linux/s390/lowlevellock.h (lll_futex_requeue):
  3887. Pass val argument as 6th system call argument in %r7.
  3888. 2004-05-21 Jakub Jelinek <jakub@redhat.com>
  3889. * Makefile (tests): Add tst-cond16.
  3890. * sysdeps/unix/sysv/linux/lowlevelcond.sym (cond_futex): Add.
  3891. * pthread_cond_init.c (__pthread_cond_init): Clear __data.__futex.
  3892. * sysdeps/unix/sysv/linux/i386/bits/pthreadtypes.h (pthread_cond_t):
  3893. Add __data.__futex field, reshuffle __data.__clock.
  3894. * sysdeps/unix/sysv/linux/i386/pthread_cond_signal.S
  3895. (__pthread_cond_signal): Increment __futex at the same time as
  3896. __wakeup_seq or __total_seq. Pass address of __futex instead of
  3897. address of low 32-bits of __wakeup_seq to futex syscall.
  3898. * sysdeps/unix/sysv/linux/i386/pthread_cond_wait.S
  3899. (__pthread_cond_wait): Likewise. Pass __futex value from before
  3900. releasing internal lock to FUTEX_WAIT.
  3901. * sysdeps/unix/sysv/linux/i386/pthread_cond_timedwait.S
  3902. (__pthread_cond_timedwait): Likewise.
  3903. * sysdeps/unix/sysv/linux/i386/pthread_cond_broadcast.S
  3904. (FUTEX_CMP_REQUEUE): Define.
  3905. (__pthread_cond_broadcast): Set __futex to 2 * __total_seq.
  3906. Use FUTEX_CMP_REQUEUE operation instead of FUTEX_REQUEUE.
  3907. Pass __futex value from before the unlock and __futex address instead
  3908. of address of low 32-bits of __wakeup_seq to futex syscall.
  3909. Fallback to FUTEX_WAKE all on any errors.
  3910. * sysdeps/unix/sysv/linux/alpha/lowlevellock.h (FUTEX_CMP_REQUEUE):
  3911. Define.
  3912. (lll_futex_requeue): Add val argument, use FUTEX_CMP_REQUEUE
  3913. internally. Return non-zero if error, zero if success.
  3914. * sysdeps/unix/sysv/linux/alpha/bits/pthreadtypes.h (pthread_cond_t):
  3915. Add __data.__futex field, reshuffle __data.__clock.
  3916. * sysdeps/unix/sysv/linux/s390/lowlevellock.h (FUTEX_CMP_REQUEUE):
  3917. Define.
  3918. (lll_futex_requeue): Add val argument, return 1 unconditionally
  3919. for the time being.
  3920. * sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h (pthread_cond_t):
  3921. Add __data.__futex field, reshuffle __data.__clock.
  3922. * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h (FUTEX_CMP_REQUEUE):
  3923. Define.
  3924. (lll_futex_requeue): Add val argument, use FUTEX_CMP_REQUEUE
  3925. internally. Return non-zero if error, zero if success.
  3926. * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h
  3927. (pthread_cond_t): Add __data.__futex field, reshuffle __data.__clock.
  3928. * sysdeps/unix/sysv/linux/sparc/lowlevellock.h (FUTEX_CMP_REQUEUE):
  3929. Define.
  3930. (lll_futex_requeue): Add val argument, use FUTEX_CMP_REQUEUE
  3931. internally. Return non-zero if error, zero if success.
  3932. * sysdeps/unix/sysv/linux/sparc/bits/pthreadtypes.h (pthread_cond_t):
  3933. Add __data.__futex field, reshuffle __data.__clock.
  3934. * sysdeps/unix/sysv/linux/ia64/lowlevellock.h (FUTEX_CMP_REQUEUE):
  3935. Define.
  3936. (lll_futex_requeue): Add val argument, use FUTEX_CMP_REQUEUE
  3937. internally. Return non-zero if error, zero if success.
  3938. * sysdeps/unix/sysv/linux/ia64/bits/pthreadtypes.h (pthread_cond_t):
  3939. Add __data.__futex field, reshuffle __data.__clock.
  3940. * sysdeps/unix/sysv/linux/x86_64/bits/pthreadtypes.h (pthread_cond_t):
  3941. Add __data.__futex field, reshuffle __data.__clock.
  3942. * sysdeps/pthread/pthread_cond_signal.c (__pthread_cond_signal):
  3943. Increment __futex at the same time as __wakeup_seq or __total_seq.
  3944. Pass address of __futex instead of address of low 32-bits of
  3945. __wakeup_seq to futex syscall.
  3946. * sysdeps/pthread/pthread_cond_wait.c (__pthread_cond_wait): Likewise.
  3947. Pass __futex value from before releasing internal lock
  3948. to FUTEX_WAIT.
  3949. * sysdeps/pthread/pthread_cond_timedwait.c (__pthread_cond_timedwait):
  3950. Likewise. Avoid unnecessary shadowing of variables.
  3951. * sysdeps/pthread/pthread_cond_broadcast.c (__pthread_cond_broadcast):
  3952. Set __futex to 2 * __total_seq. Pass __futex value from before the
  3953. unlock and __futex address instead of address of low 32-bits of
  3954. __wakeup_seq to futex_requeue macro, adjust for new return value
  3955. meaning.
  3956. * sysdeps/unix/sysv/linux/x86_64/pthread_cond_signal.S
  3957. (__pthread_cond_signal): Increment __futex at the same time as
  3958. __wakeup_seq or __total_seq. Pass address of __futex instead of
  3959. address of low 32-bits of __wakeup_seq to futex syscall.
  3960. * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S
  3961. (__pthread_cond_wait): Likewise. Pass __futex value from before
  3962. releasing internal lock to FUTEX_WAIT.
  3963. * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S
  3964. (__pthread_cond_timedwait): Likewise.
  3965. * sysdeps/unix/sysv/linux/x86_64/pthread_cond_broadcast.S
  3966. (FUTEX_CMP_REQUEUE): Define.
  3967. (__pthread_cond_broadcast): Set __futex to 2 * __total_seq.
  3968. Use FUTEX_CMP_REQUEUE operation instead of FUTEX_REQUEUE.
  3969. Pass __futex value from before the unlock and __futex address instead
  3970. of address of low 32-bits of __wakeup_seq to futex syscall.
  3971. Fallback to FUTEX_WAKE all on any errors.
  3972. 2004-06-03 Kaz Kojima <kkojima@rr.iij4u.or.jp>
  3973. * sysdeps/unix/sysv/linux/sh/lowlevellock.h (lll_mutex_lock):
  3974. Add nop to align the end of critical section.
  3975. (lll_mutex_cond_lock, lll_mutex_timedlock): Likewise.
  3976. 2004-06-01 Kaz Kojima <kkojima@rr.iij4u.or.jp>
  3977. * sysdeps/unix/sysv/linux/sh/bits/pthreadtypes.h (pthread_cond_t):
  3978. Add __broadcast_seq field.
  3979. * sysdeps/unix/sysv/linux/sh/pthread_cond_broadcast.S: Mark
  3980. all waiters as woken with woken_seq and bump broadcast counter.
  3981. * sysdeps/unix/sysv/linux/sh/pthread_cond_wait.S: Use new
  3982. __broadcast_seq. Increment __woken_seq correctly when cleanuped.
  3983. * sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S: Likewise.
  3984. Comment typo fixes. Avoid returning -ETIMEDOUT.
  3985. 2004-06-01 Ulrich Drepper <drepper@redhat.com>
  3986. * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S
  3987. (__condvar_tw_cleanup): Fix access to saved broadcast_seq value.
  3988. Reported by Kaz Kojima.
  3989. 2004-05-25 Jakub Jelinek <jakub@redhat.com>
  3990. * sysdeps/unix/sysv/linux/aio_misc.h: New file.
  3991. 2004-05-21 Jakub Jelinek <jakub@redhat.com>
  3992. * sysdeps/pthread/pthread_cond_wait.c (__pthread_cond_wait): Compare
  3993. __broadcast_seq with bc_seq after acquiring internal lock instead of
  3994. before it.
  3995. 2004-05-18 Jakub Jelinek <jakub@redhat.com>
  3996. * Makefile (.NOTPARALLEL): Only serialize make check/xcheck, not
  3997. compilation.
  3998. * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S
  3999. (__pthread_cond_timedwait): Avoid returning -ETIMEDOUT.
  4000. * sysdeps/unix/sysv/linux/x86_64/bits/pthreadtypes.h
  4001. (pthread_cond_t): Add __data.__broadcast_seq field.
  4002. * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S
  4003. (FRAME_SIZE): Define.
  4004. (__pthread_cond_timedwait): Use it. Store/check broadcast_seq.
  4005. Comment typo fixes.
  4006. * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S (FRAME_SIZE):
  4007. Define.
  4008. (__pthread_cond_wait): Use it. Store/check broadcast_seq. Comment
  4009. typo fixes.
  4010. * sysdeps/unix/sysv/linux/x86_64/pthread_cond_broadcast.S
  4011. (__pthread_cond_broadcast): Increment broadcast_seq. Comment typo
  4012. fixes.
  4013. 2004-05-18 Ulrich Drepper <drepper@redhat.com>
  4014. * sysdeps/unix/sysv/linux/lowlevelcond.sym: Add broadcast_seq entry.
  4015. * sysdeps/unix/sysv/linux/alpha/bits/pthreadtypes.h (pthread_cond_t):
  4016. Add __broadcast_seq field.
  4017. * sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h: Likewise.
  4018. * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: Likewise.
  4019. * sysdeps/unix/sysv/linux/sparc/bits/pthreadtypes.h: Likewise.
  4020. * sysdeps/unix/sysv/linux/i386/bits/pthreadtypes.h: Likewise.
  4021. * sysdeps/unix/sysv/linux/ia64/bits/pthreadtypes.h: Likewise.
  4022. * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_broadcast.S: Mark
  4023. all waiters as woken with woken_seq and bump broadcast counter.
  4024. * sysdeps/pthread/pthread_cond_broadcast.c: Likewise.
  4025. * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Use new
  4026. __broadcast_seq field.
  4027. * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: Likewise.
  4028. * sysdeps/pthread/pthread_cond_wait.c: Likewise.
  4029. * sysdeps/pthread/pthread_cond_timedwait.c: Likewise.
  4030. * pthread_cond_init.c: Initialize __broadcast_seq field.
  4031. * Makefile (tests): Add tst-cond17 and tst-cond18.
  4032. Add .NOTPARALLEL goal.
  4033. * tst-cond16.c: New file. From Jakub.
  4034. * tst-cond17.c: New file. From Jakub.
  4035. * tst-cond18.c: New file. From Jakub.
  4036. 2004-05-16 Ulrich Drepper <drepper@redhat.com>
  4037. * sysdeps/unix/sysv/linux/i386/i486/sem_timedwait.S: Correct some
  4038. unwind info.
  4039. * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S:
  4040. Parametrize frame size. Correct some unwind info.
  4041. * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: Likewise.
  4042. 2004-05-04 Jakub Jelinek <jakub@redhat.com>
  4043. * tst-stack3.c: Note testing functionality beyond POSIX.
  4044. 2004-05-04 Jakub Jelinek <jakub@redhat.com>
  4045. * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (USE___THREAD):
  4046. Change conditional from ifdef to if.
  4047. 2004-04-23 Jakub Jelinek <jakub@redhat.com>
  4048. * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (SYSDEP_CANCEL_ERRNO,
  4049. SYSDEP_CANCEL_ERROR): Define.
  4050. (PSEUDO): Use it.
  4051. 2004-05-01 Jakub Jelinek <jakub@redhat.com>
  4052. * Versions (libpthread): Remove __pthread_cleanup_upto@@GLIBC_PRIVATE.
  4053. 2004-04-20 Jakub Jelinek <jakub@redhat.com>
  4054. * sem_unlink.c (sem_unlink): Change EPERM into EACCES.
  4055. 2004-04-19 Kaz Kojima <kkojima@rr.iij4u.or.jp>
  4056. * sysdeps/unix/sysv/linux/sh/sem_timedwait.S: Add frame info.
  4057. Use HIDDEN_JUMPTARGET to jump to __pthread_unwind.
  4058. * sysdeps/unix/sysv/linux/sh/sem_wait.S: Remove unneeded frame
  4059. info. Use HIDDEN_JUMPTARGET to jump to __pthread_unwind.
  4060. 2004-04-19 Ulrich Drepper <drepper@redhat.com>
  4061. * sysdeps/unix/sysv/linux/timer_routines.c: Make sure helper
  4062. thread has all signals blocked.
  4063. 2004-04-18 Andreas Jaeger <aj@suse.de>
  4064. * sysdeps/unix/sysv/linux/x86_64/bits/semaphore.h
  4065. (SEM_VALUE_MAX): Add missing brace.
  4066. 2004-04-17 Jakub Jelinek <jakub@redhat.com>
  4067. * sysdeps/pthread/Makefile (tests): Add tst-mqueue8x
  4068. in rt subdir.
  4069. (CFLAGS-tst-mqueue8x.c): Add -fexceptions.
  4070. * sysdeps/pthread/tst-mqueue8x.c: New test.
  4071. * tst-cancel4.c: Update comment about message queues.
  4072. * sysdeps/pthread/timer_gettime.c (timer_gettime): For expired timer
  4073. return it_value { 0, 0 }.
  4074. * sysdeps/pthread/timer_create.c (timer_create): Handle SIGEV_NONE
  4075. like SIGEV_SIGNAL.
  4076. * sysdeps/pthread/timer_routines.c (thread_expire_timer): Remove
  4077. assertion for SIGEV_NONE.
  4078. (thread_attr_compare): Compare all attributes, not just a partial
  4079. subset.
  4080. 2004-04-17 Jakub Jelinek <jakub@redhat.com>
  4081. * sysdeps/unix/sysv/linux/mq_notify.c: Include stdlib.h.
  4082. 2004-04-17 Ulrich Drepper <drepper@redhat.com>
  4083. * sysdeps/unix/sysv/linux/alpha/bits/semaphore.h (SEM_VALUE_MAX):
  4084. Just use a plain number.
  4085. * sysdeps/unix/sysv/linux/i386/bits/semaphore.h: Likewise.
  4086. * sysdeps/unix/sysv/linux/ia64/bits/semaphore.h: Likewise.
  4087. * sysdeps/unix/sysv/linux/powerpc/bits/semaphore.h: Likewise.
  4088. * sysdeps/unix/sysv/linux/s390/bits/semaphore.h: Likewise.
  4089. * sysdeps/unix/sysv/linux/sh/bits/semaphore.h: Likewise.
  4090. * sysdeps/unix/sysv/linux/sparc/bits/semaphore.h: Likewise.
  4091. * sysdeps/unix/sysv/linux/x86_64/bits/semaphore.h: Likewise.
  4092. 2004-04-16 Kaz Kojima <kkojima@rr.iij4u.or.jp>
  4093. * sysdeps/unix/sysv/linux/sh/pthread_cond_wait.S: Remove unneeded
  4094. frame info.
  4095. * sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S: Likewise.
  4096. 2004-04-15 Jakub Jelinek <jakub@redhat.com>
  4097. * sysdeps/unix/sysv/linux/timer_routines.c: Include errno.h.
  4098. (timer_helper_thread): Use inline rt_sigtimedwait syscall instead
  4099. of calling sigwaitinfo.
  4100. 2004-04-16 Ulrich Drepper <drepper@redhat.com>
  4101. * allocatestack.c (allocate_stack): Set reported_guardsize
  4102. unconditionally.
  4103. * pthread_getattr_np.c (pthread_getattr_np): Use
  4104. reported_guardsize instead of guardsize.
  4105. * descr.h (struct pthread): Add reported_guardsize field.
  4106. 2004-04-13 Jakub Jelinek <jakub@redhat.com>
  4107. * sysdeps/unix/sysv/linux/mq_notify.c: Shut up GCC warning.
  4108. 2004-04-12 Ulrich Drepper <drepper@redhat.com>
  4109. * sysdeps/unix/sysv/linux/mq-notify.c: New file.
  4110. 2004-04-08 Jakub Jelinek <jakub@redhat.com>
  4111. * sysdeps/unix/sysv/linux/bits/local_lim.h (MQ_PRIO_MAX): Define.
  4112. * sysdeps/unix/sysv/linux/alpha/bits/local_lim.h (MQ_PRIO_MAX): Define.
  4113. * sysdeps/unix/sysv/linux/ia64/bits/local_lim.h (MQ_PRIO_MAX): Define.
  4114. * sysdeps/unix/sysv/linux/sparc/bits/local_lim.h (MQ_PRIO_MAX): Define.
  4115. * sysdeps/unix/sysv/linux/bits/posix_opt.h (_POSIX_MESSAGE_PASSING):
  4116. Define.
  4117. * sysdeps/unix/sysv/linux/i386/bits/posix_opt.h
  4118. (_POSIX_MESSAGE_PASSING): Define.
  4119. * sysdeps/unix/sysv/linux/ia64/bits/posix_opt.h
  4120. (_POSIX_MESSAGE_PASSING): Define.
  4121. * sysdeps/unix/sysv/linux/x86_64/bits/posix_opt.h
  4122. (_POSIX_MESSAGE_PASSING): Define.
  4123. 2004-04-04 Ulrich Drepper <drepper@redhat.com>
  4124. * tst-context1.c (fct): Check whether correct stack is used.
  4125. 2004-04-03 Ulrich Drepper <drepper@redhat.com>
  4126. * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Never use
  4127. matching constraints for asm mem parameters.
  4128. * tst-clock2.c (tf): Don't define unless needed.
  4129. 2004-03-30 H.J. Lu <hongjiu.lu@intel.com>
  4130. * Makefile (link-libc-static): Use $(static-gnulib) instead of
  4131. $(gnulib).
  4132. 2004-03-30 Ulrich Drepper <drepper@redhat.com>
  4133. * sysdeps/pthread/pthread-functions.h: Add ptr__nptl_deallocate_tsd.
  4134. * init.c (pthread_functions): Add ptr__nptl_deallocate_tsd.
  4135. * pthreadP.h: Declare __nptl_deallocate_tsd.
  4136. * pthread_create.c (deallocate_tsd): Remove to __nptl_deallocate_tsd.
  4137. Adjust caller.
  4138. * Makefile (tests): Add tst-tsd5.
  4139. * tst-tsd5.c: New file.
  4140. 2004-03-29 Ulrich Drepper <drepper@redhat.com>
  4141. * sysdeps/unix/sysv/linux/pthread_attr_setaffinity.c
  4142. (__pthread_attr_setaffinity_old): Prepend GLIBC_ to version names
  4143. is SHLIB_COMPAT check.
  4144. * sysdeps/unix/sysv/linux/pthread_attr_getaffinity.c
  4145. (__pthread_attr_getaffinity_old): Likewise.
  4146. * sysdeps/unix/sysv/linux/pthread_getaffinity.c
  4147. (__pthread_getaffinity_old): Likewise.
  4148. * sysdeps/unix/sysv/linux/pthread_setaffinity.c
  4149. (__pthread_setaffinity_old): Likewise.
  4150. 2004-03-26 Ulrich Drepper <drepper@redhat.com>
  4151. * allocatestack.c (_make_stacks_executable): Call
  4152. _dl_make_stack_executable first.
  4153. 2004-03-24 Roland McGrath <roland@redhat.com>
  4154. * sysdeps/i386/pthread_spin_lock.c (pthread_spin_lock): Use "m"
  4155. constraint instead of "0".
  4156. 2004-03-24 Ulrich Drepper <drepper@redhat.com>
  4157. * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h
  4158. (lll_mutex_cond_trylock): Define as wrapper around __lll_cond_trylock.
  4159. * sysdeps/unix/sysv/linux/getpid.c (really_getpid): Reorganize
  4160. code to avoid warning.
  4161. 2004-03-24 Andreas Jaeger <aj@suse.de>
  4162. * sysdeps/unix/sysv/linux/pthread_attr_setaffinity.c
  4163. (__pthread_attr_setaffinity_old): Remove const.
  4164. 2004-03-23 Ulrich Drepper <drepper@redhat.com>
  4165. * sysdeps/unix/sysv/linux/smp.h: New file.
  4166. * sysdeps/unix/sysv/linux/sh/smp.h: New file.
  4167. * init.c: Define __is_smp.
  4168. (__pthread_initialize_minimal_internal): Call is_smp_system to
  4169. initialize __is_smp.
  4170. * pthreadP.h: Declare __is_smp.
  4171. Define MAX_ADAPTIVE_COUNT is necessary.
  4172. * pthread_mutex_init.c: Add comment regarding __spins field.
  4173. * pthread_mutex_lock.c: Implement adaptive mutex type.
  4174. * pthread_mutex_timedlock.c: Likewise.
  4175. * sysdeps/unix/sysv/linux/pthread_mutex_cond_lock.c: Likewise.
  4176. * sysdeps/unix/sysv/linux/alpha/bits/pthreadtypes.h (pthread_mutex_t):
  4177. Add __spins field.
  4178. * sysdeps/unix/sysv/linux/i386/bits/pthreadtypes.h: Likewise.
  4179. * sysdeps/unix/sysv/linux/ia64/bits/pthreadtypes.h: Likewise.
  4180. * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: Likewise.
  4181. * sysdeps/unix/sysv/linux/sh/bits/pthreadtypes.h: Likewise.
  4182. * sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h: Likewise.
  4183. * sysdeps/unix/sysv/linux/sparc/bits/pthreadtypes.h: Likewise.
  4184. * sysdeps/unix/sysv/linux/x86_64/bits/pthreadtypes.h: Likewise.
  4185. * sysdeps/unix/sysv/linux/alpha/bits/pthreadtypes.h: Define
  4186. lll_mutex_cond_trylock.
  4187. * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: Likewise.
  4188. * sysdeps/unix/sysv/linux/sh/bits/pthreadtypes.h: Likewise.
  4189. * sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h: Likewise.
  4190. * sysdeps/unix/sysv/linux/sparc/bits/pthreadtypes.h: Likewise.
  4191. * sysdeps/unix/sysv/linux/i386/bits/pthreadtypes.h: Likewise.
  4192. Define BUSY_WAIT_NOP.
  4193. * sysdeps/unix/sysv/linux/ia64/bits/pthreadtypes.h: Likewise.
  4194. * sysdeps/unix/sysv/linux/x86_64/bits/pthreadtypes.h: Likewise.
  4195. * tst-mutex5.c: Add support for testing adaptive mutexes.
  4196. * tst-mutex7.c: Likewise.
  4197. * tst-mutex5a.c: New file.
  4198. * tst-mutex7a.c: New file.
  4199. * Makefile (tests): Add tst-mutex5a and tst-mutex7a.
  4200. * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S
  4201. (__lll_mutex_timedlock_wait): Preserve r8 and r9 since the
  4202. vgettimeofday call might destroy the content.
  4203. * sysdeps/ia64/pthread_spin_lock.c (pthread_spin_lock): Use hint
  4204. @pause in the loop.
  4205. * sysdeps/unix/sysv/linux/i386/lowlevellock.h (lll_mutex_trylock):
  4206. No need to restrict type of ret. Make it int. Add comment.
  4207. * sysdeps/unix/sysv/linux/i386/lowlevellock.h (lll_mutex_trylock):
  4208. Remove unnecessary setne instruction.
  4209. 2004-03-22 Jakub Jelinek <jakub@redhat.com>
  4210. * sysdeps/unix/sysv/linux/pthread_getaffinity.c
  4211. (__pthread_getaffinity_new): Use INT_MAX instead of UINT_MAX.
  4212. * pthread_getattr_np.c (pthread_getattr_np): Double size every cycle.
  4213. If realloc fails, break out of the loop.
  4214. 2004-03-20 Andreas Jaeger <aj@suse.de>
  4215. * sysdeps/unix/sysv/linux/pthread_setaffinity.c
  4216. (__pthread_setaffinity_old): Fix interface.
  4217. * sysdeps/unix/sysv/linux/pthread_getaffinity.c
  4218. (__pthread_getaffinity_old): Likewise.
  4219. * sysdeps/unix/sysv/linux/pthread_setaffinity.c
  4220. (__pthread_setaffinity_new): Remove duplicate declaration.
  4221. 2004-03-20 Kaz Kojima <kkojima@rr.iij4u.or.jp>
  4222. * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h (CENABLE): Save
  4223. the return value to a safe register.
  4224. (CDISABLE): Set the function argument correctly.
  4225. 2004-03-17 Kaz Kojima <kkojima@rr.iij4u.or.jp>
  4226. * sysdeps/unix/sysv/linux/sh/lowlevel-atomic.h (XCHG): Define.
  4227. * sysdeps/unix/sysv/linux/sh/lowlevellock.S (__lll_mutex_lock_wait):
  4228. Rewrite so that only one locked memory operation per round is needed.
  4229. * sysdeps/unix/sysv/linux/sh/pthread_barrier_wait.S
  4230. (pthread_barrier_wait): After wakeup, release lock only when the
  4231. last thread stopped using the barrier object.
  4232. * sysdeps/unix/sysv/linux/sh/pthread_cond_wait.S
  4233. (__pthread_cond_wait): Don't store mutex address if the current
  4234. value is ~0l. Add correct cleanup support and unwind info.
  4235. * sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S: Likewise.
  4236. * sysdeps/unix/sysv/linux/sh/pthread_cond_broadcast.S
  4237. (__pthread_cond_broadcast): Don't use requeue for pshared condvars.
  4238. * sysdeps/unix/sysv/linux/sh/pthread_cond_signal.S: Update comment.
  4239. * sysdeps/unix/sysv/linux/sh/pthread_once.S (__pthread_once):
  4240. Add correct cleanup support and unwind info.
  4241. * sysdeps/unix/sysv/linux/sh/sem_wait.S (__new_sem_wait): Likewise.
  4242. * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Add unwind
  4243. information for syscall wrappers.
  4244. 2004-03-18 Ulrich Drepper <drepper@redhat.com>
  4245. * sysdeps/unix/sysv/linux/internaltypes.h (struct pthread_attr): Add
  4246. cpusetsize field, remove next.
  4247. * sysdeps/pthread/pthread.h (pthread_getaffinity_np): Add new second
  4248. parameter for size of the CPU set.
  4249. (pthread_setaffinity_np): Likewise.
  4250. (pthread_attr_getaffinity_np): Likewise.
  4251. (pthread_attr_setaffinity_np): Likewise.
  4252. * sysdeps/unix/sysv/linux/pthread_attr_getaffinity.c: Implement
  4253. interface change, keep compatibility code.
  4254. * sysdeps/unix/sysv/linux/pthread_attr_setaffinity.c: Likewise.
  4255. * sysdeps/unix/sysv/linux/pthread_getaffinity.c: Likewise.
  4256. * sysdeps/unix/sysv/linux/pthread_setaffinity.c: Likewise.
  4257. * pthreadP.h: Remove hidden_proto for pthread_getaffinity_np. Declare
  4258. __pthread_getaffinity_np.
  4259. * Versions: Add version for changed interfaces.
  4260. * tst-attr3.c: Adjust test for interface change.
  4261. * pthread_getattr_np.c: Query the kernel about the affinity mask with
  4262. increasing buffer sizes.
  4263. * pthread_attr_destroy.c: Remove unused list handling.
  4264. * pthread_attr_init.c: Likewise.
  4265. 2004-03-17 Roland McGrath <roland@redhat.com>
  4266. * sysdeps/unix/sysv/linux/timer_create.c (timer_create): Pass missing
  4267. first argument to clock_getres so we ever enable kernel timers.
  4268. 2004-03-15 Ulrich Weigand <uweigand@de.ibm.com>
  4269. * init.c (nptl_version): Add __attribute_used__ to nptl_version.
  4270. 2004-03-12 Richard Henderson <rth@redhat.com>
  4271. * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: Propagate
  4272. oldvalue from CENABLE to CDISABLE.
  4273. 2004-03-12 Ulrich Drepper <drepper@redhat.com>
  4274. * sysdeps/unix/sysv/linux/bits/local_lim.h: Define HOST_NAME_MAX.
  4275. * sysdeps/unix/sysv/linux/alpha/bits/local_lim.h: Likewise.
  4276. * sysdeps/unix/sysv/linux/ia64/bits/local_lim.h: Likewise.
  4277. * sysdeps/unix/sysv/linux/sparc/bits/local_lim.h: Likewise.
  4278. 2004-03-11 Richard Henderson <rth@redhat.com>
  4279. * sysdeps/alpha/tcb-offsets.sym (PID_OFFSET): New.
  4280. * sysdeps/unix/sysv/linux/alpha/pt-vfork.S: Save/restore PID.
  4281. * sysdeps/unix/sysv/linux/alpha/vfork.S: New file.
  4282. 2004-03-11 Jakub Jelinek <jakub@redhat.com>
  4283. * sysdeps/unix/sysv/linux/s390/s390-64/vfork.S (__vfork): Use jgnl
  4284. instead of jnl instruction to jump to SYSCALL_ERROR_LABEL.
  4285. * sysdeps/unix/sysv/linux/s390/s390-64/pt-vfork.S (__vfork): Likewise.
  4286. 2004-03-11 Jakub Jelinek <jakub@redhat.com>
  4287. * forward.c (__pthread_cond_broadcast_2_0,
  4288. __pthread_cond_destroy_2_0, __pthread_cond_init_2_0,
  4289. __pthread_cond_signal_2_0, __pthread_cond_wait_2_0,
  4290. __pthread_cond_timedwait_2_0): Use return 0 as defaction instead of 0.
  4291. 2004-03-11 Kaz Kojima <kkojima@rr.iij4u.or.jp>
  4292. * sysdeps/sh/tcb-offsets.sym: Add PID.
  4293. * sysdeps/unix/sysv/linux/sh/pt-vfork.S: Properly handle PID cache.
  4294. * sysdeps/unix/sysv/linux/sh/vfork.S: New file.
  4295. 2004-03-10 Ulrich Drepper <drepper@redhat.com>
  4296. * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S: No need to
  4297. include <sysdep-cancel.h>, vfork is no cancellation point.
  4298. * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S: Likewise.
  4299. * sysdeps/unix/sysv/linux/powerpc/powerpc64/pt-vfork.S: Likewise.
  4300. * sysdeps/unix/sysv/linux/powerpc/powerpc32/pt-vfork.S: Likewise.
  4301. 2004-03-10 Jakub Jelinek <jakub@redhat.com>
  4302. * sysdeps/unix/sysv/linux/s390/s390-32/vfork.S (__vfork): Add
  4303. libc_hidden_def.
  4304. * sysdeps/unix/sysv/linux/s390/s390-64/vfork.S (__vfork): Likewise.
  4305. * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S (__vfork):
  4306. Likewise.
  4307. * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork):
  4308. Likewise.
  4309. * sysdeps/unix/sysv/linux/sparc/sparc32/vfork.S (__vfork): Likewise.
  4310. * sysdeps/unix/sysv/linux/sparc/sparc64/vfork.S (__vfork): Likewise.
  4311. * sysdeps/unix/sysv/linux/ia64/pt-vfork.S: Include tcb-offsets.h.
  4312. * sysdeps/unix/sysv/linux/ia64/vfork.S (__vfork): Use DO_CALL instead
  4313. of DO_CALL_VIA_BREAK. Work around a gas problem.
  4314. * sysdeps/unix/sysv/linux/powerpc/pt-vfork.S: Remove.
  4315. * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S: New file.
  4316. * sysdeps/unix/sysv/linux/powerpc/powerpc32/pt-vfork.S: New file.
  4317. * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S: New file.
  4318. * sysdeps/unix/sysv/linux/powerpc/powerpc64/pt-vfork.S: New file.
  4319. * sysdeps/powerpc/tcb-offsets.sym: Add PID.
  4320. * sysdeps/unix/sysv/linux/ia64/pt-vfork.S (__vfork): Don't use
  4321. a local register for saving old PID. Negate PID in parent upon exit.
  4322. * sysdeps/unix/sysv/linux/s390/s390-32/pt-vfork.S: Include
  4323. tcb-offsets.h.
  4324. (__vfork): Negate PID if non-zero and set to INT_MIN if zero
  4325. before syscall, set to the old value in the parent afterwards.
  4326. * sysdeps/unix/sysv/linux/s390/s390-32/vfork.S: New file.
  4327. * sysdeps/unix/sysv/linux/s390/s390-64/pt-vfork.S: Include
  4328. tcb-offsets.h.
  4329. (__vfork): Negate PID if non-zero and set to INT_MIN if zero
  4330. before syscall, set to the old value in the parent afterwards.
  4331. * sysdeps/unix/sysv/linux/s390/s390-64/vfork.S: New file.
  4332. * sysdeps/s390/tcb-offsets.sym: Add PID.
  4333. * sysdeps/unix/sysv/linux/sparc/pt-vfork.S: Remove.
  4334. * sysdeps/unix/sysv/linux/sparc/sparc32/vfork.S: New file.
  4335. * sysdeps/unix/sysv/linux/sparc/sparc32/pt-vfork.S: New file.
  4336. * sysdeps/unix/sysv/linux/sparc/sparc64/vfork.S: New file.
  4337. * sysdeps/unix/sysv/linux/sparc/sparc64/pt-vfork.S: New file.
  4338. * sysdeps/sparc/tcb-offsets.sym: Add PID.
  4339. 2004-03-10 Andreas Schwab <schwab@suse.de>
  4340. * sysdeps/ia64/tcb-offsets.sym: Add PID.
  4341. * sysdeps/unix/sysv/linux/ia64/vfork.S: New file.
  4342. * sysdeps/unix/sysv/linux/ia64/pt-vfork.S: Properly handle PID cache.
  4343. 2004-03-09 Jakub Jelinek <jakub@redhat.com>
  4344. * tst-cancel20.c (do_one_test): Clear in_sh_body first.
  4345. * tst-cancel21.c (do_one_test): Likewise.
  4346. Reported by Gordon Jin <gordon.jin@intel.com>.
  4347. 2004-02-09 Jakub Jelinek <jakub@redhat.com>
  4348. * sysdeps/unix/sysv/linux/i386/vfork.S (SAVE_PID): Negate PID
  4349. if non-zero and set to INT_MIN if zero.
  4350. * sysdeps/unix/sysv/linux/x86_64/vfork.S (SAVE_PID): Likewise.
  4351. * sysdeps/unix/sysv/linux/i386/pt-vfork.S: Include tcb-offsets.h.
  4352. (SAVE_PID, RESTORE_PID): Define.
  4353. (__vfork): Use it.
  4354. * sysdeps/unix/sysv/linux/x86_64/pt-vfork.S: Include tcb-offsets.h.
  4355. Use relative path to avoid including NPTL i386/vfork.S.
  4356. (SAVE_PID, RESTORE_PID): Define.
  4357. * sysdeps/unix/sysv/linux/raise.c: Include limits.h.
  4358. (raise): Handle THREAD_SELF->pid INT_MIN the same as 0.
  4359. * Makefile (tests): Add tst-vfork1, tst-vfork2, tst-vfork1x and
  4360. tst-vfork2x.
  4361. (tests-reverse): Add tst-vfork1x and tst-vfork2x.
  4362. * tst-vfork1.c: New test.
  4363. * tst-vfork2.c: New test.
  4364. * tst-vfork1x.c: New test.
  4365. * tst-vfork2x.c: New test.
  4366. 2004-03-08 Ulrich Drepper <drepper@redhat.com>
  4367. * sysdeps/i386/tcb-offsets.sym: Add PID.
  4368. * sysdeps/x86_64/tcb-offsets.sym: Likewise.
  4369. * sysdeps/unix/sysv/linux/i386/vfork.S: New file.
  4370. * sysdeps/unix/sysv/linux/x86_64/vfork.S: New file.
  4371. 2004-03-08 Steven Munroe <sjmunroe@us.ibm.com>
  4372. * sysdeps/unix/sysv/linux/powerpc/Versions: Remove leading tabs.
  4373. 2004-03-08 H.J. Lu <hongjiu.lu@intel.com>
  4374. * sysdeps/s390/tls.h (INIT_SYSINFO): _dl_sysinfo is now in
  4375. _rtld_global_ro.
  4376. 2004-03-07 Ulrich Drepper <drepper@redhat.com>
  4377. * sysdeps/ia64/tls.h (INIT_SYSINFO): _dl_sysinfo is now in
  4378. _rtld_global_ro.
  4379. * tst-once4.c: Remove unnecessary macro definition.
  4380. * tst-mutex7.c (do_test): Limit thread stack size.
  4381. * tst-once2.c (do_test): Likewise.
  4382. * tst-tls3.c (do_test): Likewise.
  4383. * tst-tls1.c (do_test): Likewise.
  4384. * tst-signal3.c (do_test): Likewise.
  4385. * tst-kill6.c (do_test): Likewise.
  4386. * tst-key4.c (do_test): Likewise.
  4387. * tst-join4.c (do_test): Likewise.
  4388. * tst-fork1.c (do_test): Likewise.
  4389. * tst-context1.c (do_test): Likewise.
  4390. * tst-cond2.c (do_test): Likewise.
  4391. * tst-cond10.c (do_test): Likewise.
  4392. * tst-clock2.c (do_test): Likewise.
  4393. * tst-cancel10.c (do_test): Likewise.
  4394. * tst-basic2.c (do_test): Likewise.
  4395. * tst-barrier4.c (do_test): Likewise.
  4396. 2004-03-05 Ulrich Drepper <drepper@redhat.com>
  4397. * sysdeps/i386/tls.h: Use GLRO instead of GL where appropriate.
  4398. 2004-03-01 Ulrich Drepper <drepper@redhat.com>
  4399. * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S
  4400. (__pthread_cond_timedwait): Optimize wakeup test.
  4401. * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S
  4402. (__pthread_cond_wait): Likewise.
  4403. * sysdeps/pthread/pthread_cond_wait.c (__pthread_cond_wait): Likewise.
  4404. * sysdeps/pthread/pthread_cond_timedwait.c (__pthread_cond_timedwait):
  4405. Likewise.
  4406. 2004-02-29 Ulrich Drepper <drepper@redhat.com>
  4407. * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S
  4408. (__lll_mutex_lock_wait): Optimize a bit more. Just one copy of
  4409. the atomic instruction needed.
  4410. * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S
  4411. (__lll_mutex_lock_wait): Likewise.
  4412. 2004-02-28 Ulrich Drepper <drepper@redhat.com>
  4413. * Makefile (tests): Add tst-cond14 and tst-cond15.
  4414. * tst-cond14.c: New file.
  4415. * tst-cond15.c: New file.
  4416. 2004-02-27 Ulrich Drepper <drepper@redhat.com>
  4417. * sysdeps/pthread/createthread.c (create_thread): Remove use of
  4418. CLONE_STOPPED. We cannot use SIGCONT which means CLONE_STOPPED
  4419. needs to be implemented differently to be useful.
  4420. 2004-02-26 Ulrich Drepper <drepper@redhat.com>
  4421. * pthread_attr_setschedparam.c: Don't test priority against limits
  4422. here. Set ATTR_FLAG_SCHED_SET flag.
  4423. * pthread_attr_setschedpolicy.c: Set ATTR_FLAG_POLICY_SET flag.
  4424. * pthread_create.c (__pthread_create_2_1): Copy scheduling attributes
  4425. from parent thread to child. If attribute is used and scheduling
  4426. parameters are not inherited, copy parameters from attribute or
  4427. compute them. Check priority value.
  4428. * pthread_getschedparam.c: If the parameters aren't known yet get
  4429. them from the kernel.
  4430. * pthread_setschedparam.c: Set ATTR_FLAG_SCHED_SET and
  4431. ATTR_FLAG_POLICY_SET flag for thread.
  4432. * sysdeps/unix/sysv/linux/internaltypes.h: Define ATTR_FLAG_SCHED_SET
  4433. and ATTR_FLAG_POLICY_SET.
  4434. * sysdeps/pthread/createthread.c: Use tgkill if possible.
  4435. * pthread_attr_getstackaddr.c (__pthread_attr_getstackaddr): Don't
  4436. fail if stack address hasn't been set. Just return 0.
  4437. 2004-02-25 Ulrich Drepper <drepper@redhat.com>
  4438. * Makefile (tests-nolibpthread): Add tst-unload. Don't link with
  4439. libpthread for the files in this list.
  4440. (CFLAGS-tst-unload): Removed.
  4441. * tst-unload.c (do_test): Don't use complete path for
  4442. LIBPHREAD_SO.
  4443. * Makefile: Define sonames for tst-tls5mod, tst-_res1mod1, and
  4444. tst-_res1mod2.
  4445. 2004-02-22 Ulrich Drepper <drepper@redhat.com>
  4446. * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S
  4447. (__lll_mutex_lock_wait): Rewrite so that only one locked memory
  4448. operation per round is needed.
  4449. * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S
  4450. (__lll_mutex_lock_wait): Likewise.
  4451. 2004-02-20 Ulrich Drepper <drepper@redhat.com>
  4452. * tst-cancel9.c (cleanup): Don't print to stderr.
  4453. 2004-02-20 Kaz Kojima <kkojima@rr.iij4u.or.jp>
  4454. * sysdeps/sh/jmpbuf-unwind.h (_JMPBUF_UNWINDS_ADJ): Fix variable name.
  4455. 2004-02-20 Jakub Jelinek <jakub@redhat.com>
  4456. * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h
  4457. (__syscall_error_handler2): Call CDISABLE.
  4458. * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h
  4459. (__syscall_error_handler2): Call CDISABLE.
  4460. * sysdeps/pthread/pthread_barrier_wait.c (pthread_barrier_wait):
  4461. Release lock before the loop, don't reacquire it.
  4462. * sysdeps/unix/sysv/linux/ia64/dl-sysdep.h (DL_ARGV_NOT_RELRO): Define.
  4463. 2004-02-19 Andreas Schwab <schwab@suse.de>
  4464. * sysdeps/pthread/pthread_barrier_wait.c (pthread_barrier_wait):
  4465. Fix last change.
  4466. 2004-02-18 Ulrich Drepper <drepper@redhat.com>
  4467. * sysdeps/unix/sysv/linux/i386/i486/pthread_barrier_wait.S
  4468. (pthread_barrier_wait): After wakeup, release lock only when the
  4469. last thread stopped using the barrier object.
  4470. * sysdeps/unix/sysv/linux/x86_64/pthread_barrier_wait.S
  4471. (pthread_barrier_wait): Likewise.
  4472. * sysdeps/pthread/pthread_barrier_wait.c (pthread_barrier_wait):
  4473. Likewise.
  4474. * Makefile (tests): Add tst-barrier4.
  4475. * tst-barrier4.c: New file.
  4476. * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S
  4477. (__pthread_cond_timedwait): Perform timeout test while holding
  4478. internal lock to prevent wakeup race.
  4479. Patch by Dinakar Guniguntala <dgunigun@in.ibm.com>.
  4480. * sysdeps/pthread/pthread_cond_timedwait.c
  4481. (__pthread_cond_timedwait): Likewise.
  4482. * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S
  4483. (__pthread_cond_timedwait): Likewise.
  4484. 2004-02-18 Jakub Jelinek <jakub@redhat.com>
  4485. * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_unlock.S
  4486. (__pthread_rwlock_unlock): Access WRITER as 32-bit value.
  4487. * Makefile (tests): Add tst-rwlock13.
  4488. * tst-rwlock13.c: New test.
  4489. 2004-02-16 Ulrich Drepper <drepper@redhat.com>
  4490. * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S
  4491. (__condvar_tw_cleanup): Little optimization.
  4492. Patch by Dinakar Guniguntala <dgunigun@in.ibm.com>.
  4493. 2004-02-16 Steven Munroe <sjmunroe@us.ibm.com>
  4494. * sysdeps/unix/sysv/linux/powerpc/pt-longjmp.c: Replace libc with
  4495. libpthread as "lib" parameter to SHLIB_COMPAT.
  4496. (__novmx_siglongjmp): Fix typo in function name.
  4497. (__novmx_longjmp): Fix typo in function name.
  4498. 2004-02-13 Ulrich Drepper <drepper@redhat.com>
  4499. * sysdeps/pthread/pthread_cond_wait.c (__pthread_cond_wait): Add a
  4500. __builtin_expect.
  4501. * sysdeps/generic/pt-longjmp.c: Moved to...
  4502. * sysdeps/pthread/pt-longjmp.c: ...here. New file.
  4503. 2004-01-29 Steven Munroe <sjmunroe@us.ibm.com>
  4504. * Makefile (libpthread-routines): Add pt-cleanup.
  4505. * pt-longjmp.c: Removed.
  4506. * pt-cleanup.c: Copied __pthread_cleanup_upto to here. New file.
  4507. * sysdeps/generic/pt-longjmp.c: Copied longjmp to here. New file.
  4508. * sysdeps/unix/sysv/linux/powerpc/Versions: New file.
  4509. Version longjmp, siglongjmp for GLIBC_2.3.4.
  4510. * sysdeps/unix/sysv/linux/powerpc/pt-longjmp.c: New File.
  4511. 2004-02-13 Ulrich Drepper <drepper@redhat.com>
  4512. * sysdeps/pthread/pthread_cond_timedwait.c
  4513. (__pthread_cond_timedwait): Optimize. Drop internal lock earlier.
  4514. Reuse code. Add __builtin_expects.
  4515. * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S
  4516. (__pthread_cond_timedwait): Get internal lock in case timeout has
  4517. passed before the futex syscall.
  4518. * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: Likewise.
  4519. 2004-01-20 Ulrich Drepper <drepper@redhat.com>
  4520. * allocatestack.c: Pretty printing.
  4521. * sysdeps/pthread/createthread.c (create_thread): Don't add
  4522. CLONE_DETACHED bit if it is not necessary.
  4523. 2004-01-16 Ulrich Drepper <drepper@redhat.com>
  4524. * pthread_getattr_np.c: Include ldsodefs.h.
  4525. 2004-01-16 Richard Henderson <rth@redhat.com>
  4526. * allocatestack.c: Don't declare __libc_stack_end.
  4527. * init.c (__pthread_initialize_minimal_internal): Likewise.
  4528. * pthread_getattr_np.c (pthread_getattr_np): Likewise.
  4529. 2004-01-15 Richard Henderson <rth@redhat.com>
  4530. * sysdeps/alpha/tls.h (tcbhead_t): Add private.
  4531. (TLS_INIT_TCB_SIZE, TLS_INIT_TCB_ALIGN, TLS_TCB_SIZE,
  4532. TLS_PRE_TCB_SIZE, TLS_TCB_ALIGN, INSTALL_DTV, INSTALL_NEW_DTV,
  4533. GET_DTV, THREAD_DTV, THREAD_SELF, DB_THREAD_SELF): Match ia64.
  4534. (TLS_TCB_OFFSET, THREAD_ID, NO_TLS_OFFSET): Remove.
  4535. (THREAD_GETMEM, THREAD_GETMEM_NC): Simplify.
  4536. (THREAD_SETMEM, THREAD_SETMEM_NC): Likewise.
  4537. * sysdeps/unix/sysv/linux/alpha/createthread.c (TLS_VALUE): Match ia64.
  4538. 2004-01-14 Ulrich Drepper <drepper@redhat.com>
  4539. * init.c (pthread_functions): Make array const.
  4540. 2004-01-13 Ulrich Drepper <drepper@redhat.com>
  4541. * allocatestack.c (__make_stacks_executable): Change interface.
  4542. Check parameters. Pass parameter on to libc counterpart.
  4543. * pthreadP.h: Change declaration.
  4544. 2004-01-13 Richard Henderson <rth@redhat.com>
  4545. * pthread_attr_setstack.c (__old_pthread_attr_setstack): Use
  4546. prototype form.
  4547. * pthread_attr_setstacksize.c (__old_pthread_attr_setstacksize):
  4548. Likewise.
  4549. * sysdeps/alpha/Makefile: New file.
  4550. * sysdeps/alpha/tcb-offsets.sym: New file.
  4551. * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h (SINGLE_THREAD_P):
  4552. Use MULTIPLE_THREADS_OFFSET to implement !libpthread !libc version.
  4553. * sysdeps/unix/sysv/linux/alpha/lowlevellock.h: Rewrite based
  4554. on powerpc version.
  4555. 2004-01-08 Jakub Jelinek <jakub@redhat.com>
  4556. * Makefile (tests): Add tst-backtrace1.
  4557. * tst-backtrace1.c: New test.
  4558. 2003-12-11 Ulrich Weigand <uweigand@de.ibm.com>
  4559. * sysdeps/alpha/tls.h (DB_THREAD_SELF): Pass bit size of thread
  4560. register as second parameter to the REGISTER macro.
  4561. * sysdeps/ia64/tls.h (DB_THREAD_SELF): Likewise.
  4562. * sysdeps/powerpc/tls.h (DB_THREAD_SELF): Likewise.
  4563. * sysdeps/sh/tls.h (DB_THREAD_SELF): Likewise.
  4564. * sysdeps/sparc/tls.h (DB_THREAD_SELF): Likewise.
  4565. * sysdeps/s390/tls.h (DB_THREAD_SELF): Pass __WORDSIZE as bit size
  4566. of thread register as second parameter to REGISTER macro in 64 case.
  4567. 2004-01-03 Ulrich Drepper <drepper@redhat.com>
  4568. * sysdeps/unix/sysv/linux/Makefile (CFLAGS-getpid.c): Removed.
  4569. (CFLAGS-getpid.o): Defined.
  4570. (CFLAGS-getpid.os): Defined.
  4571. 2003-12-31 Ulrich Drepper <drepper@redhat.com>
  4572. * pthread_getattr_np.c (pthread_getattr_np): Make sure stack info
  4573. returned for main thread does not overlap with any other VMA.
  4574. Patch by Jakub Jelinek.
  4575. 2003-12-29 Jakub Jelinek <jakub@redhat.com>
  4576. * tst-raise1.c: Include stdio.h.
  4577. 2003-12-23 Jakub Jelinek <jakub@redhat.com>
  4578. * sysdeps/unix/sysv/linux/raise.c (raise): Protect pid = selftid
  4579. setting with __ASSUME_TGKILL || defined __NR_tgkill.
  4580. If pid is 0, set it to selftid.
  4581. * sysdeps/unix/sysv/linux/getpid.c (really_getpid): Make inline.
  4582. Don't set self->pid but self->tid. If self->pid == 0 and self->tid
  4583. != 0, return self->tid without doing a syscall.
  4584. * descr.h (struct pthread): Move pid field after tid.
  4585. * Makefile (tests): Add tst-raise1.
  4586. * tst-raise1.c: New file.
  4587. 2003-12-23 Roland McGrath <roland@redhat.com>
  4588. * tst-oddstacklimit.c: New file.
  4589. * Makefile (tests): Add it.
  4590. (tst-oddstacklimit-ENV): New variable.
  4591. * init.c (__pthread_initialize_minimal_internal): Round stack rlimit
  4592. value up to page size for __default_stacksize.
  4593. 2003-12-21 Ulrich Drepper <drepper@redhat.com>
  4594. * Makefile (tests): Add tst-eintr5.
  4595. * tst-eintr5.c: New file.
  4596. * eintr.c (eintr_source): Prevent sending signal to self.
  4597. * tst-eintr2.c (tf1): Improve error message.
  4598. 2003-12-20 Ulrich Drepper <drepper@redhat.com>
  4599. * sysdeps/unix/sysv/linux/Makefile (CFLAGS-getpid.c): Define.
  4600. * sysdeps/unix/sysv/linux/getpid.c: New file.
  4601. * pthread_cancel.c: Add comment explaining use of PID field.
  4602. * sysdeps/unix/sysv/linux/pthread_kill.c: Likewise.
  4603. * pthread_getattr_np.c: Use abs() when comparing PID and TID fields.
  4604. * sysdeps/unix/sysv/linux/fork.c: Negate PID field of parent
  4605. temporarily to signal the field must not be relied on and updated
  4606. by getpid().
  4607. * sysdeps/unix/sysv/linux/pt-raise.c: Handle case where PID is
  4608. temporarily negative.
  4609. * sysdeps/unix/sysv/linux/raise.c: Likewise.
  4610. 2003-12-19 Ulrich Drepper <drepper@redhat.com>
  4611. * eintr.c (setup_eintr): Add new parameter. Pass to thread function.
  4612. (eintr_source): If ARG != NULL, use pthread_kill.
  4613. * tst-eintr1.c: Adjust for this change.
  4614. * tst-eintr2.c: Likewise.
  4615. * Makefile (tests): Add tst-eintr3 and tst-eintr4.
  4616. * tst-eintr3.c: New file.
  4617. * tst-eintr4.c: New file.
  4618. 2003-12-19 Jakub Jelinek <jakub@redhat.com>
  4619. * libc-cancellation.c (__libc_enable_asynccancel): Don't cancel
  4620. if CANCELSTATE_BITMASK is set.
  4621. * sysdeps/pthread/librt-cancellation.c (__librt_enable_asynccancel):
  4622. Likewise.
  4623. * Makefile (tests): Add tst-cancel22 and tst-cancel23.
  4624. (tests-reverse): Add tst-cancel23.
  4625. * tst-cancel22.c: New test.
  4626. * tst-cancel23.c: New test.
  4627. 2003-12-18 Ulrich Drepper <drepper@redhat.com>
  4628. * tst-eintr1.c: Better error messages.
  4629. * Makefile (tests): Add tst-eintr2.
  4630. * tst-eintr2.c: New file.
  4631. 2003-12-18 Jakub Jelinek <jakub@redhat.com>
  4632. * Makefile (tests): Add tst-cancel21 and tst-cancelx21.
  4633. (CFLAGS-tst-cancelx21.c): Set.
  4634. * tst-cancel21.c: New test.
  4635. * tst-cancelx21.c: New test.
  4636. * unwind.c (FRAME_LEFT): Add adj argument. Subtract it from each
  4637. comparison operand.
  4638. (unwind_stop): Use _JMPBUF_CFA_UNWINDS_ADJ macro instead of
  4639. _JMPBUF_CFA_UNWINDS. Adjust FRAME_LEFT invocations.
  4640. * pt-longjmp.c: Include jmpbuf-unwind.h.
  4641. (__pthread_cleanup_upto): Use _JMPBUF_UNWINDS_ADJ macro instead of
  4642. _JMPBUF_UNWINDS. Adjust compared pointers.
  4643. * init.c (__pthread_initialize_minimal_internal): Initialize
  4644. pd->stackblock_size.
  4645. * sysdeps/pthread/jmpbuf-unwind.h: Removed.
  4646. * sysdeps/alpha/jmpbuf-unwind.h: New file.
  4647. * sysdeps/i386/jmpbuf-unwind.h: New file.
  4648. * sysdeps/powerpc/jmpbuf-unwind.h: New file.
  4649. * sysdeps/s390/jmpbuf-unwind.h: New file.
  4650. * sysdeps/sh/jmpbuf-unwind.h: New file.
  4651. * sysdeps/sparc/sparc32/jmpbuf-unwind.h: New file.
  4652. * sysdeps/x86_64/jmpbuf-unwind.h: New file.
  4653. * sysdeps/unix/sysv/linux/ia64/jmpbuf-unwind.h: Include stdint.h.
  4654. (_JMPBUF_CFA_UNWINDS): Remove.
  4655. (_JMPBUF_CFA_UNWINDS_ADJ, _JMPBUF_UNWINDS_ADJ): Define.
  4656. 2003-12-12 Jakub Jelinek <jakub@redhat.com>
  4657. * Makefile (tests): Add tst-cancel20 and tst-cancelx20.
  4658. (CFLAGS-tst-cancelx20.c): Set.
  4659. * tst-cancel20.c: New test.
  4660. * tst-cancelx20.c: New test.
  4661. 2003-12-17 Ulrich Drepper <drepper@redhat.com>
  4662. * init.c (__pthread_initialize_minimal_internal): Don't treat
  4663. architectures with separate register stack special here when
  4664. computing default stack size.
  4665. 2003-12-17 Roland McGrath <roland@redhat.com>
  4666. * Makefile (tst-cancelx7-ARGS): New variable.
  4667. Reportd by Greg Schafer <gschafer@zip.com.au>.
  4668. 2003-12-17 Jakub Jelinek <jakub@redhat.com>
  4669. * Makefile (tests): Add tst-stack3. Depend on $(objpfx)tst-stack3-mem.
  4670. (generated): Add tst-stack3.mtrace and tst-stack3-mem.
  4671. (tst-stack3-ENV): Set.
  4672. ($(objpfx)tst-stack3-mem): New.
  4673. * tst-stack3.c: New test.
  4674. 2003-12-10 David Mosberger <davidm@hpl.hp.com>
  4675. * sysdeps/unix/sysv/linux/ia64/pt-initfini.c (_init_EPILOG_BEGINS):
  4676. Add unwind directives. Drop unused .regstk directive.
  4677. (_fini_EPILOG_BEGINS): Add unwind directives.
  4678. 2003-12-11 Ulrich Drepper <drepper@redhat.com>
  4679. * sysdeps/unix/sysv/linux/i386/lowlevellock.h (lll_futex_wait):
  4680. Assume parameter is a pointer.
  4681. (lll_futex_wake): Likewise.
  4682. * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (lll_futex_wait):
  4683. Likewise.
  4684. (lll_futex_wake): Likewise.
  4685. Reported by Boris Hu.
  4686. * sysdeps/unix/sysv/linux/unregister-atfork.c
  4687. (__unregister_atfork): Pass pointer to refcntr to lll_futex_wait.
  4688. * sysdeps/unix/sysv/linux/sem_wait.c (__new_sem_wait): Simplify a bit.
  4689. 2003-12-10 Ulrich Drepper <drepper@redhat.com>
  4690. * sysdeps/pthread/bits/libc-lock.h (__rtld_lock_initialize): Define.
  4691. * sysdeps/unix/sysv/linux/fork.c (__libc_fork): Call
  4692. __rtld_lock_initialize for ld.so lock.
  4693. Patch in part by Adam Li <adam.li@intel.com>.
  4694. 2003-12-02 David Mosberger <davidm@hpl.hp.com>
  4695. * Makefile (link-libc-static): Remove -lgcc_eh---it's already mentioned
  4696. in $(gnulib). Also, remove stale comment.
  4697. 2003-11-12 David Mosberger <davidm@hpl.hp.com>
  4698. * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (PSEUDO): Take
  4699. advantage of new syscall stub and optimize accordingly.
  4700. * sysdeps/unix/sysv/linux/ia64/lowlevellock.h (__NR_futex): Rename
  4701. from SYS_futex, to match expectations of
  4702. sysdep.h:DO_INLINE_SYSCALL.
  4703. (lll_futex_clobbers): Remove.
  4704. (lll_futex_timed_wait): Rewrite in terms of DO_INLINE_SYSCALL.
  4705. (lll_futex_wake): Likewise.
  4706. (lll_futex_requeue): Likewise.
  4707. (__lll_mutex_trylock): Rewrite to a macro, so we can include this
  4708. file before DO_INLINE_SYSCALL is defined (proposed by Jakub
  4709. Jelinek).
  4710. (__lll_mutex_lock): Likewise.
  4711. (__lll_mutex_cond_lock): Likewise.
  4712. (__lll_mutex_timed_lock): Likewise.
  4713. (__lll_mutex_unlock): Likewise.
  4714. (__lll_mutex_unlock_force): Likewise.
  4715. * sysdeps/ia64/tls.h: Move declaration of __thread_self up so it
  4716. comes before the include of <sysdep.h>.
  4717. (THREAD_SELF_SYSINFO): New macro.
  4718. (THREAD_SYSINFO): Likewise.
  4719. (INIT_SYSINFO): New macro.
  4720. (TLS_INIT_TP): Call INIT_SYSINFO.
  4721. * sysdeps/ia64/tcb-offsets.sym: Add SYSINFO_OFFSET.
  4722. * sysdeps/pthread/createthread.c (create_thread): Use
  4723. THREAD_SELF_SYSINFO and THREAD_SYSINFO instead of open code.
  4724. * allocatestack.c (allocate_stack): Use THREAD_SYSINFO and
  4725. THREAD_SELF_SYSINFO instead of open code.
  4726. * sysdeps/i386/tls.h (THREAD_SELF_SYSINFO): New macro.
  4727. (THREAD_SYSINFO): Likewise.
  4728. * sysdeps/unix/sysv/linux/ia64/dl-sysdep.h: New file.
  4729. * sysdeps/unix/sysv/linux/ia64/pt-vfork.S: Work around gas problem.
  4730. 2003-12-06 Ulrich Drepper <drepper@redhat.com>
  4731. * sysdeps/unix/sysv/linux/ia64/pt-initfini.c: Use .init_array
  4732. instead of .init. Patch by David Mosberger.
  4733. 2003-11-30 Thorsten Kukuk <kukuk@suse.de>
  4734. * sysdeps/pthread/configure.in: Remove broken declaration in C
  4735. cleanup handling check.
  4736. 2003-11-30 Andreas Jaeger <aj@suse.de>
  4737. * Makefile (CFLAGS-pt-initfini.s): Add $(fno_unit_at_a_time).
  4738. * sysdeps/unix/sysv/linux/x86_64/Makefile (CFLAGS-pt-initfini.s):
  4739. Likewise.
  4740. 2003-11-27 Jakub Jelinek <jakub@redhat.com>
  4741. * sysdeps/unix/sysv/linux/internaltypes.h (ATTR_FLAG_OLDATTR): Define.
  4742. * pthread_attr_destroy.c: Include shlib-compat.h.
  4743. (__pthread_attr_destroy): Return immediately if ATTR_FLAG_OLDATTR
  4744. is set in iattr->flags.
  4745. * pthread_attr_init.c (__pthread_attr_init_2_0): Set ATTR_FLAG_OLDATTR.
  4746. 2003-11-21 Jakub Jelinek <jakub@redhat.com>
  4747. * Makefile (distribute): Add tst-cleanup4aux.c.
  4748. * tst-cond12.c (prepare): Add prototype. Move after test-skeleton.c
  4749. include.
  4750. 2003-11-21 Ulrich Drepper <drepper@redhat.com>
  4751. * tst-cond12.c (do_test): If USE_COND_SIGNAL is defined, use
  4752. pthread_cond_signal.
  4753. * sysdeps/pthread/pthread_cond_wait.c (__pthread_cond_wait): Don't
  4754. store mutex address if the current value is ~0l.
  4755. * sysdeps/pthread/pthread_cond_timedwait.c
  4756. (__pthread_cond_timedwait): Likewise.
  4757. * sysdeps/pthread/pthread_cond_broadcast.c
  4758. (__pthread_cond_broadcast): Don't use requeue for pshared
  4759. condvars.
  4760. * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S
  4761. (__pthread_cond_wait): Don't store mutex address if the current
  4762. value is ~0l.
  4763. * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S
  4764. (__pthread_cond_timedwait): Likewise.
  4765. * sysdeps/unix/sysv/linux/x86_64/pthread_cond_broadcast.S
  4766. (__pthread_cond_broadcast): Don't use requeue for pshared
  4767. condvars.
  4768. * pthread_cond_init.c (__pthread_cond_init): Initialize __mutex
  4769. element with ~0l for pshared condvars, with NULL otherwise.
  4770. * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S
  4771. (__pthread_cond_wait): Don't store mutex address if the current
  4772. value is ~0l.
  4773. * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S
  4774. (__pthread_cond_timedwait): Likewise.
  4775. * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_broadcast.S
  4776. (__pthread_cond_broadcast): Don't use requeue for pshared
  4777. condvars.
  4778. * Makefile: Add rules to build and run tst-cond12 and tst-cond13.
  4779. * tst-cond12.c: New file.
  4780. * tst-cond13.c: New file.
  4781. 2003-11-17 Ulrich Drepper <drepper@redhat.com>
  4782. * sysdeps/pthread/configure.in: Make missing forced unwind support
  4783. fatal.
  4784. 2003-11-11 Ulrich Drepper <drepper@redhat.com>
  4785. * pthreadP.h: Don't declare __pthread_unwind as weak inside libpthread.
  4786. 2003-11-06 Ulrich Drepper <drepper@redhat.com>
  4787. * Makefile: Add magic to clean up correctly.
  4788. 2003-11-05 Jakub Jelinek <jakub@redhat.com>
  4789. * unwind.c (FRAME_LEFT): Define.
  4790. (unwind_stop): Handle old style cleanups here.
  4791. (__pthread_unwind): Handle old style cleanups only if
  4792. !HAVE_FORCED_UNWIND.
  4793. * Makefile (tests): Add tst-cleanup4 and tst-cleanupx4.
  4794. (CFLAGS-tst-cleanupx4.c): Add -fexceptions.
  4795. ($(objpfx)tst-cleanup4): Depend on $(objpfx)tst-cleanup4aux.o.
  4796. ($(objpfx)tst-cleanupx4): Likewise.
  4797. * tst-cleanup4.c: New test.
  4798. * tst-cleanup4aux.c: New.
  4799. * tst-cleanupx4.c: New test.
  4800. 2003-11-04 Ulrich Drepper <drepper@redhat.com>
  4801. * sysdeps/pthread/bits/stdio-lock.h: Use lll_*lock instead of
  4802. lll_mutex_*lock macros to skip atomic operations on some archs.
  4803. 2003-11-03 Ulrich Drepper <drepper@redhat.com>
  4804. * sysdeps/pthread/tst-timer.c (main): Initialize
  4805. sigev2.sigev_value as well.
  4806. 2003-10-15 Roland McGrath <roland@redhat.com>
  4807. * sysdeps/pthread/configure.in: Barf if visibility attribute support
  4808. is missing.
  4809. * sysdeps/pthread/configure: Regenerated.
  4810. 2003-10-09 Kaz Kojima <kkojima@rr.iij4u.or.jp>
  4811. * sysdeps/unix/sysv/linux/sh/lowlevellock.h: Completely revamp the
  4812. locking macros. No distinction between normal and mutex locking
  4813. anymore.
  4814. * sysdeps/unix/sysv/linux/sh/lowlevellock.S: Rewrite mutex locking.
  4815. Merge bits from lowlevelmutex.S we still need.
  4816. * sysdeps/unix/sysv/linux/sh/libc-lowlevelmutex.S: Remove.
  4817. * sysdeps/unix/sysv/linux/sh/lowlevelmutex.S: Likewise.
  4818. * sysdeps/unix/sysv/linux/sh/not-cancel.h: New file.
  4819. * sysdeps/unix/sysv/linux/sh/pthread_barrier_wait.S: Adjust for
  4820. new mutex implementation.
  4821. * sysdeps/unix/sysv/linux/sh/pthread_cond_broadcast.S: Likewise.
  4822. * sysdeps/unix/sysv/linux/sh/pthread_cond_signal.S: Likewise.
  4823. * sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S: Likewise.
  4824. * sysdeps/unix/sysv/linux/sh/pthread_cond_wait.S: Likewise.
  4825. * sysdeps/unix/sysv/linux/sh/pthread_rwlock_rdlock.S: Likewise.
  4826. * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedrdlock.S: Likewise.
  4827. * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedwrlock.S: Likewise.
  4828. * sysdeps/unix/sysv/linux/sh/pthread_rwlock_unlock.S: Likewise.
  4829. * sysdeps/unix/sysv/linux/sh/pthread_rwlock_wrlock.S: Likewise.
  4830. * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h (PSEUDO): Also defined
  4831. symbol for entry point to avoid cancellation.
  4832. 2003-10-07 Jakub Jelinek <jakub@redhat.com>
  4833. * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: Backout 2003-10-02
  4834. changes.
  4835. (SAVE_OLDTYPE_0): Fix a typo.
  4836. 2003-10-03 Ulrich Drepper <drepper@redhat.com>
  4837. * sysdeps/unix/sysv/linux/i386/pthread_once.S (__pthread_once):
  4838. Check __sigsetjmp return value. Reported by Daniel Jacobowitz.
  4839. 2003-10-02 Ulrich Drepper <drepper@redhat.com>
  4840. * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (DOCARGS_1): Use
  4841. correct offset.
  4842. 2003-10-02 Jakub Jelinek <jakub@redhat.com>
  4843. * Makefile (tests): Add tst-cancel19.
  4844. * tst-cancel19.c: New test.
  4845. 2003-10-02 Ulrich Drepper <drepper@redhat.com>
  4846. * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: Fix saving and
  4847. restoring of the old cancellation type.
  4848. 2003-09-30 Jakub Jelinek <jakub@redhat.com>
  4849. * sysdeps/pthread/malloc-machine.h: Remove misleading comment.
  4850. 2003-09-27 Wolfram Gloger <wg@malloc.de>
  4851. * sysdeps/pthread/malloc-machine.h: New file
  4852. 2003-09-24 Roland McGrath <roland@redhat.com>
  4853. * allocatestack.c (__make_stacks_executable): Don't ignore return
  4854. value from _dl_make_stack_executable.
  4855. 2003-09-24 Ulrich Drepper <drepper@redhat.com>
  4856. * allocatestack.c (__make_stacks_executable): Also change
  4857. permission of the currently unused stacks.
  4858. * allocatestack.c (change_stack_perm): Split out from
  4859. __make_stacks_executable.
  4860. (allocate_stack): If the required permission changed between the time
  4861. we started preparing the stack and queueing it, change the permission.
  4862. (__make_stacks_executable): Call change_stack_perm.
  4863. * Makefile: Build tst-execstack-mod locally.
  4864. * tst-execstack-mod.c: New file.
  4865. 2003-09-23 Jakub Jelinek <jakub@redhat.com>
  4866. * Makefile (tests): Only add tst-execstack if have-z-execstack is yes.
  4867. 2003-09-23 Roland McGrath <roland@redhat.com>
  4868. * tst-execstack.c: New file.
  4869. * Makefile (tests): Add it.
  4870. ($(objpfx)tst-execstack, $(objpfx)tst-execstack.out): New targets.
  4871. (LDFLAGS-tst-execstack): New variable.
  4872. * allocatestack.c (allocate_stack): Use GL(dl_stack_flags) to decide
  4873. whether to use PROT_EXEC for stack mmap.
  4874. (__make_stacks_executable): New function.
  4875. * pthreadP.h: Declare it.
  4876. * init.c (__pthread_initialize_minimal_internal): Set
  4877. GL(dl_make_stack_executable_hook) to that.
  4878. 2003-09-22 Ulrich Drepper <drepper@redhat.com>
  4879. * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Adjust for latest
  4880. recommendation from AMD re avoidance of lock prefix.
  4881. 2003-09-22 Jakub Jelinek <jakub@redhat.com>
  4882. * sysdeps/unix/sysv/linux/lowlevellock.c (__lll_timedlock_wait): Use
  4883. lll_futex_timed_wait instead of lll_futex_wait.
  4884. * sysdeps/unix/sysv/linux/s390/lowlevellock.c: Removed.
  4885. * sysdeps/unix/sysv/linux/s390/lowlevelmutex.c: Removed.
  4886. * sysdeps/unix/sysv/linux/s390/libc-lowlevellock.c: Removed.
  4887. * sysdeps/unix/sysv/linux/s390/libc-lowlevelmutex.c: Removed.
  4888. * sysdeps/unix/sysv/linux/s390/sem_trywait.c: Removed.
  4889. * sysdeps/unix/sysv/linux/s390/sem_wait.c: Removed.
  4890. * sysdeps/unix/sysv/linux/s390/sem_post.c: Removed.
  4891. * sysdeps/unix/sysv/linux/s390/sem_timedwait.c: Removed.
  4892. * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Include atomic.h.
  4893. Completely revamp the locking macros. No distinction between
  4894. normal and mutex locking anymore.
  4895. * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Likewise.
  4896. * sysdeps/unix/sysv/linux/ia64/lowlevellock.h (__lll_lock_wait,
  4897. __lll_lock_timedwait): Fix prototypes.
  4898. * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h (__lll_lock_wait,
  4899. __lll_lock_timedwait): Likewise.
  4900. (lll_mutex_lock, lll_mutex_cond_lock): Use _val instead of _bool
  4901. macros, add __builtin_expect.
  4902. (lll_mutex_timedlock): Likewise. Fix return value.
  4903. * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevelmutex.S: Removed.
  4904. * sysdeps/unix/sysv/linux/i386/i586/libc-lowlevelmutex.S: Removed.
  4905. * sysdeps/unix/sysv/linux/i386/i586/lowlevelmutex.S: Removed.
  4906. * sysdeps/unix/sysv/linux/i386/i686/libc-lowlevelmutex.S: Removed.
  4907. * sysdeps/unix/sysv/linux/i386/i686/lowlevelmutex.S: Removed.
  4908. * sysdeps/unix/sysv/linux/x86_64/libc-lowlevelmutex.S: Removed.
  4909. * sysdeps/unix/sysv/linux/lowlevelmutex.c: Removed.
  4910. * sysdeps/unix/sysv/linux/libc-lowlevelmutex.c: Removed.
  4911. 2003-09-22 Ulrich Drepper <drepper@redhat.com>
  4912. * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S
  4913. (__lll_mutex_lock_wait): Minor optimization to avoid one atomic
  4914. operation if possible.
  4915. * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Don't play tricks
  4916. like jumping over the lock prefix.
  4917. 2003-09-21 Ulrich Drepper <drepper@redhat.com>
  4918. * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Completely revamp the
  4919. locking macros. No distinction between normal and mutex locking
  4920. anymore.
  4921. * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
  4922. * sysdeps/unix/sysv/linux/ia64/lowlevellock.h: Likewise.
  4923. * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Likewise.
  4924. * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S: Rewrite mutex
  4925. locking. Merge bits from lowlevelmutex.S we still need.
  4926. * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
  4927. * sysdeps/unix/sysv/linux/lowlevellock.c: Likewise.
  4928. * sysdeps/unix/sysv/linux/i386/i486/lowlevelmutex.S: Removed.
  4929. * sysdeps/unix/sysv/linux/x86_64/lowlevelmutex.S: Removed.
  4930. * Makefile (routines): Remove libc-lowlevelmutex.
  4931. (libpthread-rountines): Remove lowlevelmutex.
  4932. * sysdeps/unix/sysv/linux/i386/i486/pthread_barrier_wait.S: Adjust
  4933. for new mutex implementation.
  4934. * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_broadcast.S: Likewise.
  4935. * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: Likewise.
  4936. * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Likewise.
  4937. * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_rdlock.S: Likewise.
  4938. * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S:
  4939. Likewise.
  4940. * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S:
  4941. Likewise.
  4942. * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_unlock.S: Likewise.
  4943. * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_wrlock.S: Likewise.
  4944. * sysdeps/unix/sysv/linux/x86_64/pthread_barrier_wait.S: Likewise
  4945. * sysdeps/unix/sysv/linux/x86_64/pthread_cond_broadcast.S: Likewise.
  4946. * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: Likewise.
  4947. * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: Likewise.
  4948. * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_rdlock.S: Likewise.
  4949. * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedrdlock.S:
  4950. Likewise.
  4951. * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedwrlock.S:
  4952. Likewise.
  4953. * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_unlock.S: Likewise.
  4954. * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_wrlock.S: Likewise.
  4955. * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S: Likewise.
  4956. Don't use requeue.
  4957. * sysdeps/unix/sysv/linux/x86_64/pthread_cond_signal.S: Likewise.
  4958. * sysdeps/pthread/pthread_cond_signal.c: Don't use requeue.
  4959. 2003-09-20 Ulrich Drepper <drepper@redhat.com>
  4960. * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Don't match memory
  4961. in parameters of asm with output parameters.
  4962. * pthread_mutex_unlock.c (__pthread_mutex_unlock_usercnt): Change
  4963. type of DECR parameter to int.
  4964. * pthreadP.h: Adjust prototype of __pthread_mutex_unlock_usercnt.
  4965. 2003-09-18 Jakub Jelinek <jakub@redhat.com>
  4966. * tst-attr3.c (tf, do_test): Print stack start/end/size and
  4967. guardsize for each thread.
  4968. 2003-09-17 Jakub Jelinek <jakub@redhat.com>
  4969. * sysdeps/pthread/pthread.h (pthread_getattr_np): Clarify usage.
  4970. * sysdeps/unix/sysv/linux/pthread_attr_setaffinity.c
  4971. (pthread_attr_setaffinity_np): Handle cpuset == NULL.
  4972. * sysdeps/unix/sysv/linux/pthread_attr_getaffinity.c
  4973. (pthread_attr_getaffinity_np): Don't segfault if iattr->cpuset is
  4974. NULL.
  4975. * pthread_getattr_np.c: Set cpuset using pthread_getaffinity_np.
  4976. * pthreadP.h (pthread_getaffinity_np): Add hidden_proto.
  4977. * sysdeps/unix/sysv/linux/pthread_getaffinity.c
  4978. (pthread_getaffinity_np): Add hidden_def.
  4979. * Makefile (tests): Add tst-attr3.
  4980. * tst-attr3.c: New test.
  4981. * sysdeps/i386/Makefile (CFLAGS-tst-align.c): Remove.
  4982. 2003-09-15 Jakub Jelinek <jakub@redhat.com>
  4983. * sysdeps/i386/Makefile (CFLAGS-pthread_create.c,
  4984. CFLAGS-tst-align.c): Add -mpreferred-stack-boundary=4.
  4985. 2003-09-17 Jakub Jelinek <jakub@redhat.com>
  4986. * Makefile (CFLAGS-tst-align.c): Add $(stack-align-test-flags).
  4987. * tst-align.c: Include tst-stack-align.h.
  4988. (tf, do_test): Use TEST_STACK_ALIGN macro.
  4989. 2003-09-17 Ulrich Drepper <drepper@redhat.com>
  4990. * pthread_attr_init.c (__pthread_attr_init_2_0): Remove unused
  4991. variable.
  4992. 2003-09-16 Ulrich Drepper <drepper@redhat.com>
  4993. * pthread_getattr_np.c (pthread_getattr_np): Correctly fill in the
  4994. stack-related values for the initial thread.
  4995. 2003-09-15 Jakub Jelinek <jakub@redhat.com>
  4996. * Makefile (CFLAGS-pthread_once.c): Add $(uses-callbacks).
  4997. 2003-09-11 Ulrich Drepper <drepper@redhat.com>
  4998. * pthread_mutex_lock.c: Minor code rearrangements.
  4999. 2003-09-05 Roland McGrath <roland@redhat.com>
  5000. * pthread_create.c (__pthread_pthread_sizeof_descr): Removed.
  5001. Instead, include ../nptl_db/db_info.c to do its magic.
  5002. * pthread_key_create.c (__pthread_pthread_keys_max): Removed.
  5003. (__pthread_pthread_key_2ndlevel_size): Likewise.
  5004. * sysdeps/alpha/tls.h (DB_THREAD_SELF): New macro.
  5005. * sysdeps/i386/tls.h (DB_THREAD_SELF): New macro.
  5006. * sysdeps/ia64/tls.h (DB_THREAD_SELF): New macro.
  5007. * sysdeps/powerpc/tls.h (DB_THREAD_SELF): New macro.
  5008. * sysdeps/s390/tls.h (DB_THREAD_SELF): New macro.
  5009. * sysdeps/sh/tls.h (DB_THREAD_SELF): New macro.
  5010. * sysdeps/sparc/tls.h (DB_THREAD_SELF): New macro.
  5011. * sysdeps/x86_64/tls.h (DB_THREAD_SELF): New macro.
  5012. * sysdeps/alpha/td_ta_map_lwp2thr.c: File removed.
  5013. * sysdeps/generic/td_ta_map_lwp2thr.c: File removed.
  5014. * sysdeps/i386/td_ta_map_lwp2thr.c: File removed.
  5015. * sysdeps/ia64/td_ta_map_lwp2thr.c: File removed.
  5016. * sysdeps/powerpc/td_ta_map_lwp2thr.c: File removed.
  5017. * sysdeps/s390/td_ta_map_lwp2thr.c: File removed.
  5018. * sysdeps/sh/td_ta_map_lwp2thr.c: File removed.
  5019. * sysdeps/sparc/td_ta_map_lwp2thr.c: File removed.
  5020. * sysdeps/x86_64/td_ta_map_lwp2thr.c: File removed.
  5021. 2003-09-08 Ulrich Drepper <drepper@redhat.com>
  5022. * sysdeps/unix/sysv/linux/x86_64/bits/pthreadtypes.h: Change type
  5023. of pthread_t to be compatible with LT.
  5024. * sysdeps/unix/sysv/linux/sparc/bits/pthreadtypes.h: Likewise.
  5025. * sysdeps/unix/sysv/linux/sh/bits/pthreadtypes.h: Likewise.
  5026. * sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h: Likewise.
  5027. * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: Likewise.
  5028. * sysdeps/unix/sysv/linux/alpha/bits/pthreadtypes.h: Likewise.
  5029. * sysdeps/unix/sysv/linux/ia64/bits/pthreadtypes.h: Likewise.
  5030. * sysdeps/unix/sysv/linux/i386/bits/pthreadtypes.h: Likewise.
  5031. 2003-09-04 Ulrich Drepper <drepper@redhat.com>
  5032. * sysdeps/unix/sysv/linux/i386/not-cancel.h (fcntl_not_cancel): Define.
  5033. 2003-09-04 Jakub Jelinek <jakub@redhat.com>
  5034. * unwind-forcedunwind.c: Move to...
  5035. * sysdeps/pthread/unwind-forcedunwind.c: ...here.
  5036. (pthread_cancel_init): Use ARCH_CANCEL_INIT if defined.
  5037. * sysdeps/pthread/jmpbuf-unwind.h: New file.
  5038. * sysdeps/unix/sysv/linux/ia64/unwind-forcedunwind.c: New file.
  5039. * sysdeps/unix/sysv/linux/ia64/jmpbuf-unwind.h: New file.
  5040. * unwind.c: Include jmpbuf-unwind.h.
  5041. (unwind_stop): Use _JMPBUF_CFA_UNWINDS macro.
  5042. 2003-09-02 Jakub Jelinek <jakub@redhat.com>
  5043. * sysdeps/unix/sysv/linux/ia64/bits/local_lim.h: New file.
  5044. * sysdeps/unix/sysv/linux/ia64/Versions (libpthread): Export
  5045. pthread_attr_setstack and pthread_attr_setstacksize @@GLIBC_2.3.3.
  5046. * sysdeps/unix/sysv/linux/alpha/bits/local_lim.h: New file.
  5047. * sysdeps/unix/sysv/linux/alpha/Versions: New file.
  5048. * sysdeps/unix/sysv/linux/sparc/bits/local_lim.h: New file.
  5049. * sysdeps/unix/sysv/linux/sparc/Versions: New file.
  5050. * pthread_attr_setstack.c (__old_pthread_attr_setstack): New function.
  5051. (pthread_attr_setstack): If PTHREAD_STACK_MIN != 16384, export
  5052. as @@GLIBC_2.3.2 and also export compatibility @GLIBC_2.2.
  5053. * pthread_attr_setstacksize.c (__old_pthread_attr_setstacksize): New
  5054. function.
  5055. (pthread_attr_setstacksize): If PTHREAD_STACK_MIN != 16384, export
  5056. as @@GLIBC_2.3.2 and also export compatibility @GLIBC_2.1.
  5057. * Makefile (tests): Add tst-stack2.
  5058. * tst-stack2.c: New test.
  5059. * tst-stack1.c: Include limits.h and sys/param.h.
  5060. (do_test): Set size to MAX (4 * getpagesize (), PTHREAD_STACK_MIN).
  5061. * pthread_condattr_setpshared.c: Include errno.h.
  5062. (pthread_condattr_setpshared): Return EINVAL if pshared
  5063. is neither PTHREAD_PROCESS_PRIVATE nor PTHREAD_PROCESS_SHARED.
  5064. * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h (PSEUDO): Also
  5065. defined symbol for entry point to avoid cancellation.
  5066. * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h (PSEUDO):
  5067. Likewise.
  5068. * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h (PSEUDO):
  5069. Likewise.
  5070. * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h (PSEUDO):
  5071. Likewise.
  5072. * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h (PSEUDO):
  5073. Likewise.
  5074. * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h (PSEUDO):
  5075. Likewise.
  5076. * sysdeps/unix/sysv/linux/i386/not-cancel.h (__open_nocancel,
  5077. __close_nocancel, __read_nocancel, __write_nocancel,
  5078. __waitpid_nocancel): Add attribute_hidden. If not in libc.so,
  5079. libpthread.so or librt.so, define to corresponding function
  5080. without _nocancel suffix.
  5081. * sysdeps/unix/sysv/linux/s390/not-cancel.h: New file.
  5082. * sysdeps/unix/sysv/linux/powerpc/not-cancel.h: New file.
  5083. * sysdeps/unix/sysv/linux/sparc/not-cancel.h: New file.
  5084. * sysdeps/unix/sysv/linux/x86_64/not-cancel.h: Fix a typo.
  5085. 2003-09-02 Ulrich Drepper <drepper@redhat.com>
  5086. * sysdeps/unix/sysv/linux/i386/not-cancel.h: New file.
  5087. * sysdeps/unix/sysv/linux/x86_64/not-cancel.h: New file.
  5088. * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Make sure the code
  5089. in subsections has a symbol associated with it.
  5090. * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (PSEUDO): Also
  5091. defined symbol for entry point to avoid cancellation.
  5092. * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h (PSEUDO): Likewise.
  5093. 2003-09-01 Jakub Jelinek <jakub@redhat.com>
  5094. * Makefile (tests): Add tst-tls5.
  5095. (module-names): Add tst-tls5mod{,a,b,c,d,e,f}.
  5096. ($(objpfx)tst-tls5mod{,a,b,c,d,e,f}.so-no-z-defs): Set to yes.
  5097. ($(objpfx)tst-tls5): New.
  5098. ($(objpfx)tst-tls6.out): Likewise.
  5099. (tests): Depend on $(objpfx)tst-tls6.out.
  5100. * tst-tls3.c: Include stdint.h and pthreaddef.h.
  5101. (do_test): Check pthread_self () return value alignment.
  5102. * tst-tls3mod.c: Include stdint.h and pthreaddef.h.
  5103. (tf): Check pthread_self () return value alignment.
  5104. * tst-tls5.c: New test.
  5105. * tst-tls5.h: New.
  5106. * tst-tls5mod.c: New.
  5107. * tst-tls5moda.c: New.
  5108. * tst-tls5modb.c: New.
  5109. * tst-tls5modc.c: New.
  5110. * tst-tls5modd.c: New.
  5111. * tst-tls5mode.c: New.
  5112. * tst-tls5modf.c: New.
  5113. * tst-tls6.sh: New test.
  5114. * sysdeps/pthread/pthread-functions.h (struct pthread_functions): Add
  5115. ptr___pthread_cond_timedwait and ptr___pthread_cond_timedwait_2_0.
  5116. * init.c (pthread_functions): Initialize them.
  5117. * forward.c (pthread_cond_timedwait@GLIBC_2.0,
  5118. pthread_cond_timedwait@@GLIBC_2.3.2): New forwards.
  5119. * Versions (libc): Export pthread_cond_timedwait@GLIBC_2.0,
  5120. pthread_cond_timedwait@@GLIBC_2.3.2.
  5121. 2003-09-01 Jakub Jelinek <jakub@redhat.com>
  5122. * sysdeps/unix/sysv/linux/alpha/timer_create.c: New file.
  5123. * sysdeps/unix/sysv/linux/alpha/timer_delete.c: New file.
  5124. * sysdeps/unix/sysv/linux/alpha/timer_getoverr.c: New file.
  5125. * sysdeps/unix/sysv/linux/alpha/timer_gettime.c: New file.
  5126. * sysdeps/unix/sysv/linux/alpha/timer_settime.c: New file.
  5127. * sysdeps/unix/sysv/linux/alpha/Versions: New file.
  5128. * sysdeps/unix/sysv/linux/alpha/aio_cancel.c: New file.
  5129. * sysdeps/unix/sysv/linux/ia64/bits/posix_opt.h: Define
  5130. _POSIX_THREAD_PRIORITY_SCHEDULING.
  5131. * sysdeps/unix/sysv/linux/x86_64/bits/posix_opt.h: Likewise.
  5132. 2003-08-31 Ulrich Drepper <drepper@redhat.com>
  5133. * sysdeps/pthread/bits/stdio-lock.h (_IO_acquire_lock): Avoid
  5134. nested function, use static inline function from libio.h.
  5135. Code by Richard Henderson.
  5136. * sysdeps/pthread/bits/libc-lock.h: Mark pthread_setcancelstate as
  5137. weak.
  5138. 2003-08-30 Jakub Jelinek <jakub@redhat.com>
  5139. * sysdeps/unix/sysv/linux/sparc/sparc64/Versions: New file.
  5140. * sysdeps/unix/sysv/linux/sparc/sparc64/timer_create.c: New file.
  5141. * sysdeps/unix/sysv/linux/sparc/sparc64/timer_delete.c: New file.
  5142. * sysdeps/unix/sysv/linux/sparc/sparc64/timer_getoverr.c: New file.
  5143. * sysdeps/unix/sysv/linux/sparc/sparc64/timer_gettime.c: New file.
  5144. * sysdeps/unix/sysv/linux/sparc/sparc64/timer_settime.c: New file.
  5145. * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: New file.
  5146. * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: New file.
  5147. * sysdeps/unix/sysv/linux/sparc/bits/pthreadtypes.h: New file.
  5148. * sysdeps/unix/sysv/linux/sparc/bits/semaphore.h: New file.
  5149. * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: New file.
  5150. * sysdeps/unix/sysv/linux/sparc/pthread_once.c: New file.
  5151. * sysdeps/unix/sysv/linux/sparc/pt-vfork.S: New file.
  5152. * sysdeps/unix/sysv/linux/sparc/fork.c: New file.
  5153. * sysdeps/unix/sysv/linux/sparc/aio_cancel.c: New file.
  5154. * sysdeps/sparc/sparc32/sparcv9/pthread_spin_lock.c: New file.
  5155. * sysdeps/sparc/sparc32/sparcv9/pthread_spin_trylock.c: New file.
  5156. * sysdeps/sparc/sparc32/sparcv9/pthread_spin_unlock.c: New file.
  5157. * sysdeps/sparc/sparc32/pthread_spin_lock.c: New file.
  5158. * sysdeps/sparc/sparc32/pthread_spin_trylock.c: New file.
  5159. * sysdeps/sparc/sparc32/pthreaddef.h: New file.
  5160. * sysdeps/sparc/sparc64/pthread_spin_lock.c: New file.
  5161. * sysdeps/sparc/sparc64/pthread_spin_trylock.c: New file.
  5162. * sysdeps/sparc/sparc64/pthread_spin_unlock.c: New file.
  5163. * sysdeps/sparc/sparc64/pthreaddef.h: New file.
  5164. * sysdeps/sparc/tls.h: New file.
  5165. * sysdeps/sparc/tcb-offsets.sym: New file.
  5166. * sysdeps/sparc/Makefile: New file.
  5167. * sysdeps/sparc/td_ta_map_lwp2thr.c: New file.
  5168. * init.c [__sparc__] (__NR_set_tid_address): Define.
  5169. 2003-08-29 Jakub Jelinek <jakub@redhat.com>
  5170. * sysdeps/pthread/bits/stdio-lock.h (_IO_acquire_lock,
  5171. _IO_release_lock): Define.
  5172. 2003-08-29 Jakub Jelinek <jakuB@redhat.com>
  5173. * tst-cancel4.c (tf_sigwait, tf_sigwaitinfo, tf_sigtimedwait): Add
  5174. sigemptyset before sigaddset. Reported by jreiser@BitWagon.com.
  5175. 2003-08-27 Ulrich Drepper <drepper@redhat.com>
  5176. * sysdeps/pthread/pthread.h (pthread_exit): Remove __THROW.
  5177. (__pthread_cleanup_class): Add missing return types of member
  5178. functions.
  5179. 2003-08-26 Steven Munroe <sjmunroe@us.ibm.com>
  5180. * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h
  5181. (lll_mutex_unlock_force): Add memory barrier between store and futex
  5182. syscall.
  5183. 2003-08-25 Ulrich Drepper <drepper@redhat.com>
  5184. * tst-cancel4.c (do_test): Also unlink tempfname and remove
  5185. tempmsg in first loop.
  5186. 2003-08-18 Ulrich Drepper <drepper@redhat.com>
  5187. * sysdeps/unix/sysv/linux/bits/posix_opt.h: Define
  5188. _POSIX_THREAD_PRIORITY_SCHEDULING.
  5189. * sysdeps/unix/sysv/linux/i386/bits/posix_opt.h: Likewise.
  5190. 2003-08-07 Jakub Jelinek <jakub@redhat.com>
  5191. * sysdeps/pthread/bits/libc-lock.h [_LIBC && SHARED]
  5192. (__rtld_lock_default_lock_recursive,
  5193. __rtld_lock_default_unlock_recursive): Define.
  5194. [_LIBC && SHARED] (__rtld_lock_lock_recursive,
  5195. __rtld_lock_unlock_recursive): Define using
  5196. GL(_dl_rtld_*lock_recursive).
  5197. * init.c (__pthread_initialize_minimal_internal): Initialize
  5198. _dl_rtld_lock_recursive and _dl_rtld_unlock_recursive.
  5199. Lock GL(_dl_load_lock) the same number of times as
  5200. GL(_dl_load_lock) using non-mt implementation was nested.
  5201. * pthreadP.h (__pthread_cleanup_upto): Add hidden_proto.
  5202. * pt-longjmp.c (__pthread_cleanup_upto): Add hidden_def.
  5203. 2003-08-06 Jakub Jelinek <jakub@redhat.com>
  5204. * tst-cancel17.c (do_test): Make len2 maximum of page size and
  5205. PIPE_BUF.
  5206. 2003-08-07 Jakub Jelinek <jakub@redhat.com>
  5207. * pthread_create.c (__pthread_create_2_0): Clear new_attr.cpuset.
  5208. 2003-08-03 Jakub Jelinek <jakub@redhat.com>
  5209. * sysdeps/pthread/createthread.c (do_clone): Move error handling
  5210. to first syscall error check. Move syscall error check for tkill
  5211. into __ASSUME_CLONE_STOPPED #ifdef.
  5212. 2003-08-02 Ulrich Drepper <drepper@redhat.com>
  5213. * sysdeps/pthread/createthread.c (do_clone): If __ASSUME_CLONE_STOPPED
  5214. is not defined, do explicit synchronization.
  5215. (create_thread): Do not lock pd->lock here. If __ASSUME_CLONE_STOPPED
  5216. is not defined also unlock pd->lock for non-debugging case in case
  5217. it is necessary.
  5218. * pthread_create.c (start_thread): Always get and release pd->lock
  5219. if __ASSUME_CLONE_STOPPED is not defined.
  5220. (start_thread_debug): Removed. Adjust users.
  5221. * allocatestack.c (allocate_stack): Always initialize lock if
  5222. __ASSUME_CLONE_STOPPED is not defined.
  5223. * Makefile (tests): Add tst-sched1.
  5224. * tst-sched1.c: New file.
  5225. * sysdeps/pthread/createthread.c (do_clone): Only use
  5226. sched_setschduler and pass correct parameters.
  5227. 2003-07-31 Jakub Jelinek <jakub@redhat.com>
  5228. * sysdeps/pthread/pthread.h (pthread_attr_setstackaddr,
  5229. pthread_attr_setstacksize): Change PTHREAD_STACK_SIZE to
  5230. PTHREAD_STACK_MIN in comments.
  5231. 2003-07-31 Jakub Jelinek <jakub@redhat.com>
  5232. * sysdeps/pthread/pthread_cond_timedwait.c (__pthread_cond_timedwait):
  5233. Shut up warnings if INTERNAL_SYSCALL_ERROR_P does not use its first
  5234. argument.
  5235. * sysdeps/unix/sysv/linux/timer_create.c (timer_create): Likewise.
  5236. * pthread_condattr_setclock.c (pthread_condattr_setclock): Likewise.
  5237. * sysdeps/unix/sysv/linux/s390/jmp-unwind.c: Include pthreaddef.h.
  5238. (__pthread_cleanup_upto): Fix prototype.
  5239. (_longjmp_unwind): Adjust caller.
  5240. * sysdeps/unix/sysv/linux/s390/lowlevellock.h (__lll_mutex_timedlock):
  5241. Change second argument to const struct pointer.
  5242. * tst-sem8.c (main): Remove unused s2 and s3 variables.
  5243. * tst-sem9.c (main): Likewise.
  5244. * unwind.c: Include string.h for strlen prototype.
  5245. 2003-07-31 Ulrich Drepper <drepper@redhat.com>
  5246. * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S
  5247. (__pthread_cond_timedwait): Don't use cmov unless HAVE_CMOV is defined.
  5248. * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_timedwait.S:
  5249. Define HAVE_CMOV.
  5250. Patch by Nicholas Miell <nmiell@attbi.com>.
  5251. 2003-07-30 Jakub Jelinek <jakub@redhat.com>
  5252. * init.c (__pthread_initialize_minimal_internal): Initialize
  5253. GL(dl_init_static_tls).
  5254. * pthreadP.h (__pthread_init_static_tls): New prototype.
  5255. * allocatestack.c (init_one_static_tls, __pthread_init_static_tls):
  5256. New functions.
  5257. * Makefile (tests): Add tst-tls4.
  5258. (modules-names): Add tst-tls4moda and tst-tls4modb.
  5259. ($(objpfx)tst-tls4): Link against libdl and libpthread.
  5260. ($(objpfx)tst-tls4.out): Depend on tst-tls4moda.so and
  5261. tst-tls4modb.so.
  5262. * tst-tls4.c: New file.
  5263. * tst-tls4moda.c: New file.
  5264. * tst-tls4modb.c: New file.
  5265. 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
  5266. * sysdeps/pthread/timer_create.c (timer_create): Call timer_delref
  5267. before __timer_dealloc.
  5268. * sysdeps/pthread/timer_routines.c (__timer_thread_find_matching):
  5269. Don't call list_unlink.
  5270. 2003-07-29 Roland McGrath <roland@redhat.com>
  5271. * Makefile [$(build-shared) = yes] (tests): Depend on $(test-modules).
  5272. 2003-07-25 Jakub Jelinek <jakub@redhat.com>
  5273. * tst-cancel17.c (do_test): Check if aio_cancel failed.
  5274. Don't reuse struct aiocb A if it failed.
  5275. Write fpathconf (fds[1], _PC_PIPE_BUF) + 2 bytes using aio_write,
  5276. not just one byte, as that does not block.
  5277. 2003-07-22 Jakub Jelinek <jakub@redhat.com>
  5278. * sysdeps/pthread/unwind-resume.c: New file.
  5279. * sysdeps/pthread/Makefile (routines, shared-only-routines): Add
  5280. unwind-resume in csu subdir.
  5281. (CFLAGS-unwind-resume.c, CFLAGS-rt-unwind-resume.c): Compile with
  5282. exceptions.
  5283. (librt-sysdep_routines, librt-shared-only-routines): Add
  5284. rt-unwind-resume.
  5285. * sysdeps/pthread/rt-unwind-resume.c: New file.
  5286. * unwind-forcedunwind.c: New file.
  5287. * Makefile (libpthread-routines): Add unwind-forcedunwind.
  5288. (libpthread-shared-only-routines): Likewise.
  5289. (CFLAGS-unwind-forcedunwind.c): Compile with exceptions.
  5290. * pthreadP.h (pthread_cancel_init): New prototype.
  5291. * pthread_cancel.c (pthread_cancel): Call pthread_cancel_init.
  5292. * sysdeps/pthread/createthread.c (do_thread, create_thread): Make
  5293. attr argument const struct pthread_attr *.
  5294. * res.c (__res_state): Return __resp.
  5295. * descr.h: Include resolv.h.
  5296. (struct pthread): Add res field.
  5297. * pthread_create.c: Include resolv.h.
  5298. (start_thread): Initialize __resp.
  5299. * Makefile (tests): Add tst-_res1.
  5300. (module-names): Add tst-_res1mod1, tst-_res1mod2.
  5301. ($(objpfx)tst-_res1mod2.so): Depend on $(objpfx)tst-_res1mod1.so.
  5302. ($(objpfx)tst-_res1): Depend on $(objpfx)tst-_res1mod2.so and
  5303. libpthread.
  5304. * tst-_res1.c: New file.
  5305. * tst-_res1mod1.c: New file.
  5306. * tst-_res1mod2.c: New file.
  5307. 2003-07-21 Ulrich Drepper <drepper@redhat.com>
  5308. * sysdeps/pthread/createthread.c: Don't define CLONE_STOPPED.
  5309. * Makefile: Define various *-no-z-defs variables for test DSOs
  5310. which has undefined symbols.
  5311. 2003-07-21 Steven Munroe <sjmunroe@us.ibm.com>
  5312. * sysdeps/unix/sysv/linux/powerpc/pthread_once.c (__pthread_once):
  5313. Retry if the stwcx fails to store once_control.
  5314. 2003-07-20 Ulrich Drepper <drepper@redhat.com>
  5315. * Makefile (libpthread-routines): Add pthread_attr_getaffinity and
  5316. pthread_attr_setaffinity.
  5317. * Versions [libpthread] (GLIBC_2.3.3): Likewise.
  5318. * sysdeps/unix/sysv/linux/pthread_attr_getaffinity.c: New file.
  5319. * sysdeps/unix/sysv/linux/pthread_attr_setaffinity.c: New file.
  5320. * pthread_attr_destroy.c: Free cpuset element if allocated.
  5321. * pthread_create.c: Pass iattr as additional parameter to
  5322. create_thread.
  5323. * sysdeps/pthread/createthread.c: If attribute is provided and
  5324. a new thread is created with affinity set or scheduling parameters,
  5325. start thread with CLONE_STOPPED.
  5326. * sysdeps/pthread/pthread.h: Declare pthread_attr_getaffinity and
  5327. pthread_attr_setaffinity.
  5328. * sysdeps/unix/sysv/linux/internaltypes.h (struct pthread_attr): Add
  5329. cpuset element.
  5330. 2003-07-15 Ulrich Drepper <drepper@redhat.com>
  5331. * tst-tcancel-wrappers.sh: lseek and llseek are not cancelation points.
  5332. 2003-07-14 Ulrich Drepper <drepper@redhat.com>
  5333. * sysdeps/pthread/configure.in: Require CFI directives also for
  5334. ppc and s390.
  5335. 2003-07-15 Jakub Jelinek <jakub@redhat.com>
  5336. * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h (PSEUDO):
  5337. Add cfi directives.
  5338. 2003-07-12 Kaz Kojima <kkojima@rr.iij4u.or.jp>
  5339. * sysdeps/sh/tcb-offsets.sym: Add RESULT, TID, CANCELHANDLING and
  5340. CLEANUP_JMP_BUF.
  5341. * sysdeps/unix/sysv/linux/sh/pthread_cond_wait.S: Use more
  5342. registers as variables. Call __pthread_mutex_unlock_usercnt.
  5343. * sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S: Likewise.
  5344. * sysdeps/unix/sysv/linux/sh/pthread_rwlock_rdlock.S: Store TID
  5345. not self pointer in __writer. Compare with TID to determine
  5346. deadlocks.
  5347. * sysdeps/unix/sysv/linux/sh/pthread_rwlock_wrlock.S: Likewise.
  5348. * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedrdlock.S:
  5349. Likewise.
  5350. * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedwrlock.S:
  5351. Likewise.
  5352. * sysdeps/unix/sysv/linux/sh/sem_wait.S: Add cancellation support.
  5353. * sysdeps/unix/sysv/linux/sh/sem_timedwait.S: Likewise.
  5354. * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Define all the nice
  5355. macros also when compiling librt.
  5356. 2003-07-11 Jakub Jelinek <jakub@redhat.com>
  5357. * Makefile (CFLAGS-pthread_once.c): Add -fexceptions
  5358. -fasynchronous-unwind-tables.
  5359. * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h
  5360. (PSEUDO): Add cfi directives.
  5361. * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h (PSEUDO):
  5362. Likewise.
  5363. * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h (PSEUDO):
  5364. Likewise.
  5365. 2003-07-08 Jakub Jelinek <jakub@redhat.com>
  5366. * pthreadP.h (__pthread_unwind_next, __pthread_register_cancel,
  5367. __pthread_unregister_cancel): Add prototypes and hidden_proto.
  5368. * unwind.c (__pthread_unwind_next): Add hidden_def.
  5369. * cleanup.c (__pthread_register_cancel, __pthread_unregister_cancel):
  5370. Likewise.
  5371. * sysdeps/unix/sysv/linux/i386/i486/sem_wait.S (__new_sem_wait):
  5372. Use HIDDEN_JUMPTARGET to jump to __pthread_unwind.
  5373. * sysdeps/unix/sysv/linux/i386/i486/sem_timedwait.S (sem_timedwait):
  5374. Likewise.
  5375. * sysdeps/unix/sysv/linux/x86_64/sem_wait.S (sem_wait): Likewise.
  5376. * sysdeps/unix/sysv/linux/x86_64/sem_timedwait.S (sem_timedwait):
  5377. Likewise.
  5378. * sysdeps/unix/sysv/linux/i386/pthread_once.S (__pthread_once): Use
  5379. HIDDEN_JUMPTARGET to call __pthread_register_cancel,
  5380. __pthread_unregister_cancel and __pthread_unwind_next.
  5381. 2003-07-04 Jakub Jelinek <jakub@redhat.com>
  5382. * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (PSEUDO): Use
  5383. different symbol for the cancellation syscall wrapper and
  5384. non-cancellation syscall wrapper.
  5385. (PSEUDO_END): Define.
  5386. 2003-07-05 Richard Henderson <rth@redhat.com>
  5387. * sysdeps/alpha/elf/pt-initfini.c: Avoid .ent/.end.
  5388. * sysdeps/unix/sysv/linux/alpha/lowlevellock.h (lll_futex_wait,
  5389. lll_futex_timed_wait, lll_futex_wake, lll_futex_requeue): On success
  5390. return actual return value from the syscall, not 0.
  5391. 2003-07-07 Ulrich Drepper <drepper@redhat.com>
  5392. * descr.h (struct pthread): Add pid field.
  5393. * allocatestack.c (allocate_stack): Initialize pid field in descriptor.
  5394. (__reclaim_stacks): Likewise.
  5395. * init.c (sigcancel_handler): If __ASSUME_CORRECT_SI_PID is defined
  5396. also check for PID of the signal source.
  5397. (__pthread_initialize_minimal_internal): Also initialize pid field
  5398. of initial thread's descriptor.
  5399. * pthread_cancel.c: Use tgkill instead of tkill if possible.
  5400. * sysdeps/unix/sysv/linux/fork.c: Likewise.
  5401. * sysdeps/unix/sysv/linux/pt-raise.c: Likewise.
  5402. * sysdeps/unix/sysv/linux/pthread_kill.c: Likewise.
  5403. * sysdeps/unix/sysv/linux/raise.c: Likewise.
  5404. 2003-07-05 Ulrich Drepper <drepper@redhat.com>
  5405. * sysdeps/pthread/bits/libc-lock.h (__libc_cleanup_push): Renamed.
  5406. Fix use of parameter.
  5407. (__libc_cleanup_pop): Likewise.
  5408. 2003-07-04 Ulrich Drepper <drepper@redhat.com>
  5409. * init.c (sigcancel_handler): Change parameters to match handler
  5410. for SA_SIGACTION. Check signal number and code to recognize
  5411. invalid invocations.
  5412. 2003-07-03 Roland McGrath <roland@redhat.com>
  5413. * sysdeps/ia64/td_ta_map_lwp2thr.c (td_ta_map_lwp2thr):
  5414. Apply sizeof (struct pthread) bias to r13 value.
  5415. 2003-07-03 Ulrich Drepper <drepper@redhat.com>
  5416. * sysdeps/pthread/configure.in: Require CFI directives.
  5417. * sysdeps/pthread/librt-cancellation.c (__pthread_unwind): Remove
  5418. definition.
  5419. * pthreadP.h (__pthread_unwind): Add hidden_proto if used in
  5420. libpthread compilation.
  5421. * unwind.c (__pthread_unwind): Add hidden_def.
  5422. * Versions (libpthread) [GLIBC_PRIVATE]: Add __pthread_unwind.
  5423. 2003-07-01 Ulrich Drepper <drepper@redhat.com>
  5424. * libc-cancellation.c (__libc_cleanup_routine): Define.
  5425. * sysdeps/pthread/bits/libc-lock.h (__pthread_cleanup_push): Define.
  5426. (__pthread_cleanup_pop): Define.
  5427. 2003-07-01 Richard Henderson <rth@redhat.com>
  5428. * sysdeps/alpha/elf/pt-initfini.c: New file.
  5429. * sysdeps/alpha/pthread_spin_lock.S: New file.
  5430. * sysdeps/alpha/pthread_spin_trylock.S: New file.
  5431. * sysdeps/alpha/pthreaddef.h: New file.
  5432. * sysdeps/alpha/td_ta_map_lwp2thr.c: New file.
  5433. * sysdeps/alpha/tls.h: New file.
  5434. * sysdeps/unix/sysv/linux/alpha/Makefile: New file.
  5435. * sysdeps/unix/sysv/linux/alpha/bits/pthreadtypes.h: New file.
  5436. * sysdeps/unix/sysv/linux/alpha/bits/semaphore.h: New file.
  5437. * sysdeps/unix/sysv/linux/alpha/createthread.c: New file.
  5438. * sysdeps/unix/sysv/linux/alpha/fork.c: New file.
  5439. * sysdeps/unix/sysv/linux/alpha/lowlevellock.h: New file.
  5440. * sysdeps/unix/sysv/linux/alpha/pt-vfork.S: New file.
  5441. * sysdeps/unix/sysv/linux/alpha/pthread_once.c: New file.
  5442. * sysdeps/unix/sysv/linux/alpha/sem_post.c: New file.
  5443. * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: New file.
  5444. 2003-07-01 Ulrich Drepper <drepper@redhat.com>
  5445. * sysdeps/unix/sysv/linux/x86_64/pthread_once.S: Add correct
  5446. cleanup support and unwind info.
  5447. 2003-06-30 Ulrich Drepper <drepper@redhat.com>
  5448. * sysdeps/unix/sysv/linux/i386/pthread_once.S (__pthread_once):
  5449. Use correct cleanup handler registration. Add unwind info.
  5450. * sysdeps/unix/sysv/linux/unwindbuf.sym: New file.
  5451. * sysdeps/unix/sysv/linux/Makefile: Add rule to build unwindbuf.h.
  5452. * tst-once3.c: Add cleanup handler and check it is called.
  5453. * tst-once4.c: Likewise.
  5454. * tst-oncex3.c: New file.
  5455. * tst-oncex4.c: New file.
  5456. * Makefile: Add rules to build and run tst-oncex3 and tst-oncex4.
  5457. 2003-06-29 Ulrich Drepper <drepper@redhat.com>
  5458. * sysdeps/pthread/configure.in: Check for C cleanup handling in gcc.
  5459. 2003-06-27 Ulrich Drepper <drepper@redhat.com>
  5460. * tst-cancel4.c (tf_msgrcv): Use IPC_PRIVATE in msgget call.
  5461. (tf_msgsnd): Likewise.
  5462. * tst-cancel4.c (tf_msgrcv): Strengthen test against valid
  5463. premature returns a bit more.
  5464. 2003-06-26 Ulrich Drepper <drepper@redhat.com>
  5465. * sysdeps/pthread/librt-cancellation.c: Move __pthread_unwind
  5466. definition to the front.
  5467. * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: Rename
  5468. the cleanup functions to make the names unique. Fix dwarf opcode
  5469. un unwind table.
  5470. * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Rename cleanup
  5471. functions to make the names unique. Fix CFA offset for two blocks.
  5472. 2003-06-25 Ulrich Drepper <drepper@redhat.com>
  5473. * sysdeps/pthread/pthread.h (class __pthread_cleanup_class): Add
  5474. missing closing braces.
  5475. Patch by Christophe Saout <christophe@saout.de>.
  5476. 2003-06-24 Roland McGrath <roland@redhat.com>
  5477. * pthread_mutex_trylock.c (__pthread_mutex_trylock): Typo fix.
  5478. 2003-06-24 Ulrich Drepper <drepper@redhat.com>
  5479. * sysdeps/unix/sysv/linux/ia64/bits/posix_opt.h: New file.
  5480. * sysdeps/unix/sysv/linux/x86_64/bits/posix_opt.h: New file.
  5481. * pthreadP.h: Declare __find_thread_by_id.
  5482. * allocatestack.c [HP_TIMING_AVAIL]: Define __find_thread_by_id.
  5483. * pthread_clock_gettime.c: Allow using other thread's clock.
  5484. * pthread_clock_settime.c: Likewise.
  5485. * sysdeps/pthread/pthread_getcpuclockid.c: Likewise.
  5486. * Makefile: Add rules to build and run tst-clock2.
  5487. * tst-clock2.c: New file.
  5488. 2003-06-23 Ulrich Drepper <drepper@redhat.com>
  5489. * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: Rewrite
  5490. to use exception-based cleanup handler.
  5491. * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Likewise.
  5492. * tst-cond8.c (ch): Announce that we are done.
  5493. * pthreadP.h (__pthread_mutex_cond_lock): Mark with internal_function.
  5494. * tst-cancel17.c (tf): Retry aio_suspend in case of EINTR.
  5495. Also test aio_suspend with timeout value.
  5496. 2003-06-22 Ulrich Drepper <drepper@redhat.com>
  5497. * pthreadP.h: Mark __pthread_mutex_unlock_usercnt also hidden.
  5498. * pthread_mutex_unlock.c (__pthread_mutex_unlock_usercnt): Add
  5499. attribute_hidden.
  5500. * pthreadP.h (__pthread_mutex_init_internal): Mark hidden.
  5501. (__pthread_mutex_lock_internal): Likewise.
  5502. (__pthread_mutex_unlock_internal): Likewise.
  5503. (__pthread_mutex_unlock_usercnt): Declare.
  5504. * pthread_mutex_destroy.c: Always fail if used in any way.
  5505. * pthread_mutex_init.c: Update comment.
  5506. * pthread_mutex_lock.c: If NO_INCR is not defined adjust __nusers.
  5507. * pthread_mutex_timedlock.c: Adjust __nusers.
  5508. * pthread_mutex_trylock.c: Adjust __nusers.
  5509. * pthread_mutex_unlock.c: Old code is in __pthread_mutex_unlock_usercnt
  5510. and public interfaces are wrapper with pass additional parameter.
  5511. __pthread_mutex_unlock_usercnt does not adjust __nusers if second
  5512. parameter zero.
  5513. * tst-mutex8.c: New file.
  5514. * Makefile (tests): Add tst-mutex8.
  5515. * sysdeps/pthread/pthread_cond_timedwait.c: Call
  5516. __pthread_mutex_unlock_usercnt.
  5517. * sysdeps/pthread/pthread_cond_wait.c: Likewise.
  5518. * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: Likewise.
  5519. * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Likewise.
  5520. * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: Likewise.
  5521. * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: Likewise.
  5522. * sysdeps/unix/sysv/linux/pthread_mutex_cond_lock.c: Define NO_INCR.
  5523. * sysdeps/unix/sysv/linux/i386/bits/pthreadtypes.h (pthread_mutex_t):
  5524. Add __nusers.
  5525. * sysdeps/unix/sysv/linux/ia64/bits/pthreadtypes.h: Likewise.
  5526. * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: Likewise.
  5527. * sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h: Likewise.
  5528. * sysdeps/unix/sysv/linux/sh/bits/pthreadtypes.h: Likewise.
  5529. * sysdeps/unix/sysv/linux/x86_64/bits/pthreadtypes.h: Likewise.
  5530. * pthread_mutex_lock.c: Don't store THREAD_ID in __owner, use TID.
  5531. * pthread_mutex_timedlock.c: Likewise.
  5532. * pthread_mutex_trylock.c: Adjust __nusers.
  5533. * pthread_mutex_unlock.c: Compare with TID not THREAD_ID.
  5534. * tst-mutex9.c: New file.
  5535. * Makefile (tests): Add tst-mutex9.
  5536. * sysdeps/i386/tls.h: Remove THREAD_ID definition.
  5537. * sysdeps/ia64/tls.h: Likewise.
  5538. * sysdeps/powerpc/tls.h: Likewise.
  5539. * sysdeps/s390/tls.h: Likewise.
  5540. * sysdeps/sh/tls.h: Likewise.
  5541. * sysdeps/x86_64/tls.h: Likewise.
  5542. * sysdeps/unix/sysv/linux/i386/bits/pthreadtypes.h (pthread_mutex_t):
  5543. Change type of __owner.
  5544. * sysdeps/unix/sysv/linux/ia64/bits/pthreadtypes.h: Likewise.
  5545. * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: Likewise.
  5546. * sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h: Likewise.
  5547. * sysdeps/unix/sysv/linux/sh/bits/pthreadtypes.h: Likewise.
  5548. * sysdeps/unix/sysv/linux/x86_64/bits/pthreadtypes.h: Likewise.
  5549. 2003-06-19 Jakub Jelinek <jakub@redhat.com>
  5550. * sysdeps/unix/sysv/linux/ia64/sem_post.c: Move to...
  5551. * sysdeps/unix/sysv/linux/sem_post.c: ...here.
  5552. * sysdeps/unix/sysv/linux/sem_post.c: Move to...
  5553. * sysdeps/unix/sysv/linux/powerpc/sem_post.c: ... here. Pass nr + 1
  5554. instead of nr to lll_futex_wake. Only set errno and return -1
  5555. if err < 0.
  5556. * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h (lll_futex_wait,
  5557. lll_futex_timed_wait, lll_futex_wake, lll_futex_requeue): On success
  5558. return actual return value from the syscall, not 0.
  5559. 2003-06-18 Ulrich Drepper <drepper@redhat.com>
  5560. * tst-cancel4.c (tf_msgsnd): Don't always use 100 as the type,
  5561. find a random value.
  5562. (tf_msgrcv): Likewise. Also don't report msgrcv returns if
  5563. errno==EIDRM.
  5564. * sysdeps/unix/sysv/linux/timer_settime.c: Add prototype for
  5565. compat_timer_settime.
  5566. * sysdeps/unix/sysv/linux/timer_gettime.c: Add prototype for
  5567. compat_timer_gettime.
  5568. * sysdeps/unix/sysv/linux/timer_getoverr.c: Add prototype for
  5569. compat_timer_getoverrun.
  5570. * sysdeps/unix/sysv/linux/timer_delete.c: Add prototype for
  5571. compat_timer_delete.
  5572. * pthread_mutex_destroy.c (__pthread_mutex_destroy): For
  5573. error-checking mutex detect busy mutexes.
  5574. 2003-06-17 Ulrich Drepper <drepper@redhat.com>
  5575. * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (lll_mutex_lock):
  5576. Add ax to clobber list.
  5577. (lll_mutex_cond_lock): Likewise.
  5578. (lll_mutex_unlock): Likewise.
  5579. (lll_lock): Likewise.
  5580. (lll_unlock): Likewise.
  5581. * Makefile: Add rules to build and run tst-cancel18 and tst-cancelx18.
  5582. * tst-cancel18.c: New file.
  5583. * tst-cancelx18.c: New file.
  5584. * tst-cancel4.c: Test connect, creat, msgrcv, msgsnd, sendmsg, sendto,
  5585. and tcdrain.
  5586. * Makefile: Add rules to build and run tst-cancel17 and tst-cancel17x.
  5587. * tst-cancel17.c: New file.
  5588. * tst-cancelx17.c: New file.
  5589. * sysdeps/unix/sysv/linux/sigtimedwait.c: New file.
  5590. * sysdeps/unix/sysv/linux/sigwait.c: New file.
  5591. * sysdeps/unix/sysv/linux/sigwaitinfo.c: New file.
  5592. * tst-cancel4.c: Test open, close, pread, pwrite, fsync, and msync.
  5593. 2003-06-16 Jakub Jelinek <jakub@redhat.com>
  5594. * sysdeps/pthread/createthread.c (create_thread): Set
  5595. header.multiple_threads unconditionally.
  5596. * allocatestack.c (allocate_stack): Likewise.
  5597. * descr.h (struct pthread): Add header.multiple_threads
  5598. unconditionally.
  5599. * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (CENABLE, CDISABLE):
  5600. Define for librt. #error if neither libpthread, libc nor librt.
  5601. * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (CENABLE, CDISABLE):
  5602. Likewise.
  5603. * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h (CENABLE,
  5604. CDISABLE): Likewise.
  5605. * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h (CENABLE,
  5606. CDISABLE): Likewise.
  5607. * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h (CENABLE,
  5608. CDISABLE): Likewise.
  5609. * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h (CENABLE,
  5610. CDISABLE): Likewise. Access header.multiple_threads outside of
  5611. libc and libpthread.
  5612. * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h (CENABLE, CDISABLE):
  5613. Likewise.
  5614. * sysdeps/x86_64/tls.h (tcbhead_t): Add multiple_threads.
  5615. * sysdeps/x86_64/tcb-offsets.sym (MULTIPLE_THREADS_OFFSET): Define.
  5616. 2003-06-17 Ulrich Drepper <drepper@redhat.com>
  5617. * tst-cancel4.c: Add tests for the socket and signal functions, pause.
  5618. Also test early cancellation before the thread reaches the cancellation
  5619. point.
  5620. * Makefile: Compile forward.c with exceptions.
  5621. * sysdeps/unix/sysv/linux/sleep.c: New file.
  5622. 2003-06-16 Ulrich Drepper <drepper@redhat.com>
  5623. * Makefile: Add CFLAGS definition to compile function wrappers
  5624. duplicated from libc with exceptions.
  5625. * tst-cancel4.c: Also check cancellation handlers.
  5626. * Makefile: Add rules to build and run tst-cancel16 and
  5627. tst-cancelx16. Add missing CFLAGS definitions.
  5628. * tst-cancel16.c: New file.
  5629. * tst-cancelx16.c: New file.
  5630. 2003-06-15 Ulrich Drepper <drepper@redhat.com>
  5631. * sysdeps/unix/sysv/linux/i386/dl-sysdep.h
  5632. (DL_SYSINFO_IMPLEMENTATION): Use CFI opcodes.
  5633. * sysdeps/unix/sysv/linux/i386/i686/dl-sysdep.h
  5634. (DL_SYSINFO_IMPLEMENTATION): Likewise.
  5635. * pthreadP.h (LIBC_CANCEL_ASYNC): Also define for librt.
  5636. (LIBC_CANCEL_RESET): Likewise.
  5637. Declare __librt_enable_asynccancel and __librt_disable_asynccancel.
  5638. * sysdeps/pthread/Makefile (librt-sysdep_routines): Add
  5639. librt-cancellation.
  5640. (CFLAGS-libcrt-cancellation.c): Define.
  5641. * sysdeps/pthread/librt-cancellation.c: New file.
  5642. * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: Define all the nice
  5643. macros also when compiling librt.
  5644. * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h: Likewise.
  5645. * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h: Likewise.
  5646. * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: Likewise.
  5647. * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: Likewise.
  5648. * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: Likewise.
  5649. * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Likewise.
  5650. * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Likewise.
  5651. * sysdeps/unix/sysv/linux/timer_create.c: Add prototype for
  5652. compat_timer_create.
  5653. 2003-06-14 Ulrich Drepper <drepper@redhat.com>
  5654. * sysdeps/pthread/posix-timer.h (timespec_compare): Always inline.
  5655. * sysdeps/unix/sysv/linux/fork.h: Add libc_hidden_proto for
  5656. __register_atfork.
  5657. * sysdeps/unix/sysv/linux/register-atfork.c (__register_atfork):
  5658. Add libc_hidden_def.
  5659. 2003-06-13 Roland McGrath <roland@redhat.com>
  5660. * sysdeps/x86_64/td_ta_map_lwp2thr.c (td_ta_map_lwp2thr): Pass FS
  5661. constant from <sys/reg.h> to ps_get_thread_area, not register contents.
  5662. 2003-06-11 Ulrich Drepper <drepper@redhat.com>
  5663. * allocatestack.c (queue_stack): Always inline.
  5664. * ptreadhP.h (__do_cancel): Likewise.
  5665. 2003-06-10 Jakub Jelinek <jakub@redhat.com>
  5666. * sysdeps/unix/sysv/linux/s390/sem_timedwait.c (sem_timedwait): Fix
  5667. a typo.
  5668. 2003-06-10 Ulrich Drepper <drepper@redhat.com>
  5669. * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S
  5670. (__pthread_cond_signal): Remove incorrect second addition for
  5671. cond_lock!=0.
  5672. 2003-06-09 Ulrich Drepper <drepper@redhat.com>
  5673. * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S
  5674. (__pthread_cond_signal): Use correct futex pointer in
  5675. __lll_mutex_lock_wait call.
  5676. * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S
  5677. (__pthread_cond_signal): Some more tweaks to handle cond_lock!=0.
  5678. 2003-06-08 Ulrich Drepper <drepper@redhat.com>
  5679. * sysdeps/unix/sysv/linux/s390/sem_wait.c (__new_sem_wait): Make
  5680. cancelable.
  5681. * sysdeps/unix/sysv/linux/s390/sem_timedwait.c (sem_timedwait):
  5682. Likewise.
  5683. * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Remove
  5684. hand-written CFI generation code. Since ENTRY/END also initiated
  5685. CFI frames this caused two CFI sets to be generated.
  5686. 2003-06-07 Ulrich Drepper <drepper@redhat.com>
  5687. * cleanup_routine.c: New file.
  5688. * Versions (libpthread) [GLIBC_2.3.3]: Add __pthread_cleanup_routine.
  5689. * sysdeps/pthread/pthread.h: Add support for fully exception-based
  5690. cleanup handling.
  5691. * Makefile (libpthread-routines): Add cleanup_routine.
  5692. Add more CFLAGS variables to compile with exceptions. Add comments
  5693. why which file needs unwind tables.
  5694. (tests) [have-forced-unwind==yes]: Add tst-cancelx* and tst-cleanupx*
  5695. tests.
  5696. * tst-cancelx1.c: New file.
  5697. * tst-cancelx2.c: New file.
  5698. * tst-cancelx3.c: New file.
  5699. * tst-cancelx4.c: New file.
  5700. * tst-cancelx5.c: New file.
  5701. * tst-cancelx6.c: New file.
  5702. * tst-cancelx7.c: New file.
  5703. * tst-cancelx8.c: New file.
  5704. * tst-cancelx9.c: New file.
  5705. * tst-cancelx10.c: New file.
  5706. * tst-cancelx11.c: New file.
  5707. * tst-cancelx12.c: New file.
  5708. * tst-cancelx13.c: New file.
  5709. * tst-cancelx14.c: New file.
  5710. * tst-cancelx15.c: New file.
  5711. * tst-cleanupx0.c: New file.
  5712. * tst-cleanupx0.expect: New file.
  5713. * tst-cleanupx1.c: New file.
  5714. * tst-cleanupx2.c: New file.
  5715. * tst-cleanupx3.c: New file.
  5716. * tst-cleanup0.c: Make standard compliant.
  5717. * tst-cleanup1.c: Likewise.
  5718. * sysdeps/unix/sysv/linux/sem_timedwait.c: Add cancellation support.
  5719. * sysdeps/unix/sysv/linux/sem_wait.c: Likewise.
  5720. * sysdeps/unix/sysv/linux/i386/i486/sem_timedwait.S: Likewise.
  5721. * sysdeps/unix/sysv/linux/i386/i486/sem_wait.S: Likewise.
  5722. * sysdeps/unix/sysv/linux/x86_64/sem_timedwait.S: Likewise.
  5723. * sysdeps/unix/sysv/linux/x86_64/sem_wait.S: Likewise.
  5724. * sysdeps/i386/tcb-offsets.sym: Add RESULT, CANCELHANDLING, and
  5725. CLEANUP_JMP_BUF.
  5726. * sysdeps/x86_64/tcb-offsets.sym: Likewise.
  5727. * tst-cancel12.c: New file.
  5728. * tst-cancel13.c: New file.
  5729. * tst-cancel14.c: New file.
  5730. * tst-cancel15.c: New file.
  5731. * Makefile (tests): Add tst-cancel12, tst-cancel13, tst-cancel14,
  5732. and tst-cancel15.
  5733. * tst-cancel1.c: Add some comments.
  5734. * sysdeps/unix/sysv/linux/x86_64/sem_timedwait.S: Compute relative
  5735. timeout correctly.
  5736. 2003-06-06 Ulrich Drepper <drepper@redhat.com>
  5737. * Makefile (CFLAGS-pthread_cancel.c): Define.
  5738. 2003-06-05 Ulrich Drepper <drepper@redhat.com>
  5739. * sysdeps/unix/sysv/linux/i386/bits/pthreadtypes.h (pthread_rwlock_t):
  5740. Change type of __writer element to int.
  5741. * sysdeps/unix/sysv/linux/ia64/bits/pthreadtypes.h: Likewise.
  5742. * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: Likewise.
  5743. * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: Likewise.
  5744. * sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h: Likewise.
  5745. * sysdeps/unix/sysv/linux/x86_64/bits/pthreadtypes.h: Likewise.
  5746. * sysdeps/i386/tcb-offsets.sym: Replace SELF entry with TID entry.
  5747. * sysdeps/x86_64/tcb-offsets.sym: Likewise.
  5748. * pthread_rwlock_trywrlock.c: Store TID not self pointer in __writer.
  5749. Compare with TID to determine deadlocks.
  5750. * sysdeps/pthread/pthread_rwlock_rdlock.c: Likewise.
  5751. * sysdeps/pthread/pthread_rwlock_timedrdlock.c: Likewise.
  5752. * sysdeps/pthread/pthread_rwlock_timedwrlock.: Likewise.
  5753. * sysdeps/pthread/pthread_rwlock_wrlock.c: Likewise.
  5754. * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_rdlock.S: Likewise.
  5755. * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S:
  5756. Likewise.
  5757. * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S:
  5758. Likewise.
  5759. * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_wrlock.S: Likewise.
  5760. * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_rdlock.S: Likewise.
  5761. * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedrdlock.S:
  5762. Likewise.
  5763. * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedwrlock.S:
  5764. Likewise.
  5765. * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_wrlock.S: Likewise.
  5766. * Makefile (tests): Add tst-rwlock12.
  5767. * tst-rwlock12.c: New file.
  5768. 2003-06-05 Jakub Jelinek <jakub@redhat.com>
  5769. * sysdeps/unix/sysv/linux/lowlevellock.c (__lll_lock_wait,
  5770. __lll_timedlock_wait, lll_unlock_wake_cb, __lll_timedwait_tid):
  5771. Remove bogus hidden_proto.
  5772. * sysdeps/unix/sysv/linux/s390/libc-lowlevellock.c (___lll_lock):
  5773. Likewise.
  5774. * sysdeps/unix/sysv/linux/s390/lowlevellock.c (___lll_lock,
  5775. lll_unlock_wake_cb, ___lll_timedwait_tid): Likewise.
  5776. * sysdeps/unix/sysv/linux/s390/lowlevelmutex.c (___lll_mutex_lock,
  5777. ___lll_mutex_timedlock): Likewise.
  5778. 2003-06-04 Ulrich Drepper <drepper@redhat.com>
  5779. * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S
  5780. (__pthread_cond_signal): Add some code to eventually handle
  5781. cond_lock!=0.
  5782. 2003-06-01 Ulrich Drepper <drepper@redhat.com>
  5783. * Makefile (tests): Add tst-exec4.
  5784. (tst-exec4-ARGS): Define.
  5785. * tst-exec4.c: New file.
  5786. 2003-05-31 Ulrich Drepper <drepper@redhat.com>
  5787. * sysdeps/unix/sysv/linux/lowlevellock.c (__lll_timedlock_wait):
  5788. Also fail if tv_nsec < 0.
  5789. (__lll_timedwait_tid): Likewise.
  5790. * sysdeps/unix/sysv/linux/sem_timedwait.c (sem_timedwait): Likewise.
  5791. * sysdeps/unix/sysv/linux/i386/lowlevellock.h (lll_timedwait_tid):
  5792. Likewise.
  5793. * sysdeps/unix/sysv/linux/s390/lowlevellock.c (___lll_timedwait_tid):
  5794. Likewise.
  5795. * sysdeps/unix/sysv/linux/s390/lowlevelmutex.c (__lll_mutex_timedlock):
  5796. Likewise.
  5797. * sysdeps/unix/sysv/linux/s390/sem_timedwait.c (sem_timedwait):
  5798. Likewise.
  5799. * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (lll_timedwait_tid):
  5800. Likewise.
  5801. * sysdeps/unix/sysv/linux/sh/lowlevellock.h (lll_timedwait_tid):
  5802. Likewise.
  5803. * Makefile (tests): Add tst-sem8 and tst-sem9.
  5804. * tst-sem8.c: New file.
  5805. * tst-sem9.c: New file.
  5806. * sem_open.c: Fix creation of in_use record if the file exists but
  5807. no internal record.
  5808. * posix-timer.h: Remove old, unused timer_id2ptr and timer_ptr2id
  5809. definitions.
  5810. * sysdeps/pthread/timer_create.c (timer_create): In case
  5811. evp==NULL, assign timer ID to sival_ptr.
  5812. * descr.h (struct pthread_unwind_buf): Change type of prev element to
  5813. struct pthread_unwind_buf *.
  5814. (struct pthread): Likewise for cleanup_jmp_buf element.
  5815. * cleanup.c (__pthread_register_cancel): Add cast to avoid warning.
  5816. * cleanup_defer.c (__pthread_register_cancel_defer): Likewise.
  5817. * unwind.c (__pthread_unwind_next): Likewise.
  5818. 2003-05-30 Ulrich Drepper <drepper@redhat.com>
  5819. * sysdeps/unix/sysv/linux/ia64/lowlevellock.h
  5820. (lll_futex_timed_wait): Use int for futex value parameter.
  5821. (lll_futex_wake): Likewise.
  5822. (lll_futex_requeue): Likewise.
  5823. * sysdeps/unix/sysv/linux/lowlevellock.c (__lll_lock_wait):
  5824. Replace one memory operation with one register operation.
  5825. * tst-join4.c (do_test): Fix error message.
  5826. * tst-rwlock6.c (do_test): Use correct format specifier.
  5827. * sysdeps/unix/sysv/linux/i386/i486/lowlevelmutex.S
  5828. (__lll_mutex_lock_wait): Replace one memory operation with one
  5829. register operation.
  5830. * sysdeps/unix/sysv/linux/x86_64/lowlevelmutex.S
  5831. (__lll_mutex_lock_wait): Likewise.
  5832. * sysdeps/unix/sysv/linux/ia64/lowlevellock.h
  5833. (__lll_mutex_cond_lock): Add one to value parameter of
  5834. __lll_lock_wait to reflect reality in the futex syscall.
  5835. * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h
  5836. (lll_mutex_cond_lock): Likewise.
  5837. 2003-05-30 Jakub Jelinek <jakub@redhat.com>
  5838. * sysdeps/unix/sysv/linux/s390/lowlevellock.h (__lll_mutex_cond_lock):
  5839. New function.
  5840. (lll_mutex_cond_lock): Define.
  5841. 2003-05-29 Ulrich Drepper <drepper@redhat.com>
  5842. * Makefile (tests): Add tst-signal6.
  5843. * tst-signal6.c: New file.
  5844. * sysdeps/unix/sysv/linux/s390/lowlevellock.h
  5845. (__lll_mutex_unlock_force): New function
  5846. (lll_mutex_unlock_force): Use __lll_mutex_unlock_force.
  5847. * sysdeps/unix/sysv/linux/ia64/lowlevellock.h
  5848. (__lll_mutex_unlock_force): New function.
  5849. (lll_mutex_unlock_force): Use __lll_mutex_unlock_force.
  5850. * tst-rwlock7.c (do_test): Use correct format specifier.
  5851. * sysdeps/unix/sysv/linux/ia64/lowlevellock.h (lll_futex_requeue):
  5852. Find break parameter in correct asm argument.
  5853. 2003-05-27 Jakub Jelinek <jakub@redhat.com>
  5854. * sysdeps/unix/sysv/linux/ia64/lowlevellock.h (lll_futex_clobbers):
  5855. Remove out4.
  5856. (lll_futex_requeue): Fix __o3 constraint, return negative errno if
  5857. error occured.
  5858. * sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h (pthread_cond_t):
  5859. Add __mutex.
  5860. * sysdeps/unix/sysv/linux/s390/lowlevellock.h (FUTEX_REQUEUE,
  5861. lll_futex_requeue, lll_mutex_unlock_force): Define.
  5862. 2003-05-30 Jakub Jelinek <jakub@redhat.com>
  5863. * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h
  5864. (pthread_cond_t): Add __mutex.
  5865. * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h (FUTEX_REQUEUE,
  5866. lll_futex_requeue, lll_mutex_unlock_force): Define.
  5867. 2003-05-28 Kaz Kojima <kkojima@rr.iij4u.or.jp>
  5868. * sysdeps/sh/tcb-offsets.sym: Define MUTEX_FUTEX.
  5869. * sysdeps/unix/sysv/linux/sh/bits/pthreadtypes.h (pthread_cond_t):
  5870. Add __mutex field.
  5871. * sysdeps/unix/sysv/linux/sh/lowlevellock.h (SYSCALL_WITH_INST_PAD):
  5872. Define.
  5873. (lll_futex_wait, lll_futex_wake): Define.
  5874. * sysdeps/unix/sysv/linux/sh/sh4/lowlevellock.h: New file.
  5875. * sysdeps/unix/sysv/linux/sh/pthread_cond_broadcast.S: Try using
  5876. FUTEX_REQUEUE instead of FUTEX_WAIT.
  5877. * sysdeps/unix/sysv/linux/sh/pthread_cond_signal.S: Likewise.
  5878. * sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S: Remember
  5879. mutex which was used in condvar structure. Call
  5880. __pthread_mutex_cond_lock instead of __pthread_mutex_lock_internal.
  5881. * sysdeps/unix/sysv/linux/sh/pthread_cond_wait.S: Likewise.
  5882. * sysdeps/unix/sysv/linux/sh/pthread_rwlock_rdlock.S: Don't
  5883. include tcb-offsets.h. Read wakeup value in locked region.
  5884. Use the value of gbr register as THREAD_ID.
  5885. * sysdeps/unix/sysv/linux/sh/pthread_rwlock_wrlock.S: Likewise.
  5886. * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedrdlock.S: Likewise.
  5887. * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedwrlock.S: Likewise.
  5888. * sysdeps/unix/sysv/linux/sh/sem_trywait.S: Remove futex related
  5889. macros.
  5890. 2003-05-28 Ulrich Drepper <drepper@redhat.com>
  5891. * sysdeps/pthread/pthread_cond_broadcast.c
  5892. (__pthread_cond_broadcast): Fix typo: MAX_INT -> INT_MAX.
  5893. 2003-05-26 Ulrich Drepper <drepper@redhat.com>
  5894. * sysdeps/unix/sysv/linux/x86_64/pthread_cond_broadcast.S: Fix
  5895. typo in register name.
  5896. * sysdeps/unix/sysv/linux/x86_64/pthread_cond_signal.S: Use parameters
  5897. correctly. Actually use requeue. Little optimization.
  5898. * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: Store
  5899. mutex address early. Handle cancellation state as 32-bit value.
  5900. * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: Likewise.
  5901. Remove unnecessary label.
  5902. 2003-05-25 Ulrich Drepper <drepper@redhat.com>
  5903. * sysdeps/pthread/pthread_cond_broadcast.c: Try using FUTEX_REQUEUE
  5904. instead of FUTEX_WAIT.
  5905. * sysdeps/pthread/pthread_cond_signal.c: Likewise.
  5906. * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_broadcast.S: Likewise.
  5907. * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S: Likewise.
  5908. * sysdeps/unix/sysv/linux/x86_64/pthread_cond_broadcast.S: Likewise.
  5909. * sysdeps/unix/sysv/linux/x86_64/pthread_cond_signal.S: Likewise.
  5910. * sysdeps/pthread/pthread_cond_timedwait.c: Remember mutex which was
  5911. used in condvar structure. Call __pthread_mutex_cond_lock instead
  5912. of __pthread_mutex_lock_internal.
  5913. * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: Likewise.
  5914. * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: Likewise.
  5915. * sysdeps/pthread/pthread_cond_wait.c: Likewise.
  5916. (__condvar_cleanup): Always call __pthread_mutex_cond_lock.
  5917. * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Likewise.
  5918. * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: Likewise.
  5919. * sysdeps/unix/sysv/linux/Makefile (libpthread-sysdep_routines):
  5920. Add pthread_mutex_cond_lock.
  5921. * sysdeps/unix/sysv/linux/lowlevelcond.sym: Add dep_mutex.
  5922. * sysdeps/unix/sysv/linux/pthread_cond_mutex_lock.c: New file.
  5923. * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Define
  5924. lll_mutex_cond_lock.
  5925. * sysdeps/unix/sysv/linux/ia64/lowlevellock.h: Likewise.
  5926. * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
  5927. * sysdeps/unix/sysv/linux/i386/bits/pthreadtypes.h (pthread_cond_t):
  5928. Add __mutex field.
  5929. * sysdeps/unix/sysv/linux/ia64/bits/pthreadtypes.h: Likewise.
  5930. * sysdeps/unix/sysv/linux/x86_64/bits/pthreadtypes.h: Likewise.
  5931. * sysdeps/i386/tcb-offsets.sym: Define MUTEX_FUTEX.
  5932. * sysdeps/x86_64/tcb-offsets.sym: Likewise.
  5933. * pthreadP.h: Declare __pthread_mutex_cond_lock.
  5934. * pthread_mutex_lock.c: Define LLL_MUTEX_LOCK if not already defined.
  5935. Use it instead of lll_mutex_lock. If __pthread_mutex_lock is a
  5936. macro don't define aliases.
  5937. * cancellation.c: Remove __pthread_enable_asynccancel_2.
  5938. * pthreadP.h: Remove declaration of __pthread_enable_asynccancel_2.
  5939. * sysdeps/pthread/pthread_cond_timedwait.c: Use
  5940. __pthread_enable_asynccancel instead of __pthread_enable_asynccancel_2.
  5941. * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: Likewise.
  5942. * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: Likewise.
  5943. * sysdeps/pthread/pthread_cond_wait.c: Likewise.
  5944. * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Likewise.
  5945. * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: Likewise.
  5946. 2003-05-17 Ulrich Drepper <drepper@redhat.com>
  5947. * sem_open.c: Fix one endless loop. Implement correct semantics
  5948. wrt opening the same semaphore more then once.
  5949. * sem_close.c: Adjust for sem_open change.
  5950. * semaphoreP.h: Include <semaphore.h>. Define struct inuse_sem.
  5951. Declare __sem_mappings, __sem_mappings_lock, __sem_search.
  5952. * Makefile (tests): Add tst-sem7.
  5953. * tst-sem7.c: New file.
  5954. 2003-05-16 Roland McGrath <roland@redhat.com>
  5955. * sysdeps/unix/sysv/linux/register-atfork.c (libc_freeres_fn): Fix
  5956. uninitialized variable braino.
  5957. 2003-05-16 Ulrich Drepper <drepper@redhat.com>
  5958. * sysdeps/unix/sysv/linux/timer_gettime.c (timer_gettime): Correct
  5959. test for syscall availability.
  5960. * sysdeps/unix/sysv/linux/timer_settime.c (timer_settime): Set
  5961. __no_posix_timers to -1 if the syscalls don't exist.
  5962. * pthread_join.c (pthread_join): Set tid field of the joined
  5963. thread to -1. This isn't necessary but helps to recognize some
  5964. error conditions with almost no cost.
  5965. * allocatestack.c (FREE_P): Also negative values indicate an
  5966. unused stack.
  5967. * unwind.c: Include <unistd.h>.
  5968. 2003-05-14 Ulrich Drepper <drepper@redhat.com>
  5969. * Makefile ($(objpfx)$(multidir)): Add rule to create the directory.
  5970. 2003-05-14 Jakub Jelinek <jakub@redhat.com>
  5971. * Makefile (crti-objs, crtn-objs): New variables.
  5972. (omit-deps, extra-objs): Add crtn.
  5973. ($(objpfx)libpthread.so): Depend on both crti and crtn
  5974. and links to them in multidir.
  5975. ($(objpfx)crtn.S, $(objpfx)crtn.o): New rules.
  5976. 2003-05-12 Steven Munroe <sjmunroe@us.ibm.com>
  5977. * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h
  5978. (lll_mutex_unlock): Use atomic_exchange_rel.
  5979. 2003-05-11 Ulrich Drepper <drepper@redhat.com>
  5980. * cond-perf.c (cons): Add missing locking around setting of alldone.
  5981. 2003-05-10 Ulrich Drepper <drepper@redhat.com>
  5982. * sysdeps/unix/sysv/linux/i386/i486/sem_trywait.S: Remove futex
  5983. related macros.
  5984. * sysdeps/unix/sysv/linux/x86_64/sem_trywait.S: Likewise.
  5985. 2003-05-09 Ulrich Drepper <drepper@redhat.com>
  5986. * tst-sem6.c: New file.
  5987. * Makefile (tests): Add tst-sem6.
  5988. * sysdeps/unix/sysv/linux/ia64/lowlevellock.h (___lll_mutex_unlock):
  5989. Use atomic_exchange_rel instead of atomic_exchange.
  5990. * sysdeps/unix/sysv/linux/lowlevellock.c (lll_unlock_wake_cb):
  5991. Likewise.
  5992. * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Improve quality of
  5993. code for lll_futex_wait and lll_futex_wake in static apps. Use
  5994. vsyscall is possible.
  5995. * sysdeps/unix/sysv/linux/pthread_getaffinity.c: New file.
  5996. * sysdeps/unix/sysv/linux/pthread_setaffinity.c: New file.
  5997. * sysdeps/pthread/pthread.h: Declare pthread_getaffinity_np and
  5998. pthread_setaffinity_np.
  5999. * Versions [libpthread] (GLIBC_2.3.3): Add pthread_getaffinity_np
  6000. and pthread_setaffinity_np.
  6001. * Makefile (libpthread-routines): Add pthread_getaffinity and
  6002. pthread_setaffinity.
  6003. * allocatestack.c (allocate_stack): If ARCH_RETRY_MMAP is defined,
  6004. use it in case mmap to allocate the stack fails.
  6005. * sysdeps/unix/sysv/linux/x86_64/Makefile: Don't define
  6006. ARCH_MAP_FLAGS here.
  6007. * sysdeps/x86_64/pthreaddef.h: Define ARCH_MAP_FLAGS and
  6008. ARCH_RETRY_MMAP.
  6009. 2003-05-08 Ulrich Drepper <drepper@redhat.com>
  6010. * sysdeps/unix/sysv/linux/fork.c: Complete rewrite of the atfork
  6011. handler implementation. It is now lockless in fork().
  6012. * sysdeps/unix/sysv/linux/register-atfork.c: Likewise.
  6013. * sysdeps/unix/sysv/linux/unregister-atfork.c: Likewise.
  6014. * sysdeps/unix/sysv/linux/fork.h: Don't include <link.h>. Don't
  6015. declare the __fork_*_lists.
  6016. (struct fork_handler): Include pointers to all three functions.
  6017. Add next, refcntr and need_signal elements.
  6018. (__fork_handlers): New declaration.
  6019. (__register_atfork_malloc): Remove declaration.
  6020. (HAVE_register_atfork_malloc): Remove definition.
  6021. * sysdeps/unix/sysv/linux/libc_pthread_init.c: Remove
  6022. __pthread_child_handler variable.
  6023. (__libc_pthread_init): Use __register_atfork instead of explicitly
  6024. adding to the list.
  6025. * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Define lll_futex_wait
  6026. and lll_futex_wake.
  6027. * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
  6028. * unwind.c (unwind_cleanup): Print error message and then abort. This
  6029. function must never be reached.
  6030. * cond-perf.c: New file.
  6031. 2003-05-05 Ulrich Drepper <drepper@redhat.com>
  6032. * sysdeps/i386/tls.h (TLS_INIT_TP): Include \n in error message.
  6033. 2003-05-04 Roland McGrath <roland@redhat.com>
  6034. * Makefile ($(objpfx)../libc.so): New target.
  6035. 2003-05-02 Ulrich Drepper <drepper@redhat.com>
  6036. * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h
  6037. (pthread_condattr_t): Size is only an int, don't use long for
  6038. alignment.
  6039. (pthread_mutexattr_t): Likewise.
  6040. * sysdeps/unix/sysv/linux/ia64/bits/pthreadtypes.h: Likewise.
  6041. * sysdeps/unix/sysv/linux/x86_64/bits/pthreadtypes.h: Likewise.
  6042. * sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h: Likewise.
  6043. 2003-05-01 Ulrich Drepper <drepper@redhat.com>
  6044. * sysdeps/i386/tls.h: Define THREAD_ID.
  6045. * sysdeps/ia64/tls.h: Likewise.
  6046. * sysdeps/powerpc/tls.h: Likewise.
  6047. * sysdeps/s390/tls.h: Likewise.
  6048. * sysdeps/sh/tls.h: Likewise.
  6049. * sysdeps/x86_64/tls.h: Likewise.
  6050. * pthread_mutex_lock.c: Use THREAD_ID instead of THREAD_SELF to
  6051. record ownership.
  6052. * pthread_mutex_timedlock.c: Likewise.
  6053. * pthread_mutex_trylock.c: Likewise.
  6054. * pthread_mutex_unlock.c: Likewise.
  6055. * pthread_rwlock_trywrlock.c: Likewise.
  6056. * sysdeps/pthread/pthread_rwlocklock_rdlock.c: Likewise.
  6057. * sysdeps/pthread/pthread_rwlock_timedrdlock.c: Likewise.
  6058. * sysdeps/pthread/pthread_rwlock_timedwrlock.c: Likewise.
  6059. * sysdeps/pthread/pthread_rwlock_wrlock.c: Likewise.
  6060. * sysdeps/pthread/createthread.c (create_thread): Use CLONE_SYSVSEM
  6061. flag.
  6062. 2003-04-29 Jakub Jelinek <jakub@redhat.com>
  6063. * sysdeps/unix/sysv/linux/x86_64/bits/pthreadtypes.h
  6064. (__SIZEOF_PTHREAD_COND_T): Define to 48.
  6065. (pthread_rwlock_t): Add 16 bytes of pad instead of 8 before __flags.
  6066. * sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h (pthread_cond_t):
  6067. Make __align long long instead of long.
  6068. (pthread_rwlock_t): Formatting.
  6069. * sysdeps/unix/sysv/linux/ia64/bits/pthreadtypes.h
  6070. (pthread_rwlock_t): Formatting.
  6071. * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h
  6072. (pthread_cond_t): Make __align long long instead of long.
  6073. (pthread_rwlock_t): Move __flags field to the same position as in
  6074. linuxthreads.
  6075. 2003-04-30 Ulrich Drepper <drepper@redhat.com>
  6076. * tst-rwlock6.c (do_test): Use correct printf format specifiers.
  6077. * tst-rwlock7.c (do_test): Likewise.
  6078. 2003-04-26 Roland McGrath <roland@redhat.com>
  6079. * Makefile ($(test-modules)): Depend on $(common-objpfx)shlib.lds.
  6080. 2003-04-22 Jakub Jelinek <jakub@redhat.com>
  6081. * allocatestack.c (TLS_TPADJ): Add TLS_PRE_TCB_SIZE instead of
  6082. sizeof (struct pthread).
  6083. (allocate_stack): Subtract TLS_PRE_TCB_SIZE bytes instead of
  6084. 1 struct pthread.
  6085. * sysdeps/powerpc/tls.h (TLS_INIT_TCB_SIZE, TLS_TCB_SIZE): Define
  6086. to 0.
  6087. (TLS_INIT_TCB_ALIGN, TLS_TCB_ALIGN): Define to alignment of
  6088. struct pthread.
  6089. (TLS_PRE_TCB_SIZE): Increase to cover tcbhead_t preceeded by pad
  6090. to 32-bit bytes.
  6091. (INSTALL_DTV, GET_DTV, THREAD_DTV): tcbhead_t is immediately before
  6092. tcbp.
  6093. (TLS_INIT_TP, THREAD_SELF, INIT_THREAD_SELF): Don't add TLS_TCB_SIZE
  6094. unneccessarily.
  6095. (NO_TLS_OFFSET): Define.
  6096. * sysdeps/unix/sysv/linux/powerpc/createthread.c (TLS_VALUE): Don't
  6097. add TLS_TCB_SIZE unnecessarily.
  6098. 2003-04-22 Roland McGrath <roland@redhat.com>
  6099. * Makeconfig (shared-thread-library): Reverse link order to work
  6100. around linker bug.
  6101. 2003-04-22 Ulrich Drepper <drepper@redhat.com>
  6102. * semaphore.h: Fix typo in comment.
  6103. 2003-04-21 Ulrich Drepper <drepper@redhat.com>
  6104. * sysdeps/pthread/sigfillset.c: New file.
  6105. * init.c (__pthread_initialize_minimal): Don't block SIGTIMER.
  6106. * pthreadP.h: Make SIGTIMER and SIGCANCEL the same.
  6107. * sysdeps/pthread/pthread_sigmask.c: Remove handling of SIGTIMER.
  6108. * sysdeps/pthread/sigaction.c: Likewise.
  6109. * sysdeps/pthread/sigprocmask.c: New file.
  6110. * sysdeps/unix/sysv/linux/allocrtsig.c (current_rtmin): Define as
  6111. __SIGRTMIN+1.
  6112. * sysdeps/unix/sysv/linux/timer_routines.c (timer_helper_thread):
  6113. Block SIGTIMER. Also handle SI_TKILL events and terminate thread
  6114. in this case.
  6115. 2003-04-19 Ulrich Drepper <drepper@redhat.com>
  6116. * sysdeps/unix/sysv/linux/i386/dl-sysdep.h
  6117. (DL_SYSINFO_IMPLEMENTATION): Add .eh_frame information.
  6118. * sysdeps/unix/sysv/linux/unregister-atfork.c
  6119. (__unregister_atfork): Don't free memory not allocated dynamically.
  6120. * semaphore.h: Remove __THROW marker from cancellation points.
  6121. * nptl/sysdeps/pthread/pthread.h: Likewise.
  6122. 2003-04-18 Ulrich Drepper <drepper@redhat.com>
  6123. * sysdeps/pthread/pthread.h: Don't mark pthread_testcancel,
  6124. pthread_cancel, pthread_setcancelstate, and pthread_setcanceltype with
  6125. __THROW.
  6126. 2003-04-16 Jakub Jelinek <jakub@redhat.com>
  6127. * tst-cancel4.c (do_test): Use %zd instead of %d when printing cnt.
  6128. 2003-04-15 Roland McGrath <roland@redhat.com>
  6129. * forward.c (__pthread_unwind): Tweak to avoid warning.
  6130. 2003-04-15 Ulrich Drepper <drepper@redhat.com>
  6131. * pthreadP.h: Move THREAD_ATOMIC_* replacements to the top.
  6132. 2003-04-14 Ulrich Drepper <drepper@redhat.com>
  6133. * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: Don't
  6134. overflow CFA advance instructions.
  6135. * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: Likewise.
  6136. 2003-04-14 Jakub Jelinek <jakub@redhat.com>
  6137. * sysdeps/i386/tls.h: Rename LOCK to LOCK_PREFIX.
  6138. * sysdeps/i386/pthread_spin_lock.c: Likewise.
  6139. * sysdeps/x86_64/tls.h: Likewise. Define LOCK_PREFIX if not already
  6140. defined.
  6141. * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: Use
  6142. DW_CFA_advance_loc2 for .Laddl-.Lsubl.
  6143. * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Use
  6144. DW_CFA_advance_loc for .Laddl-.Lsubl.
  6145. 2003-04-13 Ulrich Drepper <drepper@redhat.com>
  6146. * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: Don't use
  6147. position-independent unwind data for static libraries.
  6148. Add missing unwind info. Add comments.
  6149. * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: Add unwind info.
  6150. * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: Likewise.
  6151. * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Likewise.
  6152. * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: Likewise.
  6153. 2003-04-12 Ulrich Drepper <drepper@redhat.com>
  6154. * Makefile: Make sure all cancellation points are compiled with
  6155. exception and asynchronous unwind tables.
  6156. * sysdeps/x86_64/tls.h (THREAD_SETMEM): Word around compiler bug
  6157. which mishandles loading of global object addresses in PIC.
  6158. (THREAD_SETMEM_NC): Likewise.
  6159. 2003-04-11 Ulrich Drepper <drepper@redhat.com>
  6160. * pthread.h: Define new data structure for cleanup buffer. Declare
  6161. new cleanup handler interfaces.
  6162. * descr.h: Include <unwind.h> if necessary. Define pthread_unwind_buf.
  6163. (struct pthread): Add cleanup_jmp_buf pointer. Define
  6164. HAVE_CLEANUP_JMP_BUF and not HAVE_CANCELBUF.
  6165. * pthreadP.h: Declare __pthread_unwind. Define __do_cancel to use
  6166. it. Declare old cleanup handler installation functions.
  6167. * cleanup.c: Rewrite. Install handler for unwind-based cleanup
  6168. handling.
  6169. * cleanup_defer.c: Likewise.
  6170. * cleanup_compat.c: New file. Old cleanup code.
  6171. * cleanup_def_compat.c: New file. Old cleanup code.
  6172. * pthread_create.c (start_thread): Initialize cleanup_jmp_buf element
  6173. if own thread descriptor.
  6174. * unwind.c: New file.
  6175. * forward.c: Add __pthread_unwind.
  6176. * init.c (pthread_functions): Add __pthread_unwind.
  6177. * sysdeps/pthread/pthread-functions.s (struct pthread_functions):
  6178. Add ptr___pthread_unwind.
  6179. * Versions [GLIBC_2.3.3] (libpthread): Export new cleanup handling
  6180. and unwind function.
  6181. * Makefile (libpthread-routines): Add cleanup_compat,
  6182. cleanup_def_compat, and unwind. Define CFLAGS to enable unwind
  6183. table generation if necessary.
  6184. * version.c: Record whether unwind support is compiled in.
  6185. * sysdeps/pthread/configure.in: Add checks for unwind unterfaces.
  6186. * sysdeps/pthread/bits/libc-lock.h: Add prototypes of the old cleanup
  6187. handler interfaces.
  6188. * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: Add quite a bit of
  6189. complication to generate unwind information for syscall wrappers.
  6190. * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Likewise.
  6191. * sysdeps/unix/sysv/linux/i386/bits/pthreadtypes.h: Define
  6192. __cleanup_fct_attribute.
  6193. * Makefile: Add rules to build and run tst-cleanup0.
  6194. * tst-cleanup0.c: New file.
  6195. * tst-cleanup0.expect: New file.
  6196. * pthread_create.c (deallocate_tsd): Don't take parameter. Adjust
  6197. caller. Optimize to avoid often unecessary local variable.
  6198. 2003-04-11 Roland McGrath <roland@redhat.com>
  6199. * Makefile ($(objpfx)multidir.mk): New target, generated makefile that
  6200. sets variable `multidir'; include that.
  6201. (generated): Add it.
  6202. ($(objpfx)$(multidir)/crti.o): New target.
  6203. [$(multidir) != .] (generated-dirs, extra-objs, omit-deps): Add it.
  6204. 2003-04-11 Ulrich Drepper <drepper@redhat.com>
  6205. * tst-attr2.c (do_test): Add cast to avoid warning.
  6206. * tst-mutex4.c (do_test): Likewise.
  6207. 2003-04-10 Ulrich Drepper <drepper@redhat.com>
  6208. * sysdeps/unix/sysv/linux/fork.c (__libc_fork): Reset CPU clocks
  6209. in child.
  6210. 2003-04-09 Ulrich Drepper <drepper@redhat.com>
  6211. * Makefile (tests): Add tst-detach1.
  6212. * tst-detach1.c: New file.
  6213. 2003-04-08 Ulrich Drepper <drepper@redhat.com>
  6214. * sysdeps/pthread/pthread.h: Remove duplicate
  6215. pthread_cleanup_{push,pop} definitions.
  6216. * tst-barrier2.c: Eliminate warnings.
  6217. * tst-cancel4.c: Likewise.
  6218. * tst-cond4.c: Likewise.
  6219. * tst-cond6.c: Likewise.
  6220. * tst-detach1.c: Likewise.
  6221. * tst-rwlock4.c: Likewise.
  6222. * tst-rwlock6.c: Likewise.
  6223. * tst-rwlock7.c: Likewise.
  6224. * tst-sem3.c: Likewise.
  6225. * tst-spin2.c: Likewise.
  6226. * tst-umask1.c: Likewise.
  6227. 2003-04-07 Ulrich Drepper <drepper@redhat.com>
  6228. * pthread_detach.c (pthread_detach): Fix test for invalid TID.
  6229. 2003-04-06 Ulrich Drepper <drepper@redhat.com>
  6230. * descr.h (struct pthread): Move cancelhandling member to the front.
  6231. 2003-04-05 Ulrich Drepper <drepper@redhat.com>
  6232. * sysdeps/unix/sysv/linux/register-atfork.c: Define malloc_prepare,
  6233. malloc_parent, and malloc_child statically.
  6234. (__register_atfork_malloc): New function.
  6235. (free_mem): Don't free any of the malloc_* variables on the list.
  6236. * sysdeps/unix/sysv/linux/fork.h: Declare __register_atfork_malloc.
  6237. Define HAVE_register_atfork_malloc.
  6238. 2003-04-04 Ulrich Drepper <drepper@redhat.com>
  6239. * sysdeps/pthread/createthread.c (create_thread): Add some more
  6240. comments explaining when to set multiple_threads and when not.
  6241. * pthreadP.h: Define THREAD_ATOMIC_CMPXCHG_VAL and
  6242. THREAD_ATOMIC_BIT_SET if not already defined.
  6243. * sysdeps/i386/tls.h: Define THREAD_ATOMIC_CMPXCHG_VAL and
  6244. THREAD_ATOMIC_BIT_SET:
  6245. * sysdeps/x86_64/tls.h: Likewise.
  6246. * cleanup_defer.c (_pthread_cleanup_push_defer): Rewrite to use
  6247. THREAD_ATOMIC_CMPXCHG_VAL.
  6248. (_pthread_cleanup_pop_restore): Likewise.
  6249. * cancellation.c (__pthread_enable_asynccancel): Likewise.
  6250. (__pthread_enable_asynccancel_2): Likewise.
  6251. (__pthread_disable_asynccancel): Likewise.
  6252. * libc-cancellation.c (__libc_enable_asynccancel): Likewise.
  6253. (__libc_disable_asynccancel): Likewise.
  6254. * init.c (sigcancel_handler): Likewise.
  6255. * pthread_setcancelstate.c (__pthread_setcancelstate): Likewise.
  6256. * pthread_setcanceltype.c (__pthread_setcanceltype): Likewise.
  6257. 2003-04-03 Ulrich Drepper <drepper@redhat.com>
  6258. * init.c (sigcancel_handler): Don't set EXITING_BIT here.
  6259. * libc-cancellation.c (__libc_enable_asynccancel): Likewise.
  6260. * pthreadP.h (__do_cancel): Set EXITING_BIT here.
  6261. * Makefile (tests): Add tst-cancel11.
  6262. * tst-cancel11.c: New file.
  6263. 2003-04-01 Ulrich Drepper <drepper@redhat.com>
  6264. * pthread_create.c (deallocate_tsd): Clear/free memory after the last
  6265. round, not the first. Use specific_used flag instead of local
  6266. found_nonzero variable. Use THREAD_[SG]ETMEM where possible.
  6267. (__free_tcb): Don't call deallocate_tsd here.
  6268. (start_thread): Call deallocate_tsd here.
  6269. * pthread_setspecific.c: Set specific_used flag really only when
  6270. needed.
  6271. * Makefile (tests): Add tst-tsd3.c and tst-tsd4.
  6272. * tst-tsd3.c: New file.
  6273. * tst-tsd4.c: New file.
  6274. 2003-03-31 Ulrich Drepper <drepper@redhat.com>
  6275. * sysdeps/unix/sysv/linux/ia64/lowlevellock.h (__lll_mutex_lock):
  6276. Use atomic_exchange_and_add instead of __lll_add.
  6277. (__lll_mutex_timedlock): Likewise.
  6278. Patch by Ian Wienand.
  6279. 2003-03-24 Steven Munroe <sjmunroe@us.ibm.com>
  6280. * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h
  6281. (SINGLE_THREAD_P): Fix typo.
  6282. * tst-cancel-wrappers.sh: Handle '.'ed symbols.
  6283. 2003-03-31 Ulrich Drepper <drepper@redhat.com>
  6284. * Makefile (tests): Add tst-align.
  6285. * tst-align.c: New file.
  6286. * sysdeps/i386/Makefile: Define CFLAGS-tst-align.
  6287. * sysdeps/i386/tls.h (CALL_THREAD_FCT): Align stack of called
  6288. function correctly.
  6289. * tst-tsd2.c: Add casts to avoid warnings.
  6290. 2003-03-30 Ulrich Drepper <drepper@redhat.com>
  6291. * descr.h (struct pthread): Move most often used elements to the front.
  6292. 2003-03-29 Ulrich Drepper <drepper@redhat.com>
  6293. * Makefile (libpthread-routines): Add pthread_atfork.
  6294. (libpthread-static-only-routines): Add pthread_atfork.
  6295. 2003-03-28 Kaz Kojima <kkojima@rr.iij4u.or.jp>
  6296. * sysdeps/sh/tls.h: Include nptl/descr.h after the definition
  6297. of TLS_DTV_AT_TP.
  6298. (INSTALL_DTV): Add parens.
  6299. (THREAD_GETMEM, THREAD_GETMEM_NC, THREAD_SETMEM, THREAD_SETMEM_NC):
  6300. Use passed descr instead of THREAD_SELF.
  6301. * sysdeps/unix/sysv/linux/sh/lowlevelmutex.S
  6302. (__lll_mutex_timedlock_wait): Correct expected value after
  6303. spurious wakeup.
  6304. * sysdeps/unix/sysv/linux/sh/pthread_cond_broadcast.S:
  6305. Release lock before waking up the waiters.
  6306. * sysdeps/unix/sysv/linux/sh/pthread_cond_wait.S: Correct exit
  6307. criteria. Reorderstruct passed to cleanup handler. Fix
  6308. handling of cancellation and failung pthread_mutex_unlock call.
  6309. Use __pthread_enable_asynccancel_2 instead of
  6310. __pthread_enable_asynccancel.
  6311. * sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S: Likewise.
  6312. Return result of lock re-get if it fails.
  6313. * sysdeps/unix/sysv/linux/sh/pthread_once.S: Fix wrong argument
  6314. for __pthread_cleanup_push.
  6315. * sysdeps/unix/sysv/linux/sh/pthread_rwlock_rdlock.S: Fix
  6316. completely broken rwlock implementation.
  6317. * sysdeps/unix/sysv/linux/sh/pthread_rwlock_wrlock.S: Likewise.
  6318. * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedrdlock.S: Likewise.
  6319. * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedwrlock.S: Likewise.
  6320. * sysdeps/unix/sysv/linux/sh/pthread_rwlock_unlock.S: Likewise.
  6321. * sysdeps/unix/sysv/linux/sh/pthread_rwlock_wrlock.S: Likewise.
  6322. * sysdeps/unix/sysv/linux/sh/sem_post.S: Fix error value. Use
  6323. versioned_symbol macro.
  6324. * sysdeps/unix/sysv/linux/sh/sem_trywait.S: Use versioned_symbol macro.
  6325. * sysdeps/unix/sysv/linux/sh/sem_wait.S: Likewise.
  6326. 2003-03-27 Ulrich Drepper <drepper@redhat.com>
  6327. * sysdeps/unix/sysv/linux/kernel-posix-timers.h: Don't declare
  6328. __timer_helper_thread. Declare __start_helper_thread, __helper_once,
  6329. and __helper_tid.
  6330. (struct timer): Remove th and bar field.
  6331. * sysdeps/unix/sysv/linux/timer_create.c (timer_create): Remove
  6332. debugging code. Create only one helper thread.
  6333. * sysdeps/unix/sysv/linux/timer_delete.c (timer_delete): Don't kill
  6334. helper thread.
  6335. * sysdeps/unix/sysv/linux/timer_routines.c (timer_helper_thread):
  6336. Renamed. Define statically. Use thread info from siginfo.
  6337. (__helper_once): New variable.
  6338. (__helper_tid): New variable.
  6339. (__reset_helper_control): New function.
  6340. (__start_helper_thread): New function.
  6341. * pthread_create.c (start_thread): Don't use setjmp inside
  6342. __builtin_expect to work around gcc bug.
  6343. * sysdeps/unix/sysv/linux/timer_delete.c (timer_delete): Even if
  6344. timer_delete syscall fails, but not with ENOSYS, set
  6345. __no_posix_timers.
  6346. * sysdeps/unix/sysv/linux/timer_settime.c [!__ASSUME_POSIX_TIMERS]
  6347. (timer_settime): Fix typo.
  6348. * sysdeps/unix/sysv/linux/timer_getoverr.c
  6349. [!__ASSUME_POSIX_TIMERS] (timer_getoverrun): Likewise.
  6350. 2003-03-27 Jakub Jelinek <jakub@redhat.com>
  6351. * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: Fix
  6352. offset of cleanupbuf.__prev.
  6353. 2003-03-26 Jakub Jelinek <jakub@redhat.com>
  6354. * sysdeps/unix/sysv/linux/timer_getoverr.c: Fix typo in name
  6355. of included file.
  6356. 2003-03-26 Ulrich Drepper <drepper@redhat.com>
  6357. * sysdeps/unix/sysv/linux/timer_create.c (timer_create): If EVP ==
  6358. NULL provide default definition to syscall.
  6359. 2003-03-25 Roland McGrath <roland@redhat.com>
  6360. * sysdeps/pthread/posix-timer.h (TIMER_MAX): Define if not defined.
  6361. (timer_id2ptr): Fix typo.
  6362. 2003-03-25 Ulrich Drepper <drepper@redhat.com>
  6363. * pthreadP.h: Define SIGCANCEL and SIGTIMER.
  6364. * sysdeps/i386/pthreaddef.h: Remove SIGCANCEL definition.
  6365. * sysdeps/ia64/pthreaddef.h: Likewise.
  6366. * sysdeps/powerpc/pthreaddef.h: Likewise.
  6367. * sysdeps/s390/pthreaddef.h: Likewise.
  6368. * sysdeps/sh/pthreaddef.h: Likewise.
  6369. * sysdeps/x86_64/pthreaddef.h: Likewise.
  6370. * init.c (__pthread_initialize_minimal): Block SIGTIMER.
  6371. * sysdeps/pthread/sigaction.c: Also prevent SIGTIMER handler from
  6372. being changed.
  6373. * sysdeps/pthread/pthread_sigmask.c (pthread_sigmask): Make sure
  6374. SIGTIMER is not unblocked.
  6375. * sysdeps/unix/sysv/linux/allocrtsig.c (current_rtmin): One more
  6376. RT signal taken.
  6377. * sysdeps/unix/sysv/linux/pthread_kill.c: Do not allow SIGTIMER to
  6378. be send.
  6379. * sysdeps/pthread/posix-timer.h (timer_id2ptr, timer_ptr2id): Just
  6380. pass pointer through as ID.
  6381. * sysdeps/unix/sysv/linux/bits/local_lim.h (TIMER_MAX): Removed.
  6382. * sysdeps/unix/sysv/linux/kernel-posix-timers.h: New file.
  6383. * sysdeps/unix/sysv/linux/timer_create.c: New file.
  6384. * sysdeps/unix/sysv/linux/timer_delete.c: New file.
  6385. * sysdeps/unix/sysv/linux/timer_getoverr.c: New file.
  6386. * sysdeps/unix/sysv/linux/timer_gettime.c: New file.
  6387. * sysdeps/unix/sysv/linux/timer_routines.c: New file.
  6388. * sysdeps/unix/sysv/linux/timer_settime.c: New file.
  6389. * sysdeps/unix/sysv/linux/ia64/Versions: New file.
  6390. * sysdeps/unix/sysv/linux/ia64/timer_create.c: New file.
  6391. * sysdeps/unix/sysv/linux/ia64/timer_delete.c: New file.
  6392. * sysdeps/unix/sysv/linux/ia64/timer_getoverr.c: New file.
  6393. * sysdeps/unix/sysv/linux/ia64/timer_gettime.c: New file.
  6394. * sysdeps/unix/sysv/linux/ia64/timer_settime.c: New file.
  6395. * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions: New file.
  6396. * sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_create.c: New file.
  6397. * sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_delete.c: New file.
  6398. * sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_getoverr.c: New file.
  6399. * sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_gettime.c: New file.
  6400. * sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_settime.c: New file.
  6401. * sysdeps/unix/sysv/linux/s390/s390-64/Versions: New file.
  6402. * sysdeps/unix/sysv/linux/s390/s390-64/timer_create.c: New file.
  6403. * sysdeps/unix/sysv/linux/s390/s390-64/timer_delete.c: New file.
  6404. * sysdeps/unix/sysv/linux/s390/s390-64/timer_getoverr.c: New file.
  6405. * sysdeps/unix/sysv/linux/s390/s390-64/timer_gettime.c: New file.
  6406. * sysdeps/unix/sysv/linux/s390/s390-64/timer_settime.c: New file.
  6407. * sysdeps/unix/sysv/linux/x86_64/Versions: New file.
  6408. * sysdeps/unix/sysv/linux/x86_64/compat-timer.h: New file.
  6409. * sysdeps/unix/sysv/linux/x86_64/timer_create.c: New file.
  6410. * sysdeps/unix/sysv/linux/x86_64/timer_delete.c: New file.
  6411. * sysdeps/unix/sysv/linux/x86_64/timer_getoverr.c: New file.
  6412. * sysdeps/unix/sysv/linux/x86_64/timer_gettime.c: New file.
  6413. * sysdeps/unix/sysv/linux/x86_64/timer_settime.c: New file.
  6414. * pthreadP.h: Remove FRAME_LEFT definition.
  6415. * cleanup.c (_pthread_cleanup_push): Don't check for reference to
  6416. already left frame. Programs which have this problem are not POSIX
  6417. compliant.
  6418. * cleanup_defer.c (_pthread_cleanup_push_defer): Likewise.
  6419. 2003-03-24 Ulrich Drepper <drepper@redhat.com>
  6420. * sysdeps/pthread/tst-timer.c: Check return values of the
  6421. functions we test.
  6422. 2003-03-23 Roland McGrath <roland@redhat.com>
  6423. * tst-tls3.c (do_test) [! HAVE___THREAD]: Don't test anything.
  6424. * tst-tls3mod.c: Likewise.
  6425. * tst-tls1.c: Likewise.
  6426. * tst-tls2.c: Likewise.
  6427. * tst-mutex5.c (do_test): Unlock before destroy, otherwise we invoke
  6428. undefined behavior.
  6429. * tst-join5.c (tf1, tf2): Add a cast.
  6430. * Makeconfig (includes): Append -I$(..)nptl to this variable.
  6431. * tst-barrier2.c (do_test) [! _POSIX_THREAD_PROCESS_SHARED]:
  6432. Don't test anything.
  6433. * tst-cond4.c: Likewise.
  6434. * tst-cond6.c: Likewise.
  6435. * tst-flock2.c: Likewise.
  6436. * tst-mutex4.c: Likewise.
  6437. * tst-rwlock4.c: Likewise.
  6438. * tst-signal1.c: Likewise.
  6439. * tst-spin2.c: Likewise.
  6440. * tst-cond11.c [! _POSIX_CLOCK_SELECTION]: Likewise.
  6441. * tst-mutex4.c: Use test-skeleton.c.
  6442. * tst-spin2.c: Likewise.
  6443. * tst-sysconf.c: Likewise.
  6444. * tst-barrier2.c: Likewise.
  6445. * tst-cond4.c: Likewise.
  6446. * tst-cond6.c: Likewise.
  6447. * tst-rwlock4.c: Likewise.
  6448. * tst-unload.c: Likewise.
  6449. * tst-flock2.c (do_test): Use return instead of exit.
  6450. 2003-03-22 Jakub Jelinek <jakub@redhat.com>
  6451. * sysdeps/unix/sysv/linux/fork.c (__fork): Add libc_hidden_def.
  6452. 2003-03-21 Ulrich Drepper <drepper@redhat.com>
  6453. * sysdeps/unix/sysv/linux/ia64/lowlevellock.h
  6454. (__lll_mutex_trylock): Use atomic_compare_and_exchange_val_acq
  6455. instead of __lll_compare_and_swap.
  6456. * sysdeps/unix/sysv/linux/ia64/pthread_once.c (__pthread_once):
  6457. Likewise.
  6458. Removed definition if __lll_compare_and_swap.
  6459. * cancellation.c: Adjust for new form of compare&exchange macros.
  6460. * cleanup_defer.c: Likewise.
  6461. * init.c: Likewise.
  6462. * libc-cancellation.c: Likewise.
  6463. * old_pthread_cond_broadcast.c: Likewise.
  6464. * old_pthread_cond_signal.c: Likewise.
  6465. * old_pthread_cond_timedwait.c: Likewise.
  6466. * old_pthread_cond_wait.c: Likewise.
  6467. * pthread_cancel.c: Likewise.
  6468. * pthread_create.c: Likewise.
  6469. * pthread_detach.c: Likewise.
  6470. * pthread_join.c: Likewise.
  6471. * pthread_key_delete.c: Likewise.
  6472. * pthread_setcancelstate.c: Likewise.
  6473. * pthread_setcanceltype.c: Likewise.
  6474. * pthread_timedjoin.c: Likewise.
  6475. * pthread_tryjoin.c: Likewise.
  6476. * sysdeps/pthread/createthread.c: Likewise.
  6477. 2003-03-20 Ulrich Drepper <drepper@redhat.com>
  6478. * sysdeps/unix/sysv/linux/ia64/lowlevellock.h: Include <atomic.h>.
  6479. Remove __lll_add, __lll_dec_if_positive, and __lll_test_and_set
  6480. definitions. Replace uses with calls to atomic_* functions.
  6481. * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Likewise.
  6482. * sysdeps/unix/sysv/linux/lowlevellock.c: Replace __lll_add and
  6483. __lll_test_and_set calls with atomic_exchange_and_add and
  6484. atomic_exchange calls respectively.
  6485. * sysdeps/unix/sysv/linux/sem_post.c: Likewise.
  6486. * sysdeps/unix/sysv/linux/sem_timedwait.c: Likewise.
  6487. * sysdeps/unix/sysv/linux/sem_trywait.c: Likewise.
  6488. * sysdeps/unix/sysv/linux/sem_wait.c: Likewise.
  6489. * sysdeps/unix/sysv/linux/ia64/pthread_once.c: Likewise.
  6490. * sysdeps/unix/sysv/linux/ia64/sem_port.c: Likewise.
  6491. * sysdeps/unix/sysv/linux/powerpc/pthread_once.c: Likewise.
  6492. * allocatestack.c (allocate_stack): Assume atomic_exchange_and_add
  6493. returns the old value.
  6494. 2003-03-20 Martin Schwidefsky <sky@mschwid3.boeblingen.de.ibm.com>
  6495. * sysdeps/s390/pthread_spin_lock.c (pthread_spin_lock): Use type
  6496. int for variable OLDVAL and correct inline assembler contraint.
  6497. * sysdeps/s390/pthread_spin_trylock.c (pthread_spin_trylock): Use
  6498. type int for variable OLD.
  6499. * sysdeps/s390/tls.h (TLS_MULTIPLE_THREADS_IN_TCB): Define it
  6500. only for s390-32.
  6501. * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h
  6502. (SINGLE_THREAD_P): Use global variable __local_multiple_threads
  6503. instead of multiple_threads field in the TCB.
  6504. 2003-03-19 Ulrich Drepper <drepper@redhat.com>
  6505. * sysdeps/i386/i686/bits/atomic.h: Removed.
  6506. * sysdeps/i386/i586/bits/atomic.h: Removed.
  6507. * sysdeps/i386/i486/bits/atomic.h: Removed. Moved to glibc.
  6508. * sysdeps/x86_64/bits/atomic.h: Removed. Moved to glibc.
  6509. * sysdeps/s390/bits/atomic.h: Removed. Moved to glibc.
  6510. * sysdeps/sh/bits/atomic.h: Removed. Moved to glibc.
  6511. * sysdeps/ia64/bits/atomic.h: Removed. Moved to glibc.
  6512. * sysdeps/powerpc/bits/atomic.h: Removed. Moved to glibc.
  6513. * atomic.h: Removed. Moved to glibc.
  6514. * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: Add
  6515. support for clock selection.
  6516. * sysdeps/pthread/pthread_cond_broadcast.c: Release lock before
  6517. signalling waiters.
  6518. 2003-03-18 Roland McGrath <roland@redhat.com>
  6519. * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h (__lll_test_and_set):
  6520. Add __lll_rel_instr first. Add memory clobber.
  6521. (lll_mutex_unlock): Use __lll_test_and_set.
  6522. From Paul Mackerras <paulus@samba.org>.
  6523. * sysdeps/powerpc/tls.h (TLS_MULTIPLE_THREADS_IN_TCB): Define
  6524. unconditionally.
  6525. * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h
  6526. (SINGLE_THREAD_P): Add `header.' prefix.
  6527. From Paul Mackerras <paulus@samba.org>.
  6528. * Versions (libpthread: GLIBC_2.3.2): Move pthread_tryjoin_np and
  6529. pthread_timedjoin_np to ...
  6530. (libpthread: GLIBC_2.3.3): ... here.
  6531. (libpthread: GLIBC_2.2): Move pthread_barrierattr_getpshared there too.
  6532. * sysdeps/pthread/pthread_cond_timedwait.c (__pthread_cond_timedwait):
  6533. Avoid shadowing VAL variable.
  6534. * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h (__lll_test_and_set):
  6535. New macro.
  6536. 2003-03-18 Ulrich Drepper <drepper@redhat.com>
  6537. * Makefile (tests): Add tst-cond11.
  6538. * tst-cond11.c: New file.
  6539. * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Reorder
  6540. struct passed to cleanup handler to eliminate one more
  6541. instruction.
  6542. * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: Likewise.
  6543. * sysdeps/unix/sysv/linux/x86_64/bits/pthreadtypes.h
  6544. (pthrad_cond_t): Replace __unused field with __clock.
  6545. * sysdeps/pthread/pthread_cond_wait.c: Release condvar lock before
  6546. waken all waiters in cleanup handler.
  6547. * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: Likewise.
  6548. * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Likewise.
  6549. * pthread_condattr_getclock.c: New file.
  6550. * pthread_condattr_setclock.c: New file.
  6551. * sysdeps/pthread/pthread.h: Declare these new functions.
  6552. * Versions [GLIBC_2.3.3] (libpthread): Add the new functions.
  6553. * Makefile (libpthread-routines): Add the new functions.
  6554. * sysdeps/unix/sysv/linux/internaltypes.h (struct pthread_condattr):
  6555. Renamed field to value. Document use of the bits.
  6556. * pthread_condattr_getpshared.c: Adjust for struct pthread_condattr
  6557. change.
  6558. * pthread_condattr_setpshared.c: Likewise.
  6559. * pthread_cond_init.c (__pthread_cond_init): Initialized __clock field.
  6560. * sysdeps/unix/sysv/linux/lowlevelcond.sym: Add cond_clock symbol.
  6561. * sysdeps/unix/sysv/linux/i386/bits/pthreadtypes.h (pthread_cond_t):
  6562. Add __clock field.
  6563. * sysdeps/unix/sysv/linux/ia64/bits/pthreadtypes.h: Likewise.
  6564. * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: Likewise.
  6565. * sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h: Likewise.
  6566. * sysdeps/unix/sysv/linux/sh/bits/pthreadtypes.h: Likewise.
  6567. * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S:
  6568. Implement clock selection.
  6569. * sysdeps/pthread/pthread_cond_timedwait.c: Likewise.
  6570. * pthread-errnos.sym: Add ENOSYS.
  6571. * sysdeps/unix/sysv/linux/bits/posix_opt.h: Define
  6572. _POSIX_CLOCK_SELECTION.
  6573. * sysdeps/unix/sysv/linux/i386/bits/posix_opt.h: Likewise.
  6574. * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: Remove
  6575. invalid .size directive.
  6576. 2003-03-17 Roland McGrath <roland@redhat.com>
  6577. * sysdeps/unix/sysv/linux/lowlevellock.c (__lll_lock_wait):
  6578. Formatting tweaks.
  6579. 2003-03-17 Ulrich Drepper <drepper@redhat.com>
  6580. * sysdeps/unix/sysv/linux/ia64/pthread_once.c: Use __builtin_expect.
  6581. Use __lll_add instead of spelling it out. Use protected symbol names.
  6582. * sysdeps/unix/sysv/linux/ia64/sem_post.c: Use __builtin_expect.
  6583. Use __lll_add.
  6584. * sysdeps/unix/sysv/linux/ia64/lowlevellock.h (__lll_compare_and_swap):
  6585. Renamed from lll_compare_and_swap. Use new name where necessary.
  6586. (__lll_add): Defined.
  6587. (__lll_dec_if_positive): Defined.
  6588. (__lll_test_and_set): Defined.
  6589. * sysdeps/ia64/pthread_spin_init.c: Removed.
  6590. * sysdeps/unix/sysv/linux/ia64/lowlevelmutex.c: Removed.
  6591. * sysdeps/unix/sysv/linux/ia64/sem_trywait.c: Removed.
  6592. * sysdeps/unix/sysv/linux/ia64/sem_wait.c: Removed.
  6593. * sysdeps/unix/sysv/linux/ia64/lowlevellock.c: Removed.
  6594. * sysdeps/unix/sysv/linux/ia64/libc-lowlevellock.c: Removed.
  6595. * sysdeps/unix/sysv/linux/ia64/libc-lowlevelmutex.c: Removed.
  6596. * sysdeps/unix/sysv/linux/ia64/sem_timedwait.c: Removed.
  6597. * sysdeps/ia64/bits/atomic.h: Add __builtin_expect where appropriate.
  6598. * sysdeps/ia64/pthread_spin_unlock.c (pthread_spin_unlock): Use
  6599. __sync_lock_release_si.
  6600. Patch by Jakub Jelinek.
  6601. * sysdeps/unix/sysv/linux/lowlevellock.c (__lll_timedlock_wait):
  6602. Fix timeout handling.
  6603. (__lll_timedwait_tid): Likewise.
  6604. (lll_unlock_wake_cb): Wake up other waiters if necessary.
  6605. Patch by Jakub Jelinek.
  6606. * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Pretty printing.
  6607. 2003-03-17 Roland McGrath <roland@redhat.com>
  6608. PowerPC port contributed by Paul Mackerras <paulus@samba.org>.
  6609. * sysdeps/pthread/pthread_spin_init.c: New file.
  6610. * sysdeps/pthread/pthread_spin_unlock.c: New file.
  6611. * sysdeps/powerpc/Makefile: New file.
  6612. * sysdeps/powerpc/pthread_spin_lock.c: New file.
  6613. * sysdeps/powerpc/pthread_spin_trylock.c: New file.
  6614. * sysdeps/powerpc/pthreaddef.h: New file.
  6615. * sysdeps/powerpc/tcb-offsets.sym: New file.
  6616. * sysdeps/powerpc/td_ta_map_lwp2thr.c: New file.
  6617. * sysdeps/powerpc/tls.h: New file.
  6618. * sysdeps/powerpc/bits/atomic.h: New file.
  6619. * sysdeps/unix/sysv/linux/libc-lowlevelmutex.c: New file.
  6620. * sysdeps/unix/sysv/linux/libc-lowlevellock.c: New file.
  6621. * sysdeps/unix/sysv/linux/lowlevellock.c: New file.
  6622. * sysdeps/unix/sysv/linux/lowlevelmutex.c: New file.
  6623. * sysdeps/unix/sysv/linux/sem_post.c: New file.
  6624. * sysdeps/unix/sysv/linux/sem_timedwait.c: New file.
  6625. * sysdeps/unix/sysv/linux/sem_trywait.c: New file.
  6626. * sysdeps/unix/sysv/linux/sem_wait.c: New file.
  6627. * sysdeps/unix/sysv/linux/powerpc/Makefile: New file.
  6628. * sysdeps/unix/sysv/linux/powerpc/createthread.c: New file.
  6629. * sysdeps/unix/sysv/linux/powerpc/fork.c: New file.
  6630. * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: New file.
  6631. * sysdeps/unix/sysv/linux/powerpc/pt-vfork.S: New file.
  6632. * sysdeps/unix/sysv/linux/powerpc/pthread_once.c: New file.
  6633. * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: New file.
  6634. * sysdeps/unix/sysv/linux/powerpc/bits/semaphore.h: New file.
  6635. * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h: New file.
  6636. * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: New file.
  6637. * sysdeps/unix/sysv/linux/ia64/lowlevellock.c: Use __gettimeofday,
  6638. not gettimeofday.
  6639. * sysdeps/unix/sysv/linux/ia64/lowlevelmutex.c: Likewise.
  6640. * sysdeps/unix/sysv/linux/ia64/sem_timedwait.c: Likewise.
  6641. * sysdeps/unix/sysv/linux/s390/lowlevellock.c: Likewise.
  6642. * sysdeps/unix/sysv/linux/s390/lowlevelmutex.c: Likewise.
  6643. * sysdeps/unix/sysv/linux/s390/sem_timedwait.c: Likewise.
  6644. 2003-03-17 Ulrich Drepper <drepper@redhat.com>
  6645. * sysdeps/pthread/pthread_cond_wait.c: Correct exit criteria.
  6646. * sysdeps/pthread/pthread_cond_timedwait.c: Likewise.
  6647. * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: Likewise.
  6648. * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Likewise.
  6649. Patch by Ewald Snel <ewald@rambo.its.tudelft.nl>.
  6650. 2003-03-16 Roland McGrath <roland@redhat.com>
  6651. * tst-fork4.c: Include <string.h>.
  6652. * tst-signal2.c: Likewise.
  6653. * tst-mutex5.c (do_test): exit -> return.
  6654. * tst-mutex2.c: Include <stdlib.h>.
  6655. 2003-03-16 Ulrich Drepper <drepper@redhat.com>
  6656. * sysdeps/unix/sysv/linux/i386/i486/lowlevelmutex.S
  6657. (__lll_mutex_timedlock_wait): Correct expected value after
  6658. spurious wakeup. Otherwise we would never wait again.
  6659. * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Work around red
  6660. zone versus inline asm stupidity. Use correct instructions.
  6661. * tst-rwlock6.c: Add some more status output.
  6662. 2003-03-15 Roland McGrath <roland@redhat.com>
  6663. * sysdeps/pthread/configure.in: New file.
  6664. * sysdeps/pthread/configure: New file (generated).
  6665. 2003-03-15 Ulrich Drepper <drepper@redhat.com>
  6666. * allocatestack.c (allocate_stack): Store the exact stack size of
  6667. user allocated stacks.
  6668. 2003-03-15 Jakub Jelinek <jakub@redhat.com>
  6669. * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h
  6670. (SINGLE_THREAD): Use `header' prefix instead of `header.data'.
  6671. * sysdeps/sh/tcb-offsets.sym (MULTIPLE_THREADS_OFFSET): Likewise.
  6672. * sysdeps/sh/tls.h (TLS_MULTIPLE_THREADS_IN_TCB): Define.
  6673. * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (SINGLE_THREAD_P):
  6674. Use `header.' prefix.
  6675. * sysdeps/ia64/tcb-offsets.sym (MULTIPLE_THREADS_OFFSET): Likewise.
  6676. 2003-03-15 Ulrich Drepper <drepper@redhat.com>
  6677. * sysdeps/x86_64/pthreaddef.h (CURRENT_STACK_FRAME): Don't use
  6678. __builtin_frame_address, use stack pointer.
  6679. * sysdeps/unix/sysv/linux/jmp-unwind.c: Use CURRENT_STACK_FRAME
  6680. instead of __builtin_frame_pointer.
  6681. 2003-03-14 Ulrich Drepper <drepper@redhat.com>
  6682. * tst-basic1.c (do_test): Add cast to avoid warning.
  6683. * tst-basic2.c (do_test): Likewise.
  6684. * sysdeps/unix/sysv/linux/x86_64/pthread_once.S: Use correct
  6685. amount of stack correction.
  6686. * tst-fork4.c: Use test-skeleton.c.
  6687. 2003-03-14 Roland McGrath <roland@redhat.com>
  6688. * init.c: Fix typo "#eli" for "#else".
  6689. 2003-03-14 Steven Munroe <sjmunroe@us.ibm.com>
  6690. * allocatestack.c (__stack_user): Use hidden_data_def.
  6691. * pthread_create.c (__pthread_keys): Likewise.
  6692. * init.c [__powerpc__] (__NR_set_tid_address): Define it.
  6693. 2003-03-14 Roland McGrath <roland@redhat.com>
  6694. * tst-fork4.c: New file.
  6695. * Makefile (tests): Add it.
  6696. * descr.h (struct pthread): Move the union out of [!TLS_DTV_AT_TP], so
  6697. we always define the padding space.
  6698. [!TLS_DTV_AT_TP]: Give tcbhead_t field a name, `header', since GCC
  6699. stopped supporting its own extensions fully.
  6700. [TLS_MULTIPLE_THREADS_IN_TCB]: Put `multiple_threads' inside a wrapper
  6701. struct also called `header', so `header.multiple_threads' is the field
  6702. name to use on all machines.
  6703. * allocatestack.c (allocate_stack): Use `header.' prefix.
  6704. * sysdeps/pthread/createthread.c (create_thread): Likewise.
  6705. * pthread_create.c (__pthread_create_2_1): Likewise.
  6706. * sysdeps/i386/tls.h (INSTALL_NEW_DTV, THREAD_DTV): Likewise.
  6707. (THREAD_SELF): Likewise.
  6708. * sysdeps/x86_64/tls.h: Likewise.
  6709. * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h
  6710. (SINGLE_THREAD_P): Likewise.
  6711. * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h
  6712. (SINGLE_THREAD_P): Likewise.
  6713. * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h
  6714. (SINGLE_THREAD_P): Likewise.
  6715. * sysdeps/s390/td_ta_map_lwp2thr.c (td_ta_map_lwp2thr): Use REGS[18]
  6716. value directly.
  6717. 2003-03-14 Ulrich Drepper <drepper@redhat.com>
  6718. * pthread_create.c (start_thread): Use CALL_THREAD_FCT if defined.
  6719. * sysdeps/i386/tls.h: Define CALL_THREAD_FCT.
  6720. * pthread_create.c (start_thread): setjmp is expected to return 0.
  6721. * sysdeps/x86_64/tls.h (THREAD_GETMEM): Mark asms volatile.
  6722. (THREAD_GETMEM_NC): Likewise.
  6723. 2003-03-13 Ulrich Drepper <drepper@redhat.com>
  6724. * allocatestack.c (allocate_stack): If MULTI_PAGE_ALIASING is defined
  6725. and the size of the stack which must be allocated is a multiple,
  6726. allocate one more page.
  6727. * sysdeps/i386/i686/Makefile: Don't define COLORING_INCREMENT, but
  6728. MULTI_PAGE_ALIASING.
  6729. 2003-03-13 Roland McGrath <roland@redhat.com>
  6730. * pthread_create.c (start_thread): Set EXITING_BIT after the
  6731. event-reporting (and destructors), not before.
  6732. 2003-03-13 Jakub Jelinek <jakub@redhat.com>
  6733. * sysdeps/unix/sysv/linux/ia64/lowlevellock.h (lll_futex_timed_wait,
  6734. lll_futex_wake): Declare register variables as long int instead of
  6735. unsigned long int. Patch by Ian Wienand <ianw@gelato.unsw.edu.au>.
  6736. Make syscall arguments clobbered by the syscall.
  6737. (lll_futex_wait): Define using lll_futex_timed_wait.
  6738. * sysdeps/ia64/td_ta_map_lwp2thr.c (td_ta_map_lwp2thr): Cast regs[13]
  6739. to void *.
  6740. * sysdeps/unix/sysv/linux/fork.c (__libc_fork): Only declare and set
  6741. PPID if [! NDEBUG].
  6742. * allocatestack.c (nptl_ncreated): Only declare if
  6743. COLORING_INCREMENT != 0.
  6744. * pthreadP.h (__pthread_enable_asynccancel_2): New prototype.
  6745. (__libc_enable_asynccancel_2): Remove prototype.
  6746. * sysdeps/unix/sysv/linux/ia64/fork.c (ARCH_FORK): Swap ptid and
  6747. ctid to match kernel.
  6748. 2003-03-12 Ulrich Drepper <drepper@redhat.com>
  6749. * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add
  6750. libc_multiple_threads.
  6751. * sysdeps/unix/sysv/linux/libc_pthread_init.c: Move definition of
  6752. __libc_multiple_threads to...
  6753. * sysdeps/unix/sysv/linux/libc_multiple_threads.c: ...here. New file.
  6754. * sysdeps/unix/sysv/linux/x86_64/sem_post.S: Remove unnecessary
  6755. versioning.
  6756. * sysdeps/unix/sysv/linux/x86_64/sem_trywait.S: Likewise.
  6757. * sysdeps/unix/sysv/linux/x86_64/sem_wait.S: Likewise.
  6758. * sysdeps/unix/sysv/linux/x86_64/pthread_once.S
  6759. (__pthread_once_internal): Define.
  6760. * sysdeps/unix/sysv/linux/i386/i486/sem_post.S: Use shlib-compat.h
  6761. macros instead of .symver directly.
  6762. * sysdeps/unix/sysv/linux/i386/i486/sem_trywait.S: Likewise.
  6763. * sysdeps/unix/sysv/linux/i386/i486/sem_wait.S: Likewise.
  6764. * sysdeps/x86_64/tls.h [__ASSEMBLER__]: Include tcb-offsets.h.
  6765. * sysdeps/x86_64/tcb-offsets.sym: New file.
  6766. * sysdeps/x86_64/Makefile: New file.
  6767. * sysdeps/i386/tcb-offsets.sym: Add SELF.
  6768. * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_rdlock.S: Use SELF
  6769. to access own pthread_t in TCB.
  6770. * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S:
  6771. Likewise.
  6772. * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S:
  6773. Likewise.
  6774. * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_wrlock.S: Likewise.
  6775. 2003-03-12 Roland McGrath <roland@redhat.com>
  6776. * pthread-errnos.sym: New file.
  6777. * Makefile (gen-as-const-headers): New variable, list that file.
  6778. * sysdeps/unix/sysv/linux/i386/i486/sem_wait.S: Include generated
  6779. header <pthread-errnos.h> instead of defining errno values here.
  6780. * sysdeps/unix/sysv/linux/i386/i486/sem_trywait.S: Likewise.
  6781. * sysdeps/unix/sysv/linux/i386/i486/sem_timedwait.S: Likewise.
  6782. * sysdeps/unix/sysv/linux/i386/i486/sem_post.S: Likewise.
  6783. * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_wrlock.S: Likewise.
  6784. * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S:
  6785. Likewise.
  6786. * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S:
  6787. Likewise.
  6788. * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_rdlock.S: Likewise.
  6789. * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: Likewise.
  6790. * sysdeps/unix/sysv/linux/i386/i486/lowlevelmutex.S: Likewise.
  6791. * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S: Likewise.
  6792. * sysdeps/unix/sysv/linux/x86_64/sem_wait.S: Likewise.
  6793. * sysdeps/unix/sysv/linux/x86_64/sem_trywait.S: Likewise.
  6794. * sysdeps/unix/sysv/linux/x86_64/sem_timedwait.S: Likewise.
  6795. * sysdeps/unix/sysv/linux/x86_64/sem_post.S: Likewise.
  6796. * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: Likewise.
  6797. * sysdeps/unix/sysv/linux/x86_64/lowlevelmutex.S: Likewise.
  6798. * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
  6799. * sysdeps/unix/sysv/linux/sh/sem_trywait.S: Likewise.
  6800. * sysdeps/unix/sysv/linux/sh/sem_timedwait.S: Likewise.
  6801. * sysdeps/unix/sysv/linux/sh/sem_post.S: Likewise.
  6802. * sysdeps/unix/sysv/linux/sh/sem_wait.S: Likewise.
  6803. * sysdeps/unix/sysv/linux/sh/pthread_rwlock_wrlock.S: Likewise.
  6804. * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedwrlock.S: Likewise.
  6805. * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedrdlock.S: Likewise.
  6806. * sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S: Likewise.
  6807. * sysdeps/unix/sysv/linux/sh/pthread_rwlock_rdlock.S: Likewise.
  6808. * sysdeps/unix/sysv/linux/sh/lowlevellock.S: Likewise.
  6809. * sysdeps/unix/sysv/linux/sh/lowlevelmutex.S: Likewise.
  6810. * sysdeps/i386/i486/pthread_spin_trylock.S: Likewise.
  6811. * sysdeps/x86_64/pthread_spin_trylock.S: Likewise.
  6812. * sysdeps/sh/pthread_spin_trylock.S: Likewise.
  6813. * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_rdlock.S: Likewise.
  6814. * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_wrlock.S: Likewise.
  6815. * sysdeps/unix/sysv/linux/fork.c: Add an assert to check that
  6816. CLONE_CHILD_SETTID worked.
  6817. 2003-03-12 Ulrich Drepper <drepper@redhat.com>
  6818. * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedrdlock.S: New
  6819. file.
  6820. * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedwrlock.S: New
  6821. file.
  6822. * sysdeps/unix/sysv/linux/x86_64/bits/pthreadtypes.h
  6823. (pthread_cond_t): Add padding.
  6824. * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_rdlock.S: New file.
  6825. * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_wrlock.S: New file.
  6826. * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_unlock.S: New file.
  6827. * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S
  6828. (__pthread_rwlock_timedwrlock): Add missing opcode suffix.
  6829. * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S
  6830. (__pthread_rwlock_timedrdlock): Likewise.
  6831. * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_wrlock.S
  6832. (__pthread_rwlock_wrlock): Likewise.
  6833. * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_rdlock.S
  6834. (__pthread_rwlock_rdlock): Likewise.
  6835. * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: New file.
  6836. * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: Return
  6837. result of lock re-get if it fails.
  6838. 2003-03-11 Ulrich Drepper <drepper@redhat.com>
  6839. * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Fix asm syntax.
  6840. * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
  6841. * sysdeps/unix/sysv/linux/x86_64/lowlevelmutex.S: Likewise.
  6842. * sysdeps/unix/sysv/linux/x86_64/pthread_cond_signal.S: Likewise.
  6843. * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: Likewise.
  6844. * sysdeps/unix/sysv/linux/x86_64/pthread_once.S: Likewise.
  6845. * sysdeps/unix/sysv/linux/x86_64/sem_post.S: Likewise.
  6846. * sysdeps/unix/sysv/linux/x86_64/sem_timedwait.S: Likewise.
  6847. * sysdeps/unix/sysv/linux/x86_64/sem_trywait.S: Likewise.
  6848. * sysdeps/unix/sysv/linux/x86_64/sem_wait.S: Likewise.
  6849. * sysdeps/x86_64/tls.h (THREAD_SELF, THREAD_GETMEM, THREAD_GETMEM_NC,
  6850. THREAD_SETMEM, THREAD_SETMEM_NC): Correct asm syntax.
  6851. * allocatestack.c [! TLS_MULTIPLE_THREADS_IN_TCB] (allocate_stack):
  6852. Initialize *__libc_multiple_threads_ptr not __libc_multiple_threads.
  6853. * sysdeps/pthread/createthread.c [! TLS_MULTIPLE_THREADS_IN_TCB]
  6854. (create_thread): Likewise.
  6855. Define __pthread_multiple_threads and __libc_multiple_threads_ptr.
  6856. * init.c (__pthread_initialize_minimal_internal): Initialize
  6857. __libc_multiple_threads_ptr if necessary.
  6858. * pthreadP.h: Adjust prototype for __libc_pthread_init. Declare
  6859. __pthread_multiple_threads and __libc_multiple_threads_ptr.
  6860. * sysdeps/unix/sysv/linux/libc_pthread_init.c: Define
  6861. __libc_multiple_threads.
  6862. (__libc_pthread_init): Return pointer to __libc_pthread_init if
  6863. necessary.
  6864. * sysdeps/i386/tls.h (THREAD_SETMEM): Fix one-byte variant.
  6865. (THREAD_SETMEM_NC): Likewise.
  6866. * sysdeps/x86_64/pthread_spin_trylock.c: Removed.
  6867. * sysdeps/x86_64/pthread_spin_trylock.S: New file.
  6868. * sysdeps/x86_64/pthread_spin_unlock.c: Removed.
  6869. * sysdeps/x86_64/pthread_spin_unlock.S: New file.
  6870. * sysdeps/i386/i486/pthread_spin_trylock.S (pthread_spin_trylock):
  6871. Eliminate one entire instruction.
  6872. * cancellation.c (__pthread_enable_asynccancel_2): New function.
  6873. * pthreadP.h: Declare __pthread_enable_asynccancel_2.
  6874. * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S
  6875. (__pthread_cond_timedwait): Use __pthread_enable_asynccancel_2
  6876. instead of __pthread_enable_asynccancel.
  6877. * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S
  6878. (__pthread_cond_wait): Likewise.
  6879. * sysdeps/pthread/pthread_cond_timedwait.c
  6880. (__pthread_cond_timedwait): Likewise.
  6881. * sysdeps/pthread/pthread_cond_wait.c (__pthread_cond_wait): Likewise.
  6882. * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S
  6883. (__condvar_cleanup): Wake up all waiters in case we got signaled
  6884. after being woken up but before disabling asynchronous
  6885. cancellation.
  6886. * sysdeps/pthread/pthread_cond_wait.c (__condvar_cleanup): Likewise.
  6887. * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S
  6888. (__condvar_cleanup): Likewise.
  6889. * init.c (__NR_set_tid_address): If already defined, don't redefine.
  6890. Make it an error if architecture has no #if case. Add x86-64.
  6891. * sysdeps/unix/sysv/linux/x86_64/Makefile: Add flags for
  6892. pt-initfini.s generation.
  6893. * sysdeps/x86_64/tls.h: Include <asm/prctl.h>.
  6894. (TLS_INIT_TP): Fix typo.
  6895. 2003-03-11 Jakub Jelinek <jakub@redhat.com>
  6896. * sysdeps/ia64/bits/atomic.h (atomic_exchange_and_add): Swap 2nd and
  6897. 3rd argument of __arch_compare_and_exchange_{32,64}_val_acq.
  6898. * sysdeps/unix/sysv/linux/ia64/sem_post.c: Include semaphore.h.
  6899. * sysdeps/unix/sysv/linux/ia64/sem_timedwait.c: Likewise.
  6900. * sysdeps/unix/sysv/linux/ia64/sem_trywait.c: Likewise.
  6901. * sysdeps/unix/sysv/linux/ia64/sem_wait.c: Likewise.
  6902. * sysdeps/unix/sysv/linux/s390/sem_post.c: Likewise.
  6903. * sysdeps/unix/sysv/linux/s390/sem_timedwait.c: Likewise.
  6904. * sysdeps/unix/sysv/linux/s390/sem_trywait.c: Likewise.
  6905. * sysdeps/unix/sysv/linux/s390/sem_wait.c: Likewise.
  6906. 2003-03-11 Ulrich Drepper <drepper@redhat.com>
  6907. * sysdeps/pthread/pthread_cond_timedwait.c
  6908. (__pthread_cond_timedwait): Return the result of the final
  6909. locking. If it succeeds, the regular function return value.
  6910. * sysdeps/pthread/pthread_cond_wait.c (__pthread_cond_wait):
  6911. Return result of the final locking.
  6912. * version.c (__nptl_main): Work around problems with the strange
  6913. INTERNAL_SYSCALL macro on ppc32.
  6914. * init.c (__pthread_initialize_minimal_internal): Unblock
  6915. SIGCANCEL in case the parent blocked it.
  6916. Reported by Paul Mackerras <paulus@samba.org>.
  6917. * sysdeps/unix/sysv/linux/x86_64/pthread_cond_broadcast.S: New file.
  6918. * sysdeps/unix/sysv/linux/x86_64/pthread_cond_signal.S: New file.
  6919. * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: New file.
  6920. 2003-03-11 Jakub Jelinek <jakub@redhat.com>
  6921. * sysdeps/pthread/pthread_cond_timedwait.c
  6922. (__pthread_cond_timedwait): Unlock and fail if
  6923. __pthread_mutex_unlock_internal failed.
  6924. * sysdeps/pthread/createthread.c (ARCH_CLONE): Define if not defined.
  6925. (create_thread): Only assert PD->tcb != NULL under [TLS_TCB_AT_TP].
  6926. Use ARCH_CLONE.
  6927. * allocatestack.c (ALLOCATE_STACK_PARMS): New macro.
  6928. [NEED_SEPARATE_REGISTER_STACK] (STACK_VARIABLES,
  6929. STACK_VARIABLES_ARGS, STACK_VARIABLES_PARMS, ALLOCATE_STACK_PARMS,
  6930. ALLOCATE_STACK): New macros.
  6931. (TLS_TPADJ): New macro.
  6932. (get_cached_stack, queue_stack, __deallocate_stack): Use TLS_TPADJ.
  6933. (allocate_stack): Handle TLS_DTV_AT_TP and
  6934. NEED_SEPARATE_REGISTER_STACK. Use TLS_TPADJ.
  6935. * pthread_create.c (__pthread_create_2_1) [! TLS_TCB_AT_TP]:
  6936. Don't set PD->self.
  6937. * init.c [__ia64__] (__NR_set_tid_address): Define.
  6938. * sysdeps/unix/sysv/linux/ia64/bits/pthreadtypes.h: New file.
  6939. * sysdeps/unix/sysv/linux/ia64/bits/semaphore.h: New file.
  6940. * sysdeps/unix/sysv/linux/ia64/fork.c: New file.
  6941. * sysdeps/unix/sysv/linux/ia64/createthread.c: New file.
  6942. * sysdeps/unix/sysv/linux/ia64/libc-lowlevellock.c: New file.
  6943. * sysdeps/unix/sysv/linux/ia64/libc-lowlevelmutex.c: New file.
  6944. * sysdeps/unix/sysv/linux/ia64/lowlevellock.c: New file.
  6945. * sysdeps/unix/sysv/linux/ia64/lowlevellock.h: New file.
  6946. * sysdeps/unix/sysv/linux/ia64/lowlevelmutex.c: New file.
  6947. * sysdeps/unix/sysv/linux/ia64/pt-initfini.c: New file.
  6948. * sysdeps/unix/sysv/linux/ia64/pt-vfork.S: New file.
  6949. * sysdeps/unix/sysv/linux/ia64/pthread_once.c: New file.
  6950. * sysdeps/unix/sysv/linux/ia64/sem_post.c: New file.
  6951. * sysdeps/unix/sysv/linux/ia64/sem_timedwait.c: New file.
  6952. * sysdeps/unix/sysv/linux/ia64/sem_trywait.c: New file.
  6953. * sysdeps/unix/sysv/linux/ia64/sem_wait.c: New file.
  6954. * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h: New file.
  6955. * sysdeps/ia64/bits/atomic.h: New file.
  6956. * sysdeps/ia64/Makefile: New file.
  6957. * sysdeps/ia64/pthread_spin_init.c: New file.
  6958. * sysdeps/ia64/pthread_spin_lock.c: New file.
  6959. * sysdeps/ia64/pthread_spin_trylock.c: New file.
  6960. * sysdeps/ia64/pthread_spin_unlock.c: New file.
  6961. * sysdeps/ia64/pthreaddef.h: New file.
  6962. * sysdeps/ia64/tcb-offsets.sym: New file.
  6963. * sysdeps/ia64/td_ta_map_lwp2thr.c: New file.
  6964. * sysdeps/ia64/tls.h: New file.
  6965. * sysdeps/s390/pthreaddef.h (__exit_thread_inline): Pass 1 argument
  6966. to syscall instead of no arguments.
  6967. 2003-03-10 Ulrich Drepper <drepper@redhat.com>
  6968. * sysdeps/unix/sysv/linux/x86_64/sem_post.S: New file.
  6969. * sysdeps/unix/sysv/linux/x86_64/sem_trywait.S: New file.
  6970. * sysdeps/unix/sysv/linux/x86_64/sem_wait.S: New file.
  6971. * sysdeps/unix/sysv/linux/x86_64/sem_timedwait.S: New file.
  6972. * sysdeps/unix/sysv/linux/i386/i486/sem_post.S: Fix error value in
  6973. unused code.
  6974. * sysdeps/unix/sysv/linux/x86_64/pthread_barrier_wait.S: New file
  6975. * sysdeps/unix/sysv/linux/Makefile (gen-as-const-headers): Add
  6976. lowlevelbarrier.sym.
  6977. * sysdeps/unix/sysv/linux/lowlevelbarrier.sym: New file.
  6978. * sysdeps/unix/sysv/linux/i386/i486/pthread_barrier_wait.S:
  6979. Include lowlevelbarrier.h and don't define offsets locally.
  6980. * sysdeps/unix/sysv/linux/sh/pthread_barrier_wait.S: Likewise.
  6981. * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h
  6982. (__lll_mutex_lock_wait): Reverse order of first two parameters.
  6983. (__lll_mutex_timedlock_wait): Likewise.
  6984. (lll_mutex_lock): Adjust asm for that.
  6985. (lll_mutex_timedlock): Likewise. Mark cx, cc, r10 as clobbered.
  6986. (lll_lock): Adjust asm for operand order change.
  6987. * sysdeps/unix/sysv/linux/x86_64/lowlevelmutex.S: New file.
  6988. * sysdeps/unix/sysv/linux/x86_64/libc-lowlevelmutex.S: New file.
  6989. * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (__lll_lock_wait):
  6990. Reverse order of parameters.
  6991. (__lll_timedwait_tid): Remove regparms attribute.
  6992. * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: New file.
  6993. * sysdeps/unix/sysv/linux/x86_64/libc-lowlevellock.S: New file.
  6994. * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S
  6995. (__lll_timedwait_tid): Remove one unnecessary instruction.
  6996. * sysdeps/unix/sysv/linux/sh/lowlevelmutex.S: Define
  6997. __lll_mutex_timedlock_wait only for NOT_IN_libc.
  6998. * sysdeps/unix/sysv/linux/sh/libc-lowlevelmutex.S: Include
  6999. lowlevelmutex.S.
  7000. * sysdeps/unix/sysv/linux/sh/lowlevellock.S: Define
  7001. lll_unlock_wake_cb, __lll_wait_tid, and __lll_timedwait_tid only
  7002. for NOT_IN_libc.
  7003. * sysdeps/unix/sysv/linux/sh/libc-lowlevellock.S: Include
  7004. lowlevellock.S.
  7005. * sysdeps/unix/sysv/linux/i386/i486/lowlevelmutex.S: Don't define
  7006. LOCK is already defined. Don't define __lll_mutex_timedlock_wait
  7007. for libc.so.
  7008. * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevelmutex.S: Only
  7009. define LOCK here (if UP is not defined). The actual code is in
  7010. lowlevelmutex.S.
  7011. * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S: Don't define
  7012. LOCK is already defined. Don't define lll_unlock_wake_cb and
  7013. __lll_timedwait_tid for libc.so.
  7014. * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S: Only
  7015. define LOCK here (if UP is not defined). The actual code is in
  7016. lowlevellock.S.
  7017. * sysdeps/unix/sysv/linux/i386/lowlevelsem.h: Not needed anymore.
  7018. * sysdeps/unix/sysv/linux/s390/lowlevelsem.h: Likewise.
  7019. * sysdeps/unix/sysv/linux/s390/sem_post.c: Include lowlevellock.h
  7020. instead of lowlevelsem.h.
  7021. * sysdeps/unix/sysv/linux/s390/sem_timedwait.c: Likewise.
  7022. * sysdeps/unix/sysv/linux/s390/sem_trywait.c: Likewise.
  7023. * sysdeps/unix/sysv/linux/s390/sem_wait.c: Likewise.
  7024. * sysdeps/unix/sysv/linux/Makefile (gen-as-const-headers): Add
  7025. lowlevelrwlock.sym.
  7026. * sysdeps/unix/sysv/linux/lowlevelrwlock.sym: New file.
  7027. * sysdeps/unix/sysv/linux/i386/lowlevelrwlock.h: Removed.
  7028. * sysdeps/unix/sysv/linux/sh/lowlevelrwlock.h: Removed.
  7029. * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (lll_trylock): Fix
  7030. register loading.
  7031. * sysdeps/unix/sysv/linux/i386/lowlevellock.h (lll_trylock): Undo
  7032. last changed. D'oh.
  7033. * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: New file.
  7034. * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Remove declaration
  7035. of __libc_locking_needed.
  7036. (lll_trylock): Initialize %eax to zero.
  7037. * sysdeps/unix/sysv/linux/x86_64/bits/pthreadtypes.h: Update
  7038. pthread_cond_t definition.
  7039. 2003-03-10 Roland McGrath <roland@redhat.com>
  7040. * sysdeps/unix/sysv/linux/lowlevelcond.sym: New file.
  7041. * sysdeps/unix/sysv/linux/Makefile (gen-as-const-headers): Add it.
  7042. * sysdeps/unix/sysv/linux/sh/lowlevelcond.h: File removed.
  7043. * sysdeps/unix/sysv/linux/i386/lowlevelcond.h: Likewise.
  7044. * sysdeps/unix/sysv/linux/x86_64/lowlevelcond.h: Likewise.
  7045. * allocatestack.c (allocate_stack) [!TLS_MULTIPLE_THREADS_IN_TCB]:
  7046. Instead of setting PD->multiple_threads, set globals
  7047. __pthread_multiple_threads and __libc_multiple_threads.
  7048. * sysdeps/pthread/createthread.c (create_thread): Likewise.
  7049. * sysdeps/i386/tls.h (TLS_MULTIPLE_THREADS_IN_TCB): Define it.
  7050. * sysdeps/s390/tls.h (TLS_MULTIPLE_THREADS_IN_TCB): Likewise.
  7051. * descr.h (struct pthread): Conditionalize first member on
  7052. [!TLS_DTV_AT_TP]. Replace the `header' member with an anonymous union
  7053. containing an anonymous tcbhead_t. Move `list' member out.
  7054. [TLS_MULTIPLE_THREADS_IN_TCB]: Define a `multiple_threads' member.
  7055. * allocatestack.c: Remove use of `header.data.' prefix.
  7056. * pthread_create.c: Likewise.
  7057. * init.c (__pthread_initialize_minimal_internal): Likewise.
  7058. * sysdeps/pthread/createthread.c (create_thread): Likewise.
  7059. * sysdeps/i386/tls.h (INSTALL_DTV): Add parens.
  7060. (THREAD_SELF, THREAD_DTV, INSTALL_NEW_DTV): No `header.data.' prefix.
  7061. * sysdeps/x86_64/tls.h: Likewise.
  7062. * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h
  7063. (SINGLE_THREAD_P): Likewise.
  7064. * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h
  7065. (SINGLE_THREAD_P): Likewise.
  7066. * sysdeps/i386/tls.h (tcbhead_t): Remove `list' member.
  7067. * sysdeps/s390/tls.h (tcbhead_t): Likewise.
  7068. 2003-03-09 Ulrich Drepper <drepper@redhat.com>
  7069. * sysdeps/unix/sysv/linux/x86_64/lowlevelcond.h: New file.
  7070. * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: New file.
  7071. * sysdeps/unix/sysv/linux/x86_64/fork.c: New file.
  7072. * sysdeps/unix/sysv/linux/x86_64/pthread_once.S: Fix many
  7073. leftovers from the ia32 code.
  7074. * sysdeps/unix/sysv/linux/i386/pthread_once.S: Remove unneccessary
  7075. memory load.
  7076. (clear_once_control): Don't load %esi.
  7077. * sysdeps/x86_64/tls.h: Remove all traces of segment descriptor
  7078. handling.
  7079. * sysdeps/unix/sysv/linux/x86_64/fork.c: New file.
  7080. * sysdeps/unix/sysv/linux/s390/createthread.c: Moved to...
  7081. * sysdeps/unix/sysv/linux/createthread.c: ...here.
  7082. * Makefile (tests): Add tst-cond10.
  7083. * tst-cond10.c: New file.
  7084. 2003-03-08 Ulrich Drepper <drepper@redhat.com>
  7085. * tst-tls2.c (do_test): Add TEMP_FAILURE_RETRY around sem_wait call.
  7086. * tst-signal3.c (do_test): Likewise.
  7087. * tst-sem5.c (do_test): Likewise.
  7088. * tst-kill6.c (do_test): Likewise.
  7089. * tst-tls3.c (do_test): Likewise. Include <errno.h>.
  7090. * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Use add/sub instead
  7091. of inc/dec.
  7092. * sysdeps/unix/sysv/linux/i386/lowlevelsem.h: Likewise.
  7093. * sysdeps/unix/sysv/linux/i386/pthread_once.S: Likewise
  7094. * sysdeps/unix/sysv/linux/i386/i486/sem_timedwait.S: Likewise.
  7095. * sysdeps/unix/sysv/linux/i386/i486/sem_post.S: Likewise.
  7096. * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_wrlock.S: Likewise.
  7097. * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_unlock.S: Likewise.
  7098. * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S:
  7099. Likewise.
  7100. * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S:
  7101. Likewise.
  7102. * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_rdlock.S: Likewise.
  7103. * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Likewise.
  7104. * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: Likewise.
  7105. * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S: Likewise.
  7106. * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_broadcast.S: Likewise.
  7107. * sysdeps/unix/sysv/linux/i386/i486/pthread_barrier_wait.S: Likewise.
  7108. * sysdeps/unix/sysv/linux/i386/i486/lowlevelmutex.S: Likewise.
  7109. * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S: Likewise.
  7110. * allocatestack.c (allocate_stack): If mprotect() fails free the
  7111. TLS memory.
  7112. 2003-03-07 Ulrich Drepper <drepper@redhat.com>
  7113. * sysdeps/i386/i486/bits/atomic.h: Fix a few unused definitions.
  7114. * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Remove all trace of
  7115. lll_wake_tid. This was used only to work around kernel limits in
  7116. the early days.
  7117. * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
  7118. * sysdeps/unix/sysv/linux/sh/libc-lowlevellock.S: Likewise.
  7119. * sysdeps/unix/sysv/linux/sh/lowlevellock.S: Likewise.
  7120. * sysdeps/unix/sysv/linux/sh/lowlevellock.h: Likewise.
  7121. * init.c (__static_tls_align_m1): Renamed from __static_tls_align.
  7122. (__pthread_initialize_minimal_internal): Change initialization of
  7123. __static_tls_align_m1 appropriately.
  7124. * pthreadP.h (__static_tls_align_m1): Renamed from
  7125. __static_tls_align.
  7126. * allocatestack.c (allocate_stack): Use __static_tls_align_m1
  7127. instead of __static_tls_align-1.
  7128. 2003-03-04 Ulrich Drepper <drepper@redhat.com>
  7129. * sysdeps/unix/sysv/linux/x86_64/Makefile: New file.
  7130. * pthread_create.c: Define __pthread_keys using nocommon
  7131. attribute, not by placing it explicitly in bss.
  7132. Remove DEFINE_DEALLOC definition. Not needed anymore.
  7133. * allocatestack.c: Define ARCH_MAP_FLAGS if not already defined.
  7134. Use it in mmap call to allocate stacks.
  7135. * sysdeps/pthread/createthread.c (create_thread): Fix comment.
  7136. * pthread_create.c (start_thread): Use THREAD_SETMEM to store
  7137. result of the thread function.
  7138. 2003-03-03 Ulrich Drepper <drepper@redhat.com>
  7139. * sysdeps/unix/sysv/linux/s390/dl-sysdep.h: Removed. The generic
  7140. version is just fine.
  7141. * sysdeps/unix/sysv/linux/libc_pthread_init.c
  7142. (__pthread_child_handler): Renamed from pthread_child_handler,
  7143. exported, and marked hidden. Change all users.
  7144. * sysdeps/unix/sysv/linux/register-atfork.c (free_mem): Do not
  7145. free __pthread_child_handler from child list.
  7146. 2003-03-03 Martin Schwidefsky <schwidefsky@de.ibm.com>
  7147. * atomic.h (atomic_exchange_and_add): Return newval, not oldval.
  7148. * sysdeps/pthread/pthread_cond_timedwait.c (__pthread_cond_timedwait):
  7149. Fix handling of cancellation and failing pthread_mutex_unlock call.
  7150. * sysdeps/pthread/pthread_cond_wait.c (__condvar_cleanup): Likewise.
  7151. (__pthread_cond_wait): Likewise.
  7152. * sysdeps/pthread/pthread_rwlock_timedrdlock.c
  7153. (pthread_rwlock_timedrdlock): Fix clobber of result variable by
  7154. lll_futex_timed_wait call.
  7155. * sysdeps/pthread/pthread_rwlock_timedwrlock.c
  7156. (pthread_rwlock_timedwrlock): Likewise.
  7157. * sysdeps/unix/sysv/linux/s390/libc-lowlevellock.c (___lll_lock):
  7158. Don't define lll_unlock_wake_cb and ___lll_timedwait_tid in libc.so.
  7159. * sysdeps/unix/sysv/linux/s390/lowlevellock.c: Remove XXX comments.
  7160. * sysdeps/unix/sysv/linux/s390/sem_post.c (__new_sem_post): Fix
  7161. check of lll_futex_wake return value.
  7162. 2003-03-03 Roland McGrath <roland@redhat.com>
  7163. * forward.c: Fix typo in __pthread_attr_init_2_0 compat_symbol decl.
  7164. * sysdeps/pthread/pthread-functions.h (struct pthread_functions):
  7165. Argument to ptr___pthread_cleanup_upto is __jmp_buf, not jmp_buf.
  7166. * sysdeps/unix/sysv/linux/jmp-unwind.c: Likewise.
  7167. 2003-03-02 Ulrich Drepper <drepper@redhat.com>
  7168. * sysdeps/pthread/timer_create.c (timer_create): Return correct
  7169. error for CPU clocks.
  7170. * sysdeps/unix/sysv/linux/bits/posix_opt.h: Define
  7171. _POSIX_MONOTONIC_CLOCK.
  7172. * sysdeps/unix/sysv/linux/i386/bits/posix_opt.h: Likewise.
  7173. * tst-cancel4.c (tf_sleep): Lower sleep time a bit to not upset
  7174. recent kernels.
  7175. 2003-03-01 Ulrich Drepper <drepper@redhat.com>
  7176. * descr.h (struct pthread): Move cleanup field to the front.
  7177. 2003-03-01 Roland McGrath <roland@redhat.com>
  7178. * sem_open.c (sem_open): Braino fix.
  7179. 2003-03-01 Ulrich Drepper <drepper@redhat.com>
  7180. * sysdeps/i386/tcb-offsets.sym: Add CLEANUP and CLEANUP_PREV.
  7181. * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Inline
  7182. __pthread_cleanup_pop functionality.
  7183. * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: Likewise.
  7184. * descr.h (struct pthread): Move tid field to the front now that
  7185. it is often used.
  7186. * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevelmutex.S
  7187. (__lll_mutex_timedlock_wait): Remove.
  7188. (__lll_mutex_unlock_wake): Don't save, load, and restore %esi.
  7189. * sysdeps/unix/sysv/linux/i386/i486/lowlevelmutex.S
  7190. (__lll_mutex_unlock_wake): Don't save, load, and restore %esi.
  7191. * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S
  7192. (lll_unlock_wake_cb): Don't save and restore %esi.
  7193. (__lll_unlock_wake): Add alignment. Don't save, load, and restore
  7194. %esi.
  7195. (__lll_timedwait_tid): Add alignment.
  7196. * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S
  7197. (__lll_unlock_wake): Add alignment. Don't save, load, and restore
  7198. %esi.
  7199. (__lll_timedwait_tid): Removed.
  7200. * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_broadcast.S
  7201. (__pthread_cond_broadcast): Don't save, load, and restore %esi.
  7202. * sysdeps/unix/sysv/linux/i386/i486/pthread_barrier_wait.S
  7203. (pthread_barrier_wait): Don't save, load, and restore %esi for
  7204. last thread.
  7205. * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S
  7206. (__pthread_cond_signal): Don't save, load, and restore %esi.
  7207. * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_unlock.S
  7208. (__pthread_rwlock_unlock): Don't save, load, and restore %esi.
  7209. * sysdeps/unix/sysv/linux/i386/i486/sem_post.S (__new_sem_post):
  7210. Don't save, load, and restore %esi.
  7211. 2003-02-27 Ulrich Drepper <drepper@redhat.com>
  7212. * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_broadcast.S:
  7213. Release lock before waking up the waiters.
  7214. * tst-exit1.c (do_test): Don't start more than one thread in parallel.
  7215. * tst-rwlock9.c (writer_thread): Correct adding TIMEOUT.
  7216. (reader_thread): Likewise.
  7217. * sysdeps/pthread/pthread_rwlock_unlock.c
  7218. (__pthread_rwlock_unlock): Release internal lock early. Don't try
  7219. to wake up readers if there are none.
  7220. * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_unlock.S:
  7221. Release internal lock before wake threads.
  7222. 2003-02-26 Ulrich Drepper <drepper@redhat.com>
  7223. * Makefile (tests): Add tst-rwlock10 and tst-rwlock11.
  7224. * tst-rwlock8.c: Initialize lock with INIT. Allow INIT to be
  7225. predefined.
  7226. * tst-rwlock9.c: Likewise.
  7227. * tst-rwlock10.c: New file.
  7228. * tst-rwlock11.c: New file.
  7229. * Makefile (tests): Add tst-dlsym1.
  7230. * tst-dlsym1.c: New file.
  7231. * init.c (__pthread_initialize_minimal_internal): Set
  7232. GL(dl_error_catch_tsd) to __libc_dl_error_tsd.
  7233. * Versions (libc:GLIBC_PRIVATE): Export __libc_dl_error_tsd.
  7234. 2003-02-24 Ulrich Drepper <drepper@redhat.com>
  7235. * sem_open.c (sem_open): Fix handling of O_CREAT without O_EXCL.
  7236. * tst-cond2.c: Fix sychronization with child.
  7237. * tst-rwlock8.c (reader_thread): Remove unused variable.
  7238. * Makefile: Add rules to build and run tst-tls3.
  7239. * tst-tls3.c: New file.
  7240. * tst-tls3mod.c: New file.
  7241. * Makefile (tests): Add tst-rwlock8 and tst-rwlock9.
  7242. * tst-rwlock8.c: New file.
  7243. * tst-rwlock9.c: New file.
  7244. * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_rdlock.S: Fix
  7245. complete broken rwlock implementation.
  7246. * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S:
  7247. Likewise.
  7248. * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S:
  7249. Likewise.
  7250. * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_unlock.S: Likewise.
  7251. * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_wrlock.S: Likewise.
  7252. * sysdeps/pthread/pthread_rwlock_rdlock.c: Likewise.
  7253. * sysdeps/pthread/pthread_rwlock_timedrdlock.c: Likewise.
  7254. * sysdeps/pthread/pthread_rwlock_timedwrlock.c: Likewise.
  7255. * sysdeps/pthread/pthread_rwlock_unlock.c: Likewise.
  7256. * sysdeps/pthread/pthread_rwlock_wrlock.c: Likewise.
  7257. 2003-02-23 Roland McGrath <roland@redhat.com>
  7258. * Makefile (nptl-version): Change regexp so case sensitivity is ok.
  7259. 2003-02-23 Ulrich Drepper <drepper@redhat.com>
  7260. * Makefile (tests): Add tst-context1.
  7261. * tst-context1.c: New file.
  7262. * Makefile (tests): Add tst-tls1 and tst-tls2.
  7263. * tst-tls1.c: New file.
  7264. * tst-tls2.c: New file.
  7265. * libc-cancellation.c (__libc_enable_asynccancel): Correct test
  7266. for failed cmpxchg.
  7267. * pthread_create.c (start_thread): Set EXITING_BIT early.
  7268. * sysdeps/i386/tls.h (THREAD_GETMEM): Mark asm as volatile.
  7269. (THREAD_GETMEM_NC): Likewise.
  7270. 2003-02-22 Ulrich Drepper <drepper@redhat.com>
  7271. * sysdeps/unix/sysv/linux/i386/i486/pthread_barrier_wait.S: Shave
  7272. off 3 more bytes by using offset-less instructions when possible.
  7273. * Makefile: Add dependency for $(objpfx)version.d.
  7274. * eintr.c (eintr_source): Add unnecessary return but the compiler
  7275. insists.
  7276. * tst-kill3.c: Include <unistd.h>.
  7277. 2003-02-21 Roland McGrath <roland@redhat.com>
  7278. * pthread_create.c (start_thread): Call __libc_thread_freeres.
  7279. 2003-02-21 Ulrich Drepper <drepper@redhat.com>
  7280. * Makefile (tests): Add tst-eintr1.
  7281. (distribute): Add eintr.c.
  7282. * tst-eintr1.c: New file.
  7283. * eintr.c: New file.
  7284. * pthread_cancel.c (pthread_cancel): Use tkill directly.
  7285. * sysdeps/unix/sysv/linux/pthread_kill.c (__pthread_kill):
  7286. Disallow sending SIGCANCEL.
  7287. * Makefile (tests): Remove tst-basic7. Add tst-kill1, tst-kill2,
  7288. tst-kill3, tst-kill4, tst-kill5, tst-kill6.
  7289. * tst-kill1.c: New file.
  7290. * tst-kill2.c: New file.
  7291. * tst-kill3.c: New file.
  7292. * tst-kill5.c: New file.
  7293. * tst-kill6.c: New file.
  7294. * tst-basic7.c: Renamed to...
  7295. * tst-kill4.c: ...this.
  7296. 2003-02-21 Roland McGrath <roland@redhat.com>
  7297. * Makefile (install-lib-ldscripts): New variable.
  7298. 2003-02-21 Ulrich Drepper <drepper@redhat.com>
  7299. * pthreadP.h: Define INVALID_TD_P and INVALID_NOT_TERMINATED_TD_P.
  7300. * pthread_cancel.c: Use INVALID_TD_P.
  7301. * pthread_detach.c: Likewise.
  7302. * pthread_getschedparam.c: Likewise.
  7303. * pthread_setschedparam.c: Likewise.
  7304. * sysdeps/pthread/pthread_getcpuclockid.c: Likewise.
  7305. * sysdeps/unix/sysv/linux/pthread_kill.c: Likewise.
  7306. * pthread_join.c: Use INVALID_NOT_TERMINATED_TD_P.
  7307. * pthread_timedjoin.c: Likewise.
  7308. * tst-basic7.c: Include <signal.h>.
  7309. * pthread_join.c (pthread_join): Limited checking for invalid
  7310. descriptors.
  7311. * pthread_timedjoin.c (pthread_timedjoin_np): Likewise.
  7312. 2003-02-20 Ulrich Drepper <drepper@redhat.com>
  7313. * pthread_create.c (deallocate_tsd): Reset found_nonzero at the
  7314. beginning of the loop. Clear the entire first block of TSD.
  7315. * Makefile (tests): Add tst-key4.
  7316. * tst-key4.c: New file.
  7317. 2003-02-18 Ulrich Drepper <drepper@redhat.com>
  7318. * Makefile (tests): Add tst-basic7.
  7319. * tst-basic7.c: New file.
  7320. * pthread_create.c (deallocate_tsd): Mark as internal_function.
  7321. Add some more __builtin_expect.
  7322. * pthreadP.h: Define dummy version of DEBUGGING_P.
  7323. 2003-02-17 Ulrich Drepper <drepper@redhat.com>
  7324. * sysdeps/unix/sysv/linux/i386/bits/posix_opt.h: Remnove
  7325. _POSIX_THREAD_PRIORITY_SCHEDULING.
  7326. * sysdeps/unix/sysv/linux/i386/bits/posix_opt.h: Remove
  7327. _XOPEN_REALTIME_THREADS.
  7328. * sysdeps/unix/sysv/linux/bits/posix_opt.h: Likewise.
  7329. * sysdeps/unix/sysv/linux/pthread_kill.c (__pthread_kill): The
  7330. kernel returns EINVAL for PID <= 0, work around it.
  7331. * Makefile (tests): Add tst-signal5.
  7332. * tst-signal5.c: New file.
  7333. * sysdeps/unix/sysv/linux/bits/local_lim.h: Define TTY_NAME_MAX
  7334. and LOGIN_NAME_MAX.
  7335. * tst-cancel1.c (tf): Block all signals.
  7336. * Makefile (tests): Add tst-basic6.
  7337. * tst-basic6.c: New file.
  7338. * tst-basic1.c: Add test for process ID.
  7339. * Makefile (tests): Add tst-cancel10.
  7340. * tst-cancel10.c: New file.
  7341. * Makefile (tests): Add tst-signal4.
  7342. * tst-signal4.c: New file.
  7343. * sysdeps/pthread/pthread_sigmask.c (pthread_sigmask): Use
  7344. __sigismember instead of sigismember. Add __builtin_expect.
  7345. 2003-02-16 Ulrich Drepper <drepper@redhat.com>
  7346. * tst-attr1.c (do_test): Add tests for pthread_setcanceltype,
  7347. pthread_setcancelstate, and pthread_rwlock_setpshared.
  7348. * tst-cancel7.c (do_test): Make sure the pid file exists before
  7349. canceling the thread.
  7350. * tst-rwlock6.c: More pthread_rwlock_timedwrlock and
  7351. pthread_rwlock_timedrdlock tests.
  7352. * tst-rwlock7.c: More pthread_rwlock_timedwrlock tests.
  7353. * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S:
  7354. Check for invalid tv_nsec field.
  7355. * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S:
  7356. Likewise.
  7357. * pthread_mutex_trylock.c (__pthread_mutex_trylock): Protect
  7358. recursive mutex of overflow.
  7359. * tst-attr1.c (do_test): Add test for pthread_mutexattr_setpshared.
  7360. * libc-cancellation.c (__libc_enable_asynccancel): Rewrite to avoid
  7361. going into an endless loop.
  7362. * Makefile (tests): Add tst-cancel9.
  7363. * tst-cancel9.c: New file.
  7364. * pthread_cancel.c (pthread_cancel): Use the result of __pthread_kill.
  7365. 2003-02-15 Ulrich Drepper <drepper@redhat.com>
  7366. * tst-mutex5.c (do_test): Add more timedlock tests.
  7367. * tst-mutex2.c: Tests of trylock and unlock with ERROR mutexes.
  7368. * tst-mutex3.c (do_test): Add tests for trylock with RECURSIVE mutexes.
  7369. * sysdeps/unix/sysv/linux/pthread_kill.c (__pthread_kill): Don't
  7370. use INLINE_SYSCALL. Error number is returned, not -1.
  7371. * pthreadP.h: Mark declarations of __find_in_stack_list, __free_tcb,
  7372. and __deallocate_stack with internal_function.
  7373. * pthread_create.c: Adjust definitions appropriately.
  7374. * allocatestack.c: Likewise.
  7375. * pthread_join.c: Add one more __builtin_expect.
  7376. * pthread_timedjoin.c: Likewise.
  7377. * pthread_getspecific.c (__pthread_getspecific): Clear data->data
  7378. not data of sequence number does not match.
  7379. Add one __builtin_expect.
  7380. * Makefile (tests): Add tst-clock1.
  7381. * tst-clock1.c: New file.
  7382. * pthread_setconcurrency.c (pthread_setconcurrency): Fail for
  7383. negative arguments.
  7384. * Makefile (tests): Add tst-basic5.
  7385. * tst-basic5.c: New file.
  7386. 2003-02-14 Ulrich Drepper <drepper@redhat.com>
  7387. * Makefile (tests): Add tst-basic4.
  7388. * tst-basic4.c: New file.
  7389. * pthreadP.h: Add declaraction for __nptl_nthreads.
  7390. * pthread_create.c: Define __nptl_nthreads
  7391. (start_thread): Increment __nptl_nthreads at beginning. Decrement
  7392. after thread is done. If then zero, call exit(0).
  7393. * sysdeps/pthread/pthread-functions.h (struct pthread_functions):
  7394. Add ptr_nthreads. Define HAVE_PTR_NTHREADS.
  7395. * init.c (pthread_functions): Initialize ptr_nthreads.
  7396. * allocatestack.c (nptl_nthreads): Remove definition and all uses.
  7397. (__reclaim_stacks): Decrement __nptl_nthreads.
  7398. * sysdeps/pthread/Makefile [$(subdir)==csu] (CFLAGS-libc-start.c):
  7399. Define.
  7400. * Makefile (tests): Add tst-basic3.
  7401. * tst-basic3.c: New file.
  7402. * descr.h: Define CANCELING_BIT and CANCELING_BITMASK. Introduce
  7403. after CANCELTYPE_BIT, move the other bits up. Update CANCEL_RESTMASK.
  7404. * init.c (sigcancel_handler): Also set CANCELING_BITMASK bit in newval.
  7405. * pthread_cancel.c (pthread_cancel): Likewise. Also set CANCELING_BIT
  7406. if asynchronous canceling is enabled.
  7407. * pthread_join.c (pthread_join): When recognizing circular joins,
  7408. take into account the other thread might be already canceled.
  7409. * Makefile (tests): Add tst-join5.
  7410. * tst-join5.c: New file.
  7411. * Makefile (tests): Add tst-join4.
  7412. * tst-join4.c: New file.
  7413. 2003-02-13 Ulrich Drepper <drepper@redhat.com>
  7414. * tst-cond4.c (main): Add test of pthread_attr_getpshared.
  7415. 2003-02-13 Martin Schwidefsky <schwidefsky@de.ibm.com>
  7416. * sysdeps/s390/tls.h (THREAD_GETMEM, THREAD_GETMEM_NC, THREAD_SETMEM,
  7417. THREAD_SETMEM_NC): Use passed descr instead of THREAD_SELF.
  7418. * sysdeps/unix/sysv/linux/s390/jmp-unwind.c (_longjmp_unwind): Avoid
  7419. warning.
  7420. * sysdeps/unix/sysv/linux/s390/lowlevellock.c: Include <sys/time.h>
  7421. to avoid warning.
  7422. * sysdeps/unix/sysv/linux/s390/sem_post.c (__new_sem_post): Return
  7423. error if lll_futex_wake failed.
  7424. 2003-02-13 Ulrich Drepper <drepper@redhat.com>
  7425. * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Fix
  7426. handling of cancellation and failung pthread_mutex_unlock call.
  7427. * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: Likewise.
  7428. * Makefile (tests): Add tst-cond8 and tst-cond9.
  7429. * tst-cond8.c: New file.
  7430. * tst-cond9.c: New file.
  7431. * tst-cond7.c (do_test): Unlock the mutex before canceling the thread.
  7432. * sysdeps/pthread/pthread.h: Add missing initializers. Protect
  7433. non-standard initializers with __USE_GNU.
  7434. * Makefile (tests): Add tst-cleanup3.
  7435. * tst-cleanup3.c: New file.
  7436. 2003-02-12 Ulrich Drepper <drepper@redhat.com>
  7437. * Makefile (tests): Add tst-attr1 and tst-attr2.
  7438. * tst-attr1.c: New file.
  7439. * tst-attr2.c: New file.
  7440. * Makefile: Add rules to build and run tst-atfork2 test.
  7441. * tst-atfork2.c: New file.
  7442. * tst-atfork2mod.c: New file.
  7443. * sysdeps/unix/sysv/linux/unregister-atfork.c
  7444. (__unregister_atfork): Free the memory allocated for the handlers
  7445. after removing them from the lists.
  7446. * sysdeps/unix/sysv/linux/register-atfork.c: Define memeory
  7447. cleanup function.
  7448. * tst-atfork1.c (do_test): Wait for the child we forked.
  7449. Report error in child.
  7450. * sysdeps/unix/sysv/linux/fork.c (__libc_fork): Fix comment.
  7451. * sysdeps/pthread/Makefile: Define CFLAGS-confstr.c.
  7452. 2003-02-10 Ulrich Drepper <drepper@redhat.com>
  7453. * Makefile (tests): Add tst-cancel8.
  7454. * tst-cancel8.c: New file.
  7455. * sysdeps/unix/sysv/linux/i386/pthread_once.S (clear_once_control): Fix
  7456. clearing of control variable.
  7457. * Makefile (tests): Add tst-once3 and tst-once4.
  7458. * tst-once3.c: New file.
  7459. * tst-once4.c: New file.
  7460. 2003-02-08 kaz Kojima <kkojima@rr.iij4u.or.jp>
  7461. * sysdeps/sh/Makefile: New file.
  7462. * sysdeps/sh/bits/atomic.h: New file.
  7463. * sysdeps/sh/pthread_spin_init.c: New file.
  7464. * sysdeps/sh/pthread_spin_lock.c: New file.
  7465. * sysdeps/sh/pthread_spin_trylock.S: New file.
  7466. * sysdeps/sh/pthread_spin_unlock.S: New file.
  7467. * sysdeps/sh/pthreaddef.h: New file.
  7468. * sysdeps/sh/tcb-offsets.sym: New file.
  7469. * sysdeps/sh/td_ta_map_lwp2thr.c: New file.
  7470. * sysdeps/sh/tls.h: New file.
  7471. * sysdeps/unix/sysv/linux/sh/bits/pthreadtypes.h: New file.
  7472. * sysdeps/unix/sysv/linux/sh/bits/semaphore.h: New file.
  7473. * sysdeps/unix/sysv/linux/sh/createthread.c: New file.
  7474. * sysdeps/unix/sysv/linux/sh/fork.c: New file.
  7475. * sysdeps/unix/sysv/linux/sh/libc-lowlevellock.S: New file.
  7476. * sysdeps/unix/sysv/linux/sh/libc-lowlevelmutex.S: New file.
  7477. * sysdeps/unix/sysv/linux/sh/lowlevel-atomic.h: New file.
  7478. * sysdeps/unix/sysv/linux/sh/lowlevelcond.h: New file.
  7479. * sysdeps/unix/sysv/linux/sh/lowlevellock.S: New file.
  7480. * sysdeps/unix/sysv/linux/sh/lowlevellock.h: New file.
  7481. * sysdeps/unix/sysv/linux/sh/lowlevelmutex.S: New file.
  7482. * sysdeps/unix/sysv/linux/sh/lowlevelrwlock.h: New file.
  7483. * sysdeps/unix/sysv/linux/sh/pt-initfini.c: New file.
  7484. * sysdeps/unix/sysv/linux/sh/pt-vfork.S: New file.
  7485. * sysdeps/unix/sysv/linux/sh/pthread_barrier_wait.S: New file.
  7486. * sysdeps/unix/sysv/linux/sh/pthread_cond_broadcast.S: New file.
  7487. * sysdeps/unix/sysv/linux/sh/pthread_cond_signal.S: New file.
  7488. * sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S: New file.
  7489. * sysdeps/unix/sysv/linux/sh/pthread_cond_wait.S: New file.
  7490. * sysdeps/unix/sysv/linux/sh/pthread_once.S: New file.
  7491. * sysdeps/unix/sysv/linux/sh/pthread_rwlock_rdlock.S: New file.
  7492. * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedrdlock.S: New file.
  7493. * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedwrlock.S: New file.
  7494. * sysdeps/unix/sysv/linux/sh/pthread_rwlock_unlock.S: New file.
  7495. * sysdeps/unix/sysv/linux/sh/pthread_rwlock_wrlock.S: New file.
  7496. * sysdeps/unix/sysv/linux/sh/sem_post.S: New file.
  7497. * sysdeps/unix/sysv/linux/sh/sem_timedwait.S: New file.
  7498. * sysdeps/unix/sysv/linux/sh/sem_trywait.S: New file.
  7499. * sysdeps/unix/sysv/linux/sh/sem_wait.S: New file.
  7500. * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: New file.
  7501. 2003-02-08 Ulrich Drepper <drepper@redhat.com>
  7502. * tst-cond2.c: Rearrange code to not rely on behavior undefined
  7503. according to POSIX.
  7504. * tst-basic2.c (do_test): Lock mutex before creating the thread.
  7505. 2003-02-07 Ulrich Drepper <drepper@redhat.com>
  7506. * sysdeps/x86_64/tls.h: Remove unnecessary macros, left over from x86.
  7507. (TLS_GET_FS): New #define.
  7508. (TLS_SET_FS): New #define.
  7509. Correct value of __NR_set_thread_area.
  7510. * sysdeps/x86_64/td_ta_map_lwp2thr.c: New file.
  7511. 2003-02-06 Ulrich Drepper <drepper@redhat.com>
  7512. * Makefile (tests): Add tst-popen1.
  7513. * tst-popen1.c: New file.
  7514. * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Remove wrong
  7515. but inactive generalization.
  7516. * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: Likewise.
  7517. * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S: Likewise.
  7518. Minor optimization, remove one instruction.
  7519. * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_broadcast.S: Likewise.
  7520. 2003-02-04 Martin Schwidefsky <schwidefsky@de.ibm.com>
  7521. * sysdeps/unix/sysv/linux/s390/fork.c: Correct order of parameters.
  7522. 2003-01-31 Martin Schwidefsky <schwidefsky@de.ibm.com>
  7523. * init.c (__NR_set_tid_address): Add #ifdef for s390.
  7524. * sysdeps/pthread/pthread_barrier_wait.c: New file.
  7525. * sysdeps/pthread/pthread_cond_broadcast.c: New file.
  7526. * sysdeps/pthread/pthread_cond_signal.c: New file.
  7527. * sysdeps/pthread/pthread_cond_timedwait.c: New file.
  7528. * sysdeps/pthread/pthread_cond_wait.c: New file.
  7529. * sysdeps/pthread/pthread_rwlock_rdlock.c: New file.
  7530. * sysdeps/pthread/pthread_rwlock_timedrdlock.c: New file.
  7531. * sysdeps/pthread/pthread_rwlock_timedwrlock.c: New file.
  7532. * sysdeps/pthread/pthread_rwlock_unlock.c: New file.
  7533. * sysdeps/pthread/pthread_rwlock_wrlock.c: New file.
  7534. * sysdeps/s390/Makefile: New file.
  7535. * sysdeps/s390/bits/atomic.h: New file.
  7536. * sysdeps/s390/pthread_spin_init.c: New file.
  7537. * sysdeps/s390/pthread_spin_lock.c: New file.
  7538. * sysdeps/s390/pthread_spin_trylock.c: New file.
  7539. * sysdeps/s390/pthread_spin_unlock.c: New file.
  7540. * sysdeps/s390/pthreaddef.h: New file.
  7541. * sysdeps/s390/tcb-offsets.sym: New file.
  7542. * sysdeps/s390/td_ta_map_lwp2thr.c: New file.
  7543. * sysdeps/s390/tls.h: New file.
  7544. * sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h: New file.
  7545. * sysdeps/unix/sysv/linux/s390/bits/semaphore.h: New file.
  7546. * sysdeps/unix/sysv/linux/s390/createthread.c: New file.
  7547. * sysdeps/unix/sysv/linux/s390/dl-sysdep.h: New file.
  7548. * sysdeps/unix/sysv/linux/s390/fork.c: New file.
  7549. * sysdeps/unix/sysv/linux/s390/jmp-unwind.c: New file.
  7550. * sysdeps/unix/sysv/linux/s390/libc-lowlevellock.c: New file.
  7551. * sysdeps/unix/sysv/linux/s390/libc-lowlevelmutex.c: New file.
  7552. * sysdeps/unix/sysv/linux/s390/lowlevellock.c: New file.
  7553. * sysdeps/unix/sysv/linux/s390/lowlevellock.h: New file.
  7554. * sysdeps/unix/sysv/linux/s390/lowlevelmutex.c: New file.
  7555. * sysdeps/unix/sysv/linux/s390/lowlevelsem.h: New file.
  7556. * sysdeps/unix/sysv/linux/s390/pthread_once.c: New file.
  7557. * sysdeps/unix/sysv/linux/s390/s390-32/pt-initfini.c: New file.
  7558. * sysdeps/unix/sysv/linux/s390/s390-32/pt-vfork.S: New file.
  7559. * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: New file.
  7560. * sysdeps/unix/sysv/linux/s390/s390-64/pt-initfini.c: New file.
  7561. * sysdeps/unix/sysv/linux/s390/s390-64/pt-vfork.S: New file.
  7562. * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: New file.
  7563. * sysdeps/unix/sysv/linux/s390/sem_post.c: New file.
  7564. * sysdeps/unix/sysv/linux/s390/sem_timedwait.c: New file.
  7565. * sysdeps/unix/sysv/linux/s390/libc-lowlevellock.c: New file.
  7566. * sysdeps/unix/sysv/linux/s390/sem_wait.c: New file.
  7567. 2003-02-04 Ulrich Drepper <drepper@redhat.com>
  7568. * atomic.h: Add a couple more default implementations.
  7569. (atomic_compare_and_exchange_acq): Use
  7570. __arch_compare_and_exchange_32_acq in return value definition. It
  7571. always exists.
  7572. (atomic_bit_set): Renamed from atomic_set_bit.
  7573. Add missing atomic_ prefixes.
  7574. * sysdeps/pthread/bits/libc-lock.h (__libc_once): In case no
  7575. thread library is available, use correct value to mark initialized
  7576. once variable.
  7577. 2003-02-03 Ulrich Drepper <drepper@redhat.com>
  7578. * allocatestack.c (allocate_stack): Use __getpagesize instead of
  7579. __sysconf to determine pagesize.
  7580. * pthread_create.c: Include <atomic.h>.
  7581. * allocatestack.c (allocate_stack): Implement coloring of the
  7582. allocated stack memory. Rename pagesize to pagesize_m1. It's the
  7583. size minus one. Adjust users.
  7584. * sysdeps/i386/i686/Makefile: New file.
  7585. 2003-02-02 Ulrich Drepper <drepper@redhat.com>
  7586. * allocatestack.c: Improve comment throughout the file.
  7587. * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S
  7588. (__lll_lock_wait): Add branch prediction.
  7589. * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S
  7590. (__lll_lock_wait): Likewise.
  7591. (lll_unlock_wake_cb): Removed.
  7592. 2003-01-31 Ulrich Drepper <drepper@redhat.com>
  7593. * sysdeps/unix/sysv/linux/bits/posix_opt.h: Remove
  7594. _POSIX_THREAD_PRIORITY_SCHEDULING.
  7595. 2003-01-30 Jakub Jelinek <jakub@redhat.com>
  7596. * sysdeps/pthread/pthread-functions.h (struct pthread_functions):
  7597. Fix return type of ptr___pthread_getspecific.
  7598. 2003-01-29 Ulrich Drepper <drepper@redhat.com>
  7599. * Makefile (tests): Add tst-umask1.
  7600. (tst-umask1-ARGS): Define.
  7601. * tst-umask1.c: New file.
  7602. 2003-01-28 Ulrich Drepper <drepper@redhat.com>
  7603. * Makefile (libpthread-routines): Remove lowlevelrwlock. Add
  7604. pthread_rwlock_rdlock, pthread_rwlock_timedrdlock,
  7605. pthread_rwlock_wrlock, pthread_rwlock_timedwrlock, and
  7606. pthread_rwlock_unlock.
  7607. * sysdeps/unix/sysv/linux/i386/i486/lowlevelrwlock.S: Removed
  7608. * sysdeps/unix/sysv/linux/i386/i586/lowlevelrwlock.S: Removed
  7609. * sysdeps/unix/sysv/linux/i386/i686/lowlevelrwlock.S: Removed
  7610. * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_rdlock.S: New file.
  7611. * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S:
  7612. New file.
  7613. * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_wrlock.S: New file.
  7614. * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S:
  7615. New file.
  7616. * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_unlock.S: New file.
  7617. * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_rdlock.S: New file.
  7618. * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedrdlock.S:
  7619. New file.
  7620. * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_wrlock.S: New file.
  7621. * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedwrlock.S:
  7622. New file.
  7623. * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_unlock.S: New file.
  7624. * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_rdlock.S: New file.
  7625. * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedrdlock.S:
  7626. New file.
  7627. * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_wrlock.S: New file.
  7628. * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedwrlock.S:
  7629. New file.
  7630. * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_unlock.S: New file.
  7631. * Makefile (libpthread-routines): Remove lowlevelcond and
  7632. lowlevelsem. Add sem_wait, sem_trywait, sem_timedwait, sem_post,
  7633. pthread_cond_wait, pthread_cond_timedwait, pthread_cond_signal,
  7634. and pthread_cond_broadcast.
  7635. * sysdeps/unix/sysv/linux/i386/i486/lowlevelsem.S: Removed
  7636. * sysdeps/unix/sysv/linux/i386/i486/lowlevelcond.S: Removed
  7637. * sysdeps/unix/sysv/linux/i386/i586/lowlevelsem.S: Removed
  7638. * sysdeps/unix/sysv/linux/i386/i586/lowlevelcond.S: Removed
  7639. * sysdeps/unix/sysv/linux/i386/i686/lowlevelsem.S: Removed
  7640. * sysdeps/unix/sysv/linux/i386/i686/lowlevelcond.S: Removed
  7641. * sysdeps/unix/sysv/linux/i386/i486/sem_wait.S: New file.
  7642. * sysdeps/unix/sysv/linux/i386/i486/sem_trywait.S: New file.
  7643. * sysdeps/unix/sysv/linux/i386/i486/sem_timedwait.S: New file.
  7644. * sysdeps/unix/sysv/linux/i386/i486/sem_post.S: New file.
  7645. * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: New file.
  7646. * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: New file.
  7647. * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S: New file.
  7648. * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_broadcast.S: New file.
  7649. * sysdeps/unix/sysv/linux/i386/i586/sem_wait.S: New file.
  7650. * sysdeps/unix/sysv/linux/i386/i586/sem_trywait.S: New file.
  7651. * sysdeps/unix/sysv/linux/i386/i586/sem_timedwait.S: New file.
  7652. * sysdeps/unix/sysv/linux/i386/i586/sem_post.S: New file.
  7653. * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_wait.S: New file.
  7654. * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_timedwait.S: New file.
  7655. * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_signal.S: New file.
  7656. * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_broadcast.S: New file.
  7657. * sysdeps/unix/sysv/linux/i386/i686/sem_wait.S: New file.
  7658. * sysdeps/unix/sysv/linux/i386/i686/sem_trywait.S: New file.
  7659. * sysdeps/unix/sysv/linux/i386/i686/sem_timedwait.S: New file.
  7660. * sysdeps/unix/sysv/linux/i386/i686/sem_post.S: New file.
  7661. * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_wait.S: New file.
  7662. * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_timedwait.S: New file.
  7663. * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_signal.S: New file.
  7664. * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_broadcast.S: New file.
  7665. * sysdeps/unix/sysv/linux/i386/lowlevelcond.h: New file.
  7666. * sysdeps/unix/sysv/linux/i386/createthread.c: Define
  7667. PREPARE_CREATE and TLS_VALUE with x86-specific bits. All the rest
  7668. of the code is moved to ...
  7669. * sysdeps/pthread/createthread.c: ...here. New file.
  7670. 2003-01-27 Ulrich Drepper <drepper@redhat.com>
  7671. * sysdeps/unix/sysv/linux/i386/i486/lowlevelsem.S
  7672. (__new_sem_post): Clear %eax before returning.
  7673. Reported by MAEDA Naoaki <maeda.naoaki@jp.fujitsu.com>.
  7674. * Makefile (tests): Add tst-cleanup2.
  7675. * tst-cleanup2.c: New file.
  7676. * sysdeps/pthread/bits/libc-lock.h (__libc_cleanup_region_start):
  7677. Interpret first parameter correctly.
  7678. 2003-01-17 Ulrich Drepper <drepper@redhat.com>
  7679. * Makefile (headers): Add bits/semaphore.h.
  7680. 2003-01-16 Jakub Jelinek <jakub@redhat.com>
  7681. * sysdeps/i386/tls.h (INIT_SYSINFO): Initialize _head->sysinfo even
  7682. if not SHARED.
  7683. 2003-01-14 Ulrich Drepper <drepper@redhat.com>
  7684. * sem_open.c (sem_open): Return SEM_FAILED if existing semaphore
  7685. must be used and mapping failed.
  7686. Reported by Luke Elliott <luke.elliott@activfinancial.com>.
  7687. * Makefile (CFLAGS-pthread_self.os): Define this, not
  7688. CFLAGS-pthread_self.c.
  7689. 2003-01-13 Ulrich Drepper <drepper@redhat.com>
  7690. * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S: Don't export
  7691. lll_unlock_wake_cb.
  7692. * Makefile (libpthread-routines): Add version. Add rules to build
  7693. version.os and banner.h.
  7694. * version.c: New file.
  7695. 2003-01-13 Jakub Jelinek <jakub@redhat.com>
  7696. * pthread_mutex_lock.c (__pthread_mutex_lock_internal): Make
  7697. the alias unconditional.
  7698. * pthread_mutex_unlock.c (__pthread_mutex_unlock_internal): Likewise.
  7699. 2003-01-13 Ulrich Drepper <drepper@redhat.com>
  7700. * Makefile (CFLAGS-pthread_self.c): New definition.
  7701. 2003-01-06 Jakub Jelinek <jakub@redhat.com>
  7702. * sysdeps/pthread/pthread_sigmask.c (pthread_sigmask): Add
  7703. INTERNAL_SYSCALL_DECL, add err argument to INTERNAL_SYSCALL* macros.
  7704. * sysdeps/unix/sysv/linux/raise.c (raise): Likewise.
  7705. * init.c (__pthread_initialize_minimal_internal): Likewise.
  7706. 2003-01-07 Jakub Jelinek <jakub@redhat.com>
  7707. * pthreadP.h (__pthread_cond_timedwait): Add prototype.
  7708. * sysdeps/unix/sysv/linux/i386/dl-sysdep.h
  7709. (RTLD_CORRECT_DYNAMIC_WEAK): Remove.
  7710. (DL_SYSINFO_IMPLEMENTATION): Change into .text section and back.
  7711. * sysdeps/unix/sysv/linux/i386/i686/dl-sysdep.h
  7712. (RTLD_CORRECT_DYNAMIC_WEAK): Remove.
  7713. (DL_SYSINFO_IMPLEMENTATION): Change into .text section and back.
  7714. 2003-01-06 Jakub Jelinek <jakub@redhat.com>
  7715. * pthreadP.h (LIBC_CANCEL_HANDLED): Define.
  7716. * pt-system.c (LIBC_CANCEL_HANDLED): Add.
  7717. * tst-cancel-wrappers.sh: Remove all exceptions.
  7718. 2003-01-05 Ulrich Drepper <drepper@redhat.com>
  7719. * tst-cancel-wrappers.sh: Invoke gawk not awk since we use GNU awk
  7720. features. Reported by Marijn Ros <marijn@mad.scientist.com>.
  7721. * sysdeps/unix/sysv/linux/jmp-unwind.c: Include <pthread-functions.h>.
  7722. Use __libc_pthread_functions array if SHARED.
  7723. * pthreadP.h: Move pthread_cond_2_0_t definition to...
  7724. * sysdeps/unix/sysv/linux/internaltypes.h: ...here.
  7725. * sysdeps/pthread/bits/libc-lock.h (__libc_ptf_call): New #define.
  7726. (__libc_rwlock_rdlock, __libc_rwlock_wrlock, __libc_rwlock_unlock,
  7727. __libc_key_create, __libc_getspecific, __libc_setspecific): Use
  7728. __libc_ptf_call instead of __libc_maybe_call.
  7729. (PTF): New #define.
  7730. (__libc_cleanup_region_start): Wrap function name with PTF call.
  7731. (__libc_cleanup_region_end): Likewise.
  7732. (__libc_cleanup_end): Likewise.
  7733. * pthread_getspecific.c: Add __pthread_getspecific_internal alias.
  7734. * pthread_setspecific.c: Add __pthread_setspecific_internal alias.
  7735. * pthread_key_create.c: Add __pthread_key_create_internal alias.
  7736. * pthreadP.h: Add prototypes.
  7737. * sysdeps/unix/sysv/linux/i386/i486/lowlevelrwlock.S: Add
  7738. __pthread_rwlock_rdlock, __pthread_rwlock_wrlock, and
  7739. __pthread_rwlock_unlock aliases.
  7740. * pthreadP.h: Add prototypes for new aliases.
  7741. * pthreadP.h (struct pthead_functions): Moved to...
  7742. * sysdeps/pthread/pthread-functions.h: ...here. New file.
  7743. * init.c (pthread_functions): Add initializers for new elements.
  7744. * cleanup_defer.c: Add __pthread_cleanup_push_defer and
  7745. __pthread_cleanup_pop_restore aliases.
  7746. * pthreadP.h: Add prototypes.
  7747. * cleanup.c: Rename _GI_pthread_cleanup_push to __pthread_cleanup_push
  7748. and _GI_pthread_cleanup_pop to __pthread_cleanup_pop.
  7749. * sysdeps/unix/sysv/linux/i386/i486/lowlevelcond.S: Adjust caller.
  7750. * sysdeps/unix/sysv/linux/i386/pthread_once.S: Likewise.
  7751. * sysdeps/unix/sysv/linux/x86_64/pthread_once.S: Likewise.
  7752. * pthreadP.h: Adjust prototypes and callers.
  7753. 2003-01-04 Ulrich Drepper <drepper@redhat.com>
  7754. * Makefile (tests): Add tst-cancel7.
  7755. (tst-cancel7-ARGS): New variable.
  7756. * tst-cancel7.c: New file.
  7757. * old_pthread_cond_broadcast.c: Optimize initialization a bit to work
  7758. around gcc defficiencies.
  7759. * old_pthread_cond_signal.c: Likewise.
  7760. * old_pthread_cond_timedwait.c: Likewise.
  7761. * old_pthread_cond_wait.c: Likewise.
  7762. * pthreadP.h (pthread_cond_2_0_t): Remove unneeded lock element.
  7763. 2003-01-03 Ulrich Drepper <drepper@redhat.com>
  7764. * Makefile (tests): Add tst-cond7.
  7765. * tst-cond7.c: New file.
  7766. * sysdeps/unix/sysv/linux/i386/i486/lowlevelcond.S
  7767. (condvar_cleanup): Get condvar address from the right place.
  7768. * atomic.h: Correct definitions of atomic_full_barrier,
  7769. atomic_read_barrier, atomic_write_barrier.
  7770. * old_pthread_cond_broadcast.c: Make memory allocate and initialization
  7771. race-free.
  7772. * old_pthread_cond_signal.c: Likewise.
  7773. * old_pthread_cond_timedwait.c: Likewise.
  7774. * old_pthread_cond_wait.c: Likewise.
  7775. 2003-01-03 Jakub Jelinek <jakub@redhat.com>
  7776. * Makefile ($(objpfx)libpthread.so): Depend on ld.so.
  7777. 2003-01-03 Ulrich Drepper <drepper@redhat.com>
  7778. * pthreadP.h (pthread_cond_2_0_t): New type.
  7779. (struct pthread_functions): Use new type for 2.0 condvar callbacks.
  7780. Use new type for the 2.0 condvar function prototypes.
  7781. * forward.c: Use pthread_cond_2_0_t for 2.0 condvar functions.
  7782. * old_pthread_cond_init.c: Use pthread_cond_2_0_t for condvar
  7783. parameter.
  7784. * old_pthread_cond_destroy.c: Likewise.
  7785. * old_pthread_cond_broadcast.c: Likewise. Lock appropriately.
  7786. * old_pthread_cond_signal.c: Likewise.
  7787. * old_pthread_cond_timedwait.c: Likewise.
  7788. * old_pthread_cond_wait.c: Likewise.
  7789. * sysdeps/unix/sysv/linux/i386/i486/lowlevelcond.S
  7790. (__pthread_cond_wait): Don't save cancellation mode and seq value
  7791. in same location.
  7792. * herrno.c (__h_errno_location): Don't define as weak.
  7793. 2003-01-02 Jakub Jelinek <jakub@redhat.com>
  7794. * Versions [libc] (GLIBC_2.3.2): Export pthread_cond_broadcast,
  7795. pthread_cond_destroy, pthread_cond_init, pthread_cond_signal
  7796. and pthread_cond_wait.
  7797. * old_pthread_cond_broadcast.c (__old_pthread_cond_broadcast):
  7798. Renamed to...
  7799. (__pthread_cond_broadcast_2_0): ... this.
  7800. * old_pthread_cond_destroy.c (__old_pthread_cond_destroy):
  7801. Renamed to...
  7802. (__pthread_cond_destroy_2_0): ... this.
  7803. * old_pthread_cond_init.c (__old_pthread_cond_init):
  7804. Renamed to...
  7805. (__pthread_cond_init_2_0): ... this.
  7806. * old_pthread_cond_signal.c (__old_pthread_cond_signal):
  7807. Renamed to...
  7808. (__pthread_cond_signal_2_0): ... this.
  7809. * old_pthread_cond_wait.c (__old_pthread_cond_wait):
  7810. Renamed to...
  7811. (__pthread_cond_wait_2_0): ... this.
  7812. * pthread_cond_destroy.c: Include shlib-compat.h.
  7813. (pthread_cond_destroy): Change strong_alias into versioned_symbol.
  7814. * pthread_cond_init.c: Include shlib-compat.h.
  7815. (pthread_cond_init): Change strong_alias into versioned_symbol.
  7816. * pthreadP.h (struct pthread_functions): Rename ptr_pthread_cond_*
  7817. fields to ptr___pthread_cond_* and add ptr___pthread_cond_*_2_0
  7818. fields.
  7819. (__pthread_cond_broadcast_2_0, __pthread_cond_destroy_2_0,
  7820. __pthread_cond_init_2_0, __pthread_cond_signal_2_0,
  7821. __pthread_cond_wait_2_0): New prototypes.
  7822. (__old_pthread_cond_broadcast, __old_pthread_cond_destroy,
  7823. __old_pthread_cond_init, __old_pthread_cond_signal,
  7824. __old_pthread_cond_wait): Removed.
  7825. * init.c: Include shlib-compat.h.
  7826. (pthread_functions): Guard ptr___pthread_attr_init_2_0
  7827. initialization with SHLIB_COMPAT (GLIBC_2_0, GLIBC_2_1).
  7828. Rename ptr_pthread_cond_* to ptr___pthread_cond_*, initialize
  7829. ptr___pthread_cond_*_2_0 fields.
  7830. * forward.c: Export both pthread_cond_*@@GLIBC_2.3.2 and
  7831. pthread_cond_*@GLIBC_2.0 compatibility symbols.
  7832. * sysdeps/pthread/sigaction.c (SIGCANCEL): Only define if
  7833. LIBC_SIGACTION was not yet defined.
  7834. [!defined LIBC_SIGACTION]: Define LIBC_SIGACTION, #include self.
  7835. [!defined LIBC_SIGACTION] (__sigaction): New function and
  7836. libc_hidden_weak.
  7837. [!defined LIBC_SIGACTION] (sigaction): New weak_alias.
  7838. [defined LIBC_SIGACTION]: #include_next <sigaction.c>.
  7839. 2003-01-02 Jakub Jelinek <jakub@redhat.com>
  7840. * Makefile (CFLAGS-pthread_atfork.c): Add -DNOT_IN_libc.
  7841. 2003-01-02 Ulrich Drepper <drepper@redhat.com>
  7842. * sysdeps/unix/sysv/linux/i386/bits/pthreadtypes.h (pthread_cond_t):
  7843. New, larger type definition.
  7844. * sysdeps/unix/sysv/linux/i386/i486/lowlevelcond.S: New condvar
  7845. implementation.
  7846. * Versions [libpthread]: Add definitions for new pthread_cond_*
  7847. interfaces for version GLIBC_2.3.2.
  7848. * pthread_cond_init.c: Update initialization for new type definition.
  7849. * Makefile (libpthread-routines): Remove pthread_cond_wait,
  7850. pthread_cond_timedwait, pthread_cond_signal, and
  7851. pthread_cond_broadcast. Add old_pthread_cond_init,
  7852. old_pthread_cond_destroy, old_pthread_cond_wait,
  7853. old_pthread_cond_timedwait, old_pthread_cond_signal, and
  7854. old_pthread_cond_broadcast.
  7855. * old_pthread_cond_broadcast.c: New file.
  7856. * old_pthread_cond_destroy.c: New file.
  7857. * old_pthread_cond_init.c: New file.
  7858. * old_pthread_cond_signal.c: New file.
  7859. * old_pthread_cond_timedwait.c: New file.
  7860. * old_pthread_cond_wait.c: New file.
  7861. * pthreadP.h: Add prototypes for the compatibility interfaces.
  7862. * pthread_cond_destroy.c: Don't include <errno.h>.
  7863. 2003-01-01 Ulrich Drepper <drepper@redhat.com>
  7864. * sysdeps/unix/sysv/linux/i386/i486/lowlevelrwlock.S: Avoid
  7865. unnecessary zero offset when addressing MUTEX.
  7866. 2002-12-31 Ulrich Drepper <drepper@redhat.com>
  7867. * sysdeps/unix/sysv/linux/fork.h: Add libc_hidden_proto for
  7868. __register_atfork.
  7869. * sysdeps/unix/sysv/linux/register-atfork.c: Add libc_hidden_def
  7870. for __register_atfork.
  7871. 2002-12-31 Jakub Jelinek <jakub@redhat.com>
  7872. * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: Use __ASSEMBLER__
  7873. instead of ASSEMBLER test macro.
  7874. * sysdeps/unix/sysv/linux/allocrtsig.c (__libc_current_sigrtmin,
  7875. __libc_current_sigrtmax): Add libc_hidden_def.
  7876. * sysdeps/pthread/list.h: Remove assert.h include.
  7877. 2002-12-31 Ulrich Drepper <drepper@redhat.com>
  7878. * sysdeps/pthread/pt-initfini.c (call_initialize_minimal): Use
  7879. __pthread_initialize_minimal_internal not
  7880. __pthread_initialize_minimal.
  7881. 2002-12-30 Ulrich Drepper <drepper@redhat.com>
  7882. * sysdeps/pthread/pt-initfini.c (call_initialize_minimal): Mark
  7883. __pthread_initialize_minimal as hidden.
  7884. * init.c (__pthread_initialize_minimal_internal): Don't mark as
  7885. constructor.
  7886. 2002-12-31 Jakub Jelinek <jakub@redhat.com>
  7887. * Makefile ($(inst_libdir)/libpthread.so): Depend on
  7888. $(common-objpfx)format.lds, include that into the output script.
  7889. Fix comment.
  7890. (extra-B-pthread.so): Change linuxthreads/ into nptl/.
  7891. 2002-12-28 Andreas Jaeger <aj@suse.de>
  7892. * sysdeps/unix/sysv/linux/xstatconv.c (xstat_conv): Adjust for
  7893. nsec resolution changes.
  7894. (xstat64_conv): Likewise.
  7895. (xstat32_conv): Likewise.
  7896. * sysdeps/unix/sysv/linux/kernel_stat.h: Add nsec resolution for
  7897. struct kernel_stat.
  7898. * sysdeps/unix/sysv/linux/bits/stat.h: Add nsec resolution for
  7899. structs stat and stat64.
  7900. * time/time.h (__timespec_defined): Define for __USE_MISC.
  7901. * io/sys/stat.h [__USE_MISC]: Define __need_timespec for struct stat.
  7902. 2002-12-30 Jakub Jelinek <jakub@redhat.com>
  7903. * forward.c (FORWARD2): Renamed from FORWARD3. Remove unused export
  7904. argument.
  7905. (pthread_attr_init_2_0, pthread_attr_init_2_1): Use FORWARD macro.
  7906. (pthread_exit): Use strong_alias to avoid warnings.
  7907. * pthreadP.h (struct pthread_functions): Rename ptr_pthread_exit
  7908. and ptr_pthread_attr_init_2_* to ptr___pthread_exit and
  7909. ptr___pthread_attr_init_2_*.
  7910. * init.c (pthread_functions): Adjust.
  7911. 2002-12-29 Ulrich Drepper <drepper@redhat.com>
  7912. * forward.c: Make all functions available by default again. It
  7913. caused too much trouble.
  7914. * pt-siglongjmp.c: Removed.
  7915. 2002-12-28 Jakub Jelinek <jakub@redhat.com>
  7916. * sysdeps/i386/tls.h: Include tcb-offsets.h in assembler.
  7917. (SYSINFO_OFFSET, MULTIPLE_THREADS_OFFSET): Remove.
  7918. * sysdeps/i386/Makefile: New file.
  7919. * sysdeps/i386/tcb-offsets.sym: New file.
  7920. * sysdeps/pthread/tcb-offsets.h: New file.
  7921. * sysdeps/unix/sysv/linux/libc_pthread_init.c (__libc_pthread_init):
  7922. Remove MULTIPLE_THREADS_OFFSET and SYSINFO_OFFSET checks.
  7923. * sysdeps/unix/sysv/linux/Versions [libc] (GLIBC_PRIVATE): Move
  7924. __register_atfork...
  7925. (GLIBC_2.3.2): ...here.
  7926. 2002-12-28 Ulrich Drepper <drepper@redhat.com>
  7927. * sysdeps/pthread/pthread.h: Mark pthread_attr_getstackaddr and
  7928. pthread_attr_setstackaddr with __attribute_deprecated__.
  7929. 2002-12-27 Jakub Jelinek <jakub@redhat.com>
  7930. * pt-system.c (system): Remove cancellation handling.
  7931. * tst-cancel-wrappers.sh: Allow pt-system.o* to not use the
  7932. cancellation routines.
  7933. 2002-12-28 Ulrich Drepper <drepper@redhat.com>
  7934. * descr.h: Include <dl-sysdep.h>.
  7935. (struct pthread): Move header.data.list to the back of the struct.
  7936. * sysdeps/i386/tls.h (tcbhead_t): Move list to the back of the struct.
  7937. (MULTIPLE_THREADS_OFFSET): Adjust offset.
  7938. (SYSINFO_OFFSEET): Likewise.
  7939. 2002-12-27 Jakub Jelinek <jakub@redhat.com>
  7940. * sysdeps/unix/sysv/linux/i386/i686/dl-sysdep.h (USE_DL_SYSINFO):
  7941. Define.
  7942. (DL_SYSINFO_DEFAULT): Cast to uintptr_t to avoid warnings.
  7943. * sysdeps/unix/sysv/linux/i386/dl-sysdep.h (NEED_DL_SYSINFO,
  7944. DL_SYSINFO_DEFAULT, DL_SYSINFO_IMPLEMENTATION): Define.
  7945. (USE_DL_SYSINFO): Undef.
  7946. 2002-12-22 Jakub Jelinek <jakub@redhat.com>
  7947. * Makefile (tests-reverse): Use $(objpfx)../libc.so instead of
  7948. $(common-objpfx)libc.so.
  7949. * tst-cancel4.c (tf_write, tf_writev): Increase buf sizes so that
  7950. it is bigger than pipe buffer size even on arches with bigger
  7951. page size.
  7952. (tf_usleep): Cast usleep argument to useconds_t to avoid warnings.
  7953. 2002-12-25 Ulrich Drepper <drepper@redhat.com>
  7954. * sysdeps/unix/sysv/linux/i386/i486/lowlevelsem.S: Implement
  7955. correct errno access for case that USE___THREAD is not defined.
  7956. 2002-12-24 Ulrich Drepper <drepper@redhat.com>
  7957. * sysdeps/unix/sysv/linux/i386/dl-sysdep.h: Add missing #endif.
  7958. Patch by Marijn Ros <marijn@mad.scientist.com>.
  7959. 2002-12-22 Roland McGrath <roland@redhat.com>
  7960. * Makefile (omit-deps): Add $(unix-syscalls:%=ptw-%).
  7961. 2002-12-20 Ulrich Drepper <drepper@redhat.com>
  7962. * sysdeps/pthread/bits/stdio-lock.h (_IO_lock_inexpensive): Define.
  7963. 2002-12-19 Ulrich Drepper <drepper@redhat.com>
  7964. * sysdeps/unix/sysv/linux/i386/dl-sysdep.h: Don't define
  7965. NEED_DL_SYSINFO since no processor < i686 had the sysenter opcode.
  7966. * sysdeps/unix/sysv/linux/i386/i686/dl-sysdep.h: New file.
  7967. * sysdeps/unix/sysv/linux/i386/pthread_once.S: Use ENTER_KERNEL instead
  7968. of int $0x80.
  7969. * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S: Likewise.
  7970. * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevelmutex.S: Likewise.
  7971. * sysdeps/unix/sysv/linux/i386/i486/lowlevelcond.S: Likewise.
  7972. * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S: Likewise.
  7973. * sysdeps/unix/sysv/linux/i386/i486/lowlevelmutex.S: Likewise.
  7974. * sysdeps/unix/sysv/linux/i386/i486/lowlevelrwlock.S: Likewise.
  7975. * sysdeps/unix/sysv/linux/i386/i486/lowlevelsem.S: Likewise.
  7976. * sysdeps/unix/sysv/linux/i386/i486/pthread_barrier_wait.S: Likewise.
  7977. * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Add support for using
  7978. sysenter.
  7979. * sysdeps/unix/sysv/linux/i386/lowlevelsem.h: Likewise.
  7980. * sysdeps/i386/tls.h: Unconditionally include <dl-sysdep.h>.
  7981. * allocatestack.c (allocate_stack) [NEED_DL_SYSINFO]: Set sysinfo
  7982. in new TCB.
  7983. * sysdeps/unix/sysv/linux/i386/createthread.c (create_thread): Check
  7984. that sysinfo is properly initialized.
  7985. * sysdeps/unix/sysv/linux/i386/dl-sysdep.h: Define RTLD_PRIVATE_ERRNO
  7986. to 1 only for ld.so.
  7987. * sysdeps/unix/sysv/linux/i386/dl-sysdep.h: Define
  7988. RTLD_CORRECT_DYNAMIC_WEAK.
  7989. 2002-12-19 Jakub Jelinek <jakub@redhat.com>
  7990. * forward.c (pthread_attr_init_2_0, pthread_attr_init_2_1):
  7991. Use return 0 as 6th argument to FORWARD4.
  7992. * pthread_equal.c: Include pthreadP.h instead of pthread.h.
  7993. 2002-12-18 Ulrich Drepper <drepper@redhat.com>
  7994. * descr.h (struct pthread) [NEED_DL_SYSINFO]: Add sysinfo member.
  7995. * sysdeps/i386/tls.h (tcbhead_t): Add sysinfo member.
  7996. Define SYSINFO_OFFSEET if NEED_DL_SYSINFO is defined.
  7997. (INIT_SYSINFO): New #define.
  7998. (TLS_TP_INIT): Use INIT_SYSINFO.
  7999. * sysdeps/unix/sysv/linux/libc_pthread_init.c (__libc_pthread_init):
  8000. At test to make sure SYSINFO_OFFSET value is correct.
  8001. * sysdeps/unix/sysv/linux/i386/dl-sysdep.h: New file.
  8002. 2002-12-18 Jakub Jelinek <jakub@redhat.com>
  8003. * sysdeps/pthread/flockfile.c (flockfile): Change into weak alias.
  8004. * sysdeps/unix/sysv/linux/raise.c (gsignal): Add weak alias to raise.
  8005. * Versions [libc: GLIBC_2.0]: Add pthread_attr_init.
  8006. [libpthread: GLIBC_2.1]: Remove __pthread_rwlock_init,
  8007. __pthread_rwlock_destroy, __pthread_rwlock_rdlock,
  8008. __pthread_rwlock_wrlock, __pthread_rwlock_unlock,
  8009. __pthread_rwlock_tryrdlock and __pthread_rwlock_trywrlock.
  8010. 2002-12-18 Ulrich Drepper <drepper@redhat.com>
  8011. * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: Use ENTER_KERNEL
  8012. macro instead of using int $0x80 directly.
  8013. * sysdeps/pthread/bits/stdio-lock.h: New file.
  8014. * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevelmutex.S: New file.
  8015. * sysdeps/unix/sysv/linux/i386/i586/libc-lowlevelmutex.S: New file.
  8016. * sysdeps/unix/sysv/linux/i386/i686/libc-lowlevelmutex.S: New file.
  8017. * Makefile (routines): Add libc-lowlevelmutex.
  8018. * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S: Remove
  8019. __i686.get_pc_thunk.dx.
  8020. 2002-12-17 Jakub Jelinek <jakub@redhat.com>
  8021. * Makefile (libpthread-shared-only-routines): Add pt-allocrtsig.
  8022. (tests): Depend on $(objpfx)tst-cancel-wrappers.out.
  8023. ($(objpfx)tst-cancel-wrappers.out): New rule.
  8024. * tst-cancel-wrappers.sh: New test.
  8025. * tst-locale1.c: Include signal.h.
  8026. (uselocale): Test static linking of __libc_current_sigrt*.
  8027. 2002-12-17 Ulrich Drepper <drepper@redhat.com>
  8028. * Makefile (tests): Add tst-cancel6.
  8029. * tst-cancel6.c: New file
  8030. 2002-12-17 Jakub Jelinek <jakub@redhat.com>
  8031. * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (SINGLE_THREAD_P):
  8032. Define meaningfully for assembler as well.
  8033. * pthreadP.h (struct pthread_functions): Remove
  8034. ptr_pthread_attr_init field. Add ptr_pthread_attr_init_2_0
  8035. and ptr_pthread_attr_init_2_1 fields.
  8036. * init.c (pthread_functions): Initialize ptr_pthread_attr_init_2_0
  8037. and ptr_pthread_attr_init_2_1 instead of ptr_pthread_attr_init.
  8038. * forward.c (FORWARD4): Renamed from FORWARD3. Add export argument.
  8039. (FORWARD3): Define using FORWARD4.
  8040. (pthread_attr_init): Provide both @GLIBC_2.0 and @@GLIBC_2.1
  8041. versions.
  8042. * pt-system.c: Remove duplicate stdlib.h include.
  8043. 2002-12-16 Ulrich Drepper <drepper@redhat.com>
  8044. * sem_init.c: Define sem_init@GLIBC_2.0.
  8045. * sem_destroy.c: Define sem_destroy@GLIBC_2.0.
  8046. * sem_getvalue.c: Define sem_getvalue@GLIBC_2.0.
  8047. * flockfile.c: Moved to...
  8048. * sysdeps/pthread/flockfile.c: ...here. New file.
  8049. * funlockfile.c: Moved to...
  8050. * sysdeps/pthread/funlockfile.c: ...here. New file.
  8051. * ftrylockfile.c: Moved to...
  8052. * sysdeps/pthread/ftrylockfile.c: ...here. New file.
  8053. 2002-12-16 Jakub Jelinek <jakub@redhat.com>
  8054. * libc-cancellation.c: Guard both function with
  8055. #if !defined NOT_IN_libc.
  8056. * Makefile (libpthread-routines): Use ptw-, not pt- prefix for the
  8057. automatically provided pthread wrappers.
  8058. * pthreadP.h (LIBC_CANCEL_ASYNC, LIBC_CANCEL_RESET): Define to
  8059. CANCEL_* if IS_IN_libpthread and to dummy versions if not in libc
  8060. nor in libpthread.
  8061. * pt-open.c: Removed.
  8062. * pt-fcntl.c: Removed.
  8063. * pt-fsync.c: Removed.
  8064. * pt-lseek.c: Removed.
  8065. * pt-msgrcv.c: Removed.
  8066. * pt-msgsnd.c: Removed.
  8067. * pt-msync.c: Removed.
  8068. * pt-nanosleep.c: Removed.
  8069. * pt-open64.c: Removed.
  8070. * pt-pause.c: Removed.
  8071. * pt-pread.c: Removed.
  8072. * pt-pread64.c: Removed.
  8073. * pt-pwrite.c: Removed.
  8074. * pt-pwrite64.c: Removed.
  8075. * pt-read.c: Removed.
  8076. * pt-recv.c: Removed.
  8077. * pt-recvfrom.c: Removed.
  8078. * pt-recvmsg.c: Removed.
  8079. * pt-send.c: Removed.
  8080. * pt-sendto.c: Removed.
  8081. * pt-sigtimedwait.c: Removed.
  8082. * pt-sigwait.c: Removed.
  8083. * pt-wait.c: Removed.
  8084. * pt-waitpid.c: Removed.
  8085. * pt-write.c: Removed.
  8086. * pt-accept.c: Removed.
  8087. * pt-close.c: Removed.
  8088. * pt-connect.c: Removed.
  8089. * pt-lseek64.c: Removed.
  8090. * pt-sendmsg.c: Removed.
  8091. * pt-tcdrain.c: Removed.
  8092. 2002-12-15 Ulrich Drepper <drepper@redhat.com>
  8093. * init.c (__pthread_initialize_minimal_internal): Renamed from
  8094. __pthread_initialize_minimal. Make old name an alias. This
  8095. converts a normal relocation into a relative relocation.
  8096. * pt-fcntl.c (__fcntl): Use fcntl64 syscall, not fcntl.
  8097. * Versions [libpthread: GLIBC_2.3.2]: Remove creat, poll, pselect,
  8098. readv, select, sigpause, sigsuspend, sigwaitinfo, waitid, writev.
  8099. * Makefile (libpthread-routines): Remove pt-creat, pt-poll,
  8100. pt-pselect, pt-readv, pt-select, pt-sigpause, pt-sigsuspend,
  8101. pt-sigwaitinfo, pt-waitid, and pt-writev.
  8102. * pt-creat.c: Removed.
  8103. * pt-poll.c: Removed.
  8104. * pt-pselect.c: Removed.
  8105. * pt-readv.c: Removed.
  8106. * pt-select.c: Removed.
  8107. * pt-sigpause.c: Removed.
  8108. * pt-sigsuspend.c: Removed.
  8109. * pt-sigwaitinfo.c: Removed.
  8110. * pt-waitid.c: Removed.
  8111. * pt-writev.c: Removed.
  8112. * init.c (pthread_functions): New variable.
  8113. (__pthread_initialize_minimal): Pass pointer to pthread_functions
  8114. (or NULL) to __libc_pthread_init.
  8115. * forward.c: Rewrite to use __libc:pthread_functions array to get
  8116. function addresses.
  8117. * sysdeps/unix/sysv/linux/fork.h: Remove __libc_pthread_init
  8118. prototype.
  8119. * sysdeps/unix/sysv/linux/libc_pthread_init.c (__libc_pthread_init):
  8120. Take new parameter. Copy content of variable pointed to by it
  8121. to __libc_pthread_init.
  8122. * pthreadP.h (struct pthread_functions): New type.
  8123. (__libc_pthread_init): Declare.
  8124. * pthread_attr_destroy.c: Add namespace protected alias.
  8125. * pthread_attr_getdetachstate.c: Likewise.
  8126. * pthread_attr_getinheritsched.c: Likewise.
  8127. * pthread_attr_getschedparam.c: Likewise.
  8128. * pthread_attr_getschedpolicy.c: Likewise.
  8129. * pthread_attr_getscope.c: Likewise.
  8130. * pthread_attr_setdetachstate.c: Likewise.
  8131. * pthread_attr_setinheritsched.c: Likewise.
  8132. * pthread_attr_setschedparam.c: Likewise.
  8133. * pthread_attr_setschedpolicy.c: Likewise.
  8134. * pthread_attr_setscope.c: Likewise.
  8135. * pthread_cond_broadcast.c: Likewise.
  8136. * pthread_cond_destroy.c: Likewise.
  8137. * pthread_cond_init.c: Likewise.
  8138. * pthread_cond_signal.c: Likewise.
  8139. * pthread_cond_wait.c: Likewise.
  8140. * pthread_condattr_destroy.c: Likewise.
  8141. * pthread_condattr_init.c: Likewise.
  8142. * pthread_equal.c: Likewise.
  8143. * pthread_exit.c: Likewise.
  8144. * pthread_getschedparam.c: Likewise.
  8145. * pthread_self.c: Likewise.
  8146. * pthread_setcancelstate.c: Likewise.
  8147. * pthread_setschedparam.c: Likewise.
  8148. * pthread_mutex_destroy.c: Likewise.
  8149. * pthread_mutex_init.c: Likewise.
  8150. * pthreadP.h: Add prototypes for the aliases.
  8151. * sysdeps/unix/sysv/linux/i386/createthread.c (create_thread): Set
  8152. multiple_threads member in correct TCB to 1.
  8153. * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: Define
  8154. SINGLE_THREAD_P. If in libc or libpthread examine multiple_thread
  8155. member of thread decriptor, otherwise return unconditionally 1.
  8156. 2002-12-14 Ulrich Drepper <drepper@redhat.com>
  8157. * sysdeps/unix/sysv/linux/i386/pt-socket.S: Changes folded into the
  8158. regular Linux version. Remove file.
  8159. * sysdeps/unix/sysv/linux/connect.S: Likewise. Remove file.
  8160. * sysdeps/unix/sysv/linux/llseek.c: Likewise. Remove file.
  8161. * sysdeps/unix/sysv/linux/msgrcv.c: Likewise. Remove file.
  8162. * sysdeps/unix/sysv/linux/msgsnd.c: Likewise. Remove file.
  8163. * sysdeps/unix/sysv/linux/open64.c: Likewise. Remove file.
  8164. * sysdeps/unix/sysv/linux/poll.c: Likewise. Remove file.
  8165. * sysdeps/unix/sysv/linux/pread.c: Likewise. Remove file.
  8166. * sysdeps/unix/sysv/linux/pread64.c: Likewise. Remove file.
  8167. * sysdeps/unix/sysv/linux/pselect.c: Likewise. Remove file.
  8168. * sysdeps/unix/sysv/linux/pwrite.c: Likewise. Remove file.
  8169. * sysdeps/unix/sysv/linux/pwrite64.c: Likewise. Remove file.
  8170. * sysdeps/unix/sysv/linux/readv.c: Likewise. Remove file.
  8171. * sysdeps/unix/sysv/linux/recv.S: Likewise. Remove file.
  8172. * sysdeps/unix/sysv/linux/recvfrom.S: Likewise. Remove file.
  8173. * sysdeps/unix/sysv/linux/recvmsg.S: Likewise. Remove file.
  8174. * sysdeps/unix/sysv/linux/send.S: Likewise. Remove file.
  8175. * sysdeps/unix/sysv/linux/sendmsg.S: Likewise. Remove file.
  8176. * sysdeps/unix/sysv/linux/sendto.S: Likewise. Remove file.
  8177. * sysdeps/unix/sysv/linux/sigpause.c: Likewise. Remove file.
  8178. * sysdeps/unix/sysv/linux/sigsuspend.c: Likewise. Remove file.
  8179. * sysdeps/unix/sysv/linux/sigtimedwait.c: Likewise. Remove file.
  8180. * sysdeps/unix/sysv/linux/sigwait.c: Likewise. Remove file.
  8181. * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise. Remove file.
  8182. * sysdeps/unix/sysv/linux/system.c: Likewise. Remove file.
  8183. * sysdeps/unix/sysv/linux/tcdrain.c: Likewise. Remove file.
  8184. * sysdeps/unix/sysv/linux/wait.c: Likewise. Remove file.
  8185. * sysdeps/unix/sysv/linux/waitid.c: Likewise. Remove file.
  8186. * sysdeps/unix/sysv/linux/waitpid.c: Likewise. Remove file.
  8187. * sysdeps/unix/sysv/linux/writev.c: Likewise. Remove file.
  8188. * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise. Remove file.
  8189. 2002-12-14 Jakub Jelinek <jakub@redhat.com>
  8190. * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: New file.
  8191. * sysdeps/unix/sysv/linux/open.c: Removed.
  8192. * sysdeps/unix/sysv/linux/fsync.c: Removed.
  8193. * sysdeps/unix/sysv/linux/lseek.c: Removed.
  8194. * sysdeps/unix/sysv/linux/msync.c: Removed.
  8195. * sysdeps/unix/sysv/linux/read.c: Removed.
  8196. * sysdeps/unix/sysv/linux/close.c: Removed.
  8197. * sysdeps/unix/sysv/linux/creat.c: Removed.
  8198. * sysdeps/unix/sysv/linux/nanosleep.c: Removed.
  8199. * sysdeps/unix/sysv/linux/pause.c: Removed.
  8200. * sysdeps/unix/sysv/linux/select.c: Removed.
  8201. * sysdeps/unix/sysv/linux/write.c: Removed.
  8202. 2002-12-14 Ulrich Drepper <drepper@redhat.com>
  8203. * sysdeps/unix/sysv/linux/i386/pt-socket.S: Check multiple_threads
  8204. element in TCB to see whether locking is needed.
  8205. * sysdeps/unix/sysv/linux/libc_pthread_init.c: Check that
  8206. MULTIPLE_THREADS_OFFSET value is correct.
  8207. * sysdeps/unix/sysv/linux/close.c: New file.
  8208. * sysdeps/unix/sysv/linux/connect.S: New file.
  8209. * sysdeps/unix/sysv/linux/creat.c: New file.
  8210. * sysdeps/unix/sysv/linux/fsync.c: New file.
  8211. * sysdeps/unix/sysv/linux/llseek.c: New file.
  8212. * sysdeps/unix/sysv/linux/lseek.c: New file.
  8213. * sysdeps/unix/sysv/linux/msgrcv.c: New file.
  8214. * sysdeps/unix/sysv/linux/msgsnd.c: New file.
  8215. * sysdeps/unix/sysv/linux/msync.c: New file.
  8216. * sysdeps/unix/sysv/linux/nanosleep.c: New file.
  8217. * sysdeps/unix/sysv/linux/open.c: New file.
  8218. * sysdeps/unix/sysv/linux/open64.c: New file.
  8219. * sysdeps/unix/sysv/linux/pause.c: New file.
  8220. * sysdeps/unix/sysv/linux/poll.c: New file.
  8221. * sysdeps/unix/sysv/linux/pread.c: New file.
  8222. * sysdeps/unix/sysv/linux/pread64.c: New file.
  8223. * sysdeps/unix/sysv/linux/pselect.c: New file.
  8224. * sysdeps/unix/sysv/linux/pwrite.c: New file.
  8225. * sysdeps/unix/sysv/linux/pwrite64.c: New file.
  8226. * sysdeps/unix/sysv/linux/readv.c: New file.
  8227. * sysdeps/unix/sysv/linux/recv.S: New file.
  8228. * sysdeps/unix/sysv/linux/recvfrom.S: New file.
  8229. * sysdeps/unix/sysv/linux/recvmsg.S: New file.
  8230. * sysdeps/unix/sysv/linux/select.c: New file.
  8231. * sysdeps/unix/sysv/linux/send.S: New file.
  8232. * sysdeps/unix/sysv/linux/sendmsg.S: New file.
  8233. * sysdeps/unix/sysv/linux/sendto.S: New file.
  8234. * sysdeps/unix/sysv/linux/sigpause.c: New file.
  8235. * sysdeps/unix/sysv/linux/sigsuspend.c: New file.
  8236. * sysdeps/unix/sysv/linux/sigtimedwait.c: New file.
  8237. * sysdeps/unix/sysv/linux/sigwait.c: New file.
  8238. * sysdeps/unix/sysv/linux/sigwaitinfo.c: New file.
  8239. * sysdeps/unix/sysv/linux/system.c: New file.
  8240. * sysdeps/unix/sysv/linux/tcdrain.c: New file.
  8241. * sysdeps/unix/sysv/linux/wait.c: New file.
  8242. * sysdeps/unix/sysv/linux/waitid.c: New file.
  8243. * sysdeps/unix/sysv/linux/waitpid.c: New file.
  8244. * sysdeps/unix/sysv/linux/writev.c: New file.
  8245. * sysdeps/unix/sysv/linux/i386/fcntl.c: New file.
  8246. * pt-readv.c: Fix comment.
  8247. 2002-12-14 Jakub Jelinek <jakub@redhat.com>
  8248. * tst-cleanup1.c: Include stdlib.h.
  8249. * tst-cancel5.c: New test.
  8250. * Makefile (tests): Add tst-cancel5.
  8251. (tst-cancel5): Link against libc.so libpthread.so in that order.
  8252. 2002-12-13 Ulrich Drepper <drepper@redhat.com>
  8253. * forward.c (test_loaded): Prevent recursive calls.
  8254. * Makefile (routines): Add libc-cancellation.
  8255. * libc-cancellation.c: New file.
  8256. * descr.h (struct pthread): Add multiple_threads field.
  8257. * allocatestack.c (allocate_stack): Initialize multiple_header field of
  8258. new thread descriptor to 1.
  8259. * sysdeps/unix/sysv/linux/i386/createthread.c (create_thread):
  8260. Initialize multiple_thread field after successful thread creation.
  8261. * cancellation.c (__do_cancel): Move to pthreadP.h.
  8262. (__pthread_enable_asynccancel): Remove parameter from __do_cancel call.
  8263. (__pthread_disable_asynccancel): Add internal_function attribute.
  8264. * init.c (sigcancel_handler): Remove parameter from __do_cancel call.
  8265. * pthread_setcancelstate.c: Likewise.
  8266. * pthread_setcanceltype.c: Likewise.
  8267. * pthread_exit.c: Likewise.
  8268. * pthreadP.h (CANCELLATION_P): Likewise.
  8269. (__do_cancel): Define as static inline.
  8270. (LIBC_CANCEL_ASYNC, LIBC_CANCEL_RESET): New #defines.
  8271. (__libc_enable_asynccancel, __libc_disable_asynccancel): New
  8272. declarations.
  8273. * sysdeps/i386/tls.h (tcbhead_t): Add list and multiple_threads
  8274. fields. Define MULTIPLE_THREADS_OFFSET.
  8275. * sysdeps/pthread/bits/libc-lock.h: Remove __libc_locking_needed
  8276. declaration.
  8277. * sysdeps/unix/sysv/linux/accept.S: New file.
  8278. * sysdeps/unix/sysv/linux/read.c: New file.
  8279. * sysdeps/unix/sysv/linux/write.c: New file.
  8280. * sysdeps/unix/sysv/linux/i386/pt-socket.S: New file.
  8281. * sysdeps/unix/sysv/linux/libc_pthread_init.c: Remove definition and
  8282. initialization of __libc_locking_needed.
  8283. * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Don't use
  8284. __libc_locking_needed, use multiple_threads field in TCB.
  8285. * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S: Likewise.
  8286. 2002-12-12 Ulrich Drepper <drepper@redhat.com>
  8287. * sysdeps/unix/sysv/linux/i386/i686/libc-lowlevellock.S: Use i486
  8288. version.
  8289. * sysdeps/unix/sysv/linux/i386/i586/libc-lowlevellock.S: Likewise.
  8290. * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S: Correct
  8291. access to __libc_locking_needed for PIC.
  8292. 2002-12-12 Jakub Jelinek <jakub@redhat.com>
  8293. * sysdeps/pthread/bits/libc-lock.h (__libc_locking_needed): Only
  8294. declare for libc.so.
  8295. (__libc_lock_init, __libc_lock_init_recursive): Change into comma
  8296. expression.
  8297. (__libc_lock_lock): Put into statement expression.
  8298. (__libc_lock_unlock): Remove trailing semicolon.
  8299. * sysdeps/unix/sysv/linux/fork.h (__libc_pthread_init): Fix typo.
  8300. 2002-12-12 Roland McGrath <roland@redhat.com>
  8301. * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Use asm operand with
  8302. "m" constraint to refer to __libc_locking_needed. Declare it here.
  8303. 2002-12-12 Ulrich Drepper <drepper@redhat.com>
  8304. * sysdeps/unix/sysv/linux/fork-gen.c: Renamed to...
  8305. * sysdeps/unix/sysv/linux/libc_pthread_init.c: ...this.
  8306. Initialize __libc_locking_needed.
  8307. * init.c (__pthread_initialize_minimal): Call __libc_pthread_init
  8308. instead of __register_pthread_fork_handler.
  8309. * sysdeps/pthread/bits/libc-lock.h: Declare __libc_locking_needed.
  8310. * sysdeps/unix/sysv/linux/Makefile (sysdep_routimes): Replace
  8311. fork-gen with libc_pthread_init.
  8312. * sysdeps/unix/sysv/linux/Versions: Use __libc_pthread_init instead
  8313. of __register_pthread_fork_handler.
  8314. * sysdeps/unix/sysv/linux/fork.h: Declare __libc_pthread_init instead
  8315. of __register_pthread_fork_handler.
  8316. * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Use
  8317. __libc_locking_needed to determine whether lock prefix can be avoided.
  8318. * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S: Likewise.
  8319. 2002-12-11 Ulrich Drepper <drepper@redhat.com>
  8320. * Makefile (tests): Add tst-cleanup1.
  8321. * tst-cleanup1.c: New file.
  8322. * cancellation.c (__cleanup_thread): Removed.
  8323. (__do_cancel): Remove call to __cleanup_thread.
  8324. * pthreadP.h: Remove __cleanup_thread prorotype.
  8325. * sysdeps/pthread/bits/libc-lock.h (__libc_cleanup_region_start):
  8326. Remember function and argument even if cancellation handler
  8327. function is not available.
  8328. (__libc_cleanup_region_end): Execute registered function directly if
  8329. pthread functions are not available.
  8330. (__libc_cleanup_end): Likewise.
  8331. * init.c (__pthread_initialize_minimal): Fix initialization in
  8332. static lib by preventing gcc from being too clever.
  8333. 2002-12-10 Ulrich Drepper <drepper@redhat.com>
  8334. * init.c (__pthread_initialize_minimal): Remove unneccesary
  8335. sigaddset call.
  8336. * Makefile (tests): We can run tst-locale2 now.
  8337. 2002-12-09 Ulrich Drepper <drepper@redhat.com>
  8338. * Versions: Remove duplicated sigwait entry.
  8339. 2002-12-08 Ulrich Drepper <drepper@redhat.com>
  8340. * pthreadP.h: Enable pthread_cleanup_{push,pop} optimizations only
  8341. inside libpthread.
  8342. * pt-fcntl.c (__fcntl): Initialize oldtype to avoid warning.
  8343. * pthreadP.h: Declare __pthread_enable_asynccancel and
  8344. __pthread_disable_asynccancel.
  8345. (CANCEL_ASYNC): Use __pthread_enable_asynccancel.
  8346. (CANCEL_RESET): Use __pthread_disable_asynccancel.
  8347. * cancellation.c (__pthread_enable_asynccancel): New function.
  8348. (__pthread_disable_asynccancel): New function.
  8349. * pt-accept.c: Adjust for CANCEL_ASYNC and CANCEL_RESET change.
  8350. * pt-close.c: Likewise.
  8351. * pt-connect.c: Likewise.
  8352. * pt-creat.c: Likewise.
  8353. * pt-fcntl.c: Likewise.
  8354. * pt-fsync.c: Likewise.
  8355. * pt-lseek.c: Likewise.
  8356. * pt-lseek64.c: Likewise.
  8357. * pt-msgrcv.c: Likewise.
  8358. * pt-msgsnd.c: Likewise.
  8359. * pt-msync.c: Likewise.
  8360. * pt-nanosleep.c: Likewise.
  8361. * pt-open.c: Likewise.
  8362. * pt-open64.c: Likewise.
  8363. * pt-pause.c: Likewise.
  8364. * pt-poll.c: Likewise.
  8365. * pt-pread.c: Likewise.
  8366. * pt-pread64.c: Likewise.
  8367. * pt-pselect.c: Likewise.
  8368. * pt-pwrite.c: Likewise.
  8369. * pt-pwrite64.c: Likewise.
  8370. * pt-read.c: Likewise.
  8371. * pt-readv.c: Likewise.
  8372. * pt-recv.c: Likewise.
  8373. * pt-recvfrom.c: Likewise.
  8374. * pt-recvmsg.c: Likewise.
  8375. * pt-select.c: Likewise.
  8376. * pt-send.c: Likewise.
  8377. * pt-sendmsg.c: Likewise.
  8378. * pt-sendto.c: Likewise.
  8379. * pt-sigpause.c: Likewise.
  8380. * pt-sigsuspend.c: Likewise.
  8381. * pt-sigtimedwait.c: Likewise.
  8382. * pt-sigwait.c: Likewise.
  8383. * pt-sigwaitinfo.c: Likewise.
  8384. * pt-system.c: Likewise.
  8385. * pt-tcdrain.c: Likewise.
  8386. * pt-wait.c: Likewise.
  8387. * pt-waitid.c: Likewise.
  8388. * pt-waitpid.c: Likewise.
  8389. * pt-write.c: Likewise.
  8390. * pt-writev.c: Likewise.
  8391. * pthread_join.c: Likewise.
  8392. * pthread_timedjoin.c: Likewise.
  8393. * pt-sigpause.c (sigsuspend): Call __sigsuspend.
  8394. (__xpg_sigpause): New function.
  8395. * Versions (libpthread:GLIBC_2.3.2): Add __xpg_sigpause.
  8396. 2002-12-07 Ulrich Drepper <drepper@redhat.com>
  8397. * Makefile (CFLAGS-ftrylockfile.c): Add -D_IO_MTSAFE_IO.
  8398. * cleanup.c: Move declarations of _GI_pthread_cleanup_push and
  8399. _GI_pthread_cleanup_pop to pthreadP.h.
  8400. * ftrylockfile.c: Use _IO_lock_trylock instead of
  8401. pthread_mutex_trylock.
  8402. * pthreadP.h (CANCEL_ASYNC): Use __pthread_setcanceltype.
  8403. (CANCEL_RESET): Likewise.
  8404. (__pthread_setcanceltype_): Declare.
  8405. (__pthread_mutex_lock_internal): Declare.
  8406. (__pthread_mutex_unlock_internal): Declare.
  8407. (__pthread_once_internal): Declare.
  8408. (pthread_cleanup_push): Redefine using _GI_pthread_cleanup_push.
  8409. (pthread_cleanup_pop): Redefine using _GI_pthread_cleanup_pop.
  8410. * pthread_cond_timedwait.c: Use INTUSE is calls to pthread_mutex_lock
  8411. and pthread_mutex_unlock.
  8412. * pthread_cond_wait.c: Likewise.
  8413. * pthread_mutex_lock.c: Use INTDEF to define alias if needed.
  8414. * pthread_mutex_unlock.c: Likewise.
  8415. * pthread_setcanceltype.c: Add additional alias
  8416. __pthread_setcanceltype.
  8417. * sem_unlink.c (sem_unlink): Use __pthread_once with INTDEF.
  8418. * sem_open.c (sem_open): Likewise.
  8419. Use __libc_open, __libc_write, and __libc_close instead of
  8420. open, write, and close respectively.
  8421. * sysdeps/pthread/bits/libc-lock.h (__libc_lock_trylock_internal):
  8422. Rewrite as statement expression since it must return a value.
  8423. * pthread_cancel.c: Use __pthread_kill instead of pthread_kill.
  8424. * sysdeps/unix/sysv/linux/pthread_kill.c: Define additional alias
  8425. __pthread_kill.
  8426. * sysdeps/unix/sysv/linux/i386/pthread_once.S: Define additional
  8427. alias __pthread_once_internal.
  8428. * sysdeps/unix/sysv/linux/raise.c: Use libc_hidden_def for raise.
  8429. 2002-12-06 Ulrich Drepper <drepper@redhat.com>
  8430. * Makefile (tests): Add tst-stdio1 and tst-stdio2.
  8431. * tst-stdio1.c: New file.
  8432. * tst-stdio2.c: New file.
  8433. * init.c (__pthread_initialize_minimal): Correct INIT_LIST_HEAD use.
  8434. * Makefile (tests): Comment out tst-locale2 for now.
  8435. (CFLAGS-flockfile.c, CFLAGS-funlockfile.c): Define to -D_IO_MTSAFE_IO.
  8436. * sysdeps/unix/sysv/linux/Makefile: Define CFLAGS-fork.c to
  8437. -D_IO_MTSAFE_IO.
  8438. * sysdeps/unix/sysv/linux/fork.c: Include <bits/stdio-lock.h>.
  8439. Use _IO_lock_init instead of explicit assignment.
  8440. * sysdeps/pthread/bits/libc-lock.h: Define __rtld_lock_* macros.
  8441. Define __libc_lock_* and __libc_lock_recursive macros with
  8442. lowlevellock macros, not pthread mutexes.
  8443. * flockfile.c: Include <bits/stdio-lock.h>. Use _IO_lock_lock instead
  8444. of pthread_mutex_lock.
  8445. * funlockfile.c: Include <bits/stdio-lock.h>. Use _IO_lock_unlock
  8446. instead of pthread_mutex_unlock.
  8447. 2002-12-06 Roland McGrath <roland@redhat.com>
  8448. * allocatestack.c (__stack_user): Use uninitialized defn.
  8449. * init.c (__pthread_initialize_minimal): Initialize it here.
  8450. 2002-12-05 Roland McGrath <roland@redhat.com>
  8451. * sysdeps/i386/tls.h (TLS_INIT_TP): Make it return zero or an error
  8452. string.
  8453. * sysdeps/x86_64/tls.h (TLS_INIT_TP): Likewise.
  8454. * sysdeps/unix/sysv/linux/i386/createthread.c (create_thread): Add
  8455. missing & here too.
  8456. 2002-12-05 Ulrich Drepper <drepper@redhat.com>
  8457. * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Remove
  8458. lowlevellock.
  8459. * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S: New file.
  8460. * sysdeps/unix/sysv/linux/i386/i586/libc-lowlevellock.S: New file.
  8461. * sysdeps/unix/sysv/linux/i386/i686/libc-lowlevellock.S: New file.
  8462. * sysdeps/pthread/bits/libc-lock.h: Use lowlevellock implementation
  8463. for __libc_lock_* macros.
  8464. * Makefile (routines): Add libc-lowlevellock.
  8465. 2002-10-09 Roland McGrath <roland@redhat.com>
  8466. * sysdeps/pthread/bits/libc-lock.h (__libc_maybe_call): New macro.
  8467. Under [__PIC__], call the function via the pointer fetched for
  8468. comparison rather than a call by name that uses the PLT.
  8469. (__libc_lock_init, __libc_rwlock_init, __libc_lock_fini)
  8470. (__libc_rwlock_fini, __libc_lock_lock, __libc_rwlock_rdlock)
  8471. (__libc_rwlock_wrlock, __libc_lock_trylock, __libc_rwlock_tryrdlock)
  8472. (__libc_rwlock_trywrlock, __libc_lock_unlock, __libc_rwlock_unlock)
  8473. (__libc_key_create, __libc_getspecific, __libc_setspecific): Use it.
  8474. 2002-12-04 Roland McGrath <roland@redhat.com>
  8475. * forward.c (pthread_self): Use FORWARD3 macro to correct return type.
  8476. * sysdeps/i386/td_ta_map_lwp2thr.c: Moved from ../nptl_db.
  8477. * sysdeps/generic/td_ta_map_lwp2thr.c: New file.
  8478. * pthread_create.c (start_thread): Add missing & on __nptl_last_event.
  8479. 2002-12-04 Ulrich Drepper <drepper@redhat.com>
  8480. * sysdeps/unix/sysv/linux/i386/bits/pthreadtypes.h: Make pthread_t
  8481. a completely opaque, non-integer type.
  8482. * sysdeps/unix/sysv/linux/x86_64/bits/pthreadtypes.h: Likewise.
  8483. 2002-12-05 Jakub Jelinek <jakub@redhat.com>
  8484. * sysdeps/i386/tls.h: Include stdlib.h.
  8485. * sysdeps/x86_64/tls.h: Likewise.
  8486. 2002-12-04 Ulrich Drepper <drepper@redhat.com>
  8487. * Makefile (tests): Add tst-locale2.
  8488. (tests-static): Likewise.
  8489. * tst-locale2.c: New file.
  8490. * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Mark asms as
  8491. volatile and add memory clobbers to lock operations.
  8492. 2002-12-03 Ulrich Drepper <drepper@redhat.com>
  8493. * sysdeps/i386/i686/bits/atomic.h: Use i486 version.
  8494. * sysdeps/i386/i486/bits/atomic.h: New file.
  8495. * sysdeps/i386/i586/bits/atomic.h: New file.
  8496. * sysdeps/i386/i686/pthread_spin_trylock.S: Define HAVE_CMOV and
  8497. include i486 version.
  8498. * sysdeps/i386/i486/pthread_spin_trylock.S: New file.
  8499. * sysdeps/i386/i586/pthread_spin_trylock.S: New file.
  8500. Patch by Marijn Ros <marijn@mad.scientist.com>.
  8501. * allocatestack.c (get_cached_stack): Don't crash if we first
  8502. found a stack with a larger size then needed.
  8503. Reported by Hui Huang <hui.huang@sun.com>.
  8504. * Makefile (tests): Add tst-sysconf.
  8505. * tst-sysconf.c: New file.
  8506. * sysdeps/unix/sysv/linux/bits/local_lim.h: Undefine
  8507. PTHREAD_THREADS_MAX.
  8508. 2002-12-02 Roland McGrath <roland@redhat.com>
  8509. * pthreadP.h (__stack_user, __nptl_create_event, __nptl_death_event):
  8510. Declare using hidden_proto instead of attribute_hidden, so there are
  8511. non-.hidden static symbols for gdb to find.
  8512. (__pthread_keys): Likewise.
  8513. * events.c (__nptl_create_event, __nptl_death_event): Add hidden_def.
  8514. * allocatestack.c (__stack_user): Likewise.
  8515. * pthread_create.c (__pthread_keys): Likewise.
  8516. (__nptl_threads_events, __nptl_last_event): Make these static instead
  8517. of hidden.
  8518. * pthread_key_create.c (__pthread_pthread_keys_max,
  8519. __pthread_pthread_key_2ndlevel_size): Renamed from __linuxthreads_*.
  8520. 2002-12-02 Ulrich Drepper <drepper@redhat.com>
  8521. * Makefile (tests): Add tst-locale1. If buid-static is yes link
  8522. statically.
  8523. * tst-locale1.c: New file.
  8524. * pthread_cond_timedwait.c: Include <stdlib.h>.
  8525. * Makefile (tests): Add tst-fork2 and tst-fork3.
  8526. * tst-fork2.c: New file.
  8527. * tst-fork3.c: New file.
  8528. 2002-11-28 Ulrich Drepper <drepper@redhat.com>
  8529. * sysdeps/unix/sysv/linux/i386/bits/posix_opt.h: New file.
  8530. * sysdeps/unix/sysv/linux/bits/posix_opt.h: Define macros which
  8531. require it to 200112L.
  8532. * sysdeps/unix/sysv/linux/i386/i486/lowlevelrwlock.S: Use cmov
  8533. instruction only if HAVE_CMOV is defined.
  8534. * sysdeps/unix/sysv/linux/i386/i686/lowlevelrwlock.S: Define HAVE_CMOV.
  8535. * sysdeps/unix/sysv/linux/x86_64/bits/semaphore.h: New file.
  8536. * sysdeps/unix/sysv/linux/x86_64/pthread_once.S: New file.
  8537. * sysdeps/unix/sysv/linux/x86_64/bits/pthreadtypes.h: New file.
  8538. * sysdeps/unix/sysv/linux/x86_64/pt-vfork.S: New file.
  8539. 2002-11-27 Ulrich Drepper <drepper@redhat.com>
  8540. * sysdeps/x86_64/bits/atomic.h: New file.
  8541. * sysdeps/i386/i686/bits/atomic.h: Fix asm syntax for 8- and
  8542. 16-bit operations.
  8543. * sysdeps/unix/sysv/linux/raise.c (raise): Use INTERNAL_SYSCALL if
  8544. possible since gettid cannot fail.
  8545. * sysdeps/x86_64/pthreaddef.h: New file.
  8546. * sysdeps/i386/pthreaddef.h (gettid): Removed.
  8547. * sysdeps/x86_64/pthread_spin_init.c: New file.
  8548. * sysdeps/x86_64/pthread_spin_lock.c: New file.
  8549. * sysdeps/x86_64/pthread_spin_trylock.c: New file.
  8550. * sysdeps/x86_64/pthread_spin_unlock.c: New file.
  8551. * sysdeps/i386/i686/pthread_spin_trylock.S (pthread_spin_trylock):
  8552. Add missing lock prefix. Minute optimization.
  8553. * tst-spin2.c (main): Also check successful trylock call.
  8554. * sysdeps/pthread/pthread_sigmask.c (pthread_sigmask): Use correct
  8555. syscall. Fix typo in case INTERNAL_SYSCALL is not used.
  8556. * sysdeps/i386/pthread_spin_destroy.c: Moved to...
  8557. * sysdeps/pthread/pthread_spin_destroy.c: ...here. New file.
  8558. * sysdeps/i386/pthread_sigmask.c: Removed. Use the generic code.
  8559. * sysdeps/pthread/pthread_sigmask.c (pthread_sigmask): Return correct
  8560. value in case of an error. Add support for INTERNAL_SYSCALL.
  8561. * sysdeps/i386/pthread_sigmask.c (pthread_sigmask): Return correct
  8562. value in case of an error.
  8563. * sysdeps/x86_64/tls.h: New file.
  8564. 2002-11-26 Ulrich Drepper <drepper@redhat.com>
  8565. * sysdeps/i386/tls.h (THREAD_GETMEM_NC): Change interface. It now
  8566. takes the array member name and the index as parameters.
  8567. (THREAD_SETMEM_NC): Likewise.
  8568. * pthread_getspecific.c: Use new THREAD_GETMEM_NC interface.
  8569. * pthread_setspecific.c: Use new THREAD_GETMEM_NC and THREAD_SETMEM_NC
  8570. interfaces.
  8571. * sysdeps/i386/tls.h (THREAD_SETMEM): Use size of member element
  8572. to decide which code to use.
  8573. (THREAD_SETMEM_NC): Likewise.
  8574. * allocatestack.c (queue_stack): Don't remove stack from list here.
  8575. Do it in the caller. Correct condition to prematurely terminate
  8576. loop to free stacks.
  8577. (__deallocate_stack): Remove stack from list here.
  8578. 2002-11-26 Ulrich Drepper <drepper@redhat.com>
  8579. * Makefile (tests): Add tst-stack1.
  8580. * tst-stack1.c: New file.
  8581. * allocatestack.c (allocate_stack): Initialize the TCB on a user
  8582. provided stack.
  8583. * pthread_attr_getstack.c: Return bottom of the thread area.
  8584. 2002-11-25 Ulrich Drepper <drepper@redhat.com>
  8585. * Makefile (libpthread-routines): Add pt-allocrtsig and
  8586. pthread_kill_other_threads.
  8587. * pt-allocrtsig.c: New file.
  8588. * pthread_kill_other_threads.c: New file.
  8589. * sysdeps/unix/sysv/linux/allocrtsig.c: Add additional aliases for
  8590. all three functions.
  8591. * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Remove
  8592. allocrtsig.
  8593. * sysdeps/unix/sysv/linux/Versions (libc:GLIBC_PRIVATE): Export
  8594. __libc_current_sigrtmin_private, __libc_current_sigrtmax_private,
  8595. and __libc_allocate_rtsig_private.
  8596. * Versions (libpthread): Export pthread_kill_other_threads_np,
  8597. __libc_current_sigrtmin, and __libc_current_sigrtmax.
  8598. 2002-11-24 Ulrich Drepper <drepper@redhat.com>
  8599. * allocatestack.c (allocate_stack): stackaddr in attribute points to
  8600. the end of the stack. Adjust computations.
  8601. When mprotect call fails dequeue stack and free it.
  8602. * pthread_attr_setstack.c: Store top of the stack in stackaddr
  8603. attribute.
  8604. * pthread_getattr_np.c: Likewise.
  8605. * descr.h (IS_DETACHED): Add some more parenthesis to prevent
  8606. surprises.
  8607. 2002-11-23 Ulrich Drepper <drepper@redhat.com>
  8608. * sysdeps/pthread/pthread.h (pthread_self): __THROW must come before
  8609. attribute definitions. Patch by Luca Barbieri <ldb@ldb.ods.org>.
  8610. 2002-11-22 Ulrich Drepper <drepper@redhat.com>
  8611. * pthread_getspecific.c: Optimize access to first 2nd-level array.
  8612. * pthread_setspecific.c: Likewise.
  8613. 2002-11-21 Ulrich Drepper <drepper@redhat.com>
  8614. * sysdeps/unix/sysv/linux/i386/createthread.c: Remove CLONE_ flags
  8615. definitions. Get them from the official place.
  8616. * sysdeps/unix/sysv/linux/i386/fork.c: Likewise.
  8617. * sysdeps/unix/sysv/linux/i386/createthread.c: Update CLONE_* flags.
  8618. Use new CLONE_ flags in clone() calls.
  8619. * sysdeps/unix/sysv/linux/fork.c: Use ARCH_FORK to actually fork.
  8620. * sysdeps/unix/sysv/linux/i386/fork.c: New file.
  8621. * Versions: Add pthread_* functions for libc.
  8622. * forward.c: New file.
  8623. * sysdeps/pthread/Makefile (libpthread-sysdeps_routines): Add
  8624. errno-loc.
  8625. * herrno.c: New file.
  8626. * res.c: New file.
  8627. * Makefile (libpthread-routines): Remove sem_post, sem_wait,
  8628. sem_trywait, and sem_timedwait. Add herrno and res.
  8629. * sem_init.c: Don't initialize lock and waiters members.
  8630. * sem_open.c: Likewise.
  8631. * sem_post.c: Removed.
  8632. * sem_wait.c: Removed.
  8633. * sem_trywait.c: Removed.
  8634. * sem_timedwait.c: Removed.
  8635. * sysdeps/unix/sysv/linux/i386/i486/lowlevelsem.S: Complete rewrite.
  8636. Includes full implementations of sem_post, sem_wait, sem_trywait,
  8637. and sem_timedwait.
  8638. * sysdeps/unix/sysv/linux/i386/lowlevelsem.h (lll_sem_post): Adjust
  8639. for new implementation.
  8640. * sysdeps/unix/sysv/linux/internaltypes.h (struct sem): Remove lock
  8641. and waiters fields.
  8642. * tst-sem3.c: Improve error message.
  8643. * tst-signal3.c: Likewise.
  8644. * init.c (__pthread_initialize_minimal): Use set_tid_address syscall
  8645. to tell the kernel about the termination futex and to initialize tid
  8646. member. Don't initialize main_thread.
  8647. * descr.h (struct pthread): Remove main_thread member.
  8648. * cancelllation.c (__do_cancel): Remove code handling main thread.
  8649. The main thread is not special anymore.
  8650. * allocatestack.c (__reclaim_stacks): Mark stacks as unused. Add
  8651. size of the stacks to stack_cache_actsize.
  8652. * pt-readv.c: Add missing "defined".
  8653. * pt-sigwait.c: Likewise.
  8654. * pt-writev.c: Likewise.
  8655. 2002-11-09 Ulrich Drepper <drepper@redhat.com>
  8656. * Versions: Export __connect from libpthread.
  8657. Patch by Luca Barbieri <ldb@ldb.ods.org>.
  8658. * Makefile (libpthread-routines): Add pt-raise.
  8659. * sysdeps/unix/sysv/linux/raise.c: New file.
  8660. * sysdeps/unix/sysv/linux/pt-raise.c: New file.
  8661. * sysdeps/generic/pt-raise.c: New file.
  8662. * pthread_cond_init.c: Initialize all data elements of the condvar
  8663. structure. Patch by Luca Barbieri <ldb@ldb.ods.org>.
  8664. * pthread_attr_init.c: Actually implement 2.0 compatibility version.
  8665. * pthread_create.c: Likewise.
  8666. * Makefile (tests): Add tst-key1, tst-key2, tst-key3.
  8667. * tst-key1.c: New file.
  8668. * tst-key2.c: New file.
  8669. * tst-key3.c: New file.
  8670. * Versions: Export pthread_detach for version GLIBC_2.0.
  8671. Reported by Saurabh Desai <sdesai@austin.ibm.com>.
  8672. 2002-11-08 Ulrich Drepper <drepper@redhat.com>
  8673. * pthread_key_create.c: Terminate search after an unused key was found.
  8674. Patch by Luca Barbieri <ldb@ldb.ods.org>.
  8675. * sysdeps/unix/sysv/linux/i386/pthread_once.S: Return zero.
  8676. Patch by Luca Barbieri <ldb@ldb.ods.org>.
  8677. 2002-10-10 Ulrich Drepper <drepper@redhat.com>
  8678. * sysdeps/unix/sysv/linux/i386/i486/lowlevelsem.S: Use slow generic
  8679. dynamic lookup for errno in PIC.
  8680. * allocatestack.c (get_cached_stack): Rearrange code slightly to
  8681. release the stack lock as soon as possible.
  8682. Call _dl_allocate_tls_init for TCB from the cache to re-initialize
  8683. the static TLS block.
  8684. (allocate_stack): Call _dl_allocate_tls_init for user-provided stack.
  8685. * cancellation.c: Renamed from cancelation.c.
  8686. * Makefile: Adjust accordingly.
  8687. * pthreadP.h (CANCELLATION_P): Renamed from CANCELATION_P.
  8688. * cleanup_defer.c: Use CANCELLATION_P.
  8689. * pthread_testcancel.c: Likewise.
  8690. * descr.h: Fix spelling in comments.
  8691. * init.c: Likewise.
  8692. * pthread_getattr_np.c: Likewise.
  8693. * pthread_getschedparam.c: Likewise.
  8694. * pthread_setschedparam.c: Likewise.
  8695. * Versions: Likewise.
  8696. * pt-pselect.c: New file.
  8697. * Makefile (libpthread-routines): Add pt-pselect.
  8698. * Versions: Add pselect.
  8699. * tst-cancel4.c: New file.
  8700. * Makefile (tests): Add tst-cancel4.
  8701. 2002-10-09 Ulrich Drepper <drepper@redhat.com>
  8702. * pthread_mutex_lock.c: Always record lock ownership.
  8703. * pthread_mutex_timedlock.c: Likewise.
  8704. * pthread_mutex_trylock.c: Likewise.
  8705. * pt-readv.c: New file.
  8706. * pt-writev.c: New file.
  8707. * pt-creat.c: New file.
  8708. * pt-msgrcv.c: New file.
  8709. * pt-msgsnd.c: New file.
  8710. * pt-poll.c: New file.
  8711. * pt-select.c: New file.
  8712. * pt-sigpause.c: New file.
  8713. * pt-sigsuspend.c: New file.
  8714. * pt-sigwait.c: New file.
  8715. * pt-sigwaitinfo.c: New file.
  8716. * pt-waitid.c: New file.
  8717. * Makefile (libpthread-routines): Add pt-readv, pt-writev, pt-creat,
  8718. pt-msgrcv, pt-msgsnd, pt-poll, pt-select, pt-sigpause, pt-sigsuspend,
  8719. pt-sigwait, pt-sigwaitinfo, and pt-waitid.
  8720. * Versions: Add all the new functions.
  8721. * tst-exit1.c: New file.
  8722. * Makefile (tests): Add tst-exit1.
  8723. * sem_timedwait.c: Minor optimization for more optimal fastpath.
  8724. 2002-10-08 Ulrich Drepper <drepper@redhat.com>
  8725. * pt-fcntl.c: Only enable asynchronous cancellation for F_SETLKW.
  8726. * pthread_join.c: Enable asynchronous cancellation around lll_wait_tid
  8727. call. pthread_join is an official cancellation point.
  8728. * pthread_timedjoin.c: Likewise.
  8729. * pthread_cond_wait.c: Revert order in which internal lock are dropped
  8730. and the condvar's mutex are retrieved.
  8731. * pthread_cond_timedwait.c: Likewise.
  8732. Reported by dice@saros.East.Sun.COM.
  8733. 2002-10-07 Ulrich Drepper <drepper@redhat.com>
  8734. * pthreadP.h: Cut out all type definitions and move them...
  8735. * sysdeps/unix/sysv/linux/internaltypes.h: ...here. New file.
  8736. * pthreadP.h: Include <internaltypes.h>.
  8737. * sysdeps/unix/sysv/linux/i386/lowlevelsem.h (lll_sem_post): Little
  8738. performance tweaks.
  8739. * sem_trywait.c: Shuffle #includes around to get right order.
  8740. * sem_timedwait.c: Likewise.
  8741. * sem_post.c: Likewise.
  8742. * sem_wait.c: Likewise.
  8743. * nptl 0.3 released.
  8744. * Makefile (tests): Add tst-signal3.
  8745. * tst-signal3.c: New file.
  8746. 2002-10-05 Ulrich Drepper <drepper@redhat.com>
  8747. * sysdeps/unix/sysv/linux/i386/lowlevelsem.h: Tell the compiler that
  8748. the asms modify the sem object.
  8749. (__lll_sem_timedwait): Now takes struct sem* as first parameter.
  8750. * sysdeps/unix/sysv/linux/i386/bits/semaphore.h (sem_t): Don't expose
  8751. the actual members.
  8752. * pthreadP.h (struct sem): New type. Actual semaphore type.
  8753. * semaphoreP.h: Include pthreadP.h.
  8754. * sem_getvalue.c: Adjust to sem_t change.
  8755. * sem_init.c: Likewise.
  8756. * sem_open.c: Likewise.
  8757. * sem_post.c: Likewise.
  8758. * sem_timedwait.c: Likewise.
  8759. * sem_trywait.c: Likewise.
  8760. * sem_wait.c: Likewise.
  8761. 2002-10-04 Ulrich Drepper <drepper@redhat.com>
  8762. * Makefile (tests): Add tst-basic2, tst-exec1, tst-exec3, tst-exec3.
  8763. * tst-basic2.c: New file.
  8764. * tst-exec1.c: New file.
  8765. * tst-exec2.c: New file.
  8766. * tst-exec3.c: New file.
  8767. * tst-fork1.c: Remove extra */.
  8768. * nptl 0.2 released. The API for IA-32 is complete.