So, I am browsing the source of the gcc compiler, and I came this way in fork.c:
int __fork () { __set_errno (ENOSYS); return -1; } libc_hidden_def (__fork) stub_warning (fork) weak_alias (__fork, fork) #include <stub-tag.h>
I'm trying to figure out what weak_alias does. I used the grep command inside the glibc source files to find all occurrences of #define weak_alias:
grep -r "#define weak_alias"
I found many macro entries:
but macros do not explain anything. They simply define this statement that they do not show how to replace it. For example, one event occurs in the .c profile:
#undef weak_alias #define weak_alias(a,b)
So, any ideas what weak_alias does and where are they defined?
Thank you in advance
source share