netbsd_syscall_hooks.h 347 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005
  1. //===-- netbsd_syscall_hooks.h --------------------------------------------===//
  2. //
  3. // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
  4. // See https://llvm.org/LICENSE.txt for license information.
  5. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
  6. //
  7. //===----------------------------------------------------------------------===//
  8. //
  9. // This file is a part of public sanitizer interface.
  10. //
  11. // System call handlers.
  12. //
  13. // Interface methods declared in this header implement pre- and post- syscall
  14. // actions for the active sanitizer.
  15. // Usage:
  16. // __sanitizer_syscall_pre_getfoo(...args...);
  17. // long long res = syscall(SYS_getfoo, ...args...);
  18. // __sanitizer_syscall_post_getfoo(res, ...args...);
  19. //
  20. // DO NOT EDIT! THIS FILE HAS BEEN GENERATED!
  21. //
  22. // Generated with: generate_netbsd_syscalls.awk
  23. // Generated date: 2020-09-10
  24. // Generated from: syscalls.master,v 1.306 2020/08/14 00:53:16 riastradh Exp
  25. //
  26. //===----------------------------------------------------------------------===//
  27. #ifndef SANITIZER_NETBSD_SYSCALL_HOOKS_H
  28. #define SANITIZER_NETBSD_SYSCALL_HOOKS_H
  29. #define __sanitizer_syscall_pre_syscall(code, arg0, arg1, arg2, arg3, arg4, \
  30. arg5, arg6, arg7) \
  31. __sanitizer_syscall_pre_impl_syscall( \
  32. (long long)(code), (long long)(arg0), (long long)(arg1), \
  33. (long long)(arg2), (long long)(arg3), (long long)(arg4), \
  34. (long long)(arg5), (long long)(arg6), (long long)(arg7))
  35. #define __sanitizer_syscall_post_syscall(res, code, arg0, arg1, arg2, arg3, \
  36. arg4, arg5, arg6, arg7) \
  37. __sanitizer_syscall_post_impl_syscall( \
  38. res, (long long)(code), (long long)(arg0), (long long)(arg1), \
  39. (long long)(arg2), (long long)(arg3), (long long)(arg4), \
  40. (long long)(arg5), (long long)(arg6), (long long)(arg7))
  41. #define __sanitizer_syscall_pre_exit(rval) \
  42. __sanitizer_syscall_pre_impl_exit((long long)(rval))
  43. #define __sanitizer_syscall_post_exit(res, rval) \
  44. __sanitizer_syscall_post_impl_exit(res, (long long)(rval))
  45. #define __sanitizer_syscall_pre_fork() __sanitizer_syscall_pre_impl_fork()
  46. #define __sanitizer_syscall_post_fork(res) \
  47. __sanitizer_syscall_post_impl_fork(res)
  48. #define __sanitizer_syscall_pre_read(fd, buf, nbyte) \
  49. __sanitizer_syscall_pre_impl_read((long long)(fd), (long long)(buf), \
  50. (long long)(nbyte))
  51. #define __sanitizer_syscall_post_read(res, fd, buf, nbyte) \
  52. __sanitizer_syscall_post_impl_read(res, (long long)(fd), (long long)(buf), \
  53. (long long)(nbyte))
  54. #define __sanitizer_syscall_pre_write(fd, buf, nbyte) \
  55. __sanitizer_syscall_pre_impl_write((long long)(fd), (long long)(buf), \
  56. (long long)(nbyte))
  57. #define __sanitizer_syscall_post_write(res, fd, buf, nbyte) \
  58. __sanitizer_syscall_post_impl_write(res, (long long)(fd), (long long)(buf), \
  59. (long long)(nbyte))
  60. #define __sanitizer_syscall_pre_open(path, flags, mode) \
  61. __sanitizer_syscall_pre_impl_open((long long)(path), (long long)(flags), \
  62. (long long)(mode))
  63. #define __sanitizer_syscall_post_open(res, path, flags, mode) \
  64. __sanitizer_syscall_post_impl_open(res, (long long)(path), \
  65. (long long)(flags), (long long)(mode))
  66. #define __sanitizer_syscall_pre_close(fd) \
  67. __sanitizer_syscall_pre_impl_close((long long)(fd))
  68. #define __sanitizer_syscall_post_close(res, fd) \
  69. __sanitizer_syscall_post_impl_close(res, (long long)(fd))
  70. #define __sanitizer_syscall_pre_compat_50_wait4(pid, status, options, rusage) \
  71. __sanitizer_syscall_pre_impl_compat_50_wait4( \
  72. (long long)(pid), (long long)(status), (long long)(options), \
  73. (long long)(rusage))
  74. #define __sanitizer_syscall_post_compat_50_wait4(res, pid, status, options, \
  75. rusage) \
  76. __sanitizer_syscall_post_impl_compat_50_wait4( \
  77. res, (long long)(pid), (long long)(status), (long long)(options), \
  78. (long long)(rusage))
  79. #define __sanitizer_syscall_pre_compat_43_ocreat(path, mode) \
  80. __sanitizer_syscall_pre_impl_compat_43_ocreat((long long)(path), \
  81. (long long)(mode))
  82. #define __sanitizer_syscall_post_compat_43_ocreat(res, path, mode) \
  83. __sanitizer_syscall_post_impl_compat_43_ocreat(res, (long long)(path), \
  84. (long long)(mode))
  85. #define __sanitizer_syscall_pre_link(path, link) \
  86. __sanitizer_syscall_pre_impl_link((long long)(path), (long long)(link))
  87. #define __sanitizer_syscall_post_link(res, path, link) \
  88. __sanitizer_syscall_post_impl_link(res, (long long)(path), (long long)(link))
  89. #define __sanitizer_syscall_pre_unlink(path) \
  90. __sanitizer_syscall_pre_impl_unlink((long long)(path))
  91. #define __sanitizer_syscall_post_unlink(res, path) \
  92. __sanitizer_syscall_post_impl_unlink(res, (long long)(path))
  93. /* syscall 11 has been skipped */
  94. #define __sanitizer_syscall_pre_chdir(path) \
  95. __sanitizer_syscall_pre_impl_chdir((long long)(path))
  96. #define __sanitizer_syscall_post_chdir(res, path) \
  97. __sanitizer_syscall_post_impl_chdir(res, (long long)(path))
  98. #define __sanitizer_syscall_pre_fchdir(fd) \
  99. __sanitizer_syscall_pre_impl_fchdir((long long)(fd))
  100. #define __sanitizer_syscall_post_fchdir(res, fd) \
  101. __sanitizer_syscall_post_impl_fchdir(res, (long long)(fd))
  102. #define __sanitizer_syscall_pre_compat_50_mknod(path, mode, dev) \
  103. __sanitizer_syscall_pre_impl_compat_50_mknod( \
  104. (long long)(path), (long long)(mode), (long long)(dev))
  105. #define __sanitizer_syscall_post_compat_50_mknod(res, path, mode, dev) \
  106. __sanitizer_syscall_post_impl_compat_50_mknod( \
  107. res, (long long)(path), (long long)(mode), (long long)(dev))
  108. #define __sanitizer_syscall_pre_chmod(path, mode) \
  109. __sanitizer_syscall_pre_impl_chmod((long long)(path), (long long)(mode))
  110. #define __sanitizer_syscall_post_chmod(res, path, mode) \
  111. __sanitizer_syscall_post_impl_chmod(res, (long long)(path), (long long)(mode))
  112. #define __sanitizer_syscall_pre_chown(path, uid, gid) \
  113. __sanitizer_syscall_pre_impl_chown((long long)(path), (long long)(uid), \
  114. (long long)(gid))
  115. #define __sanitizer_syscall_post_chown(res, path, uid, gid) \
  116. __sanitizer_syscall_post_impl_chown(res, (long long)(path), \
  117. (long long)(uid), (long long)(gid))
  118. #define __sanitizer_syscall_pre_break(nsize) \
  119. __sanitizer_syscall_pre_impl_break((long long)(nsize))
  120. #define __sanitizer_syscall_post_break(res, nsize) \
  121. __sanitizer_syscall_post_impl_break(res, (long long)(nsize))
  122. #define __sanitizer_syscall_pre_compat_20_getfsstat(buf, bufsize, flags) \
  123. __sanitizer_syscall_pre_impl_compat_20_getfsstat( \
  124. (long long)(buf), (long long)(bufsize), (long long)(flags))
  125. #define __sanitizer_syscall_post_compat_20_getfsstat(res, buf, bufsize, flags) \
  126. __sanitizer_syscall_post_impl_compat_20_getfsstat( \
  127. res, (long long)(buf), (long long)(bufsize), (long long)(flags))
  128. #define __sanitizer_syscall_pre_compat_43_olseek(fd, offset, whence) \
  129. __sanitizer_syscall_pre_impl_compat_43_olseek( \
  130. (long long)(fd), (long long)(offset), (long long)(whence))
  131. #define __sanitizer_syscall_post_compat_43_olseek(res, fd, offset, whence) \
  132. __sanitizer_syscall_post_impl_compat_43_olseek( \
  133. res, (long long)(fd), (long long)(offset), (long long)(whence))
  134. #define __sanitizer_syscall_pre_getpid() __sanitizer_syscall_pre_impl_getpid()
  135. #define __sanitizer_syscall_post_getpid(res) \
  136. __sanitizer_syscall_post_impl_getpid(res)
  137. #define __sanitizer_syscall_pre_compat_40_mount(type, path, flags, data) \
  138. __sanitizer_syscall_pre_impl_compat_40_mount( \
  139. (long long)(type), (long long)(path), (long long)(flags), \
  140. (long long)(data))
  141. #define __sanitizer_syscall_post_compat_40_mount(res, type, path, flags, data) \
  142. __sanitizer_syscall_post_impl_compat_40_mount( \
  143. res, (long long)(type), (long long)(path), (long long)(flags), \
  144. (long long)(data))
  145. #define __sanitizer_syscall_pre_unmount(path, flags) \
  146. __sanitizer_syscall_pre_impl_unmount((long long)(path), (long long)(flags))
  147. #define __sanitizer_syscall_post_unmount(res, path, flags) \
  148. __sanitizer_syscall_post_impl_unmount(res, (long long)(path), \
  149. (long long)(flags))
  150. #define __sanitizer_syscall_pre_setuid(uid) \
  151. __sanitizer_syscall_pre_impl_setuid((long long)(uid))
  152. #define __sanitizer_syscall_post_setuid(res, uid) \
  153. __sanitizer_syscall_post_impl_setuid(res, (long long)(uid))
  154. #define __sanitizer_syscall_pre_getuid() __sanitizer_syscall_pre_impl_getuid()
  155. #define __sanitizer_syscall_post_getuid(res) \
  156. __sanitizer_syscall_post_impl_getuid(res)
  157. #define __sanitizer_syscall_pre_geteuid() __sanitizer_syscall_pre_impl_geteuid()
  158. #define __sanitizer_syscall_post_geteuid(res) \
  159. __sanitizer_syscall_post_impl_geteuid(res)
  160. #define __sanitizer_syscall_pre_ptrace(req, pid, addr, data) \
  161. __sanitizer_syscall_pre_impl_ptrace((long long)(req), (long long)(pid), \
  162. (long long)(addr), (long long)(data))
  163. #define __sanitizer_syscall_post_ptrace(res, req, pid, addr, data) \
  164. __sanitizer_syscall_post_impl_ptrace(res, (long long)(req), \
  165. (long long)(pid), (long long)(addr), \
  166. (long long)(data))
  167. #define __sanitizer_syscall_pre_recvmsg(s, msg, flags) \
  168. __sanitizer_syscall_pre_impl_recvmsg((long long)(s), (long long)(msg), \
  169. (long long)(flags))
  170. #define __sanitizer_syscall_post_recvmsg(res, s, msg, flags) \
  171. __sanitizer_syscall_post_impl_recvmsg(res, (long long)(s), (long long)(msg), \
  172. (long long)(flags))
  173. #define __sanitizer_syscall_pre_sendmsg(s, msg, flags) \
  174. __sanitizer_syscall_pre_impl_sendmsg((long long)(s), (long long)(msg), \
  175. (long long)(flags))
  176. #define __sanitizer_syscall_post_sendmsg(res, s, msg, flags) \
  177. __sanitizer_syscall_post_impl_sendmsg(res, (long long)(s), (long long)(msg), \
  178. (long long)(flags))
  179. #define __sanitizer_syscall_pre_recvfrom(s, buf, len, flags, from, \
  180. fromlenaddr) \
  181. __sanitizer_syscall_pre_impl_recvfrom( \
  182. (long long)(s), (long long)(buf), (long long)(len), (long long)(flags), \
  183. (long long)(from), (long long)(fromlenaddr))
  184. #define __sanitizer_syscall_post_recvfrom(res, s, buf, len, flags, from, \
  185. fromlenaddr) \
  186. __sanitizer_syscall_post_impl_recvfrom( \
  187. res, (long long)(s), (long long)(buf), (long long)(len), \
  188. (long long)(flags), (long long)(from), (long long)(fromlenaddr))
  189. #define __sanitizer_syscall_pre_accept(s, name, anamelen) \
  190. __sanitizer_syscall_pre_impl_accept((long long)(s), (long long)(name), \
  191. (long long)(anamelen))
  192. #define __sanitizer_syscall_post_accept(res, s, name, anamelen) \
  193. __sanitizer_syscall_post_impl_accept(res, (long long)(s), (long long)(name), \
  194. (long long)(anamelen))
  195. #define __sanitizer_syscall_pre_getpeername(fdes, asa, alen) \
  196. __sanitizer_syscall_pre_impl_getpeername( \
  197. (long long)(fdes), (long long)(asa), (long long)(alen))
  198. #define __sanitizer_syscall_post_getpeername(res, fdes, asa, alen) \
  199. __sanitizer_syscall_post_impl_getpeername( \
  200. res, (long long)(fdes), (long long)(asa), (long long)(alen))
  201. #define __sanitizer_syscall_pre_getsockname(fdes, asa, alen) \
  202. __sanitizer_syscall_pre_impl_getsockname( \
  203. (long long)(fdes), (long long)(asa), (long long)(alen))
  204. #define __sanitizer_syscall_post_getsockname(res, fdes, asa, alen) \
  205. __sanitizer_syscall_post_impl_getsockname( \
  206. res, (long long)(fdes), (long long)(asa), (long long)(alen))
  207. #define __sanitizer_syscall_pre_access(path, flags) \
  208. __sanitizer_syscall_pre_impl_access((long long)(path), (long long)(flags))
  209. #define __sanitizer_syscall_post_access(res, path, flags) \
  210. __sanitizer_syscall_post_impl_access(res, (long long)(path), \
  211. (long long)(flags))
  212. #define __sanitizer_syscall_pre_chflags(path, flags) \
  213. __sanitizer_syscall_pre_impl_chflags((long long)(path), (long long)(flags))
  214. #define __sanitizer_syscall_post_chflags(res, path, flags) \
  215. __sanitizer_syscall_post_impl_chflags(res, (long long)(path), \
  216. (long long)(flags))
  217. #define __sanitizer_syscall_pre_fchflags(fd, flags) \
  218. __sanitizer_syscall_pre_impl_fchflags((long long)(fd), (long long)(flags))
  219. #define __sanitizer_syscall_post_fchflags(res, fd, flags) \
  220. __sanitizer_syscall_post_impl_fchflags(res, (long long)(fd), \
  221. (long long)(flags))
  222. #define __sanitizer_syscall_pre_sync() __sanitizer_syscall_pre_impl_sync()
  223. #define __sanitizer_syscall_post_sync(res) \
  224. __sanitizer_syscall_post_impl_sync(res)
  225. #define __sanitizer_syscall_pre_kill(pid, signum) \
  226. __sanitizer_syscall_pre_impl_kill((long long)(pid), (long long)(signum))
  227. #define __sanitizer_syscall_post_kill(res, pid, signum) \
  228. __sanitizer_syscall_post_impl_kill(res, (long long)(pid), (long long)(signum))
  229. #define __sanitizer_syscall_pre_compat_43_stat43(path, ub) \
  230. __sanitizer_syscall_pre_impl_compat_43_stat43((long long)(path), \
  231. (long long)(ub))
  232. #define __sanitizer_syscall_post_compat_43_stat43(res, path, ub) \
  233. __sanitizer_syscall_post_impl_compat_43_stat43(res, (long long)(path), \
  234. (long long)(ub))
  235. #define __sanitizer_syscall_pre_getppid() __sanitizer_syscall_pre_impl_getppid()
  236. #define __sanitizer_syscall_post_getppid(res) \
  237. __sanitizer_syscall_post_impl_getppid(res)
  238. #define __sanitizer_syscall_pre_compat_43_lstat43(path, ub) \
  239. __sanitizer_syscall_pre_impl_compat_43_lstat43((long long)(path), \
  240. (long long)(ub))
  241. #define __sanitizer_syscall_post_compat_43_lstat43(res, path, ub) \
  242. __sanitizer_syscall_post_impl_compat_43_lstat43(res, (long long)(path), \
  243. (long long)(ub))
  244. #define __sanitizer_syscall_pre_dup(fd) \
  245. __sanitizer_syscall_pre_impl_dup((long long)(fd))
  246. #define __sanitizer_syscall_post_dup(res, fd) \
  247. __sanitizer_syscall_post_impl_dup(res, (long long)(fd))
  248. #define __sanitizer_syscall_pre_pipe() __sanitizer_syscall_pre_impl_pipe()
  249. #define __sanitizer_syscall_post_pipe(res) \
  250. __sanitizer_syscall_post_impl_pipe(res)
  251. #define __sanitizer_syscall_pre_getegid() __sanitizer_syscall_pre_impl_getegid()
  252. #define __sanitizer_syscall_post_getegid(res) \
  253. __sanitizer_syscall_post_impl_getegid(res)
  254. #define __sanitizer_syscall_pre_profil(samples, size, offset, scale) \
  255. __sanitizer_syscall_pre_impl_profil((long long)(samples), (long long)(size), \
  256. (long long)(offset), (long long)(scale))
  257. #define __sanitizer_syscall_post_profil(res, samples, size, offset, scale) \
  258. __sanitizer_syscall_post_impl_profil(res, (long long)(samples), \
  259. (long long)(size), (long long)(offset), \
  260. (long long)(scale))
  261. #define __sanitizer_syscall_pre_ktrace(fname, ops, facs, pid) \
  262. __sanitizer_syscall_pre_impl_ktrace((long long)(fname), (long long)(ops), \
  263. (long long)(facs), (long long)(pid))
  264. #define __sanitizer_syscall_post_ktrace(res, fname, ops, facs, pid) \
  265. __sanitizer_syscall_post_impl_ktrace(res, (long long)(fname), \
  266. (long long)(ops), (long long)(facs), \
  267. (long long)(pid))
  268. #define __sanitizer_syscall_pre_compat_13_sigaction13(signum, nsa, osa) \
  269. __sanitizer_syscall_pre_impl_compat_13_sigaction13( \
  270. (long long)(signum), (long long)(nsa), (long long)(osa))
  271. #define __sanitizer_syscall_post_compat_13_sigaction13(res, signum, nsa, osa) \
  272. __sanitizer_syscall_post_impl_compat_13_sigaction13( \
  273. res, (long long)(signum), (long long)(nsa), (long long)(osa))
  274. #define __sanitizer_syscall_pre_getgid() __sanitizer_syscall_pre_impl_getgid()
  275. #define __sanitizer_syscall_post_getgid(res) \
  276. __sanitizer_syscall_post_impl_getgid(res)
  277. #define __sanitizer_syscall_pre_compat_13_sigprocmask13(how, mask) \
  278. __sanitizer_syscall_pre_impl_compat_13_sigprocmask13((long long)(how), \
  279. (long long)(mask))
  280. #define __sanitizer_syscall_post_compat_13_sigprocmask13(res, how, mask) \
  281. __sanitizer_syscall_post_impl_compat_13_sigprocmask13(res, (long long)(how), \
  282. (long long)(mask))
  283. #define __sanitizer_syscall_pre___getlogin(namebuf, namelen) \
  284. __sanitizer_syscall_pre_impl___getlogin((long long)(namebuf), \
  285. (long long)(namelen))
  286. #define __sanitizer_syscall_post___getlogin(res, namebuf, namelen) \
  287. __sanitizer_syscall_post_impl___getlogin(res, (long long)(namebuf), \
  288. (long long)(namelen))
  289. #define __sanitizer_syscall_pre___setlogin(namebuf) \
  290. __sanitizer_syscall_pre_impl___setlogin((long long)(namebuf))
  291. #define __sanitizer_syscall_post___setlogin(res, namebuf) \
  292. __sanitizer_syscall_post_impl___setlogin(res, (long long)(namebuf))
  293. #define __sanitizer_syscall_pre_acct(path) \
  294. __sanitizer_syscall_pre_impl_acct((long long)(path))
  295. #define __sanitizer_syscall_post_acct(res, path) \
  296. __sanitizer_syscall_post_impl_acct(res, (long long)(path))
  297. #define __sanitizer_syscall_pre_compat_13_sigpending13() \
  298. __sanitizer_syscall_pre_impl_compat_13_sigpending13()
  299. #define __sanitizer_syscall_post_compat_13_sigpending13(res) \
  300. __sanitizer_syscall_post_impl_compat_13_sigpending13(res)
  301. #define __sanitizer_syscall_pre_compat_13_sigaltstack13(nss, oss) \
  302. __sanitizer_syscall_pre_impl_compat_13_sigaltstack13((long long)(nss), \
  303. (long long)(oss))
  304. #define __sanitizer_syscall_post_compat_13_sigaltstack13(res, nss, oss) \
  305. __sanitizer_syscall_post_impl_compat_13_sigaltstack13(res, (long long)(nss), \
  306. (long long)(oss))
  307. #define __sanitizer_syscall_pre_ioctl(fd, com, data) \
  308. __sanitizer_syscall_pre_impl_ioctl((long long)(fd), (long long)(com), \
  309. (long long)(data))
  310. #define __sanitizer_syscall_post_ioctl(res, fd, com, data) \
  311. __sanitizer_syscall_post_impl_ioctl(res, (long long)(fd), (long long)(com), \
  312. (long long)(data))
  313. #define __sanitizer_syscall_pre_compat_12_oreboot(opt) \
  314. __sanitizer_syscall_pre_impl_compat_12_oreboot((long long)(opt))
  315. #define __sanitizer_syscall_post_compat_12_oreboot(res, opt) \
  316. __sanitizer_syscall_post_impl_compat_12_oreboot(res, (long long)(opt))
  317. #define __sanitizer_syscall_pre_revoke(path) \
  318. __sanitizer_syscall_pre_impl_revoke((long long)(path))
  319. #define __sanitizer_syscall_post_revoke(res, path) \
  320. __sanitizer_syscall_post_impl_revoke(res, (long long)(path))
  321. #define __sanitizer_syscall_pre_symlink(path, link) \
  322. __sanitizer_syscall_pre_impl_symlink((long long)(path), (long long)(link))
  323. #define __sanitizer_syscall_post_symlink(res, path, link) \
  324. __sanitizer_syscall_post_impl_symlink(res, (long long)(path), \
  325. (long long)(link))
  326. #define __sanitizer_syscall_pre_readlink(path, buf, count) \
  327. __sanitizer_syscall_pre_impl_readlink((long long)(path), (long long)(buf), \
  328. (long long)(count))
  329. #define __sanitizer_syscall_post_readlink(res, path, buf, count) \
  330. __sanitizer_syscall_post_impl_readlink(res, (long long)(path), \
  331. (long long)(buf), (long long)(count))
  332. #define __sanitizer_syscall_pre_execve(path, argp, envp) \
  333. __sanitizer_syscall_pre_impl_execve((long long)(path), (long long)(argp), \
  334. (long long)(envp))
  335. #define __sanitizer_syscall_post_execve(res, path, argp, envp) \
  336. __sanitizer_syscall_post_impl_execve(res, (long long)(path), \
  337. (long long)(argp), (long long)(envp))
  338. #define __sanitizer_syscall_pre_umask(newmask) \
  339. __sanitizer_syscall_pre_impl_umask((long long)(newmask))
  340. #define __sanitizer_syscall_post_umask(res, newmask) \
  341. __sanitizer_syscall_post_impl_umask(res, (long long)(newmask))
  342. #define __sanitizer_syscall_pre_chroot(path) \
  343. __sanitizer_syscall_pre_impl_chroot((long long)(path))
  344. #define __sanitizer_syscall_post_chroot(res, path) \
  345. __sanitizer_syscall_post_impl_chroot(res, (long long)(path))
  346. #define __sanitizer_syscall_pre_compat_43_fstat43(fd, sb) \
  347. __sanitizer_syscall_pre_impl_compat_43_fstat43((long long)(fd), \
  348. (long long)(sb))
  349. #define __sanitizer_syscall_post_compat_43_fstat43(res, fd, sb) \
  350. __sanitizer_syscall_post_impl_compat_43_fstat43(res, (long long)(fd), \
  351. (long long)(sb))
  352. #define __sanitizer_syscall_pre_compat_43_ogetkerninfo(op, where, size, arg) \
  353. __sanitizer_syscall_pre_impl_compat_43_ogetkerninfo( \
  354. (long long)(op), (long long)(where), (long long)(size), \
  355. (long long)(arg))
  356. #define __sanitizer_syscall_post_compat_43_ogetkerninfo(res, op, where, size, \
  357. arg) \
  358. __sanitizer_syscall_post_impl_compat_43_ogetkerninfo( \
  359. res, (long long)(op), (long long)(where), (long long)(size), \
  360. (long long)(arg))
  361. #define __sanitizer_syscall_pre_compat_43_ogetpagesize() \
  362. __sanitizer_syscall_pre_impl_compat_43_ogetpagesize()
  363. #define __sanitizer_syscall_post_compat_43_ogetpagesize(res) \
  364. __sanitizer_syscall_post_impl_compat_43_ogetpagesize(res)
  365. #define __sanitizer_syscall_pre_compat_12_msync(addr, len) \
  366. __sanitizer_syscall_pre_impl_compat_12_msync((long long)(addr), \
  367. (long long)(len))
  368. #define __sanitizer_syscall_post_compat_12_msync(res, addr, len) \
  369. __sanitizer_syscall_post_impl_compat_12_msync(res, (long long)(addr), \
  370. (long long)(len))
  371. #define __sanitizer_syscall_pre_vfork() __sanitizer_syscall_pre_impl_vfork()
  372. #define __sanitizer_syscall_post_vfork(res) \
  373. __sanitizer_syscall_post_impl_vfork(res)
  374. /* syscall 67 has been skipped */
  375. /* syscall 68 has been skipped */
  376. /* syscall 69 has been skipped */
  377. /* syscall 70 has been skipped */
  378. #define __sanitizer_syscall_pre_compat_43_ommap(addr, len, prot, flags, fd, \
  379. pos) \
  380. __sanitizer_syscall_pre_impl_compat_43_ommap( \
  381. (long long)(addr), (long long)(len), (long long)(prot), \
  382. (long long)(flags), (long long)(fd), (long long)(pos))
  383. #define __sanitizer_syscall_post_compat_43_ommap(res, addr, len, prot, flags, \
  384. fd, pos) \
  385. __sanitizer_syscall_post_impl_compat_43_ommap( \
  386. res, (long long)(addr), (long long)(len), (long long)(prot), \
  387. (long long)(flags), (long long)(fd), (long long)(pos))
  388. #define __sanitizer_syscall_pre_vadvise(anom) \
  389. __sanitizer_syscall_pre_impl_vadvise((long long)(anom))
  390. #define __sanitizer_syscall_post_vadvise(res, anom) \
  391. __sanitizer_syscall_post_impl_vadvise(res, (long long)(anom))
  392. #define __sanitizer_syscall_pre_munmap(addr, len) \
  393. __sanitizer_syscall_pre_impl_munmap((long long)(addr), (long long)(len))
  394. #define __sanitizer_syscall_post_munmap(res, addr, len) \
  395. __sanitizer_syscall_post_impl_munmap(res, (long long)(addr), (long long)(len))
  396. #define __sanitizer_syscall_pre_mprotect(addr, len, prot) \
  397. __sanitizer_syscall_pre_impl_mprotect((long long)(addr), (long long)(len), \
  398. (long long)(prot))
  399. #define __sanitizer_syscall_post_mprotect(res, addr, len, prot) \
  400. __sanitizer_syscall_post_impl_mprotect(res, (long long)(addr), \
  401. (long long)(len), (long long)(prot))
  402. #define __sanitizer_syscall_pre_madvise(addr, len, behav) \
  403. __sanitizer_syscall_pre_impl_madvise((long long)(addr), (long long)(len), \
  404. (long long)(behav))
  405. #define __sanitizer_syscall_post_madvise(res, addr, len, behav) \
  406. __sanitizer_syscall_post_impl_madvise(res, (long long)(addr), \
  407. (long long)(len), (long long)(behav))
  408. /* syscall 76 has been skipped */
  409. /* syscall 77 has been skipped */
  410. #define __sanitizer_syscall_pre_mincore(addr, len, vec) \
  411. __sanitizer_syscall_pre_impl_mincore((long long)(addr), (long long)(len), \
  412. (long long)(vec))
  413. #define __sanitizer_syscall_post_mincore(res, addr, len, vec) \
  414. __sanitizer_syscall_post_impl_mincore(res, (long long)(addr), \
  415. (long long)(len), (long long)(vec))
  416. #define __sanitizer_syscall_pre_getgroups(gidsetsize, gidset) \
  417. __sanitizer_syscall_pre_impl_getgroups((long long)(gidsetsize), \
  418. (long long)(gidset))
  419. #define __sanitizer_syscall_post_getgroups(res, gidsetsize, gidset) \
  420. __sanitizer_syscall_post_impl_getgroups(res, (long long)(gidsetsize), \
  421. (long long)(gidset))
  422. #define __sanitizer_syscall_pre_setgroups(gidsetsize, gidset) \
  423. __sanitizer_syscall_pre_impl_setgroups((long long)(gidsetsize), \
  424. (long long)(gidset))
  425. #define __sanitizer_syscall_post_setgroups(res, gidsetsize, gidset) \
  426. __sanitizer_syscall_post_impl_setgroups(res, (long long)(gidsetsize), \
  427. (long long)(gidset))
  428. #define __sanitizer_syscall_pre_getpgrp() __sanitizer_syscall_pre_impl_getpgrp()
  429. #define __sanitizer_syscall_post_getpgrp(res) \
  430. __sanitizer_syscall_post_impl_getpgrp(res)
  431. #define __sanitizer_syscall_pre_setpgid(pid, pgid) \
  432. __sanitizer_syscall_pre_impl_setpgid((long long)(pid), (long long)(pgid))
  433. #define __sanitizer_syscall_post_setpgid(res, pid, pgid) \
  434. __sanitizer_syscall_post_impl_setpgid(res, (long long)(pid), \
  435. (long long)(pgid))
  436. #define __sanitizer_syscall_pre_compat_50_setitimer(which, itv, oitv) \
  437. __sanitizer_syscall_pre_impl_compat_50_setitimer( \
  438. (long long)(which), (long long)(itv), (long long)(oitv))
  439. #define __sanitizer_syscall_post_compat_50_setitimer(res, which, itv, oitv) \
  440. __sanitizer_syscall_post_impl_compat_50_setitimer( \
  441. res, (long long)(which), (long long)(itv), (long long)(oitv))
  442. #define __sanitizer_syscall_pre_compat_43_owait() \
  443. __sanitizer_syscall_pre_impl_compat_43_owait()
  444. #define __sanitizer_syscall_post_compat_43_owait(res) \
  445. __sanitizer_syscall_post_impl_compat_43_owait(res)
  446. #define __sanitizer_syscall_pre_compat_12_oswapon(name) \
  447. __sanitizer_syscall_pre_impl_compat_12_oswapon((long long)(name))
  448. #define __sanitizer_syscall_post_compat_12_oswapon(res, name) \
  449. __sanitizer_syscall_post_impl_compat_12_oswapon(res, (long long)(name))
  450. #define __sanitizer_syscall_pre_compat_50_getitimer(which, itv) \
  451. __sanitizer_syscall_pre_impl_compat_50_getitimer((long long)(which), \
  452. (long long)(itv))
  453. #define __sanitizer_syscall_post_compat_50_getitimer(res, which, itv) \
  454. __sanitizer_syscall_post_impl_compat_50_getitimer(res, (long long)(which), \
  455. (long long)(itv))
  456. #define __sanitizer_syscall_pre_compat_43_ogethostname(hostname, len) \
  457. __sanitizer_syscall_pre_impl_compat_43_ogethostname((long long)(hostname), \
  458. (long long)(len))
  459. #define __sanitizer_syscall_post_compat_43_ogethostname(res, hostname, len) \
  460. __sanitizer_syscall_post_impl_compat_43_ogethostname( \
  461. res, (long long)(hostname), (long long)(len))
  462. #define __sanitizer_syscall_pre_compat_43_osethostname(hostname, len) \
  463. __sanitizer_syscall_pre_impl_compat_43_osethostname((long long)(hostname), \
  464. (long long)(len))
  465. #define __sanitizer_syscall_post_compat_43_osethostname(res, hostname, len) \
  466. __sanitizer_syscall_post_impl_compat_43_osethostname( \
  467. res, (long long)(hostname), (long long)(len))
  468. #define __sanitizer_syscall_pre_compat_43_ogetdtablesize() \
  469. __sanitizer_syscall_pre_impl_compat_43_ogetdtablesize()
  470. #define __sanitizer_syscall_post_compat_43_ogetdtablesize(res) \
  471. __sanitizer_syscall_post_impl_compat_43_ogetdtablesize(res)
  472. #define __sanitizer_syscall_pre_dup2(from, to) \
  473. __sanitizer_syscall_pre_impl_dup2((long long)(from), (long long)(to))
  474. #define __sanitizer_syscall_post_dup2(res, from, to) \
  475. __sanitizer_syscall_post_impl_dup2(res, (long long)(from), (long long)(to))
  476. #define __sanitizer_syscall_pre_getrandom(buf, buflen, flags) \
  477. __sanitizer_syscall_pre_impl_getrandom( \
  478. (long long)(buf), (long long)(buflen), (long long)(flags))
  479. #define __sanitizer_syscall_post_getrandom(res, buf, buflen, flags) \
  480. __sanitizer_syscall_post_impl_getrandom( \
  481. res, (long long)(buf), (long long)(buflen), (long long)(flags))
  482. #define __sanitizer_syscall_pre_fcntl(fd, cmd, arg) \
  483. __sanitizer_syscall_pre_impl_fcntl((long long)(fd), (long long)(cmd), \
  484. (long long)(arg))
  485. #define __sanitizer_syscall_post_fcntl(res, fd, cmd, arg) \
  486. __sanitizer_syscall_post_impl_fcntl(res, (long long)(fd), (long long)(cmd), \
  487. (long long)(arg))
  488. #define __sanitizer_syscall_pre_compat_50_select(nd, in, ou, ex, tv) \
  489. __sanitizer_syscall_pre_impl_compat_50_select( \
  490. (long long)(nd), (long long)(in), (long long)(ou), (long long)(ex), \
  491. (long long)(tv))
  492. #define __sanitizer_syscall_post_compat_50_select(res, nd, in, ou, ex, tv) \
  493. __sanitizer_syscall_post_impl_compat_50_select( \
  494. res, (long long)(nd), (long long)(in), (long long)(ou), (long long)(ex), \
  495. (long long)(tv))
  496. /* syscall 94 has been skipped */
  497. #define __sanitizer_syscall_pre_fsync(fd) \
  498. __sanitizer_syscall_pre_impl_fsync((long long)(fd))
  499. #define __sanitizer_syscall_post_fsync(res, fd) \
  500. __sanitizer_syscall_post_impl_fsync(res, (long long)(fd))
  501. #define __sanitizer_syscall_pre_setpriority(which, who, prio) \
  502. __sanitizer_syscall_pre_impl_setpriority( \
  503. (long long)(which), (long long)(who), (long long)(prio))
  504. #define __sanitizer_syscall_post_setpriority(res, which, who, prio) \
  505. __sanitizer_syscall_post_impl_setpriority( \
  506. res, (long long)(which), (long long)(who), (long long)(prio))
  507. #define __sanitizer_syscall_pre_compat_30_socket(domain, type, protocol) \
  508. __sanitizer_syscall_pre_impl_compat_30_socket( \
  509. (long long)(domain), (long long)(type), (long long)(protocol))
  510. #define __sanitizer_syscall_post_compat_30_socket(res, domain, type, protocol) \
  511. __sanitizer_syscall_post_impl_compat_30_socket( \
  512. res, (long long)(domain), (long long)(type), (long long)(protocol))
  513. #define __sanitizer_syscall_pre_connect(s, name, namelen) \
  514. __sanitizer_syscall_pre_impl_connect((long long)(s), (long long)(name), \
  515. (long long)(namelen))
  516. #define __sanitizer_syscall_post_connect(res, s, name, namelen) \
  517. __sanitizer_syscall_post_impl_connect( \
  518. res, (long long)(s), (long long)(name), (long long)(namelen))
  519. #define __sanitizer_syscall_pre_compat_43_oaccept(s, name, anamelen) \
  520. __sanitizer_syscall_pre_impl_compat_43_oaccept( \
  521. (long long)(s), (long long)(name), (long long)(anamelen))
  522. #define __sanitizer_syscall_post_compat_43_oaccept(res, s, name, anamelen) \
  523. __sanitizer_syscall_post_impl_compat_43_oaccept( \
  524. res, (long long)(s), (long long)(name), (long long)(anamelen))
  525. #define __sanitizer_syscall_pre_getpriority(which, who) \
  526. __sanitizer_syscall_pre_impl_getpriority((long long)(which), (long long)(who))
  527. #define __sanitizer_syscall_post_getpriority(res, which, who) \
  528. __sanitizer_syscall_post_impl_getpriority(res, (long long)(which), \
  529. (long long)(who))
  530. #define __sanitizer_syscall_pre_compat_43_osend(s, buf, len, flags) \
  531. __sanitizer_syscall_pre_impl_compat_43_osend( \
  532. (long long)(s), (long long)(buf), (long long)(len), (long long)(flags))
  533. #define __sanitizer_syscall_post_compat_43_osend(res, s, buf, len, flags) \
  534. __sanitizer_syscall_post_impl_compat_43_osend( \
  535. res, (long long)(s), (long long)(buf), (long long)(len), \
  536. (long long)(flags))
  537. #define __sanitizer_syscall_pre_compat_43_orecv(s, buf, len, flags) \
  538. __sanitizer_syscall_pre_impl_compat_43_orecv( \
  539. (long long)(s), (long long)(buf), (long long)(len), (long long)(flags))
  540. #define __sanitizer_syscall_post_compat_43_orecv(res, s, buf, len, flags) \
  541. __sanitizer_syscall_post_impl_compat_43_orecv( \
  542. res, (long long)(s), (long long)(buf), (long long)(len), \
  543. (long long)(flags))
  544. #define __sanitizer_syscall_pre_compat_13_sigreturn13(sigcntxp) \
  545. __sanitizer_syscall_pre_impl_compat_13_sigreturn13((long long)(sigcntxp))
  546. #define __sanitizer_syscall_post_compat_13_sigreturn13(res, sigcntxp) \
  547. __sanitizer_syscall_post_impl_compat_13_sigreturn13(res, \
  548. (long long)(sigcntxp))
  549. #define __sanitizer_syscall_pre_bind(s, name, namelen) \
  550. __sanitizer_syscall_pre_impl_bind((long long)(s), (long long)(name), \
  551. (long long)(namelen))
  552. #define __sanitizer_syscall_post_bind(res, s, name, namelen) \
  553. __sanitizer_syscall_post_impl_bind(res, (long long)(s), (long long)(name), \
  554. (long long)(namelen))
  555. #define __sanitizer_syscall_pre_setsockopt(s, level, name, val, valsize) \
  556. __sanitizer_syscall_pre_impl_setsockopt((long long)(s), (long long)(level), \
  557. (long long)(name), (long long)(val), \
  558. (long long)(valsize))
  559. #define __sanitizer_syscall_post_setsockopt(res, s, level, name, val, valsize) \
  560. __sanitizer_syscall_post_impl_setsockopt( \
  561. res, (long long)(s), (long long)(level), (long long)(name), \
  562. (long long)(val), (long long)(valsize))
  563. #define __sanitizer_syscall_pre_listen(s, backlog) \
  564. __sanitizer_syscall_pre_impl_listen((long long)(s), (long long)(backlog))
  565. #define __sanitizer_syscall_post_listen(res, s, backlog) \
  566. __sanitizer_syscall_post_impl_listen(res, (long long)(s), \
  567. (long long)(backlog))
  568. /* syscall 107 has been skipped */
  569. #define __sanitizer_syscall_pre_compat_43_osigvec(signum, nsv, osv) \
  570. __sanitizer_syscall_pre_impl_compat_43_osigvec( \
  571. (long long)(signum), (long long)(nsv), (long long)(osv))
  572. #define __sanitizer_syscall_post_compat_43_osigvec(res, signum, nsv, osv) \
  573. __sanitizer_syscall_post_impl_compat_43_osigvec( \
  574. res, (long long)(signum), (long long)(nsv), (long long)(osv))
  575. #define __sanitizer_syscall_pre_compat_43_osigblock(mask) \
  576. __sanitizer_syscall_pre_impl_compat_43_osigblock((long long)(mask))
  577. #define __sanitizer_syscall_post_compat_43_osigblock(res, mask) \
  578. __sanitizer_syscall_post_impl_compat_43_osigblock(res, (long long)(mask))
  579. #define __sanitizer_syscall_pre_compat_43_osigsetmask(mask) \
  580. __sanitizer_syscall_pre_impl_compat_43_osigsetmask((long long)(mask))
  581. #define __sanitizer_syscall_post_compat_43_osigsetmask(res, mask) \
  582. __sanitizer_syscall_post_impl_compat_43_osigsetmask(res, (long long)(mask))
  583. #define __sanitizer_syscall_pre_compat_13_sigsuspend13(mask) \
  584. __sanitizer_syscall_pre_impl_compat_13_sigsuspend13((long long)(mask))
  585. #define __sanitizer_syscall_post_compat_13_sigsuspend13(res, mask) \
  586. __sanitizer_syscall_post_impl_compat_13_sigsuspend13(res, (long long)(mask))
  587. #define __sanitizer_syscall_pre_compat_43_osigstack(nss, oss) \
  588. __sanitizer_syscall_pre_impl_compat_43_osigstack((long long)(nss), \
  589. (long long)(oss))
  590. #define __sanitizer_syscall_post_compat_43_osigstack(res, nss, oss) \
  591. __sanitizer_syscall_post_impl_compat_43_osigstack(res, (long long)(nss), \
  592. (long long)(oss))
  593. #define __sanitizer_syscall_pre_compat_43_orecvmsg(s, msg, flags) \
  594. __sanitizer_syscall_pre_impl_compat_43_orecvmsg( \
  595. (long long)(s), (long long)(msg), (long long)(flags))
  596. #define __sanitizer_syscall_post_compat_43_orecvmsg(res, s, msg, flags) \
  597. __sanitizer_syscall_post_impl_compat_43_orecvmsg( \
  598. res, (long long)(s), (long long)(msg), (long long)(flags))
  599. #define __sanitizer_syscall_pre_compat_43_osendmsg(s, msg, flags) \
  600. __sanitizer_syscall_pre_impl_compat_43_osendmsg( \
  601. (long long)(s), (long long)(msg), (long long)(flags))
  602. #define __sanitizer_syscall_post_compat_43_osendmsg(res, s, msg, flags) \
  603. __sanitizer_syscall_post_impl_compat_43_osendmsg( \
  604. res, (long long)(s), (long long)(msg), (long long)(flags))
  605. /* syscall 115 has been skipped */
  606. #define __sanitizer_syscall_pre_compat_50_gettimeofday(tp, tzp) \
  607. __sanitizer_syscall_pre_impl_compat_50_gettimeofday((long long)(tp), \
  608. (long long)(tzp))
  609. #define __sanitizer_syscall_post_compat_50_gettimeofday(res, tp, tzp) \
  610. __sanitizer_syscall_post_impl_compat_50_gettimeofday(res, (long long)(tp), \
  611. (long long)(tzp))
  612. #define __sanitizer_syscall_pre_compat_50_getrusage(who, rusage) \
  613. __sanitizer_syscall_pre_impl_compat_50_getrusage((long long)(who), \
  614. (long long)(rusage))
  615. #define __sanitizer_syscall_post_compat_50_getrusage(res, who, rusage) \
  616. __sanitizer_syscall_post_impl_compat_50_getrusage(res, (long long)(who), \
  617. (long long)(rusage))
  618. #define __sanitizer_syscall_pre_getsockopt(s, level, name, val, avalsize) \
  619. __sanitizer_syscall_pre_impl_getsockopt((long long)(s), (long long)(level), \
  620. (long long)(name), (long long)(val), \
  621. (long long)(avalsize))
  622. #define __sanitizer_syscall_post_getsockopt(res, s, level, name, val, \
  623. avalsize) \
  624. __sanitizer_syscall_post_impl_getsockopt( \
  625. res, (long long)(s), (long long)(level), (long long)(name), \
  626. (long long)(val), (long long)(avalsize))
  627. /* syscall 119 has been skipped */
  628. #define __sanitizer_syscall_pre_readv(fd, iovp, iovcnt) \
  629. __sanitizer_syscall_pre_impl_readv((long long)(fd), (long long)(iovp), \
  630. (long long)(iovcnt))
  631. #define __sanitizer_syscall_post_readv(res, fd, iovp, iovcnt) \
  632. __sanitizer_syscall_post_impl_readv(res, (long long)(fd), (long long)(iovp), \
  633. (long long)(iovcnt))
  634. #define __sanitizer_syscall_pre_writev(fd, iovp, iovcnt) \
  635. __sanitizer_syscall_pre_impl_writev((long long)(fd), (long long)(iovp), \
  636. (long long)(iovcnt))
  637. #define __sanitizer_syscall_post_writev(res, fd, iovp, iovcnt) \
  638. __sanitizer_syscall_post_impl_writev(res, (long long)(fd), \
  639. (long long)(iovp), (long long)(iovcnt))
  640. #define __sanitizer_syscall_pre_compat_50_settimeofday(tv, tzp) \
  641. __sanitizer_syscall_pre_impl_compat_50_settimeofday((long long)(tv), \
  642. (long long)(tzp))
  643. #define __sanitizer_syscall_post_compat_50_settimeofday(res, tv, tzp) \
  644. __sanitizer_syscall_post_impl_compat_50_settimeofday(res, (long long)(tv), \
  645. (long long)(tzp))
  646. #define __sanitizer_syscall_pre_fchown(fd, uid, gid) \
  647. __sanitizer_syscall_pre_impl_fchown((long long)(fd), (long long)(uid), \
  648. (long long)(gid))
  649. #define __sanitizer_syscall_post_fchown(res, fd, uid, gid) \
  650. __sanitizer_syscall_post_impl_fchown(res, (long long)(fd), (long long)(uid), \
  651. (long long)(gid))
  652. #define __sanitizer_syscall_pre_fchmod(fd, mode) \
  653. __sanitizer_syscall_pre_impl_fchmod((long long)(fd), (long long)(mode))
  654. #define __sanitizer_syscall_post_fchmod(res, fd, mode) \
  655. __sanitizer_syscall_post_impl_fchmod(res, (long long)(fd), (long long)(mode))
  656. #define __sanitizer_syscall_pre_compat_43_orecvfrom(s, buf, len, flags, from, \
  657. fromlenaddr) \
  658. __sanitizer_syscall_pre_impl_compat_43_orecvfrom( \
  659. (long long)(s), (long long)(buf), (long long)(len), (long long)(flags), \
  660. (long long)(from), (long long)(fromlenaddr))
  661. #define __sanitizer_syscall_post_compat_43_orecvfrom(res, s, buf, len, flags, \
  662. from, fromlenaddr) \
  663. __sanitizer_syscall_post_impl_compat_43_orecvfrom( \
  664. res, (long long)(s), (long long)(buf), (long long)(len), \
  665. (long long)(flags), (long long)(from), (long long)(fromlenaddr))
  666. #define __sanitizer_syscall_pre_setreuid(ruid, euid) \
  667. __sanitizer_syscall_pre_impl_setreuid((long long)(ruid), (long long)(euid))
  668. #define __sanitizer_syscall_post_setreuid(res, ruid, euid) \
  669. __sanitizer_syscall_post_impl_setreuid(res, (long long)(ruid), \
  670. (long long)(euid))
  671. #define __sanitizer_syscall_pre_setregid(rgid, egid) \
  672. __sanitizer_syscall_pre_impl_setregid((long long)(rgid), (long long)(egid))
  673. #define __sanitizer_syscall_post_setregid(res, rgid, egid) \
  674. __sanitizer_syscall_post_impl_setregid(res, (long long)(rgid), \
  675. (long long)(egid))
  676. #define __sanitizer_syscall_pre_rename(from, to) \
  677. __sanitizer_syscall_pre_impl_rename((long long)(from), (long long)(to))
  678. #define __sanitizer_syscall_post_rename(res, from, to) \
  679. __sanitizer_syscall_post_impl_rename(res, (long long)(from), (long long)(to))
  680. #define __sanitizer_syscall_pre_compat_43_otruncate(path, length) \
  681. __sanitizer_syscall_pre_impl_compat_43_otruncate((long long)(path), \
  682. (long long)(length))
  683. #define __sanitizer_syscall_post_compat_43_otruncate(res, path, length) \
  684. __sanitizer_syscall_post_impl_compat_43_otruncate(res, (long long)(path), \
  685. (long long)(length))
  686. #define __sanitizer_syscall_pre_compat_43_oftruncate(fd, length) \
  687. __sanitizer_syscall_pre_impl_compat_43_oftruncate((long long)(fd), \
  688. (long long)(length))
  689. #define __sanitizer_syscall_post_compat_43_oftruncate(res, fd, length) \
  690. __sanitizer_syscall_post_impl_compat_43_oftruncate(res, (long long)(fd), \
  691. (long long)(length))
  692. #define __sanitizer_syscall_pre_flock(fd, how) \
  693. __sanitizer_syscall_pre_impl_flock((long long)(fd), (long long)(how))
  694. #define __sanitizer_syscall_post_flock(res, fd, how) \
  695. __sanitizer_syscall_post_impl_flock(res, (long long)(fd), (long long)(how))
  696. #define __sanitizer_syscall_pre_mkfifo(path, mode) \
  697. __sanitizer_syscall_pre_impl_mkfifo((long long)(path), (long long)(mode))
  698. #define __sanitizer_syscall_post_mkfifo(res, path, mode) \
  699. __sanitizer_syscall_post_impl_mkfifo(res, (long long)(path), \
  700. (long long)(mode))
  701. #define __sanitizer_syscall_pre_sendto(s, buf, len, flags, to, tolen) \
  702. __sanitizer_syscall_pre_impl_sendto((long long)(s), (long long)(buf), \
  703. (long long)(len), (long long)(flags), \
  704. (long long)(to), (long long)(tolen))
  705. #define __sanitizer_syscall_post_sendto(res, s, buf, len, flags, to, tolen) \
  706. __sanitizer_syscall_post_impl_sendto(res, (long long)(s), (long long)(buf), \
  707. (long long)(len), (long long)(flags), \
  708. (long long)(to), (long long)(tolen))
  709. #define __sanitizer_syscall_pre_shutdown(s, how) \
  710. __sanitizer_syscall_pre_impl_shutdown((long long)(s), (long long)(how))
  711. #define __sanitizer_syscall_post_shutdown(res, s, how) \
  712. __sanitizer_syscall_post_impl_shutdown(res, (long long)(s), (long long)(how))
  713. #define __sanitizer_syscall_pre_socketpair(domain, type, protocol, rsv) \
  714. __sanitizer_syscall_pre_impl_socketpair( \
  715. (long long)(domain), (long long)(type), (long long)(protocol), \
  716. (long long)(rsv))
  717. #define __sanitizer_syscall_post_socketpair(res, domain, type, protocol, rsv) \
  718. __sanitizer_syscall_post_impl_socketpair( \
  719. res, (long long)(domain), (long long)(type), (long long)(protocol), \
  720. (long long)(rsv))
  721. #define __sanitizer_syscall_pre_mkdir(path, mode) \
  722. __sanitizer_syscall_pre_impl_mkdir((long long)(path), (long long)(mode))
  723. #define __sanitizer_syscall_post_mkdir(res, path, mode) \
  724. __sanitizer_syscall_post_impl_mkdir(res, (long long)(path), (long long)(mode))
  725. #define __sanitizer_syscall_pre_rmdir(path) \
  726. __sanitizer_syscall_pre_impl_rmdir((long long)(path))
  727. #define __sanitizer_syscall_post_rmdir(res, path) \
  728. __sanitizer_syscall_post_impl_rmdir(res, (long long)(path))
  729. #define __sanitizer_syscall_pre_compat_50_utimes(path, tptr) \
  730. __sanitizer_syscall_pre_impl_compat_50_utimes((long long)(path), \
  731. (long long)(tptr))
  732. #define __sanitizer_syscall_post_compat_50_utimes(res, path, tptr) \
  733. __sanitizer_syscall_post_impl_compat_50_utimes(res, (long long)(path), \
  734. (long long)(tptr))
  735. /* syscall 139 has been skipped */
  736. #define __sanitizer_syscall_pre_compat_50_adjtime(delta, olddelta) \
  737. __sanitizer_syscall_pre_impl_compat_50_adjtime((long long)(delta), \
  738. (long long)(olddelta))
  739. #define __sanitizer_syscall_post_compat_50_adjtime(res, delta, olddelta) \
  740. __sanitizer_syscall_post_impl_compat_50_adjtime(res, (long long)(delta), \
  741. (long long)(olddelta))
  742. #define __sanitizer_syscall_pre_compat_43_ogetpeername(fdes, asa, alen) \
  743. __sanitizer_syscall_pre_impl_compat_43_ogetpeername( \
  744. (long long)(fdes), (long long)(asa), (long long)(alen))
  745. #define __sanitizer_syscall_post_compat_43_ogetpeername(res, fdes, asa, alen) \
  746. __sanitizer_syscall_post_impl_compat_43_ogetpeername( \
  747. res, (long long)(fdes), (long long)(asa), (long long)(alen))
  748. #define __sanitizer_syscall_pre_compat_43_ogethostid() \
  749. __sanitizer_syscall_pre_impl_compat_43_ogethostid()
  750. #define __sanitizer_syscall_post_compat_43_ogethostid(res) \
  751. __sanitizer_syscall_post_impl_compat_43_ogethostid(res)
  752. #define __sanitizer_syscall_pre_compat_43_osethostid(hostid) \
  753. __sanitizer_syscall_pre_impl_compat_43_osethostid((long long)(hostid))
  754. #define __sanitizer_syscall_post_compat_43_osethostid(res, hostid) \
  755. __sanitizer_syscall_post_impl_compat_43_osethostid(res, (long long)(hostid))
  756. #define __sanitizer_syscall_pre_compat_43_ogetrlimit(which, rlp) \
  757. __sanitizer_syscall_pre_impl_compat_43_ogetrlimit((long long)(which), \
  758. (long long)(rlp))
  759. #define __sanitizer_syscall_post_compat_43_ogetrlimit(res, which, rlp) \
  760. __sanitizer_syscall_post_impl_compat_43_ogetrlimit(res, (long long)(which), \
  761. (long long)(rlp))
  762. #define __sanitizer_syscall_pre_compat_43_osetrlimit(which, rlp) \
  763. __sanitizer_syscall_pre_impl_compat_43_osetrlimit((long long)(which), \
  764. (long long)(rlp))
  765. #define __sanitizer_syscall_post_compat_43_osetrlimit(res, which, rlp) \
  766. __sanitizer_syscall_post_impl_compat_43_osetrlimit(res, (long long)(which), \
  767. (long long)(rlp))
  768. #define __sanitizer_syscall_pre_compat_43_okillpg(pgid, signum) \
  769. __sanitizer_syscall_pre_impl_compat_43_okillpg((long long)(pgid), \
  770. (long long)(signum))
  771. #define __sanitizer_syscall_post_compat_43_okillpg(res, pgid, signum) \
  772. __sanitizer_syscall_post_impl_compat_43_okillpg(res, (long long)(pgid), \
  773. (long long)(signum))
  774. #define __sanitizer_syscall_pre_setsid() __sanitizer_syscall_pre_impl_setsid()
  775. #define __sanitizer_syscall_post_setsid(res) \
  776. __sanitizer_syscall_post_impl_setsid(res)
  777. #define __sanitizer_syscall_pre_compat_50_quotactl(path, cmd, uid, arg) \
  778. __sanitizer_syscall_pre_impl_compat_50_quotactl( \
  779. (long long)(path), (long long)(cmd), (long long)(uid), (long long)(arg))
  780. #define __sanitizer_syscall_post_compat_50_quotactl(res, path, cmd, uid, arg) \
  781. __sanitizer_syscall_post_impl_compat_50_quotactl( \
  782. res, (long long)(path), (long long)(cmd), (long long)(uid), \
  783. (long long)(arg))
  784. #define __sanitizer_syscall_pre_compat_43_oquota() \
  785. __sanitizer_syscall_pre_impl_compat_43_oquota()
  786. #define __sanitizer_syscall_post_compat_43_oquota(res) \
  787. __sanitizer_syscall_post_impl_compat_43_oquota(res)
  788. #define __sanitizer_syscall_pre_compat_43_ogetsockname(fdec, asa, alen) \
  789. __sanitizer_syscall_pre_impl_compat_43_ogetsockname( \
  790. (long long)(fdec), (long long)(asa), (long long)(alen))
  791. #define __sanitizer_syscall_post_compat_43_ogetsockname(res, fdec, asa, alen) \
  792. __sanitizer_syscall_post_impl_compat_43_ogetsockname( \
  793. res, (long long)(fdec), (long long)(asa), (long long)(alen))
  794. /* syscall 151 has been skipped */
  795. /* syscall 152 has been skipped */
  796. /* syscall 153 has been skipped */
  797. /* syscall 154 has been skipped */
  798. #define __sanitizer_syscall_pre_nfssvc(flag, argp) \
  799. __sanitizer_syscall_pre_impl_nfssvc((long long)(flag), (long long)(argp))
  800. #define __sanitizer_syscall_post_nfssvc(res, flag, argp) \
  801. __sanitizer_syscall_post_impl_nfssvc(res, (long long)(flag), \
  802. (long long)(argp))
  803. #define __sanitizer_syscall_pre_compat_43_ogetdirentries(fd, buf, count, \
  804. basep) \
  805. __sanitizer_syscall_pre_impl_compat_43_ogetdirentries( \
  806. (long long)(fd), (long long)(buf), (long long)(count), \
  807. (long long)(basep))
  808. #define __sanitizer_syscall_post_compat_43_ogetdirentries(res, fd, buf, count, \
  809. basep) \
  810. __sanitizer_syscall_post_impl_compat_43_ogetdirentries( \
  811. res, (long long)(fd), (long long)(buf), (long long)(count), \
  812. (long long)(basep))
  813. #define __sanitizer_syscall_pre_compat_20_statfs(path, buf) \
  814. __sanitizer_syscall_pre_impl_compat_20_statfs((long long)(path), \
  815. (long long)(buf))
  816. #define __sanitizer_syscall_post_compat_20_statfs(res, path, buf) \
  817. __sanitizer_syscall_post_impl_compat_20_statfs(res, (long long)(path), \
  818. (long long)(buf))
  819. #define __sanitizer_syscall_pre_compat_20_fstatfs(fd, buf) \
  820. __sanitizer_syscall_pre_impl_compat_20_fstatfs((long long)(fd), \
  821. (long long)(buf))
  822. #define __sanitizer_syscall_post_compat_20_fstatfs(res, fd, buf) \
  823. __sanitizer_syscall_post_impl_compat_20_fstatfs(res, (long long)(fd), \
  824. (long long)(buf))
  825. /* syscall 159 has been skipped */
  826. /* syscall 160 has been skipped */
  827. #define __sanitizer_syscall_pre_compat_30_getfh(fname, fhp) \
  828. __sanitizer_syscall_pre_impl_compat_30_getfh((long long)(fname), \
  829. (long long)(fhp))
  830. #define __sanitizer_syscall_post_compat_30_getfh(res, fname, fhp) \
  831. __sanitizer_syscall_post_impl_compat_30_getfh(res, (long long)(fname), \
  832. (long long)(fhp))
  833. #define __sanitizer_syscall_pre_compat_09_ogetdomainname(domainname, len) \
  834. __sanitizer_syscall_pre_impl_compat_09_ogetdomainname( \
  835. (long long)(domainname), (long long)(len))
  836. #define __sanitizer_syscall_post_compat_09_ogetdomainname(res, domainname, \
  837. len) \
  838. __sanitizer_syscall_post_impl_compat_09_ogetdomainname( \
  839. res, (long long)(domainname), (long long)(len))
  840. #define __sanitizer_syscall_pre_compat_09_osetdomainname(domainname, len) \
  841. __sanitizer_syscall_pre_impl_compat_09_osetdomainname( \
  842. (long long)(domainname), (long long)(len))
  843. #define __sanitizer_syscall_post_compat_09_osetdomainname(res, domainname, \
  844. len) \
  845. __sanitizer_syscall_post_impl_compat_09_osetdomainname( \
  846. res, (long long)(domainname), (long long)(len))
  847. #define __sanitizer_syscall_pre_compat_09_ouname(name) \
  848. __sanitizer_syscall_pre_impl_compat_09_ouname((long long)(name))
  849. #define __sanitizer_syscall_post_compat_09_ouname(res, name) \
  850. __sanitizer_syscall_post_impl_compat_09_ouname(res, (long long)(name))
  851. #define __sanitizer_syscall_pre_sysarch(op, parms) \
  852. __sanitizer_syscall_pre_impl_sysarch((long long)(op), (long long)(parms))
  853. #define __sanitizer_syscall_post_sysarch(res, op, parms) \
  854. __sanitizer_syscall_post_impl_sysarch(res, (long long)(op), \
  855. (long long)(parms))
  856. #define __sanitizer_syscall_pre___futex(uaddr, op, val, timeout, uaddr2, val2, \
  857. val3) \
  858. __sanitizer_syscall_pre_impl___futex((long long)(uaddr), (long long)(op), \
  859. (long long)(val), (long long)(timeout), \
  860. (long long)(uaddr2), (long long)(val2), \
  861. (long long)(val3))
  862. #define __sanitizer_syscall_post___futex(res, uaddr, op, val, timeout, uaddr2, \
  863. val2, val3) \
  864. __sanitizer_syscall_post_impl___futex( \
  865. res, (long long)(uaddr), (long long)(op), (long long)(val), \
  866. (long long)(timeout), (long long)(uaddr2), (long long)(val2), \
  867. (long long)(val3))
  868. #define __sanitizer_syscall_pre___futex_set_robust_list(head, len) \
  869. __sanitizer_syscall_pre_impl___futex_set_robust_list((long long)(head), \
  870. (long long)(len))
  871. #define __sanitizer_syscall_post___futex_set_robust_list(res, head, len) \
  872. __sanitizer_syscall_post_impl___futex_set_robust_list( \
  873. res, (long long)(head), (long long)(len))
  874. #define __sanitizer_syscall_pre___futex_get_robust_list(lwpid, headp, lenp) \
  875. __sanitizer_syscall_pre_impl___futex_get_robust_list( \
  876. (long long)(lwpid), (long long)(headp), (long long)(lenp))
  877. #define __sanitizer_syscall_post___futex_get_robust_list(res, lwpid, headp, \
  878. lenp) \
  879. __sanitizer_syscall_post_impl___futex_get_robust_list( \
  880. res, (long long)(lwpid), (long long)(headp), (long long)(lenp))
  881. #if !defined(_LP64)
  882. #define __sanitizer_syscall_pre_compat_10_osemsys(which, a2, a3, a4, a5) \
  883. __sanitizer_syscall_pre_impl_compat_10_osemsys( \
  884. (long long)(which), (long long)(a2), (long long)(a3), (long long)(a4), \
  885. (long long)(a5))
  886. #define __sanitizer_syscall_post_compat_10_osemsys(res, which, a2, a3, a4, a5) \
  887. __sanitizer_syscall_post_impl_compat_10_osemsys( \
  888. res, (long long)(which), (long long)(a2), (long long)(a3), \
  889. (long long)(a4), (long long)(a5))
  890. #else
  891. /* syscall 169 has been skipped */
  892. #endif
  893. #if !defined(_LP64)
  894. #define __sanitizer_syscall_pre_compat_10_omsgsys(which, a2, a3, a4, a5, a6) \
  895. __sanitizer_syscall_pre_impl_compat_10_omsgsys( \
  896. (long long)(which), (long long)(a2), (long long)(a3), (long long)(a4), \
  897. (long long)(a5), (long long)(a6))
  898. #define __sanitizer_syscall_post_compat_10_omsgsys(res, which, a2, a3, a4, a5, \
  899. a6) \
  900. __sanitizer_syscall_post_impl_compat_10_omsgsys( \
  901. res, (long long)(which), (long long)(a2), (long long)(a3), \
  902. (long long)(a4), (long long)(a5), (long long)(a6))
  903. #else
  904. /* syscall 170 has been skipped */
  905. #endif
  906. #if !defined(_LP64)
  907. #define __sanitizer_syscall_pre_compat_10_oshmsys(which, a2, a3, a4) \
  908. __sanitizer_syscall_pre_impl_compat_10_oshmsys( \
  909. (long long)(which), (long long)(a2), (long long)(a3), (long long)(a4))
  910. #define __sanitizer_syscall_post_compat_10_oshmsys(res, which, a2, a3, a4) \
  911. __sanitizer_syscall_post_impl_compat_10_oshmsys( \
  912. res, (long long)(which), (long long)(a2), (long long)(a3), \
  913. (long long)(a4))
  914. #else
  915. /* syscall 171 has been skipped */
  916. #endif
  917. /* syscall 172 has been skipped */
  918. #define __sanitizer_syscall_pre_pread(fd, buf, nbyte, PAD, offset) \
  919. __sanitizer_syscall_pre_impl_pread((long long)(fd), (long long)(buf), \
  920. (long long)(nbyte), (long long)(PAD), \
  921. (long long)(offset))
  922. #define __sanitizer_syscall_post_pread(res, fd, buf, nbyte, PAD, offset) \
  923. __sanitizer_syscall_post_impl_pread(res, (long long)(fd), (long long)(buf), \
  924. (long long)(nbyte), (long long)(PAD), \
  925. (long long)(offset))
  926. #define __sanitizer_syscall_pre_pwrite(fd, buf, nbyte, PAD, offset) \
  927. __sanitizer_syscall_pre_impl_pwrite((long long)(fd), (long long)(buf), \
  928. (long long)(nbyte), (long long)(PAD), \
  929. (long long)(offset))
  930. #define __sanitizer_syscall_post_pwrite(res, fd, buf, nbyte, PAD, offset) \
  931. __sanitizer_syscall_post_impl_pwrite(res, (long long)(fd), (long long)(buf), \
  932. (long long)(nbyte), (long long)(PAD), \
  933. (long long)(offset))
  934. #define __sanitizer_syscall_pre_compat_30_ntp_gettime(ntvp) \
  935. __sanitizer_syscall_pre_impl_compat_30_ntp_gettime((long long)(ntvp))
  936. #define __sanitizer_syscall_post_compat_30_ntp_gettime(res, ntvp) \
  937. __sanitizer_syscall_post_impl_compat_30_ntp_gettime(res, (long long)(ntvp))
  938. #if defined(NTP) || !defined(_KERNEL_OPT)
  939. #define __sanitizer_syscall_pre_ntp_adjtime(tp) \
  940. __sanitizer_syscall_pre_impl_ntp_adjtime((long long)(tp))
  941. #define __sanitizer_syscall_post_ntp_adjtime(res, tp) \
  942. __sanitizer_syscall_post_impl_ntp_adjtime(res, (long long)(tp))
  943. #else
  944. /* syscall 176 has been skipped */
  945. #endif
  946. /* syscall 177 has been skipped */
  947. /* syscall 178 has been skipped */
  948. /* syscall 179 has been skipped */
  949. /* syscall 180 has been skipped */
  950. #define __sanitizer_syscall_pre_setgid(gid) \
  951. __sanitizer_syscall_pre_impl_setgid((long long)(gid))
  952. #define __sanitizer_syscall_post_setgid(res, gid) \
  953. __sanitizer_syscall_post_impl_setgid(res, (long long)(gid))
  954. #define __sanitizer_syscall_pre_setegid(egid) \
  955. __sanitizer_syscall_pre_impl_setegid((long long)(egid))
  956. #define __sanitizer_syscall_post_setegid(res, egid) \
  957. __sanitizer_syscall_post_impl_setegid(res, (long long)(egid))
  958. #define __sanitizer_syscall_pre_seteuid(euid) \
  959. __sanitizer_syscall_pre_impl_seteuid((long long)(euid))
  960. #define __sanitizer_syscall_post_seteuid(res, euid) \
  961. __sanitizer_syscall_post_impl_seteuid(res, (long long)(euid))
  962. #define __sanitizer_syscall_pre_lfs_bmapv(fsidp, blkiov, blkcnt) \
  963. __sanitizer_syscall_pre_impl_lfs_bmapv( \
  964. (long long)(fsidp), (long long)(blkiov), (long long)(blkcnt))
  965. #define __sanitizer_syscall_post_lfs_bmapv(res, fsidp, blkiov, blkcnt) \
  966. __sanitizer_syscall_post_impl_lfs_bmapv( \
  967. res, (long long)(fsidp), (long long)(blkiov), (long long)(blkcnt))
  968. #define __sanitizer_syscall_pre_lfs_markv(fsidp, blkiov, blkcnt) \
  969. __sanitizer_syscall_pre_impl_lfs_markv( \
  970. (long long)(fsidp), (long long)(blkiov), (long long)(blkcnt))
  971. #define __sanitizer_syscall_post_lfs_markv(res, fsidp, blkiov, blkcnt) \
  972. __sanitizer_syscall_post_impl_lfs_markv( \
  973. res, (long long)(fsidp), (long long)(blkiov), (long long)(blkcnt))
  974. #define __sanitizer_syscall_pre_lfs_segclean(fsidp, segment) \
  975. __sanitizer_syscall_pre_impl_lfs_segclean((long long)(fsidp), \
  976. (long long)(segment))
  977. #define __sanitizer_syscall_post_lfs_segclean(res, fsidp, segment) \
  978. __sanitizer_syscall_post_impl_lfs_segclean(res, (long long)(fsidp), \
  979. (long long)(segment))
  980. #define __sanitizer_syscall_pre_compat_50_lfs_segwait(fsidp, tv) \
  981. __sanitizer_syscall_pre_impl_compat_50_lfs_segwait((long long)(fsidp), \
  982. (long long)(tv))
  983. #define __sanitizer_syscall_post_compat_50_lfs_segwait(res, fsidp, tv) \
  984. __sanitizer_syscall_post_impl_compat_50_lfs_segwait(res, (long long)(fsidp), \
  985. (long long)(tv))
  986. #define __sanitizer_syscall_pre_compat_12_stat12(path, ub) \
  987. __sanitizer_syscall_pre_impl_compat_12_stat12((long long)(path), \
  988. (long long)(ub))
  989. #define __sanitizer_syscall_post_compat_12_stat12(res, path, ub) \
  990. __sanitizer_syscall_post_impl_compat_12_stat12(res, (long long)(path), \
  991. (long long)(ub))
  992. #define __sanitizer_syscall_pre_compat_12_fstat12(fd, sb) \
  993. __sanitizer_syscall_pre_impl_compat_12_fstat12((long long)(fd), \
  994. (long long)(sb))
  995. #define __sanitizer_syscall_post_compat_12_fstat12(res, fd, sb) \
  996. __sanitizer_syscall_post_impl_compat_12_fstat12(res, (long long)(fd), \
  997. (long long)(sb))
  998. #define __sanitizer_syscall_pre_compat_12_lstat12(path, ub) \
  999. __sanitizer_syscall_pre_impl_compat_12_lstat12((long long)(path), \
  1000. (long long)(ub))
  1001. #define __sanitizer_syscall_post_compat_12_lstat12(res, path, ub) \
  1002. __sanitizer_syscall_post_impl_compat_12_lstat12(res, (long long)(path), \
  1003. (long long)(ub))
  1004. #define __sanitizer_syscall_pre_pathconf(path, name) \
  1005. __sanitizer_syscall_pre_impl_pathconf((long long)(path), (long long)(name))
  1006. #define __sanitizer_syscall_post_pathconf(res, path, name) \
  1007. __sanitizer_syscall_post_impl_pathconf(res, (long long)(path), \
  1008. (long long)(name))
  1009. #define __sanitizer_syscall_pre_fpathconf(fd, name) \
  1010. __sanitizer_syscall_pre_impl_fpathconf((long long)(fd), (long long)(name))
  1011. #define __sanitizer_syscall_post_fpathconf(res, fd, name) \
  1012. __sanitizer_syscall_post_impl_fpathconf(res, (long long)(fd), \
  1013. (long long)(name))
  1014. #define __sanitizer_syscall_pre_getsockopt2(s, level, name, val, avalsize) \
  1015. __sanitizer_syscall_pre_impl_getsockopt2( \
  1016. (long long)(s), (long long)(level), (long long)(name), (long long)(val), \
  1017. (long long)(avalsize))
  1018. #define __sanitizer_syscall_post_getsockopt2(res, s, level, name, val, \
  1019. avalsize) \
  1020. __sanitizer_syscall_post_impl_getsockopt2( \
  1021. res, (long long)(s), (long long)(level), (long long)(name), \
  1022. (long long)(val), (long long)(avalsize))
  1023. #define __sanitizer_syscall_pre_getrlimit(which, rlp) \
  1024. __sanitizer_syscall_pre_impl_getrlimit((long long)(which), (long long)(rlp))
  1025. #define __sanitizer_syscall_post_getrlimit(res, which, rlp) \
  1026. __sanitizer_syscall_post_impl_getrlimit(res, (long long)(which), \
  1027. (long long)(rlp))
  1028. #define __sanitizer_syscall_pre_setrlimit(which, rlp) \
  1029. __sanitizer_syscall_pre_impl_setrlimit((long long)(which), (long long)(rlp))
  1030. #define __sanitizer_syscall_post_setrlimit(res, which, rlp) \
  1031. __sanitizer_syscall_post_impl_setrlimit(res, (long long)(which), \
  1032. (long long)(rlp))
  1033. #define __sanitizer_syscall_pre_compat_12_getdirentries(fd, buf, count, basep) \
  1034. __sanitizer_syscall_pre_impl_compat_12_getdirentries( \
  1035. (long long)(fd), (long long)(buf), (long long)(count), \
  1036. (long long)(basep))
  1037. #define __sanitizer_syscall_post_compat_12_getdirentries(res, fd, buf, count, \
  1038. basep) \
  1039. __sanitizer_syscall_post_impl_compat_12_getdirentries( \
  1040. res, (long long)(fd), (long long)(buf), (long long)(count), \
  1041. (long long)(basep))
  1042. #define __sanitizer_syscall_pre_mmap(addr, len, prot, flags, fd, PAD, pos) \
  1043. __sanitizer_syscall_pre_impl_mmap( \
  1044. (long long)(addr), (long long)(len), (long long)(prot), \
  1045. (long long)(flags), (long long)(fd), (long long)(PAD), (long long)(pos))
  1046. #define __sanitizer_syscall_post_mmap(res, addr, len, prot, flags, fd, PAD, \
  1047. pos) \
  1048. __sanitizer_syscall_post_impl_mmap( \
  1049. res, (long long)(addr), (long long)(len), (long long)(prot), \
  1050. (long long)(flags), (long long)(fd), (long long)(PAD), (long long)(pos))
  1051. #define __sanitizer_syscall_pre___syscall(code, arg0, arg1, arg2, arg3, arg4, \
  1052. arg5, arg6, arg7) \
  1053. __sanitizer_syscall_pre_impl___syscall( \
  1054. (long long)(code), (long long)(arg0), (long long)(arg1), \
  1055. (long long)(arg2), (long long)(arg3), (long long)(arg4), \
  1056. (long long)(arg5), (long long)(arg6), (long long)(arg7))
  1057. #define __sanitizer_syscall_post___syscall(res, code, arg0, arg1, arg2, arg3, \
  1058. arg4, arg5, arg6, arg7) \
  1059. __sanitizer_syscall_post_impl___syscall( \
  1060. res, (long long)(code), (long long)(arg0), (long long)(arg1), \
  1061. (long long)(arg2), (long long)(arg3), (long long)(arg4), \
  1062. (long long)(arg5), (long long)(arg6), (long long)(arg7))
  1063. #define __sanitizer_syscall_pre_lseek(fd, PAD, offset, whence) \
  1064. __sanitizer_syscall_pre_impl_lseek((long long)(fd), (long long)(PAD), \
  1065. (long long)(offset), (long long)(whence))
  1066. #define __sanitizer_syscall_post_lseek(res, fd, PAD, offset, whence) \
  1067. __sanitizer_syscall_post_impl_lseek(res, (long long)(fd), (long long)(PAD), \
  1068. (long long)(offset), \
  1069. (long long)(whence))
  1070. #define __sanitizer_syscall_pre_truncate(path, PAD, length) \
  1071. __sanitizer_syscall_pre_impl_truncate((long long)(path), (long long)(PAD), \
  1072. (long long)(length))
  1073. #define __sanitizer_syscall_post_truncate(res, path, PAD, length) \
  1074. __sanitizer_syscall_post_impl_truncate( \
  1075. res, (long long)(path), (long long)(PAD), (long long)(length))
  1076. #define __sanitizer_syscall_pre_ftruncate(fd, PAD, length) \
  1077. __sanitizer_syscall_pre_impl_ftruncate((long long)(fd), (long long)(PAD), \
  1078. (long long)(length))
  1079. #define __sanitizer_syscall_post_ftruncate(res, fd, PAD, length) \
  1080. __sanitizer_syscall_post_impl_ftruncate( \
  1081. res, (long long)(fd), (long long)(PAD), (long long)(length))
  1082. #define __sanitizer_syscall_pre___sysctl(name, namelen, oldv, oldlenp, newv, \
  1083. newlen) \
  1084. __sanitizer_syscall_pre_impl___sysctl( \
  1085. (long long)(name), (long long)(namelen), (long long)(oldv), \
  1086. (long long)(oldlenp), (long long)(newv), (long long)(newlen))
  1087. #define __sanitizer_syscall_post___sysctl(res, name, namelen, oldv, oldlenp, \
  1088. newv, newlen) \
  1089. __sanitizer_syscall_post_impl___sysctl( \
  1090. res, (long long)(name), (long long)(namelen), (long long)(oldv), \
  1091. (long long)(oldlenp), (long long)(newv), (long long)(newlen))
  1092. #define __sanitizer_syscall_pre_mlock(addr, len) \
  1093. __sanitizer_syscall_pre_impl_mlock((long long)(addr), (long long)(len))
  1094. #define __sanitizer_syscall_post_mlock(res, addr, len) \
  1095. __sanitizer_syscall_post_impl_mlock(res, (long long)(addr), (long long)(len))
  1096. #define __sanitizer_syscall_pre_munlock(addr, len) \
  1097. __sanitizer_syscall_pre_impl_munlock((long long)(addr), (long long)(len))
  1098. #define __sanitizer_syscall_post_munlock(res, addr, len) \
  1099. __sanitizer_syscall_post_impl_munlock(res, (long long)(addr), \
  1100. (long long)(len))
  1101. #define __sanitizer_syscall_pre_undelete(path) \
  1102. __sanitizer_syscall_pre_impl_undelete((long long)(path))
  1103. #define __sanitizer_syscall_post_undelete(res, path) \
  1104. __sanitizer_syscall_post_impl_undelete(res, (long long)(path))
  1105. #define __sanitizer_syscall_pre_compat_50_futimes(fd, tptr) \
  1106. __sanitizer_syscall_pre_impl_compat_50_futimes((long long)(fd), \
  1107. (long long)(tptr))
  1108. #define __sanitizer_syscall_post_compat_50_futimes(res, fd, tptr) \
  1109. __sanitizer_syscall_post_impl_compat_50_futimes(res, (long long)(fd), \
  1110. (long long)(tptr))
  1111. #define __sanitizer_syscall_pre_getpgid(pid) \
  1112. __sanitizer_syscall_pre_impl_getpgid((long long)(pid))
  1113. #define __sanitizer_syscall_post_getpgid(res, pid) \
  1114. __sanitizer_syscall_post_impl_getpgid(res, (long long)(pid))
  1115. #define __sanitizer_syscall_pre_reboot(opt, bootstr) \
  1116. __sanitizer_syscall_pre_impl_reboot((long long)(opt), (long long)(bootstr))
  1117. #define __sanitizer_syscall_post_reboot(res, opt, bootstr) \
  1118. __sanitizer_syscall_post_impl_reboot(res, (long long)(opt), \
  1119. (long long)(bootstr))
  1120. #define __sanitizer_syscall_pre_poll(fds, nfds, timeout) \
  1121. __sanitizer_syscall_pre_impl_poll((long long)(fds), (long long)(nfds), \
  1122. (long long)(timeout))
  1123. #define __sanitizer_syscall_post_poll(res, fds, nfds, timeout) \
  1124. __sanitizer_syscall_post_impl_poll(res, (long long)(fds), (long long)(nfds), \
  1125. (long long)(timeout))
  1126. #define __sanitizer_syscall_pre_afssys(id, a1, a2, a3, a4, a5, a6) \
  1127. __sanitizer_syscall_pre_impl_afssys( \
  1128. (long long)(id), (long long)(a1), (long long)(a2), (long long)(a3), \
  1129. (long long)(a4), (long long)(a5), (long long)(a6))
  1130. #define __sanitizer_syscall_post_afssys(res, id, a1, a2, a3, a4, a5, a6) \
  1131. __sanitizer_syscall_post_impl_afssys( \
  1132. res, (long long)(id), (long long)(a1), (long long)(a2), (long long)(a3), \
  1133. (long long)(a4), (long long)(a5), (long long)(a6))
  1134. /* syscall 211 has been skipped */
  1135. /* syscall 212 has been skipped */
  1136. /* syscall 213 has been skipped */
  1137. /* syscall 214 has been skipped */
  1138. /* syscall 215 has been skipped */
  1139. /* syscall 216 has been skipped */
  1140. /* syscall 217 has been skipped */
  1141. /* syscall 218 has been skipped */
  1142. /* syscall 219 has been skipped */
  1143. #define __sanitizer_syscall_pre_compat_14___semctl(semid, semnum, cmd, arg) \
  1144. __sanitizer_syscall_pre_impl_compat_14___semctl( \
  1145. (long long)(semid), (long long)(semnum), (long long)(cmd), \
  1146. (long long)(arg))
  1147. #define __sanitizer_syscall_post_compat_14___semctl(res, semid, semnum, cmd, \
  1148. arg) \
  1149. __sanitizer_syscall_post_impl_compat_14___semctl( \
  1150. res, (long long)(semid), (long long)(semnum), (long long)(cmd), \
  1151. (long long)(arg))
  1152. #define __sanitizer_syscall_pre_semget(key, nsems, semflg) \
  1153. __sanitizer_syscall_pre_impl_semget((long long)(key), (long long)(nsems), \
  1154. (long long)(semflg))
  1155. #define __sanitizer_syscall_post_semget(res, key, nsems, semflg) \
  1156. __sanitizer_syscall_post_impl_semget( \
  1157. res, (long long)(key), (long long)(nsems), (long long)(semflg))
  1158. #define __sanitizer_syscall_pre_semop(semid, sops, nsops) \
  1159. __sanitizer_syscall_pre_impl_semop((long long)(semid), (long long)(sops), \
  1160. (long long)(nsops))
  1161. #define __sanitizer_syscall_post_semop(res, semid, sops, nsops) \
  1162. __sanitizer_syscall_post_impl_semop(res, (long long)(semid), \
  1163. (long long)(sops), (long long)(nsops))
  1164. #define __sanitizer_syscall_pre_semconfig(flag) \
  1165. __sanitizer_syscall_pre_impl_semconfig((long long)(flag))
  1166. #define __sanitizer_syscall_post_semconfig(res, flag) \
  1167. __sanitizer_syscall_post_impl_semconfig(res, (long long)(flag))
  1168. #define __sanitizer_syscall_pre_compat_14_msgctl(msqid, cmd, buf) \
  1169. __sanitizer_syscall_pre_impl_compat_14_msgctl( \
  1170. (long long)(msqid), (long long)(cmd), (long long)(buf))
  1171. #define __sanitizer_syscall_post_compat_14_msgctl(res, msqid, cmd, buf) \
  1172. __sanitizer_syscall_post_impl_compat_14_msgctl( \
  1173. res, (long long)(msqid), (long long)(cmd), (long long)(buf))
  1174. #define __sanitizer_syscall_pre_msgget(key, msgflg) \
  1175. __sanitizer_syscall_pre_impl_msgget((long long)(key), (long long)(msgflg))
  1176. #define __sanitizer_syscall_post_msgget(res, key, msgflg) \
  1177. __sanitizer_syscall_post_impl_msgget(res, (long long)(key), \
  1178. (long long)(msgflg))
  1179. #define __sanitizer_syscall_pre_msgsnd(msqid, msgp, msgsz, msgflg) \
  1180. __sanitizer_syscall_pre_impl_msgsnd((long long)(msqid), (long long)(msgp), \
  1181. (long long)(msgsz), (long long)(msgflg))
  1182. #define __sanitizer_syscall_post_msgsnd(res, msqid, msgp, msgsz, msgflg) \
  1183. __sanitizer_syscall_post_impl_msgsnd(res, (long long)(msqid), \
  1184. (long long)(msgp), (long long)(msgsz), \
  1185. (long long)(msgflg))
  1186. #define __sanitizer_syscall_pre_msgrcv(msqid, msgp, msgsz, msgtyp, msgflg) \
  1187. __sanitizer_syscall_pre_impl_msgrcv((long long)(msqid), (long long)(msgp), \
  1188. (long long)(msgsz), (long long)(msgtyp), \
  1189. (long long)(msgflg))
  1190. #define __sanitizer_syscall_post_msgrcv(res, msqid, msgp, msgsz, msgtyp, \
  1191. msgflg) \
  1192. __sanitizer_syscall_post_impl_msgrcv( \
  1193. res, (long long)(msqid), (long long)(msgp), (long long)(msgsz), \
  1194. (long long)(msgtyp), (long long)(msgflg))
  1195. #define __sanitizer_syscall_pre_shmat(shmid, shmaddr, shmflg) \
  1196. __sanitizer_syscall_pre_impl_shmat((long long)(shmid), (long long)(shmaddr), \
  1197. (long long)(shmflg))
  1198. #define __sanitizer_syscall_post_shmat(res, shmid, shmaddr, shmflg) \
  1199. __sanitizer_syscall_post_impl_shmat( \
  1200. res, (long long)(shmid), (long long)(shmaddr), (long long)(shmflg))
  1201. #define __sanitizer_syscall_pre_compat_14_shmctl(shmid, cmd, buf) \
  1202. __sanitizer_syscall_pre_impl_compat_14_shmctl( \
  1203. (long long)(shmid), (long long)(cmd), (long long)(buf))
  1204. #define __sanitizer_syscall_post_compat_14_shmctl(res, shmid, cmd, buf) \
  1205. __sanitizer_syscall_post_impl_compat_14_shmctl( \
  1206. res, (long long)(shmid), (long long)(cmd), (long long)(buf))
  1207. #define __sanitizer_syscall_pre_shmdt(shmaddr) \
  1208. __sanitizer_syscall_pre_impl_shmdt((long long)(shmaddr))
  1209. #define __sanitizer_syscall_post_shmdt(res, shmaddr) \
  1210. __sanitizer_syscall_post_impl_shmdt(res, (long long)(shmaddr))
  1211. #define __sanitizer_syscall_pre_shmget(key, size, shmflg) \
  1212. __sanitizer_syscall_pre_impl_shmget((long long)(key), (long long)(size), \
  1213. (long long)(shmflg))
  1214. #define __sanitizer_syscall_post_shmget(res, key, size, shmflg) \
  1215. __sanitizer_syscall_post_impl_shmget(res, (long long)(key), \
  1216. (long long)(size), (long long)(shmflg))
  1217. #define __sanitizer_syscall_pre_compat_50_clock_gettime(clock_id, tp) \
  1218. __sanitizer_syscall_pre_impl_compat_50_clock_gettime((long long)(clock_id), \
  1219. (long long)(tp))
  1220. #define __sanitizer_syscall_post_compat_50_clock_gettime(res, clock_id, tp) \
  1221. __sanitizer_syscall_post_impl_compat_50_clock_gettime( \
  1222. res, (long long)(clock_id), (long long)(tp))
  1223. #define __sanitizer_syscall_pre_compat_50_clock_settime(clock_id, tp) \
  1224. __sanitizer_syscall_pre_impl_compat_50_clock_settime((long long)(clock_id), \
  1225. (long long)(tp))
  1226. #define __sanitizer_syscall_post_compat_50_clock_settime(res, clock_id, tp) \
  1227. __sanitizer_syscall_post_impl_compat_50_clock_settime( \
  1228. res, (long long)(clock_id), (long long)(tp))
  1229. #define __sanitizer_syscall_pre_compat_50_clock_getres(clock_id, tp) \
  1230. __sanitizer_syscall_pre_impl_compat_50_clock_getres((long long)(clock_id), \
  1231. (long long)(tp))
  1232. #define __sanitizer_syscall_post_compat_50_clock_getres(res, clock_id, tp) \
  1233. __sanitizer_syscall_post_impl_compat_50_clock_getres( \
  1234. res, (long long)(clock_id), (long long)(tp))
  1235. #define __sanitizer_syscall_pre_timer_create(clock_id, evp, timerid) \
  1236. __sanitizer_syscall_pre_impl_timer_create( \
  1237. (long long)(clock_id), (long long)(evp), (long long)(timerid))
  1238. #define __sanitizer_syscall_post_timer_create(res, clock_id, evp, timerid) \
  1239. __sanitizer_syscall_post_impl_timer_create( \
  1240. res, (long long)(clock_id), (long long)(evp), (long long)(timerid))
  1241. #define __sanitizer_syscall_pre_timer_delete(timerid) \
  1242. __sanitizer_syscall_pre_impl_timer_delete((long long)(timerid))
  1243. #define __sanitizer_syscall_post_timer_delete(res, timerid) \
  1244. __sanitizer_syscall_post_impl_timer_delete(res, (long long)(timerid))
  1245. #define __sanitizer_syscall_pre_compat_50_timer_settime(timerid, flags, value, \
  1246. ovalue) \
  1247. __sanitizer_syscall_pre_impl_compat_50_timer_settime( \
  1248. (long long)(timerid), (long long)(flags), (long long)(value), \
  1249. (long long)(ovalue))
  1250. #define __sanitizer_syscall_post_compat_50_timer_settime(res, timerid, flags, \
  1251. value, ovalue) \
  1252. __sanitizer_syscall_post_impl_compat_50_timer_settime( \
  1253. res, (long long)(timerid), (long long)(flags), (long long)(value), \
  1254. (long long)(ovalue))
  1255. #define __sanitizer_syscall_pre_compat_50_timer_gettime(timerid, value) \
  1256. __sanitizer_syscall_pre_impl_compat_50_timer_gettime((long long)(timerid), \
  1257. (long long)(value))
  1258. #define __sanitizer_syscall_post_compat_50_timer_gettime(res, timerid, value) \
  1259. __sanitizer_syscall_post_impl_compat_50_timer_gettime( \
  1260. res, (long long)(timerid), (long long)(value))
  1261. #define __sanitizer_syscall_pre_timer_getoverrun(timerid) \
  1262. __sanitizer_syscall_pre_impl_timer_getoverrun((long long)(timerid))
  1263. #define __sanitizer_syscall_post_timer_getoverrun(res, timerid) \
  1264. __sanitizer_syscall_post_impl_timer_getoverrun(res, (long long)(timerid))
  1265. #define __sanitizer_syscall_pre_compat_50_nanosleep(rqtp, rmtp) \
  1266. __sanitizer_syscall_pre_impl_compat_50_nanosleep((long long)(rqtp), \
  1267. (long long)(rmtp))
  1268. #define __sanitizer_syscall_post_compat_50_nanosleep(res, rqtp, rmtp) \
  1269. __sanitizer_syscall_post_impl_compat_50_nanosleep(res, (long long)(rqtp), \
  1270. (long long)(rmtp))
  1271. #define __sanitizer_syscall_pre_fdatasync(fd) \
  1272. __sanitizer_syscall_pre_impl_fdatasync((long long)(fd))
  1273. #define __sanitizer_syscall_post_fdatasync(res, fd) \
  1274. __sanitizer_syscall_post_impl_fdatasync(res, (long long)(fd))
  1275. #define __sanitizer_syscall_pre_mlockall(flags) \
  1276. __sanitizer_syscall_pre_impl_mlockall((long long)(flags))
  1277. #define __sanitizer_syscall_post_mlockall(res, flags) \
  1278. __sanitizer_syscall_post_impl_mlockall(res, (long long)(flags))
  1279. #define __sanitizer_syscall_pre_munlockall() \
  1280. __sanitizer_syscall_pre_impl_munlockall()
  1281. #define __sanitizer_syscall_post_munlockall(res) \
  1282. __sanitizer_syscall_post_impl_munlockall(res)
  1283. #define __sanitizer_syscall_pre_compat_50___sigtimedwait(set, info, timeout) \
  1284. __sanitizer_syscall_pre_impl_compat_50___sigtimedwait( \
  1285. (long long)(set), (long long)(info), (long long)(timeout))
  1286. #define __sanitizer_syscall_post_compat_50___sigtimedwait(res, set, info, \
  1287. timeout) \
  1288. __sanitizer_syscall_post_impl_compat_50___sigtimedwait( \
  1289. res, (long long)(set), (long long)(info), (long long)(timeout))
  1290. #define __sanitizer_syscall_pre_sigqueueinfo(pid, info) \
  1291. __sanitizer_syscall_pre_impl_sigqueueinfo((long long)(pid), (long long)(info))
  1292. #define __sanitizer_syscall_post_sigqueueinfo(res, pid, info) \
  1293. __sanitizer_syscall_post_impl_sigqueueinfo(res, (long long)(pid), \
  1294. (long long)(info))
  1295. #define __sanitizer_syscall_pre_modctl(cmd, arg) \
  1296. __sanitizer_syscall_pre_impl_modctl((long long)(cmd), (long long)(arg))
  1297. #define __sanitizer_syscall_post_modctl(res, cmd, arg) \
  1298. __sanitizer_syscall_post_impl_modctl(res, (long long)(cmd), (long long)(arg))
  1299. #define __sanitizer_syscall_pre__ksem_init(value, idp) \
  1300. __sanitizer_syscall_pre_impl__ksem_init((long long)(value), (long long)(idp))
  1301. #define __sanitizer_syscall_post__ksem_init(res, value, idp) \
  1302. __sanitizer_syscall_post_impl__ksem_init(res, (long long)(value), \
  1303. (long long)(idp))
  1304. #define __sanitizer_syscall_pre__ksem_open(name, oflag, mode, value, idp) \
  1305. __sanitizer_syscall_pre_impl__ksem_open( \
  1306. (long long)(name), (long long)(oflag), (long long)(mode), \
  1307. (long long)(value), (long long)(idp))
  1308. #define __sanitizer_syscall_post__ksem_open(res, name, oflag, mode, value, \
  1309. idp) \
  1310. __sanitizer_syscall_post_impl__ksem_open( \
  1311. res, (long long)(name), (long long)(oflag), (long long)(mode), \
  1312. (long long)(value), (long long)(idp))
  1313. #define __sanitizer_syscall_pre__ksem_unlink(name) \
  1314. __sanitizer_syscall_pre_impl__ksem_unlink((long long)(name))
  1315. #define __sanitizer_syscall_post__ksem_unlink(res, name) \
  1316. __sanitizer_syscall_post_impl__ksem_unlink(res, (long long)(name))
  1317. #define __sanitizer_syscall_pre__ksem_close(id) \
  1318. __sanitizer_syscall_pre_impl__ksem_close((long long)(id))
  1319. #define __sanitizer_syscall_post__ksem_close(res, id) \
  1320. __sanitizer_syscall_post_impl__ksem_close(res, (long long)(id))
  1321. #define __sanitizer_syscall_pre__ksem_post(id) \
  1322. __sanitizer_syscall_pre_impl__ksem_post((long long)(id))
  1323. #define __sanitizer_syscall_post__ksem_post(res, id) \
  1324. __sanitizer_syscall_post_impl__ksem_post(res, (long long)(id))
  1325. #define __sanitizer_syscall_pre__ksem_wait(id) \
  1326. __sanitizer_syscall_pre_impl__ksem_wait((long long)(id))
  1327. #define __sanitizer_syscall_post__ksem_wait(res, id) \
  1328. __sanitizer_syscall_post_impl__ksem_wait(res, (long long)(id))
  1329. #define __sanitizer_syscall_pre__ksem_trywait(id) \
  1330. __sanitizer_syscall_pre_impl__ksem_trywait((long long)(id))
  1331. #define __sanitizer_syscall_post__ksem_trywait(res, id) \
  1332. __sanitizer_syscall_post_impl__ksem_trywait(res, (long long)(id))
  1333. #define __sanitizer_syscall_pre__ksem_getvalue(id, value) \
  1334. __sanitizer_syscall_pre_impl__ksem_getvalue((long long)(id), \
  1335. (long long)(value))
  1336. #define __sanitizer_syscall_post__ksem_getvalue(res, id, value) \
  1337. __sanitizer_syscall_post_impl__ksem_getvalue(res, (long long)(id), \
  1338. (long long)(value))
  1339. #define __sanitizer_syscall_pre__ksem_destroy(id) \
  1340. __sanitizer_syscall_pre_impl__ksem_destroy((long long)(id))
  1341. #define __sanitizer_syscall_post__ksem_destroy(res, id) \
  1342. __sanitizer_syscall_post_impl__ksem_destroy(res, (long long)(id))
  1343. #define __sanitizer_syscall_pre__ksem_timedwait(id, abstime) \
  1344. __sanitizer_syscall_pre_impl__ksem_timedwait((long long)(id), \
  1345. (long long)(abstime))
  1346. #define __sanitizer_syscall_post__ksem_timedwait(res, id, abstime) \
  1347. __sanitizer_syscall_post_impl__ksem_timedwait(res, (long long)(id), \
  1348. (long long)(abstime))
  1349. #define __sanitizer_syscall_pre_mq_open(name, oflag, mode, attr) \
  1350. __sanitizer_syscall_pre_impl_mq_open((long long)(name), (long long)(oflag), \
  1351. (long long)(mode), (long long)(attr))
  1352. #define __sanitizer_syscall_post_mq_open(res, name, oflag, mode, attr) \
  1353. __sanitizer_syscall_post_impl_mq_open(res, (long long)(name), \
  1354. (long long)(oflag), (long long)(mode), \
  1355. (long long)(attr))
  1356. #define __sanitizer_syscall_pre_mq_close(mqdes) \
  1357. __sanitizer_syscall_pre_impl_mq_close((long long)(mqdes))
  1358. #define __sanitizer_syscall_post_mq_close(res, mqdes) \
  1359. __sanitizer_syscall_post_impl_mq_close(res, (long long)(mqdes))
  1360. #define __sanitizer_syscall_pre_mq_unlink(name) \
  1361. __sanitizer_syscall_pre_impl_mq_unlink((long long)(name))
  1362. #define __sanitizer_syscall_post_mq_unlink(res, name) \
  1363. __sanitizer_syscall_post_impl_mq_unlink(res, (long long)(name))
  1364. #define __sanitizer_syscall_pre_mq_getattr(mqdes, mqstat) \
  1365. __sanitizer_syscall_pre_impl_mq_getattr((long long)(mqdes), \
  1366. (long long)(mqstat))
  1367. #define __sanitizer_syscall_post_mq_getattr(res, mqdes, mqstat) \
  1368. __sanitizer_syscall_post_impl_mq_getattr(res, (long long)(mqdes), \
  1369. (long long)(mqstat))
  1370. #define __sanitizer_syscall_pre_mq_setattr(mqdes, mqstat, omqstat) \
  1371. __sanitizer_syscall_pre_impl_mq_setattr( \
  1372. (long long)(mqdes), (long long)(mqstat), (long long)(omqstat))
  1373. #define __sanitizer_syscall_post_mq_setattr(res, mqdes, mqstat, omqstat) \
  1374. __sanitizer_syscall_post_impl_mq_setattr( \
  1375. res, (long long)(mqdes), (long long)(mqstat), (long long)(omqstat))
  1376. #define __sanitizer_syscall_pre_mq_notify(mqdes, notification) \
  1377. __sanitizer_syscall_pre_impl_mq_notify((long long)(mqdes), \
  1378. (long long)(notification))
  1379. #define __sanitizer_syscall_post_mq_notify(res, mqdes, notification) \
  1380. __sanitizer_syscall_post_impl_mq_notify(res, (long long)(mqdes), \
  1381. (long long)(notification))
  1382. #define __sanitizer_syscall_pre_mq_send(mqdes, msg_ptr, msg_len, msg_prio) \
  1383. __sanitizer_syscall_pre_impl_mq_send( \
  1384. (long long)(mqdes), (long long)(msg_ptr), (long long)(msg_len), \
  1385. (long long)(msg_prio))
  1386. #define __sanitizer_syscall_post_mq_send(res, mqdes, msg_ptr, msg_len, \
  1387. msg_prio) \
  1388. __sanitizer_syscall_post_impl_mq_send( \
  1389. res, (long long)(mqdes), (long long)(msg_ptr), (long long)(msg_len), \
  1390. (long long)(msg_prio))
  1391. #define __sanitizer_syscall_pre_mq_receive(mqdes, msg_ptr, msg_len, msg_prio) \
  1392. __sanitizer_syscall_pre_impl_mq_receive( \
  1393. (long long)(mqdes), (long long)(msg_ptr), (long long)(msg_len), \
  1394. (long long)(msg_prio))
  1395. #define __sanitizer_syscall_post_mq_receive(res, mqdes, msg_ptr, msg_len, \
  1396. msg_prio) \
  1397. __sanitizer_syscall_post_impl_mq_receive( \
  1398. res, (long long)(mqdes), (long long)(msg_ptr), (long long)(msg_len), \
  1399. (long long)(msg_prio))
  1400. #define __sanitizer_syscall_pre_compat_50_mq_timedsend( \
  1401. mqdes, msg_ptr, msg_len, msg_prio, abs_timeout) \
  1402. __sanitizer_syscall_pre_impl_compat_50_mq_timedsend( \
  1403. (long long)(mqdes), (long long)(msg_ptr), (long long)(msg_len), \
  1404. (long long)(msg_prio), (long long)(abs_timeout))
  1405. #define __sanitizer_syscall_post_compat_50_mq_timedsend( \
  1406. res, mqdes, msg_ptr, msg_len, msg_prio, abs_timeout) \
  1407. __sanitizer_syscall_post_impl_compat_50_mq_timedsend( \
  1408. res, (long long)(mqdes), (long long)(msg_ptr), (long long)(msg_len), \
  1409. (long long)(msg_prio), (long long)(abs_timeout))
  1410. #define __sanitizer_syscall_pre_compat_50_mq_timedreceive( \
  1411. mqdes, msg_ptr, msg_len, msg_prio, abs_timeout) \
  1412. __sanitizer_syscall_pre_impl_compat_50_mq_timedreceive( \
  1413. (long long)(mqdes), (long long)(msg_ptr), (long long)(msg_len), \
  1414. (long long)(msg_prio), (long long)(abs_timeout))
  1415. #define __sanitizer_syscall_post_compat_50_mq_timedreceive( \
  1416. res, mqdes, msg_ptr, msg_len, msg_prio, abs_timeout) \
  1417. __sanitizer_syscall_post_impl_compat_50_mq_timedreceive( \
  1418. res, (long long)(mqdes), (long long)(msg_ptr), (long long)(msg_len), \
  1419. (long long)(msg_prio), (long long)(abs_timeout))
  1420. /* syscall 267 has been skipped */
  1421. /* syscall 268 has been skipped */
  1422. /* syscall 269 has been skipped */
  1423. #define __sanitizer_syscall_pre___posix_rename(from, to) \
  1424. __sanitizer_syscall_pre_impl___posix_rename((long long)(from), \
  1425. (long long)(to))
  1426. #define __sanitizer_syscall_post___posix_rename(res, from, to) \
  1427. __sanitizer_syscall_post_impl___posix_rename(res, (long long)(from), \
  1428. (long long)(to))
  1429. #define __sanitizer_syscall_pre_swapctl(cmd, arg, misc) \
  1430. __sanitizer_syscall_pre_impl_swapctl((long long)(cmd), (long long)(arg), \
  1431. (long long)(misc))
  1432. #define __sanitizer_syscall_post_swapctl(res, cmd, arg, misc) \
  1433. __sanitizer_syscall_post_impl_swapctl(res, (long long)(cmd), \
  1434. (long long)(arg), (long long)(misc))
  1435. #define __sanitizer_syscall_pre_compat_30_getdents(fd, buf, count) \
  1436. __sanitizer_syscall_pre_impl_compat_30_getdents( \
  1437. (long long)(fd), (long long)(buf), (long long)(count))
  1438. #define __sanitizer_syscall_post_compat_30_getdents(res, fd, buf, count) \
  1439. __sanitizer_syscall_post_impl_compat_30_getdents( \
  1440. res, (long long)(fd), (long long)(buf), (long long)(count))
  1441. #define __sanitizer_syscall_pre_minherit(addr, len, inherit) \
  1442. __sanitizer_syscall_pre_impl_minherit((long long)(addr), (long long)(len), \
  1443. (long long)(inherit))
  1444. #define __sanitizer_syscall_post_minherit(res, addr, len, inherit) \
  1445. __sanitizer_syscall_post_impl_minherit( \
  1446. res, (long long)(addr), (long long)(len), (long long)(inherit))
  1447. #define __sanitizer_syscall_pre_lchmod(path, mode) \
  1448. __sanitizer_syscall_pre_impl_lchmod((long long)(path), (long long)(mode))
  1449. #define __sanitizer_syscall_post_lchmod(res, path, mode) \
  1450. __sanitizer_syscall_post_impl_lchmod(res, (long long)(path), \
  1451. (long long)(mode))
  1452. #define __sanitizer_syscall_pre_lchown(path, uid, gid) \
  1453. __sanitizer_syscall_pre_impl_lchown((long long)(path), (long long)(uid), \
  1454. (long long)(gid))
  1455. #define __sanitizer_syscall_post_lchown(res, path, uid, gid) \
  1456. __sanitizer_syscall_post_impl_lchown(res, (long long)(path), \
  1457. (long long)(uid), (long long)(gid))
  1458. #define __sanitizer_syscall_pre_compat_50_lutimes(path, tptr) \
  1459. __sanitizer_syscall_pre_impl_compat_50_lutimes((long long)(path), \
  1460. (long long)(tptr))
  1461. #define __sanitizer_syscall_post_compat_50_lutimes(res, path, tptr) \
  1462. __sanitizer_syscall_post_impl_compat_50_lutimes(res, (long long)(path), \
  1463. (long long)(tptr))
  1464. #define __sanitizer_syscall_pre___msync13(addr, len, flags) \
  1465. __sanitizer_syscall_pre_impl___msync13((long long)(addr), (long long)(len), \
  1466. (long long)(flags))
  1467. #define __sanitizer_syscall_post___msync13(res, addr, len, flags) \
  1468. __sanitizer_syscall_post_impl___msync13( \
  1469. res, (long long)(addr), (long long)(len), (long long)(flags))
  1470. #define __sanitizer_syscall_pre_compat_30___stat13(path, ub) \
  1471. __sanitizer_syscall_pre_impl_compat_30___stat13((long long)(path), \
  1472. (long long)(ub))
  1473. #define __sanitizer_syscall_post_compat_30___stat13(res, path, ub) \
  1474. __sanitizer_syscall_post_impl_compat_30___stat13(res, (long long)(path), \
  1475. (long long)(ub))
  1476. #define __sanitizer_syscall_pre_compat_30___fstat13(fd, sb) \
  1477. __sanitizer_syscall_pre_impl_compat_30___fstat13((long long)(fd), \
  1478. (long long)(sb))
  1479. #define __sanitizer_syscall_post_compat_30___fstat13(res, fd, sb) \
  1480. __sanitizer_syscall_post_impl_compat_30___fstat13(res, (long long)(fd), \
  1481. (long long)(sb))
  1482. #define __sanitizer_syscall_pre_compat_30___lstat13(path, ub) \
  1483. __sanitizer_syscall_pre_impl_compat_30___lstat13((long long)(path), \
  1484. (long long)(ub))
  1485. #define __sanitizer_syscall_post_compat_30___lstat13(res, path, ub) \
  1486. __sanitizer_syscall_post_impl_compat_30___lstat13(res, (long long)(path), \
  1487. (long long)(ub))
  1488. #define __sanitizer_syscall_pre___sigaltstack14(nss, oss) \
  1489. __sanitizer_syscall_pre_impl___sigaltstack14((long long)(nss), \
  1490. (long long)(oss))
  1491. #define __sanitizer_syscall_post___sigaltstack14(res, nss, oss) \
  1492. __sanitizer_syscall_post_impl___sigaltstack14(res, (long long)(nss), \
  1493. (long long)(oss))
  1494. #define __sanitizer_syscall_pre___vfork14() \
  1495. __sanitizer_syscall_pre_impl___vfork14()
  1496. #define __sanitizer_syscall_post___vfork14(res) \
  1497. __sanitizer_syscall_post_impl___vfork14(res)
  1498. #define __sanitizer_syscall_pre___posix_chown(path, uid, gid) \
  1499. __sanitizer_syscall_pre_impl___posix_chown( \
  1500. (long long)(path), (long long)(uid), (long long)(gid))
  1501. #define __sanitizer_syscall_post___posix_chown(res, path, uid, gid) \
  1502. __sanitizer_syscall_post_impl___posix_chown( \
  1503. res, (long long)(path), (long long)(uid), (long long)(gid))
  1504. #define __sanitizer_syscall_pre___posix_fchown(fd, uid, gid) \
  1505. __sanitizer_syscall_pre_impl___posix_fchown( \
  1506. (long long)(fd), (long long)(uid), (long long)(gid))
  1507. #define __sanitizer_syscall_post___posix_fchown(res, fd, uid, gid) \
  1508. __sanitizer_syscall_post_impl___posix_fchown( \
  1509. res, (long long)(fd), (long long)(uid), (long long)(gid))
  1510. #define __sanitizer_syscall_pre___posix_lchown(path, uid, gid) \
  1511. __sanitizer_syscall_pre_impl___posix_lchown( \
  1512. (long long)(path), (long long)(uid), (long long)(gid))
  1513. #define __sanitizer_syscall_post___posix_lchown(res, path, uid, gid) \
  1514. __sanitizer_syscall_post_impl___posix_lchown( \
  1515. res, (long long)(path), (long long)(uid), (long long)(gid))
  1516. #define __sanitizer_syscall_pre_getsid(pid) \
  1517. __sanitizer_syscall_pre_impl_getsid((long long)(pid))
  1518. #define __sanitizer_syscall_post_getsid(res, pid) \
  1519. __sanitizer_syscall_post_impl_getsid(res, (long long)(pid))
  1520. #define __sanitizer_syscall_pre___clone(flags, stack) \
  1521. __sanitizer_syscall_pre_impl___clone((long long)(flags), (long long)(stack))
  1522. #define __sanitizer_syscall_post___clone(res, flags, stack) \
  1523. __sanitizer_syscall_post_impl___clone(res, (long long)(flags), \
  1524. (long long)(stack))
  1525. #define __sanitizer_syscall_pre_fktrace(fd, ops, facs, pid) \
  1526. __sanitizer_syscall_pre_impl_fktrace((long long)(fd), (long long)(ops), \
  1527. (long long)(facs), (long long)(pid))
  1528. #define __sanitizer_syscall_post_fktrace(res, fd, ops, facs, pid) \
  1529. __sanitizer_syscall_post_impl_fktrace(res, (long long)(fd), \
  1530. (long long)(ops), (long long)(facs), \
  1531. (long long)(pid))
  1532. #define __sanitizer_syscall_pre_preadv(fd, iovp, iovcnt, PAD, offset) \
  1533. __sanitizer_syscall_pre_impl_preadv((long long)(fd), (long long)(iovp), \
  1534. (long long)(iovcnt), (long long)(PAD), \
  1535. (long long)(offset))
  1536. #define __sanitizer_syscall_post_preadv(res, fd, iovp, iovcnt, PAD, offset) \
  1537. __sanitizer_syscall_post_impl_preadv(res, (long long)(fd), \
  1538. (long long)(iovp), (long long)(iovcnt), \
  1539. (long long)(PAD), (long long)(offset))
  1540. #define __sanitizer_syscall_pre_pwritev(fd, iovp, iovcnt, PAD, offset) \
  1541. __sanitizer_syscall_pre_impl_pwritev((long long)(fd), (long long)(iovp), \
  1542. (long long)(iovcnt), (long long)(PAD), \
  1543. (long long)(offset))
  1544. #define __sanitizer_syscall_post_pwritev(res, fd, iovp, iovcnt, PAD, offset) \
  1545. __sanitizer_syscall_post_impl_pwritev( \
  1546. res, (long long)(fd), (long long)(iovp), (long long)(iovcnt), \
  1547. (long long)(PAD), (long long)(offset))
  1548. #define __sanitizer_syscall_pre_compat_16___sigaction14(signum, nsa, osa) \
  1549. __sanitizer_syscall_pre_impl_compat_16___sigaction14( \
  1550. (long long)(signum), (long long)(nsa), (long long)(osa))
  1551. #define __sanitizer_syscall_post_compat_16___sigaction14(res, signum, nsa, \
  1552. osa) \
  1553. __sanitizer_syscall_post_impl_compat_16___sigaction14( \
  1554. res, (long long)(signum), (long long)(nsa), (long long)(osa))
  1555. #define __sanitizer_syscall_pre___sigpending14(set) \
  1556. __sanitizer_syscall_pre_impl___sigpending14((long long)(set))
  1557. #define __sanitizer_syscall_post___sigpending14(res, set) \
  1558. __sanitizer_syscall_post_impl___sigpending14(res, (long long)(set))
  1559. #define __sanitizer_syscall_pre___sigprocmask14(how, set, oset) \
  1560. __sanitizer_syscall_pre_impl___sigprocmask14( \
  1561. (long long)(how), (long long)(set), (long long)(oset))
  1562. #define __sanitizer_syscall_post___sigprocmask14(res, how, set, oset) \
  1563. __sanitizer_syscall_post_impl___sigprocmask14( \
  1564. res, (long long)(how), (long long)(set), (long long)(oset))
  1565. #define __sanitizer_syscall_pre___sigsuspend14(set) \
  1566. __sanitizer_syscall_pre_impl___sigsuspend14((long long)(set))
  1567. #define __sanitizer_syscall_post___sigsuspend14(res, set) \
  1568. __sanitizer_syscall_post_impl___sigsuspend14(res, (long long)(set))
  1569. #define __sanitizer_syscall_pre_compat_16___sigreturn14(sigcntxp) \
  1570. __sanitizer_syscall_pre_impl_compat_16___sigreturn14((long long)(sigcntxp))
  1571. #define __sanitizer_syscall_post_compat_16___sigreturn14(res, sigcntxp) \
  1572. __sanitizer_syscall_post_impl_compat_16___sigreturn14(res, \
  1573. (long long)(sigcntxp))
  1574. #define __sanitizer_syscall_pre___getcwd(bufp, length) \
  1575. __sanitizer_syscall_pre_impl___getcwd((long long)(bufp), (long long)(length))
  1576. #define __sanitizer_syscall_post___getcwd(res, bufp, length) \
  1577. __sanitizer_syscall_post_impl___getcwd(res, (long long)(bufp), \
  1578. (long long)(length))
  1579. #define __sanitizer_syscall_pre_fchroot(fd) \
  1580. __sanitizer_syscall_pre_impl_fchroot((long long)(fd))
  1581. #define __sanitizer_syscall_post_fchroot(res, fd) \
  1582. __sanitizer_syscall_post_impl_fchroot(res, (long long)(fd))
  1583. #define __sanitizer_syscall_pre_compat_30_fhopen(fhp, flags) \
  1584. __sanitizer_syscall_pre_impl_compat_30_fhopen((long long)(fhp), \
  1585. (long long)(flags))
  1586. #define __sanitizer_syscall_post_compat_30_fhopen(res, fhp, flags) \
  1587. __sanitizer_syscall_post_impl_compat_30_fhopen(res, (long long)(fhp), \
  1588. (long long)(flags))
  1589. #define __sanitizer_syscall_pre_compat_30_fhstat(fhp, sb) \
  1590. __sanitizer_syscall_pre_impl_compat_30_fhstat((long long)(fhp), \
  1591. (long long)(sb))
  1592. #define __sanitizer_syscall_post_compat_30_fhstat(res, fhp, sb) \
  1593. __sanitizer_syscall_post_impl_compat_30_fhstat(res, (long long)(fhp), \
  1594. (long long)(sb))
  1595. #define __sanitizer_syscall_pre_compat_20_fhstatfs(fhp, buf) \
  1596. __sanitizer_syscall_pre_impl_compat_20_fhstatfs((long long)(fhp), \
  1597. (long long)(buf))
  1598. #define __sanitizer_syscall_post_compat_20_fhstatfs(res, fhp, buf) \
  1599. __sanitizer_syscall_post_impl_compat_20_fhstatfs(res, (long long)(fhp), \
  1600. (long long)(buf))
  1601. #define __sanitizer_syscall_pre_compat_50_____semctl13(semid, semnum, cmd, \
  1602. arg) \
  1603. __sanitizer_syscall_pre_impl_compat_50_____semctl13( \
  1604. (long long)(semid), (long long)(semnum), (long long)(cmd), \
  1605. (long long)(arg))
  1606. #define __sanitizer_syscall_post_compat_50_____semctl13(res, semid, semnum, \
  1607. cmd, arg) \
  1608. __sanitizer_syscall_post_impl_compat_50_____semctl13( \
  1609. res, (long long)(semid), (long long)(semnum), (long long)(cmd), \
  1610. (long long)(arg))
  1611. #define __sanitizer_syscall_pre_compat_50___msgctl13(msqid, cmd, buf) \
  1612. __sanitizer_syscall_pre_impl_compat_50___msgctl13( \
  1613. (long long)(msqid), (long long)(cmd), (long long)(buf))
  1614. #define __sanitizer_syscall_post_compat_50___msgctl13(res, msqid, cmd, buf) \
  1615. __sanitizer_syscall_post_impl_compat_50___msgctl13( \
  1616. res, (long long)(msqid), (long long)(cmd), (long long)(buf))
  1617. #define __sanitizer_syscall_pre_compat_50___shmctl13(shmid, cmd, buf) \
  1618. __sanitizer_syscall_pre_impl_compat_50___shmctl13( \
  1619. (long long)(shmid), (long long)(cmd), (long long)(buf))
  1620. #define __sanitizer_syscall_post_compat_50___shmctl13(res, shmid, cmd, buf) \
  1621. __sanitizer_syscall_post_impl_compat_50___shmctl13( \
  1622. res, (long long)(shmid), (long long)(cmd), (long long)(buf))
  1623. #define __sanitizer_syscall_pre_lchflags(path, flags) \
  1624. __sanitizer_syscall_pre_impl_lchflags((long long)(path), (long long)(flags))
  1625. #define __sanitizer_syscall_post_lchflags(res, path, flags) \
  1626. __sanitizer_syscall_post_impl_lchflags(res, (long long)(path), \
  1627. (long long)(flags))
  1628. #define __sanitizer_syscall_pre_issetugid() \
  1629. __sanitizer_syscall_pre_impl_issetugid()
  1630. #define __sanitizer_syscall_post_issetugid(res) \
  1631. __sanitizer_syscall_post_impl_issetugid(res)
  1632. #define __sanitizer_syscall_pre_utrace(label, addr, len) \
  1633. __sanitizer_syscall_pre_impl_utrace((long long)(label), (long long)(addr), \
  1634. (long long)(len))
  1635. #define __sanitizer_syscall_post_utrace(res, label, addr, len) \
  1636. __sanitizer_syscall_post_impl_utrace(res, (long long)(label), \
  1637. (long long)(addr), (long long)(len))
  1638. #define __sanitizer_syscall_pre_getcontext(ucp) \
  1639. __sanitizer_syscall_pre_impl_getcontext((long long)(ucp))
  1640. #define __sanitizer_syscall_post_getcontext(res, ucp) \
  1641. __sanitizer_syscall_post_impl_getcontext(res, (long long)(ucp))
  1642. #define __sanitizer_syscall_pre_setcontext(ucp) \
  1643. __sanitizer_syscall_pre_impl_setcontext((long long)(ucp))
  1644. #define __sanitizer_syscall_post_setcontext(res, ucp) \
  1645. __sanitizer_syscall_post_impl_setcontext(res, (long long)(ucp))
  1646. #define __sanitizer_syscall_pre__lwp_create(ucp, flags, new_lwp) \
  1647. __sanitizer_syscall_pre_impl__lwp_create( \
  1648. (long long)(ucp), (long long)(flags), (long long)(new_lwp))
  1649. #define __sanitizer_syscall_post__lwp_create(res, ucp, flags, new_lwp) \
  1650. __sanitizer_syscall_post_impl__lwp_create( \
  1651. res, (long long)(ucp), (long long)(flags), (long long)(new_lwp))
  1652. #define __sanitizer_syscall_pre__lwp_exit() \
  1653. __sanitizer_syscall_pre_impl__lwp_exit()
  1654. #define __sanitizer_syscall_post__lwp_exit(res) \
  1655. __sanitizer_syscall_post_impl__lwp_exit(res)
  1656. #define __sanitizer_syscall_pre__lwp_self() \
  1657. __sanitizer_syscall_pre_impl__lwp_self()
  1658. #define __sanitizer_syscall_post__lwp_self(res) \
  1659. __sanitizer_syscall_post_impl__lwp_self(res)
  1660. #define __sanitizer_syscall_pre__lwp_wait(wait_for, departed) \
  1661. __sanitizer_syscall_pre_impl__lwp_wait((long long)(wait_for), \
  1662. (long long)(departed))
  1663. #define __sanitizer_syscall_post__lwp_wait(res, wait_for, departed) \
  1664. __sanitizer_syscall_post_impl__lwp_wait(res, (long long)(wait_for), \
  1665. (long long)(departed))
  1666. #define __sanitizer_syscall_pre__lwp_suspend(target) \
  1667. __sanitizer_syscall_pre_impl__lwp_suspend((long long)(target))
  1668. #define __sanitizer_syscall_post__lwp_suspend(res, target) \
  1669. __sanitizer_syscall_post_impl__lwp_suspend(res, (long long)(target))
  1670. #define __sanitizer_syscall_pre__lwp_continue(target) \
  1671. __sanitizer_syscall_pre_impl__lwp_continue((long long)(target))
  1672. #define __sanitizer_syscall_post__lwp_continue(res, target) \
  1673. __sanitizer_syscall_post_impl__lwp_continue(res, (long long)(target))
  1674. #define __sanitizer_syscall_pre__lwp_wakeup(target) \
  1675. __sanitizer_syscall_pre_impl__lwp_wakeup((long long)(target))
  1676. #define __sanitizer_syscall_post__lwp_wakeup(res, target) \
  1677. __sanitizer_syscall_post_impl__lwp_wakeup(res, (long long)(target))
  1678. #define __sanitizer_syscall_pre__lwp_getprivate() \
  1679. __sanitizer_syscall_pre_impl__lwp_getprivate()
  1680. #define __sanitizer_syscall_post__lwp_getprivate(res) \
  1681. __sanitizer_syscall_post_impl__lwp_getprivate(res)
  1682. #define __sanitizer_syscall_pre__lwp_setprivate(ptr) \
  1683. __sanitizer_syscall_pre_impl__lwp_setprivate((long long)(ptr))
  1684. #define __sanitizer_syscall_post__lwp_setprivate(res, ptr) \
  1685. __sanitizer_syscall_post_impl__lwp_setprivate(res, (long long)(ptr))
  1686. #define __sanitizer_syscall_pre__lwp_kill(target, signo) \
  1687. __sanitizer_syscall_pre_impl__lwp_kill((long long)(target), \
  1688. (long long)(signo))
  1689. #define __sanitizer_syscall_post__lwp_kill(res, target, signo) \
  1690. __sanitizer_syscall_post_impl__lwp_kill(res, (long long)(target), \
  1691. (long long)(signo))
  1692. #define __sanitizer_syscall_pre__lwp_detach(target) \
  1693. __sanitizer_syscall_pre_impl__lwp_detach((long long)(target))
  1694. #define __sanitizer_syscall_post__lwp_detach(res, target) \
  1695. __sanitizer_syscall_post_impl__lwp_detach(res, (long long)(target))
  1696. #define __sanitizer_syscall_pre_compat_50__lwp_park(ts, unpark, hint, \
  1697. unparkhint) \
  1698. __sanitizer_syscall_pre_impl_compat_50__lwp_park( \
  1699. (long long)(ts), (long long)(unpark), (long long)(hint), \
  1700. (long long)(unparkhint))
  1701. #define __sanitizer_syscall_post_compat_50__lwp_park(res, ts, unpark, hint, \
  1702. unparkhint) \
  1703. __sanitizer_syscall_post_impl_compat_50__lwp_park( \
  1704. res, (long long)(ts), (long long)(unpark), (long long)(hint), \
  1705. (long long)(unparkhint))
  1706. #define __sanitizer_syscall_pre__lwp_unpark(target, hint) \
  1707. __sanitizer_syscall_pre_impl__lwp_unpark((long long)(target), \
  1708. (long long)(hint))
  1709. #define __sanitizer_syscall_post__lwp_unpark(res, target, hint) \
  1710. __sanitizer_syscall_post_impl__lwp_unpark(res, (long long)(target), \
  1711. (long long)(hint))
  1712. #define __sanitizer_syscall_pre__lwp_unpark_all(targets, ntargets, hint) \
  1713. __sanitizer_syscall_pre_impl__lwp_unpark_all( \
  1714. (long long)(targets), (long long)(ntargets), (long long)(hint))
  1715. #define __sanitizer_syscall_post__lwp_unpark_all(res, targets, ntargets, hint) \
  1716. __sanitizer_syscall_post_impl__lwp_unpark_all( \
  1717. res, (long long)(targets), (long long)(ntargets), (long long)(hint))
  1718. #define __sanitizer_syscall_pre__lwp_setname(target, name) \
  1719. __sanitizer_syscall_pre_impl__lwp_setname((long long)(target), \
  1720. (long long)(name))
  1721. #define __sanitizer_syscall_post__lwp_setname(res, target, name) \
  1722. __sanitizer_syscall_post_impl__lwp_setname(res, (long long)(target), \
  1723. (long long)(name))
  1724. #define __sanitizer_syscall_pre__lwp_getname(target, name, len) \
  1725. __sanitizer_syscall_pre_impl__lwp_getname( \
  1726. (long long)(target), (long long)(name), (long long)(len))
  1727. #define __sanitizer_syscall_post__lwp_getname(res, target, name, len) \
  1728. __sanitizer_syscall_post_impl__lwp_getname( \
  1729. res, (long long)(target), (long long)(name), (long long)(len))
  1730. #define __sanitizer_syscall_pre__lwp_ctl(features, address) \
  1731. __sanitizer_syscall_pre_impl__lwp_ctl((long long)(features), \
  1732. (long long)(address))
  1733. #define __sanitizer_syscall_post__lwp_ctl(res, features, address) \
  1734. __sanitizer_syscall_post_impl__lwp_ctl(res, (long long)(features), \
  1735. (long long)(address))
  1736. /* syscall 326 has been skipped */
  1737. /* syscall 327 has been skipped */
  1738. /* syscall 328 has been skipped */
  1739. /* syscall 329 has been skipped */
  1740. #define __sanitizer_syscall_pre_compat_60_sa_register(newv, oldv, flags, \
  1741. stackinfo_offset) \
  1742. __sanitizer_syscall_pre_impl_compat_60_sa_register( \
  1743. (long long)(newv), (long long)(oldv), (long long)(flags), \
  1744. (long long)(stackinfo_offset))
  1745. #define __sanitizer_syscall_post_compat_60_sa_register(res, newv, oldv, flags, \
  1746. stackinfo_offset) \
  1747. __sanitizer_syscall_post_impl_compat_60_sa_register( \
  1748. res, (long long)(newv), (long long)(oldv), (long long)(flags), \
  1749. (long long)(stackinfo_offset))
  1750. #define __sanitizer_syscall_pre_compat_60_sa_stacks(num, stacks) \
  1751. __sanitizer_syscall_pre_impl_compat_60_sa_stacks((long long)(num), \
  1752. (long long)(stacks))
  1753. #define __sanitizer_syscall_post_compat_60_sa_stacks(res, num, stacks) \
  1754. __sanitizer_syscall_post_impl_compat_60_sa_stacks(res, (long long)(num), \
  1755. (long long)(stacks))
  1756. #define __sanitizer_syscall_pre_compat_60_sa_enable() \
  1757. __sanitizer_syscall_pre_impl_compat_60_sa_enable()
  1758. #define __sanitizer_syscall_post_compat_60_sa_enable(res) \
  1759. __sanitizer_syscall_post_impl_compat_60_sa_enable(res)
  1760. #define __sanitizer_syscall_pre_compat_60_sa_setconcurrency(concurrency) \
  1761. __sanitizer_syscall_pre_impl_compat_60_sa_setconcurrency( \
  1762. (long long)(concurrency))
  1763. #define __sanitizer_syscall_post_compat_60_sa_setconcurrency(res, concurrency) \
  1764. __sanitizer_syscall_post_impl_compat_60_sa_setconcurrency( \
  1765. res, (long long)(concurrency))
  1766. #define __sanitizer_syscall_pre_compat_60_sa_yield() \
  1767. __sanitizer_syscall_pre_impl_compat_60_sa_yield()
  1768. #define __sanitizer_syscall_post_compat_60_sa_yield(res) \
  1769. __sanitizer_syscall_post_impl_compat_60_sa_yield(res)
  1770. #define __sanitizer_syscall_pre_compat_60_sa_preempt(sa_id) \
  1771. __sanitizer_syscall_pre_impl_compat_60_sa_preempt((long long)(sa_id))
  1772. #define __sanitizer_syscall_post_compat_60_sa_preempt(res, sa_id) \
  1773. __sanitizer_syscall_post_impl_compat_60_sa_preempt(res, (long long)(sa_id))
  1774. /* syscall 336 has been skipped */
  1775. /* syscall 337 has been skipped */
  1776. /* syscall 338 has been skipped */
  1777. /* syscall 339 has been skipped */
  1778. #define __sanitizer_syscall_pre___sigaction_sigtramp(signum, nsa, osa, tramp, \
  1779. vers) \
  1780. __sanitizer_syscall_pre_impl___sigaction_sigtramp( \
  1781. (long long)(signum), (long long)(nsa), (long long)(osa), \
  1782. (long long)(tramp), (long long)(vers))
  1783. #define __sanitizer_syscall_post___sigaction_sigtramp(res, signum, nsa, osa, \
  1784. tramp, vers) \
  1785. __sanitizer_syscall_post_impl___sigaction_sigtramp( \
  1786. res, (long long)(signum), (long long)(nsa), (long long)(osa), \
  1787. (long long)(tramp), (long long)(vers))
  1788. /* syscall 341 has been skipped */
  1789. /* syscall 342 has been skipped */
  1790. #define __sanitizer_syscall_pre_rasctl(addr, len, op) \
  1791. __sanitizer_syscall_pre_impl_rasctl((long long)(addr), (long long)(len), \
  1792. (long long)(op))
  1793. #define __sanitizer_syscall_post_rasctl(res, addr, len, op) \
  1794. __sanitizer_syscall_post_impl_rasctl(res, (long long)(addr), \
  1795. (long long)(len), (long long)(op))
  1796. #define __sanitizer_syscall_pre_kqueue() __sanitizer_syscall_pre_impl_kqueue()
  1797. #define __sanitizer_syscall_post_kqueue(res) \
  1798. __sanitizer_syscall_post_impl_kqueue(res)
  1799. #define __sanitizer_syscall_pre_compat_50_kevent(fd, changelist, nchanges, \
  1800. eventlist, nevents, timeout) \
  1801. __sanitizer_syscall_pre_impl_compat_50_kevent( \
  1802. (long long)(fd), (long long)(changelist), (long long)(nchanges), \
  1803. (long long)(eventlist), (long long)(nevents), (long long)(timeout))
  1804. #define __sanitizer_syscall_post_compat_50_kevent( \
  1805. res, fd, changelist, nchanges, eventlist, nevents, timeout) \
  1806. __sanitizer_syscall_post_impl_compat_50_kevent( \
  1807. res, (long long)(fd), (long long)(changelist), (long long)(nchanges), \
  1808. (long long)(eventlist), (long long)(nevents), (long long)(timeout))
  1809. #define __sanitizer_syscall_pre__sched_setparam(pid, lid, policy, params) \
  1810. __sanitizer_syscall_pre_impl__sched_setparam( \
  1811. (long long)(pid), (long long)(lid), (long long)(policy), \
  1812. (long long)(params))
  1813. #define __sanitizer_syscall_post__sched_setparam(res, pid, lid, policy, \
  1814. params) \
  1815. __sanitizer_syscall_post_impl__sched_setparam( \
  1816. res, (long long)(pid), (long long)(lid), (long long)(policy), \
  1817. (long long)(params))
  1818. #define __sanitizer_syscall_pre__sched_getparam(pid, lid, policy, params) \
  1819. __sanitizer_syscall_pre_impl__sched_getparam( \
  1820. (long long)(pid), (long long)(lid), (long long)(policy), \
  1821. (long long)(params))
  1822. #define __sanitizer_syscall_post__sched_getparam(res, pid, lid, policy, \
  1823. params) \
  1824. __sanitizer_syscall_post_impl__sched_getparam( \
  1825. res, (long long)(pid), (long long)(lid), (long long)(policy), \
  1826. (long long)(params))
  1827. #define __sanitizer_syscall_pre__sched_setaffinity(pid, lid, size, cpuset) \
  1828. __sanitizer_syscall_pre_impl__sched_setaffinity( \
  1829. (long long)(pid), (long long)(lid), (long long)(size), \
  1830. (long long)(cpuset))
  1831. #define __sanitizer_syscall_post__sched_setaffinity(res, pid, lid, size, \
  1832. cpuset) \
  1833. __sanitizer_syscall_post_impl__sched_setaffinity( \
  1834. res, (long long)(pid), (long long)(lid), (long long)(size), \
  1835. (long long)(cpuset))
  1836. #define __sanitizer_syscall_pre__sched_getaffinity(pid, lid, size, cpuset) \
  1837. __sanitizer_syscall_pre_impl__sched_getaffinity( \
  1838. (long long)(pid), (long long)(lid), (long long)(size), \
  1839. (long long)(cpuset))
  1840. #define __sanitizer_syscall_post__sched_getaffinity(res, pid, lid, size, \
  1841. cpuset) \
  1842. __sanitizer_syscall_post_impl__sched_getaffinity( \
  1843. res, (long long)(pid), (long long)(lid), (long long)(size), \
  1844. (long long)(cpuset))
  1845. #define __sanitizer_syscall_pre_sched_yield() \
  1846. __sanitizer_syscall_pre_impl_sched_yield()
  1847. #define __sanitizer_syscall_post_sched_yield(res) \
  1848. __sanitizer_syscall_post_impl_sched_yield(res)
  1849. #define __sanitizer_syscall_pre__sched_protect(priority) \
  1850. __sanitizer_syscall_pre_impl__sched_protect((long long)(priority))
  1851. #define __sanitizer_syscall_post__sched_protect(res, priority) \
  1852. __sanitizer_syscall_post_impl__sched_protect(res, (long long)(priority))
  1853. /* syscall 352 has been skipped */
  1854. /* syscall 353 has been skipped */
  1855. #define __sanitizer_syscall_pre_fsync_range(fd, flags, start, length) \
  1856. __sanitizer_syscall_pre_impl_fsync_range( \
  1857. (long long)(fd), (long long)(flags), (long long)(start), \
  1858. (long long)(length))
  1859. #define __sanitizer_syscall_post_fsync_range(res, fd, flags, start, length) \
  1860. __sanitizer_syscall_post_impl_fsync_range( \
  1861. res, (long long)(fd), (long long)(flags), (long long)(start), \
  1862. (long long)(length))
  1863. #define __sanitizer_syscall_pre_uuidgen(store, count) \
  1864. __sanitizer_syscall_pre_impl_uuidgen((long long)(store), (long long)(count))
  1865. #define __sanitizer_syscall_post_uuidgen(res, store, count) \
  1866. __sanitizer_syscall_post_impl_uuidgen(res, (long long)(store), \
  1867. (long long)(count))
  1868. #define __sanitizer_syscall_pre_compat_90_getvfsstat(buf, bufsize, flags) \
  1869. __sanitizer_syscall_pre_impl_compat_90_getvfsstat( \
  1870. (long long)(buf), (long long)(bufsize), (long long)(flags))
  1871. #define __sanitizer_syscall_post_compat_90_getvfsstat(res, buf, bufsize, \
  1872. flags) \
  1873. __sanitizer_syscall_post_impl_compat_90_getvfsstat( \
  1874. res, (long long)(buf), (long long)(bufsize), (long long)(flags))
  1875. #define __sanitizer_syscall_pre_compat_90_statvfs1(path, buf, flags) \
  1876. __sanitizer_syscall_pre_impl_compat_90_statvfs1( \
  1877. (long long)(path), (long long)(buf), (long long)(flags))
  1878. #define __sanitizer_syscall_post_compat_90_statvfs1(res, path, buf, flags) \
  1879. __sanitizer_syscall_post_impl_compat_90_statvfs1( \
  1880. res, (long long)(path), (long long)(buf), (long long)(flags))
  1881. #define __sanitizer_syscall_pre_compat_90_fstatvfs1(fd, buf, flags) \
  1882. __sanitizer_syscall_pre_impl_compat_90_fstatvfs1( \
  1883. (long long)(fd), (long long)(buf), (long long)(flags))
  1884. #define __sanitizer_syscall_post_compat_90_fstatvfs1(res, fd, buf, flags) \
  1885. __sanitizer_syscall_post_impl_compat_90_fstatvfs1( \
  1886. res, (long long)(fd), (long long)(buf), (long long)(flags))
  1887. #define __sanitizer_syscall_pre_compat_30_fhstatvfs1(fhp, buf, flags) \
  1888. __sanitizer_syscall_pre_impl_compat_30_fhstatvfs1( \
  1889. (long long)(fhp), (long long)(buf), (long long)(flags))
  1890. #define __sanitizer_syscall_post_compat_30_fhstatvfs1(res, fhp, buf, flags) \
  1891. __sanitizer_syscall_post_impl_compat_30_fhstatvfs1( \
  1892. res, (long long)(fhp), (long long)(buf), (long long)(flags))
  1893. #define __sanitizer_syscall_pre_extattrctl(path, cmd, filename, attrnamespace, \
  1894. attrname) \
  1895. __sanitizer_syscall_pre_impl_extattrctl( \
  1896. (long long)(path), (long long)(cmd), (long long)(filename), \
  1897. (long long)(attrnamespace), (long long)(attrname))
  1898. #define __sanitizer_syscall_post_extattrctl(res, path, cmd, filename, \
  1899. attrnamespace, attrname) \
  1900. __sanitizer_syscall_post_impl_extattrctl( \
  1901. res, (long long)(path), (long long)(cmd), (long long)(filename), \
  1902. (long long)(attrnamespace), (long long)(attrname))
  1903. #define __sanitizer_syscall_pre_extattr_set_file(path, attrnamespace, \
  1904. attrname, data, nbytes) \
  1905. __sanitizer_syscall_pre_impl_extattr_set_file( \
  1906. (long long)(path), (long long)(attrnamespace), (long long)(attrname), \
  1907. (long long)(data), (long long)(nbytes))
  1908. #define __sanitizer_syscall_post_extattr_set_file(res, path, attrnamespace, \
  1909. attrname, data, nbytes) \
  1910. __sanitizer_syscall_post_impl_extattr_set_file( \
  1911. res, (long long)(path), (long long)(attrnamespace), \
  1912. (long long)(attrname), (long long)(data), (long long)(nbytes))
  1913. #define __sanitizer_syscall_pre_extattr_get_file(path, attrnamespace, \
  1914. attrname, data, nbytes) \
  1915. __sanitizer_syscall_pre_impl_extattr_get_file( \
  1916. (long long)(path), (long long)(attrnamespace), (long long)(attrname), \
  1917. (long long)(data), (long long)(nbytes))
  1918. #define __sanitizer_syscall_post_extattr_get_file(res, path, attrnamespace, \
  1919. attrname, data, nbytes) \
  1920. __sanitizer_syscall_post_impl_extattr_get_file( \
  1921. res, (long long)(path), (long long)(attrnamespace), \
  1922. (long long)(attrname), (long long)(data), (long long)(nbytes))
  1923. #define __sanitizer_syscall_pre_extattr_delete_file(path, attrnamespace, \
  1924. attrname) \
  1925. __sanitizer_syscall_pre_impl_extattr_delete_file( \
  1926. (long long)(path), (long long)(attrnamespace), (long long)(attrname))
  1927. #define __sanitizer_syscall_post_extattr_delete_file(res, path, attrnamespace, \
  1928. attrname) \
  1929. __sanitizer_syscall_post_impl_extattr_delete_file( \
  1930. res, (long long)(path), (long long)(attrnamespace), \
  1931. (long long)(attrname))
  1932. #define __sanitizer_syscall_pre_extattr_set_fd(fd, attrnamespace, attrname, \
  1933. data, nbytes) \
  1934. __sanitizer_syscall_pre_impl_extattr_set_fd( \
  1935. (long long)(fd), (long long)(attrnamespace), (long long)(attrname), \
  1936. (long long)(data), (long long)(nbytes))
  1937. #define __sanitizer_syscall_post_extattr_set_fd(res, fd, attrnamespace, \
  1938. attrname, data, nbytes) \
  1939. __sanitizer_syscall_post_impl_extattr_set_fd( \
  1940. res, (long long)(fd), (long long)(attrnamespace), (long long)(attrname), \
  1941. (long long)(data), (long long)(nbytes))
  1942. #define __sanitizer_syscall_pre_extattr_get_fd(fd, attrnamespace, attrname, \
  1943. data, nbytes) \
  1944. __sanitizer_syscall_pre_impl_extattr_get_fd( \
  1945. (long long)(fd), (long long)(attrnamespace), (long long)(attrname), \
  1946. (long long)(data), (long long)(nbytes))
  1947. #define __sanitizer_syscall_post_extattr_get_fd(res, fd, attrnamespace, \
  1948. attrname, data, nbytes) \
  1949. __sanitizer_syscall_post_impl_extattr_get_fd( \
  1950. res, (long long)(fd), (long long)(attrnamespace), (long long)(attrname), \
  1951. (long long)(data), (long long)(nbytes))
  1952. #define __sanitizer_syscall_pre_extattr_delete_fd(fd, attrnamespace, attrname) \
  1953. __sanitizer_syscall_pre_impl_extattr_delete_fd( \
  1954. (long long)(fd), (long long)(attrnamespace), (long long)(attrname))
  1955. #define __sanitizer_syscall_post_extattr_delete_fd(res, fd, attrnamespace, \
  1956. attrname) \
  1957. __sanitizer_syscall_post_impl_extattr_delete_fd( \
  1958. res, (long long)(fd), (long long)(attrnamespace), (long long)(attrname))
  1959. #define __sanitizer_syscall_pre_extattr_set_link(path, attrnamespace, \
  1960. attrname, data, nbytes) \
  1961. __sanitizer_syscall_pre_impl_extattr_set_link( \
  1962. (long long)(path), (long long)(attrnamespace), (long long)(attrname), \
  1963. (long long)(data), (long long)(nbytes))
  1964. #define __sanitizer_syscall_post_extattr_set_link(res, path, attrnamespace, \
  1965. attrname, data, nbytes) \
  1966. __sanitizer_syscall_post_impl_extattr_set_link( \
  1967. res, (long long)(path), (long long)(attrnamespace), \
  1968. (long long)(attrname), (long long)(data), (long long)(nbytes))
  1969. #define __sanitizer_syscall_pre_extattr_get_link(path, attrnamespace, \
  1970. attrname, data, nbytes) \
  1971. __sanitizer_syscall_pre_impl_extattr_get_link( \
  1972. (long long)(path), (long long)(attrnamespace), (long long)(attrname), \
  1973. (long long)(data), (long long)(nbytes))
  1974. #define __sanitizer_syscall_post_extattr_get_link(res, path, attrnamespace, \
  1975. attrname, data, nbytes) \
  1976. __sanitizer_syscall_post_impl_extattr_get_link( \
  1977. res, (long long)(path), (long long)(attrnamespace), \
  1978. (long long)(attrname), (long long)(data), (long long)(nbytes))
  1979. #define __sanitizer_syscall_pre_extattr_delete_link(path, attrnamespace, \
  1980. attrname) \
  1981. __sanitizer_syscall_pre_impl_extattr_delete_link( \
  1982. (long long)(path), (long long)(attrnamespace), (long long)(attrname))
  1983. #define __sanitizer_syscall_post_extattr_delete_link(res, path, attrnamespace, \
  1984. attrname) \
  1985. __sanitizer_syscall_post_impl_extattr_delete_link( \
  1986. res, (long long)(path), (long long)(attrnamespace), \
  1987. (long long)(attrname))
  1988. #define __sanitizer_syscall_pre_extattr_list_fd(fd, attrnamespace, data, \
  1989. nbytes) \
  1990. __sanitizer_syscall_pre_impl_extattr_list_fd( \
  1991. (long long)(fd), (long long)(attrnamespace), (long long)(data), \
  1992. (long long)(nbytes))
  1993. #define __sanitizer_syscall_post_extattr_list_fd(res, fd, attrnamespace, data, \
  1994. nbytes) \
  1995. __sanitizer_syscall_post_impl_extattr_list_fd( \
  1996. res, (long long)(fd), (long long)(attrnamespace), (long long)(data), \
  1997. (long long)(nbytes))
  1998. #define __sanitizer_syscall_pre_extattr_list_file(path, attrnamespace, data, \
  1999. nbytes) \
  2000. __sanitizer_syscall_pre_impl_extattr_list_file( \
  2001. (long long)(path), (long long)(attrnamespace), (long long)(data), \
  2002. (long long)(nbytes))
  2003. #define __sanitizer_syscall_post_extattr_list_file(res, path, attrnamespace, \
  2004. data, nbytes) \
  2005. __sanitizer_syscall_post_impl_extattr_list_file( \
  2006. res, (long long)(path), (long long)(attrnamespace), (long long)(data), \
  2007. (long long)(nbytes))
  2008. #define __sanitizer_syscall_pre_extattr_list_link(path, attrnamespace, data, \
  2009. nbytes) \
  2010. __sanitizer_syscall_pre_impl_extattr_list_link( \
  2011. (long long)(path), (long long)(attrnamespace), (long long)(data), \
  2012. (long long)(nbytes))
  2013. #define __sanitizer_syscall_post_extattr_list_link(res, path, attrnamespace, \
  2014. data, nbytes) \
  2015. __sanitizer_syscall_post_impl_extattr_list_link( \
  2016. res, (long long)(path), (long long)(attrnamespace), (long long)(data), \
  2017. (long long)(nbytes))
  2018. #define __sanitizer_syscall_pre_compat_50_pselect(nd, in, ou, ex, ts, mask) \
  2019. __sanitizer_syscall_pre_impl_compat_50_pselect( \
  2020. (long long)(nd), (long long)(in), (long long)(ou), (long long)(ex), \
  2021. (long long)(ts), (long long)(mask))
  2022. #define __sanitizer_syscall_post_compat_50_pselect(res, nd, in, ou, ex, ts, \
  2023. mask) \
  2024. __sanitizer_syscall_post_impl_compat_50_pselect( \
  2025. res, (long long)(nd), (long long)(in), (long long)(ou), (long long)(ex), \
  2026. (long long)(ts), (long long)(mask))
  2027. #define __sanitizer_syscall_pre_compat_50_pollts(fds, nfds, ts, mask) \
  2028. __sanitizer_syscall_pre_impl_compat_50_pollts( \
  2029. (long long)(fds), (long long)(nfds), (long long)(ts), (long long)(mask))
  2030. #define __sanitizer_syscall_post_compat_50_pollts(res, fds, nfds, ts, mask) \
  2031. __sanitizer_syscall_post_impl_compat_50_pollts( \
  2032. res, (long long)(fds), (long long)(nfds), (long long)(ts), \
  2033. (long long)(mask))
  2034. #define __sanitizer_syscall_pre_setxattr(path, name, value, size, flags) \
  2035. __sanitizer_syscall_pre_impl_setxattr((long long)(path), (long long)(name), \
  2036. (long long)(value), (long long)(size), \
  2037. (long long)(flags))
  2038. #define __sanitizer_syscall_post_setxattr(res, path, name, value, size, flags) \
  2039. __sanitizer_syscall_post_impl_setxattr( \
  2040. res, (long long)(path), (long long)(name), (long long)(value), \
  2041. (long long)(size), (long long)(flags))
  2042. #define __sanitizer_syscall_pre_lsetxattr(path, name, value, size, flags) \
  2043. __sanitizer_syscall_pre_impl_lsetxattr( \
  2044. (long long)(path), (long long)(name), (long long)(value), \
  2045. (long long)(size), (long long)(flags))
  2046. #define __sanitizer_syscall_post_lsetxattr(res, path, name, value, size, \
  2047. flags) \
  2048. __sanitizer_syscall_post_impl_lsetxattr( \
  2049. res, (long long)(path), (long long)(name), (long long)(value), \
  2050. (long long)(size), (long long)(flags))
  2051. #define __sanitizer_syscall_pre_fsetxattr(fd, name, value, size, flags) \
  2052. __sanitizer_syscall_pre_impl_fsetxattr( \
  2053. (long long)(fd), (long long)(name), (long long)(value), \
  2054. (long long)(size), (long long)(flags))
  2055. #define __sanitizer_syscall_post_fsetxattr(res, fd, name, value, size, flags) \
  2056. __sanitizer_syscall_post_impl_fsetxattr( \
  2057. res, (long long)(fd), (long long)(name), (long long)(value), \
  2058. (long long)(size), (long long)(flags))
  2059. #define __sanitizer_syscall_pre_getxattr(path, name, value, size) \
  2060. __sanitizer_syscall_pre_impl_getxattr((long long)(path), (long long)(name), \
  2061. (long long)(value), (long long)(size))
  2062. #define __sanitizer_syscall_post_getxattr(res, path, name, value, size) \
  2063. __sanitizer_syscall_post_impl_getxattr( \
  2064. res, (long long)(path), (long long)(name), (long long)(value), \
  2065. (long long)(size))
  2066. #define __sanitizer_syscall_pre_lgetxattr(path, name, value, size) \
  2067. __sanitizer_syscall_pre_impl_lgetxattr((long long)(path), (long long)(name), \
  2068. (long long)(value), \
  2069. (long long)(size))
  2070. #define __sanitizer_syscall_post_lgetxattr(res, path, name, value, size) \
  2071. __sanitizer_syscall_post_impl_lgetxattr( \
  2072. res, (long long)(path), (long long)(name), (long long)(value), \
  2073. (long long)(size))
  2074. #define __sanitizer_syscall_pre_fgetxattr(fd, name, value, size) \
  2075. __sanitizer_syscall_pre_impl_fgetxattr((long long)(fd), (long long)(name), \
  2076. (long long)(value), \
  2077. (long long)(size))
  2078. #define __sanitizer_syscall_post_fgetxattr(res, fd, name, value, size) \
  2079. __sanitizer_syscall_post_impl_fgetxattr( \
  2080. res, (long long)(fd), (long long)(name), (long long)(value), \
  2081. (long long)(size))
  2082. #define __sanitizer_syscall_pre_listxattr(path, list, size) \
  2083. __sanitizer_syscall_pre_impl_listxattr((long long)(path), (long long)(list), \
  2084. (long long)(size))
  2085. #define __sanitizer_syscall_post_listxattr(res, path, list, size) \
  2086. __sanitizer_syscall_post_impl_listxattr( \
  2087. res, (long long)(path), (long long)(list), (long long)(size))
  2088. #define __sanitizer_syscall_pre_llistxattr(path, list, size) \
  2089. __sanitizer_syscall_pre_impl_llistxattr( \
  2090. (long long)(path), (long long)(list), (long long)(size))
  2091. #define __sanitizer_syscall_post_llistxattr(res, path, list, size) \
  2092. __sanitizer_syscall_post_impl_llistxattr( \
  2093. res, (long long)(path), (long long)(list), (long long)(size))
  2094. #define __sanitizer_syscall_pre_flistxattr(fd, list, size) \
  2095. __sanitizer_syscall_pre_impl_flistxattr((long long)(fd), (long long)(list), \
  2096. (long long)(size))
  2097. #define __sanitizer_syscall_post_flistxattr(res, fd, list, size) \
  2098. __sanitizer_syscall_post_impl_flistxattr( \
  2099. res, (long long)(fd), (long long)(list), (long long)(size))
  2100. #define __sanitizer_syscall_pre_removexattr(path, name) \
  2101. __sanitizer_syscall_pre_impl_removexattr((long long)(path), (long long)(name))
  2102. #define __sanitizer_syscall_post_removexattr(res, path, name) \
  2103. __sanitizer_syscall_post_impl_removexattr(res, (long long)(path), \
  2104. (long long)(name))
  2105. #define __sanitizer_syscall_pre_lremovexattr(path, name) \
  2106. __sanitizer_syscall_pre_impl_lremovexattr((long long)(path), \
  2107. (long long)(name))
  2108. #define __sanitizer_syscall_post_lremovexattr(res, path, name) \
  2109. __sanitizer_syscall_post_impl_lremovexattr(res, (long long)(path), \
  2110. (long long)(name))
  2111. #define __sanitizer_syscall_pre_fremovexattr(fd, name) \
  2112. __sanitizer_syscall_pre_impl_fremovexattr((long long)(fd), (long long)(name))
  2113. #define __sanitizer_syscall_post_fremovexattr(res, fd, name) \
  2114. __sanitizer_syscall_post_impl_fremovexattr(res, (long long)(fd), \
  2115. (long long)(name))
  2116. #define __sanitizer_syscall_pre_compat_50___stat30(path, ub) \
  2117. __sanitizer_syscall_pre_impl_compat_50___stat30((long long)(path), \
  2118. (long long)(ub))
  2119. #define __sanitizer_syscall_post_compat_50___stat30(res, path, ub) \
  2120. __sanitizer_syscall_post_impl_compat_50___stat30(res, (long long)(path), \
  2121. (long long)(ub))
  2122. #define __sanitizer_syscall_pre_compat_50___fstat30(fd, sb) \
  2123. __sanitizer_syscall_pre_impl_compat_50___fstat30((long long)(fd), \
  2124. (long long)(sb))
  2125. #define __sanitizer_syscall_post_compat_50___fstat30(res, fd, sb) \
  2126. __sanitizer_syscall_post_impl_compat_50___fstat30(res, (long long)(fd), \
  2127. (long long)(sb))
  2128. #define __sanitizer_syscall_pre_compat_50___lstat30(path, ub) \
  2129. __sanitizer_syscall_pre_impl_compat_50___lstat30((long long)(path), \
  2130. (long long)(ub))
  2131. #define __sanitizer_syscall_post_compat_50___lstat30(res, path, ub) \
  2132. __sanitizer_syscall_post_impl_compat_50___lstat30(res, (long long)(path), \
  2133. (long long)(ub))
  2134. #define __sanitizer_syscall_pre___getdents30(fd, buf, count) \
  2135. __sanitizer_syscall_pre_impl___getdents30((long long)(fd), (long long)(buf), \
  2136. (long long)(count))
  2137. #define __sanitizer_syscall_post___getdents30(res, fd, buf, count) \
  2138. __sanitizer_syscall_post_impl___getdents30( \
  2139. res, (long long)(fd), (long long)(buf), (long long)(count))
  2140. #define __sanitizer_syscall_pre_posix_fadvise() \
  2141. __sanitizer_syscall_pre_impl_posix_fadvise((long long)())
  2142. #define __sanitizer_syscall_post_posix_fadvise(res) \
  2143. __sanitizer_syscall_post_impl_posix_fadvise(res, (long long)())
  2144. #define __sanitizer_syscall_pre_compat_30___fhstat30(fhp, sb) \
  2145. __sanitizer_syscall_pre_impl_compat_30___fhstat30((long long)(fhp), \
  2146. (long long)(sb))
  2147. #define __sanitizer_syscall_post_compat_30___fhstat30(res, fhp, sb) \
  2148. __sanitizer_syscall_post_impl_compat_30___fhstat30(res, (long long)(fhp), \
  2149. (long long)(sb))
  2150. #define __sanitizer_syscall_pre_compat_50___ntp_gettime30(ntvp) \
  2151. __sanitizer_syscall_pre_impl_compat_50___ntp_gettime30((long long)(ntvp))
  2152. #define __sanitizer_syscall_post_compat_50___ntp_gettime30(res, ntvp) \
  2153. __sanitizer_syscall_post_impl_compat_50___ntp_gettime30(res, \
  2154. (long long)(ntvp))
  2155. #define __sanitizer_syscall_pre___socket30(domain, type, protocol) \
  2156. __sanitizer_syscall_pre_impl___socket30( \
  2157. (long long)(domain), (long long)(type), (long long)(protocol))
  2158. #define __sanitizer_syscall_post___socket30(res, domain, type, protocol) \
  2159. __sanitizer_syscall_post_impl___socket30( \
  2160. res, (long long)(domain), (long long)(type), (long long)(protocol))
  2161. #define __sanitizer_syscall_pre___getfh30(fname, fhp, fh_size) \
  2162. __sanitizer_syscall_pre_impl___getfh30((long long)(fname), (long long)(fhp), \
  2163. (long long)(fh_size))
  2164. #define __sanitizer_syscall_post___getfh30(res, fname, fhp, fh_size) \
  2165. __sanitizer_syscall_post_impl___getfh30( \
  2166. res, (long long)(fname), (long long)(fhp), (long long)(fh_size))
  2167. #define __sanitizer_syscall_pre___fhopen40(fhp, fh_size, flags) \
  2168. __sanitizer_syscall_pre_impl___fhopen40( \
  2169. (long long)(fhp), (long long)(fh_size), (long long)(flags))
  2170. #define __sanitizer_syscall_post___fhopen40(res, fhp, fh_size, flags) \
  2171. __sanitizer_syscall_post_impl___fhopen40( \
  2172. res, (long long)(fhp), (long long)(fh_size), (long long)(flags))
  2173. #define __sanitizer_syscall_pre_compat_90_fhstatvfs1(fhp, fh_size, buf, flags) \
  2174. __sanitizer_syscall_pre_impl_compat_90_fhstatvfs1( \
  2175. (long long)(fhp), (long long)(fh_size), (long long)(buf), \
  2176. (long long)(flags))
  2177. #define __sanitizer_syscall_post_compat_90_fhstatvfs1(res, fhp, fh_size, buf, \
  2178. flags) \
  2179. __sanitizer_syscall_post_impl_compat_90_fhstatvfs1( \
  2180. res, (long long)(fhp), (long long)(fh_size), (long long)(buf), \
  2181. (long long)(flags))
  2182. #define __sanitizer_syscall_pre_compat_50___fhstat40(fhp, fh_size, sb) \
  2183. __sanitizer_syscall_pre_impl_compat_50___fhstat40( \
  2184. (long long)(fhp), (long long)(fh_size), (long long)(sb))
  2185. #define __sanitizer_syscall_post_compat_50___fhstat40(res, fhp, fh_size, sb) \
  2186. __sanitizer_syscall_post_impl_compat_50___fhstat40( \
  2187. res, (long long)(fhp), (long long)(fh_size), (long long)(sb))
  2188. #define __sanitizer_syscall_pre_aio_cancel(fildes, aiocbp) \
  2189. __sanitizer_syscall_pre_impl_aio_cancel((long long)(fildes), \
  2190. (long long)(aiocbp))
  2191. #define __sanitizer_syscall_post_aio_cancel(res, fildes, aiocbp) \
  2192. __sanitizer_syscall_post_impl_aio_cancel(res, (long long)(fildes), \
  2193. (long long)(aiocbp))
  2194. #define __sanitizer_syscall_pre_aio_error(aiocbp) \
  2195. __sanitizer_syscall_pre_impl_aio_error((long long)(aiocbp))
  2196. #define __sanitizer_syscall_post_aio_error(res, aiocbp) \
  2197. __sanitizer_syscall_post_impl_aio_error(res, (long long)(aiocbp))
  2198. #define __sanitizer_syscall_pre_aio_fsync(op, aiocbp) \
  2199. __sanitizer_syscall_pre_impl_aio_fsync((long long)(op), (long long)(aiocbp))
  2200. #define __sanitizer_syscall_post_aio_fsync(res, op, aiocbp) \
  2201. __sanitizer_syscall_post_impl_aio_fsync(res, (long long)(op), \
  2202. (long long)(aiocbp))
  2203. #define __sanitizer_syscall_pre_aio_read(aiocbp) \
  2204. __sanitizer_syscall_pre_impl_aio_read((long long)(aiocbp))
  2205. #define __sanitizer_syscall_post_aio_read(res, aiocbp) \
  2206. __sanitizer_syscall_post_impl_aio_read(res, (long long)(aiocbp))
  2207. #define __sanitizer_syscall_pre_aio_return(aiocbp) \
  2208. __sanitizer_syscall_pre_impl_aio_return((long long)(aiocbp))
  2209. #define __sanitizer_syscall_post_aio_return(res, aiocbp) \
  2210. __sanitizer_syscall_post_impl_aio_return(res, (long long)(aiocbp))
  2211. #define __sanitizer_syscall_pre_compat_50_aio_suspend(list, nent, timeout) \
  2212. __sanitizer_syscall_pre_impl_compat_50_aio_suspend( \
  2213. (long long)(list), (long long)(nent), (long long)(timeout))
  2214. #define __sanitizer_syscall_post_compat_50_aio_suspend(res, list, nent, \
  2215. timeout) \
  2216. __sanitizer_syscall_post_impl_compat_50_aio_suspend( \
  2217. res, (long long)(list), (long long)(nent), (long long)(timeout))
  2218. #define __sanitizer_syscall_pre_aio_write(aiocbp) \
  2219. __sanitizer_syscall_pre_impl_aio_write((long long)(aiocbp))
  2220. #define __sanitizer_syscall_post_aio_write(res, aiocbp) \
  2221. __sanitizer_syscall_post_impl_aio_write(res, (long long)(aiocbp))
  2222. #define __sanitizer_syscall_pre_lio_listio(mode, list, nent, sig) \
  2223. __sanitizer_syscall_pre_impl_lio_listio((long long)(mode), \
  2224. (long long)(list), \
  2225. (long long)(nent), (long long)(sig))
  2226. #define __sanitizer_syscall_post_lio_listio(res, mode, list, nent, sig) \
  2227. __sanitizer_syscall_post_impl_lio_listio( \
  2228. res, (long long)(mode), (long long)(list), (long long)(nent), \
  2229. (long long)(sig))
  2230. /* syscall 407 has been skipped */
  2231. /* syscall 408 has been skipped */
  2232. /* syscall 409 has been skipped */
  2233. #define __sanitizer_syscall_pre___mount50(type, path, flags, data, data_len) \
  2234. __sanitizer_syscall_pre_impl___mount50( \
  2235. (long long)(type), (long long)(path), (long long)(flags), \
  2236. (long long)(data), (long long)(data_len))
  2237. #define __sanitizer_syscall_post___mount50(res, type, path, flags, data, \
  2238. data_len) \
  2239. __sanitizer_syscall_post_impl___mount50( \
  2240. res, (long long)(type), (long long)(path), (long long)(flags), \
  2241. (long long)(data), (long long)(data_len))
  2242. #define __sanitizer_syscall_pre_mremap(old_address, old_size, new_address, \
  2243. new_size, flags) \
  2244. __sanitizer_syscall_pre_impl_mremap( \
  2245. (long long)(old_address), (long long)(old_size), \
  2246. (long long)(new_address), (long long)(new_size), (long long)(flags))
  2247. #define __sanitizer_syscall_post_mremap(res, old_address, old_size, \
  2248. new_address, new_size, flags) \
  2249. __sanitizer_syscall_post_impl_mremap( \
  2250. res, (long long)(old_address), (long long)(old_size), \
  2251. (long long)(new_address), (long long)(new_size), (long long)(flags))
  2252. #define __sanitizer_syscall_pre_pset_create(psid) \
  2253. __sanitizer_syscall_pre_impl_pset_create((long long)(psid))
  2254. #define __sanitizer_syscall_post_pset_create(res, psid) \
  2255. __sanitizer_syscall_post_impl_pset_create(res, (long long)(psid))
  2256. #define __sanitizer_syscall_pre_pset_destroy(psid) \
  2257. __sanitizer_syscall_pre_impl_pset_destroy((long long)(psid))
  2258. #define __sanitizer_syscall_post_pset_destroy(res, psid) \
  2259. __sanitizer_syscall_post_impl_pset_destroy(res, (long long)(psid))
  2260. #define __sanitizer_syscall_pre_pset_assign(psid, cpuid, opsid) \
  2261. __sanitizer_syscall_pre_impl_pset_assign( \
  2262. (long long)(psid), (long long)(cpuid), (long long)(opsid))
  2263. #define __sanitizer_syscall_post_pset_assign(res, psid, cpuid, opsid) \
  2264. __sanitizer_syscall_post_impl_pset_assign( \
  2265. res, (long long)(psid), (long long)(cpuid), (long long)(opsid))
  2266. #define __sanitizer_syscall_pre__pset_bind(idtype, first_id, second_id, psid, \
  2267. opsid) \
  2268. __sanitizer_syscall_pre_impl__pset_bind( \
  2269. (long long)(idtype), (long long)(first_id), (long long)(second_id), \
  2270. (long long)(psid), (long long)(opsid))
  2271. #define __sanitizer_syscall_post__pset_bind(res, idtype, first_id, second_id, \
  2272. psid, opsid) \
  2273. __sanitizer_syscall_post_impl__pset_bind( \
  2274. res, (long long)(idtype), (long long)(first_id), (long long)(second_id), \
  2275. (long long)(psid), (long long)(opsid))
  2276. #define __sanitizer_syscall_pre___posix_fadvise50(fd, PAD, offset, len, \
  2277. advice) \
  2278. __sanitizer_syscall_pre_impl___posix_fadvise50( \
  2279. (long long)(fd), (long long)(PAD), (long long)(offset), \
  2280. (long long)(len), (long long)(advice))
  2281. #define __sanitizer_syscall_post___posix_fadvise50(res, fd, PAD, offset, len, \
  2282. advice) \
  2283. __sanitizer_syscall_post_impl___posix_fadvise50( \
  2284. res, (long long)(fd), (long long)(PAD), (long long)(offset), \
  2285. (long long)(len), (long long)(advice))
  2286. #define __sanitizer_syscall_pre___select50(nd, in, ou, ex, tv) \
  2287. __sanitizer_syscall_pre_impl___select50((long long)(nd), (long long)(in), \
  2288. (long long)(ou), (long long)(ex), \
  2289. (long long)(tv))
  2290. #define __sanitizer_syscall_post___select50(res, nd, in, ou, ex, tv) \
  2291. __sanitizer_syscall_post_impl___select50(res, (long long)(nd), \
  2292. (long long)(in), (long long)(ou), \
  2293. (long long)(ex), (long long)(tv))
  2294. #define __sanitizer_syscall_pre___gettimeofday50(tp, tzp) \
  2295. __sanitizer_syscall_pre_impl___gettimeofday50((long long)(tp), \
  2296. (long long)(tzp))
  2297. #define __sanitizer_syscall_post___gettimeofday50(res, tp, tzp) \
  2298. __sanitizer_syscall_post_impl___gettimeofday50(res, (long long)(tp), \
  2299. (long long)(tzp))
  2300. #define __sanitizer_syscall_pre___settimeofday50(tv, tzp) \
  2301. __sanitizer_syscall_pre_impl___settimeofday50((long long)(tv), \
  2302. (long long)(tzp))
  2303. #define __sanitizer_syscall_post___settimeofday50(res, tv, tzp) \
  2304. __sanitizer_syscall_post_impl___settimeofday50(res, (long long)(tv), \
  2305. (long long)(tzp))
  2306. #define __sanitizer_syscall_pre___utimes50(path, tptr) \
  2307. __sanitizer_syscall_pre_impl___utimes50((long long)(path), (long long)(tptr))
  2308. #define __sanitizer_syscall_post___utimes50(res, path, tptr) \
  2309. __sanitizer_syscall_post_impl___utimes50(res, (long long)(path), \
  2310. (long long)(tptr))
  2311. #define __sanitizer_syscall_pre___adjtime50(delta, olddelta) \
  2312. __sanitizer_syscall_pre_impl___adjtime50((long long)(delta), \
  2313. (long long)(olddelta))
  2314. #define __sanitizer_syscall_post___adjtime50(res, delta, olddelta) \
  2315. __sanitizer_syscall_post_impl___adjtime50(res, (long long)(delta), \
  2316. (long long)(olddelta))
  2317. #define __sanitizer_syscall_pre___lfs_segwait50(fsidp, tv) \
  2318. __sanitizer_syscall_pre_impl___lfs_segwait50((long long)(fsidp), \
  2319. (long long)(tv))
  2320. #define __sanitizer_syscall_post___lfs_segwait50(res, fsidp, tv) \
  2321. __sanitizer_syscall_post_impl___lfs_segwait50(res, (long long)(fsidp), \
  2322. (long long)(tv))
  2323. #define __sanitizer_syscall_pre___futimes50(fd, tptr) \
  2324. __sanitizer_syscall_pre_impl___futimes50((long long)(fd), (long long)(tptr))
  2325. #define __sanitizer_syscall_post___futimes50(res, fd, tptr) \
  2326. __sanitizer_syscall_post_impl___futimes50(res, (long long)(fd), \
  2327. (long long)(tptr))
  2328. #define __sanitizer_syscall_pre___lutimes50(path, tptr) \
  2329. __sanitizer_syscall_pre_impl___lutimes50((long long)(path), (long long)(tptr))
  2330. #define __sanitizer_syscall_post___lutimes50(res, path, tptr) \
  2331. __sanitizer_syscall_post_impl___lutimes50(res, (long long)(path), \
  2332. (long long)(tptr))
  2333. #define __sanitizer_syscall_pre___setitimer50(which, itv, oitv) \
  2334. __sanitizer_syscall_pre_impl___setitimer50( \
  2335. (long long)(which), (long long)(itv), (long long)(oitv))
  2336. #define __sanitizer_syscall_post___setitimer50(res, which, itv, oitv) \
  2337. __sanitizer_syscall_post_impl___setitimer50( \
  2338. res, (long long)(which), (long long)(itv), (long long)(oitv))
  2339. #define __sanitizer_syscall_pre___getitimer50(which, itv) \
  2340. __sanitizer_syscall_pre_impl___getitimer50((long long)(which), \
  2341. (long long)(itv))
  2342. #define __sanitizer_syscall_post___getitimer50(res, which, itv) \
  2343. __sanitizer_syscall_post_impl___getitimer50(res, (long long)(which), \
  2344. (long long)(itv))
  2345. #define __sanitizer_syscall_pre___clock_gettime50(clock_id, tp) \
  2346. __sanitizer_syscall_pre_impl___clock_gettime50((long long)(clock_id), \
  2347. (long long)(tp))
  2348. #define __sanitizer_syscall_post___clock_gettime50(res, clock_id, tp) \
  2349. __sanitizer_syscall_post_impl___clock_gettime50(res, (long long)(clock_id), \
  2350. (long long)(tp))
  2351. #define __sanitizer_syscall_pre___clock_settime50(clock_id, tp) \
  2352. __sanitizer_syscall_pre_impl___clock_settime50((long long)(clock_id), \
  2353. (long long)(tp))
  2354. #define __sanitizer_syscall_post___clock_settime50(res, clock_id, tp) \
  2355. __sanitizer_syscall_post_impl___clock_settime50(res, (long long)(clock_id), \
  2356. (long long)(tp))
  2357. #define __sanitizer_syscall_pre___clock_getres50(clock_id, tp) \
  2358. __sanitizer_syscall_pre_impl___clock_getres50((long long)(clock_id), \
  2359. (long long)(tp))
  2360. #define __sanitizer_syscall_post___clock_getres50(res, clock_id, tp) \
  2361. __sanitizer_syscall_post_impl___clock_getres50(res, (long long)(clock_id), \
  2362. (long long)(tp))
  2363. #define __sanitizer_syscall_pre___nanosleep50(rqtp, rmtp) \
  2364. __sanitizer_syscall_pre_impl___nanosleep50((long long)(rqtp), \
  2365. (long long)(rmtp))
  2366. #define __sanitizer_syscall_post___nanosleep50(res, rqtp, rmtp) \
  2367. __sanitizer_syscall_post_impl___nanosleep50(res, (long long)(rqtp), \
  2368. (long long)(rmtp))
  2369. #define __sanitizer_syscall_pre_____sigtimedwait50(set, info, timeout) \
  2370. __sanitizer_syscall_pre_impl_____sigtimedwait50( \
  2371. (long long)(set), (long long)(info), (long long)(timeout))
  2372. #define __sanitizer_syscall_post_____sigtimedwait50(res, set, info, timeout) \
  2373. __sanitizer_syscall_post_impl_____sigtimedwait50( \
  2374. res, (long long)(set), (long long)(info), (long long)(timeout))
  2375. #define __sanitizer_syscall_pre___mq_timedsend50(mqdes, msg_ptr, msg_len, \
  2376. msg_prio, abs_timeout) \
  2377. __sanitizer_syscall_pre_impl___mq_timedsend50( \
  2378. (long long)(mqdes), (long long)(msg_ptr), (long long)(msg_len), \
  2379. (long long)(msg_prio), (long long)(abs_timeout))
  2380. #define __sanitizer_syscall_post___mq_timedsend50( \
  2381. res, mqdes, msg_ptr, msg_len, msg_prio, abs_timeout) \
  2382. __sanitizer_syscall_post_impl___mq_timedsend50( \
  2383. res, (long long)(mqdes), (long long)(msg_ptr), (long long)(msg_len), \
  2384. (long long)(msg_prio), (long long)(abs_timeout))
  2385. #define __sanitizer_syscall_pre___mq_timedreceive50(mqdes, msg_ptr, msg_len, \
  2386. msg_prio, abs_timeout) \
  2387. __sanitizer_syscall_pre_impl___mq_timedreceive50( \
  2388. (long long)(mqdes), (long long)(msg_ptr), (long long)(msg_len), \
  2389. (long long)(msg_prio), (long long)(abs_timeout))
  2390. #define __sanitizer_syscall_post___mq_timedreceive50( \
  2391. res, mqdes, msg_ptr, msg_len, msg_prio, abs_timeout) \
  2392. __sanitizer_syscall_post_impl___mq_timedreceive50( \
  2393. res, (long long)(mqdes), (long long)(msg_ptr), (long long)(msg_len), \
  2394. (long long)(msg_prio), (long long)(abs_timeout))
  2395. #define __sanitizer_syscall_pre_compat_60__lwp_park(ts, unpark, hint, \
  2396. unparkhint) \
  2397. __sanitizer_syscall_pre_impl_compat_60__lwp_park( \
  2398. (long long)(ts), (long long)(unpark), (long long)(hint), \
  2399. (long long)(unparkhint))
  2400. #define __sanitizer_syscall_post_compat_60__lwp_park(res, ts, unpark, hint, \
  2401. unparkhint) \
  2402. __sanitizer_syscall_post_impl_compat_60__lwp_park( \
  2403. res, (long long)(ts), (long long)(unpark), (long long)(hint), \
  2404. (long long)(unparkhint))
  2405. #define __sanitizer_syscall_pre___kevent50(fd, changelist, nchanges, \
  2406. eventlist, nevents, timeout) \
  2407. __sanitizer_syscall_pre_impl___kevent50( \
  2408. (long long)(fd), (long long)(changelist), (long long)(nchanges), \
  2409. (long long)(eventlist), (long long)(nevents), (long long)(timeout))
  2410. #define __sanitizer_syscall_post___kevent50(res, fd, changelist, nchanges, \
  2411. eventlist, nevents, timeout) \
  2412. __sanitizer_syscall_post_impl___kevent50( \
  2413. res, (long long)(fd), (long long)(changelist), (long long)(nchanges), \
  2414. (long long)(eventlist), (long long)(nevents), (long long)(timeout))
  2415. #define __sanitizer_syscall_pre___pselect50(nd, in, ou, ex, ts, mask) \
  2416. __sanitizer_syscall_pre_impl___pselect50((long long)(nd), (long long)(in), \
  2417. (long long)(ou), (long long)(ex), \
  2418. (long long)(ts), (long long)(mask))
  2419. #define __sanitizer_syscall_post___pselect50(res, nd, in, ou, ex, ts, mask) \
  2420. __sanitizer_syscall_post_impl___pselect50( \
  2421. res, (long long)(nd), (long long)(in), (long long)(ou), (long long)(ex), \
  2422. (long long)(ts), (long long)(mask))
  2423. #define __sanitizer_syscall_pre___pollts50(fds, nfds, ts, mask) \
  2424. __sanitizer_syscall_pre_impl___pollts50((long long)(fds), (long long)(nfds), \
  2425. (long long)(ts), (long long)(mask))
  2426. #define __sanitizer_syscall_post___pollts50(res, fds, nfds, ts, mask) \
  2427. __sanitizer_syscall_post_impl___pollts50(res, (long long)(fds), \
  2428. (long long)(nfds), (long long)(ts), \
  2429. (long long)(mask))
  2430. #define __sanitizer_syscall_pre___aio_suspend50(list, nent, timeout) \
  2431. __sanitizer_syscall_pre_impl___aio_suspend50( \
  2432. (long long)(list), (long long)(nent), (long long)(timeout))
  2433. #define __sanitizer_syscall_post___aio_suspend50(res, list, nent, timeout) \
  2434. __sanitizer_syscall_post_impl___aio_suspend50( \
  2435. res, (long long)(list), (long long)(nent), (long long)(timeout))
  2436. #define __sanitizer_syscall_pre___stat50(path, ub) \
  2437. __sanitizer_syscall_pre_impl___stat50((long long)(path), (long long)(ub))
  2438. #define __sanitizer_syscall_post___stat50(res, path, ub) \
  2439. __sanitizer_syscall_post_impl___stat50(res, (long long)(path), \
  2440. (long long)(ub))
  2441. #define __sanitizer_syscall_pre___fstat50(fd, sb) \
  2442. __sanitizer_syscall_pre_impl___fstat50((long long)(fd), (long long)(sb))
  2443. #define __sanitizer_syscall_post___fstat50(res, fd, sb) \
  2444. __sanitizer_syscall_post_impl___fstat50(res, (long long)(fd), (long long)(sb))
  2445. #define __sanitizer_syscall_pre___lstat50(path, ub) \
  2446. __sanitizer_syscall_pre_impl___lstat50((long long)(path), (long long)(ub))
  2447. #define __sanitizer_syscall_post___lstat50(res, path, ub) \
  2448. __sanitizer_syscall_post_impl___lstat50(res, (long long)(path), \
  2449. (long long)(ub))
  2450. #define __sanitizer_syscall_pre_____semctl50(semid, semnum, cmd, arg) \
  2451. __sanitizer_syscall_pre_impl_____semctl50( \
  2452. (long long)(semid), (long long)(semnum), (long long)(cmd), \
  2453. (long long)(arg))
  2454. #define __sanitizer_syscall_post_____semctl50(res, semid, semnum, cmd, arg) \
  2455. __sanitizer_syscall_post_impl_____semctl50( \
  2456. res, (long long)(semid), (long long)(semnum), (long long)(cmd), \
  2457. (long long)(arg))
  2458. #define __sanitizer_syscall_pre___shmctl50(shmid, cmd, buf) \
  2459. __sanitizer_syscall_pre_impl___shmctl50((long long)(shmid), \
  2460. (long long)(cmd), (long long)(buf))
  2461. #define __sanitizer_syscall_post___shmctl50(res, shmid, cmd, buf) \
  2462. __sanitizer_syscall_post_impl___shmctl50(res, (long long)(shmid), \
  2463. (long long)(cmd), (long long)(buf))
  2464. #define __sanitizer_syscall_pre___msgctl50(msqid, cmd, buf) \
  2465. __sanitizer_syscall_pre_impl___msgctl50((long long)(msqid), \
  2466. (long long)(cmd), (long long)(buf))
  2467. #define __sanitizer_syscall_post___msgctl50(res, msqid, cmd, buf) \
  2468. __sanitizer_syscall_post_impl___msgctl50(res, (long long)(msqid), \
  2469. (long long)(cmd), (long long)(buf))
  2470. #define __sanitizer_syscall_pre___getrusage50(who, rusage) \
  2471. __sanitizer_syscall_pre_impl___getrusage50((long long)(who), \
  2472. (long long)(rusage))
  2473. #define __sanitizer_syscall_post___getrusage50(res, who, rusage) \
  2474. __sanitizer_syscall_post_impl___getrusage50(res, (long long)(who), \
  2475. (long long)(rusage))
  2476. #define __sanitizer_syscall_pre___timer_settime50(timerid, flags, value, \
  2477. ovalue) \
  2478. __sanitizer_syscall_pre_impl___timer_settime50( \
  2479. (long long)(timerid), (long long)(flags), (long long)(value), \
  2480. (long long)(ovalue))
  2481. #define __sanitizer_syscall_post___timer_settime50(res, timerid, flags, value, \
  2482. ovalue) \
  2483. __sanitizer_syscall_post_impl___timer_settime50( \
  2484. res, (long long)(timerid), (long long)(flags), (long long)(value), \
  2485. (long long)(ovalue))
  2486. #define __sanitizer_syscall_pre___timer_gettime50(timerid, value) \
  2487. __sanitizer_syscall_pre_impl___timer_gettime50((long long)(timerid), \
  2488. (long long)(value))
  2489. #define __sanitizer_syscall_post___timer_gettime50(res, timerid, value) \
  2490. __sanitizer_syscall_post_impl___timer_gettime50(res, (long long)(timerid), \
  2491. (long long)(value))
  2492. #if defined(NTP) || !defined(_KERNEL_OPT)
  2493. #define __sanitizer_syscall_pre___ntp_gettime50(ntvp) \
  2494. __sanitizer_syscall_pre_impl___ntp_gettime50((long long)(ntvp))
  2495. #define __sanitizer_syscall_post___ntp_gettime50(res, ntvp) \
  2496. __sanitizer_syscall_post_impl___ntp_gettime50(res, (long long)(ntvp))
  2497. #else
  2498. /* syscall 448 has been skipped */
  2499. #endif
  2500. #define __sanitizer_syscall_pre___wait450(pid, status, options, rusage) \
  2501. __sanitizer_syscall_pre_impl___wait450( \
  2502. (long long)(pid), (long long)(status), (long long)(options), \
  2503. (long long)(rusage))
  2504. #define __sanitizer_syscall_post___wait450(res, pid, status, options, rusage) \
  2505. __sanitizer_syscall_post_impl___wait450( \
  2506. res, (long long)(pid), (long long)(status), (long long)(options), \
  2507. (long long)(rusage))
  2508. #define __sanitizer_syscall_pre___mknod50(path, mode, dev) \
  2509. __sanitizer_syscall_pre_impl___mknod50((long long)(path), (long long)(mode), \
  2510. (long long)(dev))
  2511. #define __sanitizer_syscall_post___mknod50(res, path, mode, dev) \
  2512. __sanitizer_syscall_post_impl___mknod50(res, (long long)(path), \
  2513. (long long)(mode), (long long)(dev))
  2514. #define __sanitizer_syscall_pre___fhstat50(fhp, fh_size, sb) \
  2515. __sanitizer_syscall_pre_impl___fhstat50( \
  2516. (long long)(fhp), (long long)(fh_size), (long long)(sb))
  2517. #define __sanitizer_syscall_post___fhstat50(res, fhp, fh_size, sb) \
  2518. __sanitizer_syscall_post_impl___fhstat50( \
  2519. res, (long long)(fhp), (long long)(fh_size), (long long)(sb))
  2520. /* syscall 452 has been skipped */
  2521. #define __sanitizer_syscall_pre_pipe2(fildes, flags) \
  2522. __sanitizer_syscall_pre_impl_pipe2((long long)(fildes), (long long)(flags))
  2523. #define __sanitizer_syscall_post_pipe2(res, fildes, flags) \
  2524. __sanitizer_syscall_post_impl_pipe2(res, (long long)(fildes), \
  2525. (long long)(flags))
  2526. #define __sanitizer_syscall_pre_dup3(from, to, flags) \
  2527. __sanitizer_syscall_pre_impl_dup3((long long)(from), (long long)(to), \
  2528. (long long)(flags))
  2529. #define __sanitizer_syscall_post_dup3(res, from, to, flags) \
  2530. __sanitizer_syscall_post_impl_dup3(res, (long long)(from), (long long)(to), \
  2531. (long long)(flags))
  2532. #define __sanitizer_syscall_pre_kqueue1(flags) \
  2533. __sanitizer_syscall_pre_impl_kqueue1((long long)(flags))
  2534. #define __sanitizer_syscall_post_kqueue1(res, flags) \
  2535. __sanitizer_syscall_post_impl_kqueue1(res, (long long)(flags))
  2536. #define __sanitizer_syscall_pre_paccept(s, name, anamelen, mask, flags) \
  2537. __sanitizer_syscall_pre_impl_paccept((long long)(s), (long long)(name), \
  2538. (long long)(anamelen), \
  2539. (long long)(mask), (long long)(flags))
  2540. #define __sanitizer_syscall_post_paccept(res, s, name, anamelen, mask, flags) \
  2541. __sanitizer_syscall_post_impl_paccept( \
  2542. res, (long long)(s), (long long)(name), (long long)(anamelen), \
  2543. (long long)(mask), (long long)(flags))
  2544. #define __sanitizer_syscall_pre_linkat(fd1, name1, fd2, name2, flags) \
  2545. __sanitizer_syscall_pre_impl_linkat((long long)(fd1), (long long)(name1), \
  2546. (long long)(fd2), (long long)(name2), \
  2547. (long long)(flags))
  2548. #define __sanitizer_syscall_post_linkat(res, fd1, name1, fd2, name2, flags) \
  2549. __sanitizer_syscall_post_impl_linkat(res, (long long)(fd1), \
  2550. (long long)(name1), (long long)(fd2), \
  2551. (long long)(name2), (long long)(flags))
  2552. #define __sanitizer_syscall_pre_renameat(fromfd, from, tofd, to) \
  2553. __sanitizer_syscall_pre_impl_renameat((long long)(fromfd), \
  2554. (long long)(from), (long long)(tofd), \
  2555. (long long)(to))
  2556. #define __sanitizer_syscall_post_renameat(res, fromfd, from, tofd, to) \
  2557. __sanitizer_syscall_post_impl_renameat(res, (long long)(fromfd), \
  2558. (long long)(from), (long long)(tofd), \
  2559. (long long)(to))
  2560. #define __sanitizer_syscall_pre_mkfifoat(fd, path, mode) \
  2561. __sanitizer_syscall_pre_impl_mkfifoat((long long)(fd), (long long)(path), \
  2562. (long long)(mode))
  2563. #define __sanitizer_syscall_post_mkfifoat(res, fd, path, mode) \
  2564. __sanitizer_syscall_post_impl_mkfifoat(res, (long long)(fd), \
  2565. (long long)(path), (long long)(mode))
  2566. #define __sanitizer_syscall_pre_mknodat(fd, path, mode, PAD, dev) \
  2567. __sanitizer_syscall_pre_impl_mknodat((long long)(fd), (long long)(path), \
  2568. (long long)(mode), (long long)(PAD), \
  2569. (long long)(dev))
  2570. #define __sanitizer_syscall_post_mknodat(res, fd, path, mode, PAD, dev) \
  2571. __sanitizer_syscall_post_impl_mknodat(res, (long long)(fd), \
  2572. (long long)(path), (long long)(mode), \
  2573. (long long)(PAD), (long long)(dev))
  2574. #define __sanitizer_syscall_pre_mkdirat(fd, path, mode) \
  2575. __sanitizer_syscall_pre_impl_mkdirat((long long)(fd), (long long)(path), \
  2576. (long long)(mode))
  2577. #define __sanitizer_syscall_post_mkdirat(res, fd, path, mode) \
  2578. __sanitizer_syscall_post_impl_mkdirat(res, (long long)(fd), \
  2579. (long long)(path), (long long)(mode))
  2580. #define __sanitizer_syscall_pre_faccessat(fd, path, amode, flag) \
  2581. __sanitizer_syscall_pre_impl_faccessat((long long)(fd), (long long)(path), \
  2582. (long long)(amode), \
  2583. (long long)(flag))
  2584. #define __sanitizer_syscall_post_faccessat(res, fd, path, amode, flag) \
  2585. __sanitizer_syscall_post_impl_faccessat( \
  2586. res, (long long)(fd), (long long)(path), (long long)(amode), \
  2587. (long long)(flag))
  2588. #define __sanitizer_syscall_pre_fchmodat(fd, path, mode, flag) \
  2589. __sanitizer_syscall_pre_impl_fchmodat((long long)(fd), (long long)(path), \
  2590. (long long)(mode), (long long)(flag))
  2591. #define __sanitizer_syscall_post_fchmodat(res, fd, path, mode, flag) \
  2592. __sanitizer_syscall_post_impl_fchmodat(res, (long long)(fd), \
  2593. (long long)(path), (long long)(mode), \
  2594. (long long)(flag))
  2595. #define __sanitizer_syscall_pre_fchownat(fd, path, owner, group, flag) \
  2596. __sanitizer_syscall_pre_impl_fchownat((long long)(fd), (long long)(path), \
  2597. (long long)(owner), \
  2598. (long long)(group), (long long)(flag))
  2599. #define __sanitizer_syscall_post_fchownat(res, fd, path, owner, group, flag) \
  2600. __sanitizer_syscall_post_impl_fchownat( \
  2601. res, (long long)(fd), (long long)(path), (long long)(owner), \
  2602. (long long)(group), (long long)(flag))
  2603. #define __sanitizer_syscall_pre_fexecve(fd, argp, envp) \
  2604. __sanitizer_syscall_pre_impl_fexecve((long long)(fd), (long long)(argp), \
  2605. (long long)(envp))
  2606. #define __sanitizer_syscall_post_fexecve(res, fd, argp, envp) \
  2607. __sanitizer_syscall_post_impl_fexecve(res, (long long)(fd), \
  2608. (long long)(argp), (long long)(envp))
  2609. #define __sanitizer_syscall_pre_fstatat(fd, path, buf, flag) \
  2610. __sanitizer_syscall_pre_impl_fstatat((long long)(fd), (long long)(path), \
  2611. (long long)(buf), (long long)(flag))
  2612. #define __sanitizer_syscall_post_fstatat(res, fd, path, buf, flag) \
  2613. __sanitizer_syscall_post_impl_fstatat(res, (long long)(fd), \
  2614. (long long)(path), (long long)(buf), \
  2615. (long long)(flag))
  2616. #define __sanitizer_syscall_pre_utimensat(fd, path, tptr, flag) \
  2617. __sanitizer_syscall_pre_impl_utimensat((long long)(fd), (long long)(path), \
  2618. (long long)(tptr), (long long)(flag))
  2619. #define __sanitizer_syscall_post_utimensat(res, fd, path, tptr, flag) \
  2620. __sanitizer_syscall_post_impl_utimensat( \
  2621. res, (long long)(fd), (long long)(path), (long long)(tptr), \
  2622. (long long)(flag))
  2623. #define __sanitizer_syscall_pre_openat(fd, path, oflags, mode) \
  2624. __sanitizer_syscall_pre_impl_openat((long long)(fd), (long long)(path), \
  2625. (long long)(oflags), (long long)(mode))
  2626. #define __sanitizer_syscall_post_openat(res, fd, path, oflags, mode) \
  2627. __sanitizer_syscall_post_impl_openat(res, (long long)(fd), \
  2628. (long long)(path), (long long)(oflags), \
  2629. (long long)(mode))
  2630. #define __sanitizer_syscall_pre_readlinkat(fd, path, buf, bufsize) \
  2631. __sanitizer_syscall_pre_impl_readlinkat((long long)(fd), (long long)(path), \
  2632. (long long)(buf), \
  2633. (long long)(bufsize))
  2634. #define __sanitizer_syscall_post_readlinkat(res, fd, path, buf, bufsize) \
  2635. __sanitizer_syscall_post_impl_readlinkat( \
  2636. res, (long long)(fd), (long long)(path), (long long)(buf), \
  2637. (long long)(bufsize))
  2638. #define __sanitizer_syscall_pre_symlinkat(path1, fd, path2) \
  2639. __sanitizer_syscall_pre_impl_symlinkat((long long)(path1), (long long)(fd), \
  2640. (long long)(path2))
  2641. #define __sanitizer_syscall_post_symlinkat(res, path1, fd, path2) \
  2642. __sanitizer_syscall_post_impl_symlinkat(res, (long long)(path1), \
  2643. (long long)(fd), (long long)(path2))
  2644. #define __sanitizer_syscall_pre_unlinkat(fd, path, flag) \
  2645. __sanitizer_syscall_pre_impl_unlinkat((long long)(fd), (long long)(path), \
  2646. (long long)(flag))
  2647. #define __sanitizer_syscall_post_unlinkat(res, fd, path, flag) \
  2648. __sanitizer_syscall_post_impl_unlinkat(res, (long long)(fd), \
  2649. (long long)(path), (long long)(flag))
  2650. #define __sanitizer_syscall_pre_futimens(fd, tptr) \
  2651. __sanitizer_syscall_pre_impl_futimens((long long)(fd), (long long)(tptr))
  2652. #define __sanitizer_syscall_post_futimens(res, fd, tptr) \
  2653. __sanitizer_syscall_post_impl_futimens(res, (long long)(fd), \
  2654. (long long)(tptr))
  2655. #define __sanitizer_syscall_pre___quotactl(path, args) \
  2656. __sanitizer_syscall_pre_impl___quotactl((long long)(path), (long long)(args))
  2657. #define __sanitizer_syscall_post___quotactl(res, path, args) \
  2658. __sanitizer_syscall_post_impl___quotactl(res, (long long)(path), \
  2659. (long long)(args))
  2660. #define __sanitizer_syscall_pre_posix_spawn(pid, path, file_actions, attrp, \
  2661. argv, envp) \
  2662. __sanitizer_syscall_pre_impl_posix_spawn( \
  2663. (long long)(pid), (long long)(path), (long long)(file_actions), \
  2664. (long long)(attrp), (long long)(argv), (long long)(envp))
  2665. #define __sanitizer_syscall_post_posix_spawn(res, pid, path, file_actions, \
  2666. attrp, argv, envp) \
  2667. __sanitizer_syscall_post_impl_posix_spawn( \
  2668. res, (long long)(pid), (long long)(path), (long long)(file_actions), \
  2669. (long long)(attrp), (long long)(argv), (long long)(envp))
  2670. #define __sanitizer_syscall_pre_recvmmsg(s, mmsg, vlen, flags, timeout) \
  2671. __sanitizer_syscall_pre_impl_recvmmsg((long long)(s), (long long)(mmsg), \
  2672. (long long)(vlen), (long long)(flags), \
  2673. (long long)(timeout))
  2674. #define __sanitizer_syscall_post_recvmmsg(res, s, mmsg, vlen, flags, timeout) \
  2675. __sanitizer_syscall_post_impl_recvmmsg( \
  2676. res, (long long)(s), (long long)(mmsg), (long long)(vlen), \
  2677. (long long)(flags), (long long)(timeout))
  2678. #define __sanitizer_syscall_pre_sendmmsg(s, mmsg, vlen, flags) \
  2679. __sanitizer_syscall_pre_impl_sendmmsg((long long)(s), (long long)(mmsg), \
  2680. (long long)(vlen), (long long)(flags))
  2681. #define __sanitizer_syscall_post_sendmmsg(res, s, mmsg, vlen, flags) \
  2682. __sanitizer_syscall_post_impl_sendmmsg(res, (long long)(s), \
  2683. (long long)(mmsg), (long long)(vlen), \
  2684. (long long)(flags))
  2685. #define __sanitizer_syscall_pre_clock_nanosleep(clock_id, flags, rqtp, rmtp) \
  2686. __sanitizer_syscall_pre_impl_clock_nanosleep( \
  2687. (long long)(clock_id), (long long)(flags), (long long)(rqtp), \
  2688. (long long)(rmtp))
  2689. #define __sanitizer_syscall_post_clock_nanosleep(res, clock_id, flags, rqtp, \
  2690. rmtp) \
  2691. __sanitizer_syscall_post_impl_clock_nanosleep( \
  2692. res, (long long)(clock_id), (long long)(flags), (long long)(rqtp), \
  2693. (long long)(rmtp))
  2694. #define __sanitizer_syscall_pre____lwp_park60(clock_id, flags, ts, unpark, \
  2695. hint, unparkhint) \
  2696. __sanitizer_syscall_pre_impl____lwp_park60( \
  2697. (long long)(clock_id), (long long)(flags), (long long)(ts), \
  2698. (long long)(unpark), (long long)(hint), (long long)(unparkhint))
  2699. #define __sanitizer_syscall_post____lwp_park60(res, clock_id, flags, ts, \
  2700. unpark, hint, unparkhint) \
  2701. __sanitizer_syscall_post_impl____lwp_park60( \
  2702. res, (long long)(clock_id), (long long)(flags), (long long)(ts), \
  2703. (long long)(unpark), (long long)(hint), (long long)(unparkhint))
  2704. #define __sanitizer_syscall_pre_posix_fallocate(fd, PAD, pos, len) \
  2705. __sanitizer_syscall_pre_impl_posix_fallocate( \
  2706. (long long)(fd), (long long)(PAD), (long long)(pos), (long long)(len))
  2707. #define __sanitizer_syscall_post_posix_fallocate(res, fd, PAD, pos, len) \
  2708. __sanitizer_syscall_post_impl_posix_fallocate( \
  2709. res, (long long)(fd), (long long)(PAD), (long long)(pos), \
  2710. (long long)(len))
  2711. #define __sanitizer_syscall_pre_fdiscard(fd, PAD, pos, len) \
  2712. __sanitizer_syscall_pre_impl_fdiscard((long long)(fd), (long long)(PAD), \
  2713. (long long)(pos), (long long)(len))
  2714. #define __sanitizer_syscall_post_fdiscard(res, fd, PAD, pos, len) \
  2715. __sanitizer_syscall_post_impl_fdiscard(res, (long long)(fd), \
  2716. (long long)(PAD), (long long)(pos), \
  2717. (long long)(len))
  2718. #define __sanitizer_syscall_pre_wait6(idtype, id, status, options, wru, info) \
  2719. __sanitizer_syscall_pre_impl_wait6( \
  2720. (long long)(idtype), (long long)(id), (long long)(status), \
  2721. (long long)(options), (long long)(wru), (long long)(info))
  2722. #define __sanitizer_syscall_post_wait6(res, idtype, id, status, options, wru, \
  2723. info) \
  2724. __sanitizer_syscall_post_impl_wait6( \
  2725. res, (long long)(idtype), (long long)(id), (long long)(status), \
  2726. (long long)(options), (long long)(wru), (long long)(info))
  2727. #define __sanitizer_syscall_pre_clock_getcpuclockid2(idtype, id, clock_id) \
  2728. __sanitizer_syscall_pre_impl_clock_getcpuclockid2( \
  2729. (long long)(idtype), (long long)(id), (long long)(clock_id))
  2730. #define __sanitizer_syscall_post_clock_getcpuclockid2(res, idtype, id, \
  2731. clock_id) \
  2732. __sanitizer_syscall_post_impl_clock_getcpuclockid2( \
  2733. res, (long long)(idtype), (long long)(id), (long long)(clock_id))
  2734. #define __sanitizer_syscall_pre___getvfsstat90(buf, bufsize, flags) \
  2735. __sanitizer_syscall_pre_impl___getvfsstat90( \
  2736. (long long)(buf), (long long)(bufsize), (long long)(flags))
  2737. #define __sanitizer_syscall_post___getvfsstat90(res, buf, bufsize, flags) \
  2738. __sanitizer_syscall_post_impl___getvfsstat90( \
  2739. res, (long long)(buf), (long long)(bufsize), (long long)(flags))
  2740. #define __sanitizer_syscall_pre___statvfs190(path, buf, flags) \
  2741. __sanitizer_syscall_pre_impl___statvfs190( \
  2742. (long long)(path), (long long)(buf), (long long)(flags))
  2743. #define __sanitizer_syscall_post___statvfs190(res, path, buf, flags) \
  2744. __sanitizer_syscall_post_impl___statvfs190( \
  2745. res, (long long)(path), (long long)(buf), (long long)(flags))
  2746. #define __sanitizer_syscall_pre___fstatvfs190(fd, buf, flags) \
  2747. __sanitizer_syscall_pre_impl___fstatvfs190( \
  2748. (long long)(fd), (long long)(buf), (long long)(flags))
  2749. #define __sanitizer_syscall_post___fstatvfs190(res, fd, buf, flags) \
  2750. __sanitizer_syscall_post_impl___fstatvfs190( \
  2751. res, (long long)(fd), (long long)(buf), (long long)(flags))
  2752. #define __sanitizer_syscall_pre___fhstatvfs190(fhp, fh_size, buf, flags) \
  2753. __sanitizer_syscall_pre_impl___fhstatvfs190( \
  2754. (long long)(fhp), (long long)(fh_size), (long long)(buf), \
  2755. (long long)(flags))
  2756. #define __sanitizer_syscall_post___fhstatvfs190(res, fhp, fh_size, buf, flags) \
  2757. __sanitizer_syscall_post_impl___fhstatvfs190( \
  2758. res, (long long)(fhp), (long long)(fh_size), (long long)(buf), \
  2759. (long long)(flags))
  2760. #define __sanitizer_syscall_pre___acl_get_link(path, type, aclp) \
  2761. __sanitizer_syscall_pre_impl___acl_get_link( \
  2762. (long long)(path), (long long)(type), (long long)(aclp))
  2763. #define __sanitizer_syscall_post___acl_get_link(res, path, type, aclp) \
  2764. __sanitizer_syscall_post_impl___acl_get_link( \
  2765. res, (long long)(path), (long long)(type), (long long)(aclp))
  2766. #define __sanitizer_syscall_pre___acl_set_link(path, type, aclp) \
  2767. __sanitizer_syscall_pre_impl___acl_set_link( \
  2768. (long long)(path), (long long)(type), (long long)(aclp))
  2769. #define __sanitizer_syscall_post___acl_set_link(res, path, type, aclp) \
  2770. __sanitizer_syscall_post_impl___acl_set_link( \
  2771. res, (long long)(path), (long long)(type), (long long)(aclp))
  2772. #define __sanitizer_syscall_pre___acl_delete_link(path, type) \
  2773. __sanitizer_syscall_pre_impl___acl_delete_link((long long)(path), \
  2774. (long long)(type))
  2775. #define __sanitizer_syscall_post___acl_delete_link(res, path, type) \
  2776. __sanitizer_syscall_post_impl___acl_delete_link(res, (long long)(path), \
  2777. (long long)(type))
  2778. #define __sanitizer_syscall_pre___acl_aclcheck_link(path, type, aclp) \
  2779. __sanitizer_syscall_pre_impl___acl_aclcheck_link( \
  2780. (long long)(path), (long long)(type), (long long)(aclp))
  2781. #define __sanitizer_syscall_post___acl_aclcheck_link(res, path, type, aclp) \
  2782. __sanitizer_syscall_post_impl___acl_aclcheck_link( \
  2783. res, (long long)(path), (long long)(type), (long long)(aclp))
  2784. #define __sanitizer_syscall_pre___acl_get_file(path, type, aclp) \
  2785. __sanitizer_syscall_pre_impl___acl_get_file( \
  2786. (long long)(path), (long long)(type), (long long)(aclp))
  2787. #define __sanitizer_syscall_post___acl_get_file(res, path, type, aclp) \
  2788. __sanitizer_syscall_post_impl___acl_get_file( \
  2789. res, (long long)(path), (long long)(type), (long long)(aclp))
  2790. #define __sanitizer_syscall_pre___acl_set_file(path, type, aclp) \
  2791. __sanitizer_syscall_pre_impl___acl_set_file( \
  2792. (long long)(path), (long long)(type), (long long)(aclp))
  2793. #define __sanitizer_syscall_post___acl_set_file(res, path, type, aclp) \
  2794. __sanitizer_syscall_post_impl___acl_set_file( \
  2795. res, (long long)(path), (long long)(type), (long long)(aclp))
  2796. #define __sanitizer_syscall_pre___acl_get_fd(filedes, type, aclp) \
  2797. __sanitizer_syscall_pre_impl___acl_get_fd( \
  2798. (long long)(filedes), (long long)(type), (long long)(aclp))
  2799. #define __sanitizer_syscall_post___acl_get_fd(res, filedes, type, aclp) \
  2800. __sanitizer_syscall_post_impl___acl_get_fd( \
  2801. res, (long long)(filedes), (long long)(type), (long long)(aclp))
  2802. #define __sanitizer_syscall_pre___acl_set_fd(filedes, type, aclp) \
  2803. __sanitizer_syscall_pre_impl___acl_set_fd( \
  2804. (long long)(filedes), (long long)(type), (long long)(aclp))
  2805. #define __sanitizer_syscall_post___acl_set_fd(res, filedes, type, aclp) \
  2806. __sanitizer_syscall_post_impl___acl_set_fd( \
  2807. res, (long long)(filedes), (long long)(type), (long long)(aclp))
  2808. #define __sanitizer_syscall_pre___acl_delete_file(path, type) \
  2809. __sanitizer_syscall_pre_impl___acl_delete_file((long long)(path), \
  2810. (long long)(type))
  2811. #define __sanitizer_syscall_post___acl_delete_file(res, path, type) \
  2812. __sanitizer_syscall_post_impl___acl_delete_file(res, (long long)(path), \
  2813. (long long)(type))
  2814. #define __sanitizer_syscall_pre___acl_delete_fd(filedes, type) \
  2815. __sanitizer_syscall_pre_impl___acl_delete_fd((long long)(filedes), \
  2816. (long long)(type))
  2817. #define __sanitizer_syscall_post___acl_delete_fd(res, filedes, type) \
  2818. __sanitizer_syscall_post_impl___acl_delete_fd(res, (long long)(filedes), \
  2819. (long long)(type))
  2820. #define __sanitizer_syscall_pre___acl_aclcheck_file(path, type, aclp) \
  2821. __sanitizer_syscall_pre_impl___acl_aclcheck_file( \
  2822. (long long)(path), (long long)(type), (long long)(aclp))
  2823. #define __sanitizer_syscall_post___acl_aclcheck_file(res, path, type, aclp) \
  2824. __sanitizer_syscall_post_impl___acl_aclcheck_file( \
  2825. res, (long long)(path), (long long)(type), (long long)(aclp))
  2826. #define __sanitizer_syscall_pre___acl_aclcheck_fd(filedes, type, aclp) \
  2827. __sanitizer_syscall_pre_impl___acl_aclcheck_fd( \
  2828. (long long)(filedes), (long long)(type), (long long)(aclp))
  2829. #define __sanitizer_syscall_post___acl_aclcheck_fd(res, filedes, type, aclp) \
  2830. __sanitizer_syscall_post_impl___acl_aclcheck_fd( \
  2831. res, (long long)(filedes), (long long)(type), (long long)(aclp))
  2832. #define __sanitizer_syscall_pre_lpathconf(path, name) \
  2833. __sanitizer_syscall_pre_impl_lpathconf((long long)(path), (long long)(name))
  2834. #define __sanitizer_syscall_post_lpathconf(res, path, name) \
  2835. __sanitizer_syscall_post_impl_lpathconf(res, (long long)(path), \
  2836. (long long)(name))
  2837. /* Compat with older releases */
  2838. #define __sanitizer_syscall_pre_getvfsstat \
  2839. __sanitizer_syscall_pre_compat_90_getvfsstat
  2840. #define __sanitizer_syscall_post_getvfsstat \
  2841. __sanitizer_syscall_post_compat_90_getvfsstat
  2842. #define __sanitizer_syscall_pre_statvfs1 \
  2843. __sanitizer_syscall_pre_compat_90_statvfs1
  2844. #define __sanitizer_syscall_post_statvfs1 \
  2845. __sanitizer_syscall_post_compat_90_statvfs1
  2846. #define __sanitizer_syscall_pre_fstatvfs1 \
  2847. __sanitizer_syscall_pre_compat_90_fstatvfs1
  2848. #define __sanitizer_syscall_post_fstatvfs1 \
  2849. __sanitizer_syscall_post_compat_90_fstatvfs1
  2850. #define __sanitizer_syscall_pre___fhstatvfs140 \
  2851. __sanitizer_syscall_pre_compat_90_fhstatvfs1
  2852. #define __sanitizer_syscall_post___fhstatvfs140 \
  2853. __sanitizer_syscall_post_compat_90_fhstatvfs1
  2854. #ifdef __cplusplus
  2855. extern "C" {
  2856. #endif
  2857. // Private declarations. Do not call directly from user code. Use macros above.
  2858. // DO NOT EDIT! THIS FILE HAS BEEN GENERATED!
  2859. void __sanitizer_syscall_pre_impl_syscall(long long code, long long arg0,
  2860. long long arg1, long long arg2,
  2861. long long arg3, long long arg4,
  2862. long long arg5, long long arg6,
  2863. long long arg7);
  2864. void __sanitizer_syscall_post_impl_syscall(long long res, long long code,
  2865. long long arg0, long long arg1,
  2866. long long arg2, long long arg3,
  2867. long long arg4, long long arg5,
  2868. long long arg6, long long arg7);
  2869. void __sanitizer_syscall_pre_impl_exit(long long rval);
  2870. void __sanitizer_syscall_post_impl_exit(long long res, long long rval);
  2871. void __sanitizer_syscall_pre_impl_fork(void);
  2872. void __sanitizer_syscall_post_impl_fork(long long res);
  2873. void __sanitizer_syscall_pre_impl_read(long long fd, long long buf,
  2874. long long nbyte);
  2875. void __sanitizer_syscall_post_impl_read(long long res, long long fd,
  2876. long long buf, long long nbyte);
  2877. void __sanitizer_syscall_pre_impl_write(long long fd, long long buf,
  2878. long long nbyte);
  2879. void __sanitizer_syscall_post_impl_write(long long res, long long fd,
  2880. long long buf, long long nbyte);
  2881. void __sanitizer_syscall_pre_impl_open(long long path, long long flags,
  2882. long long mode);
  2883. void __sanitizer_syscall_post_impl_open(long long res, long long path,
  2884. long long flags, long long mode);
  2885. void __sanitizer_syscall_pre_impl_close(long long fd);
  2886. void __sanitizer_syscall_post_impl_close(long long res, long long fd);
  2887. void __sanitizer_syscall_pre_impl_compat_50_wait4(long long pid,
  2888. long long status,
  2889. long long options,
  2890. long long rusage);
  2891. void __sanitizer_syscall_post_impl_compat_50_wait4(long long res, long long pid,
  2892. long long status,
  2893. long long options,
  2894. long long rusage);
  2895. void __sanitizer_syscall_pre_impl_compat_43_ocreat(long long path,
  2896. long long mode);
  2897. void __sanitizer_syscall_post_impl_compat_43_ocreat(long long res,
  2898. long long path,
  2899. long long mode);
  2900. void __sanitizer_syscall_pre_impl_link(long long path, long long link);
  2901. void __sanitizer_syscall_post_impl_link(long long res, long long path,
  2902. long long link);
  2903. void __sanitizer_syscall_pre_impl_unlink(long long path);
  2904. void __sanitizer_syscall_post_impl_unlink(long long res, long long path);
  2905. /* syscall 11 has been skipped */
  2906. void __sanitizer_syscall_pre_impl_chdir(long long path);
  2907. void __sanitizer_syscall_post_impl_chdir(long long res, long long path);
  2908. void __sanitizer_syscall_pre_impl_fchdir(long long fd);
  2909. void __sanitizer_syscall_post_impl_fchdir(long long res, long long fd);
  2910. void __sanitizer_syscall_pre_impl_compat_50_mknod(long long path,
  2911. long long mode,
  2912. long long dev);
  2913. void __sanitizer_syscall_post_impl_compat_50_mknod(long long res,
  2914. long long path,
  2915. long long mode,
  2916. long long dev);
  2917. void __sanitizer_syscall_pre_impl_chmod(long long path, long long mode);
  2918. void __sanitizer_syscall_post_impl_chmod(long long res, long long path,
  2919. long long mode);
  2920. void __sanitizer_syscall_pre_impl_chown(long long path, long long uid,
  2921. long long gid);
  2922. void __sanitizer_syscall_post_impl_chown(long long res, long long path,
  2923. long long uid, long long gid);
  2924. void __sanitizer_syscall_pre_impl_break(long long nsize);
  2925. void __sanitizer_syscall_post_impl_break(long long res, long long nsize);
  2926. void __sanitizer_syscall_pre_impl_compat_20_getfsstat(long long buf,
  2927. long long bufsize,
  2928. long long flags);
  2929. void __sanitizer_syscall_post_impl_compat_20_getfsstat(long long res,
  2930. long long buf,
  2931. long long bufsize,
  2932. long long flags);
  2933. void __sanitizer_syscall_pre_impl_compat_43_olseek(long long fd,
  2934. long long offset,
  2935. long long whence);
  2936. void __sanitizer_syscall_post_impl_compat_43_olseek(long long res, long long fd,
  2937. long long offset,
  2938. long long whence);
  2939. void __sanitizer_syscall_pre_impl_getpid(void);
  2940. void __sanitizer_syscall_post_impl_getpid(long long res);
  2941. void __sanitizer_syscall_pre_impl_compat_40_mount(long long type,
  2942. long long path,
  2943. long long flags,
  2944. long long data);
  2945. void __sanitizer_syscall_post_impl_compat_40_mount(long long res,
  2946. long long type,
  2947. long long path,
  2948. long long flags,
  2949. long long data);
  2950. void __sanitizer_syscall_pre_impl_unmount(long long path, long long flags);
  2951. void __sanitizer_syscall_post_impl_unmount(long long res, long long path,
  2952. long long flags);
  2953. void __sanitizer_syscall_pre_impl_setuid(long long uid);
  2954. void __sanitizer_syscall_post_impl_setuid(long long res, long long uid);
  2955. void __sanitizer_syscall_pre_impl_getuid(void);
  2956. void __sanitizer_syscall_post_impl_getuid(long long res);
  2957. void __sanitizer_syscall_pre_impl_geteuid(void);
  2958. void __sanitizer_syscall_post_impl_geteuid(long long res);
  2959. void __sanitizer_syscall_pre_impl_ptrace(long long req, long long pid,
  2960. long long addr, long long data);
  2961. void __sanitizer_syscall_post_impl_ptrace(long long res, long long req,
  2962. long long pid, long long addr,
  2963. long long data);
  2964. void __sanitizer_syscall_pre_impl_recvmsg(long long s, long long msg,
  2965. long long flags);
  2966. void __sanitizer_syscall_post_impl_recvmsg(long long res, long long s,
  2967. long long msg, long long flags);
  2968. void __sanitizer_syscall_pre_impl_sendmsg(long long s, long long msg,
  2969. long long flags);
  2970. void __sanitizer_syscall_post_impl_sendmsg(long long res, long long s,
  2971. long long msg, long long flags);
  2972. void __sanitizer_syscall_pre_impl_recvfrom(long long s, long long buf,
  2973. long long len, long long flags,
  2974. long long from,
  2975. long long fromlenaddr);
  2976. void __sanitizer_syscall_post_impl_recvfrom(long long res, long long s,
  2977. long long buf, long long len,
  2978. long long flags, long long from,
  2979. long long fromlenaddr);
  2980. void __sanitizer_syscall_pre_impl_accept(long long s, long long name,
  2981. long long anamelen);
  2982. void __sanitizer_syscall_post_impl_accept(long long res, long long s,
  2983. long long name, long long anamelen);
  2984. void __sanitizer_syscall_pre_impl_getpeername(long long fdes, long long asa,
  2985. long long alen);
  2986. void __sanitizer_syscall_post_impl_getpeername(long long res, long long fdes,
  2987. long long asa, long long alen);
  2988. void __sanitizer_syscall_pre_impl_getsockname(long long fdes, long long asa,
  2989. long long alen);
  2990. void __sanitizer_syscall_post_impl_getsockname(long long res, long long fdes,
  2991. long long asa, long long alen);
  2992. void __sanitizer_syscall_pre_impl_access(long long path, long long flags);
  2993. void __sanitizer_syscall_post_impl_access(long long res, long long path,
  2994. long long flags);
  2995. void __sanitizer_syscall_pre_impl_chflags(long long path, long long flags);
  2996. void __sanitizer_syscall_post_impl_chflags(long long res, long long path,
  2997. long long flags);
  2998. void __sanitizer_syscall_pre_impl_fchflags(long long fd, long long flags);
  2999. void __sanitizer_syscall_post_impl_fchflags(long long res, long long fd,
  3000. long long flags);
  3001. void __sanitizer_syscall_pre_impl_sync(void);
  3002. void __sanitizer_syscall_post_impl_sync(long long res);
  3003. void __sanitizer_syscall_pre_impl_kill(long long pid, long long signum);
  3004. void __sanitizer_syscall_post_impl_kill(long long res, long long pid,
  3005. long long signum);
  3006. void __sanitizer_syscall_pre_impl_compat_43_stat43(long long path,
  3007. long long ub);
  3008. void __sanitizer_syscall_post_impl_compat_43_stat43(long long res,
  3009. long long path,
  3010. long long ub);
  3011. void __sanitizer_syscall_pre_impl_getppid(void);
  3012. void __sanitizer_syscall_post_impl_getppid(long long res);
  3013. void __sanitizer_syscall_pre_impl_compat_43_lstat43(long long path,
  3014. long long ub);
  3015. void __sanitizer_syscall_post_impl_compat_43_lstat43(long long res,
  3016. long long path,
  3017. long long ub);
  3018. void __sanitizer_syscall_pre_impl_dup(long long fd);
  3019. void __sanitizer_syscall_post_impl_dup(long long res, long long fd);
  3020. void __sanitizer_syscall_pre_impl_pipe(void);
  3021. void __sanitizer_syscall_post_impl_pipe(long long res);
  3022. void __sanitizer_syscall_pre_impl_getegid(void);
  3023. void __sanitizer_syscall_post_impl_getegid(long long res);
  3024. void __sanitizer_syscall_pre_impl_profil(long long samples, long long size,
  3025. long long offset, long long scale);
  3026. void __sanitizer_syscall_post_impl_profil(long long res, long long samples,
  3027. long long size, long long offset,
  3028. long long scale);
  3029. void __sanitizer_syscall_pre_impl_ktrace(long long fname, long long ops,
  3030. long long facs, long long pid);
  3031. void __sanitizer_syscall_post_impl_ktrace(long long res, long long fname,
  3032. long long ops, long long facs,
  3033. long long pid);
  3034. void __sanitizer_syscall_pre_impl_compat_13_sigaction13(long long signum,
  3035. long long nsa,
  3036. long long osa);
  3037. void __sanitizer_syscall_post_impl_compat_13_sigaction13(long long res,
  3038. long long signum,
  3039. long long nsa,
  3040. long long osa);
  3041. void __sanitizer_syscall_pre_impl_getgid(void);
  3042. void __sanitizer_syscall_post_impl_getgid(long long res);
  3043. void __sanitizer_syscall_pre_impl_compat_13_sigprocmask13(long long how,
  3044. long long mask);
  3045. void __sanitizer_syscall_post_impl_compat_13_sigprocmask13(long long res,
  3046. long long how,
  3047. long long mask);
  3048. void __sanitizer_syscall_pre_impl___getlogin(long long namebuf,
  3049. long long namelen);
  3050. void __sanitizer_syscall_post_impl___getlogin(long long res, long long namebuf,
  3051. long long namelen);
  3052. void __sanitizer_syscall_pre_impl___setlogin(long long namebuf);
  3053. void __sanitizer_syscall_post_impl___setlogin(long long res, long long namebuf);
  3054. void __sanitizer_syscall_pre_impl_acct(long long path);
  3055. void __sanitizer_syscall_post_impl_acct(long long res, long long path);
  3056. void __sanitizer_syscall_pre_impl_compat_13_sigpending13(void);
  3057. void __sanitizer_syscall_post_impl_compat_13_sigpending13(long long res);
  3058. void __sanitizer_syscall_pre_impl_compat_13_sigaltstack13(long long nss,
  3059. long long oss);
  3060. void __sanitizer_syscall_post_impl_compat_13_sigaltstack13(long long res,
  3061. long long nss,
  3062. long long oss);
  3063. void __sanitizer_syscall_pre_impl_ioctl(long long fd, long long com,
  3064. long long data);
  3065. void __sanitizer_syscall_post_impl_ioctl(long long res, long long fd,
  3066. long long com, long long data);
  3067. void __sanitizer_syscall_pre_impl_compat_12_oreboot(long long opt);
  3068. void __sanitizer_syscall_post_impl_compat_12_oreboot(long long res,
  3069. long long opt);
  3070. void __sanitizer_syscall_pre_impl_revoke(long long path);
  3071. void __sanitizer_syscall_post_impl_revoke(long long res, long long path);
  3072. void __sanitizer_syscall_pre_impl_symlink(long long path, long long link);
  3073. void __sanitizer_syscall_post_impl_symlink(long long res, long long path,
  3074. long long link);
  3075. void __sanitizer_syscall_pre_impl_readlink(long long path, long long buf,
  3076. long long count);
  3077. void __sanitizer_syscall_post_impl_readlink(long long res, long long path,
  3078. long long buf, long long count);
  3079. void __sanitizer_syscall_pre_impl_execve(long long path, long long argp,
  3080. long long envp);
  3081. void __sanitizer_syscall_post_impl_execve(long long res, long long path,
  3082. long long argp, long long envp);
  3083. void __sanitizer_syscall_pre_impl_umask(long long newmask);
  3084. void __sanitizer_syscall_post_impl_umask(long long res, long long newmask);
  3085. void __sanitizer_syscall_pre_impl_chroot(long long path);
  3086. void __sanitizer_syscall_post_impl_chroot(long long res, long long path);
  3087. void __sanitizer_syscall_pre_impl_compat_43_fstat43(long long fd, long long sb);
  3088. void __sanitizer_syscall_post_impl_compat_43_fstat43(long long res,
  3089. long long fd,
  3090. long long sb);
  3091. void __sanitizer_syscall_pre_impl_compat_43_ogetkerninfo(long long op,
  3092. long long where,
  3093. long long size,
  3094. long long arg);
  3095. void __sanitizer_syscall_post_impl_compat_43_ogetkerninfo(long long res,
  3096. long long op,
  3097. long long where,
  3098. long long size,
  3099. long long arg);
  3100. void __sanitizer_syscall_pre_impl_compat_43_ogetpagesize(void);
  3101. void __sanitizer_syscall_post_impl_compat_43_ogetpagesize(long long res);
  3102. void __sanitizer_syscall_pre_impl_compat_12_msync(long long addr,
  3103. long long len);
  3104. void __sanitizer_syscall_post_impl_compat_12_msync(long long res,
  3105. long long addr,
  3106. long long len);
  3107. void __sanitizer_syscall_pre_impl_vfork(void);
  3108. void __sanitizer_syscall_post_impl_vfork(long long res);
  3109. /* syscall 67 has been skipped */
  3110. /* syscall 68 has been skipped */
  3111. /* syscall 69 has been skipped */
  3112. /* syscall 70 has been skipped */
  3113. void __sanitizer_syscall_pre_impl_compat_43_ommap(long long addr, long long len,
  3114. long long prot,
  3115. long long flags, long long fd,
  3116. long long pos);
  3117. void __sanitizer_syscall_post_impl_compat_43_ommap(
  3118. long long res, long long addr, long long len, long long prot,
  3119. long long flags, long long fd, long long pos);
  3120. void __sanitizer_syscall_pre_impl_vadvise(long long anom);
  3121. void __sanitizer_syscall_post_impl_vadvise(long long res, long long anom);
  3122. void __sanitizer_syscall_pre_impl_munmap(long long addr, long long len);
  3123. void __sanitizer_syscall_post_impl_munmap(long long res, long long addr,
  3124. long long len);
  3125. void __sanitizer_syscall_pre_impl_mprotect(long long addr, long long len,
  3126. long long prot);
  3127. void __sanitizer_syscall_post_impl_mprotect(long long res, long long addr,
  3128. long long len, long long prot);
  3129. void __sanitizer_syscall_pre_impl_madvise(long long addr, long long len,
  3130. long long behav);
  3131. void __sanitizer_syscall_post_impl_madvise(long long res, long long addr,
  3132. long long len, long long behav);
  3133. /* syscall 76 has been skipped */
  3134. /* syscall 77 has been skipped */
  3135. void __sanitizer_syscall_pre_impl_mincore(long long addr, long long len,
  3136. long long vec);
  3137. void __sanitizer_syscall_post_impl_mincore(long long res, long long addr,
  3138. long long len, long long vec);
  3139. void __sanitizer_syscall_pre_impl_getgroups(long long gidsetsize,
  3140. long long gidset);
  3141. void __sanitizer_syscall_post_impl_getgroups(long long res,
  3142. long long gidsetsize,
  3143. long long gidset);
  3144. void __sanitizer_syscall_pre_impl_setgroups(long long gidsetsize,
  3145. long long gidset);
  3146. void __sanitizer_syscall_post_impl_setgroups(long long res,
  3147. long long gidsetsize,
  3148. long long gidset);
  3149. void __sanitizer_syscall_pre_impl_getpgrp(void);
  3150. void __sanitizer_syscall_post_impl_getpgrp(long long res);
  3151. void __sanitizer_syscall_pre_impl_setpgid(long long pid, long long pgid);
  3152. void __sanitizer_syscall_post_impl_setpgid(long long res, long long pid,
  3153. long long pgid);
  3154. void __sanitizer_syscall_pre_impl_compat_50_setitimer(long long which,
  3155. long long itv,
  3156. long long oitv);
  3157. void __sanitizer_syscall_post_impl_compat_50_setitimer(long long res,
  3158. long long which,
  3159. long long itv,
  3160. long long oitv);
  3161. void __sanitizer_syscall_pre_impl_compat_43_owait(void);
  3162. void __sanitizer_syscall_post_impl_compat_43_owait(long long res);
  3163. void __sanitizer_syscall_pre_impl_compat_12_oswapon(long long name);
  3164. void __sanitizer_syscall_post_impl_compat_12_oswapon(long long res,
  3165. long long name);
  3166. void __sanitizer_syscall_pre_impl_compat_50_getitimer(long long which,
  3167. long long itv);
  3168. void __sanitizer_syscall_post_impl_compat_50_getitimer(long long res,
  3169. long long which,
  3170. long long itv);
  3171. void __sanitizer_syscall_pre_impl_compat_43_ogethostname(long long hostname,
  3172. long long len);
  3173. void __sanitizer_syscall_post_impl_compat_43_ogethostname(long long res,
  3174. long long hostname,
  3175. long long len);
  3176. void __sanitizer_syscall_pre_impl_compat_43_osethostname(long long hostname,
  3177. long long len);
  3178. void __sanitizer_syscall_post_impl_compat_43_osethostname(long long res,
  3179. long long hostname,
  3180. long long len);
  3181. void __sanitizer_syscall_pre_impl_compat_43_ogetdtablesize(void);
  3182. void __sanitizer_syscall_post_impl_compat_43_ogetdtablesize(long long res);
  3183. void __sanitizer_syscall_pre_impl_dup2(long long from, long long to);
  3184. void __sanitizer_syscall_post_impl_dup2(long long res, long long from,
  3185. long long to);
  3186. void __sanitizer_syscall_pre_impl_getrandom(long long buf, long long buflen,
  3187. long long flags);
  3188. void __sanitizer_syscall_post_impl_getrandom(long long res, long long buf,
  3189. long long buflen, long long flags);
  3190. void __sanitizer_syscall_pre_impl_fcntl(long long fd, long long cmd,
  3191. long long arg);
  3192. void __sanitizer_syscall_post_impl_fcntl(long long res, long long fd,
  3193. long long cmd, long long arg);
  3194. void __sanitizer_syscall_pre_impl_compat_50_select(long long nd, long long in,
  3195. long long ou, long long ex,
  3196. long long tv);
  3197. void __sanitizer_syscall_post_impl_compat_50_select(long long res, long long nd,
  3198. long long in, long long ou,
  3199. long long ex, long long tv);
  3200. /* syscall 94 has been skipped */
  3201. void __sanitizer_syscall_pre_impl_fsync(long long fd);
  3202. void __sanitizer_syscall_post_impl_fsync(long long res, long long fd);
  3203. void __sanitizer_syscall_pre_impl_setpriority(long long which, long long who,
  3204. long long prio);
  3205. void __sanitizer_syscall_post_impl_setpriority(long long res, long long which,
  3206. long long who, long long prio);
  3207. void __sanitizer_syscall_pre_impl_compat_30_socket(long long domain,
  3208. long long type,
  3209. long long protocol);
  3210. void __sanitizer_syscall_post_impl_compat_30_socket(long long res,
  3211. long long domain,
  3212. long long type,
  3213. long long protocol);
  3214. void __sanitizer_syscall_pre_impl_connect(long long s, long long name,
  3215. long long namelen);
  3216. void __sanitizer_syscall_post_impl_connect(long long res, long long s,
  3217. long long name, long long namelen);
  3218. void __sanitizer_syscall_pre_impl_compat_43_oaccept(long long s, long long name,
  3219. long long anamelen);
  3220. void __sanitizer_syscall_post_impl_compat_43_oaccept(long long res, long long s,
  3221. long long name,
  3222. long long anamelen);
  3223. void __sanitizer_syscall_pre_impl_getpriority(long long which, long long who);
  3224. void __sanitizer_syscall_post_impl_getpriority(long long res, long long which,
  3225. long long who);
  3226. void __sanitizer_syscall_pre_impl_compat_43_osend(long long s, long long buf,
  3227. long long len,
  3228. long long flags);
  3229. void __sanitizer_syscall_post_impl_compat_43_osend(long long res, long long s,
  3230. long long buf, long long len,
  3231. long long flags);
  3232. void __sanitizer_syscall_pre_impl_compat_43_orecv(long long s, long long buf,
  3233. long long len,
  3234. long long flags);
  3235. void __sanitizer_syscall_post_impl_compat_43_orecv(long long res, long long s,
  3236. long long buf, long long len,
  3237. long long flags);
  3238. void __sanitizer_syscall_pre_impl_compat_13_sigreturn13(long long sigcntxp);
  3239. void __sanitizer_syscall_post_impl_compat_13_sigreturn13(long long res,
  3240. long long sigcntxp);
  3241. void __sanitizer_syscall_pre_impl_bind(long long s, long long name,
  3242. long long namelen);
  3243. void __sanitizer_syscall_post_impl_bind(long long res, long long s,
  3244. long long name, long long namelen);
  3245. void __sanitizer_syscall_pre_impl_setsockopt(long long s, long long level,
  3246. long long name, long long val,
  3247. long long valsize);
  3248. void __sanitizer_syscall_post_impl_setsockopt(long long res, long long s,
  3249. long long level, long long name,
  3250. long long val, long long valsize);
  3251. void __sanitizer_syscall_pre_impl_listen(long long s, long long backlog);
  3252. void __sanitizer_syscall_post_impl_listen(long long res, long long s,
  3253. long long backlog);
  3254. /* syscall 107 has been skipped */
  3255. void __sanitizer_syscall_pre_impl_compat_43_osigvec(long long signum,
  3256. long long nsv,
  3257. long long osv);
  3258. void __sanitizer_syscall_post_impl_compat_43_osigvec(long long res,
  3259. long long signum,
  3260. long long nsv,
  3261. long long osv);
  3262. void __sanitizer_syscall_pre_impl_compat_43_osigblock(long long mask);
  3263. void __sanitizer_syscall_post_impl_compat_43_osigblock(long long res,
  3264. long long mask);
  3265. void __sanitizer_syscall_pre_impl_compat_43_osigsetmask(long long mask);
  3266. void __sanitizer_syscall_post_impl_compat_43_osigsetmask(long long res,
  3267. long long mask);
  3268. void __sanitizer_syscall_pre_impl_compat_13_sigsuspend13(long long mask);
  3269. void __sanitizer_syscall_post_impl_compat_13_sigsuspend13(long long res,
  3270. long long mask);
  3271. void __sanitizer_syscall_pre_impl_compat_43_osigstack(long long nss,
  3272. long long oss);
  3273. void __sanitizer_syscall_post_impl_compat_43_osigstack(long long res,
  3274. long long nss,
  3275. long long oss);
  3276. void __sanitizer_syscall_pre_impl_compat_43_orecvmsg(long long s, long long msg,
  3277. long long flags);
  3278. void __sanitizer_syscall_post_impl_compat_43_orecvmsg(long long res,
  3279. long long s,
  3280. long long msg,
  3281. long long flags);
  3282. void __sanitizer_syscall_pre_impl_compat_43_osendmsg(long long s, long long msg,
  3283. long long flags);
  3284. void __sanitizer_syscall_post_impl_compat_43_osendmsg(long long res,
  3285. long long s,
  3286. long long msg,
  3287. long long flags);
  3288. /* syscall 115 has been skipped */
  3289. void __sanitizer_syscall_pre_impl_compat_50_gettimeofday(long long tp,
  3290. long long tzp);
  3291. void __sanitizer_syscall_post_impl_compat_50_gettimeofday(long long res,
  3292. long long tp,
  3293. long long tzp);
  3294. void __sanitizer_syscall_pre_impl_compat_50_getrusage(long long who,
  3295. long long rusage);
  3296. void __sanitizer_syscall_post_impl_compat_50_getrusage(long long res,
  3297. long long who,
  3298. long long rusage);
  3299. void __sanitizer_syscall_pre_impl_getsockopt(long long s, long long level,
  3300. long long name, long long val,
  3301. long long avalsize);
  3302. void __sanitizer_syscall_post_impl_getsockopt(long long res, long long s,
  3303. long long level, long long name,
  3304. long long val,
  3305. long long avalsize);
  3306. /* syscall 119 has been skipped */
  3307. void __sanitizer_syscall_pre_impl_readv(long long fd, long long iovp,
  3308. long long iovcnt);
  3309. void __sanitizer_syscall_post_impl_readv(long long res, long long fd,
  3310. long long iovp, long long iovcnt);
  3311. void __sanitizer_syscall_pre_impl_writev(long long fd, long long iovp,
  3312. long long iovcnt);
  3313. void __sanitizer_syscall_post_impl_writev(long long res, long long fd,
  3314. long long iovp, long long iovcnt);
  3315. void __sanitizer_syscall_pre_impl_compat_50_settimeofday(long long tv,
  3316. long long tzp);
  3317. void __sanitizer_syscall_post_impl_compat_50_settimeofday(long long res,
  3318. long long tv,
  3319. long long tzp);
  3320. void __sanitizer_syscall_pre_impl_fchown(long long fd, long long uid,
  3321. long long gid);
  3322. void __sanitizer_syscall_post_impl_fchown(long long res, long long fd,
  3323. long long uid, long long gid);
  3324. void __sanitizer_syscall_pre_impl_fchmod(long long fd, long long mode);
  3325. void __sanitizer_syscall_post_impl_fchmod(long long res, long long fd,
  3326. long long mode);
  3327. void __sanitizer_syscall_pre_impl_compat_43_orecvfrom(
  3328. long long s, long long buf, long long len, long long flags, long long from,
  3329. long long fromlenaddr);
  3330. void __sanitizer_syscall_post_impl_compat_43_orecvfrom(
  3331. long long res, long long s, long long buf, long long len, long long flags,
  3332. long long from, long long fromlenaddr);
  3333. void __sanitizer_syscall_pre_impl_setreuid(long long ruid, long long euid);
  3334. void __sanitizer_syscall_post_impl_setreuid(long long res, long long ruid,
  3335. long long euid);
  3336. void __sanitizer_syscall_pre_impl_setregid(long long rgid, long long egid);
  3337. void __sanitizer_syscall_post_impl_setregid(long long res, long long rgid,
  3338. long long egid);
  3339. void __sanitizer_syscall_pre_impl_rename(long long from, long long to);
  3340. void __sanitizer_syscall_post_impl_rename(long long res, long long from,
  3341. long long to);
  3342. void __sanitizer_syscall_pre_impl_compat_43_otruncate(long long path,
  3343. long long length);
  3344. void __sanitizer_syscall_post_impl_compat_43_otruncate(long long res,
  3345. long long path,
  3346. long long length);
  3347. void __sanitizer_syscall_pre_impl_compat_43_oftruncate(long long fd,
  3348. long long length);
  3349. void __sanitizer_syscall_post_impl_compat_43_oftruncate(long long res,
  3350. long long fd,
  3351. long long length);
  3352. void __sanitizer_syscall_pre_impl_flock(long long fd, long long how);
  3353. void __sanitizer_syscall_post_impl_flock(long long res, long long fd,
  3354. long long how);
  3355. void __sanitizer_syscall_pre_impl_mkfifo(long long path, long long mode);
  3356. void __sanitizer_syscall_post_impl_mkfifo(long long res, long long path,
  3357. long long mode);
  3358. void __sanitizer_syscall_pre_impl_sendto(long long s, long long buf,
  3359. long long len, long long flags,
  3360. long long to, long long tolen);
  3361. void __sanitizer_syscall_post_impl_sendto(long long res, long long s,
  3362. long long buf, long long len,
  3363. long long flags, long long to,
  3364. long long tolen);
  3365. void __sanitizer_syscall_pre_impl_shutdown(long long s, long long how);
  3366. void __sanitizer_syscall_post_impl_shutdown(long long res, long long s,
  3367. long long how);
  3368. void __sanitizer_syscall_pre_impl_socketpair(long long domain, long long type,
  3369. long long protocol, long long rsv);
  3370. void __sanitizer_syscall_post_impl_socketpair(long long res, long long domain,
  3371. long long type,
  3372. long long protocol,
  3373. long long rsv);
  3374. void __sanitizer_syscall_pre_impl_mkdir(long long path, long long mode);
  3375. void __sanitizer_syscall_post_impl_mkdir(long long res, long long path,
  3376. long long mode);
  3377. void __sanitizer_syscall_pre_impl_rmdir(long long path);
  3378. void __sanitizer_syscall_post_impl_rmdir(long long res, long long path);
  3379. void __sanitizer_syscall_pre_impl_compat_50_utimes(long long path,
  3380. long long tptr);
  3381. void __sanitizer_syscall_post_impl_compat_50_utimes(long long res,
  3382. long long path,
  3383. long long tptr);
  3384. /* syscall 139 has been skipped */
  3385. void __sanitizer_syscall_pre_impl_compat_50_adjtime(long long delta,
  3386. long long olddelta);
  3387. void __sanitizer_syscall_post_impl_compat_50_adjtime(long long res,
  3388. long long delta,
  3389. long long olddelta);
  3390. void __sanitizer_syscall_pre_impl_compat_43_ogetpeername(long long fdes,
  3391. long long asa,
  3392. long long alen);
  3393. void __sanitizer_syscall_post_impl_compat_43_ogetpeername(long long res,
  3394. long long fdes,
  3395. long long asa,
  3396. long long alen);
  3397. void __sanitizer_syscall_pre_impl_compat_43_ogethostid(void);
  3398. void __sanitizer_syscall_post_impl_compat_43_ogethostid(long long res);
  3399. void __sanitizer_syscall_pre_impl_compat_43_osethostid(long long hostid);
  3400. void __sanitizer_syscall_post_impl_compat_43_osethostid(long long res,
  3401. long long hostid);
  3402. void __sanitizer_syscall_pre_impl_compat_43_ogetrlimit(long long which,
  3403. long long rlp);
  3404. void __sanitizer_syscall_post_impl_compat_43_ogetrlimit(long long res,
  3405. long long which,
  3406. long long rlp);
  3407. void __sanitizer_syscall_pre_impl_compat_43_osetrlimit(long long which,
  3408. long long rlp);
  3409. void __sanitizer_syscall_post_impl_compat_43_osetrlimit(long long res,
  3410. long long which,
  3411. long long rlp);
  3412. void __sanitizer_syscall_pre_impl_compat_43_okillpg(long long pgid,
  3413. long long signum);
  3414. void __sanitizer_syscall_post_impl_compat_43_okillpg(long long res,
  3415. long long pgid,
  3416. long long signum);
  3417. void __sanitizer_syscall_pre_impl_setsid(void);
  3418. void __sanitizer_syscall_post_impl_setsid(long long res);
  3419. void __sanitizer_syscall_pre_impl_compat_50_quotactl(long long path,
  3420. long long cmd,
  3421. long long uid,
  3422. long long arg);
  3423. void __sanitizer_syscall_post_impl_compat_50_quotactl(
  3424. long long res, long long path, long long cmd, long long uid, long long arg);
  3425. void __sanitizer_syscall_pre_impl_compat_43_oquota(void);
  3426. void __sanitizer_syscall_post_impl_compat_43_oquota(long long res);
  3427. void __sanitizer_syscall_pre_impl_compat_43_ogetsockname(long long fdec,
  3428. long long asa,
  3429. long long alen);
  3430. void __sanitizer_syscall_post_impl_compat_43_ogetsockname(long long res,
  3431. long long fdec,
  3432. long long asa,
  3433. long long alen);
  3434. /* syscall 151 has been skipped */
  3435. /* syscall 152 has been skipped */
  3436. /* syscall 153 has been skipped */
  3437. /* syscall 154 has been skipped */
  3438. void __sanitizer_syscall_pre_impl_nfssvc(long long flag, long long argp);
  3439. void __sanitizer_syscall_post_impl_nfssvc(long long res, long long flag,
  3440. long long argp);
  3441. void __sanitizer_syscall_pre_impl_compat_43_ogetdirentries(long long fd,
  3442. long long buf,
  3443. long long count,
  3444. long long basep);
  3445. void __sanitizer_syscall_post_impl_compat_43_ogetdirentries(long long res,
  3446. long long fd,
  3447. long long buf,
  3448. long long count,
  3449. long long basep);
  3450. void __sanitizer_syscall_pre_impl_compat_20_statfs(long long path,
  3451. long long buf);
  3452. void __sanitizer_syscall_post_impl_compat_20_statfs(long long res,
  3453. long long path,
  3454. long long buf);
  3455. void __sanitizer_syscall_pre_impl_compat_20_fstatfs(long long fd,
  3456. long long buf);
  3457. void __sanitizer_syscall_post_impl_compat_20_fstatfs(long long res,
  3458. long long fd,
  3459. long long buf);
  3460. /* syscall 159 has been skipped */
  3461. /* syscall 160 has been skipped */
  3462. void __sanitizer_syscall_pre_impl_compat_30_getfh(long long fname,
  3463. long long fhp);
  3464. void __sanitizer_syscall_post_impl_compat_30_getfh(long long res,
  3465. long long fname,
  3466. long long fhp);
  3467. void __sanitizer_syscall_pre_impl_compat_09_ogetdomainname(long long domainname,
  3468. long long len);
  3469. void __sanitizer_syscall_post_impl_compat_09_ogetdomainname(
  3470. long long res, long long domainname, long long len);
  3471. void __sanitizer_syscall_pre_impl_compat_09_osetdomainname(long long domainname,
  3472. long long len);
  3473. void __sanitizer_syscall_post_impl_compat_09_osetdomainname(
  3474. long long res, long long domainname, long long len);
  3475. void __sanitizer_syscall_pre_impl_compat_09_ouname(long long name);
  3476. void __sanitizer_syscall_post_impl_compat_09_ouname(long long res,
  3477. long long name);
  3478. void __sanitizer_syscall_pre_impl_sysarch(long long op, long long parms);
  3479. void __sanitizer_syscall_post_impl_sysarch(long long res, long long op,
  3480. long long parms);
  3481. void __sanitizer_syscall_pre_impl___futex(long long uaddr, long long op,
  3482. long long val, long long timeout,
  3483. long long uaddr2, long long val2,
  3484. long long val3);
  3485. void __sanitizer_syscall_post_impl___futex(long long res, long long uaddr,
  3486. long long op, long long val,
  3487. long long timeout, long long uaddr2,
  3488. long long val2, long long val3);
  3489. void __sanitizer_syscall_pre_impl___futex_set_robust_list(long long head,
  3490. long long len);
  3491. void __sanitizer_syscall_post_impl___futex_set_robust_list(long long res,
  3492. long long head,
  3493. long long len);
  3494. void __sanitizer_syscall_pre_impl___futex_get_robust_list(long long lwpid,
  3495. long long headp,
  3496. long long lenp);
  3497. void __sanitizer_syscall_post_impl___futex_get_robust_list(long long res,
  3498. long long lwpid,
  3499. long long headp,
  3500. long long lenp);
  3501. #if !defined(_LP64)
  3502. void __sanitizer_syscall_pre_impl_compat_10_osemsys(long long which,
  3503. long long a2, long long a3,
  3504. long long a4, long long a5);
  3505. void __sanitizer_syscall_post_impl_compat_10_osemsys(long long res,
  3506. long long which,
  3507. long long a2, long long a3,
  3508. long long a4,
  3509. long long a5);
  3510. #else
  3511. /* syscall 169 has been skipped */
  3512. #endif
  3513. #if !defined(_LP64)
  3514. void __sanitizer_syscall_pre_impl_compat_10_omsgsys(long long which,
  3515. long long a2, long long a3,
  3516. long long a4, long long a5,
  3517. long long a6);
  3518. void __sanitizer_syscall_post_impl_compat_10_omsgsys(long long res,
  3519. long long which,
  3520. long long a2, long long a3,
  3521. long long a4, long long a5,
  3522. long long a6);
  3523. #else
  3524. /* syscall 170 has been skipped */
  3525. #endif
  3526. #if !defined(_LP64)
  3527. void __sanitizer_syscall_pre_impl_compat_10_oshmsys(long long which,
  3528. long long a2, long long a3,
  3529. long long a4);
  3530. void __sanitizer_syscall_post_impl_compat_10_oshmsys(long long res,
  3531. long long which,
  3532. long long a2, long long a3,
  3533. long long a4);
  3534. #else
  3535. /* syscall 171 has been skipped */
  3536. #endif
  3537. /* syscall 172 has been skipped */
  3538. void __sanitizer_syscall_pre_impl_pread(long long fd, long long buf,
  3539. long long nbyte, long long PAD,
  3540. long long offset);
  3541. void __sanitizer_syscall_post_impl_pread(long long res, long long fd,
  3542. long long buf, long long nbyte,
  3543. long long PAD, long long offset);
  3544. void __sanitizer_syscall_pre_impl_pwrite(long long fd, long long buf,
  3545. long long nbyte, long long PAD,
  3546. long long offset);
  3547. void __sanitizer_syscall_post_impl_pwrite(long long res, long long fd,
  3548. long long buf, long long nbyte,
  3549. long long PAD, long long offset);
  3550. void __sanitizer_syscall_pre_impl_compat_30_ntp_gettime(long long ntvp);
  3551. void __sanitizer_syscall_post_impl_compat_30_ntp_gettime(long long res,
  3552. long long ntvp);
  3553. #if defined(NTP) || !defined(_KERNEL_OPT)
  3554. void __sanitizer_syscall_pre_impl_ntp_adjtime(long long tp);
  3555. void __sanitizer_syscall_post_impl_ntp_adjtime(long long res, long long tp);
  3556. #else
  3557. /* syscall 176 has been skipped */
  3558. #endif
  3559. /* syscall 177 has been skipped */
  3560. /* syscall 178 has been skipped */
  3561. /* syscall 179 has been skipped */
  3562. /* syscall 180 has been skipped */
  3563. void __sanitizer_syscall_pre_impl_setgid(long long gid);
  3564. void __sanitizer_syscall_post_impl_setgid(long long res, long long gid);
  3565. void __sanitizer_syscall_pre_impl_setegid(long long egid);
  3566. void __sanitizer_syscall_post_impl_setegid(long long res, long long egid);
  3567. void __sanitizer_syscall_pre_impl_seteuid(long long euid);
  3568. void __sanitizer_syscall_post_impl_seteuid(long long res, long long euid);
  3569. void __sanitizer_syscall_pre_impl_lfs_bmapv(long long fsidp, long long blkiov,
  3570. long long blkcnt);
  3571. void __sanitizer_syscall_post_impl_lfs_bmapv(long long res, long long fsidp,
  3572. long long blkiov,
  3573. long long blkcnt);
  3574. void __sanitizer_syscall_pre_impl_lfs_markv(long long fsidp, long long blkiov,
  3575. long long blkcnt);
  3576. void __sanitizer_syscall_post_impl_lfs_markv(long long res, long long fsidp,
  3577. long long blkiov,
  3578. long long blkcnt);
  3579. void __sanitizer_syscall_pre_impl_lfs_segclean(long long fsidp,
  3580. long long segment);
  3581. void __sanitizer_syscall_post_impl_lfs_segclean(long long res, long long fsidp,
  3582. long long segment);
  3583. void __sanitizer_syscall_pre_impl_compat_50_lfs_segwait(long long fsidp,
  3584. long long tv);
  3585. void __sanitizer_syscall_post_impl_compat_50_lfs_segwait(long long res,
  3586. long long fsidp,
  3587. long long tv);
  3588. void __sanitizer_syscall_pre_impl_compat_12_stat12(long long path,
  3589. long long ub);
  3590. void __sanitizer_syscall_post_impl_compat_12_stat12(long long res,
  3591. long long path,
  3592. long long ub);
  3593. void __sanitizer_syscall_pre_impl_compat_12_fstat12(long long fd, long long sb);
  3594. void __sanitizer_syscall_post_impl_compat_12_fstat12(long long res,
  3595. long long fd,
  3596. long long sb);
  3597. void __sanitizer_syscall_pre_impl_compat_12_lstat12(long long path,
  3598. long long ub);
  3599. void __sanitizer_syscall_post_impl_compat_12_lstat12(long long res,
  3600. long long path,
  3601. long long ub);
  3602. void __sanitizer_syscall_pre_impl_pathconf(long long path, long long name);
  3603. void __sanitizer_syscall_post_impl_pathconf(long long res, long long path,
  3604. long long name);
  3605. void __sanitizer_syscall_pre_impl_fpathconf(long long fd, long long name);
  3606. void __sanitizer_syscall_post_impl_fpathconf(long long res, long long fd,
  3607. long long name);
  3608. void __sanitizer_syscall_pre_impl_getsockopt2(long long s, long long level,
  3609. long long name, long long val,
  3610. long long avalsize);
  3611. void __sanitizer_syscall_post_impl_getsockopt2(long long res, long long s,
  3612. long long level, long long name,
  3613. long long val,
  3614. long long avalsize);
  3615. void __sanitizer_syscall_pre_impl_getrlimit(long long which, long long rlp);
  3616. void __sanitizer_syscall_post_impl_getrlimit(long long res, long long which,
  3617. long long rlp);
  3618. void __sanitizer_syscall_pre_impl_setrlimit(long long which, long long rlp);
  3619. void __sanitizer_syscall_post_impl_setrlimit(long long res, long long which,
  3620. long long rlp);
  3621. void __sanitizer_syscall_pre_impl_compat_12_getdirentries(long long fd,
  3622. long long buf,
  3623. long long count,
  3624. long long basep);
  3625. void __sanitizer_syscall_post_impl_compat_12_getdirentries(long long res,
  3626. long long fd,
  3627. long long buf,
  3628. long long count,
  3629. long long basep);
  3630. void __sanitizer_syscall_pre_impl_mmap(long long addr, long long len,
  3631. long long prot, long long flags,
  3632. long long fd, long long PAD,
  3633. long long pos);
  3634. void __sanitizer_syscall_post_impl_mmap(long long res, long long addr,
  3635. long long len, long long prot,
  3636. long long flags, long long fd,
  3637. long long PAD, long long pos);
  3638. void __sanitizer_syscall_pre_impl___syscall(long long code, long long arg0,
  3639. long long arg1, long long arg2,
  3640. long long arg3, long long arg4,
  3641. long long arg5, long long arg6,
  3642. long long arg7);
  3643. void __sanitizer_syscall_post_impl___syscall(long long res, long long code,
  3644. long long arg0, long long arg1,
  3645. long long arg2, long long arg3,
  3646. long long arg4, long long arg5,
  3647. long long arg6, long long arg7);
  3648. void __sanitizer_syscall_pre_impl_lseek(long long fd, long long PAD,
  3649. long long offset, long long whence);
  3650. void __sanitizer_syscall_post_impl_lseek(long long res, long long fd,
  3651. long long PAD, long long offset,
  3652. long long whence);
  3653. void __sanitizer_syscall_pre_impl_truncate(long long path, long long PAD,
  3654. long long length);
  3655. void __sanitizer_syscall_post_impl_truncate(long long res, long long path,
  3656. long long PAD, long long length);
  3657. void __sanitizer_syscall_pre_impl_ftruncate(long long fd, long long PAD,
  3658. long long length);
  3659. void __sanitizer_syscall_post_impl_ftruncate(long long res, long long fd,
  3660. long long PAD, long long length);
  3661. void __sanitizer_syscall_pre_impl___sysctl(long long name, long long namelen,
  3662. long long oldv, long long oldlenp,
  3663. long long newv, long long newlen);
  3664. void __sanitizer_syscall_post_impl___sysctl(long long res, long long name,
  3665. long long namelen, long long oldv,
  3666. long long oldlenp, long long newv,
  3667. long long newlen);
  3668. void __sanitizer_syscall_pre_impl_mlock(long long addr, long long len);
  3669. void __sanitizer_syscall_post_impl_mlock(long long res, long long addr,
  3670. long long len);
  3671. void __sanitizer_syscall_pre_impl_munlock(long long addr, long long len);
  3672. void __sanitizer_syscall_post_impl_munlock(long long res, long long addr,
  3673. long long len);
  3674. void __sanitizer_syscall_pre_impl_undelete(long long path);
  3675. void __sanitizer_syscall_post_impl_undelete(long long res, long long path);
  3676. void __sanitizer_syscall_pre_impl_compat_50_futimes(long long fd,
  3677. long long tptr);
  3678. void __sanitizer_syscall_post_impl_compat_50_futimes(long long res,
  3679. long long fd,
  3680. long long tptr);
  3681. void __sanitizer_syscall_pre_impl_getpgid(long long pid);
  3682. void __sanitizer_syscall_post_impl_getpgid(long long res, long long pid);
  3683. void __sanitizer_syscall_pre_impl_reboot(long long opt, long long bootstr);
  3684. void __sanitizer_syscall_post_impl_reboot(long long res, long long opt,
  3685. long long bootstr);
  3686. void __sanitizer_syscall_pre_impl_poll(long long fds, long long nfds,
  3687. long long timeout);
  3688. void __sanitizer_syscall_post_impl_poll(long long res, long long fds,
  3689. long long nfds, long long timeout);
  3690. void __sanitizer_syscall_pre_impl_afssys(long long id, long long a1,
  3691. long long a2, long long a3,
  3692. long long a4, long long a5,
  3693. long long a6);
  3694. void __sanitizer_syscall_post_impl_afssys(long long res, long long id,
  3695. long long a1, long long a2,
  3696. long long a3, long long a4,
  3697. long long a5, long long a6);
  3698. /* syscall 211 has been skipped */
  3699. /* syscall 212 has been skipped */
  3700. /* syscall 213 has been skipped */
  3701. /* syscall 214 has been skipped */
  3702. /* syscall 215 has been skipped */
  3703. /* syscall 216 has been skipped */
  3704. /* syscall 217 has been skipped */
  3705. /* syscall 218 has been skipped */
  3706. /* syscall 219 has been skipped */
  3707. void __sanitizer_syscall_pre_impl_compat_14___semctl(long long semid,
  3708. long long semnum,
  3709. long long cmd,
  3710. long long arg);
  3711. void __sanitizer_syscall_post_impl_compat_14___semctl(long long res,
  3712. long long semid,
  3713. long long semnum,
  3714. long long cmd,
  3715. long long arg);
  3716. void __sanitizer_syscall_pre_impl_semget(long long key, long long nsems,
  3717. long long semflg);
  3718. void __sanitizer_syscall_post_impl_semget(long long res, long long key,
  3719. long long nsems, long long semflg);
  3720. void __sanitizer_syscall_pre_impl_semop(long long semid, long long sops,
  3721. long long nsops);
  3722. void __sanitizer_syscall_post_impl_semop(long long res, long long semid,
  3723. long long sops, long long nsops);
  3724. void __sanitizer_syscall_pre_impl_semconfig(long long flag);
  3725. void __sanitizer_syscall_post_impl_semconfig(long long res, long long flag);
  3726. void __sanitizer_syscall_pre_impl_compat_14_msgctl(long long msqid,
  3727. long long cmd,
  3728. long long buf);
  3729. void __sanitizer_syscall_post_impl_compat_14_msgctl(long long res,
  3730. long long msqid,
  3731. long long cmd,
  3732. long long buf);
  3733. void __sanitizer_syscall_pre_impl_msgget(long long key, long long msgflg);
  3734. void __sanitizer_syscall_post_impl_msgget(long long res, long long key,
  3735. long long msgflg);
  3736. void __sanitizer_syscall_pre_impl_msgsnd(long long msqid, long long msgp,
  3737. long long msgsz, long long msgflg);
  3738. void __sanitizer_syscall_post_impl_msgsnd(long long res, long long msqid,
  3739. long long msgp, long long msgsz,
  3740. long long msgflg);
  3741. void __sanitizer_syscall_pre_impl_msgrcv(long long msqid, long long msgp,
  3742. long long msgsz, long long msgtyp,
  3743. long long msgflg);
  3744. void __sanitizer_syscall_post_impl_msgrcv(long long res, long long msqid,
  3745. long long msgp, long long msgsz,
  3746. long long msgtyp, long long msgflg);
  3747. void __sanitizer_syscall_pre_impl_shmat(long long shmid, long long shmaddr,
  3748. long long shmflg);
  3749. void __sanitizer_syscall_post_impl_shmat(long long res, long long shmid,
  3750. long long shmaddr, long long shmflg);
  3751. void __sanitizer_syscall_pre_impl_compat_14_shmctl(long long shmid,
  3752. long long cmd,
  3753. long long buf);
  3754. void __sanitizer_syscall_post_impl_compat_14_shmctl(long long res,
  3755. long long shmid,
  3756. long long cmd,
  3757. long long buf);
  3758. void __sanitizer_syscall_pre_impl_shmdt(long long shmaddr);
  3759. void __sanitizer_syscall_post_impl_shmdt(long long res, long long shmaddr);
  3760. void __sanitizer_syscall_pre_impl_shmget(long long key, long long size,
  3761. long long shmflg);
  3762. void __sanitizer_syscall_post_impl_shmget(long long res, long long key,
  3763. long long size, long long shmflg);
  3764. void __sanitizer_syscall_pre_impl_compat_50_clock_gettime(long long clock_id,
  3765. long long tp);
  3766. void __sanitizer_syscall_post_impl_compat_50_clock_gettime(long long res,
  3767. long long clock_id,
  3768. long long tp);
  3769. void __sanitizer_syscall_pre_impl_compat_50_clock_settime(long long clock_id,
  3770. long long tp);
  3771. void __sanitizer_syscall_post_impl_compat_50_clock_settime(long long res,
  3772. long long clock_id,
  3773. long long tp);
  3774. void __sanitizer_syscall_pre_impl_compat_50_clock_getres(long long clock_id,
  3775. long long tp);
  3776. void __sanitizer_syscall_post_impl_compat_50_clock_getres(long long res,
  3777. long long clock_id,
  3778. long long tp);
  3779. void __sanitizer_syscall_pre_impl_timer_create(long long clock_id,
  3780. long long evp,
  3781. long long timerid);
  3782. void __sanitizer_syscall_post_impl_timer_create(long long res,
  3783. long long clock_id,
  3784. long long evp,
  3785. long long timerid);
  3786. void __sanitizer_syscall_pre_impl_timer_delete(long long timerid);
  3787. void __sanitizer_syscall_post_impl_timer_delete(long long res,
  3788. long long timerid);
  3789. void __sanitizer_syscall_pre_impl_compat_50_timer_settime(long long timerid,
  3790. long long flags,
  3791. long long value,
  3792. long long ovalue);
  3793. void __sanitizer_syscall_post_impl_compat_50_timer_settime(long long res,
  3794. long long timerid,
  3795. long long flags,
  3796. long long value,
  3797. long long ovalue);
  3798. void __sanitizer_syscall_pre_impl_compat_50_timer_gettime(long long timerid,
  3799. long long value);
  3800. void __sanitizer_syscall_post_impl_compat_50_timer_gettime(long long res,
  3801. long long timerid,
  3802. long long value);
  3803. void __sanitizer_syscall_pre_impl_timer_getoverrun(long long timerid);
  3804. void __sanitizer_syscall_post_impl_timer_getoverrun(long long res,
  3805. long long timerid);
  3806. void __sanitizer_syscall_pre_impl_compat_50_nanosleep(long long rqtp,
  3807. long long rmtp);
  3808. void __sanitizer_syscall_post_impl_compat_50_nanosleep(long long res,
  3809. long long rqtp,
  3810. long long rmtp);
  3811. void __sanitizer_syscall_pre_impl_fdatasync(long long fd);
  3812. void __sanitizer_syscall_post_impl_fdatasync(long long res, long long fd);
  3813. void __sanitizer_syscall_pre_impl_mlockall(long long flags);
  3814. void __sanitizer_syscall_post_impl_mlockall(long long res, long long flags);
  3815. void __sanitizer_syscall_pre_impl_munlockall(void);
  3816. void __sanitizer_syscall_post_impl_munlockall(long long res);
  3817. void __sanitizer_syscall_pre_impl_compat_50___sigtimedwait(long long set,
  3818. long long info,
  3819. long long timeout);
  3820. void __sanitizer_syscall_post_impl_compat_50___sigtimedwait(long long res,
  3821. long long set,
  3822. long long info,
  3823. long long timeout);
  3824. void __sanitizer_syscall_pre_impl_sigqueueinfo(long long pid, long long info);
  3825. void __sanitizer_syscall_post_impl_sigqueueinfo(long long res, long long pid,
  3826. long long info);
  3827. void __sanitizer_syscall_pre_impl_modctl(long long cmd, long long arg);
  3828. void __sanitizer_syscall_post_impl_modctl(long long res, long long cmd,
  3829. long long arg);
  3830. void __sanitizer_syscall_pre_impl__ksem_init(long long value, long long idp);
  3831. void __sanitizer_syscall_post_impl__ksem_init(long long res, long long value,
  3832. long long idp);
  3833. void __sanitizer_syscall_pre_impl__ksem_open(long long name, long long oflag,
  3834. long long mode, long long value,
  3835. long long idp);
  3836. void __sanitizer_syscall_post_impl__ksem_open(long long res, long long name,
  3837. long long oflag, long long mode,
  3838. long long value, long long idp);
  3839. void __sanitizer_syscall_pre_impl__ksem_unlink(long long name);
  3840. void __sanitizer_syscall_post_impl__ksem_unlink(long long res, long long name);
  3841. void __sanitizer_syscall_pre_impl__ksem_close(long long id);
  3842. void __sanitizer_syscall_post_impl__ksem_close(long long res, long long id);
  3843. void __sanitizer_syscall_pre_impl__ksem_post(long long id);
  3844. void __sanitizer_syscall_post_impl__ksem_post(long long res, long long id);
  3845. void __sanitizer_syscall_pre_impl__ksem_wait(long long id);
  3846. void __sanitizer_syscall_post_impl__ksem_wait(long long res, long long id);
  3847. void __sanitizer_syscall_pre_impl__ksem_trywait(long long id);
  3848. void __sanitizer_syscall_post_impl__ksem_trywait(long long res, long long id);
  3849. void __sanitizer_syscall_pre_impl__ksem_getvalue(long long id, long long value);
  3850. void __sanitizer_syscall_post_impl__ksem_getvalue(long long res, long long id,
  3851. long long value);
  3852. void __sanitizer_syscall_pre_impl__ksem_destroy(long long id);
  3853. void __sanitizer_syscall_post_impl__ksem_destroy(long long res, long long id);
  3854. void __sanitizer_syscall_pre_impl__ksem_timedwait(long long id,
  3855. long long abstime);
  3856. void __sanitizer_syscall_post_impl__ksem_timedwait(long long res, long long id,
  3857. long long abstime);
  3858. void __sanitizer_syscall_pre_impl_mq_open(long long name, long long oflag,
  3859. long long mode, long long attr);
  3860. void __sanitizer_syscall_post_impl_mq_open(long long res, long long name,
  3861. long long oflag, long long mode,
  3862. long long attr);
  3863. void __sanitizer_syscall_pre_impl_mq_close(long long mqdes);
  3864. void __sanitizer_syscall_post_impl_mq_close(long long res, long long mqdes);
  3865. void __sanitizer_syscall_pre_impl_mq_unlink(long long name);
  3866. void __sanitizer_syscall_post_impl_mq_unlink(long long res, long long name);
  3867. void __sanitizer_syscall_pre_impl_mq_getattr(long long mqdes, long long mqstat);
  3868. void __sanitizer_syscall_post_impl_mq_getattr(long long res, long long mqdes,
  3869. long long mqstat);
  3870. void __sanitizer_syscall_pre_impl_mq_setattr(long long mqdes, long long mqstat,
  3871. long long omqstat);
  3872. void __sanitizer_syscall_post_impl_mq_setattr(long long res, long long mqdes,
  3873. long long mqstat,
  3874. long long omqstat);
  3875. void __sanitizer_syscall_pre_impl_mq_notify(long long mqdes,
  3876. long long notification);
  3877. void __sanitizer_syscall_post_impl_mq_notify(long long res, long long mqdes,
  3878. long long notification);
  3879. void __sanitizer_syscall_pre_impl_mq_send(long long mqdes, long long msg_ptr,
  3880. long long msg_len,
  3881. long long msg_prio);
  3882. void __sanitizer_syscall_post_impl_mq_send(long long res, long long mqdes,
  3883. long long msg_ptr, long long msg_len,
  3884. long long msg_prio);
  3885. void __sanitizer_syscall_pre_impl_mq_receive(long long mqdes, long long msg_ptr,
  3886. long long msg_len,
  3887. long long msg_prio);
  3888. void __sanitizer_syscall_post_impl_mq_receive(long long res, long long mqdes,
  3889. long long msg_ptr,
  3890. long long msg_len,
  3891. long long msg_prio);
  3892. void __sanitizer_syscall_pre_impl_compat_50_mq_timedsend(long long mqdes,
  3893. long long msg_ptr,
  3894. long long msg_len,
  3895. long long msg_prio,
  3896. long long abs_timeout);
  3897. void __sanitizer_syscall_post_impl_compat_50_mq_timedsend(
  3898. long long res, long long mqdes, long long msg_ptr, long long msg_len,
  3899. long long msg_prio, long long abs_timeout);
  3900. void __sanitizer_syscall_pre_impl_compat_50_mq_timedreceive(
  3901. long long mqdes, long long msg_ptr, long long msg_len, long long msg_prio,
  3902. long long abs_timeout);
  3903. void __sanitizer_syscall_post_impl_compat_50_mq_timedreceive(
  3904. long long res, long long mqdes, long long msg_ptr, long long msg_len,
  3905. long long msg_prio, long long abs_timeout);
  3906. /* syscall 267 has been skipped */
  3907. /* syscall 268 has been skipped */
  3908. /* syscall 269 has been skipped */
  3909. void __sanitizer_syscall_pre_impl___posix_rename(long long from, long long to);
  3910. void __sanitizer_syscall_post_impl___posix_rename(long long res, long long from,
  3911. long long to);
  3912. void __sanitizer_syscall_pre_impl_swapctl(long long cmd, long long arg,
  3913. long long misc);
  3914. void __sanitizer_syscall_post_impl_swapctl(long long res, long long cmd,
  3915. long long arg, long long misc);
  3916. void __sanitizer_syscall_pre_impl_compat_30_getdents(long long fd,
  3917. long long buf,
  3918. long long count);
  3919. void __sanitizer_syscall_post_impl_compat_30_getdents(long long res,
  3920. long long fd,
  3921. long long buf,
  3922. long long count);
  3923. void __sanitizer_syscall_pre_impl_minherit(long long addr, long long len,
  3924. long long inherit);
  3925. void __sanitizer_syscall_post_impl_minherit(long long res, long long addr,
  3926. long long len, long long inherit);
  3927. void __sanitizer_syscall_pre_impl_lchmod(long long path, long long mode);
  3928. void __sanitizer_syscall_post_impl_lchmod(long long res, long long path,
  3929. long long mode);
  3930. void __sanitizer_syscall_pre_impl_lchown(long long path, long long uid,
  3931. long long gid);
  3932. void __sanitizer_syscall_post_impl_lchown(long long res, long long path,
  3933. long long uid, long long gid);
  3934. void __sanitizer_syscall_pre_impl_compat_50_lutimes(long long path,
  3935. long long tptr);
  3936. void __sanitizer_syscall_post_impl_compat_50_lutimes(long long res,
  3937. long long path,
  3938. long long tptr);
  3939. void __sanitizer_syscall_pre_impl___msync13(long long addr, long long len,
  3940. long long flags);
  3941. void __sanitizer_syscall_post_impl___msync13(long long res, long long addr,
  3942. long long len, long long flags);
  3943. void __sanitizer_syscall_pre_impl_compat_30___stat13(long long path,
  3944. long long ub);
  3945. void __sanitizer_syscall_post_impl_compat_30___stat13(long long res,
  3946. long long path,
  3947. long long ub);
  3948. void __sanitizer_syscall_pre_impl_compat_30___fstat13(long long fd,
  3949. long long sb);
  3950. void __sanitizer_syscall_post_impl_compat_30___fstat13(long long res,
  3951. long long fd,
  3952. long long sb);
  3953. void __sanitizer_syscall_pre_impl_compat_30___lstat13(long long path,
  3954. long long ub);
  3955. void __sanitizer_syscall_post_impl_compat_30___lstat13(long long res,
  3956. long long path,
  3957. long long ub);
  3958. void __sanitizer_syscall_pre_impl___sigaltstack14(long long nss, long long oss);
  3959. void __sanitizer_syscall_post_impl___sigaltstack14(long long res, long long nss,
  3960. long long oss);
  3961. void __sanitizer_syscall_pre_impl___vfork14(void);
  3962. void __sanitizer_syscall_post_impl___vfork14(long long res);
  3963. void __sanitizer_syscall_pre_impl___posix_chown(long long path, long long uid,
  3964. long long gid);
  3965. void __sanitizer_syscall_post_impl___posix_chown(long long res, long long path,
  3966. long long uid, long long gid);
  3967. void __sanitizer_syscall_pre_impl___posix_fchown(long long fd, long long uid,
  3968. long long gid);
  3969. void __sanitizer_syscall_post_impl___posix_fchown(long long res, long long fd,
  3970. long long uid, long long gid);
  3971. void __sanitizer_syscall_pre_impl___posix_lchown(long long path, long long uid,
  3972. long long gid);
  3973. void __sanitizer_syscall_post_impl___posix_lchown(long long res, long long path,
  3974. long long uid, long long gid);
  3975. void __sanitizer_syscall_pre_impl_getsid(long long pid);
  3976. void __sanitizer_syscall_post_impl_getsid(long long res, long long pid);
  3977. void __sanitizer_syscall_pre_impl___clone(long long flags, long long stack);
  3978. void __sanitizer_syscall_post_impl___clone(long long res, long long flags,
  3979. long long stack);
  3980. void __sanitizer_syscall_pre_impl_fktrace(long long fd, long long ops,
  3981. long long facs, long long pid);
  3982. void __sanitizer_syscall_post_impl_fktrace(long long res, long long fd,
  3983. long long ops, long long facs,
  3984. long long pid);
  3985. void __sanitizer_syscall_pre_impl_preadv(long long fd, long long iovp,
  3986. long long iovcnt, long long PAD,
  3987. long long offset);
  3988. void __sanitizer_syscall_post_impl_preadv(long long res, long long fd,
  3989. long long iovp, long long iovcnt,
  3990. long long PAD, long long offset);
  3991. void __sanitizer_syscall_pre_impl_pwritev(long long fd, long long iovp,
  3992. long long iovcnt, long long PAD,
  3993. long long offset);
  3994. void __sanitizer_syscall_post_impl_pwritev(long long res, long long fd,
  3995. long long iovp, long long iovcnt,
  3996. long long PAD, long long offset);
  3997. void __sanitizer_syscall_pre_impl_compat_16___sigaction14(long long signum,
  3998. long long nsa,
  3999. long long osa);
  4000. void __sanitizer_syscall_post_impl_compat_16___sigaction14(long long res,
  4001. long long signum,
  4002. long long nsa,
  4003. long long osa);
  4004. void __sanitizer_syscall_pre_impl___sigpending14(long long set);
  4005. void __sanitizer_syscall_post_impl___sigpending14(long long res, long long set);
  4006. void __sanitizer_syscall_pre_impl___sigprocmask14(long long how, long long set,
  4007. long long oset);
  4008. void __sanitizer_syscall_post_impl___sigprocmask14(long long res, long long how,
  4009. long long set,
  4010. long long oset);
  4011. void __sanitizer_syscall_pre_impl___sigsuspend14(long long set);
  4012. void __sanitizer_syscall_post_impl___sigsuspend14(long long res, long long set);
  4013. void __sanitizer_syscall_pre_impl_compat_16___sigreturn14(long long sigcntxp);
  4014. void __sanitizer_syscall_post_impl_compat_16___sigreturn14(long long res,
  4015. long long sigcntxp);
  4016. void __sanitizer_syscall_pre_impl___getcwd(long long bufp, long long length);
  4017. void __sanitizer_syscall_post_impl___getcwd(long long res, long long bufp,
  4018. long long length);
  4019. void __sanitizer_syscall_pre_impl_fchroot(long long fd);
  4020. void __sanitizer_syscall_post_impl_fchroot(long long res, long long fd);
  4021. void __sanitizer_syscall_pre_impl_compat_30_fhopen(long long fhp,
  4022. long long flags);
  4023. void __sanitizer_syscall_post_impl_compat_30_fhopen(long long res,
  4024. long long fhp,
  4025. long long flags);
  4026. void __sanitizer_syscall_pre_impl_compat_30_fhstat(long long fhp, long long sb);
  4027. void __sanitizer_syscall_post_impl_compat_30_fhstat(long long res,
  4028. long long fhp,
  4029. long long sb);
  4030. void __sanitizer_syscall_pre_impl_compat_20_fhstatfs(long long fhp,
  4031. long long buf);
  4032. void __sanitizer_syscall_post_impl_compat_20_fhstatfs(long long res,
  4033. long long fhp,
  4034. long long buf);
  4035. void __sanitizer_syscall_pre_impl_compat_50_____semctl13(long long semid,
  4036. long long semnum,
  4037. long long cmd,
  4038. long long arg);
  4039. void __sanitizer_syscall_post_impl_compat_50_____semctl13(long long res,
  4040. long long semid,
  4041. long long semnum,
  4042. long long cmd,
  4043. long long arg);
  4044. void __sanitizer_syscall_pre_impl_compat_50___msgctl13(long long msqid,
  4045. long long cmd,
  4046. long long buf);
  4047. void __sanitizer_syscall_post_impl_compat_50___msgctl13(long long res,
  4048. long long msqid,
  4049. long long cmd,
  4050. long long buf);
  4051. void __sanitizer_syscall_pre_impl_compat_50___shmctl13(long long shmid,
  4052. long long cmd,
  4053. long long buf);
  4054. void __sanitizer_syscall_post_impl_compat_50___shmctl13(long long res,
  4055. long long shmid,
  4056. long long cmd,
  4057. long long buf);
  4058. void __sanitizer_syscall_pre_impl_lchflags(long long path, long long flags);
  4059. void __sanitizer_syscall_post_impl_lchflags(long long res, long long path,
  4060. long long flags);
  4061. void __sanitizer_syscall_pre_impl_issetugid(void);
  4062. void __sanitizer_syscall_post_impl_issetugid(long long res);
  4063. void __sanitizer_syscall_pre_impl_utrace(long long label, long long addr,
  4064. long long len);
  4065. void __sanitizer_syscall_post_impl_utrace(long long res, long long label,
  4066. long long addr, long long len);
  4067. void __sanitizer_syscall_pre_impl_getcontext(long long ucp);
  4068. void __sanitizer_syscall_post_impl_getcontext(long long res, long long ucp);
  4069. void __sanitizer_syscall_pre_impl_setcontext(long long ucp);
  4070. void __sanitizer_syscall_post_impl_setcontext(long long res, long long ucp);
  4071. void __sanitizer_syscall_pre_impl__lwp_create(long long ucp, long long flags,
  4072. long long new_lwp);
  4073. void __sanitizer_syscall_post_impl__lwp_create(long long res, long long ucp,
  4074. long long flags,
  4075. long long new_lwp);
  4076. void __sanitizer_syscall_pre_impl__lwp_exit(void);
  4077. void __sanitizer_syscall_post_impl__lwp_exit(long long res);
  4078. void __sanitizer_syscall_pre_impl__lwp_self(void);
  4079. void __sanitizer_syscall_post_impl__lwp_self(long long res);
  4080. void __sanitizer_syscall_pre_impl__lwp_wait(long long wait_for,
  4081. long long departed);
  4082. void __sanitizer_syscall_post_impl__lwp_wait(long long res, long long wait_for,
  4083. long long departed);
  4084. void __sanitizer_syscall_pre_impl__lwp_suspend(long long target);
  4085. void __sanitizer_syscall_post_impl__lwp_suspend(long long res,
  4086. long long target);
  4087. void __sanitizer_syscall_pre_impl__lwp_continue(long long target);
  4088. void __sanitizer_syscall_post_impl__lwp_continue(long long res,
  4089. long long target);
  4090. void __sanitizer_syscall_pre_impl__lwp_wakeup(long long target);
  4091. void __sanitizer_syscall_post_impl__lwp_wakeup(long long res, long long target);
  4092. void __sanitizer_syscall_pre_impl__lwp_getprivate(void);
  4093. void __sanitizer_syscall_post_impl__lwp_getprivate(long long res);
  4094. void __sanitizer_syscall_pre_impl__lwp_setprivate(long long ptr);
  4095. void __sanitizer_syscall_post_impl__lwp_setprivate(long long res,
  4096. long long ptr);
  4097. void __sanitizer_syscall_pre_impl__lwp_kill(long long target, long long signo);
  4098. void __sanitizer_syscall_post_impl__lwp_kill(long long res, long long target,
  4099. long long signo);
  4100. void __sanitizer_syscall_pre_impl__lwp_detach(long long target);
  4101. void __sanitizer_syscall_post_impl__lwp_detach(long long res, long long target);
  4102. void __sanitizer_syscall_pre_impl_compat_50__lwp_park(long long ts,
  4103. long long unpark,
  4104. long long hint,
  4105. long long unparkhint);
  4106. void __sanitizer_syscall_post_impl_compat_50__lwp_park(long long res,
  4107. long long ts,
  4108. long long unpark,
  4109. long long hint,
  4110. long long unparkhint);
  4111. void __sanitizer_syscall_pre_impl__lwp_unpark(long long target, long long hint);
  4112. void __sanitizer_syscall_post_impl__lwp_unpark(long long res, long long target,
  4113. long long hint);
  4114. void __sanitizer_syscall_pre_impl__lwp_unpark_all(long long targets,
  4115. long long ntargets,
  4116. long long hint);
  4117. void __sanitizer_syscall_post_impl__lwp_unpark_all(long long res,
  4118. long long targets,
  4119. long long ntargets,
  4120. long long hint);
  4121. void __sanitizer_syscall_pre_impl__lwp_setname(long long target,
  4122. long long name);
  4123. void __sanitizer_syscall_post_impl__lwp_setname(long long res, long long target,
  4124. long long name);
  4125. void __sanitizer_syscall_pre_impl__lwp_getname(long long target, long long name,
  4126. long long len);
  4127. void __sanitizer_syscall_post_impl__lwp_getname(long long res, long long target,
  4128. long long name, long long len);
  4129. void __sanitizer_syscall_pre_impl__lwp_ctl(long long features,
  4130. long long address);
  4131. void __sanitizer_syscall_post_impl__lwp_ctl(long long res, long long features,
  4132. long long address);
  4133. /* syscall 326 has been skipped */
  4134. /* syscall 327 has been skipped */
  4135. /* syscall 328 has been skipped */
  4136. /* syscall 329 has been skipped */
  4137. void __sanitizer_syscall_pre_impl_compat_60_sa_register(
  4138. long long newv, long long oldv, long long flags,
  4139. long long stackinfo_offset);
  4140. void __sanitizer_syscall_post_impl_compat_60_sa_register(
  4141. long long res, long long newv, long long oldv, long long flags,
  4142. long long stackinfo_offset);
  4143. void __sanitizer_syscall_pre_impl_compat_60_sa_stacks(long long num,
  4144. long long stacks);
  4145. void __sanitizer_syscall_post_impl_compat_60_sa_stacks(long long res,
  4146. long long num,
  4147. long long stacks);
  4148. void __sanitizer_syscall_pre_impl_compat_60_sa_enable(void);
  4149. void __sanitizer_syscall_post_impl_compat_60_sa_enable(long long res);
  4150. void __sanitizer_syscall_pre_impl_compat_60_sa_setconcurrency(
  4151. long long concurrency);
  4152. void __sanitizer_syscall_post_impl_compat_60_sa_setconcurrency(
  4153. long long res, long long concurrency);
  4154. void __sanitizer_syscall_pre_impl_compat_60_sa_yield(void);
  4155. void __sanitizer_syscall_post_impl_compat_60_sa_yield(long long res);
  4156. void __sanitizer_syscall_pre_impl_compat_60_sa_preempt(long long sa_id);
  4157. void __sanitizer_syscall_post_impl_compat_60_sa_preempt(long long res,
  4158. long long sa_id);
  4159. /* syscall 336 has been skipped */
  4160. /* syscall 337 has been skipped */
  4161. /* syscall 338 has been skipped */
  4162. /* syscall 339 has been skipped */
  4163. void __sanitizer_syscall_pre_impl___sigaction_sigtramp(long long signum,
  4164. long long nsa,
  4165. long long osa,
  4166. long long tramp,
  4167. long long vers);
  4168. void __sanitizer_syscall_post_impl___sigaction_sigtramp(
  4169. long long res, long long signum, long long nsa, long long osa,
  4170. long long tramp, long long vers);
  4171. /* syscall 341 has been skipped */
  4172. /* syscall 342 has been skipped */
  4173. void __sanitizer_syscall_pre_impl_rasctl(long long addr, long long len,
  4174. long long op);
  4175. void __sanitizer_syscall_post_impl_rasctl(long long res, long long addr,
  4176. long long len, long long op);
  4177. void __sanitizer_syscall_pre_impl_kqueue(void);
  4178. void __sanitizer_syscall_post_impl_kqueue(long long res);
  4179. void __sanitizer_syscall_pre_impl_compat_50_kevent(
  4180. long long fd, long long changelist, long long nchanges, long long eventlist,
  4181. long long nevents, long long timeout);
  4182. void __sanitizer_syscall_post_impl_compat_50_kevent(
  4183. long long res, long long fd, long long changelist, long long nchanges,
  4184. long long eventlist, long long nevents, long long timeout);
  4185. void __sanitizer_syscall_pre_impl__sched_setparam(long long pid, long long lid,
  4186. long long policy,
  4187. long long params);
  4188. void __sanitizer_syscall_post_impl__sched_setparam(long long res, long long pid,
  4189. long long lid,
  4190. long long policy,
  4191. long long params);
  4192. void __sanitizer_syscall_pre_impl__sched_getparam(long long pid, long long lid,
  4193. long long policy,
  4194. long long params);
  4195. void __sanitizer_syscall_post_impl__sched_getparam(long long res, long long pid,
  4196. long long lid,
  4197. long long policy,
  4198. long long params);
  4199. void __sanitizer_syscall_pre_impl__sched_setaffinity(long long pid,
  4200. long long lid,
  4201. long long size,
  4202. long long cpuset);
  4203. void __sanitizer_syscall_post_impl__sched_setaffinity(long long res,
  4204. long long pid,
  4205. long long lid,
  4206. long long size,
  4207. long long cpuset);
  4208. void __sanitizer_syscall_pre_impl__sched_getaffinity(long long pid,
  4209. long long lid,
  4210. long long size,
  4211. long long cpuset);
  4212. void __sanitizer_syscall_post_impl__sched_getaffinity(long long res,
  4213. long long pid,
  4214. long long lid,
  4215. long long size,
  4216. long long cpuset);
  4217. void __sanitizer_syscall_pre_impl_sched_yield(void);
  4218. void __sanitizer_syscall_post_impl_sched_yield(long long res);
  4219. void __sanitizer_syscall_pre_impl__sched_protect(long long priority);
  4220. void __sanitizer_syscall_post_impl__sched_protect(long long res,
  4221. long long priority);
  4222. /* syscall 352 has been skipped */
  4223. /* syscall 353 has been skipped */
  4224. void __sanitizer_syscall_pre_impl_fsync_range(long long fd, long long flags,
  4225. long long start,
  4226. long long length);
  4227. void __sanitizer_syscall_post_impl_fsync_range(long long res, long long fd,
  4228. long long flags, long long start,
  4229. long long length);
  4230. void __sanitizer_syscall_pre_impl_uuidgen(long long store, long long count);
  4231. void __sanitizer_syscall_post_impl_uuidgen(long long res, long long store,
  4232. long long count);
  4233. void __sanitizer_syscall_pre_impl_compat_90_getvfsstat(long long buf,
  4234. long long bufsize,
  4235. long long flags);
  4236. void __sanitizer_syscall_post_impl_compat_90_getvfsstat(long long res,
  4237. long long buf,
  4238. long long bufsize,
  4239. long long flags);
  4240. void __sanitizer_syscall_pre_impl_compat_90_statvfs1(long long path,
  4241. long long buf,
  4242. long long flags);
  4243. void __sanitizer_syscall_post_impl_compat_90_statvfs1(long long res,
  4244. long long path,
  4245. long long buf,
  4246. long long flags);
  4247. void __sanitizer_syscall_pre_impl_compat_90_fstatvfs1(long long fd,
  4248. long long buf,
  4249. long long flags);
  4250. void __sanitizer_syscall_post_impl_compat_90_fstatvfs1(long long res,
  4251. long long fd,
  4252. long long buf,
  4253. long long flags);
  4254. void __sanitizer_syscall_pre_impl_compat_30_fhstatvfs1(long long fhp,
  4255. long long buf,
  4256. long long flags);
  4257. void __sanitizer_syscall_post_impl_compat_30_fhstatvfs1(long long res,
  4258. long long fhp,
  4259. long long buf,
  4260. long long flags);
  4261. void __sanitizer_syscall_pre_impl_extattrctl(long long path, long long cmd,
  4262. long long filename,
  4263. long long attrnamespace,
  4264. long long attrname);
  4265. void __sanitizer_syscall_post_impl_extattrctl(long long res, long long path,
  4266. long long cmd, long long filename,
  4267. long long attrnamespace,
  4268. long long attrname);
  4269. void __sanitizer_syscall_pre_impl_extattr_set_file(long long path,
  4270. long long attrnamespace,
  4271. long long attrname,
  4272. long long data,
  4273. long long nbytes);
  4274. void __sanitizer_syscall_post_impl_extattr_set_file(
  4275. long long res, long long path, long long attrnamespace, long long attrname,
  4276. long long data, long long nbytes);
  4277. void __sanitizer_syscall_pre_impl_extattr_get_file(long long path,
  4278. long long attrnamespace,
  4279. long long attrname,
  4280. long long data,
  4281. long long nbytes);
  4282. void __sanitizer_syscall_post_impl_extattr_get_file(
  4283. long long res, long long path, long long attrnamespace, long long attrname,
  4284. long long data, long long nbytes);
  4285. void __sanitizer_syscall_pre_impl_extattr_delete_file(long long path,
  4286. long long attrnamespace,
  4287. long long attrname);
  4288. void __sanitizer_syscall_post_impl_extattr_delete_file(long long res,
  4289. long long path,
  4290. long long attrnamespace,
  4291. long long attrname);
  4292. void __sanitizer_syscall_pre_impl_extattr_set_fd(long long fd,
  4293. long long attrnamespace,
  4294. long long attrname,
  4295. long long data,
  4296. long long nbytes);
  4297. void __sanitizer_syscall_post_impl_extattr_set_fd(long long res, long long fd,
  4298. long long attrnamespace,
  4299. long long attrname,
  4300. long long data,
  4301. long long nbytes);
  4302. void __sanitizer_syscall_pre_impl_extattr_get_fd(long long fd,
  4303. long long attrnamespace,
  4304. long long attrname,
  4305. long long data,
  4306. long long nbytes);
  4307. void __sanitizer_syscall_post_impl_extattr_get_fd(long long res, long long fd,
  4308. long long attrnamespace,
  4309. long long attrname,
  4310. long long data,
  4311. long long nbytes);
  4312. void __sanitizer_syscall_pre_impl_extattr_delete_fd(long long fd,
  4313. long long attrnamespace,
  4314. long long attrname);
  4315. void __sanitizer_syscall_post_impl_extattr_delete_fd(long long res,
  4316. long long fd,
  4317. long long attrnamespace,
  4318. long long attrname);
  4319. void __sanitizer_syscall_pre_impl_extattr_set_link(long long path,
  4320. long long attrnamespace,
  4321. long long attrname,
  4322. long long data,
  4323. long long nbytes);
  4324. void __sanitizer_syscall_post_impl_extattr_set_link(
  4325. long long res, long long path, long long attrnamespace, long long attrname,
  4326. long long data, long long nbytes);
  4327. void __sanitizer_syscall_pre_impl_extattr_get_link(long long path,
  4328. long long attrnamespace,
  4329. long long attrname,
  4330. long long data,
  4331. long long nbytes);
  4332. void __sanitizer_syscall_post_impl_extattr_get_link(
  4333. long long res, long long path, long long attrnamespace, long long attrname,
  4334. long long data, long long nbytes);
  4335. void __sanitizer_syscall_pre_impl_extattr_delete_link(long long path,
  4336. long long attrnamespace,
  4337. long long attrname);
  4338. void __sanitizer_syscall_post_impl_extattr_delete_link(long long res,
  4339. long long path,
  4340. long long attrnamespace,
  4341. long long attrname);
  4342. void __sanitizer_syscall_pre_impl_extattr_list_fd(long long fd,
  4343. long long attrnamespace,
  4344. long long data,
  4345. long long nbytes);
  4346. void __sanitizer_syscall_post_impl_extattr_list_fd(long long res, long long fd,
  4347. long long attrnamespace,
  4348. long long data,
  4349. long long nbytes);
  4350. void __sanitizer_syscall_pre_impl_extattr_list_file(long long path,
  4351. long long attrnamespace,
  4352. long long data,
  4353. long long nbytes);
  4354. void __sanitizer_syscall_post_impl_extattr_list_file(long long res,
  4355. long long path,
  4356. long long attrnamespace,
  4357. long long data,
  4358. long long nbytes);
  4359. void __sanitizer_syscall_pre_impl_extattr_list_link(long long path,
  4360. long long attrnamespace,
  4361. long long data,
  4362. long long nbytes);
  4363. void __sanitizer_syscall_post_impl_extattr_list_link(long long res,
  4364. long long path,
  4365. long long attrnamespace,
  4366. long long data,
  4367. long long nbytes);
  4368. void __sanitizer_syscall_pre_impl_compat_50_pselect(long long nd, long long in,
  4369. long long ou, long long ex,
  4370. long long ts,
  4371. long long mask);
  4372. void __sanitizer_syscall_post_impl_compat_50_pselect(long long res,
  4373. long long nd, long long in,
  4374. long long ou, long long ex,
  4375. long long ts,
  4376. long long mask);
  4377. void __sanitizer_syscall_pre_impl_compat_50_pollts(long long fds,
  4378. long long nfds, long long ts,
  4379. long long mask);
  4380. void __sanitizer_syscall_post_impl_compat_50_pollts(
  4381. long long res, long long fds, long long nfds, long long ts, long long mask);
  4382. void __sanitizer_syscall_pre_impl_setxattr(long long path, long long name,
  4383. long long value, long long size,
  4384. long long flags);
  4385. void __sanitizer_syscall_post_impl_setxattr(long long res, long long path,
  4386. long long name, long long value,
  4387. long long size, long long flags);
  4388. void __sanitizer_syscall_pre_impl_lsetxattr(long long path, long long name,
  4389. long long value, long long size,
  4390. long long flags);
  4391. void __sanitizer_syscall_post_impl_lsetxattr(long long res, long long path,
  4392. long long name, long long value,
  4393. long long size, long long flags);
  4394. void __sanitizer_syscall_pre_impl_fsetxattr(long long fd, long long name,
  4395. long long value, long long size,
  4396. long long flags);
  4397. void __sanitizer_syscall_post_impl_fsetxattr(long long res, long long fd,
  4398. long long name, long long value,
  4399. long long size, long long flags);
  4400. void __sanitizer_syscall_pre_impl_getxattr(long long path, long long name,
  4401. long long value, long long size);
  4402. void __sanitizer_syscall_post_impl_getxattr(long long res, long long path,
  4403. long long name, long long value,
  4404. long long size);
  4405. void __sanitizer_syscall_pre_impl_lgetxattr(long long path, long long name,
  4406. long long value, long long size);
  4407. void __sanitizer_syscall_post_impl_lgetxattr(long long res, long long path,
  4408. long long name, long long value,
  4409. long long size);
  4410. void __sanitizer_syscall_pre_impl_fgetxattr(long long fd, long long name,
  4411. long long value, long long size);
  4412. void __sanitizer_syscall_post_impl_fgetxattr(long long res, long long fd,
  4413. long long name, long long value,
  4414. long long size);
  4415. void __sanitizer_syscall_pre_impl_listxattr(long long path, long long list,
  4416. long long size);
  4417. void __sanitizer_syscall_post_impl_listxattr(long long res, long long path,
  4418. long long list, long long size);
  4419. void __sanitizer_syscall_pre_impl_llistxattr(long long path, long long list,
  4420. long long size);
  4421. void __sanitizer_syscall_post_impl_llistxattr(long long res, long long path,
  4422. long long list, long long size);
  4423. void __sanitizer_syscall_pre_impl_flistxattr(long long fd, long long list,
  4424. long long size);
  4425. void __sanitizer_syscall_post_impl_flistxattr(long long res, long long fd,
  4426. long long list, long long size);
  4427. void __sanitizer_syscall_pre_impl_removexattr(long long path, long long name);
  4428. void __sanitizer_syscall_post_impl_removexattr(long long res, long long path,
  4429. long long name);
  4430. void __sanitizer_syscall_pre_impl_lremovexattr(long long path, long long name);
  4431. void __sanitizer_syscall_post_impl_lremovexattr(long long res, long long path,
  4432. long long name);
  4433. void __sanitizer_syscall_pre_impl_fremovexattr(long long fd, long long name);
  4434. void __sanitizer_syscall_post_impl_fremovexattr(long long res, long long fd,
  4435. long long name);
  4436. void __sanitizer_syscall_pre_impl_compat_50___stat30(long long path,
  4437. long long ub);
  4438. void __sanitizer_syscall_post_impl_compat_50___stat30(long long res,
  4439. long long path,
  4440. long long ub);
  4441. void __sanitizer_syscall_pre_impl_compat_50___fstat30(long long fd,
  4442. long long sb);
  4443. void __sanitizer_syscall_post_impl_compat_50___fstat30(long long res,
  4444. long long fd,
  4445. long long sb);
  4446. void __sanitizer_syscall_pre_impl_compat_50___lstat30(long long path,
  4447. long long ub);
  4448. void __sanitizer_syscall_post_impl_compat_50___lstat30(long long res,
  4449. long long path,
  4450. long long ub);
  4451. void __sanitizer_syscall_pre_impl___getdents30(long long fd, long long buf,
  4452. long long count);
  4453. void __sanitizer_syscall_post_impl___getdents30(long long res, long long fd,
  4454. long long buf, long long count);
  4455. void __sanitizer_syscall_pre_impl_posix_fadvise(long long);
  4456. void __sanitizer_syscall_post_impl_posix_fadvise(long long res, long long);
  4457. void __sanitizer_syscall_pre_impl_compat_30___fhstat30(long long fhp,
  4458. long long sb);
  4459. void __sanitizer_syscall_post_impl_compat_30___fhstat30(long long res,
  4460. long long fhp,
  4461. long long sb);
  4462. void __sanitizer_syscall_pre_impl_compat_50___ntp_gettime30(long long ntvp);
  4463. void __sanitizer_syscall_post_impl_compat_50___ntp_gettime30(long long res,
  4464. long long ntvp);
  4465. void __sanitizer_syscall_pre_impl___socket30(long long domain, long long type,
  4466. long long protocol);
  4467. void __sanitizer_syscall_post_impl___socket30(long long res, long long domain,
  4468. long long type,
  4469. long long protocol);
  4470. void __sanitizer_syscall_pre_impl___getfh30(long long fname, long long fhp,
  4471. long long fh_size);
  4472. void __sanitizer_syscall_post_impl___getfh30(long long res, long long fname,
  4473. long long fhp, long long fh_size);
  4474. void __sanitizer_syscall_pre_impl___fhopen40(long long fhp, long long fh_size,
  4475. long long flags);
  4476. void __sanitizer_syscall_post_impl___fhopen40(long long res, long long fhp,
  4477. long long fh_size,
  4478. long long flags);
  4479. void __sanitizer_syscall_pre_impl_compat_90_fhstatvfs1(long long fhp,
  4480. long long fh_size,
  4481. long long buf,
  4482. long long flags);
  4483. void __sanitizer_syscall_post_impl_compat_90_fhstatvfs1(long long res,
  4484. long long fhp,
  4485. long long fh_size,
  4486. long long buf,
  4487. long long flags);
  4488. void __sanitizer_syscall_pre_impl_compat_50___fhstat40(long long fhp,
  4489. long long fh_size,
  4490. long long sb);
  4491. void __sanitizer_syscall_post_impl_compat_50___fhstat40(long long res,
  4492. long long fhp,
  4493. long long fh_size,
  4494. long long sb);
  4495. void __sanitizer_syscall_pre_impl_aio_cancel(long long fildes,
  4496. long long aiocbp);
  4497. void __sanitizer_syscall_post_impl_aio_cancel(long long res, long long fildes,
  4498. long long aiocbp);
  4499. void __sanitizer_syscall_pre_impl_aio_error(long long aiocbp);
  4500. void __sanitizer_syscall_post_impl_aio_error(long long res, long long aiocbp);
  4501. void __sanitizer_syscall_pre_impl_aio_fsync(long long op, long long aiocbp);
  4502. void __sanitizer_syscall_post_impl_aio_fsync(long long res, long long op,
  4503. long long aiocbp);
  4504. void __sanitizer_syscall_pre_impl_aio_read(long long aiocbp);
  4505. void __sanitizer_syscall_post_impl_aio_read(long long res, long long aiocbp);
  4506. void __sanitizer_syscall_pre_impl_aio_return(long long aiocbp);
  4507. void __sanitizer_syscall_post_impl_aio_return(long long res, long long aiocbp);
  4508. void __sanitizer_syscall_pre_impl_compat_50_aio_suspend(long long list,
  4509. long long nent,
  4510. long long timeout);
  4511. void __sanitizer_syscall_post_impl_compat_50_aio_suspend(long long res,
  4512. long long list,
  4513. long long nent,
  4514. long long timeout);
  4515. void __sanitizer_syscall_pre_impl_aio_write(long long aiocbp);
  4516. void __sanitizer_syscall_post_impl_aio_write(long long res, long long aiocbp);
  4517. void __sanitizer_syscall_pre_impl_lio_listio(long long mode, long long list,
  4518. long long nent, long long sig);
  4519. void __sanitizer_syscall_post_impl_lio_listio(long long res, long long mode,
  4520. long long list, long long nent,
  4521. long long sig);
  4522. /* syscall 407 has been skipped */
  4523. /* syscall 408 has been skipped */
  4524. /* syscall 409 has been skipped */
  4525. void __sanitizer_syscall_pre_impl___mount50(long long type, long long path,
  4526. long long flags, long long data,
  4527. long long data_len);
  4528. void __sanitizer_syscall_post_impl___mount50(long long res, long long type,
  4529. long long path, long long flags,
  4530. long long data,
  4531. long long data_len);
  4532. void __sanitizer_syscall_pre_impl_mremap(long long old_address,
  4533. long long old_size,
  4534. long long new_address,
  4535. long long new_size, long long flags);
  4536. void __sanitizer_syscall_post_impl_mremap(long long res, long long old_address,
  4537. long long old_size,
  4538. long long new_address,
  4539. long long new_size, long long flags);
  4540. void __sanitizer_syscall_pre_impl_pset_create(long long psid);
  4541. void __sanitizer_syscall_post_impl_pset_create(long long res, long long psid);
  4542. void __sanitizer_syscall_pre_impl_pset_destroy(long long psid);
  4543. void __sanitizer_syscall_post_impl_pset_destroy(long long res, long long psid);
  4544. void __sanitizer_syscall_pre_impl_pset_assign(long long psid, long long cpuid,
  4545. long long opsid);
  4546. void __sanitizer_syscall_post_impl_pset_assign(long long res, long long psid,
  4547. long long cpuid,
  4548. long long opsid);
  4549. void __sanitizer_syscall_pre_impl__pset_bind(long long idtype,
  4550. long long first_id,
  4551. long long second_id,
  4552. long long psid, long long opsid);
  4553. void __sanitizer_syscall_post_impl__pset_bind(long long res, long long idtype,
  4554. long long first_id,
  4555. long long second_id,
  4556. long long psid, long long opsid);
  4557. void __sanitizer_syscall_pre_impl___posix_fadvise50(long long fd, long long PAD,
  4558. long long offset,
  4559. long long len,
  4560. long long advice);
  4561. void __sanitizer_syscall_post_impl___posix_fadvise50(
  4562. long long res, long long fd, long long PAD, long long offset, long long len,
  4563. long long advice);
  4564. void __sanitizer_syscall_pre_impl___select50(long long nd, long long in,
  4565. long long ou, long long ex,
  4566. long long tv);
  4567. void __sanitizer_syscall_post_impl___select50(long long res, long long nd,
  4568. long long in, long long ou,
  4569. long long ex, long long tv);
  4570. void __sanitizer_syscall_pre_impl___gettimeofday50(long long tp, long long tzp);
  4571. void __sanitizer_syscall_post_impl___gettimeofday50(long long res, long long tp,
  4572. long long tzp);
  4573. void __sanitizer_syscall_pre_impl___settimeofday50(long long tv, long long tzp);
  4574. void __sanitizer_syscall_post_impl___settimeofday50(long long res, long long tv,
  4575. long long tzp);
  4576. void __sanitizer_syscall_pre_impl___utimes50(long long path, long long tptr);
  4577. void __sanitizer_syscall_post_impl___utimes50(long long res, long long path,
  4578. long long tptr);
  4579. void __sanitizer_syscall_pre_impl___adjtime50(long long delta,
  4580. long long olddelta);
  4581. void __sanitizer_syscall_post_impl___adjtime50(long long res, long long delta,
  4582. long long olddelta);
  4583. void __sanitizer_syscall_pre_impl___lfs_segwait50(long long fsidp,
  4584. long long tv);
  4585. void __sanitizer_syscall_post_impl___lfs_segwait50(long long res,
  4586. long long fsidp,
  4587. long long tv);
  4588. void __sanitizer_syscall_pre_impl___futimes50(long long fd, long long tptr);
  4589. void __sanitizer_syscall_post_impl___futimes50(long long res, long long fd,
  4590. long long tptr);
  4591. void __sanitizer_syscall_pre_impl___lutimes50(long long path, long long tptr);
  4592. void __sanitizer_syscall_post_impl___lutimes50(long long res, long long path,
  4593. long long tptr);
  4594. void __sanitizer_syscall_pre_impl___setitimer50(long long which, long long itv,
  4595. long long oitv);
  4596. void __sanitizer_syscall_post_impl___setitimer50(long long res, long long which,
  4597. long long itv, long long oitv);
  4598. void __sanitizer_syscall_pre_impl___getitimer50(long long which, long long itv);
  4599. void __sanitizer_syscall_post_impl___getitimer50(long long res, long long which,
  4600. long long itv);
  4601. void __sanitizer_syscall_pre_impl___clock_gettime50(long long clock_id,
  4602. long long tp);
  4603. void __sanitizer_syscall_post_impl___clock_gettime50(long long res,
  4604. long long clock_id,
  4605. long long tp);
  4606. void __sanitizer_syscall_pre_impl___clock_settime50(long long clock_id,
  4607. long long tp);
  4608. void __sanitizer_syscall_post_impl___clock_settime50(long long res,
  4609. long long clock_id,
  4610. long long tp);
  4611. void __sanitizer_syscall_pre_impl___clock_getres50(long long clock_id,
  4612. long long tp);
  4613. void __sanitizer_syscall_post_impl___clock_getres50(long long res,
  4614. long long clock_id,
  4615. long long tp);
  4616. void __sanitizer_syscall_pre_impl___nanosleep50(long long rqtp, long long rmtp);
  4617. void __sanitizer_syscall_post_impl___nanosleep50(long long res, long long rqtp,
  4618. long long rmtp);
  4619. void __sanitizer_syscall_pre_impl_____sigtimedwait50(long long set,
  4620. long long info,
  4621. long long timeout);
  4622. void __sanitizer_syscall_post_impl_____sigtimedwait50(long long res,
  4623. long long set,
  4624. long long info,
  4625. long long timeout);
  4626. void __sanitizer_syscall_pre_impl___mq_timedsend50(long long mqdes,
  4627. long long msg_ptr,
  4628. long long msg_len,
  4629. long long msg_prio,
  4630. long long abs_timeout);
  4631. void __sanitizer_syscall_post_impl___mq_timedsend50(
  4632. long long res, long long mqdes, long long msg_ptr, long long msg_len,
  4633. long long msg_prio, long long abs_timeout);
  4634. void __sanitizer_syscall_pre_impl___mq_timedreceive50(long long mqdes,
  4635. long long msg_ptr,
  4636. long long msg_len,
  4637. long long msg_prio,
  4638. long long abs_timeout);
  4639. void __sanitizer_syscall_post_impl___mq_timedreceive50(
  4640. long long res, long long mqdes, long long msg_ptr, long long msg_len,
  4641. long long msg_prio, long long abs_timeout);
  4642. void __sanitizer_syscall_pre_impl_compat_60__lwp_park(long long ts,
  4643. long long unpark,
  4644. long long hint,
  4645. long long unparkhint);
  4646. void __sanitizer_syscall_post_impl_compat_60__lwp_park(long long res,
  4647. long long ts,
  4648. long long unpark,
  4649. long long hint,
  4650. long long unparkhint);
  4651. void __sanitizer_syscall_pre_impl___kevent50(long long fd, long long changelist,
  4652. long long nchanges,
  4653. long long eventlist,
  4654. long long nevents,
  4655. long long timeout);
  4656. void __sanitizer_syscall_post_impl___kevent50(
  4657. long long res, long long fd, long long changelist, long long nchanges,
  4658. long long eventlist, long long nevents, long long timeout);
  4659. void __sanitizer_syscall_pre_impl___pselect50(long long nd, long long in,
  4660. long long ou, long long ex,
  4661. long long ts, long long mask);
  4662. void __sanitizer_syscall_post_impl___pselect50(long long res, long long nd,
  4663. long long in, long long ou,
  4664. long long ex, long long ts,
  4665. long long mask);
  4666. void __sanitizer_syscall_pre_impl___pollts50(long long fds, long long nfds,
  4667. long long ts, long long mask);
  4668. void __sanitizer_syscall_post_impl___pollts50(long long res, long long fds,
  4669. long long nfds, long long ts,
  4670. long long mask);
  4671. void __sanitizer_syscall_pre_impl___aio_suspend50(long long list,
  4672. long long nent,
  4673. long long timeout);
  4674. void __sanitizer_syscall_post_impl___aio_suspend50(long long res,
  4675. long long list,
  4676. long long nent,
  4677. long long timeout);
  4678. void __sanitizer_syscall_pre_impl___stat50(long long path, long long ub);
  4679. void __sanitizer_syscall_post_impl___stat50(long long res, long long path,
  4680. long long ub);
  4681. void __sanitizer_syscall_pre_impl___fstat50(long long fd, long long sb);
  4682. void __sanitizer_syscall_post_impl___fstat50(long long res, long long fd,
  4683. long long sb);
  4684. void __sanitizer_syscall_pre_impl___lstat50(long long path, long long ub);
  4685. void __sanitizer_syscall_post_impl___lstat50(long long res, long long path,
  4686. long long ub);
  4687. void __sanitizer_syscall_pre_impl_____semctl50(long long semid,
  4688. long long semnum, long long cmd,
  4689. long long arg);
  4690. void __sanitizer_syscall_post_impl_____semctl50(long long res, long long semid,
  4691. long long semnum, long long cmd,
  4692. long long arg);
  4693. void __sanitizer_syscall_pre_impl___shmctl50(long long shmid, long long cmd,
  4694. long long buf);
  4695. void __sanitizer_syscall_post_impl___shmctl50(long long res, long long shmid,
  4696. long long cmd, long long buf);
  4697. void __sanitizer_syscall_pre_impl___msgctl50(long long msqid, long long cmd,
  4698. long long buf);
  4699. void __sanitizer_syscall_post_impl___msgctl50(long long res, long long msqid,
  4700. long long cmd, long long buf);
  4701. void __sanitizer_syscall_pre_impl___getrusage50(long long who,
  4702. long long rusage);
  4703. void __sanitizer_syscall_post_impl___getrusage50(long long res, long long who,
  4704. long long rusage);
  4705. void __sanitizer_syscall_pre_impl___timer_settime50(long long timerid,
  4706. long long flags,
  4707. long long value,
  4708. long long ovalue);
  4709. void __sanitizer_syscall_post_impl___timer_settime50(long long res,
  4710. long long timerid,
  4711. long long flags,
  4712. long long value,
  4713. long long ovalue);
  4714. void __sanitizer_syscall_pre_impl___timer_gettime50(long long timerid,
  4715. long long value);
  4716. void __sanitizer_syscall_post_impl___timer_gettime50(long long res,
  4717. long long timerid,
  4718. long long value);
  4719. #if defined(NTP) || !defined(_KERNEL_OPT)
  4720. void __sanitizer_syscall_pre_impl___ntp_gettime50(long long ntvp);
  4721. void __sanitizer_syscall_post_impl___ntp_gettime50(long long res,
  4722. long long ntvp);
  4723. #else
  4724. /* syscall 448 has been skipped */
  4725. #endif
  4726. void __sanitizer_syscall_pre_impl___wait450(long long pid, long long status,
  4727. long long options,
  4728. long long rusage);
  4729. void __sanitizer_syscall_post_impl___wait450(long long res, long long pid,
  4730. long long status,
  4731. long long options,
  4732. long long rusage);
  4733. void __sanitizer_syscall_pre_impl___mknod50(long long path, long long mode,
  4734. long long dev);
  4735. void __sanitizer_syscall_post_impl___mknod50(long long res, long long path,
  4736. long long mode, long long dev);
  4737. void __sanitizer_syscall_pre_impl___fhstat50(long long fhp, long long fh_size,
  4738. long long sb);
  4739. void __sanitizer_syscall_post_impl___fhstat50(long long res, long long fhp,
  4740. long long fh_size, long long sb);
  4741. /* syscall 452 has been skipped */
  4742. void __sanitizer_syscall_pre_impl_pipe2(long long fildes, long long flags);
  4743. void __sanitizer_syscall_post_impl_pipe2(long long res, long long fildes,
  4744. long long flags);
  4745. void __sanitizer_syscall_pre_impl_dup3(long long from, long long to,
  4746. long long flags);
  4747. void __sanitizer_syscall_post_impl_dup3(long long res, long long from,
  4748. long long to, long long flags);
  4749. void __sanitizer_syscall_pre_impl_kqueue1(long long flags);
  4750. void __sanitizer_syscall_post_impl_kqueue1(long long res, long long flags);
  4751. void __sanitizer_syscall_pre_impl_paccept(long long s, long long name,
  4752. long long anamelen, long long mask,
  4753. long long flags);
  4754. void __sanitizer_syscall_post_impl_paccept(long long res, long long s,
  4755. long long name, long long anamelen,
  4756. long long mask, long long flags);
  4757. void __sanitizer_syscall_pre_impl_linkat(long long fd1, long long name1,
  4758. long long fd2, long long name2,
  4759. long long flags);
  4760. void __sanitizer_syscall_post_impl_linkat(long long res, long long fd1,
  4761. long long name1, long long fd2,
  4762. long long name2, long long flags);
  4763. void __sanitizer_syscall_pre_impl_renameat(long long fromfd, long long from,
  4764. long long tofd, long long to);
  4765. void __sanitizer_syscall_post_impl_renameat(long long res, long long fromfd,
  4766. long long from, long long tofd,
  4767. long long to);
  4768. void __sanitizer_syscall_pre_impl_mkfifoat(long long fd, long long path,
  4769. long long mode);
  4770. void __sanitizer_syscall_post_impl_mkfifoat(long long res, long long fd,
  4771. long long path, long long mode);
  4772. void __sanitizer_syscall_pre_impl_mknodat(long long fd, long long path,
  4773. long long mode, long long PAD,
  4774. long long dev);
  4775. void __sanitizer_syscall_post_impl_mknodat(long long res, long long fd,
  4776. long long path, long long mode,
  4777. long long PAD, long long dev);
  4778. void __sanitizer_syscall_pre_impl_mkdirat(long long fd, long long path,
  4779. long long mode);
  4780. void __sanitizer_syscall_post_impl_mkdirat(long long res, long long fd,
  4781. long long path, long long mode);
  4782. void __sanitizer_syscall_pre_impl_faccessat(long long fd, long long path,
  4783. long long amode, long long flag);
  4784. void __sanitizer_syscall_post_impl_faccessat(long long res, long long fd,
  4785. long long path, long long amode,
  4786. long long flag);
  4787. void __sanitizer_syscall_pre_impl_fchmodat(long long fd, long long path,
  4788. long long mode, long long flag);
  4789. void __sanitizer_syscall_post_impl_fchmodat(long long res, long long fd,
  4790. long long path, long long mode,
  4791. long long flag);
  4792. void __sanitizer_syscall_pre_impl_fchownat(long long fd, long long path,
  4793. long long owner, long long group,
  4794. long long flag);
  4795. void __sanitizer_syscall_post_impl_fchownat(long long res, long long fd,
  4796. long long path, long long owner,
  4797. long long group, long long flag);
  4798. void __sanitizer_syscall_pre_impl_fexecve(long long fd, long long argp,
  4799. long long envp);
  4800. void __sanitizer_syscall_post_impl_fexecve(long long res, long long fd,
  4801. long long argp, long long envp);
  4802. void __sanitizer_syscall_pre_impl_fstatat(long long fd, long long path,
  4803. long long buf, long long flag);
  4804. void __sanitizer_syscall_post_impl_fstatat(long long res, long long fd,
  4805. long long path, long long buf,
  4806. long long flag);
  4807. void __sanitizer_syscall_pre_impl_utimensat(long long fd, long long path,
  4808. long long tptr, long long flag);
  4809. void __sanitizer_syscall_post_impl_utimensat(long long res, long long fd,
  4810. long long path, long long tptr,
  4811. long long flag);
  4812. void __sanitizer_syscall_pre_impl_openat(long long fd, long long path,
  4813. long long oflags, long long mode);
  4814. void __sanitizer_syscall_post_impl_openat(long long res, long long fd,
  4815. long long path, long long oflags,
  4816. long long mode);
  4817. void __sanitizer_syscall_pre_impl_readlinkat(long long fd, long long path,
  4818. long long buf, long long bufsize);
  4819. void __sanitizer_syscall_post_impl_readlinkat(long long res, long long fd,
  4820. long long path, long long buf,
  4821. long long bufsize);
  4822. void __sanitizer_syscall_pre_impl_symlinkat(long long path1, long long fd,
  4823. long long path2);
  4824. void __sanitizer_syscall_post_impl_symlinkat(long long res, long long path1,
  4825. long long fd, long long path2);
  4826. void __sanitizer_syscall_pre_impl_unlinkat(long long fd, long long path,
  4827. long long flag);
  4828. void __sanitizer_syscall_post_impl_unlinkat(long long res, long long fd,
  4829. long long path, long long flag);
  4830. void __sanitizer_syscall_pre_impl_futimens(long long fd, long long tptr);
  4831. void __sanitizer_syscall_post_impl_futimens(long long res, long long fd,
  4832. long long tptr);
  4833. void __sanitizer_syscall_pre_impl___quotactl(long long path, long long args);
  4834. void __sanitizer_syscall_post_impl___quotactl(long long res, long long path,
  4835. long long args);
  4836. void __sanitizer_syscall_pre_impl_posix_spawn(long long pid, long long path,
  4837. long long file_actions,
  4838. long long attrp, long long argv,
  4839. long long envp);
  4840. void __sanitizer_syscall_post_impl_posix_spawn(long long res, long long pid,
  4841. long long path,
  4842. long long file_actions,
  4843. long long attrp, long long argv,
  4844. long long envp);
  4845. void __sanitizer_syscall_pre_impl_recvmmsg(long long s, long long mmsg,
  4846. long long vlen, long long flags,
  4847. long long timeout);
  4848. void __sanitizer_syscall_post_impl_recvmmsg(long long res, long long s,
  4849. long long mmsg, long long vlen,
  4850. long long flags, long long timeout);
  4851. void __sanitizer_syscall_pre_impl_sendmmsg(long long s, long long mmsg,
  4852. long long vlen, long long flags);
  4853. void __sanitizer_syscall_post_impl_sendmmsg(long long res, long long s,
  4854. long long mmsg, long long vlen,
  4855. long long flags);
  4856. void __sanitizer_syscall_pre_impl_clock_nanosleep(long long clock_id,
  4857. long long flags,
  4858. long long rqtp,
  4859. long long rmtp);
  4860. void __sanitizer_syscall_post_impl_clock_nanosleep(long long res,
  4861. long long clock_id,
  4862. long long flags,
  4863. long long rqtp,
  4864. long long rmtp);
  4865. void __sanitizer_syscall_pre_impl____lwp_park60(long long clock_id,
  4866. long long flags, long long ts,
  4867. long long unpark,
  4868. long long hint,
  4869. long long unparkhint);
  4870. void __sanitizer_syscall_post_impl____lwp_park60(
  4871. long long res, long long clock_id, long long flags, long long ts,
  4872. long long unpark, long long hint, long long unparkhint);
  4873. void __sanitizer_syscall_pre_impl_posix_fallocate(long long fd, long long PAD,
  4874. long long pos, long long len);
  4875. void __sanitizer_syscall_post_impl_posix_fallocate(long long res, long long fd,
  4876. long long PAD, long long pos,
  4877. long long len);
  4878. void __sanitizer_syscall_pre_impl_fdiscard(long long fd, long long PAD,
  4879. long long pos, long long len);
  4880. void __sanitizer_syscall_post_impl_fdiscard(long long res, long long fd,
  4881. long long PAD, long long pos,
  4882. long long len);
  4883. void __sanitizer_syscall_pre_impl_wait6(long long idtype, long long id,
  4884. long long status, long long options,
  4885. long long wru, long long info);
  4886. void __sanitizer_syscall_post_impl_wait6(long long res, long long idtype,
  4887. long long id, long long status,
  4888. long long options, long long wru,
  4889. long long info);
  4890. void __sanitizer_syscall_pre_impl_clock_getcpuclockid2(long long idtype,
  4891. long long id,
  4892. long long clock_id);
  4893. void __sanitizer_syscall_post_impl_clock_getcpuclockid2(long long res,
  4894. long long idtype,
  4895. long long id,
  4896. long long clock_id);
  4897. void __sanitizer_syscall_pre_impl___getvfsstat90(long long buf,
  4898. long long bufsize,
  4899. long long flags);
  4900. void __sanitizer_syscall_post_impl___getvfsstat90(long long res, long long buf,
  4901. long long bufsize,
  4902. long long flags);
  4903. void __sanitizer_syscall_pre_impl___statvfs190(long long path, long long buf,
  4904. long long flags);
  4905. void __sanitizer_syscall_post_impl___statvfs190(long long res, long long path,
  4906. long long buf, long long flags);
  4907. void __sanitizer_syscall_pre_impl___fstatvfs190(long long fd, long long buf,
  4908. long long flags);
  4909. void __sanitizer_syscall_post_impl___fstatvfs190(long long res, long long fd,
  4910. long long buf,
  4911. long long flags);
  4912. void __sanitizer_syscall_pre_impl___fhstatvfs190(long long fhp,
  4913. long long fh_size,
  4914. long long buf,
  4915. long long flags);
  4916. void __sanitizer_syscall_post_impl___fhstatvfs190(long long res, long long fhp,
  4917. long long fh_size,
  4918. long long buf,
  4919. long long flags);
  4920. void __sanitizer_syscall_pre_impl___acl_get_link(long long path, long long type,
  4921. long long aclp);
  4922. void __sanitizer_syscall_post_impl___acl_get_link(long long res, long long path,
  4923. long long type,
  4924. long long aclp);
  4925. void __sanitizer_syscall_pre_impl___acl_set_link(long long path, long long type,
  4926. long long aclp);
  4927. void __sanitizer_syscall_post_impl___acl_set_link(long long res, long long path,
  4928. long long type,
  4929. long long aclp);
  4930. void __sanitizer_syscall_pre_impl___acl_delete_link(long long path,
  4931. long long type);
  4932. void __sanitizer_syscall_post_impl___acl_delete_link(long long res,
  4933. long long path,
  4934. long long type);
  4935. void __sanitizer_syscall_pre_impl___acl_aclcheck_link(long long path,
  4936. long long type,
  4937. long long aclp);
  4938. void __sanitizer_syscall_post_impl___acl_aclcheck_link(long long res,
  4939. long long path,
  4940. long long type,
  4941. long long aclp);
  4942. void __sanitizer_syscall_pre_impl___acl_get_file(long long path, long long type,
  4943. long long aclp);
  4944. void __sanitizer_syscall_post_impl___acl_get_file(long long res, long long path,
  4945. long long type,
  4946. long long aclp);
  4947. void __sanitizer_syscall_pre_impl___acl_set_file(long long path, long long type,
  4948. long long aclp);
  4949. void __sanitizer_syscall_post_impl___acl_set_file(long long res, long long path,
  4950. long long type,
  4951. long long aclp);
  4952. void __sanitizer_syscall_pre_impl___acl_get_fd(long long filedes,
  4953. long long type, long long aclp);
  4954. void __sanitizer_syscall_post_impl___acl_get_fd(long long res,
  4955. long long filedes,
  4956. long long type, long long aclp);
  4957. void __sanitizer_syscall_pre_impl___acl_set_fd(long long filedes,
  4958. long long type, long long aclp);
  4959. void __sanitizer_syscall_post_impl___acl_set_fd(long long res,
  4960. long long filedes,
  4961. long long type, long long aclp);
  4962. void __sanitizer_syscall_pre_impl___acl_delete_file(long long path,
  4963. long long type);
  4964. void __sanitizer_syscall_post_impl___acl_delete_file(long long res,
  4965. long long path,
  4966. long long type);
  4967. void __sanitizer_syscall_pre_impl___acl_delete_fd(long long filedes,
  4968. long long type);
  4969. void __sanitizer_syscall_post_impl___acl_delete_fd(long long res,
  4970. long long filedes,
  4971. long long type);
  4972. void __sanitizer_syscall_pre_impl___acl_aclcheck_file(long long path,
  4973. long long type,
  4974. long long aclp);
  4975. void __sanitizer_syscall_post_impl___acl_aclcheck_file(long long res,
  4976. long long path,
  4977. long long type,
  4978. long long aclp);
  4979. void __sanitizer_syscall_pre_impl___acl_aclcheck_fd(long long filedes,
  4980. long long type,
  4981. long long aclp);
  4982. void __sanitizer_syscall_post_impl___acl_aclcheck_fd(long long res,
  4983. long long filedes,
  4984. long long type,
  4985. long long aclp);
  4986. void __sanitizer_syscall_pre_impl_lpathconf(long long path, long long name);
  4987. void __sanitizer_syscall_post_impl_lpathconf(long long res, long long path,
  4988. long long name);
  4989. #ifdef __cplusplus
  4990. } // extern "C"
  4991. #endif
  4992. // DO NOT EDIT! THIS FILE HAS BEEN GENERATED!
  4993. #endif // SANITIZER_NETBSD_SYSCALL_HOOKS_H