From 2b25f93f7ad09ec1c2b93e07ceae577b56b44a80 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Tue, 21 Jul 1998 10:36:59 +0000 Subject: Update. 1998-07-20 Jose M. Moya * hurd/hurdmsg.c (_S_msg_get_env_variable): Copy getenv return value. 1998-07-20 Roland McGrath * sysdeps/mach/hurd/getdomain.c: New file. * sysdeps/mach/hurd/setdomain.c: New file. 1998-07-20 Roland McGrath * sysdeps/unix/bsd/sigsuspend.c: Define __sigsuspend with sigsuspend as a weak alias. --- sysdeps/unix/sysv/linux/gethostname.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sysdeps/unix/sysv') diff --git a/sysdeps/unix/sysv/linux/gethostname.c b/sysdeps/unix/sysv/linux/gethostname.c index 0e3ca57..94a4601 100644 --- a/sysdeps/unix/sysv/linux/gethostname.c +++ b/sysdeps/unix/sysv/linux/gethostname.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1992, 1995, 1996, 1997 Free Software Foundation, Inc. +/* Copyright (C) 1992, 1995, 1996, 1997, 1998 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 @@ -44,7 +44,7 @@ __gethostname (name, len) node_len = strlen (buf.nodename) + 1; if (node_len > len) { - __set_errno (EINVAL); + __set_errno (ENAMETOOLONG); return -1; } -- cgit v1.1