1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-07-29 11:41:21 +03:00

hurd: Fix linknamespace of spawni

* include/unistd.h (__confstr): Add prototype and hidden prototype.
	* posix/confstr.c (confstr): Rename to __confstr.
	(__confstr): Add hidden def.
	(confstr): Add weak alias for __confstr.
	* sysdeps/mach/hurd/spawni.c (__spawni): Call __confstr instead of
	confstr.
This commit is contained in:
Samuel Thibault
2018-12-05 23:24:03 +01:00
parent a092ca9453
commit 45f33aac78
4 changed files with 16 additions and 3 deletions

View File

@ -29,7 +29,7 @@
of BUF with the value corresponding to NAME and zero-terminate BUF.
Return the number of bytes required to hold NAME's entire value. */
size_t
confstr (int name, char *buf, size_t len)
__confstr (int name, char *buf, size_t len)
{
const char *string = "";
size_t string_len = 1;
@ -289,4 +289,6 @@ confstr (int name, char *buf, size_t len)
}
return string_len;
}
libc_hidden_def (__confstr)
libc_hidden_def (confstr)
weak_alias (__confstr, confstr)