summary refs log tree commit diff
path: root/sysdeps/mach
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>1995-11-03 22:42:06 +0000
committerRoland McGrath <roland@gnu.org>1995-11-03 22:42:06 +0000
commit853f0eead1fcab44fa3339a6b171da9bfc7840d8 (patch)
tree4eba519918a082101309096548ce0a13bdc4b8a5 /sysdeps/mach
parent27cc33c3b483ce4f73cbd3671ba1fd872b473c4d (diff)
downloadglibc-853f0eead1fcab44fa3339a6b171da9bfc7840d8.tar.gz
glibc-853f0eead1fcab44fa3339a6b171da9bfc7840d8.tar.xz
glibc-853f0eead1fcab44fa3339a6b171da9bfc7840d8.zip
Fri Nov 3 17:27:49 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu> cvs/libc-951105 cvs/libc-951104
	* sysdeps/mach/hurd/sendto.c: Don't pass BINDING arg to
	socket_create_address.
	* sysdeps/mach/hurd/connect.c: Likewise.
	* sysdeps/mach/hurd/bind.c: Likewise.

	* hurd/hurdprio.c (_hurd_priority_which_map): Pass threadwaits
	args to proc_getprocinfo.
	* sysdeps/mach/hurd/getpriority.c: Likewise.

	* hurd/hurdmsg.c (_S_msg_report_wait): New stub function.
Diffstat (limited to 'sysdeps/mach')
-rw-r--r--sysdeps/mach/hurd/bind.c2
-rw-r--r--sysdeps/mach/hurd/connect.c4
-rw-r--r--sysdeps/mach/hurd/getpriority.c7
-rw-r--r--sysdeps/mach/hurd/sendto.c4
4 files changed, 11 insertions, 6 deletions
diff --git a/sysdeps/mach/hurd/bind.c b/sysdeps/mach/hurd/bind.c
index 5b041f3558..399c23ed22 100644
--- a/sysdeps/mach/hurd/bind.c
+++ b/sysdeps/mach/hurd/bind.c
@@ -96,7 +96,7 @@ DEFUN(bind, (fd, addr, len),
 			    err = __socket_create_address (port,
 							   addr->sa_family,
 							   (char *) addr, len,
-							   &aport, 1);
+							   &aport);
 			  if (! err)
 			    {
 			      err = __socket_bind (port, aport);
diff --git a/sysdeps/mach/hurd/connect.c b/sysdeps/mach/hurd/connect.c
index e015a14c50..019d1ea108 100644
--- a/sysdeps/mach/hurd/connect.c
+++ b/sysdeps/mach/hurd/connect.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 1992, 1994 Free Software Foundation, Inc.
+/* Copyright (C) 1992, 1994, 1995 Free Software Foundation, Inc.
 This file is part of the GNU C Library.
 
 The GNU C Library is free software; you can redistribute it and/or
@@ -61,7 +61,7 @@ DEFUN(connect, (fd, addr, len),
 			    err = __socket_create_address (port,
 							   addr->sa_family,
 							   (char *) addr, len,
-							   &aport, 0);
+							   &aport);
 			  if (! err)
 			    {
 			      err = __socket_connect (port, aport);
diff --git a/sysdeps/mach/hurd/getpriority.c b/sysdeps/mach/hurd/getpriority.c
index 933592fe8e..3d7af4d3bb 100644
--- a/sysdeps/mach/hurd/getpriority.c
+++ b/sysdeps/mach/hurd/getpriority.c
@@ -41,9 +41,14 @@ getpriority (enum __priority_which which, int who)
 	{
 	  int *oldpi = pi;
 	  unsigned int oldpisize = pisize;
+	  char *tw = 0;
+	  size_t twsz = 0;
 	  onerr = __USEPORT (PROC, __proc_getprocinfo (port, pid,
 						       PI_FETCH_TASKINFO,
-						       &pi, &pisize));
+						       &pi, &pisize,
+						       &tw, &twsz));
+	  if (twsz)
+	    __vm_deallocate (__mach_task_self (), tw, twsz);
 	  if (pi != oldpi && oldpi != pibuf)
 	    /* Old buffer from last call was not reused; free it.  */
 	    __vm_deallocate (__mach_task_self (),
diff --git a/sysdeps/mach/hurd/sendto.c b/sysdeps/mach/hurd/sendto.c
index 94becae0a4..b468ba7606 100644
--- a/sysdeps/mach/hurd/sendto.c
+++ b/sysdeps/mach/hurd/sendto.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 1994 Free Software Foundation, Inc.
+/* Copyright (C) 1994, 1995 Free Software Foundation, Inc.
 This file is part of the GNU C Library.
 
 The GNU C Library is free software; you can redistribute it and/or
@@ -63,7 +63,7 @@ DEFUN(sendto, (fd, buf, n, flags, addr, addr_len),
 							   addr->sa_family,
 							   (char *) addr,
 							   addr_len,
-							   &aport, 1);
+							   &aport);
 			  if (! err)
 			    {
 			      /* Send the data.  */