about summary refs log tree commit diff
path: root/sysdeps/mach/hurd
diff options
context:
space:
mode:
authorMiles Bader <miles@gnu.org>1996-06-06 15:29:59 +0000
committerMiles Bader <miles@gnu.org>1996-06-06 15:29:59 +0000
commit02eec644310f0b262270c7966f31f79239118287 (patch)
tree5cb648d9d6f7eb53ac02623917f406e800c4dae9 /sysdeps/mach/hurd
parente550852065422984494fc47111ad4fca0fb0983c (diff)
downloadglibc-02eec644310f0b262270c7966f31f79239118287.tar.gz
glibc-02eec644310f0b262270c7966f31f79239118287.tar.xz
glibc-02eec644310f0b262270c7966f31f79239118287.zip
*** empty log message ***
Thu Jun  6 07:32:14 1996  Miles Bader  <miles@gnu.ai.mit.edu>

	* resolv/gethnamaddr.c (struct hstorage): Make NAME field a pointer.
	(_gethtbyname2): Remove ALIAS variable.
	Initialize NAME field of SELF and TARGET to 0.
	Add SELF_NAME_SIZE static variable.
	Add loop to call gethostname until the space we allocated is enough.
	Use malloced strings instead of fixed size buffers.
	<stdlib.h>, <unistd.h>: New includes.
	* sysdeps/generic/sys/socket.h (PF_INET6, AF_INET6): New macros.

	* sysdeps/mach/hurd/errlist.c (_sys_errlist): Add EILSEQ.
	(_sys_nerr): Initialize to 107.
	Update _HURD_ERRNOS consistency check.

	* stdlib/canonicalize.c (canonicalize): Use pathconf for PATH_MAX,
	not sysconf.

	* login/login.c [!PATH_MAX] (PATH_MAX): Define to be 1024 if not
	already defined.

	* sysdeps/mach/hurd/setitimer.c (timer_thread): Supply SIGCODE
	argument to __msg_sig_post_request.

	* hurd/hurdmalloc.c: Changes to bring in line with the hurd
	libthreads/malloc.c:
	(more_memory): Use assert_perror instead of MACH_CALL.
	"cthread_internals.h": Include removed.
	(realloc): Use LOG2_MIN_SIZE.
	(LOG2_MIN_SIZE): New macro.
	(realloc): Don't bother allocating a new block if the
 	new size request fits in the old one and doesn't waste any space.
  	Only free the old block if we successfully got a new one.
	[MCHECK] (struct header): New type.
	(union header): Only define if !MCHECK.
	(HEADER_SIZE, HEADER_NEXT, HEADER_FREE, HEADER_CHECK): New macros.
	[MCHECK] (MIN_SIZE): Add correct definition for this case.
	(more_memory, malloc, free, realloc): Use above macros, and add
	appropiate checks & frobs in MCHECK case.
Diffstat (limited to 'sysdeps/mach/hurd')
-rw-r--r--sysdeps/mach/hurd/errlist.c5
-rw-r--r--sysdeps/mach/hurd/setitimer.c2
2 files changed, 4 insertions, 3 deletions
diff --git a/sysdeps/mach/hurd/errlist.c b/sysdeps/mach/hurd/errlist.c
index 5f40e04209..60a08cd613 100644
--- a/sysdeps/mach/hurd/errlist.c
+++ b/sysdeps/mach/hurd/errlist.c
@@ -113,12 +113,13 @@ const char *_sys_errlist[] =
     "You really blew it this time",     /* 103 = EGREGIOUS */
     "Computer bought the farm",         /* 104 = EIEIO */
     "Gratuitous error",                 /* 105 = EGRATUITOUS */
+    "Invalid or incomplete multibyte or wide character", /* 106 = EILSEQ */
   };
 
 #include <errno.h>
-#if _HURD_ERRNOS != 106
+#if _HURD_ERRNOS != 107
 #error errlist/errnos generation bug
 #endif
-const int _sys_nerr = 106;
+const int _sys_nerr = 107;
 weak_alias (_sys_errlist, sys_errlist)
 weak_alias (_sys_nerr, sys_nerr)
diff --git a/sysdeps/mach/hurd/setitimer.c b/sysdeps/mach/hurd/setitimer.c
index 9ee33e0446..01c17f7725 100644
--- a/sysdeps/mach/hurd/setitimer.c
+++ b/sysdeps/mach/hurd/setitimer.c
@@ -88,7 +88,7 @@ timer_thread (void)
 	  __msg_sig_post_request (_hurd_msgport,
 				  _hurd_itimer_port,
 				  MACH_MSG_TYPE_MAKE_SEND_ONCE,
-				  SIGALRM, __mach_task_self ());
+				  SIGALRM, 0, __mach_task_self ());
 	  break;
 
 	case MACH_RCV_INTERRUPTED: