mirror of
https://github.com/fluencelabs/musl
synced 2025-04-25 07:12:15 +00:00
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.
This commit is contained in:
parent
2fae10f887
commit
57b97b42bd
@ -1,3 +1,4 @@
|
|||||||
|
#include <errno.h>
|
||||||
#include "pthread_impl.h"
|
#include "pthread_impl.h"
|
||||||
|
|
||||||
int *__errno_location(void)
|
int *__errno_location(void)
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
#include <unistd.h>
|
||||||
|
|
||||||
long gethostid()
|
long gethostid()
|
||||||
{
|
{
|
||||||
return 0;
|
return 0;
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
#include <signal.h>
|
||||||
|
|
||||||
int __libc_current_sigrtmin()
|
int __libc_current_sigrtmin()
|
||||||
{
|
{
|
||||||
return 35;
|
return 35;
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
#include <stdlib.h>
|
||||||
|
|
||||||
int abs(int a)
|
int abs(int a)
|
||||||
{
|
{
|
||||||
return a>0 ? a : -a;
|
return a>0 ? a : -a;
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
#include <stdlib.h>
|
||||||
|
|
||||||
long labs(long a)
|
long labs(long a)
|
||||||
{
|
{
|
||||||
return a>0 ? a : -a;
|
return a>0 ? a : -a;
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
#include <stdlib.h>
|
||||||
|
|
||||||
long long llabs(long long a)
|
long long llabs(long long a)
|
||||||
{
|
{
|
||||||
return a>0 ? a : -a;
|
return a>0 ? a : -a;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user