Mirror of strace – the linux syscall tracer
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

ChangeLog-CVS 199KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614
  1. 2009-07-08 Dmitry V. Levin <ldv@altlinux.org>
  2. Clean up spacing to fix warnings reported by git diff --check.
  3. * ChangeLog: Fix spaces before tab in indent.
  4. * bjm.c: Likewise.
  5. * debian/changelog: Likewise.
  6. * strace-graph: Likewise.
  7. * syscall.c: Likewise.
  8. * INSTALL: Fix trailing blank lines.
  9. * README-linux: Likewise.
  10. * README-svr4: Likewise.
  11. * linux/sparc/gen.pl: Likewise.
  12. * linux/sparc/syscall1.h: Likewise.
  13. * linux/sparc64/syscall1.h: Likewise.
  14. * linux/x86_64/gentab.pl: Likewise.
  15. * sunos4/syscall.h: Likewise.
  16. * test/Makefile: Likewise.
  17. * debian/rules: Fix trailing whitespaces.
  18. * desc.c: Likewise.
  19. * svr4/syscallent.h: Likewise.
  20. * test/childthread.c: Likewise.
  21. * test/leaderkill.c: Likewise.
  22. 2009-07-07 Dmitry V. Levin <ldv@altlinux.org>
  23. * .cvsignore: Remove.
  24. * README-CVS: Rename to README-hacking.
  25. * Makefile.am (EXTRA_DIST): Remove README-CVS.
  26. 2009-06-01 Dmitry V. Levin <ldv@altlinux.org>
  27. * bjm.c (sys_query_module): Fix format warning reported by
  28. gcc -Wformat-security.
  29. * file.c (tprint_open_modes): Likewise.
  30. * process.c (printargv): Likewise.
  31. * signal.c (printsignal): Likewise.
  32. Clean up header checks.
  33. * configure.ac: Reformat AC_CHECK_HEADERS to keep it sorted and
  34. easily updated, and reduce merging errors in the future.
  35. * system.c: Convert all non-standard #ifdef checks for specific
  36. headers to regular #ifdef HAVE_*_H checks.
  37. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
  38. 2009-04-20 Denys Vlasenko <dvlasenk@redhat.com>
  39. * file.c (printstatsol, printstat_sparc64):
  40. Remove NULL/error check for addr parameter.
  41. (printoldstat, printstat, printoldstat64):
  42. Move NULL/error check for addr parameter
  43. so that it happens before printstatsol/printstat_sparc64 calls.
  44. 2009-04-16 Denys Vlasenko <dvlasenk@redhat.com>
  45. * file.c (print_dirfd): Use int for file descriptor, not a long.
  46. * process.c (printwaitn): Use int for PID, not a long.
  47. 2009-04-15 Denys Vlasenko <dvlasenk@redhat.com>
  48. * signal (sys_rt_sigtimedwait): Fix sigtimedwait syscall decoding.
  49. 2009-04-15 Denys Vlasenko <dvlasenk@redhat.com>
  50. * signal (sys_rt_sigaction): Print struct sigaction correctly
  51. in 32/64 environment.
  52. * desc.c (printflock): Add #ifdefs around earlier flock 32/64 fix
  53. so that we don't waste time on arches with one personality.
  54. 2009-04-14 Denys Vlasenko <dvlasenk@redhat.com>
  55. * signal.c: Whitespace, comment, and style fixes, no code changes.
  56. * file.c: Ditto.
  57. * time.c: Ditto.
  58. * process.c: Ditto.
  59. * resource.c: Ditto.
  60. 2009-03-23 Denys Vlasenko <dvlasenk@redhat.com>
  61. * system.c (sram_alloc_flag): Add L2_SRAM constant.
  62. by Mike Frysinger (vapier AT gentoo.org).
  63. (sys_sram_alloc): Fix improperly used %zu:
  64. tcp->u_arg is not a size_t, it is a long.
  65. * net.c (printcmsghdr): Fix improperly used %zu:
  66. struct cmsghdr::cmsg_len is not a size_t.
  67. 2009-03-10 Denys Vlasenko <dvlasenk@redhat.com>
  68. Decode fcntl's F_{GET,SET}LEASE, F_NOTIFY, and F_DUPFD_CLOEXEC.
  69. By Mike Frysinger (vapier AT gentoo.org)
  70. * desc.c: Add F_SETLEASE, F_GETLEASE, F_NOTIFY,
  71. F_DUPFD_CLOEXEC to fcntlcmds[]. Create notifyflags[] array.
  72. (sys_fcntl): Handle new flags.
  73. Optimize printing of open modes.
  74. * defs.h: Declare sprint_open_modes(),
  75. remove unused parameter in tprint_open_modes().
  76. * desc.c (sprint_open_modes): Move fuction definition from here...
  77. * file.c (sprint_open_modes): To here.
  78. (tprint_open_modes): Use sprint_open_modes(), it already
  79. generates needed string.
  80. * ipc.c: Remove unused parameter from calls
  81. to tprint_open_modes().
  82. 2009-02-27 Denys Vlasenko <dvlasenk@redhat.com>
  83. AVR32 support by Hans-Christian Egtvedt
  84. (hans-christian.egtvedt AT atmel.com).
  85. * configure.ac: Make it recognize avr32.
  86. * defs.h: Define LINUX_AVR32.
  87. * linux/avr32/syscallent.h: New file.
  88. * Makefile.am: Reference linux/avr32/syscallent.h.
  89. * proc.c (change_syscall, setarg): Add support for avr32.
  90. (struct xlat struct_user_offsets[]): Ditto.
  91. * syscall.c (get_scno): Ditto.
  92. (get_error, force_result, syscall_enter): Ditto.
  93. * util.c (getpc, printcall): Ditto.
  94. 2009-02-25 Denys Vlasenko <dvlasenk@redhat.com>
  95. CRIS support by Hinko Kocevar (hinko.kocevar AT cetrtapot.si)
  96. * configure.ac: Make it recognize cris.
  97. * process.c: Define ARG_xxx constants for cris.
  98. (change_syscall): Add support for cris.
  99. (struct_user_offsets): Add cris-specific data.
  100. * signal.c (sys_sigreturn): Add support for cris.
  101. * syscall.c (get_scno): Add support for cris.
  102. (syscall_fixup): Add support for cris.
  103. (get_error): Add support for cris.
  104. (syscall_enter): Add support for cris.
  105. (force_result): While at it, fix cpp directives indentation.
  106. * util.c (printcall): Add support for cris.
  107. 2009-02-24 Denys Vlasenko <dvlasenk@redhat.com>
  108. * process.c: Indent preprocessor directives so that nesting
  109. can be figured out. Add PTRACE_SET_SYSCALL to ptrace_cmds[].
  110. * ioctlent.sh: Improved by Mike Frysinger.
  111. * HACKING-scripts: New file by Mike Frysinger.
  112. 2009-02-20 Denys Vlasenko <dvlasenk@redhat.com>
  113. Further signalent.h cleanup.
  114. * linux/ia64/signalent.h: Remove, it is identical to common signalent.h
  115. sans "SIGRTnn" definitions which are redundant.
  116. * linux/powerpc/signalent.h: Remove, it is identical to common signalent.h
  117. sans outdated "SIGUNUSED" which should be "SIGSYS".
  118. * linux/s390/signalent.h: Ditto.
  119. * linux/s390x/signalent.h: Ditto.
  120. * Makefile.am: Remove references to the above files.
  121. 2009-02-20 Denys Vlasenko <dvlasenk@redhat.com>
  122. Patch by Mike Frysinger (vapier AT gentoo.org).
  123. * linux/ioctlent.sh: Update sed machinery to parse _IOC() macros
  124. with two constants.
  125. 2009-02-20 Denys Vlasenko <dvlasenk@redhat.com>
  126. Patch by Mike Frysinger (vapier AT gentoo.org).
  127. * Makefile.am: Remove reference to linux/sh/signalent.h.
  128. * linux/sh/signalent.h: Remove, it is identical to common signalent.h.
  129. 2009-02-20 Denys Vlasenko <dvlasenk@redhat.com>
  130. Patch by Mike Frysinger (vapier AT gentoo.org).
  131. * linux/errnoent.h: Make ERRNO_58 show EDEADLOCK for POWERPC.
  132. * Makefile.am: Remove reference to linux/powerpc/errnoent.h.
  133. * linux/powerpc/errnoent.h: Remove, we can use common errnoent.h now.
  134. 2009-02-20 Denys Vlasenko <dvlasenk@redhat.com>
  135. Patch by Mike Frysinger (vapier AT gentoo.org).
  136. Removing redundant errnoent.h files.
  137. * Makefile.am: Remove reference to linux/ia64/errnoent.h,
  138. linux/s390/errnoent.h, linux/s390x/errnoent.h and linux/sh/errnoent.h.
  139. * linux/ia64/errnoent.h: Remove, this arch uses common errnoent.h.
  140. * linux/s390/errnoent.h: Ditto.
  141. * linux/s390x/errnoent.h: Ditto.
  142. * linux/sh/errnoent.h: Ditto.
  143. 2009-02-10 Roland McGrath <roland@redhat.com>
  144. * configure.ac: Check for struct sigcontext.
  145. * signal.c [LINUX] [M68K] (struct sigcontext): Don't define it if
  146. [HAVE_STRUCT_SIGCONTEXT].
  147. From Muttley Meen <muttley.meen@gmail.com>.
  148. 2009-02-09 Denys Vlasenko <dvlasenk@redhat.com>
  149. * defs.h: Correct the comment about TCB_SUSPENDED.
  150. * strace.c: Fix misplaced #endif.
  151. * util.c: Indent preprocessor directives, mark code parts
  152. which can never be reached by compilation because of
  153. the combination of #if directives. These are likely dead code,
  154. I want to remove them later.
  155. 2009-01-29 Denys Vlasenko <dvlasenk@redhat.com>
  156. * strace.c (newoutf): Prevent -o FILENAME overflowing the stack.
  157. (startup_attach): Fix wrong pid in "Process <PID> attached".
  158. (handle_group_exit): Do not consider exit to be spurious if
  159. tcb has TCB_STARTUP bit set - we can attach to the task
  160. right before its death, it can legitimately happen.
  161. (handle_stopped_tcbs): Ditto.
  162. 2009-01-26 Denys Vlasenko <dvlasenk@redhat.com>
  163. * process.c (printwaitn): Add comment about wait4() pid expansion.
  164. Use #ifdef ALPHA instead of LINUX_64BIT, it was misleading
  165. (by implying "any 64-bit platform").
  166. * defs.h: Remove now-unused LINUX_64BIT define.
  167. * resource.c (sys_osf_getrusage): Fix indentation.
  168. 2009-01-26 Denys Vlasenko <dvlasenk@redhat.com>
  169. * process.c (internal_clone): Fix fallout from tcb table expansion
  170. simplification. Due to overlooked else, I forgot to group
  171. fork_tcb(tcp) and alloctcb(pid) in a block.
  172. 2009-01-23 Michal Nowak <mnowak@redhat.com>
  173. * syscall.c (get_scno): Fix warnings about unused variable 'pid'.
  174. 2009-01-23 Michal Nowak <mnowak@redhat.com>
  175. * mem.c (print_ldt_entry): Fix warning:
  176. Format '%#08lx' expects type 'long unsigned int', but
  177. argument 2 was type 'unsigned int'.
  178. 2009-01-17 Denys Vlasenko <dvlasenk@redhat.com>
  179. Two cleanups: tcb table expansion failure is not really a survivable
  180. event, we do not have any viable way to continue. No wonder most
  181. places where that is detected have FIXMEs.
  182. It's way simpler to treat as fatal failure, and handle it inside
  183. tcb table expansion finctions.
  184. Second cleanup: tidy up haphazard locations of a few externs.
  185. * defs.h: Change return type of expand_tcbtab() to void.
  186. Declare change_syscall().
  187. * process.c: Change all callsites of alloctcb(), alloc_tcb() and
  188. fork_tcb(), removing now-redundant error checks.
  189. (fork_tcb): Change return type to void - it can't fail now.
  190. * strace.c: Move extern declarations out of function bodies.
  191. Change all callsites of alloctcb(), alloc_tcb() and
  192. fork_tcb(), removing now-redundant error checks.
  193. (expand_tcbtab): Change return type to void - it can't fail now.
  194. On failure to expand, print a message, clean up, and exit.
  195. (alloc_tcb): On failure to expand, print a message, clean up, and exit.
  196. * util.c (setbpt): Remove extern declaration from function body.
  197. 2009-01-14 Denys Vlasenko <dvlasenk@redhat.com>
  198. * linux/bfin/syscallent.h: sys_futex has 6 parameters, not 5.
  199. 2009-01-13 Denys Vlasenko <dvlasenk@redhat.com>
  200. Fixes for ptrace() argument parsing.
  201. * process.c: Add parsing of PTRACE_SETOPTIONS, PTRACE_GETEVENTMSG,
  202. PTRACE_GETSIGINFO, PTRACE_SETSIGINFO.
  203. * defs.h: Declare several "extern const struct xlat" arrays here.
  204. * desc.c: Remove open_mode_flags[] and open_access_modes[]
  205. extern declarations.
  206. * net.c: Remove open_mode_flags[] extern declaration.
  207. * sock.c: Remove addrfams[] extern declaration.
  208. * util.c: Remove struct_user_offsets[] extern declaration.
  209. * signal.c: Remove open_mode_flags[] extern declaration.
  210. 2009-01-06 Denys Vlasenko <dvlasenk@redhat.com>
  211. Output format fixes, improving the situation after recent
  212. change which added beeter handling of processes suddenly
  213. disappearing. Now we often do not finish last line
  214. before exiting in those cases.
  215. The only change affecting something other than output
  216. is change in umovestr where we were calling
  217. abort() on ptrace error.
  218. * strace.c (trace): If trace_syscall() failed with ESRCH,
  219. finish current output line with " <unfinished ...>".
  220. (mp_ioctl): While we are at it, fix gross style mismatch
  221. in this function definition. No code chages.
  222. * syscall.c (trace_syscall): If decode fails on syscall exit,
  223. finish current output line with "= ? <unavailable>".
  224. * util.c (umoven): Do not complain if error is ESRCH.
  225. (umovestr): Do not complain and do not abort() if error is ESRCH.
  226. * defs.h: Remove unused tcp parameter from printtrailer().
  227. * process.c: Adjust printtrailer() calls accordingly.
  228. * strace.c: Adjust printtrailer() calls accordingly.
  229. * syscall.c: Adjust printtrailer() calls accordingly.
  230. 2009-01-06 Denys Vlasenko <dvlasenk@redhat.com>
  231. * desc.c (printflock): Fix display of fcntl(F_SETLK) on
  232. non-native 32-bit architecture.
  233. Fixes RH#471169 "format fcntl64() system calls for
  234. 32 bit application incorrect".
  235. * desc.c: const'ify two static struct xlat vector[]'s,
  236. convert all remaining old style C parameter declarations
  237. in this file.
  238. 2008-11-13 Kirill A. Shutemov <kirill@shutemov.name>
  239. * linux/arm/syscallent.h: Update syscalls.
  240. Based on patch by Enrico Scholz.
  241. * linux/arm/syscallent.h: Fix build on ARM EABI which does not
  242. provide syscalls socketcall and ipc.
  243. 2009-01-01 Andreas Schwab <schwab@suse.de>
  244. * net.c (sys_accept): Properly decode third argument as pointer to
  245. int.
  246. 2008-12-30 Denys Vlasenko <dvlasenk@redhat.com>
  247. Experimental support for -D option.
  248. Unlike normal case, with -D *grandparent* process exec's,
  249. becoming a traced process. Child exits (this prevents traced process
  250. from having children it doesn't expect to have), and grandchild
  251. attaches to grandparent similarly to strace -p PID.
  252. This allows for more transparent interaction in cases
  253. when process and its parent are communicating via signals,
  254. wait() etc. Without -D, strace process gets lodged in between,
  255. disrupting parent<->child link.
  256. * strace.c: Add global flag variable daemonized_tracer for -D option.
  257. (startup_attach): If -D, fork and block parent in pause().
  258. In this case we are already a child, we in fact created a grandchild.
  259. After attaching to grandparent, grandchild SIGKILLs parent.
  260. (startup_child): If -D, parent blocks in wait(), then
  261. execs the program to strace. Normally (w/o -D), it is child
  262. who execs the program.
  263. (main): Detect -D option, call startup_attach() if it is given.
  264. 2008-12-30 Kirill A. Shutemov <kirill@shutemov.name>
  265. Fix some warnings on ARM build.
  266. * defs.h: include <sys/ptrace.h> on arm too.
  267. * syscall.c: EABI arm does not need decode_subcall(),
  268. ifdef it out.
  269. 2008-12-29 Nick Black <dankamongmen@acm.org>
  270. * linux/syscallent.h: Mark sendfile(2) as network syscall.
  271. * linux/*/syscallent.h: Same, for all architectures.
  272. 2008-12-17 Denys Vlasenko <dvlasenk@redhat.com>
  273. Make strace detect when traced process suddenly disappeared
  274. (prime example is randomly arriving SIGKILL).
  275. * defs.h (do_ptrace, ptrace_restart): Declare new functions
  276. * process.c: Use ptrace_restart instead of bare ptrace.
  277. This catches and records ESRCH errors.
  278. Print "<unavailable>" if syscall decode or result can't be
  279. determined because of an earlier error in ptrace()
  280. * syscall.c (trace_syscall): Stop indiscriminately bailing out
  281. on errors, print "syscall(????" or even "????(????" but continue.
  282. * util.c (do_ptrace, ptrace_restart): Define new functions.
  283. (upeek): use do_ptrace in order to catch and record ESRCH.
  284. Do not print error message in this case.
  285. Fixes RH#472053.
  286. 2008-12-17 Denys Vlasenko <dvlasenk@redhat.com>
  287. * signal.c (sys_sigaction, sys_rt_sigaction): Fix typo
  288. in (sa_handler == SIG_IGN) comparison, it was using SIG_DFL
  289. instead.
  290. 2008-12-16 Denys Vlasenko <dvlasenk@redhat.com>
  291. * defs.h: Modify declaration of upeek to take struct tcb *
  292. parameter instead of pid_t.
  293. * process.c: Change all upeek calls accordingly.
  294. * signal.c: Likewise.
  295. * strace.c: Likewise.
  296. * syscall.c: Likewise.
  297. * util.c: Likewise.
  298. 2008-11-11 Dmitry V. Levin <ldv@altlinux.org>
  299. * sock.c [LINUX] (sock_ioctl): Parse more SIOCS* ioctls.
  300. 2008-12-09 Roland McGrath <roland@redhat.com>
  301. * strace.1 (DIAGNOSTICS): New section, describe exit behavior.
  302. 2008-11-09 Dmitry V. Levin <ldv@altlinux.org>
  303. * process.c (prctl_options): Update constants from linux 2.6.27.
  304. * system.c (capabilities): Add more capability values.
  305. * util.c (string_quote): Fix support for NUL-terminated string.
  306. Add comments.
  307. (printpathn): Fix the case when "..." was appended to the output
  308. but no truncation was actually made. Add comments.
  309. (printstr): Fix memory allocation. Fix two cases when "..." was
  310. appended to the output but no truncation was actually made.
  311. Add comments.
  312. Fixes RH#470529.
  313. 2008-10-23 Dmitry V. Levin <ldv@altlinux.org>
  314. Implement parsers for new linux syscalls.
  315. * desc.c (do_dup2, [LINUX] sys_dup3): New functions.
  316. (sys_dup2): Use do_dup2.
  317. [LINUX] (sys_epoll_create1): New function.
  318. [LINUX] (do_eventfd, sys_eventfd2): New functions.
  319. [LINUX] (sys_eventfd): Use do_eventfd.
  320. * net.c (do_pipe, [LINUX] sys_pipe2): New functions.
  321. (sys_pipe): Use do_pipe.
  322. * signal.c [LINUX] (do_signalfd, sys_signalfd4): New functions.
  323. [LINUX] (sys_signalfd): Use do_signalfd.
  324. * linux/syscall.h: Declare new sys_* functions.
  325. * linux/syscallent.h: Hook up signalfd4, eventfd2, epoll_create1,
  326. dup3, pipe2, inotify_init1.
  327. * linux/x86_64/syscallent.h: Hook up paccept, signalfd4, eventfd2,
  328. epoll_create1, dup3, pipe2, inotify_init1.
  329. 2008-10-23 Mike Frysinger <vapier@gentoo.org>
  330. Port strace to the Blackfin architecture.
  331. * configure.ac: Add bfin to supported architectures.
  332. * process.c: Skip u_fpvalid/u_fpstate for Blackfin architecture.
  333. (change_syscall): Support Blackfin architecture.
  334. * syscall.c: Declare r0 for Blackfin architecture.
  335. (get_scno): Decode Blackfin syscall number.
  336. (syscall_fixup): Extract Blackfin return value.
  337. (get_error): Decode Blackfin return value.
  338. (force_result): Poke Blackfin return value.
  339. (syscall_enter): Extract Blackfin syscall arguments.
  340. * defs.h: Define TCB_WAITEXECVE for Blackfin architecture.
  341. * linux/syscall.h (sys_sram_alloc): Declare for Blackfin
  342. architecture.
  343. * system.c (sys_sram_alloc): Decode Blackfin sram_alloc() syscall.
  344. * util.c (getpc): Handle PC on Blackfin architecture.
  345. (printcall): Likewise.
  346. * linux/bfin/ioctlent.h, linux/bfin/syscallent.h: New Blackfin
  347. headers.
  348. * Makefile.am (EXTRA_DIST): Add linux/bfin/ioctlent.h and
  349. linux/bfin/syscallent.h.
  350. 2008-09-18 Mike Frysinger <vapier@gentoo.org>
  351. * configure.ac: Accept uclinux hosts as linux.
  352. 2008-10-22 Dmitry V. Levin <ldv@altlinux.org>
  353. Handle socket type flags introduced in linux 2.6.27.
  354. * net.c (socktypes): Add SOCK_DCCP.
  355. (sock_type_flags): New xlat structure.
  356. (tprint_sock_type): New function.
  357. (sys_socket, sys_socketpair): Use it to parse socket type and
  358. socket type flags.
  359. 2008-09-29 Dmitry V. Levin <ldv@altlinux.org>
  360. * strace.c (startup_child): Save child pid for future use.
  361. (main): Exit/kill ourself with straced child's exitcode/signal.
  362. (trace): If signalled process pid matches the saved child pid,
  363. save the signal number. If terminated process pid matches the
  364. saved child pid, save its exit status.
  365. Patch from Denys Vlasenko <dvlasenk@redhat.com>
  366. Fixes RH#105371.
  367. 2008-09-12 Tomas Pospisek <tpo@sourcepole.ch>
  368. Jan Kratochvil <jan.kratochvil@redhat.com>
  369. * strace.1 (DESCRIPTION): New description of unfinished system calls
  370. and system calls restarting.
  371. 2008-09-03 Dmitry V. Levin <ldv@altlinux.org>
  372. * desc.c (sys_fcntl): Do not initialize auxstr for failed syscall.
  373. * process.c (sys_fork, sys_rfork) [USE_PROCFS]: Likewise.
  374. * signal.c (sys_signal): Likewise.
  375. * stream.c (internal_stream_ioctl): Likewise.
  376. * time.c (sys_adjtimex): Likewise.
  377. * syscall.c (trace_syscall): If RVAL_STR is set, then
  378. print auxstr for failed syscall as well.
  379. * syscall.c (is_restart_error): New function.
  380. * defs.h (is_restart_error): Declare it.
  381. * linux/dummy.h (sys_nanosleep): Uncouple from sys_adjtime().
  382. * time.c (sys_nanosleep): New function, based on is_restart_error().
  383. * process.c (sys_prctl): Decode PR_SET_PDEATHSIG, PR_GET_PDEATHSIG,
  384. PR_SET_DUMPABLE, PR_GET_DUMPABLE, PR_SET_KEEPCAPS, PR_GET_KEEPCAPS.
  385. Fix PR_GET_UNALIGN decoder.
  386. (prctl_options): Add more constants.
  387. * linux/syscallent.h: Use sys_prctl() decoder for "prctl" syscall.
  388. * linux/alpha/syscallent.h: Likewise.
  389. * linux/arm/syscallent.h: Likewise.
  390. * linux/m68k/syscallent.h: Likewise.
  391. * linux/powerpc/syscallent.h: Likewise.
  392. * linux/s390/syscallent.h: Likewise.
  393. * linux/s390x/syscallent.h: Likewise.
  394. * linux/sh/syscallent.h: Likewise.
  395. * linux/sh64/syscallent.h: Likewise.
  396. * linux/x86_64/syscallent.h: Likewise.
  397. 2008-09-02 Dmitry V. Levin <ldv@altlinux.org>
  398. * linux/x86_64/syscallent.h: Fix syscall numbers for "tee" and
  399. "sync_file_range".
  400. From Fernando Luis Vazquez Cao <fernando@oss.ntt.co.jp>
  401. 2008-08-28 Roland McGrath <roland@redhat.com>
  402. * strace.1 (BUGS): New section, mention SIGTRAP interference.
  403. * strace.spec (%ifarch %{strace64_arches}): Use cp -p instead of ln
  404. for %{rhel} < 6.
  405. * configure.ac, NEWS: Version 4.5.18.
  406. * strace.spec: 4.5.18-1.
  407. 2008-08-24 Roland McGrath <roland@redhat.com>
  408. * linux/syscall.h (SYS_socket_subcall et al, SYS_ipc_subcall et al):
  409. Don't define these if [__ARM_EABI__].
  410. Reported by Johannes Stezenbach <js@sig21.net>.
  411. * syscall.c (trace_syscall): Conditionalize on [SYS_socket_subcall]
  412. and [SYS_ipc_subcall] individually.
  413. * linux/powerpc/syscallent.h: Handle subpage_prot.
  414. * mem.c [LINUX && POWERPC] (sys_subpage_prot): New function.
  415. * linux/syscall.h [POWERPC]: Declare it.
  416. From Simon Murray <simon@transitive.com>.
  417. * mem.c (mmap_prot): Handle PROT_SAO.
  418. From Simon Murray <simon@transitive.com>.
  419. * mem.c (madvise_flags): Typo fixes. Rename to madvise_cmds.
  420. (sys_madvise): Use printxval, not printflags.
  421. Reported by Rajeev V. Pillai <rajeevvp@gmail.com>.
  422. 2008-08-19 Roland McGrath <roland@redhat.com>
  423. * signal.c (sys_sigaction, sys_rt_sigaction): Don't omit the rest of
  424. the struct after sa_handler is a known constant. Some sa_flags bits
  425. have meaning even for SIG_IGN/SIG_DFL.
  426. 2008-08-06 Jan Kratochvil <jan.kratochvil@redhat.com>
  427. * util.c (CLONE_VM): Define if not defined already.
  428. (setbpt): Clear CLONE_VM in the case we already clear CLONE_VFORK for
  429. SYS_clone and SYS_clone2.
  430. Reported by Michal Nowak.
  431. Fixes RH#455078.
  432. 2008-08-06 Jan Kratochvil <jan.kratochvil@redhat.com>
  433. Fix compiler warnings.
  434. * signal.c (sys_signal): Cast to SIG_* to the matching type LONG.
  435. * strace.c (trace): Variables PSR and PC are now signed.
  436. * syscall.c (syscall_enter): Variable RBS_END is now signed long.
  437. Remove/add the RBS_END casts appropriately.
  438. * util.c [IA64] (arg_setup): Variable BSP is now signed long.
  439. Remove/add the BSP casts appropriately.
  440. <ia32>: Initialize *STATE.
  441. 2008-07-31 Roland McGrath <roland@redhat.com>
  442. * Makefile.am (EXTRA_DIST): Add new linux/arm/ files.
  443. * file.c [LINUX] (struct kernel_dirent): Define it locally,
  444. do not use <linux/dirent.h>.
  445. Fixes RH#457291.
  446. * configure.ac: Add AC_HEADER_STDBOOL.
  447. * defs.h [HAVE_STDBOOL_H]: #include <stdbool.h>.
  448. Fixes Debian#492774.
  449. 2008-07-24 Dmitry V. Levin <ldv@altlinux.org>
  450. * strace.c (main): Fix -F option backwards compatibility.
  451. 2008-07-22 Roland McGrath <roland@redhat.com>
  452. * Makefile.am (EXTRA_DIST): Add new debian/ files.
  453. 2008-07-21 Roland McGrath <roland@redhat.com>
  454. * configure.ac: Version 4.5.17.
  455. * strace.spec: 4.5.17-1.
  456. * defs.h [LINUXSPARC]: Don't #include <linux/a.out.h>.
  457. 2008-07-19 Frederik Schüler <fs@debian.org>
  458. * debian/control: Add strace64 package.
  459. * debian/rules: Use debhelper flag --same-arch instead of --arch in
  460. order to build strace64 only on the specified architectures.
  461. * debian/strace64.install: New file, list for dh_install.
  462. * debian/strace64.manpages: New file, list for dh_install.
  463. * debian/changelog: Add prereleases entries.
  464. Fixes Debian#491167, Debian#491188.
  465. 2008-07-18 Andreas Schwab <schwab@suse.de>
  466. * linux/ia64/syscallent.h: Decode mincore syscall.
  467. * linux/powerpc/syscallent.h: Fix argument count for request_key.
  468. * term.c (term_ioctl): Decode indirect parameter as int, not long.
  469. 2008-07-17 Roland McGrath <roland@redhat.com>
  470. * NEWS, strace.spec: Updates in preparation for release.
  471. * process.c (printwaitn): When current personality's wordsize is
  472. smaller than native, sign-extend the PID argument from 32 bits.
  473. * process.c (futexops): Update table.
  474. (sys_futex): Handle FUTEX_WAIT_BITSET correctly.
  475. From Ulrich Drepper <drepper@redhat.com>.
  476. Fixes RH#448628.
  477. * linux/syscallent.h: Fix "futex" argument count.
  478. * linux/alpha/syscallent.h: Likewise.
  479. * linux/arm/syscallent.h: Likewise.
  480. * linux/hppa/syscallent.h: Likewise.
  481. * linux/ia64/syscallent.h: Likewise.
  482. * linux/m68k/syscallent.h: Likewise.
  483. * linux/powerpc/syscallent.h: Likewise.
  484. * linux/s390/syscallent.h: Likewise.
  485. * linux/s390x/syscallent.h: Likewise.
  486. * linux/sparc/syscallent.h: Likewise.
  487. * linux/x86_64/syscallent.h: Likewise.
  488. From Ulrich Drepper <drepper@redhat.com>.
  489. Fixes RH#448629.
  490. * signal.c (sigact_flags): Prefer SA_NODEFER to SA_NOMASK,
  491. SA_RESETHAND to SA_ONESHOT.
  492. Fixes RH#455821.
  493. 2008-07-09 Frederik Schüler <fs@debian.org>
  494. * debian/rules: Remove the broken udeb creation routines, and redo the
  495. complete install procedure using debhelper.
  496. * debian/strace.docs: New file, list for dh_installdocs.
  497. * debian/strace.examples: New file, list for dh_installexamples.
  498. * debian/strace.install: New file, list for dh_install.
  499. * debian/strace-udeb.install: New file, list for dh_install.
  500. * debian/strace.manpages : New file, list for dh_installmanpages.
  501. * debian/copyright: Update.
  502. * debian/control: Fix libc6 build dependency for alpha and ia64.
  503. (strace-udeb: XC-Package-Type): Add header.
  504. * debian/changelog: Cosmetic changes.
  505. 2008-07-03 Jan Kratochvil <jan.kratochvil@redhat.com>
  506. Trace vfork under -f on all the platforms.
  507. * strace.1 <-f>: Describe Linux catches new children immediately.
  508. <-F>: Make the option obsolete. Move the SunOS VFORK comment to the
  509. `-f' option description.
  510. * defs.h (followvfork): Declaration removed.
  511. * strace.c (followvfork): Variable removed.
  512. (main) <-F>: Merge with the `-f' option.
  513. (trace): Make !FOLLOWVFORK unconditional.
  514. * process.c (internal_fork): Make !FOLLOWVFORK unconditional.
  515. 2008-07-01 Frederik Schüler <fs@debian.org>
  516. * debian/changelog: List all bugs closed since the last release.
  517. * debian/control: Remove Wichert Akkerman from uploaders list.
  518. * debian/control: Bump standards version to 3.8.0.
  519. * debian/control: Add Homepage field.
  520. * debian/rules: Fix dpkg-gencontrol call.
  521. * debian/compat: New file, set to compatibility level 5.
  522. * debian/rules: Call dh_clean on clean target.
  523. * debian/rules: Add dh_md5sums call.
  524. Fixes Debian#439428.
  525. 2008-06-30 Jan Kratochvil <jan.kratochvil@redhat.com>
  526. Fix ia64 `-f' on clone2 formerly crashing the child.
  527. * util.c [IA64] (restore_arg0, restore_arg1): Define as empty.
  528. Fixes RH#453438.
  529. 2008-06-27 Jan Kratochvil <jan.kratochvil@redhat.com>
  530. * util.c (CLONE_VFORK): Define if not defined already.
  531. (setbpt): Clear CLONE_VFORK for SYS_clone and SYS_clone2.
  532. Reported by Vitaly Mayatskikh.
  533. Fixes RH#455078.
  534. 2008-06-29 Dmitry V. Levin <ldv@altlinux.org>
  535. * linux/x86_64/syscallent.h: Remove duplicate syscall entries
  536. for #283 and #284.
  537. 2008-06-27 Jan Kratochvil <jan.kratochvil@redhat.com>
  538. * linux/syscallent.h: Remove a duplicite syscall stub #326.
  539. 2008-05-27 Roland McGrath <roland@redhat.com>
  540. * syscall.c [LINUX] (is_negated_errno): New function.
  541. (get_error) [LINUX]: Use it for all such cases.
  542. Fixes RH#447587.
  543. 2008-05-19 Roland McGrath <roland@redhat.com>
  544. * linux/x86_64/syscallent.h: Update entries for timerfd_* and fallocate.
  545. * file.c (sys_fallocate): New function.
  546. * linux/syscall.h: Declare it.
  547. * linux/syscallent.h: Update entry.
  548. From Kyle McMartin <kyle@mcmartin.ca>.
  549. * time.c (sys_timerfd_create): New function.
  550. (sys_timerfd_settime, sys_timerfd_gettime): New functions.
  551. * linux/syscall.h: Declare them.
  552. * linux/syscallent.h: Update entries for those syscalls.
  553. From Kyle McMartin <kyle@mcmartin.ca>.
  554. * debian/rules (binary-arch): Fix chmod/chown typo.
  555. Fixes Debian#459255.
  556. * debian/rules (binary-arch): Install strace-graph in examples/
  557. directory under package doc.
  558. Fixes Debian#469068.
  559. * signal.c (sys_kill): When current personality's wordsize is smaller
  560. than native, sign-extend the PID argument from 32 bits.
  561. Fixes RH#430585.
  562. * configure.ac: Add check for struct sigcontext_struct in <signal.h>.
  563. * signal.c [! HAVE_ASM_SIGCONTEXT_H] [I386] (struct sigcontext_struct):
  564. Conditionalize definition on !HAVE_STRUCT_SIGCONTEXT_STRUCT.
  565. Fixes Debian#456879.
  566. * util.c [LINUX] (setbpt): Use correct SYS_clone number for current
  567. personality.
  568. Fixes RH#447475.
  569. 2008-05-08 David S. Miller <davem@davemloft.net>
  570. * syscall.c (socket_map, sparc_socket_decode): Delete.
  571. (trace_syscall): Use common socketcall and ipc subcall
  572. support on sparc.
  573. * linux/sparc/syscall.h (sys_semtimedop): Declare.
  574. (SYS_socket_subcall, SYS_sub_socket, SYS_sub_bind,
  575. SYS_sub_connect, SYS_sub_listen, SYS_sub_accept,
  576. SYS_sub_getsockname, SYS_sub_getpeername,
  577. SYS_sub_socketpair, SYS_sub_send, SYS_sub_recv,
  578. SYS_sub_sendto, SYS_sub_recvfrom, SYS_sub_shutdown,
  579. SYS_sub_setsockopt, SYS_sub_getsockopt, SYS_sub_sendmsg,
  580. SYS_sub_recvmsg, SYS_socket_nsubcalls, SYS_ipc_subcall,
  581. SYS_sub_semop, SYS_sub_semget, SYS_sub_semctl,
  582. SYS_sub_semtimedop, SYS_sub_msgsnd, SYS_sub_msgrcv,
  583. SYS_sub_msgget, SYS_sub_msgctl, SYS_sub_shmat,
  584. SYS_sub_shmdt, SYS_sub_shmget, SYS_sub_shmctl,
  585. SYS_ipc_nsubcalls): Define
  586. * linux/sparc/syscallent.h: Add socketcall and ipc entries.
  587. 2008-01-25 Bruna Moreira <bruna.moreira@indt.org>
  588. * defs.h [ARM]: Define SUPPORTED_PERSONALITIES to 2.
  589. * syscall.c (get_scno) [ARM]: Add support for architecture specific
  590. syscalls.
  591. * linux/arm/syscallent.h: Update network syscalls list.
  592. * linux/arm/syscallent1.h: New file. Add new architecture specific
  593. syscalls.
  594. * linux/arm/errnoent1.h: New file.
  595. * linux/arm/ioctlent1.h: New file.
  596. * linux/arm/signalent1.h: New file.
  597. Fixes Debian#441000.
  598. 2008-01-07 Paul Mundt <lethal@linux-sh.org>
  599. * linux/sh64/syscallent.h: Update numerous calls, fix others.
  600. 2007-08-26 Daniel Jacobowitz <dan@codesourcery.com>
  601. * defs.h [MIPS]: Include <sgidefs.h>.
  602. (MAX_QUALS): Update for MIPS.
  603. (LINUX_MIPSO32, LINUX_MIPSN32, LINUX_MIPSN64, LINUX_MIPS64): Define.
  604. (struct tcb): Add ext_arg for MIPS N32.
  605. (TCB_WAITEXECVE): Define for MIPS.
  606. (ALIGN64): Use LINUX_MIPSO32.
  607. * file.c (sys_lseek): Use ext_arg for MIPS N32.
  608. (sys_readahead, sys_fadvise64_64): Likewise.
  609. * io.c (sys_pread64, sys_pwrite64): Likewise.
  610. * mem.c (print_mmap): Take OFFSET argument.
  611. (sys_old_mmap): Update call to print_mmap.
  612. (sys_mmap): Use ext_arg for MIPS N32.
  613. * process.c (struct_user_offsets): Add MIPS registers.
  614. * signal.c (sys_sigreturn): Handle MIPS N32 and MIPS N64. Correct
  615. MIPS O32 call to sprintsigmask.
  616. * syscall.c (internal_syscall): Handle MIPS N32. Check for
  617. TCB_WAITEXECVE on MIPS.
  618. (force_result): Add a comment about MIPS N32.
  619. (syscall_enter): Handle MIPS N32 and MIPS N64.
  620. * linux/syscall.h (sys_pread64, sys_pwrite64): Declare.
  621. * linux/mips/syscallent.h: Include "dummy.h". Handle alternate
  622. MIPS ABIs.
  623. 2008-04-19 Dmitry V. Levin <ldv@altlinux.org>
  624. * file.c [_LFS64_LARGEFILE] (sys_getdents64): Do the same
  625. d_reclen check as in sys_getdents: warn if d_reclen is 0 rather
  626. than looping forever.
  627. [FREEBSD] (sys_getdirentries): Likewise.
  628. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
  629. * file.c [LINUXSPARC] (printstatsol): Fix sprinttime()
  630. invocation. The sprinttime() function takes a time_t argument,
  631. but timestruct_t argument was given.
  632. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
  633. * file.c (sprinttime): Check localtime() return value, to avoid
  634. potential NULL dereference due to invalid time structures.
  635. Signed-off-by: Harald van Dijk <truedfx@gentoo.org>
  636. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
  637. * linux/errnoent.h: Update errno list based on latest
  638. linux/errno.h and asm-generic/errno*.h files.
  639. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
  640. * signalent.sh: Fix sort(1) old-style options.
  641. * syscallent.sh: Likewise.
  642. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
  643. * count.c (call_summary_pers): Check calloc() return value.
  644. Signed-off-by: "Yang Zhiguo" <yzgcsu@cn.fujitsu.com>
  645. 2008-03-26 Roland McGrath <roland@redhat.com>
  646. * strace.spec (strace64_arches): Add sparc64.
  647. 2007-11-20 Roland McGrath <roland@redhat.com>
  648. * CREDITS, ChangeLog: Converted contents to UTF8.
  649. 2007-11-19 Roland McGrath <roland@redhat.com>
  650. * strace.spec: Add BuildRequires on libaio-devel, libacl-devel.
  651. 2007-11-19 Andreas Schwab <schwab@suse.de>
  652. * process.c (sys_ptrace) [IA64]: For PTRACE_PEEKDATA,
  653. PTRACE_PEEKTEXT and PTRACE_PEEKUSER the data is returned directly.
  654. * linux/syscallent.h: Fix argument count for getdents64.
  655. * linux/arm/syscallent.h: Likewise.
  656. * linux/m68k/syscallent.h: Likewise.
  657. * linux/x86_64/syscallent.h: Likewise.
  658. * linux/ia64/syscallent.h: Use sys_getdents64.
  659. * linux/sh/syscallent.h: Likewise.
  660. 2007-11-06 Jan Kratochvil <jan.kratochvil@redhat.com>
  661. * strace.c [LINUX] (droptcb): Recurse on TCP->parent if it is a
  662. TCB_EXITING zombie group leader.
  663. * test/childthread.c: New file.
  664. * test/.cvsignore, test/Makefile: Add it.
  665. Code advisory: Roland McGrath
  666. Fixes RH#354261.
  667. 2007-11-03 Roland McGrath <roland@redhat.com>
  668. * process.c (prctl_options): Add numerous constants.
  669. From Sami Farin <safari@u.safari.iki.fi>.
  670. Fixes RH#364401.
  671. 2007-11-03 Jan Kratochvil <jan.kratochvil@redhat.com>
  672. * strace.c (main): Move the STARTUP_CHILD call before setting up the
  673. signal handlers. New comment about the valid internal states.
  674. 2007-11-02 Thiemo Seufer <ths@networkno.de>
  675. * signal.c (m_siginfo_t): Add for MIPS.
  676. (sys_sigreturn): struct sigcontext on MIPS has no sigset_t member,
  677. acquire the signal mask with the same trick as on Sparc.
  678. Fixes Debian#448802.
  679. 2007-11-01 Roland McGrath <roland@redhat.com>
  680. * util.c (string_quote): Return nonzero if the string was unterminated.
  681. (printstr): Use that value instead of just our own test.
  682. (printpathn): Likewise.
  683. Fixes RH#358241.
  684. * linux/mips/syscallent.h: Fix argument count for fadvise64_64.
  685. From Paul Mundt <lethal@linux-sh.org>.
  686. * linux/mips/syscallent.h: Fix argument count for lookup_dcookie.
  687. From Paul Mundt <lethal@linux-sh.org>.
  688. * linux/sh64/syscallent.h: Fix SYS_socket_subcall check.
  689. From Paul Mundt <lethal@linux-sh.org>.
  690. * linux/sh/syscallent.h: Update numerous calls.
  691. From Paul Mundt <lethal@linux-sh.org>.
  692. 2007-09-22 Dmitry V. Levin <ldv@altlinux.org>
  693. * desc.c (sys_pselect6): Decode signal mask when entering syscall.
  694. Relax signal mask size check.
  695. * time.c (print_timespec, sprint_timespec): New functions.
  696. * defs.h (print_timespec, sprint_timespec): Declare them.
  697. * desc.c (sys_io_getevents): Use print_timespec.
  698. * stream.c (sys_ppoll): Likewise.
  699. (decode_poll): Use sprint_timespec.
  700. 2007-09-22 Alan Curry <pacman@world.std.com>
  701. Dmitry V. Levin <ldv@altlinux.org>
  702. * stream.c (decode_poll): Rearrange so that arguments are decoded
  703. and printed on syscall entry, except for revents and the output
  704. timespec which are now printed in the auxstr.
  705. (sys_poll): Print the input timeout argument on syscall entry.
  706. [LINUX] (sys_ppoll): Likewise.
  707. Fixes Debian#369651.
  708. 2007-09-22 Dmitry V. Levin <ldv@altlinux.org>
  709. * desc.c (sprintflags): Remove static qualifier, add "prefix"
  710. argument, move function to ...
  711. * util.c (sprintflags): ... here.
  712. * defs.h (sprintflags): Declare it.
  713. 2007-11-01 Roland McGrath <roland@redhat.com>
  714. * syscall.c (get_scno) [ARM]: Check TCB_WAITEXECVE.
  715. Reported by Bernhard Fischer <rep.dot.nop@gmail.com>.
  716. * net.c (sockpacketoptions): Make PACKET_ADD_MEMBERSHIP and
  717. PACKET_DROP_MEMBERSHIP conditional.
  718. From Bernhard Fischer <rep.dot.nop@gmail.com>.
  719. * configure.ac: Match sh64* for SH64, sh* for SH.
  720. Reported by Bernhard Fischer <rep.dot.nop@gmail.com>.
  721. 2007-10-01 Dmitry V. Levin <ldv@altlinux.org>
  722. * net.c (printsock): Output AF_UNIX socket address using
  723. printpathn() to avoid unprintable characters in output.
  724. Suggested by Neil Campbell.
  725. 2007-10-01 Dmitry V. Levin <ldv@altlinux.org>
  726. * util.c (string_quote): Move quoting code from ...
  727. (printstr) ... here. Use string_quote.
  728. (printpathn): Update for new string_quote interface.
  729. (printpath): Use printpathn.
  730. 2007-09-25 Dmitry V. Levin <ldv@altlinux.org>
  731. * strace.c (main): Use calloc for tcbtab allocation.
  732. Check calloc return value.
  733. Reported by Bai Weidong.
  734. 2007-09-11 Roland McGrath <roland@redhat.com>
  735. * linux/sparc/syscall.h: Add missing decls.
  736. * linux/sparc/syscallent.h: Correct entries for setgroups32,
  737. getgroups32, sys_getdents64.
  738. From Jakub Bogusz <qboosh@pld-linux.org>.
  739. * linux/alpha/syscallent.h: Correct entries for madvise, setresgid,
  740. getresgid, pivot_root, mincore, pciconfig_iobase, getdents64.
  741. From Jakub Bogusz <qboosh@pld-linux.org>.
  742. * linux/syscallent.h: Fix getegid32 entry.
  743. From Jakub Bogusz <qboosh@pld-linux.org>.
  744. * defs.h [LINUXSPARC]: Use asm/psrcompat.h for [SPARC64], not asm/psr.h.
  745. From Jakub Bogusz <qboosh@pld-linux.org>.
  746. * mem.c (sys_getpagesize): Define for [SPARC || SPARC64] too.
  747. From Jakub Bogusz <qboosh@pld-linux.org>.
  748. 2007-08-20 Dmitry V. Levin <ldv@altlinux.org>
  749. * syscall.c (qual_syscall, qualify): Fix nsyscalls and MAX_QUALS misuse.
  750. Reported by Xiaoning Ding.
  751. 2007-08-06 Jan Kratochvil <jan.kratochvil@redhat.com>
  752. Roland McGrath <roland@redhat.com>
  753. * file.c [!HAVE_STAT64 && LINUX && X86_64] (struct stat64): Define it.
  754. [!HAVE_STAT64 && LINUX && X86_64] (HAVE_STAT64, STAT64_SIZE): Define.
  755. [HAVE_STAT64] (printstat64) [STAT64_SIZE]: Add compile-time assertion.
  756. Fixes RH#222275.
  757. * file.c (printstat64): Test [HAVE_LONG_LONG] for st_size printing
  758. and cast to widest type available.
  759. 2007-08-03 Ulrich Drepper <drepper@redhat.com>
  760. * file.c (open_mode_flags): Add O_CLOEXEC.
  761. * net.c (msg_flags): Add MSG_CMSG_CLOEXEC.
  762. Fixes RH#365781.
  763. 2007-08-03 Roland McGrath <roland@redhat.com>
  764. * configure.ac, NEWS: Version 4.5.16.
  765. * debian/changelog, strace.spec: 4.5.16-1.
  766. * debian/control (Build-Depends): Replace libc6-dev-s390x and
  767. libc6-dev-sparc64 with gcc-multilib.
  768. * debian/rules: Replace sparc-linux, s390-linux conditionals with
  769. general "arch64_map" hair, handle x86_64 and powerpc64 too.
  770. From Matthias Klose <doko@cs.tu-berlin.de>.
  771. Fixes Debian#435303.
  772. 2007-08-02 Jan Kratochvil <jan.kratochvil@redhat.com>
  773. * strace.c (detach): Moved the resume notification code to ...
  774. (resume_from_tcp): ... a new function here.
  775. (handle_group_exit): No longer detach also the thread group leader.
  776. (trace): Fixed panic on exit of the TCB_GROUP_EXITING leader itself.
  777. Fixes RH#247907.
  778. * test/leaderkill.c (start): Renamed to ...
  779. (start0): ... here.
  780. (start1): New function.
  781. (main): Created a new spare thread.
  782. 2007-08-01 Roland McGrath <roland@redhat.com>
  783. * util.c (umoven): Don't perror for EIO.
  784. (umovestr): Likewise.
  785. * process.c (printargv): Handle boundary cases correctly.
  786. Handle biarch fetching correctly.
  787. * util.c (printstr): Don't print ... if the string matches the length
  788. limit exactly.
  789. * linux/sparc64/syscallent.h: Just #include the sparc file.
  790. * linux/sparc64/syscallent1.h: Likewise.
  791. * linux/sparc64/syscallent2.h: Likewise.
  792. * linux/arm/syscallent.h: Add entry for getcpu.
  793. * linux/hppa/syscallent.h: Likewise.
  794. * linux/ia64/syscallent.h: Likewise.
  795. * linux/mips/syscallent.h: Likewise.
  796. * linux/powerpc/syscallent.h: Likewise.
  797. * linux/s390/syscallent.h: Likewise.
  798. * linux/s390x/syscallent.h: Likewise.
  799. * linux/sh/syscallent.h: Likewise.
  800. * linux/sh64/syscallent.h: Likewise.
  801. * linux/sparc/syscallent.h: Likewise.
  802. * linux/sparc64/syscallent.h: Likewise.
  803. * linux/arm/syscallent.h: Add entry for eventfd.
  804. * linux/ia64/syscallent.h: Likewise.
  805. * linux/mips/syscallent.h: Likewise.
  806. * linux/powerpc/syscallent.h: Likewise.
  807. * linux/s390/syscallent.h: Likewise.
  808. * linux/s390x/syscallent.h: Likewise.
  809. * linux/sh/syscallent.h: Likewise.
  810. * linux/sh64/syscallent.h: Likewise.
  811. * linux/sparc/syscallent.h: Likewise.
  812. * linux/sparc64/syscallent.h: Likewise.
  813. * linux/arm/syscallent.h: Add entry for timerfd.
  814. * linux/ia64/syscallent.h: Likewise.
  815. * linux/mips/syscallent.h: Likewise.
  816. * linux/powerpc/syscallent.h: Likewise.
  817. * linux/s390/syscallent.h: Likewise.
  818. * linux/s390x/syscallent.h: Likewise.
  819. * linux/sh/syscallent.h: Likewise.
  820. * linux/sh64/syscallent.h: Likewise.
  821. * linux/sparc/syscallent.h: Likewise.
  822. * linux/sparc64/syscallent.h: Likewise.
  823. * linux/arm/syscallent.h: Add entry for signalfd.
  824. * linux/ia64/syscallent.h: Likewise.
  825. * linux/mips/syscallent.h: Likewise.
  826. * linux/powerpc/syscallent.h: Likewise.
  827. * linux/s390/syscallent.h: Likewise.
  828. * linux/s390x/syscallent.h: Likewise.
  829. * linux/sh/syscallent.h: Likewise.
  830. * linux/sh64/syscallent.h: Likewise.
  831. * linux/sparc/syscallent.h: Likewise.
  832. * linux/sparc64/syscallent.h: Likewise.
  833. * linux/hppa/syscallent.h: Add entry for epoll_pwait.
  834. * linux/ia64/syscallent.h: Likewise.
  835. * linux/mips/syscallent.h: Likewise.
  836. * linux/powerpc/syscallent.h: Likewise.
  837. * linux/s390/syscallent.h: Likewise.
  838. * linux/s390x/syscallent.h: Likewise.
  839. * linux/sh/syscallent.h: Likewise.
  840. * linux/sh64/syscallent.h: Likewise.
  841. * linux/sparc/syscallent.h: Likewise.
  842. * linux/sparc64/syscallent.h: Likewise.
  843. 2007-07-23 Ulrich Drepper <drepper@redhat.com>
  844. * process.c (sys_getcpu): New function.
  845. * linux/syscall.h: Declare sys_getcpu.
  846. * linux/syscallent.h: Add entry for getcpu.
  847. * desc.c (sys_eventfd): New function.
  848. * linux/syscall.h: Declare sys_eventfd.
  849. * linux/syscallent.h: Add entry for eventfd.
  850. * linux/x86_64/syscallent.h: Likewise.
  851. * time.c (printitv_bitness): Add missing braces to enclose
  852. conditional code.
  853. (TDF_TIMER_ABSTIME): Define if not already.
  854. (timerfdflags): New variable.
  855. (sys_timerfd): New function.
  856. * linux/syscall.h: Declare sys_timerfd.
  857. * linux/syscallent.h: Add timerfd entry.
  858. * linux/x86_64/syscallent.h: Likewise.
  859. * linux/syscall.h: Declare sys_signalfd.
  860. * linux/syscallent.h: Add entry for signalfd.
  861. * linux/x86_64/syscallent.h: Likewise.
  862. * signal.c (sys_signalfd): New function.
  863. * desc.c (sys_epoll_wait): Move body of function to ...
  864. (epoll_wait_common): ...here. New function.
  865. (sys_epoll_pwait): New function.
  866. * linux/syscall.h: Declare sys_epoll_pwait.
  867. * linux/syscallent.h: Add entry for epoll_pwait.
  868. * linux/x86_64/syscallent.h: Likewise.
  869. 2007-07-23 Roland McGrath <roland@redhat.com>
  870. * time.c (printtv_bitness): SPECIAL only counts when tv_sec == 0.
  871. * linux/arm/syscallent.h: Add move_pages.
  872. * linux/hppa/syscallent.h: Likewise.
  873. * linux/ia64/syscallent.h: Likewise.
  874. * linux/m68k/syscallent.h: Likewise.
  875. * linux/mips/syscallent.h: Likewise.
  876. * linux/powerpc/syscallent.h: Likewise.
  877. * linux/s390/syscallent.h: Likewise.
  878. * linux/s390x/syscallent.h: Likewise.
  879. * linux/sh/syscallent.h: Likewise.
  880. * linux/sh64/syscallent.h: Likewise.
  881. * linux/sparc/syscallent.h: Likewise.
  882. * linux/sparc64/syscallent.h: Likewise.
  883. * linux/syscallent.h: move_pages takes 6 args, not 5.
  884. * linux/x86_64/syscallent.h: Likewise.
  885. 2007-07-23 Ulrich Drepper <drepper@redhat.com>
  886. * defs.h: Add new parameter to printtv_bitness prototype.
  887. (printttv): Pass zero for the new parameter.
  888. (printtv_special): New macro.
  889. * desc.c (decode_select): Pass zero for the new parameter of
  890. printtv_bitness.
  891. * file.c (utimensatflags): New macro.
  892. (sys_osf_utimes): Pass zero for the new parameter of
  893. printtv_bitness.
  894. (sys_utimes): Likewise.
  895. (sys_futimesat): Likewise.
  896. (decode_utimes): Add new parameter. Pass it to the
  897. printtv_bitness calls. Fix printing of time values.
  898. (sys_utimensat): New function.
  899. * time.c (UTIME_NOW, UTIME_OMIT): Define if not already
  900. happened.
  901. (printtv_bitness): Add new parameter. Print special UTIME_*
  902. values as strings if set.
  903. (sys_osf_gettimeofday): Pass zero for the new parameter of
  904. printtv_bitness.
  905. (sys_osf_settimeofday): Likewise.
  906. * linux/syscall.h: Declare sys_utimensat.
  907. * linux/syscallent.h: Add utimensat entry.
  908. * linux/x86_64/syscallent.h: Likewise.
  909. * mem.c (move_pages_flags): New variable.
  910. (sys_move_pages): New function.
  911. * linux/syscall.h: Declare sys_move_pages.
  912. * linux/syscallent.h: Add entry for sys_move_pages.
  913. * linux/x86_64/syscallent.h: Likewise.
  914. * mem.c (MPOL_MF_MOVE, MPOL_MF_MOVE_ALL): Define.
  915. (mbindflags): Add MPOL_MF_MOVE and MPOL_MF_MOVE_ALL entries.
  916. 2007-07-23 Roland McGrath <roland@redhat.com>
  917. * util.c (tv_add): Fix rounding comparison.
  918. Reported by Bai Weidong <baiwd@cn.fujitsu.com>.
  919. 2007-07-11 Roland McGrath <roland@redhat.com>
  920. * count.c (call_summary_pers): Use tv_float conversion for output of
  921. cumulative time, in case it is negative from bogus -O value.
  922. From Lai JiangShan <laijs@cn.fujitsu.com>.
  923. * strace.c (handle_group_exit): Detach TCP before LEADER.
  924. Don't use PTRACE_KILL on LEADER.
  925. * util.c (printstr): Fix size calculation for outstr allocation.
  926. * configure.ac (struct sigcontext.sc_hi2): Use #ifdef around
  927. <asm/sigcontext.h> to match signal.c include conditions.
  928. 2007-07-05 Roland McGrath <roland@redhat.com>
  929. * debian/rules: Use debian/$(package) instead of debian/tmp as temp dir.
  930. * configure.ac: Use <stddef.h> before <linux/socket.h>.
  931. * debian/changelog: Harmonize with debian version.
  932. * debian/control (Uploaders): Fix surname spelling.
  933. (Build-Depends): Make debhelper requirement (>= 5.0.0).
  934. (Standards-Version): Update to 3.7.2.
  935. * .cvsignore: Add some automake-created files.
  936. * file.c (sys_utime): Use personality_wordsize to handle biarch.
  937. Fixes RH#247185.
  938. * signal.c (sys_sigreturn) [MIPS]: Pass 3rd arg to sprintsigmask.
  939. From Zhang Le <zhilg@users.sourceforge.net>.
  940. * strace.c (strace_fopen): [_LFS64_LARGEFILE]: Use fopen64.
  941. Fixes Debian#385310.
  942. * strace.c (main): Fix error message for unfound -u user.
  943. From Srinivasa Ds <srinivasa@in.ibm.com>.
  944. Fixes RH#247170.
  945. * debian/control (Architecture): Add armel.
  946. * linux/syscallent.h: Fix sys_delete_module arg count.
  947. * linux/alpha/syscallent.h: Likewise.
  948. * linux/arm/syscallent.h: Likewise.
  949. * linux/hppa/syscallent.h: Likewise.
  950. * linux/ia64/syscallent.h: Likewise.
  951. * linux/m68k/syscallent.h: Likewise.
  952. * linux/mips/syscallent.h: Likewise.
  953. * linux/powerpc/syscallent.h: Likewise.
  954. * linux/s390/syscallent.h: Likewise.
  955. * linux/s390x/syscallent.h: Likewise.
  956. * linux/sh/syscallent.h: Likewise.
  957. * linux/sh64/syscallent.h: Likewise.
  958. * linux/sparc/syscallent.h: Likewise.
  959. * linux/sparc64/syscallent.h: Likewise.
  960. * linux/sparc64/syscallent2.h: Likewise.
  961. * linux/x86_64/syscallent.h: Likewise.
  962. * linux/dummy.h (sys_delete_module): Use sys_open.
  963. From Johannes Stezenbach <js@linuxtv.org>.
  964. * configure.ac: Check for struct sigcontext.sc_hi2.
  965. * signal.c (sys_sigreturn) [MIPS]: Use sc_hi2 vs sc_sigset if found.
  966. * process.c [LINUX] (futexops): Add many new values.
  967. [LINUX] (futexwakeops, futexwakecmps): New tables.
  968. [LINUX] (sys_futex): Use them.
  969. From Ulrich Drepper <drepper@redhat.com>.
  970. Fixes RH#241467.
  971. 2007-07-05 Jan Kratochvil <jan.kratochvil@redhat.com>
  972. * strace.c (detach): New prototype. Extended the function comment.
  973. [LINUX] (detach): Call droptcb() instead of the wrongly parametrized
  974. detach() call.
  975. (handle_group_exit): Call droptcb() instead of the wrongly parametrized
  976. detach() call. Always call detach() only once from the group leader.
  977. Comment the leader killing known bug tested by `test/leaderkill.c'.
  978. Code advisory: Roland McGrath
  979. Fixes RH#240961.
  980. * test/leaderkill.c: New file.
  981. * test/.cvsignore, test/Makefile: Add it.
  982. 2007-03-21 Andreas Schwab <schwab@suse.de>
  983. * file.c (sys_newfstatat): Don't use printstat64 on ppc64.
  984. 2007-03-29 Vladimir Nadvornik <nadvornik@suse.cz>
  985. Dmitry V. Levin <ldv@altlinux.org>
  986. Trace linux SG_IO ioctl arguments and results.
  987. * scsi.c: New file.
  988. * Makefile.am (strace_SOURCES): Add it.
  989. * defs.h (scsi_ioctl): New function.
  990. * ioctl.c (ioctl_decode): Use scsi_ioctl().
  991. 2007-06-28 Dmitry V. Levin <ldv@altlinux.org>
  992. * util.c (tv_mul): Multiply tv_usec properly.
  993. Patch from Cai Fei <caifei@cn.fujitsu.com>.
  994. 2007-06-11 Jan Kratochvil <jan.kratochvil@redhat.com>
  995. Never interrupt when the attached traced process would be left stopped.
  996. * strace.c (main): `-p' attaching moved to ...
  997. (startup_attach): ... a new function, renamed a variable C to TCBI.
  998. Block interrupting signals since the first tracee has been attached.
  999. New comment about INTERRUPTED in the nonthreaded case.
  1000. [LINUX] (startup_attach): Check INTERRUPTED after each attached thread.
  1001. (main): Command spawning moved to ...
  1002. (startup_child): ... a new function, replaced RETURN with EXIT.
  1003. [LINUX] (detach): New variable CATCH_SIGSTOP, do not signal
  1004. new SIGSTOP for processes still in TCB_STARTUP.
  1005. (main): Move signals and BLOCKED_SET init before the tracees attaching,
  1006. [SUNOS4] (trace): Removed fixvfork () call as a dead code, SIGSTOP must
  1007. have been already caught before clearing TCB_STARTUP.
  1008. (trace): Removed the `!WIFSTOPPED(status)' dead code.
  1009. Clear TCB_STARTUP only in the case the received signal was SIGSTOP.
  1010. New comment when `TCB_BPTSET && TCB_STARTUP' combination can be set.
  1011. Code advisory: Roland McGrath
  1012. Fixes RH#240986.
  1013. 2007-05-24 Jan Kratochvil <jan.kratochvil@redhat.com>
  1014. * strace.c [LINUX] (my_tgkill): New macro.
  1015. [LINUX] (detach): Use my_tgkill () instead of kill(2).
  1016. Fixes RH#240962.
  1017. 2007-03-30 Dmitry V. Levin <ldv@altlinux.org>
  1018. * mem.c (mmap_flags): Add MAP_32BIT.
  1019. Reported by Kirill A. Shutemov.
  1020. 2007-01-12 Dmitry V. Levin <ldv@altlinux.org>
  1021. * sock.c (sock_ioctl): Check umove() return code.
  1022. [LINUX]: Handle SIOCGIFTXQLEN and SIOCGIFMAP.
  1023. 2007-03-16 Roland McGrath <roland@redhat.com>
  1024. * linux/s390/syscallent.h: Use sys_restart_syscall for 7.
  1025. * linux/s390x/syscallent.h: Likewise.
  1026. 2007-02-18 Roland McGrath <roland@redhat.com>
  1027. * strace.spec (Summary): Remove trailing period.
  1028. (%files): Add %doc files.
  1029. (%changelog): Double %s in text.
  1030. (BuildRoot): Change to Fedora canonical.
  1031. (%install): Don't use %makeinstall macro.
  1032. (%build): Use %{?_smp_mflags}.
  1033. 2007-01-16 Roland McGrath <roland@redhat.com>
  1034. * configure.ac, NEWS: Version 4.5.15.
  1035. * debian/changelog, strace.spec: 4.5.15-1.
  1036. 2007-01-16 Dmitry V. Levin <ldv@altlinux.org>
  1037. Update mount parser to match kernel behaviour.
  1038. * system.c [LINUX] (MS_VERBOSE): Rename to MS_SILENT.
  1039. [LINUX] (MS_UNBINDABLE, MS_PRIVATE, MS_SLAVE, MS_SHARED):
  1040. New macros.
  1041. [LINUX] (mount_flags): Add them.
  1042. [LINUX] (MS_MGC_MSK): New macro.
  1043. [LINUX] (sys_mount): Update parser to match kernel behaviour:
  1044. discard MS_MGC_VAL magic, do not decode type and/or data
  1045. strings when specified flags do not imply valid strings.
  1046. 2007-01-12 Dmitry V. Levin <ldv@altlinux.org>
  1047. * time.c [LINUX] (tprint_timex32, tprint_timex): Decode adjtimex
  1048. modes as flags.
  1049. 2007-01-11 Dmitry V. Levin <ldv@altlinux.org>
  1050. Update umount parser.
  1051. * system.c [LINUX] (MNT_FORCE, MNT_DETACH, MNT_EXPIRE): New macros.
  1052. [LINUX] (umount_flags): New xlat structure with MNT_* entries.
  1053. [LINUX] (sys_umount2): Use umount_flags.
  1054. Fix open(2) flags parser.
  1055. * defs.h (tprint_open_modes): New function.
  1056. * desc.c (sprint_open_modes): New function.
  1057. (sys_fcntl): Use tprint_open_modes() and sprint_open_modes().
  1058. * file.c (openmodes): Split xlat into open_access_modes and
  1059. open_mode_flags.
  1060. (tprint_open_modes): New function.
  1061. (decode_open): Use it.
  1062. * ipc.c (sys_mq_open, printmqattr): Likewise.
  1063. Fixes RH#222385.
  1064. 2007-01-11 Roland McGrath <roland@redhat.com>
  1065. * configure.ac, NEWS: Version 4.5.15.
  1066. * debian/changelog, strace.spec: 4.5.15-1.
  1067. * debian/control (Uploaders): Add Frederik Schueler <fs@debian.org>.
  1068. * strace.spec (Release): Use %{?dist}.
  1069. * system.c [LINUX] (CTL_CPU): Define in case header is missing it.
  1070. 2006-12-27 Dmitry V. Levin <ldv@altlinux.org>
  1071. Add const qualifier to xlookup() return value.
  1072. * defs.h (xlookup): Add const qualifier to return value.
  1073. * desc.c (sprintflags): Likewise.
  1074. * process.c (printpriv): Update xlookup() use.
  1075. * signal.c (sprintsigmask): Add const qualifier to first argument and
  1076. return value.
  1077. * util.c (xlookup): Add const qualifier to return value.
  1078. (printxval): Update xlookup() use.
  1079. 2006-12-21 Dmitry V. Levin <ldv@altlinux.org>
  1080. Move counts code to separate file.
  1081. * count.c: New file.
  1082. * Makefile.am (strace_SOURCES): Add count.c.
  1083. * syscall.c (call_counts, countv, counts, shortest, time_cmp,
  1084. syscall_cmp, count_cmp, sortfun, overhead, set_sortby,
  1085. set_overhead, call_summary_pers, call_summary): Move to count.c
  1086. * count.c (count_syscall): New function.
  1087. * defs.h (count_syscall): Declare it.
  1088. * syscall.c (trace_syscall): Use it.
  1089. 2006-12-20 Dmitry V. Levin <ldv@altlinux.org>
  1090. * syscall.c (internal_syscall): Change conditions for internal_exit,
  1091. internal_fork, internal_clone, internal_exec and internal_wait
  1092. calls from switching on known scno values to switching on known
  1093. sysent[tcp->scno].sys_func values.
  1094. Fixes RH#179740.
  1095. Show system call summary for each personality.
  1096. * syscall.c (countv): New call_counts pointers array.
  1097. (counts): Convert to macro wrapper around countv.
  1098. (call_summary_pers): New function.
  1099. (call_summary): Use it for each personality.
  1100. Fixes RH#192193.
  1101. 2006-12-12 Dmitry V. Levin <ldv@altlinux.org>
  1102. Fix -ff -o behaviour. Fix piping trace output.
  1103. * defs.h (newoutf): Remove.
  1104. (alloctcb): Rename to alloc_tcb. Add alloctcb() macro wrapper
  1105. around alloc_tcb().
  1106. * process.c [!USE_PROCFS] (internal_clone, internal_fork):
  1107. Remove newoutf() call.
  1108. * strace.c (set_cloexec_flag, strace_fopen, strace_popen,
  1109. swap_uid): New functions.
  1110. (popen_pid): New variable.
  1111. (newoutf): Make static, use strace_fopen().
  1112. (main): Use strace_fopen() and strace_popen(), remove uids
  1113. swapping. Do not open outfname when followfork > 1.
  1114. Reinitialize tcp->outf properly.
  1115. (alloctcb): Rename to alloc_tcb. Use newoutf().
  1116. (trace): Check popen_pid. Remove newoutf() call.
  1117. [USE_PROCFS] (proc_open, proc_poll_open): Use set_cloexec_flag().
  1118. Fixes RH#204950, RH#218435, Debian#353935.
  1119. 2006-12-10 Dmitry V. Levin <ldv@altlinux.org>
  1120. Add biarch support for "struct sigevent".
  1121. * time.c [LINUX && SUPPORTED_PERSONALITIES > 1] (printsigevent32):
  1122. New function.
  1123. [LINUX] (printsigevent): [SUPPORTED_PERSONALITIES > 1]
  1124. Handle 32-bit personality.
  1125. Add biarch support for "struct timex".
  1126. * time.c [LINUX && SUPPORTED_PERSONALITIES > 1] (tprint_timex32):
  1127. New function.
  1128. [LINUX] (tprint_timex): New function.
  1129. [LINUX] (sys_adjtimex): Use it.
  1130. Enhance adjtimex parser.
  1131. * time.c [LINUX] (adjtimex_modes, adjtimex_status,
  1132. adjtimex_state): New xlat structures.
  1133. [LINUX] (sys_adjtimex): Print the whole struct timex.
  1134. Decode modes, status and return code.
  1135. Add biarch support for "struct itimerval".
  1136. * time.c (printitv): Rename to printitv_bitness().
  1137. Add printitv() macro wrapper around printitv_bitness().
  1138. (printitv_bitness): Handle 32-bit personality.
  1139. [ALPHA] (sys_osf_getitimer, sys_osf_setitimer):
  1140. Use printitv_bitness().
  1141. (tprint_timeval, tprint_timeval32): New functions.
  1142. (printtv_bitness, printitv_bitness, sys_adjtimex): Use them.
  1143. (printitv32): Remove.
  1144. Add biarch support for "struct timeval".
  1145. * defs.h (bitness_t): New enum type.
  1146. (printtv_bitness, sprinttv): New function prototypes.
  1147. (printtv): Convert to macro wrapper around printtv_bitness().
  1148. (printtv32): Remove.
  1149. * desc.c (decode_select): Use printtv_bitness() and sprinttv().
  1150. (sys_oldselect, sys_osf_select, sys_select, sys_pselect6):
  1151. Update decode_select() use.
  1152. * file.c [ALPHA] (sys_osf_utimes): Use printtv_bitness().
  1153. * time.c (printtv_bitness, sprinttv): New functions.
  1154. (printtv, printtv32): Remove.
  1155. [ALPHA] (sys_osf_settimeofday, sys_osf_settimeofday):
  1156. Use printtv_bitness().
  1157. Fixes RH#171626, RH#173050.
  1158. Add biarch support for "struct iovec".
  1159. * defs.h (personality_wordsize): Add.
  1160. * io.c [HAVE_SYS_UIO_H] (tprint_iov): [LINUX &&
  1161. SUPPORTED_PERSONALITIES > 1] Handle 32-bit personality.
  1162. * util.c [HAVE_SYS_UIO_H] (dumpiov): [LINUX &&
  1163. SUPPORTED_PERSONALITIES > 1] Likewise.
  1164. Patch from Jakub Jelinek.
  1165. Fixes RH#218433.
  1166. * time.c (sys_timer_create): Check umove() return code.
  1167. Make several global variables static.
  1168. #ifdef definitions of rarely unused functions.
  1169. * defs.h (rflag, tflag, outfname): Remove.
  1170. * strace.c (iflag, interactive, pflag_seen, rflag, tflag,
  1171. outfname, username): Make static.
  1172. * desc.c (sys_getdtablesize): Define only for
  1173. ALPHA || FREEBSD || SUNOS4.
  1174. * file.c (sys_fchroot): Define only for SUNOS4 || SVR4.
  1175. (sys_mkfifo): Define only for FREEBSD.
  1176. * mem.c (sys_sbrk): Define only for FREEBSD || SUNOS4.
  1177. (sys_getpagesize): Define only for
  1178. ALPHA || FREEBSD || IA64 || SUNOS4 || SVR4.
  1179. * net.c (sys_so_socket): Define only for SVR4.
  1180. * process.c (sys_gethostid): Define only for
  1181. FREEBSD || SUNOS4 || SVR4.
  1182. (sys_gethostname): Define only for
  1183. ALPHA || FREEBSD || SUNOS4 || SVR4.
  1184. (sys_setpgrp): Define only for ALPHA || SUNOS4 || SVR4.
  1185. (sys_execv): Define only for SPARC || SPARC64 || SUNOS4.
  1186. * signal.c (sys_sigblock): Define only for FREEBSD || SUNOS4.
  1187. (sys_sighold, sys_sigwait): Define only for SVR4.
  1188. (sys_killpg): Define only for FREEBSD || SUNOS4.
  1189. * stream.c (sys_getmsg): Define only for
  1190. SPARC || SPARC64 || SUNOS4 || SVR4.
  1191. * syscall.c (sys_indir): Define only for SUNOS4.
  1192. 2006-11-27 Dmitry V. Levin <ldv@altlinux.org>
  1193. * system.c [LINUX]: Define CTL_PROC, since Linux 2.6.18+ headers
  1194. removed CTL_PROC enum. Patch from Jakub Jelinek.
  1195. [LINUX] (sysctl_root): Add CTL_BUS, CTL_ABI and CTL_CPU.
  1196. 2006-11-20 Jakub Jelinek <jakub@redhat.com>
  1197. * linux/ia64/syscallent.h: Add #if check to make sure that
  1198. SYS_socket_subcall adjustment isn't forgotten again.
  1199. 2006-10-16 Dmitry V. Levin <ldv@altlinux.org>
  1200. Implement comprehensive quotactl(2) parser for Linux.
  1201. * Makefile.am (strace_SOURCES): Add quota.c.
  1202. * quota.c: New file.
  1203. * resource.c: Remove old quotactl(2) parser.
  1204. Fixes RH#118696.
  1205. 2006-10-14 Dmitry V. Levin <ldv@altlinux.org>
  1206. * configure.ac (AC_CHECK_HEADERS): Add inttypes.h.
  1207. * file.c [_LFS64_LARGEFILE && (LINUX || SVR4)]:
  1208. Include <inttypes.h>.
  1209. (sys_getdents64): Use PRIu64/PRId64 to avoid gcc warnings on
  1210. 64-bit platforms.
  1211. * strace.c (main): Check getcwd() return code.
  1212. 2006-10-13 Ulrich Drepper <drepper@redhat.com>
  1213. Bernhard Kaindl <bk@suse.de>
  1214. Dmitry V. Levin <ldv@altlinux.org>
  1215. Michael Holzheu <holzheu@de.ibm.com>
  1216. Add hooks for new syscalls. Add decoders for *at, inotify*,
  1217. pselect6, ppoll and unshare syscalls.
  1218. * defs.h: Declare print_sigset.
  1219. * desc.c (sys_pselect6): New function.
  1220. * file.c (decode_open, decode_access, decode_mkdir,
  1221. decode_readlink, decode_chmod, decode_utimes, decode_mknod):
  1222. New functions.
  1223. (sys_open, sys_access, sys_mkdir, sys_readlink, sys_chmod,
  1224. sys_utimes, sys_mknod): Use them.
  1225. [LINUX] (fstatatflags, unlinkatflags, inotify_modes): New
  1226. variables.
  1227. [LINUX] (print_dirfd, sys_openat, sys_faccessat,
  1228. sys_newfstatat, sys_mkdirat, sys_linkat, sys_unlinkat,
  1229. sys_symlinkat, sys_readlinkat, sys_renameat, sys_fchownat,
  1230. sys_fchmodat, sys_futimesat, sys_mknodat, sys_inotify_add_watch,
  1231. sys_inotify_rm_watch): New functions.
  1232. * process.c [LINUX] (sys_unshare): New function.
  1233. * signal.c (print_sigset): New function.
  1234. (sys_sigprocmask): Use it.
  1235. * stream.c (decode_poll): New function.
  1236. (sys_poll): Use it.
  1237. [LINUX] (sys_ppoll): New function.
  1238. * linux/syscall.h: Delcare new syscall handlers.
  1239. * linux/syscallent.h: Hook up new syscalls.
  1240. * linux/alpha/syscallent.h: Likewise.
  1241. * linux/hppa/syscallent.h: Likewise.
  1242. * linux/ia64/syscallent.h: Likewise.
  1243. * linux/mips/syscallent.h: Likewise.
  1244. * linux/powerpc/syscallent.h: Likewise.
  1245. * linux/s390/syscallent.h: Likewise.
  1246. * linux/s390x/syscallent.h: Likewise.
  1247. * linux/sparc/syscallent.h: Likewise.
  1248. * linux/sparc64/syscallent.h: Likewise.
  1249. * linux/x86_64/syscallent.h: Likewise.
  1250. Fixes RH#178633.
  1251. 2006-10-06 Dmitry V. Levin <ldv@altlinux.org>
  1252. * strace.c [!USE_PROCFS] (trace): Presence of PT_GETSIGINFO
  1253. macro does not mean that PT_CR_IPSR and PT_CR_IIP macros are
  1254. also defined, so check them along with PT_GETSIGINFO.
  1255. Fixes RH#209856.
  1256. 2006-09-01 Dmitry V. Levin <ldv@altlinux.org>
  1257. * file.c (print_xattr_val): Fix memory corruption bug reported
  1258. by James Antill.
  1259. Fixes RH#200621.
  1260. 2006-04-21 Dmitry V. Levin <ldv@altlinux.org>
  1261. * defs.h [LINUX && X86_64 && !__NR_exit_group]: Define
  1262. __NR_exit_group.
  1263. 2006-03-29 Dmitry V. Levin <ldv@altlinux.org>
  1264. Fix race conditions in tcb allocation.
  1265. * process.c (fork_tcb): Return error code as documented. Do not
  1266. print "tcb table full" error message.
  1267. [USE_PROCFS] (internal_fork): Do not print "tcb table full"
  1268. error message.
  1269. [SYS_clone || SYS_clone2] (internal_clone, internal_fork): Call
  1270. fork_tcb() before alloctcb(). Do not print "tcb table full"
  1271. error message.
  1272. * strace.c (main): Do not print "tcb table full" error message.
  1273. (expand_tcbtab): Print error message in case of memory allocation
  1274. failure.
  1275. (alloctcb): Print error message when tcb table is full.
  1276. (trace): Expand tcb table if necessary prior to allocating
  1277. entry there. Do not print "tcb table full" error message.
  1278. Fixes RH#180293.
  1279. 2006-08-22 Roland McGrath <roland@redhat.com>
  1280. * ipc.c (sys_msgget, sys_semget, sys_shmget): Show key values in hex.
  1281. Fixes RH#198179.
  1282. 2006-08-21 Roland McGrath <roland@redhat.com>
  1283. * linux/syscall.h (SYS_socket_subcall): Bump to 400.
  1284. * linux/syscallent.h: Update table.
  1285. * linux/arm/syscallent.h: Likewise.
  1286. * linux/m68k/syscallent.h: Likewise.
  1287. * linux/s390/syscallent.h: Likewise.
  1288. * linux/s390x/syscallent.h: Likewise.
  1289. * linux/powerpc/syscallent.h: Likewise.
  1290. * linux/sh/syscallent.h: Likewise.
  1291. * linux/sh64/syscallent.h: Likewise.
  1292. Fixes RH#201462.
  1293. 2006-04-25 Roland McGrath <roland@redhat.com>
  1294. * strace.c (main): Fail when -c is given with -ff.
  1295. * strace.1: Note their incompatibility.
  1296. Fixes RH#187847.
  1297. * strace.c (main): Fail when nonoption args follow -p switches.
  1298. Fixes Debian#361302.
  1299. * Makefile.am (EXTRA_DIST): Add xlate.el.
  1300. * linux/mips/Makefile.in: File removed, unused cruft.
  1301. * linux/sparc/Makefile.in: Likewise.
  1302. * strace.spec (Source0): Use http://dl.sourceforge.net URL.
  1303. * ipc.c (sys_semtimedop): Fixed inverted indirect_ipccall test.
  1304. * linux/hppa/syscallent.h: Fixed semtimedop entry.
  1305. From Mike Stroyan <mike.stroyan@hp.com>.
  1306. Fixes Debian#340239.
  1307. 2006-03-30 Daniel Jacobowitz <dan@codesourcery.com>
  1308. * linux/arm/syscallent.h: Correct the name of exit. Remove
  1309. M68K conditionals and sys_security. Correct syscalls 243-282.
  1310. Fixes Debian#360154.
  1311. * process.c (change_syscall): Add ARM support.
  1312. * syscall.c (get_scno): Handle ARM EABI.
  1313. Fixes Debian#360152.
  1314. 2006-01-16 Roland McGrath <roland@redhat.com>
  1315. * configure.ac, NEWS: Version 4.5.14.
  1316. * debian/changelog, strace.spec: 4.5.14-1.
  1317. 2006-01-13 Roland McGrath <roland@redhat.com>
  1318. * debian/control (Build-Depends): Add debhelper.
  1319. 2006-01-12 Roland McGrath <roland@redhat.com>
  1320. * signal.c [LINUX] (sys_restart_syscall): New function.
  1321. * linux/syscall.h: Declare sys_restart_syscall.
  1322. * linux/sparc/syscall.h: Likewise.
  1323. * linux/syscallent.h: Call 0 is restart_syscall.
  1324. * linux/arm/syscallent.h: Likewise.
  1325. * linux/powerpc/syscallent.h: Likewise.
  1326. * linux/m68k/syscallent.h: Likewise.
  1327. * linux/hppa/syscallent.h: Likewise.
  1328. * linux/sh/syscallent.h: Likewise.
  1329. * linux/sparc/syscallent.h: Likewise.
  1330. * linux/sparc64/syscallent.h: Likewise.
  1331. * linux/alpha/syscallent.h: Use sys_restart_syscall.
  1332. * linux/ia64/syscallent.h: Likewise.
  1333. * linux/mips/syscallent.h: Likewise.
  1334. * linux/x86_64/syscallent.h: Likewise.
  1335. Fixes RH#165469, Debian#350641.
  1336. 2005-08-08 Dmitry V. Levin <ldv@altlinux.org>
  1337. * system.c [LINUX] (MS_MGC_VAL): New macro.
  1338. [LINUX] (mount_flags): Add it.
  1339. [LINUX] (sys_mount): If neither MS_BIND nor MS_MOVE bits are
  1340. set in the flags argument, try to fetch data string.
  1341. Fixes RH#165377.
  1342. 2006-01-12 Roland McGrath <roland@redhat.com>
  1343. * system.c (sys_sysctl): Don't read off end of NAME when max_strlen
  1344. exceeds INFO.nlen.
  1345. From Timo Lindfors <timo.lindfors@iki.fi>.
  1346. Fixes Debian#339117.
  1347. * debian/rules (binary-arch): Don't pass -s to install. Use dh_strip.
  1348. Fixes Debian#325132.
  1349. * debian/control (Standards-Version): Update to 3.6.2.
  1350. * defs.h [LINUXSPARC] (PERSONALITY0_WORDSIZE, PERSONALITY1_WORDSIZE):
  1351. New macros.
  1352. [SPARC64] (PERSONALITY2_WORDSIZE): New macro.
  1353. [X86_64] (PERSONALITY0_WORDSIZE, PERSONALITY1_WORDSIZE): New macros.
  1354. * syscall.c (PERSONALITY0_WORDSIZE): New macro if undefined.
  1355. (personality_wordsize): New variable.
  1356. (decode_subcall): Use it for size of argument words.
  1357. Fixes RH#174354.
  1358. 2005-11-17 Dmitry V. Levin <ldv@altlinux.org>
  1359. Implement qual_flags support for each personality.
  1360. * strace.c (main): Move qualify calls after set_personality call.
  1361. * syscall.c (qual_flags0): New variable..
  1362. [SUPPORTED_PERSONALITIES >= 2] (qual_flags1): New variable.
  1363. [SUPPORTED_PERSONALITIES >= 3] (qual_flags2): New variable.
  1364. (qual_flags): Change variable definition from array to pointer.
  1365. (set_personality): Initialize qual_flags variable.
  1366. (qualify_one): Add "pers" argument to specify personality.
  1367. [SUPPORTED_PERSONALITIES >= 2]: Set qual_flags1 if requested.
  1368. [SUPPORTED_PERSONALITIES >= 3]: Set qual_flags2 if requested.
  1369. (qual_syscall): Pass personality to qualify_one.
  1370. [SUPPORTED_PERSONALITIES >= 2]: Look for syscall also in sysent1
  1371. table.
  1372. [SUPPORTED_PERSONALITIES >= 3]: Look for syscall also in sysent2
  1373. table.
  1374. (qual_signal): Pass personality to qualify_one.
  1375. (qual_desc): Likewise.
  1376. (qualify): Use qualify_one instead of manual qual_flags
  1377. manipulations.
  1378. [SUPPORTED_PERSONALITIES >= 2]: Look for syscall also in sysent1
  1379. table.
  1380. [SUPPORTED_PERSONALITIES >= 3]: Look for syscall also in sysent2
  1381. table.
  1382. * defs.h: Update qual_flags declaration.
  1383. Fixes RH#173986.
  1384. 2005-11-14 Dmitry V. Levin <ldv@altlinux.org>
  1385. * syscall.c (qual_syscall): Handle numeric syscall specification.
  1386. Fixes RH#174798.
  1387. * syscall.c (qual_signal, qual_options): Remove redundant argument
  1388. check.
  1389. 2005-12-01 Roland McGrath <roland@redhat.com>
  1390. * ipc.c (indirect_ipccall) [MIPS || HPPA]: Return false.
  1391. Fixes Debian#340239.
  1392. * Makefile.am (EXTRA_DIST): Add linux/arm/syscallent.h
  1393. and linux/m68k/syscallent.h.
  1394. Fixes Debian#336197.
  1395. * debian/control (Architecture): Add armeb.
  1396. Fixes Debian#335681.
  1397. 2005-11-02 Michal Marek <mmarek@suse.cz>
  1398. * strace-graph (handle_trace): follow clone() and vfork() calls.
  1399. 2005-10-25 Heiko Carstens <heiko.carstens@de.ibm.com>
  1400. * linux/s390/syscallent.h: Added ioprio_set, ioprio_get,
  1401. inotify_init, inotify_add_watch, inotify_rm_watch.
  1402. Corrected number of arguments for request_key.
  1403. * linux/s390x/syscallent.h: Likewise.
  1404. 2005-12-01 Roland McGrath <roland@redhat.com>
  1405. * ipc.c (indirect_ipccall) [IA64]: Return false unless the syscall
  1406. number is in the low range of IA32 syscalls.
  1407. 2005-10-07 Andreas Schwab <schwab@suse.de>
  1408. * linux/ia64/syscallent.h: Syscall 1105 is gettid, not ioperm.
  1409. 2005-12-01 Roland McGrath <roland@redhat.com>
  1410. * resource.c (resources): Add RLIMIT_NICE, RLIMIT_RTPRIO.
  1411. Reported by Scott Tsai <scottt958@yahoo.com.tw>.
  1412. * ipc.c (indirect_ipccall): New function.
  1413. (sys_msgctl, sys_msgsnd, sys_msgrcv, sys_semop): Use that predicate
  1414. instead of #ifdef LINUX test.
  1415. [LINUX] (sys_semtimedop): Likewise.
  1416. (sys_shmctl, sys_shmat, sys_shmdt): Likewise.
  1417. Fixes RH#164755.
  1418. 2005-07-31 Ulrich Drepper <drepper@redhat.com>
  1419. * linux/x86_64/syscallent.h: Fix syscall parameter count for msgrcv and
  1420. msgctl.
  1421. * ipc.c (sys_msgrcv): Add entering handling and print first parameter
  1422. there.
  1423. Fixes RH#164757.
  1424. 2005-08-08 Dmitry V. Levin <ldv@altlinux.org>
  1425. * strace.1: Update "SEE ALSO" links to reference to valid
  1426. manpages.
  1427. Patch from Michail Litvak <mci@owl.openwall.com>.
  1428. Fixes RH#165375.
  1429. 2005-10-21 Roland McGrath <roland@redhat.com>
  1430. * util.c (printpathn): Cap N at sizeof path - 1.
  1431. 2005-08-03 Roland McGrath <roland@redhat.com>
  1432. * configure.ac, NEWS: Version 4.5.13.
  1433. * debian/changelog, strace.spec: 4.5.13-1.
  1434. * configure.ac: Check for struct dqblk.dqb_curblocks field.
  1435. * resource.c [LINUX] (OLD_CMD): New macro.
  1436. (quotacmds): Use it to hard-wire old O_* values, don't use macros.
  1437. (sys_quotactl): If dqb_curblocks is not there, it's called
  1438. dqb_curspace instead. Print dqb_* fields as unsigned long long.
  1439. 2005-07-19 Michael Schmitz <schmitz@debian.org>
  1440. Long overdue m68k cleanup.
  1441. * linux/syscallent.h: remove m68k declarations.
  1442. * linux/m68k/syscallent.h: new file, fixed up declarations
  1443. to match kernel version 2.6.11. Newer syscalls are sufficiently
  1444. different from i386 to merit a separate file.
  1445. 2005-08-03 Roland McGrath <roland@redhat.com>
  1446. * linux/x86_64/syscallent.h: Update init_module argument count.
  1447. * linux/sparc/syscallent.h: Likewise.
  1448. * linux/sparc64/syscallent2.h: Likewise.
  1449. * linux/sparc64/syscallent.h: Likewise.
  1450. * linux/sh/syscallent.h: Likewise.
  1451. * linux/sh64/syscallent.h: Likewise.
  1452. * linux/s390/syscallent.h: Likewise.
  1453. * linux/s390x/syscallent.h: Likewise.
  1454. * linux/powerpc/syscallent.h: Likewise.
  1455. * linux/arm/syscallent.h: Likewise.
  1456. 2005-07-22 James Lentini <jlentini@gmail.com>
  1457. * bjm.c (sys_init_module): Display all three arguments.
  1458. * linux/syscallent.h: Update argument count.
  1459. 2005-08-03 Roland McGrath <roland@redhat.com>
  1460. * process.c (internal_wait): Don't suspend when known child is known
  1461. to be exiting already.
  1462. * strace.c (detach): If detaching the last live thread in a group with
  1463. a zombie leader, then detach the leader too.
  1464. (handle_group_exit): Use detach, not droptcb, for predeceased thread.
  1465. Mark process about to take a signal with TCB_GROUP_EXITING flag.
  1466. Fixes RH#161919.
  1467. 2005-07-19 Roland McGrath <roland@redhat.com>
  1468. * defs.h [LINUX] [M68K] (__NR_exit_group): Define it if missing.
  1469. Fixes Debian#315500.
  1470. 2005-07-14 Heiko Carstens <heiko.carstens@de.ibm.com>
  1471. * linux/s390/syscallent.h (sys_tgkill, vserver, fadvise64_64)
  1472. (statfs64, fstatfs64, remap_file_pages, mbind, get_mempolicy)
  1473. (set_mempolicy, mq_open, mq_unlink, mq_timedsend, mq_timedreceive)
  1474. (mq_notify, mq_getsetattr, sys_kexec_load, add_key, request_key)
  1475. (keyctl, waitid): Added.
  1476. * linux/s390x/syscallent.h: Likewise and added missing _llseek.
  1477. * linux/s390/errnoent.h (ECANCELED, ENOKEY, EKEYEXPIRED)
  1478. (EKEYREVOKED, EKEYREJECTED, EOWNERDEAD, ENOTRECOVERABLE): Added.
  1479. * linux/s390x/errnoent.h: Likewise.
  1480. 2005-07-05 Roland McGrath <roland@redhat.com>
  1481. * mem.c [LINUX] (sys_old_mmap) [X86_64]: Extract 32-bit values if
  1482. child is 32-bit.
  1483. Fixes RH#162467.
  1484. 2005-06-08 Dmitry V. Levin <ldv@altlinux.org>
  1485. Introduce "-e trace=desc".
  1486. * defs.h (TRACE_DESC): New flag.
  1487. * syscall.c: Define TD macro before include of syscallent files
  1488. and undefine it afterwards.
  1489. (lookup_class): Recognize "desc" keyword.
  1490. * strace.1: Document "-e trace=desc".
  1491. * freebsd/i386/syscallent.h: Mark those syscalls which take a
  1492. file descriptor as an argument or return a file descriptor with
  1493. TD flag.
  1494. * linux/alpha/syscallent.h: Likewise.
  1495. * linux/hppa/syscallent.h: Likewise.
  1496. * linux/ia64/syscallent.h: Likewise.
  1497. * linux/mips/syscallent.h: Likewise.
  1498. * linux/powerpc/syscallent.h: Likewise.
  1499. * linux/s390/syscallent.h: Likewise.
  1500. * linux/s390x/syscallent.h: Likewise.
  1501. * linux/sh/syscallent.h: Likewise.
  1502. * linux/sh64/syscallent.h: Likewise.
  1503. * linux/sparc/syscallent.h: Likewise.
  1504. * linux/sparc64/syscallent2.h: Likewise.
  1505. * linux/sparc64/syscallent.h: Likewise.
  1506. * linux/syscallent.h: Likewise.
  1507. * linux/x86_64/syscallent.h: Likewise.
  1508. * sunos4/syscallent.h: Likewise.
  1509. * svr4/syscallent.h: Likewise.
  1510. Fixes RH#159400.
  1511. Remove TF flag from those syscalls which have no filename argument.
  1512. * freebsd/i386/syscallent.h: Remove TF flag from fstat, pread,
  1513. pwrite, fstat, sendfile.
  1514. * linux/alpha/syscallent.h: Remove TF flag from read, write,
  1515. pread, pwrite, sendfile.
  1516. * linux/hppa/syscallent.h: Remove TF flag from read, write,
  1517. pread, pwrite, fstat64, sendfile, ftruncate64.
  1518. * linux/ia64/syscallent.h: Remove TF flag from read, write,
  1519. sendfile, fstat, fadvise64.
  1520. * linux/mips/syscallent.h: Remove TF flag from read, write,
  1521. fstatfs, fstat, pread, pwrite, sendfile, ftruncate64, fstat64,
  1522. sendfile64, fadvise64, fstatfs64.
  1523. * linux/powerpc/syscallent.h: Remove TF flag from read, write,
  1524. fstat, pread, pwrite, sendfile, ftruncate64, fstat64, sendfile64,
  1525. fadvise64, fstatfs64, fadvise64_64.
  1526. * linux/s390/syscallent.h: Remove TF flag from pread, pwrite,
  1527. sendfile, ftruncate64, fstat64, sendfile64.
  1528. * linux/s390x/syscallent.h: Remove TF flag from pread, pwrite,
  1529. sendfile, sendfile64.
  1530. * linux/sh/syscallent.h: Remove TF flag from pread, pwrite,
  1531. sendfile, fstat64.
  1532. * linux/sh64/syscallent.h: Remove TF flag from pread, pwrite,
  1533. sendfile, ftruncate64, fstat64.
  1534. * linux/sparc/syscallent.h: Remove TF flag from sendfile, fstat64,
  1535. pread, pwrite, sendfile64.
  1536. * linux/sparc64/syscallent2.h: Likewise.
  1537. * linux/sparc64/syscallent.h: Likewise.
  1538. * linux/syscallent.h: Remove TF flag from pread, pwrite, sendfile,
  1539. ftruncate64, fstat64, sendfile64, fadvise64, fadvise64, fstatfs64,
  1540. fadvise64_64.
  1541. * linux/x86_64/syscallent.h: Remove TF flag from pread, pwrite,
  1542. sendfile, fadvise64_64.
  1543. * svr4/syscallent.h: Remove TF flag from pread, pwrite, ftruncate,
  1544. fstatvfs64, ftruncate64.
  1545. Fixes RH#159340.
  1546. 2005-07-04 Roland McGrath <roland@redhat.com>
  1547. * net.c (sockipv6options): Add IPV6_ADD_MEMBERSHIP,
  1548. IPV6_DROP_MEMBERSHIP, IPV6_ROUTER_ALERT.
  1549. From Ulrich Drepper <drepper@redhat.com>.
  1550. Fixes RH#162450.
  1551. * net.c (sockipoptions): Fix typos.
  1552. From Ulrich Drepper <drepper@redhat.com>.
  1553. Fixes RH#161578.
  1554. * util.c (printnum_int): New function, printnum with s/long/int/.
  1555. * defs.h: Declare it.
  1556. * net.c (printsockopt): Use it for int-sized option.
  1557. Fixes RH#162449.
  1558. Reported by Ulrich Drepper <drepper@redhat.com>.
  1559. 2005-06-09 Roland McGrath <roland@redhat.com>
  1560. * configure.ac, NEWS: Version 4.5.12.
  1561. * debian/changelog, strace.spec: 4.5.12-1.
  1562. 2005-06-08 Dmitry V. Levin <ldv@altlinux.org>
  1563. Minor namespace cleanup.
  1564. * defs.h (string_quote): Remove declaration.
  1565. * file.c (openmodessol) [LINUXSPARC]: Make static.
  1566. (fileflags): Likewise.
  1567. (aclcmds, aclipc) [HAVE_SYS_ACL_H]: Likewise.
  1568. (direnttypes) [FREEBSD || LINUX]: Likewise.
  1569. (xattrflags): Likewise.
  1570. * process.c (unalignctl_string): Make static.
  1571. (setarg): Disable.
  1572. * syscall.c (subcalls_table): Make static.
  1573. (socket_map) [!(LINUX && (ALPHA || MIPS))]: Likewise.
  1574. (sparc_socket_decode): Make static, define for [SPARC || SPARC64] only.
  1575. (decode_subcall): Make static.
  1576. (syscall_fixup): Likewise.
  1577. (get_error): Likewise.
  1578. (syscall_enter): Likewise.
  1579. * util.c (tv_tv): Disable.
  1580. (getpc): Likewise.
  1581. (string_quote): Make static.
  1582. Fixes RH#159688.
  1583. 2005-05-12 Philippe De Muyter <phdm@macqel.be>
  1584. * util.c (getpc, printcall): Check #if defined(M68K), not M68k.
  1585. Enables `-i' on m68k machines.
  1586. 2005-06-06 Roland McGrath <roland@redhat.com>
  1587. * process.c (struct_user_offsets) [X86_64]: Reorder elements so
  1588. matching works right.
  1589. Fixes RH#159787.
  1590. * linux/syscall.h (SYS_socket, SYS_bind, SYS_connect, SYS_listen)
  1591. (SYS_accept, SYS_getsockname, SYS_getpeername, SYS_socketpair)
  1592. (SYS_send, SYS_recv, SYS_sendto, SYS_recvfrom, SYS_shutdown)
  1593. (SYS_setsockopt, SYS_getsockopt, SYS_sendmsg, SYS_recvmsg)
  1594. (SYS_getsockname, SYS_semop, SYS_semgsub_et, SYS_semget, SYS_semctl)
  1595. (SYS_semtimedop, SYS_msgsnd, SYS_msgrcv, SYS_msgget)
  1596. (SYS_msgctl, SYS_shmat, SYS_shmdt, SYS_shmget)
  1597. (SYS_shmctl): Macros renamed to SYS_sub_*.
  1598. * syscall.c (dumpio): Match SYS_sub_* if defined instead of SYS_*.
  1599. * linux/syscall.h (SYS_waitid): Define if not defined.
  1600. * linux/syscallent.h: Fix pread/pwrite names to pread64/pwrite64.
  1601. * defs.h (struct sysent): New member `native_scno'.
  1602. (known_scno): Declare new function.
  1603. * linux/syscallent.h: Add new final field to interesting syscalls.
  1604. * syscall.c (known_scno): New function.
  1605. (dumpio, internal_syscall, syscall_fixup, trace_syscall): Use it.
  1606. * process.c (internal_fork, internal_exit): Likewise.
  1607. [IA64] (ARG_STACKSIZE, ARG_PTID, ARG_CTID, ARG_TLS): Likewise.
  1608. * strace.c (proc_open): Likewise.
  1609. * util.c [LINUX] (setbpt): Likewise.
  1610. * linux/syscall.h: Remove [!defined(X86_64)] from conditional
  1611. for defining SYS_socket_subcall et al.
  1612. * linux/syscallent.h: Likewise for #error check.
  1613. * syscall.c (trace_syscall): Likewise for SYS_{socketcall,ipc} cases.
  1614. Fixes RH#158934.
  1615. 2005-06-02 Roland McGrath <roland@redhat.com>
  1616. * file.c (printstatfs64): Cast values to unsigned long long and use
  1617. %llu formats.
  1618. Fixes RH#158243.
  1619. 2005-05-31 Dmitry V. Levin <ldv@altlinux.org>
  1620. Deal with memory management issues.
  1621. * defs.h (tprint_iov): Update prototype.
  1622. * desc.c (sys_epoll_wait) [HAVE_SYS_EPOLL_H]: Do not allocate
  1623. epoll_event array of arbitrary size on the stack, to avoid
  1624. stack overflow.
  1625. * file.c (print_xattr_val): Check for integer overflow during
  1626. malloc size calculation, to avoid heap corruption.
  1627. * io.c (tprint_iov) [HAVE_SYS_UIO_H]: Check for integer overflow
  1628. during malloc size calculation, to avoid heap corruption.
  1629. Change iovec array handling to avoid heap memory allocation.
  1630. * mem.c (get_nodes) [LINUX]: Check for integer overflow during
  1631. size calculation and do not allocate array of arbitrary size on
  1632. the stack, to avoid stack overflow.
  1633. * net.c (printcmsghdr) [HAVE_SENDMSG]: Do not allocate array of
  1634. arbitrary size on the stack, to avoid stack overflow. Do not
  1635. trust cmsg.cmsg_len to avoid read beyond the end of allocated
  1636. object.
  1637. (printmsghdr) [HAVE_SENDMSG]: Update tprint_iov() usage.
  1638. * process.c (sys_setgroups): Check for integer overflow during
  1639. malloc size calculation, to avoid heap corruption. Change gid_t
  1640. array handling to avoid heap memory allocation.
  1641. (sys_getgroups): Likewise.
  1642. (sys_setgroups32) [LINUX]: Likewise.
  1643. (sys_getgroups32) [LINUX]: Likewise.
  1644. * stream.c (sys_poll) [HAVE_SYS_POLL_H]: Check for integer
  1645. overflow during malloc size calculation, to avoid heap corruption.
  1646. Change pollfd array handling to avoid heap memory allocation.
  1647. * system.c (sys_sysctl) [LINUX]: Check for integer overflow
  1648. during malloc size calculation, to avoid heap corruption.
  1649. * util.c (dumpiov) [HAVE_SYS_UIO_H]: Check for integer overflow
  1650. during malloc size calculation, to avoid heap corruption.
  1651. Fixes RH#159196.
  1652. * util.c (printxval): Change third argument from "char *" to
  1653. "const char *".
  1654. (printflags): Add third argument, "const char *", with similar
  1655. meaning to the third argument of printxval().
  1656. * defs.h (printxval): Change third argument from "char *" to
  1657. "const char *".
  1658. (printflags): Add third argument.
  1659. * bjm.c (sys_query_module) [LINUX]: Pass third argument to
  1660. printflags().
  1661. * desc.c (sys_fcntl): Likewise.
  1662. (sys_flock) [LOCK_SH]: Likewise.
  1663. (print_epoll_event) [HAVE_SYS_EPOLL_H]: Likewise.
  1664. * file.c (sys_open): Likewise.
  1665. (solaris_open) [LINUXSPARC]: Likewise.
  1666. (sys_access): Likewise.
  1667. (sys_chflags, sys_fchflags) [FREEBSD]: Likewise.
  1668. (realprintstat) [HAVE_LONG_LONG_OFF_T &&
  1669. HAVE_STRUCT_STAT_ST_FLAGS]: Likewise.
  1670. (printstat64) [HAVE_STAT64 &&
  1671. HAVE_STRUCT_STAT_ST_FLAGS]: Likewise.
  1672. (sys_setxattr, sys_fsetxattr): Likewise.
  1673. * ipc.c (sys_msgget, sys_msgsnd, sys_msgrcv, sys_semget,
  1674. sys_shmget, sys_shmat) [LINUX || SUNOS4 || FREEBSD]: Likewise.
  1675. (sys_mq_open) [LINUX]: Likewise.
  1676. (printmqattr) [HAVE_MQUEUE_H]: Likewise.
  1677. * mem.c (print_mmap) [!HAVE_LONG_LONG_OFF_T]: Likewise.
  1678. (sys_mmap64) [_LFS64_LARGEFILE || HAVE_LONG_LONG_OFF_T]: Likewise.
  1679. (sys_mprotect): Likewise.
  1680. (sys_mremap, sys_madvise, sys_mlockall) [LINUX]: Likewise.
  1681. (sys_msync) [MS_ASYNC]: Likewise.
  1682. (sys_mctl) [MC_SYNC]: Likewise.
  1683. (sys_remap_file_pages, sys_mbind, sys_get_mempolicy) [LINUX]:
  1684. Likewise.
  1685. * net.c (printmsghdr) [HAVE_STRUCT_MSGHDR_MSG_CONTROL]: Likewise.
  1686. (sys_send, sys_sendto): Likewise.
  1687. (sys_sendmsg) [HAVE_SENDMSG]: Likewise.
  1688. (sys_recv, sys_recvfrom): Likewise.
  1689. (sys_recvmsg) [HAVE_SENDMSG]: Likewise.
  1690. (printicmpfilter) [ICMP_FILTER]: Likewise.
  1691. * proc.c (proc_ioctl) [SVR4 && !HAVE_MP_PROCFS || FREEBSD]: Likewise.
  1692. * process.c (sys_clone) [LINUX]: Likewise.
  1693. (printwaitn): Likewise.
  1694. (sys_waitid) [SVR4 || LINUX]: Likewise.
  1695. * signal.c (sys_sigvec) [SUNOS4 || FREEBSD]: Likewise.
  1696. (sys_sigaction): Likewise.
  1697. (printcontext) [SVR4]: Likewise.
  1698. (print_stack_t) [LINUX) || FREEBSD]: Likewise.
  1699. (sys_rt_sigaction) [LINUX]: Likewise.
  1700. * sock.c (sock_ioctl) [LINUX]: Likewise.
  1701. * stream.c (sys_putmsg, sys_getmsg): Likewise.
  1702. (sys_putpmsg) [SYS_putpmsg]: Likewise.
  1703. (sys_getpmsg) [SYS_getpmsg]: Likewise.
  1704. (sys_poll): Likewise.
  1705. (print_transport_message) [TI_BIND]: Likewise.
  1706. (stream_ioctl): Likewise.
  1707. * system.c (sys_mount, sys_reboot): Likewise.
  1708. (sys_cacheflush) [LINUX && M68K]: Likewise.
  1709. (sys_capget, sys_capset) [SYS_capget]: Likewise.
  1710. * term.c (term_ioctl) [TIOCMGET]: Likewise.
  1711. * time.c (sys_clock_nanosleep, sys_timer_settime) [LINUX]:
  1712. Likewise.
  1713. Fixes RH#159310.
  1714. * bjm.c (sys_query_module) [LINUX]: Unitize "out of memory"
  1715. errors reporting style.
  1716. * strace.c (rebuild_pollv) [USE_PROCFS]: Likewise.
  1717. * system.c (sys_capget, sys_capset) [SYS_capget]: Likewise.
  1718. * util.c (printstr): Likewise.
  1719. (dumpiov) [HAVE_SYS_UIO_H]: Likewise.
  1720. (fixvfork) [SUNOS4]: Likewise.
  1721. * desc.c (decode_select): Continue to decode syscall arguments
  1722. in case of OOM condition.
  1723. * file.c (sys_getdents): Likewise.
  1724. (sys_getdents64) [_LFS64_LARGEFILE]: Likewise.
  1725. (sys_getdirentries) [FREEBSD]: Likewise.
  1726. * mem.c (sys_mincore): Changed type of variables which deal with
  1727. malloc size from int to unsigned long.
  1728. Fixes RH#159308.
  1729. 2005-05-22 Dmitry V. Levin <ldv@altlinux.org>
  1730. * bjm.c [LINUX]: Do not include <linux/linkage.h>. It is not
  1731. safe to include kernel headers, and this one is not used anyway.
  1732. Fixes RH#158488.
  1733. 2005-05-26 Roland McGrath <roland@redhat.com>
  1734. * system.c (sys_sysctl): Check for errors accessing user pointers.
  1735. Use malloc instead of alloca in case size is insane.
  1736. 2005-05-09 Roland McGrath <roland@redhat.com>
  1737. * configure.ac: Check for libaio.h.
  1738. * desc.c (sys_io_setup, sys_io_submit, sys_io_cancel,
  1739. sys_io_getevents, sys_io_destroy): New functions.
  1740. * linux/syscall.h: Declare them.
  1741. * linux/syscallent.h: Use those for io_* syscalls.
  1742. * linux/alpha/syscallent.h: Likewise.
  1743. * linux/hppa/syscallent.h: Likewise.
  1744. * linux/ia64/syscallent.h: Likewise.
  1745. * linux/mips/syscallent.h: Likewise.
  1746. * linux/powerpc/syscallent.h: Likewise.
  1747. * linux/s390/syscallent.h: Likewise.
  1748. * linux/s390x/syscallent.h: Likewise.
  1749. * linux/x86_64/syscallent.h: Likewise.
  1750. From Zach Brown <zach.brown@oracle.com>.
  1751. Fixes RH#155065.
  1752. * debian/control (Architecture): Add ppc64.
  1753. Fixes Debian bug #301089.
  1754. 2005-05-05 Anton Blanchard <anton@samba.org>
  1755. * process.c (ptrace_cmds): Add PTRACE_GETVRREGS and PTRACE_SETVRREGS
  1756. if defined.
  1757. 2005-05-09 Roland McGrath <roland@redhat.com>
  1758. * strace.c (main): Refuse negative -s argument value.
  1759. Fixes Debian bug #303256.
  1760. 2005-04-25 Anton Blanchard <anton@samba.org>
  1761. * file.c (openmodes): Add O_NOATIME flag if defined.
  1762. 2005-04-05 Anton Blanchard <anton@samba.org>
  1763. * linux/powerpc/ioctlent.h: Regenerated.
  1764. * signal.c (signame): Don't try and dereference negative index.
  1765. * linux/powerpc/syscallent.h: Add debug_setcontext, vserver,
  1766. mbind, *_mempolicy, mq_*, sys_kexec_load, add_key, request_key,
  1767. keyctl, waitid, sys_semtimedop. Fix various other syscalls.
  1768. * ipc.c (shm_resource_flags): New variable, table has SHM_HUGETLB
  1769. but not IPC_NOWAIT, which have the same value.
  1770. (sys_shmget): Use that instead of resource_flags.
  1771. 2005-03-22 Roland McGrath <roland@redhat.com>
  1772. * desc.c (decode_select): Increase local buffer size.
  1773. Fixes RH#151570.
  1774. * configure.ac, NEWS: Version 4.5.11.
  1775. * debian/changelog, strace.spec: 4.5.11-1.
  1776. * linux/arm/syscallent.h: Fix 113 entry (syscall, not vm86old).
  1777. 2005-03-14 Roland McGrath <roland@redhat.com>
  1778. * configure.ac, NEWS: Version 4.5.10.
  1779. * debian/changelog, strace.spec: 4.5.10-1.
  1780. 2005-02-26 GOTO Masanori <gotom@debian.or.jp>
  1781. * linux/alpha/syscallent.h: Fix the reversed order of lstat64 and
  1782. fstat64. Clean up osf_nrecvmsg and osf_ngetsockname.
  1783. 2005-02-28 Andreas Schwab <schwab@suse.de>
  1784. * syscall.c (getrval2): Move #ifdef IA64 inside #ifdef LINUX.
  1785. 2005-03-14 Roland McGrath <roland@redhat.com>
  1786. * linux/mips/syscallent.h: Update various calls.
  1787. From Thiemo Seufer <ths@networkno.de>.
  1788. Fixes Debian bug #256684.
  1789. * debian/control (Architecture): Add s390.
  1790. Fixes Debian bug #294172.
  1791. 2005-03-06 Roland McGrath <roland@redhat.com>
  1792. * strace.c (trace) [PTRACE_GETSIGINFO]: Fetch siginfo_t for SIGSEGV
  1793. and SIGBUS signals, use si_addr in output.
  1794. 2005-03-01 Roland McGrath <roland@redhat.com>
  1795. * file.c (print_xattr_val): Add a cast.
  1796. 2005-02-05 Roland McGrath <roland@redhat.com>
  1797. * desc.c (decode_select): Calculate size of passed fd_set vectors and
  1798. copy in the user's size rather than the standard sizeof(fd_set).
  1799. Fixes Debian bug #65654, #284290.
  1800. * util.c (printpath, printpathn): Print NULL and don't try any fetch
  1801. when ADDR is zero.
  1802. Fixes Debian bug #63093.
  1803. * debian/control (Build-Depends): Fix for s390 and sparc.
  1804. From Bastian Blank <waldi@debian.org>.
  1805. Fixes Debian bug #293564.
  1806. 2004-12-19 Dmitry V. Levin <ldv@altlinux.org>
  1807. * strace.c (main) [!USE_PROCFS]: In child process, raise SIGSTOP
  1808. right before execv() call. Remove fake_execve() call.
  1809. * defs.h (fake_execve): Remove unused declaration.
  1810. * process.c (fake_execve): Remove unused function.
  1811. Fixes RH#143365.
  1812. 2005-02-04 Roland McGrath <roland@redhat.com>
  1813. * configure.ac, NEWS: Version 4.5.9.
  1814. * debian/changelog, strace.spec: 4.5.9-2.
  1815. * file.c (O_LARGEFILE): Omit when #undef'd because it was zero.
  1816. 2005-02-02 Roland McGrath <roland@redhat.com>
  1817. * debian/control: Add strace-udeb package for installer debugging.
  1818. * debian/rules (binary-arch): Build it.
  1819. From Joshua Kwan <joshk@triplehelix.org>.
  1820. Fixes Debian bug #268294.
  1821. * file.c (openmodes) [O_LARGEFILE] [O_LARGEFILE == 0]: Redefine to
  1822. known values for Linux.
  1823. * util.c (printcall): Print 16 ?s when long is 8 bytes.
  1824. Fixes RH#146932.
  1825. * linux/sparc/syscall.h: Declare sys_epoll_create, sys_epoll_ctl,
  1826. sys_epoll_wait.
  1827. * linux/sparc64/syscall.h: Just #include "../sparc/syscall.h" here.
  1828. * ioctl.c (nioctlents2): Add const to type.
  1829. Fixes Debian bug #278449.
  1830. * sock.c (iffflags): New variable, table of IFF_* values.
  1831. (print_addr): New function.
  1832. (sock_ioctl): Handle SIOCGIFADDR, SIOCGIFDSTADDR, SIOCGIFBRDADDR,
  1833. SIOCGIFNETMASK, SIOCGIFFLAGS, SIOCGIFMETRIC, SIOCGIFMTU, SIOCGIFSLAVE,
  1834. SIOCGIFHWADDR. Use print_addr for SIOCGIFCONF, SIOCGIFNAME, and
  1835. SIOCGIFINDEX, and fix their output.
  1836. From Ulrich Drepper <drepper@redhat.com>.
  1837. Fixes RH#138223.
  1838. Fixes Debian bug #192164.
  1839. 2004-12-20 Dmitry V. Levin <ldv@altlinux.org>
  1840. * configure.ac: Use AC_GNU_SOURCE macro instead of changing CFLAGS.
  1841. * defs.h [HAVE_CONFIG_H]: Include config.h first.
  1842. * strace.c: Include "defs.h" first.
  1843. Fixes RH#143370.
  1844. * syscall.c (call_summary): Fix potential NULL dereference.
  1845. Fixes RH#143369.
  1846. 2004-12-19 Dmitry V. Levin <ldv@altlinux.org>
  1847. * syscall.c (qual_signal): Check bounds for numeric signal names.
  1848. Fix parser of symbolic signal names.
  1849. Fix return code, as required by qualify() function.
  1850. * syscall.c (qual_desc): Check bounds for descriptor number.
  1851. * syscall.c (qual_syscall): Correct return code, to be consistent
  1852. with qualify() and other qual_* functions.
  1853. Fixes RH#143362.
  1854. 2005-02-01 Roland McGrath <roland@redhat.com>
  1855. * system.c [LINUX] (MS_MANDLOCK, MS_NOATIME, MS_NODIRATIME, MS_BIND,
  1856. MS_MOVE, MS_REC, MS_VERBOSE, MS_POSIXACL, MS_ACTIVE, MS_NOUSER):
  1857. New macros.
  1858. [LINUX] (mount_flags): Add them.
  1859. [LINUX] (sys_mount): If any of (MS_BIND|MS_MOVE|MS_REMOUNT) bits are
  1860. set in the flags argument, don't try to fetch the filesystem string.
  1861. Fixes RH#141932.
  1862. * config.guess: Update from canonical version, timestamp 2004-11-12.
  1863. * config.sub: Likewise, timestamp 2004-11-30.
  1864. * process.c [LINUX] [X86_64] (sys_arch_prctl): New function.
  1865. * linux/syscall.h: Declare it.
  1866. * linux/x86_64/syscallent.h: Use it.
  1867. Part of RH#142667.
  1868. * process.c (sys_sched_setscheduler): Use %#lx format for bad pointer.
  1869. (sys_sched_getparam, sys_sched_setparam): Likewise.
  1870. Part of RH#142667.
  1871. * signal.c [HAVE_SIGACTION] [LINUX && X86_64] (SA_RESTORER): Define
  1872. here too.
  1873. Part of RH#142667.
  1874. * linux/syscallent.h: Use sys_mincore instead of printargs.
  1875. * linux/x86_64/syscallent.h: Likewise. Also use sys_getrlimit,
  1876. sys_semtimedop, sys_umount2.
  1877. Part of RH#142667.
  1878. * syscall.c (qual_signal): Fix inverted return value and bogus
  1879. argument to qualify_one in the named case.
  1880. * file.c (print_xattr_val): Don't use auto array sized by syscall
  1881. argument. Use malloc instead, so it can fail for insane values.
  1882. Fixes Debian bug #283704.
  1883. * net.c (sys_getsockopt): Fix a format %ld -> %d.
  1884. * linux/syscall.h [IA64] (SYS_semtimedop): #undef it.
  1885. * syscall.c (syscall_enter) [X86_64]: Fix 32-bit argument register map
  1886. not to double the middle entry!
  1887. Fixes RH#146093.
  1888. * linux/x86_64/syscallent.h: Fix exit_group entry.
  1889. * util.c (getpc) [S390 || S390X]: Implement it.
  1890. Patch by David Wilder <wilder@us.ibm.com>.
  1891. * linux/ia64/syscallent.h: Add fadvise64, fstatfs64, statfs64, mbind,
  1892. [gs]et_mempolicy, mq_*, sys_kexec_load, vserver, and waitid.
  1893. Fixes RH#146245.
  1894. 2005-01-22 Andreas Schwab <schwab@suse.de>
  1895. * net.c (sys_getsockopt): Change type of len to int.
  1896. 2004-10-19 Roland McGrath <roland@redhat.com>
  1897. * configure.ac, NEWS: Version 4.5.8.
  1898. * debian/changelog, strace.spec: 4.5.8-1.
  1899. * file.c (sys_fadvise64): Conditionalize just on [LINUX].
  1900. * configure.ac: Check for sys/epoll.h.
  1901. * desc.c: Protect #include <sys/epoll.h> with [HAVE_SYS_EPOLL_H].
  1902. (epollctls, epollevents): Protect each entry with #ifdef on its macro.
  1903. * strace.c (handle_group_exit): Don't detach leader that wasn't
  1904. TCB_ATTACHED. Instead mark it with TCB_GROUP_EXITING.
  1905. Remove droptcb loop at end, no longer required since 2.6 reports each
  1906. thread death.
  1907. Fixes RH#135254.
  1908. * strace.c (trace): Use handle_group_exit for non-TCB_ATTACHED child
  1909. taking signal when it has nclone_threads > 0.
  1910. * strace.c (handle_group_exit, trace): Mark leader with
  1911. TCB_GROUP_EXITING and don't be surprised at child deaths when their
  1912. leader has it set.
  1913. Fixes RH#132150.
  1914. * process.c (WCOREFLAG): Define if not defined.
  1915. (W_STOPCODE, W_EXITCODE): Likewise.
  1916. Reported by Marty Leisner <mleisner@eng.mc.xerox.com>.
  1917. * sock.c [! LINUX]: Include <sys/socket.h> before <sys/sockio.h>.
  1918. Reported by Marty Leisner <mleisner@eng.mc.xerox.com>.
  1919. * debian/rules: Make strace64.1.gz symlink to strace.1.gz instead of
  1920. strace64.1 to strace.1, which doesn't exist.
  1921. Fixes Debian bug #269220.
  1922. 2004-09-05 Phil Blundell <pb@nexus.co.uk>
  1923. * linux/arm/syscallent.h: New file.
  1924. 2004-10-19 Roland McGrath <roland@redhat.com>
  1925. * debian/rules (DEB_BUILD_GNU_TYPE, CONFIG_OPTS): New variables.
  1926. [$(DEB_HOST_GNU_TYPE) == s390-linux] (build64, HOST64, CC64): Set them.
  1927. (build/Makefile): Use $(CONFIG_OPTS).
  1928. (build64/Makefile): Pass --host as well as --build.
  1929. From Bastian Blank <waldi@debian.org>.
  1930. Fixes Debian bug #271500.
  1931. * linux/hppa/syscallent.h: Update for 2.6.9 syscalls.
  1932. From Randolph Chung <tausq@debian.org>
  1933. Fixes Debian bug #273887.
  1934. * file.c (sys_llseek): Revert last change.
  1935. 2004-09-14 Richard Henderson <rth@twiddle.net>
  1936. * linux/alpha/syscallent.h: Add tgkill, *stat64, vserver, mbind,
  1937. [gs]et_mempolicy, mq_*, waitid.
  1938. 2004-10-07 Roland McGrath <roland@redhat.com>
  1939. * file.c (sys_llssek, sys_readahead, sys_fadvise64, sys_fadvise64_64):
  1940. Use LONG_LONG macro.
  1941. * io.c (sys_pread, sys_pwrite, sys_sendfile): Likewise.
  1942. * linux/x86_64/syscallent.h: Fix botched table entries.
  1943. From Ulrich Drepper <drepper@redhat.com>.
  1944. * mem.c [LINUX] (sys_mbind, sys_set_mempolicy, sys_get_mempolicy):
  1945. New functions.
  1946. * linux/syscall.h: Declare them.
  1947. * linux/x86_64/syscallent.h: Likewise.
  1948. From Ulrich Drepper <drepper@redhat.com>.
  1949. * linux/syscallent.h: Handle mbind, set_mempolicy, get_mempolicy.
  1950. From Ulrich Drepper <drepper@redhat.com>.
  1951. * file.c [LINUX && (I386 || X86_64)] (sys_fadvise64, sys_fadvise64_64):
  1952. New functions.
  1953. * linux/syscall.h: Declare them.
  1954. * linux/syscallent.h: Handle fadvise64 and fadvise64_64 using those.
  1955. * linux/x86_64/syscallent.h: Likewise.
  1956. From Ulrich Drepper <drepper@redhat.com>.
  1957. 2004-09-13 Dmitry V. Levin <ldv@altlinux.org>
  1958. * linux/ioctlsort.c (main): Omit duplicate lines
  1959. (with same name and code) from output.
  1960. * linux/ioctlent.sh: Build the list of ioctls defined in
  1961. scsi/sg.h (0x22..), scsi/scsi.h and scsi/scsi_ioctl.h (0x53..),
  1962. as suggested by Peter Jones <pjones@redhat.com>
  1963. * linux/ioctlent.h: Regenerated.
  1964. Fixes RH#129808.
  1965. 2004-09-13 Ulrich Drepper <drepper@redhat.com>
  1966. Dmitry V. Levin <ldv@altlinux.org>
  1967. * time.c [LINUX] (print_rtc): New function, for printing rtc_time
  1968. structure.
  1969. [LINUX] (rtc_ioctl): New function, for parsing RTC_* ioctls.
  1970. * ioctl.c [LINUX] (ioctl_decode): Call rtc_ioctl.
  1971. * defs.h [LINUX]: Declare rtc_ioctl.
  1972. Fixes RH#58606.
  1973. 2004-10-06 Roland McGrath <roland@redhat.com>
  1974. * desc.c [LINUX] (sys_epoll_create, sys_epoll_ctl, sys_epoll_wait):
  1975. New functions.
  1976. * linux/syscall.h: Declare them.
  1977. * linux/syscallent.h: Use those for epoll_* syscalls.
  1978. * linux/alpha/syscallent.h: Likewise.
  1979. * linux/hppa/syscallent.h: Likewise.
  1980. * linux/ia64/syscallent.h: Likewise.
  1981. * linux/powerpc/syscallent.h: Likewise.
  1982. * linux/s390/syscallent.h: Likewise.
  1983. * linux/s390x/syscallent.h: Likewise.
  1984. * linux/sparc/syscallent.h: Likewise.
  1985. * linux/sparc64/syscallent.h: Likewise.
  1986. * linux/sparc64/syscallent2.h: Likewise.
  1987. * linux/x86_64/syscallent.h: Likewise.
  1988. From Ulrich Drepper <drepper@redhat.com>.
  1989. Fixes RH#134463.
  1990. * resource.c (resources): Add RLIMIT_LOCKS, RLIMIT_SIGPENDING,
  1991. and RLIMIT_MSGQUEUE, if defined.
  1992. From Ulrich Drepper <drepper@redhat.com>.
  1993. Fixes RH#133594.
  1994. * net.c [HAVE_SENDMSG] (printcmsghdr): New function.
  1995. (printmsghdr): Use it.
  1996. From Ulrich Drepper <drepper@redhat.com>.
  1997. Fixes RH#131689.
  1998. * file.c (sprintmode): Add const to return type.
  1999. (sprintfstype): Likewise.
  2000. * signal.c (printsiginfo): Add a const.
  2001. 2004-09-15 Roland McGrath <roland@redhat.com>
  2002. * linux/x86_64/syscallent.h: Use sys_waitid.
  2003. * linux/syscallent.h: waitid takes 5 arguments, and is in TP category.
  2004. * process.c (sys_waitid): Handle fifth argument (struct rusage *).
  2005. 2004-09-11 Roland McGrath <roland@redhat.com>
  2006. * time.c (sys_clock_nanosleep): Print zero flags arg correctly.
  2007. (sys_timer_settime): Likewise.
  2008. (printsigevent): Print signals by name for SIGEV_SIGNAL.
  2009. (sys_timer_create): Print clock ID symbolically.
  2010. From Ulrich Drepper <drepper@redhat.com>.
  2011. Fixes RH#131420.
  2012. 2004-09-07 Michal Ludvig <mludvig@suse.cz>
  2013. * defs.h (nioctlents1, nsignals2): Fix typos in decls.
  2014. 2004-09-03 Roland McGrath <roland@redhat.com>
  2015. * syscall.c (qual_options): Add const to defn.
  2016. Update all uses.
  2017. (call_count, error_count, tv_count): Variables removed.
  2018. (struct call_counts, counts): New type and variable.
  2019. Update all users of the old three to use the new array of structs.
  2020. (trace_syscall): Allocate counts on first use.
  2021. (sorted_count): Variable removed.
  2022. (call_summary): Allocate locally.
  2023. * syscall.c (sysent0, sysent1, sysent2, sysent): Add const to defn.
  2024. (nsyscalls0, nsyscalls1, nsyscalls2): Likewise.
  2025. (errnoent0, errnoent1, errnoent2, errnoent): Likewise.
  2026. (nerrnos0, nerrnos1, nerrnos2): Likewise.
  2027. * signal.c (signalent0, signalent1, signalent2): Likewise.
  2028. (nsignals0, nsignals1, nsignals2): Likewise.
  2029. (signame): LIkewise.
  2030. * ioctl.c (ioctlent0, ioctlent1, ioctlent2): Likewise.
  2031. (nioctlents0, nioctlents1, nioctlents2): Likewise.
  2032. (ioctl_lookup, ioctl_next_match): Likewise.
  2033. * defs.h: Update decls.
  2034. * io.c (sys_ioctl): Update users.
  2035. * util.c (xlookup, printxval, addflags, printflags): Use const for
  2036. struct xlat * argument.
  2037. * defs.h (xlookup, printxval, addflags, printflags): Update decls.
  2038. * bjm.c: Add const to all struct xlat defns.
  2039. * desc.c: Likewise.
  2040. * file.c: Likewise.
  2041. * ipc.c: Likewise.
  2042. * mem.c: Likewise.
  2043. * net.c: Likewise.
  2044. * proc.c: Likewise.
  2045. * process.c: Likewise.
  2046. * resource.c: Likewise.
  2047. * signal.c: Likewise.
  2048. * sock.c: Likewise.
  2049. * stream.c: Likewise.
  2050. * system.c: Likewise.
  2051. * term.c: Likewise.
  2052. * time.c: Likewise.
  2053. * util.c: Likewise.
  2054. 2004-09-01 Roland McGrath <roland@redhat.com>
  2055. * linux/x86_64/syscallent.h: Add new entries for timer_*, clock_*, and
  2056. mq_* syscalls, and names only for new calls up to 252.
  2057. * linux/syscallent.h: Add waitid.
  2058. * linux/x86_64/syscallent.h: Likewise.
  2059. * linux/syscall.h: Declare sys_waitid.
  2060. * process.c (internal_wait): Take second arg giving index of flags
  2061. argument.
  2062. * defs.h: Update prototype.
  2063. * syscall.c (internal_syscall): Update caller.
  2064. Also use internal_wait for SYS_waitid.
  2065. * process.c (sys_waitid): Define for [LINUX] as well.
  2066. Don't tweak TCB_SUSPENDED--internal_wait does that.
  2067. (waitid_types): Conditionalize use of nonstandard P_* macros.
  2068. 2004-08-31 Roland McGrath <roland@redhat.com>
  2069. * configure.ac, NEWS: Version 4.5.7.
  2070. * debian/changelog: 4.5.7-1.
  2071. * strace.spec: 4.5.7-2.
  2072. * debian/rules: Rewrite sparc64 change of 2004-07-12.
  2073. Always do each build in a separate build directory.
  2074. Fixes Debian bug #254728.
  2075. * time.c (clocknames): Use #ifdef around CLOCK_* uses.
  2076. * strace.1: Say that -c shows system CPU time, not real time.
  2077. Fixes Debian bug #254438.
  2078. * syscall.c (dumpio): Match pread and pwrite system calls too.
  2079. Fixes Debian bug #239947.
  2080. * net.c (sockoptions): Add all SO_* macros known in Linux 2.6.9.
  2081. Fixes Debian bug #171653.
  2082. 2004-07-12 Dmitry V. Levin <ldv@altlinux.org>
  2083. * signal.c [LINUX] (parse_sigset_t): Fix hex strings parser.
  2084. Fixes RH#128091.
  2085. 2004-08-30 Roland McGrath <roland@redhat.com>
  2086. * strace.c (main): Don't call fake_execve under -c.
  2087. From Ulrich Drepper <drepper@redhat.com>.
  2088. Fixes RH#129166.
  2089. * net.c (sockipoptions): Add some options.
  2090. [SOL_IPV6] (sockipv6options): New variable.
  2091. (sys_getsockopt, printsockopt): Use it for SOL_IPV6 level.
  2092. From Ulrich Drepper <drepper@redhat.com>.
  2093. Fixes RH#128391.
  2094. * time.c (clocknames): New variable, symbolic names for clock_t.
  2095. (sys_clock_settime, sys_clock_gettime, sys_clock_nanosleep): Use it.
  2096. From Ulrich Drepper <drepper@redhat.com>.
  2097. Fixes RH#129378.
  2098. * system.c (personality_options): Hard-code values here.
  2099. Don't #include <linux/personality.h> at all.
  2100. Fixes RH#130965 and Debian bug #40588.
  2101. * file.c (print_xattr_val): New function to show attribute values.
  2102. (sys_setxattr, sys_fsetxattr, sys_getxattr, sys_fgetxattr): Use it.
  2103. From Ulrich Drepper <drepper@redhat.com>.
  2104. Fixes RH#131177.
  2105. 2004-07-12 Roland McGrath <roland@redhat.com>
  2106. * configure.ac, NEWS: Version 4.5.6.
  2107. * strace.spec, debian/changelog: 4.5.6-1.
  2108. * Makefile.am (EXTRA_DIST): Add linux/sparc64 files.
  2109. * debian/rules: On sparc-linux, build strace64 as well.
  2110. From Ben Collins <bcollins@debian.org>.
  2111. Fixes Debian bug #254728.
  2112. 2004-07-07 David S. Miller <davem@nuts.davemloft.net>
  2113. * linux/sparc/syscallent.h: Sync with reality.
  2114. * linux/sparc/syscall.h (sys_sendfile64, sys_futex, sys_gettid,
  2115. sys_sched_setaffinity, sys_sched_getaffinity, sys_setxattr,
  2116. sys_lsetxattr, sys_fsetxattr, sys_getxattr, sys_lgetxattr,
  2117. sys_fgetxattr, sys_listxattr, sys_llistxattr, sys_flistxattr,
  2118. sys_removexattr, sys_lremovexattr, sys_fremovexattr,
  2119. sys_remap_file_pages, sys_readahead, sys_tgkill, sys_statfs64,
  2120. sys_fstatfs64, sys_clock_settime, sys_clock_gettime,
  2121. sys_clock_getres, sys_clock_nanosleep, sys_timer_create,
  2122. sys_timer_settime, sys_timer_gettime): New declarations.
  2123. * linux/sparc64/dummy2.h, linux/sparc64/syscallent2.h,
  2124. linux/sparc64/syscall.h, linux/sparc64/errnoent.h,
  2125. linux/sparc64/errnoent1.h, linux/sparc64/errnoent2.h,
  2126. linux/sparc64/ioctlent.h, linux/sparc64/ioctlent1.h,
  2127. linux/sparc64/ioctlent2.h, linux/sparc64/signalent.h,
  2128. linux/sparc64/signalent.h, linux/sparc64/signalent.h,
  2129. linux/sparc64/signalent1.h, linux/sparc64/signalent2.h,
  2130. linux/sparc64/syscall1.h, linux/sparc64/syscallent.h,
  2131. linux/sparc64/syscallent1.h: New files.
  2132. * defs.h (LINUXSPARC): Define also when SPARC64.
  2133. (LINUX && SPARC64): Set SUPPORTED_PERSONALITIES to 3.
  2134. Ignore SIGTRAP after execve by defining TCB_WAITEXECVE.
  2135. Define possibly missing __NR_exit_group. Declare getrval2.
  2136. * configure.ac (sparc64): New architecture case.
  2137. * file.c (stat_sparc64): New structure.
  2138. (printstat_sparc64): New output routine for that.
  2139. (printstat): Call it, if personality is 2.
  2140. (printstat64): Likewise.
  2141. * util.c: Conditionalize ptrace defines on LINUXSPARC
  2142. not LINUX && SPARC.
  2143. (SPARC64 && LINUX): Define r_pc to r_tpc, and PTRACE_FOOREGS
  2144. to PTRACE_FOOREGS64 so that more sparc code can be shared
  2145. between 64-bit and 32-bit.
  2146. (_hack_syscall5): Correct trap number when SPARC64.
  2147. (PTRACE_WRITE{TEXT,DATA}): Add SPARC64 to ifdef guard.
  2148. (getpc): Handle SPARC64 && LINUX.
  2149. (printcall): Likewise.
  2150. (arg fetching/setting): Use same code for SPARC64 LINUX
  2151. as for SPARC.
  2152. (setbpt): Handle SPARC64 && LINUX.
  2153. (clearbpt): Likewise.
  2154. * signal.c: Conditionalize ptrace defines on SPARC and
  2155. SPARC64.
  2156. (SPARC64 && LINUX): Define r_pc to r_tpc, and PTRACE_FOOREGS
  2157. to PTRACE_FOOREGS64 so that more sparc code can be shared
  2158. between 64-bit and 32-bit.
  2159. (m_siginfo): Use same definition on SPARC64 as SPARC.
  2160. (sys_sigreturn): Handle LINUX && SPARC64.
  2161. * syscall.c: Conditionalize ptrace defines on SPARC and
  2162. SPARC64.
  2163. (SPARC64 && LINUX): Define r_pc to r_tpc, and PTRACE_FOOREGS
  2164. to PTRACE_FOOREGS64 so that more sparc code can be shared
  2165. between 64-bit and 32-bit.
  2166. (getscno): Use same static state on SPARC64 as SPARC,
  2167. and add SPARC64 handling.
  2168. (get_error): Handle LINUX && SPARC64.
  2169. (force_result): Likewise.
  2170. (syscall_enter): Likewise.
  2171. (trace_syscall): Handle sys_socketcall and sys_ipc on SPARC64
  2172. just like SPARC.
  2173. (getrval2): Handle LINUX && SPARC64.
  2174. * process.c: Conditionalize ptrace defines on SPARC and
  2175. SPARC64.
  2176. (SPARC64 && LINUX): Define r_pc to r_tpc, and PTRACE_FOOREGS
  2177. to PTRACE_FOOREGS64 so that more sparc code can be shared
  2178. between 64-bit and 32-bit.
  2179. (change_syscall): Handle LINUX && SPARC64.
  2180. (struct_user_offsets): Ifdef out those which do not exist
  2181. on SPARC64.
  2182. * net.c (sys_pipe): Handle LINUX && SPARC64.
  2183. * ioctl.c: Fix initializer typo for nioctlents2, was
  2184. nioctlents1 by accident.
  2185. 2004-06-28 Andreas Schwab <schwab@suse.de>
  2186. * process.c (internal_exec): Move TCB_WAITEXECVE handling here.
  2187. (sys_execve): Remove it here.
  2188. 2004-07-12 Roland McGrath <roland@redhat.com>
  2189. * Makefile.am (EXTRA_DIST): Add linux/sh64/syscallent.h.
  2190. * debian/control (Section): Move to utils, matching Debian override.
  2191. * net.c (addrfams): Make variable global.
  2192. * sock.c (sock_ioctl): Decode the arguments for SIOCGIFNAME,
  2193. SIOCGIFINDEX, and SIOCGIFCONF.
  2194. From Ulrich Drepper <drepper@redhat.com>.
  2195. Fixes RH#126917.
  2196. * linux/ioctlsort.c: Add some #includes.
  2197. [POWERPC]: Kludge out high bits.
  2198. * linux/ia64/ioctlent.h: Regenerated using RHEL3 headers.
  2199. * linux/powerpc/ioctlent.h: Likewise.
  2200. 2004-07-11 Roland McGrath <roland@redhat.com>
  2201. * linux/ioctlent.sh: Replace asm with $asm in all places.
  2202. * configure.ac: Add I386 as AM_CONDITIONAL.
  2203. * Makefile.am [LINUX]: Add maintainer-mode rules to regenerate
  2204. the ioctlent.h file.
  2205. 2004-07-08 Roland McGrath <roland@redhat.com>
  2206. * resource.c (sys_quotactl): Truncate first argument to 32 bits, since
  2207. that's what the kernel will do.
  2208. 2004-07-07 Roland McGrath <roland@redhat.com>
  2209. * linux/ioctlent.sh: Take optional second argument to use as directory
  2210. name in place of `asm'.
  2211. 2004-06-27 Roland McGrath <roland@redhat.com>
  2212. * configure.ac, NEWS: Version 4.5.5.
  2213. * strace.spec, debian/changelog: 4.5.5-1.
  2214. 2004-06-22 Roland McGrath <roland@redhat.com>
  2215. * syscall.c (syscall_fixup) [LINUX && X86_64]: For 32-bit process,
  2216. sign extend the low 32 bits of RAX to 64 bits.
  2217. Fixes RH#126547.
  2218. * syscall.c (force_result): [LINUX && X86_64]: Fix RAX*4 -> RAX*8.
  2219. 2004-06-03 Roland McGrath <roland@redhat.com>
  2220. * configure.ac, NEWS: Version 4.5.4.
  2221. * strace.spec, debian/changelog: 4.5.4-1.
  2222. * net.c (domains): Add many PF_* values #ifdef PF_*.
  2223. (addrfams): Add many AF_* values #ifdef AF_*.
  2224. Fixes Debian bug #250506.
  2225. 2004-05-02 Dmitry V. Levin <ldv@altlinux.org>
  2226. * linux/ioctlsort.c (compare): When ioctl codes equal, compare
  2227. names.
  2228. (main): Print a note that program output is generated by
  2229. ioctlsort.
  2230. * linux/ioctlent.sh: Build the list of ioctls defined in
  2231. linux/fb.h (0x46..), linux/kd.h (0x4B..), linux/cdrom.h (0x53..),
  2232. asm/ioctls.h (0x54..), linux/vt.h (0x56..), linux/videotext.h
  2233. (0x71..), linux/videotext.h (0x72..), asm/sockios.h (0x89..),
  2234. linux/sockios.h (0x89..), linux/wireless.h (0x8B..).
  2235. * linux/ioctlent.h: Regenerated from linux-2.6.5.
  2236. Fixes RH#122257.
  2237. 2004-06-03 Roland McGrath <roland@redhat.com>
  2238. * debian/control (Architecture): Add amd64.
  2239. Fixes Debian bug #246568.
  2240. * strace.c (main) [LINUX]: Expand TCBTAB as necessary for threads
  2241. attached. Attach threads only under -f. Set TCB_FOLLOWFORK in them.
  2242. (expand_tcbtab): New function, broken out of ...
  2243. * process.c (fork_tcb): ... here, call that.
  2244. * defs.h: Declare expand_tcbtab.
  2245. 2004-04-19 Roland McGrath <roland@redhat.com>
  2246. * process.c (printstatus): Add a space before | in output.
  2247. 2004-04-16 Roland McGrath <roland@redhat.com>
  2248. * configure.ac: Version 4.5.3.
  2249. * strace.spec, debian/changelog: 4.5.3-1.
  2250. 2004-03-18 Dmitry V. Levin <ldv@altlinux.org>
  2251. * resource.c (sys_quotactl) [LINUX]: Cast arithmetic shift operand
  2252. from long to unsigned long, to fix output of the quotactl command
  2253. parser.
  2254. Fixes RH#118694.
  2255. 2004-04-16 Roland McGrath <roland@redhat.com>
  2256. * linux/s390/ioctlent.h, linux/s390x/ioctlent.h: Update DASD ioctls.
  2257. From Maxim Shchetynin <maxim@de.ibm.com>.
  2258. * configure.ac: Check for <mqueue.h>.
  2259. * ipc.c (sys_mq_open, printmqattr) [! HAVE_MQUEUE_H]: Don't try to
  2260. decode struct mq_attr.
  2261. * NEWS: Mention mq support.
  2262. * linux/syscall.h: Support new mq_* syscalls on Linux.
  2263. * linux/syscallent.h: Likewise.
  2264. * linux/dummy.h: Likewise.
  2265. * ipc.c: Likewise.
  2266. * time.c (printsigevent): Handle SIGEV_THREAD.
  2267. From Ulrich Drepper <drepper@redhat.com>.
  2268. Fixes RH#120701.
  2269. 2004-04-13 Roland McGrath <roland@redhat.com>
  2270. * net.c (msg_flags): Grok MSG_FIX, MSG_SYN, MSG_RST, MSG_NOSIGNAL,
  2271. MSG_MORE.
  2272. From Ulrich Drepper <drepper@redhat.com>.
  2273. Fixes RH#120541.
  2274. * process.c (printstatus): Mask out bits presented symbolically, and
  2275. print "| 0xnnn" if the remaining bits are not all zero.
  2276. Fixes Debian bug #240062.
  2277. * process.c (print_affinitylist): Rewritten to handle indirect values.
  2278. (sys_sched_setaffinity, sys_sched_getaffinity): Update callers.
  2279. From Ulrich Drepper <drepper@redhat.com>.
  2280. Fixes RH#118685.
  2281. * acinclude.m4: Quote first argument to AC_DEFUN in all cases.
  2282. 2004-04-08 Roland McGrath <roland@redhat.com>
  2283. * strace.c (main) [LINUX]: When attaching for -p, look in
  2284. /proc/PID/task for all threads and attach them as presumed
  2285. CLONE_THREAD children.
  2286. * NEWS: Mention the feature.
  2287. Fixes RH#120462.
  2288. 2004-03-02 Roland McGrath <roland@redhat.com>
  2289. * util.c (setbpt): Fix one missed spot to use new arg0_index macro.
  2290. From Michael Holzheu <HOLZHEU@de.ibm.com>.
  2291. * debian/control (Standards-Version): Update to 3.6.1.
  2292. 2004-03-01 Roland McGrath <roland@redhat.com>
  2293. * configure.ac, NEWS: Version 4.5.2.
  2294. * strace.spec, debian/changelog: 4.5.2-1.
  2295. * strace.c (main): Avoid potential buffer overruns from ludicrous
  2296. arguments or PATH values.
  2297. * syscall.c (qual_signal): Bail out for too-long string.
  2298. * mem.c [LINUX]: <asm/mman.h> -> <linux/mman.h>
  2299. Fixes Debian bug #223207.
  2300. * linux/sparc/syscall.h: Copy linux/syscall.h decls of sys_sched_*.
  2301. * configure.ac: Check for `struct user_desc' in <asm/ldt.h>.
  2302. * process.c [HAVE_STRUCT_USER_DESC]: Use struct user_desc in place of
  2303. struct modify_ldt_ldt_s.
  2304. * mem.c [HAVE_STRUCT_USER_DESC]: Likewise.
  2305. * system.c (sysctl_vm): Conditionalize VM_* macro uses, add some more.
  2306. From Tim Yamin <plasmaroo@gentoo.org>.
  2307. * process.c (sys_execve): Clear instead of set TCB_WAITEXECVE on
  2308. erring syscall.
  2309. * configure.ac: Check for `struct pt_all_user_regs'
  2310. and `struct ia64_fpreg' in <sys/ptrace.h>.
  2311. * util.c, process.c, syscall.c, signal.c: Work around conflicts between
  2312. <sys/ptrace.h> and <linux/ptrace.h> for defining those types.
  2313. * process.c (struct_user_offsets) [LINUX && IA64]: Conditionalize
  2314. PT_AR_CSD and PT_AR_SSD uses in case of older kernel headers.
  2315. * util.c [LINUX] (arg0_index, arg1_index): New macros.
  2316. [S390 || S390X]: Define them with inverted values.
  2317. (setbpt): Use them for u_arg indices.
  2318. 2004-02-26 Andreas Schwab <schwab@suse.de>
  2319. * defs.h [LINUX && IA64]: Declare getrval2 also on IA64.
  2320. * net.c (sys_pipe) [LINUX && IA64]: For IA64 use the two return values.
  2321. * syscall.c (getrval2) [LINUX && IA64]: Implement for IA64.
  2322. 2004-03-01 Roland McGrath <roland@redhat.com>
  2323. * linux/dummy.h (sys_sched_getscheduler, sys_sched_setparam,
  2324. sys_sched_getparam, sys_sched_setscheduler, sys_sched_getscheduler,
  2325. sys_sched_get_priority_max, sys_sched_get_priority_min): Remove macros.
  2326. * process.c [LINUX] (sys_sched_getscheduler, sys_sched_setparam,
  2327. sys_sched_getparam, sys_sched_setscheduler, sys_sched_getscheduler,
  2328. sys_sched_get_priority_min): New functions.
  2329. From Ulrich Drepper <drepper@redhat.com>.
  2330. Fixes RH#116990.
  2331. 2004-02-20 Roland McGrath <roland@redhat.com>
  2332. * linux/hppa/syscallent.h: Update some syscalls.
  2333. From Randolph Chung <tausq@debian.org>.
  2334. Fixes Debian bug #231632.
  2335. 2003-12-31 David Mosberger <davidm@hpl.hp.com>
  2336. * process.c (internal_exit): For ia64, also recognize IA-32 252
  2337. as exit_group().
  2338. (change_syscall): For IA64, also support changing IA-32 syscalls.
  2339. * syscall.c (internal_syscall): For IA64, also recognize IA-32
  2340. syscall 252 (exit_group) as an internal_exit() syscall.
  2341. * util.c (SYS_fork): For IA64, define them to the IA-32 syscall
  2342. number.
  2343. (SYS_vfork): Likewise.
  2344. (arg_setup): For IA64 version, also support IA-32 syscalls.
  2345. (get_arg0): Likewise.
  2346. (get_arg1): Likewise.
  2347. (set_arg0): Likewise.
  2348. (set_arg1): Likewise.
  2349. 2004-02-15 Anton Blanchard <anton@samba.org>
  2350. * linux/powerpc/syscallent.h: Add rtas call.
  2351. Shift multiplexed syscalls to start at 300, we are already about
  2352. to hit 256 real syscalls.
  2353. * linux/syscall.h: SYS_socket_subcall is now 300 for [POWERPC].
  2354. 2004-02-19 Roland McGrath <roland@redhat.com>
  2355. * strace.c (main): Use TCP->pid, not PID, in -p message.
  2356. Fixes Debian bug #229802.
  2357. 2004-01-13 Roland McGrath <roland@redhat.com>
  2358. * syscall.c (force_result) [LINUX] [S390 || S390X]: Remove bogus upeek
  2359. call.
  2360. * stream.c (internal_stream_ioctl): Fix typo strict -> struct.
  2361. Reported by Petter Reinholdtsen <pere@hungry.com>.
  2362. 2003-12-31 David Mosberger <davidm@hpl.hp.com>
  2363. * process.c (struct_user_offsets) [IA64]: Fix up register name list.
  2364. 2003-12-14 Anton Blanchard <anton@samba.org>
  2365. * file.c (sys_getdents64): Don't cast d_ino and d_off to unsigned long.
  2366. Use %llu formats for them.
  2367. * file.c [LINUX] (fsmagic): Add SYSFS_MAGIC.
  2368. * linux/powerpc/syscallent.h: Update to include recently added
  2369. syscalls.
  2370. * syscall.c (get_error) [POWERPC]: Cast result to unsigned long for
  2371. ppc64, we were misreporting syscalls that really succeeded as having
  2372. failed.
  2373. 2004-01-13 Roland McGrath <roland@redhat.com>
  2374. * strace.1: Remove comment about vfork on Linux.
  2375. Fixes Debian bug #223390.
  2376. * file.c (direnttypes): Define under [LINUX] as well. Add DT_UNKNOWN.
  2377. (sys_getdents64) [LINUX]: Print d_type field.
  2378. 2003-12-15 Dmitry V. Levin <ldv@altlinux.org>
  2379. * strace.c (trace) [WCOREDUMP]: Show coredump status of the
  2380. killed process if available. Fixes RH#112117.
  2381. 2003-11-13 Roland McGrath <roland@redhat.com>
  2382. * configure.ac, NEWS: Version 4.5.1.
  2383. * strace.spec, debian/changelog: 4.5.1-1.
  2384. 2003-09-06 Dmitry V. Levin <ldv@altlinux.org>
  2385. * defs.h (ioctl_lookup): Prototype change.
  2386. * ioctl.c (ioctl_next_match): New function.
  2387. * defs.h: Declare it.
  2388. * io.c (sys_ioctl): Use it, to display all possible ioctl names
  2389. when there's more than one match.
  2390. * ioctl.c (ioctl_lookup): Likewise.
  2391. * stream.c (internal_stream_ioctl): Likewise.
  2392. Patch from Solar Designer <solar@openwall.com>.
  2393. 2003-11-13 Roland McGrath <roland@redhat.com>
  2394. * linux/sh/syscallent.h: Use sys_setgroups32, sys_getgroups32.
  2395. * linux/sh64/syscallent.h: Likewise.
  2396. 2003-09-06 Dmitry V. Levin <ldv@altlinux.org>
  2397. Fixes for RH#105359.
  2398. * util.c (printuid): New function.
  2399. * defs.h: Declare it.
  2400. * file.c (sys_chown): Use it.
  2401. * file.c (sys_fchown): Likewise.
  2402. * process.c (sys_setreuid, sys_setregid, sys_setresuid,
  2403. sys_setresgid): Likewise.
  2404. * linux/syscallent.h: Better handle getgid32, geteuid32, getegid32,
  2405. setreuid32, setregid32, getgroups32, setgroups32, fchown32,
  2406. setresuid32, getresuid32, setresgid32, getresgid32, chown32,
  2407. setuid32, setgid32, setfsuid32, setfsgid32.
  2408. * process.c [LINUX]: Define GETGROUPS32_T.
  2409. * process.c [LINUX] (sys_setgroups32, sys_getgroups32):
  2410. New functions.
  2411. * linux/syscall.h (sys_setgroups32, sys_getgroups32):
  2412. Declare them.
  2413. 2003-11-11 Roland McGrath <roland@redhat.com>
  2414. * strace.c (main): Bail with usage error for missing command before we
  2415. open the -o file or fiddle uids.
  2416. 2003-11-06 Roland McGrath <roland@redhat.com>
  2417. * strace.c (main): Treat piped output more like file output.
  2418. Disallow -ff with piped output. Fixes RH#105366.
  2419. Reported by Dmitry V. Levin <ldv@altlinux.org>
  2420. * strace.c (tprintf): Check result of vfprintf and use perror when it
  2421. fails while not writing to stderr itself. Fixes Debian bug #218762.
  2422. * net.c (printsock): Fix typo in #ifdef AF_NETLINK.
  2423. From Ulrich Drepper <drepper@redhat.com>.
  2424. 2003-11-01 Roland McGrath <roland@redhat.com>
  2425. * syscall.c (trace_syscall) [LINUX]: Calculate ONE_TICK once using
  2426. setitimer rather than hard-coding a value based on HZ.
  2427. Fixes RH#108012, reported by Florian La Roche <laroche@redhat.com>.
  2428. 2003-10-21 Roland McGrath <roland@redhat.com>
  2429. * strace.1: Fixed a few spelling errors.
  2430. Fixes Debian bug #217008.
  2431. * syscall.c: Revert last change, was broken.
  2432. 2003-10-01 Roland McGrath <roland@redhat.com>
  2433. * process.c (internal_clone): Don't suspend parent when call requested
  2434. a specific PID that is not a traced child.
  2435. * signal.c [LINUX] (parse_sigset_t): Rewrite to process hex strings
  2436. from right to left so we don't have to presume the size.
  2437. Reported by David Woodhouse <dwmw2@redhat.com>.
  2438. 2003-09-25 Roland McGrath <roland@redhat.com>
  2439. * mem.c (mmap_prot) [PROT_SEM, PROT_GROWSDOWN, PROT_GROWSUP]: Include
  2440. these in the table if they are defined.
  2441. 2003-09-24 Roland McGrath <roland@redhat.com>
  2442. * configure.ac, NEWS: Version 4.5.
  2443. * strace.spec, debian/changelog: 4.5-1.
  2444. * syscall.c (get_scno) [LINUX] [S390 || S390X]: Bail out of
  2445. instruction decoding branch if TCB_INSYSCALL is clear.
  2446. Reported by <jochen@penguin-breeder.org>.
  2447. * linux/ioctlent.h: Swap order of overloaded TC* and SNDCTL_* values.
  2448. 2003-09-23 Roland McGrath <roland@redhat.com>
  2449. * strace.spec: On ppc64 (maybe others later), create an strace64
  2450. package as well containing just /usr/bin/strace64.
  2451. * signal.c (sprintsigmask): Print RT_%u for __SIGRTMIN..__SIGRTMAX.
  2452. Fixes RH#104365.
  2453. 2003-08-21 Roland McGrath <roland@redhat.com>
  2454. * linux/syscallent.h: Fix mlock argument count. Fixes RH#101499.
  2455. * linux/x86_64/syscallent.h: Likewise.
  2456. * linux/s390/syscallent.h: Likewise.
  2457. * linux/s390x/syscallent.h: Likewise.
  2458. 2003-07-28 Daniel Jacobowitz <drow@mvista.com>
  2459. * defs.h (ALIGN64): Define for MIPS.
  2460. * io.c (PREAD_OFFSET_ARG): Define.
  2461. (sys_pread, sys_pwrite): Use it.
  2462. * process.c (struct_user_offsets) [SH]: Check whether REG_XDREG0
  2463. is defined.
  2464. * linux/sh/syscallent.h (pread, pwrite): Take six arguments.
  2465. (truncate64, ftruncate64): Pretty-print.
  2466. * linux/mips/syscallent.h (pread, pwrite): Take six arguments.
  2467. (truncate64, ftruncate64): Take four arguments.
  2468. 2003-07-17 Roland McGrath <roland@redhat.com>
  2469. * configure.ac, NEWS: Version 4.4.99.
  2470. * strace.spec, debian/changelog: 4.4.99-1.
  2471. 2003-07-15 Anton Blanchard <anton@samba.org>
  2472. * ipc.c: Add SHM_HUGETLB field.
  2473. Mask out permission bits in msgget, semget and shmget before
  2474. printing resource_flags.
  2475. Mask execute permission bits (even though we dont currently
  2476. use them).
  2477. 2003-07-17 Roland McGrath <roland@redhat.com>
  2478. * linux/powerpc/syscallent.h (tgkill): New at 250.
  2479. * linux/syscallent.h: truncate64/ftruncate64 need 3 args.
  2480. From Ulrich Drepper <drepper@redhat.com>.
  2481. * linux/syscallent.h: Handle statfs64, fstatfs64, utimes.
  2482. * file.c (printstatfs): Print f_fsid and f_frsize.
  2483. [LINUX] (printstatfs64, sys_statfs64, sys_fstatfs64): New functions.
  2484. * linux/syscall.h: Add decls.
  2485. From Ulrich Drepper <drepper@redhat.com>.
  2486. 2003-07-09 Roland McGrath <roland@redhat.com>
  2487. * linux/ia64/syscallent.h (tgkill): New at 1235.
  2488. 2003-07-05 Richard Henderson <rth@twiddle.net>
  2489. * process.c (sys_clone): Order arguments for alpha the same as x86_64.
  2490. * syscall.c (ERESTART_RESTARTBLOCK): New.
  2491. (trace_syscall): Print it.
  2492. * linux/alpha/syscallent.h (osf_syscall): Name properly.
  2493. (osf_set_program_attributes): Fix typo.
  2494. (osf_nfssvc): Likewise.
  2495. (osf_sigsendset): Likewise.
  2496. (getdents64, gettid, readahead, tkill, setxattr, lsetxattr, fsetxattr,
  2497. getxattr, lgetxattr, fgetxattr, listxattr, llistxattr, flistxattr,
  2498. removexattr, lremovexattr, fremovexattr, futex, sched_setaffinity,
  2499. sched_getaffinity, tuxcall, io_setup, io_destroy, io_getevents,
  2500. io_submit, io_cancel, exit_group, lookup_dcookie, epoll_create,
  2501. epoll_ctl, epoll_wait, remap_file_pages, set_tid_address,
  2502. restart_syscall, fadvise, timer_create, timer_settime, timer_gettime,
  2503. timer_getoverrun, timer_delete, clock_settime, clock_gettime,
  2504. clock_getres, clock_nanosleep, semtimedop): New.
  2505. 2003-07-08 Roland McGrath <roland@redhat.com>
  2506. * signal.c (sys_tgkill): New function.
  2507. * linux/syscall.h: Declare it.
  2508. * linux/syscallent.h: Add tgkill.
  2509. 2003-06-27 Roland McGrath <roland@redhat.com>
  2510. * configure.ac: Check for type `struct __old_kernel_stat'.
  2511. * file.c (convertoldstat, printoldstat): Define under
  2512. [LINUX && HAVE_STRUCT___OLD_KERNEL_STAT] rather than a list of archs.
  2513. (sys_oldstat, sys_oldfstat, sys_oldlstat): Likewise.
  2514. * linux/dummy.h [! HAVE_STRUCT___OLD_KERNEL_STAT]
  2515. (sys_oldstat, sys_oldfstat, sys_oldlstat): #define to printargs.
  2516. 2003-06-26 Roland McGrath <roland@redhat.com>
  2517. * configure.ac: SHMEDIA -> SH64
  2518. * defs.h: Likewise.
  2519. * mem.c: Likewise.
  2520. * process.c: Likewise.
  2521. * sock.c: Likewise.
  2522. * syscall.c: Likewise.
  2523. * util.c: Likewise.
  2524. * linux/shmedia/syscallent.h: Moved to ...
  2525. * linux/sh64/syscallent.h: ... here.
  2526. * config.guess: Update from canonical version, timestamp 2003-06-17.
  2527. * config.sub: Likewise.
  2528. * syscall.c (force_result) [LINUX] [ARM]: Fix variable usage.
  2529. From: Joshua Neal <tinara@netpipeline.net>.
  2530. * process.c [LINUX] (sys_futex): Grok FUTEX_REQUEUE and print 5th arg.
  2531. * linux/syscallent.h: sys_futex argument count is now 5, not 4.
  2532. * linux/ia64/syscallent.h: Likewise.
  2533. * linux/powerpc/syscallent.h: Likewise.
  2534. * linux/s390/syscallent.h: Likewise.
  2535. * linux/s390x/syscallent.h: Likewise.
  2536. * linux/x86_64/syscallent.h: Likewise.
  2537. From Jakub Jelinek <jakub@redhat.com>.
  2538. * syscall.c (get_scno) [S390 || S390X]: Fix old vs new mode detection.
  2539. From Michael Holzheu <HOLZHEU@de.ibm.com>.
  2540. 2003-06-23 Roland McGrath <roland@redhat.com>
  2541. * net.c (sys_socket): Decode protocol for PF_INET6 same as PF_INET.
  2542. From Ulrich Drepper <drepper@redhat.com>.
  2543. 2003-06-10 Roland McGrath <roland@redhat.com>
  2544. * configure.ac, NEWS: Version 4.4.98.
  2545. * strace.spec, debian/changelog: 4.4.98-1.
  2546. 2003-06-09 Roland McGrath <roland@redhat.com>
  2547. * linux/s390x/syscallent.h: Update many syscalls.
  2548. * linux/syscall.h (SYS_socket_subcall): Update [S390X] value.
  2549. * linux/s390/syscallent.h: Update many syscalls.
  2550. * linux/syscall.h (SYS_socket_subcall): Update [S390] value.
  2551. * linux/shmedia/syscallent.h: New file.
  2552. From Stephen Thomas <stephen.thomas@superh.com>.
  2553. * strace.c (trace): Print a message and newline for a WIFEXITED report
  2554. from the process we just printed an unterminated syscall line for.
  2555. 2003-06-03 Roland McGrath <roland@redhat.com>
  2556. * util.c (printcall) [LINUX]: Fix typo [IA62] -> [IA64].
  2557. Linux/ARM improvements from Russell King <rmk@arm.linux.org.uk>:
  2558. * defs.h [LINUX] (TCB_WAITEXECVE): Define for [ARM] too.
  2559. * process.c (struct_user_offsets) [LINUX] [ARM]: Add ARM registers.
  2560. * signal.c [LINUX] (sys_sigreturn) [ARM]: New case.
  2561. * syscall.c (get_scno, syscall_fixup) [LINUX] [ARM]: Case rewritten.
  2562. (get_error) [LINUX] [ARM]: Update.
  2563. (syscall_enter) [LINUX] [ARM]: New case.
  2564. * util.c (printcall) [LINUX] [ARM]: New case.
  2565. * debian/control (Standards-Version): Update to 3.5.10.
  2566. * strace.c (main): In PATH search, accept only a regular file with
  2567. execute bits set. Fixes Debian bug #137103.
  2568. 2003-06-02 Roland McGrath <roland@redhat.com>
  2569. * strace.c (main): Set -q when given -o and not -p, and not when not
  2570. given -o, to match what the man page always said.
  2571. Fixes Debian bug #47113, #153678.
  2572. * configure.ac, NEWS: Version 4.4.97.
  2573. * strace.spec, debian/changelog: 4.4.97-1.
  2574. * configure.ac, defs.h, mem.c, process.c, sock.c, syscall.c, util.c:
  2575. Merged in SHmedia port from Stephen Thomas <stephen.thomas@superh.com>.
  2576. * config.guess: Update from ftp://ftp.gnu.org/pub/gnu/config/,
  2577. timestamp 2003-05-22.
  2578. * config.sub: Likewise, timestamp 2003-05-24.
  2579. 2003-05-22 Roland McGrath <roland@redhat.com>
  2580. * defs.h (struct tcb): New member `nzombies'.
  2581. * strace.c (alloctcb): Initialize it.
  2582. (droptcb): Increment our parent's zombie count.
  2583. * process.c (internal_wait): Don't go into TCB_SUSPENDED if the
  2584. process has zombies it can reap. On the way out, if we reaped
  2585. an untraced process, decrement the zombie count.
  2586. * process.c (sys_clone): Mask CSIGNAL out of flags and print that
  2587. separately using signame.
  2588. * process.c (internal_clone) [TCB_CLONE_THREAD]: Use ARG_FLAGS instead
  2589. of literal 0 for index. Consult the right flags without clobbering
  2590. anything when we reparent the new child to the caller's parent thread.
  2591. * linux/s390/syscallent.h: Fix sys_clone argument count.
  2592. * linux/s390x/syscallent.h: Likewise.
  2593. * linux/mips/syscallent.h: Likewise.
  2594. * linux/alpha/syscallent.h: Likewise.
  2595. * linux/powerpc/syscallent.h: Likewise.
  2596. * linux/sh/syscallent.h: Likewise.
  2597. * linux/sparc/syscallent.h: Likewise.
  2598. * linux/hppa/syscallent.h: Likewise.
  2599. * process.c [LINUX] [S390 || S390X] (ARG_CTID, ARG_TLS): Fix swapped
  2600. indices. Reported by Jakub Jelinek <jakub@redhat.com>.
  2601. * signal.c [LINUX] (SI_SIGIO, SI_TKILL): New macros.
  2602. [LINUX || SVR4] (siginfo_codes): Add strings for them.
  2603. * process.c (print_affinitylist): Fix loop condition.
  2604. Reported by Ian Wienand <ianw@gelato.unsw.edu.au>.
  2605. 2003-04-10 Roland McGrath <roland@redhat.com>
  2606. * syscall.c (qual_desc): Return zero after parsing number.
  2607. From Rob Leslie <rob@mars.org>, fixes Debian bug #188379.
  2608. 2003-04-07 Roland McGrath <roland@redhat.com>
  2609. * linux/syscallent.h: Handle semtimedop subcall of ipc syscall.
  2610. * linux/syscall.h: Likewise.
  2611. * ipc.c [LINUX] (sys_semtimedop): New function.
  2612. From Ulrich Drepper <drepper@redhat.com>.
  2613. * ipc.c (sys_semget): Mask off permission bits for resource_flags.
  2614. From Ulrich Drepper <drepper@redhat.com>.
  2615. 2003-04-01 Philippe De Muyter <phdm@macqel.be>
  2616. * sock.c, stream.c: Check #ifdef LINUX, not linux.
  2617. * file.c: Always provide sys_*attr, regardless of #ifdef XATTR_CREATE.
  2618. 2003-03-30 Roland McGrath <roland@redhat.com>
  2619. * configure.ac, NEWS: Version 4.4.96.
  2620. * strace.spec, debian/changelog: 4.4.96-1.
  2621. 2003-02-26 Stuart Menefy <stuart.menefy@st.com>
  2622. Various fixes for SuperH [SH]:
  2623. * mem.c (sys_old_mmap): mmap() parameters passed in registers
  2624. * net.c (sys_pipe), syscall.c (getrval2): pipe() results returned
  2625. in registers
  2626. * process.c (change_syscall): Fixed register which holds system
  2627. call number
  2628. * util.c (arg0_offset, arg1_offset): provide definition
  2629. * Makefile.am: Added new files in linux/sh
  2630. * linux/sh/syscallent.h: New file.
  2631. * linux/sh/errnoent.h: New file.
  2632. * linux/sh/ioctlent.h: New file.
  2633. * linux/sh/signalent.h: New file.
  2634. * linux/ioctlent.sh: Take an arg for location of header files
  2635. * syscallent.sh: Replaced lost $
  2636. 2003-03-30 Roland McGrath <roland@redhat.com>
  2637. * time.c [LINUX]: Handle new Linux 2.5 clock/timer syscalls.
  2638. * linux/syscall.h, linux/syscallent.h, linux/dummy.h: Likewise.
  2639. From Ulrich Drepper <drepper@redhat.com>.
  2640. * linux/syscallent.h: Use sys_getrlimit for 191.
  2641. Use name "old_getrlimit" for 76.
  2642. Reported by Ulrich Drepper <drepper@redhat.com>.
  2643. 2003-03-18 Roland McGrath <roland@redhat.com>
  2644. * process.c [LINUX] (sys_clone): Don't dereference parent_tid argument.
  2645. 2003-03-17 Roland McGrath <roland@redhat.com>
  2646. * linux/x86_64/syscallent.h: clone takes 5 args.
  2647. * process.c [LINUX] (sys_clone) [X86_64]: Fix argument order.
  2648. 2003-03-15 Roland McGrath <roland@redhat.com>
  2649. * linux/x86_64/syscallent.h: Add exit_group syscall at 231.
  2650. 2003-03-14 Roland McGrath <roland@redhat.com>
  2651. * linux/x86_64/syscallent.h: Update and add many 2.5 syscalls.
  2652. * linux/ia64/syscallent.h: clone takes 5 arguments.
  2653. * process.c [LINUX && IA64] (ARG_*): Update for 2.5 clone calls.
  2654. 2003-03-12 Roland McGrath <roland@redhat.com>
  2655. * linux/ia64/syscallent.h: Fix arg counts for clone and clone2.
  2656. Use sys_clone for clone2.
  2657. * linux/syscall.h: Don't declare sys_clone2.
  2658. * process.c (sys_clone): Rewritten to handle both flavors,
  2659. print all extra args depending on flag bits.
  2660. (sys_clone2): Function removed.
  2661. * linux/ia64/syscallent.h: Add a bunch of 2.5 syscalls.
  2662. 2003-03-04 Roland McGrath <roland@redhat.com>
  2663. * syscall.c (get_scno) [IA64]: Do TCB_WAITEXECVE check only when
  2664. TCB_INSYSCALL is clear, like other platforms do.
  2665. 2003-03-04 Ulrich Drepper <drepper@redhat.com>
  2666. * mem.c [LINUX] (sys_remap_file_pages): New function.
  2667. * linux/syscall.h: Declare it.
  2668. * linux/syscallent.h: Use it.
  2669. * linux/powerpc/syscallent.h: Likewise.
  2670. * process.c [LINUX] (sys_futex): Omit final if op is not FUTEX_WAIT.
  2671. 2003-02-26 Roland McGrath <roland@redhat.com>
  2672. * configure.ac: Fix typo in netinet/in.h check.
  2673. Also include <sys/types.h> and <sys/socket.h> before <netinet/in.h>.
  2674. Reported by Alex Semenyaka <alexs@snark.rinet.ru>.
  2675. 2003-02-24 Roland McGrath <roland@redhat.com>
  2676. * configure.ac, NEWS: Version 4.4.95.
  2677. * strace.spec, debian/changelog: 4.4.95-1.
  2678. * process.c (sys_getresgid): Fix typos in argument access.
  2679. 2003-02-23 Roland McGrath <roland@redhat.com>
  2680. * process.c (sys_getresuid): Fix typos in argument access.
  2681. Reported by Anton Blanchard <anton@samba.org>.
  2682. 2003-02-19 Roland McGrath <roland@redhat.com>
  2683. * configure.ac, NEWS: Version 4.4.94.
  2684. * strace.spec, debian/changelog: 4.4.94-1.
  2685. * version.c: Removed.
  2686. * Makefile.am (strace_SOURCES): Remove it.
  2687. * strace.c: Use PACKAGE_NAME and VERSION macros instead of version var.
  2688. FreeBSD rfork support changes from Russ Cox <rsc@plan9.bell-labs.com>:
  2689. * syscall.c (internal_syscall): Handle SYS_rfork with internal_fork.
  2690. * process.c (internal_fork) [SYS_rfork]: Bail if RFPROC flag not set.
  2691. 2003-01-23 Roland McGrath <roland@redhat.com>
  2692. * signal.c: Reorder #ifdefs so HAVE_ASM_SIGCONTEXT_H doesn't matter on
  2693. SPARC, which doesn't use the header regardless.
  2694. * util.c [LINUX && SPARC]: Do renaming kludges around <asm/reg.h>
  2695. like signal.c does.
  2696. * linux/sparc/syscall.h: Declare sys_getdents64, sys_llseek.
  2697. * linux/dummy.h [! SYS_getpmsg] (sys_getpmsg): #define to printargs.
  2698. [! SYS_putpmsg] (sys_putpmsg): Likewise.
  2699. * process.c: Reorder includes to put sys/reg.h before linux/ptrace.h,
  2700. since they can conflict.
  2701. 2003-01-21 Roland McGrath <roland@redhat.com>
  2702. * strace.c (usage): Omit -z, since it has never worked properly.
  2703. * NEWS: Likewise.
  2704. * strace.c (main): Grok new option `-E var=val' or `-E var' to put
  2705. var=val in environ or to remove var, respectively.
  2706. (usage): Mention it.
  2707. * strace.1, NEWS: Document it.
  2708. * configure.ac, NEWS: Version 4.4.93.
  2709. * strace.spec, debian/changelog: 4.4.93-1.
  2710. * strace.spec (Source0): Use strace-VERSION.tar.bz2 now.
  2711. 2003-01-20 Roland McGrath <roland@redhat.com>
  2712. * defs.h [LINUX] [S390 || S390X] (TCB_WAITEXECVE): Define it.
  2713. * syscall.c (get_scno, syscall_fixup) [LINUX] [S390 || S390X]: Handle
  2714. TCB_WAITEXECVE state with special kludges.
  2715. * process.c [LINUX] (sys_clone) [S390 || S390X]: Argument order is
  2716. reversed from other architectures.
  2717. * process.c (sys_execve) [LINUX]: Make setting TCB_WAITEXECVE flag
  2718. conditional on [TCB_WAITEXECVE] instead of list of processors.
  2719. * util.c (restore_arg0): Evaluate args in no-op defns.
  2720. * util.c [S390 || S390X] (arg0_offset, arg1_offset): Fix definitions
  2721. for clone call on S390. From Michael Holzheu <holzheu@de.ibm.com>.
  2722. 2003-01-17 Anton Blanchard <anton@samba.org>
  2723. * util.c [LINUX] (setbpt): Handle SYS_vfork like SYS_fork.
  2724. * linux/syscall.h (SYS_socket_subcall): 256 also for POWERPC.
  2725. 2003-01-14 Roland McGrath <roland@redhat.com>
  2726. * linux/powerpc/errnoent.h: Add missing errnos.
  2727. * linux/powerpc/ioctlent.h: Update ioctl values.
  2728. From Anton Blanchard <anton@samba.org>.
  2729. * io.c [LINUX] (sys_pread, sys_pwrite): Fix last change.
  2730. From Anton Blanchard <anton@samba.org>.
  2731. * linux/hppa/syscallent.h: Use sys_getdents64, sys_truncate64,
  2732. sys_ftruncate64, instead of printargs, for those syscalls.
  2733. * linux/mips/syscallent.h: Likewise.
  2734. * linux/powerpc/syscallent.h: Likewise.
  2735. * linux/s390/syscallent.h: Likewise.
  2736. * linux/sparc/syscallent.h: Likewise.
  2737. * linux/syscall.h (SYS_socket_subcall): Only 256 for S390, S390X.
  2738. All others at the moment use linux/syscallent.h, where it's 300.
  2739. * strace.1: Update bug reporting info.
  2740. * resource.c [LINUX] (quotacmds): Grok new command encodings.
  2741. From Nathan Scott <nathans@debian.org>.
  2742. * configure.ac, NEWS: Version 4.4.92.
  2743. * strace.spec, debian/changelog: 4.4.92-1.
  2744. * configure.ac: Match powerpc* (includes powerpc64), and don't match
  2745. ppc (never comes out of config.sub).
  2746. * process.c (sys_ptrace): Use #lx format for address argument.
  2747. [POWERPC]: Use sizeof(unsigned long) in place of 4 for multipliers.
  2748. * process.c [POWERPC]: Likewise.
  2749. * signal.c (sys_sigreturn) [POWERPC]: Likewise.
  2750. * syscall.c (get_scno) [POWERPC]: Likewise.
  2751. * util.c [POWERPC]: Likewise.
  2752. (printnum): Use long for NUM.
  2753. From Anton Blanchard <anton@samba.org>.
  2754. * defs.h (ALIGN64): Fix defn for PPC, same as FreeBSD one.
  2755. * util.c [LINUX] (restore_arg0, restore_arg1): New macros, defined
  2756. appropriately via set_arg0 or no-ops for each architecture.
  2757. (clearbpt): Use those instead of set_arg0 and set_arg1.
  2758. * defs.h [_LARGEFILE64_SOURCE] (_LFS64_LARGEFILE): Define it.
  2759. * linux/syscallent.h: Use sys_getdents64, sys_truncate64,
  2760. sys_ftruncate64, instead of printargs, for those syscalls.
  2761. * process.c: Use <linux/ptrace.h> regardless of <sys/reg.h>.
  2762. (sys_ptrace): Use printxval.
  2763. (ptrace_cmds): Make PTRACE_GETREGS et al conditional on #ifdef PTRACE_*
  2764. instead of only #ifdef SUNOS4. Add PTRACE_[GS]ETFPXREGS.
  2765. * ipc.c (PRINTCTL): New macro. #ifdef IPC_64, factor out the flag and
  2766. print it before using printxval.
  2767. (sys_msgctl, sys_semctl, sys_shmctl): Use it.
  2768. 2003-01-13 Roland McGrath <roland@redhat.com>
  2769. * config.guess: Update from ftp://ftp.gnu.org/pub/gnu/config/,
  2770. timestamp 2003-01-10.
  2771. * config.sub: Likewise, timestamp 2003-01-03.
  2772. * install-sh: Update from Automake 1.7.2.
  2773. * linux/powerpc/signalent.h: Add SIGRTMIN.
  2774. From Anton Blanchard <anton@samba.org>.
  2775. * linux/powerpc/syscallent.h: Add missing system calls.
  2776. Decode more system calls, we were just printargs for many things.
  2777. Remove some x86-specific system calls.
  2778. Remove two syscalls between the socket and ipc syscalls,
  2779. it was resulting in all IPC syscalls being off by two.
  2780. * ioctl.c (ioctl_decode) [POWERPC]: Decode term ioctls like Alpha.
  2781. From Anton Blanchard <anton@samba.org>.
  2782. * defs.h [POWERPC] (UESP, EIP, EAX, ORIG_EAX): Remove this cruft.
  2783. [LINUX && POWERPC && !__powerpc64__] (ALIGN64): New macro.
  2784. * io.c (sys_pread, sys_pwrite): Use ALIGN64.
  2785. From Anton Blanchard <anton@samba.org>.
  2786. * term.c [LINUX]: Get kernel definition of struct termios.
  2787. From Anton Blanchard <anton@samba.org>.
  2788. * linux/ioctlent.sh: Look in sound/ directory too.
  2789. From Anton Blanchard <anton@samba.org>.
  2790. * desc.c (printflock64): Fix ADDR argument type.
  2791. From Anton Blanchard <anton@samba.org>.
  2792. * strace.c [! HAVE_STRSIGNAL]: Clean up #ifdefs on decls for
  2793. sys_siglist and _sys_siglist.
  2794. Reported by John Hughes <john@Calva.COM>.
  2795. * net.c: HAVE_OPTHDR -> HAVE_STRUCT_OPTHDR
  2796. Reported by John Hughes <john@Calva.COM>.
  2797. * linux/syscall.h [ARM] (SYS_socket_subcall): Set to 300.
  2798. 2003-01-10 Roland McGrath <roland@redhat.com>
  2799. * configure.ac, NEWS: Version 4.4.91.
  2800. * strace.spec, debian/changelog: 4.4.91-1
  2801. * util.c [LINUX && X86_64] (arg0_offset, arg1_offset): Use correct
  2802. values for x86-64, conditional on current_personality.
  2803. * strace.c (droptcb): Clear flags word before calling rebuild_pollv.
  2804. * configure.ac: Check struct T_conn_res for QUEUE_ptr or ACCEPTOR_id.
  2805. * stream.c (print_transport_message): Use #ifdefs for those members.
  2806. * strace.c (rebuild_pollv): Fix typo: struct poll -> struct pollfd.
  2807. * configure.ac: Fix siginfo_t/sig_atomic_t checks.
  2808. Use prerequisite #include <netinet/in.h> for netinet/*.h checks.
  2809. * strace.c (pfd2tcb): Fix for new tcbtab type.
  2810. (rebuild_pollv): Likewise.
  2811. (detach): Put variables used under [LINUX] inside #ifdef.
  2812. * process.c (change_syscall) [POWERPC]: Add missing return.
  2813. * util.c [POWERPC] (arg0_offset): Set to 4*PT_R3, not 4*PT_ORIG_R3.
  2814. * strace.spec: New file.
  2815. * debian/changelog: 4.4.90-1
  2816. * debian/rules (binary-arch): Depend on build.
  2817. (clean): Don't try to run Makefile.in.
  2818. * debian/control (Standards-Version): Now 3.5.8.
  2819. * configure.ac: Diddle CFLAGS after AC_PROG_CC, not before.
  2820. 2003-01-09 Roland McGrath <roland@redhat.com>
  2821. * syscall.c (force_result) [S390 || S390X]: Fix typo.
  2822. * debian/control: Update Maintainer: field.
  2823. 2003-01-08 Roland McGrath <roland@redhat.com>
  2824. * NEWS: Update for 4.4.90 test release.
  2825. Support for new Linux 2.5 thread features.
  2826. * defs.h [LINUX]: Define __NR_exit_group if not defined.
  2827. (struct tcb): New members nclone_threads, nclone_detached,
  2828. and nclone_waiting.
  2829. (TCB_CLONE_DETACHED, TCB_CLONE_THREAD, TCB_GROUP_EXITING): New macros.
  2830. (waiting_parent): Macro removed.
  2831. (pid2tcb): Declare it.
  2832. * process.c (internal_clone) [TCB_CLONE_THREAD]: Reparent the new
  2833. child to our parent if we are a CLONE_THREAD child ourselves.
  2834. Maintain TCB_CLONE_THREAD and TCB_CLONE_DETACHED flags and counts.
  2835. (internal_wait) [TCB_CLONE_THREAD]: Factor out detached children when
  2836. determining if we have any. If TCB_CLONE_THREAD is set, check
  2837. parent's children instead of our own, and bump nclone_waiting count.
  2838. (internal_exit) [__NR_exit_group]: Set the TCB_GROUP_EXITING flag if
  2839. the syscall was exit_group.
  2840. * syscall.c (internal_syscall): Use internal_exit for exit_group.
  2841. * strace.c (pid2tcb): No longer static.
  2842. (alloctcb) [TCB_CLONE_THREAD]: Initialize new fields.
  2843. (droptcb) [TCB_CLONE_THREAD]: Maintain new fields.
  2844. If we have thread children, set TCB_EXITING and don't clear the TCB.
  2845. (resume) [TCB_CLONE_THREAD]: Decrement parent's nclone_waiting.
  2846. (detach) [TCB_CLONE_THREAD]: When calling resume, check all thread
  2847. children of our parent that might be waiting for us too.
  2848. [TCB_GROUP_EXITING] (handle_group_exit): New function.
  2849. (trace) [TCB_GROUP_EXITING]: Use that in place of detach or droptcb.
  2850. Revamp -f support for Linux.
  2851. * util.c [LINUX] (setbpt, clearbpt): New implementations that tweak
  2852. the system call to be clone with CLONE_PTRACE set. Various new static
  2853. helper functions.
  2854. * process.c (internal_clone): Define also #ifdef SYS_clone2.
  2855. Initialize TCPCHILD->parent field.
  2856. [CLONE_PTRACE]: Don't do PTRACE_ATTACH here, because it's preattached.
  2857. Check in case the new child is in the tcb already.
  2858. (internal_fork) [LINUX]: Just call internal_clone.
  2859. * strace.c (trace) [LINUX]: Under -f/-F, grok an unknown pid
  2860. reporting to wait, put it in the TCB with TCB_ATTACHED|TCB_SUSPENDED.
  2861. * linux/x86_64/syscallent1.h (sys_oldlstat): #define as printargs.
  2862. * file.c [LINUX]: #undef st_[amc]time in case they are macros.
  2863. * Makefile.am (AM_CFLAGS): New variable, define to $(WARNFLAGS).
  2864. * Makefile.am (EXTRA_DIST): Remove debian/postinst and debian/prerm.
  2865. 2003-01-09 Wichert Akkerman <wichert@deephackmode.org>
  2866. * debian/postinst, debian/prerm: removed, /usr/doc symlink is no
  2867. longer used
  2868. * debian/rules: no longer install postinst and prerm
  2869. * debian/control: do not end summary with full stop (lintian)
  2870. 2002-12-30 Roland McGrath <roland@redhat.com>
  2871. * Makefile.am (bin_SCRIPTS): New variable, list strace-graph.
  2872. (EXTRA_DIST): Add missing files.
  2873. * configure.ac: Fix asm/sigcontext.h check to include prerequisite.
  2874. * syscall.c (qualify_one): New function.
  2875. (qual_options): Replace lookup field with qualify, update initializer.
  2876. (qualify): Update caller.
  2877. (qual_signal, qual_fault, qual_desc): Rewritten from lookup_*.
  2878. (qual_syscall): Rewritten lookup_syscall, match name more than once.
  2879. Fixes RH#70579, bites IA64 -efoo when foo exists on IA32.
  2880. * version.c (version): Make const, bump to 4.4.90.
  2881. * strace.c: Update decl.
  2882. * Makefile.am [LINUX && X86_64]: Remove cruft.
  2883. * linux/x86_64/errnoent1.h: New file.
  2884. * linux/x86_64/ioctlent1.h: New file.
  2885. * linux/x86_64/signalent1.h: New file.
  2886. * linux/x86_64/syscallent1.h: New file.
  2887. * linux/x86_64/i386-headers.diff: File removed.
  2888. * linux/x86_64/makeheaders.sh: File removed.
  2889. * linux/x86_64/Makefile.in: File removed.
  2890. * linux/syscallent.h [X86_64]: Disable sanity checks, subcall stuff is
  2891. already broken for 32-bit personality on x86-64.
  2892. 2002-12-29 Roland McGrath <roland@redhat.com>
  2893. * configure.ac, Makefile.am: Punt subdirs, handle everything here.
  2894. * linux/Makefile.am: File removed.
  2895. * freebsd/Makefile.am: File removed.
  2896. * sunos4/Makefile.in: File removed.
  2897. * svr4/Makefile.in: File removed.
  2898. * linux/alpha/Makefile.in: File removed.
  2899. * linux/hppa/Makefile.in: File removed.
  2900. * linux/ia64/Makefile.in: File removed.
  2901. * linux/powerpc/Makefile.in: File removed.
  2902. * linux/s390/Makefile.in: File removed.
  2903. * linux/s390x/Makefile.in: File removed.
  2904. 2002-12-26 Roland McGrath <roland@redhat.com>
  2905. * syscallent.sh: Grok three flavors of #define line, uniquify.
  2906. * linux/hppa/syscallent.sh: File removed.
  2907. * linux/powerpc/syscallent.sh: File removed.
  2908. * linux/Makefile.am: New file.
  2909. * linux/Makefile.in: File removed.
  2910. * freebsd/Makefile.am: New file.
  2911. * freebsd/i386/Makefile.am: New file.
  2912. * freebsd/i386/Makefile.in: File removed.
  2913. 2002-12-22 Roland McGrath <roland@redhat.com>
  2914. Update to Autoconf 2.57, and Automakify with version 1.7.
  2915. * Makefile.am: New file.
  2916. * Makefile.in: File removed.
  2917. * configure.in: Moved to ...
  2918. * configure.ac: ... here. Update for Autoconf 2.5x and Automake.
  2919. * aclocal.m4: Moved to ...
  2920. * acinclude.m4: ... here. Update for Autoconf 2.5x.
  2921. * acconfig.h: File removed.
  2922. * AUTHORS: New file, makes automake happy.
  2923. * autogen.sh: File removed.
  2924. * README-CVS: Update to recommend autoreconf instead.
  2925. * file.c: HAVE_ST_* -> HAVE_STRUCT_STAT_ST_*.
  2926. * net.c: HAVE_SIN6_SCOPE_ID -> HAVE_STRUCT_SOCKADDR_IN6_SIN6_SCOPE_ID,
  2927. HAVE_MSG_CONTROL -> HAVE_STRUCT_MSGHDR_MSG_CONTROL.
  2928. * strace.c: *_DECLARED -> HAVE_DECL_*
  2929. * stream.c: HAVE_* -> HAVE_STRUCT_*
  2930. * linux/Makefile.in (ioctldefs.h ioctls.h): Use $(SHELL) instead of
  2931. sh, and use $(srcdir) to find the script.
  2932. * linux/powerpc/Makefile.in (ioctlent.raw): Find ioctlent.sh in ../.
  2933. (ioctlsort.o): Use ../ioctlsort.c, not ../../ioctlsort.c.
  2934. * linux/x86_64/Makefile.in (headers): Renamed to all.
  2935. * linux/alpha/Makefile.in: Add empty install target.
  2936. * linux/x86_64/Makefile.in: Likewise.
  2937. * linux/powerpc/Makefile.in: Likewise.
  2938. * linux/Makefile.in: Likewise.
  2939. 2002-12-26 Roland McGrath <roland@redhat.com>
  2940. * defs.h [LINUX && MIPS] (MAX_QUALS): Set to 5000, not 4999.
  2941. From Daniel Jacobowitz <drow@false.org>.
  2942. 2002-12-21 Roland McGrath <roland@redhat.com>
  2943. * linux/syscallent.h: Add some new 2.5 syscall names.
  2944. Now clone takes 5 args.
  2945. * process.c [LINUX] (clone_flags): Update with 2.5 flag bits.
  2946. [LINUX] (sys_clone): Print new args.
  2947. * mem.c (print_ldt_entry): Make global.
  2948. * linux/syscall.h [I386 || IA64] (SYS_socket_subcall): Bump to 300 for
  2949. safety, since up to 260 are already used in 2.5 kernels.
  2950. * linux/syscallent.h: Update the table.
  2951. * linux/ia64/syscallent.h: Likewise.
  2952. * syscall.c (force_result): New function.
  2953. * process.c (internal_wait): Handle ECHILD exit from wait call with
  2954. WNOHANG flag set; force the return value to 0 in the inferior when it
  2955. has live children we are tracing.
  2956. * NEWS: Mention the bug fix.
  2957. 2002-12-17 Roland McGrath <roland@redhat.com>
  2958. * linux/ia64/syscallent.h: Remove placeholders 275-298 to catch up
  2959. with linux/syscallent.h additions.
  2960. * strace.c (tcbtab): Make this a pointer to pointers, not an array.
  2961. (tcbtabsize): New variable.
  2962. (main): Initialize them using dynamic allocation.
  2963. (alloctcb, main): Use tcbtabsize in place of MAX_PROCS; indirect.
  2964. (pid2tcb, cleanup): Likewise.
  2965. [USE_PROCFS] (pollv): Make this a pointer, not an array; make static.
  2966. (rebuild_pollv): Dynamically allocate the vector.
  2967. * defs.h (tcbtab): Update decls.
  2968. (MAX_PROCS): Macro removed, no more static limit on this.
  2969. * process.c (fork_tcb): New function.
  2970. (internal_clone, internal_fork): Use it instead of checking nprocs.
  2971. * strace.c (detach) [LINUX]: Use __WALL (or a second try with __WCLONE)
  2972. in wait after sending SIGSTOP.
  2973. 2002-12-16 Roland McGrath <roland@redhat.com>
  2974. * signal.c (sprintsigmask): Increase static buffer size to account for
  2975. worst possible case. Reported by Daniel Jacobowitz <drow@false.org>.
  2976. * process.c [LINUX] (wait4_options): Fix __WCLONE value. Add
  2977. __WNOTHREAD and __WALL.
  2978. * strace.c (trace) [LINUX]: Only check errno if wait4 actually fails,
  2979. so we don't repeat a wait and thus drop a status. Fixes RH#62591.
  2980. 2002-12-15 Roland McGrath <roland@redhat.com>
  2981. * process.c (setarg) [POWERPC]: Support it.
  2982. * util.c [POWERPC] (LOOP): Fix value, now 0x48000000 (0: b 0b).
  2983. Old value was bogus, not even a proper instruction.
  2984. From Guy M. Streeter <streeter@redhat.com>.
  2985. * strace.c (main) [! USE_PROCFS]: Always reset SIGCHLD to SIG_DFL.
  2986. * configure.in: Don't check for putpmsg.
  2987. * stream.c (sys_getpmsg, sys_putpmsg): Make these conditional on
  2988. #ifdef SYS_*, rather than on HAVE_PUTPMSG.
  2989. * aclocal.m4 (AC_STAT64): Include <linux/types.h> before <asm/stat.h>
  2990. in test. Test our own #ifdef LINUX rather than predefined `linux'.
  2991. * linux/powerpc/syscallent.h: Use sys_llseek for _llseek.
  2992. * linux/sparc/syscallent.h: Likewise.
  2993. * linux/hppa/syscallent.h: Likewise.
  2994. * syscall.c (syscall_enter) [LINUX && POWERPC]: Define PT_ORIG_R3 if
  2995. not defined, since <asm/ptrace.h> defines it only #ifdef __KERNEL__.
  2996. * process.c: Likewise.
  2997. * desc.c (sys_osf_select): Add missing return type.
  2998. * syscall.c (trace_syscall): Use strerror, not sys_errlist/sys_nerr.
  2999. * linux/ia64/syscallent.h: Remove macros for sys_delete_module,
  3000. sys_nanosleep, both already in linux/dummy.h.
  3001. * syscall.c (get_scno): Move static `currpers' inside #ifdef X86_64.
  3002. (trace_syscall): Fix return without value.
  3003. * linux/syscallent.h: Update table with names of new syscalls
  3004. io_setup, io_destroy, io_getvents, io_submit, io_cancel.
  3005. * linux/ia64/syscallent.h: Likewise.
  3006. * linux/powerpc/syscallent.h: Likewise.
  3007. * signal.c [LINUX && I386]: Provide SA_RESTORER constant if not
  3008. defined. If the bit is set, print the sa_restorer field of sigaction.
  3009. * mem.c: Add sys_{get,set}_thread_area.
  3010. * linux/syscall.h: Declare them.
  3011. * linux/syscallent.h: Update the table for these.
  3012. * linux/dummy.h (sys_modify_ldt): Define only #ifndef I386.
  3013. (sys_get_thread_area, sys_set_thread_area): New macros #ifndef I386.
  3014. * configure.in: Check for linux/xattr.h and linux/futex.h headers.
  3015. * linux/syscall.h: Add sys_* decls for new syscalls getpmsg, putpmsg,
  3016. readahead, sendfile64, setxattr, fsetxattr, getxattr, fgetxattr, int
  3017. listxattr, flistxattr, removexattr, fremovexattr, sched_setaffinity,
  3018. sched_getaffinity, futex.
  3019. * linux/syscallent.h: Update the table.
  3020. * io.c: Add sys_sendfile64.
  3021. * file.c: Add sys_readahead, sys_*xattr.
  3022. * process.c: Add sys_futex, sys_*affinity.
  3023. * linux/syscall.h (SYS_socket_subcall): Define to 256 on all machines.
  3024. (SYS_ipc_subcall): Always SYS_socket_subcall + SYS_socket_nsubcalls.
  3025. * linux/syscallent.h: Update the table for socket and ipc subcalls.
  3026. 2002-11-09 Heiko Carstens <heiko.carstens@de.ibm.com>
  3027. Bugfix for s390/s390x:
  3028. * syscall.c: Fixed scno derivation for s390/s390x.
  3029. 2002-11-06 Michal Ludvig <mludvig@suse.cz>
  3030. Merged patch from Steven J. Hill <sjhill@realitydiluted.com>
  3031. to allow the compilation of a native MIPS strace.
  3032. 2002-11-06 Michal Ludvig <mludvig@suse.cz>
  3033. From Marty Leisner <leisner@rochester.rr.com>,
  3034. rewritten by mludvig:
  3035. * strace.c (not_failing_only): New.
  3036. (usage): Added -z switch description.
  3037. (main): Added -z switch parsing to not_failing_only variable.
  3038. * syscall.c (trace_syscall): Added not_failing_only handling.
  3039. 2002-10-08 Heiko Carstens <heiko.carstens@de.ibm.com>
  3040. Missing complete changelog for 2002-10-07 commit:
  3041. * Makefile.in: Added linux/s390, linux/s390x to ALL_SUBDIRS.
  3042. * acconfig.h: New define for s390x.
  3043. * config.sub: Added missing define for s390 and new one for s390x.
  3044. * configure.in: Added new define for s390x.
  3045. * file.c: Added missing #undef dirent64 and new defines for s390x.
  3046. * linux/s390: New directory.
  3047. * linux/s390/Makefile.in: New file.
  3048. * linux/s390/errnoent.h: New file.
  3049. * linux/s390/ioctlent.h: New file.
  3050. * linux/s390/signalent.h: New file.
  3051. * linux/s390/syscallent.h: New file.
  3052. * linux/s390x: New directoy.
  3053. * linux/s390x/Makefile.in: New file.
  3054. * linux/s390x/errnoent.h: New file.
  3055. * linux/s390x/ioctlent.h: New file.
  3056. * linux/s390x/signalent.h: New file.
  3057. * linux/s390x/syscallent.h: New file.
  3058. * linux/syscall.h: Added sys_mincore() prototype and added new
  3059. s390x defines.
  3060. * process.c: Added s390x defines.
  3061. (change_syscall): Changed handling for s390.
  3062. (setarg): Added missing s390/s390x code in setarg().
  3063. * signal.c: Added s390x define.
  3064. (sys_sigreturn): Bugfix in s390/s390x code (wrong number of
  3065. arguments to sprintsigmask()).
  3066. * stream.c (internal_stream_ioctl): Changed int cast to long cast,
  3067. since printstr() expects a long.
  3068. * syscall.c (decode_subcall): Changed several variables to be long
  3069. instead of int to match 64 bit requirements. Added s390x defines.
  3070. (syscall_enter): Changed upeek() call to match s390 and s390x
  3071. requirements.
  3072. * util.c: Added s390x defines.
  3073. 2002-10-07 Michal Ludvig <mludvig@suse.cz>
  3074. Merged s390x port by Heiko Carstens <Heiko.Carstens@de.ibm.com>
  3075. and bugfixes to s390 by D.J. Barrow.
  3076. 2002-09-23 Michal Ludvig <mludvig@suse.cz>
  3077. Merged x86-64 port by Andi Kleen <ak@suse.de>
  3078. and Michal Ludvig <mludvig@suse.cz>
  3079. * Makefile.in: New target 'headers'. Failure ignored.
  3080. * acconfig.h: New defines for x86-64.
  3081. * configure.in: Ditto.
  3082. * defs.h: Ditto.
  3083. * file.c: Ditto.
  3084. * signal.c: Ditto.
  3085. * process.c: Added support for x86-64.
  3086. * util.c: Ditto.
  3087. * syscall.c: Ditto + added automatic personality switching.
  3088. * linux/syscall.h: Ditto.
  3089. * linux/x86_64: New directory.
  3090. * linux/x86_64/Makefile.in: New file.
  3091. * linux/x86_64/gentab.pl: Ditto.
  3092. * linux/x86_64/i386-headers.diff: Ditto.
  3093. * linux/x86_64/makeheaders.sh: Ditto.
  3094. * linux/x86_64/syscallent.h: Ditto.
  3095. * mem.c (print_mmap): Always print arg[4] as int.
  3096. 2002-09-23 Michal Ludvig <mludvig@suse.cz>
  3097. * configure.in: Fix regular expressions.
  3098. * linux/syscall.h: Added missing braces in prototype of
  3099. sys_getdents64().
  3100. * file.c: Use '#ifdef LINUX' instead of '#ifdef linux'.
  3101. (struct fileflags): Made extern to inhibit compiation warnings.
  3102. (sys_getdents64): Merged LINUX and SVR4 part.
  3103. * syscall.c (get_scno): Split multiline string into two distinct
  3104. strings.
  3105. 2002-05-24 John Hughes <john@calva.com>
  3106. * stream.h, net.h: Avoid possible infinite loop caused by
  3107. unsigned arithmetic in preceeding change.
  3108. 2002-05-23 John Hughes <john@calva.com>
  3109. * acconfig.h: Add HAVE_OPTHDR and HAVE_T_OPTHDR defines.
  3110. * aclocal.m4: Add tests for struct opthdr in sys/socket.h and
  3111. struct t_opthdr in sys/tiuser.h, define HAVE_OPTHDR and HAVE_T_OPTHDR
  3112. if found.
  3113. * configure.in: use tests for struct opthdr and struct t_opthdr.
  3114. * defs.h: add new function print_sock_optmgmt.
  3115. * io.c: add hack that lets ioctl decode functions set auxilliary
  3116. string return.
  3117. * stream.c: better decoding for timod ioctls.
  3118. * net.c: add function print_sock_optmgmt, used by timod ioctl
  3119. decoding functions in stream.c.
  3120. 2002-05-23 John Hughes <john@calva.com>
  3121. * acconfig.h: Make autoheader happy about Linux/SuperH
  3122. 2002-05-23 John Hughes <john@calva.com>
  3123. * strace.c: Get rid of warning if not using POLL_HACK
  3124. 2002-05-22 John Hughes <john@calva.com>
  3125. * net.c: Simplify {get,set}sockopt, decode SO_LINGER, cope with
  3126. options that are not just ints, cope with systems that don't
  3127. #define SOL_TCP and so on.
  3128. 2002-05-21 John Hughes <john@calva.com>
  3129. * strace.c: Fix warning if POLL_HACK is used.
  3130. 2002-05-17 John Hughes <john@calva.com>
  3131. * svr4/ioctlent.sh: Some defines on UW come with too many spaces.
  3132. 2002-05-17 John Hughes <john@calva.com>
  3133. * svr4/ioctlent.sh: Cope with #defines wrapped in #ifdefs.
  3134. 2002-05-17 John Hughes <john@calva.com>
  3135. * stream.c: tidy up output a little.
  3136. 2002-05-17 John Hughes <john@calva.com>
  3137. * process.c, svr4/dummy.h, svr4/syscall.h: decode arguments
  3138. to procpriv syscall.
  3139. 2002-05-01 Wichert Akkerman <wichert@deephackmode.org>
  3140. * configure.in, defs.h, process.c, sock.c, syscall.c, util.c: merge
  3141. patch from Greg Banks <gbanks@pocketpenguins.com> for Linux/SuperH
  3142. support
  3143. 2002-04-01 Wichert Akkerman <wichert@deephackmode.org>
  3144. * strace.c: close tcp->outf in droptcb()
  3145. 2002-04-01 Wichert Akkerman <wichert@deephackmode.org>
  3146. * net.c: decode packet options
  3147. 2002-03-31 Wichert Akkerman <wichert@deephackmode.org>
  3148. * linux/{alpha,hppa,ia64,mips,powerpc,sparc}/syscallent.h: regenerated
  3149. 2002-03-31 Wichert Akkerman <wichert@deephackmode.org>
  3150. * debian/*: added
  3151. * linux/syscallent.h: fix typo and add the reserved stream syscalls
  3152. * defs.h, file.c, io.c: fix signed/unsigned issues
  3153. * syscall.c: check for negative u_errors
  3154. * cvsbuild: renamed to autogen.sh
  3155. 2001-12-17 Wichert Akkerman <wakkerma@debian.org>
  3156. * net.c: add new TCP socket options
  3157. 2001-10-26 John Hughes <john@calva.com>
  3158. * svr4/ioctlent.sh: Cope with #define lines containing
  3159. comments that terminate on subsequent lines. Used to
  3160. comment out subsequent ioctls!
  3161. 2001-10-25 Wichert Akkerman <wakkerma@debian.org>
  3162. * linux/ioctlent.h: regenerated using current scripts so
  3163. term ioctls are included
  3164. 2001-10-19 John Hughes <john@Calva.COM>
  3165. * strace.c(proc_open): On SVR4 only trace the syscalls,
  3166. signals and faults we care about.
  3167. 2001-10-18 John Hughes <john@Calva.COM>
  3168. * acconfig.h: Add HAS_SIGINFO_T.
  3169. * aclocal.m4: add check for siginfo_t in signal.h.
  3170. * configure.in: use check for siginfo_t.
  3171. * defs.h: if HAVE_SIGINFO_T the declare printsiginfo. On SVR4
  3172. allow access to siginfo when signal recieved.
  3173. * process.c: Remove SVR4 only version of printsiginfo.
  3174. * signal.c: merge SVR4 and LINUX versions of printsiginfo.
  3175. * strace.c: on SVR4 print siginfo when signal recieved.
  3176. 2001-10-18 John Hughes <john@Calva.COM>
  3177. * system.c(sys_ssisys): handle return values for ssisys
  3178. 2001-10-18 John Hughes <john@Calva.COM>
  3179. * signal.c: handle sigwait
  3180. * svr4/dummy.c: Move sigwait to done
  3181. * svr4/syscall.h: handle sigwait
  3182. 2001-10-16 John Hughes <john@Calva.COM>
  3183. * system.c(sys_ssisys): decode some args for ssisys.
  3184. 2001-10-16 John Hughes <john@Calva.COM>
  3185. * mem.c: MS_SYNC is zero, so must be first in xlat list.
  3186. * svr4/dummy.h: memcntl is much like mctl.
  3187. 2001-10-16 John Hughes <john@Calva.COM>
  3188. * util.c (umovestr): UnixWare (svr4?) returns 0 when trying
  3189. to read unmapped page. Make it possible to strace ksh.
  3190. 2001-10-03 David Mosberger <davidm@hpl.hp.com>
  3191. * process.c (internal_clone): Avoid race condition by clearing
  3192. breakpoint after attaching to child.
  3193. 2001-10-02 David Mosberger <davidm@hpl.hp.com>
  3194. * linux/ia64/syscallent.h: Define ia32 syscall numbers (originally
  3195. by Don Dugger, with my refinements).
  3196. * linux/ia64/ioctlent.h: Regenerate and manually merge conflicting
  3197. ioctls (TCGETS & SNDCTL_TMR_TIMEBASE, etc.).
  3198. * linux/ia64/Makefile.in (ioctldefs.h ioctls.h): Update for
  3199. new ioctlent.h generation scheme.
  3200. * linux/syscall.h (sys_clone2): Declare.
  3201. [IA64] Define ia32 socket, ipc, and extra syscall numbers.
  3202. * linux/ioctlent.sh (regexp): Also handle <asm/ioctls.h> so we
  3203. don't miss the tty ioctls (unfortunately, some of the sound timer
  3204. ioctls are in conflict with them!).
  3205. * util.c (setbpt) [IA64]: Add ia32 support (by Don Dugger).
  3206. (clrbpt) [IA64]: Ditto.
  3207. * syscall.c (internal_syscall): Handle SYS_clone2, SYS32_wait4,
  3208. and SYS32_exit.
  3209. (get_scno): Get ia32 syscall number from r1 (orig eax) instead of
  3210. r8 (eax). Handle TCB_WAITEXECVE.
  3211. (syscall_fixup): Handle ia64.
  3212. (syscall_enter): Fix argument fetching for ia64.
  3213. * strace.c [IA64 && LINUX]: Include <asm/ptrace_offsets.h>.
  3214. (trace) [PT_GETSIGINFO]: Print signal address and pc if possible.
  3215. * process.c (tcp): New function.
  3216. (change_syscall): Add support for ia64 linux.
  3217. (sys_execve): Turn on TCB_WAITEXECVE for ia64 linux.
  3218. * desc.c (getlk): Cast l_len to "long long" to avoid warnings when
  3219. type is narrower.
  3220. * resource.c (sprintrlim64): Ditto.
  3221. * defs.h (TCB_WAITEXECVE) [IA64]: Define.
  3222. [IA64]: Declare "ia32" variable.
  3223. * bjm.c: Do not include <linux/module.h>. It's not safe to include
  3224. kernel headers. Declare the necessary constants and structures
  3225. directly instead.
  3226. 2001-10-01 David Mosberger <davidm@hpl.hp.com>
  3227. * signal.c (parse_sigset_t): New function.
  3228. (sigishandled): Fix off-by-one bug by using parse_sigset_t() and
  3229. avoiding relying on internal layout of sigset_t datastructure.
  3230. 2001-04-26 David Mosberger <davidm@hpl.hp.com>
  3231. * linux/ia64/syscallent.h: Add getunwind().
  3232. 2001-04-11 David Mosberger <davidm@hpl.hp.com>
  3233. * syscall.c (syscall_enter): Use PT_RBS_END instead of deprecated
  3234. PT_AR_BSP. Pick up arguments starting with out0, which is not
  3235. always the same as r32 (e.g., consider inlined syscalls).
  3236. 2001-09-28 John Hughes <john@Calva.COM>
  3237. * process.c: FreeBSD-CURRENT no longer has PT_READ_U, and anyway we
  3238. were showing it as PT_WRITE_U! Fix from Maxime Henrion.
  3239. 2001-09-18 John Hughes <john@Calva.COM>
  3240. * net.c: fix display of sockaddr structures, sometimes too many "}",
  3241. sometimes too few. Fix suggested by Richard Kettlewell.
  3242. 2001-08-19 Wichert Akkerman <wakkerma@debian.org>
  3243. * signal.c: do not include asm/sigcontext.h on IA64 since it gets
  3244. the struct from bits/sigcontext.h already which signal.h includes.
  3245. 2001-08-03 Wichert Akkerman <wakkerma@debian.org>
  3246. * linux/ioctlent.sh: change regexps so we catch sound ioctls as well in
  3247. Linux
  3248. * linux/Makefile.in: fix a few things so the ioctl list is generated
  3249. properly
  3250. * ioctl.c: remember to shift ioctl masks as well
  3251. 2001-08-03 Wichert Akkerman <wakkerma@debian.org>
  3252. * Linux/**/syscallent.h: synchronize section for fcntl and use sys_fcntl
  3253. for sys_fcntl as well
  3254. 2001-08-03 Wichert Akkerman <wakkerma@debian.org>
  3255. * linux/hppa/syscallent.h: updated from Matthew Wilcox
  3256. 2001-08-03 Wichert Akkerman <wakkerma@debian.org>
  3257. * process.c: seems Linux/IA64 changed register names on us, switch to
  3258. using new names.
  3259. 2001-08-03 Wichert Akkerman <wakkerma@debian.org>
  3260. * strace.c: set CLOEXEC flag for outputfile
  3261. 2001-08-03 Wichert Akkerman <wakkerma@debian.org>
  3262. * linux/sparc/syscall.h, linux/sparc/syscallent.h: add some LFS calls
  3263. 2001-07-23 Wichert Akkerman <wakkerma@debian.org>
  3264. * configure.in: Support cross-compiling between architectures
  3265. 2001-07-13 Wichert Akkerman <wakkerma@debian.org>
  3266. * configure.in: add S390 to architecture list
  3267. 2001-07-10 John Hughes <john@Calva.COM>
  3268. * TODO, defs.h, io.h, net.c, strace.c, syscall.c, util.c: Merge fixes
  3269. from Richard Kettlewell <rkettlewell@zeus.com> which add I/O dumping
  3270. of args to readv/writev. Also gets rid of redundant printiovec
  3271. routine from net.c (duplicate of tprint_iov in util.c).
  3272. 2001-07-02 Wichert Akkerman <wakkerma@debian.org>
  3273. * config.{guess,sub}: updated
  3274. 2001-05-15 John Hughes <john@Calva.COM>
  3275. * signal.c: pass a pointer to sigmask to printsigmask from printcontext,
  3276. it was just passing the sigmask (ucp->uc_sigmask).
  3277. 2001-05-15 John Hughes <john@Calva.COM>
  3278. * util.c: Don't run off the end of valid memory in umovestr when
  3279. USE_PROCFS. Important for FREEBSD systems (which seem to have an
  3280. unmapped page just after the args/env area).
  3281. 2001-04-18 John Hughes <john@Calva.COM>
  3282. * configure.in: test for sys/nscsys.h, the non-stop clusters includes.
  3283. * process.c: handle rfork{1,all} and rexecve calls on non-stop clusters.
  3284. * syscall.c: treat rfork{1,all} and fork{1,all} as fork like calls.
  3285. Treat rexecve as an exec.
  3286. * system.c: decode arguments to ssisys call on nsc systems.
  3287. * svr4/dummy.h, svr4/syscall.h: now we handle rfork{1,all}, ssisys and
  3288. rexecve calls.
  3289. 2001-04-12 Wichert Akkerman <wakkerma@debian.org>
  3290. * process.c: fix cast for powerpc code
  3291. * linux/powerpc/syscallent.h: update syscall list
  3292. * README: fix address for the strace mailinglist
  3293. * signal.c: switch to using /proc/<pid>/status on Linux so we can get
  3294. the realtime signals as well
  3295. 2001-04-10 Wichert Akkerman <wakkerma@debian.org>
  3296. * Merge patches from Maciej W. Rozycki:
  3297. + util.c: add code to print PC for MIPS
  3298. + linux/mips/syscallent.h: updated
  3299. + system.c: formating fixes for sys_sysmips
  3300. + configure.in: test for yet more headers
  3301. + stream.c: use configure-headertests instead of relying on OS hints
  3302. 2001-04-07 Wichert Akkerman <wakkerma@debian.org>
  3303. * NEWS: start 4.3.1 items
  3304. * version.c: updated to say 4.3.1 (was still 4.2, oops!)
  3305. 2001-04-07 Wichert Akkerman <wakkerma@debian.org>
  3306. * configure.in: test for asm/sysmips.h and linux/utsname.h
  3307. * linux/syscall.h: fix a typo for sys_sysmips
  3308. * system.c: include asm/sysmips.h and linux/utsname.h if they exist,
  3309. fix typo
  3310. 2001-03-31 Wichert Akkerman <wakkerma@debian.org>
  3311. * linux/mips/ioctlent.h: updated using new Linux ioctl setup
  3312. 2001-03-31 Wichert Akkerman <wakkerma@debian.org>
  3313. * linux/ia64/ioctlent.h: regenerated
  3314. 2001-03-31 Wichert Akkerman <wakkerma@debian.org>
  3315. * linux/{alpha,ia64,powerpc}/ioctlent.sh: removed, all archs use the
  3316. general Linux ioctlent.sh
  3317. 2001-03-31 Wichert Akkerman <wakkerma@debian.org>
  3318. * linux/ioctlent.sh: add dir variable for location of kernel headers
  3319. 2001-03-29 Wichert Akkerman <wakkerma@debian.org>
  3320. * linux/ia64/ioctlent.h: updated using new Linux ioctl setup
  3321. 2001-03-29 Wichert Akkerman <wakkerma@debian.org>
  3322. * linux/powerpc/ioctlent.h: updated using new Linux ioctl setup
  3323. 2001-03-29 Wichert Akkerman <wakkerma@debian.org>
  3324. * linux/hppa/ioctlent.h: updated using new Linux ioctl setup
  3325. 2001-03-29 Wichert Akkerman <wakkerma@debian.org>
  3326. * linux/alpha/ioctlent.h: updated using new Linux ioctl setup
  3327. 2001-03-28 Wichert Akkerman <wakkerma@debian.org>
  3328. * configure.in: use sparc* so we can compile on sparc64 as well
  3329. * process.c, syscall.c: work around double define of fpq, fq and fpu
  3330. structs on Linux/sparc, and use regs instead of pt_regs
  3331. * don't use asm/sigcontext.h on Linux/sparc
  3332. 2001-03-28 Wichert Akkerman <wakkerma@debian.org>
  3333. * linux/sparc/ioctlent.h: updated using new Linux ioctl setup
  3334. 2001-03-28 Wichert Akkerman <wakkerma@debian.org>
  3335. * strace.c: use __WALL as wait4 flag if it exists so we can properly
  3336. trace threaded programs
  3337. 2001-03-27 John Hughes <john@Calva.COM>
  3338. * aclocal.m4: add check for endianness of long long.
  3339. * acconfig.h: add #define for LITTLE_ENDIAN_LONG_LONG.
  3340. * configure.in: check for endianness of long long.
  3341. * defs.h: change LONG_LONG macro to work with either endianness of
  3342. long long.
  3343. 2001-03-27 John Hughes <john@Calva.COM>
  3344. * net.c: Make compilable by SCO UDK compiler (doesn't like empty
  3345. initialisation list for array).
  3346. 2001-03-27 John Hughes <john@Calva.COM>
  3347. * svr4/syscallent.h: ntp_adjtime entry was duplicated on Solaris
  3348. systems - bad merge of Harald Boehme's patch by me.
  3349. 2001-03-27 Wichert Akkerman <wakkerma@debian.org>
  3350. * lots of files: add Linux/hppa support
  3351. 2001-03-19 Wichert Akkerman <wakkerma@debian.org>
  3352. * linux/mips/syscallent.h: we can't have -1 nargs, change to 0
  3353. * linux/syscallent.h: not that syscalls 220 and 221 are used now
  3354. * config.guess: updated
  3355. 2001-03-17 Wichert Akkerman <wakkerma@debian.org>
  3356. * linux/ioclsort.c: new file
  3357. * linux/ioctlent.sh: complete rewrite to use a more sane approach to get
  3358. the ioctl list that doesn't involve attempting to #include all kernel
  3359. headers
  3360. * linux/.cvsignore: added ioctdefs.h and ioctls.h which are generated
  3361. by the new ioctlent.sh
  3362. * ioctl.c: only look at the number and type bits for linux, since
  3363. ioctlent.sh no longer supplies the others
  3364. 2001-03-08 John Hughes <john@Calva.COM>
  3365. * freebsd/syscalls.pl: On FreeBSD we must cope with COMPATibility syscalls,
  3366. pretend they have names ending with "?" so that -e trace=stat (for
  3367. example) will work.
  3368. * freebsd/i386/syscallent.h: add ? to compatability syscalls.
  3369. * freebsd/i386/syscall.h: consistency.
  3370. 2001-03-08 John Hughes <john@Calva.COM>
  3371. * acconfig.h: add new ST_xxx defines.
  3372. * aclocal.m4: macros to check for more fields in struct stat.
  3373. * configure.in: use new macros to check for fields in struct stat.
  3374. * file.c: use new defines to replace #ifdef FREEBSD by #if HAVE_ST_xxx.
  3375. 2001-03-08 John Hughes <john@Calva.COM>
  3376. * defs.h: rename wimpy get64 as powerful new LONG_LONG
  3377. * file.c: use LONG_LONG
  3378. * io.c: use LONG_LONG
  3379. * mem.c use LONG_LONG
  3380. 2001-03-08 John Hughes <john@Calva.COM>
  3381. * acconfig.h: new #defines HAVE_LONG_LONG_OFF_T and HAVE_LONG_LONG_RLIM_T.
  3382. * aclocal.m4: routines to check for long long off_t and rlim_t.
  3383. * configure.in: check for long long off_t and rlim_t.
  3384. * desc.c: if HAVE_LONG_LONG_OFF_T treat flock as flock64
  3385. * file.c: if HAVE_LONG_LONG_OFF_T treat stat,lstat,fstat and lseek as 64
  3386. bit versions.
  3387. * io.c: if HAVE_LONG_LONG_OFF_T use 64 bit versions of pread and pwrite.
  3388. * mem.c: if HAVE_LONG_LONG_OFF_T use 64 bit version of mmap
  3389. * resource.c: if HAVE_LONG_LONG_OFF_T use 64 bit versions of getrlimit
  3390. and setrlimit.
  3391. * freebsd/syscalls.print: don't explicitly use 64 bit versions of calls,
  3392. now done automaticaly for us.
  3393. * freebsd/i386/syscall.h: ditto.
  3394. * freebsd/i386/syscallent.h ditto.
  3395. 2001-03-07 John Hughes <john@Calva.COM>
  3396. * desc.c: On FreeBSD flock structure uses 64 bit offsets.
  3397. * file.c: On FreeBSD use stat64 and pals instead of stat.
  3398. * freebsd/syscalls.print: use stat64, lstat64 and fstat64.
  3399. * freebsd/i386/syscall.h: ditto.
  3400. * freebsd/i386/syscallent.h: ditto.
  3401. 2001-03-07 John Hughes <john@Calva.COM>
  3402. * file.c: merge missing part of Harald Böhme's solaris patches,
  3403. was only declaring sys_{stat64,lstat64,fstat64} on linux!
  3404. 2001-03-07 John Hughes <john@Calva.COM>
  3405. * svr4/dummy.h: fix multiple define warning on non LFS64 systems.
  3406. * svr4/syscallent.h: pread/pwrite are TF calls.
  3407. 2001-03-07 John Hughes <john@Calva.COM>
  3408. * defs.h: add ALIGN64 macro to cope with FreeBSD's strange insistence
  3409. on alignment for off_t (64 bit) arguments. Also simplify get64 so
  3410. we don't need to know endianness of long long.
  3411. * file.c: FreeBSD now uses 64 bit versions of lseek, truncate,
  3412. ftruncate, allows reduction in numvber of horrid #if's
  3413. * io.c: FreeBSD now uses 64 bit versions of pread, pwrite.
  3414. * mem.c: FreeBSD now uses 64 bit version of mmap.
  3415. * freebsd/syscalls.print: use 64 bit versions of various syscalls.
  3416. * freebsd/i386/syscall.h: use 64 bit versions of various syscalls.
  3417. * freebsd/i386/syscallent.h: use 64 bit versions of various syscalls.
  3418. 2001-03-06 John Hughes <john@Calva.COM>
  3419. * file.c: Implement truncate64 and ftruncate64
  3420. * svr4/dummy.h: add dummies for truncate64 and ftruncate64 for non
  3421. LFS64 systems.
  3422. * svr4/syscall.h: add declarations for truncate64 and ftruncate64.
  3423. 2001-03-06 John Hughes <john@Calva.COM>
  3424. * freebsd/syscalls.pl: fix for FreeBSD 4.1 (new optional field in
  3425. syscall master file).
  3426. 2001-03-06 John Hughes <john@Calva.COM>
  3427. * syscall.c: fix for FreeBSD 4.1 (SYS_semconfig has disappeared). Also
  3428. zap incorrect syscall subarg range check.
  3429. 2001-03-06 John Hughes <john@Calva.COM>
  3430. * configure.in, defs.h, desc.c, file.c, io.c, mem.c, net.c, resource.c,
  3431. signal.c, syscall.c, svr4/dummy.h, svr4/syscall.h, svr4/syscallent.h:
  3432. merge Harald Böhme's solaris patches (_LFS64_LARGEFILE and kernel aio
  3433. mostly).
  3434. 2001-03-06 John Hughes <john@Calva.COM>
  3435. * dummy.h: add unimplemented UW sycalls
  3436. * syscall.h: we can do settimeofday for UW, whopee!
  3437. * syscallent.h: fix unimplemented UW syscalls
  3438. 2001-03-06 John Hughes <john@Calva.COM>
  3439. * aclocal.m4: look for pr_syscall in pr_lwp if we HAVE_MP_PROCFS
  3440. * defs.h: add PR_SYSCALL to allow use of pr_lwp.pr_syscall if it exists.
  3441. * syscall.c: use PR_SYSCALL instead of pr_syscall, fix up UnixWare code
  3442. so it doesn't try to use pr_sysarg.
  3443. 2001-03-06 John Hughes <john@Calva.COM>
  3444. * aclocal.m4: on systems other than linux look for stat64 in sys/stat.h
  3445. * file.c: handle xstat version _STAT64_VER, aka stat64.
  3446. 2001-03-06 John Hughes <john@Calva.COM>
  3447. * net.c: make sure SOL_ options are defined before using.
  3448. * signal.c: declare sigset variable, only used on linux, inside #ifdef.
  3449. 2001-02-21 Wichert Akkerman <wakkerma@debian.org>
  3450. * net.c: fix format for printing Unix domain sockets
  3451. 2001-02-19 Wichert Akkerman <wakkerma@debian.org>
  3452. * linux/mips/syscallent.h: use new sys_sysmips
  3453. * system.c: add sys_sysmips decoding
  3454. 2001-02-16 Wichert Akkerman <wakkerma@debian.org>
  3455. * CREDITS: add Arkadiusz Miskiewicz <misiek@pld.org.pl> who
  3456. submitted the IP6 scope ID updates
  3457. * acconfig.h: add HAVE_SIN6_SCOPE_ID and HAVE_SIN6_SCOPE_ID_LINUX
  3458. * aclocal.m4: add AC_SIN6_SCOPE_ID to check if sin6_scope_id is
  3459. available
  3460. * configure.in: check for if_indextoname function and sin6_scope_id
  3461. * net.c: teach printsock about IP6 scope ids
  3462. 2001-02-16 Wichert Akkerman <wakkerma@debian.org>
  3463. * configure.in: test for netinet/tcp.h and netinet/udp.h existance
  3464. * net.c: include netinet/tcp.h and netinet/udp.h if they exist
  3465. * Makefile.in: use @mandir@ and @bindir@
  3466. 2000-11-26 Wichert Akkerman <wakkerma@debian.org>
  3467. * net.c: fix formating error in sys_setsockopt
  3468. * net.c: add list of socketlayers and use that for [gs]etsockopt
  3469. 2000-10-12 Wichert Akkerman <wakkerma@debian.org>
  3470. * time.c: use sys/timex.h so things compile with 2.2 kernels
  3471. * stream.c: test if MSG_* constants are #defined
  3472. 2000-09-03 Wichert Akkerman <wakkerma@debian.org>
  3473. * process.c: perform bpt trick for clone as well so we can get the
  3474. pid of the child before it starts doing something
  3475. * file.c: rename dirent64 struct to kernel_dirent64 so things compile
  3476. again with newer libcs
  3477. * test/clone.c: improve our testcase a bit
  3478. * Merge another patch from Gäel Roualland with FreeBSD updates
  3479. 2000-09-01 Wichert Akkerman <wakkerma@debian.org>
  3480. * lots of files: merge patch from Gaël Roualland to add
  3481. support for FreeBSD.
  3482. 2000-08-09 Wichert Akkerman <wakkerma@debian.org>
  3483. * file.c: update to reflect that st_ino suddenly became a long long
  3484. in the in Linux 2.4.0-test6
  3485. 2000-08-09 Wichert Akkerman <wakkerma@debian.org>
  3486. * test/clone.c: minor fixup
  3487. * Another bunch of patches from John Hughes merged:
  3488. * signal.c:
  3489. + SVR4 printcontext(): sigset_t != sigset_t*
  3490. + getcontext returns a value, so print on exit of syscall
  3491. + add UC_FP to ucontext_flags for OS writers that can't spell
  3492. + sys_signal(): special case SIG_{ERR,DFL,IGN}
  3493. + decode_subcall(): only do subcall range checking when needed
  3494. * bunch of UnixWare updates
  3495. * aclocal.m4, acconfig.h, configure.in: add test for long long type
  3496. 2000-07-04 Wichert Akkerman <wakkerma@debian.org>
  3497. * net.c: add SOL_PACKET and SOL_RAW socket options, update
  3498. SOL_IP and SOL_TCP
  3499. 2000-06-23 Wichert Akkerman <wakkerma@debian.org>
  3500. * strace.c: close outf before we exec a child process
  3501. 2000-06-09 Ulrich Drepper <drepper@redhat.com>
  3502. * configure.in: Don't link against libnsl on Linux, it's unnecessary.
  3503. * defs.h (struct tcb): Make auxstr member const.
  3504. * file.c (fsmagic): And many more magic numbers.
  3505. * util.c: Don't include <linux/ptrace.h> for glibc 2.1 and up.
  3506. 2000-04-26 Wichert Akkerman <wakkerma@debian.org>
  3507. * defs.h: balance #if/#endif again
  3508. * system.c: fix return statements in sys_capget()
  3509. * Merge updates from Topi Miettinen <Topi.Miettinen@nic.fi>:
  3510. + file.c: add F_[SG]ETSIG to fcntl flags
  3511. + strace.c: don't setre[gu]id if not needed
  3512. + system.c: handle sys_reboot for Linux
  3513. + term.c: add baudrate constants up to B4000000
  3514. + linux/**/syscallent.h: note that munlockall has no arguments
  3515. 2000-04-25 David Mosberger <davidm@hpl.hp.com>
  3516. * CREDITS: fix email address
  3517. * process.c: handle PR_[GS]ET_UNALIGN and PR_[GS]ET_KEEPCAPS
  3518. * signal.c: honour offset of sigconfig in sigframe structure for
  3519. Linux/ia64
  3520. * linux/ia64/syscallent.h: Add perfmonctl, pivotroot, mincore, and
  3521. madvise syscalls.
  3522. * syscall.c (syscall_enter): With Kevin's latest ptrace patches,
  3523. AR_BSP points to the _end_ of the active register frame, so we need
  3524. to adjust bsp by moving it back by the size of the active frame
  3525. before using it.
  3526. 2000-04-24 Wichert Akkerman <wakkerma@debian.org>
  3527. * process.c: add sparc support to change_syscall
  3528. 2000-04-22 Wichert Akkerman <wakkerma@debian.org>
  3529. * linux/mips/syscallent.h: fix some typos
  3530. 2000-04-14 Wichert Akkerman <wakkerma@debian.org>
  3531. * linux/mips/syscallent.h: added names for SVR4, SYSV, BSD4.3 and POSIX
  3532. syscalls
  3533. 2000-04-13 Wichert Akkerman <wakkerma@debian.org>
  3534. * defs.h: Linux/MIPS uses syscalls up to >4k, so set MAX_QUALS to
  3535. 4999
  3536. 2000-04-09 Wichert Akkerman <wakkerma@debian.org>
  3537. * README-linux: updated to note that strace might not compile
  3538. with development kernels
  3539. * bjm.c: sys_query_module: check if malloc succeeds
  3540. * system.c: sys_cap[gs]et(): check if malloc succeeds, only malloc once
  3541. * linux/syscallent.h: updated for 2.3.99pre3
  3542. * linux/alpha/syscallent.h: updated for 2.3.99pre3, add all osf syscalls
  3543. even though Linux doesn't implement them
  3544. * syscall.c: add global variables for MIPS registers as well
  3545. * syscall.c: move global variables to before get_scno since that uses them
  3546. * util.c: oops, misspelled defined
  3547. * process.c: fix ptrace calls in change_syscall
  3548. * mem.c: decode sys_madvise
  3549. * Merge patch from Topi Miettinen <Topi.Miettinen@nic.fi>
  3550. + add support for quotactl, fdatasync, mlock, mlockall, munlockall & acct
  3551. + small fix for RLIMIT_* and RUSAGE_BOTH
  3552. + enhace support for capget and capset
  3553. 2000-02-19 Wichert Akkerman <wakkerma@debian.org>
  3554. * test/vfork.c: new file to test vfork traces
  3555. * test/.cvsignore: new file
  3556. * defs.h: Up maximum number of traced processed to 64
  3557. * strace.c: Disable some debugging code from davidm
  3558. * implement setarg for more architectures
  3559. * implement change_syscall
  3560. 1999-12-27 Morten Welinder <terra@diku.dk>
  3561. * syscall.c (lookup_signal, lookup_desc): isdigit requires an
  3562. _unsigned_ char parameter.
  3563. 2000-02-14 Wichert Akkerman <wakkerma@debian.org>
  3564. * S390 updates
  3565. 2000-02-03 Wichert Akkerman <wakkerma@debian.org>
  3566. * Merge Linux/ia64 patches
  3567. 2000-01-02 Pavel Machek <pavel@ucw.cz>
  3568. * probe if sys/poll.h exists in configure + minor cleanups
  3569. * syscall.c: split trace_syscall into few pieces to make code readable
  3570. 2000-01-21 Wichert Akkerman <wakkerma@debian.org>
  3571. * Release version 4.2 to get the current updates out and so
  3572. we can concentrate in finishing the clone support.
  3573. 2000-01-11 Wichert Akkerman <wakkerma@debian.org>
  3574. * Add 1900 to tm_year in sprinttime
  3575. 1999-12-24 Wichert Akkerman <wakkerma@debian.org>
  3576. * file.c: protect printstat64 with STAT64 instead of linux so we can
  3577. compile on Linux architectures that don't have it
  3578. * util.c: fix LOOP for ARM
  3579. Fri Dec 24 18:05:00 EST 1999
  3580. 1999-12-23 Ulrich Drepper <drepper@cygnus.com>
  3581. * file.c: Use ugly libc_stat trick also for stat64.
  3582. Implement sys_stat64, sys_fstat64, sys_lstat64, and printstat64.
  3583. * process.c (internal_clone): Fix a few typos and add definitions to make
  3584. it at least compile.
  3585. * linux/syscall.h: Declare sys_stat64, sys_lstat64, and sys_fstat64.
  3586. * linux/syscallent.h: Define table entries for sys_stat64, sys_lstat64,
  3587. and sys_fstat64.
  3588. * aclocal.m4: Define AC_STAT64.
  3589. * acconfig.h: Define HAVE_STAT64.
  3590. * configure.in: Add AC_STAT64.
  3591. Thu Dec 23 15:01:37 CET 1999 Wichert Akkerman <wakkerma@debian.org>
  3592. * Merge patch from ftp://oss.software.ibm.com/linux390/ to add
  3593. support for Linux on the IBM S/390 architecture
  3594. * process.c: add internal_clone(), currently only shows the options
  3595. * syscall.c: use internal_clone to handle SYS_clone
  3596. Mon Dec 20 00:27:50 CET 1999 Wichert Akkerman <wakkerma@debian.org>
  3597. * Rewrite mmap-handling to support mmap2 on Linux
  3598. Tue Dec 14 11:35:16 CET 1999 Wichert Akkerman <wakkerma@debian.org>
  3599. * Note that Linux can handle sys_semop() as well
  3600. Tue Nov 30 11:05:26 CET 1999 Wichert Akkerman <wakkerma@debian.org>
  3601. * Include linux/in6.h for glibc2.0 and older
  3602. Mon Nov 29 16:33:04 CET 1999 Wichert Akkerman <wakkerma@debian.org>
  3603. * Merge patches from John Hughes to make configure support UnixWare
  3604. Sat Nov 27 21:38:17 CET 1999 Wichert Akkerman <wakkerma@debian.org>
  3605. * Enhance sys_query_module
  3606. Fri Nov 26 10:51:55 CET 1999 Wichert Akkerman <wakkerma@debian.org>
  3607. * Patches from John Hughes:
  3608. + cosmectic fix in sys_getpmsg
  3609. + allow net.c to compile on systems without AF_INET6
  3610. + Only use long_to_sigset on Linux systems
  3611. + UnixWare treats sigmask_t and sigmask_t* as the same thing
  3612. + Add pollhack
  3613. + Parse mount arguments for UnixWare
  3614. + ACL fixes for UnixWare
  3615. Fri Nov 26 01:28:09 CET 1999 Wichert Akkerman <wakkerma@debian.org>
  3616. * Release 4.1 to get all the changes made out there
  3617. Thu Nov 18 18:04:04 CET 1999 Wichert Akkerman <wakkerma@debian.org>
  3618. * Merge stracefork from Alexey Kuznetsov <kuznet@ms2.inr.ac.ru>
  3619. + Socket calls parsed better
  3620. + bunch of alpha OSF syscalls added
  3621. + Fix alpha 32/64 bit issues
  3622. Mon Nov 1 20:52:08 CET 1999 Wichert Akkerman <wakkerma@debian.org>
  3623. * Move Linux kernelmodule-functions from system.c to bjm.c and
  3624. remove duplicate for sys_create_module
  3625. * Linux MIPS updates:
  3626. + Play with #ifdef's in net.c to get IPv6 right
  3627. + Use printargs for vm86-syscall
  3628. Sun Oct 31 22:03:00 CET 1999 Wichert Akkerman <wakkerma@debian.org>
  3629. * Merge Linux mips patch from Florian Lohoff <flo@rfc822.org>
  3630. Mon Oct 11 00:36:25 CEST 1999 Wichert Akkerman <wakkerma@debian.org>
  3631. * Merge patch from Keith Owens <kaos@ocs.com.au> to sys_query_module
  3632. and sys_delete_module correctly
  3633. Wed Oct 6 02:00:33 CEST 1999 Wichert Akkerman <wakkerma@debian.org>
  3634. * Update cvsbuild to give a better error if autoconf isn't installed
  3635. * Add test for linux/ptrace.h to configure
  3636. * Since we define GNU_SOURCE in the Makefile we don't need to define
  3637. USE_GNU in file.c anymore
  3638. Fri Sep 10 04:35:16 CEST 1999 Wichert Akkerman <wakkerma@debian.org>
  3639. * #define USE_GNU before including file.c so we get some extra O_* flags
  3640. Tue Aug 31 16:27:21 CEST 1999 Wichert Akkerman <wakkerma@debian.org>
  3641. * Add missing } in IPv6 output
  3642. Tue Aug 31 01:23:08 CEST 1999 Wichert Akkerman <wakkerma@debian.org>
  3643. * Update copyright for strace-graph to BSD to be consistent with
  3644. the rest of strace
  3645. Mon Aug 30 00:53:57 CEST 1999 Wichert Akkerman <wakkerma@debian.org>
  3646. * Merge patch from Daniel Jacobowitz: KERN_JAVA_* and KERN_SECURELVL aren't
  3647. defined for all kernelversions
  3648. * Add strace-graph, written by Richard Braakman <dark@xs4all.nl>
  3649. Thu Aug 19 13:10:15 CEST 1999 Jakub Jelinek <jj@ultra.linux.cz>
  3650. * linux/sparc/syscall.h: Declare create_module/init_module.
  3651. * configure.in: Allow compilation in a different directory
  3652. than the source one.
  3653. * signal.c: Use asm/reg.h and struct regs instead of pt_regs
  3654. so that we don't depend on asm/ptrace.h which clashes with
  3655. glibc sys/ptrace.h.
  3656. * util.c: Likewise.
  3657. * syscall.c: Likewise.
  3658. Wed Aug 4 18:01:50 CEST 1999 Wichert Akkerman <wakkerma@debian.org>
  3659. * Syscall 94 on Linux alpha is sys_poll
  3660. Sun Jul 25 14:38:33 CEST 1999 Wichert Akkerman <wakkerma@debian.org>
  3661. * Merge in UnixWare patches from John Hughes <john@Calva.COM>
  3662. Thu Jul 15 23:00:32 CEST 1999 Wichert Akkerman <wakkerma@debian.org>
  3663. * Merge patch from Maciej W. Rozycki <macro@ds2.pg.gda.pl>:
  3664. + Correctly implement fix sys_createmodule (Linux)
  3665. + Add limited handlig of sys_initmodule (Linux)
  3666. Tue Jul 13 17:07:50 CEST 1999 Wichert Akkerman <wakkerma@debian.org>
  3667. * Add configure-test for sys/reg.h and use that
  3668. * Use sys/reg.h instead of asm/ptrace.h
  3669. Sat Jul 10 01:46:10 CEST 1999 Wichert Akkerman <wakkerma@debian.org>
  3670. * Remove hack in signal.c for arm architecture
  3671. * Add hack so we compile correctly on powerpc
  3672. Fri Jul 9 02:28:16 CEST 1999 Wichert Akkerman <wakkerma@debian.org>
  3673. * Add a corrected patch from Daniel Jacobowitz
  3674. Thu Jul 8 16:00:04 CEST 1999 Wichert Akkerman <wakkerma@debian.org>
  3675. * Merge patch from Daniel Jacobowitz to allow us to use the kernel types
  3676. for the stat structure
  3677. Thu Jun 24 15:54:18 CEST 1999 Wichert Akkerman <wakkerma@debian.org>
  3678. * Fix test for sys/reg include
  3679. Tue Jun 22 17:26:33 CEST 1999 Wichert Akkerman <wakkerma@debian.org>
  3680. * Fixed some Linux/powerpc sillyness, thanks to Daniel Jacobowitz
  3681. * Fixed some SunOS compile problems earlier that I forgot to include
  3682. here
  3683. Mon Jun 14 12:44:25 CEST 1999
  3684. * Avoid leakint fd into child when forking, patch from
  3685. John Hughes <john@Calva.COM>
  3686. Fri Jun 11 14:54:47 CEST 1999
  3687. * Applied IRIX64 patch from Thomas E. Dickey <dickey@clark.net>
  3688. * Applied Solaris and manpage updates from Guy Harris <guy@netapp.com>
  3689. Wed Jun 9 14:48:49 CEST 1999 Wichert Akkerman <wakkerma@debian.org>
  3690. * Brought syscall list for alpha up to date
  3691. Wed Jun 2 18:30:12 CEST 1999 Jakub Jelinek <jj@ultra.linux.cz>
  3692. * system.c: sys_umount2 syscall support.
  3693. * linux/sparc/errnoent.h: Update sparc-linux errnos.
  3694. * linux/sparc/syscall.h: Update used sparc-linux syscalls.
  3695. * linux/sparc/syscallent.h: Match 2.2.9 system calls.
  3696. * file.c: sparc-linux asm/stat.h uses dev_t etc. types,
  3697. so it needs strace's own copy of the stat structure.
  3698. * util.c: Make it compile on sparc-linux.
  3699. * strace.c: Fix strace -f and -ff operation on sparc-linux.
  3700. * signal.c: rt_sigaction has different arguments on sparc*-linux
  3701. and alpha-linux.
  3702. * syscall.c: Recognize sparc64-linux binaries.
  3703. Fri May 28 21:09:00 PST Ulrich Drepper <drepper@cygnus.com>
  3704. * configure.in: Fix typo (CFLAG -> CFLAGS).
  3705. * syscall.c: Don't include linux/ptrace.h explicitly for glibc.
  3706. Thu May 27 13:59:27 CEST 1999 Wichert Akkerman <wakkerma@debian.org>
  3707. * Add some sysctl support, patch from Ulrich Drepper
  3708. Wed May 26 01:04:34 CEST 1999 Wichert Akkerman <wakkerma@debian.org>
  3709. * Use kernel dirent structure for Linux
  3710. Sun May 9 02:18:30 CEST 1999 Wichert Akkerman <wakkerma@debian.org>
  3711. * Merge in patches from Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
  3712. + some layout and other minor fixes
  3713. + add some m68k-specific things to linux/syscallent.h. Note that m68k
  3714. is similar enough to i386 to not need it's own subdirectory
  3715. + add support for sendfile and mremap syscalls for Linux
  3716. * Merge in patches from Sascha Schumann <sascha@schumann.2ns.de>
  3717. + ioctls.h vs sys/ioctl.h on Alpha platform
  3718. + pointer was casted to an int in stream.c
  3719. + strsignal() needs -D_GNU_SOURCE in CFLAGS
  3720. + several other casts changed
  3721. + correct ARM/POWERPC architecture defines in acconfig.h
  3722. * Merge in patches from Morten Welinder <terra@diku.dk>
  3723. + add some autoconf-tests for includefiles
  3724. + handle solaris version of sigcontext struct (actually I hacked this
  3725. up again, but the idea is his :)
  3726. Sun Apr 18 22:32:42 CEST 1999 Wichert Akkerman <wakkerma@debian.org>
  3727. * Update syscalls for linux alpha, patch from Bart Warmerdam
  3728. <bartw@debian.org>
  3729. * Update sparc code so it actually compiles
  3730. Fri Apr 16 02:18:05 CEST 1999 Wichert Akkerman <wakkerma@debian.org>
  3731. * Add support for old_*stat functions for Linux. Please note you need
  3732. to use reasonably recent kernel headers to compile strace now.
  3733. * Change references to LINUX into linux in file.c
  3734. * Fix include for LDT in mem.c
  3735. Thu Apr 15 22:28:15 CEST 1999 Wichert Akkerman <wakkerma@debian.org>
  3736. * Change in strace maintainership, jrs passed the torch to me.
  3737. * Use autoconf 2.13
  3738. * Incorporate all changes already made in the Debian strace package:
  3739. + compiles with more Linux kernels
  3740. + added support for more Linux architectures
  3741. + add support for a lot of extra syscalls
  3742. + fix some problems with hanging children
  3743. + check stray syscall after execv
  3744. + decode capget and capset arguments
  3745. + add more constants to net.c
  3746. + detect ROSE networking
  3747. + add more protocol families to domains
  3748. + add IPIP protocol
  3749. + added MSG_PROXY and MSG_CTRUNC to msg_flags
  3750. + added SO_BSDCOMPAT and SO_REUSEPORT to sockoptions
  3751. + added IP, IPX and TCP-options
  3752. + added IP, IPX and TCP support to get-/setsockopt()
  3753. + added IPX support
  3754. + updated handling of signals
  3755. Sun Oct 27 22:28:00 1996 J. Richard Sladkey <jrs@world.std.com>
  3756. * util.c (umovestr) [LINUX]: Handle Linux like SunOS4
  3757. instead of SVR4. That is, read a few bytes at a time
  3758. to avoid overrunning the end of the stack.
  3759. Fri May 31 01:48:49 1996 J. Richard Sladkey <jrs@world.std.com>
  3760. * version.c: Version 3.1 is released.
  3761. Thu May 23 01:04:43 1996 J. Richard Sladkey <jrs@world.std.com>
  3762. * aclocal.m4 (AC_DECL_SYS_ERRLIST): Try looking in stdio.h
  3763. as well since that's where glibc declares it. Go figure.
  3764. * signal.c (sys_sigreturn) [ALPHA]: Use sigcontext
  3765. instead of sigcontext_struct since glibc v5+ apparently
  3766. plays games with the native OS namespace.
  3767. From David Mosberger-Tang <davidm@AZStarNet.com>.
  3768. Mon May 20 23:17:14 1996 J. Richard Sladkey <jrs@world.std.com>
  3769. * version.c: Version 3.0.14 is released.
  3770. * aclocal.m4 (AC_STRUCT_MSG_CONTROL): New macro.
  3771. * configure.in: Add call to AC_STRUCT_MSG_CONTROL.
  3772. * net.c (printmsghdr): Handle BSD 4.3 and 4.4 msghdr members
  3773. differently.
  3774. Reported by Henrik Storner <storner@osiris.ping.dk>.
  3775. * configure.in: (AC_CHECK_{HEADERS,FUNCS}): Add checks for
  3776. sys/filio.h and sys/stream.h and remove check for poll.
  3777. * desc.c (decode_select, sys_select, sys_oldselect) [LINUX]:
  3778. Handle old and new styles of argument passing for select on Linux.
  3779. * ioctl.c, stream.c: Conditionalize stream code on presence of
  3780. sys/stream.h instead of poll because glibc implements poll but
  3781. not the rest of the stream interface.
  3782. * signal.c [LINUX]: Standardize on the name sigcontext_struct.
  3783. (sys_sigprocmask) [ALPHA]: Handle OSF flavor which is more like
  3784. sigsetmask.
  3785. * term.c (term_ioctl): Use _VMIN, if present, for TC{G,S}ETA*.
  3786. * util.c (umoven, umovestr): Move data in long-sized chunks
  3787. at a time, instead of hard coding it to be 4.
  3788. From David Mosberger-Tang <davidm@AZStarNet.com>.
  3789. Mon May 20 01:19:36 1996 J. Richard Sladkey <jrs@world.std.com>
  3790. * version.c: Version 3.0.13 is released.
  3791. * configure.in (AC_CHECK_HEADERS): Add check for asm/sigcontext.h.
  3792. * signal.c [HAVE_ASM_SIGCONTEXT_H]: Conditionally include
  3793. asm/sigcontext.h to define sigcontext_struct and don't define it
  3794. locally if the header is present.
  3795. * syscall.c (nerrnos{0,2}): Correct size computation.
  3796. * Makefile.in: Remove dependencies and rules relating to files
  3797. normally found in the os directory. Because of the new scheme we
  3798. don't know precisely where they come from. Sigh.
  3799. * signalent.sh: Make it work for sunos4, linux, and svr4.
  3800. * {sunos4,linux{,/alpha},svr4}/Makefile.in: Make rules correspond
  3801. to traditional make syntax. Add signalent.h to files which can
  3802. unconditionally be rebuilt. Prevent signalent.h from being
  3803. unconditionally being rebuilt since it's customized.
  3804. * {sunos4,linux{,/alpha},svr4}/{ioctlent,errnoent,signalent}.h:
  3805. Use versions built by {ioctlent,errnoent,signaltent}.sh.
  3806. * sunos4/ioctlent.sh: Work around sprintf troubles with SunOS
  3807. 4.1.4 and gcc 2.7.2.
  3808. Sun May 19 17:14:09 1996 J. Richard Sladkey <jrs@world.std.com>
  3809. * configure.in, Makefile.in: Add OSARCH concept to finish
  3810. build support for the alpha.
  3811. * Makefile.in, linux/Makefile.in: Rewrite clean, distclean,
  3812. and maintainer-clean rules.
  3813. * defs.h, ioctlsort.c: Make ioctl code member unsigned.
  3814. * ioctl.c, ioctlsort.c (compare): Perform explicit checking
  3815. for less, greater, and equal since subtraction on two's
  3816. complement numbers isn't an order relation (it isn't transitive)!
  3817. * linux/Makefile.in: Add rules for the signalent.h file.
  3818. * linux/alpha/Makefile.in: New file.
  3819. Sun May 19 01:12:28 1996 J. Richard Sladkey <jrs@world.std.com>
  3820. * version.c: Version 3.0.12 is released.
  3821. * linux{,alpha}/ioctlent.sh: Tweak for recent kernels.
  3822. From Michael E Chastain <mec@duracef.shout.net>.
  3823. * defs.h (SUPPORTED_PERSONALITES, DEFAULT_PERSONALITY): New.
  3824. * syscall.c (set_personality): New.
  3825. * strace.c (main): Call set_personality.
  3826. * defs.h, syscall.c, ioctl.c, signal.c: Make sysent, errnoent,
  3827. ioctlent, and signalent indirect pointers and redirect them
  3828. based on personality.
  3829. * {sunos4,svr4,linux{,/alpha}}/signalent.h: New files.
  3830. Suggested by Tom Dyas <tdyas@eden.rutgers.edu>.
  3831. * util.c (upeek): Handle case where ptrace returns a long
  3832. and sizeof(long) != sizeof(int).
  3833. From Richard Henderson <richard@twiddle.tamu.edu>
  3834. Fri May 17 21:03:36 1996 J. Richard Sladkey <jrs@world.std.com>
  3835. * version.c: Version 3.0.11 is released.
  3836. * many files: Fix more printf warnings for other platforms.
  3837. * ipc.c (sys_msgrcv) [LINUX]: Conditionalize definition of ipc_wrapper.
  3838. * linux/dummy.h: Handle missing library support for {send,recv}msg.
  3839. Reported by Thomas Bogendoerfer <tsbogend@bigbug.franken.de>.
  3840. * linux/syscall.h (sys_utimes): Fix a typo in the declaration.
  3841. From Thomas Bogendoerfer <tsbogend@bigbug.franken.de>.
  3842. Fri May 17 00:50:06 1996 J. Richard Sladkey <jrs@world.std.com>
  3843. * version.c: Version 3.0.10 is released.
  3844. * Makfile.in: Add os/arch to includes so that a given arch
  3845. (like alpha) can override the native arch (like i386).
  3846. * configure.in: Check for sendmsg.
  3847. * net.c: Make sendmsg and recvmsg dependent on an autoconf
  3848. test. Reported by Michael E Chastain <mec@duracef.shout.net>.
  3849. * acconfig.h, configure.in: Detect the alpha.
  3850. * ioctl.c: Handle the alpha.
  3851. * defs.h: Make some members long for the alpha. Define
  3852. some register nicknames. Add support for WAITEXECVE.
  3853. * file.c [ALPHA]: Support the alpha for statfs. Add
  3854. osf_statfs and osf_fstatfs for the alpha. Make damn sure
  3855. major and minor results are suitable for passing to printf.
  3856. * signal.c, syscall.c: Support the alpha.
  3857. * process.c: Add alpha user offsets.
  3858. * most files: Use %l? for printf arguments since
  3859. most are now longs for the alpha.
  3860. * linux/alpha/{errnoent.h,ioctlent.{h,sh},syscallent.h}:
  3861. New for the alpha.
  3862. From Thomas Bogendoerfer <tsbogend@bigbug.franken.de>.
  3863. Wed May 15 00:29:37 1996 J. Richard Sladkey <jrs@world.std.com>
  3864. * version.c: Version 3.0.9 is released.
  3865. * config.in, config.sub, install-sh: Upgrade to autoconf 2.10.
  3866. * linux/dummy.h, linux/syscallent.h, linux/syscall.h: Add recent
  3867. Linux kernel version system calls.
  3868. Wed Mar 13 01:03:38 1996 J. Richard Sladkey <jrs@world.std.com>
  3869. * ipc.c [SUNOS4]: Add SunOS support for decoding IPC calls.
  3870. * syscall.c [SUNOS4]: Compile decode_subcall on SunOS and
  3871. decode IPC calls using it.
  3872. * sunos4/dummy.h: Alias sys_semop to printargs.
  3873. * sunos4/syscall.h: Add new pseudo syscalls for IPC.
  3874. * sunos4/syscallent.h: Include new subcalls for IPC.
  3875. From Matthias Pfaller <leo@dachau.marco.de>.
  3876. Tue Feb 13 22:08:25 1996 J. Richard Sladkey <jrs@world.std.com>
  3877. * version.c: Version 3.0.8 is released.
  3878. * time.c [LINUX]: Explicitly include linux/version.h.
  3879. * strace.c (main): Don't let them even *try* to
  3880. get strace to attach to itself since some systems
  3881. don't handle this case very gracefully.
  3882. Reported by David S. Miller <davem@caip.rutgers.edu>.
  3883. * Makefile.in (distclean): Fix it for subdirectories.
  3884. * sunos4/syscallent.h, svr4/syscallent.h: Fill in the new
  3885. sys_flags member for each defined system call.
  3886. Fri Dec 8 01:17:28 1995 Rick Sladkey <jrs@world.std.com>
  3887. * defs.h (TRACE_*): New flags to describe what class
  3888. of system call each system call is.
  3889. (sysent): Add sys_flags member.
  3890. * syscall.c (sysent): Define (and later undef) abbreviations
  3891. for the system call class flags.
  3892. (lookup_class): New function to translate strings to
  3893. system call class flags.
  3894. (qualify): Handle new system call class mechanism.
  3895. * linux/syscallent.h: Fill in the new sys_flags member
  3896. for each defined system call.
  3897. * defs.h (print_sock): Remove redundant and non-K&R C
  3898. compatible prototype. From Juergen Weigert
  3899. <jnweiger@immd4.informatik.uni-erlangen.de>.
  3900. Thu Dec 7 01:17:40 1995 Rick Sladkey <jrs@world.std.com>
  3901. * linux/ioctlent.sh: Tweak to improve ioctl accuracy.
  3902. From Michael E Chastain <mec@duracef.shout.net>.
  3903. * system.c (includes) [LINUX]: Add linux/nfs.h for recent
  3904. kernels. From Michael E Chastain <mec@duracef.shout.net>.
  3905. Wed Dec 6 21:52:28 1995 Rick Sladkey <jrs@world.std.com>
  3906. * file.c (sprintfstype): Enclose string result in double
  3907. quotes.
  3908. * time.c (sys_adjtimex) [LINUX]: Conditionalize
  3909. constantly evolving timex structure.
  3910. From Aaron Ucko <UCKO@VAX1.ROCKHURST.EDU>.
  3911. * defs.h, syscall.c, strace.c: Rename syscall to
  3912. trace_syscall and change prototype and all callers
  3913. because of broken Linux shared libraries.
  3914. From Aaron Ucko <UCKO@VAX1.ROCKHURST.EDU>.
  3915. * Makefile.in (clean): Check for a file with test -f not
  3916. test -d. From Aaron Ucko <UCKO@VAX1.ROCKHURST.EDU>.
  3917. Tue Sep 26 02:32:31 1995 Rick Sladkey <jrs@world.std.com>
  3918. * version.c: Version 3.0.7 is released.
  3919. * util.c (string_quote): Fix thinko which caused core
  3920. dumps for strings with quotes in them.
  3921. Reported by Marty Leisner <leisner@sdsp.mc.xerox.com>.
  3922. * linux/Makefile.in (errnoent.h rule): Grab all errno.h
  3923. files from /usr/include, not just the linux one.
  3924. From Michael E Chastain <mec@duracef.shout.net>.
  3925. * linux/errnoent.sh: Total rewrite to handle more ioctls with
  3926. fewer false positives on more kernel flavors.
  3927. From Michael E Chastain <mec@duracef.shout.net>.
  3928. Mon Sep 4 01:29:22 1995 Rick Sladkey <jrs@world.std.com>
  3929. * version.c: Version 3.0.6 is released.
  3930. * linux/dummy.h, linux/syscall.h, linux/syscallent.h: Add
  3931. sys_msync.
  3932. * mem.c (mctl_funcs, mctl_lockas, sys_mctl): Conditionalize
  3933. on MC_SYNC instead of HAVE_MCTL.
  3934. (mctl_sync): Conditionalize on MS_ASYNC instead of HAVE_MCTL.
  3935. (sys_msync): New function.
  3936. Sat Sep 2 12:06:04 1995 Rick Sladkey <jrs@world.std.com>
  3937. * linux/dummy.h, linux/syscall.h, linux/syscallent.h: Add
  3938. sys_flock and sys_getdents.
  3939. * desc.c (flockcmds, sys_flock): Conditionalize on LOCK_SH
  3940. not SUNOS4.
  3941. * file.c (sys_getdents): Define unconditionally and handle
  3942. LINUX case.
  3943. * strace.c (main): Disallow username option unless both real
  3944. and effective uids are root.
  3945. Wed Aug 30 01:29:58 1995 Rick Sladkey <jrs@world.std.com>
  3946. * strace.c (main): Ensure that run_uid and run_gid are
  3947. always set to something meaningful.
  3948. (main, newoutf) [!SVR4]: Swap real and effective uids while
  3949. opening any output files.
  3950. (main) [!SVR4]: Treat effective uid of root as a request
  3951. to handle suid binaries correctly using the real uid of
  3952. the invoking user.
  3953. Sat Aug 19 00:06:08 1995 Rick Sladkey <jrs@world.std.com>
  3954. * Makefile.in: Add `|| true' to clean rule because
  3955. although GNU make 3.74 uses `sh -c' to invoke commands
  3956. every other make in the world uses `sh -ec'.
  3957. * syscall.c (syscall) [SVR4, MIPS]: The fifth and subsequent
  3958. arguments appear to be stored on the stack, not in the
  3959. registers following A3 (empirical result).
  3960. * defs.h: Add prototype for printsock.
  3961. * svr4/dummy.h: Remove generic handling of sys_mount.
  3962. * system.c [SVR4, MIPS]: Include several system headers to cleanly
  3963. get access to SGI mount information.
  3964. (mount_flags, nfs_flags) [SVR4, MIPS]: New objects.
  3965. (sys_mount) [SVR4, MIPS]: New function.
  3966. (sys_mount) [SVR4, !MIPS]: New function.
  3967. Tue Jul 4 00:30:34 1995 Rick Sladkey <jrs@world.std.com>
  3968. * version.c: Version 3.0.5 is released.
  3969. * desc.c, resource.c, strace.c, syscall.c, time.c: Cast tv_sec and
  3970. tv_usec members to long when using printf.
  3971. * ipc.c: Omit define of __KERNEL__.
  3972. ({MSG,SEM,SHM}_{STAT,INFO}): Explicitly define those things we
  3973. want which __KERNEL__ used to provide.
  3974. (sys_msgrcv): Change reference to ipc_kludge structure to
  3975. look-alike ipc_wrapper to avoid dependence on __KERNEL__.
  3976. mem.c (mmap_flags) [MAP_{GROWSDOWN,DENYWRITE,EXECUTABLE}]: Add
  3977. Linux specific options.
  3978. syscall.c: Use SYS_ERRLIST_DECLARED instead of guessing.
  3979. [E{RESTART{SYS,NO{INTR,HAND}},NOIOCTLCMD}]: Explicitly define
  3980. instead of depending of __KERNEL__.
  3981. term.c: Cast c_{i,o,c,l}flag to long when using printf.
  3982. Tue Jun 6 00:27:48 1995 Rick Sladkey <jrs@world.std.com>
  3983. * aclocal.m4 (AC_DECL_SYS_ERRLIST, AC_DECL__SYS_SIGLIST): New.
  3984. * configure.in: Call AC_DECL_SYS_ERRLIST, AC_DECL_SYS_SIGLIST,
  3985. and AC_DECL__SYS_SIGLIST.
  3986. * acconfig.h (SYS_ERRLIST_DECLARED): New.
  3987. * strace.c (strerror): Use SYS_ERRLIST_DECLARED.
  3988. (strsignal): Use SYS_SIGLIST_DECLARED.
  3989. net.c (sys_socket): Omit inadvertent surplus comma when
  3990. protocol family isn't PF_INET.
  3991. util.c (dumpstr): Fix incorrect printing of one too many
  3992. characters when the length is not an even multiple of 16 bytes.
  3993. Reported by Juergen Weigert
  3994. <jnweiger@immd4.informatik.uni-erlangen.de>.
  3995. Thu May 4 23:37:47 1995 Rick Sladkey <jrs@world.std.com>
  3996. * ioctl.c (compare): Change prototype to match POSIX qsort.
  3997. * signal.c (sigishandled) [SVR4]: Omit everything after return.
  3998. * strace.c (trace) [SVR4]: Break out of for loop instead of
  3999. returning when finished so final return statement is executed.
  4000. * syscall.c (internal_syscall): Add more SYS_wait* variations.
  4001. (syscall) [LINUX]: Correct typo which commented out the M68K
  4002. argument to ifdef.
  4003. * util.c (printstr): Cast unsigned char pointer argument
  4004. to char pointer in umovestr call.
  4005. (dumpstr): Likewise for umoven.
  4006. Wed May 3 01:10:56 1995 Rick Sladkey <jrs@world.std.com>
  4007. * version.c: Version 3.0.4 is released.
  4008. * signal.c (sys_sigblock): Move after the definition of
  4009. sys_sigsetmask that it calls to avoid an implicit declaration.
  4010. * stream.c (transport_user_options, transport_server_options):
  4011. Only needed if TI_BIND is defined.
  4012. * configure.in: Add -Wno-implicit to WARNFLAGS on SunOS 4.x.
  4013. * process.c (internal_fork) [SVR4]: Fix a typo that omitted
  4014. the tcp arguement from the call to exiting. Add getrval2
  4015. check so no fork processing is done in the child.
  4016. (printwaitn): Initialize exited so that its value is defined
  4017. for all flows of execution.
  4018. Tue May 2 22:39:42 1995 Rick Sladkey <jrs@world.std.com>
  4019. * linux/dummy.h: Add aliases for sysfs, personality, afs_syscall,
  4020. setfsuid, setfsgid, and _llseek syscalls.
  4021. * linux/syscall.h: Add prototypes for them.
  4022. * linux/syscallent.h: Add them to the syscall entries table.
  4023. * system.c (headers) [LINUX]: Include linux/unistd.h to get __NR_*
  4024. defines and conditionally include linux/personality.h if
  4025. __NR_personality is defined.
  4026. (personality_options) [LINUX]: New table.
  4027. (sys_personality) [LINUX]: New function.
  4028. Tue May 2 00:20:39 1995 Rick Sladkey <jrs@world.std.com>
  4029. * strace.c (trace) [!SVR4]: Change forever loop to one predicated
  4030. on the number of traced processes so that we can have untraced
  4031. children (e.g. via popen).
  4032. * strace (main) [!SVR4]: Call fake_execve to get the actual
  4033. exec and its arguments into the trace.
  4034. (environ): Declare it.
  4035. * process.c (fake_execve): New function.
  4036. (headers): Include sys/syscall.h to get SYS_* defines.
  4037. * process.c (sys_execv, sys_execve): Surround argument annotations
  4038. with C comment delimiters.
  4039. (printargv, printargc): The arg vector is an array of char pointers
  4040. not ints.
  4041. * strace.c (printleader): Also check for multiple -p arguments
  4042. when deciding whether to print the pid field.
  4043. * strace.c (strerror) [!HAVE_STRERROR]: New function.
  4044. * defs.h (strerror, strsignal): Add these prototypes if we provide
  4045. the functions.
  4046. * configure.in (AC_CHECK_FUNCS): Add strerror.
  4047. * strace.c (main, proc_poller): Add SIGPIPE to the list of caught
  4048. and blocked signals.
  4049. * strace.c (main): Add username option. Verify they are root before
  4050. letting them use it. Look up the ids in the password file. Set
  4051. them just before executing the program.
  4052. From Reuben Sumner <rasumner@undergrad.math.uwaterloo.ca>.
  4053. Sat Apr 29 00:09:56 1995 Rick Sladkey <jrs@world.std.com>
  4054. * version.c: Version 3.0.3 is released.
  4055. * system.c (mount_flags) [LINUX]: Omit duplicated MS_NOSUID entry.
  4056. From Reuben Sumner <rasumner@undergrad.math.uwaterloo.ca>.
  4057. * strace.c (outfname): Initialize to NULL.
  4058. (main): Defer output file processing until after arguments.
  4059. Allow either a pipe or a bang for command arguments.
  4060. Check if outfname is NULL instead of checking outf for stderr.
  4061. Reinitialize each startup TCB's outf to fix -p/-o ordering bug.
  4062. (droptcb): Reset close TCB's outf to NULL instead of stderr.
  4063. (tprintf): Avoid calling vfprintf if outf is NULL.
  4064. * strace.c (main): Use popen if -o argument begins with a pipe.
  4065. From Marty Leisner <leisner@sdsp.mc.xerox.com>.
  4066. * process.c (printstatus): Fix a typo where WIFSIGNALED was meant
  4067. but WIFSTOPPED was used.
  4068. * Makefile.in: Add an EXTRA_DEFS variable and use it in the .c.o
  4069. rule to prevent the comment from being untrue.
  4070. Fri Apr 28 22:01:56 1995 Rick Sladkey <jrs@world.std.com>
  4071. * strace.c (sys_exit): Move follow fork code to internal_exit.
  4072. (sys_fork): Move follow fork code to internal_fork.
  4073. (sys_execv, sys_execve): Move follow fork code to internal_exec.
  4074. (sys_waitpid, sys_wait4): Move follow fork code to internal_wait.
  4075. (vforking): Remove this static variable and check scno in
  4076. internal_fork instead.
  4077. (internal_exit, internal_fork, internal_exec, internal_wait): New
  4078. functions.
  4079. * defs.h: Add prototypes for the new internal_* functions.
  4080. * syscall.c (syscall): Move syscall entering trace qualifier check
  4081. and reprint checking after context decoding and precede them with
  4082. a call to internal_syscall. Precede syscall exiting trace
  4083. qualifier check with a call to internal_syscall.
  4084. (internal_syscall): New function.
  4085. * defs.h (struct tcb): Make scno signed.
  4086. * strace.c (syscall) Make u_error signed.
  4087. [LINUX, I386]: Avoid unsigned cast in eax check.
  4088. * syscall.c (sys_indir): Make i, scno, and nargs signed.
  4089. * desc.c (sys_select): Make cumlen unsigned
  4090. Mon Apr 24 23:52:47 1995 Rick Sladkey <jrs@world.std.com>
  4091. * net.c (socktypes): Add SOCK_PACKET.
  4092. Sun Apr 2 23:50:39 1995 Rick Sladkey <jrs@world.std.com>
  4093. * Makefile (clean): Check explicitly for a Makefile in subdirs
  4094. before running make in them.
  4095. Sun Mar 26 12:37:21 1995 Rick Sladkey <jrs@world.std.com>
  4096. * strace.c [MIPS] (proc_open): Conditionalize run on MIPS.
  4097. [MIPS] (detach): Initialize error for MIPS case.
  4098. (trace): Initialize ioctl_result and ioctl_errno for overly helpful
  4099. compilers.
  4100. * syscall.c (decode_subcall): Move variable i into conditionals
  4101. that use use it.
  4102. * system.c (syssgi_options): Conditionalize SGI_RECVLMSG and
  4103. SGI_SET_FPDEBUG that SGI decided to drop. I don't have the stomach
  4104. to change them all.
  4105. * term.c (term_ioctl): Force [c_[iocl]flags members to long before
  4106. printing since we don't know what the size of their type is.
  4107. * util.c [SVR4, MIPS] (umoven): Prevent MIPS from using pread even
  4108. if autoconf detects it since it seems to either not work or do
  4109. something else entirely on Irix 5.3.
  4110. Sun Mar 26 00:01:11 1995 Rick Sladkey <jrs@world.std.com>
  4111. * version.c: Version 3.0.2 is released.
  4112. * linux/dummy.h: Make sys_fchdir like sys_close instead of printargs
  4113. so that the file descriptor arg is decimal.
  4114. Sat Mar 25 22:50:13 1995 Rick Sladkey <jrs@world.std.com>
  4115. * net.c [LINUX] (protocols): Explicitly define all IPPROTO_* entries
  4116. because on Linux they are enumerators.
  4117. * system.c [LINUX] (mount_flags): Handle renaming of MS_SYNC to
  4118. MS_SYNCHRONOUS.
  4119. * util.c (printxval): When there is no translation, print the actual
  4120. number first and the the default value as a C comment.
  4121. * net.c (sys_send, sys_sendto, sys_sendmsg, sys_getsockopt,
  4122. sys_setsockopt): Change first argument from unsigned to signed to
  4123. cater to the frequent practice of calling system calls with a file
  4124. descriptor of -1.
  4125. * mem.c (sys_mmap): Likewise.
  4126. Sun Mar 19 13:53:52 1995 Rick Sladkey <jrs@world.std.com>
  4127. * signal.c [LINUX] (signalent): Handle old and new values of SIGIO.
  4128. Sun Dec 11 22:51:51 1994 Rick Sladkey <jrs@world.std.com>
  4129. * version.c: Version 3.0.1 is released.
  4130. * Makefile.in, configure.in, aclocal.m4: Changes for autoconf 2.0.
  4131. * config.guess, config.guess: Update from the FSF.
  4132. * install-sh: New from the FSF.
  4133. Mon Dec 5 20:51:29 1994 Rick Sladkey <jrs@world.std.com>
  4134. * Makefile.in: Add m68k arch.
  4135. * acconfig.h (M68K): Add m68k define.
  4136. * configure.in: Add detection of arch m68k.
  4137. * process.c [M68K] (struct_user_offsets): Support m68k registers and
  4138. offsets.
  4139. * signal.c [M68K] (sigcontext_struct): Support m68k sigcontext
  4140. structure.
  4141. [M68K] (sys_sigreturn): Support m68k sigreturn handling.
  4142. * syscall.c [M68K] (syscall): Support m68k syscall number register
  4143. and errno in d0 instead of eax.
  4144. * util.c [M68K] (getpc, printcall, setbpt, clearbpt): Support m68k
  4145. program counter in PT_PC instead of EIP.
  4146. [M68K] (LOOP): Support m68k loop instruction.
  4147. From Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>.
  4148. * mem.c [MAP_ANONYMOUS] (mmap_flags): Correct inadvertent reference
  4149. to MAP_FIXED instead of MAP_ANONYMOUS.
  4150. From Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>.
  4151. * signal.c [LINUX] (signalent): Signal 30 is now SIGPWR.
  4152. From Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>.
  4153. Mon Dec 5 01:05:46 1994 Rick Sladkey <jrs@world.std.com>
  4154. * defs.h (tprintf): Fix typo in non-gcc ansi prototype for tprintf.
  4155. Reported by Thanh Ma <tma@encore.com>.
  4156. * strace.c (cleanup): Send SIGCONT before SIGTERM because Linux
  4157. 1.1.62 doesn't continue a traced child when the parent exits.
  4158. Reported by Matt Day <mday@artisoft.com>.
  4159. * system.c [LINUX]: Include netinet/in.h before arpa/inet.h.
  4160. * util.c (printstr): Fix longstanding bug in notating string
  4161. continuation.
  4162. * strace.c [SVR4] (proc_open): Specifically wait for the child the
  4163. child to go into the execve syscall to avoid spurious traces.
  4164. [LINUX] (detach): Conditionalize the status variable.
  4165. Sun Dec 4 23:21:42 1994 Rick Sladkey <jrs@world.std.com>
  4166. * Makefile.in: Add mips arch.
  4167. * acconfig.h (MIPS): Add mips define.
  4168. * configure.in: Add detection of opsys irix5 and arch mips. Check
  4169. for prctl function.
  4170. Check for sys/sysconfig.h header.
  4171. * defs.h (MAX_ARGS): Bump maximum syscall arguments from 8 to 32.
  4172. * file.c [SVR4]: Include sys/cred.h.
  4173. (access_flags): Update access flags for SGI.
  4174. (sprinttime): Change type of sprinttime argument from unsigned
  4175. long to time_t.
  4176. * process.c [HAVE_PRCTL]: Include sys/prctl.h.
  4177. [HAVE_PRCTL] (prctl_options, sys_prctl): New for SGI.
  4178. (printsiginfo): Conditionally compile SI_TIMER and SI_MESGQ.
  4179. Cast si_band member to long before printing.
  4180. * signal.c (sigact_flags): Add _SA_BSDCALL for SGI.
  4181. (sigprocmaskcmds): Add SIG_SETMASK32 for SGI.
  4182. * strace.c [SVR4] [MIPS]:
  4183. (foobar): New dummy signal handler.
  4184. (main): Install a dummy signal handler in the child before pausing
  4185. to work around an SGI bug in PRSABORT.
  4186. (proc_open): Send a interrupt to the child instead of aborting the
  4187. syscall which doesn't work on Irix5.2.
  4188. * svr4/dummy.h: Add new unfinished SGI syscalls
  4189. (e.g. sys_sysmp, sys_sginap, etc.). Handle some SGI syscalls like
  4190. existing calls (e.g. sys_ksigaction like sys_sigaction).
  4191. Printargs does the print thing for sys_sethostid.
  4192. * svr4/syscall.h: Declare all new SGI syscalls.
  4193. (SGI_KLUDGE): Define syscall table starting index to be 1 for SGI
  4194. and add it to all subcall entry points.
  4195. (SYS_pgrpsys_subcall, SYS_sigcall_subcall, SYS_context): Don't
  4196. decode as subcalls on MIPS. Instead, use the normal syscalls.
  4197. * svr4/syscallent.h [MIPS]: Lead syscall table with a dummy entry
  4198. since SGI syscall numbers are off by one.
  4199. [MIPS] (sys_pgrpsys): Rename to sys_setpgrp on SGI.
  4200. [MIPS] (sys_xenix): Rename to sys_syssgi on SGI.
  4201. [MIPS] (sys_sysmachine): Rename to sys_sysmips on SGI.
  4202. [MIPS]: Conditionalize SVR4 extension into SGI and Solaris classes.
  4203. * syscall.c (dumpio): Validate descriptor against MAX_QUALS.
  4204. [HAVE_PR_SYSCALL] (syscall): Conditionalize SYS_vfork.
  4205. [MIPS] (syscall): Add SGI section for decoding u_error and u_rval.
  4206. Add workaround for broken SGI pr_sysarg on syscall entry.
  4207. [SVR4] (syscall): Conditionalize subcall decoding for
  4208. SYS_ptrpsys_subcall, SYS_sigcall_subcall and SYS_context_subcall.
  4209. [SVR4] [MIPS] (getrval2): Handle SGI.
  4210. * syscallent.sh: Dork the sed line to be choosier about SYS_ lines.
  4211. * system.c [HAVE_SYSCONFIG_H]: Include sys/sysconfig.h.
  4212. [MIPS] (syssgi_options, sys_syssgi): New for SGI.