-/* Copyright (C) 1994-2013 Free Software Foundation, Inc.
+/* Copyright (C) 1994-2019 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
You should have received a copy of the GNU Lesser General Public
License along with the GNU C Library; if not, see
- <http://www.gnu.org/licenses/>. */
+ <https://www.gnu.org/licenses/>. */
/* Put the name of the current YP domain in no more than LEN bytes of NAME.
The result is null-terminated if LEN is large enough for the full
/* The `uname' information includes the domain name. */
int
-getdomainname (name, len)
- char *name;
- size_t len;
+getdomainname (char *name, size_t len)
{
struct utsname u;
size_t u_len;
#else
int
-getdomainname (name, len)
- char *name;
- size_t len;
+getdomainname (char *name, size_t len)
{
__set_errno (ENOSYS);
return -1;