提交 57b97b42 编写于 作者: R Rich Felker

add public interface headers to implementation files

general policy is that all source files defining a public API or an
ABI mechanism referenced by a public header should include the public
header that declares the interface, so that the compiler or analysis
tools can check the consistency of the declarations. Alexander Monakov
pointed out a number of violations of this principle a few years back.
fix them now.
上级 2fae10f8
#include <errno.h>
#include "pthread_impl.h"
int *__errno_location(void)
......
#include <unistd.h>
long gethostid()
{
return 0;
......
#include <signal.h>
int __libc_current_sigrtmin()
{
return 35;
......
#include <stdlib.h>
int abs(int a)
{
return a>0 ? a : -a;
......
#include <stdlib.h>
long labs(long a)
{
return a>0 ? a : -a;
......
#include <stdlib.h>
long long llabs(long long a)
{
return a>0 ? a : -a;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册