]> git.ipfire.org Git - thirdparty/glibc.git/blobdiff - stdlib/getrandom.c
stdlib: Add testcases for abs(). (BZ #30263)
[thirdparty/glibc.git] / stdlib / getrandom.c
index 45234bea17c5c86ce4313513c69ae2b134fa3aac..145ff0ffea044562fc3bf386a0ad72187eb82677 100644 (file)
@@ -1,5 +1,5 @@
 /* Stub for getrandom.
-   Copyright (C) 2016-2018 Free Software Foundation, Inc.
+   Copyright (C) 2016-2023 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
@@ -14,7 +14,7 @@
 
    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/>.  */
 
 #include <sys/random.h>
 #include <errno.h>
 /* Write up to LENGTH bytes of randomness starting at BUFFER.
    Return the number of bytes written, or -1 on error.  */
 ssize_t
-getrandom (void *buffer, size_t length, unsigned int flags)
+__getrandom (void *buffer, size_t length, unsigned int flags)
 {
   __set_errno (ENOSYS);
   return -1;
 }
-
 stub_warning (getrandom)
+
+libc_hidden_def (__getrandom)
+weak_alias (__getrandom, getrandom)