| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420 |
- // Code generated for freebsd/amd64 by 'generator -no-main-minimize -DHAVE_LIBBSD --prefix-enumerator=_ --prefix-external=x_ --prefix-field=F --prefix-macro=m_ --prefix-static-internal=_ --prefix-static-none=_ --prefix-tagged-enum=_ --prefix-tagged-struct=T --prefix-tagged-union=T --prefix-typename=T --prefix-undefined=_ -extended-errors -ignore-unsupported-alignment -ignore-link-errors -I /home/jnml/src/modernc.org/builder/.exclude/modernc.org/libbsd/include/freebsd/amd64 -lbsd -o libxdmcp.go --package-name libxdmcp .libs/libXdmcp.a', DO NOT EDIT.
- //go:build freebsd && amd64
- package libxdmcp
- import (
- "reflect"
- "unsafe"
- "modernc.org/libc"
- )
- var _ reflect.Type
- var _ unsafe.Pointer
- const m_AT_EACCESS = 0x0100
- const m_AT_EMPTY_PATH = 0x4000
- const m_AT_REMOVEDIR = 0x0800
- const m_AT_RESOLVE_BENEATH = 0x2000
- const m_AT_SYMLINK_FOLLOW = 0x0400
- const m_AT_SYMLINK_NOFOLLOW = 0x0200
- const m_Above = 0
- const m_AllTemporary = 0
- const m_AllocAll = 1
- const m_AllocNone = 0
- const m_AllowExposures = 1
- const m_AlreadyGrabbed = 1
- const m_Always = 2
- const m_AnyButton = 0
- const m_AnyKey = 0
- const m_AnyPropertyType = 0
- const m_ArcChord = 0
- const m_ArcPieSlice = 1
- const m_AsyncBoth = 6
- const m_AsyncKeyboard = 3
- const m_AsyncPointer = 0
- const m_AutoRepeatModeDefault = 2
- const m_AutoRepeatModeOff = 0
- const m_AutoRepeatModeOn = 1
- const m_BIG_ENDIAN = "_BIG_ENDIAN"
- const m_BYTE_ORDER = "_BYTE_ORDER"
- const m_BadAccess = 10
- const m_BadAlloc = 11
- const m_BadAtom = 5
- const m_BadColor = 12
- const m_BadCursor = 6
- const m_BadDrawable = 9
- const m_BadFont = 7
- const m_BadGC = 13
- const m_BadIDChoice = 14
- const m_BadImplementation = 17
- const m_BadLength = 16
- const m_BadMatch = 8
- const m_BadName = 15
- const m_BadPixmap = 4
- const m_BadRequest = 1
- const m_BadValue = 2
- const m_BadWindow = 3
- const m_Below = 1
- const m_BottomIf = 3
- const m_Button1 = 1
- const m_Button2 = 2
- const m_Button3 = 3
- const m_Button4 = 4
- const m_Button5 = 5
- const m_ButtonPress = 4
- const m_ButtonRelease = 5
- const m_CLK_TCK = 128
- const m_CLOCKS_PER_SEC = 128
- const m_CLOCK_BOOTTIME = "CLOCK_UPTIME"
- const m_CLOCK_MONOTONIC = 4
- const m_CLOCK_MONOTONIC_COARSE = "CLOCK_MONOTONIC_FAST"
- const m_CLOCK_MONOTONIC_FAST = 12
- const m_CLOCK_MONOTONIC_PRECISE = 11
- const m_CLOCK_PROCESS_CPUTIME_ID = 15
- const m_CLOCK_PROF = 2
- const m_CLOCK_REALTIME = 0
- const m_CLOCK_REALTIME_COARSE = "CLOCK_REALTIME_FAST"
- const m_CLOCK_REALTIME_FAST = 10
- const m_CLOCK_REALTIME_PRECISE = 9
- const m_CLOCK_SECOND = 13
- const m_CLOCK_THREAD_CPUTIME_ID = 14
- const m_CLOCK_UPTIME = 5
- const m_CLOCK_UPTIME_FAST = 8
- const m_CLOCK_UPTIME_PRECISE = 7
- const m_CLOCK_VIRTUAL = 1
- const m_CPUCLOCK_WHICH_PID = 0
- const m_CPUCLOCK_WHICH_TID = 1
- const m_CapButt = 1
- const m_CapNotLast = 0
- const m_CapProjecting = 3
- const m_CapRound = 2
- const m_CenterGravity = 5
- const m_CirculateNotify = 26
- const m_CirculateRequest = 27
- const m_ClientMessage = 33
- const m_ClipByChildren = 0
- const m_ColormapInstalled = 1
- const m_ColormapNotify = 32
- const m_ColormapUninstalled = 0
- const m_Complex = 0
- const m_ConfigureNotify = 22
- const m_ConfigureRequest = 23
- const m_ControlMapIndex = 2
- const m_Convex = 2
- const m_CoordModeOrigin = 0
- const m_CoordModePrevious = 1
- const m_CopyFromParent = 0
- const m_CreateNotify = 16
- const m_CurrentTime = 0
- const m_CursorShape = 0
- const m_DST_AUST = 2
- const m_DST_CAN = 6
- const m_DST_EET = 5
- const m_DST_MET = 4
- const m_DST_NONE = 0
- const m_DST_USA = 1
- const m_DST_WET = 3
- const m_DefaultBlanking = 2
- const m_DefaultExposures = 2
- const m_DestroyAll = 0
- const m_DestroyNotify = 17
- const m_DirectColor = 5
- const m_DisableAccess = 0
- const m_DisableScreenInterval = 0
- const m_DisableScreenSaver = 0
- const m_DontAllowExposures = 0
- const m_DontPreferBlanking = 0
- const m_EXIT_FAILURE = 1
- const m_EXIT_SUCCESS = 0
- const m_EastGravity = 6
- const m_EnableAccess = 1
- const m_EnterNotify = 7
- const m_EvenOddRule = 0
- const m_Expose = 12
- const m_FALSE = 0
- const m_FAPPEND = "O_APPEND"
- const m_FASYNC = "O_ASYNC"
- const m_FDSYNC = "O_DSYNC"
- const m_FD_CLOEXEC = 1
- const m_FD_SETSIZE = 1024
- const m_FFSYNC = "O_FSYNC"
- const m_FNDELAY = "O_NONBLOCK"
- const m_FNONBLOCK = "O_NONBLOCK"
- const m_FRDAHEAD = "O_CREAT"
- const m_FREAD = 0x0001
- const m_FUNCPROTO = 15
- const m_FWRITE = 0x0002
- const m_F_ADD_SEALS = 19
- const m_F_CANCEL = 5
- const m_F_DUP2FD = 10
- const m_F_DUP2FD_CLOEXEC = 18
- const m_F_DUPFD = 0
- const m_F_DUPFD_CLOEXEC = 17
- const m_F_GETFD = 1
- const m_F_GETFL = 3
- const m_F_GETLK = 11
- const m_F_GETOWN = 5
- const m_F_GET_SEALS = 20
- const m_F_ISUNIONSTACK = 21
- const m_F_KINFO = 22
- const m_F_LOCK = 1
- const m_F_OGETLK = 7
- const m_F_OK = 0
- const m_F_OSETLK = 8
- const m_F_OSETLKW = 9
- const m_F_RDAHEAD = 16
- const m_F_RDLCK = 1
- const m_F_READAHEAD = 15
- const m_F_SEAL_GROW = 0x0004
- const m_F_SEAL_SEAL = 0x0001
- const m_F_SEAL_SHRINK = 0x0002
- const m_F_SEAL_WRITE = 0x0008
- const m_F_SETFD = 2
- const m_F_SETFL = 4
- const m_F_SETLK = 12
- const m_F_SETLKW = 13
- const m_F_SETLK_REMOTE = 14
- const m_F_SETOWN = 6
- const m_F_TEST = 3
- const m_F_TLOCK = 2
- const m_F_ULOCK = 0
- const m_F_UNLCK = 2
- const m_F_UNLCKSYS = 4
- const m_F_WRLCK = 3
- const m_FamilyChaos = 2
- const m_FamilyDECnet = 1
- const m_FamilyInternet = 0
- const m_FamilyInternet6 = 6
- const m_FamilyServerInterpreted = 5
- const m_FillOpaqueStippled = 3
- const m_FillSolid = 0
- const m_FillStippled = 2
- const m_FillTiled = 1
- const m_FirstExtensionError = 128
- const m_FocusIn = 9
- const m_FocusOut = 10
- const m_FontChange = 255
- const m_FontLeftToRight = 0
- const m_FontRightToLeft = 1
- const m_ForgetGravity = 0
- const m_GCLastBit = 22
- const m_GXand = 0x1
- const m_GXandInverted = 0x4
- const m_GXandReverse = 0x2
- const m_GXclear = 0x0
- const m_GXcopy = 0x3
- const m_GXcopyInverted = 0xc
- const m_GXequiv = 0x9
- const m_GXinvert = 0xa
- const m_GXnand = 0xe
- const m_GXnoop = 0x5
- const m_GXnor = 0x8
- const m_GXor = 0x7
- const m_GXorInverted = 0xd
- const m_GXorReverse = 0xb
- const m_GXset = 0xf
- const m_GXxor = 0x6
- const m_GenericEvent = 35
- const m_GrabFrozen = 4
- const m_GrabInvalidTime = 2
- const m_GrabModeAsync = 1
- const m_GrabModeSync = 0
- const m_GrabNotViewable = 3
- const m_GrabSuccess = 0
- const m_GraphicsExpose = 13
- const m_GravityNotify = 24
- const m_GrayScale = 1
- const m_HASXDMAUTH = 1
- const m_HAVE_ARC4RANDOM_BUF = 1
- const m_HAVE_CONFIG_H = 1
- const m_HAVE_DLFCN_H = 1
- const m_HAVE_GETENTROPY = 1
- const m_HAVE_INTTYPES_H = 1
- const m_HAVE_LIBBSD = 1
- const m_HAVE_LRAND48 = 1
- const m_HAVE_SRAND48 = 1
- const m_HAVE_STDINT_H = 1
- const m_HAVE_STDIO_H = 1
- const m_HAVE_STDLIB_H = 1
- const m_HAVE_STRINGS_H = 1
- const m_HAVE_STRING_H = 1
- const m_HAVE_SYS_RANDOM_H = 1
- const m_HAVE_SYS_STAT_H = 1
- const m_HAVE_SYS_TYPES_H = 1
- const m_HAVE_UNISTD_H = 1
- const m_HAVE_WCHAR_H = 1
- const m_HostDelete = 1
- const m_HostInsert = 0
- const m_INT16_MAX = 0x7fff
- const m_INT32_MAX = 0x7fffffff
- const m_INT64_MAX = 0x7fffffffffffffff
- const m_INT8_MAX = 0x7f
- const m_INTMAX_MAX = "INT64_MAX"
- const m_INTMAX_MIN = "INT64_MIN"
- const m_INTPTR_MAX = "INT64_MAX"
- const m_INTPTR_MIN = "INT64_MIN"
- const m_INT_FAST16_MAX = "INT32_MAX"
- const m_INT_FAST16_MIN = "INT32_MIN"
- const m_INT_FAST32_MAX = "INT32_MAX"
- const m_INT_FAST32_MIN = "INT32_MIN"
- const m_INT_FAST64_MAX = "INT64_MAX"
- const m_INT_FAST64_MIN = "INT64_MIN"
- const m_INT_FAST8_MAX = "INT32_MAX"
- const m_INT_FAST8_MIN = "INT32_MIN"
- const m_INT_LEAST16_MAX = "INT16_MAX"
- const m_INT_LEAST16_MIN = "INT16_MIN"
- const m_INT_LEAST32_MAX = "INT32_MAX"
- const m_INT_LEAST32_MIN = "INT32_MIN"
- const m_INT_LEAST64_MAX = "INT64_MAX"
- const m_INT_LEAST64_MIN = "INT64_MIN"
- const m_INT_LEAST8_MAX = "INT8_MAX"
- const m_INT_LEAST8_MIN = "INT8_MIN"
- const m_ITIMER_PROF = 2
- const m_ITIMER_REAL = 0
- const m_ITIMER_VIRTUAL = 1
- const m_IncludeInferiors = 1
- const m_InputFocus = 1
- const m_InputOnly = 2
- const m_InputOutput = 1
- const m_IsUnmapped = 0
- const m_IsUnviewable = 1
- const m_IsViewable = 2
- const m_JoinBevel = 2
- const m_JoinMiter = 0
- const m_JoinRound = 1
- const m_KCMP_FILE = 100
- const m_KCMP_FILEOBJ = 101
- const m_KCMP_FILES = 102
- const m_KCMP_SIGHAND = 103
- const m_KCMP_VM = 104
- const m_KeyPress = 2
- const m_KeyRelease = 3
- const m_KeymapNotify = 11
- const m_LASTEvent = 36
- const m_LITTLE_ENDIAN = "_LITTLE_ENDIAN"
- const m_LOCK_EX = 0x02
- const m_LOCK_NB = 0x04
- const m_LOCK_SH = 0x01
- const m_LOCK_UN = 0x08
- const m_LSBFirst = 0
- const m_LT_OBJDIR = ".libs/"
- const m_L_INCR = "SEEK_CUR"
- const m_L_SET = "SEEK_SET"
- const m_L_XTND = "SEEK_END"
- const m_LastExtensionError = 255
- const m_LeaveNotify = 8
- const m_LedModeOff = 0
- const m_LedModeOn = 1
- const m_LineDoubleDash = 2
- const m_LineOnOffDash = 1
- const m_LineSolid = 0
- const m_LockMapIndex = 1
- const m_LowerHighest = 1
- const m_MSBFirst = 1
- const m_MapNotify = 19
- const m_MapRequest = 20
- const m_MappingBusy = 1
- const m_MappingFailed = 2
- const m_MappingKeyboard = 1
- const m_MappingModifier = 0
- const m_MappingNotify = 34
- const m_MappingPointer = 2
- const m_MappingSuccess = 0
- const m_Mod1MapIndex = 3
- const m_Mod2MapIndex = 4
- const m_Mod3MapIndex = 5
- const m_Mod4MapIndex = 6
- const m_Mod5MapIndex = 7
- const m_MotionNotify = 6
- const m_NDEBUG = 1
- const m_NFDBITS = "_NFDBITS"
- const m_NeedFunctionPrototypes = 1
- const m_NeedNestedPrototypes = 1
- const m_NeedVarargsPrototypes = 1
- const m_NeedWidePrototypes = 0
- const m_NoEventMask = 0
- const m_NoExpose = 14
- const m_NoSymbol = 0
- const m_Nonconvex = 1
- const m_None = 0
- const m_NorthEastGravity = 3
- const m_NorthGravity = 2
- const m_NorthWestGravity = 1
- const m_NotUseful = 0
- const m_NotifyAncestor = 0
- const m_NotifyDetailNone = 7
- const m_NotifyGrab = 1
- const m_NotifyHint = 1
- const m_NotifyInferior = 2
- const m_NotifyNonlinear = 3
- const m_NotifyNonlinearVirtual = 4
- const m_NotifyNormal = 0
- const m_NotifyPointer = 5
- const m_NotifyPointerRoot = 6
- const m_NotifyUngrab = 2
- const m_NotifyVirtual = 1
- const m_NotifyWhileGrabbed = 3
- const m_O_ACCMODE = 0x0003
- const m_O_APPEND = 0x0008
- const m_O_ASYNC = 0x0040
- const m_O_CLOEXEC = 0x00100000
- const m_O_CREAT = 0x0200
- const m_O_DIRECT = 0x00010000
- const m_O_DIRECTORY = 0x00020000
- const m_O_DSYNC = 0x01000000
- const m_O_EMPTY_PATH = 0x02000000
- const m_O_EXCL = 0x0800
- const m_O_EXEC = 0x00040000
- const m_O_EXLOCK = 0x0020
- const m_O_FSYNC = 0x0080
- const m_O_NDELAY = "O_NONBLOCK"
- const m_O_NOCTTY = 0x8000
- const m_O_NOFOLLOW = 0x0100
- const m_O_NONBLOCK = 0x0004
- const m_O_PATH = 0x00400000
- const m_O_RDONLY = 0x0000
- const m_O_RDWR = 0x0002
- const m_O_RESOLVE_BENEATH = 0x00800000
- const m_O_SEARCH = "O_EXEC"
- const m_O_SHLOCK = 0x0010
- const m_O_SYNC = 0x0080
- const m_O_TRUNC = 0x0400
- const m_O_TTY_INIT = 0x00080000
- const m_O_VERIFY = 0x00200000
- const m_O_WRONLY = 0x0001
- const m_Opposite = 4
- const m_PACKAGE = "libXdmcp"
- const m_PACKAGE_BUGREPORT = "https://gitlab.freedesktop.org/xorg/lib/libxdmcp/-/issues"
- const m_PACKAGE_NAME = "libXdmcp"
- const m_PACKAGE_STRING = "libXdmcp 1.1.5"
- const m_PACKAGE_TARNAME = "libXdmcp"
- const m_PACKAGE_URL = ""
- const m_PACKAGE_VERSION = "1.1.5"
- const m_PACKAGE_VERSION_MAJOR = 1
- const m_PACKAGE_VERSION_MINOR = 1
- const m_PACKAGE_VERSION_PATCHLEVEL = 5
- const m_PDP_ENDIAN = "_PDP_ENDIAN"
- const m_POSIX_FADV_DONTNEED = 4
- const m_POSIX_FADV_NOREUSE = 5
- const m_POSIX_FADV_NORMAL = 0
- const m_POSIX_FADV_RANDOM = 1
- const m_POSIX_FADV_SEQUENTIAL = 2
- const m_POSIX_FADV_WILLNEED = 3
- const m_PTRDIFF_MAX = "INT64_MAX"
- const m_PTRDIFF_MIN = "INT64_MIN"
- const m_ParentRelative = 1
- const m_PlaceOnBottom = 1
- const m_PlaceOnTop = 0
- const m_PointerRoot = 1
- const m_PointerWindow = 0
- const m_PreferBlanking = 1
- const m_PropModeAppend = 2
- const m_PropModePrepend = 1
- const m_PropModeReplace = 0
- const m_PropertyDelete = 1
- const m_PropertyNewValue = 0
- const m_PropertyNotify = 28
- const m_PseudoColor = 3
- const m_RAND_MAX = 0x7fffffff
- const m_RFTSIGMASK = 0xFF
- const m_RFTSIGSHIFT = 20
- const m_R_OK = 0x04
- const m_RaiseLowest = 0
- const m_ReparentNotify = 21
- const m_ReplayKeyboard = 5
- const m_ReplayPointer = 2
- const m_ResizeRequest = 25
- const m_RetainPermanent = 1
- const m_RetainTemporary = 2
- const m_RevertToParent = 2
- const m_SBT_MAX = 0x7fffffffffffffff
- const m_SEEK_CUR = 1
- const m_SEEK_DATA = 3
- const m_SEEK_END = 2
- const m_SEEK_HOLE = 4
- const m_SEEK_SET = 0
- const m_SIG_ATOMIC_MAX = "INT64_MAX"
- const m_SIG_ATOMIC_MIN = "INT64_MIN"
- const m_SIZE_MAX = "UINT64_MAX"
- const m_SPACECTL_DEALLOC = 1
- const m_SPACECTL_F_SUPPORTED = 0
- const m_STDC_HEADERS = 1
- const m_STDERR_FILENO = 2
- const m_STDIN_FILENO = 0
- const m_STDOUT_FILENO = 1
- const m_SWAPOFF_FORCE = 0x00000001
- const m_ScreenSaverActive = 1
- const m_ScreenSaverReset = 0
- const m_SelectionClear = 29
- const m_SelectionNotify = 31
- const m_SelectionRequest = 30
- const m_SetModeDelete = 1
- const m_SetModeInsert = 0
- const m_ShiftMapIndex = 0
- const m_SouthEastGravity = 9
- const m_SouthGravity = 8
- const m_SouthWestGravity = 7
- const m_StaticColor = 2
- const m_StaticGravity = 10
- const m_StaticGray = 0
- const m_StippleShape = 2
- const m_Success = 0
- const m_SyncBoth = 7
- const m_SyncKeyboard = 4
- const m_SyncPointer = 1
- const m_TIMER_ABSTIME = 0x1
- const m_TIMER_RELTIME = 0x0
- const m_TIME_MONOTONIC = 2
- const m_TIME_UTC = 1
- const m_TRUE = 1
- const m_TileShape = 1
- const m_TopIf = 2
- const m_TrueColor = 4
- const m_UINT16_MAX = 65535
- const m_UINT32_MAX = 0xffffffff
- const m_UINT64_MAX = 0xffffffffffffffff
- const m_UINT8_MAX = 255
- const m_UINTMAX_MAX = "UINT64_MAX"
- const m_UINTPTR_MAX = "UINT64_MAX"
- const m_UINT_FAST16_MAX = "UINT32_MAX"
- const m_UINT_FAST32_MAX = "UINT32_MAX"
- const m_UINT_FAST64_MAX = "UINT64_MAX"
- const m_UINT_FAST8_MAX = "UINT32_MAX"
- const m_UINT_LEAST16_MAX = "UINT16_MAX"
- const m_UINT_LEAST32_MAX = "UINT32_MAX"
- const m_UINT_LEAST64_MAX = "UINT64_MAX"
- const m_UINT_LEAST8_MAX = "UINT8_MAX"
- const m_UnmapGravity = 0
- const m_UnmapNotify = 18
- const m_Unsorted = 0
- const m_VERSION = "1.1.5"
- const m_VisibilityFullyObscured = 2
- const m_VisibilityNotify = 15
- const m_VisibilityPartiallyObscured = 1
- const m_VisibilityUnobscured = 0
- const m_WCHAR_MAX = "__WCHAR_MAX"
- const m_WCHAR_MIN = "__WCHAR_MIN"
- const m_WINT_MAX = "INT32_MAX"
- const m_WINT_MIN = "INT32_MIN"
- const m_W_OK = 0x02
- const m_WestGravity = 4
- const m_WhenMapped = 1
- const m_WindingRule = 1
- const m_XDM_DEFAULT_MCAST_ADDR6 = "ff02:0:0:0:0:0:0:12b"
- const m_XDM_KA_RTX_LIMIT = 4
- const m_XDM_MAX_MSGLEN = 8192
- const m_XDM_MAX_RTX = 32
- const m_XDM_MIN_RTX = 2
- const m_XDM_PROTOCOL_VERSION = 1
- const m_XDM_RTX_LIMIT = 7
- const m_XDM_UDP_PORT = 177
- const m_XMD_H = 1
- const m_XYBitmap = 0
- const m_XYPixmap = 1
- const m_X_BIG_ENDIAN = "BIG_ENDIAN"
- const m_X_BYTE_ORDER = "BYTE_ORDER"
- const m_X_LITTLE_ENDIAN = "LITTLE_ENDIAN"
- const m_X_OK = 0x01
- const m_X_PROTOCOL = 11
- const m_X_PROTOCOL_REVISION = 0
- const m_YSorted = 1
- const m_YXBanded = 3
- const m_YXSorted = 2
- const m_ZPixmap = 2
- const m__ALL_SOURCE = 1
- const m__BYTE_ORDER = "__BYTE_ORDER__"
- const m__CS_PATH = 1
- const m__CS_POSIX_V6_ILP32_OFF32_CFLAGS = 2
- const m__CS_POSIX_V6_ILP32_OFF32_LDFLAGS = 3
- const m__CS_POSIX_V6_ILP32_OFF32_LIBS = 4
- const m__CS_POSIX_V6_ILP32_OFFBIG_CFLAGS = 5
- const m__CS_POSIX_V6_ILP32_OFFBIG_LDFLAGS = 6
- const m__CS_POSIX_V6_ILP32_OFFBIG_LIBS = 7
- const m__CS_POSIX_V6_LP64_OFF64_CFLAGS = 8
- const m__CS_POSIX_V6_LP64_OFF64_LDFLAGS = 9
- const m__CS_POSIX_V6_LP64_OFF64_LIBS = 10
- const m__CS_POSIX_V6_LPBIG_OFFBIG_CFLAGS = 11
- const m__CS_POSIX_V6_LPBIG_OFFBIG_LDFLAGS = 12
- const m__CS_POSIX_V6_LPBIG_OFFBIG_LIBS = 13
- const m__CS_POSIX_V6_WIDTH_RESTRICTED_ENVS = 14
- const m__DARWIN_C_SOURCE = 1
- const m__GNU_SOURCE = 1
- const m__HPUX_ALT_XOPEN_SOCKET_API = 1
- const m__LP64 = 1
- const m__NETBSD_SOURCE = 1
- const m__OPENBSD_SOURCE = 1
- const m__PC_ACL_EXTENDED = 59
- const m__PC_ACL_NFS4 = 64
- const m__PC_ACL_PATH_MAX = 60
- const m__PC_ALLOC_SIZE_MIN = 10
- const m__PC_ASYNC_IO = 53
- const m__PC_CAP_PRESENT = 61
- const m__PC_CHOWN_RESTRICTED = 7
- const m__PC_DEALLOC_PRESENT = 65
- const m__PC_FILESIZEBITS = 12
- const m__PC_INF_PRESENT = 62
- const m__PC_LINK_MAX = 1
- const m__PC_MAC_PRESENT = 63
- const m__PC_MAX_CANON = 2
- const m__PC_MAX_INPUT = 3
- const m__PC_MIN_HOLE_SIZE = 21
- const m__PC_NAME_MAX = 4
- const m__PC_NO_TRUNC = 8
- const m__PC_PATH_MAX = 5
- const m__PC_PIPE_BUF = 6
- const m__PC_PRIO_IO = 54
- const m__PC_REC_INCR_XFER_SIZE = 14
- const m__PC_REC_MAX_XFER_SIZE = 15
- const m__PC_REC_MIN_XFER_SIZE = 16
- const m__PC_REC_XFER_ALIGN = 17
- const m__PC_SYMLINK_MAX = 18
- const m__PC_SYNC_IO = 55
- const m__PC_VDISABLE = 9
- const m__PDP_ENDIAN = "__ORDER_PDP_ENDIAN__"
- const m__POSIX2_CHAR_TERM = 1
- const m__POSIX2_C_BIND = 200112
- const m__POSIX2_FORT_RUN = 200112
- const m__POSIX2_UPE = 200112
- const m__POSIX2_VERSION = 199212
- const m__POSIX_ADVISORY_INFO = 200112
- const m__POSIX_ASYNCHRONOUS_IO = 200112
- const m__POSIX_BARRIERS = 200112
- const m__POSIX_CHOWN_RESTRICTED = 1
- const m__POSIX_CPUTIME = 200112
- const m__POSIX_FSYNC = 200112
- const m__POSIX_IPV6 = 0
- const m__POSIX_JOB_CONTROL = 1
- const m__POSIX_MAPPED_FILES = 200112
- const m__POSIX_MEMLOCK_RANGE = 200112
- const m__POSIX_MEMORY_PROTECTION = 200112
- const m__POSIX_MESSAGE_PASSING = 200112
- const m__POSIX_MONOTONIC_CLOCK = 200112
- const m__POSIX_NO_TRUNC = 1
- const m__POSIX_PRIORITY_SCHEDULING = 0
- const m__POSIX_PTHREAD_SEMANTICS = 1
- const m__POSIX_RAW_SOCKETS = 200112
- const m__POSIX_READER_WRITER_LOCKS = 200112
- const m__POSIX_REALTIME_SIGNALS = 200112
- const m__POSIX_REGEXP = 1
- const m__POSIX_SEMAPHORES = 200112
- const m__POSIX_SHARED_MEMORY_OBJECTS = 200112
- const m__POSIX_SHELL = 1
- const m__POSIX_SPAWN = 200112
- const m__POSIX_SPIN_LOCKS = 200112
- const m__POSIX_THREADS = 200112
- const m__POSIX_THREAD_ATTR_STACKADDR = 200112
- const m__POSIX_THREAD_ATTR_STACKSIZE = 200112
- const m__POSIX_THREAD_CPUTIME = 200112
- const m__POSIX_THREAD_PRIORITY_SCHEDULING = 200112
- const m__POSIX_THREAD_PRIO_INHERIT = 200112
- const m__POSIX_THREAD_PRIO_PROTECT = 200112
- const m__POSIX_THREAD_PROCESS_SHARED = 200112
- const m__POSIX_TIMEOUTS = 200112
- const m__POSIX_TIMERS = 200112
- const m__POSIX_VDISABLE = 0xff
- const m__POSIX_VERSION = 200112
- const m__QUAD_HIGHWORD = 1
- const m__QUAD_LOWWORD = 0
- const m__SC_2_CHAR_TERM = 20
- const m__SC_2_C_BIND = 18
- const m__SC_2_C_DEV = 19
- const m__SC_2_FORT_DEV = 21
- const m__SC_2_FORT_RUN = 22
- const m__SC_2_LOCALEDEF = 23
- const m__SC_2_PBS = 59
- const m__SC_2_PBS_ACCOUNTING = 60
- const m__SC_2_PBS_CHECKPOINT = 61
- const m__SC_2_PBS_LOCATE = 62
- const m__SC_2_PBS_MESSAGE = 63
- const m__SC_2_PBS_TRACK = 64
- const m__SC_2_SW_DEV = 24
- const m__SC_2_UPE = 25
- const m__SC_2_VERSION = 17
- const m__SC_ADVISORY_INFO = 65
- const m__SC_AIO_LISTIO_MAX = 42
- const m__SC_AIO_MAX = 43
- const m__SC_AIO_PRIO_DELTA_MAX = 44
- const m__SC_ARG_MAX = 1
- const m__SC_ASYNCHRONOUS_IO = 28
- const m__SC_ATEXIT_MAX = 107
- const m__SC_BARRIERS = 66
- const m__SC_BC_BASE_MAX = 9
- const m__SC_BC_DIM_MAX = 10
- const m__SC_BC_SCALE_MAX = 11
- const m__SC_BC_STRING_MAX = 12
- const m__SC_CHILD_MAX = 2
- const m__SC_CLK_TCK = 3
- const m__SC_CLOCK_SELECTION = 67
- const m__SC_COLL_WEIGHTS_MAX = 13
- const m__SC_CPUSET_SIZE = 122
- const m__SC_CPUTIME = 68
- const m__SC_DELAYTIMER_MAX = 45
- const m__SC_EXPR_NEST_MAX = 14
- const m__SC_FILE_LOCKING = 69
- const m__SC_FSYNC = 38
- const m__SC_GETGR_R_SIZE_MAX = 70
- const m__SC_GETPW_R_SIZE_MAX = 71
- const m__SC_HOST_NAME_MAX = 72
- const m__SC_IOV_MAX = 56
- const m__SC_IPV6 = 118
- const m__SC_JOB_CONTROL = 6
- const m__SC_LINE_MAX = 15
- const m__SC_LOGIN_NAME_MAX = 73
- const m__SC_MAPPED_FILES = 29
- const m__SC_MEMLOCK = 30
- const m__SC_MEMLOCK_RANGE = 31
- const m__SC_MEMORY_PROTECTION = 32
- const m__SC_MESSAGE_PASSING = 33
- const m__SC_MONOTONIC_CLOCK = 74
- const m__SC_MQ_OPEN_MAX = 46
- const m__SC_MQ_PRIO_MAX = 75
- const m__SC_NGROUPS_MAX = 4
- const m__SC_NPROCESSORS_CONF = 57
- const m__SC_NPROCESSORS_ONLN = 58
- const m__SC_OPEN_MAX = 5
- const m__SC_PAGESIZE = 47
- const m__SC_PAGE_SIZE = "_SC_PAGESIZE"
- const m__SC_PHYS_PAGES = 121
- const m__SC_PRIORITIZED_IO = 34
- const m__SC_PRIORITY_SCHEDULING = 35
- const m__SC_RAW_SOCKETS = 119
- const m__SC_READER_WRITER_LOCKS = 76
- const m__SC_REALTIME_SIGNALS = 36
- const m__SC_REGEXP = 77
- const m__SC_RE_DUP_MAX = 16
- const m__SC_RTSIG_MAX = 48
- const m__SC_SAVED_IDS = 7
- const m__SC_SEMAPHORES = 37
- const m__SC_SEM_NSEMS_MAX = 49
- const m__SC_SEM_VALUE_MAX = 50
- const m__SC_SHARED_MEMORY_OBJECTS = 39
- const m__SC_SHELL = 78
- const m__SC_SIGQUEUE_MAX = 51
- const m__SC_SPAWN = 79
- const m__SC_SPIN_LOCKS = 80
- const m__SC_SPORADIC_SERVER = 81
- const m__SC_STREAM_MAX = 26
- const m__SC_SYMLOOP_MAX = 120
- const m__SC_SYNCHRONIZED_IO = 40
- const m__SC_THREADS = 96
- const m__SC_THREAD_ATTR_STACKADDR = 82
- const m__SC_THREAD_ATTR_STACKSIZE = 83
- const m__SC_THREAD_CPUTIME = 84
- const m__SC_THREAD_DESTRUCTOR_ITERATIONS = 85
- const m__SC_THREAD_KEYS_MAX = 86
- const m__SC_THREAD_PRIORITY_SCHEDULING = 89
- const m__SC_THREAD_PRIO_INHERIT = 87
- const m__SC_THREAD_PRIO_PROTECT = 88
- const m__SC_THREAD_PROCESS_SHARED = 90
- const m__SC_THREAD_SAFE_FUNCTIONS = 91
- const m__SC_THREAD_SPORADIC_SERVER = 92
- const m__SC_THREAD_STACK_MIN = 93
- const m__SC_THREAD_THREADS_MAX = 94
- const m__SC_TIMEOUTS = 95
- const m__SC_TIMERS = 41
- const m__SC_TIMER_MAX = 52
- const m__SC_TRACE = 97
- const m__SC_TRACE_EVENT_FILTER = 98
- const m__SC_TRACE_INHERIT = 99
- const m__SC_TRACE_LOG = 100
- const m__SC_TTY_NAME_MAX = 101
- const m__SC_TYPED_MEMORY_OBJECTS = 102
- const m__SC_TZNAME_MAX = 27
- const m__SC_V6_ILP32_OFF32 = 103
- const m__SC_V6_ILP32_OFFBIG = 104
- const m__SC_V6_LP64_OFF64 = 105
- const m__SC_V6_LPBIG_OFFBIG = 106
- const m__SC_VERSION = 8
- const m__SC_XOPEN_CRYPT = 108
- const m__SC_XOPEN_ENH_I18N = 109
- const m__SC_XOPEN_LEGACY = 110
- const m__SC_XOPEN_REALTIME = 111
- const m__SC_XOPEN_REALTIME_THREADS = 112
- const m__SC_XOPEN_SHM = 113
- const m__SC_XOPEN_STREAMS = 114
- const m__SC_XOPEN_UNIX = 115
- const m__SC_XOPEN_VERSION = 116
- const m__SC_XOPEN_XCU_VERSION = 117
- const m__SIG_MAXSIG = 128
- const m__SIG_WORDS = 4
- const m__TANDEM_SOURCE = 1
- const m__V6_ILP32_OFFBIG = 0
- const m__V6_LP64_OFF64 = 0
- const m__XOPEN_SHM = 1
- const m__X_INLINE = "inline"
- const m__X_RESTRICT_KYWD = "restrict"
- const m__Xconst = "const"
- const m___ATOMIC_ACQUIRE = 2
- const m___ATOMIC_ACQ_REL = 4
- const m___ATOMIC_CONSUME = 1
- const m___ATOMIC_RELAXED = 0
- const m___ATOMIC_RELEASE = 3
- const m___ATOMIC_SEQ_CST = 5
- const m___BIGGEST_ALIGNMENT__ = 16
- const m___BITINT_MAXWIDTH__ = 8388608
- const m___BOOL_WIDTH__ = 8
- const m___BSD_VISIBLE = 1
- const m___BYTE_ORDER__ = "__ORDER_LITTLE_ENDIAN__"
- const m___CCGO__ = 1
- const m___CC_SUPPORTS_DYNAMIC_ARRAY_INIT = 1
- const m___CC_SUPPORTS_INLINE = 1
- const m___CC_SUPPORTS_VARADIC_XXX = 1
- const m___CC_SUPPORTS_WARNING = 1
- const m___CC_SUPPORTS___FUNC__ = 1
- const m___CC_SUPPORTS___INLINE = 1
- const m___CC_SUPPORTS___INLINE__ = 1
- const m___CHAR_BIT = 8
- const m___CHAR_BIT__ = 8
- const m___CLANG_ATOMIC_BOOL_LOCK_FREE = 2
- const m___CLANG_ATOMIC_CHAR16_T_LOCK_FREE = 2
- const m___CLANG_ATOMIC_CHAR32_T_LOCK_FREE = 2
- const m___CLANG_ATOMIC_CHAR_LOCK_FREE = 2
- const m___CLANG_ATOMIC_INT_LOCK_FREE = 2
- const m___CLANG_ATOMIC_LLONG_LOCK_FREE = 2
- const m___CLANG_ATOMIC_LONG_LOCK_FREE = 2
- const m___CLANG_ATOMIC_POINTER_LOCK_FREE = 2
- const m___CLANG_ATOMIC_SHORT_LOCK_FREE = 2
- const m___CLANG_ATOMIC_WCHAR_T_LOCK_FREE = 2
- const m___CONSTANT_CFSTRINGS__ = 1
- const m___DBL_DECIMAL_DIG__ = 17
- const m___DBL_DENORM_MIN__ = 4.9406564584124654e-324
- const m___DBL_DIG__ = 15
- const m___DBL_EPSILON__ = 2.2204460492503131e-16
- const m___DBL_HAS_DENORM__ = 1
- const m___DBL_HAS_INFINITY__ = 1
- const m___DBL_HAS_QUIET_NAN__ = 1
- const m___DBL_MANT_DIG__ = 53
- const m___DBL_MAX_10_EXP__ = 308
- const m___DBL_MAX_EXP__ = 1024
- const m___DBL_MAX__ = 1.7976931348623157e+308
- const m___DBL_MIN__ = 2.2250738585072014e-308
- const m___DECIMAL_DIG__ = "__LDBL_DECIMAL_DIG__"
- const m___ELF__ = 1
- const m___EXT1_VISIBLE = 1
- const m___EXTENSIONS__ = 1
- const m___FINITE_MATH_ONLY__ = 0
- const m___FLOAT128__ = 1
- const m___FLT16_DECIMAL_DIG__ = 5
- const m___FLT16_DENORM_MIN__ = 5.9604644775390625e-8
- const m___FLT16_DIG__ = 3
- const m___FLT16_EPSILON__ = 9.765625e-4
- const m___FLT16_HAS_DENORM__ = 1
- const m___FLT16_HAS_INFINITY__ = 1
- const m___FLT16_HAS_QUIET_NAN__ = 1
- const m___FLT16_MANT_DIG__ = 11
- const m___FLT16_MAX_10_EXP__ = 4
- const m___FLT16_MAX_EXP__ = 16
- const m___FLT16_MAX__ = 6.5504e+4
- const m___FLT16_MIN__ = 6.103515625e-5
- const m___FLT_DECIMAL_DIG__ = 9
- const m___FLT_DENORM_MIN__ = 1.40129846e-45
- const m___FLT_DIG__ = 6
- const m___FLT_EPSILON__ = 1.19209290e-7
- const m___FLT_HAS_DENORM__ = 1
- const m___FLT_HAS_INFINITY__ = 1
- const m___FLT_HAS_QUIET_NAN__ = 1
- const m___FLT_MANT_DIG__ = 24
- const m___FLT_MAX_10_EXP__ = 38
- const m___FLT_MAX_EXP__ = 128
- const m___FLT_MAX__ = 3.40282347e+38
- const m___FLT_MIN__ = 1.17549435e-38
- const m___FLT_RADIX__ = 2
- const m___FPCLASS_NEGINF = 0x0004
- const m___FPCLASS_NEGNORMAL = 0x0008
- const m___FPCLASS_NEGSUBNORMAL = 0x0010
- const m___FPCLASS_NEGZERO = 0x0020
- const m___FPCLASS_POSINF = 0x0200
- const m___FPCLASS_POSNORMAL = 0x0100
- const m___FPCLASS_POSSUBNORMAL = 0x0080
- const m___FPCLASS_POSZERO = 0x0040
- const m___FPCLASS_QNAN = 0x0002
- const m___FPCLASS_SNAN = 0x0001
- const m___FUNCTION__ = "__func__"
- const m___FXSR__ = 1
- const m___FreeBSD__ = 14
- const m___FreeBSD_cc_version = 1400006
- const m___GCC_ASM_FLAG_OUTPUTS__ = 1
- const m___GCC_ATOMIC_BOOL_LOCK_FREE = 2
- const m___GCC_ATOMIC_CHAR16_T_LOCK_FREE = 2
- const m___GCC_ATOMIC_CHAR32_T_LOCK_FREE = 2
- const m___GCC_ATOMIC_CHAR_LOCK_FREE = 2
- const m___GCC_ATOMIC_INT_LOCK_FREE = 2
- const m___GCC_ATOMIC_LLONG_LOCK_FREE = 2
- const m___GCC_ATOMIC_LONG_LOCK_FREE = 2
- const m___GCC_ATOMIC_POINTER_LOCK_FREE = 2
- const m___GCC_ATOMIC_SHORT_LOCK_FREE = 2
- const m___GCC_ATOMIC_TEST_AND_SET_TRUEVAL = 1
- const m___GCC_ATOMIC_WCHAR_T_LOCK_FREE = 2
- const m___GCC_HAVE_DWARF2_CFI_ASM = 1
- const m___GCC_HAVE_SYNC_COMPARE_AND_SWAP_1 = 1
- const m___GCC_HAVE_SYNC_COMPARE_AND_SWAP_2 = 1
- const m___GCC_HAVE_SYNC_COMPARE_AND_SWAP_4 = 1
- const m___GCC_HAVE_SYNC_COMPARE_AND_SWAP_8 = 1
- const m___GNUCLIKE_ASM = 3
- const m___GNUCLIKE_BUILTIN_CONSTANT_P = 1
- const m___GNUCLIKE_BUILTIN_MEMCPY = 1
- const m___GNUCLIKE_BUILTIN_NEXT_ARG = 1
- const m___GNUCLIKE_BUILTIN_STDARG = 1
- const m___GNUCLIKE_BUILTIN_VAALIST = 1
- const m___GNUCLIKE_BUILTIN_VARARGS = 1
- const m___GNUCLIKE_CTOR_SECTION_HANDLING = 1
- const m___GNUCLIKE___SECTION = 1
- const m___GNUCLIKE___TYPEOF = 1
- const m___GNUC_MINOR__ = 2
- const m___GNUC_PATCHLEVEL__ = 1
- const m___GNUC_STDC_INLINE__ = 1
- const m___GNUC_VA_LIST_COMPATIBILITY = 1
- const m___GNUC__ = 4
- const m___GXX_ABI_VERSION = 1002
- const m___INT16_FMTd__ = "hd"
- const m___INT16_FMTi__ = "hi"
- const m___INT16_MAX__ = 32767
- const m___INT16_TYPE__ = "short"
- const m___INT32_FMTd__ = "d"
- const m___INT32_FMTi__ = "i"
- const m___INT32_MAX__ = 2147483647
- const m___INT32_TYPE__ = "int"
- const m___INT64_C_SUFFIX__ = "L"
- const m___INT64_FMTd__ = "ld"
- const m___INT64_FMTi__ = "li"
- const m___INT64_MAX__ = 9223372036854775807
- const m___INT8_FMTd__ = "hhd"
- const m___INT8_FMTi__ = "hhi"
- const m___INT8_MAX__ = 127
- const m___INTMAX_C_SUFFIX__ = "L"
- const m___INTMAX_FMTd__ = "ld"
- const m___INTMAX_FMTi__ = "li"
- const m___INTMAX_MAX__ = 9223372036854775807
- const m___INTMAX_WIDTH__ = 64
- const m___INTPTR_FMTd__ = "ld"
- const m___INTPTR_FMTi__ = "li"
- const m___INTPTR_MAX__ = 9223372036854775807
- const m___INTPTR_WIDTH__ = 64
- const m___INT_FAST16_FMTd__ = "hd"
- const m___INT_FAST16_FMTi__ = "hi"
- const m___INT_FAST16_MAX__ = 32767
- const m___INT_FAST16_TYPE__ = "short"
- const m___INT_FAST16_WIDTH__ = 16
- const m___INT_FAST32_FMTd__ = "d"
- const m___INT_FAST32_FMTi__ = "i"
- const m___INT_FAST32_MAX__ = 2147483647
- const m___INT_FAST32_TYPE__ = "int"
- const m___INT_FAST32_WIDTH__ = 32
- const m___INT_FAST64_FMTd__ = "ld"
- const m___INT_FAST64_FMTi__ = "li"
- const m___INT_FAST64_MAX__ = 9223372036854775807
- const m___INT_FAST64_WIDTH__ = 64
- const m___INT_FAST8_FMTd__ = "hhd"
- const m___INT_FAST8_FMTi__ = "hhi"
- const m___INT_FAST8_MAX__ = 127
- const m___INT_FAST8_WIDTH__ = 8
- const m___INT_LEAST16_FMTd__ = "hd"
- const m___INT_LEAST16_FMTi__ = "hi"
- const m___INT_LEAST16_MAX__ = 32767
- const m___INT_LEAST16_TYPE__ = "short"
- const m___INT_LEAST16_WIDTH__ = 16
- const m___INT_LEAST32_FMTd__ = "d"
- const m___INT_LEAST32_FMTi__ = "i"
- const m___INT_LEAST32_MAX__ = 2147483647
- const m___INT_LEAST32_TYPE__ = "int"
- const m___INT_LEAST32_WIDTH__ = 32
- const m___INT_LEAST64_FMTd__ = "ld"
- const m___INT_LEAST64_FMTi__ = "li"
- const m___INT_LEAST64_MAX__ = 9223372036854775807
- const m___INT_LEAST64_WIDTH__ = 64
- const m___INT_LEAST8_FMTd__ = "hhd"
- const m___INT_LEAST8_FMTi__ = "hhi"
- const m___INT_LEAST8_MAX__ = 127
- const m___INT_LEAST8_WIDTH__ = 8
- const m___INT_MAX = 0x7fffffff
- const m___INT_MAX__ = 2147483647
- const m___INT_WIDTH__ = 32
- const m___ISO_C_VISIBLE = 2011
- const m___KPRINTF_ATTRIBUTE__ = 1
- const m___LDBL_DECIMAL_DIG__ = 17
- const m___LDBL_DENORM_MIN__ = 4.9406564584124654e-324
- const m___LDBL_DIG__ = 15
- const m___LDBL_EPSILON__ = 2.2204460492503131e-16
- const m___LDBL_HAS_DENORM__ = 1
- const m___LDBL_HAS_INFINITY__ = 1
- const m___LDBL_HAS_QUIET_NAN__ = 1
- const m___LDBL_MANT_DIG__ = 53
- const m___LDBL_MAX_10_EXP__ = 308
- const m___LDBL_MAX_EXP__ = 1024
- const m___LDBL_MAX__ = 1.7976931348623157e+308
- const m___LDBL_MIN__ = 2.2250738585072014e-308
- const m___LITTLE_ENDIAN__ = 1
- const m___LLONG_MAX = 0x7fffffffffffffff
- const m___LLONG_WIDTH__ = 64
- const m___LONG_BIT = 64
- const m___LONG_LONG_MAX__ = 9223372036854775807
- const m___LONG_MAX = 0x7fffffffffffffff
- const m___LONG_MAX__ = 9223372036854775807
- const m___LONG_WIDTH__ = 64
- const m___LP64__ = 1
- const m___MEMORY_SCOPE_DEVICE = 1
- const m___MEMORY_SCOPE_SINGLE = 4
- const m___MEMORY_SCOPE_SYSTEM = 0
- const m___MEMORY_SCOPE_WRKGRP = 2
- const m___MEMORY_SCOPE_WVFRNT = 3
- const m___MMX__ = 1
- const m___NO_INLINE__ = 1
- const m___NO_MATH_ERRNO__ = 1
- const m___NO_MATH_INLINES = 1
- const m___OBJC_BOOL_IS_BOOL = 0
- const m___OFF_MAX = "__LONG_MAX"
- const m___OFF_MIN = "__LONG_MIN"
- const m___OPENCL_MEMORY_SCOPE_ALL_SVM_DEVICES = 3
- const m___OPENCL_MEMORY_SCOPE_DEVICE = 2
- const m___OPENCL_MEMORY_SCOPE_SUB_GROUP = 4
- const m___OPENCL_MEMORY_SCOPE_WORK_GROUP = 1
- const m___OPENCL_MEMORY_SCOPE_WORK_ITEM = 0
- const m___ORDER_BIG_ENDIAN__ = 4321
- const m___ORDER_LITTLE_ENDIAN__ = 1234
- const m___ORDER_PDP_ENDIAN__ = 3412
- const m___POINTER_WIDTH__ = 64
- const m___POSIX_VISIBLE = 200809
- const m___PRAGMA_REDEFINE_EXTNAME = 1
- const m___PRETTY_FUNCTION__ = "__func__"
- const m___PTRDIFF_FMTd__ = "ld"
- const m___PTRDIFF_FMTi__ = "li"
- const m___PTRDIFF_MAX__ = 9223372036854775807
- const m___PTRDIFF_WIDTH__ = 64
- const m___QUAD_MAX = "__LONG_MAX"
- const m___QUAD_MIN = "__LONG_MIN"
- const m___SCHAR_MAX = 0x7f
- const m___SCHAR_MAX__ = 127
- const m___SEG_FS = 1
- const m___SEG_GS = 1
- const m___SHRT_MAX = 0x7fff
- const m___SHRT_MAX__ = 32767
- const m___SHRT_WIDTH__ = 16
- const m___SIG_ATOMIC_MAX__ = 2147483647
- const m___SIG_ATOMIC_WIDTH__ = 32
- const m___SIZEOF_DOUBLE__ = 8
- const m___SIZEOF_FLOAT128__ = 16
- const m___SIZEOF_FLOAT__ = 4
- const m___SIZEOF_INT128__ = 16
- const m___SIZEOF_INT__ = 4
- const m___SIZEOF_LONG_DOUBLE__ = 8
- const m___SIZEOF_LONG_LONG__ = 8
- const m___SIZEOF_LONG__ = 8
- const m___SIZEOF_POINTER__ = 8
- const m___SIZEOF_PTRDIFF_T__ = 8
- const m___SIZEOF_SHORT__ = 2
- const m___SIZEOF_SIZE_T__ = 8
- const m___SIZEOF_WCHAR_T__ = 4
- const m___SIZEOF_WINT_T__ = 4
- const m___SIZE_FMTX__ = "lX"
- const m___SIZE_FMTo__ = "lo"
- const m___SIZE_FMTu__ = "lu"
- const m___SIZE_FMTx__ = "lx"
- const m___SIZE_MAX__ = 18446744073709551615
- const m___SIZE_T_MAX = "__ULONG_MAX"
- const m___SIZE_WIDTH__ = 64
- const m___SSE2_MATH__ = 1
- const m___SSE2__ = 1
- const m___SSE_MATH__ = 1
- const m___SSE__ = 1
- const m___SSIZE_MAX = "__LONG_MAX"
- const m___STDC_HOSTED__ = 1
- const m___STDC_MB_MIGHT_NEQ_WC__ = 1
- const m___STDC_UTF_16__ = 1
- const m___STDC_UTF_32__ = 1
- const m___STDC_VERSION__ = 201710
- const m___STDC_WANT_IEC_60559_ATTRIBS_EXT__ = 1
- const m___STDC_WANT_IEC_60559_BFP_EXT__ = 1
- const m___STDC_WANT_IEC_60559_DFP_EXT__ = 1
- const m___STDC_WANT_IEC_60559_EXT__ = 1
- const m___STDC_WANT_IEC_60559_FUNCS_EXT__ = 1
- const m___STDC_WANT_IEC_60559_TYPES_EXT__ = 1
- const m___STDC_WANT_LIB_EXT2__ = 1
- const m___STDC_WANT_MATH_SPEC_FUNCS__ = 1
- const m___STDC__ = 1
- const m___UCHAR_MAX = 0xff
- const m___UINT16_FMTX__ = "hX"
- const m___UINT16_FMTo__ = "ho"
- const m___UINT16_FMTu__ = "hu"
- const m___UINT16_FMTx__ = "hx"
- const m___UINT16_MAX__ = 65535
- const m___UINT32_C_SUFFIX__ = "U"
- const m___UINT32_FMTX__ = "X"
- const m___UINT32_FMTo__ = "o"
- const m___UINT32_FMTu__ = "u"
- const m___UINT32_FMTx__ = "x"
- const m___UINT32_MAX__ = 4294967295
- const m___UINT64_C_SUFFIX__ = "UL"
- const m___UINT64_FMTX__ = "lX"
- const m___UINT64_FMTo__ = "lo"
- const m___UINT64_FMTu__ = "lu"
- const m___UINT64_FMTx__ = "lx"
- const m___UINT64_MAX__ = 18446744073709551615
- const m___UINT8_FMTX__ = "hhX"
- const m___UINT8_FMTo__ = "hho"
- const m___UINT8_FMTu__ = "hhu"
- const m___UINT8_FMTx__ = "hhx"
- const m___UINT8_MAX__ = 255
- const m___UINTMAX_C_SUFFIX__ = "UL"
- const m___UINTMAX_FMTX__ = "lX"
- const m___UINTMAX_FMTo__ = "lo"
- const m___UINTMAX_FMTu__ = "lu"
- const m___UINTMAX_FMTx__ = "lx"
- const m___UINTMAX_MAX__ = 18446744073709551615
- const m___UINTMAX_WIDTH__ = 64
- const m___UINTPTR_FMTX__ = "lX"
- const m___UINTPTR_FMTo__ = "lo"
- const m___UINTPTR_FMTu__ = "lu"
- const m___UINTPTR_FMTx__ = "lx"
- const m___UINTPTR_MAX__ = 18446744073709551615
- const m___UINTPTR_WIDTH__ = 64
- const m___UINT_FAST16_FMTX__ = "hX"
- const m___UINT_FAST16_FMTo__ = "ho"
- const m___UINT_FAST16_FMTu__ = "hu"
- const m___UINT_FAST16_FMTx__ = "hx"
- const m___UINT_FAST16_MAX__ = 65535
- const m___UINT_FAST32_FMTX__ = "X"
- const m___UINT_FAST32_FMTo__ = "o"
- const m___UINT_FAST32_FMTu__ = "u"
- const m___UINT_FAST32_FMTx__ = "x"
- const m___UINT_FAST32_MAX__ = 4294967295
- const m___UINT_FAST64_FMTX__ = "lX"
- const m___UINT_FAST64_FMTo__ = "lo"
- const m___UINT_FAST64_FMTu__ = "lu"
- const m___UINT_FAST64_FMTx__ = "lx"
- const m___UINT_FAST64_MAX__ = 18446744073709551615
- const m___UINT_FAST8_FMTX__ = "hhX"
- const m___UINT_FAST8_FMTo__ = "hho"
- const m___UINT_FAST8_FMTu__ = "hhu"
- const m___UINT_FAST8_FMTx__ = "hhx"
- const m___UINT_FAST8_MAX__ = 255
- const m___UINT_LEAST16_FMTX__ = "hX"
- const m___UINT_LEAST16_FMTo__ = "ho"
- const m___UINT_LEAST16_FMTu__ = "hu"
- const m___UINT_LEAST16_FMTx__ = "hx"
- const m___UINT_LEAST16_MAX__ = 65535
- const m___UINT_LEAST32_FMTX__ = "X"
- const m___UINT_LEAST32_FMTo__ = "o"
- const m___UINT_LEAST32_FMTu__ = "u"
- const m___UINT_LEAST32_FMTx__ = "x"
- const m___UINT_LEAST32_MAX__ = 4294967295
- const m___UINT_LEAST64_FMTX__ = "lX"
- const m___UINT_LEAST64_FMTo__ = "lo"
- const m___UINT_LEAST64_FMTu__ = "lu"
- const m___UINT_LEAST64_FMTx__ = "lx"
- const m___UINT_LEAST64_MAX__ = 18446744073709551615
- const m___UINT_LEAST8_FMTX__ = "hhX"
- const m___UINT_LEAST8_FMTo__ = "hho"
- const m___UINT_LEAST8_FMTu__ = "hhu"
- const m___UINT_LEAST8_FMTx__ = "hhx"
- const m___UINT_LEAST8_MAX__ = 255
- const m___UINT_MAX = 0xffffffff
- const m___ULLONG_MAX = "0xffffffffffffffffU"
- const m___ULONG_MAX = 0xffffffffffffffff
- const m___UQUAD_MAX = "__ULONG_MAX"
- const m___USHRT_MAX = 0xffff
- const m___VERSION__ = "FreeBSD Clang 18.1.6 (https://github.com/llvm/llvm-project.git llvmorg-18.1.6-0-g1118c2e05e67)"
- const m___WCHAR_MAX = "__INT_MAX"
- const m___WCHAR_MAX__ = 2147483647
- const m___WCHAR_MIN = "__INT_MIN"
- const m___WCHAR_TYPE__ = "int"
- const m___WCHAR_WIDTH__ = 32
- const m___WINT_MAX__ = 2147483647
- const m___WINT_TYPE__ = "int"
- const m___WINT_WIDTH__ = 32
- const m___WORDSIZE = 64
- const m___WORD_BIT = 32
- const m___XSI_VISIBLE = 700
- const m___amd64 = 1
- const m___amd64__ = 1
- const m___clang__ = 1
- const m___clang_literal_encoding__ = "UTF-8"
- const m___clang_major__ = 18
- const m___clang_minor__ = 1
- const m___clang_patchlevel__ = 6
- const m___clang_version__ = "18.1.6 (https://github.com/llvm/llvm-project.git llvmorg-18.1.6-0-g1118c2e05e67)"
- const m___clang_wide_literal_encoding__ = "UTF-32"
- const m___code_model_small__ = 1
- const m___const = "const"
- const m___has_extension = "__has_feature"
- const m___k8 = 1
- const m___k8__ = 1
- const m___llvm__ = 1
- const m___restrict = "restrict"
- const m___restrict_arr = "restrict"
- const m___signed = "signed"
- const m___tune_k8__ = 1
- const m___unix = 1
- const m___unix__ = 1
- const m___volatile = "volatile"
- const m___writeonly = "__unused"
- const m___x86_64 = 1
- const m___x86_64__ = 1
- const m_fds_bits = "__fds_bits"
- const m_unix = 1
- type t__builtin_va_list = uintptr
- type t__predefined_size_t = uint64
- type t__predefined_wchar_t = int32
- type t__predefined_ptrdiff_t = int64
- type t__int8_t = int8
- type t__uint8_t = uint8
- type t__int16_t = int16
- type t__uint16_t = uint16
- type t__int32_t = int32
- type t__uint32_t = uint32
- type t__int64_t = int64
- type t__uint64_t = uint64
- type t__int_least8_t = int8
- type t__int_least16_t = int16
- type t__int_least32_t = int32
- type t__int_least64_t = int64
- type t__intmax_t = int64
- type t__uint_least8_t = uint8
- type t__uint_least16_t = uint16
- type t__uint_least32_t = uint32
- type t__uint_least64_t = uint64
- type t__uintmax_t = uint64
- type t__intptr_t = int64
- type t__intfptr_t = int64
- type t__uintptr_t = uint64
- type t__uintfptr_t = uint64
- type t__vm_offset_t = uint64
- type t__vm_size_t = uint64
- type t__size_t = uint64
- type t__ssize_t = int64
- type t__ptrdiff_t = int64
- type t__clock_t = int32
- type t__critical_t = int64
- type t__double_t = float64
- type t__float_t = float32
- type t__int_fast8_t = int32
- type t__int_fast16_t = int32
- type t__int_fast32_t = int32
- type t__int_fast64_t = int64
- type t__register_t = int64
- type t__segsz_t = int64
- type t__time_t = int64
- type t__uint_fast8_t = uint32
- type t__uint_fast16_t = uint32
- type t__uint_fast32_t = uint32
- type t__uint_fast64_t = uint64
- type t__u_register_t = uint64
- type t__vm_paddr_t = uint64
- type T___wchar_t = int32
- type t__blksize_t = int32
- type t__blkcnt_t = int64
- type t__clockid_t = int32
- type t__fflags_t = uint32
- type t__fsblkcnt_t = uint64
- type t__fsfilcnt_t = uint64
- type t__gid_t = uint32
- type t__id_t = int64
- type t__ino_t = uint64
- type t__key_t = int64
- type t__lwpid_t = int32
- type t__mode_t = uint16
- type t__accmode_t = int32
- type t__nl_item = int32
- type t__nlink_t = uint64
- type t__off_t = int64
- type t__off64_t = int64
- type t__pid_t = int32
- type t__sbintime_t = int64
- type t__rlim_t = int64
- type t__sa_family_t = uint8
- type t__socklen_t = uint32
- type t__suseconds_t = int64
- type t__timer_t = uintptr
- type t__mqd_t = uintptr
- type t__uid_t = uint32
- type t__useconds_t = uint32
- type t__cpuwhich_t = int32
- type t__cpulevel_t = int32
- type t__cpusetid_t = int32
- type t__daddr_t = int64
- type t__ct_rune_t = int32
- type t__rune_t = int32
- type t__wint_t = int32
- type t__char16_t = uint16
- type t__char32_t = uint32
- type t__max_align_t = struct {
- F__max_align1 int64
- F__max_align2 float64
- }
- type t__dev_t = uint64
- type t__fixpt_t = uint32
- type t__mbstate_t = struct {
- F_mbstateL [0]t__int64_t
- F__mbstate8 [128]int8
- }
- type t__rman_res_t = uint64
- type t__va_list = uintptr
- type t__gnuc_va_list = uintptr
- type Tpthread_once = struct {
- Fstate int32
- Fmutex Tpthread_mutex_t
- }
- type Tpthread_t = uintptr
- type Tpthread_attr_t = uintptr
- type Tpthread_mutex_t = uintptr
- type Tpthread_mutexattr_t = uintptr
- type Tpthread_cond_t = uintptr
- type Tpthread_condattr_t = uintptr
- type Tpthread_key_t = int32
- type Tpthread_once_t = struct {
- Fstate int32
- Fmutex Tpthread_mutex_t
- }
- type Tpthread_rwlock_t = uintptr
- type Tpthread_rwlockattr_t = uintptr
- type Tpthread_barrier_t = uintptr
- type Tpthread_barrierattr_t = uintptr
- type Tpthread_spinlock_t = uintptr
- type Tpthread_addr_t = uintptr
- type Tpthread_startroutine_t = uintptr
- type Tu_char = uint8
- type Tu_short = uint16
- type Tu_int = uint32
- type Tu_long = uint64
- type Tushort = uint16
- type Tuint = uint32
- type Tint8_t = int8
- type Tint16_t = int16
- type Tint32_t = int32
- type Tint64_t = int64
- type Tuint8_t = uint8
- type Tuint16_t = uint16
- type Tuint32_t = uint32
- type Tuint64_t = uint64
- type Tintptr_t = int64
- type Tuintptr_t = uint64
- type Tintmax_t = int64
- type Tuintmax_t = uint64
- type Tu_int8_t = uint8
- type Tu_int16_t = uint16
- type Tu_int32_t = uint32
- type Tu_int64_t = uint64
- type Tu_quad_t = uint64
- type Tquad_t = int64
- type Tqaddr_t = uintptr
- type Tcaddr_t = uintptr
- type Tc_caddr_t = uintptr
- type Tblksize_t = int32
- type Tcpuwhich_t = int32
- type Tcpulevel_t = int32
- type Tcpusetid_t = int32
- type Tblkcnt_t = int64
- type Tclock_t = int32
- type Tclockid_t = int32
- type Tcritical_t = int64
- type Tdaddr_t = int64
- type Tdev_t = uint64
- type Tfflags_t = uint32
- type Tfixpt_t = uint32
- type Tfsblkcnt_t = uint64
- type Tfsfilcnt_t = uint64
- type Tgid_t = uint32
- type Tin_addr_t = uint32
- type Tin_port_t = uint16
- type Tid_t = int64
- type Tino_t = uint64
- type Tkey_t = int64
- type Tlwpid_t = int32
- type Tmode_t = uint16
- type Taccmode_t = int32
- type Tnlink_t = uint64
- type Toff_t = int64
- type Toff64_t = int64
- type Tpid_t = int32
- type Tregister_t = int64
- type Trlim_t = int64
- type Tsbintime_t = int64
- type Tsegsz_t = int64
- type Tsize_t = uint64
- type Tssize_t = int64
- type Tsuseconds_t = int64
- type Ttime_t = int64
- type Ttimer_t = uintptr
- type Tmqd_t = uintptr
- type Tu_register_t = uint64
- type Tuid_t = uint32
- type Tuseconds_t = uint32
- type Tcap_ioctl_t = uint64
- type Tkpaddr_t = uint64
- type Tkvaddr_t = uint64
- type Tksize_t = uint64
- type Tkssize_t = int64
- type Tvm_offset_t = uint64
- type Tvm_ooffset_t = uint64
- type Tvm_paddr_t = uint64
- type Tvm_pindex_t = uint64
- type Tvm_size_t = uint64
- type Trman_res_t = uint64
- type Tsyscallarg_t = int64
- type t__sigset_t = struct {
- F__bits [4]t__uint32_t
- }
- type t__sigset = t__sigset_t
- type Ttimeval = struct {
- Ftv_sec Ttime_t
- Ftv_usec Tsuseconds_t
- }
- type Ttimespec = struct {
- Ftv_sec Ttime_t
- Ftv_nsec int64
- }
- type Titimerspec = struct {
- Fit_interval Ttimespec
- Fit_value Ttimespec
- }
- type t__fd_mask = uint64
- type Tfd_mask = uint64
- type Tsigset_t = struct {
- F__bits [4]t__uint32_t
- }
- type Tfd_set = struct {
- F__fds_bits [16]t__fd_mask
- }
- type Tlocale_t = uintptr
- type Trsize_t = uint64
- type Terrno_t = int32
- type Tflock = struct {
- Fl_start Toff_t
- Fl_len Toff_t
- Fl_pid Tpid_t
- Fl_type int16
- Fl_whence int16
- Fl_sysid int32
- }
- type t__oflock = struct {
- Fl_start Toff_t
- Fl_len Toff_t
- Fl_pid Tpid_t
- Fl_type int16
- Fl_whence int16
- }
- type Tspacectl_range = struct {
- Fr_offset Toff_t
- Fr_len Toff_t
- }
- type Tcrypt_data = struct {
- Finitialized int32
- F__buf [256]int8
- }
- type Ttimezone = struct {
- Ftz_minuteswest int32
- Ftz_dsttime int32
- }
- type Tbintime = struct {
- Fsec Ttime_t
- Ffrac Tuint64_t
- }
- type Titimerval = struct {
- Fit_interval Ttimeval
- Fit_value Ttimeval
- }
- type Tclockinfo = struct {
- Fhz int32
- Ftick int32
- Fspare int32
- Fstathz int32
- Fprofhz int32
- }
- type Ttm = struct {
- Ftm_sec int32
- Ftm_min int32
- Ftm_hour int32
- Ftm_mday int32
- Ftm_mon int32
- Ftm_year int32
- Ftm_wday int32
- Ftm_yday int32
- Ftm_isdst int32
- Ftm_gmtoff int64
- Ftm_zone uintptr
- }
- type TXID = uint64
- type TMask = uint64
- type TAtom = uint64
- type TVisualID = uint64
- type TTime = uint64
- type TWindow = uint64
- type TDrawable = uint64
- type TFont = uint64
- type TPixmap = uint64
- type TCursor = uint64
- type TColormap = uint64
- type TGContext = uint64
- type TKeySym = uint64
- type TKeyCode = uint8
- type TINT64 = int64
- type TINT32 = int32
- type TINT16 = int16
- type TINT8 = int8
- type TCARD64 = uint64
- type TCARD32 = uint32
- type TCARD16 = uint16
- type TCARD8 = uint8
- type TBITS32 = uint32
- type TBITS16 = uint16
- type TBYTE = uint8
- type TBOOL = uint8
- type TxdmOpCode = int32
- const _BROADCAST_QUERY = 1
- const _QUERY = 2
- const _INDIRECT_QUERY = 3
- const _FORWARD_QUERY = 4
- const _WILLING = 5
- const _UNWILLING = 6
- const _REQUEST = 7
- const _ACCEPT = 8
- const _DECLINE = 9
- const _MANAGE = 10
- const _REFUSE = 11
- const _FAILED = 12
- const _KEEPALIVE = 13
- const _ALIVE = 14
- type Txdmcp_states = int32
- const _XDM_QUERY = 0
- const _XDM_BROADCAST = 1
- const _XDM_INDIRECT = 2
- const _XDM_COLLECT_QUERY = 3
- const _XDM_COLLECT_BROADCAST_QUERY = 4
- const _XDM_COLLECT_INDIRECT_QUERY = 5
- const _XDM_START_CONNECTION = 6
- const _XDM_AWAIT_REQUEST_RESPONSE = 7
- const _XDM_AWAIT_MANAGE_RESPONSE = 8
- const _XDM_MANAGE = 9
- const _XDM_RUN_SESSION = 10
- const _XDM_OFF = 11
- const _XDM_AWAIT_USER_INPUT = 12
- const _XDM_KEEPALIVE = 13
- const _XDM_AWAIT_ALIVE_RESPONSE = 14
- const _XDM_KEEP_ME_LAST = 15
- type TCARD8Ptr = uintptr
- type TCARD16Ptr = uintptr
- type TCARD32Ptr = uintptr
- type TARRAY8 = struct {
- Flength TCARD16
- Fdata TCARD8Ptr
- }
- type T_ARRAY8 = TARRAY8
- type TARRAY8Ptr = uintptr
- type TARRAY16 = struct {
- Flength TCARD8
- Fdata TCARD16Ptr
- }
- type T_ARRAY16 = TARRAY16
- type TARRAY16Ptr = uintptr
- type TARRAY32 = struct {
- Flength TCARD8
- Fdata TCARD32Ptr
- }
- type T_ARRAY32 = TARRAY32
- type TARRAY32Ptr = uintptr
- type TARRAYofARRAY8 = struct {
- Flength TCARD8
- Fdata TARRAY8Ptr
- }
- type T_ARRAYofARRAY8 = TARRAYofARRAY8
- type TARRAYofARRAY8Ptr = uintptr
- type TXdmcpHeader = struct {
- Fversion TCARD16
- Fopcode TCARD16
- Flength TCARD16
- }
- type T_XdmcpHeader = TXdmcpHeader
- type TXdmcpHeaderPtr = uintptr
- type TXdmcpBuffer = struct {
- Fdata uintptr
- Fsize int32
- Fpointer int32
- Fcount int32
- }
- type T_XdmcpBuffer = TXdmcpBuffer
- type TXdmcpBufferPtr = uintptr
- type TXdmAuthKeyRec = struct {
- Fdata [8]TBYTE
- }
- type T_XdmAuthKey = TXdmAuthKeyRec
- type TXdmAuthKeyPtr = uintptr
- type TXdmcpNetaddr = uintptr
- type Tint_least8_t = int8
- type Tint_least16_t = int16
- type Tint_least32_t = int32
- type Tint_least64_t = int64
- type Tuint_least8_t = uint8
- type Tuint_least16_t = uint16
- type Tuint_least32_t = uint32
- type Tuint_least64_t = uint64
- type Tint_fast8_t = int32
- type Tint_fast16_t = int32
- type Tint_fast32_t = int32
- type Tint_fast64_t = int64
- type Tuint_fast8_t = uint32
- type Tuint_fast16_t = uint32
- type Tuint_fast32_t = uint32
- type Tuint_fast64_t = uint64
- type Trune_t = int32
- type Twchar_t = int32
- type Tdiv_t = struct {
- Fquot int32
- Frem int32
- }
- type Tldiv_t = struct {
- Fquot int64
- Frem int64
- }
- type Tlldiv_t = struct {
- Fquot int64
- Frem int64
- }
- type Tconstraint_handler_t = uintptr
- // C documentation
- //
- // /*
- // * This variant of malloc does not return NULL if zero size is passed into.
- // */
- func _xmalloc(tls *libc.TLS, size Tsize_t) (r uintptr) {
- var v1 uint64
- _ = v1
- if size != 0 {
- v1 = size
- } else {
- v1 = uint64(1)
- }
- return libc.Xmalloc(tls, v1)
- }
- // C documentation
- //
- // /*
- // * This variant of calloc does not return NULL if zero count is passed into.
- // */
- func _xcalloc(tls *libc.TLS, n Tsize_t, size Tsize_t) (r uintptr) {
- var v1 uint64
- _ = v1
- if n != 0 {
- v1 = n
- } else {
- v1 = uint64(1)
- }
- return libc.Xcalloc(tls, v1, size)
- }
- // C documentation
- //
- // /*
- // * This variant of realloc does not return NULL if zero size is passed into
- // */
- func _xrealloc(tls *libc.TLS, ptr uintptr, size Tsize_t) (r uintptr) {
- var v1 uint64
- _ = v1
- if size != 0 {
- v1 = size
- } else {
- v1 = uint64(1)
- }
- return libc.Xrealloc(tls, ptr, v1)
- }
- func XXdmcpAllocARRAY8(tls *libc.TLS, array TARRAY8Ptr, length int32) (r int32) {
- /* length defined in ARRAY8 struct is a CARD16 (not CARD8 like the rest) */
- if length > int32(m_UINT16_MAX) || length < 0 {
- (*T_ARRAY8)(unsafe.Pointer(array)).Fdata = libc.UintptrFromInt32(0)
- } else {
- (*T_ARRAY8)(unsafe.Pointer(array)).Fdata = _xmalloc(tls, libc.Uint64FromInt32(length)*uint64(1))
- }
- if (*T_ARRAY8)(unsafe.Pointer(array)).Fdata == libc.UintptrFromInt32(0) {
- (*T_ARRAY8)(unsafe.Pointer(array)).Flength = uint16(0)
- return m_FALSE
- }
- (*T_ARRAY8)(unsafe.Pointer(array)).Flength = libc.Uint16FromInt32(length)
- return int32(m_TRUE)
- }
- func XXdmcpAllocARRAY16(tls *libc.TLS, array TARRAY16Ptr, length int32) (r int32) {
- /* length defined in ARRAY16 struct is a CARD8 */
- if length > int32(m_UINT8_MAX) || length < 0 {
- (*T_ARRAY16)(unsafe.Pointer(array)).Fdata = libc.UintptrFromInt32(0)
- } else {
- (*T_ARRAY16)(unsafe.Pointer(array)).Fdata = _xmalloc(tls, libc.Uint64FromInt32(length)*uint64(2))
- }
- if (*T_ARRAY16)(unsafe.Pointer(array)).Fdata == libc.UintptrFromInt32(0) {
- (*T_ARRAY16)(unsafe.Pointer(array)).Flength = uint8(0)
- return m_FALSE
- }
- (*T_ARRAY16)(unsafe.Pointer(array)).Flength = libc.Uint8FromInt32(length)
- return int32(m_TRUE)
- }
- func XXdmcpAllocARRAY32(tls *libc.TLS, array TARRAY32Ptr, length int32) (r int32) {
- /* length defined in ARRAY32 struct is a CARD8 */
- if length > int32(m_UINT8_MAX) || length < 0 {
- (*T_ARRAY32)(unsafe.Pointer(array)).Fdata = libc.UintptrFromInt32(0)
- } else {
- (*T_ARRAY32)(unsafe.Pointer(array)).Fdata = _xmalloc(tls, libc.Uint64FromInt32(length)*uint64(4))
- }
- if (*T_ARRAY32)(unsafe.Pointer(array)).Fdata == libc.UintptrFromInt32(0) {
- (*T_ARRAY32)(unsafe.Pointer(array)).Flength = uint8(0)
- return m_FALSE
- }
- (*T_ARRAY32)(unsafe.Pointer(array)).Flength = libc.Uint8FromInt32(length)
- return int32(m_TRUE)
- }
- func XXdmcpAllocARRAYofARRAY8(tls *libc.TLS, array TARRAYofARRAY8Ptr, length int32) (r int32) {
- /* length defined in ARRAYofARRAY8 struct is a CARD8 */
- if length > int32(m_UINT8_MAX) || length < 0 {
- (*T_ARRAYofARRAY8)(unsafe.Pointer(array)).Fdata = libc.UintptrFromInt32(0)
- } else {
- /*
- * Use calloc to ensure the pointers are cleared out so we
- * don't try to free garbage if XdmcpDisposeARRAYofARRAY8()
- * is called before the caller sets them to valid pointers.
- */
- (*T_ARRAYofARRAY8)(unsafe.Pointer(array)).Fdata = _xcalloc(tls, libc.Uint64FromInt32(length), uint64(16))
- }
- if (*T_ARRAYofARRAY8)(unsafe.Pointer(array)).Fdata == libc.UintptrFromInt32(0) {
- (*T_ARRAYofARRAY8)(unsafe.Pointer(array)).Flength = uint8(0)
- return m_FALSE
- }
- (*T_ARRAYofARRAY8)(unsafe.Pointer(array)).Flength = libc.Uint8FromInt32(length)
- return int32(m_TRUE)
- }
- func XXdmcpARRAY8Equal(tls *libc.TLS, array1 TARRAY8Ptr, array2 TARRAY8Ptr) (r int32) {
- if libc.Int32FromUint16((*T_ARRAY8)(unsafe.Pointer(array1)).Flength) != libc.Int32FromUint16((*T_ARRAY8)(unsafe.Pointer(array2)).Flength) {
- return m_FALSE
- }
- if libc.Xmemcmp(tls, (*T_ARRAY8)(unsafe.Pointer(array1)).Fdata, (*T_ARRAY8)(unsafe.Pointer(array2)).Fdata, uint64((*T_ARRAY8)(unsafe.Pointer(array1)).Flength)) != 0 {
- return m_FALSE
- }
- return int32(m_TRUE)
- }
- func XXdmcpCopyARRAY8(tls *libc.TLS, src TARRAY8Ptr, dst TARRAY8Ptr) (r int32) {
- if !(XXdmcpAllocARRAY8(tls, dst, libc.Int32FromUint16((*T_ARRAY8)(unsafe.Pointer(src)).Flength)) != 0) {
- return m_FALSE
- }
- libc.Xmemcpy(tls, (*T_ARRAY8)(unsafe.Pointer(dst)).Fdata, (*T_ARRAY8)(unsafe.Pointer(src)).Fdata, uint64((*T_ARRAY8)(unsafe.Pointer(src)).Flength)*uint64(1))
- return int32(m_TRUE)
- }
- func XXdmcpReallocARRAY8(tls *libc.TLS, array TARRAY8Ptr, length int32) (r int32) {
- var newData TCARD8Ptr
- _ = newData
- /* length defined in ARRAY8 struct is a CARD16 (not CARD8 like the rest) */
- if length > int32(m_UINT16_MAX) || length < 0 {
- return m_FALSE
- }
- newData = _xrealloc(tls, (*T_ARRAY8)(unsafe.Pointer(array)).Fdata, libc.Uint64FromInt32(length)*uint64(1))
- if !(newData != 0) {
- return m_FALSE
- }
- (*T_ARRAY8)(unsafe.Pointer(array)).Flength = libc.Uint16FromInt32(length)
- (*T_ARRAY8)(unsafe.Pointer(array)).Fdata = newData
- return int32(m_TRUE)
- }
- func XXdmcpReallocARRAYofARRAY8(tls *libc.TLS, array TARRAYofARRAY8Ptr, length int32) (r int32) {
- var newData TARRAY8Ptr
- _ = newData
- /* length defined in ARRAYofARRAY8 struct is a CARD8 */
- if length > int32(m_UINT8_MAX) || length < 0 {
- return m_FALSE
- }
- newData = _xrealloc(tls, (*T_ARRAYofARRAY8)(unsafe.Pointer(array)).Fdata, libc.Uint64FromInt32(length)*uint64(16))
- if !(newData != 0) {
- return m_FALSE
- }
- if length > libc.Int32FromUint8((*T_ARRAYofARRAY8)(unsafe.Pointer(array)).Flength) {
- libc.Xmemset(tls, newData+uintptr((*T_ARRAYofARRAY8)(unsafe.Pointer(array)).Flength)*16, 0, libc.Uint64FromInt32(length-libc.Int32FromUint8((*T_ARRAYofARRAY8)(unsafe.Pointer(array)).Flength))*uint64(16))
- }
- (*T_ARRAYofARRAY8)(unsafe.Pointer(array)).Flength = libc.Uint8FromInt32(length)
- (*T_ARRAYofARRAY8)(unsafe.Pointer(array)).Fdata = newData
- return int32(m_TRUE)
- }
- func XXdmcpReallocARRAY16(tls *libc.TLS, array TARRAY16Ptr, length int32) (r int32) {
- var newData TCARD16Ptr
- _ = newData
- /* length defined in ARRAY16 struct is a CARD8 */
- if length > int32(m_UINT8_MAX) || length < 0 {
- return m_FALSE
- }
- newData = _xrealloc(tls, (*T_ARRAY16)(unsafe.Pointer(array)).Fdata, libc.Uint64FromInt32(length)*uint64(2))
- if !(newData != 0) {
- return m_FALSE
- }
- (*T_ARRAY16)(unsafe.Pointer(array)).Flength = libc.Uint8FromInt32(length)
- (*T_ARRAY16)(unsafe.Pointer(array)).Fdata = newData
- return int32(m_TRUE)
- }
- func XXdmcpReallocARRAY32(tls *libc.TLS, array TARRAY32Ptr, length int32) (r int32) {
- var newData TCARD32Ptr
- _ = newData
- /* length defined in ARRAY32 struct is a CARD8 */
- if length > int32(m_UINT8_MAX) || length < 0 {
- return m_FALSE
- }
- newData = _xrealloc(tls, (*T_ARRAY32)(unsafe.Pointer(array)).Fdata, libc.Uint64FromInt32(length)*uint64(4))
- if !(newData != 0) {
- return m_FALSE
- }
- (*T_ARRAY32)(unsafe.Pointer(array)).Flength = libc.Uint8FromInt32(length)
- (*T_ARRAY32)(unsafe.Pointer(array)).Fdata = newData
- return int32(m_TRUE)
- }
- func XXdmcpDisposeARRAY8(tls *libc.TLS, array TARRAY8Ptr) {
- libc.Xfree(tls, (*T_ARRAY8)(unsafe.Pointer(array)).Fdata)
- (*T_ARRAY8)(unsafe.Pointer(array)).Flength = uint16(0)
- (*T_ARRAY8)(unsafe.Pointer(array)).Fdata = libc.UintptrFromInt32(0)
- }
- func XXdmcpDisposeARRAY16(tls *libc.TLS, array TARRAY16Ptr) {
- libc.Xfree(tls, (*T_ARRAY16)(unsafe.Pointer(array)).Fdata)
- (*T_ARRAY16)(unsafe.Pointer(array)).Flength = uint8(0)
- (*T_ARRAY16)(unsafe.Pointer(array)).Fdata = libc.UintptrFromInt32(0)
- }
- func XXdmcpDisposeARRAY32(tls *libc.TLS, array TARRAY32Ptr) {
- libc.Xfree(tls, (*T_ARRAY32)(unsafe.Pointer(array)).Fdata)
- (*T_ARRAY32)(unsafe.Pointer(array)).Flength = uint8(0)
- (*T_ARRAY32)(unsafe.Pointer(array)).Fdata = libc.UintptrFromInt32(0)
- }
- func XXdmcpDisposeARRAYofARRAY8(tls *libc.TLS, array TARRAYofARRAY8Ptr) {
- var i uint32
- _ = i
- if (*T_ARRAYofARRAY8)(unsafe.Pointer(array)).Fdata != libc.UintptrFromInt32(0) {
- i = uint32(0)
- for {
- if !(i < uint32((*T_ARRAYofARRAY8)(unsafe.Pointer(array)).Flength)) {
- break
- }
- XXdmcpDisposeARRAY8(tls, (*T_ARRAYofARRAY8)(unsafe.Pointer(array)).Fdata+uintptr(i)*16)
- goto _1
- _1:
- ;
- i++
- }
- libc.Xfree(tls, (*T_ARRAYofARRAY8)(unsafe.Pointer(array)).Fdata)
- }
- (*T_ARRAYofARRAY8)(unsafe.Pointer(array)).Flength = uint8(0)
- (*T_ARRAYofARRAY8)(unsafe.Pointer(array)).Fdata = libc.UintptrFromInt32(0)
- }
- const m_AF_APPLETALK = 16
- const m_AF_ARP = 35
- const m_AF_ATM = 30
- const m_AF_BLUETOOTH = 36
- const m_AF_CCITT = 10
- const m_AF_CHAOS = 5
- const m_AF_CNT = 21
- const m_AF_COIP = 20
- const m_AF_DATAKIT = 9
- const m_AF_DECnet = 12
- const m_AF_DIVERT = 44
- const m_AF_DLI = 13
- const m_AF_E164 = "AF_ISDN"
- const m_AF_ECMA = 8
- const m_AF_HYLINK = 15
- const m_AF_HYPERV = 43
- const m_AF_IEEE80211 = 37
- const m_AF_IMPLINK = 3
- const m_AF_INET = 2
- const m_AF_INET6 = 28
- const m_AF_INET6_SDP = 42
- const m_AF_INET_SDP = 40
- const m_AF_IPX = 23
- const m_AF_ISDN = 26
- const m_AF_ISO = 7
- const m_AF_LAT = 14
- const m_AF_LINK = 18
- const m_AF_LOCAL = "AF_UNIX"
- const m_AF_MAX = 44
- const m_AF_NATM = 29
- const m_AF_NETBIOS = 6
- const m_AF_NETGRAPH = 32
- const m_AF_NETLINK = 38
- const m_AF_OSI = "AF_ISO"
- const m_AF_PUP = 4
- const m_AF_ROUTE = 17
- const m_AF_SCLUSTER = 34
- const m_AF_SIP = 24
- const m_AF_SLOW = 33
- const m_AF_SNA = 11
- const m_AF_UNIX = 1
- const m_AF_UNSPEC = 0
- const m_AF_VENDOR00 = 39
- const m_AF_VENDOR01 = 41
- const m_AF_VENDOR03 = 45
- const m_AF_VENDOR04 = 47
- const m_AF_VENDOR05 = 49
- const m_AF_VENDOR06 = 51
- const m_AF_VENDOR07 = 53
- const m_AF_VENDOR08 = 55
- const m_AF_VENDOR09 = 57
- const m_AF_VENDOR10 = 59
- const m_AF_VENDOR11 = 61
- const m_AF_VENDOR12 = 63
- const m_AF_VENDOR13 = 65
- const m_AF_VENDOR14 = 67
- const m_AF_VENDOR15 = 69
- const m_AF_VENDOR16 = 71
- const m_AF_VENDOR17 = 73
- const m_AF_VENDOR18 = 75
- const m_AF_VENDOR19 = 77
- const m_AF_VENDOR20 = 79
- const m_AF_VENDOR21 = 81
- const m_AF_VENDOR22 = 83
- const m_AF_VENDOR23 = 85
- const m_AF_VENDOR24 = 87
- const m_AF_VENDOR25 = 89
- const m_AF_VENDOR26 = 91
- const m_AF_VENDOR27 = 93
- const m_AF_VENDOR28 = 95
- const m_AF_VENDOR29 = 97
- const m_AF_VENDOR30 = 99
- const m_AF_VENDOR31 = 101
- const m_AF_VENDOR32 = 103
- const m_AF_VENDOR33 = 105
- const m_AF_VENDOR34 = 107
- const m_AF_VENDOR35 = 109
- const m_AF_VENDOR36 = 111
- const m_AF_VENDOR37 = 113
- const m_AF_VENDOR38 = 115
- const m_AF_VENDOR39 = 117
- const m_AF_VENDOR40 = 119
- const m_AF_VENDOR41 = 121
- const m_AF_VENDOR42 = 123
- const m_AF_VENDOR43 = 125
- const m_AF_VENDOR44 = 127
- const m_AF_VENDOR45 = 129
- const m_AF_VENDOR46 = 131
- const m_AF_VENDOR47 = 133
- const m_CMGROUP_MAX = 16
- const m_MSG_CMSG_CLOEXEC = 0x00040000
- const m_MSG_COMPAT = 0x00008000
- const m_MSG_CTRUNC = 0x00000020
- const m_MSG_DONTROUTE = 0x00000004
- const m_MSG_DONTWAIT = 0x00000080
- const m_MSG_EOF = 0x00000100
- const m_MSG_EOR = 0x00000008
- const m_MSG_NBIO = 0x00004000
- const m_MSG_NOSIGNAL = 0x00020000
- const m_MSG_NOTIFICATION = 0x00002000
- const m_MSG_OOB = 0x00000001
- const m_MSG_PEEK = 0x00000002
- const m_MSG_TRUNC = 0x00000010
- const m_MSG_WAITALL = 0x00000040
- const m_MSG_WAITFORONE = 0x00080000
- const m_NET_RT_DUMP = 1
- const m_NET_RT_FLAGS = 2
- const m_NET_RT_IFLIST = 3
- const m_NET_RT_IFLISTL = 5
- const m_NET_RT_IFMALIST = 4
- const m_NET_RT_NHGRP = 7
- const m_NET_RT_NHOP = 6
- const m_PF_APPLETALK = "AF_APPLETALK"
- const m_PF_ARP = "AF_ARP"
- const m_PF_ATM = "AF_ATM"
- const m_PF_BLUETOOTH = "AF_BLUETOOTH"
- const m_PF_CCITT = "AF_CCITT"
- const m_PF_CHAOS = "AF_CHAOS"
- const m_PF_CNT = "AF_CNT"
- const m_PF_COIP = "AF_COIP"
- const m_PF_DATAKIT = "AF_DATAKIT"
- const m_PF_DECnet = "AF_DECnet"
- const m_PF_DIVERT = "AF_DIVERT"
- const m_PF_DLI = "AF_DLI"
- const m_PF_ECMA = "AF_ECMA"
- const m_PF_HYLINK = "AF_HYLINK"
- const m_PF_IEEE80211 = "AF_IEEE80211"
- const m_PF_IMPLINK = "AF_IMPLINK"
- const m_PF_INET = "AF_INET"
- const m_PF_INET6 = "AF_INET6"
- const m_PF_INET6_SDP = "AF_INET6_SDP"
- const m_PF_INET_SDP = "AF_INET_SDP"
- const m_PF_IPX = "AF_IPX"
- const m_PF_ISDN = "AF_ISDN"
- const m_PF_ISO = "AF_ISO"
- const m_PF_KEY = "pseudo_AF_KEY"
- const m_PF_LAT = "AF_LAT"
- const m_PF_LINK = "AF_LINK"
- const m_PF_LOCAL = "AF_LOCAL"
- const m_PF_MAX = "AF_MAX"
- const m_PF_NATM = "AF_NATM"
- const m_PF_NETBIOS = "AF_NETBIOS"
- const m_PF_NETGRAPH = "AF_NETGRAPH"
- const m_PF_NETLINK = "AF_NETLINK"
- const m_PF_OSI = "AF_ISO"
- const m_PF_PIP = "pseudo_AF_PIP"
- const m_PF_PUP = "AF_PUP"
- const m_PF_ROUTE = "AF_ROUTE"
- const m_PF_RTIP = "pseudo_AF_RTIP"
- const m_PF_SCLUSTER = "AF_SCLUSTER"
- const m_PF_SIP = "AF_SIP"
- const m_PF_SLOW = "AF_SLOW"
- const m_PF_SNA = "AF_SNA"
- const m_PF_UNIX = "PF_LOCAL"
- const m_PF_UNSPEC = "AF_UNSPEC"
- const m_PF_XTP = "pseudo_AF_XTP"
- const m_PRU_FLUSH_RD = "SHUT_RD"
- const m_PRU_FLUSH_RDWR = "SHUT_RDWR"
- const m_PRU_FLUSH_WR = "SHUT_WR"
- const m_SCM_BINTIME = 0x04
- const m_SCM_CREDS = 0x03
- const m_SCM_CREDS2 = 0x08
- const m_SCM_MONOTONIC = 0x06
- const m_SCM_REALTIME = 0x05
- const m_SCM_RIGHTS = 0x01
- const m_SCM_TIMESTAMP = 0x02
- const m_SCM_TIME_INFO = 0x07
- const m_SF_MNOWAIT = 0x00000002
- const m_SF_NOCACHE = 0x00000010
- const m_SF_NODISKIO = 0x00000001
- const m_SF_SYNC = 0x00000004
- const m_SF_USER_READAHEAD = 0x00000008
- const m_SHUT_RD = 0
- const m_SHUT_RDWR = 2
- const m_SHUT_WR = 1
- const m_SOCK_CLOEXEC = 0x10000000
- const m_SOCK_DGRAM = 2
- const m_SOCK_MAXADDRLEN = 255
- const m_SOCK_NONBLOCK = 0x20000000
- const m_SOCK_RAW = 3
- const m_SOCK_RDM = 4
- const m_SOCK_SEQPACKET = 5
- const m_SOCK_STREAM = 1
- const m_SOL_SOCKET = 0xffff
- const m_SOMAXCONN = 128
- const m_SO_ACCEPTCONN = 0x00000002
- const m_SO_ACCEPTFILTER = 0x00001000
- const m_SO_BINTIME = 0x00002000
- const m_SO_BROADCAST = 0x00000020
- const m_SO_DEBUG = 0x00000001
- const m_SO_DOMAIN = 0x1019
- const m_SO_DONTROUTE = 0x00000010
- const m_SO_ERROR = 0x1007
- const m_SO_KEEPALIVE = 0x00000008
- const m_SO_LABEL = 0x1009
- const m_SO_LINGER = 0x00000080
- const m_SO_LISTENINCQLEN = 0x1013
- const m_SO_LISTENQLEN = 0x1012
- const m_SO_LISTENQLIMIT = 0x1011
- const m_SO_MAX_PACING_RATE = 0x1018
- const m_SO_NOSIGPIPE = 0x00000800
- const m_SO_NO_DDP = 0x00008000
- const m_SO_NO_OFFLOAD = 0x00004000
- const m_SO_OOBINLINE = 0x00000100
- const m_SO_PEERLABEL = 0x1010
- const m_SO_PROTOCOL = 0x1016
- const m_SO_PROTOTYPE = "SO_PROTOCOL"
- const m_SO_RCVBUF = 0x1002
- const m_SO_RCVLOWAT = 0x1004
- const m_SO_RCVTIMEO = 0x1006
- const m_SO_RERROR = 0x00020000
- const m_SO_REUSEADDR = 0x00000004
- const m_SO_REUSEPORT = 0x00000200
- const m_SO_REUSEPORT_LB = 0x00010000
- const m_SO_SETFIB = 0x1014
- const m_SO_SNDBUF = 0x1001
- const m_SO_SNDLOWAT = 0x1003
- const m_SO_SNDTIMEO = 0x1005
- const m_SO_SPLICE = 0x1023
- const m_SO_TIMESTAMP = 0x00000400
- const m_SO_TS_BINTIME = 1
- const m_SO_TS_CLOCK = 0x1017
- const m_SO_TS_CLOCK_MAX = "SO_TS_MONOTONIC"
- const m_SO_TS_DEFAULT = "SO_TS_REALTIME_MICRO"
- const m_SO_TS_MONOTONIC = 3
- const m_SO_TS_REALTIME = 2
- const m_SO_TS_REALTIME_MICRO = 0
- const m_SO_TYPE = 0x1008
- const m_SO_USELOOPBACK = 0x00000040
- const m_SO_USER_COOKIE = 0x1015
- const m_SO_VENDOR = 0x80000000
- const m_ST_INFO_HW = 0x0001
- const m_ST_INFO_HW_HPREC = 0x0002
- const m__SS_MAXSIZE = 128
- const m_pseudo_AF_HDRCMPLT = 31
- const m_pseudo_AF_KEY = 27
- const m_pseudo_AF_PIP = 25
- const m_pseudo_AF_RTIP = 22
- const m_pseudo_AF_XTP = 19
- type Tiovec = struct {
- Fiov_base uintptr
- Fiov_len Tsize_t
- }
- type Tsa_family_t = uint8
- type Tsocklen_t = uint32
- type Tlinger = struct {
- Fl_onoff int32
- Fl_linger int32
- }
- type Taccept_filter_arg = struct {
- Faf_name [16]int8
- Faf_arg [240]int8
- }
- type Tsockaddr = struct {
- Fsa_len uint8
- Fsa_family Tsa_family_t
- Fsa_data [14]int8
- }
- type Tsockproto = struct {
- Fsp_family uint16
- Fsp_protocol uint16
- }
- type Tsockaddr_storage = struct {
- Fss_len uint8
- Fss_family Tsa_family_t
- F__ss_pad1 [6]int8
- F__ss_align t__int64_t
- F__ss_pad2 [112]int8
- }
- type Tmsghdr = struct {
- Fmsg_name uintptr
- Fmsg_namelen Tsocklen_t
- Fmsg_iov uintptr
- Fmsg_iovlen int32
- Fmsg_control uintptr
- Fmsg_controllen Tsocklen_t
- Fmsg_flags int32
- }
- type Tcmsghdr = struct {
- Fcmsg_len Tsocklen_t
- Fcmsg_level int32
- Fcmsg_type int32
- }
- type Tcmsgcred = struct {
- Fcmcred_pid Tpid_t
- Fcmcred_uid Tuid_t
- Fcmcred_euid Tuid_t
- Fcmcred_gid Tgid_t
- Fcmcred_ngroups int16
- Fcmcred_groups [16]Tgid_t
- }
- type Tsockcred = struct {
- Fsc_uid Tuid_t
- Fsc_euid Tuid_t
- Fsc_gid Tgid_t
- Fsc_egid Tgid_t
- Fsc_ngroups int32
- Fsc_groups [1]Tgid_t
- }
- type Tsockcred2 = struct {
- Fsc_version int32
- Fsc_pid Tpid_t
- Fsc_uid Tuid_t
- Fsc_euid Tuid_t
- Fsc_gid Tgid_t
- Fsc_egid Tgid_t
- Fsc_ngroups int32
- Fsc_groups [1]Tgid_t
- }
- type Tsock_timestamp_info = struct {
- Fst_info_flags t__uint32_t
- Fst_info_pad0 t__uint32_t
- Fst_info_rsv [7]t__uint64_t
- }
- type Tosockaddr = struct {
- Fsa_family uint16
- Fsa_data [14]int8
- }
- type Tomsghdr = struct {
- Fmsg_name uintptr
- Fmsg_namelen int32
- Fmsg_iov uintptr
- Fmsg_iovlen int32
- Fmsg_accrights uintptr
- Fmsg_accrightslen int32
- }
- type Tsf_hdtr = struct {
- Fheaders uintptr
- Fhdr_cnt int32
- Ftrailers uintptr
- Ftrl_cnt int32
- }
- type Tmmsghdr = struct {
- Fmsg_hdr Tmsghdr
- Fmsg_len Tssize_t
- }
- type Tsplice = struct {
- Fsp_fd int32
- Fsp_max Toff_t
- Fsp_idle Ttimeval
- }
- func XXdmcpFill(tls *libc.TLS, fd int32, buffer TXdmcpBufferPtr, from TXdmcpNetaddr, fromlen uintptr) (r int32) {
- var newBuf uintptr
- _ = newBuf
- if (*T_XdmcpBuffer)(unsafe.Pointer(buffer)).Fsize < int32(m_XDM_MAX_MSGLEN) {
- newBuf = libc.Xmalloc(tls, uint64(m_XDM_MAX_MSGLEN))
- if newBuf != 0 {
- libc.Xfree(tls, (*T_XdmcpBuffer)(unsafe.Pointer(buffer)).Fdata)
- (*T_XdmcpBuffer)(unsafe.Pointer(buffer)).Fdata = newBuf
- (*T_XdmcpBuffer)(unsafe.Pointer(buffer)).Fsize = int32(m_XDM_MAX_MSGLEN)
- }
- }
- (*T_XdmcpBuffer)(unsafe.Pointer(buffer)).Fpointer = 0
- (*T_XdmcpBuffer)(unsafe.Pointer(buffer)).Fcount = int32(libc.Xrecvfrom(tls, fd, (*T_XdmcpBuffer)(unsafe.Pointer(buffer)).Fdata, libc.Uint64FromInt32((*T_XdmcpBuffer)(unsafe.Pointer(buffer)).Fsize), 0, from, fromlen))
- if (*T_XdmcpBuffer)(unsafe.Pointer(buffer)).Fcount < int32(6) {
- (*T_XdmcpBuffer)(unsafe.Pointer(buffer)).Fcount = 0
- return m_FALSE
- }
- return int32(m_TRUE)
- }
- func XXdmcpFlush(tls *libc.TLS, fd int32, buffer TXdmcpBufferPtr, to TXdmcpNetaddr, tolen int32) (r int32) {
- var result int32
- _ = result
- result = int32(libc.Xsendto(tls, fd, (*T_XdmcpBuffer)(unsafe.Pointer(buffer)).Fdata, libc.Uint64FromInt32((*T_XdmcpBuffer)(unsafe.Pointer(buffer)).Fpointer), 0, to, libc.Uint32FromInt32(tolen)))
- if result != (*T_XdmcpBuffer)(unsafe.Pointer(buffer)).Fpointer {
- return m_FALSE
- }
- return int32(m_TRUE)
- }
- const m_Time_t = "time_t"
- const m_random = "lrand48"
- const m_srandom = "srand48"
- func XXdmcpGenerateKey(tls *libc.TLS, key TXdmAuthKeyPtr) {
- _arc4random_buf(tls, key, libc.Uint64FromInt32(8))
- }
- func XXdmcpCompareKeys(tls *libc.TLS, a TXdmAuthKeyPtr, b TXdmAuthKeyPtr) (r int32) {
- var i int32
- _ = i
- i = 0
- for {
- if !(i < int32(8)) {
- break
- }
- if libc.Int32FromUint8(*(*TBYTE)(unsafe.Pointer(a + uintptr(i)))) != libc.Int32FromUint8(*(*TBYTE)(unsafe.Pointer(b + uintptr(i)))) {
- return m_FALSE
- }
- goto _1
- _1:
- ;
- i++
- }
- return int32(m_TRUE)
- }
- func XXdmcpIncrementKey(tls *libc.TLS, key TXdmAuthKeyPtr) {
- var i, v3 int32
- var v1 TBYTE
- var v2 uintptr
- _, _, _, _ = i, v1, v2, v3
- i = int32(7)
- for {
- v2 = key + uintptr(i)
- *(*TBYTE)(unsafe.Pointer(v2))++
- v1 = *(*TBYTE)(unsafe.Pointer(v2))
- if !(libc.Int32FromUint8(v1) == 0) {
- break
- }
- i--
- v3 = i
- if v3 < 0 {
- break
- }
- }
- }
- func XXdmcpDecrementKey(tls *libc.TLS, key TXdmAuthKeyPtr) {
- var i, v3 int32
- var v1 TBYTE
- var v2 uintptr
- _, _, _, _ = i, v1, v2, v3
- i = int32(7)
- for {
- v2 = key + uintptr(i)
- v1 = *(*TBYTE)(unsafe.Pointer(v2))
- *(*TBYTE)(unsafe.Pointer(v2))--
- if !(libc.Int32FromUint8(v1) == 0) {
- break
- }
- i--
- v3 = i
- if v3 < 0 {
- break
- }
- }
- }
- func XXdmcpReadHeader(tls *libc.TLS, buffer TXdmcpBufferPtr, header TXdmcpHeaderPtr) (r int32) {
- if XXdmcpReadCARD16(tls, buffer, header) != 0 && XXdmcpReadCARD16(tls, buffer, header+2) != 0 && XXdmcpReadCARD16(tls, buffer, header+4) != 0 {
- return int32(m_TRUE)
- }
- return m_FALSE
- }
- func XXdmcpReadRemaining(tls *libc.TLS, buffer TXdmcpBufferPtr) (r int32) {
- return (*T_XdmcpBuffer)(unsafe.Pointer(buffer)).Fcount - (*T_XdmcpBuffer)(unsafe.Pointer(buffer)).Fpointer
- }
- func XXdmcpReadARRAY8(tls *libc.TLS, buffer TXdmcpBufferPtr, array TARRAY8Ptr) (r int32) {
- var i int32
- _ = i
- /*
- * When returning FALSE, guarantee that array->data = 0.
- * This allows the user to safely call XdmcpDisposeARRAY8(array)
- * regardless of the return value below.
- * Note that XdmcpDisposeARRAY*(array) will call free(array->data),
- * so we must guarantee that array->data is NULL or a malloced pointer.
- */
- if !(XXdmcpReadCARD16(tls, buffer, array) != 0) {
- (*T_ARRAY8)(unsafe.Pointer(array)).Fdata = libc.UintptrFromInt32(0)
- return m_FALSE
- }
- if !((*T_ARRAY8)(unsafe.Pointer(array)).Flength != 0) {
- (*T_ARRAY8)(unsafe.Pointer(array)).Fdata = libc.UintptrFromInt32(0)
- return int32(m_TRUE)
- }
- (*T_ARRAY8)(unsafe.Pointer(array)).Fdata = libc.Xmalloc(tls, uint64((*T_ARRAY8)(unsafe.Pointer(array)).Flength)*uint64(1))
- if !((*T_ARRAY8)(unsafe.Pointer(array)).Fdata != 0) {
- return m_FALSE
- }
- i = 0
- for {
- if !(i < libc.Int32FromUint16((*T_ARRAY8)(unsafe.Pointer(array)).Flength)) {
- break
- }
- if !(XXdmcpReadCARD8(tls, buffer, (*T_ARRAY8)(unsafe.Pointer(array)).Fdata+uintptr(i)) != 0) {
- libc.Xfree(tls, (*T_ARRAY8)(unsafe.Pointer(array)).Fdata)
- (*T_ARRAY8)(unsafe.Pointer(array)).Fdata = libc.UintptrFromInt32(0)
- (*T_ARRAY8)(unsafe.Pointer(array)).Flength = uint16(0)
- return m_FALSE
- }
- goto _1
- _1:
- ;
- i++
- }
- return int32(m_TRUE)
- }
- func XXdmcpReadARRAY16(tls *libc.TLS, buffer TXdmcpBufferPtr, array TARRAY16Ptr) (r int32) {
- var i int32
- _ = i
- /*
- * When returning FALSE, guarantee that array->data = 0.
- * This allows the user to safely call XdmcpDisposeARRAY16(array)
- * regardless of the return value below.
- * Note that XdmcpDisposeARRAY*(array) will call free(array->data),
- * so we must guarantee that array->data is NULL or a malloced pointer.
- */
- if !(XXdmcpReadCARD8(tls, buffer, array) != 0) {
- (*T_ARRAY16)(unsafe.Pointer(array)).Fdata = libc.UintptrFromInt32(0)
- return m_FALSE
- }
- if !((*T_ARRAY16)(unsafe.Pointer(array)).Flength != 0) {
- (*T_ARRAY16)(unsafe.Pointer(array)).Fdata = libc.UintptrFromInt32(0)
- return int32(m_TRUE)
- }
- (*T_ARRAY16)(unsafe.Pointer(array)).Fdata = libc.Xmalloc(tls, uint64((*T_ARRAY16)(unsafe.Pointer(array)).Flength)*uint64(2))
- if !((*T_ARRAY16)(unsafe.Pointer(array)).Fdata != 0) {
- return m_FALSE
- }
- i = 0
- for {
- if !(i < libc.Int32FromUint8((*T_ARRAY16)(unsafe.Pointer(array)).Flength)) {
- break
- }
- if !(XXdmcpReadCARD16(tls, buffer, (*T_ARRAY16)(unsafe.Pointer(array)).Fdata+uintptr(i)*2) != 0) {
- libc.Xfree(tls, (*T_ARRAY16)(unsafe.Pointer(array)).Fdata)
- (*T_ARRAY16)(unsafe.Pointer(array)).Fdata = libc.UintptrFromInt32(0)
- (*T_ARRAY16)(unsafe.Pointer(array)).Flength = uint8(0)
- return m_FALSE
- }
- goto _1
- _1:
- ;
- i++
- }
- return int32(m_TRUE)
- }
- func XXdmcpReadARRAY32(tls *libc.TLS, buffer TXdmcpBufferPtr, array TARRAY32Ptr) (r int32) {
- var i int32
- _ = i
- /*
- * When returning FALSE, guarantee that array->data = 0.
- * This allows the user to safely call XdmcpDisposeARRAY32(array)
- * regardless of the return value below.
- * Note that XdmcpDisposeARRAY*(array) will call free(array->data),
- * so we must guarantee that array->data is NULL or a malloced pointer.
- */
- if !(XXdmcpReadCARD8(tls, buffer, array) != 0) {
- (*T_ARRAY32)(unsafe.Pointer(array)).Fdata = libc.UintptrFromInt32(0)
- return m_FALSE
- }
- if !((*T_ARRAY32)(unsafe.Pointer(array)).Flength != 0) {
- (*T_ARRAY32)(unsafe.Pointer(array)).Fdata = libc.UintptrFromInt32(0)
- return int32(m_TRUE)
- }
- (*T_ARRAY32)(unsafe.Pointer(array)).Fdata = libc.Xmalloc(tls, uint64((*T_ARRAY32)(unsafe.Pointer(array)).Flength)*uint64(4))
- if !((*T_ARRAY32)(unsafe.Pointer(array)).Fdata != 0) {
- return m_FALSE
- }
- i = 0
- for {
- if !(i < libc.Int32FromUint8((*T_ARRAY32)(unsafe.Pointer(array)).Flength)) {
- break
- }
- if !(XXdmcpReadCARD32(tls, buffer, (*T_ARRAY32)(unsafe.Pointer(array)).Fdata+uintptr(i)*4) != 0) {
- libc.Xfree(tls, (*T_ARRAY32)(unsafe.Pointer(array)).Fdata)
- (*T_ARRAY32)(unsafe.Pointer(array)).Fdata = libc.UintptrFromInt32(0)
- (*T_ARRAY32)(unsafe.Pointer(array)).Flength = uint8(0)
- return m_FALSE
- }
- goto _1
- _1:
- ;
- i++
- }
- return int32(m_TRUE)
- }
- func XXdmcpReadARRAYofARRAY8(tls *libc.TLS, buffer TXdmcpBufferPtr, array TARRAYofARRAY8Ptr) (r int32) {
- var i TCARD8
- _ = i
- /*
- * When returning FALSE, guarantee that array->data = 0.
- * This allows the user to safely call XdmcpDisposeARRAYofARRAY8(array)
- * regardless of the return value below.
- * Note that XdmcpDisposeARRAY*(array) will call free(array->data),
- * so we must guarantee that array->data is NULL or a malloced pointer.
- */
- if !(XXdmcpReadCARD8(tls, buffer, array) != 0) {
- (*T_ARRAYofARRAY8)(unsafe.Pointer(array)).Fdata = libc.UintptrFromInt32(0)
- return m_FALSE
- }
- if !((*T_ARRAYofARRAY8)(unsafe.Pointer(array)).Flength != 0) {
- (*T_ARRAYofARRAY8)(unsafe.Pointer(array)).Fdata = libc.UintptrFromInt32(0)
- return int32(m_TRUE)
- }
- (*T_ARRAYofARRAY8)(unsafe.Pointer(array)).Fdata = libc.Xmalloc(tls, uint64((*T_ARRAYofARRAY8)(unsafe.Pointer(array)).Flength)*uint64(16))
- if !((*T_ARRAYofARRAY8)(unsafe.Pointer(array)).Fdata != 0) {
- return m_FALSE
- }
- i = uint8(0)
- for {
- if !(libc.Int32FromUint8(i) < libc.Int32FromUint8((*T_ARRAYofARRAY8)(unsafe.Pointer(array)).Flength)) {
- break
- }
- if !(XXdmcpReadARRAY8(tls, buffer, (*T_ARRAYofARRAY8)(unsafe.Pointer(array)).Fdata+uintptr(i)*16) != 0) {
- /*
- * We must free all of the arrays allocated thus far in the loop
- * and free array->data and finally set array->data = 0;
- * The easiest way to do this is to reset the length and call
- * XdmcpDisposeARRAYofARRAY8(array).
- */
- (*T_ARRAYofARRAY8)(unsafe.Pointer(array)).Flength = i
- XXdmcpDisposeARRAYofARRAY8(tls, array)
- return m_FALSE
- }
- goto _1
- _1:
- ;
- i++
- }
- return int32(m_TRUE)
- }
- func XXdmcpReadCARD8(tls *libc.TLS, buffer TXdmcpBufferPtr, valuep TCARD8Ptr) (r int32) {
- var v1 int32
- var v2 uintptr
- _, _ = v1, v2
- if (*T_XdmcpBuffer)(unsafe.Pointer(buffer)).Fpointer >= (*T_XdmcpBuffer)(unsafe.Pointer(buffer)).Fcount {
- return m_FALSE
- }
- v2 = buffer + 12
- v1 = *(*int32)(unsafe.Pointer(v2))
- *(*int32)(unsafe.Pointer(v2))++
- *(*TCARD8)(unsafe.Pointer(valuep)) = *(*TBYTE)(unsafe.Pointer((*T_XdmcpBuffer)(unsafe.Pointer(buffer)).Fdata + uintptr(v1)))
- return int32(m_TRUE)
- }
- func XXdmcpReadCARD16(tls *libc.TLS, buffer TXdmcpBufferPtr, valuep TCARD16Ptr) (r int32) {
- bp := tls.Alloc(16)
- defer tls.Free(16)
- var _ /* high at bp+0 */ TCARD8
- var _ /* low at bp+1 */ TCARD8
- if XXdmcpReadCARD8(tls, buffer, bp) != 0 && XXdmcpReadCARD8(tls, buffer, bp+1) != 0 {
- *(*TCARD16)(unsafe.Pointer(valuep)) = libc.Uint16FromInt32(libc.Int32FromUint16(uint16(*(*TCARD8)(unsafe.Pointer(bp))))<<int32(8) | libc.Int32FromUint16(uint16(*(*TCARD8)(unsafe.Pointer(bp + 1)))))
- return int32(m_TRUE)
- }
- return m_FALSE
- }
- func XXdmcpReadCARD32(tls *libc.TLS, buffer TXdmcpBufferPtr, valuep TCARD32Ptr) (r int32) {
- bp := tls.Alloc(16)
- defer tls.Free(16)
- var _ /* byte0 at bp+0 */ TCARD8
- var _ /* byte1 at bp+1 */ TCARD8
- var _ /* byte2 at bp+2 */ TCARD8
- var _ /* byte3 at bp+3 */ TCARD8
- if XXdmcpReadCARD8(tls, buffer, bp) != 0 && XXdmcpReadCARD8(tls, buffer, bp+1) != 0 && XXdmcpReadCARD8(tls, buffer, bp+2) != 0 && XXdmcpReadCARD8(tls, buffer, bp+3) != 0 {
- *(*TCARD32)(unsafe.Pointer(valuep)) = uint32(*(*TCARD8)(unsafe.Pointer(bp)))<<libc.Int32FromInt32(24) | uint32(*(*TCARD8)(unsafe.Pointer(bp + 1)))<<libc.Int32FromInt32(16) | uint32(*(*TCARD8)(unsafe.Pointer(bp + 2)))<<libc.Int32FromInt32(8) | uint32(*(*TCARD8)(unsafe.Pointer(bp + 3)))
- return int32(m_TRUE)
- }
- return m_FALSE
- }
- type Tauth_cblock = [8]uint8
- type Tauth_wrapper_schedule = [16]Tauth_ks_struct
- type Tauth_ks_struct = struct {
- F_1 Tauth_cblock
- }
- func XXdmcpUnwrap(tls *libc.TLS, input uintptr, wrapper uintptr, output uintptr, bytes int32) {
- bp := tls.Alloc(160)
- defer tls.Free(160)
- var i, j, k, v3 int32
- var _ /* blocks at bp+8 */ [2][8]uint8
- var _ /* expand_wrapper at bp+24 */ [8]uint8
- var _ /* schedule at bp+32 */ Tauth_wrapper_schedule
- var _ /* tmp at bp+0 */ [8]uint8
- _, _, _, _ = i, j, k, v3
- X_XdmcpWrapperToOddParity(tls, wrapper, bp+24)
- X_XdmcpAuthSetup(tls, bp+24, bp+32)
- k = 0
- j = 0
- for {
- if !(j < bytes) {
- break
- }
- if bytes-j < int32(8) {
- return
- } /* bad input length */
- i = 0
- for {
- if !(i < int32(8)) {
- break
- }
- *(*uint8)(unsafe.Pointer(bp + 8 + uintptr(k)*8 + uintptr(i))) = *(*uint8)(unsafe.Pointer(input + uintptr(j+i)))
- goto _2
- _2:
- ;
- i++
- }
- X_XdmcpAuthDoIt(tls, input+uintptr(j), bp, bp+32, 0)
- /* block chaining */
- if k == 0 {
- v3 = int32(1)
- } else {
- v3 = 0
- }
- k = v3
- i = 0
- for {
- if !(i < int32(8)) {
- break
- }
- if j == 0 {
- *(*uint8)(unsafe.Pointer(output + uintptr(j+i))) = (*(*[8]uint8)(unsafe.Pointer(bp)))[i]
- } else {
- *(*uint8)(unsafe.Pointer(output + uintptr(j+i))) = libc.Uint8FromInt32(libc.Int32FromUint8((*(*[8]uint8)(unsafe.Pointer(bp)))[i]) ^ libc.Int32FromUint8(*(*uint8)(unsafe.Pointer(bp + 8 + uintptr(k)*8 + uintptr(i)))))
- }
- goto _4
- _4:
- ;
- i++
- }
- goto _1
- _1:
- ;
- j += int32(8)
- }
- }
- func XXdmcpWrap(tls *libc.TLS, input uintptr, wrapper uintptr, output uintptr, bytes int32) {
- bp := tls.Alloc(144)
- defer tls.Free(144)
- var i, j, len1 int32
- var _ /* expand_wrapper at bp+8 */ [8]uint8
- var _ /* schedule at bp+16 */ Tauth_wrapper_schedule
- var _ /* tmp at bp+0 */ [8]uint8
- _, _, _ = i, j, len1
- X_XdmcpWrapperToOddParity(tls, wrapper, bp+8)
- X_XdmcpAuthSetup(tls, bp+8, bp+16)
- j = 0
- for {
- if !(j < bytes) {
- break
- }
- len1 = int32(8)
- if bytes-j < len1 {
- len1 = bytes - j
- }
- /* block chaining */
- i = 0
- for {
- if !(i < len1) {
- break
- }
- if j == 0 {
- (*(*[8]uint8)(unsafe.Pointer(bp)))[i] = *(*uint8)(unsafe.Pointer(input + uintptr(i)))
- } else {
- (*(*[8]uint8)(unsafe.Pointer(bp)))[i] = libc.Uint8FromInt32(libc.Int32FromUint8(*(*uint8)(unsafe.Pointer(input + uintptr(j+i)))) ^ libc.Int32FromUint8(*(*uint8)(unsafe.Pointer(output + uintptr(j-int32(8)+i)))))
- }
- goto _2
- _2:
- ;
- i++
- }
- for {
- if !(i < int32(8)) {
- break
- }
- if j == 0 {
- (*(*[8]uint8)(unsafe.Pointer(bp)))[i] = uint8(0)
- } else {
- (*(*[8]uint8)(unsafe.Pointer(bp)))[i] = libc.Uint8FromInt32(0 ^ libc.Int32FromUint8(*(*uint8)(unsafe.Pointer(output + uintptr(j-int32(8)+i)))))
- }
- goto _3
- _3:
- ;
- i++
- }
- X_XdmcpAuthDoIt(tls, bp, output+uintptr(j), bp+16, int32(1))
- goto _1
- _1:
- ;
- j += int32(8)
- }
- }
- /*
- * Given a 56 bit wrapper in XDMCP format, create a 56
- * bit wrapper in 7-bits + odd parity format
- */
- func _OddParity(tls *libc.TLS, c uint8) (r int32) {
- c = libc.Uint8FromInt32(libc.Int32FromUint8(c) ^ libc.Int32FromUint8(c)>>int32(4))
- c = libc.Uint8FromInt32(libc.Int32FromUint8(c) ^ libc.Int32FromUint8(c)>>int32(2))
- c = libc.Uint8FromInt32(libc.Int32FromUint8(c) ^ libc.Int32FromUint8(c)>>int32(1))
- return ^libc.Int32FromUint8(c) & int32(0x1)
- }
- /*
- * Spread the 56 bit wrapper among 8 bytes, using the upper 7 bits
- * of each byte, and storing an odd parity bit in the low bit
- */
- func X_XdmcpWrapperToOddParity(tls *libc.TLS, in uintptr, out uintptr) {
- var ashift, bshift, i int32
- var c uint8
- _, _, _, _ = ashift, bshift, c, i
- ashift = int32(7)
- bshift = int32(1)
- i = 0
- for {
- if !(i < int32(7)) {
- break
- }
- c = libc.Uint8FromInt32((libc.Int32FromUint8(*(*uint8)(unsafe.Pointer(in + uintptr(i))))<<ashift | libc.Int32FromUint8(*(*uint8)(unsafe.Pointer(in + uintptr(i+int32(1)))))>>bshift) & int32(0x7f))
- *(*uint8)(unsafe.Pointer(out + uintptr(i))) = libc.Uint8FromInt32(libc.Int32FromUint8(c)<<int32(1) | _OddParity(tls, c))
- ashift--
- bshift++
- goto _1
- _1:
- ;
- i++
- }
- c = *(*uint8)(unsafe.Pointer(in + uintptr(i)))
- *(*uint8)(unsafe.Pointer(out + uintptr(i))) = libc.Uint8FromInt32(libc.Int32FromUint8(c)<<int32(1) | _OddParity(tls, c))
- }
- func XXdmcpWriteHeader(tls *libc.TLS, buffer TXdmcpBufferPtr, header TXdmcpHeaderPtr) (r int32) {
- var newData uintptr
- _ = newData
- if (*T_XdmcpBuffer)(unsafe.Pointer(buffer)).Fsize < int32(6)+libc.Int32FromUint16((*T_XdmcpHeader)(unsafe.Pointer(header)).Flength) {
- newData = libc.Xcalloc(tls, uint64(m_XDM_MAX_MSGLEN), uint64(1))
- if !(newData != 0) {
- return m_FALSE
- }
- libc.Xfree(tls, (*T_XdmcpBuffer)(unsafe.Pointer(buffer)).Fdata)
- (*T_XdmcpBuffer)(unsafe.Pointer(buffer)).Fdata = newData
- (*T_XdmcpBuffer)(unsafe.Pointer(buffer)).Fsize = int32(m_XDM_MAX_MSGLEN)
- }
- (*T_XdmcpBuffer)(unsafe.Pointer(buffer)).Fpointer = 0
- if !(XXdmcpWriteCARD16(tls, buffer, uint32((*T_XdmcpHeader)(unsafe.Pointer(header)).Fversion)) != 0) {
- return m_FALSE
- }
- if !(XXdmcpWriteCARD16(tls, buffer, uint32((*T_XdmcpHeader)(unsafe.Pointer(header)).Fopcode)) != 0) {
- return m_FALSE
- }
- if !(XXdmcpWriteCARD16(tls, buffer, uint32((*T_XdmcpHeader)(unsafe.Pointer(header)).Flength)) != 0) {
- return m_FALSE
- }
- return int32(m_TRUE)
- }
- func XXdmcpWriteARRAY8(tls *libc.TLS, buffer TXdmcpBufferPtr, array TARRAY8Ptr) (r int32) {
- var i int32
- _ = i
- if !(XXdmcpWriteCARD16(tls, buffer, uint32((*T_ARRAY8)(unsafe.Pointer(array)).Flength)) != 0) {
- return m_FALSE
- }
- i = 0
- for {
- if !(i < libc.Int32FromUint16((*T_ARRAY8)(unsafe.Pointer(array)).Flength)) {
- break
- }
- if !(XXdmcpWriteCARD8(tls, buffer, uint32(*(*TCARD8)(unsafe.Pointer((*T_ARRAY8)(unsafe.Pointer(array)).Fdata + uintptr(i))))) != 0) {
- return m_FALSE
- }
- goto _1
- _1:
- ;
- i++
- }
- return int32(m_TRUE)
- }
- func XXdmcpWriteARRAY16(tls *libc.TLS, buffer TXdmcpBufferPtr, array TARRAY16Ptr) (r int32) {
- var i int32
- _ = i
- if !(XXdmcpWriteCARD8(tls, buffer, uint32((*T_ARRAY16)(unsafe.Pointer(array)).Flength)) != 0) {
- return m_FALSE
- }
- i = 0
- for {
- if !(i < libc.Int32FromUint8((*T_ARRAY16)(unsafe.Pointer(array)).Flength)) {
- break
- }
- if !(XXdmcpWriteCARD16(tls, buffer, uint32(*(*TCARD16)(unsafe.Pointer((*T_ARRAY16)(unsafe.Pointer(array)).Fdata + uintptr(i)*2)))) != 0) {
- return m_FALSE
- }
- goto _1
- _1:
- ;
- i++
- }
- return int32(m_TRUE)
- }
- func XXdmcpWriteARRAY32(tls *libc.TLS, buffer TXdmcpBufferPtr, array TARRAY32Ptr) (r int32) {
- var i int32
- _ = i
- if !(XXdmcpWriteCARD8(tls, buffer, uint32((*T_ARRAY32)(unsafe.Pointer(array)).Flength)) != 0) {
- return m_FALSE
- }
- i = 0
- for {
- if !(i < libc.Int32FromUint8((*T_ARRAY32)(unsafe.Pointer(array)).Flength)) {
- break
- }
- if !(XXdmcpWriteCARD32(tls, buffer, *(*TCARD32)(unsafe.Pointer((*T_ARRAY32)(unsafe.Pointer(array)).Fdata + uintptr(i)*4))) != 0) {
- return m_FALSE
- }
- goto _1
- _1:
- ;
- i++
- }
- return int32(m_TRUE)
- }
- func XXdmcpWriteARRAYofARRAY8(tls *libc.TLS, buffer TXdmcpBufferPtr, array TARRAYofARRAY8Ptr) (r int32) {
- var i int32
- _ = i
- if !(XXdmcpWriteCARD8(tls, buffer, uint32((*T_ARRAYofARRAY8)(unsafe.Pointer(array)).Flength)) != 0) {
- return m_FALSE
- }
- i = 0
- for {
- if !(i < libc.Int32FromUint8((*T_ARRAYofARRAY8)(unsafe.Pointer(array)).Flength)) {
- break
- }
- if !(XXdmcpWriteARRAY8(tls, buffer, (*T_ARRAYofARRAY8)(unsafe.Pointer(array)).Fdata+uintptr(i)*16) != 0) {
- return m_FALSE
- }
- goto _1
- _1:
- ;
- i++
- }
- return int32(m_TRUE)
- }
- func XXdmcpWriteCARD8(tls *libc.TLS, buffer TXdmcpBufferPtr, value uint32) (r int32) {
- var v1 int32
- var v2 uintptr
- _, _ = v1, v2
- if (*T_XdmcpBuffer)(unsafe.Pointer(buffer)).Fpointer >= (*T_XdmcpBuffer)(unsafe.Pointer(buffer)).Fsize {
- return m_FALSE
- }
- v2 = buffer + 12
- v1 = *(*int32)(unsafe.Pointer(v2))
- *(*int32)(unsafe.Pointer(v2))++
- *(*TBYTE)(unsafe.Pointer((*T_XdmcpBuffer)(unsafe.Pointer(buffer)).Fdata + uintptr(v1))) = uint8(value)
- return int32(m_TRUE)
- }
- func XXdmcpWriteCARD16(tls *libc.TLS, buffer TXdmcpBufferPtr, value uint32) (r int32) {
- if !(XXdmcpWriteCARD8(tls, buffer, value>>int32(8)) != 0) {
- return m_FALSE
- }
- if !(XXdmcpWriteCARD8(tls, buffer, value&uint32(0xff)) != 0) {
- return m_FALSE
- }
- return int32(m_TRUE)
- }
- func XXdmcpWriteCARD32(tls *libc.TLS, buffer TXdmcpBufferPtr, value uint32) (r int32) {
- if !(XXdmcpWriteCARD8(tls, buffer, value>>int32(24)) != 0) {
- return m_FALSE
- }
- if !(XXdmcpWriteCARD8(tls, buffer, value>>int32(16)&uint32(0xff)) != 0) {
- return m_FALSE
- }
- if !(XXdmcpWriteCARD8(tls, buffer, value>>int32(8)&uint32(0xff)) != 0) {
- return m_FALSE
- }
- if !(XXdmcpWriteCARD8(tls, buffer, value&uint32(0xff)) != 0) {
- return m_FALSE
- }
- return int32(m_TRUE)
- }
- const m_HALF_ITERATIONS = 8
- const m_ITERATIONS = 16
- /* des routines for non-usa - eay 10/9/1991 eay@psych.psy.uq.oz.au
- * These routines were written for speed not size so they are bigger than
- * needed. I have removed some of the loop unrolling, this will reduce
- * code size at the expense of some speed.
- * 25/9/1991 eay - much faster _XdmcpAuthSetup (4 times faster).
- * 19/9/1991 eay - cleaned up the IP and FP code.
- * 10/9/1991 eay - first release.
- * The des routines this file has been made from can be found in
- * ftp.psy.uq.oz.au /pub/DES
- * This particular version derived from OpenBSD Revision 1.3.
- */
- /*
- *
- * Export Requirements.
- * You may not export or re-export this software or any copy or
- * adaptation in violation of any applicable laws or regulations.
- *
- * Without limiting the generality of the foregoing, hardware, software,
- * technology or services provided under this license agreement may not
- * be exported, reexported, transferred or downloaded to or within (or to
- * a national resident of) countries under U.S. economic embargo
- * including the following countries:
- *
- * Cuba, Iran, Libya, North Korea, Sudan and Syria. This list is subject
- * to change.
- *
- * Hardware, software, technology or services may not be exported,
- * reexported, transferred or downloaded to persons or entities listed on
- * the U.S. Department of Commerce Denied Persons List, Entity List of
- * proliferation concern or on any U.S. Treasury Department Designated
- * Nationals exclusion list, or to parties directly or indirectly
- * involved in the development or production of nuclear, chemical,
- * biological weapons or in missile technology programs as specified in
- * the U.S. Export Administration Regulations (15 CFR 744).
- *
- * By accepting this license agreement you confirm that you are not
- * located in (or a national resident of) any country under U.S. economic
- * embargo, not identified on any U.S. Department of Commerce Denied
- * Persons List, Entity List or Treasury Department Designated Nationals
- * exclusion list, and not directly or indirectly involved in the
- * development or production of nuclear, chemical, biological weapons or
- * in missile technology programs as specified in the U.S. Export
- * Administration Regulations.
- *
- *
- * Local Country Import Requirements. The software you are about to
- * download contains cryptography technology. Some countries regulate the
- * import, use and/or export of certain products with cryptography. The
- * X.org Foundation makes no claims as to the applicability of local
- * country import, use and/or export regulations in relation to the
- * download of this product. If you are located outside the U.S. and
- * Canada you are advised to consult your local country regulations to
- * insure compliance.
- */
- var _skb = [8][64]TCARD32{
- 0: {
- 1: uint32(0x00000010),
- 2: uint32(0x20000000),
- 3: uint32(0x20000010),
- 4: uint32(0x00010000),
- 5: uint32(0x00010010),
- 6: uint32(0x20010000),
- 7: uint32(0x20010010),
- 8: uint32(0x00000800),
- 9: uint32(0x00000810),
- 10: uint32(0x20000800),
- 11: uint32(0x20000810),
- 12: uint32(0x00010800),
- 13: uint32(0x00010810),
- 14: uint32(0x20010800),
- 15: uint32(0x20010810),
- 16: uint32(0x00000020),
- 17: uint32(0x00000030),
- 18: uint32(0x20000020),
- 19: uint32(0x20000030),
- 20: uint32(0x00010020),
- 21: uint32(0x00010030),
- 22: uint32(0x20010020),
- 23: uint32(0x20010030),
- 24: uint32(0x00000820),
- 25: uint32(0x00000830),
- 26: uint32(0x20000820),
- 27: uint32(0x20000830),
- 28: uint32(0x00010820),
- 29: uint32(0x00010830),
- 30: uint32(0x20010820),
- 31: uint32(0x20010830),
- 32: uint32(0x00080000),
- 33: uint32(0x00080010),
- 34: uint32(0x20080000),
- 35: uint32(0x20080010),
- 36: uint32(0x00090000),
- 37: uint32(0x00090010),
- 38: uint32(0x20090000),
- 39: uint32(0x20090010),
- 40: uint32(0x00080800),
- 41: uint32(0x00080810),
- 42: uint32(0x20080800),
- 43: uint32(0x20080810),
- 44: uint32(0x00090800),
- 45: uint32(0x00090810),
- 46: uint32(0x20090800),
- 47: uint32(0x20090810),
- 48: uint32(0x00080020),
- 49: uint32(0x00080030),
- 50: uint32(0x20080020),
- 51: uint32(0x20080030),
- 52: uint32(0x00090020),
- 53: uint32(0x00090030),
- 54: uint32(0x20090020),
- 55: uint32(0x20090030),
- 56: uint32(0x00080820),
- 57: uint32(0x00080830),
- 58: uint32(0x20080820),
- 59: uint32(0x20080830),
- 60: uint32(0x00090820),
- 61: uint32(0x00090830),
- 62: uint32(0x20090820),
- 63: uint32(0x20090830),
- },
- 1: {
- 1: uint32(0x02000000),
- 2: uint32(0x00002000),
- 3: uint32(0x02002000),
- 4: uint32(0x00200000),
- 5: uint32(0x02200000),
- 6: uint32(0x00202000),
- 7: uint32(0x02202000),
- 8: uint32(0x00000004),
- 9: uint32(0x02000004),
- 10: uint32(0x00002004),
- 11: uint32(0x02002004),
- 12: uint32(0x00200004),
- 13: uint32(0x02200004),
- 14: uint32(0x00202004),
- 15: uint32(0x02202004),
- 16: uint32(0x00000400),
- 17: uint32(0x02000400),
- 18: uint32(0x00002400),
- 19: uint32(0x02002400),
- 20: uint32(0x00200400),
- 21: uint32(0x02200400),
- 22: uint32(0x00202400),
- 23: uint32(0x02202400),
- 24: uint32(0x00000404),
- 25: uint32(0x02000404),
- 26: uint32(0x00002404),
- 27: uint32(0x02002404),
- 28: uint32(0x00200404),
- 29: uint32(0x02200404),
- 30: uint32(0x00202404),
- 31: uint32(0x02202404),
- 32: uint32(0x10000000),
- 33: uint32(0x12000000),
- 34: uint32(0x10002000),
- 35: uint32(0x12002000),
- 36: uint32(0x10200000),
- 37: uint32(0x12200000),
- 38: uint32(0x10202000),
- 39: uint32(0x12202000),
- 40: uint32(0x10000004),
- 41: uint32(0x12000004),
- 42: uint32(0x10002004),
- 43: uint32(0x12002004),
- 44: uint32(0x10200004),
- 45: uint32(0x12200004),
- 46: uint32(0x10202004),
- 47: uint32(0x12202004),
- 48: uint32(0x10000400),
- 49: uint32(0x12000400),
- 50: uint32(0x10002400),
- 51: uint32(0x12002400),
- 52: uint32(0x10200400),
- 53: uint32(0x12200400),
- 54: uint32(0x10202400),
- 55: uint32(0x12202400),
- 56: uint32(0x10000404),
- 57: uint32(0x12000404),
- 58: uint32(0x10002404),
- 59: uint32(0x12002404),
- 60: uint32(0x10200404),
- 61: uint32(0x12200404),
- 62: uint32(0x10202404),
- 63: uint32(0x12202404),
- },
- 2: {
- 1: uint32(0x00000001),
- 2: uint32(0x00040000),
- 3: uint32(0x00040001),
- 4: uint32(0x01000000),
- 5: uint32(0x01000001),
- 6: uint32(0x01040000),
- 7: uint32(0x01040001),
- 8: uint32(0x00000002),
- 9: uint32(0x00000003),
- 10: uint32(0x00040002),
- 11: uint32(0x00040003),
- 12: uint32(0x01000002),
- 13: uint32(0x01000003),
- 14: uint32(0x01040002),
- 15: uint32(0x01040003),
- 16: uint32(0x00000200),
- 17: uint32(0x00000201),
- 18: uint32(0x00040200),
- 19: uint32(0x00040201),
- 20: uint32(0x01000200),
- 21: uint32(0x01000201),
- 22: uint32(0x01040200),
- 23: uint32(0x01040201),
- 24: uint32(0x00000202),
- 25: uint32(0x00000203),
- 26: uint32(0x00040202),
- 27: uint32(0x00040203),
- 28: uint32(0x01000202),
- 29: uint32(0x01000203),
- 30: uint32(0x01040202),
- 31: uint32(0x01040203),
- 32: uint32(0x08000000),
- 33: uint32(0x08000001),
- 34: uint32(0x08040000),
- 35: uint32(0x08040001),
- 36: uint32(0x09000000),
- 37: uint32(0x09000001),
- 38: uint32(0x09040000),
- 39: uint32(0x09040001),
- 40: uint32(0x08000002),
- 41: uint32(0x08000003),
- 42: uint32(0x08040002),
- 43: uint32(0x08040003),
- 44: uint32(0x09000002),
- 45: uint32(0x09000003),
- 46: uint32(0x09040002),
- 47: uint32(0x09040003),
- 48: uint32(0x08000200),
- 49: uint32(0x08000201),
- 50: uint32(0x08040200),
- 51: uint32(0x08040201),
- 52: uint32(0x09000200),
- 53: uint32(0x09000201),
- 54: uint32(0x09040200),
- 55: uint32(0x09040201),
- 56: uint32(0x08000202),
- 57: uint32(0x08000203),
- 58: uint32(0x08040202),
- 59: uint32(0x08040203),
- 60: uint32(0x09000202),
- 61: uint32(0x09000203),
- 62: uint32(0x09040202),
- 63: uint32(0x09040203),
- },
- 3: {
- 1: uint32(0x00100000),
- 2: uint32(0x00000100),
- 3: uint32(0x00100100),
- 4: uint32(0x00000008),
- 5: uint32(0x00100008),
- 6: uint32(0x00000108),
- 7: uint32(0x00100108),
- 8: uint32(0x00001000),
- 9: uint32(0x00101000),
- 10: uint32(0x00001100),
- 11: uint32(0x00101100),
- 12: uint32(0x00001008),
- 13: uint32(0x00101008),
- 14: uint32(0x00001108),
- 15: uint32(0x00101108),
- 16: uint32(0x04000000),
- 17: uint32(0x04100000),
- 18: uint32(0x04000100),
- 19: uint32(0x04100100),
- 20: uint32(0x04000008),
- 21: uint32(0x04100008),
- 22: uint32(0x04000108),
- 23: uint32(0x04100108),
- 24: uint32(0x04001000),
- 25: uint32(0x04101000),
- 26: uint32(0x04001100),
- 27: uint32(0x04101100),
- 28: uint32(0x04001008),
- 29: uint32(0x04101008),
- 30: uint32(0x04001108),
- 31: uint32(0x04101108),
- 32: uint32(0x00020000),
- 33: uint32(0x00120000),
- 34: uint32(0x00020100),
- 35: uint32(0x00120100),
- 36: uint32(0x00020008),
- 37: uint32(0x00120008),
- 38: uint32(0x00020108),
- 39: uint32(0x00120108),
- 40: uint32(0x00021000),
- 41: uint32(0x00121000),
- 42: uint32(0x00021100),
- 43: uint32(0x00121100),
- 44: uint32(0x00021008),
- 45: uint32(0x00121008),
- 46: uint32(0x00021108),
- 47: uint32(0x00121108),
- 48: uint32(0x04020000),
- 49: uint32(0x04120000),
- 50: uint32(0x04020100),
- 51: uint32(0x04120100),
- 52: uint32(0x04020008),
- 53: uint32(0x04120008),
- 54: uint32(0x04020108),
- 55: uint32(0x04120108),
- 56: uint32(0x04021000),
- 57: uint32(0x04121000),
- 58: uint32(0x04021100),
- 59: uint32(0x04121100),
- 60: uint32(0x04021008),
- 61: uint32(0x04121008),
- 62: uint32(0x04021108),
- 63: uint32(0x04121108),
- },
- 4: {
- 1: uint32(0x10000000),
- 2: uint32(0x00010000),
- 3: uint32(0x10010000),
- 4: uint32(0x00000004),
- 5: uint32(0x10000004),
- 6: uint32(0x00010004),
- 7: uint32(0x10010004),
- 8: uint32(0x20000000),
- 9: uint32(0x30000000),
- 10: uint32(0x20010000),
- 11: uint32(0x30010000),
- 12: uint32(0x20000004),
- 13: uint32(0x30000004),
- 14: uint32(0x20010004),
- 15: uint32(0x30010004),
- 16: uint32(0x00100000),
- 17: uint32(0x10100000),
- 18: uint32(0x00110000),
- 19: uint32(0x10110000),
- 20: uint32(0x00100004),
- 21: uint32(0x10100004),
- 22: uint32(0x00110004),
- 23: uint32(0x10110004),
- 24: uint32(0x20100000),
- 25: uint32(0x30100000),
- 26: uint32(0x20110000),
- 27: uint32(0x30110000),
- 28: uint32(0x20100004),
- 29: uint32(0x30100004),
- 30: uint32(0x20110004),
- 31: uint32(0x30110004),
- 32: uint32(0x00001000),
- 33: uint32(0x10001000),
- 34: uint32(0x00011000),
- 35: uint32(0x10011000),
- 36: uint32(0x00001004),
- 37: uint32(0x10001004),
- 38: uint32(0x00011004),
- 39: uint32(0x10011004),
- 40: uint32(0x20001000),
- 41: uint32(0x30001000),
- 42: uint32(0x20011000),
- 43: uint32(0x30011000),
- 44: uint32(0x20001004),
- 45: uint32(0x30001004),
- 46: uint32(0x20011004),
- 47: uint32(0x30011004),
- 48: uint32(0x00101000),
- 49: uint32(0x10101000),
- 50: uint32(0x00111000),
- 51: uint32(0x10111000),
- 52: uint32(0x00101004),
- 53: uint32(0x10101004),
- 54: uint32(0x00111004),
- 55: uint32(0x10111004),
- 56: uint32(0x20101000),
- 57: uint32(0x30101000),
- 58: uint32(0x20111000),
- 59: uint32(0x30111000),
- 60: uint32(0x20101004),
- 61: uint32(0x30101004),
- 62: uint32(0x20111004),
- 63: uint32(0x30111004),
- },
- 5: {
- 1: uint32(0x08000000),
- 2: uint32(0x00000008),
- 3: uint32(0x08000008),
- 4: uint32(0x00000400),
- 5: uint32(0x08000400),
- 6: uint32(0x00000408),
- 7: uint32(0x08000408),
- 8: uint32(0x00020000),
- 9: uint32(0x08020000),
- 10: uint32(0x00020008),
- 11: uint32(0x08020008),
- 12: uint32(0x00020400),
- 13: uint32(0x08020400),
- 14: uint32(0x00020408),
- 15: uint32(0x08020408),
- 16: uint32(0x00000001),
- 17: uint32(0x08000001),
- 18: uint32(0x00000009),
- 19: uint32(0x08000009),
- 20: uint32(0x00000401),
- 21: uint32(0x08000401),
- 22: uint32(0x00000409),
- 23: uint32(0x08000409),
- 24: uint32(0x00020001),
- 25: uint32(0x08020001),
- 26: uint32(0x00020009),
- 27: uint32(0x08020009),
- 28: uint32(0x00020401),
- 29: uint32(0x08020401),
- 30: uint32(0x00020409),
- 31: uint32(0x08020409),
- 32: uint32(0x02000000),
- 33: uint32(0x0A000000),
- 34: uint32(0x02000008),
- 35: uint32(0x0A000008),
- 36: uint32(0x02000400),
- 37: uint32(0x0A000400),
- 38: uint32(0x02000408),
- 39: uint32(0x0A000408),
- 40: uint32(0x02020000),
- 41: uint32(0x0A020000),
- 42: uint32(0x02020008),
- 43: uint32(0x0A020008),
- 44: uint32(0x02020400),
- 45: uint32(0x0A020400),
- 46: uint32(0x02020408),
- 47: uint32(0x0A020408),
- 48: uint32(0x02000001),
- 49: uint32(0x0A000001),
- 50: uint32(0x02000009),
- 51: uint32(0x0A000009),
- 52: uint32(0x02000401),
- 53: uint32(0x0A000401),
- 54: uint32(0x02000409),
- 55: uint32(0x0A000409),
- 56: uint32(0x02020001),
- 57: uint32(0x0A020001),
- 58: uint32(0x02020009),
- 59: uint32(0x0A020009),
- 60: uint32(0x02020401),
- 61: uint32(0x0A020401),
- 62: uint32(0x02020409),
- 63: uint32(0x0A020409),
- },
- 6: {
- 1: uint32(0x00000100),
- 2: uint32(0x00080000),
- 3: uint32(0x00080100),
- 4: uint32(0x01000000),
- 5: uint32(0x01000100),
- 6: uint32(0x01080000),
- 7: uint32(0x01080100),
- 8: uint32(0x00000010),
- 9: uint32(0x00000110),
- 10: uint32(0x00080010),
- 11: uint32(0x00080110),
- 12: uint32(0x01000010),
- 13: uint32(0x01000110),
- 14: uint32(0x01080010),
- 15: uint32(0x01080110),
- 16: uint32(0x00200000),
- 17: uint32(0x00200100),
- 18: uint32(0x00280000),
- 19: uint32(0x00280100),
- 20: uint32(0x01200000),
- 21: uint32(0x01200100),
- 22: uint32(0x01280000),
- 23: uint32(0x01280100),
- 24: uint32(0x00200010),
- 25: uint32(0x00200110),
- 26: uint32(0x00280010),
- 27: uint32(0x00280110),
- 28: uint32(0x01200010),
- 29: uint32(0x01200110),
- 30: uint32(0x01280010),
- 31: uint32(0x01280110),
- 32: uint32(0x00000200),
- 33: uint32(0x00000300),
- 34: uint32(0x00080200),
- 35: uint32(0x00080300),
- 36: uint32(0x01000200),
- 37: uint32(0x01000300),
- 38: uint32(0x01080200),
- 39: uint32(0x01080300),
- 40: uint32(0x00000210),
- 41: uint32(0x00000310),
- 42: uint32(0x00080210),
- 43: uint32(0x00080310),
- 44: uint32(0x01000210),
- 45: uint32(0x01000310),
- 46: uint32(0x01080210),
- 47: uint32(0x01080310),
- 48: uint32(0x00200200),
- 49: uint32(0x00200300),
- 50: uint32(0x00280200),
- 51: uint32(0x00280300),
- 52: uint32(0x01200200),
- 53: uint32(0x01200300),
- 54: uint32(0x01280200),
- 55: uint32(0x01280300),
- 56: uint32(0x00200210),
- 57: uint32(0x00200310),
- 58: uint32(0x00280210),
- 59: uint32(0x00280310),
- 60: uint32(0x01200210),
- 61: uint32(0x01200310),
- 62: uint32(0x01280210),
- 63: uint32(0x01280310),
- },
- 7: {
- 1: uint32(0x04000000),
- 2: uint32(0x00040000),
- 3: uint32(0x04040000),
- 4: uint32(0x00000002),
- 5: uint32(0x04000002),
- 6: uint32(0x00040002),
- 7: uint32(0x04040002),
- 8: uint32(0x00002000),
- 9: uint32(0x04002000),
- 10: uint32(0x00042000),
- 11: uint32(0x04042000),
- 12: uint32(0x00002002),
- 13: uint32(0x04002002),
- 14: uint32(0x00042002),
- 15: uint32(0x04042002),
- 16: uint32(0x00000020),
- 17: uint32(0x04000020),
- 18: uint32(0x00040020),
- 19: uint32(0x04040020),
- 20: uint32(0x00000022),
- 21: uint32(0x04000022),
- 22: uint32(0x00040022),
- 23: uint32(0x04040022),
- 24: uint32(0x00002020),
- 25: uint32(0x04002020),
- 26: uint32(0x00042020),
- 27: uint32(0x04042020),
- 28: uint32(0x00002022),
- 29: uint32(0x04002022),
- 30: uint32(0x00042022),
- 31: uint32(0x04042022),
- 32: uint32(0x00000800),
- 33: uint32(0x04000800),
- 34: uint32(0x00040800),
- 35: uint32(0x04040800),
- 36: uint32(0x00000802),
- 37: uint32(0x04000802),
- 38: uint32(0x00040802),
- 39: uint32(0x04040802),
- 40: uint32(0x00002800),
- 41: uint32(0x04002800),
- 42: uint32(0x00042800),
- 43: uint32(0x04042800),
- 44: uint32(0x00002802),
- 45: uint32(0x04002802),
- 46: uint32(0x00042802),
- 47: uint32(0x04042802),
- 48: uint32(0x00000820),
- 49: uint32(0x04000820),
- 50: uint32(0x00040820),
- 51: uint32(0x04040820),
- 52: uint32(0x00000822),
- 53: uint32(0x04000822),
- 54: uint32(0x00040822),
- 55: uint32(0x04040822),
- 56: uint32(0x00002820),
- 57: uint32(0x04002820),
- 58: uint32(0x00042820),
- 59: uint32(0x04042820),
- 60: uint32(0x00002822),
- 61: uint32(0x04002822),
- 62: uint32(0x00042822),
- 63: uint32(0x04042822),
- },
- }
- var _SPtrans = [8][64]TCARD32{
- 0: {
- 0: uint32(0x00410100),
- 1: uint32(0x00010000),
- 2: uint32(0x40400000),
- 3: uint32(0x40410100),
- 4: uint32(0x00400000),
- 5: uint32(0x40010100),
- 6: uint32(0x40010000),
- 7: uint32(0x40400000),
- 8: uint32(0x40010100),
- 9: uint32(0x00410100),
- 10: uint32(0x00410000),
- 11: uint32(0x40000100),
- 12: uint32(0x40400100),
- 13: uint32(0x00400000),
- 15: uint32(0x40010000),
- 16: uint32(0x00010000),
- 17: uint32(0x40000000),
- 18: uint32(0x00400100),
- 19: uint32(0x00010100),
- 20: uint32(0x40410100),
- 21: uint32(0x00410000),
- 22: uint32(0x40000100),
- 23: uint32(0x00400100),
- 24: uint32(0x40000000),
- 25: uint32(0x00000100),
- 26: uint32(0x00010100),
- 27: uint32(0x40410000),
- 28: uint32(0x00000100),
- 29: uint32(0x40400100),
- 30: uint32(0x40410000),
- 33: uint32(0x40410100),
- 34: uint32(0x00400100),
- 35: uint32(0x40010000),
- 36: uint32(0x00410100),
- 37: uint32(0x00010000),
- 38: uint32(0x40000100),
- 39: uint32(0x00400100),
- 40: uint32(0x40410000),
- 41: uint32(0x00000100),
- 42: uint32(0x00010100),
- 43: uint32(0x40400000),
- 44: uint32(0x40010100),
- 45: uint32(0x40000000),
- 46: uint32(0x40400000),
- 47: uint32(0x00410000),
- 48: uint32(0x40410100),
- 49: uint32(0x00010100),
- 50: uint32(0x00410000),
- 51: uint32(0x40400100),
- 52: uint32(0x00400000),
- 53: uint32(0x40000100),
- 54: uint32(0x40010000),
- 56: uint32(0x00010000),
- 57: uint32(0x00400000),
- 58: uint32(0x40400100),
- 59: uint32(0x00410100),
- 60: uint32(0x40000000),
- 61: uint32(0x40410000),
- 62: uint32(0x00000100),
- 63: uint32(0x40010100),
- },
- 1: {
- 0: uint32(0x08021002),
- 2: uint32(0x00021000),
- 3: uint32(0x08020000),
- 4: uint32(0x08000002),
- 5: uint32(0x00001002),
- 6: uint32(0x08001000),
- 7: uint32(0x00021000),
- 8: uint32(0x00001000),
- 9: uint32(0x08020002),
- 10: uint32(0x00000002),
- 11: uint32(0x08001000),
- 12: uint32(0x00020002),
- 13: uint32(0x08021000),
- 14: uint32(0x08020000),
- 15: uint32(0x00000002),
- 16: uint32(0x00020000),
- 17: uint32(0x08001002),
- 18: uint32(0x08020002),
- 19: uint32(0x00001000),
- 20: uint32(0x00021002),
- 21: uint32(0x08000000),
- 23: uint32(0x00020002),
- 24: uint32(0x08001002),
- 25: uint32(0x00021002),
- 26: uint32(0x08021000),
- 27: uint32(0x08000002),
- 28: uint32(0x08000000),
- 29: uint32(0x00020000),
- 30: uint32(0x00001002),
- 31: uint32(0x08021002),
- 32: uint32(0x00020002),
- 33: uint32(0x08021000),
- 34: uint32(0x08001000),
- 35: uint32(0x00021002),
- 36: uint32(0x08021002),
- 37: uint32(0x00020002),
- 38: uint32(0x08000002),
- 40: uint32(0x08000000),
- 41: uint32(0x00001002),
- 42: uint32(0x00020000),
- 43: uint32(0x08020002),
- 44: uint32(0x00001000),
- 45: uint32(0x08000000),
- 46: uint32(0x00021002),
- 47: uint32(0x08001002),
- 48: uint32(0x08021000),
- 49: uint32(0x00001000),
- 51: uint32(0x08000002),
- 52: uint32(0x00000002),
- 53: uint32(0x08021002),
- 54: uint32(0x00021000),
- 55: uint32(0x08020000),
- 56: uint32(0x08020002),
- 57: uint32(0x00020000),
- 58: uint32(0x00001002),
- 59: uint32(0x08001000),
- 60: uint32(0x08001002),
- 61: uint32(0x00000002),
- 62: uint32(0x08020000),
- 63: uint32(0x00021000),
- },
- 2: {
- 0: uint32(0x20800000),
- 1: uint32(0x00808020),
- 2: uint32(0x00000020),
- 3: uint32(0x20800020),
- 4: uint32(0x20008000),
- 5: uint32(0x00800000),
- 6: uint32(0x20800020),
- 7: uint32(0x00008020),
- 8: uint32(0x00800020),
- 9: uint32(0x00008000),
- 10: uint32(0x00808000),
- 11: uint32(0x20000000),
- 12: uint32(0x20808020),
- 13: uint32(0x20000020),
- 14: uint32(0x20000000),
- 15: uint32(0x20808000),
- 17: uint32(0x20008000),
- 18: uint32(0x00808020),
- 19: uint32(0x00000020),
- 20: uint32(0x20000020),
- 21: uint32(0x20808020),
- 22: uint32(0x00008000),
- 23: uint32(0x20800000),
- 24: uint32(0x20808000),
- 25: uint32(0x00800020),
- 26: uint32(0x20008020),
- 27: uint32(0x00808000),
- 28: uint32(0x00008020),
- 30: uint32(0x00800000),
- 31: uint32(0x20008020),
- 32: uint32(0x00808020),
- 33: uint32(0x00000020),
- 34: uint32(0x20000000),
- 35: uint32(0x00008000),
- 36: uint32(0x20000020),
- 37: uint32(0x20008000),
- 38: uint32(0x00808000),
- 39: uint32(0x20800020),
- 41: uint32(0x00808020),
- 42: uint32(0x00008020),
- 43: uint32(0x20808000),
- 44: uint32(0x20008000),
- 45: uint32(0x00800000),
- 46: uint32(0x20808020),
- 47: uint32(0x20000000),
- 48: uint32(0x20008020),
- 49: uint32(0x20800000),
- 50: uint32(0x00800000),
- 51: uint32(0x20808020),
- 52: uint32(0x00008000),
- 53: uint32(0x00800020),
- 54: uint32(0x20800020),
- 55: uint32(0x00008020),
- 56: uint32(0x00800020),
- 58: uint32(0x20808000),
- 59: uint32(0x20000020),
- 60: uint32(0x20800000),
- 61: uint32(0x20008020),
- 62: uint32(0x00000020),
- 63: uint32(0x00808000),
- },
- 3: {
- 0: uint32(0x00080201),
- 1: uint32(0x02000200),
- 2: uint32(0x00000001),
- 3: uint32(0x02080201),
- 5: uint32(0x02080000),
- 6: uint32(0x02000201),
- 7: uint32(0x00080001),
- 8: uint32(0x02080200),
- 9: uint32(0x02000001),
- 10: uint32(0x02000000),
- 11: uint32(0x00000201),
- 12: uint32(0x02000001),
- 13: uint32(0x00080201),
- 14: uint32(0x00080000),
- 15: uint32(0x02000000),
- 16: uint32(0x02080001),
- 17: uint32(0x00080200),
- 18: uint32(0x00000200),
- 19: uint32(0x00000001),
- 20: uint32(0x00080200),
- 21: uint32(0x02000201),
- 22: uint32(0x02080000),
- 23: uint32(0x00000200),
- 24: uint32(0x00000201),
- 26: uint32(0x00080001),
- 27: uint32(0x02080200),
- 28: uint32(0x02000200),
- 29: uint32(0x02080001),
- 30: uint32(0x02080201),
- 31: uint32(0x00080000),
- 32: uint32(0x02080001),
- 33: uint32(0x00000201),
- 34: uint32(0x00080000),
- 35: uint32(0x02000001),
- 36: uint32(0x00080200),
- 37: uint32(0x02000200),
- 38: uint32(0x00000001),
- 39: uint32(0x02080000),
- 40: uint32(0x02000201),
- 42: uint32(0x00000200),
- 43: uint32(0x00080001),
- 45: uint32(0x02080001),
- 46: uint32(0x02080200),
- 47: uint32(0x00000200),
- 48: uint32(0x02000000),
- 49: uint32(0x02080201),
- 50: uint32(0x00080201),
- 51: uint32(0x00080000),
- 52: uint32(0x02080201),
- 53: uint32(0x00000001),
- 54: uint32(0x02000200),
- 55: uint32(0x00080201),
- 56: uint32(0x00080001),
- 57: uint32(0x00080200),
- 58: uint32(0x02080000),
- 59: uint32(0x02000201),
- 60: uint32(0x00000201),
- 61: uint32(0x02000000),
- 62: uint32(0x02000001),
- 63: uint32(0x02080200),
- },
- 4: {
- 0: uint32(0x01000000),
- 1: uint32(0x00002000),
- 2: uint32(0x00000080),
- 3: uint32(0x01002084),
- 4: uint32(0x01002004),
- 5: uint32(0x01000080),
- 6: uint32(0x00002084),
- 7: uint32(0x01002000),
- 8: uint32(0x00002000),
- 9: uint32(0x00000004),
- 10: uint32(0x01000004),
- 11: uint32(0x00002080),
- 12: uint32(0x01000084),
- 13: uint32(0x01002004),
- 14: uint32(0x01002080),
- 16: uint32(0x00002080),
- 17: uint32(0x01000000),
- 18: uint32(0x00002004),
- 19: uint32(0x00000084),
- 20: uint32(0x01000080),
- 21: uint32(0x00002084),
- 23: uint32(0x01000004),
- 24: uint32(0x00000004),
- 25: uint32(0x01000084),
- 26: uint32(0x01002084),
- 27: uint32(0x00002004),
- 28: uint32(0x01002000),
- 29: uint32(0x00000080),
- 30: uint32(0x00000084),
- 31: uint32(0x01002080),
- 32: uint32(0x01002080),
- 33: uint32(0x01000084),
- 34: uint32(0x00002004),
- 35: uint32(0x01002000),
- 36: uint32(0x00002000),
- 37: uint32(0x00000004),
- 38: uint32(0x01000004),
- 39: uint32(0x01000080),
- 40: uint32(0x01000000),
- 41: uint32(0x00002080),
- 42: uint32(0x01002084),
- 44: uint32(0x00002084),
- 45: uint32(0x01000000),
- 46: uint32(0x00000080),
- 47: uint32(0x00002004),
- 48: uint32(0x01000084),
- 49: uint32(0x00000080),
- 51: uint32(0x01002084),
- 52: uint32(0x01002004),
- 53: uint32(0x01002080),
- 54: uint32(0x00000084),
- 55: uint32(0x00002000),
- 56: uint32(0x00002080),
- 57: uint32(0x01002004),
- 58: uint32(0x01000080),
- 59: uint32(0x00000084),
- 60: uint32(0x00000004),
- 61: uint32(0x00002084),
- 62: uint32(0x01002000),
- 63: uint32(0x01000004),
- },
- 5: {
- 0: uint32(0x10000008),
- 1: uint32(0x00040008),
- 3: uint32(0x10040400),
- 4: uint32(0x00040008),
- 5: uint32(0x00000400),
- 6: uint32(0x10000408),
- 7: uint32(0x00040000),
- 8: uint32(0x00000408),
- 9: uint32(0x10040408),
- 10: uint32(0x00040400),
- 11: uint32(0x10000000),
- 12: uint32(0x10000400),
- 13: uint32(0x10000008),
- 14: uint32(0x10040000),
- 15: uint32(0x00040408),
- 16: uint32(0x00040000),
- 17: uint32(0x10000408),
- 18: uint32(0x10040008),
- 20: uint32(0x00000400),
- 21: uint32(0x00000008),
- 22: uint32(0x10040400),
- 23: uint32(0x10040008),
- 24: uint32(0x10040408),
- 25: uint32(0x10040000),
- 26: uint32(0x10000000),
- 27: uint32(0x00000408),
- 28: uint32(0x00000008),
- 29: uint32(0x00040400),
- 30: uint32(0x00040408),
- 31: uint32(0x10000400),
- 32: uint32(0x00000408),
- 33: uint32(0x10000000),
- 34: uint32(0x10000400),
- 35: uint32(0x00040408),
- 36: uint32(0x10040400),
- 37: uint32(0x00040008),
- 39: uint32(0x10000400),
- 40: uint32(0x10000000),
- 41: uint32(0x00000400),
- 42: uint32(0x10040008),
- 43: uint32(0x00040000),
- 44: uint32(0x00040008),
- 45: uint32(0x10040408),
- 46: uint32(0x00040400),
- 47: uint32(0x00000008),
- 48: uint32(0x10040408),
- 49: uint32(0x00040400),
- 50: uint32(0x00040000),
- 51: uint32(0x10000408),
- 52: uint32(0x10000008),
- 53: uint32(0x10040000),
- 54: uint32(0x00040408),
- 56: uint32(0x00000400),
- 57: uint32(0x10000008),
- 58: uint32(0x10000408),
- 59: uint32(0x10040400),
- 60: uint32(0x10040000),
- 61: uint32(0x00000408),
- 62: uint32(0x00000008),
- 63: uint32(0x10040008),
- },
- 6: {
- 0: uint32(0x00000800),
- 1: uint32(0x00000040),
- 2: uint32(0x00200040),
- 3: uint32(0x80200000),
- 4: uint32(0x80200840),
- 5: uint32(0x80000800),
- 6: uint32(0x00000840),
- 8: uint32(0x00200000),
- 9: uint32(0x80200040),
- 10: uint32(0x80000040),
- 11: uint32(0x00200800),
- 12: uint32(0x80000000),
- 13: uint32(0x00200840),
- 14: uint32(0x00200800),
- 15: uint32(0x80000040),
- 16: uint32(0x80200040),
- 17: uint32(0x00000800),
- 18: uint32(0x80000800),
- 19: uint32(0x80200840),
- 21: uint32(0x00200040),
- 22: uint32(0x80200000),
- 23: uint32(0x00000840),
- 24: uint32(0x80200800),
- 25: uint32(0x80000840),
- 26: uint32(0x00200840),
- 27: uint32(0x80000000),
- 28: uint32(0x80000840),
- 29: uint32(0x80200800),
- 30: uint32(0x00000040),
- 31: uint32(0x00200000),
- 32: uint32(0x80000840),
- 33: uint32(0x00200800),
- 34: uint32(0x80200800),
- 35: uint32(0x80000040),
- 36: uint32(0x00000800),
- 37: uint32(0x00000040),
- 38: uint32(0x00200000),
- 39: uint32(0x80200800),
- 40: uint32(0x80200040),
- 41: uint32(0x80000840),
- 42: uint32(0x00000840),
- 44: uint32(0x00000040),
- 45: uint32(0x80200000),
- 46: uint32(0x80000000),
- 47: uint32(0x00200040),
- 49: uint32(0x80200040),
- 50: uint32(0x00200040),
- 51: uint32(0x00000840),
- 52: uint32(0x80000040),
- 53: uint32(0x00000800),
- 54: uint32(0x80200840),
- 55: uint32(0x00200000),
- 56: uint32(0x00200840),
- 57: uint32(0x80000000),
- 58: uint32(0x80000800),
- 59: uint32(0x80200840),
- 60: uint32(0x80200000),
- 61: uint32(0x00200840),
- 62: uint32(0x00200800),
- 63: uint32(0x80000800),
- },
- 7: {
- 0: uint32(0x04100010),
- 1: uint32(0x04104000),
- 2: uint32(0x00004010),
- 4: uint32(0x04004000),
- 5: uint32(0x00100010),
- 6: uint32(0x04100000),
- 7: uint32(0x04104010),
- 8: uint32(0x00000010),
- 9: uint32(0x04000000),
- 10: uint32(0x00104000),
- 11: uint32(0x00004010),
- 12: uint32(0x00104010),
- 13: uint32(0x04004010),
- 14: uint32(0x04000010),
- 15: uint32(0x04100000),
- 16: uint32(0x00004000),
- 17: uint32(0x00104010),
- 18: uint32(0x00100010),
- 19: uint32(0x04004000),
- 20: uint32(0x04104010),
- 21: uint32(0x04000010),
- 23: uint32(0x00104000),
- 24: uint32(0x04000000),
- 25: uint32(0x00100000),
- 26: uint32(0x04004010),
- 27: uint32(0x04100010),
- 28: uint32(0x00100000),
- 29: uint32(0x00004000),
- 30: uint32(0x04104000),
- 31: uint32(0x00000010),
- 32: uint32(0x00100000),
- 33: uint32(0x00004000),
- 34: uint32(0x04000010),
- 35: uint32(0x04104010),
- 36: uint32(0x00004010),
- 37: uint32(0x04000000),
- 39: uint32(0x00104000),
- 40: uint32(0x04100010),
- 41: uint32(0x04004010),
- 42: uint32(0x04004000),
- 43: uint32(0x00100010),
- 44: uint32(0x04104000),
- 45: uint32(0x00000010),
- 46: uint32(0x00100010),
- 47: uint32(0x04004000),
- 48: uint32(0x04104010),
- 49: uint32(0x00100000),
- 50: uint32(0x04100000),
- 51: uint32(0x04000010),
- 52: uint32(0x00104000),
- 53: uint32(0x00004010),
- 54: uint32(0x04004010),
- 55: uint32(0x04100000),
- 56: uint32(0x00000010),
- 57: uint32(0x04104000),
- 58: uint32(0x00104010),
- 60: uint32(0x04000000),
- 61: uint32(0x04100010),
- 62: uint32(0x00004000),
- 63: uint32(0x00104010),
- },
- }
- var _shifts2 = [16]int8{
- 2: int8(1),
- 3: int8(1),
- 4: int8(1),
- 5: int8(1),
- 6: int8(1),
- 7: int8(1),
- 9: int8(1),
- 10: int8(1),
- 11: int8(1),
- 12: int8(1),
- 13: int8(1),
- 14: int8(1),
- }
- func X_XdmcpAuthSetup(tls *libc.TLS, key uintptr, schedule uintptr) {
- var c, d, s, t TCARD32
- var i int32
- var in, k, v1, v10, v11, v2, v3, v4, v5, v6, v7, v8 uintptr
- _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = c, d, i, in, k, s, t, v1, v10, v11, v2, v3, v4, v5, v6, v7, v8
- k = schedule
- in = key
- v1 = in
- in++
- c = uint32(*(*TCARD8)(unsafe.Pointer(v1)))
- v2 = in
- in++
- c |= uint32(*(*TCARD8)(unsafe.Pointer(v2))) << int32(8)
- v3 = in
- in++
- c |= uint32(*(*TCARD8)(unsafe.Pointer(v3))) << int32(16)
- v4 = in
- in++
- c |= uint32(*(*TCARD8)(unsafe.Pointer(v4))) << int32(24)
- v5 = in
- in++
- d = uint32(*(*TCARD8)(unsafe.Pointer(v5)))
- v6 = in
- in++
- d |= uint32(*(*TCARD8)(unsafe.Pointer(v6))) << int32(8)
- v7 = in
- in++
- d |= uint32(*(*TCARD8)(unsafe.Pointer(v7))) << int32(16)
- v8 = in
- in++
- d |= uint32(*(*TCARD8)(unsafe.Pointer(v8))) << int32(24)
- /* do PC1 in 60 simple operations */
- t = (d>>libc.Int32FromInt32(4) ^ c) & libc.Uint32FromInt32(libc.Int32FromInt32(0x0f0f0f0f))
- c ^= t
- d ^= t << libc.Int32FromInt32(4)
- t = (c<<(libc.Int32FromInt32(16) - -libc.Int32FromInt32(2)) ^ c) & libc.Uint32FromUint32(0xcccc0000)
- c = c ^ t ^ t>>(libc.Int32FromInt32(16) - -libc.Int32FromInt32(2))
- t = (c<<(libc.Int32FromInt32(16) - -libc.Int32FromInt32(1)) ^ c) & libc.Uint32FromUint32(0xaaaa0000)
- c = c ^ t ^ t>>(libc.Int32FromInt32(16) - -libc.Int32FromInt32(1))
- t = (c<<(libc.Int32FromInt32(16)-libc.Int32FromInt32(8)) ^ c) & libc.Uint32FromInt32(libc.Int32FromInt32(0x00ff0000))
- c = c ^ t ^ t>>(libc.Int32FromInt32(16)-libc.Int32FromInt32(8))
- t = (c<<(libc.Int32FromInt32(16) - -libc.Int32FromInt32(1)) ^ c) & libc.Uint32FromUint32(0xaaaa0000)
- c = c ^ t ^ t>>(libc.Int32FromInt32(16) - -libc.Int32FromInt32(1))
- t = (d<<(libc.Int32FromInt32(16) - -libc.Int32FromInt32(8)) ^ d) & libc.Uint32FromUint32(0xff000000)
- d = d ^ t ^ t>>(libc.Int32FromInt32(16) - -libc.Int32FromInt32(8))
- t = (d<<(libc.Int32FromInt32(16)-libc.Int32FromInt32(8)) ^ d) & libc.Uint32FromInt32(libc.Int32FromInt32(0x00ff0000))
- d = d ^ t ^ t>>(libc.Int32FromInt32(16)-libc.Int32FromInt32(8))
- t = (d<<(libc.Int32FromInt32(16)-libc.Int32FromInt32(2)) ^ d) & libc.Uint32FromInt32(libc.Int32FromInt32(0x33330000))
- d = d ^ t ^ t>>(libc.Int32FromInt32(16)-libc.Int32FromInt32(2))
- d = d&uint32(0x00aa00aa)<<int32(7) | d&uint32(0x55005500)>>int32(7) | d&uint32(0xaa55aa55)
- d = d>>libc.Int32FromInt32(8) | c&uint32(0xf0000000)>>int32(4)
- c &= uint32(0x0fffffff)
- i = 0
- for {
- if !(i < int32(m_ITERATIONS)) {
- break
- }
- if _shifts2[i] != 0 {
- c = c>>libc.Int32FromInt32(2) | c<<libc.Int32FromInt32(26)
- d = d>>libc.Int32FromInt32(2) | d<<libc.Int32FromInt32(26)
- } else {
- c = c>>libc.Int32FromInt32(1) | c<<libc.Int32FromInt32(27)
- d = d>>libc.Int32FromInt32(1) | d<<libc.Int32FromInt32(27)
- }
- c &= uint32(0x0fffffff)
- d &= uint32(0x0fffffff)
- /* could be a few less shifts but I am to lazy at this
- * point in time to investigate */
- s = *(*TCARD32)(unsafe.Pointer(uintptr(unsafe.Pointer(&_skb)) + uintptr(c&uint32(0x3f))*4)) | *(*TCARD32)(unsafe.Pointer(uintptr(unsafe.Pointer(&_skb)) + 1*256 + uintptr(c>>libc.Int32FromInt32(6)&uint32(0x03)|c>>libc.Int32FromInt32(7)&uint32(0x3c))*4)) | *(*TCARD32)(unsafe.Pointer(uintptr(unsafe.Pointer(&_skb)) + 2*256 + uintptr(c>>libc.Int32FromInt32(13)&uint32(0x0f)|c>>libc.Int32FromInt32(14)&uint32(0x30))*4)) | *(*TCARD32)(unsafe.Pointer(uintptr(unsafe.Pointer(&_skb)) + 3*256 + uintptr(c>>libc.Int32FromInt32(20)&uint32(0x01)|c>>libc.Int32FromInt32(21)&uint32(0x06)|c>>libc.Int32FromInt32(22)&uint32(0x38))*4))
- t = *(*TCARD32)(unsafe.Pointer(uintptr(unsafe.Pointer(&_skb)) + 4*256 + uintptr(d&uint32(0x3f))*4)) | *(*TCARD32)(unsafe.Pointer(uintptr(unsafe.Pointer(&_skb)) + 5*256 + uintptr(d>>libc.Int32FromInt32(7)&uint32(0x03)|d>>libc.Int32FromInt32(8)&uint32(0x3c))*4)) | *(*TCARD32)(unsafe.Pointer(uintptr(unsafe.Pointer(&_skb)) + 6*256 + uintptr(d>>libc.Int32FromInt32(15)&uint32(0x3f))*4)) | *(*TCARD32)(unsafe.Pointer(uintptr(unsafe.Pointer(&_skb)) + 7*256 + uintptr(d>>libc.Int32FromInt32(21)&uint32(0x0f)|d>>libc.Int32FromInt32(22)&uint32(0x30))*4))
- /* table contained 0213 4657 */
- v10 = k
- k += 4
- *(*TCARD32)(unsafe.Pointer(v10)) = t<<libc.Int32FromInt32(16) | s&libc.Uint32FromInt32(0x0000ffff)
- s = s>>libc.Int32FromInt32(16) | t&libc.Uint32FromUint32(0xffff0000)
- s = s<<libc.Int32FromInt32(4) | s>>libc.Int32FromInt32(28)
- v11 = k
- k += 4
- *(*TCARD32)(unsafe.Pointer(v11)) = s
- goto _9
- _9:
- ;
- i++
- }
- return
- }
- func X_XdmcpAuthDoIt(tls *libc.TLS, input uintptr, output uintptr, ks uintptr, encrypt int32) {
- var i int32
- var in, out, s, v1, v11, v12, v13, v14, v15, v16, v17, v18, v2, v3, v4, v5, v6, v7, v8 uintptr
- var l, r, t, u TCARD32
- _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = i, in, l, out, r, s, t, u, v1, v11, v12, v13, v14, v15, v16, v17, v18, v2, v3, v4, v5, v6, v7, v8
- in = input
- out = output
- v1 = in
- in++
- l = uint32(*(*TCARD8)(unsafe.Pointer(v1)))
- v2 = in
- in++
- l |= uint32(*(*TCARD8)(unsafe.Pointer(v2))) << int32(8)
- v3 = in
- in++
- l |= uint32(*(*TCARD8)(unsafe.Pointer(v3))) << int32(16)
- v4 = in
- in++
- l |= uint32(*(*TCARD8)(unsafe.Pointer(v4))) << int32(24)
- v5 = in
- in++
- r = uint32(*(*TCARD8)(unsafe.Pointer(v5)))
- v6 = in
- in++
- r |= uint32(*(*TCARD8)(unsafe.Pointer(v6))) << int32(8)
- v7 = in
- in++
- r |= uint32(*(*TCARD8)(unsafe.Pointer(v7))) << int32(16)
- v8 = in
- in++
- r |= uint32(*(*TCARD8)(unsafe.Pointer(v8))) << int32(24)
- /* do IP */
- t = (r>>libc.Int32FromInt32(4) ^ l) & libc.Uint32FromInt32(libc.Int32FromInt32(0x0f0f0f0f))
- l ^= t
- r ^= t << libc.Int32FromInt32(4)
- t = (l>>libc.Int32FromInt32(16) ^ r) & libc.Uint32FromInt32(libc.Int32FromInt32(0x0000ffff))
- r ^= t
- l ^= t << libc.Int32FromInt32(16)
- t = (r>>libc.Int32FromInt32(2) ^ l) & libc.Uint32FromInt32(libc.Int32FromInt32(0x33333333))
- l ^= t
- r ^= t << libc.Int32FromInt32(2)
- t = (l>>libc.Int32FromInt32(8) ^ r) & libc.Uint32FromInt32(libc.Int32FromInt32(0x00ff00ff))
- r ^= t
- l ^= t << libc.Int32FromInt32(8)
- t = (r>>libc.Int32FromInt32(1) ^ l) & libc.Uint32FromInt32(libc.Int32FromInt32(0x55555555))
- l ^= t
- r ^= t << libc.Int32FromInt32(1)
- /* r and l are reversed - remember that :-) */
- t = l
- l = r
- r = t
- s = ks
- if encrypt != 0 {
- i = 0
- for {
- if !(i < libc.Int32FromInt32(m_ITERATIONS)*libc.Int32FromInt32(2)) {
- break
- }
- t = r<<libc.Int32FromInt32(1) | r>>libc.Int32FromInt32(31)
- u = t ^ *(*TCARD32)(unsafe.Pointer(s + uintptr(i)*4))
- t = t ^ *(*TCARD32)(unsafe.Pointer(s + uintptr(i+int32(1))*4))
- t = t>>libc.Int32FromInt32(4) | t<<libc.Int32FromInt32(28)
- l ^= *(*TCARD32)(unsafe.Pointer(uintptr(unsafe.Pointer(&_SPtrans)) + 1*256 + uintptr(t&uint32(0x3f))*4)) | *(*TCARD32)(unsafe.Pointer(uintptr(unsafe.Pointer(&_SPtrans)) + 3*256 + uintptr(t>>libc.Int32FromInt32(8)&uint32(0x3f))*4)) | *(*TCARD32)(unsafe.Pointer(uintptr(unsafe.Pointer(&_SPtrans)) + 5*256 + uintptr(t>>libc.Int32FromInt32(16)&uint32(0x3f))*4)) | *(*TCARD32)(unsafe.Pointer(uintptr(unsafe.Pointer(&_SPtrans)) + 7*256 + uintptr(t>>libc.Int32FromInt32(24)&uint32(0x3f))*4)) | *(*TCARD32)(unsafe.Pointer(uintptr(unsafe.Pointer(&_SPtrans)) + uintptr(u&uint32(0x3f))*4)) | *(*TCARD32)(unsafe.Pointer(uintptr(unsafe.Pointer(&_SPtrans)) + 2*256 + uintptr(u>>libc.Int32FromInt32(8)&uint32(0x3f))*4)) | *(*TCARD32)(unsafe.Pointer(uintptr(unsafe.Pointer(&_SPtrans)) + 4*256 + uintptr(u>>libc.Int32FromInt32(16)&uint32(0x3f))*4)) | *(*TCARD32)(unsafe.Pointer(uintptr(unsafe.Pointer(&_SPtrans)) + 6*256 + uintptr(u>>libc.Int32FromInt32(24)&uint32(0x3f))*4)) /* 1 */
- t = l<<libc.Int32FromInt32(1) | l>>libc.Int32FromInt32(31)
- u = t ^ *(*TCARD32)(unsafe.Pointer(s + uintptr(i+int32(2))*4))
- t = t ^ *(*TCARD32)(unsafe.Pointer(s + uintptr(i+int32(2)+int32(1))*4))
- t = t>>libc.Int32FromInt32(4) | t<<libc.Int32FromInt32(28)
- r ^= *(*TCARD32)(unsafe.Pointer(uintptr(unsafe.Pointer(&_SPtrans)) + 1*256 + uintptr(t&uint32(0x3f))*4)) | *(*TCARD32)(unsafe.Pointer(uintptr(unsafe.Pointer(&_SPtrans)) + 3*256 + uintptr(t>>libc.Int32FromInt32(8)&uint32(0x3f))*4)) | *(*TCARD32)(unsafe.Pointer(uintptr(unsafe.Pointer(&_SPtrans)) + 5*256 + uintptr(t>>libc.Int32FromInt32(16)&uint32(0x3f))*4)) | *(*TCARD32)(unsafe.Pointer(uintptr(unsafe.Pointer(&_SPtrans)) + 7*256 + uintptr(t>>libc.Int32FromInt32(24)&uint32(0x3f))*4)) | *(*TCARD32)(unsafe.Pointer(uintptr(unsafe.Pointer(&_SPtrans)) + uintptr(u&uint32(0x3f))*4)) | *(*TCARD32)(unsafe.Pointer(uintptr(unsafe.Pointer(&_SPtrans)) + 2*256 + uintptr(u>>libc.Int32FromInt32(8)&uint32(0x3f))*4)) | *(*TCARD32)(unsafe.Pointer(uintptr(unsafe.Pointer(&_SPtrans)) + 4*256 + uintptr(u>>libc.Int32FromInt32(16)&uint32(0x3f))*4)) | *(*TCARD32)(unsafe.Pointer(uintptr(unsafe.Pointer(&_SPtrans)) + 6*256 + uintptr(u>>libc.Int32FromInt32(24)&uint32(0x3f))*4)) /* 2 */
- goto _9
- _9:
- ;
- i += int32(4)
- }
- } else {
- i = libc.Int32FromInt32(m_ITERATIONS)*libc.Int32FromInt32(2) - libc.Int32FromInt32(2)
- for {
- if !(i >= 0) {
- break
- }
- t = r<<libc.Int32FromInt32(1) | r>>libc.Int32FromInt32(31)
- u = t ^ *(*TCARD32)(unsafe.Pointer(s + uintptr(i)*4))
- t = t ^ *(*TCARD32)(unsafe.Pointer(s + uintptr(i+int32(1))*4))
- t = t>>libc.Int32FromInt32(4) | t<<libc.Int32FromInt32(28)
- l ^= *(*TCARD32)(unsafe.Pointer(uintptr(unsafe.Pointer(&_SPtrans)) + 1*256 + uintptr(t&uint32(0x3f))*4)) | *(*TCARD32)(unsafe.Pointer(uintptr(unsafe.Pointer(&_SPtrans)) + 3*256 + uintptr(t>>libc.Int32FromInt32(8)&uint32(0x3f))*4)) | *(*TCARD32)(unsafe.Pointer(uintptr(unsafe.Pointer(&_SPtrans)) + 5*256 + uintptr(t>>libc.Int32FromInt32(16)&uint32(0x3f))*4)) | *(*TCARD32)(unsafe.Pointer(uintptr(unsafe.Pointer(&_SPtrans)) + 7*256 + uintptr(t>>libc.Int32FromInt32(24)&uint32(0x3f))*4)) | *(*TCARD32)(unsafe.Pointer(uintptr(unsafe.Pointer(&_SPtrans)) + uintptr(u&uint32(0x3f))*4)) | *(*TCARD32)(unsafe.Pointer(uintptr(unsafe.Pointer(&_SPtrans)) + 2*256 + uintptr(u>>libc.Int32FromInt32(8)&uint32(0x3f))*4)) | *(*TCARD32)(unsafe.Pointer(uintptr(unsafe.Pointer(&_SPtrans)) + 4*256 + uintptr(u>>libc.Int32FromInt32(16)&uint32(0x3f))*4)) | *(*TCARD32)(unsafe.Pointer(uintptr(unsafe.Pointer(&_SPtrans)) + 6*256 + uintptr(u>>libc.Int32FromInt32(24)&uint32(0x3f))*4)) /* 1 */
- t = l<<libc.Int32FromInt32(1) | l>>libc.Int32FromInt32(31)
- u = t ^ *(*TCARD32)(unsafe.Pointer(s + uintptr(i-int32(2))*4))
- t = t ^ *(*TCARD32)(unsafe.Pointer(s + uintptr(i-int32(2)+int32(1))*4))
- t = t>>libc.Int32FromInt32(4) | t<<libc.Int32FromInt32(28)
- r ^= *(*TCARD32)(unsafe.Pointer(uintptr(unsafe.Pointer(&_SPtrans)) + 1*256 + uintptr(t&uint32(0x3f))*4)) | *(*TCARD32)(unsafe.Pointer(uintptr(unsafe.Pointer(&_SPtrans)) + 3*256 + uintptr(t>>libc.Int32FromInt32(8)&uint32(0x3f))*4)) | *(*TCARD32)(unsafe.Pointer(uintptr(unsafe.Pointer(&_SPtrans)) + 5*256 + uintptr(t>>libc.Int32FromInt32(16)&uint32(0x3f))*4)) | *(*TCARD32)(unsafe.Pointer(uintptr(unsafe.Pointer(&_SPtrans)) + 7*256 + uintptr(t>>libc.Int32FromInt32(24)&uint32(0x3f))*4)) | *(*TCARD32)(unsafe.Pointer(uintptr(unsafe.Pointer(&_SPtrans)) + uintptr(u&uint32(0x3f))*4)) | *(*TCARD32)(unsafe.Pointer(uintptr(unsafe.Pointer(&_SPtrans)) + 2*256 + uintptr(u>>libc.Int32FromInt32(8)&uint32(0x3f))*4)) | *(*TCARD32)(unsafe.Pointer(uintptr(unsafe.Pointer(&_SPtrans)) + 4*256 + uintptr(u>>libc.Int32FromInt32(16)&uint32(0x3f))*4)) | *(*TCARD32)(unsafe.Pointer(uintptr(unsafe.Pointer(&_SPtrans)) + 6*256 + uintptr(u>>libc.Int32FromInt32(24)&uint32(0x3f))*4)) /* 2 */
- goto _10
- _10:
- ;
- i -= int32(4)
- }
- }
- /* swap l and r
- * we will not do the swap so just remember they are
- * reversed for the rest of the subroutine
- * luckily by FP fixes this problem :-) */
- t = (r>>libc.Int32FromInt32(1) ^ l) & libc.Uint32FromInt32(libc.Int32FromInt32(0x55555555))
- l ^= t
- r ^= t << libc.Int32FromInt32(1)
- t = (l>>libc.Int32FromInt32(8) ^ r) & libc.Uint32FromInt32(libc.Int32FromInt32(0x00ff00ff))
- r ^= t
- l ^= t << libc.Int32FromInt32(8)
- t = (r>>libc.Int32FromInt32(2) ^ l) & libc.Uint32FromInt32(libc.Int32FromInt32(0x33333333))
- l ^= t
- r ^= t << libc.Int32FromInt32(2)
- t = (l>>libc.Int32FromInt32(16) ^ r) & libc.Uint32FromInt32(libc.Int32FromInt32(0x0000ffff))
- r ^= t
- l ^= t << libc.Int32FromInt32(16)
- t = (r>>libc.Int32FromInt32(4) ^ l) & libc.Uint32FromInt32(libc.Int32FromInt32(0x0f0f0f0f))
- l ^= t
- r ^= t << libc.Int32FromInt32(4)
- v11 = out
- out++
- *(*TCARD8)(unsafe.Pointer(v11)) = uint8(l & libc.Uint32FromInt32(0xff))
- v12 = out
- out++
- *(*TCARD8)(unsafe.Pointer(v12)) = uint8(l >> libc.Int32FromInt32(8) & libc.Uint32FromInt32(0xff))
- v13 = out
- out++
- *(*TCARD8)(unsafe.Pointer(v13)) = uint8(l >> libc.Int32FromInt32(16) & libc.Uint32FromInt32(0xff))
- v14 = out
- out++
- *(*TCARD8)(unsafe.Pointer(v14)) = uint8(l >> libc.Int32FromInt32(24) & libc.Uint32FromInt32(0xff))
- v15 = out
- out++
- *(*TCARD8)(unsafe.Pointer(v15)) = uint8(r & libc.Uint32FromInt32(0xff))
- v16 = out
- out++
- *(*TCARD8)(unsafe.Pointer(v16)) = uint8(r >> libc.Int32FromInt32(8) & libc.Uint32FromInt32(0xff))
- v17 = out
- out++
- *(*TCARD8)(unsafe.Pointer(v17)) = uint8(r >> libc.Int32FromInt32(16) & libc.Uint32FromInt32(0xff))
- v18 = out
- out++
- *(*TCARD8)(unsafe.Pointer(v18)) = uint8(r >> libc.Int32FromInt32(24) & libc.Uint32FromInt32(0xff))
- return
- }
|