ChangeLog 271 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160
  1. 2005-05-03 Ulrich Drepper <drepper@redhat.com>
  2. [BZ #915]
  3. * sysdeps/pthread/pthread.h: Avoid empty initializers.
  4. 2005-05-03 Jakub Jelinek <jakub@redhat.com>
  5. * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: Remove explicit
  6. .eh_frame section, use cfi_* directives.
  7. 2005-04-27 Jakub Jelinek <jakub@redhat.com>
  8. * sysdeps/unix/sysv/linux/pthread_getcpuclockid.c: Use <> instead
  9. of "" includes.
  10. 2005-04-27 Ulrich Drepper <drepper@redhat.com>
  11. * tst-cancel17.c (do_test): Add arbitrary factor to make sure
  12. aio_write blocks.
  13. 2005-04-27 Roland McGrath <roland@redhat.com>
  14. * Makefile (tests): Remove tst-clock2.
  15. * sysdeps/unix/sysv/linux/timer_create.c (timer_create): Handle
  16. CLOCK_PROCESS_CPUTIME_ID and CLOCK_PROCESS_THREAD_ID specially,
  17. translating to the kernel clockid_t for our own process/thread clock.
  18. * sysdeps/unix/sysv/linux/pthread_getcpuclockid.c: New file.
  19. 2005-04-15 Jakub Jelinek <jakub@redhat.com>
  20. * old_pthread_cond_init.c: Include <errno.h>.
  21. (__pthread_cond_init_2_0): Fail with EINVAL if COND_ATTR is
  22. process shared or uses clock other than CLOCK_REALTIME.
  23. * pthread_cond_init.c (__pthread_cond_init): Remove bogus comment.
  24. 2005-04-13 David S. Miller <davem@davemloft.net>
  25. * sysdeps/sparc/sparc64/jmpbuf-unwind.h: New file.
  26. * sysdeps/sparc/sparc64/clone.S: New file.
  27. 2005-04-05 Jakub Jelinek <jakub@redhat.com>
  28. * sysdeps/pthread/pthread.h (__pthread_cleanup_routine): Use
  29. __inline instead of inline.
  30. * sysdeps/pthread/bits/libc-lock.h (__libc_cleanup_routine): Likewise.
  31. 2005-03-31 Jakub Jelinek <jakub@redhat.com>
  32. * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_unlock.S: Use
  33. functionally equivalent, but shorter instructions.
  34. * sysdeps/unix/sysv/linux/x86_64/pthread_cond_broadcast.S: Likewise.
  35. * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Likewise.
  36. * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedrdlock.S:
  37. Likewise.
  38. * sysdeps/unix/sysv/linux/x86_64/pthread_barrier_wait.S: Likewise.
  39. * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_rdlock.S: Likewise.
  40. * sysdeps/unix/sysv/linux/x86_64/sem_wait.S: Likewise.
  41. * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_wrlock.S: Likewise.
  42. * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: Likewise.
  43. * sysdeps/unix/sysv/linux/x86_64/pthread_once.S: Likewise.
  44. * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedwrlock.S:
  45. Likewise.
  46. * sysdeps/unix/sysv/linux/x86_64/pthread_cond_signal.S: Likewise.
  47. * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
  48. * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: Likewise.
  49. * sysdeps/unix/sysv/linux/x86_64/sem_post.S: Likewise.
  50. * sysdeps/unix/sysv/linux/x86_64/sem_timedwait.S: Likewise.
  51. 2005-03-28 Daniel Jacobowitz <dan@codesourcery.com>
  52. * sysdeps/mips/Makefile: New file.
  53. * sysdeps/mips/nptl-sysdep.S: New file.
  54. * sysdeps/mips/tcb-offsets.sym: New file.
  55. * sysdeps/mips/pthread_spin_lock.S: New file.
  56. * sysdeps/mips/pthread_spin_trylock.S: New file.
  57. * sysdeps/mips/pthreaddef.h: New file.
  58. * sysdeps/mips/tls.h: New file.
  59. * sysdeps/mips/jmpbuf-unwind.h: New file.
  60. * sysdeps/unix/sysv/linux/mips/lowlevellock.h: New file.
  61. * sysdeps/unix/sysv/linux/mips/bits/pthreadtypes.h: New file.
  62. * sysdeps/unix/sysv/linux/mips/bits/semaphore.h: New file.
  63. * sysdeps/unix/sysv/linux/mips/pthread_once.c: New file.
  64. * sysdeps/unix/sysv/linux/mips/fork.c: New file.
  65. * sysdeps/unix/sysv/linux/mips/pt-vfork.S: New file.
  66. * sysdeps/unix/sysv/linux/mips/vfork.S: New file.
  67. * sysdeps/unix/sysv/linux/mips/clone.S: New file.
  68. * sysdeps/unix/sysv/linux/mips/createthread.c: New file.
  69. * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h: New file.
  70. 2005-03-23 Ulrich Drepper <drepper@redhat.com>
  71. * pthread_create.c (__pthread_create_2_1): Rename syscall error
  72. variable to scerr.
  73. 2005-03-10 Jakub Jelinek <jakub@redhat.com>
  74. * tst-getpid1.c (do_test): Align stack passed to clone{2,}.
  75. 2005-02-25 Roland McGrath <roland@redhat.com>
  76. * alloca_cutoff.c: Correct license text.
  77. * tst-unload.c: Likewise.
  78. * sysdeps/pthread/allocalim.h: Likewise.
  79. * sysdeps/pthread/pt-initfini.c: Likewise.
  80. * sysdeps/pthread/bits/libc-lock.h: Likewise.
  81. * sysdeps/pthread/bits/sigthread.h: Likewise.
  82. * sysdeps/unix/sysv/linux/bits/local_lim.h: Likewise.
  83. * sysdeps/unix/sysv/linux/bits/posix_opt.h: Likewise.
  84. 2005-02-16 Roland McGrath <roland@redhat.com>
  85. * sysdeps/pthread/pthread-functions.h (struct pthread_functions):
  86. Use unsigned int * for ptr_nthreads.
  87. 2005-02-14 Alan Modra <amodra@bigpond.net.au>
  88. * sysdeps/powerpc/tcb-offsets.sym (thread_offsetof): Redefine to suit
  89. gcc4.
  90. 2005-02-07 Richard Henderson <rth@redhat.com>
  91. [BZ #787]
  92. * sysdeps/pthread/pthread.h (__sigsetjmp): Use pointer as first
  93. argument.
  94. 2004-11-03 Marcus Brinkmann <marcus@gnu.org>
  95. * sysdeps/generic/lowlevellock.h (__generic_mutex_unlock): Fix
  96. order of arguments in invocation of atomic_add_zero.
  97. 2005-01-26 Jakub Jelinek <jakub@redhat.com>
  98. [BZ #737]
  99. * sysdeps/unix/sysv/linux/i386/i486/sem_trywait.S (__new_sem_trywait):
  100. Use direct %gs segment access or, if NO_TLS_DIRECT_SEG_REFS,
  101. at least gotntpoff relocation and addition.
  102. * sysdeps/unix/sysv/linux/i386/i486/sem_timedwait.S (sem_timedwait):
  103. Likewise.
  104. * sysdeps/unix/sysv/linux/i386/i486/sem_post.S (__new_sem_post):
  105. Likewise.
  106. * sysdeps/unix/sysv/linux/i386/i486/sem_wait.S (__new_sem_wait):
  107. Likewise.
  108. 2005-01-06 Ulrich Drepper <drepper@redhat.com>
  109. * allocatestack.c (init_one_static_tls): Adjust initialization of DTV
  110. entry for static tls deallocation fix.
  111. * sysdeps/alpha/tls.h (dtv_t): Change pointer type to be struct which
  112. also contains information whether the memory pointed to is static
  113. TLS or not.
  114. * sysdeps/i386/tls.h: Likewise.
  115. * sysdeps/ia64/tls.h: Likewise.
  116. * sysdeps/powerpc/tls.h: Likewise.
  117. * sysdeps/s390/tls.h: Likewise.
  118. * sysdeps/sh/tls.h: Likewise.
  119. * sysdeps/sparc/tls.h: Likewise.
  120. * sysdeps/x86_64/tls.h: Likewise.
  121. 2004-12-27 Ulrich Drepper <drepper@redhat.com>
  122. * init.c (__pthread_initialize_minimal_internal): Use __sigemptyset.
  123. 2004-12-21 Jakub Jelinek <jakub@redhat.com>
  124. * sysdeps/i386/tls.h (CALL_THREAD_FCT): Maintain 16 byte alignment of
  125. %esp.
  126. * Makefile (tests): Add tst-align2.
  127. * tst-align2.c: New test.
  128. * sysdeps/i386/Makefile (CFLAGS-tst-align{,2}.c): Add
  129. -mpreferred-stack-boundary=4.
  130. 2004-12-18 Roland McGrath <roland@redhat.com>
  131. * sysdeps/unix/sysv/linux/powerpc/powerpc64/bits/local_lim.h:
  132. New file removed withdrawn for the moment.
  133. 2004-12-17 Richard Henderson <rth@redhat.com>
  134. * sysdeps/unix/sysv/linux/alpha/clone.S: New file.
  135. * sysdeps/alpha/tcb-offsets.sym (TID_OFFSET): New.
  136. 2004-12-16 Ulrich Drepper <drepper@redhat.com>
  137. * sysdeps/unix/sysv/linux/powerpc/powerpc64/bits/local_lim.h: New file.
  138. Increased PTHREAD_STACK_MIN.
  139. * tst-context1.c (stacks): Use bigger stack size.
  140. 2004-12-16 Jakub Jelinek <jakub@redhat.com>
  141. * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S: New file.
  142. * sysdeps/sparc/tcb-offsets.sym: Add TID.
  143. 2004-12-15 Jakub Jelinek <jakub@redhat.com>
  144. * sysdeps/unix/sysv/linux/s390/s390-32/clone.S: New file.
  145. * sysdeps/unix/sysv/linux/s390/s390-64/clone.S: New file.
  146. * sysdeps/s390/tcb-offsets.sym (TID): Add.
  147. 2004-12-15 Ulrich Drepper <drepper@redhat.com>
  148. * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: New file.
  149. 2004-12-14 Ulrich Drepper <drepper@redhat.com>
  150. * sysdeps/powerpc/tcb-offsets.sym: Add TID.
  151. * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: New file.
  152. * tst-getpid1.c: If child crashes, report this first. Print which
  153. signal.
  154. 2004-12-09 Ulrich Drepper <drepper@redhat.com>
  155. * init.c (__pthread_initialize_minimal_internal): Also unblock
  156. SIGSETXID.
  157. 2004-12-01 Jakub Jelinek <jakub@redhat.com>
  158. * sysdeps/unix/sysv/linux/bits/posix_opt.h (_POSIX_CPUTIME,
  159. _POSIX_THREAD_CPUTIME): Define to 0.
  160. * sysdeps/pthread/timer_create.c (timer_create): Remove unused code
  161. handling CLOCK_PROCESS_CPUTIME_ID and CLOCK_THREAD_CPUTIME_ID.
  162. * sysdeps/pthread/timer_routines.c (__timer_signal_thread_pclk,
  163. __timer_signal_thread_tclk): Remove.
  164. (init_module): Remove their initialization.
  165. (thread_cleanup): Remove their cleanup assertions.
  166. * sysdeps/pthread/posix-timer.h (__timer_signal_thread_pclk,
  167. __timer_signal_thread_tclk): Remove.
  168. * sysdeps/unix/sysv/linux/i386/bits/posix_opt.h: Removed.
  169. * sysdeps/unix/sysv/linux/ia64/bits/posix_opt.h: Removed.
  170. * sysdeps/unix/sysv/linux/x86_64/bits/posix_opt.h: Removed.
  171. 2004-12-07 Jakub Jelinek <jakub@redhat.com>
  172. * sysdeps/ia64/tcb-offsets.sym (TID): Add.
  173. * sysdeps/unix/sysv/linux/ia64/clone2.S: New file.
  174. * Makefile (tests): Add tst-getpid2.
  175. * tst-getpid1.c (TEST_CLONE_FLAGS): Define.
  176. (do_test): Use it. Use __clone2 instead of clone on ia64.
  177. * tst-getpid2.c: New test.
  178. 2004-12-07 Kaz Kojima <kkojima@rr.iij4u.or.jp>
  179. * sysdeps/unix/sysv/linux/sh/clone.S: New file.
  180. 2004-12-04 Ulrich Drepper <drepper@redhat.com>
  181. * Makefile (tests): Add tst-getpid1.
  182. * tst-getpid1.c: New file.
  183. * sysdeps/unix/sysv/linux/i386/clone.S: New file.
  184. * sysdeps/unix/sysv/linux/x86_64/clone.S: New file.
  185. 2004-12-02 Roland McGrath <roland@redhat.com>
  186. * Makefile (libpthread-nonshared): Variable removed.
  187. ($(objpfx)libpthread_nonshared.a): Target removed.
  188. ($(inst_libdir)/libpthread_nonshared.a): Likewise.
  189. These are now handled by generic magic from
  190. libpthread-static-only-routines being set.
  191. 2004-11-27 Ulrich Drepper <drepper@redhat.com>
  192. * sysdeps/unix/sysv/linux/bits/posix_opt.h (_POSIX_PRIORITIZED_IO,
  193. _POSIX2_CHAR_TERM, _POSIX_THREAD_PRIO_INHERIT,
  194. _POSIX_THREAD_PRIO_PROTECT): Define.
  195. * sysdeps/unix/sysv/linux/i386/bits/posix_opt.h: Likewise.
  196. * sysdeps/unix/sysv/linux/ia64/bits/posix_opt.h: Likewise.
  197. * sysdeps/unix/sysv/linux/x86_64/bits/posix_opt.h: Likewise.
  198. 2004-11-26 Jakub Jelinek <jakub@redhat.com>
  199. * sysdeps/unix/sysv/linux/bits/posix_opt.h (_POSIX_ADVISORY_INFO,
  200. _POSIX_SPORADIC_SERVER, _POSIX_THREAD_SPORADIC_SERVER, _POSIX_TRACE,
  201. _POSIX_TRACE_EVENT_FILTER, _POSIX_TRACE_INHERIT, _POSIX_TRACE_LOG,
  202. _POSIX_TYPED_MEMORY_OBJECTS, _POSIX_IPV6, _POSIX_RAW_SOCKETS): Define.
  203. * sysdeps/unix/sysv/linux/i386/bits/posix_opt.h: Likewise.
  204. * sysdeps/unix/sysv/linux/ia64/bits/posix_opt.h: Likewise.
  205. * sysdeps/unix/sysv/linux/x86_64/bits/posix_opt.h: Likewise.
  206. 2004-11-24 Ulrich Drepper <drepper@redhat.com>
  207. * sysdeps/x86_64/Makefile [nptl]: Define CFLAGS-pthread_create.c.
  208. * Makefile (libpthread-routines): Add pthread_setschedprio.
  209. * Versions [libpthread, GLIBC_2.3.4]: Add pthread_setschedprio.
  210. * sysdeps/pthread/pthread.h: Declare pthread_setschedprio.
  211. * pthread_setschedprio.c: New file.
  212. 2004-11-20 Jakub Jelinek <jakub@redhat.com>
  213. * pthread_create.c (pthread_cancel): Add PTHREAD_STATIC_FN_REQUIRE.
  214. * pthread_cancel.c (pthread_create): Likewise.
  215. * Makefile (libpthread-routines): Add vars.
  216. * sysdeps/pthread/createthread.c (__pthread_multiple_threads): Remove.
  217. * init.c (__default_stacksize, __is_smp): Remove.
  218. * vars.c: New file.
  219. * pthreadP.h (__find_thread_by_id): If !SHARED, add weak_function
  220. and define a wrapper macro.
  221. (PTHREAD_STATIC_FN_REQUIRE): Define.
  222. * allocatestack.c (__find_thread_by_id): Undefine.
  223. * pthread_create (__pthread_keys): Remove.
  224. (pthread_mutex_lock, pthread_mutex_unlock, pthread_once,
  225. pthread_key_create, pthread_setspecific, pthread_getspecific): Add
  226. PTHREAD_STATIC_FN_REQUIRE.
  227. 2004-11-18 Kaz Kojima <kkojima@rr.iij4u.or.jp>
  228. * sysdeps/sh/tls.h (DB_THREAD_SELF): Set the correct bias
  229. parameter to REGISTER macro.
  230. 2004-11-17 Roland McGrath <roland@redhat.com>
  231. * sysdeps/unix/sysv/linux/timer_routines.c (__start_helper_thread):
  232. Make sure SIGCANCEL is blocked as well.
  233. 2004-11-10 Jakub Jelinek <jakub@redhat.com>
  234. * sysdeps/pthread/setxid.h: New file.
  235. * sysdeps/pthread/pthread-functions.h (HAVE_PTR__NPTL_SETXID): Remove.
  236. (struct xid_command): Add forward decl.
  237. (struct pthread_functions): Change return type of __nptl_setxid hook
  238. to int.
  239. * pthreadP.h (__nptl_setxid): Change return type to int.
  240. * allocatestack.c (__nptl_setxid): Call INTERNAL_SYSCALL_NCS in the
  241. calling thread, return its return value and set errno on failure.
  242. * descr.h (struct xid_command): Change id type to long array.
  243. * Makefile: Add rules to build and test tst-setuid1 and
  244. tst-setuid1-static.
  245. * tst-setuid1.c: New test.
  246. * tst-setuid1-static.c: New test.
  247. 2004-11-10 Jakub Jelinek <jakub@redhat.com>
  248. * Makefile (tests): Add tst-exit3.
  249. * tst-exit3.c: New test.
  250. 2004-11-09 Ulrich Drepper <drepper@redhat.com>
  251. * Makefile (tests): Add tst-exit2.
  252. * tst-exit2.c: New file.
  253. 2004-11-09 Roland McGrath <roland@redhat.com>
  254. [BZ #530]
  255. * sysdeps/pthread/createthread.c (do_clone): Increment __nptl_nthreads
  256. here, before calling clone.
  257. * pthread_create.c (start_thread): Don't do it here.
  258. 2004-11-02 Jakub Jelinek <jakub@redhat.com>
  259. * sysdeps/unix/sysv/linux/smp.h: Include <errno.h>.
  260. 2004-10-29 Kaz Kojima <kkojima@rr.iij4u.or.jp>
  261. * sysdeps/unix/sysv/linux/sh/sem_timedwait.S (sem_timedwait):
  262. Set ETIMEDOUT to errno when time is up. Tweak to avoid
  263. assembler warning.
  264. 2004-10-28 Jakub Jelinek <jakub@redhat.com>
  265. * pthread_create.c (__pthread_create_2_1): Avoid leaking stacks
  266. if sched_priority is not between minprio and maxprio.
  267. 2004-10-25 Kaz Kojima <kkojima@rr.iij4u.or.jp>
  268. * sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S
  269. (__pthread_cond_timedwait): Use clock_gettime syscall if exists.
  270. * sysdeps/unix/sysv/linux/sh/lowlevellock.S
  271. (__lll_mutex_timedlock_wait): Fix a bad branch condition.
  272. 2004-10-24 Ulrich Drepper <drepper@redhat.com>
  273. * sysdeps/unix/sysv/linux/smp.h (is_smp_system): Use
  274. not-cancelable I/O functions.
  275. 2004-10-21 Kaz Kojima <kkojima@rr.iij4u.or.jp>
  276. * sysdeps/unix/sysv/linux/sh/lowlevellock.S
  277. (__lll_mutex_timedlock_wait): If woken but cannot get the lock,
  278. make sure 2 is stored in the futex and we looked at the old value.
  279. Fix a few other problems to return the correct value.
  280. 2004-10-14 Richard Henderson <rth@redhat.com>
  281. * sysdeps/alpha/tcb-offsets.sym (thread_offsetof): Redefine to
  282. make gcc4 happy.
  283. 2004-10-06 Jakub Jelinek <jakub@redhat.com>
  284. * sysdeps/unix/sysv/linux/jmp-unwind.c: Include pthreadP.h instead
  285. of pthread-functions.h and pthreaddef.h.
  286. * sysdeps/unix/sysv/linux/s390/jmp-unwind.c: Likewise.
  287. * sysdeps/unix/sysv/linux/x86_64/bits/pthreadtypes.h (pthread_cond_t):
  288. Change __data.__nwaiters from int to unsigned int.
  289. * tst-clock2.c (do_test): Don't fail if _POSIX_THREAD_CPUTIME == 0 and
  290. sysconf (_SC_THREAD_CPUTIME) returns negative value.
  291. * allocatestack.c (__find_thread_by_id): Move attribute_hidden
  292. before return type.
  293. * sysdeps/s390/jmpbuf-unwind.h: Include bits/wordsize.h.
  294. (JMPBUF_CFA_UNWINDS_ADJ): Subtract 96 resp. 160 bytes from CFA.
  295. 2004-10-06 Ulrich Drepper <drepper@redhat.com>
  296. * tst-cancel4.c (tf_msgrcv): Check for failure in msgget. If the
  297. test fails, remove message queue.
  298. (tf_msgsnd): Likewise.
  299. 2004-10-05 Jakub Jelinek <jakub@redhat.com>
  300. * tst-clock1.c: Change #ifdef to #if defined.
  301. * tst-clock2.c: Likewise.
  302. * tst-cond11.c: Likewise.
  303. * sysdeps/pthread/timer_create.c (timer_create): Use
  304. defined _POSIX_CPUTIME && _POSIX_CPUTIME >= 0 instead of
  305. defined CLOCK_PROCESS_CPUTIME_ID #ifs and similarly for
  306. THREAD_CPUTIME.
  307. 2004-10-05 Jakub Jelinek <jakub@redhat.com>
  308. * sysdeps/unix/sysv/linux/x86_64/bits/posix_opt.h (_POSIX_CPUTIME,
  309. _POSIX_THREAD_CPUTIME): Define to 0.
  310. 2004-10-04 Ulrich Drepper <drepper@redhat.com>
  311. * sysdeps/unix/sysv/linux/i386/bits/posix_opt.h: Define _POSIX_CPUTIME
  312. and _POSIX_THREAD_CPUTIME to zero.
  313. * sysdeps/unix/sysv/linux/ia64/bits/posix_opt.h: Likewise.
  314. * tst-barrier2.c: Fix testing for POSIX feature.
  315. * tst-clock1.c: Likewise.
  316. * tst-clock2.c: Likewise.
  317. * tst-cond11.c: Likewise.
  318. * tst-cond4.c: Likewise.
  319. * tst-cond6.c: Likewise.
  320. * tst-flock2.c: Likewise.
  321. * tst-mutex4.c: Likewise.
  322. * tst-mutex9.c: Likewise.
  323. * tst-rwlock12.c: Likewise.
  324. * tst-rwlock4.c: Likewise.
  325. * tst-signal1.c: Likewise.
  326. * tst-spin2.c: Likewise.
  327. * sysdeps/pthread/posix-timer.h: Likewise.
  328. * sysdeps/pthread/timer_create.c: Likewise.
  329. * sysdeps/pthread/timer_routines.c: Likewise.
  330. 2004-10-01 Ulrich Drepper <drepper@redhat.com>
  331. * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S
  332. (__lll_mutex_timedlock_wait): Address futex correctly.
  333. * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S
  334. (__lll_mutex_timedlock_wait): If woken but cannot get the lock,
  335. make sure 2 is stored in the futex and we looked at the old value.
  336. * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S
  337. (__lll_mutex_timedlock_wait): Likewise. Fix a few other problems
  338. which might very well made the code not working at all before.
  339. [BZ #417]
  340. 2004-09-28 Ulrich Drepper <drepper@redhat.com>
  341. * sysdeps/unix/sysv/linux/pthread_kill.c (__pthread_kill): Don't
  342. allow SIGSETXID to be sent.
  343. * sysdeps/pthread/sigaction.c (__sigaction): Don't allow action
  344. for SIGSETXID to be defined.
  345. * sysdeps/pthread/pthread_sigmask.c (pthread_sigmask): Make sure
  346. SIGSETXID cannot be blocked.
  347. * sysdeps/unix/sysv/linux/sh/bits/pthreadtypes.h (pthread_cond_t):
  348. Add __extension__ to long long types.
  349. * sysdeps/unix/sysv/linux/sparc/bits/pthreadtypes.h: Likewise.
  350. * sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h: Likewise.
  351. * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: Likewise.
  352. * sysdeps/unix/sysv/linux/ia64/bits/pthreadtypes.h: Likewise.
  353. * sysdeps/unix/sysv/linux/alpha/bits/pthreadtypes.h: Likewise.
  354. * sysdeps/unix/sysv/linux/i386/bits/pthreadtypes.h: Likewise.
  355. * sysdeps/unix/sysv/linux/x86_64/bits/pthreadtypes.h: Likewise.
  356. 2004-09-25 Ulrich Drepper <drepper@redhat.com>
  357. * descr.h (struct pthread): Add stopped_start field.
  358. * sysdeps/pthread/createthread.c (create_thread): Set
  359. start_stopped flag in descriptor for new thread appropriately.
  360. * pthread_create.c (start_thread): Only take lock to be stopped on
  361. startup if stopped_start flag says so.
  362. 2004-09-24 Ulrich Drepper <drepper@redhat.com>
  363. * pthread_create.c (__pthread_create_2_1): Remember whether thread
  364. is created detached and if yes, do not try to free the stack in case
  365. the thread creation failed.
  366. * sysdeps/pthread/createthread.c (do_clone): Free stack here if clone
  367. call fails. Don't depend on INTERNAL_SYSCALL_ERRNO return zero in
  368. case there has been no error. [BZ #405]
  369. * pthread_create.c (start_thread): Don't wait for scheduler data
  370. etc to be set at the beginning of the function. The cancellation
  371. infrastructure must have been set up. And enable async
  372. cancellation before potentially going to sleep. [BZ #401]
  373. 2004-09-20 Ulrich Drepper <drepper@redhat.com>
  374. * Versions: Remove exports for pthread_set*id_np functions.
  375. * sysdeps/pthread/pthread.h: Remove pthread_set*id_np prototypes
  376. for now.
  377. * Makefile: Don't build pthread_set*id code for now.
  378. 2004-09-19 Ulrich Drepper <drepper@redhat.com>
  379. * sysdeps/unix/sysv/linux/allocrtsig.c: Allocate second signal for
  380. internal use.
  381. * allocatestack.c (__nptl_setxid): New function.
  382. * descr.h (struct xid_command): Define type.
  383. * init.c (pthread_functions): Add ptr__nptl_setxid initialization.
  384. (sighandler_setxid): New function.
  385. (__pthread_initialize_minimal): Register sighandler_setxid for
  386. SIGCANCEL.
  387. * pt-allocrtsig.c: Update comment.
  388. * pthreadP.h: Define SIGSETXID. Declare __xidcmd variable.
  389. Declare __nptl_setxid.
  390. * sysdeps/pthread/pthread-functions.h: Add ptr__nptl_setxid.
  391. * sysdeps/pthread/pthread.h: Declare pthread_setgid_np,
  392. pthread_setuid_np, pthread_setegid_np, pthread_seteuid_np,
  393. pthread_setregid_np, pthread_setreuid_np, pthread_setresgid_np,
  394. and pthread_setresuid_np.
  395. * pthread_setgid_np.c: New file.
  396. * pthread_setuid_np.c: New file.
  397. * pthread_setegid_np.c: New file.
  398. * pthread_seteuid_np.c: New file.
  399. * pthread_setregid_np.c: New file.
  400. * pthread_setreuid_np.c: New file.
  401. * pthread_setresgid_np.c: New file.
  402. * pthread_setresuid_np.c: New file.
  403. * Versions [libpthread, GLIBC_2.3.4]: Add pthread_setgid_np,
  404. pthread_setuid_np, pthread_setegid_np, pthread_seteuid_np,
  405. pthread_setregid_np, pthread_setreuid_np, pthread_setresgid_np,
  406. and pthread_setresuid_np.
  407. * Makefile (libpthread-routines): Add pthread_setuid, pthread_seteuid,
  408. pthread_setreuid, pthread_setresuid, pthread_setgid, pthread_setegid,
  409. pthread_setregid, and pthread_setresgid.
  410. 2004-09-18 Ulrich Drepper <drepper@redhat.com>
  411. * allocatestack.c (allocate_stack): Return EAGAIN instead of
  412. ENOMEM when out of memory.
  413. 2004-09-10 Roland McGrath <roland@redhat.com>
  414. [BZ #379]
  415. * allocatestack.c (allocate_stack): Remove [__ASSUME_CLONE_STOPPED]
  416. code, since we don't try to use the broken CLONE_STOPPED any more.
  417. * pthread_create.c (start_thread): Likewise.
  418. 2004-09-15 Richard Henderson <rth@redhat.com>
  419. * sysdeps/unix/sysv/linux/alpha/vfork.S: Use libc_hidden_def.
  420. 2004-09-01 David Mosberger <davidm@hpl.hp.com>
  421. * sysdeps/unix/sysv/linux/ia64/jmpbuf-unwind.h
  422. (__libc_unwind_longjmp): Delete macro and declare as function.
  423. * sysdeps/unix/sysv/linux/ia64/Makefile (sysdep_routines): Mention
  424. __ia64_longjmp, sigstack_longjmp, and __sigstack_longjmp for
  425. nptl directory.
  426. * sysdeps/unix/sysv/linux/ia64/__ia64_longjmp.S: New file.
  427. * sysdeps/unix/sysv/linux/ia64/__sigstack_longjmp.c: New file.
  428. * sysdeps/unix/sysv/linux/ia64/unwind_longjmp.c: New file.
  429. 2004-09-12 Ulrich Drepper <drepper@redhat.com>
  430. * sysdeps/pthread/pthread.h: Make rwlock prototypes available also
  431. for __USE_XOPEN2K.
  432. * sysdeps/unix/sysv/linux/alpha/bits/pthreadtypes.h: Define rwlock
  433. types also for __USE_XOPEN2K.
  434. * sysdeps/unix/sysv/linux/i386/bits/pthreadtypes.h: Likewise.
  435. * sysdeps/unix/sysv/linux/ia64/bits/pthreadtypes.h: Likewise.
  436. * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: Likewise.
  437. * sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h: Likewise.
  438. * sysdeps/unix/sysv/linux/sh/bits/pthreadtypes.h: Likewise.
  439. * sysdeps/unix/sysv/linux/sparc/bits/pthreadtypes.h: Likewise.
  440. * sysdeps/unix/sysv/linux/x86_64/bits/pthreadtypes.h: Likewise.
  441. [BZ #320]
  442. 2004-09-08 Ulrich Drepper <drepper@redhat.com>
  443. * sysdeps/pthread/pthread.h
  444. (PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP): Make safe for C++.
  445. (PTHREAD_ERRORCHECK_MUTEX_INITIALIZER_NP): Likewise.
  446. (PTHREAD_ADAPTIVE_MUTEX_INITIALIZER_NP): Likewise.
  447. (PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_NP): Likewise.
  448. [BZ #375]
  449. 2004-09-07 Ulrich Drepper <drepper@redhat.com>
  450. * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: Allow
  451. PSEUDO to be used with . prefix.
  452. * sysdeps/unix/sysv/linux/alpha/pthread_once.c (__pthread_once):
  453. Use atomic_increment instead of atomic_exchange_and_add.
  454. * sysdeps/unix/sysv/linux/sparc/pthread_once.c (__pthread_once):
  455. Likewise.
  456. * sysdeps/unix/sysv/linux/ia64/pthread_once.c (__pthread_once):
  457. Likewise.
  458. * sysdeps/unix/sysv/linux/powerpc/pthread_once.c (__pthread_once):
  459. Likewise.
  460. * allocatestack.c (allocate_stack): Use atomic_increment_val
  461. instead of atomic_exchange_and_add.
  462. * sysdeps/unix/sysv/linux/sem_post.c (__new_sem_post): Likewise.
  463. * sysdeps/unix/sysv/linux/powerpc/sem_post.c (__new_sem_post):
  464. Likewise.
  465. * sysdeps/pthread/pthread_barrier_wait.c (pthread_barrier_wait):
  466. Likewise.
  467. * sysdeps/pthread/pthread.h (pthread_once): Remove __THROW since
  468. the initialization function might throw.
  469. 2005-09-05 Richard Henderson <rth@redhat.com>
  470. * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h (SINGLE_THREAD_P):
  471. Move definition inside libpthread, libc, librt check. Provide
  472. definition for rtld.
  473. 2004-09-02 Ulrich Drepper <drepper@redhat.com>
  474. * sysdeps/alpha/jmpbuf-unwind.h: Define __libc_unwind_longjmp.
  475. * sysdeps/i386/jmpbuf-unwind.h: Likewise
  476. * sysdeps/powerpc/jmpbuf-unwind.h: Likewise.
  477. * sysdeps/s390/jmpbuf-unwind.h: Likewise.
  478. * sysdeps/sh/jmpbuf-unwind.h: Likewise.
  479. * sysdeps/sparc/sparc32/jmpbuf-unwind.h: Likewise.
  480. * sysdeps/unix/sysv/linux/ia64/jmpbuf-unwind.h: Likewise.
  481. * sysdeps/x86_64/jmpbuf-unwind.h: Likewise.
  482. * unwind.c: Use it.
  483. * sysdeps/unix/sysv/linux/i386/bits/pthreadtypes.h (pthread_cond_t):
  484. Rename __data.__clock to __data.__nwaiters, make it unsigned int.
  485. * sysdeps/unix/sysv/linux/x86_64/bits/pthreadtypes.h (pthread_cond_t):
  486. Likewise.
  487. * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S:
  488. Decrement __nwaiters. If pthread_cond_destroy has been called and
  489. this is the last waiter, signal pthread_cond_destroy caller and
  490. avoid using the pthread_cond_t structure after unlock.
  491. * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: Likewise.
  492. * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: Likewise.
  493. Read clock type from the least significant bits of __nwaiters instead
  494. of __clock.
  495. * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: Likewise.
  496. * sysdeps/unix/sysv/linux/internaltypes.h: Define COND_CLOCK_BITS.
  497. 2004-08-31 Jakub Jelinek <jakub@redhat.com>
  498. [BZ #342]
  499. * Makefile (tests): Add tst-cond20 and tst-cond21.
  500. * tst-cond20.c: New test.
  501. * tst-cond21.c: New test.
  502. * sysdeps/unix/sysv/linux/alpha/bits/pthreadtypes.h
  503. (pthread_cond_t): Rename __data.__clock to __data.__nwaiters, make
  504. it unsigned int.
  505. * sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h (pthread_cond_t):
  506. Likewise.
  507. * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h
  508. (pthread_cond_t): Likewise.
  509. * sysdeps/unix/sysv/linux/sparc/bits/pthreadtypes.h (pthread_cond_t):
  510. Likewise.
  511. * sysdeps/unix/sysv/linux/sh/bits/pthreadtypes.h (pthread_cond_t):
  512. Likewise.
  513. * sysdeps/unix/sysv/linux/ia64/bits/pthreadtypes.h (pthread_cond_t):
  514. Likewise.
  515. * sysdeps/unix/sysv/linux/lowlevelcond.sym (cond_clock): Remove.
  516. (cond_nwaiters): New.
  517. (clock_bits): New.
  518. * pthread_cond_destroy.c (__pthread_cond_destroy): Return EBUSY
  519. if there are waiters not signalled yet.
  520. Wait until all already signalled waiters wake up.
  521. * sysdeps/pthread/pthread_cond_wait.c (__condvar_cleanup): Decrement
  522. __nwaiters. If pthread_cond_destroy has been called and this is the
  523. last waiter, signal pthread_cond_destroy caller and avoid using
  524. the pthread_cond_t structure after unlock.
  525. (__pthread_cond_wait): Increment __nwaiters in the beginning,
  526. decrement it when leaving. If pthread_cond_destroy has been called
  527. and this is the last waiter, signal pthread_cond_destroy caller.
  528. * sysdeps/pthread/pthread_cond_timedwait.c (__pthread_cond_timedwait):
  529. Likewise. Read clock type from the least significant bits of
  530. __nwaiters instead of __clock.
  531. * pthread_condattr_setclock.c (pthread_condattr_setclock): Check
  532. whether clock ID can be encoded in COND_CLOCK_BITS bits.
  533. * pthread_condattr_getclock.c (pthread_condattr_getclock): Decode
  534. clock type just from the last COND_CLOCK_BITS bits of value.
  535. * pthread_cond_init.c (__pthread_cond_init): Initialize __nwaiters
  536. instead of __clock, just from second bit of condattr's value.
  537. 2004-08-30 Jakub Jelinek <jakub@redhat.com>
  538. * sysdeps/unix/sysv/linux/x86_64/bits/pthreadtypes.h: Include
  539. bits/wordsize.h. Make the header match i386 header when __WORDSIZE
  540. != 64.
  541. * sysdeps/unix/sysv/linux/x86_64/bits/semaphore.h: Likewise.
  542. 2004-08-15 Roland McGrath <roland@frob.com>
  543. * pthread_atfork.c: Update copyright terms including special exception
  544. for these trivial files, which are statically linked into executables
  545. that use dynamic linking for the significant library code.
  546. 2004-08-09 Jakub Jelinek <jakub@redhat.com>
  547. * DESIGN-rwlock.txt: Add decreasing of nr_readers_queued to
  548. pthread_rwlock_rdlock.
  549. * sysdeps/pthread/pthread_rwlock_rdlock (__pthread_rwlock_rdlock):
  550. Decrease __nr_readers_queued after reacquiring lock.
  551. * sysdeps/pthread/pthread_rwlock_timedrdlock
  552. (pthread_rwlock_timedrdlock): Likewise.
  553. Reported by Bob Cook <bobcook47@hotmail.com>.
  554. 2004-08-11 Jakub Jelinek <jakub@redhat.com>
  555. * tst-rwlock14.c (tf): Read main thread handle from *ARG
  556. before pthread_barrier_wait.
  557. 2004-08-07 Ulrich Drepper <drepper@redhat.com>
  558. * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S:
  559. Remove unnecessary exception handling data.
  560. 2004-07-23 Jakub Jelinek <jakub@redhat.com>
  561. [BZ #284]
  562. * sysdeps/pthread/pthread.h (pthread_getcpuclockid): Use __clockid_t
  563. instead of clockid_t.
  564. 2004-07-21 Roland McGrath <roland@redhat.com>
  565. * Makefile ($(objpfx)multidir.mk): Use $(make-target-directory).
  566. 2004-07-19 Roland McGrath <roland@redhat.com>
  567. * tst-cancel4.c (tf_waitid): Use WEXITED flag bit if available.
  568. 2004-07-02 Roland McGrath <roland@redhat.com>
  569. * configure: Don't exit.
  570. 2004-07-14 Kaz Kojima <kkojima@rr.iij4u.or.jp>
  571. * sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S
  572. (__pthread_cond_timedwait): Check for invalid nanosecond in
  573. timeout value.
  574. 2004-07-07 Ulrich Drepper <drepper@redhat.com>
  575. * Makefile: Add rules to build and run tst-fini1.
  576. * tst-fini1.c: New file.
  577. * tst-fini1mod.c: New file.
  578. 2004-07-05 Ulrich Drepper <drepper@redhat.com>
  579. * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: Define NO_CANCELLATION
  580. if no cancellation support is needed.
  581. * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h: Likewise.
  582. * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Likewise.
  583. * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Likewise.
  584. * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h: Likewise.
  585. * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: Likewise.
  586. * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: Likewise.
  587. * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: Likewise.
  588. * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Likewise.
  589. * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Likewise.
  590. * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Define __NR_futex
  591. only if not already defined.
  592. 2004-07-05 Jakub Jelinek <jakub@redhat.com>
  593. * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (lll_unlock): Use
  594. constraint "m" instead of "0" for futex.
  595. * shlib-versions: Add powerpc64-.*-linux.*.
  596. 2004-07-04 Jakub Jelinek <jakub@redhat.com>
  597. * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedrdlock.S
  598. (pthread_rwlock_timedrdlock): Use cmpq instead of cmpl to check
  599. for valid tv_nsec.
  600. * tst-rwlock14.c (do_test): Test for invalid tv_nsec equal to
  601. 1 billion and 64-bit tv_nsec which is valid when truncated to 32
  602. bits.
  603. 2004-06-29 Roland McGrath <roland@redhat.com>
  604. * Banner: NPTL no longer has its own version number.
  605. * Makefile (nptl-version): Variable removed.
  606. * sysdeps/pthread/Makefile (CFLAGS-confstr.c): Set LIBPTHREAD_VERSION
  607. using $(version), the glibc version number.
  608. 2004-06-29 Kaz Kojima <kkojima@rr.iij4u.or.jp>
  609. * sysdeps/unix/sysv/linux/sh/pthread_once.S (__pthread_once):
  610. Fix branch offset for a PLT entry.
  611. * sysdeps/unix/sysv/linux/sh/sem_post.S (__new_sem_post):
  612. Likewise.
  613. * sysdeps/unix/sysv/linux/sh/sem_timedwait.S (sem_timedwait):
  614. Likewise.
  615. * sysdeps/unix/sysv/linux/sh/sem_trywait.S (__new_sem_trywait):
  616. Likewise.
  617. * sysdeps/unix/sysv/linux/sh/sem_wait.S (__new_sem_wait):
  618. Likewise.
  619. 2004-06-28 Jakub Jelinek <jakub@redhat.com>
  620. * sysdeps/alpha/tcb-offsets.sym (MULTIPLE_THREADS_OFFSET): Define
  621. unconditionally.
  622. 2004-06-28 Jakub Jelinek <jakub@redhat.com>
  623. * sysdeps/pthread/pthread_rwlock_timedwrlock.c
  624. (pthread_rwlock_timedwrlock): Return EINVAL if tv_nsec is negative,
  625. instead of tv_sec.
  626. * sysdeps/pthread/pthread_rwlock_timedrdlock.c
  627. (pthread_rwlock_timedrdlock): Likewise.
  628. 2004-06-22 Jakub Jelinek <jakub@redhat.com>
  629. * sysdeps/unix/sysv/linux/s390/lowlevellock.h (lll_futex_requeue):
  630. Set __r7 to val, not mutex.
  631. 2004-06-27 Ulrich Drepper <drepper@redhat.com>
  632. * Makefile: Add rules to build tst-rwlock14.
  633. * tst-rwlock14.c: New file.
  634. 2004-06-24 Boris Hu <boris.hu@intel.com>
  635. * sysdeps/pthread/pthread_rwlock_timedrdlock.c: Add timeout validation
  636. check.
  637. * sysdeps/pthread/pthread_rwlock_timedwrlock.c: Likewise.
  638. 2004-06-19 Andreas Jaeger <aj@suse.de>
  639. * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: Fix
  640. assembler in last patch.
  641. 2004-06-17 Ulrich Drepper <drepper@redhat.com>
  642. * sysdeps/pthread/pthread_cond_timedwait.c
  643. (__pthread_cond_timedwait): Also check for negativ nanoseconds.
  644. * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S
  645. (__pthread_cond_timedwait): Check for invalid nanosecond in
  646. timeout value.
  647. * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: Likewise.
  648. * tst-cond19.c: New file.
  649. * Makefile: Add rules to build and run tst-cond19.
  650. 2004-06-15 Steven Munroe <sjmunroe@us.ibm.com>
  651. * tst-context1.c (GUARD_PATTERN): Defined.
  652. (tst_context_t): Define struct containing ucontext_t & guard words.
  653. (ctx): Declare as an array of tst_context_t.
  654. (fct): Verify uc_link & guard words are still valid.
  655. (tf): Initialize guard words in ctx. Adjust ctx refs for new struct.
  656. 2004-06-13 Kaz Kojima <kkojima@rr.iij4u.or.jp>
  657. * sysdeps/unix/sysv/linux/sh/bits/pthreadtypes.h (pthread_cond_t):
  658. Add __data.__futex field, reshuffle __data.__clock.
  659. * sysdeps/unix/sysv/linux/sh/pthread_cond_signal.S
  660. (__pthread_cond_signal): Increment __futex at the same time as
  661. __wakeup_seq or __total_seq. Pass address of __futex instead of
  662. address of low 32-bits of __wakeup_seq to futex syscall.
  663. * sysdeps/unix/sysv/linux/sh/pthread_cond_wait.S
  664. (__pthread_cond_wait): Likewise. Pass __futex value from before
  665. releasing internal lock to FUTEX_WAIT.
  666. * sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S
  667. (__pthread_cond_timedwait): Likewise.
  668. * sysdeps/unix/sysv/linux/sh/pthread_cond_broadcast.S
  669. (FUTEX_CMP_REQUEUE): Define.
  670. (__pthread_cond_broadcast): Set __futex to 2 * __total_seq.
  671. Use FUTEX_CMP_REQUEUE operation instead of FUTEX_REQUEUE.
  672. Pass __futex value from before the unlock and __futex address instead
  673. of address of low 32-bits of __wakeup_seq to futex syscall.
  674. Fallback to FUTEX_WAKE all on any errors.
  675. 2004-06-08 Jakub Jelinek <jakub@redhat.com>
  676. * pthread_mutexattr_getpshared.c (pthread_mutex_getpshared): Fix
  677. comment typo.
  678. * pthread_mutexattr_gettype.c (pthread_mutexattr_gettype): Likewise.
  679. * pthread_mutexattr_init.c (__pthread_mutexattr_init): Likewise.
  680. * pthread_mutexattr_settype.c (__pthread_mutexattr_settype): Likewise.
  681. * pthread_mutexattr_setpshared.c (pthread_mutexattr_setpshared):
  682. Likewise. Reported by Bob Cook <bobcook47@hotmail.com>.
  683. 2004-06-11 Martin Schwidefsky <schwidefsky@de.ibm.com>
  684. * sysdeps/unix/sysv/linux/s390/lowlevellock.h (lll_compare_and_swap):
  685. Add memory clobber to inline assembly.
  686. (__lll_mutex_trylock): Likewise.
  687. (__lll_mutex_cond_trylock): Likewise.
  688. 2004-06-07 Martin Schwidefsky <schwidefsky@de.ibm.com>
  689. * sysdeps/unix/sysv/linux/s390/lowlevellock.h (lll_futex_requeue):
  690. Pass val argument as 6th system call argument in %r7.
  691. 2004-05-21 Jakub Jelinek <jakub@redhat.com>
  692. * Makefile (tests): Add tst-cond16.
  693. * sysdeps/unix/sysv/linux/lowlevelcond.sym (cond_futex): Add.
  694. * pthread_cond_init.c (__pthread_cond_init): Clear __data.__futex.
  695. * sysdeps/unix/sysv/linux/i386/bits/pthreadtypes.h (pthread_cond_t):
  696. Add __data.__futex field, reshuffle __data.__clock.
  697. * sysdeps/unix/sysv/linux/i386/pthread_cond_signal.S
  698. (__pthread_cond_signal): Increment __futex at the same time as
  699. __wakeup_seq or __total_seq. Pass address of __futex instead of
  700. address of low 32-bits of __wakeup_seq to futex syscall.
  701. * sysdeps/unix/sysv/linux/i386/pthread_cond_wait.S
  702. (__pthread_cond_wait): Likewise. Pass __futex value from before
  703. releasing internal lock to FUTEX_WAIT.
  704. * sysdeps/unix/sysv/linux/i386/pthread_cond_timedwait.S
  705. (__pthread_cond_timedwait): Likewise.
  706. * sysdeps/unix/sysv/linux/i386/pthread_cond_broadcast.S
  707. (FUTEX_CMP_REQUEUE): Define.
  708. (__pthread_cond_broadcast): Set __futex to 2 * __total_seq.
  709. Use FUTEX_CMP_REQUEUE operation instead of FUTEX_REQUEUE.
  710. Pass __futex value from before the unlock and __futex address instead
  711. of address of low 32-bits of __wakeup_seq to futex syscall.
  712. Fallback to FUTEX_WAKE all on any errors.
  713. * sysdeps/unix/sysv/linux/alpha/lowlevellock.h (FUTEX_CMP_REQUEUE):
  714. Define.
  715. (lll_futex_requeue): Add val argument, use FUTEX_CMP_REQUEUE
  716. internally. Return non-zero if error, zero if success.
  717. * sysdeps/unix/sysv/linux/alpha/bits/pthreadtypes.h (pthread_cond_t):
  718. Add __data.__futex field, reshuffle __data.__clock.
  719. * sysdeps/unix/sysv/linux/s390/lowlevellock.h (FUTEX_CMP_REQUEUE):
  720. Define.
  721. (lll_futex_requeue): Add val argument, return 1 unconditionally
  722. for the time being.
  723. * sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h (pthread_cond_t):
  724. Add __data.__futex field, reshuffle __data.__clock.
  725. * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h (FUTEX_CMP_REQUEUE):
  726. Define.
  727. (lll_futex_requeue): Add val argument, use FUTEX_CMP_REQUEUE
  728. internally. Return non-zero if error, zero if success.
  729. * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h
  730. (pthread_cond_t): Add __data.__futex field, reshuffle __data.__clock.
  731. * sysdeps/unix/sysv/linux/sparc/lowlevellock.h (FUTEX_CMP_REQUEUE):
  732. Define.
  733. (lll_futex_requeue): Add val argument, use FUTEX_CMP_REQUEUE
  734. internally. Return non-zero if error, zero if success.
  735. * sysdeps/unix/sysv/linux/sparc/bits/pthreadtypes.h (pthread_cond_t):
  736. Add __data.__futex field, reshuffle __data.__clock.
  737. * sysdeps/unix/sysv/linux/ia64/lowlevellock.h (FUTEX_CMP_REQUEUE):
  738. Define.
  739. (lll_futex_requeue): Add val argument, use FUTEX_CMP_REQUEUE
  740. internally. Return non-zero if error, zero if success.
  741. * sysdeps/unix/sysv/linux/ia64/bits/pthreadtypes.h (pthread_cond_t):
  742. Add __data.__futex field, reshuffle __data.__clock.
  743. * sysdeps/unix/sysv/linux/x86_64/bits/pthreadtypes.h (pthread_cond_t):
  744. Add __data.__futex field, reshuffle __data.__clock.
  745. * sysdeps/pthread/pthread_cond_signal.c (__pthread_cond_signal):
  746. Increment __futex at the same time as __wakeup_seq or __total_seq.
  747. Pass address of __futex instead of address of low 32-bits of
  748. __wakeup_seq to futex syscall.
  749. * sysdeps/pthread/pthread_cond_wait.c (__pthread_cond_wait): Likewise.
  750. Pass __futex value from before releasing internal lock
  751. to FUTEX_WAIT.
  752. * sysdeps/pthread/pthread_cond_timedwait.c (__pthread_cond_timedwait):
  753. Likewise. Avoid unnecessary shadowing of variables.
  754. * sysdeps/pthread/pthread_cond_broadcast.c (__pthread_cond_broadcast):
  755. Set __futex to 2 * __total_seq. Pass __futex value from before the
  756. unlock and __futex address instead of address of low 32-bits of
  757. __wakeup_seq to futex_requeue macro, adjust for new return value
  758. meaning.
  759. * sysdeps/unix/sysv/linux/x86_64/pthread_cond_signal.S
  760. (__pthread_cond_signal): Increment __futex at the same time as
  761. __wakeup_seq or __total_seq. Pass address of __futex instead of
  762. address of low 32-bits of __wakeup_seq to futex syscall.
  763. * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S
  764. (__pthread_cond_wait): Likewise. Pass __futex value from before
  765. releasing internal lock to FUTEX_WAIT.
  766. * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S
  767. (__pthread_cond_timedwait): Likewise.
  768. * sysdeps/unix/sysv/linux/x86_64/pthread_cond_broadcast.S
  769. (FUTEX_CMP_REQUEUE): Define.
  770. (__pthread_cond_broadcast): Set __futex to 2 * __total_seq.
  771. Use FUTEX_CMP_REQUEUE operation instead of FUTEX_REQUEUE.
  772. Pass __futex value from before the unlock and __futex address instead
  773. of address of low 32-bits of __wakeup_seq to futex syscall.
  774. Fallback to FUTEX_WAKE all on any errors.
  775. 2004-06-03 Kaz Kojima <kkojima@rr.iij4u.or.jp>
  776. * sysdeps/unix/sysv/linux/sh/lowlevellock.h (lll_mutex_lock):
  777. Add nop to align the end of critical section.
  778. (lll_mutex_cond_lock, lll_mutex_timedlock): Likewise.
  779. 2004-06-01 Kaz Kojima <kkojima@rr.iij4u.or.jp>
  780. * sysdeps/unix/sysv/linux/sh/bits/pthreadtypes.h (pthread_cond_t):
  781. Add __broadcast_seq field.
  782. * sysdeps/unix/sysv/linux/sh/pthread_cond_broadcast.S: Mark
  783. all waiters as woken with woken_seq and bump broadcast counter.
  784. * sysdeps/unix/sysv/linux/sh/pthread_cond_wait.S: Use new
  785. __broadcast_seq. Increment __woken_seq correctly when cleanuped.
  786. * sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S: Likewise.
  787. Comment typo fixes. Avoid returning -ETIMEDOUT.
  788. 2004-06-01 Ulrich Drepper <drepper@redhat.com>
  789. * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S
  790. (__condvar_tw_cleanup): Fix access to saved broadcast_seq value.
  791. Reported by Kaz Kojima.
  792. 2004-05-25 Jakub Jelinek <jakub@redhat.com>
  793. * sysdeps/unix/sysv/linux/aio_misc.h: New file.
  794. 2004-05-21 Jakub Jelinek <jakub@redhat.com>
  795. * sysdeps/pthread/pthread_cond_wait.c (__pthread_cond_wait): Compare
  796. __broadcast_seq with bc_seq after acquiring internal lock instead of
  797. before it.
  798. 2004-05-18 Jakub Jelinek <jakub@redhat.com>
  799. * Makefile (.NOTPARALLEL): Only serialize make check/xcheck, not
  800. compilation.
  801. * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S
  802. (__pthread_cond_timedwait): Avoid returning -ETIMEDOUT.
  803. * sysdeps/unix/sysv/linux/x86_64/bits/pthreadtypes.h
  804. (pthread_cond_t): Add __data.__broadcast_seq field.
  805. * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S
  806. (FRAME_SIZE): Define.
  807. (__pthread_cond_timedwait): Use it. Store/check broadcast_seq.
  808. Comment typo fixes.
  809. * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S (FRAME_SIZE):
  810. Define.
  811. (__pthread_cond_wait): Use it. Store/check broadcast_seq. Comment
  812. typo fixes.
  813. * sysdeps/unix/sysv/linux/x86_64/pthread_cond_broadcast.S
  814. (__pthread_cond_broadcast): Increment broadcast_seq. Comment typo
  815. fixes.
  816. 2004-05-18 Ulrich Drepper <drepper@redhat.com>
  817. * sysdeps/unix/sysv/linux/lowlevelcond.sym: Add broadcast_seq entry.
  818. * sysdeps/unix/sysv/linux/alpha/bits/pthreadtypes.h (pthread_cond_t):
  819. Add __broadcast_seq field.
  820. * sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h: Likewise.
  821. * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: Likewise.
  822. * sysdeps/unix/sysv/linux/sparc/bits/pthreadtypes.h: Likewise.
  823. * sysdeps/unix/sysv/linux/i386/bits/pthreadtypes.h: Likewise.
  824. * sysdeps/unix/sysv/linux/ia64/bits/pthreadtypes.h: Likewise.
  825. * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_broadcast.S: Mark
  826. all waiters as woken with woken_seq and bump broadcast counter.
  827. * sysdeps/pthread/pthread_cond_broadcast.c: Likewise.
  828. * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Use new
  829. __broadcast_seq field.
  830. * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: Likewise.
  831. * sysdeps/pthread/pthread_cond_wait.c: Likewise.
  832. * sysdeps/pthread/pthread_cond_timedwait.c: Likewise.
  833. * pthread_cond_init.c: Initialize __broadcast_seq field.
  834. * Makefile (tests): Add tst-cond17 and tst-cond18.
  835. Add .NOTPARALLEL goal.
  836. * tst-cond16.c: New file. From Jakub.
  837. * tst-cond17.c: New file. From Jakub.
  838. * tst-cond18.c: New file. From Jakub.
  839. 2004-05-16 Ulrich Drepper <drepper@redhat.com>
  840. * sysdeps/unix/sysv/linux/i386/i486/sem_timedwait.S: Correct some
  841. unwind info.
  842. * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S:
  843. Parametrize frame size. Correct some unwind info.
  844. * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: Likewise.
  845. 2004-05-04 Jakub Jelinek <jakub@redhat.com>
  846. * tst-stack3.c: Note testing functionality beyond POSIX.
  847. 2004-05-04 Jakub Jelinek <jakub@redhat.com>
  848. * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (USE___THREAD):
  849. Change conditional from ifdef to if.
  850. 2004-04-23 Jakub Jelinek <jakub@redhat.com>
  851. * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (SYSDEP_CANCEL_ERRNO,
  852. SYSDEP_CANCEL_ERROR): Define.
  853. (PSEUDO): Use it.
  854. 2004-05-01 Jakub Jelinek <jakub@redhat.com>
  855. * Versions (libpthread): Remove __pthread_cleanup_upto@@GLIBC_PRIVATE.
  856. 2004-04-20 Jakub Jelinek <jakub@redhat.com>
  857. * sem_unlink.c (sem_unlink): Change EPERM into EACCES.
  858. 2004-04-19 Kaz Kojima <kkojima@rr.iij4u.or.jp>
  859. * sysdeps/unix/sysv/linux/sh/sem_timedwait.S: Add frame info.
  860. Use HIDDEN_JUMPTARGET to jump to __pthread_unwind.
  861. * sysdeps/unix/sysv/linux/sh/sem_wait.S: Remove unneeded frame
  862. info. Use HIDDEN_JUMPTARGET to jump to __pthread_unwind.
  863. 2004-04-19 Ulrich Drepper <drepper@redhat.com>
  864. * sysdeps/unix/sysv/linux/timer_routines.c: Make sure helper
  865. thread has all signals blocked.
  866. 2004-04-18 Andreas Jaeger <aj@suse.de>
  867. * sysdeps/unix/sysv/linux/x86_64/bits/semaphore.h
  868. (SEM_VALUE_MAX): Add missing brace.
  869. 2004-04-17 Jakub Jelinek <jakub@redhat.com>
  870. * sysdeps/pthread/Makefile (tests): Add tst-mqueue8x
  871. in rt subdir.
  872. (CFLAGS-tst-mqueue8x.c): Add -fexceptions.
  873. * sysdeps/pthread/tst-mqueue8x.c: New test.
  874. * tst-cancel4.c: Update comment about message queues.
  875. * sysdeps/pthread/timer_gettime.c (timer_gettime): For expired timer
  876. return it_value { 0, 0 }.
  877. * sysdeps/pthread/timer_create.c (timer_create): Handle SIGEV_NONE
  878. like SIGEV_SIGNAL.
  879. * sysdeps/pthread/timer_routines.c (thread_expire_timer): Remove
  880. assertion for SIGEV_NONE.
  881. (thread_attr_compare): Compare all attributes, not just a partial
  882. subset.
  883. 2004-04-17 Jakub Jelinek <jakub@redhat.com>
  884. * sysdeps/unix/sysv/linux/mq_notify.c: Include stdlib.h.
  885. 2004-04-17 Ulrich Drepper <drepper@redhat.com>
  886. * sysdeps/unix/sysv/linux/alpha/bits/semaphore.h (SEM_VALUE_MAX):
  887. Just use a plain number.
  888. * sysdeps/unix/sysv/linux/i386/bits/semaphore.h: Likewise.
  889. * sysdeps/unix/sysv/linux/ia64/bits/semaphore.h: Likewise.
  890. * sysdeps/unix/sysv/linux/powerpc/bits/semaphore.h: Likewise.
  891. * sysdeps/unix/sysv/linux/s390/bits/semaphore.h: Likewise.
  892. * sysdeps/unix/sysv/linux/sh/bits/semaphore.h: Likewise.
  893. * sysdeps/unix/sysv/linux/sparc/bits/semaphore.h: Likewise.
  894. * sysdeps/unix/sysv/linux/x86_64/bits/semaphore.h: Likewise.
  895. 2004-04-16 Kaz Kojima <kkojima@rr.iij4u.or.jp>
  896. * sysdeps/unix/sysv/linux/sh/pthread_cond_wait.S: Remove unneeded
  897. frame info.
  898. * sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S: Likewise.
  899. 2004-04-15 Jakub Jelinek <jakub@redhat.com>
  900. * sysdeps/unix/sysv/linux/timer_routines.c: Include errno.h.
  901. (timer_helper_thread): Use inline rt_sigtimedwait syscall instead
  902. of calling sigwaitinfo.
  903. 2004-04-16 Ulrich Drepper <drepper@redhat.com>
  904. * allocatestack.c (allocate_stack): Set reported_guardsize
  905. unconditionally.
  906. * pthread_getattr_np.c (pthread_getattr_np): Use
  907. reported_guardsize instead of guardsize.
  908. * descr.h (struct pthread): Add reported_guardsize field.
  909. 2004-04-13 Jakub Jelinek <jakub@redhat.com>
  910. * sysdeps/unix/sysv/linux/mq_notify.c: Shut up GCC warning.
  911. 2004-04-12 Ulrich Drepper <drepper@redhat.com>
  912. * sysdeps/unix/sysv/linux/mq-notify.c: New file.
  913. 2004-04-08 Jakub Jelinek <jakub@redhat.com>
  914. * sysdeps/unix/sysv/linux/bits/local_lim.h (MQ_PRIO_MAX): Define.
  915. * sysdeps/unix/sysv/linux/alpha/bits/local_lim.h (MQ_PRIO_MAX): Define.
  916. * sysdeps/unix/sysv/linux/ia64/bits/local_lim.h (MQ_PRIO_MAX): Define.
  917. * sysdeps/unix/sysv/linux/sparc/bits/local_lim.h (MQ_PRIO_MAX): Define.
  918. * sysdeps/unix/sysv/linux/bits/posix_opt.h (_POSIX_MESSAGE_PASSING):
  919. Define.
  920. * sysdeps/unix/sysv/linux/i386/bits/posix_opt.h
  921. (_POSIX_MESSAGE_PASSING): Define.
  922. * sysdeps/unix/sysv/linux/ia64/bits/posix_opt.h
  923. (_POSIX_MESSAGE_PASSING): Define.
  924. * sysdeps/unix/sysv/linux/x86_64/bits/posix_opt.h
  925. (_POSIX_MESSAGE_PASSING): Define.
  926. 2004-04-04 Ulrich Drepper <drepper@redhat.com>
  927. * tst-context1.c (fct): Check whether correct stack is used.
  928. 2004-04-03 Ulrich Drepper <drepper@redhat.com>
  929. * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Never use
  930. matching constraints for asm mem parameters.
  931. * tst-clock2.c (tf): Don't define unless needed.
  932. 2004-03-30 H.J. Lu <hongjiu.lu@intel.com>
  933. * Makefile (link-libc-static): Use $(static-gnulib) instead of
  934. $(gnulib).
  935. 2004-03-30 Ulrich Drepper <drepper@redhat.com>
  936. * sysdeps/pthread/pthread-functions.h: Add ptr__nptl_deallocate_tsd.
  937. * init.c (pthread_functions): Add ptr__nptl_deallocate_tsd.
  938. * pthreadP.h: Declare __nptl_deallocate_tsd.
  939. * pthread_create.c (deallocate_tsd): Remove to __nptl_deallocate_tsd.
  940. Adjust caller.
  941. * Makefile (tests): Add tst-tsd5.
  942. * tst-tsd5.c: New file.
  943. 2004-03-29 Ulrich Drepper <drepper@redhat.com>
  944. * sysdeps/unix/sysv/linux/pthread_attr_setaffinity.c
  945. (__pthread_attr_setaffinity_old): Prepend GLIBC_ to version names
  946. is SHLIB_COMPAT check.
  947. * sysdeps/unix/sysv/linux/pthread_attr_getaffinity.c
  948. (__pthread_attr_getaffinity_old): Likewise.
  949. * sysdeps/unix/sysv/linux/pthread_getaffinity.c
  950. (__pthread_getaffinity_old): Likewise.
  951. * sysdeps/unix/sysv/linux/pthread_setaffinity.c
  952. (__pthread_setaffinity_old): Likewise.
  953. 2004-03-26 Ulrich Drepper <drepper@redhat.com>
  954. * allocatestack.c (_make_stacks_executable): Call
  955. _dl_make_stack_executable first.
  956. 2004-03-24 Roland McGrath <roland@redhat.com>
  957. * sysdeps/i386/pthread_spin_lock.c (pthread_spin_lock): Use "m"
  958. constraint instead of "0".
  959. 2004-03-24 Ulrich Drepper <drepper@redhat.com>
  960. * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h
  961. (lll_mutex_cond_trylock): Define as wrapper around __lll_cond_trylock.
  962. * sysdeps/unix/sysv/linux/getpid.c (really_getpid): Reorganize
  963. code to avoid warning.
  964. 2004-03-24 Andreas Jaeger <aj@suse.de>
  965. * sysdeps/unix/sysv/linux/pthread_attr_setaffinity.c
  966. (__pthread_attr_setaffinity_old): Remove const.
  967. 2004-03-23 Ulrich Drepper <drepper@redhat.com>
  968. * sysdeps/unix/sysv/linux/smp.h: New file.
  969. * sysdeps/unix/sysv/linux/sh/smp.h: New file.
  970. * init.c: Define __is_smp.
  971. (__pthread_initialize_minimal_internal): Call is_smp_system to
  972. initialize __is_smp.
  973. * pthreadP.h: Declare __is_smp.
  974. Define MAX_ADAPTIVE_COUNT is necessary.
  975. * pthread_mutex_init.c: Add comment regarding __spins field.
  976. * pthread_mutex_lock.c: Implement adaptive mutex type.
  977. * pthread_mutex_timedlock.c: Likewise.
  978. * sysdeps/unix/sysv/linux/pthread_mutex_cond_lock.c: Likewise.
  979. * sysdeps/unix/sysv/linux/alpha/bits/pthreadtypes.h (pthread_mutex_t):
  980. Add __spins field.
  981. * sysdeps/unix/sysv/linux/i386/bits/pthreadtypes.h: Likewise.
  982. * sysdeps/unix/sysv/linux/ia64/bits/pthreadtypes.h: Likewise.
  983. * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: Likewise.
  984. * sysdeps/unix/sysv/linux/sh/bits/pthreadtypes.h: Likewise.
  985. * sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h: Likewise.
  986. * sysdeps/unix/sysv/linux/sparc/bits/pthreadtypes.h: Likewise.
  987. * sysdeps/unix/sysv/linux/x86_64/bits/pthreadtypes.h: Likewise.
  988. * sysdeps/unix/sysv/linux/alpha/bits/pthreadtypes.h: Define
  989. lll_mutex_cond_trylock.
  990. * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: Likewise.
  991. * sysdeps/unix/sysv/linux/sh/bits/pthreadtypes.h: Likewise.
  992. * sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h: Likewise.
  993. * sysdeps/unix/sysv/linux/sparc/bits/pthreadtypes.h: Likewise.
  994. * sysdeps/unix/sysv/linux/i386/bits/pthreadtypes.h: Likewise.
  995. Define BUSY_WAIT_NOP.
  996. * sysdeps/unix/sysv/linux/ia64/bits/pthreadtypes.h: Likewise.
  997. * sysdeps/unix/sysv/linux/x86_64/bits/pthreadtypes.h: Likewise.
  998. * tst-mutex5.c: Add support for testing adaptive mutexes.
  999. * tst-mutex7.c: Likewise.
  1000. * tst-mutex5a.c: New file.
  1001. * tst-mutex7a.c: New file.
  1002. * Makefile (tests): Add tst-mutex5a and tst-mutex7a.
  1003. * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S
  1004. (__lll_mutex_timedlock_wait): Preserve r8 and r9 since the
  1005. vgettimeofday call might destroy the content.
  1006. * sysdeps/ia64/pthread_spin_lock.c (pthread_spin_lock): Use hint
  1007. @pause in the loop.
  1008. * sysdeps/unix/sysv/linux/i386/lowlevellock.h (lll_mutex_trylock):
  1009. No need to restrict type of ret. Make it int. Add comment.
  1010. * sysdeps/unix/sysv/linux/i386/lowlevellock.h (lll_mutex_trylock):
  1011. Remove unnecessary setne instruction.
  1012. 2004-03-22 Jakub Jelinek <jakub@redhat.com>
  1013. * sysdeps/unix/sysv/linux/pthread_getaffinity.c
  1014. (__pthread_getaffinity_new): Use INT_MAX instead of UINT_MAX.
  1015. * pthread_getattr_np.c (pthread_getattr_np): Double size every cycle.
  1016. If realloc fails, break out of the loop.
  1017. 2004-03-20 Andreas Jaeger <aj@suse.de>
  1018. * sysdeps/unix/sysv/linux/pthread_setaffinity.c
  1019. (__pthread_setaffinity_old): Fix interface.
  1020. * sysdeps/unix/sysv/linux/pthread_getaffinity.c
  1021. (__pthread_getaffinity_old): Likewise.
  1022. * sysdeps/unix/sysv/linux/pthread_setaffinity.c
  1023. (__pthread_setaffinity_new): Remove duplicate declaration.
  1024. 2004-03-20 Kaz Kojima <kkojima@rr.iij4u.or.jp>
  1025. * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h (CENABLE): Save
  1026. the return value to a safe register.
  1027. (CDISABLE): Set the function argument correctly.
  1028. 2004-03-17 Kaz Kojima <kkojima@rr.iij4u.or.jp>
  1029. * sysdeps/unix/sysv/linux/sh/lowlevel-atomic.h (XCHG): Define.
  1030. * sysdeps/unix/sysv/linux/sh/lowlevellock.S (__lll_mutex_lock_wait):
  1031. Rewrite so that only one locked memory operation per round is needed.
  1032. * sysdeps/unix/sysv/linux/sh/pthread_barrier_wait.S
  1033. (pthread_barrier_wait): After wakeup, release lock only when the
  1034. last thread stopped using the barrier object.
  1035. * sysdeps/unix/sysv/linux/sh/pthread_cond_wait.S
  1036. (__pthread_cond_wait): Don't store mutex address if the current
  1037. value is ~0l. Add correct cleanup support and unwind info.
  1038. * sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S: Likewise.
  1039. * sysdeps/unix/sysv/linux/sh/pthread_cond_broadcast.S
  1040. (__pthread_cond_broadcast): Don't use requeue for pshared condvars.
  1041. * sysdeps/unix/sysv/linux/sh/pthread_cond_signal.S: Update comment.
  1042. * sysdeps/unix/sysv/linux/sh/pthread_once.S (__pthread_once):
  1043. Add correct cleanup support and unwind info.
  1044. * sysdeps/unix/sysv/linux/sh/sem_wait.S (__new_sem_wait): Likewise.
  1045. * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Add unwind
  1046. information for syscall wrappers.
  1047. 2004-03-18 Ulrich Drepper <drepper@redhat.com>
  1048. * sysdeps/unix/sysv/linux/internaltypes.h (struct pthread_attr): Add
  1049. cpusetsize field, remove next.
  1050. * sysdeps/pthread/pthread.h (pthread_getaffinity_np): Add new second
  1051. parameter for size of the CPU set.
  1052. (pthread_setaffinity_np): Likewise.
  1053. (pthread_attr_getaffinity_np): Likewise.
  1054. (pthread_attr_setaffinity_np): Likewise.
  1055. * sysdeps/unix/sysv/linux/pthread_attr_getaffinity.c: Implement
  1056. interface change, keep compatibility code.
  1057. * sysdeps/unix/sysv/linux/pthread_attr_setaffinity.c: Likewise.
  1058. * sysdeps/unix/sysv/linux/pthread_getaffinity.c: Likewise.
  1059. * sysdeps/unix/sysv/linux/pthread_setaffinity.c: Likewise.
  1060. * pthreadP.h: Remove hidden_proto for pthread_getaffinity_np. Declare
  1061. __pthread_getaffinity_np.
  1062. * Versions: Add version for changed interfaces.
  1063. * tst-attr3.c: Adjust test for interface change.
  1064. * pthread_getattr_np.c: Query the kernel about the affinity mask with
  1065. increasing buffer sizes.
  1066. * pthread_attr_destroy.c: Remove unused list handling.
  1067. * pthread_attr_init.c: Likewise.
  1068. 2004-03-17 Roland McGrath <roland@redhat.com>
  1069. * sysdeps/unix/sysv/linux/timer_create.c (timer_create): Pass missing
  1070. first argument to clock_getres so we ever enable kernel timers.
  1071. 2004-03-15 Ulrich Weigand <uweigand@de.ibm.com>
  1072. * init.c (nptl_version): Add __attribute_used__ to nptl_version.
  1073. 2004-03-12 Richard Henderson <rth@redhat.com>
  1074. * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: Propagate
  1075. oldvalue from CENABLE to CDISABLE.
  1076. 2004-03-12 Ulrich Drepper <drepper@redhat.com>
  1077. * sysdeps/unix/sysv/linux/bits/local_lim.h: Define HOST_NAME_MAX.
  1078. * sysdeps/unix/sysv/linux/alpha/bits/local_lim.h: Likewise.
  1079. * sysdeps/unix/sysv/linux/ia64/bits/local_lim.h: Likewise.
  1080. * sysdeps/unix/sysv/linux/sparc/bits/local_lim.h: Likewise.
  1081. 2004-03-11 Richard Henderson <rth@redhat.com>
  1082. * sysdeps/alpha/tcb-offsets.sym (PID_OFFSET): New.
  1083. * sysdeps/unix/sysv/linux/alpha/pt-vfork.S: Save/restore PID.
  1084. * sysdeps/unix/sysv/linux/alpha/vfork.S: New file.
  1085. 2004-03-11 Jakub Jelinek <jakub@redhat.com>
  1086. * sysdeps/unix/sysv/linux/s390/s390-64/vfork.S (__vfork): Use jgnl
  1087. instead of jnl instruction to jump to SYSCALL_ERROR_LABEL.
  1088. * sysdeps/unix/sysv/linux/s390/s390-64/pt-vfork.S (__vfork): Likewise.
  1089. 2004-03-11 Jakub Jelinek <jakub@redhat.com>
  1090. * forward.c (__pthread_cond_broadcast_2_0,
  1091. __pthread_cond_destroy_2_0, __pthread_cond_init_2_0,
  1092. __pthread_cond_signal_2_0, __pthread_cond_wait_2_0,
  1093. __pthread_cond_timedwait_2_0): Use return 0 as defaction instead of 0.
  1094. 2004-03-11 Kaz Kojima <kkojima@rr.iij4u.or.jp>
  1095. * sysdeps/sh/tcb-offsets.sym: Add PID.
  1096. * sysdeps/unix/sysv/linux/sh/pt-vfork.S: Properly handle PID cache.
  1097. * sysdeps/unix/sysv/linux/sh/vfork.S: New file.
  1098. 2004-03-10 Ulrich Drepper <drepper@redhat.com>
  1099. * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S: No need to
  1100. include <sysdep-cancel.h>, vfork is no cancellation point.
  1101. * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S: Likewise.
  1102. * sysdeps/unix/sysv/linux/powerpc/powerpc64/pt-vfork.S: Likewise.
  1103. * sysdeps/unix/sysv/linux/powerpc/powerpc32/pt-vfork.S: Likewise.
  1104. 2004-03-10 Jakub Jelinek <jakub@redhat.com>
  1105. * sysdeps/unix/sysv/linux/s390/s390-32/vfork.S (__vfork): Add
  1106. libc_hidden_def.
  1107. * sysdeps/unix/sysv/linux/s390/s390-64/vfork.S (__vfork): Likewise.
  1108. * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S (__vfork):
  1109. Likewise.
  1110. * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork):
  1111. Likewise.
  1112. * sysdeps/unix/sysv/linux/sparc/sparc32/vfork.S (__vfork): Likewise.
  1113. * sysdeps/unix/sysv/linux/sparc/sparc64/vfork.S (__vfork): Likewise.
  1114. * sysdeps/unix/sysv/linux/ia64/pt-vfork.S: Include tcb-offsets.h.
  1115. * sysdeps/unix/sysv/linux/ia64/vfork.S (__vfork): Use DO_CALL instead
  1116. of DO_CALL_VIA_BREAK. Work around a gas problem.
  1117. * sysdeps/unix/sysv/linux/powerpc/pt-vfork.S: Remove.
  1118. * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S: New file.
  1119. * sysdeps/unix/sysv/linux/powerpc/powerpc32/pt-vfork.S: New file.
  1120. * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S: New file.
  1121. * sysdeps/unix/sysv/linux/powerpc/powerpc64/pt-vfork.S: New file.
  1122. * sysdeps/powerpc/tcb-offsets.sym: Add PID.
  1123. * sysdeps/unix/sysv/linux/ia64/pt-vfork.S (__vfork): Don't use
  1124. a local register for saving old PID. Negate PID in parent upon exit.
  1125. * sysdeps/unix/sysv/linux/s390/s390-32/pt-vfork.S: Include
  1126. tcb-offsets.h.
  1127. (__vfork): Negate PID if non-zero and set to INT_MIN if zero
  1128. before syscall, set to the old value in the parent afterwards.
  1129. * sysdeps/unix/sysv/linux/s390/s390-32/vfork.S: New file.
  1130. * sysdeps/unix/sysv/linux/s390/s390-64/pt-vfork.S: Include
  1131. tcb-offsets.h.
  1132. (__vfork): Negate PID if non-zero and set to INT_MIN if zero
  1133. before syscall, set to the old value in the parent afterwards.
  1134. * sysdeps/unix/sysv/linux/s390/s390-64/vfork.S: New file.
  1135. * sysdeps/s390/tcb-offsets.sym: Add PID.
  1136. * sysdeps/unix/sysv/linux/sparc/pt-vfork.S: Remove.
  1137. * sysdeps/unix/sysv/linux/sparc/sparc32/vfork.S: New file.
  1138. * sysdeps/unix/sysv/linux/sparc/sparc32/pt-vfork.S: New file.
  1139. * sysdeps/unix/sysv/linux/sparc/sparc64/vfork.S: New file.
  1140. * sysdeps/unix/sysv/linux/sparc/sparc64/pt-vfork.S: New file.
  1141. * sysdeps/sparc/tcb-offsets.sym: Add PID.
  1142. 2004-03-10 Andreas Schwab <schwab@suse.de>
  1143. * sysdeps/ia64/tcb-offsets.sym: Add PID.
  1144. * sysdeps/unix/sysv/linux/ia64/vfork.S: New file.
  1145. * sysdeps/unix/sysv/linux/ia64/pt-vfork.S: Properly handle PID cache.
  1146. 2004-03-09 Jakub Jelinek <jakub@redhat.com>
  1147. * tst-cancel20.c (do_one_test): Clear in_sh_body first.
  1148. * tst-cancel21.c (do_one_test): Likewise.
  1149. Reported by Gordon Jin <gordon.jin@intel.com>.
  1150. 2004-02-09 Jakub Jelinek <jakub@redhat.com>
  1151. * sysdeps/unix/sysv/linux/i386/vfork.S (SAVE_PID): Negate PID
  1152. if non-zero and set to INT_MIN if zero.
  1153. * sysdeps/unix/sysv/linux/x86_64/vfork.S (SAVE_PID): Likewise.
  1154. * sysdeps/unix/sysv/linux/i386/pt-vfork.S: Include tcb-offsets.h.
  1155. (SAVE_PID, RESTORE_PID): Define.
  1156. (__vfork): Use it.
  1157. * sysdeps/unix/sysv/linux/x86_64/pt-vfork.S: Include tcb-offsets.h.
  1158. Use relative path to avoid including NPTL i386/vfork.S.
  1159. (SAVE_PID, RESTORE_PID): Define.
  1160. * sysdeps/unix/sysv/linux/raise.c: Include limits.h.
  1161. (raise): Handle THREAD_SELF->pid INT_MIN the same as 0.
  1162. * Makefile (tests): Add tst-vfork1, tst-vfork2, tst-vfork1x and
  1163. tst-vfork2x.
  1164. (tests-reverse): Add tst-vfork1x and tst-vfork2x.
  1165. * tst-vfork1.c: New test.
  1166. * tst-vfork2.c: New test.
  1167. * tst-vfork1x.c: New test.
  1168. * tst-vfork2x.c: New test.
  1169. 2004-03-08 Ulrich Drepper <drepper@redhat.com>
  1170. * sysdeps/i386/tcb-offsets.sym: Add PID.
  1171. * sysdeps/x86_64/tcb-offsets.sym: Likewise.
  1172. * sysdeps/unix/sysv/linux/i386/vfork.S: New file.
  1173. * sysdeps/unix/sysv/linux/x86_64/vfork.S: New file.
  1174. 2004-03-08 Steven Munroe <sjmunroe@us.ibm.com>
  1175. * sysdeps/unix/sysv/linux/powerpc/Versions: Remove leading tabs.
  1176. 2004-03-08 H.J. Lu <hongjiu.lu@intel.com>
  1177. * sysdeps/s390/tls.h (INIT_SYSINFO): _dl_sysinfo is now in
  1178. _rtld_global_ro.
  1179. 2004-03-07 Ulrich Drepper <drepper@redhat.com>
  1180. * sysdeps/ia64/tls.h (INIT_SYSINFO): _dl_sysinfo is now in
  1181. _rtld_global_ro.
  1182. * tst-once4.c: Remove unnecessary macro definition.
  1183. * tst-mutex7.c (do_test): Limit thread stack size.
  1184. * tst-once2.c (do_test): Likewise.
  1185. * tst-tls3.c (do_test): Likewise.
  1186. * tst-tls1.c (do_test): Likewise.
  1187. * tst-signal3.c (do_test): Likewise.
  1188. * tst-kill6.c (do_test): Likewise.
  1189. * tst-key4.c (do_test): Likewise.
  1190. * tst-join4.c (do_test): Likewise.
  1191. * tst-fork1.c (do_test): Likewise.
  1192. * tst-context1.c (do_test): Likewise.
  1193. * tst-cond2.c (do_test): Likewise.
  1194. * tst-cond10.c (do_test): Likewise.
  1195. * tst-clock2.c (do_test): Likewise.
  1196. * tst-cancel10.c (do_test): Likewise.
  1197. * tst-basic2.c (do_test): Likewise.
  1198. * tst-barrier4.c (do_test): Likewise.
  1199. 2004-03-05 Ulrich Drepper <drepper@redhat.com>
  1200. * sysdeps/i386/tls.h: Use GLRO instead of GL where appropriate.
  1201. 2004-03-01 Ulrich Drepper <drepper@redhat.com>
  1202. * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S
  1203. (__pthread_cond_timedwait): Optimize wakeup test.
  1204. * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S
  1205. (__pthread_cond_wait): Likewise.
  1206. * sysdeps/pthread/pthread_cond_wait.c (__pthread_cond_wait): Likewise.
  1207. * sysdeps/pthread/pthread_cond_timedwait.c (__pthread_cond_timedwait):
  1208. Likewise.
  1209. 2004-02-29 Ulrich Drepper <drepper@redhat.com>
  1210. * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S
  1211. (__lll_mutex_lock_wait): Optimize a bit more. Just one copy of
  1212. the atomic instruction needed.
  1213. * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S
  1214. (__lll_mutex_lock_wait): Likewise.
  1215. 2004-02-28 Ulrich Drepper <drepper@redhat.com>
  1216. * Makefile (tests): Add tst-cond14 and tst-cond15.
  1217. * tst-cond14.c: New file.
  1218. * tst-cond15.c: New file.
  1219. 2004-02-27 Ulrich Drepper <drepper@redhat.com>
  1220. * sysdeps/pthread/createthread.c (create_thread): Remove use of
  1221. CLONE_STOPPED. We cannot use SIGCONT which means CLONE_STOPPED
  1222. needs to be implemented differently to be useful.
  1223. 2004-02-26 Ulrich Drepper <drepper@redhat.com>
  1224. * pthread_attr_setschedparam.c: Don't test priority against limits
  1225. here. Set ATTR_FLAG_SCHED_SET flag.
  1226. * pthread_attr_setschedpolicy.c: Set ATTR_FLAG_POLICY_SET flag.
  1227. * pthread_create.c (__pthread_create_2_1): Copy scheduling attributes
  1228. from parent thread to child. If attribute is used and scheduling
  1229. parameters are not inherited, copy parameters from attribute or
  1230. compute them. Check priority value.
  1231. * pthread_getschedparam.c: If the parameters aren't known yet get
  1232. them from the kernel.
  1233. * pthread_setschedparam.c: Set ATTR_FLAG_SCHED_SET and
  1234. ATTR_FLAG_POLICY_SET flag for thread.
  1235. * sysdeps/unix/sysv/linux/internaltypes.h: Define ATTR_FLAG_SCHED_SET
  1236. and ATTR_FLAG_POLICY_SET.
  1237. * sysdeps/pthread/createthread.c: Use tgkill if possible.
  1238. * pthread_attr_getstackaddr.c (__pthread_attr_getstackaddr): Don't
  1239. fail if stack address hasn't been set. Just return 0.
  1240. 2004-02-25 Ulrich Drepper <drepper@redhat.com>
  1241. * Makefile (tests-nolibpthread): Add tst-unload. Don't link with
  1242. libpthread for the files in this list.
  1243. (CFLAGS-tst-unload): Removed.
  1244. * tst-unload.c (do_test): Don't use complete path for
  1245. LIBPHREAD_SO.
  1246. * Makefile: Define sonames for tst-tls5mod, tst-_res1mod1, and
  1247. tst-_res1mod2.
  1248. 2004-02-22 Ulrich Drepper <drepper@redhat.com>
  1249. * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S
  1250. (__lll_mutex_lock_wait): Rewrite so that only one locked memory
  1251. operation per round is needed.
  1252. * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S
  1253. (__lll_mutex_lock_wait): Likewise.
  1254. 2004-02-20 Ulrich Drepper <drepper@redhat.com>
  1255. * tst-cancel9.c (cleanup): Don't print to stderr.
  1256. 2004-02-20 Kaz Kojima <kkojima@rr.iij4u.or.jp>
  1257. * sysdeps/sh/jmpbuf-unwind.h (_JMPBUF_UNWINDS_ADJ): Fix variable name.
  1258. 2004-02-20 Jakub Jelinek <jakub@redhat.com>
  1259. * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h
  1260. (__syscall_error_handler2): Call CDISABLE.
  1261. * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h
  1262. (__syscall_error_handler2): Call CDISABLE.
  1263. * sysdeps/pthread/pthread_barrier_wait.c (pthread_barrier_wait):
  1264. Release lock before the loop, don't reacquire it.
  1265. * sysdeps/unix/sysv/linux/ia64/dl-sysdep.h (DL_ARGV_NOT_RELRO): Define.
  1266. 2004-02-19 Andreas Schwab <schwab@suse.de>
  1267. * sysdeps/pthread/pthread_barrier_wait.c (pthread_barrier_wait):
  1268. Fix last change.
  1269. 2004-02-18 Ulrich Drepper <drepper@redhat.com>
  1270. * sysdeps/unix/sysv/linux/i386/i486/pthread_barrier_wait.S
  1271. (pthread_barrier_wait): After wakeup, release lock only when the
  1272. last thread stopped using the barrier object.
  1273. * sysdeps/unix/sysv/linux/x86_64/pthread_barrier_wait.S
  1274. (pthread_barrier_wait): Likewise.
  1275. * sysdeps/pthread/pthread_barrier_wait.c (pthread_barrier_wait):
  1276. Likewise.
  1277. * Makefile (tests): Add tst-barrier4.
  1278. * tst-barrier4.c: New file.
  1279. * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S
  1280. (__pthread_cond_timedwait): Perform timeout test while holding
  1281. internal lock to prevent wakeup race.
  1282. Patch by Dinakar Guniguntala <dgunigun@in.ibm.com>.
  1283. * sysdeps/pthread/pthread_cond_timedwait.c
  1284. (__pthread_cond_timedwait): Likewise.
  1285. * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S
  1286. (__pthread_cond_timedwait): Likewise.
  1287. 2004-02-18 Jakub Jelinek <jakub@redhat.com>
  1288. * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_unlock.S
  1289. (__pthread_rwlock_unlock): Access WRITER as 32-bit value.
  1290. * Makefile (tests): Add tst-rwlock13.
  1291. * tst-rwlock13.c: New test.
  1292. 2004-02-16 Ulrich Drepper <drepper@redhat.com>
  1293. * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S
  1294. (__condvar_tw_cleanup): Little optimization.
  1295. Patch by Dinakar Guniguntala <dgunigun@in.ibm.com>.
  1296. 2004-02-16 Steven Munroe <sjmunroe@us.ibm.com>
  1297. * sysdeps/unix/sysv/linux/powerpc/pt-longjmp.c: Replace libc with
  1298. libpthread as "lib" parameter to SHLIB_COMPAT.
  1299. (__novmx_siglongjmp): Fix typo in function name.
  1300. (__novmx_longjmp): Fix typo in function name.
  1301. 2004-02-13 Ulrich Drepper <drepper@redhat.com>
  1302. * sysdeps/pthread/pthread_cond_wait.c (__pthread_cond_wait): Add a
  1303. __builtin_expect.
  1304. * sysdeps/generic/pt-longjmp.c: Moved to...
  1305. * sysdeps/pthread/pt-longjmp.c: ...here. New file.
  1306. 2004-01-29 Steven Munroe <sjmunroe@us.ibm.com>
  1307. * Makefile (libpthread-routines): Add pt-cleanup.
  1308. * pt-longjmp.c: Removed.
  1309. * pt-cleanup.c: Copied __pthread_cleanup_upto to here. New file.
  1310. * sysdeps/generic/pt-longjmp.c: Copied longjmp to here. New file.
  1311. * sysdeps/unix/sysv/linux/powerpc/Versions: New file.
  1312. Version longjmp, siglongjmp for GLIBC_2.3.4.
  1313. * sysdeps/unix/sysv/linux/powerpc/pt-longjmp.c: New File.
  1314. 2004-02-13 Ulrich Drepper <drepper@redhat.com>
  1315. * sysdeps/pthread/pthread_cond_timedwait.c
  1316. (__pthread_cond_timedwait): Optimize. Drop internal lock earlier.
  1317. Reuse code. Add __builtin_expects.
  1318. * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S
  1319. (__pthread_cond_timedwait): Get internal lock in case timeout has
  1320. passed before the futex syscall.
  1321. * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: Likewise.
  1322. 2004-01-20 Ulrich Drepper <drepper@redhat.com>
  1323. * allocatestack.c: Pretty printing.
  1324. * sysdeps/pthread/createthread.c (create_thread): Don't add
  1325. CLONE_DETACHED bit if it is not necessary.
  1326. 2004-01-16 Ulrich Drepper <drepper@redhat.com>
  1327. * pthread_getattr_np.c: Include ldsodefs.h.
  1328. 2004-01-16 Richard Henderson <rth@redhat.com>
  1329. * allocatestack.c: Don't declare __libc_stack_end.
  1330. * init.c (__pthread_initialize_minimal_internal): Likewise.
  1331. * pthread_getattr_np.c (pthread_getattr_np): Likewise.
  1332. 2004-01-15 Richard Henderson <rth@redhat.com>
  1333. * sysdeps/alpha/tls.h (tcbhead_t): Add private.
  1334. (TLS_INIT_TCB_SIZE, TLS_INIT_TCB_ALIGN, TLS_TCB_SIZE,
  1335. TLS_PRE_TCB_SIZE, TLS_TCB_ALIGN, INSTALL_DTV, INSTALL_NEW_DTV,
  1336. GET_DTV, THREAD_DTV, THREAD_SELF, DB_THREAD_SELF): Match ia64.
  1337. (TLS_TCB_OFFSET, THREAD_ID, NO_TLS_OFFSET): Remove.
  1338. (THREAD_GETMEM, THREAD_GETMEM_NC): Simplify.
  1339. (THREAD_SETMEM, THREAD_SETMEM_NC): Likewise.
  1340. * sysdeps/unix/sysv/linux/alpha/createthread.c (TLS_VALUE): Match ia64.
  1341. 2004-01-14 Ulrich Drepper <drepper@redhat.com>
  1342. * init.c (pthread_functions): Make array const.
  1343. 2004-01-13 Ulrich Drepper <drepper@redhat.com>
  1344. * allocatestack.c (__make_stacks_executable): Change interface.
  1345. Check parameters. Pass parameter on to libc counterpart.
  1346. * pthreadP.h: Change declaration.
  1347. 2004-01-13 Richard Henderson <rth@redhat.com>
  1348. * pthread_attr_setstack.c (__old_pthread_attr_setstack): Use
  1349. prototype form.
  1350. * pthread_attr_setstacksize.c (__old_pthread_attr_setstacksize):
  1351. Likewise.
  1352. * sysdeps/alpha/Makefile: New file.
  1353. * sysdeps/alpha/tcb-offsets.sym: New file.
  1354. * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h (SINGLE_THREAD_P):
  1355. Use MULTIPLE_THREADS_OFFSET to implement !libpthread !libc version.
  1356. * sysdeps/unix/sysv/linux/alpha/lowlevellock.h: Rewrite based
  1357. on powerpc version.
  1358. 2004-01-08 Jakub Jelinek <jakub@redhat.com>
  1359. * Makefile (tests): Add tst-backtrace1.
  1360. * tst-backtrace1.c: New test.
  1361. 2003-12-11 Ulrich Weigand <uweigand@de.ibm.com>
  1362. * sysdeps/alpha/tls.h (DB_THREAD_SELF): Pass bit size of thread
  1363. register as second parameter to the REGISTER macro.
  1364. * sysdeps/ia64/tls.h (DB_THREAD_SELF): Likewise.
  1365. * sysdeps/powerpc/tls.h (DB_THREAD_SELF): Likewise.
  1366. * sysdeps/sh/tls.h (DB_THREAD_SELF): Likewise.
  1367. * sysdeps/sparc/tls.h (DB_THREAD_SELF): Likewise.
  1368. * sysdeps/s390/tls.h (DB_THREAD_SELF): Pass __WORDSIZE as bit size
  1369. of thread register as second parameter to REGISTER macro in 64 case.
  1370. 2004-01-03 Ulrich Drepper <drepper@redhat.com>
  1371. * sysdeps/unix/sysv/linux/Makefile (CFLAGS-getpid.c): Removed.
  1372. (CFLAGS-getpid.o): Defined.
  1373. (CFLAGS-getpid.os): Defined.
  1374. 2003-12-31 Ulrich Drepper <drepper@redhat.com>
  1375. * pthread_getattr_np.c (pthread_getattr_np): Make sure stack info
  1376. returned for main thread does not overlap with any other VMA.
  1377. Patch by Jakub Jelinek.
  1378. 2003-12-29 Jakub Jelinek <jakub@redhat.com>
  1379. * tst-raise1.c: Include stdio.h.
  1380. 2003-12-23 Jakub Jelinek <jakub@redhat.com>
  1381. * sysdeps/unix/sysv/linux/raise.c (raise): Protect pid = selftid
  1382. setting with __ASSUME_TGKILL || defined __NR_tgkill.
  1383. If pid is 0, set it to selftid.
  1384. * sysdeps/unix/sysv/linux/getpid.c (really_getpid): Make inline.
  1385. Don't set self->pid but self->tid. If self->pid == 0 and self->tid
  1386. != 0, return self->tid without doing a syscall.
  1387. * descr.h (struct pthread): Move pid field after tid.
  1388. * Makefile (tests): Add tst-raise1.
  1389. * tst-raise1.c: New file.
  1390. 2003-12-23 Roland McGrath <roland@redhat.com>
  1391. * tst-oddstacklimit.c: New file.
  1392. * Makefile (tests): Add it.
  1393. (tst-oddstacklimit-ENV): New variable.
  1394. * init.c (__pthread_initialize_minimal_internal): Round stack rlimit
  1395. value up to page size for __default_stacksize.
  1396. 2003-12-21 Ulrich Drepper <drepper@redhat.com>
  1397. * Makefile (tests): Add tst-eintr5.
  1398. * tst-eintr5.c: New file.
  1399. * eintr.c (eintr_source): Prevent sending signal to self.
  1400. * tst-eintr2.c (tf1): Improve error message.
  1401. 2003-12-20 Ulrich Drepper <drepper@redhat.com>
  1402. * sysdeps/unix/sysv/linux/Makefile (CFLAGS-getpid.c): Define.
  1403. * sysdeps/unix/sysv/linux/getpid.c: New file.
  1404. * pthread_cancel.c: Add comment explaining use of PID field.
  1405. * sysdeps/unix/sysv/linux/pthread_kill.c: Likewise.
  1406. * pthread_getattr_np.c: Use abs() when comparing PID and TID fields.
  1407. * sysdeps/unix/sysv/linux/fork.c: Negate PID field of parent
  1408. temporarily to signal the field must not be relied on and updated
  1409. by getpid().
  1410. * sysdeps/unix/sysv/linux/pt-raise.c: Handle case where PID is
  1411. temporarily negative.
  1412. * sysdeps/unix/sysv/linux/raise.c: Likewise.
  1413. 2003-12-19 Ulrich Drepper <drepper@redhat.com>
  1414. * eintr.c (setup_eintr): Add new parameter. Pass to thread function.
  1415. (eintr_source): If ARG != NULL, use pthread_kill.
  1416. * tst-eintr1.c: Adjust for this change.
  1417. * tst-eintr2.c: Likewise.
  1418. * Makefile (tests): Add tst-eintr3 and tst-eintr4.
  1419. * tst-eintr3.c: New file.
  1420. * tst-eintr4.c: New file.
  1421. 2003-12-19 Jakub Jelinek <jakub@redhat.com>
  1422. * libc-cancellation.c (__libc_enable_asynccancel): Don't cancel
  1423. if CANCELSTATE_BITMASK is set.
  1424. * sysdeps/pthread/librt-cancellation.c (__librt_enable_asynccancel):
  1425. Likewise.
  1426. * Makefile (tests): Add tst-cancel22 and tst-cancel23.
  1427. (tests-reverse): Add tst-cancel23.
  1428. * tst-cancel22.c: New test.
  1429. * tst-cancel23.c: New test.
  1430. 2003-12-18 Ulrich Drepper <drepper@redhat.com>
  1431. * tst-eintr1.c: Better error messages.
  1432. * Makefile (tests): Add tst-eintr2.
  1433. * tst-eintr2.c: New file.
  1434. 2003-12-18 Jakub Jelinek <jakub@redhat.com>
  1435. * Makefile (tests): Add tst-cancel21 and tst-cancelx21.
  1436. (CFLAGS-tst-cancelx21.c): Set.
  1437. * tst-cancel21.c: New test.
  1438. * tst-cancelx21.c: New test.
  1439. * unwind.c (FRAME_LEFT): Add adj argument. Subtract it from each
  1440. comparison operand.
  1441. (unwind_stop): Use _JMPBUF_CFA_UNWINDS_ADJ macro instead of
  1442. _JMPBUF_CFA_UNWINDS. Adjust FRAME_LEFT invocations.
  1443. * pt-longjmp.c: Include jmpbuf-unwind.h.
  1444. (__pthread_cleanup_upto): Use _JMPBUF_UNWINDS_ADJ macro instead of
  1445. _JMPBUF_UNWINDS. Adjust compared pointers.
  1446. * init.c (__pthread_initialize_minimal_internal): Initialize
  1447. pd->stackblock_size.
  1448. * sysdeps/pthread/jmpbuf-unwind.h: Removed.
  1449. * sysdeps/alpha/jmpbuf-unwind.h: New file.
  1450. * sysdeps/i386/jmpbuf-unwind.h: New file.
  1451. * sysdeps/powerpc/jmpbuf-unwind.h: New file.
  1452. * sysdeps/s390/jmpbuf-unwind.h: New file.
  1453. * sysdeps/sh/jmpbuf-unwind.h: New file.
  1454. * sysdeps/sparc/sparc32/jmpbuf-unwind.h: New file.
  1455. * sysdeps/x86_64/jmpbuf-unwind.h: New file.
  1456. * sysdeps/unix/sysv/linux/ia64/jmpbuf-unwind.h: Include stdint.h.
  1457. (_JMPBUF_CFA_UNWINDS): Remove.
  1458. (_JMPBUF_CFA_UNWINDS_ADJ, _JMPBUF_UNWINDS_ADJ): Define.
  1459. 2003-12-12 Jakub Jelinek <jakub@redhat.com>
  1460. * Makefile (tests): Add tst-cancel20 and tst-cancelx20.
  1461. (CFLAGS-tst-cancelx20.c): Set.
  1462. * tst-cancel20.c: New test.
  1463. * tst-cancelx20.c: New test.
  1464. 2003-12-17 Ulrich Drepper <drepper@redhat.com>
  1465. * init.c (__pthread_initialize_minimal_internal): Don't treat
  1466. architectures with separate register stack special here when
  1467. computing default stack size.
  1468. 2003-12-17 Roland McGrath <roland@redhat.com>
  1469. * Makefile (tst-cancelx7-ARGS): New variable.
  1470. Reportd by Greg Schafer <gschafer@zip.com.au>.
  1471. 2003-12-17 Jakub Jelinek <jakub@redhat.com>
  1472. * Makefile (tests): Add tst-stack3. Depend on $(objpfx)tst-stack3-mem.
  1473. (generated): Add tst-stack3.mtrace and tst-stack3-mem.
  1474. (tst-stack3-ENV): Set.
  1475. ($(objpfx)tst-stack3-mem): New.
  1476. * tst-stack3.c: New test.
  1477. 2003-12-10 David Mosberger <davidm@hpl.hp.com>
  1478. * sysdeps/unix/sysv/linux/ia64/pt-initfini.c (_init_EPILOG_BEGINS):
  1479. Add unwind directives. Drop unused .regstk directive.
  1480. (_fini_EPILOG_BEGINS): Add unwind directives.
  1481. 2003-12-11 Ulrich Drepper <drepper@redhat.com>
  1482. * sysdeps/unix/sysv/linux/i386/lowlevellock.h (lll_futex_wait):
  1483. Assume parameter is a pointer.
  1484. (lll_futex_wake): Likewise.
  1485. * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (lll_futex_wait):
  1486. Likewise.
  1487. (lll_futex_wake): Likewise.
  1488. Reported by Boris Hu.
  1489. * sysdeps/unix/sysv/linux/unregister-atfork.c
  1490. (__unregister_atfork): Pass pointer to refcntr to lll_futex_wait.
  1491. * sysdeps/unix/sysv/linux/sem_wait.c (__new_sem_wait): Simplify a bit.
  1492. 2003-12-10 Ulrich Drepper <drepper@redhat.com>
  1493. * sysdeps/pthread/bits/libc-lock.h (__rtld_lock_initialize): Define.
  1494. * sysdeps/unix/sysv/linux/fork.c (__libc_fork): Call
  1495. __rtld_lock_initialize for ld.so lock.
  1496. Patch in part by Adam Li <adam.li@intel.com>.
  1497. 2003-12-02 David Mosberger <davidm@hpl.hp.com>
  1498. * Makefile (link-libc-static): Remove -lgcc_eh---it's already mentioned
  1499. in $(gnulib). Also, remove stale comment.
  1500. 2003-11-12 David Mosberger <davidm@hpl.hp.com>
  1501. * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (PSEUDO): Take
  1502. advantage of new syscall stub and optimize accordingly.
  1503. * sysdeps/unix/sysv/linux/ia64/lowlevellock.h (__NR_futex): Rename
  1504. from SYS_futex, to match expectations of
  1505. sysdep.h:DO_INLINE_SYSCALL.
  1506. (lll_futex_clobbers): Remove.
  1507. (lll_futex_timed_wait): Rewrite in terms of DO_INLINE_SYSCALL.
  1508. (lll_futex_wake): Likewise.
  1509. (lll_futex_requeue): Likewise.
  1510. (__lll_mutex_trylock): Rewrite to a macro, so we can include this
  1511. file before DO_INLINE_SYSCALL is defined (proposed by Jakub
  1512. Jelinek).
  1513. (__lll_mutex_lock): Likewise.
  1514. (__lll_mutex_cond_lock): Likewise.
  1515. (__lll_mutex_timed_lock): Likewise.
  1516. (__lll_mutex_unlock): Likewise.
  1517. (__lll_mutex_unlock_force): Likewise.
  1518. * sysdeps/ia64/tls.h: Move declaration of __thread_self up so it
  1519. comes before the include of <sysdep.h>.
  1520. (THREAD_SELF_SYSINFO): New macro.
  1521. (THREAD_SYSINFO): Likewise.
  1522. (INIT_SYSINFO): New macro.
  1523. (TLS_INIT_TP): Call INIT_SYSINFO.
  1524. * sysdeps/ia64/tcb-offsets.sym: Add SYSINFO_OFFSET.
  1525. * sysdeps/pthread/createthread.c (create_thread): Use
  1526. THREAD_SELF_SYSINFO and THREAD_SYSINFO instead of open code.
  1527. * allocatestack.c (allocate_stack): Use THREAD_SYSINFO and
  1528. THREAD_SELF_SYSINFO instead of open code.
  1529. * sysdeps/i386/tls.h (THREAD_SELF_SYSINFO): New macro.
  1530. (THREAD_SYSINFO): Likewise.
  1531. * sysdeps/unix/sysv/linux/ia64/dl-sysdep.h: New file.
  1532. * sysdeps/unix/sysv/linux/ia64/pt-vfork.S: Work around gas problem.
  1533. 2003-12-06 Ulrich Drepper <drepper@redhat.com>
  1534. * sysdeps/unix/sysv/linux/ia64/pt-initfini.c: Use .init_array
  1535. instead of .init. Patch by David Mosberger.
  1536. 2003-11-30 Thorsten Kukuk <kukuk@suse.de>
  1537. * sysdeps/pthread/configure.in: Remove broken declaration in C
  1538. cleanup handling check.
  1539. 2003-11-30 Andreas Jaeger <aj@suse.de>
  1540. * Makefile (CFLAGS-pt-initfini.s): Add $(fno_unit_at_a_time).
  1541. * sysdeps/unix/sysv/linux/x86_64/Makefile (CFLAGS-pt-initfini.s):
  1542. Likewise.
  1543. 2003-11-27 Jakub Jelinek <jakub@redhat.com>
  1544. * sysdeps/unix/sysv/linux/internaltypes.h (ATTR_FLAG_OLDATTR): Define.
  1545. * pthread_attr_destroy.c: Include shlib-compat.h.
  1546. (__pthread_attr_destroy): Return immediately if ATTR_FLAG_OLDATTR
  1547. is set in iattr->flags.
  1548. * pthread_attr_init.c (__pthread_attr_init_2_0): Set ATTR_FLAG_OLDATTR.
  1549. 2003-11-21 Jakub Jelinek <jakub@redhat.com>
  1550. * Makefile (distribute): Add tst-cleanup4aux.c.
  1551. * tst-cond12.c (prepare): Add prototype. Move after test-skeleton.c
  1552. include.
  1553. 2003-11-21 Ulrich Drepper <drepper@redhat.com>
  1554. * tst-cond12.c (do_test): If USE_COND_SIGNAL is defined, use
  1555. pthread_cond_signal.
  1556. * sysdeps/pthread/pthread_cond_wait.c (__pthread_cond_wait): Don't
  1557. store mutex address if the current value is ~0l.
  1558. * sysdeps/pthread/pthread_cond_timedwait.c
  1559. (__pthread_cond_timedwait): Likewise.
  1560. * sysdeps/pthread/pthread_cond_broadcast.c
  1561. (__pthread_cond_broadcast): Don't use requeue for pshared
  1562. condvars.
  1563. * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S
  1564. (__pthread_cond_wait): Don't store mutex address if the current
  1565. value is ~0l.
  1566. * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S
  1567. (__pthread_cond_timedwait): Likewise.
  1568. * sysdeps/unix/sysv/linux/x86_64/pthread_cond_broadcast.S
  1569. (__pthread_cond_broadcast): Don't use requeue for pshared
  1570. condvars.
  1571. * pthread_cond_init.c (__pthread_cond_init): Initialize __mutex
  1572. element with ~0l for pshared condvars, with NULL otherwise.
  1573. * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S
  1574. (__pthread_cond_wait): Don't store mutex address if the current
  1575. value is ~0l.
  1576. * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S
  1577. (__pthread_cond_timedwait): Likewise.
  1578. * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_broadcast.S
  1579. (__pthread_cond_broadcast): Don't use requeue for pshared
  1580. condvars.
  1581. * Makefile: Add rules to build and run tst-cond12 and tst-cond13.
  1582. * tst-cond12.c: New file.
  1583. * tst-cond13.c: New file.
  1584. 2003-11-17 Ulrich Drepper <drepper@redhat.com>
  1585. * sysdeps/pthread/configure.in: Make missing forced unwind support
  1586. fatal.
  1587. 2003-11-11 Ulrich Drepper <drepper@redhat.com>
  1588. * pthreadP.h: Don't declare __pthread_unwind as weak inside libpthread.
  1589. 2003-11-06 Ulrich Drepper <drepper@redhat.com>
  1590. * Makefile: Add magic to clean up correctly.
  1591. 2003-11-05 Jakub Jelinek <jakub@redhat.com>
  1592. * unwind.c (FRAME_LEFT): Define.
  1593. (unwind_stop): Handle old style cleanups here.
  1594. (__pthread_unwind): Handle old style cleanups only if
  1595. !HAVE_FORCED_UNWIND.
  1596. * Makefile (tests): Add tst-cleanup4 and tst-cleanupx4.
  1597. (CFLAGS-tst-cleanupx4.c): Add -fexceptions.
  1598. ($(objpfx)tst-cleanup4): Depend on $(objpfx)tst-cleanup4aux.o.
  1599. ($(objpfx)tst-cleanupx4): Likewise.
  1600. * tst-cleanup4.c: New test.
  1601. * tst-cleanup4aux.c: New.
  1602. * tst-cleanupx4.c: New test.
  1603. 2003-11-04 Ulrich Drepper <drepper@redhat.com>
  1604. * sysdeps/pthread/bits/stdio-lock.h: Use lll_*lock instead of
  1605. lll_mutex_*lock macros to skip atomic operations on some archs.
  1606. 2003-11-03 Ulrich Drepper <drepper@redhat.com>
  1607. * sysdeps/pthread/tst-timer.c (main): Initialize
  1608. sigev2.sigev_value as well.
  1609. 2003-10-15 Roland McGrath <roland@redhat.com>
  1610. * sysdeps/pthread/configure.in: Barf if visibility attribute support
  1611. is missing.
  1612. * sysdeps/pthread/configure: Regenerated.
  1613. 2003-10-09 Kaz Kojima <kkojima@rr.iij4u.or.jp>
  1614. * sysdeps/unix/sysv/linux/sh/lowlevellock.h: Completely revamp the
  1615. locking macros. No distinction between normal and mutex locking
  1616. anymore.
  1617. * sysdeps/unix/sysv/linux/sh/lowlevellock.S: Rewrite mutex locking.
  1618. Merge bits from lowlevelmutex.S we still need.
  1619. * sysdeps/unix/sysv/linux/sh/libc-lowlevelmutex.S: Remove.
  1620. * sysdeps/unix/sysv/linux/sh/lowlevelmutex.S: Likewise.
  1621. * sysdeps/unix/sysv/linux/sh/not-cancel.h: New file.
  1622. * sysdeps/unix/sysv/linux/sh/pthread_barrier_wait.S: Adjust for
  1623. new mutex implementation.
  1624. * sysdeps/unix/sysv/linux/sh/pthread_cond_broadcast.S: Likewise.
  1625. * sysdeps/unix/sysv/linux/sh/pthread_cond_signal.S: Likewise.
  1626. * sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S: Likewise.
  1627. * sysdeps/unix/sysv/linux/sh/pthread_cond_wait.S: Likewise.
  1628. * sysdeps/unix/sysv/linux/sh/pthread_rwlock_rdlock.S: Likewise.
  1629. * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedrdlock.S: Likewise.
  1630. * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedwrlock.S: Likewise.
  1631. * sysdeps/unix/sysv/linux/sh/pthread_rwlock_unlock.S: Likewise.
  1632. * sysdeps/unix/sysv/linux/sh/pthread_rwlock_wrlock.S: Likewise.
  1633. * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h (PSEUDO): Also defined
  1634. symbol for entry point to avoid cancellation.
  1635. 2003-10-07 Jakub Jelinek <jakub@redhat.com>
  1636. * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: Backout 2003-10-02
  1637. changes.
  1638. (SAVE_OLDTYPE_0): Fix a typo.
  1639. 2003-10-03 Ulrich Drepper <drepper@redhat.com>
  1640. * sysdeps/unix/sysv/linux/i386/pthread_once.S (__pthread_once):
  1641. Check __sigsetjmp return value. Reported by Daniel Jacobowitz.
  1642. 2003-10-02 Ulrich Drepper <drepper@redhat.com>
  1643. * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (DOCARGS_1): Use
  1644. correct offset.
  1645. 2003-10-02 Jakub Jelinek <jakub@redhat.com>
  1646. * Makefile (tests): Add tst-cancel19.
  1647. * tst-cancel19.c: New test.
  1648. 2003-10-02 Ulrich Drepper <drepper@redhat.com>
  1649. * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: Fix saving and
  1650. restoring of the old cancellation type.
  1651. 2003-09-30 Jakub Jelinek <jakub@redhat.com>
  1652. * sysdeps/pthread/malloc-machine.h: Remove misleading comment.
  1653. 2003-09-27 Wolfram Gloger <wg@malloc.de>
  1654. * sysdeps/pthread/malloc-machine.h: New file
  1655. 2003-09-24 Roland McGrath <roland@redhat.com>
  1656. * allocatestack.c (__make_stacks_executable): Don't ignore return
  1657. value from _dl_make_stack_executable.
  1658. 2003-09-24 Ulrich Drepper <drepper@redhat.com>
  1659. * allocatestack.c (__make_stacks_executable): Also change
  1660. permission of the currently unused stacks.
  1661. * allocatestack.c (change_stack_perm): Split out from
  1662. __make_stacks_executable.
  1663. (allocate_stack): If the required permission changed between the time
  1664. we started preparing the stack and queueing it, change the permission.
  1665. (__make_stacks_executable): Call change_stack_perm.
  1666. * Makefile: Build tst-execstack-mod locally.
  1667. * tst-execstack-mod.c: New file.
  1668. 2003-09-23 Jakub Jelinek <jakub@redhat.com>
  1669. * Makefile (tests): Only add tst-execstack if have-z-execstack is yes.
  1670. 2003-09-23 Roland McGrath <roland@redhat.com>
  1671. * tst-execstack.c: New file.
  1672. * Makefile (tests): Add it.
  1673. ($(objpfx)tst-execstack, $(objpfx)tst-execstack.out): New targets.
  1674. (LDFLAGS-tst-execstack): New variable.
  1675. * allocatestack.c (allocate_stack): Use GL(dl_stack_flags) to decide
  1676. whether to use PROT_EXEC for stack mmap.
  1677. (__make_stacks_executable): New function.
  1678. * pthreadP.h: Declare it.
  1679. * init.c (__pthread_initialize_minimal_internal): Set
  1680. GL(dl_make_stack_executable_hook) to that.
  1681. 2003-09-22 Ulrich Drepper <drepper@redhat.com>
  1682. * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Adjust for latest
  1683. recommendation from AMD re avoidance of lock prefix.
  1684. 2003-09-22 Jakub Jelinek <jakub@redhat.com>
  1685. * sysdeps/unix/sysv/linux/lowlevellock.c (__lll_timedlock_wait): Use
  1686. lll_futex_timed_wait instead of lll_futex_wait.
  1687. * sysdeps/unix/sysv/linux/s390/lowlevellock.c: Removed.
  1688. * sysdeps/unix/sysv/linux/s390/lowlevelmutex.c: Removed.
  1689. * sysdeps/unix/sysv/linux/s390/libc-lowlevellock.c: Removed.
  1690. * sysdeps/unix/sysv/linux/s390/libc-lowlevelmutex.c: Removed.
  1691. * sysdeps/unix/sysv/linux/s390/sem_trywait.c: Removed.
  1692. * sysdeps/unix/sysv/linux/s390/sem_wait.c: Removed.
  1693. * sysdeps/unix/sysv/linux/s390/sem_post.c: Removed.
  1694. * sysdeps/unix/sysv/linux/s390/sem_timedwait.c: Removed.
  1695. * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Include atomic.h.
  1696. Completely revamp the locking macros. No distinction between
  1697. normal and mutex locking anymore.
  1698. * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Likewise.
  1699. * sysdeps/unix/sysv/linux/ia64/lowlevellock.h (__lll_lock_wait,
  1700. __lll_lock_timedwait): Fix prototypes.
  1701. * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h (__lll_lock_wait,
  1702. __lll_lock_timedwait): Likewise.
  1703. (lll_mutex_lock, lll_mutex_cond_lock): Use _val instead of _bool
  1704. macros, add __builtin_expect.
  1705. (lll_mutex_timedlock): Likewise. Fix return value.
  1706. * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevelmutex.S: Removed.
  1707. * sysdeps/unix/sysv/linux/i386/i586/libc-lowlevelmutex.S: Removed.
  1708. * sysdeps/unix/sysv/linux/i386/i586/lowlevelmutex.S: Removed.
  1709. * sysdeps/unix/sysv/linux/i386/i686/libc-lowlevelmutex.S: Removed.
  1710. * sysdeps/unix/sysv/linux/i386/i686/lowlevelmutex.S: Removed.
  1711. * sysdeps/unix/sysv/linux/x86_64/libc-lowlevelmutex.S: Removed.
  1712. * sysdeps/unix/sysv/linux/lowlevelmutex.c: Removed.
  1713. * sysdeps/unix/sysv/linux/libc-lowlevelmutex.c: Removed.
  1714. 2003-09-22 Ulrich Drepper <drepper@redhat.com>
  1715. * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S
  1716. (__lll_mutex_lock_wait): Minor optimization to avoid one atomic
  1717. operation if possible.
  1718. * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Don't play tricks
  1719. like jumping over the lock prefix.
  1720. 2003-09-21 Ulrich Drepper <drepper@redhat.com>
  1721. * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Completely revamp the
  1722. locking macros. No distinction between normal and mutex locking
  1723. anymore.
  1724. * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
  1725. * sysdeps/unix/sysv/linux/ia64/lowlevellock.h: Likewise.
  1726. * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Likewise.
  1727. * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S: Rewrite mutex
  1728. locking. Merge bits from lowlevelmutex.S we still need.
  1729. * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
  1730. * sysdeps/unix/sysv/linux/lowlevellock.c: Likewise.
  1731. * sysdeps/unix/sysv/linux/i386/i486/lowlevelmutex.S: Removed.
  1732. * sysdeps/unix/sysv/linux/x86_64/lowlevelmutex.S: Removed.
  1733. * Makefile (routines): Remove libc-lowlevelmutex.
  1734. (libpthread-rountines): Remove lowlevelmutex.
  1735. * sysdeps/unix/sysv/linux/i386/i486/pthread_barrier_wait.S: Adjust
  1736. for new mutex implementation.
  1737. * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_broadcast.S: Likewise.
  1738. * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: Likewise.
  1739. * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Likewise.
  1740. * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_rdlock.S: Likewise.
  1741. * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S:
  1742. Likewise.
  1743. * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S:
  1744. Likewise.
  1745. * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_unlock.S: Likewise.
  1746. * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_wrlock.S: Likewise.
  1747. * sysdeps/unix/sysv/linux/x86_64/pthread_barrier_wait.S: Likewise
  1748. * sysdeps/unix/sysv/linux/x86_64/pthread_cond_broadcast.S: Likewise.
  1749. * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: Likewise.
  1750. * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: Likewise.
  1751. * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_rdlock.S: Likewise.
  1752. * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedrdlock.S:
  1753. Likewise.
  1754. * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedwrlock.S:
  1755. Likewise.
  1756. * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_unlock.S: Likewise.
  1757. * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_wrlock.S: Likewise.
  1758. * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S: Likewise.
  1759. Don't use requeue.
  1760. * sysdeps/unix/sysv/linux/x86_64/pthread_cond_signal.S: Likewise.
  1761. * sysdeps/pthread/pthread_cond_signal.c: Don't use requeue.
  1762. 2003-09-20 Ulrich Drepper <drepper@redhat.com>
  1763. * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Don't match memory
  1764. in parameters of asm with output parameters.
  1765. * pthread_mutex_unlock.c (__pthread_mutex_unlock_usercnt): Change
  1766. type of DECR parameter to int.
  1767. * pthreadP.h: Adjust prototype of __pthread_mutex_unlock_usercnt.
  1768. 2003-09-18 Jakub Jelinek <jakub@redhat.com>
  1769. * tst-attr3.c (tf, do_test): Print stack start/end/size and
  1770. guardsize for each thread.
  1771. 2003-09-17 Jakub Jelinek <jakub@redhat.com>
  1772. * sysdeps/pthread/pthread.h (pthread_getattr_np): Clarify usage.
  1773. * sysdeps/unix/sysv/linux/pthread_attr_setaffinity.c
  1774. (pthread_attr_setaffinity_np): Handle cpuset == NULL.
  1775. * sysdeps/unix/sysv/linux/pthread_attr_getaffinity.c
  1776. (pthread_attr_getaffinity_np): Don't segfault if iattr->cpuset is
  1777. NULL.
  1778. * pthread_getattr_np.c: Set cpuset using pthread_getaffinity_np.
  1779. * pthreadP.h (pthread_getaffinity_np): Add hidden_proto.
  1780. * sysdeps/unix/sysv/linux/pthread_getaffinity.c
  1781. (pthread_getaffinity_np): Add hidden_def.
  1782. * Makefile (tests): Add tst-attr3.
  1783. * tst-attr3.c: New test.
  1784. * sysdeps/i386/Makefile (CFLAGS-tst-align.c): Remove.
  1785. 2003-09-15 Jakub Jelinek <jakub@redhat.com>
  1786. * sysdeps/i386/Makefile (CFLAGS-pthread_create.c,
  1787. CFLAGS-tst-align.c): Add -mpreferred-stack-boundary=4.
  1788. 2003-09-17 Jakub Jelinek <jakub@redhat.com>
  1789. * Makefile (CFLAGS-tst-align.c): Add $(stack-align-test-flags).
  1790. * tst-align.c: Include tst-stack-align.h.
  1791. (tf, do_test): Use TEST_STACK_ALIGN macro.
  1792. 2003-09-17 Ulrich Drepper <drepper@redhat.com>
  1793. * pthread_attr_init.c (__pthread_attr_init_2_0): Remove unused
  1794. variable.
  1795. 2003-09-16 Ulrich Drepper <drepper@redhat.com>
  1796. * pthread_getattr_np.c (pthread_getattr_np): Correctly fill in the
  1797. stack-related values for the initial thread.
  1798. 2003-09-15 Jakub Jelinek <jakub@redhat.com>
  1799. * Makefile (CFLAGS-pthread_once.c): Add $(uses-callbacks).
  1800. 2003-09-11 Ulrich Drepper <drepper@redhat.com>
  1801. * pthread_mutex_lock.c: Minor code rearrangements.
  1802. 2003-09-05 Roland McGrath <roland@redhat.com>
  1803. * pthread_create.c (__pthread_pthread_sizeof_descr): Removed.
  1804. Instead, include ../nptl_db/db_info.c to do its magic.
  1805. * pthread_key_create.c (__pthread_pthread_keys_max): Removed.
  1806. (__pthread_pthread_key_2ndlevel_size): Likewise.
  1807. * sysdeps/alpha/tls.h (DB_THREAD_SELF): New macro.
  1808. * sysdeps/i386/tls.h (DB_THREAD_SELF): New macro.
  1809. * sysdeps/ia64/tls.h (DB_THREAD_SELF): New macro.
  1810. * sysdeps/powerpc/tls.h (DB_THREAD_SELF): New macro.
  1811. * sysdeps/s390/tls.h (DB_THREAD_SELF): New macro.
  1812. * sysdeps/sh/tls.h (DB_THREAD_SELF): New macro.
  1813. * sysdeps/sparc/tls.h (DB_THREAD_SELF): New macro.
  1814. * sysdeps/x86_64/tls.h (DB_THREAD_SELF): New macro.
  1815. * sysdeps/alpha/td_ta_map_lwp2thr.c: File removed.
  1816. * sysdeps/generic/td_ta_map_lwp2thr.c: File removed.
  1817. * sysdeps/i386/td_ta_map_lwp2thr.c: File removed.
  1818. * sysdeps/ia64/td_ta_map_lwp2thr.c: File removed.
  1819. * sysdeps/powerpc/td_ta_map_lwp2thr.c: File removed.
  1820. * sysdeps/s390/td_ta_map_lwp2thr.c: File removed.
  1821. * sysdeps/sh/td_ta_map_lwp2thr.c: File removed.
  1822. * sysdeps/sparc/td_ta_map_lwp2thr.c: File removed.
  1823. * sysdeps/x86_64/td_ta_map_lwp2thr.c: File removed.
  1824. 2003-09-08 Ulrich Drepper <drepper@redhat.com>
  1825. * sysdeps/unix/sysv/linux/x86_64/bits/pthreadtypes.h: Change type
  1826. of pthread_t to be compatible with LT.
  1827. * sysdeps/unix/sysv/linux/sparc/bits/pthreadtypes.h: Likewise.
  1828. * sysdeps/unix/sysv/linux/sh/bits/pthreadtypes.h: Likewise.
  1829. * sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h: Likewise.
  1830. * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: Likewise.
  1831. * sysdeps/unix/sysv/linux/alpha/bits/pthreadtypes.h: Likewise.
  1832. * sysdeps/unix/sysv/linux/ia64/bits/pthreadtypes.h: Likewise.
  1833. * sysdeps/unix/sysv/linux/i386/bits/pthreadtypes.h: Likewise.
  1834. 2003-09-04 Ulrich Drepper <drepper@redhat.com>
  1835. * sysdeps/unix/sysv/linux/i386/not-cancel.h (fcntl_not_cancel): Define.
  1836. 2003-09-04 Jakub Jelinek <jakub@redhat.com>
  1837. * unwind-forcedunwind.c: Move to...
  1838. * sysdeps/pthread/unwind-forcedunwind.c: ...here.
  1839. (pthread_cancel_init): Use ARCH_CANCEL_INIT if defined.
  1840. * sysdeps/pthread/jmpbuf-unwind.h: New file.
  1841. * sysdeps/unix/sysv/linux/ia64/unwind-forcedunwind.c: New file.
  1842. * sysdeps/unix/sysv/linux/ia64/jmpbuf-unwind.h: New file.
  1843. * unwind.c: Include jmpbuf-unwind.h.
  1844. (unwind_stop): Use _JMPBUF_CFA_UNWINDS macro.
  1845. 2003-09-02 Jakub Jelinek <jakub@redhat.com>
  1846. * sysdeps/unix/sysv/linux/ia64/bits/local_lim.h: New file.
  1847. * sysdeps/unix/sysv/linux/ia64/Versions (libpthread): Export
  1848. pthread_attr_setstack and pthread_attr_setstacksize @@GLIBC_2.3.3.
  1849. * sysdeps/unix/sysv/linux/alpha/bits/local_lim.h: New file.
  1850. * sysdeps/unix/sysv/linux/alpha/Versions: New file.
  1851. * sysdeps/unix/sysv/linux/sparc/bits/local_lim.h: New file.
  1852. * sysdeps/unix/sysv/linux/sparc/Versions: New file.
  1853. * pthread_attr_setstack.c (__old_pthread_attr_setstack): New function.
  1854. (pthread_attr_setstack): If PTHREAD_STACK_MIN != 16384, export
  1855. as @@GLIBC_2.3.2 and also export compatibility @GLIBC_2.2.
  1856. * pthread_attr_setstacksize.c (__old_pthread_attr_setstacksize): New
  1857. function.
  1858. (pthread_attr_setstacksize): If PTHREAD_STACK_MIN != 16384, export
  1859. as @@GLIBC_2.3.2 and also export compatibility @GLIBC_2.1.
  1860. * Makefile (tests): Add tst-stack2.
  1861. * tst-stack2.c: New test.
  1862. * tst-stack1.c: Include limits.h and sys/param.h.
  1863. (do_test): Set size to MAX (4 * getpagesize (), PTHREAD_STACK_MIN).
  1864. * pthread_condattr_setpshared.c: Include errno.h.
  1865. (pthread_condattr_setpshared): Return EINVAL if pshared
  1866. is neither PTHREAD_PROCESS_PRIVATE nor PTHREAD_PROCESS_SHARED.
  1867. * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h (PSEUDO): Also
  1868. defined symbol for entry point to avoid cancellation.
  1869. * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h (PSEUDO):
  1870. Likewise.
  1871. * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h (PSEUDO):
  1872. Likewise.
  1873. * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h (PSEUDO):
  1874. Likewise.
  1875. * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h (PSEUDO):
  1876. Likewise.
  1877. * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h (PSEUDO):
  1878. Likewise.
  1879. * sysdeps/unix/sysv/linux/i386/not-cancel.h (__open_nocancel,
  1880. __close_nocancel, __read_nocancel, __write_nocancel,
  1881. __waitpid_nocancel): Add attribute_hidden. If not in libc.so,
  1882. libpthread.so or librt.so, define to corresponding function
  1883. without _nocancel suffix.
  1884. * sysdeps/unix/sysv/linux/s390/not-cancel.h: New file.
  1885. * sysdeps/unix/sysv/linux/powerpc/not-cancel.h: New file.
  1886. * sysdeps/unix/sysv/linux/sparc/not-cancel.h: New file.
  1887. * sysdeps/unix/sysv/linux/x86_64/not-cancel.h: Fix a typo.
  1888. 2003-09-02 Ulrich Drepper <drepper@redhat.com>
  1889. * sysdeps/unix/sysv/linux/i386/not-cancel.h: New file.
  1890. * sysdeps/unix/sysv/linux/x86_64/not-cancel.h: New file.
  1891. * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Make sure the code
  1892. in subsections has a symbol associated with it.
  1893. * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (PSEUDO): Also
  1894. defined symbol for entry point to avoid cancellation.
  1895. * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h (PSEUDO): Likewise.
  1896. 2003-09-01 Jakub Jelinek <jakub@redhat.com>
  1897. * Makefile (tests): Add tst-tls5.
  1898. (module-names): Add tst-tls5mod{,a,b,c,d,e,f}.
  1899. ($(objpfx)tst-tls5mod{,a,b,c,d,e,f}.so-no-z-defs): Set to yes.
  1900. ($(objpfx)tst-tls5): New.
  1901. ($(objpfx)tst-tls6.out): Likewise.
  1902. (tests): Depend on $(objpfx)tst-tls6.out.
  1903. * tst-tls3.c: Include stdint.h and pthreaddef.h.
  1904. (do_test): Check pthread_self () return value alignment.
  1905. * tst-tls3mod.c: Include stdint.h and pthreaddef.h.
  1906. (tf): Check pthread_self () return value alignment.
  1907. * tst-tls5.c: New test.
  1908. * tst-tls5.h: New.
  1909. * tst-tls5mod.c: New.
  1910. * tst-tls5moda.c: New.
  1911. * tst-tls5modb.c: New.
  1912. * tst-tls5modc.c: New.
  1913. * tst-tls5modd.c: New.
  1914. * tst-tls5mode.c: New.
  1915. * tst-tls5modf.c: New.
  1916. * tst-tls6.sh: New test.
  1917. * sysdeps/pthread/pthread-functions.h (struct pthread_functions): Add
  1918. ptr___pthread_cond_timedwait and ptr___pthread_cond_timedwait_2_0.
  1919. * init.c (pthread_functions): Initialize them.
  1920. * forward.c (pthread_cond_timedwait@GLIBC_2.0,
  1921. pthread_cond_timedwait@@GLIBC_2.3.2): New forwards.
  1922. * Versions (libc): Export pthread_cond_timedwait@GLIBC_2.0,
  1923. pthread_cond_timedwait@@GLIBC_2.3.2.
  1924. 2003-09-01 Jakub Jelinek <jakub@redhat.com>
  1925. * sysdeps/unix/sysv/linux/alpha/timer_create.c: New file.
  1926. * sysdeps/unix/sysv/linux/alpha/timer_delete.c: New file.
  1927. * sysdeps/unix/sysv/linux/alpha/timer_getoverr.c: New file.
  1928. * sysdeps/unix/sysv/linux/alpha/timer_gettime.c: New file.
  1929. * sysdeps/unix/sysv/linux/alpha/timer_settime.c: New file.
  1930. * sysdeps/unix/sysv/linux/alpha/Versions: New file.
  1931. * sysdeps/unix/sysv/linux/alpha/aio_cancel.c: New file.
  1932. * sysdeps/unix/sysv/linux/ia64/bits/posix_opt.h: Define
  1933. _POSIX_THREAD_PRIORITY_SCHEDULING.
  1934. * sysdeps/unix/sysv/linux/x86_64/bits/posix_opt.h: Likewise.
  1935. 2003-08-31 Ulrich Drepper <drepper@redhat.com>
  1936. * sysdeps/pthread/bits/stdio-lock.h (_IO_acquire_lock): Avoid
  1937. nested function, use static inline function from libio.h.
  1938. Code by Richard Henderson.
  1939. * sysdeps/pthread/bits/libc-lock.h: Mark pthread_setcancelstate as
  1940. weak.
  1941. 2003-08-30 Jakub Jelinek <jakub@redhat.com>
  1942. * sysdeps/unix/sysv/linux/sparc/sparc64/Versions: New file.
  1943. * sysdeps/unix/sysv/linux/sparc/sparc64/timer_create.c: New file.
  1944. * sysdeps/unix/sysv/linux/sparc/sparc64/timer_delete.c: New file.
  1945. * sysdeps/unix/sysv/linux/sparc/sparc64/timer_getoverr.c: New file.
  1946. * sysdeps/unix/sysv/linux/sparc/sparc64/timer_gettime.c: New file.
  1947. * sysdeps/unix/sysv/linux/sparc/sparc64/timer_settime.c: New file.
  1948. * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: New file.
  1949. * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: New file.
  1950. * sysdeps/unix/sysv/linux/sparc/bits/pthreadtypes.h: New file.
  1951. * sysdeps/unix/sysv/linux/sparc/bits/semaphore.h: New file.
  1952. * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: New file.
  1953. * sysdeps/unix/sysv/linux/sparc/pthread_once.c: New file.
  1954. * sysdeps/unix/sysv/linux/sparc/pt-vfork.S: New file.
  1955. * sysdeps/unix/sysv/linux/sparc/fork.c: New file.
  1956. * sysdeps/unix/sysv/linux/sparc/aio_cancel.c: New file.
  1957. * sysdeps/sparc/sparc32/sparcv9/pthread_spin_lock.c: New file.
  1958. * sysdeps/sparc/sparc32/sparcv9/pthread_spin_trylock.c: New file.
  1959. * sysdeps/sparc/sparc32/sparcv9/pthread_spin_unlock.c: New file.
  1960. * sysdeps/sparc/sparc32/pthread_spin_lock.c: New file.
  1961. * sysdeps/sparc/sparc32/pthread_spin_trylock.c: New file.
  1962. * sysdeps/sparc/sparc32/pthreaddef.h: New file.
  1963. * sysdeps/sparc/sparc64/pthread_spin_lock.c: New file.
  1964. * sysdeps/sparc/sparc64/pthread_spin_trylock.c: New file.
  1965. * sysdeps/sparc/sparc64/pthread_spin_unlock.c: New file.
  1966. * sysdeps/sparc/sparc64/pthreaddef.h: New file.
  1967. * sysdeps/sparc/tls.h: New file.
  1968. * sysdeps/sparc/tcb-offsets.sym: New file.
  1969. * sysdeps/sparc/Makefile: New file.
  1970. * sysdeps/sparc/td_ta_map_lwp2thr.c: New file.
  1971. * init.c [__sparc__] (__NR_set_tid_address): Define.
  1972. 2003-08-29 Jakub Jelinek <jakub@redhat.com>
  1973. * sysdeps/pthread/bits/stdio-lock.h (_IO_acquire_lock,
  1974. _IO_release_lock): Define.
  1975. 2003-08-29 Jakub Jelinek <jakuB@redhat.com>
  1976. * tst-cancel4.c (tf_sigwait, tf_sigwaitinfo, tf_sigtimedwait): Add
  1977. sigemptyset before sigaddset. Reported by jreiser@BitWagon.com.
  1978. 2003-08-27 Ulrich Drepper <drepper@redhat.com>
  1979. * sysdeps/pthread/pthread.h (pthread_exit): Remove __THROW.
  1980. (__pthread_cleanup_class): Add missing return types of member
  1981. functions.
  1982. 2003-08-26 Steven Munroe <sjmunroe@us.ibm.com>
  1983. * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h
  1984. (lll_mutex_unlock_force): Add memory barrier between store and futex
  1985. syscall.
  1986. 2003-08-25 Ulrich Drepper <drepper@redhat.com>
  1987. * tst-cancel4.c (do_test): Also unlink tempfname and remove
  1988. tempmsg in first loop.
  1989. 2003-08-18 Ulrich Drepper <drepper@redhat.com>
  1990. * sysdeps/unix/sysv/linux/bits/posix_opt.h: Define
  1991. _POSIX_THREAD_PRIORITY_SCHEDULING.
  1992. * sysdeps/unix/sysv/linux/i386/bits/posix_opt.h: Likewise.
  1993. 2003-08-07 Jakub Jelinek <jakub@redhat.com>
  1994. * sysdeps/pthread/bits/libc-lock.h [_LIBC && SHARED]
  1995. (__rtld_lock_default_lock_recursive,
  1996. __rtld_lock_default_unlock_recursive): Define.
  1997. [_LIBC && SHARED] (__rtld_lock_lock_recursive,
  1998. __rtld_lock_unlock_recursive): Define using
  1999. GL(_dl_rtld_*lock_recursive).
  2000. * init.c (__pthread_initialize_minimal_internal): Initialize
  2001. _dl_rtld_lock_recursive and _dl_rtld_unlock_recursive.
  2002. Lock GL(_dl_load_lock) the same number of times as
  2003. GL(_dl_load_lock) using non-mt implementation was nested.
  2004. * pthreadP.h (__pthread_cleanup_upto): Add hidden_proto.
  2005. * pt-longjmp.c (__pthread_cleanup_upto): Add hidden_def.
  2006. 2003-08-06 Jakub Jelinek <jakub@redhat.com>
  2007. * tst-cancel17.c (do_test): Make len2 maximum of page size and
  2008. PIPE_BUF.
  2009. 2003-08-07 Jakub Jelinek <jakub@redhat.com>
  2010. * pthread_create.c (__pthread_create_2_0): Clear new_attr.cpuset.
  2011. 2003-08-03 Jakub Jelinek <jakub@redhat.com>
  2012. * sysdeps/pthread/createthread.c (do_clone): Move error handling
  2013. to first syscall error check. Move syscall error check for tkill
  2014. into __ASSUME_CLONE_STOPPED #ifdef.
  2015. 2003-08-02 Ulrich Drepper <drepper@redhat.com>
  2016. * sysdeps/pthread/createthread.c (do_clone): If __ASSUME_CLONE_STOPPED
  2017. is not defined, do explicit synchronization.
  2018. (create_thread): Do not lock pd->lock here. If __ASSUME_CLONE_STOPPED
  2019. is not defined also unlock pd->lock for non-debugging case in case
  2020. it is necessary.
  2021. * pthread_create.c (start_thread): Always get and release pd->lock
  2022. if __ASSUME_CLONE_STOPPED is not defined.
  2023. (start_thread_debug): Removed. Adjust users.
  2024. * allocatestack.c (allocate_stack): Always initialize lock if
  2025. __ASSUME_CLONE_STOPPED is not defined.
  2026. * Makefile (tests): Add tst-sched1.
  2027. * tst-sched1.c: New file.
  2028. * sysdeps/pthread/createthread.c (do_clone): Only use
  2029. sched_setschduler and pass correct parameters.
  2030. 2003-07-31 Jakub Jelinek <jakub@redhat.com>
  2031. * sysdeps/pthread/pthread.h (pthread_attr_setstackaddr,
  2032. pthread_attr_setstacksize): Change PTHREAD_STACK_SIZE to
  2033. PTHREAD_STACK_MIN in comments.
  2034. 2003-07-31 Jakub Jelinek <jakub@redhat.com>
  2035. * sysdeps/pthread/pthread_cond_timedwait.c (__pthread_cond_timedwait):
  2036. Shut up warnings if INTERNAL_SYSCALL_ERROR_P does not use its first
  2037. argument.
  2038. * sysdeps/unix/sysv/linux/timer_create.c (timer_create): Likewise.
  2039. * pthread_condattr_setclock.c (pthread_condattr_setclock): Likewise.
  2040. * sysdeps/unix/sysv/linux/s390/jmp-unwind.c: Include pthreaddef.h.
  2041. (__pthread_cleanup_upto): Fix prototype.
  2042. (_longjmp_unwind): Adjust caller.
  2043. * sysdeps/unix/sysv/linux/s390/lowlevellock.h (__lll_mutex_timedlock):
  2044. Change second argument to const struct pointer.
  2045. * tst-sem8.c (main): Remove unused s2 and s3 variables.
  2046. * tst-sem9.c (main): Likewise.
  2047. * unwind.c: Include string.h for strlen prototype.
  2048. 2003-07-31 Ulrich Drepper <drepper@redhat.com>
  2049. * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S
  2050. (__pthread_cond_timedwait): Don't use cmov unless HAVE_CMOV is defined.
  2051. * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_timedwait.S:
  2052. Define HAVE_CMOV.
  2053. Patch by Nicholas Miell <nmiell@attbi.com>.
  2054. 2003-07-30 Jakub Jelinek <jakub@redhat.com>
  2055. * init.c (__pthread_initialize_minimal_internal): Initialize
  2056. GL(dl_init_static_tls).
  2057. * pthreadP.h (__pthread_init_static_tls): New prototype.
  2058. * allocatestack.c (init_one_static_tls, __pthread_init_static_tls):
  2059. New functions.
  2060. * Makefile (tests): Add tst-tls4.
  2061. (modules-names): Add tst-tls4moda and tst-tls4modb.
  2062. ($(objpfx)tst-tls4): Link against libdl and libpthread.
  2063. ($(objpfx)tst-tls4.out): Depend on tst-tls4moda.so and
  2064. tst-tls4modb.so.
  2065. * tst-tls4.c: New file.
  2066. * tst-tls4moda.c: New file.
  2067. * tst-tls4modb.c: New file.
  2068. 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
  2069. * sysdeps/pthread/timer_create.c (timer_create): Call timer_delref
  2070. before __timer_dealloc.
  2071. * sysdeps/pthread/timer_routines.c (__timer_thread_find_matching):
  2072. Don't call list_unlink.
  2073. 2003-07-29 Roland McGrath <roland@redhat.com>
  2074. * Makefile [$(build-shared) = yes] (tests): Depend on $(test-modules).
  2075. 2003-07-25 Jakub Jelinek <jakub@redhat.com>
  2076. * tst-cancel17.c (do_test): Check if aio_cancel failed.
  2077. Don't reuse struct aiocb A if it failed.
  2078. Write fpathconf (fds[1], _PC_PIPE_BUF) + 2 bytes using aio_write,
  2079. not just one byte, as that does not block.
  2080. 2003-07-22 Jakub Jelinek <jakub@redhat.com>
  2081. * sysdeps/pthread/unwind-resume.c: New file.
  2082. * sysdeps/pthread/Makefile (routines, shared-only-routines): Add
  2083. unwind-resume in csu subdir.
  2084. (CFLAGS-unwind-resume.c, CFLAGS-rt-unwind-resume.c): Compile with
  2085. exceptions.
  2086. (librt-sysdep_routines, librt-shared-only-routines): Add
  2087. rt-unwind-resume.
  2088. * sysdeps/pthread/rt-unwind-resume.c: New file.
  2089. * unwind-forcedunwind.c: New file.
  2090. * Makefile (libpthread-routines): Add unwind-forcedunwind.
  2091. (libpthread-shared-only-routines): Likewise.
  2092. (CFLAGS-unwind-forcedunwind.c): Compile with exceptions.
  2093. * pthreadP.h (pthread_cancel_init): New prototype.
  2094. * pthread_cancel.c (pthread_cancel): Call pthread_cancel_init.
  2095. * sysdeps/pthread/createthread.c (do_thread, create_thread): Make
  2096. attr argument const struct pthread_attr *.
  2097. * res.c (__res_state): Return __resp.
  2098. * descr.h: Include resolv.h.
  2099. (struct pthread): Add res field.
  2100. * pthread_create.c: Include resolv.h.
  2101. (start_thread): Initialize __resp.
  2102. * Makefile (tests): Add tst-_res1.
  2103. (module-names): Add tst-_res1mod1, tst-_res1mod2.
  2104. ($(objpfx)tst-_res1mod2.so): Depend on $(objpfx)tst-_res1mod1.so.
  2105. ($(objpfx)tst-_res1): Depend on $(objpfx)tst-_res1mod2.so and
  2106. libpthread.
  2107. * tst-_res1.c: New file.
  2108. * tst-_res1mod1.c: New file.
  2109. * tst-_res1mod2.c: New file.
  2110. 2003-07-21 Ulrich Drepper <drepper@redhat.com>
  2111. * sysdeps/pthread/createthread.c: Don't define CLONE_STOPPED.
  2112. * Makefile: Define various *-no-z-defs variables for test DSOs
  2113. which has undefined symbols.
  2114. 2003-07-21 Steven Munroe <sjmunroe@us.ibm.com>
  2115. * sysdeps/unix/sysv/linux/powerpc/pthread_once.c (__pthread_once):
  2116. Retry if the stwcx fails to store once_control.
  2117. 2003-07-20 Ulrich Drepper <drepper@redhat.com>
  2118. * Makefile (libpthread-routines): Add pthread_attr_getaffinity and
  2119. pthread_attr_setaffinity.
  2120. * Versions [libpthread] (GLIBC_2.3.3): Likewise.
  2121. * sysdeps/unix/sysv/linux/pthread_attr_getaffinity.c: New file.
  2122. * sysdeps/unix/sysv/linux/pthread_attr_setaffinity.c: New file.
  2123. * pthread_attr_destroy.c: Free cpuset element if allocated.
  2124. * pthread_create.c: Pass iattr as additional parameter to
  2125. create_thread.
  2126. * sysdeps/pthread/createthread.c: If attribute is provided and
  2127. a new thread is created with affinity set or scheduling parameters,
  2128. start thread with CLONE_STOPPED.
  2129. * sysdeps/pthread/pthread.h: Declare pthread_attr_getaffinity and
  2130. pthread_attr_setaffinity.
  2131. * sysdeps/unix/sysv/linux/internaltypes.h (struct pthread_attr): Add
  2132. cpuset element.
  2133. 2003-07-15 Ulrich Drepper <drepper@redhat.com>
  2134. * tst-tcancel-wrappers.sh: lseek and llseek are not cancelation points.
  2135. 2003-07-14 Ulrich Drepper <drepper@redhat.com>
  2136. * sysdeps/pthread/configure.in: Require CFI directives also for
  2137. ppc and s390.
  2138. 2003-07-15 Jakub Jelinek <jakub@redhat.com>
  2139. * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h (PSEUDO):
  2140. Add cfi directives.
  2141. 2003-07-12 Kaz Kojima <kkojima@rr.iij4u.or.jp>
  2142. * sysdeps/sh/tcb-offsets.sym: Add RESULT, TID, CANCELHANDLING and
  2143. CLEANUP_JMP_BUF.
  2144. * sysdeps/unix/sysv/linux/sh/pthread_cond_wait.S: Use more
  2145. registers as variables. Call __pthread_mutex_unlock_usercnt.
  2146. * sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S: Likewise.
  2147. * sysdeps/unix/sysv/linux/sh/pthread_rwlock_rdlock.S: Store TID
  2148. not self pointer in __writer. Compare with TID to determine
  2149. deadlocks.
  2150. * sysdeps/unix/sysv/linux/sh/pthread_rwlock_wrlock.S: Likewise.
  2151. * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedrdlock.S:
  2152. Likewise.
  2153. * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedwrlock.S:
  2154. Likewise.
  2155. * sysdeps/unix/sysv/linux/sh/sem_wait.S: Add cancellation support.
  2156. * sysdeps/unix/sysv/linux/sh/sem_timedwait.S: Likewise.
  2157. * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Define all the nice
  2158. macros also when compiling librt.
  2159. 2003-07-11 Jakub Jelinek <jakub@redhat.com>
  2160. * Makefile (CFLAGS-pthread_once.c): Add -fexceptions
  2161. -fasynchronous-unwind-tables.
  2162. * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h
  2163. (PSEUDO): Add cfi directives.
  2164. * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h (PSEUDO):
  2165. Likewise.
  2166. * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h (PSEUDO):
  2167. Likewise.
  2168. 2003-07-08 Jakub Jelinek <jakub@redhat.com>
  2169. * pthreadP.h (__pthread_unwind_next, __pthread_register_cancel,
  2170. __pthread_unregister_cancel): Add prototypes and hidden_proto.
  2171. * unwind.c (__pthread_unwind_next): Add hidden_def.
  2172. * cleanup.c (__pthread_register_cancel, __pthread_unregister_cancel):
  2173. Likewise.
  2174. * sysdeps/unix/sysv/linux/i386/i486/sem_wait.S (__new_sem_wait):
  2175. Use HIDDEN_JUMPTARGET to jump to __pthread_unwind.
  2176. * sysdeps/unix/sysv/linux/i386/i486/sem_timedwait.S (sem_timedwait):
  2177. Likewise.
  2178. * sysdeps/unix/sysv/linux/x86_64/sem_wait.S (sem_wait): Likewise.
  2179. * sysdeps/unix/sysv/linux/x86_64/sem_timedwait.S (sem_timedwait):
  2180. Likewise.
  2181. * sysdeps/unix/sysv/linux/i386/pthread_once.S (__pthread_once): Use
  2182. HIDDEN_JUMPTARGET to call __pthread_register_cancel,
  2183. __pthread_unregister_cancel and __pthread_unwind_next.
  2184. 2003-07-04 Jakub Jelinek <jakub@redhat.com>
  2185. * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (PSEUDO): Use
  2186. different symbol for the cancellation syscall wrapper and
  2187. non-cancellation syscall wrapper.
  2188. (PSEUDO_END): Define.
  2189. 2003-07-05 Richard Henderson <rth@redhat.com>
  2190. * sysdeps/alpha/elf/pt-initfini.c: Avoid .ent/.end.
  2191. * sysdeps/unix/sysv/linux/alpha/lowlevellock.h (lll_futex_wait,
  2192. lll_futex_timed_wait, lll_futex_wake, lll_futex_requeue): On success
  2193. return actual return value from the syscall, not 0.
  2194. 2003-07-07 Ulrich Drepper <drepper@redhat.com>
  2195. * descr.h (struct pthread): Add pid field.
  2196. * allocatestack.c (allocate_stack): Initialize pid field in descriptor.
  2197. (__reclaim_stacks): Likewise.
  2198. * init.c (sigcancel_handler): If __ASSUME_CORRECT_SI_PID is defined
  2199. also check for PID of the signal source.
  2200. (__pthread_initialize_minimal_internal): Also initialize pid field
  2201. of initial thread's descriptor.
  2202. * pthread_cancel.c: Use tgkill instead of tkill if possible.
  2203. * sysdeps/unix/sysv/linux/fork.c: Likewise.
  2204. * sysdeps/unix/sysv/linux/pt-raise.c: Likewise.
  2205. * sysdeps/unix/sysv/linux/pthread_kill.c: Likewise.
  2206. * sysdeps/unix/sysv/linux/raise.c: Likewise.
  2207. 2003-07-05 Ulrich Drepper <drepper@redhat.com>
  2208. * sysdeps/pthread/bits/libc-lock.h (__libc_cleanup_push): Renamed.
  2209. Fix use of parameter.
  2210. (__libc_cleanup_pop): Likewise.
  2211. 2003-07-04 Ulrich Drepper <drepper@redhat.com>
  2212. * init.c (sigcancel_handler): Change parameters to match handler
  2213. for SA_SIGACTION. Check signal number and code to recognize
  2214. invalid invocations.
  2215. 2003-07-03 Roland McGrath <roland@redhat.com>
  2216. * sysdeps/ia64/td_ta_map_lwp2thr.c (td_ta_map_lwp2thr):
  2217. Apply sizeof (struct pthread) bias to r13 value.
  2218. 2003-07-03 Ulrich Drepper <drepper@redhat.com>
  2219. * sysdeps/pthread/configure.in: Require CFI directives.
  2220. * sysdeps/pthread/librt-cancellation.c (__pthread_unwind): Remove
  2221. definition.
  2222. * pthreadP.h (__pthread_unwind): Add hidden_proto if used in
  2223. libpthread compilation.
  2224. * unwind.c (__pthread_unwind): Add hidden_def.
  2225. * Versions (libpthread) [GLIBC_PRIVATE]: Add __pthread_unwind.
  2226. 2003-07-01 Ulrich Drepper <drepper@redhat.com>
  2227. * libc-cancellation.c (__libc_cleanup_routine): Define.
  2228. * sysdeps/pthread/bits/libc-lock.h (__pthread_cleanup_push): Define.
  2229. (__pthread_cleanup_pop): Define.
  2230. 2003-07-01 Richard Henderson <rth@redhat.com>
  2231. * sysdeps/alpha/elf/pt-initfini.c: New file.
  2232. * sysdeps/alpha/pthread_spin_lock.S: New file.
  2233. * sysdeps/alpha/pthread_spin_trylock.S: New file.
  2234. * sysdeps/alpha/pthreaddef.h: New file.
  2235. * sysdeps/alpha/td_ta_map_lwp2thr.c: New file.
  2236. * sysdeps/alpha/tls.h: New file.
  2237. * sysdeps/unix/sysv/linux/alpha/Makefile: New file.
  2238. * sysdeps/unix/sysv/linux/alpha/bits/pthreadtypes.h: New file.
  2239. * sysdeps/unix/sysv/linux/alpha/bits/semaphore.h: New file.
  2240. * sysdeps/unix/sysv/linux/alpha/createthread.c: New file.
  2241. * sysdeps/unix/sysv/linux/alpha/fork.c: New file.
  2242. * sysdeps/unix/sysv/linux/alpha/lowlevellock.h: New file.
  2243. * sysdeps/unix/sysv/linux/alpha/pt-vfork.S: New file.
  2244. * sysdeps/unix/sysv/linux/alpha/pthread_once.c: New file.
  2245. * sysdeps/unix/sysv/linux/alpha/sem_post.c: New file.
  2246. * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: New file.
  2247. 2003-07-01 Ulrich Drepper <drepper@redhat.com>
  2248. * sysdeps/unix/sysv/linux/x86_64/pthread_once.S: Add correct
  2249. cleanup support and unwind info.
  2250. 2003-06-30 Ulrich Drepper <drepper@redhat.com>
  2251. * sysdeps/unix/sysv/linux/i386/pthread_once.S (__pthread_once):
  2252. Use correct cleanup handler registration. Add unwind info.
  2253. * sysdeps/unix/sysv/linux/unwindbuf.sym: New file.
  2254. * sysdeps/unix/sysv/linux/Makefile: Add rule to build unwindbuf.h.
  2255. * tst-once3.c: Add cleanup handler and check it is called.
  2256. * tst-once4.c: Likewise.
  2257. * tst-oncex3.c: New file.
  2258. * tst-oncex4.c: New file.
  2259. * Makefile: Add rules to build and run tst-oncex3 and tst-oncex4.
  2260. 2003-06-29 Ulrich Drepper <drepper@redhat.com>
  2261. * sysdeps/pthread/configure.in: Check for C cleanup handling in gcc.
  2262. 2003-06-27 Ulrich Drepper <drepper@redhat.com>
  2263. * tst-cancel4.c (tf_msgrcv): Use IPC_PRIVATE in msgget call.
  2264. (tf_msgsnd): Likewise.
  2265. * tst-cancel4.c (tf_msgrcv): Strengthen test against valid
  2266. premature returns a bit more.
  2267. 2003-06-26 Ulrich Drepper <drepper@redhat.com>
  2268. * sysdeps/pthread/librt-cancellation.c: Move __pthread_unwind
  2269. definition to the front.
  2270. * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: Rename
  2271. the cleanup functions to make the names unique. Fix dwarf opcode
  2272. un unwind table.
  2273. * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Rename cleanup
  2274. functions to make the names unique. Fix CFA offset for two blocks.
  2275. 2003-06-25 Ulrich Drepper <drepper@redhat.com>
  2276. * sysdeps/pthread/pthread.h (class __pthread_cleanup_class): Add
  2277. missing closing braces.
  2278. Patch by Christophe Saout <christophe@saout.de>.
  2279. 2003-06-24 Roland McGrath <roland@redhat.com>
  2280. * pthread_mutex_trylock.c (__pthread_mutex_trylock): Typo fix.
  2281. 2003-06-24 Ulrich Drepper <drepper@redhat.com>
  2282. * sysdeps/unix/sysv/linux/ia64/bits/posix_opt.h: New file.
  2283. * sysdeps/unix/sysv/linux/x86_64/bits/posix_opt.h: New file.
  2284. * pthreadP.h: Declare __find_thread_by_id.
  2285. * allocatestack.c [HP_TIMING_AVAIL]: Define __find_thread_by_id.
  2286. * pthread_clock_gettime.c: Allow using other thread's clock.
  2287. * pthread_clock_settime.c: Likewise.
  2288. * sysdeps/pthread/pthread_getcpuclockid.c: Likewise.
  2289. * Makefile: Add rules to build and run tst-clock2.
  2290. * tst-clock2.c: New file.
  2291. 2003-06-23 Ulrich Drepper <drepper@redhat.com>
  2292. * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: Rewrite
  2293. to use exception-based cleanup handler.
  2294. * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Likewise.
  2295. * tst-cond8.c (ch): Announce that we are done.
  2296. * pthreadP.h (__pthread_mutex_cond_lock): Mark with internal_function.
  2297. * tst-cancel17.c (tf): Retry aio_suspend in case of EINTR.
  2298. Also test aio_suspend with timeout value.
  2299. 2003-06-22 Ulrich Drepper <drepper@redhat.com>
  2300. * pthreadP.h: Mark __pthread_mutex_unlock_usercnt also hidden.
  2301. * pthread_mutex_unlock.c (__pthread_mutex_unlock_usercnt): Add
  2302. attribute_hidden.
  2303. * pthreadP.h (__pthread_mutex_init_internal): Mark hidden.
  2304. (__pthread_mutex_lock_internal): Likewise.
  2305. (__pthread_mutex_unlock_internal): Likewise.
  2306. (__pthread_mutex_unlock_usercnt): Declare.
  2307. * pthread_mutex_destroy.c: Always fail if used in any way.
  2308. * pthread_mutex_init.c: Update comment.
  2309. * pthread_mutex_lock.c: If NO_INCR is not defined adjust __nusers.
  2310. * pthread_mutex_timedlock.c: Adjust __nusers.
  2311. * pthread_mutex_trylock.c: Adjust __nusers.
  2312. * pthread_mutex_unlock.c: Old code is in __pthread_mutex_unlock_usercnt
  2313. and public interfaces are wrapper with pass additional parameter.
  2314. __pthread_mutex_unlock_usercnt does not adjust __nusers if second
  2315. parameter zero.
  2316. * tst-mutex8.c: New file.
  2317. * Makefile (tests): Add tst-mutex8.
  2318. * sysdeps/pthread/pthread_cond_timedwait.c: Call
  2319. __pthread_mutex_unlock_usercnt.
  2320. * sysdeps/pthread/pthread_cond_wait.c: Likewise.
  2321. * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: Likewise.
  2322. * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Likewise.
  2323. * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: Likewise.
  2324. * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: Likewise.
  2325. * sysdeps/unix/sysv/linux/pthread_mutex_cond_lock.c: Define NO_INCR.
  2326. * sysdeps/unix/sysv/linux/i386/bits/pthreadtypes.h (pthread_mutex_t):
  2327. Add __nusers.
  2328. * sysdeps/unix/sysv/linux/ia64/bits/pthreadtypes.h: Likewise.
  2329. * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: Likewise.
  2330. * sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h: Likewise.
  2331. * sysdeps/unix/sysv/linux/sh/bits/pthreadtypes.h: Likewise.
  2332. * sysdeps/unix/sysv/linux/x86_64/bits/pthreadtypes.h: Likewise.
  2333. * pthread_mutex_lock.c: Don't store THREAD_ID in __owner, use TID.
  2334. * pthread_mutex_timedlock.c: Likewise.
  2335. * pthread_mutex_trylock.c: Adjust __nusers.
  2336. * pthread_mutex_unlock.c: Compare with TID not THREAD_ID.
  2337. * tst-mutex9.c: New file.
  2338. * Makefile (tests): Add tst-mutex9.
  2339. * sysdeps/i386/tls.h: Remove THREAD_ID definition.
  2340. * sysdeps/ia64/tls.h: Likewise.
  2341. * sysdeps/powerpc/tls.h: Likewise.
  2342. * sysdeps/s390/tls.h: Likewise.
  2343. * sysdeps/sh/tls.h: Likewise.
  2344. * sysdeps/x86_64/tls.h: Likewise.
  2345. * sysdeps/unix/sysv/linux/i386/bits/pthreadtypes.h (pthread_mutex_t):
  2346. Change type of __owner.
  2347. * sysdeps/unix/sysv/linux/ia64/bits/pthreadtypes.h: Likewise.
  2348. * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: Likewise.
  2349. * sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h: Likewise.
  2350. * sysdeps/unix/sysv/linux/sh/bits/pthreadtypes.h: Likewise.
  2351. * sysdeps/unix/sysv/linux/x86_64/bits/pthreadtypes.h: Likewise.
  2352. 2003-06-19 Jakub Jelinek <jakub@redhat.com>
  2353. * sysdeps/unix/sysv/linux/ia64/sem_post.c: Move to...
  2354. * sysdeps/unix/sysv/linux/sem_post.c: ...here.
  2355. * sysdeps/unix/sysv/linux/sem_post.c: Move to...
  2356. * sysdeps/unix/sysv/linux/powerpc/sem_post.c: ... here. Pass nr + 1
  2357. instead of nr to lll_futex_wake. Only set errno and return -1
  2358. if err < 0.
  2359. * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h (lll_futex_wait,
  2360. lll_futex_timed_wait, lll_futex_wake, lll_futex_requeue): On success
  2361. return actual return value from the syscall, not 0.
  2362. 2003-06-18 Ulrich Drepper <drepper@redhat.com>
  2363. * tst-cancel4.c (tf_msgsnd): Don't always use 100 as the type,
  2364. find a random value.
  2365. (tf_msgrcv): Likewise. Also don't report msgrcv returns if
  2366. errno==EIDRM.
  2367. * sysdeps/unix/sysv/linux/timer_settime.c: Add prototype for
  2368. compat_timer_settime.
  2369. * sysdeps/unix/sysv/linux/timer_gettime.c: Add prototype for
  2370. compat_timer_gettime.
  2371. * sysdeps/unix/sysv/linux/timer_getoverr.c: Add prototype for
  2372. compat_timer_getoverrun.
  2373. * sysdeps/unix/sysv/linux/timer_delete.c: Add prototype for
  2374. compat_timer_delete.
  2375. * pthread_mutex_destroy.c (__pthread_mutex_destroy): For
  2376. error-checking mutex detect busy mutexes.
  2377. 2003-06-17 Ulrich Drepper <drepper@redhat.com>
  2378. * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (lll_mutex_lock):
  2379. Add ax to clobber list.
  2380. (lll_mutex_cond_lock): Likewise.
  2381. (lll_mutex_unlock): Likewise.
  2382. (lll_lock): Likewise.
  2383. (lll_unlock): Likewise.
  2384. * Makefile: Add rules to build and run tst-cancel18 and tst-cancelx18.
  2385. * tst-cancel18.c: New file.
  2386. * tst-cancelx18.c: New file.
  2387. * tst-cancel4.c: Test connect, creat, msgrcv, msgsnd, sendmsg, sendto,
  2388. and tcdrain.
  2389. * Makefile: Add rules to build and run tst-cancel17 and tst-cancel17x.
  2390. * tst-cancel17.c: New file.
  2391. * tst-cancelx17.c: New file.
  2392. * sysdeps/unix/sysv/linux/sigtimedwait.c: New file.
  2393. * sysdeps/unix/sysv/linux/sigwait.c: New file.
  2394. * sysdeps/unix/sysv/linux/sigwaitinfo.c: New file.
  2395. * tst-cancel4.c: Test open, close, pread, pwrite, fsync, and msync.
  2396. 2003-06-16 Jakub Jelinek <jakub@redhat.com>
  2397. * sysdeps/pthread/createthread.c (create_thread): Set
  2398. header.multiple_threads unconditionally.
  2399. * allocatestack.c (allocate_stack): Likewise.
  2400. * descr.h (struct pthread): Add header.multiple_threads
  2401. unconditionally.
  2402. * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (CENABLE, CDISABLE):
  2403. Define for librt. #error if neither libpthread, libc nor librt.
  2404. * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (CENABLE, CDISABLE):
  2405. Likewise.
  2406. * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h (CENABLE,
  2407. CDISABLE): Likewise.
  2408. * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h (CENABLE,
  2409. CDISABLE): Likewise.
  2410. * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h (CENABLE,
  2411. CDISABLE): Likewise.
  2412. * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h (CENABLE,
  2413. CDISABLE): Likewise. Access header.multiple_threads outside of
  2414. libc and libpthread.
  2415. * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h (CENABLE, CDISABLE):
  2416. Likewise.
  2417. * sysdeps/x86_64/tls.h (tcbhead_t): Add multiple_threads.
  2418. * sysdeps/x86_64/tcb-offsets.sym (MULTIPLE_THREADS_OFFSET): Define.
  2419. 2003-06-17 Ulrich Drepper <drepper@redhat.com>
  2420. * tst-cancel4.c: Add tests for the socket and signal functions, pause.
  2421. Also test early cancellation before the thread reaches the cancellation
  2422. point.
  2423. * Makefile: Compile forward.c with exceptions.
  2424. * sysdeps/unix/sysv/linux/sleep.c: New file.
  2425. 2003-06-16 Ulrich Drepper <drepper@redhat.com>
  2426. * Makefile: Add CFLAGS definition to compile function wrappers
  2427. duplicated from libc with exceptions.
  2428. * tst-cancel4.c: Also check cancellation handlers.
  2429. * Makefile: Add rules to build and run tst-cancel16 and
  2430. tst-cancelx16. Add missing CFLAGS definitions.
  2431. * tst-cancel16.c: New file.
  2432. * tst-cancelx16.c: New file.
  2433. 2003-06-15 Ulrich Drepper <drepper@redhat.com>
  2434. * sysdeps/unix/sysv/linux/i386/dl-sysdep.h
  2435. (DL_SYSINFO_IMPLEMENTATION): Use CFI opcodes.
  2436. * sysdeps/unix/sysv/linux/i386/i686/dl-sysdep.h
  2437. (DL_SYSINFO_IMPLEMENTATION): Likewise.
  2438. * pthreadP.h (LIBC_CANCEL_ASYNC): Also define for librt.
  2439. (LIBC_CANCEL_RESET): Likewise.
  2440. Declare __librt_enable_asynccancel and __librt_disable_asynccancel.
  2441. * sysdeps/pthread/Makefile (librt-sysdep_routines): Add
  2442. librt-cancellation.
  2443. (CFLAGS-libcrt-cancellation.c): Define.
  2444. * sysdeps/pthread/librt-cancellation.c: New file.
  2445. * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: Define all the nice
  2446. macros also when compiling librt.
  2447. * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h: Likewise.
  2448. * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h: Likewise.
  2449. * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: Likewise.
  2450. * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: Likewise.
  2451. * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: Likewise.
  2452. * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Likewise.
  2453. * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Likewise.
  2454. * sysdeps/unix/sysv/linux/timer_create.c: Add prototype for
  2455. compat_timer_create.
  2456. 2003-06-14 Ulrich Drepper <drepper@redhat.com>
  2457. * sysdeps/pthread/posix-timer.h (timespec_compare): Always inline.
  2458. * sysdeps/unix/sysv/linux/fork.h: Add libc_hidden_proto for
  2459. __register_atfork.
  2460. * sysdeps/unix/sysv/linux/register-atfork.c (__register_atfork):
  2461. Add libc_hidden_def.
  2462. 2003-06-13 Roland McGrath <roland@redhat.com>
  2463. * sysdeps/x86_64/td_ta_map_lwp2thr.c (td_ta_map_lwp2thr): Pass FS
  2464. constant from <sys/reg.h> to ps_get_thread_area, not register contents.
  2465. 2003-06-11 Ulrich Drepper <drepper@redhat.com>
  2466. * allocatestack.c (queue_stack): Always inline.
  2467. * ptreadhP.h (__do_cancel): Likewise.
  2468. 2003-06-10 Jakub Jelinek <jakub@redhat.com>
  2469. * sysdeps/unix/sysv/linux/s390/sem_timedwait.c (sem_timedwait): Fix
  2470. a typo.
  2471. 2003-06-10 Ulrich Drepper <drepper@redhat.com>
  2472. * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S
  2473. (__pthread_cond_signal): Remove incorrect second addition for
  2474. cond_lock!=0.
  2475. 2003-06-09 Ulrich Drepper <drepper@redhat.com>
  2476. * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S
  2477. (__pthread_cond_signal): Use correct futex pointer in
  2478. __lll_mutex_lock_wait call.
  2479. * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S
  2480. (__pthread_cond_signal): Some more tweaks to handle cond_lock!=0.
  2481. 2003-06-08 Ulrich Drepper <drepper@redhat.com>
  2482. * sysdeps/unix/sysv/linux/s390/sem_wait.c (__new_sem_wait): Make
  2483. cancelable.
  2484. * sysdeps/unix/sysv/linux/s390/sem_timedwait.c (sem_timedwait):
  2485. Likewise.
  2486. * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Remove
  2487. hand-written CFI generation code. Since ENTRY/END also initiated
  2488. CFI frames this caused two CFI sets to be generated.
  2489. 2003-06-07 Ulrich Drepper <drepper@redhat.com>
  2490. * cleanup_routine.c: New file.
  2491. * Versions (libpthread) [GLIBC_2.3.3]: Add __pthread_cleanup_routine.
  2492. * sysdeps/pthread/pthread.h: Add support for fully exception-based
  2493. cleanup handling.
  2494. * Makefile (libpthread-routines): Add cleanup_routine.
  2495. Add more CFLAGS variables to compile with exceptions. Add comments
  2496. why which file needs unwind tables.
  2497. (tests) [have-forced-unwind==yes]: Add tst-cancelx* and tst-cleanupx*
  2498. tests.
  2499. * tst-cancelx1.c: New file.
  2500. * tst-cancelx2.c: New file.
  2501. * tst-cancelx3.c: New file.
  2502. * tst-cancelx4.c: New file.
  2503. * tst-cancelx5.c: New file.
  2504. * tst-cancelx6.c: New file.
  2505. * tst-cancelx7.c: New file.
  2506. * tst-cancelx8.c: New file.
  2507. * tst-cancelx9.c: New file.
  2508. * tst-cancelx10.c: New file.
  2509. * tst-cancelx11.c: New file.
  2510. * tst-cancelx12.c: New file.
  2511. * tst-cancelx13.c: New file.
  2512. * tst-cancelx14.c: New file.
  2513. * tst-cancelx15.c: New file.
  2514. * tst-cleanupx0.c: New file.
  2515. * tst-cleanupx0.expect: New file.
  2516. * tst-cleanupx1.c: New file.
  2517. * tst-cleanupx2.c: New file.
  2518. * tst-cleanupx3.c: New file.
  2519. * tst-cleanup0.c: Make standard compliant.
  2520. * tst-cleanup1.c: Likewise.
  2521. * sysdeps/unix/sysv/linux/sem_timedwait.c: Add cancellation support.
  2522. * sysdeps/unix/sysv/linux/sem_wait.c: Likewise.
  2523. * sysdeps/unix/sysv/linux/i386/i486/sem_timedwait.S: Likewise.
  2524. * sysdeps/unix/sysv/linux/i386/i486/sem_wait.S: Likewise.
  2525. * sysdeps/unix/sysv/linux/x86_64/sem_timedwait.S: Likewise.
  2526. * sysdeps/unix/sysv/linux/x86_64/sem_wait.S: Likewise.
  2527. * sysdeps/i386/tcb-offsets.sym: Add RESULT, CANCELHANDLING, and
  2528. CLEANUP_JMP_BUF.
  2529. * sysdeps/x86_64/tcb-offsets.sym: Likewise.
  2530. * tst-cancel12.c: New file.
  2531. * tst-cancel13.c: New file.
  2532. * tst-cancel14.c: New file.
  2533. * tst-cancel15.c: New file.
  2534. * Makefile (tests): Add tst-cancel12, tst-cancel13, tst-cancel14,
  2535. and tst-cancel15.
  2536. * tst-cancel1.c: Add some comments.
  2537. * sysdeps/unix/sysv/linux/x86_64/sem_timedwait.S: Compute relative
  2538. timeout correctly.
  2539. 2003-06-06 Ulrich Drepper <drepper@redhat.com>
  2540. * Makefile (CFLAGS-pthread_cancel.c): Define.
  2541. 2003-06-05 Ulrich Drepper <drepper@redhat.com>
  2542. * sysdeps/unix/sysv/linux/i386/bits/pthreadtypes.h (pthread_rwlock_t):
  2543. Change type of __writer element to int.
  2544. * sysdeps/unix/sysv/linux/ia64/bits/pthreadtypes.h: Likewise.
  2545. * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: Likewise.
  2546. * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: Likewise.
  2547. * sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h: Likewise.
  2548. * sysdeps/unix/sysv/linux/x86_64/bits/pthreadtypes.h: Likewise.
  2549. * sysdeps/i386/tcb-offsets.sym: Replace SELF entry with TID entry.
  2550. * sysdeps/x86_64/tcb-offsets.sym: Likewise.
  2551. * pthread_rwlock_trywrlock.c: Store TID not self pointer in __writer.
  2552. Compare with TID to determine deadlocks.
  2553. * sysdeps/pthread/pthread_rwlock_rdlock.c: Likewise.
  2554. * sysdeps/pthread/pthread_rwlock_timedrdlock.c: Likewise.
  2555. * sysdeps/pthread/pthread_rwlock_timedwrlock.: Likewise.
  2556. * sysdeps/pthread/pthread_rwlock_wrlock.c: Likewise.
  2557. * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_rdlock.S: Likewise.
  2558. * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S:
  2559. Likewise.
  2560. * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S:
  2561. Likewise.
  2562. * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_wrlock.S: Likewise.
  2563. * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_rdlock.S: Likewise.
  2564. * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedrdlock.S:
  2565. Likewise.
  2566. * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedwrlock.S:
  2567. Likewise.
  2568. * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_wrlock.S: Likewise.
  2569. * Makefile (tests): Add tst-rwlock12.
  2570. * tst-rwlock12.c: New file.
  2571. 2003-06-05 Jakub Jelinek <jakub@redhat.com>
  2572. * sysdeps/unix/sysv/linux/lowlevellock.c (__lll_lock_wait,
  2573. __lll_timedlock_wait, lll_unlock_wake_cb, __lll_timedwait_tid):
  2574. Remove bogus hidden_proto.
  2575. * sysdeps/unix/sysv/linux/s390/libc-lowlevellock.c (___lll_lock):
  2576. Likewise.
  2577. * sysdeps/unix/sysv/linux/s390/lowlevellock.c (___lll_lock,
  2578. lll_unlock_wake_cb, ___lll_timedwait_tid): Likewise.
  2579. * sysdeps/unix/sysv/linux/s390/lowlevelmutex.c (___lll_mutex_lock,
  2580. ___lll_mutex_timedlock): Likewise.
  2581. 2003-06-04 Ulrich Drepper <drepper@redhat.com>
  2582. * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S
  2583. (__pthread_cond_signal): Add some code to eventually handle
  2584. cond_lock!=0.
  2585. 2003-06-01 Ulrich Drepper <drepper@redhat.com>
  2586. * Makefile (tests): Add tst-exec4.
  2587. (tst-exec4-ARGS): Define.
  2588. * tst-exec4.c: New file.
  2589. 2003-05-31 Ulrich Drepper <drepper@redhat.com>
  2590. * sysdeps/unix/sysv/linux/lowlevellock.c (__lll_timedlock_wait):
  2591. Also fail if tv_nsec < 0.
  2592. (__lll_timedwait_tid): Likewise.
  2593. * sysdeps/unix/sysv/linux/sem_timedwait.c (sem_timedwait): Likewise.
  2594. * sysdeps/unix/sysv/linux/i386/lowlevellock.h (lll_timedwait_tid):
  2595. Likewise.
  2596. * sysdeps/unix/sysv/linux/s390/lowlevellock.c (___lll_timedwait_tid):
  2597. Likewise.
  2598. * sysdeps/unix/sysv/linux/s390/lowlevelmutex.c (__lll_mutex_timedlock):
  2599. Likewise.
  2600. * sysdeps/unix/sysv/linux/s390/sem_timedwait.c (sem_timedwait):
  2601. Likewise.
  2602. * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (lll_timedwait_tid):
  2603. Likewise.
  2604. * sysdeps/unix/sysv/linux/sh/lowlevellock.h (lll_timedwait_tid):
  2605. Likewise.
  2606. * Makefile (tests): Add tst-sem8 and tst-sem9.
  2607. * tst-sem8.c: New file.
  2608. * tst-sem9.c: New file.
  2609. * sem_open.c: Fix creation of in_use record if the file exists but
  2610. no internal record.
  2611. * posix-timer.h: Remove old, unused timer_id2ptr and timer_ptr2id
  2612. definitions.
  2613. * sysdeps/pthread/timer_create.c (timer_create): In case
  2614. evp==NULL, assign timer ID to sival_ptr.
  2615. * descr.h (struct pthread_unwind_buf): Change type of prev element to
  2616. struct pthread_unwind_buf *.
  2617. (struct pthread): Likewise for cleanup_jmp_buf element.
  2618. * cleanup.c (__pthread_register_cancel): Add cast to avoid warning.
  2619. * cleanup_defer.c (__pthread_register_cancel_defer): Likewise.
  2620. * unwind.c (__pthread_unwind_next): Likewise.
  2621. 2003-05-30 Ulrich Drepper <drepper@redhat.com>
  2622. * sysdeps/unix/sysv/linux/ia64/lowlevellock.h
  2623. (lll_futex_timed_wait): Use int for futex value parameter.
  2624. (lll_futex_wake): Likewise.
  2625. (lll_futex_requeue): Likewise.
  2626. * sysdeps/unix/sysv/linux/lowlevellock.c (__lll_lock_wait):
  2627. Replace one memory operation with one register operation.
  2628. * tst-join4.c (do_test): Fix error message.
  2629. * tst-rwlock6.c (do_test): Use correct format specifier.
  2630. * sysdeps/unix/sysv/linux/i386/i486/lowlevelmutex.S
  2631. (__lll_mutex_lock_wait): Replace one memory operation with one
  2632. register operation.
  2633. * sysdeps/unix/sysv/linux/x86_64/lowlevelmutex.S
  2634. (__lll_mutex_lock_wait): Likewise.
  2635. * sysdeps/unix/sysv/linux/ia64/lowlevellock.h
  2636. (__lll_mutex_cond_lock): Add one to value parameter of
  2637. __lll_lock_wait to reflect reality in the futex syscall.
  2638. * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h
  2639. (lll_mutex_cond_lock): Likewise.
  2640. 2003-05-30 Jakub Jelinek <jakub@redhat.com>
  2641. * sysdeps/unix/sysv/linux/s390/lowlevellock.h (__lll_mutex_cond_lock):
  2642. New function.
  2643. (lll_mutex_cond_lock): Define.
  2644. 2003-05-29 Ulrich Drepper <drepper@redhat.com>
  2645. * Makefile (tests): Add tst-signal6.
  2646. * tst-signal6.c: New file.
  2647. * sysdeps/unix/sysv/linux/s390/lowlevellock.h
  2648. (__lll_mutex_unlock_force): New function
  2649. (lll_mutex_unlock_force): Use __lll_mutex_unlock_force.
  2650. * sysdeps/unix/sysv/linux/ia64/lowlevellock.h
  2651. (__lll_mutex_unlock_force): New function.
  2652. (lll_mutex_unlock_force): Use __lll_mutex_unlock_force.
  2653. * tst-rwlock7.c (do_test): Use correct format specifier.
  2654. * sysdeps/unix/sysv/linux/ia64/lowlevellock.h (lll_futex_requeue):
  2655. Find break parameter in correct asm argument.
  2656. 2003-05-27 Jakub Jelinek <jakub@redhat.com>
  2657. * sysdeps/unix/sysv/linux/ia64/lowlevellock.h (lll_futex_clobbers):
  2658. Remove out4.
  2659. (lll_futex_requeue): Fix __o3 constraint, return negative errno if
  2660. error occured.
  2661. * sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h (pthread_cond_t):
  2662. Add __mutex.
  2663. * sysdeps/unix/sysv/linux/s390/lowlevellock.h (FUTEX_REQUEUE,
  2664. lll_futex_requeue, lll_mutex_unlock_force): Define.
  2665. 2003-05-30 Jakub Jelinek <jakub@redhat.com>
  2666. * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h
  2667. (pthread_cond_t): Add __mutex.
  2668. * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h (FUTEX_REQUEUE,
  2669. lll_futex_requeue, lll_mutex_unlock_force): Define.
  2670. 2003-05-28 Kaz Kojima <kkojima@rr.iij4u.or.jp>
  2671. * sysdeps/sh/tcb-offsets.sym: Define MUTEX_FUTEX.
  2672. * sysdeps/unix/sysv/linux/sh/bits/pthreadtypes.h (pthread_cond_t):
  2673. Add __mutex field.
  2674. * sysdeps/unix/sysv/linux/sh/lowlevellock.h (SYSCALL_WITH_INST_PAD):
  2675. Define.
  2676. (lll_futex_wait, lll_futex_wake): Define.
  2677. * sysdeps/unix/sysv/linux/sh/sh4/lowlevellock.h: New file.
  2678. * sysdeps/unix/sysv/linux/sh/pthread_cond_broadcast.S: Try using
  2679. FUTEX_REQUEUE instead of FUTEX_WAIT.
  2680. * sysdeps/unix/sysv/linux/sh/pthread_cond_signal.S: Likewise.
  2681. * sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S: Remember
  2682. mutex which was used in condvar structure. Call
  2683. __pthread_mutex_cond_lock instead of __pthread_mutex_lock_internal.
  2684. * sysdeps/unix/sysv/linux/sh/pthread_cond_wait.S: Likewise.
  2685. * sysdeps/unix/sysv/linux/sh/pthread_rwlock_rdlock.S: Don't
  2686. include tcb-offsets.h. Read wakeup value in locked region.
  2687. Use the value of gbr register as THREAD_ID.
  2688. * sysdeps/unix/sysv/linux/sh/pthread_rwlock_wrlock.S: Likewise.
  2689. * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedrdlock.S: Likewise.
  2690. * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedwrlock.S: Likewise.
  2691. * sysdeps/unix/sysv/linux/sh/sem_trywait.S: Remove futex related
  2692. macros.
  2693. 2003-05-28 Ulrich Drepper <drepper@redhat.com>
  2694. * sysdeps/pthread/pthread_cond_broadcast.c
  2695. (__pthread_cond_broadcast): Fix typo: MAX_INT -> INT_MAX.
  2696. 2003-05-26 Ulrich Drepper <drepper@redhat.com>
  2697. * sysdeps/unix/sysv/linux/x86_64/pthread_cond_broadcast.S: Fix
  2698. typo in register name.
  2699. * sysdeps/unix/sysv/linux/x86_64/pthread_cond_signal.S: Use parameters
  2700. correctly. Actually use requeue. Little optimization.
  2701. * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: Store
  2702. mutex address early. Handle cancellation state as 32-bit value.
  2703. * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: Likewise.
  2704. Remove unnecessary label.
  2705. 2003-05-25 Ulrich Drepper <drepper@redhat.com>
  2706. * sysdeps/pthread/pthread_cond_broadcast.c: Try using FUTEX_REQUEUE
  2707. instead of FUTEX_WAIT.
  2708. * sysdeps/pthread/pthread_cond_signal.c: Likewise.
  2709. * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_broadcast.S: Likewise.
  2710. * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S: Likewise.
  2711. * sysdeps/unix/sysv/linux/x86_64/pthread_cond_broadcast.S: Likewise.
  2712. * sysdeps/unix/sysv/linux/x86_64/pthread_cond_signal.S: Likewise.
  2713. * sysdeps/pthread/pthread_cond_timedwait.c: Remember mutex which was
  2714. used in condvar structure. Call __pthread_mutex_cond_lock instead
  2715. of __pthread_mutex_lock_internal.
  2716. * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: Likewise.
  2717. * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: Likewise.
  2718. * sysdeps/pthread/pthread_cond_wait.c: Likewise.
  2719. (__condvar_cleanup): Always call __pthread_mutex_cond_lock.
  2720. * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Likewise.
  2721. * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: Likewise.
  2722. * sysdeps/unix/sysv/linux/Makefile (libpthread-sysdep_routines):
  2723. Add pthread_mutex_cond_lock.
  2724. * sysdeps/unix/sysv/linux/lowlevelcond.sym: Add dep_mutex.
  2725. * sysdeps/unix/sysv/linux/pthread_cond_mutex_lock.c: New file.
  2726. * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Define
  2727. lll_mutex_cond_lock.
  2728. * sysdeps/unix/sysv/linux/ia64/lowlevellock.h: Likewise.
  2729. * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
  2730. * sysdeps/unix/sysv/linux/i386/bits/pthreadtypes.h (pthread_cond_t):
  2731. Add __mutex field.
  2732. * sysdeps/unix/sysv/linux/ia64/bits/pthreadtypes.h: Likewise.
  2733. * sysdeps/unix/sysv/linux/x86_64/bits/pthreadtypes.h: Likewise.
  2734. * sysdeps/i386/tcb-offsets.sym: Define MUTEX_FUTEX.
  2735. * sysdeps/x86_64/tcb-offsets.sym: Likewise.
  2736. * pthreadP.h: Declare __pthread_mutex_cond_lock.
  2737. * pthread_mutex_lock.c: Define LLL_MUTEX_LOCK if not already defined.
  2738. Use it instead of lll_mutex_lock. If __pthread_mutex_lock is a
  2739. macro don't define aliases.
  2740. * cancellation.c: Remove __pthread_enable_asynccancel_2.
  2741. * pthreadP.h: Remove declaration of __pthread_enable_asynccancel_2.
  2742. * sysdeps/pthread/pthread_cond_timedwait.c: Use
  2743. __pthread_enable_asynccancel instead of __pthread_enable_asynccancel_2.
  2744. * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: Likewise.
  2745. * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: Likewise.
  2746. * sysdeps/pthread/pthread_cond_wait.c: Likewise.
  2747. * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Likewise.
  2748. * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: Likewise.
  2749. 2003-05-17 Ulrich Drepper <drepper@redhat.com>
  2750. * sem_open.c: Fix one endless loop. Implement correct semantics
  2751. wrt opening the same semaphore more then once.
  2752. * sem_close.c: Adjust for sem_open change.
  2753. * semaphoreP.h: Include <semaphore.h>. Define struct inuse_sem.
  2754. Declare __sem_mappings, __sem_mappings_lock, __sem_search.
  2755. * Makefile (tests): Add tst-sem7.
  2756. * tst-sem7.c: New file.
  2757. 2003-05-16 Roland McGrath <roland@redhat.com>
  2758. * sysdeps/unix/sysv/linux/register-atfork.c (libc_freeres_fn): Fix
  2759. uninitialized variable braino.
  2760. 2003-05-16 Ulrich Drepper <drepper@redhat.com>
  2761. * sysdeps/unix/sysv/linux/timer_gettime.c (timer_gettime): Correct
  2762. test for syscall availability.
  2763. * sysdeps/unix/sysv/linux/timer_settime.c (timer_settime): Set
  2764. __no_posix_timers to -1 if the syscalls don't exist.
  2765. * pthread_join.c (pthread_join): Set tid field of the joined
  2766. thread to -1. This isn't necessary but helps to recognize some
  2767. error conditions with almost no cost.
  2768. * allocatestack.c (FREE_P): Also negative values indicate an
  2769. unused stack.
  2770. * unwind.c: Include <unistd.h>.
  2771. 2003-05-14 Ulrich Drepper <drepper@redhat.com>
  2772. * Makefile ($(objpfx)$(multidir)): Add rule to create the directory.
  2773. 2003-05-14 Jakub Jelinek <jakub@redhat.com>
  2774. * Makefile (crti-objs, crtn-objs): New variables.
  2775. (omit-deps, extra-objs): Add crtn.
  2776. ($(objpfx)libpthread.so): Depend on both crti and crtn
  2777. and links to them in multidir.
  2778. ($(objpfx)crtn.S, $(objpfx)crtn.o): New rules.
  2779. 2003-05-12 Steven Munroe <sjmunroe@us.ibm.com>
  2780. * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h
  2781. (lll_mutex_unlock): Use atomic_exchange_rel.
  2782. 2003-05-11 Ulrich Drepper <drepper@redhat.com>
  2783. * cond-perf.c (cons): Add missing locking around setting of alldone.
  2784. 2003-05-10 Ulrich Drepper <drepper@redhat.com>
  2785. * sysdeps/unix/sysv/linux/i386/i486/sem_trywait.S: Remove futex
  2786. related macros.
  2787. * sysdeps/unix/sysv/linux/x86_64/sem_trywait.S: Likewise.
  2788. 2003-05-09 Ulrich Drepper <drepper@redhat.com>
  2789. * tst-sem6.c: New file.
  2790. * Makefile (tests): Add tst-sem6.
  2791. * sysdeps/unix/sysv/linux/ia64/lowlevellock.h (___lll_mutex_unlock):
  2792. Use atomic_exchange_rel instead of atomic_exchange.
  2793. * sysdeps/unix/sysv/linux/lowlevellock.c (lll_unlock_wake_cb):
  2794. Likewise.
  2795. * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Improve quality of
  2796. code for lll_futex_wait and lll_futex_wake in static apps. Use
  2797. vsyscall is possible.
  2798. * sysdeps/unix/sysv/linux/pthread_getaffinity.c: New file.
  2799. * sysdeps/unix/sysv/linux/pthread_setaffinity.c: New file.
  2800. * sysdeps/pthread/pthread.h: Declare pthread_getaffinity_np and
  2801. pthread_setaffinity_np.
  2802. * Versions [libpthread] (GLIBC_2.3.3): Add pthread_getaffinity_np
  2803. and pthread_setaffinity_np.
  2804. * Makefile (libpthread-routines): Add pthread_getaffinity and
  2805. pthread_setaffinity.
  2806. * allocatestack.c (allocate_stack): If ARCH_RETRY_MMAP is defined,
  2807. use it in case mmap to allocate the stack fails.
  2808. * sysdeps/unix/sysv/linux/x86_64/Makefile: Don't define
  2809. ARCH_MAP_FLAGS here.
  2810. * sysdeps/x86_64/pthreaddef.h: Define ARCH_MAP_FLAGS and
  2811. ARCH_RETRY_MMAP.
  2812. 2003-05-08 Ulrich Drepper <drepper@redhat.com>
  2813. * sysdeps/unix/sysv/linux/fork.c: Complete rewrite of the atfork
  2814. handler implementation. It is now lockless in fork().
  2815. * sysdeps/unix/sysv/linux/register-atfork.c: Likewise.
  2816. * sysdeps/unix/sysv/linux/unregister-atfork.c: Likewise.
  2817. * sysdeps/unix/sysv/linux/fork.h: Don't include <link.h>. Don't
  2818. declare the __fork_*_lists.
  2819. (struct fork_handler): Include pointers to all three functions.
  2820. Add next, refcntr and need_signal elements.
  2821. (__fork_handlers): New declaration.
  2822. (__register_atfork_malloc): Remove declaration.
  2823. (HAVE_register_atfork_malloc): Remove definition.
  2824. * sysdeps/unix/sysv/linux/libc_pthread_init.c: Remove
  2825. __pthread_child_handler variable.
  2826. (__libc_pthread_init): Use __register_atfork instead of explicitly
  2827. adding to the list.
  2828. * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Define lll_futex_wait
  2829. and lll_futex_wake.
  2830. * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
  2831. * unwind.c (unwind_cleanup): Print error message and then abort. This
  2832. function must never be reached.
  2833. * cond-perf.c: New file.
  2834. 2003-05-05 Ulrich Drepper <drepper@redhat.com>
  2835. * sysdeps/i386/tls.h (TLS_INIT_TP): Include \n in error message.
  2836. 2003-05-04 Roland McGrath <roland@redhat.com>
  2837. * Makefile ($(objpfx)../libc.so): New target.
  2838. 2003-05-02 Ulrich Drepper <drepper@redhat.com>
  2839. * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h
  2840. (pthread_condattr_t): Size is only an int, don't use long for
  2841. alignment.
  2842. (pthread_mutexattr_t): Likewise.
  2843. * sysdeps/unix/sysv/linux/ia64/bits/pthreadtypes.h: Likewise.
  2844. * sysdeps/unix/sysv/linux/x86_64/bits/pthreadtypes.h: Likewise.
  2845. * sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h: Likewise.
  2846. 2003-05-01 Ulrich Drepper <drepper@redhat.com>
  2847. * sysdeps/i386/tls.h: Define THREAD_ID.
  2848. * sysdeps/ia64/tls.h: Likewise.
  2849. * sysdeps/powerpc/tls.h: Likewise.
  2850. * sysdeps/s390/tls.h: Likewise.
  2851. * sysdeps/sh/tls.h: Likewise.
  2852. * sysdeps/x86_64/tls.h: Likewise.
  2853. * pthread_mutex_lock.c: Use THREAD_ID instead of THREAD_SELF to
  2854. record ownership.
  2855. * pthread_mutex_timedlock.c: Likewise.
  2856. * pthread_mutex_trylock.c: Likewise.
  2857. * pthread_mutex_unlock.c: Likewise.
  2858. * pthread_rwlock_trywrlock.c: Likewise.
  2859. * sysdeps/pthread/pthread_rwlocklock_rdlock.c: Likewise.
  2860. * sysdeps/pthread/pthread_rwlock_timedrdlock.c: Likewise.
  2861. * sysdeps/pthread/pthread_rwlock_timedwrlock.c: Likewise.
  2862. * sysdeps/pthread/pthread_rwlock_wrlock.c: Likewise.
  2863. * sysdeps/pthread/createthread.c (create_thread): Use CLONE_SYSVSEM
  2864. flag.
  2865. 2003-04-29 Jakub Jelinek <jakub@redhat.com>
  2866. * sysdeps/unix/sysv/linux/x86_64/bits/pthreadtypes.h
  2867. (__SIZEOF_PTHREAD_COND_T): Define to 48.
  2868. (pthread_rwlock_t): Add 16 bytes of pad instead of 8 before __flags.
  2869. * sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h (pthread_cond_t):
  2870. Make __align long long instead of long.
  2871. (pthread_rwlock_t): Formatting.
  2872. * sysdeps/unix/sysv/linux/ia64/bits/pthreadtypes.h
  2873. (pthread_rwlock_t): Formatting.
  2874. * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h
  2875. (pthread_cond_t): Make __align long long instead of long.
  2876. (pthread_rwlock_t): Move __flags field to the same position as in
  2877. linuxthreads.
  2878. 2003-04-30 Ulrich Drepper <drepper@redhat.com>
  2879. * tst-rwlock6.c (do_test): Use correct printf format specifiers.
  2880. * tst-rwlock7.c (do_test): Likewise.
  2881. 2003-04-26 Roland McGrath <roland@redhat.com>
  2882. * Makefile ($(test-modules)): Depend on $(common-objpfx)shlib.lds.
  2883. 2003-04-22 Jakub Jelinek <jakub@redhat.com>
  2884. * allocatestack.c (TLS_TPADJ): Add TLS_PRE_TCB_SIZE instead of
  2885. sizeof (struct pthread).
  2886. (allocate_stack): Subtract TLS_PRE_TCB_SIZE bytes instead of
  2887. 1 struct pthread.
  2888. * sysdeps/powerpc/tls.h (TLS_INIT_TCB_SIZE, TLS_TCB_SIZE): Define
  2889. to 0.
  2890. (TLS_INIT_TCB_ALIGN, TLS_TCB_ALIGN): Define to alignment of
  2891. struct pthread.
  2892. (TLS_PRE_TCB_SIZE): Increase to cover tcbhead_t preceeded by pad
  2893. to 32-bit bytes.
  2894. (INSTALL_DTV, GET_DTV, THREAD_DTV): tcbhead_t is immediately before
  2895. tcbp.
  2896. (TLS_INIT_TP, THREAD_SELF, INIT_THREAD_SELF): Don't add TLS_TCB_SIZE
  2897. unneccessarily.
  2898. (NO_TLS_OFFSET): Define.
  2899. * sysdeps/unix/sysv/linux/powerpc/createthread.c (TLS_VALUE): Don't
  2900. add TLS_TCB_SIZE unnecessarily.
  2901. 2003-04-22 Roland McGrath <roland@redhat.com>
  2902. * Makeconfig (shared-thread-library): Reverse link order to work
  2903. around linker bug.
  2904. 2003-04-22 Ulrich Drepper <drepper@redhat.com>
  2905. * semaphore.h: Fix typo in comment.
  2906. 2003-04-21 Ulrich Drepper <drepper@redhat.com>
  2907. * sysdeps/pthread/sigfillset.c: New file.
  2908. * init.c (__pthread_initialize_minimal): Don't block SIGTIMER.
  2909. * pthreadP.h: Make SIGTIMER and SIGCANCEL the same.
  2910. * sysdeps/pthread/pthread_sigmask.c: Remove handling of SIGTIMER.
  2911. * sysdeps/pthread/sigaction.c: Likewise.
  2912. * sysdeps/pthread/sigprocmask.c: New file.
  2913. * sysdeps/unix/sysv/linux/allocrtsig.c (current_rtmin): Define as
  2914. __SIGRTMIN+1.
  2915. * sysdeps/unix/sysv/linux/timer_routines.c (timer_helper_thread):
  2916. Block SIGTIMER. Also handle SI_TKILL events and terminate thread
  2917. in this case.
  2918. 2003-04-19 Ulrich Drepper <drepper@redhat.com>
  2919. * sysdeps/unix/sysv/linux/i386/dl-sysdep.h
  2920. (DL_SYSINFO_IMPLEMENTATION): Add .eh_frame information.
  2921. * sysdeps/unix/sysv/linux/unregister-atfork.c
  2922. (__unregister_atfork): Don't free memory not allocated dynamically.
  2923. * semaphore.h: Remove __THROW marker from cancellation points.
  2924. * nptl/sysdeps/pthread/pthread.h: Likewise.
  2925. 2003-04-18 Ulrich Drepper <drepper@redhat.com>
  2926. * sysdeps/pthread/pthread.h: Don't mark pthread_testcancel,
  2927. pthread_cancel, pthread_setcancelstate, and pthread_setcanceltype with
  2928. __THROW.
  2929. 2003-04-16 Jakub Jelinek <jakub@redhat.com>
  2930. * tst-cancel4.c (do_test): Use %zd instead of %d when printing cnt.
  2931. 2003-04-15 Roland McGrath <roland@redhat.com>
  2932. * forward.c (__pthread_unwind): Tweak to avoid warning.
  2933. 2003-04-15 Ulrich Drepper <drepper@redhat.com>
  2934. * pthreadP.h: Move THREAD_ATOMIC_* replacements to the top.
  2935. 2003-04-14 Ulrich Drepper <drepper@redhat.com>
  2936. * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: Don't
  2937. overflow CFA advance instructions.
  2938. * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: Likewise.
  2939. 2003-04-14 Jakub Jelinek <jakub@redhat.com>
  2940. * sysdeps/i386/tls.h: Rename LOCK to LOCK_PREFIX.
  2941. * sysdeps/i386/pthread_spin_lock.c: Likewise.
  2942. * sysdeps/x86_64/tls.h: Likewise. Define LOCK_PREFIX if not already
  2943. defined.
  2944. * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: Use
  2945. DW_CFA_advance_loc2 for .Laddl-.Lsubl.
  2946. * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Use
  2947. DW_CFA_advance_loc for .Laddl-.Lsubl.
  2948. 2003-04-13 Ulrich Drepper <drepper@redhat.com>
  2949. * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: Don't use
  2950. position-independent unwind data for static libraries.
  2951. Add missing unwind info. Add comments.
  2952. * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: Add unwind info.
  2953. * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: Likewise.
  2954. * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Likewise.
  2955. * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: Likewise.
  2956. 2003-04-12 Ulrich Drepper <drepper@redhat.com>
  2957. * Makefile: Make sure all cancellation points are compiled with
  2958. exception and asynchronous unwind tables.
  2959. * sysdeps/x86_64/tls.h (THREAD_SETMEM): Word around compiler bug
  2960. which mishandles loading of global object addresses in PIC.
  2961. (THREAD_SETMEM_NC): Likewise.
  2962. 2003-04-11 Ulrich Drepper <drepper@redhat.com>
  2963. * pthread.h: Define new data structure for cleanup buffer. Declare
  2964. new cleanup handler interfaces.
  2965. * descr.h: Include <unwind.h> if necessary. Define pthread_unwind_buf.
  2966. (struct pthread): Add cleanup_jmp_buf pointer. Define
  2967. HAVE_CLEANUP_JMP_BUF and not HAVE_CANCELBUF.
  2968. * pthreadP.h: Declare __pthread_unwind. Define __do_cancel to use
  2969. it. Declare old cleanup handler installation functions.
  2970. * cleanup.c: Rewrite. Install handler for unwind-based cleanup
  2971. handling.
  2972. * cleanup_defer.c: Likewise.
  2973. * cleanup_compat.c: New file. Old cleanup code.
  2974. * cleanup_def_compat.c: New file. Old cleanup code.
  2975. * pthread_create.c (start_thread): Initialize cleanup_jmp_buf element
  2976. if own thread descriptor.
  2977. * unwind.c: New file.
  2978. * forward.c: Add __pthread_unwind.
  2979. * init.c (pthread_functions): Add __pthread_unwind.
  2980. * sysdeps/pthread/pthread-functions.s (struct pthread_functions):
  2981. Add ptr___pthread_unwind.
  2982. * Versions [GLIBC_2.3.3] (libpthread): Export new cleanup handling
  2983. and unwind function.
  2984. * Makefile (libpthread-routines): Add cleanup_compat,
  2985. cleanup_def_compat, and unwind. Define CFLAGS to enable unwind
  2986. table generation if necessary.
  2987. * version.c: Record whether unwind support is compiled in.
  2988. * sysdeps/pthread/configure.in: Add checks for unwind unterfaces.
  2989. * sysdeps/pthread/bits/libc-lock.h: Add prototypes of the old cleanup
  2990. handler interfaces.
  2991. * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: Add quite a bit of
  2992. complication to generate unwind information for syscall wrappers.
  2993. * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Likewise.
  2994. * sysdeps/unix/sysv/linux/i386/bits/pthreadtypes.h: Define
  2995. __cleanup_fct_attribute.
  2996. * Makefile: Add rules to build and run tst-cleanup0.
  2997. * tst-cleanup0.c: New file.
  2998. * tst-cleanup0.expect: New file.
  2999. * pthread_create.c (deallocate_tsd): Don't take parameter. Adjust
  3000. caller. Optimize to avoid often unecessary local variable.
  3001. 2003-04-11 Roland McGrath <roland@redhat.com>
  3002. * Makefile ($(objpfx)multidir.mk): New target, generated makefile that
  3003. sets variable `multidir'; include that.
  3004. (generated): Add it.
  3005. ($(objpfx)$(multidir)/crti.o): New target.
  3006. [$(multidir) != .] (generated-dirs, extra-objs, omit-deps): Add it.
  3007. 2003-04-11 Ulrich Drepper <drepper@redhat.com>
  3008. * tst-attr2.c (do_test): Add cast to avoid warning.
  3009. * tst-mutex4.c (do_test): Likewise.
  3010. 2003-04-10 Ulrich Drepper <drepper@redhat.com>
  3011. * sysdeps/unix/sysv/linux/fork.c (__libc_fork): Reset CPU clocks
  3012. in child.
  3013. 2003-04-09 Ulrich Drepper <drepper@redhat.com>
  3014. * Makefile (tests): Add tst-detach1.
  3015. * tst-detach1.c: New file.
  3016. 2003-04-08 Ulrich Drepper <drepper@redhat.com>
  3017. * sysdeps/pthread/pthread.h: Remove duplicate
  3018. pthread_cleanup_{push,pop} definitions.
  3019. * tst-barrier2.c: Eliminate warnings.
  3020. * tst-cancel4.c: Likewise.
  3021. * tst-cond4.c: Likewise.
  3022. * tst-cond6.c: Likewise.
  3023. * tst-detach1.c: Likewise.
  3024. * tst-rwlock4.c: Likewise.
  3025. * tst-rwlock6.c: Likewise.
  3026. * tst-rwlock7.c: Likewise.
  3027. * tst-sem3.c: Likewise.
  3028. * tst-spin2.c: Likewise.
  3029. * tst-umask1.c: Likewise.
  3030. 2003-04-07 Ulrich Drepper <drepper@redhat.com>
  3031. * pthread_detach.c (pthread_detach): Fix test for invalid TID.
  3032. 2003-04-06 Ulrich Drepper <drepper@redhat.com>
  3033. * descr.h (struct pthread): Move cancelhandling member to the front.
  3034. 2003-04-05 Ulrich Drepper <drepper@redhat.com>
  3035. * sysdeps/unix/sysv/linux/register-atfork.c: Define malloc_prepare,
  3036. malloc_parent, and malloc_child statically.
  3037. (__register_atfork_malloc): New function.
  3038. (free_mem): Don't free any of the malloc_* variables on the list.
  3039. * sysdeps/unix/sysv/linux/fork.h: Declare __register_atfork_malloc.
  3040. Define HAVE_register_atfork_malloc.
  3041. 2003-04-04 Ulrich Drepper <drepper@redhat.com>
  3042. * sysdeps/pthread/createthread.c (create_thread): Add some more
  3043. comments explaining when to set multiple_threads and when not.
  3044. * pthreadP.h: Define THREAD_ATOMIC_CMPXCHG_VAL and
  3045. THREAD_ATOMIC_BIT_SET if not already defined.
  3046. * sysdeps/i386/tls.h: Define THREAD_ATOMIC_CMPXCHG_VAL and
  3047. THREAD_ATOMIC_BIT_SET:
  3048. * sysdeps/x86_64/tls.h: Likewise.
  3049. * cleanup_defer.c (_pthread_cleanup_push_defer): Rewrite to use
  3050. THREAD_ATOMIC_CMPXCHG_VAL.
  3051. (_pthread_cleanup_pop_restore): Likewise.
  3052. * cancellation.c (__pthread_enable_asynccancel): Likewise.
  3053. (__pthread_enable_asynccancel_2): Likewise.
  3054. (__pthread_disable_asynccancel): Likewise.
  3055. * libc-cancellation.c (__libc_enable_asynccancel): Likewise.
  3056. (__libc_disable_asynccancel): Likewise.
  3057. * init.c (sigcancel_handler): Likewise.
  3058. * pthread_setcancelstate.c (__pthread_setcancelstate): Likewise.
  3059. * pthread_setcanceltype.c (__pthread_setcanceltype): Likewise.
  3060. 2003-04-03 Ulrich Drepper <drepper@redhat.com>
  3061. * init.c (sigcancel_handler): Don't set EXITING_BIT here.
  3062. * libc-cancellation.c (__libc_enable_asynccancel): Likewise.
  3063. * pthreadP.h (__do_cancel): Set EXITING_BIT here.
  3064. * Makefile (tests): Add tst-cancel11.
  3065. * tst-cancel11.c: New file.
  3066. 2003-04-01 Ulrich Drepper <drepper@redhat.com>
  3067. * pthread_create.c (deallocate_tsd): Clear/free memory after the last
  3068. round, not the first. Use specific_used flag instead of local
  3069. found_nonzero variable. Use THREAD_[SG]ETMEM where possible.
  3070. (__free_tcb): Don't call deallocate_tsd here.
  3071. (start_thread): Call deallocate_tsd here.
  3072. * pthread_setspecific.c: Set specific_used flag really only when
  3073. needed.
  3074. * Makefile (tests): Add tst-tsd3.c and tst-tsd4.
  3075. * tst-tsd3.c: New file.
  3076. * tst-tsd4.c: New file.
  3077. 2003-03-31 Ulrich Drepper <drepper@redhat.com>
  3078. * sysdeps/unix/sysv/linux/ia64/lowlevellock.h (__lll_mutex_lock):
  3079. Use atomic_exchange_and_add instead of __lll_add.
  3080. (__lll_mutex_timedlock): Likewise.
  3081. Patch by Ian Wienand.
  3082. 2003-03-24 Steven Munroe <sjmunroe@us.ibm.com>
  3083. * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h
  3084. (SINGLE_THREAD_P): Fix typo.
  3085. * tst-cancel-wrappers.sh: Handle '.'ed symbols.
  3086. 2003-03-31 Ulrich Drepper <drepper@redhat.com>
  3087. * Makefile (tests): Add tst-align.
  3088. * tst-align.c: New file.
  3089. * sysdeps/i386/Makefile: Define CFLAGS-tst-align.
  3090. * sysdeps/i386/tls.h (CALL_THREAD_FCT): Align stack of called
  3091. function correctly.
  3092. * tst-tsd2.c: Add casts to avoid warnings.
  3093. 2003-03-30 Ulrich Drepper <drepper@redhat.com>
  3094. * descr.h (struct pthread): Move most often used elements to the front.
  3095. 2003-03-29 Ulrich Drepper <drepper@redhat.com>
  3096. * Makefile (libpthread-routines): Add pthread_atfork.
  3097. (libpthread-static-only-routines): Add pthread_atfork.
  3098. 2003-03-28 Kaz Kojima <kkojima@rr.iij4u.or.jp>
  3099. * sysdeps/sh/tls.h: Include nptl/descr.h after the definition
  3100. of TLS_DTV_AT_TP.
  3101. (INSTALL_DTV): Add parens.
  3102. (THREAD_GETMEM, THREAD_GETMEM_NC, THREAD_SETMEM, THREAD_SETMEM_NC):
  3103. Use passed descr instead of THREAD_SELF.
  3104. * sysdeps/unix/sysv/linux/sh/lowlevelmutex.S
  3105. (__lll_mutex_timedlock_wait): Correct expected value after
  3106. spurious wakeup.
  3107. * sysdeps/unix/sysv/linux/sh/pthread_cond_broadcast.S:
  3108. Release lock before waking up the waiters.
  3109. * sysdeps/unix/sysv/linux/sh/pthread_cond_wait.S: Correct exit
  3110. criteria. Reorderstruct passed to cleanup handler. Fix
  3111. handling of cancellation and failung pthread_mutex_unlock call.
  3112. Use __pthread_enable_asynccancel_2 instead of
  3113. __pthread_enable_asynccancel.
  3114. * sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S: Likewise.
  3115. Return result of lock re-get if it fails.
  3116. * sysdeps/unix/sysv/linux/sh/pthread_once.S: Fix wrong argument
  3117. for __pthread_cleanup_push.
  3118. * sysdeps/unix/sysv/linux/sh/pthread_rwlock_rdlock.S: Fix
  3119. completely broken rwlock implementation.
  3120. * sysdeps/unix/sysv/linux/sh/pthread_rwlock_wrlock.S: Likewise.
  3121. * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedrdlock.S: Likewise.
  3122. * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedwrlock.S: Likewise.
  3123. * sysdeps/unix/sysv/linux/sh/pthread_rwlock_unlock.S: Likewise.
  3124. * sysdeps/unix/sysv/linux/sh/pthread_rwlock_wrlock.S: Likewise.
  3125. * sysdeps/unix/sysv/linux/sh/sem_post.S: Fix error value. Use
  3126. versioned_symbol macro.
  3127. * sysdeps/unix/sysv/linux/sh/sem_trywait.S: Use versioned_symbol macro.
  3128. * sysdeps/unix/sysv/linux/sh/sem_wait.S: Likewise.
  3129. 2003-03-27 Ulrich Drepper <drepper@redhat.com>
  3130. * sysdeps/unix/sysv/linux/kernel-posix-timers.h: Don't declare
  3131. __timer_helper_thread. Declare __start_helper_thread, __helper_once,
  3132. and __helper_tid.
  3133. (struct timer): Remove th and bar field.
  3134. * sysdeps/unix/sysv/linux/timer_create.c (timer_create): Remove
  3135. debugging code. Create only one helper thread.
  3136. * sysdeps/unix/sysv/linux/timer_delete.c (timer_delete): Don't kill
  3137. helper thread.
  3138. * sysdeps/unix/sysv/linux/timer_routines.c (timer_helper_thread):
  3139. Renamed. Define statically. Use thread info from siginfo.
  3140. (__helper_once): New variable.
  3141. (__helper_tid): New variable.
  3142. (__reset_helper_control): New function.
  3143. (__start_helper_thread): New function.
  3144. * pthread_create.c (start_thread): Don't use setjmp inside
  3145. __builtin_expect to work around gcc bug.
  3146. * sysdeps/unix/sysv/linux/timer_delete.c (timer_delete): Even if
  3147. timer_delete syscall fails, but not with ENOSYS, set
  3148. __no_posix_timers.
  3149. * sysdeps/unix/sysv/linux/timer_settime.c [!__ASSUME_POSIX_TIMERS]
  3150. (timer_settime): Fix typo.
  3151. * sysdeps/unix/sysv/linux/timer_getoverr.c
  3152. [!__ASSUME_POSIX_TIMERS] (timer_getoverrun): Likewise.
  3153. 2003-03-27 Jakub Jelinek <jakub@redhat.com>
  3154. * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: Fix
  3155. offset of cleanupbuf.__prev.
  3156. 2003-03-26 Jakub Jelinek <jakub@redhat.com>
  3157. * sysdeps/unix/sysv/linux/timer_getoverr.c: Fix typo in name
  3158. of included file.
  3159. 2003-03-26 Ulrich Drepper <drepper@redhat.com>
  3160. * sysdeps/unix/sysv/linux/timer_create.c (timer_create): If EVP ==
  3161. NULL provide default definition to syscall.
  3162. 2003-03-25 Roland McGrath <roland@redhat.com>
  3163. * sysdeps/pthread/posix-timer.h (TIMER_MAX): Define if not defined.
  3164. (timer_id2ptr): Fix typo.
  3165. 2003-03-25 Ulrich Drepper <drepper@redhat.com>
  3166. * pthreadP.h: Define SIGCANCEL and SIGTIMER.
  3167. * sysdeps/i386/pthreaddef.h: Remove SIGCANCEL definition.
  3168. * sysdeps/ia64/pthreaddef.h: Likewise.
  3169. * sysdeps/powerpc/pthreaddef.h: Likewise.
  3170. * sysdeps/s390/pthreaddef.h: Likewise.
  3171. * sysdeps/sh/pthreaddef.h: Likewise.
  3172. * sysdeps/x86_64/pthreaddef.h: Likewise.
  3173. * init.c (__pthread_initialize_minimal): Block SIGTIMER.
  3174. * sysdeps/pthread/sigaction.c: Also prevent SIGTIMER handler from
  3175. being changed.
  3176. * sysdeps/pthread/pthread_sigmask.c (pthread_sigmask): Make sure
  3177. SIGTIMER is not unblocked.
  3178. * sysdeps/unix/sysv/linux/allocrtsig.c (current_rtmin): One more
  3179. RT signal taken.
  3180. * sysdeps/unix/sysv/linux/pthread_kill.c: Do not allow SIGTIMER to
  3181. be send.
  3182. * sysdeps/pthread/posix-timer.h (timer_id2ptr, timer_ptr2id): Just
  3183. pass pointer through as ID.
  3184. * sysdeps/unix/sysv/linux/bits/local_lim.h (TIMER_MAX): Removed.
  3185. * sysdeps/unix/sysv/linux/kernel-posix-timers.h: New file.
  3186. * sysdeps/unix/sysv/linux/timer_create.c: New file.
  3187. * sysdeps/unix/sysv/linux/timer_delete.c: New file.
  3188. * sysdeps/unix/sysv/linux/timer_getoverr.c: New file.
  3189. * sysdeps/unix/sysv/linux/timer_gettime.c: New file.
  3190. * sysdeps/unix/sysv/linux/timer_routines.c: New file.
  3191. * sysdeps/unix/sysv/linux/timer_settime.c: New file.
  3192. * sysdeps/unix/sysv/linux/ia64/Versions: New file.
  3193. * sysdeps/unix/sysv/linux/ia64/timer_create.c: New file.
  3194. * sysdeps/unix/sysv/linux/ia64/timer_delete.c: New file.
  3195. * sysdeps/unix/sysv/linux/ia64/timer_getoverr.c: New file.
  3196. * sysdeps/unix/sysv/linux/ia64/timer_gettime.c: New file.
  3197. * sysdeps/unix/sysv/linux/ia64/timer_settime.c: New file.
  3198. * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions: New file.
  3199. * sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_create.c: New file.
  3200. * sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_delete.c: New file.
  3201. * sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_getoverr.c: New file.
  3202. * sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_gettime.c: New file.
  3203. * sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_settime.c: New file.
  3204. * sysdeps/unix/sysv/linux/s390/s390-64/Versions: New file.
  3205. * sysdeps/unix/sysv/linux/s390/s390-64/timer_create.c: New file.
  3206. * sysdeps/unix/sysv/linux/s390/s390-64/timer_delete.c: New file.
  3207. * sysdeps/unix/sysv/linux/s390/s390-64/timer_getoverr.c: New file.
  3208. * sysdeps/unix/sysv/linux/s390/s390-64/timer_gettime.c: New file.
  3209. * sysdeps/unix/sysv/linux/s390/s390-64/timer_settime.c: New file.
  3210. * sysdeps/unix/sysv/linux/x86_64/Versions: New file.
  3211. * sysdeps/unix/sysv/linux/x86_64/compat-timer.h: New file.
  3212. * sysdeps/unix/sysv/linux/x86_64/timer_create.c: New file.
  3213. * sysdeps/unix/sysv/linux/x86_64/timer_delete.c: New file.
  3214. * sysdeps/unix/sysv/linux/x86_64/timer_getoverr.c: New file.
  3215. * sysdeps/unix/sysv/linux/x86_64/timer_gettime.c: New file.
  3216. * sysdeps/unix/sysv/linux/x86_64/timer_settime.c: New file.
  3217. * pthreadP.h: Remove FRAME_LEFT definition.
  3218. * cleanup.c (_pthread_cleanup_push): Don't check for reference to
  3219. already left frame. Programs which have this problem are not POSIX
  3220. compliant.
  3221. * cleanup_defer.c (_pthread_cleanup_push_defer): Likewise.
  3222. 2003-03-24 Ulrich Drepper <drepper@redhat.com>
  3223. * sysdeps/pthread/tst-timer.c: Check return values of the
  3224. functions we test.
  3225. 2003-03-23 Roland McGrath <roland@redhat.com>
  3226. * tst-tls3.c (do_test) [! HAVE___THREAD]: Don't test anything.
  3227. * tst-tls3mod.c: Likewise.
  3228. * tst-tls1.c: Likewise.
  3229. * tst-tls2.c: Likewise.
  3230. * tst-mutex5.c (do_test): Unlock before destroy, otherwise we invoke
  3231. undefined behavior.
  3232. * tst-join5.c (tf1, tf2): Add a cast.
  3233. * Makeconfig (includes): Append -I$(..)nptl to this variable.
  3234. * tst-barrier2.c (do_test) [! _POSIX_THREAD_PROCESS_SHARED]:
  3235. Don't test anything.
  3236. * tst-cond4.c: Likewise.
  3237. * tst-cond6.c: Likewise.
  3238. * tst-flock2.c: Likewise.
  3239. * tst-mutex4.c: Likewise.
  3240. * tst-rwlock4.c: Likewise.
  3241. * tst-signal1.c: Likewise.
  3242. * tst-spin2.c: Likewise.
  3243. * tst-cond11.c [! _POSIX_CLOCK_SELECTION]: Likewise.
  3244. * tst-mutex4.c: Use test-skeleton.c.
  3245. * tst-spin2.c: Likewise.
  3246. * tst-sysconf.c: Likewise.
  3247. * tst-barrier2.c: Likewise.
  3248. * tst-cond4.c: Likewise.
  3249. * tst-cond6.c: Likewise.
  3250. * tst-rwlock4.c: Likewise.
  3251. * tst-unload.c: Likewise.
  3252. * tst-flock2.c (do_test): Use return instead of exit.
  3253. 2003-03-22 Jakub Jelinek <jakub@redhat.com>
  3254. * sysdeps/unix/sysv/linux/fork.c (__fork): Add libc_hidden_def.
  3255. 2003-03-21 Ulrich Drepper <drepper@redhat.com>
  3256. * sysdeps/unix/sysv/linux/ia64/lowlevellock.h
  3257. (__lll_mutex_trylock): Use atomic_compare_and_exchange_val_acq
  3258. instead of __lll_compare_and_swap.
  3259. * sysdeps/unix/sysv/linux/ia64/pthread_once.c (__pthread_once):
  3260. Likewise.
  3261. Removed definition if __lll_compare_and_swap.
  3262. * cancellation.c: Adjust for new form of compare&exchange macros.
  3263. * cleanup_defer.c: Likewise.
  3264. * init.c: Likewise.
  3265. * libc-cancellation.c: Likewise.
  3266. * old_pthread_cond_broadcast.c: Likewise.
  3267. * old_pthread_cond_signal.c: Likewise.
  3268. * old_pthread_cond_timedwait.c: Likewise.
  3269. * old_pthread_cond_wait.c: Likewise.
  3270. * pthread_cancel.c: Likewise.
  3271. * pthread_create.c: Likewise.
  3272. * pthread_detach.c: Likewise.
  3273. * pthread_join.c: Likewise.
  3274. * pthread_key_delete.c: Likewise.
  3275. * pthread_setcancelstate.c: Likewise.
  3276. * pthread_setcanceltype.c: Likewise.
  3277. * pthread_timedjoin.c: Likewise.
  3278. * pthread_tryjoin.c: Likewise.
  3279. * sysdeps/pthread/createthread.c: Likewise.
  3280. 2003-03-20 Ulrich Drepper <drepper@redhat.com>
  3281. * sysdeps/unix/sysv/linux/ia64/lowlevellock.h: Include <atomic.h>.
  3282. Remove __lll_add, __lll_dec_if_positive, and __lll_test_and_set
  3283. definitions. Replace uses with calls to atomic_* functions.
  3284. * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Likewise.
  3285. * sysdeps/unix/sysv/linux/lowlevellock.c: Replace __lll_add and
  3286. __lll_test_and_set calls with atomic_exchange_and_add and
  3287. atomic_exchange calls respectively.
  3288. * sysdeps/unix/sysv/linux/sem_post.c: Likewise.
  3289. * sysdeps/unix/sysv/linux/sem_timedwait.c: Likewise.
  3290. * sysdeps/unix/sysv/linux/sem_trywait.c: Likewise.
  3291. * sysdeps/unix/sysv/linux/sem_wait.c: Likewise.
  3292. * sysdeps/unix/sysv/linux/ia64/pthread_once.c: Likewise.
  3293. * sysdeps/unix/sysv/linux/ia64/sem_port.c: Likewise.
  3294. * sysdeps/unix/sysv/linux/powerpc/pthread_once.c: Likewise.
  3295. * allocatestack.c (allocate_stack): Assume atomic_exchange_and_add
  3296. returns the old value.
  3297. 2003-03-20 Martin Schwidefsky <sky@mschwid3.boeblingen.de.ibm.com>
  3298. * sysdeps/s390/pthread_spin_lock.c (pthread_spin_lock): Use type
  3299. int for variable OLDVAL and correct inline assembler contraint.
  3300. * sysdeps/s390/pthread_spin_trylock.c (pthread_spin_trylock): Use
  3301. type int for variable OLD.
  3302. * sysdeps/s390/tls.h (TLS_MULTIPLE_THREADS_IN_TCB): Define it
  3303. only for s390-32.
  3304. * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h
  3305. (SINGLE_THREAD_P): Use global variable __local_multiple_threads
  3306. instead of multiple_threads field in the TCB.
  3307. 2003-03-19 Ulrich Drepper <drepper@redhat.com>
  3308. * sysdeps/i386/i686/bits/atomic.h: Removed.
  3309. * sysdeps/i386/i586/bits/atomic.h: Removed.
  3310. * sysdeps/i386/i486/bits/atomic.h: Removed. Moved to glibc.
  3311. * sysdeps/x86_64/bits/atomic.h: Removed. Moved to glibc.
  3312. * sysdeps/s390/bits/atomic.h: Removed. Moved to glibc.
  3313. * sysdeps/sh/bits/atomic.h: Removed. Moved to glibc.
  3314. * sysdeps/ia64/bits/atomic.h: Removed. Moved to glibc.
  3315. * sysdeps/powerpc/bits/atomic.h: Removed. Moved to glibc.
  3316. * atomic.h: Removed. Moved to glibc.
  3317. * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: Add
  3318. support for clock selection.
  3319. * sysdeps/pthread/pthread_cond_broadcast.c: Release lock before
  3320. signalling waiters.
  3321. 2003-03-18 Roland McGrath <roland@redhat.com>
  3322. * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h (__lll_test_and_set):
  3323. Add __lll_rel_instr first. Add memory clobber.
  3324. (lll_mutex_unlock): Use __lll_test_and_set.
  3325. From Paul Mackerras <paulus@samba.org>.
  3326. * sysdeps/powerpc/tls.h (TLS_MULTIPLE_THREADS_IN_TCB): Define
  3327. unconditionally.
  3328. * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h
  3329. (SINGLE_THREAD_P): Add `header.' prefix.
  3330. From Paul Mackerras <paulus@samba.org>.
  3331. * Versions (libpthread: GLIBC_2.3.2): Move pthread_tryjoin_np and
  3332. pthread_timedjoin_np to ...
  3333. (libpthread: GLIBC_2.3.3): ... here.
  3334. (libpthread: GLIBC_2.2): Move pthread_barrierattr_getpshared there too.
  3335. * sysdeps/pthread/pthread_cond_timedwait.c (__pthread_cond_timedwait):
  3336. Avoid shadowing VAL variable.
  3337. * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h (__lll_test_and_set):
  3338. New macro.
  3339. 2003-03-18 Ulrich Drepper <drepper@redhat.com>
  3340. * Makefile (tests): Add tst-cond11.
  3341. * tst-cond11.c: New file.
  3342. * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Reorder
  3343. struct passed to cleanup handler to eliminate one more
  3344. instruction.
  3345. * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: Likewise.
  3346. * sysdeps/unix/sysv/linux/x86_64/bits/pthreadtypes.h
  3347. (pthrad_cond_t): Replace __unused field with __clock.
  3348. * sysdeps/pthread/pthread_cond_wait.c: Release condvar lock before
  3349. waken all waiters in cleanup handler.
  3350. * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: Likewise.
  3351. * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Likewise.
  3352. * pthread_condattr_getclock.c: New file.
  3353. * pthread_condattr_setclock.c: New file.
  3354. * sysdeps/pthread/pthread.h: Declare these new functions.
  3355. * Versions [GLIBC_2.3.3] (libpthread): Add the new functions.
  3356. * Makefile (libpthread-routines): Add the new functions.
  3357. * sysdeps/unix/sysv/linux/internaltypes.h (struct pthread_condattr):
  3358. Renamed field to value. Document use of the bits.
  3359. * pthread_condattr_getpshared.c: Adjust for struct pthread_condattr
  3360. change.
  3361. * pthread_condattr_setpshared.c: Likewise.
  3362. * pthread_cond_init.c (__pthread_cond_init): Initialized __clock field.
  3363. * sysdeps/unix/sysv/linux/lowlevelcond.sym: Add cond_clock symbol.
  3364. * sysdeps/unix/sysv/linux/i386/bits/pthreadtypes.h (pthread_cond_t):
  3365. Add __clock field.
  3366. * sysdeps/unix/sysv/linux/ia64/bits/pthreadtypes.h: Likewise.
  3367. * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: Likewise.
  3368. * sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h: Likewise.
  3369. * sysdeps/unix/sysv/linux/sh/bits/pthreadtypes.h: Likewise.
  3370. * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S:
  3371. Implement clock selection.
  3372. * sysdeps/pthread/pthread_cond_timedwait.c: Likewise.
  3373. * pthread-errnos.sym: Add ENOSYS.
  3374. * sysdeps/unix/sysv/linux/bits/posix_opt.h: Define
  3375. _POSIX_CLOCK_SELECTION.
  3376. * sysdeps/unix/sysv/linux/i386/bits/posix_opt.h: Likewise.
  3377. * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: Remove
  3378. invalid .size directive.
  3379. 2003-03-17 Roland McGrath <roland@redhat.com>
  3380. * sysdeps/unix/sysv/linux/lowlevellock.c (__lll_lock_wait):
  3381. Formatting tweaks.
  3382. 2003-03-17 Ulrich Drepper <drepper@redhat.com>
  3383. * sysdeps/unix/sysv/linux/ia64/pthread_once.c: Use __builtin_expect.
  3384. Use __lll_add instead of spelling it out. Use protected symbol names.
  3385. * sysdeps/unix/sysv/linux/ia64/sem_post.c: Use __builtin_expect.
  3386. Use __lll_add.
  3387. * sysdeps/unix/sysv/linux/ia64/lowlevellock.h (__lll_compare_and_swap):
  3388. Renamed from lll_compare_and_swap. Use new name where necessary.
  3389. (__lll_add): Defined.
  3390. (__lll_dec_if_positive): Defined.
  3391. (__lll_test_and_set): Defined.
  3392. * sysdeps/ia64/pthread_spin_init.c: Removed.
  3393. * sysdeps/unix/sysv/linux/ia64/lowlevelmutex.c: Removed.
  3394. * sysdeps/unix/sysv/linux/ia64/sem_trywait.c: Removed.
  3395. * sysdeps/unix/sysv/linux/ia64/sem_wait.c: Removed.
  3396. * sysdeps/unix/sysv/linux/ia64/lowlevellock.c: Removed.
  3397. * sysdeps/unix/sysv/linux/ia64/libc-lowlevellock.c: Removed.
  3398. * sysdeps/unix/sysv/linux/ia64/libc-lowlevelmutex.c: Removed.
  3399. * sysdeps/unix/sysv/linux/ia64/sem_timedwait.c: Removed.
  3400. * sysdeps/ia64/bits/atomic.h: Add __builtin_expect where appropriate.
  3401. * sysdeps/ia64/pthread_spin_unlock.c (pthread_spin_unlock): Use
  3402. __sync_lock_release_si.
  3403. Patch by Jakub Jelinek.
  3404. * sysdeps/unix/sysv/linux/lowlevellock.c (__lll_timedlock_wait):
  3405. Fix timeout handling.
  3406. (__lll_timedwait_tid): Likewise.
  3407. (lll_unlock_wake_cb): Wake up other waiters if necessary.
  3408. Patch by Jakub Jelinek.
  3409. * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Pretty printing.
  3410. 2003-03-17 Roland McGrath <roland@redhat.com>
  3411. PowerPC port contributed by Paul Mackerras <paulus@samba.org>.
  3412. * sysdeps/pthread/pthread_spin_init.c: New file.
  3413. * sysdeps/pthread/pthread_spin_unlock.c: New file.
  3414. * sysdeps/powerpc/Makefile: New file.
  3415. * sysdeps/powerpc/pthread_spin_lock.c: New file.
  3416. * sysdeps/powerpc/pthread_spin_trylock.c: New file.
  3417. * sysdeps/powerpc/pthreaddef.h: New file.
  3418. * sysdeps/powerpc/tcb-offsets.sym: New file.
  3419. * sysdeps/powerpc/td_ta_map_lwp2thr.c: New file.
  3420. * sysdeps/powerpc/tls.h: New file.
  3421. * sysdeps/powerpc/bits/atomic.h: New file.
  3422. * sysdeps/unix/sysv/linux/libc-lowlevelmutex.c: New file.
  3423. * sysdeps/unix/sysv/linux/libc-lowlevellock.c: New file.
  3424. * sysdeps/unix/sysv/linux/lowlevellock.c: New file.
  3425. * sysdeps/unix/sysv/linux/lowlevelmutex.c: New file.
  3426. * sysdeps/unix/sysv/linux/sem_post.c: New file.
  3427. * sysdeps/unix/sysv/linux/sem_timedwait.c: New file.
  3428. * sysdeps/unix/sysv/linux/sem_trywait.c: New file.
  3429. * sysdeps/unix/sysv/linux/sem_wait.c: New file.
  3430. * sysdeps/unix/sysv/linux/powerpc/Makefile: New file.
  3431. * sysdeps/unix/sysv/linux/powerpc/createthread.c: New file.
  3432. * sysdeps/unix/sysv/linux/powerpc/fork.c: New file.
  3433. * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: New file.
  3434. * sysdeps/unix/sysv/linux/powerpc/pt-vfork.S: New file.
  3435. * sysdeps/unix/sysv/linux/powerpc/pthread_once.c: New file.
  3436. * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: New file.
  3437. * sysdeps/unix/sysv/linux/powerpc/bits/semaphore.h: New file.
  3438. * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h: New file.
  3439. * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: New file.
  3440. * sysdeps/unix/sysv/linux/ia64/lowlevellock.c: Use __gettimeofday,
  3441. not gettimeofday.
  3442. * sysdeps/unix/sysv/linux/ia64/lowlevelmutex.c: Likewise.
  3443. * sysdeps/unix/sysv/linux/ia64/sem_timedwait.c: Likewise.
  3444. * sysdeps/unix/sysv/linux/s390/lowlevellock.c: Likewise.
  3445. * sysdeps/unix/sysv/linux/s390/lowlevelmutex.c: Likewise.
  3446. * sysdeps/unix/sysv/linux/s390/sem_timedwait.c: Likewise.
  3447. 2003-03-17 Ulrich Drepper <drepper@redhat.com>
  3448. * sysdeps/pthread/pthread_cond_wait.c: Correct exit criteria.
  3449. * sysdeps/pthread/pthread_cond_timedwait.c: Likewise.
  3450. * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: Likewise.
  3451. * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Likewise.
  3452. Patch by Ewald Snel <ewald@rambo.its.tudelft.nl>.
  3453. 2003-03-16 Roland McGrath <roland@redhat.com>
  3454. * tst-fork4.c: Include <string.h>.
  3455. * tst-signal2.c: Likewise.
  3456. * tst-mutex5.c (do_test): exit -> return.
  3457. * tst-mutex2.c: Include <stdlib.h>.
  3458. 2003-03-16 Ulrich Drepper <drepper@redhat.com>
  3459. * sysdeps/unix/sysv/linux/i386/i486/lowlevelmutex.S
  3460. (__lll_mutex_timedlock_wait): Correct expected value after
  3461. spurious wakeup. Otherwise we would never wait again.
  3462. * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Work around red
  3463. zone versus inline asm stupidity. Use correct instructions.
  3464. * tst-rwlock6.c: Add some more status output.
  3465. 2003-03-15 Roland McGrath <roland@redhat.com>
  3466. * sysdeps/pthread/configure.in: New file.
  3467. * sysdeps/pthread/configure: New file (generated).
  3468. 2003-03-15 Ulrich Drepper <drepper@redhat.com>
  3469. * allocatestack.c (allocate_stack): Store the exact stack size of
  3470. user allocated stacks.
  3471. 2003-03-15 Jakub Jelinek <jakub@redhat.com>
  3472. * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h
  3473. (SINGLE_THREAD): Use `header' prefix instead of `header.data'.
  3474. * sysdeps/sh/tcb-offsets.sym (MULTIPLE_THREADS_OFFSET): Likewise.
  3475. * sysdeps/sh/tls.h (TLS_MULTIPLE_THREADS_IN_TCB): Define.
  3476. * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (SINGLE_THREAD_P):
  3477. Use `header.' prefix.
  3478. * sysdeps/ia64/tcb-offsets.sym (MULTIPLE_THREADS_OFFSET): Likewise.
  3479. 2003-03-15 Ulrich Drepper <drepper@redhat.com>
  3480. * sysdeps/x86_64/pthreaddef.h (CURRENT_STACK_FRAME): Don't use
  3481. __builtin_frame_address, use stack pointer.
  3482. * sysdeps/unix/sysv/linux/jmp-unwind.c: Use CURRENT_STACK_FRAME
  3483. instead of __builtin_frame_pointer.
  3484. 2003-03-14 Ulrich Drepper <drepper@redhat.com>
  3485. * tst-basic1.c (do_test): Add cast to avoid warning.
  3486. * tst-basic2.c (do_test): Likewise.
  3487. * sysdeps/unix/sysv/linux/x86_64/pthread_once.S: Use correct
  3488. amount of stack correction.
  3489. * tst-fork4.c: Use test-skeleton.c.
  3490. 2003-03-14 Roland McGrath <roland@redhat.com>
  3491. * init.c: Fix typo "#eli" for "#else".
  3492. 2003-03-14 Steven Munroe <sjmunroe@us.ibm.com>
  3493. * allocatestack.c (__stack_user): Use hidden_data_def.
  3494. * pthread_create.c (__pthread_keys): Likewise.
  3495. * init.c [__powerpc__] (__NR_set_tid_address): Define it.
  3496. 2003-03-14 Roland McGrath <roland@redhat.com>
  3497. * tst-fork4.c: New file.
  3498. * Makefile (tests): Add it.
  3499. * descr.h (struct pthread): Move the union out of [!TLS_DTV_AT_TP], so
  3500. we always define the padding space.
  3501. [!TLS_DTV_AT_TP]: Give tcbhead_t field a name, `header', since GCC
  3502. stopped supporting its own extensions fully.
  3503. [TLS_MULTIPLE_THREADS_IN_TCB]: Put `multiple_threads' inside a wrapper
  3504. struct also called `header', so `header.multiple_threads' is the field
  3505. name to use on all machines.
  3506. * allocatestack.c (allocate_stack): Use `header.' prefix.
  3507. * sysdeps/pthread/createthread.c (create_thread): Likewise.
  3508. * pthread_create.c (__pthread_create_2_1): Likewise.
  3509. * sysdeps/i386/tls.h (INSTALL_NEW_DTV, THREAD_DTV): Likewise.
  3510. (THREAD_SELF): Likewise.
  3511. * sysdeps/x86_64/tls.h: Likewise.
  3512. * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h
  3513. (SINGLE_THREAD_P): Likewise.
  3514. * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h
  3515. (SINGLE_THREAD_P): Likewise.
  3516. * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h
  3517. (SINGLE_THREAD_P): Likewise.
  3518. * sysdeps/s390/td_ta_map_lwp2thr.c (td_ta_map_lwp2thr): Use REGS[18]
  3519. value directly.
  3520. 2003-03-14 Ulrich Drepper <drepper@redhat.com>
  3521. * pthread_create.c (start_thread): Use CALL_THREAD_FCT if defined.
  3522. * sysdeps/i386/tls.h: Define CALL_THREAD_FCT.
  3523. * pthread_create.c (start_thread): setjmp is expected to return 0.
  3524. * sysdeps/x86_64/tls.h (THREAD_GETMEM): Mark asms volatile.
  3525. (THREAD_GETMEM_NC): Likewise.
  3526. 2003-03-13 Ulrich Drepper <drepper@redhat.com>
  3527. * allocatestack.c (allocate_stack): If MULTI_PAGE_ALIASING is defined
  3528. and the size of the stack which must be allocated is a multiple,
  3529. allocate one more page.
  3530. * sysdeps/i386/i686/Makefile: Don't define COLORING_INCREMENT, but
  3531. MULTI_PAGE_ALIASING.
  3532. 2003-03-13 Roland McGrath <roland@redhat.com>
  3533. * pthread_create.c (start_thread): Set EXITING_BIT after the
  3534. event-reporting (and destructors), not before.
  3535. 2003-03-13 Jakub Jelinek <jakub@redhat.com>
  3536. * sysdeps/unix/sysv/linux/ia64/lowlevellock.h (lll_futex_timed_wait,
  3537. lll_futex_wake): Declare register variables as long int instead of
  3538. unsigned long int. Patch by Ian Wienand <ianw@gelato.unsw.edu.au>.
  3539. Make syscall arguments clobbered by the syscall.
  3540. (lll_futex_wait): Define using lll_futex_timed_wait.
  3541. * sysdeps/ia64/td_ta_map_lwp2thr.c (td_ta_map_lwp2thr): Cast regs[13]
  3542. to void *.
  3543. * sysdeps/unix/sysv/linux/fork.c (__libc_fork): Only declare and set
  3544. PPID if [! NDEBUG].
  3545. * allocatestack.c (nptl_ncreated): Only declare if
  3546. COLORING_INCREMENT != 0.
  3547. * pthreadP.h (__pthread_enable_asynccancel_2): New prototype.
  3548. (__libc_enable_asynccancel_2): Remove prototype.
  3549. * sysdeps/unix/sysv/linux/ia64/fork.c (ARCH_FORK): Swap ptid and
  3550. ctid to match kernel.
  3551. 2003-03-12 Ulrich Drepper <drepper@redhat.com>
  3552. * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add
  3553. libc_multiple_threads.
  3554. * sysdeps/unix/sysv/linux/libc_pthread_init.c: Move definition of
  3555. __libc_multiple_threads to...
  3556. * sysdeps/unix/sysv/linux/libc_multiple_threads.c: ...here. New file.
  3557. * sysdeps/unix/sysv/linux/x86_64/sem_post.S: Remove unnecessary
  3558. versioning.
  3559. * sysdeps/unix/sysv/linux/x86_64/sem_trywait.S: Likewise.
  3560. * sysdeps/unix/sysv/linux/x86_64/sem_wait.S: Likewise.
  3561. * sysdeps/unix/sysv/linux/x86_64/pthread_once.S
  3562. (__pthread_once_internal): Define.
  3563. * sysdeps/unix/sysv/linux/i386/i486/sem_post.S: Use shlib-compat.h
  3564. macros instead of .symver directly.
  3565. * sysdeps/unix/sysv/linux/i386/i486/sem_trywait.S: Likewise.
  3566. * sysdeps/unix/sysv/linux/i386/i486/sem_wait.S: Likewise.
  3567. * sysdeps/x86_64/tls.h [__ASSEMBLER__]: Include tcb-offsets.h.
  3568. * sysdeps/x86_64/tcb-offsets.sym: New file.
  3569. * sysdeps/x86_64/Makefile: New file.
  3570. * sysdeps/i386/tcb-offsets.sym: Add SELF.
  3571. * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_rdlock.S: Use SELF
  3572. to access own pthread_t in TCB.
  3573. * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S:
  3574. Likewise.
  3575. * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S:
  3576. Likewise.
  3577. * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_wrlock.S: Likewise.
  3578. 2003-03-12 Roland McGrath <roland@redhat.com>
  3579. * pthread-errnos.sym: New file.
  3580. * Makefile (gen-as-const-headers): New variable, list that file.
  3581. * sysdeps/unix/sysv/linux/i386/i486/sem_wait.S: Include generated
  3582. header <pthread-errnos.h> instead of defining errno values here.
  3583. * sysdeps/unix/sysv/linux/i386/i486/sem_trywait.S: Likewise.
  3584. * sysdeps/unix/sysv/linux/i386/i486/sem_timedwait.S: Likewise.
  3585. * sysdeps/unix/sysv/linux/i386/i486/sem_post.S: Likewise.
  3586. * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_wrlock.S: Likewise.
  3587. * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S:
  3588. Likewise.
  3589. * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S:
  3590. Likewise.
  3591. * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_rdlock.S: Likewise.
  3592. * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: Likewise.
  3593. * sysdeps/unix/sysv/linux/i386/i486/lowlevelmutex.S: Likewise.
  3594. * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S: Likewise.
  3595. * sysdeps/unix/sysv/linux/x86_64/sem_wait.S: Likewise.
  3596. * sysdeps/unix/sysv/linux/x86_64/sem_trywait.S: Likewise.
  3597. * sysdeps/unix/sysv/linux/x86_64/sem_timedwait.S: Likewise.
  3598. * sysdeps/unix/sysv/linux/x86_64/sem_post.S: Likewise.
  3599. * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: Likewise.
  3600. * sysdeps/unix/sysv/linux/x86_64/lowlevelmutex.S: Likewise.
  3601. * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
  3602. * sysdeps/unix/sysv/linux/sh/sem_trywait.S: Likewise.
  3603. * sysdeps/unix/sysv/linux/sh/sem_timedwait.S: Likewise.
  3604. * sysdeps/unix/sysv/linux/sh/sem_post.S: Likewise.
  3605. * sysdeps/unix/sysv/linux/sh/sem_wait.S: Likewise.
  3606. * sysdeps/unix/sysv/linux/sh/pthread_rwlock_wrlock.S: Likewise.
  3607. * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedwrlock.S: Likewise.
  3608. * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedrdlock.S: Likewise.
  3609. * sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S: Likewise.
  3610. * sysdeps/unix/sysv/linux/sh/pthread_rwlock_rdlock.S: Likewise.
  3611. * sysdeps/unix/sysv/linux/sh/lowlevellock.S: Likewise.
  3612. * sysdeps/unix/sysv/linux/sh/lowlevelmutex.S: Likewise.
  3613. * sysdeps/i386/i486/pthread_spin_trylock.S: Likewise.
  3614. * sysdeps/x86_64/pthread_spin_trylock.S: Likewise.
  3615. * sysdeps/sh/pthread_spin_trylock.S: Likewise.
  3616. * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_rdlock.S: Likewise.
  3617. * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_wrlock.S: Likewise.
  3618. * sysdeps/unix/sysv/linux/fork.c: Add an assert to check that
  3619. CLONE_CHILD_SETTID worked.
  3620. 2003-03-12 Ulrich Drepper <drepper@redhat.com>
  3621. * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedrdlock.S: New
  3622. file.
  3623. * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedwrlock.S: New
  3624. file.
  3625. * sysdeps/unix/sysv/linux/x86_64/bits/pthreadtypes.h
  3626. (pthread_cond_t): Add padding.
  3627. * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_rdlock.S: New file.
  3628. * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_wrlock.S: New file.
  3629. * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_unlock.S: New file.
  3630. * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S
  3631. (__pthread_rwlock_timedwrlock): Add missing opcode suffix.
  3632. * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S
  3633. (__pthread_rwlock_timedrdlock): Likewise.
  3634. * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_wrlock.S
  3635. (__pthread_rwlock_wrlock): Likewise.
  3636. * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_rdlock.S
  3637. (__pthread_rwlock_rdlock): Likewise.
  3638. * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: New file.
  3639. * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: Return
  3640. result of lock re-get if it fails.
  3641. 2003-03-11 Ulrich Drepper <drepper@redhat.com>
  3642. * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Fix asm syntax.
  3643. * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
  3644. * sysdeps/unix/sysv/linux/x86_64/lowlevelmutex.S: Likewise.
  3645. * sysdeps/unix/sysv/linux/x86_64/pthread_cond_signal.S: Likewise.
  3646. * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: Likewise.
  3647. * sysdeps/unix/sysv/linux/x86_64/pthread_once.S: Likewise.
  3648. * sysdeps/unix/sysv/linux/x86_64/sem_post.S: Likewise.
  3649. * sysdeps/unix/sysv/linux/x86_64/sem_timedwait.S: Likewise.
  3650. * sysdeps/unix/sysv/linux/x86_64/sem_trywait.S: Likewise.
  3651. * sysdeps/unix/sysv/linux/x86_64/sem_wait.S: Likewise.
  3652. * sysdeps/x86_64/tls.h (THREAD_SELF, THREAD_GETMEM, THREAD_GETMEM_NC,
  3653. THREAD_SETMEM, THREAD_SETMEM_NC): Correct asm syntax.
  3654. * allocatestack.c [! TLS_MULTIPLE_THREADS_IN_TCB] (allocate_stack):
  3655. Initialize *__libc_multiple_threads_ptr not __libc_multiple_threads.
  3656. * sysdeps/pthread/createthread.c [! TLS_MULTIPLE_THREADS_IN_TCB]
  3657. (create_thread): Likewise.
  3658. Define __pthread_multiple_threads and __libc_multiple_threads_ptr.
  3659. * init.c (__pthread_initialize_minimal_internal): Initialize
  3660. __libc_multiple_threads_ptr if necessary.
  3661. * pthreadP.h: Adjust prototype for __libc_pthread_init. Declare
  3662. __pthread_multiple_threads and __libc_multiple_threads_ptr.
  3663. * sysdeps/unix/sysv/linux/libc_pthread_init.c: Define
  3664. __libc_multiple_threads.
  3665. (__libc_pthread_init): Return pointer to __libc_pthread_init if
  3666. necessary.
  3667. * sysdeps/i386/tls.h (THREAD_SETMEM): Fix one-byte variant.
  3668. (THREAD_SETMEM_NC): Likewise.
  3669. * sysdeps/x86_64/pthread_spin_trylock.c: Removed.
  3670. * sysdeps/x86_64/pthread_spin_trylock.S: New file.
  3671. * sysdeps/x86_64/pthread_spin_unlock.c: Removed.
  3672. * sysdeps/x86_64/pthread_spin_unlock.S: New file.
  3673. * sysdeps/i386/i486/pthread_spin_trylock.S (pthread_spin_trylock):
  3674. Eliminate one entire instruction.
  3675. * cancellation.c (__pthread_enable_asynccancel_2): New function.
  3676. * pthreadP.h: Declare __pthread_enable_asynccancel_2.
  3677. * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S
  3678. (__pthread_cond_timedwait): Use __pthread_enable_asynccancel_2
  3679. instead of __pthread_enable_asynccancel.
  3680. * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S
  3681. (__pthread_cond_wait): Likewise.
  3682. * sysdeps/pthread/pthread_cond_timedwait.c
  3683. (__pthread_cond_timedwait): Likewise.
  3684. * sysdeps/pthread/pthread_cond_wait.c (__pthread_cond_wait): Likewise.
  3685. * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S
  3686. (__condvar_cleanup): Wake up all waiters in case we got signaled
  3687. after being woken up but before disabling asynchronous
  3688. cancellation.
  3689. * sysdeps/pthread/pthread_cond_wait.c (__condvar_cleanup): Likewise.
  3690. * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S
  3691. (__condvar_cleanup): Likewise.
  3692. * init.c (__NR_set_tid_address): If already defined, don't redefine.
  3693. Make it an error if architecture has no #if case. Add x86-64.
  3694. * sysdeps/unix/sysv/linux/x86_64/Makefile: Add flags for
  3695. pt-initfini.s generation.
  3696. * sysdeps/x86_64/tls.h: Include <asm/prctl.h>.
  3697. (TLS_INIT_TP): Fix typo.
  3698. 2003-03-11 Jakub Jelinek <jakub@redhat.com>
  3699. * sysdeps/ia64/bits/atomic.h (atomic_exchange_and_add): Swap 2nd and
  3700. 3rd argument of __arch_compare_and_exchange_{32,64}_val_acq.
  3701. * sysdeps/unix/sysv/linux/ia64/sem_post.c: Include semaphore.h.
  3702. * sysdeps/unix/sysv/linux/ia64/sem_timedwait.c: Likewise.
  3703. * sysdeps/unix/sysv/linux/ia64/sem_trywait.c: Likewise.
  3704. * sysdeps/unix/sysv/linux/ia64/sem_wait.c: Likewise.
  3705. * sysdeps/unix/sysv/linux/s390/sem_post.c: Likewise.
  3706. * sysdeps/unix/sysv/linux/s390/sem_timedwait.c: Likewise.
  3707. * sysdeps/unix/sysv/linux/s390/sem_trywait.c: Likewise.
  3708. * sysdeps/unix/sysv/linux/s390/sem_wait.c: Likewise.
  3709. 2003-03-11 Ulrich Drepper <drepper@redhat.com>
  3710. * sysdeps/pthread/pthread_cond_timedwait.c
  3711. (__pthread_cond_timedwait): Return the result of the final
  3712. locking. If it succeeds, the regular function return value.
  3713. * sysdeps/pthread/pthread_cond_wait.c (__pthread_cond_wait):
  3714. Return result of the final locking.
  3715. * version.c (__nptl_main): Work around problems with the strange
  3716. INTERNAL_SYSCALL macro on ppc32.
  3717. * init.c (__pthread_initialize_minimal_internal): Unblock
  3718. SIGCANCEL in case the parent blocked it.
  3719. Reported by Paul Mackerras <paulus@samba.org>.
  3720. * sysdeps/unix/sysv/linux/x86_64/pthread_cond_broadcast.S: New file.
  3721. * sysdeps/unix/sysv/linux/x86_64/pthread_cond_signal.S: New file.
  3722. * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: New file.
  3723. 2003-03-11 Jakub Jelinek <jakub@redhat.com>
  3724. * sysdeps/pthread/pthread_cond_timedwait.c
  3725. (__pthread_cond_timedwait): Unlock and fail if
  3726. __pthread_mutex_unlock_internal failed.
  3727. * sysdeps/pthread/createthread.c (ARCH_CLONE): Define if not defined.
  3728. (create_thread): Only assert PD->tcb != NULL under [TLS_TCB_AT_TP].
  3729. Use ARCH_CLONE.
  3730. * allocatestack.c (ALLOCATE_STACK_PARMS): New macro.
  3731. [NEED_SEPARATE_REGISTER_STACK] (STACK_VARIABLES,
  3732. STACK_VARIABLES_ARGS, STACK_VARIABLES_PARMS, ALLOCATE_STACK_PARMS,
  3733. ALLOCATE_STACK): New macros.
  3734. (TLS_TPADJ): New macro.
  3735. (get_cached_stack, queue_stack, __deallocate_stack): Use TLS_TPADJ.
  3736. (allocate_stack): Handle TLS_DTV_AT_TP and
  3737. NEED_SEPARATE_REGISTER_STACK. Use TLS_TPADJ.
  3738. * pthread_create.c (__pthread_create_2_1) [! TLS_TCB_AT_TP]:
  3739. Don't set PD->self.
  3740. * init.c [__ia64__] (__NR_set_tid_address): Define.
  3741. * sysdeps/unix/sysv/linux/ia64/bits/pthreadtypes.h: New file.
  3742. * sysdeps/unix/sysv/linux/ia64/bits/semaphore.h: New file.
  3743. * sysdeps/unix/sysv/linux/ia64/fork.c: New file.
  3744. * sysdeps/unix/sysv/linux/ia64/createthread.c: New file.
  3745. * sysdeps/unix/sysv/linux/ia64/libc-lowlevellock.c: New file.
  3746. * sysdeps/unix/sysv/linux/ia64/libc-lowlevelmutex.c: New file.
  3747. * sysdeps/unix/sysv/linux/ia64/lowlevellock.c: New file.
  3748. * sysdeps/unix/sysv/linux/ia64/lowlevellock.h: New file.
  3749. * sysdeps/unix/sysv/linux/ia64/lowlevelmutex.c: New file.
  3750. * sysdeps/unix/sysv/linux/ia64/pt-initfini.c: New file.
  3751. * sysdeps/unix/sysv/linux/ia64/pt-vfork.S: New file.
  3752. * sysdeps/unix/sysv/linux/ia64/pthread_once.c: New file.
  3753. * sysdeps/unix/sysv/linux/ia64/sem_post.c: New file.
  3754. * sysdeps/unix/sysv/linux/ia64/sem_timedwait.c: New file.
  3755. * sysdeps/unix/sysv/linux/ia64/sem_trywait.c: New file.
  3756. * sysdeps/unix/sysv/linux/ia64/sem_wait.c: New file.
  3757. * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h: New file.
  3758. * sysdeps/ia64/bits/atomic.h: New file.
  3759. * sysdeps/ia64/Makefile: New file.
  3760. * sysdeps/ia64/pthread_spin_init.c: New file.
  3761. * sysdeps/ia64/pthread_spin_lock.c: New file.
  3762. * sysdeps/ia64/pthread_spin_trylock.c: New file.
  3763. * sysdeps/ia64/pthread_spin_unlock.c: New file.
  3764. * sysdeps/ia64/pthreaddef.h: New file.
  3765. * sysdeps/ia64/tcb-offsets.sym: New file.
  3766. * sysdeps/ia64/td_ta_map_lwp2thr.c: New file.
  3767. * sysdeps/ia64/tls.h: New file.
  3768. * sysdeps/s390/pthreaddef.h (__exit_thread_inline): Pass 1 argument
  3769. to syscall instead of no arguments.
  3770. 2003-03-10 Ulrich Drepper <drepper@redhat.com>
  3771. * sysdeps/unix/sysv/linux/x86_64/sem_post.S: New file.
  3772. * sysdeps/unix/sysv/linux/x86_64/sem_trywait.S: New file.
  3773. * sysdeps/unix/sysv/linux/x86_64/sem_wait.S: New file.
  3774. * sysdeps/unix/sysv/linux/x86_64/sem_timedwait.S: New file.
  3775. * sysdeps/unix/sysv/linux/i386/i486/sem_post.S: Fix error value in
  3776. unused code.
  3777. * sysdeps/unix/sysv/linux/x86_64/pthread_barrier_wait.S: New file
  3778. * sysdeps/unix/sysv/linux/Makefile (gen-as-const-headers): Add
  3779. lowlevelbarrier.sym.
  3780. * sysdeps/unix/sysv/linux/lowlevelbarrier.sym: New file.
  3781. * sysdeps/unix/sysv/linux/i386/i486/pthread_barrier_wait.S:
  3782. Include lowlevelbarrier.h and don't define offsets locally.
  3783. * sysdeps/unix/sysv/linux/sh/pthread_barrier_wait.S: Likewise.
  3784. * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h
  3785. (__lll_mutex_lock_wait): Reverse order of first two parameters.
  3786. (__lll_mutex_timedlock_wait): Likewise.
  3787. (lll_mutex_lock): Adjust asm for that.
  3788. (lll_mutex_timedlock): Likewise. Mark cx, cc, r10 as clobbered.
  3789. (lll_lock): Adjust asm for operand order change.
  3790. * sysdeps/unix/sysv/linux/x86_64/lowlevelmutex.S: New file.
  3791. * sysdeps/unix/sysv/linux/x86_64/libc-lowlevelmutex.S: New file.
  3792. * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (__lll_lock_wait):
  3793. Reverse order of parameters.
  3794. (__lll_timedwait_tid): Remove regparms attribute.
  3795. * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: New file.
  3796. * sysdeps/unix/sysv/linux/x86_64/libc-lowlevellock.S: New file.
  3797. * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S
  3798. (__lll_timedwait_tid): Remove one unnecessary instruction.
  3799. * sysdeps/unix/sysv/linux/sh/lowlevelmutex.S: Define
  3800. __lll_mutex_timedlock_wait only for NOT_IN_libc.
  3801. * sysdeps/unix/sysv/linux/sh/libc-lowlevelmutex.S: Include
  3802. lowlevelmutex.S.
  3803. * sysdeps/unix/sysv/linux/sh/lowlevellock.S: Define
  3804. lll_unlock_wake_cb, __lll_wait_tid, and __lll_timedwait_tid only
  3805. for NOT_IN_libc.
  3806. * sysdeps/unix/sysv/linux/sh/libc-lowlevellock.S: Include
  3807. lowlevellock.S.
  3808. * sysdeps/unix/sysv/linux/i386/i486/lowlevelmutex.S: Don't define
  3809. LOCK is already defined. Don't define __lll_mutex_timedlock_wait
  3810. for libc.so.
  3811. * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevelmutex.S: Only
  3812. define LOCK here (if UP is not defined). The actual code is in
  3813. lowlevelmutex.S.
  3814. * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S: Don't define
  3815. LOCK is already defined. Don't define lll_unlock_wake_cb and
  3816. __lll_timedwait_tid for libc.so.
  3817. * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S: Only
  3818. define LOCK here (if UP is not defined). The actual code is in
  3819. lowlevellock.S.
  3820. * sysdeps/unix/sysv/linux/i386/lowlevelsem.h: Not needed anymore.
  3821. * sysdeps/unix/sysv/linux/s390/lowlevelsem.h: Likewise.
  3822. * sysdeps/unix/sysv/linux/s390/sem_post.c: Include lowlevellock.h
  3823. instead of lowlevelsem.h.
  3824. * sysdeps/unix/sysv/linux/s390/sem_timedwait.c: Likewise.
  3825. * sysdeps/unix/sysv/linux/s390/sem_trywait.c: Likewise.
  3826. * sysdeps/unix/sysv/linux/s390/sem_wait.c: Likewise.
  3827. * sysdeps/unix/sysv/linux/Makefile (gen-as-const-headers): Add
  3828. lowlevelrwlock.sym.
  3829. * sysdeps/unix/sysv/linux/lowlevelrwlock.sym: New file.
  3830. * sysdeps/unix/sysv/linux/i386/lowlevelrwlock.h: Removed.
  3831. * sysdeps/unix/sysv/linux/sh/lowlevelrwlock.h: Removed.
  3832. * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (lll_trylock): Fix
  3833. register loading.
  3834. * sysdeps/unix/sysv/linux/i386/lowlevellock.h (lll_trylock): Undo
  3835. last changed. D'oh.
  3836. * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: New file.
  3837. * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Remove declaration
  3838. of __libc_locking_needed.
  3839. (lll_trylock): Initialize %eax to zero.
  3840. * sysdeps/unix/sysv/linux/x86_64/bits/pthreadtypes.h: Update
  3841. pthread_cond_t definition.
  3842. 2003-03-10 Roland McGrath <roland@redhat.com>
  3843. * sysdeps/unix/sysv/linux/lowlevelcond.sym: New file.
  3844. * sysdeps/unix/sysv/linux/Makefile (gen-as-const-headers): Add it.
  3845. * sysdeps/unix/sysv/linux/sh/lowlevelcond.h: File removed.
  3846. * sysdeps/unix/sysv/linux/i386/lowlevelcond.h: Likewise.
  3847. * sysdeps/unix/sysv/linux/x86_64/lowlevelcond.h: Likewise.
  3848. * allocatestack.c (allocate_stack) [!TLS_MULTIPLE_THREADS_IN_TCB]:
  3849. Instead of setting PD->multiple_threads, set globals
  3850. __pthread_multiple_threads and __libc_multiple_threads.
  3851. * sysdeps/pthread/createthread.c (create_thread): Likewise.
  3852. * sysdeps/i386/tls.h (TLS_MULTIPLE_THREADS_IN_TCB): Define it.
  3853. * sysdeps/s390/tls.h (TLS_MULTIPLE_THREADS_IN_TCB): Likewise.
  3854. * descr.h (struct pthread): Conditionalize first member on
  3855. [!TLS_DTV_AT_TP]. Replace the `header' member with an anonymous union
  3856. containing an anonymous tcbhead_t. Move `list' member out.
  3857. [TLS_MULTIPLE_THREADS_IN_TCB]: Define a `multiple_threads' member.
  3858. * allocatestack.c: Remove use of `header.data.' prefix.
  3859. * pthread_create.c: Likewise.
  3860. * init.c (__pthread_initialize_minimal_internal): Likewise.
  3861. * sysdeps/pthread/createthread.c (create_thread): Likewise.
  3862. * sysdeps/i386/tls.h (INSTALL_DTV): Add parens.
  3863. (THREAD_SELF, THREAD_DTV, INSTALL_NEW_DTV): No `header.data.' prefix.
  3864. * sysdeps/x86_64/tls.h: Likewise.
  3865. * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h
  3866. (SINGLE_THREAD_P): Likewise.
  3867. * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h
  3868. (SINGLE_THREAD_P): Likewise.
  3869. * sysdeps/i386/tls.h (tcbhead_t): Remove `list' member.
  3870. * sysdeps/s390/tls.h (tcbhead_t): Likewise.
  3871. 2003-03-09 Ulrich Drepper <drepper@redhat.com>
  3872. * sysdeps/unix/sysv/linux/x86_64/lowlevelcond.h: New file.
  3873. * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: New file.
  3874. * sysdeps/unix/sysv/linux/x86_64/fork.c: New file.
  3875. * sysdeps/unix/sysv/linux/x86_64/pthread_once.S: Fix many
  3876. leftovers from the ia32 code.
  3877. * sysdeps/unix/sysv/linux/i386/pthread_once.S: Remove unneccessary
  3878. memory load.
  3879. (clear_once_control): Don't load %esi.
  3880. * sysdeps/x86_64/tls.h: Remove all traces of segment descriptor
  3881. handling.
  3882. * sysdeps/unix/sysv/linux/x86_64/fork.c: New file.
  3883. * sysdeps/unix/sysv/linux/s390/createthread.c: Moved to...
  3884. * sysdeps/unix/sysv/linux/createthread.c: ...here.
  3885. * Makefile (tests): Add tst-cond10.
  3886. * tst-cond10.c: New file.
  3887. 2003-03-08 Ulrich Drepper <drepper@redhat.com>
  3888. * tst-tls2.c (do_test): Add TEMP_FAILURE_RETRY around sem_wait call.
  3889. * tst-signal3.c (do_test): Likewise.
  3890. * tst-sem5.c (do_test): Likewise.
  3891. * tst-kill6.c (do_test): Likewise.
  3892. * tst-tls3.c (do_test): Likewise. Include <errno.h>.
  3893. * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Use add/sub instead
  3894. of inc/dec.
  3895. * sysdeps/unix/sysv/linux/i386/lowlevelsem.h: Likewise.
  3896. * sysdeps/unix/sysv/linux/i386/pthread_once.S: Likewise
  3897. * sysdeps/unix/sysv/linux/i386/i486/sem_timedwait.S: Likewise.
  3898. * sysdeps/unix/sysv/linux/i386/i486/sem_post.S: Likewise.
  3899. * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_wrlock.S: Likewise.
  3900. * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_unlock.S: Likewise.
  3901. * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S:
  3902. Likewise.
  3903. * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S:
  3904. Likewise.
  3905. * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_rdlock.S: Likewise.
  3906. * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Likewise.
  3907. * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: Likewise.
  3908. * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S: Likewise.
  3909. * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_broadcast.S: Likewise.
  3910. * sysdeps/unix/sysv/linux/i386/i486/pthread_barrier_wait.S: Likewise.
  3911. * sysdeps/unix/sysv/linux/i386/i486/lowlevelmutex.S: Likewise.
  3912. * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S: Likewise.
  3913. * allocatestack.c (allocate_stack): If mprotect() fails free the
  3914. TLS memory.
  3915. 2003-03-07 Ulrich Drepper <drepper@redhat.com>
  3916. * sysdeps/i386/i486/bits/atomic.h: Fix a few unused definitions.
  3917. * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Remove all trace of
  3918. lll_wake_tid. This was used only to work around kernel limits in
  3919. the early days.
  3920. * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
  3921. * sysdeps/unix/sysv/linux/sh/libc-lowlevellock.S: Likewise.
  3922. * sysdeps/unix/sysv/linux/sh/lowlevellock.S: Likewise.
  3923. * sysdeps/unix/sysv/linux/sh/lowlevellock.h: Likewise.
  3924. * init.c (__static_tls_align_m1): Renamed from __static_tls_align.
  3925. (__pthread_initialize_minimal_internal): Change initialization of
  3926. __static_tls_align_m1 appropriately.
  3927. * pthreadP.h (__static_tls_align_m1): Renamed from
  3928. __static_tls_align.
  3929. * allocatestack.c (allocate_stack): Use __static_tls_align_m1
  3930. instead of __static_tls_align-1.
  3931. 2003-03-04 Ulrich Drepper <drepper@redhat.com>
  3932. * sysdeps/unix/sysv/linux/x86_64/Makefile: New file.
  3933. * pthread_create.c: Define __pthread_keys using nocommon
  3934. attribute, not by placing it explicitly in bss.
  3935. Remove DEFINE_DEALLOC definition. Not needed anymore.
  3936. * allocatestack.c: Define ARCH_MAP_FLAGS if not already defined.
  3937. Use it in mmap call to allocate stacks.
  3938. * sysdeps/pthread/createthread.c (create_thread): Fix comment.
  3939. * pthread_create.c (start_thread): Use THREAD_SETMEM to store
  3940. result of the thread function.
  3941. 2003-03-03 Ulrich Drepper <drepper@redhat.com>
  3942. * sysdeps/unix/sysv/linux/s390/dl-sysdep.h: Removed. The generic
  3943. version is just fine.
  3944. * sysdeps/unix/sysv/linux/libc_pthread_init.c
  3945. (__pthread_child_handler): Renamed from pthread_child_handler,
  3946. exported, and marked hidden. Change all users.
  3947. * sysdeps/unix/sysv/linux/register-atfork.c (free_mem): Do not
  3948. free __pthread_child_handler from child list.
  3949. 2003-03-03 Martin Schwidefsky <schwidefsky@de.ibm.com>
  3950. * atomic.h (atomic_exchange_and_add): Return newval, not oldval.
  3951. * sysdeps/pthread/pthread_cond_timedwait.c (__pthread_cond_timedwait):
  3952. Fix handling of cancellation and failing pthread_mutex_unlock call.
  3953. * sysdeps/pthread/pthread_cond_wait.c (__condvar_cleanup): Likewise.
  3954. (__pthread_cond_wait): Likewise.
  3955. * sysdeps/pthread/pthread_rwlock_timedrdlock.c
  3956. (pthread_rwlock_timedrdlock): Fix clobber of result variable by
  3957. lll_futex_timed_wait call.
  3958. * sysdeps/pthread/pthread_rwlock_timedwrlock.c
  3959. (pthread_rwlock_timedwrlock): Likewise.
  3960. * sysdeps/unix/sysv/linux/s390/libc-lowlevellock.c (___lll_lock):
  3961. Don't define lll_unlock_wake_cb and ___lll_timedwait_tid in libc.so.
  3962. * sysdeps/unix/sysv/linux/s390/lowlevellock.c: Remove XXX comments.
  3963. * sysdeps/unix/sysv/linux/s390/sem_post.c (__new_sem_post): Fix
  3964. check of lll_futex_wake return value.
  3965. 2003-03-03 Roland McGrath <roland@redhat.com>
  3966. * forward.c: Fix typo in __pthread_attr_init_2_0 compat_symbol decl.
  3967. * sysdeps/pthread/pthread-functions.h (struct pthread_functions):
  3968. Argument to ptr___pthread_cleanup_upto is __jmp_buf, not jmp_buf.
  3969. * sysdeps/unix/sysv/linux/jmp-unwind.c: Likewise.
  3970. 2003-03-02 Ulrich Drepper <drepper@redhat.com>
  3971. * sysdeps/pthread/timer_create.c (timer_create): Return correct
  3972. error for CPU clocks.
  3973. * sysdeps/unix/sysv/linux/bits/posix_opt.h: Define
  3974. _POSIX_MONOTONIC_CLOCK.
  3975. * sysdeps/unix/sysv/linux/i386/bits/posix_opt.h: Likewise.
  3976. * tst-cancel4.c (tf_sleep): Lower sleep time a bit to not upset
  3977. recent kernels.
  3978. 2003-03-01 Ulrich Drepper <drepper@redhat.com>
  3979. * descr.h (struct pthread): Move cleanup field to the front.
  3980. 2003-03-01 Roland McGrath <roland@redhat.com>
  3981. * sem_open.c (sem_open): Braino fix.
  3982. 2003-03-01 Ulrich Drepper <drepper@redhat.com>
  3983. * sysdeps/i386/tcb-offsets.sym: Add CLEANUP and CLEANUP_PREV.
  3984. * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Inline
  3985. __pthread_cleanup_pop functionality.
  3986. * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: Likewise.
  3987. * descr.h (struct pthread): Move tid field to the front now that
  3988. it is often used.
  3989. * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevelmutex.S
  3990. (__lll_mutex_timedlock_wait): Remove.
  3991. (__lll_mutex_unlock_wake): Don't save, load, and restore %esi.
  3992. * sysdeps/unix/sysv/linux/i386/i486/lowlevelmutex.S
  3993. (__lll_mutex_unlock_wake): Don't save, load, and restore %esi.
  3994. * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S
  3995. (lll_unlock_wake_cb): Don't save and restore %esi.
  3996. (__lll_unlock_wake): Add alignment. Don't save, load, and restore
  3997. %esi.
  3998. (__lll_timedwait_tid): Add alignment.
  3999. * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S
  4000. (__lll_unlock_wake): Add alignment. Don't save, load, and restore
  4001. %esi.
  4002. (__lll_timedwait_tid): Removed.
  4003. * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_broadcast.S
  4004. (__pthread_cond_broadcast): Don't save, load, and restore %esi.
  4005. * sysdeps/unix/sysv/linux/i386/i486/pthread_barrier_wait.S
  4006. (pthread_barrier_wait): Don't save, load, and restore %esi for
  4007. last thread.
  4008. * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S
  4009. (__pthread_cond_signal): Don't save, load, and restore %esi.
  4010. * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_unlock.S
  4011. (__pthread_rwlock_unlock): Don't save, load, and restore %esi.
  4012. * sysdeps/unix/sysv/linux/i386/i486/sem_post.S (__new_sem_post):
  4013. Don't save, load, and restore %esi.
  4014. 2003-02-27 Ulrich Drepper <drepper@redhat.com>
  4015. * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_broadcast.S:
  4016. Release lock before waking up the waiters.
  4017. * tst-exit1.c (do_test): Don't start more than one thread in parallel.
  4018. * tst-rwlock9.c (writer_thread): Correct adding TIMEOUT.
  4019. (reader_thread): Likewise.
  4020. * sysdeps/pthread/pthread_rwlock_unlock.c
  4021. (__pthread_rwlock_unlock): Release internal lock early. Don't try
  4022. to wake up readers if there are none.
  4023. * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_unlock.S:
  4024. Release internal lock before wake threads.
  4025. 2003-02-26 Ulrich Drepper <drepper@redhat.com>
  4026. * Makefile (tests): Add tst-rwlock10 and tst-rwlock11.
  4027. * tst-rwlock8.c: Initialize lock with INIT. Allow INIT to be
  4028. predefined.
  4029. * tst-rwlock9.c: Likewise.
  4030. * tst-rwlock10.c: New file.
  4031. * tst-rwlock11.c: New file.
  4032. * Makefile (tests): Add tst-dlsym1.
  4033. * tst-dlsym1.c: New file.
  4034. * init.c (__pthread_initialize_minimal_internal): Set
  4035. GL(dl_error_catch_tsd) to __libc_dl_error_tsd.
  4036. * Versions (libc:GLIBC_PRIVATE): Export __libc_dl_error_tsd.
  4037. 2003-02-24 Ulrich Drepper <drepper@redhat.com>
  4038. * sem_open.c (sem_open): Fix handling of O_CREAT without O_EXCL.
  4039. * tst-cond2.c: Fix sychronization with child.
  4040. * tst-rwlock8.c (reader_thread): Remove unused variable.
  4041. * Makefile: Add rules to build and run tst-tls3.
  4042. * tst-tls3.c: New file.
  4043. * tst-tls3mod.c: New file.
  4044. * Makefile (tests): Add tst-rwlock8 and tst-rwlock9.
  4045. * tst-rwlock8.c: New file.
  4046. * tst-rwlock9.c: New file.
  4047. * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_rdlock.S: Fix
  4048. complete broken rwlock implementation.
  4049. * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S:
  4050. Likewise.
  4051. * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S:
  4052. Likewise.
  4053. * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_unlock.S: Likewise.
  4054. * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_wrlock.S: Likewise.
  4055. * sysdeps/pthread/pthread_rwlock_rdlock.c: Likewise.
  4056. * sysdeps/pthread/pthread_rwlock_timedrdlock.c: Likewise.
  4057. * sysdeps/pthread/pthread_rwlock_timedwrlock.c: Likewise.
  4058. * sysdeps/pthread/pthread_rwlock_unlock.c: Likewise.
  4059. * sysdeps/pthread/pthread_rwlock_wrlock.c: Likewise.
  4060. 2003-02-23 Roland McGrath <roland@redhat.com>
  4061. * Makefile (nptl-version): Change regexp so case sensitivity is ok.
  4062. 2003-02-23 Ulrich Drepper <drepper@redhat.com>
  4063. * Makefile (tests): Add tst-context1.
  4064. * tst-context1.c: New file.
  4065. * Makefile (tests): Add tst-tls1 and tst-tls2.
  4066. * tst-tls1.c: New file.
  4067. * tst-tls2.c: New file.
  4068. * libc-cancellation.c (__libc_enable_asynccancel): Correct test
  4069. for failed cmpxchg.
  4070. * pthread_create.c (start_thread): Set EXITING_BIT early.
  4071. * sysdeps/i386/tls.h (THREAD_GETMEM): Mark asm as volatile.
  4072. (THREAD_GETMEM_NC): Likewise.
  4073. 2003-02-22 Ulrich Drepper <drepper@redhat.com>
  4074. * sysdeps/unix/sysv/linux/i386/i486/pthread_barrier_wait.S: Shave
  4075. off 3 more bytes by using offset-less instructions when possible.
  4076. * Makefile: Add dependency for $(objpfx)version.d.
  4077. * eintr.c (eintr_source): Add unnecessary return but the compiler
  4078. insists.
  4079. * tst-kill3.c: Include <unistd.h>.
  4080. 2003-02-21 Roland McGrath <roland@redhat.com>
  4081. * pthread_create.c (start_thread): Call __libc_thread_freeres.
  4082. 2003-02-21 Ulrich Drepper <drepper@redhat.com>
  4083. * Makefile (tests): Add tst-eintr1.
  4084. (distribute): Add eintr.c.
  4085. * tst-eintr1.c: New file.
  4086. * eintr.c: New file.
  4087. * pthread_cancel.c (pthread_cancel): Use tkill directly.
  4088. * sysdeps/unix/sysv/linux/pthread_kill.c (__pthread_kill):
  4089. Disallow sending SIGCANCEL.
  4090. * Makefile (tests): Remove tst-basic7. Add tst-kill1, tst-kill2,
  4091. tst-kill3, tst-kill4, tst-kill5, tst-kill6.
  4092. * tst-kill1.c: New file.
  4093. * tst-kill2.c: New file.
  4094. * tst-kill3.c: New file.
  4095. * tst-kill5.c: New file.
  4096. * tst-kill6.c: New file.
  4097. * tst-basic7.c: Renamed to...
  4098. * tst-kill4.c: ...this.
  4099. 2003-02-21 Roland McGrath <roland@redhat.com>
  4100. * Makefile (install-lib-ldscripts): New variable.
  4101. 2003-02-21 Ulrich Drepper <drepper@redhat.com>
  4102. * pthreadP.h: Define INVALID_TD_P and INVALID_NOT_TERMINATED_TD_P.
  4103. * pthread_cancel.c: Use INVALID_TD_P.
  4104. * pthread_detach.c: Likewise.
  4105. * pthread_getschedparam.c: Likewise.
  4106. * pthread_setschedparam.c: Likewise.
  4107. * sysdeps/pthread/pthread_getcpuclockid.c: Likewise.
  4108. * sysdeps/unix/sysv/linux/pthread_kill.c: Likewise.
  4109. * pthread_join.c: Use INVALID_NOT_TERMINATED_TD_P.
  4110. * pthread_timedjoin.c: Likewise.
  4111. * tst-basic7.c: Include <signal.h>.
  4112. * pthread_join.c (pthread_join): Limited checking for invalid
  4113. descriptors.
  4114. * pthread_timedjoin.c (pthread_timedjoin_np): Likewise.
  4115. 2003-02-20 Ulrich Drepper <drepper@redhat.com>
  4116. * pthread_create.c (deallocate_tsd): Reset found_nonzero at the
  4117. beginning of the loop. Clear the entire first block of TSD.
  4118. * Makefile (tests): Add tst-key4.
  4119. * tst-key4.c: New file.
  4120. 2003-02-18 Ulrich Drepper <drepper@redhat.com>
  4121. * Makefile (tests): Add tst-basic7.
  4122. * tst-basic7.c: New file.
  4123. * pthread_create.c (deallocate_tsd): Mark as internal_function.
  4124. Add some more __builtin_expect.
  4125. * pthreadP.h: Define dummy version of DEBUGGING_P.
  4126. 2003-02-17 Ulrich Drepper <drepper@redhat.com>
  4127. * sysdeps/unix/sysv/linux/i386/bits/posix_opt.h: Remnove
  4128. _POSIX_THREAD_PRIORITY_SCHEDULING.
  4129. * sysdeps/unix/sysv/linux/i386/bits/posix_opt.h: Remove
  4130. _XOPEN_REALTIME_THREADS.
  4131. * sysdeps/unix/sysv/linux/bits/posix_opt.h: Likewise.
  4132. * sysdeps/unix/sysv/linux/pthread_kill.c (__pthread_kill): The
  4133. kernel returns EINVAL for PID <= 0, work around it.
  4134. * Makefile (tests): Add tst-signal5.
  4135. * tst-signal5.c: New file.
  4136. * sysdeps/unix/sysv/linux/bits/local_lim.h: Define TTY_NAME_MAX
  4137. and LOGIN_NAME_MAX.
  4138. * tst-cancel1.c (tf): Block all signals.
  4139. * Makefile (tests): Add tst-basic6.
  4140. * tst-basic6.c: New file.
  4141. * tst-basic1.c: Add test for process ID.
  4142. * Makefile (tests): Add tst-cancel10.
  4143. * tst-cancel10.c: New file.
  4144. * Makefile (tests): Add tst-signal4.
  4145. * tst-signal4.c: New file.
  4146. * sysdeps/pthread/pthread_sigmask.c (pthread_sigmask): Use
  4147. __sigismember instead of sigismember. Add __builtin_expect.
  4148. 2003-02-16 Ulrich Drepper <drepper@redhat.com>
  4149. * tst-attr1.c (do_test): Add tests for pthread_setcanceltype,
  4150. pthread_setcancelstate, and pthread_rwlock_setpshared.
  4151. * tst-cancel7.c (do_test): Make sure the pid file exists before
  4152. canceling the thread.
  4153. * tst-rwlock6.c: More pthread_rwlock_timedwrlock and
  4154. pthread_rwlock_timedrdlock tests.
  4155. * tst-rwlock7.c: More pthread_rwlock_timedwrlock tests.
  4156. * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S:
  4157. Check for invalid tv_nsec field.
  4158. * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S:
  4159. Likewise.
  4160. * pthread_mutex_trylock.c (__pthread_mutex_trylock): Protect
  4161. recursive mutex of overflow.
  4162. * tst-attr1.c (do_test): Add test for pthread_mutexattr_setpshared.
  4163. * libc-cancellation.c (__libc_enable_asynccancel): Rewrite to avoid
  4164. going into an endless loop.
  4165. * Makefile (tests): Add tst-cancel9.
  4166. * tst-cancel9.c: New file.
  4167. * pthread_cancel.c (pthread_cancel): Use the result of __pthread_kill.
  4168. 2003-02-15 Ulrich Drepper <drepper@redhat.com>
  4169. * tst-mutex5.c (do_test): Add more timedlock tests.
  4170. * tst-mutex2.c: Tests of trylock and unlock with ERROR mutexes.
  4171. * tst-mutex3.c (do_test): Add tests for trylock with RECURSIVE mutexes.
  4172. * sysdeps/unix/sysv/linux/pthread_kill.c (__pthread_kill): Don't
  4173. use INLINE_SYSCALL. Error number is returned, not -1.
  4174. * pthreadP.h: Mark declarations of __find_in_stack_list, __free_tcb,
  4175. and __deallocate_stack with internal_function.
  4176. * pthread_create.c: Adjust definitions appropriately.
  4177. * allocatestack.c: Likewise.
  4178. * pthread_join.c: Add one more __builtin_expect.
  4179. * pthread_timedjoin.c: Likewise.
  4180. * pthread_getspecific.c (__pthread_getspecific): Clear data->data
  4181. not data of sequence number does not match.
  4182. Add one __builtin_expect.
  4183. * Makefile (tests): Add tst-clock1.
  4184. * tst-clock1.c: New file.
  4185. * pthread_setconcurrency.c (pthread_setconcurrency): Fail for
  4186. negative arguments.
  4187. * Makefile (tests): Add tst-basic5.
  4188. * tst-basic5.c: New file.
  4189. 2003-02-14 Ulrich Drepper <drepper@redhat.com>
  4190. * Makefile (tests): Add tst-basic4.
  4191. * tst-basic4.c: New file.
  4192. * pthreadP.h: Add declaraction for __nptl_nthreads.
  4193. * pthread_create.c: Define __nptl_nthreads
  4194. (start_thread): Increment __nptl_nthreads at beginning. Decrement
  4195. after thread is done. If then zero, call exit(0).
  4196. * sysdeps/pthread/pthread-functions.h (struct pthread_functions):
  4197. Add ptr_nthreads. Define HAVE_PTR_NTHREADS.
  4198. * init.c (pthread_functions): Initialize ptr_nthreads.
  4199. * allocatestack.c (nptl_nthreads): Remove definition and all uses.
  4200. (__reclaim_stacks): Decrement __nptl_nthreads.
  4201. * sysdeps/pthread/Makefile [$(subdir)==csu] (CFLAGS-libc-start.c):
  4202. Define.
  4203. * Makefile (tests): Add tst-basic3.
  4204. * tst-basic3.c: New file.
  4205. * descr.h: Define CANCELING_BIT and CANCELING_BITMASK. Introduce
  4206. after CANCELTYPE_BIT, move the other bits up. Update CANCEL_RESTMASK.
  4207. * init.c (sigcancel_handler): Also set CANCELING_BITMASK bit in newval.
  4208. * pthread_cancel.c (pthread_cancel): Likewise. Also set CANCELING_BIT
  4209. if asynchronous canceling is enabled.
  4210. * pthread_join.c (pthread_join): When recognizing circular joins,
  4211. take into account the other thread might be already canceled.
  4212. * Makefile (tests): Add tst-join5.
  4213. * tst-join5.c: New file.
  4214. * Makefile (tests): Add tst-join4.
  4215. * tst-join4.c: New file.
  4216. 2003-02-13 Ulrich Drepper <drepper@redhat.com>
  4217. * tst-cond4.c (main): Add test of pthread_attr_getpshared.
  4218. 2003-02-13 Martin Schwidefsky <schwidefsky@de.ibm.com>
  4219. * sysdeps/s390/tls.h (THREAD_GETMEM, THREAD_GETMEM_NC, THREAD_SETMEM,
  4220. THREAD_SETMEM_NC): Use passed descr instead of THREAD_SELF.
  4221. * sysdeps/unix/sysv/linux/s390/jmp-unwind.c (_longjmp_unwind): Avoid
  4222. warning.
  4223. * sysdeps/unix/sysv/linux/s390/lowlevellock.c: Include <sys/time.h>
  4224. to avoid warning.
  4225. * sysdeps/unix/sysv/linux/s390/sem_post.c (__new_sem_post): Return
  4226. error if lll_futex_wake failed.
  4227. 2003-02-13 Ulrich Drepper <drepper@redhat.com>
  4228. * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Fix
  4229. handling of cancellation and failung pthread_mutex_unlock call.
  4230. * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: Likewise.
  4231. * Makefile (tests): Add tst-cond8 and tst-cond9.
  4232. * tst-cond8.c: New file.
  4233. * tst-cond9.c: New file.
  4234. * tst-cond7.c (do_test): Unlock the mutex before canceling the thread.
  4235. * sysdeps/pthread/pthread.h: Add missing initializers. Protect
  4236. non-standard initializers with __USE_GNU.
  4237. * Makefile (tests): Add tst-cleanup3.
  4238. * tst-cleanup3.c: New file.
  4239. 2003-02-12 Ulrich Drepper <drepper@redhat.com>
  4240. * Makefile (tests): Add tst-attr1 and tst-attr2.
  4241. * tst-attr1.c: New file.
  4242. * tst-attr2.c: New file.
  4243. * Makefile: Add rules to build and run tst-atfork2 test.
  4244. * tst-atfork2.c: New file.
  4245. * tst-atfork2mod.c: New file.
  4246. * sysdeps/unix/sysv/linux/unregister-atfork.c
  4247. (__unregister_atfork): Free the memory allocated for the handlers
  4248. after removing them from the lists.
  4249. * sysdeps/unix/sysv/linux/register-atfork.c: Define memeory
  4250. cleanup function.
  4251. * tst-atfork1.c (do_test): Wait for the child we forked.
  4252. Report error in child.
  4253. * sysdeps/unix/sysv/linux/fork.c (__libc_fork): Fix comment.
  4254. * sysdeps/pthread/Makefile: Define CFLAGS-confstr.c.
  4255. 2003-02-10 Ulrich Drepper <drepper@redhat.com>
  4256. * Makefile (tests): Add tst-cancel8.
  4257. * tst-cancel8.c: New file.
  4258. * sysdeps/unix/sysv/linux/i386/pthread_once.S (clear_once_control): Fix
  4259. clearing of control variable.
  4260. * Makefile (tests): Add tst-once3 and tst-once4.
  4261. * tst-once3.c: New file.
  4262. * tst-once4.c: New file.
  4263. 2003-02-08 kaz Kojima <kkojima@rr.iij4u.or.jp>
  4264. * sysdeps/sh/Makefile: New file.
  4265. * sysdeps/sh/bits/atomic.h: New file.
  4266. * sysdeps/sh/pthread_spin_init.c: New file.
  4267. * sysdeps/sh/pthread_spin_lock.c: New file.
  4268. * sysdeps/sh/pthread_spin_trylock.S: New file.
  4269. * sysdeps/sh/pthread_spin_unlock.S: New file.
  4270. * sysdeps/sh/pthreaddef.h: New file.
  4271. * sysdeps/sh/tcb-offsets.sym: New file.
  4272. * sysdeps/sh/td_ta_map_lwp2thr.c: New file.
  4273. * sysdeps/sh/tls.h: New file.
  4274. * sysdeps/unix/sysv/linux/sh/bits/pthreadtypes.h: New file.
  4275. * sysdeps/unix/sysv/linux/sh/bits/semaphore.h: New file.
  4276. * sysdeps/unix/sysv/linux/sh/createthread.c: New file.
  4277. * sysdeps/unix/sysv/linux/sh/fork.c: New file.
  4278. * sysdeps/unix/sysv/linux/sh/libc-lowlevellock.S: New file.
  4279. * sysdeps/unix/sysv/linux/sh/libc-lowlevelmutex.S: New file.
  4280. * sysdeps/unix/sysv/linux/sh/lowlevel-atomic.h: New file.
  4281. * sysdeps/unix/sysv/linux/sh/lowlevelcond.h: New file.
  4282. * sysdeps/unix/sysv/linux/sh/lowlevellock.S: New file.
  4283. * sysdeps/unix/sysv/linux/sh/lowlevellock.h: New file.
  4284. * sysdeps/unix/sysv/linux/sh/lowlevelmutex.S: New file.
  4285. * sysdeps/unix/sysv/linux/sh/lowlevelrwlock.h: New file.
  4286. * sysdeps/unix/sysv/linux/sh/pt-initfini.c: New file.
  4287. * sysdeps/unix/sysv/linux/sh/pt-vfork.S: New file.
  4288. * sysdeps/unix/sysv/linux/sh/pthread_barrier_wait.S: New file.
  4289. * sysdeps/unix/sysv/linux/sh/pthread_cond_broadcast.S: New file.
  4290. * sysdeps/unix/sysv/linux/sh/pthread_cond_signal.S: New file.
  4291. * sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S: New file.
  4292. * sysdeps/unix/sysv/linux/sh/pthread_cond_wait.S: New file.
  4293. * sysdeps/unix/sysv/linux/sh/pthread_once.S: New file.
  4294. * sysdeps/unix/sysv/linux/sh/pthread_rwlock_rdlock.S: New file.
  4295. * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedrdlock.S: New file.
  4296. * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedwrlock.S: New file.
  4297. * sysdeps/unix/sysv/linux/sh/pthread_rwlock_unlock.S: New file.
  4298. * sysdeps/unix/sysv/linux/sh/pthread_rwlock_wrlock.S: New file.
  4299. * sysdeps/unix/sysv/linux/sh/sem_post.S: New file.
  4300. * sysdeps/unix/sysv/linux/sh/sem_timedwait.S: New file.
  4301. * sysdeps/unix/sysv/linux/sh/sem_trywait.S: New file.
  4302. * sysdeps/unix/sysv/linux/sh/sem_wait.S: New file.
  4303. * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: New file.
  4304. 2003-02-08 Ulrich Drepper <drepper@redhat.com>
  4305. * tst-cond2.c: Rearrange code to not rely on behavior undefined
  4306. according to POSIX.
  4307. * tst-basic2.c (do_test): Lock mutex before creating the thread.
  4308. 2003-02-07 Ulrich Drepper <drepper@redhat.com>
  4309. * sysdeps/x86_64/tls.h: Remove unnecessary macros, left over from x86.
  4310. (TLS_GET_FS): New #define.
  4311. (TLS_SET_FS): New #define.
  4312. Correct value of __NR_set_thread_area.
  4313. * sysdeps/x86_64/td_ta_map_lwp2thr.c: New file.
  4314. 2003-02-06 Ulrich Drepper <drepper@redhat.com>
  4315. * Makefile (tests): Add tst-popen1.
  4316. * tst-popen1.c: New file.
  4317. * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Remove wrong
  4318. but inactive generalization.
  4319. * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: Likewise.
  4320. * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S: Likewise.
  4321. Minor optimization, remove one instruction.
  4322. * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_broadcast.S: Likewise.
  4323. 2003-02-04 Martin Schwidefsky <schwidefsky@de.ibm.com>
  4324. * sysdeps/unix/sysv/linux/s390/fork.c: Correct order of parameters.
  4325. 2003-01-31 Martin Schwidefsky <schwidefsky@de.ibm.com>
  4326. * init.c (__NR_set_tid_address): Add #ifdef for s390.
  4327. * sysdeps/pthread/pthread_barrier_wait.c: New file.
  4328. * sysdeps/pthread/pthread_cond_broadcast.c: New file.
  4329. * sysdeps/pthread/pthread_cond_signal.c: New file.
  4330. * sysdeps/pthread/pthread_cond_timedwait.c: New file.
  4331. * sysdeps/pthread/pthread_cond_wait.c: New file.
  4332. * sysdeps/pthread/pthread_rwlock_rdlock.c: New file.
  4333. * sysdeps/pthread/pthread_rwlock_timedrdlock.c: New file.
  4334. * sysdeps/pthread/pthread_rwlock_timedwrlock.c: New file.
  4335. * sysdeps/pthread/pthread_rwlock_unlock.c: New file.
  4336. * sysdeps/pthread/pthread_rwlock_wrlock.c: New file.
  4337. * sysdeps/s390/Makefile: New file.
  4338. * sysdeps/s390/bits/atomic.h: New file.
  4339. * sysdeps/s390/pthread_spin_init.c: New file.
  4340. * sysdeps/s390/pthread_spin_lock.c: New file.
  4341. * sysdeps/s390/pthread_spin_trylock.c: New file.
  4342. * sysdeps/s390/pthread_spin_unlock.c: New file.
  4343. * sysdeps/s390/pthreaddef.h: New file.
  4344. * sysdeps/s390/tcb-offsets.sym: New file.
  4345. * sysdeps/s390/td_ta_map_lwp2thr.c: New file.
  4346. * sysdeps/s390/tls.h: New file.
  4347. * sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h: New file.
  4348. * sysdeps/unix/sysv/linux/s390/bits/semaphore.h: New file.
  4349. * sysdeps/unix/sysv/linux/s390/createthread.c: New file.
  4350. * sysdeps/unix/sysv/linux/s390/dl-sysdep.h: New file.
  4351. * sysdeps/unix/sysv/linux/s390/fork.c: New file.
  4352. * sysdeps/unix/sysv/linux/s390/jmp-unwind.c: New file.
  4353. * sysdeps/unix/sysv/linux/s390/libc-lowlevellock.c: New file.
  4354. * sysdeps/unix/sysv/linux/s390/libc-lowlevelmutex.c: New file.
  4355. * sysdeps/unix/sysv/linux/s390/lowlevellock.c: New file.
  4356. * sysdeps/unix/sysv/linux/s390/lowlevellock.h: New file.
  4357. * sysdeps/unix/sysv/linux/s390/lowlevelmutex.c: New file.
  4358. * sysdeps/unix/sysv/linux/s390/lowlevelsem.h: New file.
  4359. * sysdeps/unix/sysv/linux/s390/pthread_once.c: New file.
  4360. * sysdeps/unix/sysv/linux/s390/s390-32/pt-initfini.c: New file.
  4361. * sysdeps/unix/sysv/linux/s390/s390-32/pt-vfork.S: New file.
  4362. * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: New file.
  4363. * sysdeps/unix/sysv/linux/s390/s390-64/pt-initfini.c: New file.
  4364. * sysdeps/unix/sysv/linux/s390/s390-64/pt-vfork.S: New file.
  4365. * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: New file.
  4366. * sysdeps/unix/sysv/linux/s390/sem_post.c: New file.
  4367. * sysdeps/unix/sysv/linux/s390/sem_timedwait.c: New file.
  4368. * sysdeps/unix/sysv/linux/s390/libc-lowlevellock.c: New file.
  4369. * sysdeps/unix/sysv/linux/s390/sem_wait.c: New file.
  4370. 2003-02-04 Ulrich Drepper <drepper@redhat.com>
  4371. * atomic.h: Add a couple more default implementations.
  4372. (atomic_compare_and_exchange_acq): Use
  4373. __arch_compare_and_exchange_32_acq in return value definition. It
  4374. always exists.
  4375. (atomic_bit_set): Renamed from atomic_set_bit.
  4376. Add missing atomic_ prefixes.
  4377. * sysdeps/pthread/bits/libc-lock.h (__libc_once): In case no
  4378. thread library is available, use correct value to mark initialized
  4379. once variable.
  4380. 2003-02-03 Ulrich Drepper <drepper@redhat.com>
  4381. * allocatestack.c (allocate_stack): Use __getpagesize instead of
  4382. __sysconf to determine pagesize.
  4383. * pthread_create.c: Include <atomic.h>.
  4384. * allocatestack.c (allocate_stack): Implement coloring of the
  4385. allocated stack memory. Rename pagesize to pagesize_m1. It's the
  4386. size minus one. Adjust users.
  4387. * sysdeps/i386/i686/Makefile: New file.
  4388. 2003-02-02 Ulrich Drepper <drepper@redhat.com>
  4389. * allocatestack.c: Improve comment throughout the file.
  4390. * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S
  4391. (__lll_lock_wait): Add branch prediction.
  4392. * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S
  4393. (__lll_lock_wait): Likewise.
  4394. (lll_unlock_wake_cb): Removed.
  4395. 2003-01-31 Ulrich Drepper <drepper@redhat.com>
  4396. * sysdeps/unix/sysv/linux/bits/posix_opt.h: Remove
  4397. _POSIX_THREAD_PRIORITY_SCHEDULING.
  4398. 2003-01-30 Jakub Jelinek <jakub@redhat.com>
  4399. * sysdeps/pthread/pthread-functions.h (struct pthread_functions):
  4400. Fix return type of ptr___pthread_getspecific.
  4401. 2003-01-29 Ulrich Drepper <drepper@redhat.com>
  4402. * Makefile (tests): Add tst-umask1.
  4403. (tst-umask1-ARGS): Define.
  4404. * tst-umask1.c: New file.
  4405. 2003-01-28 Ulrich Drepper <drepper@redhat.com>
  4406. * Makefile (libpthread-routines): Remove lowlevelrwlock. Add
  4407. pthread_rwlock_rdlock, pthread_rwlock_timedrdlock,
  4408. pthread_rwlock_wrlock, pthread_rwlock_timedwrlock, and
  4409. pthread_rwlock_unlock.
  4410. * sysdeps/unix/sysv/linux/i386/i486/lowlevelrwlock.S: Removed
  4411. * sysdeps/unix/sysv/linux/i386/i586/lowlevelrwlock.S: Removed
  4412. * sysdeps/unix/sysv/linux/i386/i686/lowlevelrwlock.S: Removed
  4413. * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_rdlock.S: New file.
  4414. * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S:
  4415. New file.
  4416. * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_wrlock.S: New file.
  4417. * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S:
  4418. New file.
  4419. * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_unlock.S: New file.
  4420. * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_rdlock.S: New file.
  4421. * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedrdlock.S:
  4422. New file.
  4423. * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_wrlock.S: New file.
  4424. * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedwrlock.S:
  4425. New file.
  4426. * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_unlock.S: New file.
  4427. * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_rdlock.S: New file.
  4428. * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedrdlock.S:
  4429. New file.
  4430. * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_wrlock.S: New file.
  4431. * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedwrlock.S:
  4432. New file.
  4433. * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_unlock.S: New file.
  4434. * Makefile (libpthread-routines): Remove lowlevelcond and
  4435. lowlevelsem. Add sem_wait, sem_trywait, sem_timedwait, sem_post,
  4436. pthread_cond_wait, pthread_cond_timedwait, pthread_cond_signal,
  4437. and pthread_cond_broadcast.
  4438. * sysdeps/unix/sysv/linux/i386/i486/lowlevelsem.S: Removed
  4439. * sysdeps/unix/sysv/linux/i386/i486/lowlevelcond.S: Removed
  4440. * sysdeps/unix/sysv/linux/i386/i586/lowlevelsem.S: Removed
  4441. * sysdeps/unix/sysv/linux/i386/i586/lowlevelcond.S: Removed
  4442. * sysdeps/unix/sysv/linux/i386/i686/lowlevelsem.S: Removed
  4443. * sysdeps/unix/sysv/linux/i386/i686/lowlevelcond.S: Removed
  4444. * sysdeps/unix/sysv/linux/i386/i486/sem_wait.S: New file.
  4445. * sysdeps/unix/sysv/linux/i386/i486/sem_trywait.S: New file.
  4446. * sysdeps/unix/sysv/linux/i386/i486/sem_timedwait.S: New file.
  4447. * sysdeps/unix/sysv/linux/i386/i486/sem_post.S: New file.
  4448. * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: New file.
  4449. * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: New file.
  4450. * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S: New file.
  4451. * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_broadcast.S: New file.
  4452. * sysdeps/unix/sysv/linux/i386/i586/sem_wait.S: New file.
  4453. * sysdeps/unix/sysv/linux/i386/i586/sem_trywait.S: New file.
  4454. * sysdeps/unix/sysv/linux/i386/i586/sem_timedwait.S: New file.
  4455. * sysdeps/unix/sysv/linux/i386/i586/sem_post.S: New file.
  4456. * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_wait.S: New file.
  4457. * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_timedwait.S: New file.
  4458. * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_signal.S: New file.
  4459. * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_broadcast.S: New file.
  4460. * sysdeps/unix/sysv/linux/i386/i686/sem_wait.S: New file.
  4461. * sysdeps/unix/sysv/linux/i386/i686/sem_trywait.S: New file.
  4462. * sysdeps/unix/sysv/linux/i386/i686/sem_timedwait.S: New file.
  4463. * sysdeps/unix/sysv/linux/i386/i686/sem_post.S: New file.
  4464. * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_wait.S: New file.
  4465. * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_timedwait.S: New file.
  4466. * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_signal.S: New file.
  4467. * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_broadcast.S: New file.
  4468. * sysdeps/unix/sysv/linux/i386/lowlevelcond.h: New file.
  4469. * sysdeps/unix/sysv/linux/i386/createthread.c: Define
  4470. PREPARE_CREATE and TLS_VALUE with x86-specific bits. All the rest
  4471. of the code is moved to ...
  4472. * sysdeps/pthread/createthread.c: ...here. New file.
  4473. 2003-01-27 Ulrich Drepper <drepper@redhat.com>
  4474. * sysdeps/unix/sysv/linux/i386/i486/lowlevelsem.S
  4475. (__new_sem_post): Clear %eax before returning.
  4476. Reported by MAEDA Naoaki <maeda.naoaki@jp.fujitsu.com>.
  4477. * Makefile (tests): Add tst-cleanup2.
  4478. * tst-cleanup2.c: New file.
  4479. * sysdeps/pthread/bits/libc-lock.h (__libc_cleanup_region_start):
  4480. Interpret first parameter correctly.
  4481. 2003-01-17 Ulrich Drepper <drepper@redhat.com>
  4482. * Makefile (headers): Add bits/semaphore.h.
  4483. 2003-01-16 Jakub Jelinek <jakub@redhat.com>
  4484. * sysdeps/i386/tls.h (INIT_SYSINFO): Initialize _head->sysinfo even
  4485. if not SHARED.
  4486. 2003-01-14 Ulrich Drepper <drepper@redhat.com>
  4487. * sem_open.c (sem_open): Return SEM_FAILED if existing semaphore
  4488. must be used and mapping failed.
  4489. Reported by Luke Elliott <luke.elliott@activfinancial.com>.
  4490. * Makefile (CFLAGS-pthread_self.os): Define this, not
  4491. CFLAGS-pthread_self.c.
  4492. 2003-01-13 Ulrich Drepper <drepper@redhat.com>
  4493. * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S: Don't export
  4494. lll_unlock_wake_cb.
  4495. * Makefile (libpthread-routines): Add version. Add rules to build
  4496. version.os and banner.h.
  4497. * version.c: New file.
  4498. 2003-01-13 Jakub Jelinek <jakub@redhat.com>
  4499. * pthread_mutex_lock.c (__pthread_mutex_lock_internal): Make
  4500. the alias unconditional.
  4501. * pthread_mutex_unlock.c (__pthread_mutex_unlock_internal): Likewise.
  4502. 2003-01-13 Ulrich Drepper <drepper@redhat.com>
  4503. * Makefile (CFLAGS-pthread_self.c): New definition.
  4504. 2003-01-06 Jakub Jelinek <jakub@redhat.com>
  4505. * sysdeps/pthread/pthread_sigmask.c (pthread_sigmask): Add
  4506. INTERNAL_SYSCALL_DECL, add err argument to INTERNAL_SYSCALL* macros.
  4507. * sysdeps/unix/sysv/linux/raise.c (raise): Likewise.
  4508. * init.c (__pthread_initialize_minimal_internal): Likewise.
  4509. 2003-01-07 Jakub Jelinek <jakub@redhat.com>
  4510. * pthreadP.h (__pthread_cond_timedwait): Add prototype.
  4511. * sysdeps/unix/sysv/linux/i386/dl-sysdep.h
  4512. (RTLD_CORRECT_DYNAMIC_WEAK): Remove.
  4513. (DL_SYSINFO_IMPLEMENTATION): Change into .text section and back.
  4514. * sysdeps/unix/sysv/linux/i386/i686/dl-sysdep.h
  4515. (RTLD_CORRECT_DYNAMIC_WEAK): Remove.
  4516. (DL_SYSINFO_IMPLEMENTATION): Change into .text section and back.
  4517. 2003-01-06 Jakub Jelinek <jakub@redhat.com>
  4518. * pthreadP.h (LIBC_CANCEL_HANDLED): Define.
  4519. * pt-system.c (LIBC_CANCEL_HANDLED): Add.
  4520. * tst-cancel-wrappers.sh: Remove all exceptions.
  4521. 2003-01-05 Ulrich Drepper <drepper@redhat.com>
  4522. * tst-cancel-wrappers.sh: Invoke gawk not awk since we use GNU awk
  4523. features. Reported by Marijn Ros <marijn@mad.scientist.com>.
  4524. * sysdeps/unix/sysv/linux/jmp-unwind.c: Include <pthread-functions.h>.
  4525. Use __libc_pthread_functions array if SHARED.
  4526. * pthreadP.h: Move pthread_cond_2_0_t definition to...
  4527. * sysdeps/unix/sysv/linux/internaltypes.h: ...here.
  4528. * sysdeps/pthread/bits/libc-lock.h (__libc_ptf_call): New #define.
  4529. (__libc_rwlock_rdlock, __libc_rwlock_wrlock, __libc_rwlock_unlock,
  4530. __libc_key_create, __libc_getspecific, __libc_setspecific): Use
  4531. __libc_ptf_call instead of __libc_maybe_call.
  4532. (PTF): New #define.
  4533. (__libc_cleanup_region_start): Wrap function name with PTF call.
  4534. (__libc_cleanup_region_end): Likewise.
  4535. (__libc_cleanup_end): Likewise.
  4536. * pthread_getspecific.c: Add __pthread_getspecific_internal alias.
  4537. * pthread_setspecific.c: Add __pthread_setspecific_internal alias.
  4538. * pthread_key_create.c: Add __pthread_key_create_internal alias.
  4539. * pthreadP.h: Add prototypes.
  4540. * sysdeps/unix/sysv/linux/i386/i486/lowlevelrwlock.S: Add
  4541. __pthread_rwlock_rdlock, __pthread_rwlock_wrlock, and
  4542. __pthread_rwlock_unlock aliases.
  4543. * pthreadP.h: Add prototypes for new aliases.
  4544. * pthreadP.h (struct pthead_functions): Moved to...
  4545. * sysdeps/pthread/pthread-functions.h: ...here. New file.
  4546. * init.c (pthread_functions): Add initializers for new elements.
  4547. * cleanup_defer.c: Add __pthread_cleanup_push_defer and
  4548. __pthread_cleanup_pop_restore aliases.
  4549. * pthreadP.h: Add prototypes.
  4550. * cleanup.c: Rename _GI_pthread_cleanup_push to __pthread_cleanup_push
  4551. and _GI_pthread_cleanup_pop to __pthread_cleanup_pop.
  4552. * sysdeps/unix/sysv/linux/i386/i486/lowlevelcond.S: Adjust caller.
  4553. * sysdeps/unix/sysv/linux/i386/pthread_once.S: Likewise.
  4554. * sysdeps/unix/sysv/linux/x86_64/pthread_once.S: Likewise.
  4555. * pthreadP.h: Adjust prototypes and callers.
  4556. 2003-01-04 Ulrich Drepper <drepper@redhat.com>
  4557. * Makefile (tests): Add tst-cancel7.
  4558. (tst-cancel7-ARGS): New variable.
  4559. * tst-cancel7.c: New file.
  4560. * old_pthread_cond_broadcast.c: Optimize initialization a bit to work
  4561. around gcc defficiencies.
  4562. * old_pthread_cond_signal.c: Likewise.
  4563. * old_pthread_cond_timedwait.c: Likewise.
  4564. * old_pthread_cond_wait.c: Likewise.
  4565. * pthreadP.h (pthread_cond_2_0_t): Remove unneeded lock element.
  4566. 2003-01-03 Ulrich Drepper <drepper@redhat.com>
  4567. * Makefile (tests): Add tst-cond7.
  4568. * tst-cond7.c: New file.
  4569. * sysdeps/unix/sysv/linux/i386/i486/lowlevelcond.S
  4570. (condvar_cleanup): Get condvar address from the right place.
  4571. * atomic.h: Correct definitions of atomic_full_barrier,
  4572. atomic_read_barrier, atomic_write_barrier.
  4573. * old_pthread_cond_broadcast.c: Make memory allocate and initialization
  4574. race-free.
  4575. * old_pthread_cond_signal.c: Likewise.
  4576. * old_pthread_cond_timedwait.c: Likewise.
  4577. * old_pthread_cond_wait.c: Likewise.
  4578. 2003-01-03 Jakub Jelinek <jakub@redhat.com>
  4579. * Makefile ($(objpfx)libpthread.so): Depend on ld.so.
  4580. 2003-01-03 Ulrich Drepper <drepper@redhat.com>
  4581. * pthreadP.h (pthread_cond_2_0_t): New type.
  4582. (struct pthread_functions): Use new type for 2.0 condvar callbacks.
  4583. Use new type for the 2.0 condvar function prototypes.
  4584. * forward.c: Use pthread_cond_2_0_t for 2.0 condvar functions.
  4585. * old_pthread_cond_init.c: Use pthread_cond_2_0_t for condvar
  4586. parameter.
  4587. * old_pthread_cond_destroy.c: Likewise.
  4588. * old_pthread_cond_broadcast.c: Likewise. Lock appropriately.
  4589. * old_pthread_cond_signal.c: Likewise.
  4590. * old_pthread_cond_timedwait.c: Likewise.
  4591. * old_pthread_cond_wait.c: Likewise.
  4592. * sysdeps/unix/sysv/linux/i386/i486/lowlevelcond.S
  4593. (__pthread_cond_wait): Don't save cancellation mode and seq value
  4594. in same location.
  4595. * herrno.c (__h_errno_location): Don't define as weak.
  4596. 2003-01-02 Jakub Jelinek <jakub@redhat.com>
  4597. * Versions [libc] (GLIBC_2.3.2): Export pthread_cond_broadcast,
  4598. pthread_cond_destroy, pthread_cond_init, pthread_cond_signal
  4599. and pthread_cond_wait.
  4600. * old_pthread_cond_broadcast.c (__old_pthread_cond_broadcast):
  4601. Renamed to...
  4602. (__pthread_cond_broadcast_2_0): ... this.
  4603. * old_pthread_cond_destroy.c (__old_pthread_cond_destroy):
  4604. Renamed to...
  4605. (__pthread_cond_destroy_2_0): ... this.
  4606. * old_pthread_cond_init.c (__old_pthread_cond_init):
  4607. Renamed to...
  4608. (__pthread_cond_init_2_0): ... this.
  4609. * old_pthread_cond_signal.c (__old_pthread_cond_signal):
  4610. Renamed to...
  4611. (__pthread_cond_signal_2_0): ... this.
  4612. * old_pthread_cond_wait.c (__old_pthread_cond_wait):
  4613. Renamed to...
  4614. (__pthread_cond_wait_2_0): ... this.
  4615. * pthread_cond_destroy.c: Include shlib-compat.h.
  4616. (pthread_cond_destroy): Change strong_alias into versioned_symbol.
  4617. * pthread_cond_init.c: Include shlib-compat.h.
  4618. (pthread_cond_init): Change strong_alias into versioned_symbol.
  4619. * pthreadP.h (struct pthread_functions): Rename ptr_pthread_cond_*
  4620. fields to ptr___pthread_cond_* and add ptr___pthread_cond_*_2_0
  4621. fields.
  4622. (__pthread_cond_broadcast_2_0, __pthread_cond_destroy_2_0,
  4623. __pthread_cond_init_2_0, __pthread_cond_signal_2_0,
  4624. __pthread_cond_wait_2_0): New prototypes.
  4625. (__old_pthread_cond_broadcast, __old_pthread_cond_destroy,
  4626. __old_pthread_cond_init, __old_pthread_cond_signal,
  4627. __old_pthread_cond_wait): Removed.
  4628. * init.c: Include shlib-compat.h.
  4629. (pthread_functions): Guard ptr___pthread_attr_init_2_0
  4630. initialization with SHLIB_COMPAT (GLIBC_2_0, GLIBC_2_1).
  4631. Rename ptr_pthread_cond_* to ptr___pthread_cond_*, initialize
  4632. ptr___pthread_cond_*_2_0 fields.
  4633. * forward.c: Export both pthread_cond_*@@GLIBC_2.3.2 and
  4634. pthread_cond_*@GLIBC_2.0 compatibility symbols.
  4635. * sysdeps/pthread/sigaction.c (SIGCANCEL): Only define if
  4636. LIBC_SIGACTION was not yet defined.
  4637. [!defined LIBC_SIGACTION]: Define LIBC_SIGACTION, #include self.
  4638. [!defined LIBC_SIGACTION] (__sigaction): New function and
  4639. libc_hidden_weak.
  4640. [!defined LIBC_SIGACTION] (sigaction): New weak_alias.
  4641. [defined LIBC_SIGACTION]: #include_next <sigaction.c>.
  4642. 2003-01-02 Jakub Jelinek <jakub@redhat.com>
  4643. * Makefile (CFLAGS-pthread_atfork.c): Add -DNOT_IN_libc.
  4644. 2003-01-02 Ulrich Drepper <drepper@redhat.com>
  4645. * sysdeps/unix/sysv/linux/i386/bits/pthreadtypes.h (pthread_cond_t):
  4646. New, larger type definition.
  4647. * sysdeps/unix/sysv/linux/i386/i486/lowlevelcond.S: New condvar
  4648. implementation.
  4649. * Versions [libpthread]: Add definitions for new pthread_cond_*
  4650. interfaces for version GLIBC_2.3.2.
  4651. * pthread_cond_init.c: Update initialization for new type definition.
  4652. * Makefile (libpthread-routines): Remove pthread_cond_wait,
  4653. pthread_cond_timedwait, pthread_cond_signal, and
  4654. pthread_cond_broadcast. Add old_pthread_cond_init,
  4655. old_pthread_cond_destroy, old_pthread_cond_wait,
  4656. old_pthread_cond_timedwait, old_pthread_cond_signal, and
  4657. old_pthread_cond_broadcast.
  4658. * old_pthread_cond_broadcast.c: New file.
  4659. * old_pthread_cond_destroy.c: New file.
  4660. * old_pthread_cond_init.c: New file.
  4661. * old_pthread_cond_signal.c: New file.
  4662. * old_pthread_cond_timedwait.c: New file.
  4663. * old_pthread_cond_wait.c: New file.
  4664. * pthreadP.h: Add prototypes for the compatibility interfaces.
  4665. * pthread_cond_destroy.c: Don't include <errno.h>.
  4666. 2003-01-01 Ulrich Drepper <drepper@redhat.com>
  4667. * sysdeps/unix/sysv/linux/i386/i486/lowlevelrwlock.S: Avoid
  4668. unnecessary zero offset when addressing MUTEX.
  4669. 2002-12-31 Ulrich Drepper <drepper@redhat.com>
  4670. * sysdeps/unix/sysv/linux/fork.h: Add libc_hidden_proto for
  4671. __register_atfork.
  4672. * sysdeps/unix/sysv/linux/register-atfork.c: Add libc_hidden_def
  4673. for __register_atfork.
  4674. 2002-12-31 Jakub Jelinek <jakub@redhat.com>
  4675. * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: Use __ASSEMBLER__
  4676. instead of ASSEMBLER test macro.
  4677. * sysdeps/unix/sysv/linux/allocrtsig.c (__libc_current_sigrtmin,
  4678. __libc_current_sigrtmax): Add libc_hidden_def.
  4679. * sysdeps/pthread/list.h: Remove assert.h include.
  4680. 2002-12-31 Ulrich Drepper <drepper@redhat.com>
  4681. * sysdeps/pthread/pt-initfini.c (call_initialize_minimal): Use
  4682. __pthread_initialize_minimal_internal not
  4683. __pthread_initialize_minimal.
  4684. 2002-12-30 Ulrich Drepper <drepper@redhat.com>
  4685. * sysdeps/pthread/pt-initfini.c (call_initialize_minimal): Mark
  4686. __pthread_initialize_minimal as hidden.
  4687. * init.c (__pthread_initialize_minimal_internal): Don't mark as
  4688. constructor.
  4689. 2002-12-31 Jakub Jelinek <jakub@redhat.com>
  4690. * Makefile ($(inst_libdir)/libpthread.so): Depend on
  4691. $(common-objpfx)format.lds, include that into the output script.
  4692. Fix comment.
  4693. (extra-B-pthread.so): Change linuxthreads/ into nptl/.
  4694. 2002-12-28 Andreas Jaeger <aj@suse.de>
  4695. * sysdeps/unix/sysv/linux/xstatconv.c (xstat_conv): Adjust for
  4696. nsec resolution changes.
  4697. (xstat64_conv): Likewise.
  4698. (xstat32_conv): Likewise.
  4699. * sysdeps/unix/sysv/linux/kernel_stat.h: Add nsec resolution for
  4700. struct kernel_stat.
  4701. * sysdeps/unix/sysv/linux/bits/stat.h: Add nsec resolution for
  4702. structs stat and stat64.
  4703. * time/time.h (__timespec_defined): Define for __USE_MISC.
  4704. * io/sys/stat.h [__USE_MISC]: Define __need_timespec for struct stat.
  4705. 2002-12-30 Jakub Jelinek <jakub@redhat.com>
  4706. * forward.c (FORWARD2): Renamed from FORWARD3. Remove unused export
  4707. argument.
  4708. (pthread_attr_init_2_0, pthread_attr_init_2_1): Use FORWARD macro.
  4709. (pthread_exit): Use strong_alias to avoid warnings.
  4710. * pthreadP.h (struct pthread_functions): Rename ptr_pthread_exit
  4711. and ptr_pthread_attr_init_2_* to ptr___pthread_exit and
  4712. ptr___pthread_attr_init_2_*.
  4713. * init.c (pthread_functions): Adjust.
  4714. 2002-12-29 Ulrich Drepper <drepper@redhat.com>
  4715. * forward.c: Make all functions available by default again. It
  4716. caused too much trouble.
  4717. * pt-siglongjmp.c: Removed.
  4718. 2002-12-28 Jakub Jelinek <jakub@redhat.com>
  4719. * sysdeps/i386/tls.h: Include tcb-offsets.h in assembler.
  4720. (SYSINFO_OFFSET, MULTIPLE_THREADS_OFFSET): Remove.
  4721. * sysdeps/i386/Makefile: New file.
  4722. * sysdeps/i386/tcb-offsets.sym: New file.
  4723. * sysdeps/pthread/tcb-offsets.h: New file.
  4724. * sysdeps/unix/sysv/linux/libc_pthread_init.c (__libc_pthread_init):
  4725. Remove MULTIPLE_THREADS_OFFSET and SYSINFO_OFFSET checks.
  4726. * sysdeps/unix/sysv/linux/Versions [libc] (GLIBC_PRIVATE): Move
  4727. __register_atfork...
  4728. (GLIBC_2.3.2): ...here.
  4729. 2002-12-28 Ulrich Drepper <drepper@redhat.com>
  4730. * sysdeps/pthread/pthread.h: Mark pthread_attr_getstackaddr and
  4731. pthread_attr_setstackaddr with __attribute_deprecated__.
  4732. 2002-12-27 Jakub Jelinek <jakub@redhat.com>
  4733. * pt-system.c (system): Remove cancellation handling.
  4734. * tst-cancel-wrappers.sh: Allow pt-system.o* to not use the
  4735. cancellation routines.
  4736. 2002-12-28 Ulrich Drepper <drepper@redhat.com>
  4737. * descr.h: Include <dl-sysdep.h>.
  4738. (struct pthread): Move header.data.list to the back of the struct.
  4739. * sysdeps/i386/tls.h (tcbhead_t): Move list to the back of the struct.
  4740. (MULTIPLE_THREADS_OFFSET): Adjust offset.
  4741. (SYSINFO_OFFSEET): Likewise.
  4742. 2002-12-27 Jakub Jelinek <jakub@redhat.com>
  4743. * sysdeps/unix/sysv/linux/i386/i686/dl-sysdep.h (USE_DL_SYSINFO):
  4744. Define.
  4745. (DL_SYSINFO_DEFAULT): Cast to uintptr_t to avoid warnings.
  4746. * sysdeps/unix/sysv/linux/i386/dl-sysdep.h (NEED_DL_SYSINFO,
  4747. DL_SYSINFO_DEFAULT, DL_SYSINFO_IMPLEMENTATION): Define.
  4748. (USE_DL_SYSINFO): Undef.
  4749. 2002-12-22 Jakub Jelinek <jakub@redhat.com>
  4750. * Makefile (tests-reverse): Use $(objpfx)../libc.so instead of
  4751. $(common-objpfx)libc.so.
  4752. * tst-cancel4.c (tf_write, tf_writev): Increase buf sizes so that
  4753. it is bigger than pipe buffer size even on arches with bigger
  4754. page size.
  4755. (tf_usleep): Cast usleep argument to useconds_t to avoid warnings.
  4756. 2002-12-25 Ulrich Drepper <drepper@redhat.com>
  4757. * sysdeps/unix/sysv/linux/i386/i486/lowlevelsem.S: Implement
  4758. correct errno access for case that USE___THREAD is not defined.
  4759. 2002-12-24 Ulrich Drepper <drepper@redhat.com>
  4760. * sysdeps/unix/sysv/linux/i386/dl-sysdep.h: Add missing #endif.
  4761. Patch by Marijn Ros <marijn@mad.scientist.com>.
  4762. 2002-12-22 Roland McGrath <roland@redhat.com>
  4763. * Makefile (omit-deps): Add $(unix-syscalls:%=ptw-%).
  4764. 2002-12-20 Ulrich Drepper <drepper@redhat.com>
  4765. * sysdeps/pthread/bits/stdio-lock.h (_IO_lock_inexpensive): Define.
  4766. 2002-12-19 Ulrich Drepper <drepper@redhat.com>
  4767. * sysdeps/unix/sysv/linux/i386/dl-sysdep.h: Don't define
  4768. NEED_DL_SYSINFO since no processor < i686 had the sysenter opcode.
  4769. * sysdeps/unix/sysv/linux/i386/i686/dl-sysdep.h: New file.
  4770. * sysdeps/unix/sysv/linux/i386/pthread_once.S: Use ENTER_KERNEL instead
  4771. of int $0x80.
  4772. * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S: Likewise.
  4773. * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevelmutex.S: Likewise.
  4774. * sysdeps/unix/sysv/linux/i386/i486/lowlevelcond.S: Likewise.
  4775. * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S: Likewise.
  4776. * sysdeps/unix/sysv/linux/i386/i486/lowlevelmutex.S: Likewise.
  4777. * sysdeps/unix/sysv/linux/i386/i486/lowlevelrwlock.S: Likewise.
  4778. * sysdeps/unix/sysv/linux/i386/i486/lowlevelsem.S: Likewise.
  4779. * sysdeps/unix/sysv/linux/i386/i486/pthread_barrier_wait.S: Likewise.
  4780. * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Add support for using
  4781. sysenter.
  4782. * sysdeps/unix/sysv/linux/i386/lowlevelsem.h: Likewise.
  4783. * sysdeps/i386/tls.h: Unconditionally include <dl-sysdep.h>.
  4784. * allocatestack.c (allocate_stack) [NEED_DL_SYSINFO]: Set sysinfo
  4785. in new TCB.
  4786. * sysdeps/unix/sysv/linux/i386/createthread.c (create_thread): Check
  4787. that sysinfo is properly initialized.
  4788. * sysdeps/unix/sysv/linux/i386/dl-sysdep.h: Define RTLD_PRIVATE_ERRNO
  4789. to 1 only for ld.so.
  4790. * sysdeps/unix/sysv/linux/i386/dl-sysdep.h: Define
  4791. RTLD_CORRECT_DYNAMIC_WEAK.
  4792. 2002-12-19 Jakub Jelinek <jakub@redhat.com>
  4793. * forward.c (pthread_attr_init_2_0, pthread_attr_init_2_1):
  4794. Use return 0 as 6th argument to FORWARD4.
  4795. * pthread_equal.c: Include pthreadP.h instead of pthread.h.
  4796. 2002-12-18 Ulrich Drepper <drepper@redhat.com>
  4797. * descr.h (struct pthread) [NEED_DL_SYSINFO]: Add sysinfo member.
  4798. * sysdeps/i386/tls.h (tcbhead_t): Add sysinfo member.
  4799. Define SYSINFO_OFFSEET if NEED_DL_SYSINFO is defined.
  4800. (INIT_SYSINFO): New #define.
  4801. (TLS_TP_INIT): Use INIT_SYSINFO.
  4802. * sysdeps/unix/sysv/linux/libc_pthread_init.c (__libc_pthread_init):
  4803. At test to make sure SYSINFO_OFFSET value is correct.
  4804. * sysdeps/unix/sysv/linux/i386/dl-sysdep.h: New file.
  4805. 2002-12-18 Jakub Jelinek <jakub@redhat.com>
  4806. * sysdeps/pthread/flockfile.c (flockfile): Change into weak alias.
  4807. * sysdeps/unix/sysv/linux/raise.c (gsignal): Add weak alias to raise.
  4808. * Versions [libc: GLIBC_2.0]: Add pthread_attr_init.
  4809. [libpthread: GLIBC_2.1]: Remove __pthread_rwlock_init,
  4810. __pthread_rwlock_destroy, __pthread_rwlock_rdlock,
  4811. __pthread_rwlock_wrlock, __pthread_rwlock_unlock,
  4812. __pthread_rwlock_tryrdlock and __pthread_rwlock_trywrlock.
  4813. 2002-12-18 Ulrich Drepper <drepper@redhat.com>
  4814. * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: Use ENTER_KERNEL
  4815. macro instead of using int $0x80 directly.
  4816. * sysdeps/pthread/bits/stdio-lock.h: New file.
  4817. * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevelmutex.S: New file.
  4818. * sysdeps/unix/sysv/linux/i386/i586/libc-lowlevelmutex.S: New file.
  4819. * sysdeps/unix/sysv/linux/i386/i686/libc-lowlevelmutex.S: New file.
  4820. * Makefile (routines): Add libc-lowlevelmutex.
  4821. * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S: Remove
  4822. __i686.get_pc_thunk.dx.
  4823. 2002-12-17 Jakub Jelinek <jakub@redhat.com>
  4824. * Makefile (libpthread-shared-only-routines): Add pt-allocrtsig.
  4825. (tests): Depend on $(objpfx)tst-cancel-wrappers.out.
  4826. ($(objpfx)tst-cancel-wrappers.out): New rule.
  4827. * tst-cancel-wrappers.sh: New test.
  4828. * tst-locale1.c: Include signal.h.
  4829. (uselocale): Test static linking of __libc_current_sigrt*.
  4830. 2002-12-17 Ulrich Drepper <drepper@redhat.com>
  4831. * Makefile (tests): Add tst-cancel6.
  4832. * tst-cancel6.c: New file
  4833. 2002-12-17 Jakub Jelinek <jakub@redhat.com>
  4834. * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (SINGLE_THREAD_P):
  4835. Define meaningfully for assembler as well.
  4836. * pthreadP.h (struct pthread_functions): Remove
  4837. ptr_pthread_attr_init field. Add ptr_pthread_attr_init_2_0
  4838. and ptr_pthread_attr_init_2_1 fields.
  4839. * init.c (pthread_functions): Initialize ptr_pthread_attr_init_2_0
  4840. and ptr_pthread_attr_init_2_1 instead of ptr_pthread_attr_init.
  4841. * forward.c (FORWARD4): Renamed from FORWARD3. Add export argument.
  4842. (FORWARD3): Define using FORWARD4.
  4843. (pthread_attr_init): Provide both @GLIBC_2.0 and @@GLIBC_2.1
  4844. versions.
  4845. * pt-system.c: Remove duplicate stdlib.h include.
  4846. 2002-12-16 Ulrich Drepper <drepper@redhat.com>
  4847. * sem_init.c: Define sem_init@GLIBC_2.0.
  4848. * sem_destroy.c: Define sem_destroy@GLIBC_2.0.
  4849. * sem_getvalue.c: Define sem_getvalue@GLIBC_2.0.
  4850. * flockfile.c: Moved to...
  4851. * sysdeps/pthread/flockfile.c: ...here. New file.
  4852. * funlockfile.c: Moved to...
  4853. * sysdeps/pthread/funlockfile.c: ...here. New file.
  4854. * ftrylockfile.c: Moved to...
  4855. * sysdeps/pthread/ftrylockfile.c: ...here. New file.
  4856. 2002-12-16 Jakub Jelinek <jakub@redhat.com>
  4857. * libc-cancellation.c: Guard both function with
  4858. #if !defined NOT_IN_libc.
  4859. * Makefile (libpthread-routines): Use ptw-, not pt- prefix for the
  4860. automatically provided pthread wrappers.
  4861. * pthreadP.h (LIBC_CANCEL_ASYNC, LIBC_CANCEL_RESET): Define to
  4862. CANCEL_* if IS_IN_libpthread and to dummy versions if not in libc
  4863. nor in libpthread.
  4864. * pt-open.c: Removed.
  4865. * pt-fcntl.c: Removed.
  4866. * pt-fsync.c: Removed.
  4867. * pt-lseek.c: Removed.
  4868. * pt-msgrcv.c: Removed.
  4869. * pt-msgsnd.c: Removed.
  4870. * pt-msync.c: Removed.
  4871. * pt-nanosleep.c: Removed.
  4872. * pt-open64.c: Removed.
  4873. * pt-pause.c: Removed.
  4874. * pt-pread.c: Removed.
  4875. * pt-pread64.c: Removed.
  4876. * pt-pwrite.c: Removed.
  4877. * pt-pwrite64.c: Removed.
  4878. * pt-read.c: Removed.
  4879. * pt-recv.c: Removed.
  4880. * pt-recvfrom.c: Removed.
  4881. * pt-recvmsg.c: Removed.
  4882. * pt-send.c: Removed.
  4883. * pt-sendto.c: Removed.
  4884. * pt-sigtimedwait.c: Removed.
  4885. * pt-sigwait.c: Removed.
  4886. * pt-wait.c: Removed.
  4887. * pt-waitpid.c: Removed.
  4888. * pt-write.c: Removed.
  4889. * pt-accept.c: Removed.
  4890. * pt-close.c: Removed.
  4891. * pt-connect.c: Removed.
  4892. * pt-lseek64.c: Removed.
  4893. * pt-sendmsg.c: Removed.
  4894. * pt-tcdrain.c: Removed.
  4895. 2002-12-15 Ulrich Drepper <drepper@redhat.com>
  4896. * init.c (__pthread_initialize_minimal_internal): Renamed from
  4897. __pthread_initialize_minimal. Make old name an alias. This
  4898. converts a normal relocation into a relative relocation.
  4899. * pt-fcntl.c (__fcntl): Use fcntl64 syscall, not fcntl.
  4900. * Versions [libpthread: GLIBC_2.3.2]: Remove creat, poll, pselect,
  4901. readv, select, sigpause, sigsuspend, sigwaitinfo, waitid, writev.
  4902. * Makefile (libpthread-routines): Remove pt-creat, pt-poll,
  4903. pt-pselect, pt-readv, pt-select, pt-sigpause, pt-sigsuspend,
  4904. pt-sigwaitinfo, pt-waitid, and pt-writev.
  4905. * pt-creat.c: Removed.
  4906. * pt-poll.c: Removed.
  4907. * pt-pselect.c: Removed.
  4908. * pt-readv.c: Removed.
  4909. * pt-select.c: Removed.
  4910. * pt-sigpause.c: Removed.
  4911. * pt-sigsuspend.c: Removed.
  4912. * pt-sigwaitinfo.c: Removed.
  4913. * pt-waitid.c: Removed.
  4914. * pt-writev.c: Removed.
  4915. * init.c (pthread_functions): New variable.
  4916. (__pthread_initialize_minimal): Pass pointer to pthread_functions
  4917. (or NULL) to __libc_pthread_init.
  4918. * forward.c: Rewrite to use __libc:pthread_functions array to get
  4919. function addresses.
  4920. * sysdeps/unix/sysv/linux/fork.h: Remove __libc_pthread_init
  4921. prototype.
  4922. * sysdeps/unix/sysv/linux/libc_pthread_init.c (__libc_pthread_init):
  4923. Take new parameter. Copy content of variable pointed to by it
  4924. to __libc_pthread_init.
  4925. * pthreadP.h (struct pthread_functions): New type.
  4926. (__libc_pthread_init): Declare.
  4927. * pthread_attr_destroy.c: Add namespace protected alias.
  4928. * pthread_attr_getdetachstate.c: Likewise.
  4929. * pthread_attr_getinheritsched.c: Likewise.
  4930. * pthread_attr_getschedparam.c: Likewise.
  4931. * pthread_attr_getschedpolicy.c: Likewise.
  4932. * pthread_attr_getscope.c: Likewise.
  4933. * pthread_attr_setdetachstate.c: Likewise.
  4934. * pthread_attr_setinheritsched.c: Likewise.
  4935. * pthread_attr_setschedparam.c: Likewise.
  4936. * pthread_attr_setschedpolicy.c: Likewise.
  4937. * pthread_attr_setscope.c: Likewise.
  4938. * pthread_cond_broadcast.c: Likewise.
  4939. * pthread_cond_destroy.c: Likewise.
  4940. * pthread_cond_init.c: Likewise.
  4941. * pthread_cond_signal.c: Likewise.
  4942. * pthread_cond_wait.c: Likewise.
  4943. * pthread_condattr_destroy.c: Likewise.
  4944. * pthread_condattr_init.c: Likewise.
  4945. * pthread_equal.c: Likewise.
  4946. * pthread_exit.c: Likewise.
  4947. * pthread_getschedparam.c: Likewise.
  4948. * pthread_self.c: Likewise.
  4949. * pthread_setcancelstate.c: Likewise.
  4950. * pthread_setschedparam.c: Likewise.
  4951. * pthread_mutex_destroy.c: Likewise.
  4952. * pthread_mutex_init.c: Likewise.
  4953. * pthreadP.h: Add prototypes for the aliases.
  4954. * sysdeps/unix/sysv/linux/i386/createthread.c (create_thread): Set
  4955. multiple_threads member in correct TCB to 1.
  4956. * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: Define
  4957. SINGLE_THREAD_P. If in libc or libpthread examine multiple_thread
  4958. member of thread decriptor, otherwise return unconditionally 1.
  4959. 2002-12-14 Ulrich Drepper <drepper@redhat.com>
  4960. * sysdeps/unix/sysv/linux/i386/pt-socket.S: Changes folded into the
  4961. regular Linux version. Remove file.
  4962. * sysdeps/unix/sysv/linux/connect.S: Likewise. Remove file.
  4963. * sysdeps/unix/sysv/linux/llseek.c: Likewise. Remove file.
  4964. * sysdeps/unix/sysv/linux/msgrcv.c: Likewise. Remove file.
  4965. * sysdeps/unix/sysv/linux/msgsnd.c: Likewise. Remove file.
  4966. * sysdeps/unix/sysv/linux/open64.c: Likewise. Remove file.
  4967. * sysdeps/unix/sysv/linux/poll.c: Likewise. Remove file.
  4968. * sysdeps/unix/sysv/linux/pread.c: Likewise. Remove file.
  4969. * sysdeps/unix/sysv/linux/pread64.c: Likewise. Remove file.
  4970. * sysdeps/unix/sysv/linux/pselect.c: Likewise. Remove file.
  4971. * sysdeps/unix/sysv/linux/pwrite.c: Likewise. Remove file.
  4972. * sysdeps/unix/sysv/linux/pwrite64.c: Likewise. Remove file.
  4973. * sysdeps/unix/sysv/linux/readv.c: Likewise. Remove file.
  4974. * sysdeps/unix/sysv/linux/recv.S: Likewise. Remove file.
  4975. * sysdeps/unix/sysv/linux/recvfrom.S: Likewise. Remove file.
  4976. * sysdeps/unix/sysv/linux/recvmsg.S: Likewise. Remove file.
  4977. * sysdeps/unix/sysv/linux/send.S: Likewise. Remove file.
  4978. * sysdeps/unix/sysv/linux/sendmsg.S: Likewise. Remove file.
  4979. * sysdeps/unix/sysv/linux/sendto.S: Likewise. Remove file.
  4980. * sysdeps/unix/sysv/linux/sigpause.c: Likewise. Remove file.
  4981. * sysdeps/unix/sysv/linux/sigsuspend.c: Likewise. Remove file.
  4982. * sysdeps/unix/sysv/linux/sigtimedwait.c: Likewise. Remove file.
  4983. * sysdeps/unix/sysv/linux/sigwait.c: Likewise. Remove file.
  4984. * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise. Remove file.
  4985. * sysdeps/unix/sysv/linux/system.c: Likewise. Remove file.
  4986. * sysdeps/unix/sysv/linux/tcdrain.c: Likewise. Remove file.
  4987. * sysdeps/unix/sysv/linux/wait.c: Likewise. Remove file.
  4988. * sysdeps/unix/sysv/linux/waitid.c: Likewise. Remove file.
  4989. * sysdeps/unix/sysv/linux/waitpid.c: Likewise. Remove file.
  4990. * sysdeps/unix/sysv/linux/writev.c: Likewise. Remove file.
  4991. * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise. Remove file.
  4992. 2002-12-14 Jakub Jelinek <jakub@redhat.com>
  4993. * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: New file.
  4994. * sysdeps/unix/sysv/linux/open.c: Removed.
  4995. * sysdeps/unix/sysv/linux/fsync.c: Removed.
  4996. * sysdeps/unix/sysv/linux/lseek.c: Removed.
  4997. * sysdeps/unix/sysv/linux/msync.c: Removed.
  4998. * sysdeps/unix/sysv/linux/read.c: Removed.
  4999. * sysdeps/unix/sysv/linux/close.c: Removed.
  5000. * sysdeps/unix/sysv/linux/creat.c: Removed.
  5001. * sysdeps/unix/sysv/linux/nanosleep.c: Removed.
  5002. * sysdeps/unix/sysv/linux/pause.c: Removed.
  5003. * sysdeps/unix/sysv/linux/select.c: Removed.
  5004. * sysdeps/unix/sysv/linux/write.c: Removed.
  5005. 2002-12-14 Ulrich Drepper <drepper@redhat.com>
  5006. * sysdeps/unix/sysv/linux/i386/pt-socket.S: Check multiple_threads
  5007. element in TCB to see whether locking is needed.
  5008. * sysdeps/unix/sysv/linux/libc_pthread_init.c: Check that
  5009. MULTIPLE_THREADS_OFFSET value is correct.
  5010. * sysdeps/unix/sysv/linux/close.c: New file.
  5011. * sysdeps/unix/sysv/linux/connect.S: New file.
  5012. * sysdeps/unix/sysv/linux/creat.c: New file.
  5013. * sysdeps/unix/sysv/linux/fsync.c: New file.
  5014. * sysdeps/unix/sysv/linux/llseek.c: New file.
  5015. * sysdeps/unix/sysv/linux/lseek.c: New file.
  5016. * sysdeps/unix/sysv/linux/msgrcv.c: New file.
  5017. * sysdeps/unix/sysv/linux/msgsnd.c: New file.
  5018. * sysdeps/unix/sysv/linux/msync.c: New file.
  5019. * sysdeps/unix/sysv/linux/nanosleep.c: New file.
  5020. * sysdeps/unix/sysv/linux/open.c: New file.
  5021. * sysdeps/unix/sysv/linux/open64.c: New file.
  5022. * sysdeps/unix/sysv/linux/pause.c: New file.
  5023. * sysdeps/unix/sysv/linux/poll.c: New file.
  5024. * sysdeps/unix/sysv/linux/pread.c: New file.
  5025. * sysdeps/unix/sysv/linux/pread64.c: New file.
  5026. * sysdeps/unix/sysv/linux/pselect.c: New file.
  5027. * sysdeps/unix/sysv/linux/pwrite.c: New file.
  5028. * sysdeps/unix/sysv/linux/pwrite64.c: New file.
  5029. * sysdeps/unix/sysv/linux/readv.c: New file.
  5030. * sysdeps/unix/sysv/linux/recv.S: New file.
  5031. * sysdeps/unix/sysv/linux/recvfrom.S: New file.
  5032. * sysdeps/unix/sysv/linux/recvmsg.S: New file.
  5033. * sysdeps/unix/sysv/linux/select.c: New file.
  5034. * sysdeps/unix/sysv/linux/send.S: New file.
  5035. * sysdeps/unix/sysv/linux/sendmsg.S: New file.
  5036. * sysdeps/unix/sysv/linux/sendto.S: New file.
  5037. * sysdeps/unix/sysv/linux/sigpause.c: New file.
  5038. * sysdeps/unix/sysv/linux/sigsuspend.c: New file.
  5039. * sysdeps/unix/sysv/linux/sigtimedwait.c: New file.
  5040. * sysdeps/unix/sysv/linux/sigwait.c: New file.
  5041. * sysdeps/unix/sysv/linux/sigwaitinfo.c: New file.
  5042. * sysdeps/unix/sysv/linux/system.c: New file.
  5043. * sysdeps/unix/sysv/linux/tcdrain.c: New file.
  5044. * sysdeps/unix/sysv/linux/wait.c: New file.
  5045. * sysdeps/unix/sysv/linux/waitid.c: New file.
  5046. * sysdeps/unix/sysv/linux/waitpid.c: New file.
  5047. * sysdeps/unix/sysv/linux/writev.c: New file.
  5048. * sysdeps/unix/sysv/linux/i386/fcntl.c: New file.
  5049. * pt-readv.c: Fix comment.
  5050. 2002-12-14 Jakub Jelinek <jakub@redhat.com>
  5051. * tst-cleanup1.c: Include stdlib.h.
  5052. * tst-cancel5.c: New test.
  5053. * Makefile (tests): Add tst-cancel5.
  5054. (tst-cancel5): Link against libc.so libpthread.so in that order.
  5055. 2002-12-13 Ulrich Drepper <drepper@redhat.com>
  5056. * forward.c (test_loaded): Prevent recursive calls.
  5057. * Makefile (routines): Add libc-cancellation.
  5058. * libc-cancellation.c: New file.
  5059. * descr.h (struct pthread): Add multiple_threads field.
  5060. * allocatestack.c (allocate_stack): Initialize multiple_header field of
  5061. new thread descriptor to 1.
  5062. * sysdeps/unix/sysv/linux/i386/createthread.c (create_thread):
  5063. Initialize multiple_thread field after successful thread creation.
  5064. * cancellation.c (__do_cancel): Move to pthreadP.h.
  5065. (__pthread_enable_asynccancel): Remove parameter from __do_cancel call.
  5066. (__pthread_disable_asynccancel): Add internal_function attribute.
  5067. * init.c (sigcancel_handler): Remove parameter from __do_cancel call.
  5068. * pthread_setcancelstate.c: Likewise.
  5069. * pthread_setcanceltype.c: Likewise.
  5070. * pthread_exit.c: Likewise.
  5071. * pthreadP.h (CANCELLATION_P): Likewise.
  5072. (__do_cancel): Define as static inline.
  5073. (LIBC_CANCEL_ASYNC, LIBC_CANCEL_RESET): New #defines.
  5074. (__libc_enable_asynccancel, __libc_disable_asynccancel): New
  5075. declarations.
  5076. * sysdeps/i386/tls.h (tcbhead_t): Add list and multiple_threads
  5077. fields. Define MULTIPLE_THREADS_OFFSET.
  5078. * sysdeps/pthread/bits/libc-lock.h: Remove __libc_locking_needed
  5079. declaration.
  5080. * sysdeps/unix/sysv/linux/accept.S: New file.
  5081. * sysdeps/unix/sysv/linux/read.c: New file.
  5082. * sysdeps/unix/sysv/linux/write.c: New file.
  5083. * sysdeps/unix/sysv/linux/i386/pt-socket.S: New file.
  5084. * sysdeps/unix/sysv/linux/libc_pthread_init.c: Remove definition and
  5085. initialization of __libc_locking_needed.
  5086. * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Don't use
  5087. __libc_locking_needed, use multiple_threads field in TCB.
  5088. * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S: Likewise.
  5089. 2002-12-12 Ulrich Drepper <drepper@redhat.com>
  5090. * sysdeps/unix/sysv/linux/i386/i686/libc-lowlevellock.S: Use i486
  5091. version.
  5092. * sysdeps/unix/sysv/linux/i386/i586/libc-lowlevellock.S: Likewise.
  5093. * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S: Correct
  5094. access to __libc_locking_needed for PIC.
  5095. 2002-12-12 Jakub Jelinek <jakub@redhat.com>
  5096. * sysdeps/pthread/bits/libc-lock.h (__libc_locking_needed): Only
  5097. declare for libc.so.
  5098. (__libc_lock_init, __libc_lock_init_recursive): Change into comma
  5099. expression.
  5100. (__libc_lock_lock): Put into statement expression.
  5101. (__libc_lock_unlock): Remove trailing semicolon.
  5102. * sysdeps/unix/sysv/linux/fork.h (__libc_pthread_init): Fix typo.
  5103. 2002-12-12 Roland McGrath <roland@redhat.com>
  5104. * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Use asm operand with
  5105. "m" constraint to refer to __libc_locking_needed. Declare it here.
  5106. 2002-12-12 Ulrich Drepper <drepper@redhat.com>
  5107. * sysdeps/unix/sysv/linux/fork-gen.c: Renamed to...
  5108. * sysdeps/unix/sysv/linux/libc_pthread_init.c: ...this.
  5109. Initialize __libc_locking_needed.
  5110. * init.c (__pthread_initialize_minimal): Call __libc_pthread_init
  5111. instead of __register_pthread_fork_handler.
  5112. * sysdeps/pthread/bits/libc-lock.h: Declare __libc_locking_needed.
  5113. * sysdeps/unix/sysv/linux/Makefile (sysdep_routimes): Replace
  5114. fork-gen with libc_pthread_init.
  5115. * sysdeps/unix/sysv/linux/Versions: Use __libc_pthread_init instead
  5116. of __register_pthread_fork_handler.
  5117. * sysdeps/unix/sysv/linux/fork.h: Declare __libc_pthread_init instead
  5118. of __register_pthread_fork_handler.
  5119. * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Use
  5120. __libc_locking_needed to determine whether lock prefix can be avoided.
  5121. * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S: Likewise.
  5122. 2002-12-11 Ulrich Drepper <drepper@redhat.com>
  5123. * Makefile (tests): Add tst-cleanup1.
  5124. * tst-cleanup1.c: New file.
  5125. * cancellation.c (__cleanup_thread): Removed.
  5126. (__do_cancel): Remove call to __cleanup_thread.
  5127. * pthreadP.h: Remove __cleanup_thread prorotype.
  5128. * sysdeps/pthread/bits/libc-lock.h (__libc_cleanup_region_start):
  5129. Remember function and argument even if cancellation handler
  5130. function is not available.
  5131. (__libc_cleanup_region_end): Execute registered function directly if
  5132. pthread functions are not available.
  5133. (__libc_cleanup_end): Likewise.
  5134. * init.c (__pthread_initialize_minimal): Fix initialization in
  5135. static lib by preventing gcc from being too clever.
  5136. 2002-12-10 Ulrich Drepper <drepper@redhat.com>
  5137. * init.c (__pthread_initialize_minimal): Remove unneccesary
  5138. sigaddset call.
  5139. * Makefile (tests): We can run tst-locale2 now.
  5140. 2002-12-09 Ulrich Drepper <drepper@redhat.com>
  5141. * Versions: Remove duplicated sigwait entry.
  5142. 2002-12-08 Ulrich Drepper <drepper@redhat.com>
  5143. * pthreadP.h: Enable pthread_cleanup_{push,pop} optimizations only
  5144. inside libpthread.
  5145. * pt-fcntl.c (__fcntl): Initialize oldtype to avoid warning.
  5146. * pthreadP.h: Declare __pthread_enable_asynccancel and
  5147. __pthread_disable_asynccancel.
  5148. (CANCEL_ASYNC): Use __pthread_enable_asynccancel.
  5149. (CANCEL_RESET): Use __pthread_disable_asynccancel.
  5150. * cancellation.c (__pthread_enable_asynccancel): New function.
  5151. (__pthread_disable_asynccancel): New function.
  5152. * pt-accept.c: Adjust for CANCEL_ASYNC and CANCEL_RESET change.
  5153. * pt-close.c: Likewise.
  5154. * pt-connect.c: Likewise.
  5155. * pt-creat.c: Likewise.
  5156. * pt-fcntl.c: Likewise.
  5157. * pt-fsync.c: Likewise.
  5158. * pt-lseek.c: Likewise.
  5159. * pt-lseek64.c: Likewise.
  5160. * pt-msgrcv.c: Likewise.
  5161. * pt-msgsnd.c: Likewise.
  5162. * pt-msync.c: Likewise.
  5163. * pt-nanosleep.c: Likewise.
  5164. * pt-open.c: Likewise.
  5165. * pt-open64.c: Likewise.
  5166. * pt-pause.c: Likewise.
  5167. * pt-poll.c: Likewise.
  5168. * pt-pread.c: Likewise.
  5169. * pt-pread64.c: Likewise.
  5170. * pt-pselect.c: Likewise.
  5171. * pt-pwrite.c: Likewise.
  5172. * pt-pwrite64.c: Likewise.
  5173. * pt-read.c: Likewise.
  5174. * pt-readv.c: Likewise.
  5175. * pt-recv.c: Likewise.
  5176. * pt-recvfrom.c: Likewise.
  5177. * pt-recvmsg.c: Likewise.
  5178. * pt-select.c: Likewise.
  5179. * pt-send.c: Likewise.
  5180. * pt-sendmsg.c: Likewise.
  5181. * pt-sendto.c: Likewise.
  5182. * pt-sigpause.c: Likewise.
  5183. * pt-sigsuspend.c: Likewise.
  5184. * pt-sigtimedwait.c: Likewise.
  5185. * pt-sigwait.c: Likewise.
  5186. * pt-sigwaitinfo.c: Likewise.
  5187. * pt-system.c: Likewise.
  5188. * pt-tcdrain.c: Likewise.
  5189. * pt-wait.c: Likewise.
  5190. * pt-waitid.c: Likewise.
  5191. * pt-waitpid.c: Likewise.
  5192. * pt-write.c: Likewise.
  5193. * pt-writev.c: Likewise.
  5194. * pthread_join.c: Likewise.
  5195. * pthread_timedjoin.c: Likewise.
  5196. * pt-sigpause.c (sigsuspend): Call __sigsuspend.
  5197. (__xpg_sigpause): New function.
  5198. * Versions (libpthread:GLIBC_2.3.2): Add __xpg_sigpause.
  5199. 2002-12-07 Ulrich Drepper <drepper@redhat.com>
  5200. * Makefile (CFLAGS-ftrylockfile.c): Add -D_IO_MTSAFE_IO.
  5201. * cleanup.c: Move declarations of _GI_pthread_cleanup_push and
  5202. _GI_pthread_cleanup_pop to pthreadP.h.
  5203. * ftrylockfile.c: Use _IO_lock_trylock instead of
  5204. pthread_mutex_trylock.
  5205. * pthreadP.h (CANCEL_ASYNC): Use __pthread_setcanceltype.
  5206. (CANCEL_RESET): Likewise.
  5207. (__pthread_setcanceltype_): Declare.
  5208. (__pthread_mutex_lock_internal): Declare.
  5209. (__pthread_mutex_unlock_internal): Declare.
  5210. (__pthread_once_internal): Declare.
  5211. (pthread_cleanup_push): Redefine using _GI_pthread_cleanup_push.
  5212. (pthread_cleanup_pop): Redefine using _GI_pthread_cleanup_pop.
  5213. * pthread_cond_timedwait.c: Use INTUSE is calls to pthread_mutex_lock
  5214. and pthread_mutex_unlock.
  5215. * pthread_cond_wait.c: Likewise.
  5216. * pthread_mutex_lock.c: Use INTDEF to define alias if needed.
  5217. * pthread_mutex_unlock.c: Likewise.
  5218. * pthread_setcanceltype.c: Add additional alias
  5219. __pthread_setcanceltype.
  5220. * sem_unlink.c (sem_unlink): Use __pthread_once with INTDEF.
  5221. * sem_open.c (sem_open): Likewise.
  5222. Use __libc_open, __libc_write, and __libc_close instead of
  5223. open, write, and close respectively.
  5224. * sysdeps/pthread/bits/libc-lock.h (__libc_lock_trylock_internal):
  5225. Rewrite as statement expression since it must return a value.
  5226. * pthread_cancel.c: Use __pthread_kill instead of pthread_kill.
  5227. * sysdeps/unix/sysv/linux/pthread_kill.c: Define additional alias
  5228. __pthread_kill.
  5229. * sysdeps/unix/sysv/linux/i386/pthread_once.S: Define additional
  5230. alias __pthread_once_internal.
  5231. * sysdeps/unix/sysv/linux/raise.c: Use libc_hidden_def for raise.
  5232. 2002-12-06 Ulrich Drepper <drepper@redhat.com>
  5233. * Makefile (tests): Add tst-stdio1 and tst-stdio2.
  5234. * tst-stdio1.c: New file.
  5235. * tst-stdio2.c: New file.
  5236. * init.c (__pthread_initialize_minimal): Correct INIT_LIST_HEAD use.
  5237. * Makefile (tests): Comment out tst-locale2 for now.
  5238. (CFLAGS-flockfile.c, CFLAGS-funlockfile.c): Define to -D_IO_MTSAFE_IO.
  5239. * sysdeps/unix/sysv/linux/Makefile: Define CFLAGS-fork.c to
  5240. -D_IO_MTSAFE_IO.
  5241. * sysdeps/unix/sysv/linux/fork.c: Include <bits/stdio-lock.h>.
  5242. Use _IO_lock_init instead of explicit assignment.
  5243. * sysdeps/pthread/bits/libc-lock.h: Define __rtld_lock_* macros.
  5244. Define __libc_lock_* and __libc_lock_recursive macros with
  5245. lowlevellock macros, not pthread mutexes.
  5246. * flockfile.c: Include <bits/stdio-lock.h>. Use _IO_lock_lock instead
  5247. of pthread_mutex_lock.
  5248. * funlockfile.c: Include <bits/stdio-lock.h>. Use _IO_lock_unlock
  5249. instead of pthread_mutex_unlock.
  5250. 2002-12-06 Roland McGrath <roland@redhat.com>
  5251. * allocatestack.c (__stack_user): Use uninitialized defn.
  5252. * init.c (__pthread_initialize_minimal): Initialize it here.
  5253. 2002-12-05 Roland McGrath <roland@redhat.com>
  5254. * sysdeps/i386/tls.h (TLS_INIT_TP): Make it return zero or an error
  5255. string.
  5256. * sysdeps/x86_64/tls.h (TLS_INIT_TP): Likewise.
  5257. * sysdeps/unix/sysv/linux/i386/createthread.c (create_thread): Add
  5258. missing & here too.
  5259. 2002-12-05 Ulrich Drepper <drepper@redhat.com>
  5260. * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Remove
  5261. lowlevellock.
  5262. * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S: New file.
  5263. * sysdeps/unix/sysv/linux/i386/i586/libc-lowlevellock.S: New file.
  5264. * sysdeps/unix/sysv/linux/i386/i686/libc-lowlevellock.S: New file.
  5265. * sysdeps/pthread/bits/libc-lock.h: Use lowlevellock implementation
  5266. for __libc_lock_* macros.
  5267. * Makefile (routines): Add libc-lowlevellock.
  5268. 2002-10-09 Roland McGrath <roland@redhat.com>
  5269. * sysdeps/pthread/bits/libc-lock.h (__libc_maybe_call): New macro.
  5270. Under [__PIC__], call the function via the pointer fetched for
  5271. comparison rather than a call by name that uses the PLT.
  5272. (__libc_lock_init, __libc_rwlock_init, __libc_lock_fini)
  5273. (__libc_rwlock_fini, __libc_lock_lock, __libc_rwlock_rdlock)
  5274. (__libc_rwlock_wrlock, __libc_lock_trylock, __libc_rwlock_tryrdlock)
  5275. (__libc_rwlock_trywrlock, __libc_lock_unlock, __libc_rwlock_unlock)
  5276. (__libc_key_create, __libc_getspecific, __libc_setspecific): Use it.
  5277. 2002-12-04 Roland McGrath <roland@redhat.com>
  5278. * forward.c (pthread_self): Use FORWARD3 macro to correct return type.
  5279. * sysdeps/i386/td_ta_map_lwp2thr.c: Moved from ../nptl_db.
  5280. * sysdeps/generic/td_ta_map_lwp2thr.c: New file.
  5281. * pthread_create.c (start_thread): Add missing & on __nptl_last_event.
  5282. 2002-12-04 Ulrich Drepper <drepper@redhat.com>
  5283. * sysdeps/unix/sysv/linux/i386/bits/pthreadtypes.h: Make pthread_t
  5284. a completely opaque, non-integer type.
  5285. * sysdeps/unix/sysv/linux/x86_64/bits/pthreadtypes.h: Likewise.
  5286. 2002-12-05 Jakub Jelinek <jakub@redhat.com>
  5287. * sysdeps/i386/tls.h: Include stdlib.h.
  5288. * sysdeps/x86_64/tls.h: Likewise.
  5289. 2002-12-04 Ulrich Drepper <drepper@redhat.com>
  5290. * Makefile (tests): Add tst-locale2.
  5291. (tests-static): Likewise.
  5292. * tst-locale2.c: New file.
  5293. * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Mark asms as
  5294. volatile and add memory clobbers to lock operations.
  5295. 2002-12-03 Ulrich Drepper <drepper@redhat.com>
  5296. * sysdeps/i386/i686/bits/atomic.h: Use i486 version.
  5297. * sysdeps/i386/i486/bits/atomic.h: New file.
  5298. * sysdeps/i386/i586/bits/atomic.h: New file.
  5299. * sysdeps/i386/i686/pthread_spin_trylock.S: Define HAVE_CMOV and
  5300. include i486 version.
  5301. * sysdeps/i386/i486/pthread_spin_trylock.S: New file.
  5302. * sysdeps/i386/i586/pthread_spin_trylock.S: New file.
  5303. Patch by Marijn Ros <marijn@mad.scientist.com>.
  5304. * allocatestack.c (get_cached_stack): Don't crash if we first
  5305. found a stack with a larger size then needed.
  5306. Reported by Hui Huang <hui.huang@sun.com>.
  5307. * Makefile (tests): Add tst-sysconf.
  5308. * tst-sysconf.c: New file.
  5309. * sysdeps/unix/sysv/linux/bits/local_lim.h: Undefine
  5310. PTHREAD_THREADS_MAX.
  5311. 2002-12-02 Roland McGrath <roland@redhat.com>
  5312. * pthreadP.h (__stack_user, __nptl_create_event, __nptl_death_event):
  5313. Declare using hidden_proto instead of attribute_hidden, so there are
  5314. non-.hidden static symbols for gdb to find.
  5315. (__pthread_keys): Likewise.
  5316. * events.c (__nptl_create_event, __nptl_death_event): Add hidden_def.
  5317. * allocatestack.c (__stack_user): Likewise.
  5318. * pthread_create.c (__pthread_keys): Likewise.
  5319. (__nptl_threads_events, __nptl_last_event): Make these static instead
  5320. of hidden.
  5321. * pthread_key_create.c (__pthread_pthread_keys_max,
  5322. __pthread_pthread_key_2ndlevel_size): Renamed from __linuxthreads_*.
  5323. 2002-12-02 Ulrich Drepper <drepper@redhat.com>
  5324. * Makefile (tests): Add tst-locale1. If buid-static is yes link
  5325. statically.
  5326. * tst-locale1.c: New file.
  5327. * pthread_cond_timedwait.c: Include <stdlib.h>.
  5328. * Makefile (tests): Add tst-fork2 and tst-fork3.
  5329. * tst-fork2.c: New file.
  5330. * tst-fork3.c: New file.
  5331. 2002-11-28 Ulrich Drepper <drepper@redhat.com>
  5332. * sysdeps/unix/sysv/linux/i386/bits/posix_opt.h: New file.
  5333. * sysdeps/unix/sysv/linux/bits/posix_opt.h: Define macros which
  5334. require it to 200112L.
  5335. * sysdeps/unix/sysv/linux/i386/i486/lowlevelrwlock.S: Use cmov
  5336. instruction only if HAVE_CMOV is defined.
  5337. * sysdeps/unix/sysv/linux/i386/i686/lowlevelrwlock.S: Define HAVE_CMOV.
  5338. * sysdeps/unix/sysv/linux/x86_64/bits/semaphore.h: New file.
  5339. * sysdeps/unix/sysv/linux/x86_64/pthread_once.S: New file.
  5340. * sysdeps/unix/sysv/linux/x86_64/bits/pthreadtypes.h: New file.
  5341. * sysdeps/unix/sysv/linux/x86_64/pt-vfork.S: New file.
  5342. 2002-11-27 Ulrich Drepper <drepper@redhat.com>
  5343. * sysdeps/x86_64/bits/atomic.h: New file.
  5344. * sysdeps/i386/i686/bits/atomic.h: Fix asm syntax for 8- and
  5345. 16-bit operations.
  5346. * sysdeps/unix/sysv/linux/raise.c (raise): Use INTERNAL_SYSCALL if
  5347. possible since gettid cannot fail.
  5348. * sysdeps/x86_64/pthreaddef.h: New file.
  5349. * sysdeps/i386/pthreaddef.h (gettid): Removed.
  5350. * sysdeps/x86_64/pthread_spin_init.c: New file.
  5351. * sysdeps/x86_64/pthread_spin_lock.c: New file.
  5352. * sysdeps/x86_64/pthread_spin_trylock.c: New file.
  5353. * sysdeps/x86_64/pthread_spin_unlock.c: New file.
  5354. * sysdeps/i386/i686/pthread_spin_trylock.S (pthread_spin_trylock):
  5355. Add missing lock prefix. Minute optimization.
  5356. * tst-spin2.c (main): Also check successful trylock call.
  5357. * sysdeps/pthread/pthread_sigmask.c (pthread_sigmask): Use correct
  5358. syscall. Fix typo in case INTERNAL_SYSCALL is not used.
  5359. * sysdeps/i386/pthread_spin_destroy.c: Moved to...
  5360. * sysdeps/pthread/pthread_spin_destroy.c: ...here. New file.
  5361. * sysdeps/i386/pthread_sigmask.c: Removed. Use the generic code.
  5362. * sysdeps/pthread/pthread_sigmask.c (pthread_sigmask): Return correct
  5363. value in case of an error. Add support for INTERNAL_SYSCALL.
  5364. * sysdeps/i386/pthread_sigmask.c (pthread_sigmask): Return correct
  5365. value in case of an error.
  5366. * sysdeps/x86_64/tls.h: New file.
  5367. 2002-11-26 Ulrich Drepper <drepper@redhat.com>
  5368. * sysdeps/i386/tls.h (THREAD_GETMEM_NC): Change interface. It now
  5369. takes the array member name and the index as parameters.
  5370. (THREAD_SETMEM_NC): Likewise.
  5371. * pthread_getspecific.c: Use new THREAD_GETMEM_NC interface.
  5372. * pthread_setspecific.c: Use new THREAD_GETMEM_NC and THREAD_SETMEM_NC
  5373. interfaces.
  5374. * sysdeps/i386/tls.h (THREAD_SETMEM): Use size of member element
  5375. to decide which code to use.
  5376. (THREAD_SETMEM_NC): Likewise.
  5377. * allocatestack.c (queue_stack): Don't remove stack from list here.
  5378. Do it in the caller. Correct condition to prematurely terminate
  5379. loop to free stacks.
  5380. (__deallocate_stack): Remove stack from list here.
  5381. 2002-11-26 Ulrich Drepper <drepper@redhat.com>
  5382. * Makefile (tests): Add tst-stack1.
  5383. * tst-stack1.c: New file.
  5384. * allocatestack.c (allocate_stack): Initialize the TCB on a user
  5385. provided stack.
  5386. * pthread_attr_getstack.c: Return bottom of the thread area.
  5387. 2002-11-25 Ulrich Drepper <drepper@redhat.com>
  5388. * Makefile (libpthread-routines): Add pt-allocrtsig and
  5389. pthread_kill_other_threads.
  5390. * pt-allocrtsig.c: New file.
  5391. * pthread_kill_other_threads.c: New file.
  5392. * sysdeps/unix/sysv/linux/allocrtsig.c: Add additional aliases for
  5393. all three functions.
  5394. * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Remove
  5395. allocrtsig.
  5396. * sysdeps/unix/sysv/linux/Versions (libc:GLIBC_PRIVATE): Export
  5397. __libc_current_sigrtmin_private, __libc_current_sigrtmax_private,
  5398. and __libc_allocate_rtsig_private.
  5399. * Versions (libpthread): Export pthread_kill_other_threads_np,
  5400. __libc_current_sigrtmin, and __libc_current_sigrtmax.
  5401. 2002-11-24 Ulrich Drepper <drepper@redhat.com>
  5402. * allocatestack.c (allocate_stack): stackaddr in attribute points to
  5403. the end of the stack. Adjust computations.
  5404. When mprotect call fails dequeue stack and free it.
  5405. * pthread_attr_setstack.c: Store top of the stack in stackaddr
  5406. attribute.
  5407. * pthread_getattr_np.c: Likewise.
  5408. * descr.h (IS_DETACHED): Add some more parenthesis to prevent
  5409. surprises.
  5410. 2002-11-23 Ulrich Drepper <drepper@redhat.com>
  5411. * sysdeps/pthread/pthread.h (pthread_self): __THROW must come before
  5412. attribute definitions. Patch by Luca Barbieri <ldb@ldb.ods.org>.
  5413. 2002-11-22 Ulrich Drepper <drepper@redhat.com>
  5414. * pthread_getspecific.c: Optimize access to first 2nd-level array.
  5415. * pthread_setspecific.c: Likewise.
  5416. 2002-11-21 Ulrich Drepper <drepper@redhat.com>
  5417. * sysdeps/unix/sysv/linux/i386/createthread.c: Remove CLONE_ flags
  5418. definitions. Get them from the official place.
  5419. * sysdeps/unix/sysv/linux/i386/fork.c: Likewise.
  5420. * sysdeps/unix/sysv/linux/i386/createthread.c: Update CLONE_* flags.
  5421. Use new CLONE_ flags in clone() calls.
  5422. * sysdeps/unix/sysv/linux/fork.c: Use ARCH_FORK to actually fork.
  5423. * sysdeps/unix/sysv/linux/i386/fork.c: New file.
  5424. * Versions: Add pthread_* functions for libc.
  5425. * forward.c: New file.
  5426. * sysdeps/pthread/Makefile (libpthread-sysdeps_routines): Add
  5427. errno-loc.
  5428. * herrno.c: New file.
  5429. * res.c: New file.
  5430. * Makefile (libpthread-routines): Remove sem_post, sem_wait,
  5431. sem_trywait, and sem_timedwait. Add herrno and res.
  5432. * sem_init.c: Don't initialize lock and waiters members.
  5433. * sem_open.c: Likewise.
  5434. * sem_post.c: Removed.
  5435. * sem_wait.c: Removed.
  5436. * sem_trywait.c: Removed.
  5437. * sem_timedwait.c: Removed.
  5438. * sysdeps/unix/sysv/linux/i386/i486/lowlevelsem.S: Complete rewrite.
  5439. Includes full implementations of sem_post, sem_wait, sem_trywait,
  5440. and sem_timedwait.
  5441. * sysdeps/unix/sysv/linux/i386/lowlevelsem.h (lll_sem_post): Adjust
  5442. for new implementation.
  5443. * sysdeps/unix/sysv/linux/internaltypes.h (struct sem): Remove lock
  5444. and waiters fields.
  5445. * tst-sem3.c: Improve error message.
  5446. * tst-signal3.c: Likewise.
  5447. * init.c (__pthread_initialize_minimal): Use set_tid_address syscall
  5448. to tell the kernel about the termination futex and to initialize tid
  5449. member. Don't initialize main_thread.
  5450. * descr.h (struct pthread): Remove main_thread member.
  5451. * cancelllation.c (__do_cancel): Remove code handling main thread.
  5452. The main thread is not special anymore.
  5453. * allocatestack.c (__reclaim_stacks): Mark stacks as unused. Add
  5454. size of the stacks to stack_cache_actsize.
  5455. * pt-readv.c: Add missing "defined".
  5456. * pt-sigwait.c: Likewise.
  5457. * pt-writev.c: Likewise.
  5458. 2002-11-09 Ulrich Drepper <drepper@redhat.com>
  5459. * Versions: Export __connect from libpthread.
  5460. Patch by Luca Barbieri <ldb@ldb.ods.org>.
  5461. * Makefile (libpthread-routines): Add pt-raise.
  5462. * sysdeps/unix/sysv/linux/raise.c: New file.
  5463. * sysdeps/unix/sysv/linux/pt-raise.c: New file.
  5464. * sysdeps/generic/pt-raise.c: New file.
  5465. * pthread_cond_init.c: Initialize all data elements of the condvar
  5466. structure. Patch by Luca Barbieri <ldb@ldb.ods.org>.
  5467. * pthread_attr_init.c: Actually implement 2.0 compatibility version.
  5468. * pthread_create.c: Likewise.
  5469. * Makefile (tests): Add tst-key1, tst-key2, tst-key3.
  5470. * tst-key1.c: New file.
  5471. * tst-key2.c: New file.
  5472. * tst-key3.c: New file.
  5473. * Versions: Export pthread_detach for version GLIBC_2.0.
  5474. Reported by Saurabh Desai <sdesai@austin.ibm.com>.
  5475. 2002-11-08 Ulrich Drepper <drepper@redhat.com>
  5476. * pthread_key_create.c: Terminate search after an unused key was found.
  5477. Patch by Luca Barbieri <ldb@ldb.ods.org>.
  5478. * sysdeps/unix/sysv/linux/i386/pthread_once.S: Return zero.
  5479. Patch by Luca Barbieri <ldb@ldb.ods.org>.
  5480. 2002-10-10 Ulrich Drepper <drepper@redhat.com>
  5481. * sysdeps/unix/sysv/linux/i386/i486/lowlevelsem.S: Use slow generic
  5482. dynamic lookup for errno in PIC.
  5483. * allocatestack.c (get_cached_stack): Rearrange code slightly to
  5484. release the stack lock as soon as possible.
  5485. Call _dl_allocate_tls_init for TCB from the cache to re-initialize
  5486. the static TLS block.
  5487. (allocate_stack): Call _dl_allocate_tls_init for user-provided stack.
  5488. * cancellation.c: Renamed from cancelation.c.
  5489. * Makefile: Adjust accordingly.
  5490. * pthreadP.h (CANCELLATION_P): Renamed from CANCELATION_P.
  5491. * cleanup_defer.c: Use CANCELLATION_P.
  5492. * pthread_testcancel.c: Likewise.
  5493. * descr.h: Fix spelling in comments.
  5494. * init.c: Likewise.
  5495. * pthread_getattr_np.c: Likewise.
  5496. * pthread_getschedparam.c: Likewise.
  5497. * pthread_setschedparam.c: Likewise.
  5498. * Versions: Likewise.
  5499. * pt-pselect.c: New file.
  5500. * Makefile (libpthread-routines): Add pt-pselect.
  5501. * Versions: Add pselect.
  5502. * tst-cancel4.c: New file.
  5503. * Makefile (tests): Add tst-cancel4.
  5504. 2002-10-09 Ulrich Drepper <drepper@redhat.com>
  5505. * pthread_mutex_lock.c: Always record lock ownership.
  5506. * pthread_mutex_timedlock.c: Likewise.
  5507. * pthread_mutex_trylock.c: Likewise.
  5508. * pt-readv.c: New file.
  5509. * pt-writev.c: New file.
  5510. * pt-creat.c: New file.
  5511. * pt-msgrcv.c: New file.
  5512. * pt-msgsnd.c: New file.
  5513. * pt-poll.c: New file.
  5514. * pt-select.c: New file.
  5515. * pt-sigpause.c: New file.
  5516. * pt-sigsuspend.c: New file.
  5517. * pt-sigwait.c: New file.
  5518. * pt-sigwaitinfo.c: New file.
  5519. * pt-waitid.c: New file.
  5520. * Makefile (libpthread-routines): Add pt-readv, pt-writev, pt-creat,
  5521. pt-msgrcv, pt-msgsnd, pt-poll, pt-select, pt-sigpause, pt-sigsuspend,
  5522. pt-sigwait, pt-sigwaitinfo, and pt-waitid.
  5523. * Versions: Add all the new functions.
  5524. * tst-exit1.c: New file.
  5525. * Makefile (tests): Add tst-exit1.
  5526. * sem_timedwait.c: Minor optimization for more optimal fastpath.
  5527. 2002-10-08 Ulrich Drepper <drepper@redhat.com>
  5528. * pt-fcntl.c: Only enable asynchronous cancellation for F_SETLKW.
  5529. * pthread_join.c: Enable asynchronous cancellation around lll_wait_tid
  5530. call. pthread_join is an official cancellation point.
  5531. * pthread_timedjoin.c: Likewise.
  5532. * pthread_cond_wait.c: Revert order in which internal lock are dropped
  5533. and the condvar's mutex are retrieved.
  5534. * pthread_cond_timedwait.c: Likewise.
  5535. Reported by dice@saros.East.Sun.COM.
  5536. 2002-10-07 Ulrich Drepper <drepper@redhat.com>
  5537. * pthreadP.h: Cut out all type definitions and move them...
  5538. * sysdeps/unix/sysv/linux/internaltypes.h: ...here. New file.
  5539. * pthreadP.h: Include <internaltypes.h>.
  5540. * sysdeps/unix/sysv/linux/i386/lowlevelsem.h (lll_sem_post): Little
  5541. performance tweaks.
  5542. * sem_trywait.c: Shuffle #includes around to get right order.
  5543. * sem_timedwait.c: Likewise.
  5544. * sem_post.c: Likewise.
  5545. * sem_wait.c: Likewise.
  5546. * nptl 0.3 released.
  5547. * Makefile (tests): Add tst-signal3.
  5548. * tst-signal3.c: New file.
  5549. 2002-10-05 Ulrich Drepper <drepper@redhat.com>
  5550. * sysdeps/unix/sysv/linux/i386/lowlevelsem.h: Tell the compiler that
  5551. the asms modify the sem object.
  5552. (__lll_sem_timedwait): Now takes struct sem* as first parameter.
  5553. * sysdeps/unix/sysv/linux/i386/bits/semaphore.h (sem_t): Don't expose
  5554. the actual members.
  5555. * pthreadP.h (struct sem): New type. Actual semaphore type.
  5556. * semaphoreP.h: Include pthreadP.h.
  5557. * sem_getvalue.c: Adjust to sem_t change.
  5558. * sem_init.c: Likewise.
  5559. * sem_open.c: Likewise.
  5560. * sem_post.c: Likewise.
  5561. * sem_timedwait.c: Likewise.
  5562. * sem_trywait.c: Likewise.
  5563. * sem_wait.c: Likewise.
  5564. 2002-10-04 Ulrich Drepper <drepper@redhat.com>
  5565. * Makefile (tests): Add tst-basic2, tst-exec1, tst-exec3, tst-exec3.
  5566. * tst-basic2.c: New file.
  5567. * tst-exec1.c: New file.
  5568. * tst-exec2.c: New file.
  5569. * tst-exec3.c: New file.
  5570. * tst-fork1.c: Remove extra */.
  5571. * nptl 0.2 released. The API for IA-32 is complete.