openbsd-ports/net/netatalk/patches/patch-libcompat-sigvecc

44 lines
1.3 KiB
Plaintext

--- libatalk/compat/sigvec.c.orig Wed Nov 10 15:30:26 1999
+++ libatalk/compat/sigvec.c Wed Nov 10 15:30:37 1999
@@ -16,6 +16,7 @@
/* #include <signal.h> */
#include <sys/param.h>
+#include <string.h>
#include </usr/ucbinclude/sys/signal.h>
void (*sv_handler)(); /* signal handler */
@@ -33,14 +34,14 @@
nsa.sa_flags = nvec->sv_flags;
nsa.sa_handler = nvec->sv_handler;
- bcopy( &nvec->sv_mask, &nsa.sa_mask, sizeof( nvec->sv_mask ));
+ memcpy( &nsa.sa_mask, &nvec->sv_mask, sizeof( nvec->sv_mask ));
rc = sigaction( sig, &nsa, &osa );
if ( ovec != NULL ) {
ovec->sv_flags = osa.sa_flags;
ovec->sv_handler = osa.sa_handler;
- bcopy( &osa.sa_mask, &ovec->sv_mask, sizeof( ovec->sv_mask ));
+ memcpy( &ovec->sv_mask, &osa.sa_mask, sizeof( ovec->sv_mask ));
}
return( rc );
@@ -52,12 +53,12 @@
sigset_t set, oset;
int omask;
- bzero( &set, sizeof( sigset_t ));
- bcopy( &mask, &set, sizeof( mask ));
+ memset( &set, 0, sizeof( sigset_t ));
+ memcpy( &set, &mask, sizeof( mask ));
if ( sigprocmask( SIG_SETMASK, &set, &oset ) < 0 ) {
return( 0 );
}
- bcopy( &oset, &omask, sizeof( mask ));
+ memcpy( &omask, &oset, sizeof( mask ));
return( omask );
}
# endif sun __svr4__