Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!ames!killer!mjbtn!usource!frankb From: frankb@usource.UUCP (Frank Bicknell) Newsgroups: comp.unix.xenix Subject: Re: far_malloc for SCO Xenix Summary: far and near mallocs Keywords: sco xenix malloc Message-ID: <151@usource.UUCP> Date: 10 Feb 89 15:09:42 GMT References: <20114@agate.BERKELEY.EDU> Organization: UniSource, Inc., Sarasota, FL Lines: 21 In article <20114@agate.BERKELEY.EDU>, ked@garnet.berkeley.edu (Earl H. Kinmonth) writes: > Does anyone have working equivalents to far_malloc() and > far_free() for SCO Xenix 286? Check out the library routines in Llibc.a called fmalloc() and ffree(). These routines are found in fmalloc.o. There are also routines called nmalloc() and nfree() in nmalloc.o. I stumbled upon these while trying to cheat the malloc() call and install my own which kept track of pointers (see Dr Dobbs, June, 1988...). The routines aren't documented anywhere that I know of, but their behaviour seems to be predictable... they are the far and near versions of malloc() and free(). -- Frank Bicknell \ Pi are round, silly! USMAIL: 1405 Main St, Ste 709, Sarasota, FL 34236 ==------------------------\ UUCP: killer!usource!frankb ==------------------------/ DOMAIN: frankb@usource.UUCP /