ChangeLog 275 KB

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