Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!rutgers!apple!sun-barr!cs.utexas.edu!uunet!glyph!nichiren From: nichiren@glyph.UUCP (Andy Heffernan) Newsgroups: comp.sys.amiga.tech Subject: Re: Create Port Message-ID: <472@glyph.UUCP> Date: 26 Jul 89 08:00:46 GMT References: <409@mindlink.UUCP> Reply-To: nichiren@glyph.UUCP (Andy Heffernan) Organization: Glyph UNIX, Kingston, NY Lines: 26 In article <409@mindlink.UUCP> a186@mindlink.UUCP (Harvey Taylor) writes: > > Some time ago somebody was wondering about what CreatePort > in Amiga.Lib _really_does. Included below is a disassembly > I did with Metascope & a stub program. This method is extendable > to any other functions there you are interested in... Err, gee... I flip to page B-5 of my 1986 Exec book, and there's the C code staring back at me (albeit sideways). CreatePort() does (or did): AllocSignal AllocMem a MsgPort Initialize MsgPort with passed name, pri, and signal, task, etc. AddPort if passed name is non-NULL (public port) NewList if private port That's it! ><-Harvey -- ------------------------------------------------------------------------- Andy Heffernan uunet!glyph!nichiren [1222 - 1282] ------------------------------------------------------------------------- "Dogpile on the rabbit! Dogpile on the rabbit!"