Thread View: news.software.nn
5 messages
5 total messages
Started by Michael T Pins
Thu, 22 Aug 1996 00:00
memmove or bcopy
Author: Michael T Pins
Date: Thu, 22 Aug 1996 00:00
Date: Thu, 22 Aug 1996 00:00
14 lines
1102 bytes
1102 bytes
I've been told that SunOS (as opposed to Solaris) doesn't support memmove. While I could just change it into a bcopy, I'd rather just bypass this bit of Sun brain-damage. Anyone know of any other systems that don't have a memmove so I can catch them as well? -- ************************************************************************** * Michael T Pins | mtpins@isca.uiowa.edu * * keeper of the nn sources | mtpins@winternet.com * * ftp.isca.uiowa.edu | #include <std.disclaimer> *
Re: memmove or bcopy
Author: Michael T Pins
Date: Thu, 22 Aug 1996 00:00
Date: Thu, 22 Aug 1996 00:00
27 lines
1671 bytes
1671 bytes
jpc@drum.msfc.nasa.gov (J. Porter Clark) writes: >mtpins@icaen.uiowa.edu (Michael T Pins) writes: >>I've been told that SunOS (as opposed to Solaris) doesn't support memmove. >>While I could just change it into a bcopy, I'd rather just bypass this bit >>of Sun brain-damage. Anyone know of any other systems that don't have a >>memmove so I can catch them as well? >This is one of those places where autoconf would come in handy. >SunOS 4.1.3 doesn't support memmove(). >However, Solaris 2.[0-4] doesn't support bcopy() except in the >deprecated BSD library. Solaris 2.5 and 2.5.1 both have bcopy(). What I plan on doing is changing all the bcopy's to memmove's, with an ifdef for systems that don't support memmove. -- ************************************************************************** * Michael T Pins | mtpins@isca.uiowa.edu * * keeper of the nn sources | mtpins@winternet.com * * ftp.isca.uiowa.edu | #include <std.disclaimer> *
Re: memmove or bcopy
Author: J. Porter Clark
Date: Thu, 22 Aug 1996 00:00
Date: Thu, 22 Aug 1996 00:00
20 lines
1210 bytes
1210 bytes
mtpins@icaen.uiowa.edu (Michael T Pins) writes: >I've been told that SunOS (as opposed to Solaris) doesn't support memmove. >While I could just change it into a bcopy, I'd rather just bypass this bit >of Sun brain-damage. Anyone know of any other systems that don't have a >memmove so I can catch them as well? This is one of those places where autoconf would come in handy. SunOS 4.1.3 doesn't support memmove(). However, Solaris 2.[0-4] doesn't support bcopy() except in the deprecated BSD library. Solaris 2.5 and 2.5.1 both have bcopy(). -- J. Porter Clark jpc@drum.msfc.nasa.gov NASA/MSFC Flight Data Systems Branch
Re: memmove or bcopy
Author: Bill Wohler
Date: Fri, 23 Aug 1996 00:00
Date: Fri, 23 Aug 1996 00:00
23 lines
1731 bytes
1731 bytes
Michael T Pins <mtpins@icaen.uiowa.edu> writes: > What I plan on doing is changing all the bcopy's to memmove's, with an > ifdef for systems that don't support memmove. I don't think you should do that! First, tell me if bcopy() allows the strings to overlap. If so, then it's OK; otherwise, you may incur a performance hit as memmove() does allow the strings to overlap and may have be slower than memcpy() which does not allow the strings to overlap. I would assume that this would make memcpy() faster and what you'd want to use in general, unless your strings overlapped. Nonetheless, I laud your effort to make the code more Posix compliant. I would suspect that you'll probably find the mem*() routines missing from many BSD systems. Bill Wohler <wohler@newt.com> ph: +1-415-854-1857 fax: +1-415-854-3195 Say it with MIME. Maintainer of comp.mail.mh and news.software.nn FAQs. If you're passed on the right, you're in the wrong lane.
Re: memmove or bcopy
Author: Makoto Fujiwara
Date: Fri, 23 Aug 1996 00:00
Date: Fri, 23 Aug 1996 00:00
10 lines
734 bytes
734 bytes
( I think you all already know,but ) I typed -liberty or -lg++ on LDFLAG lines on Makefile to get arround _memmove missing on SunOS problem Makoto Fujiwara
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads