Here is a patch to help UnixWare 2.03 along. No if we could only change utimes() back to utime() in scp.c & sftp-server.c we would have a working versin for Unixware 2.03 and SCO 3.2v4.2 -- Tim Rice Multitalents (707) 887-1469 tim at multitalents.net -------------- next part -------------- --- defines.h.old Wed Jan 3 17:33:52 2001 +++ defines.h Wed Jan 3 17:41:28 2001 @@ -360,6 +360,10 @@ # define memmove(s1, s2, n) bcopy((s2), (s1), (n)) #endif /* !defined(HAVE_MEMMOVE) && defined(HAVE_BCOPY) */ +#if defined(HAVE_MEMMOVE) && !defined(HAVE_BCOPY) +#define bcopy(b1,b2,length) (void) memmove ((b2), (b1), (length)) +#endif /* defined(HAVE_MEMMOVE) && !defined(HAVE_BCOPY) */ + #if !defined(HAVE_ATEXIT) && defined(HAVE_ON_EXIT) # define atexit(a) on_exit(a) #else
On Thu, 4 Jan 2001, Tim Rice wrote:> > Here is a patch to help UnixWare 2.03 along. > > No if we could only change utimes() back to utime() in scp.c & sftp-server.c > we would have a working versin for Unixware 2.03 and SCO 3.2v4.2 >One could always write a utime() emulation via utimes().
On Thu, 4 Jan 2001, Tim Rice wrote:> > Here is a patch to help UnixWare 2.03 along. > > No if we could only change utimes() back to utime() in scp.c & sftp-server.c > we would have a working versin for Unixware 2.03 and SCO 3.2v4.2 > > >--- defines.h.old Wed Jan 3 17:33:52 2001 >+++ defines.h Wed Jan 3 17:41:28 2001 >@@ -360,6 +360,10 @@ > # define memmove(s1, s2, n) bcopy((s2), (s1), (n)) > #endif /* !defined(HAVE_MEMMOVE) && defined(HAVE_BCOPY) */ > >+#if defined(HAVE_MEMMOVE) && !defined(HAVE_BCOPY) >+#define bcopy(b1,b2,length) (void) memmove ((b2), (b1), (length)) >+#endif /* defined(HAVE_MEMMOVE) && !defined(HAVE_BCOPY) */ >+Hmm.. bsd-getcwd.c and bsd-setenv.c (both I believe I added or requested originally due to NeXT issuses) use bcopy(). Would you have any objection to just changing them to memmove() (like how the rest of the OpenSSH code) instead of doing this patch? - Ben
On Fri, 5 Jan 2001 mouring at etoh.eviladmin.org wrote:> On Thu, 4 Jan 2001, Tim Rice wrote: >[snip]> >+#if defined(HAVE_MEMMOVE) && !defined(HAVE_BCOPY) > >+#define bcopy(b1,b2,length) (void) memmove ((b2), (b1), (length)) > >+#endif /* defined(HAVE_MEMMOVE) && !defined(HAVE_BCOPY) */ > >+ > > Hmm.. bsd-getcwd.c and bsd-setenv.c (both I believe I added or requested > originally due to NeXT issuses) use bcopy(). Would you have any objection > to just changing them to memmove() (like how the rest of the OpenSSH > code) instead of doing this patch?That works for me.> > - Ben >-- Tim Rice Multitalents (707) 887-1469 tim at multitalents.net