Oops, the previous fix confused Linux's sigset_t with a pointer type.

It can be integral or a struct in POSIX, so it is difficult to print,
but it is actually declared as unsigned long.  Assume that it is
unsigned integral.
This commit is contained in:
Bruce Evans 1998-08-15 22:29:43 +00:00
parent f9d8181868
commit 24382fa41f
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=38344
2 changed files with 10 additions and 10 deletions

View File

@ -25,7 +25,7 @@
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
* *
* $Id: linux_signal.c,v 1.10 1997/11/06 19:29:00 phk Exp $ * $Id: linux_signal.c,v 1.11 1998/07/29 16:43:00 bde Exp $
*/ */
#include <sys/param.h> #include <sys/param.h>
@ -241,8 +241,8 @@ linux_sigsetmask(struct proc *p, struct linux_sigsetmask_args *args)
sigset_t mask; sigset_t mask;
#ifdef DEBUG #ifdef DEBUG
printf("Linux-emul(%ld): sigsetmask(%p)\n", printf("Linux-emul(%ld): sigsetmask(%08lx)\n",
(long)p->p_pid, (void *)args->mask); (long)p->p_pid, (unsigned long)args->mask);
#endif #endif
p->p_retval[0] = bsd_to_linux_sigset(p->p_sigmask); p->p_retval[0] = bsd_to_linux_sigset(p->p_sigmask);
@ -276,8 +276,8 @@ linux_sigsuspend(struct proc *p, struct linux_sigsuspend_args *args)
struct sigsuspend_args tmp; struct sigsuspend_args tmp;
#ifdef DEBUG #ifdef DEBUG
printf("Linux-emul(%ld): sigsuspend(%p)\n", printf("Linux-emul(%ld): sigsuspend(%08lx)\n",
(long)p->p_pid, (void *)args->mask); (long)p->p_pid, (unsigned long)args->mask);
#endif #endif
tmp.mask = linux_to_bsd_sigset(args->mask); tmp.mask = linux_to_bsd_sigset(args->mask);
return sigsuspend(p, &tmp); return sigsuspend(p, &tmp);

View File

@ -25,7 +25,7 @@
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
* *
* $Id: linux_signal.c,v 1.10 1997/11/06 19:29:00 phk Exp $ * $Id: linux_signal.c,v 1.11 1998/07/29 16:43:00 bde Exp $
*/ */
#include <sys/param.h> #include <sys/param.h>
@ -241,8 +241,8 @@ linux_sigsetmask(struct proc *p, struct linux_sigsetmask_args *args)
sigset_t mask; sigset_t mask;
#ifdef DEBUG #ifdef DEBUG
printf("Linux-emul(%ld): sigsetmask(%p)\n", printf("Linux-emul(%ld): sigsetmask(%08lx)\n",
(long)p->p_pid, (void *)args->mask); (long)p->p_pid, (unsigned long)args->mask);
#endif #endif
p->p_retval[0] = bsd_to_linux_sigset(p->p_sigmask); p->p_retval[0] = bsd_to_linux_sigset(p->p_sigmask);
@ -276,8 +276,8 @@ linux_sigsuspend(struct proc *p, struct linux_sigsuspend_args *args)
struct sigsuspend_args tmp; struct sigsuspend_args tmp;
#ifdef DEBUG #ifdef DEBUG
printf("Linux-emul(%ld): sigsuspend(%p)\n", printf("Linux-emul(%ld): sigsuspend(%08lx)\n",
(long)p->p_pid, (void *)args->mask); (long)p->p_pid, (unsigned long)args->mask);
#endif #endif
tmp.mask = linux_to_bsd_sigset(args->mask); tmp.mask = linux_to_bsd_sigset(args->mask);
return sigsuspend(p, &tmp); return sigsuspend(p, &tmp);