mirror of
https://git.planet-casio.com/Vhex-Kernel-Core/fxlibc.git
synced 2025-05-28 14:35:12 +02:00
update include hierarchy
This commit is contained in:
parent
8993049f4e
commit
e719af2f63
76 changed files with 86 additions and 58 deletions
|
@ -122,6 +122,9 @@ endif()
|
||||||
|
|
||||||
add_library(fxlibc ${SOURCES})
|
add_library(fxlibc ${SOURCES})
|
||||||
target_include_directories(fxlibc PRIVATE include/)
|
target_include_directories(fxlibc PRIVATE include/)
|
||||||
|
foreach(FOLDER IN LISTS TARGET_FOLDERS)
|
||||||
|
target_include_directories(fxlibc PRIVATE include/target/${FOLDER}/)
|
||||||
|
endforeach()
|
||||||
|
|
||||||
set_target_properties(fxlibc PROPERTIES
|
set_target_properties(fxlibc PROPERTIES
|
||||||
OUTPUT_NAME "c") # libc.a
|
OUTPUT_NAME "c") # libc.a
|
||||||
|
@ -132,5 +135,7 @@ install(TARGETS fxlibc DESTINATION lib/)
|
||||||
install(DIRECTORY include/ DESTINATION include/ PATTERN "target" EXCLUDE)
|
install(DIRECTORY include/ DESTINATION include/ PATTERN "target" EXCLUDE)
|
||||||
|
|
||||||
foreach(FOLDER IN LISTS TARGET_FOLDERS)
|
foreach(FOLDER IN LISTS TARGET_FOLDERS)
|
||||||
install(DIRECTORY include/target/${FOLDER}/ DESTINATION include/)
|
if(EXISTS include/target/${FOLDER}/)
|
||||||
|
install(DIRECTORY include/target/${FOLDER}/ DESTINATION include/)
|
||||||
|
endif()
|
||||||
endforeach()
|
endforeach()
|
||||||
|
|
|
@ -1 +0,0 @@
|
||||||
#include <fxlibc/signal.h>
|
|
1
include/sys/signal.h
Normal file
1
include/sys/signal.h
Normal file
|
@ -0,0 +1 @@
|
||||||
|
#include <signal.h>
|
|
@ -6,13 +6,13 @@
|
||||||
** But instead of duplicating this we use the information available
|
** But instead of duplicating this we use the information available
|
||||||
** from the kernel sources.
|
** from the kernel sources.
|
||||||
*/
|
*/
|
||||||
#include <fxlibc/asm/unistd.h>
|
#include <bits/unistd.h>
|
||||||
|
|
||||||
/*
|
/*
|
||||||
** The Linux kernel header file defines macros __NR_*, but some
|
** The Linux kernel header file defines macros __NR_*, but some
|
||||||
** programs expect the traditional form SYS_*. <bits/syscall.h>
|
** programs expect the traditional form SYS_*. <bits/syscall.h>
|
||||||
** defines SYS_* macros for __NR_* macros of known names.
|
** defines SYS_* macros for __NR_* macros of known names.
|
||||||
*/
|
*/
|
||||||
#include <fxlibc/bits/syscall.h>
|
#include <bits/syscall.h>
|
||||||
|
|
||||||
#endif
|
#endif
|
|
@ -9,10 +9,10 @@
|
||||||
** This will define the `W*' macros for the flag bits to `waitpid', `wait3',
|
** This will define the `W*' macros for the flag bits to `waitpid', `wait3',
|
||||||
** and `wait4'.
|
** and `wait4'.
|
||||||
*/
|
*/
|
||||||
#include <fxlibc/bits/waitflags.h>
|
#include <bits/waitflags.h>
|
||||||
|
|
||||||
/* This will define all the `__W*' macros.*/
|
/* This will define all the `__W*' macros.*/
|
||||||
#include <fxlibc/bits/waitstatus.h>
|
#include <bits/waitstatus.h>
|
||||||
|
|
||||||
/* Macros for the `waitpid`'s wstatus argument. */
|
/* Macros for the `waitpid`'s wstatus argument. */
|
||||||
#define WEXITSTATUS(status) __WEXITSTATUS(status)
|
#define WEXITSTATUS(status) __WEXITSTATUS(status)
|
7
include/target/casiowin-cg/bits/confname.h
Normal file
7
include/target/casiowin-cg/bits/confname.h
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
#ifndef __BITS_CONFNAME_H__
|
||||||
|
# define __BITS_CONFNAME_H__
|
||||||
|
|
||||||
|
#define _SC_PAGE_SIZE 0
|
||||||
|
#define _SC_PAGESIZE _SC_PAGE_SIZE
|
||||||
|
|
||||||
|
#endif /*__BITS_CONFNAME_H__*/
|
7
include/target/casiowin-fx/bits/confname.h
Normal file
7
include/target/casiowin-fx/bits/confname.h
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
#ifndef __BITS_CONFNAME_H__
|
||||||
|
# define __BITS_CONFNAME_H__
|
||||||
|
|
||||||
|
#define _SC_PAGE_SIZE 0
|
||||||
|
#define _SC_PAGESIZE _SC_PAGE_SIZE
|
||||||
|
|
||||||
|
#endif /*__BITS_CONFNAME_H__*/
|
7
include/target/gint/bits/confname.h
Normal file
7
include/target/gint/bits/confname.h
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
#ifndef __BITS_CONFNAME_H__
|
||||||
|
# define __BITS_CONFNAME_H__
|
||||||
|
|
||||||
|
#define _SC_PAGE_SIZE 0
|
||||||
|
#define _SC_PAGESIZE _SC_PAGE_SIZE
|
||||||
|
|
||||||
|
#endif /*__BITS_CONFNAME_H__*/
|
|
@ -4,7 +4,7 @@
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#include <stddef.h>
|
#include <stddef.h>
|
||||||
|
|
||||||
#include <fxlibc/sys/types.h>
|
#include <sys/types.h>
|
||||||
|
|
||||||
//---
|
//---
|
||||||
// TODO: VFS abstraction ? or ABI-spesific abstraction ?
|
// TODO: VFS abstraction ? or ABI-spesific abstraction ?
|
|
@ -1,5 +1,5 @@
|
||||||
#ifdef __SUPPORT_VHEX_KERNEL
|
#ifdef __SUPPORT_VHEX_KERNEL
|
||||||
#include <fxlibc/asm/unistd_32.h>
|
#include <bits/asm/unistd_32.h>
|
||||||
.text
|
.text
|
||||||
.global _kill
|
.global _kill
|
||||||
.type _kill, @function
|
.type _kill, @function
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
#ifdef __SUPPORT_VHEX_KERNEL
|
#ifdef __SUPPORT_VHEX_KERNEL
|
||||||
#include <fxlibc/asm/unistd_32.h>
|
#include <bits/asm/unistd_32.h>
|
||||||
.text
|
.text
|
||||||
.global _signal
|
.global _signal
|
||||||
.type _signal, @function
|
.type _signal, @function
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#include <fxlibc/stdio.h>
|
#include <stdio.h>
|
||||||
|
|
||||||
/*
|
/*
|
||||||
** The function dprintf() is the same as fprintf() except that it outputs to a
|
** The function dprintf() is the same as fprintf() except that it outputs to a
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#include <fxlibc/stdio.h>
|
#include <stdio.h>
|
||||||
|
|
||||||
// internal depency
|
// internal depency
|
||||||
#include "printf.h"
|
#include "printf.h"
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#include <fxlibc/stdio.h>
|
#include <stdio.h>
|
||||||
|
|
||||||
// internal depency
|
// internal depency
|
||||||
#include "printf.h"
|
#include "printf.h"
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#include <fxlibc/stdio.h>
|
#include <stdio.h>
|
||||||
|
|
||||||
// internal depency
|
// internal depency
|
||||||
#include "printf.h"
|
#include "printf.h"
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
#include <fxlibc/stdio.h>
|
#include <stdio.h>
|
||||||
#include <fxlibc/unistd.h>
|
#include <unistd.h>
|
||||||
|
|
||||||
/*
|
/*
|
||||||
** printf() write the output under the control of a format string that specifies
|
** printf() write the output under the control of a format string that specifies
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
#include <fxlibc/stdio.h>
|
#include <stdio.h>
|
||||||
#include <fxlibc/unistd.h>
|
#include <unistd.h>
|
||||||
|
|
||||||
int putchar(int c)
|
int putchar(int c)
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#include <fxlibc/stdio.h>
|
#include <stdio.h>
|
||||||
#include <fxlibc/string.h>
|
#include <string.h>
|
||||||
#include <fxlibc/unistd.h>
|
#include <unistd.h>
|
||||||
|
|
||||||
/*
|
/*
|
||||||
** puts() writes the string s and a trailing newline to stdout.
|
** puts() writes the string s and a trailing newline to stdout.
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#include <fxlibc/stdio.h>
|
#include <stdio.h>
|
||||||
|
|
||||||
/*
|
/*
|
||||||
** sprintf(), snprintf(), vsprintf() and vsnprintf() write the output under the
|
** sprintf(), snprintf(), vsprintf() and vsnprintf() write the output under the
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#include <fxlibc/stdio.h>
|
#include <stdio.h>
|
||||||
|
|
||||||
/*
|
/*
|
||||||
** sprintf(), snprintf(), vsprintf() and vsnprintf() write the output under the
|
** sprintf(), snprintf(), vsprintf() and vsnprintf() write the output under the
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
#include <fxlibc/stdio.h>
|
#include <stdio.h>
|
||||||
#include <fxlibc/unistd.h>
|
#include <unistd.h>
|
||||||
|
|
||||||
// internal depency
|
// internal depency
|
||||||
#include "internal/printf.h"
|
#include "internal/printf.h"
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#include <fxlibc/stdio.h>
|
#include <stdio.h>
|
||||||
|
|
||||||
// internal depency
|
// internal depency
|
||||||
#include "internal/printf.h"
|
#include "internal/printf.h"
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#include <fxlibc/stdio.h>
|
#include <stdio.h>
|
||||||
|
|
||||||
/*
|
/*
|
||||||
** The functions vsprintf() are equivalent to the sprintf() except that they
|
** The functions vsprintf() are equivalent to the sprintf() except that they
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#include <fxlibc/stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <fxlibc/string.h>
|
#include <string.h>
|
||||||
#include <fxlibc/unistd.h>
|
#include <unistd.h>
|
||||||
|
|
||||||
/*
|
/*
|
||||||
** The calloc() function allocates memory for an array of nmemb elements of size
|
** The calloc() function allocates memory for an array of nmemb elements of size
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#include <fxlibc/stdlib.h>
|
#include <stdlib.h>
|
||||||
|
|
||||||
/*
|
/*
|
||||||
** The reallocarray() function changes the size of the memory block pointed to
|
** The reallocarray() function changes the size of the memory block pointed to
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
#ifdef __SUPPORT_VHEX_KERNEL
|
#ifdef __SUPPORT_VHEX_KERNEL
|
||||||
#include <fxlibc/asm/unistd_32.h>
|
#include <bits/asm/unistd_32.h>
|
||||||
.text
|
.text
|
||||||
.global _free
|
.global _free
|
||||||
.type _free, @function
|
.type _free, @function
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
#ifdef __SUPPORT_VHEX_KERNEL
|
#ifdef __SUPPORT_VHEX_KERNEL
|
||||||
#include <fxlibc/asm/unistd_32.h>
|
#include <bits/asm/unistd_32.h>
|
||||||
.text
|
.text
|
||||||
.global _malloc
|
.global _malloc
|
||||||
.type _malloc, @function
|
.type _malloc, @function
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
#ifdef __SUPPORT_VHEX_KERNEL
|
#ifdef __SUPPORT_VHEX_KERNEL
|
||||||
#include <fxlibc/asm/unistd_32.h>
|
#include <bits/asm/unistd_32.h>
|
||||||
.text
|
.text
|
||||||
.global _realloc
|
.global _realloc
|
||||||
.type _realloc, @function
|
.type _realloc, @function
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
#include <fxlibc/string.h>
|
#include <string.h>
|
||||||
|
#include <stdint.h>
|
||||||
|
|
||||||
/*
|
/*
|
||||||
** The memcpy() function copies n bytes from memory area src to memory area dest.
|
** The memcpy() function copies n bytes from memory area src to memory area dest.
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
#include <fxlibc/string.h>
|
#include <string.h>
|
||||||
|
#include <stdint.h>
|
||||||
|
|
||||||
/*
|
/*
|
||||||
** The memset() function fills the first n bytes of the memory area pointed to
|
** The memset() function fills the first n bytes of the memory area pointed to
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#include <fxlibc/string.h>
|
#include <string.h>
|
||||||
|
|
||||||
/*
|
/*
|
||||||
** The strcat() function appends the src string to the dest string,
|
** The strcat() function appends the src string to the dest string,
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#include <fxlibc/string.h>
|
#include <string.h>
|
||||||
|
|
||||||
/*
|
/*
|
||||||
** The strchr() function returns a pointer to the first occurrence of the
|
** The strchr() function returns a pointer to the first occurrence of the
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#include <fxlibc/string.h>
|
#include <string.h>
|
||||||
|
|
||||||
/*
|
/*
|
||||||
** The strcmp() function compares the two strings s1 and s2. The locale is not
|
** The strcmp() function compares the two strings s1 and s2. The locale is not
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#include <fxlibc/string.h>
|
#include <string.h>
|
||||||
|
|
||||||
/*
|
/*
|
||||||
** The strcpy() function copies the string pointed to by src, including the
|
** The strcpy() function copies the string pointed to by src, including the
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
#include <fxlibc/string.h>
|
#include <string.h>
|
||||||
#include <fxlibc/stdlib.h>
|
#include <stdlib.h>
|
||||||
|
|
||||||
/*
|
/*
|
||||||
** The strdup() function returns a pointer to a new string which is a
|
** The strdup() function returns a pointer to a new string which is a
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#include <fxlibc/string.h>
|
#include <string.h>
|
||||||
|
|
||||||
/*
|
/*
|
||||||
** The strlen() function calculates the length of the string pointed to by s,
|
** The strlen() function calculates the length of the string pointed to by s,
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
#include <fxlibc/threads.h>
|
#include <threads.h>
|
||||||
#include <fxlibc/unistd.h>
|
#include <unistd.h>
|
||||||
|
|
||||||
// Creates a new mutex object with type __TYPE.
|
// Creates a new mutex object with type __TYPE.
|
||||||
// @note: If successful the new object is pointed by __MUTEX.
|
// @note: If successful the new object is pointed by __MUTEX.
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
#ifdef __SUPPORT_VHEX_KERNEL
|
#ifdef __SUPPORT_VHEX_KERNEL
|
||||||
#include <fxlibc/asm/unistd_32.h>
|
#include <bits/asm/unistd_32.h>
|
||||||
.text
|
.text
|
||||||
.global _open
|
.global _open
|
||||||
.type _open, @function
|
.type _open, @function
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
#ifdef __SUPPORT_VHEX_KERNEL
|
#ifdef __SUPPORT_VHEX_KERNEL
|
||||||
#include <fxlibc/asm/unistd.h>
|
#include <bits/asm/unistd_32.h>
|
||||||
.text
|
.text
|
||||||
.global _wait
|
.global _wait
|
||||||
.type _wait, @function
|
.type _wait, @function
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
#ifdef __SUPPORT_VHEX_KERNEL
|
#ifdef __SUPPORT_VHEX_KERNEL
|
||||||
#include <fxlibc/asm/unistd.h>
|
#include <bits/asm/unistd_32.h>
|
||||||
.text
|
.text
|
||||||
.global _waitpid
|
.global _waitpid
|
||||||
.type _waitpid, @function
|
.type _waitpid, @function
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#ifdef __SUPPORT_CASIO_ABI_FX9860G
|
#ifdef __SUPPORT_CASIO_ABI_FX9860G
|
||||||
#include <fxlibc/asm/unistd_32.h>
|
#include <bits/unistd_32.h>
|
||||||
#include <fxlibc/asm-casio/__trapa.h>
|
#include <bits/__trapa.h>
|
||||||
.text
|
.text
|
||||||
.global _close
|
.global _close
|
||||||
.type _close, @function
|
.type _close, @function
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
#ifdef __SUPPORT_VHEX_KERNEL
|
#ifdef __SUPPORT_VHEX_KERNEL
|
||||||
#include <fxlibc/asm/unistd.h>
|
#include <bits/asm/unistd_32.h>
|
||||||
.text
|
.text
|
||||||
.global _close
|
.global _close
|
||||||
.type _close, @function
|
.type _close, @function
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
#ifdef __SUPPORT_VHEX_KERNEL
|
#ifdef __SUPPORT_VHEX_KERNEL
|
||||||
#include <fxlibc/asm/unistd.h>
|
#include <bits/asm/unistd_32.h>
|
||||||
.text
|
.text
|
||||||
.global _fork_execve
|
.global _fork_execve
|
||||||
.type _fork_execve, @function
|
.type _fork_execve, @function
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
#ifdef __SUPPORT_VHEX_KERNEL
|
#ifdef __SUPPORT_VHEX_KERNEL
|
||||||
#include <fxlibc/asm/unistd.h>
|
#include <bits/asm/unistd_32.h>
|
||||||
.text
|
.text
|
||||||
.global _getpgid
|
.global _getpgid
|
||||||
.type _getpgid, @function
|
.type _getpgid, @function
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
#ifdef __SUPPORT_VHEX_KERNEL
|
#ifdef __SUPPORT_VHEX_KERNEL
|
||||||
#include <fxlibc/asm/unistd.h>
|
#include <bits/asm/unistd_32.h>
|
||||||
.text
|
.text
|
||||||
.global _getpid
|
.global _getpid
|
||||||
.type _getpid, @function
|
.type _getpid, @function
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
#ifdef __SUPPORT_VHEX_KERNEL
|
#ifdef __SUPPORT_VHEX_KERNEL
|
||||||
#include <fxlibc/asm/unistd.h>
|
#include <bits/asm/unistd_32.h>
|
||||||
.text
|
.text
|
||||||
.global _getppid
|
.global _getppid
|
||||||
.type _getppid, @function
|
.type _getppid, @function
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
#ifdef __SUPPORT_VHEX_KERNEL
|
#ifdef __SUPPORT_VHEX_KERNEL
|
||||||
#include <fxlibc/asm/unistd.h>
|
#include <bits/asm/unistd_32.h>
|
||||||
.text
|
.text
|
||||||
.global _lseek
|
.global _lseek
|
||||||
.type _lseek, @function
|
.type _lseek, @function
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
#ifdef __SUPPORT_VHEX_KERNEL
|
#ifdef __SUPPORT_VHEX_KERNEL
|
||||||
#include <fxlibc/asm/unistd.h>
|
#include <bits/asm/unistd_32.h>
|
||||||
.text
|
.text
|
||||||
.global _read
|
.global _read
|
||||||
.type _read, @function
|
.type _read, @function
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
#ifdef __SUPPORT_VHEX_KERNEL
|
#ifdef __SUPPORT_VHEX_KERNEL
|
||||||
#include <fxlibc/asm/unistd.h>
|
#include <bits/asm/unistd_32.h>
|
||||||
.text
|
.text
|
||||||
.global _setpgid
|
.global _setpgid
|
||||||
.type _setpgid, @function
|
.type _setpgid, @function
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
#ifdef __SUPPORT_VHEX_KERNEL
|
#ifdef __SUPPORT_VHEX_KERNEL
|
||||||
#include <fxlibc/asm/unistd.h>
|
#include <bits/asm/unistd_32.h>
|
||||||
.text
|
.text
|
||||||
.global _write
|
.global _write
|
||||||
.type _write, @function
|
.type _write, @function
|
||||||
|
|
Loading…
Add table
Reference in a new issue