1
0
Fork 0
mirror of https://gitlab.com/sortix/sortix.git synced 2023-02-13 20:55:38 -05:00

Move stdlib.h functions into their own directory.

This commit is contained in:
Jonas 'Sortie' Termansen 2013-06-24 23:52:59 +02:00
parent ab0177113f
commit 18356edb69
34 changed files with 65 additions and 65 deletions

View file

@ -17,22 +17,13 @@ CXXFLAGS=-std=gnu++11 -fno-exceptions -fno-rtti
ASFLAGS= ASFLAGS=
FREEOBJS=\ FREEOBJS=\
abort.o \
abs.o \
_assert.o \ _assert.o \
atof.o \
atoi.o \
atoll.o \
atol.o \
bsearch.o \
calloc.o \
clearerr.o \ clearerr.o \
c++.o \ c++.o \
ctype.o \ ctype.o \
dirent/alphasort.o \ dirent/alphasort.o \
dirent/dir.o \ dirent/dir.o \
dirent/versionsort.o \ dirent/versionsort.o \
div.o \
errno.o \ errno.o \
fabs.o \ fabs.o \
fbufsize.o \ fbufsize.o \
@ -72,13 +63,6 @@ fwrite.o \
fwriting.o \ fwriting.o \
getdelim.o \ getdelim.o \
getline.o \ getline.o \
heap.o \
integer.o \
ldiv.o \
lldiv.o \
mblen.o \
mbstowcs.o \
mbtowc.o \
op-new.o \ op-new.o \
rewind.o \ rewind.o \
setbuf.o \ setbuf.o \
@ -88,9 +72,30 @@ sigdelset.o \
sigemptyset.o \ sigemptyset.o \
sigfillset.o \ sigfillset.o \
sigismember.o \ sigismember.o \
sort.o \
sprint.o \ sprint.o \
sscanf.o \ sscanf.o \
stdlib/abort.o \
stdlib/abs.o \
stdlib/atof.o \
stdlib/atoi.o \
stdlib/atoll.o \
stdlib/atol.o \
stdlib/bsearch.o \
stdlib/calloc.o \
stdlib/div.o \
stdlib/heap.o \
stdlib/integer.o \
stdlib/ldiv.o \
stdlib/lldiv.o \
stdlib/mblen.o \
stdlib/mbstowcs.o \
stdlib/mbtowc.o \
stdlib/qsort.o \
stdlib/strtod.o \
stdlib/strtof.o \
stdlib/strtold.o \
stdlib/wcstombs.o \
stdlib/wctomb.o \
string/memccpy.o \ string/memccpy.o \
string/memchr.o \ string/memchr.o \
string/memcmp.o \ string/memcmp.o \
@ -125,9 +130,6 @@ string/strtok.o \
string/strtok_r.o \ string/strtok_r.o \
string/strverscmp.o \ string/strverscmp.o \
string/strxfrm.o \ string/strxfrm.o \
strtod.o \
strtof.o \
strtold.o \
time/asctime.o \ time/asctime.o \
time/asctime_r.o \ time/asctime_r.o \
time/gmtime.o \ time/gmtime.o \
@ -156,8 +158,6 @@ wchar/wcsrchr.o \
wchar/wcsrtombs.o \ wchar/wcsrtombs.o \
wchar/wcsspn.o \ wchar/wcsspn.o \
wchar/wcstok.o \ wchar/wcstok.o \
wcstombs.o \
wctomb.o \
wctype.o \ wctype.o \
HOSTEDOBJS=\ HOSTEDOBJS=\
@ -169,8 +169,6 @@ arpa/inet/inet_ntoa.o \
arpa/inet/inet_ntop.o \ arpa/inet/inet_ntop.o \
arpa/inet/inet_pton.o \ arpa/inet/inet_pton.o \
calltrace.o \ calltrace.o \
canonicalize_file_name_at.o \
canonicalize_file_name.o \
chdir.o \ chdir.o \
chmod.o \ chmod.o \
chown.o \ chown.o \
@ -189,7 +187,6 @@ dispmsg_issue.o \
dlfcn.o \ dlfcn.o \
dup2.o \ dup2.o \
dup.o \ dup.o \
env.o \
errorprint.o \ errorprint.o \
execle.o \ execle.o \
execl.o \ execl.o \
@ -199,8 +196,6 @@ execv.o \
execvpe.o \ execvpe.o \
execvp.o \ execvp.o \
_exit.o \ _exit.o \
_Exit.o \
exit.o \
faccessat.o \ faccessat.o \
fchdirat.o \ fchdirat.o \
fchdir.o \ fchdir.o \
@ -266,7 +261,6 @@ memstat.o \
mkdirat.o \ mkdirat.o \
mkdir.o \ mkdir.o \
mkpartition.o \ mkpartition.o \
mktemp.o \
netdb/endhostent.o \ netdb/endhostent.o \
netdb/endnetent.o \ netdb/endnetent.o \
netdb/endprotoent.o \ netdb/endprotoent.o \
@ -289,7 +283,6 @@ netdb/sethostent.o \
netdb/setnetent.o \ netdb/setnetent.o \
netdb/setprotoent.o \ netdb/setprotoent.o \
netdb/setservent.o \ netdb/setservent.o \
on_exit.o \
openat.o \ openat.o \
open.o \ open.o \
pathconf.o \ pathconf.o \
@ -304,13 +297,11 @@ putc.o \
pwent.o \ pwent.o \
pwritev.o \ pwritev.o \
raise.o \ raise.o \
rand.o \
readdirents.o \ readdirents.o \
readlinkat.o \ readlinkat.o \
readlink.o \ readlink.o \
read.o \ read.o \
readv.o \ readv.o \
realpath.o \
removeat.o \ removeat.o \
remove.o \ remove.o \
renameat.o \ renameat.o \
@ -336,6 +327,16 @@ sigprocmask.o \
sleep.o \ sleep.o \
stat.o \ stat.o \
stdio.o \ stdio.o \
stdlib/canonicalize_file_name_at.o \
stdlib/canonicalize_file_name.o \
stdlib/env.o \
stdlib/_Exit.o \
stdlib/exit.o \
stdlib/mktemp.o \
stdlib/on_exit.o \
stdlib/rand.o \
stdlib/realpath.o \
stdlib/system.o \
sysconf.o \ sysconf.o \
sys/socket/accept4.o \ sys/socket/accept4.o \
sys/socket/accept.o \ sys/socket/accept.o \
@ -356,7 +357,6 @@ sys/socket/shutdown.o \
sys/socket/sockatmark.o \ sys/socket/sockatmark.o \
sys/socket/socket.o \ sys/socket/socket.o \
sys/socket/socketpair.o \ sys/socket/socketpair.o \
system.o \
sys/time/gettimeofday.o \ sys/time/gettimeofday.o \
tcgetpgrp.o \ tcgetpgrp.o \
tcgetwinsize.o \ tcgetwinsize.o \

0
libc/sortix/stdlib/.gitignore vendored Normal file
View file

View file

@ -17,7 +17,7 @@
You should have received a copy of the GNU Lesser General Public License You should have received a copy of the GNU Lesser General Public License
along with the Sortix C Library. If not, see <http://www.gnu.org/licenses/>. along with the Sortix C Library. If not, see <http://www.gnu.org/licenses/>.
_Exit.cpp stdlib/_Exit.cpp
Terminates the current process. Terminates the current process.
*******************************************************************************/ *******************************************************************************/

View file

@ -17,7 +17,7 @@
You should have received a copy of the GNU Lesser General Public License You should have received a copy of the GNU Lesser General Public License
along with the Sortix C Library. If not, see <http://www.gnu.org/licenses/>. along with the Sortix C Library. If not, see <http://www.gnu.org/licenses/>.
abort.cpp stdlib/abort.cpp
Abnormal process termination. Abnormal process termination.
*******************************************************************************/ *******************************************************************************/

View file

@ -17,7 +17,7 @@
You should have received a copy of the GNU Lesser General Public License You should have received a copy of the GNU Lesser General Public License
along with the Sortix C Library. If not, see <http://www.gnu.org/licenses/>. along with the Sortix C Library. If not, see <http://www.gnu.org/licenses/>.
abs.cpp stdlib/abs.cpp
Allows taking the absolute value of integer types. Allows taking the absolute value of integer types.
*******************************************************************************/ *******************************************************************************/

View file

@ -17,8 +17,8 @@
You should have received a copy of the GNU Lesser General Public License You should have received a copy of the GNU Lesser General Public License
along with the Sortix C Library. If not, see <http://www.gnu.org/licenses/>. along with the Sortix C Library. If not, see <http://www.gnu.org/licenses/>.
atof.cpp stdlib/atof.cpp
Converts floats represented as strings to binary representation. Converts floating numbers represented as strings to binary representation.
*******************************************************************************/ *******************************************************************************/

View file

@ -17,7 +17,7 @@
You should have received a copy of the GNU Lesser General Public License You should have received a copy of the GNU Lesser General Public License
along with the Sortix C Library. If not, see <http://www.gnu.org/licenses/>. along with the Sortix C Library. If not, see <http://www.gnu.org/licenses/>.
atoi.cpp stdlib/atoi.cpp
Converts integers represented as strings to binary representation. Converts integers represented as strings to binary representation.
*******************************************************************************/ *******************************************************************************/

View file

@ -17,7 +17,7 @@
You should have received a copy of the GNU Lesser General Public License You should have received a copy of the GNU Lesser General Public License
along with the Sortix C Library. If not, see <http://www.gnu.org/licenses/>. along with the Sortix C Library. If not, see <http://www.gnu.org/licenses/>.
atol.cpp stdlib/atol.cpp
Converts integers represented as strings to binary representation. Converts integers represented as strings to binary representation.
*******************************************************************************/ *******************************************************************************/

View file

@ -17,7 +17,7 @@
You should have received a copy of the GNU Lesser General Public License You should have received a copy of the GNU Lesser General Public License
along with the Sortix C Library. If not, see <http://www.gnu.org/licenses/>. along with the Sortix C Library. If not, see <http://www.gnu.org/licenses/>.
atoll.cpp stdlib/atoll.cpp
Converts integers represented as strings to binary representation. Converts integers represented as strings to binary representation.
*******************************************************************************/ *******************************************************************************/

View file

@ -17,7 +17,7 @@
You should have received a copy of the GNU Lesser General Public License You should have received a copy of the GNU Lesser General Public License
along with the Sortix C Library. If not, see <http://www.gnu.org/licenses/>. along with the Sortix C Library. If not, see <http://www.gnu.org/licenses/>.
bsearch.cpp stdlib/bsearch.cpp
Binary search. Binary search.
*******************************************************************************/ *******************************************************************************/

View file

@ -17,7 +17,7 @@
You should have received a copy of the GNU Lesser General Public License You should have received a copy of the GNU Lesser General Public License
along with the Sortix C Library. If not, see <http://www.gnu.org/licenses/>. along with the Sortix C Library. If not, see <http://www.gnu.org/licenses/>.
calloc.cpp stdlib/calloc.cpp
Allocates zeroed memory. Allocates zeroed memory.
*******************************************************************************/ *******************************************************************************/

View file

@ -17,7 +17,7 @@
You should have received a copy of the GNU Lesser General Public License You should have received a copy of the GNU Lesser General Public License
along with the Sortix C Library. If not, see <http://www.gnu.org/licenses/>. along with the Sortix C Library. If not, see <http://www.gnu.org/licenses/>.
canonicalize_file_name.cpp stdlib/canonicalize_file_name.cpp
Return the canonicalized filename. Return the canonicalized filename.
*******************************************************************************/ *******************************************************************************/

View file

@ -17,7 +17,7 @@
You should have received a copy of the GNU Lesser General Public License You should have received a copy of the GNU Lesser General Public License
along with the Sortix C Library. If not, see <http://www.gnu.org/licenses/>. along with the Sortix C Library. If not, see <http://www.gnu.org/licenses/>.
canonicalize_file_name_at.cpp stdlib/canonicalize_file_name_at.cpp
Return the canonicalized filename. Return the canonicalized filename.
*******************************************************************************/ *******************************************************************************/

View file

@ -17,7 +17,7 @@
You should have received a copy of the GNU Lesser General Public License You should have received a copy of the GNU Lesser General Public License
along with the Sortix C Library. If not, see <http://www.gnu.org/licenses/>. along with the Sortix C Library. If not, see <http://www.gnu.org/licenses/>.
div.cpp stdlib/div.cpp
Compute quotient and remainder of integer division. Compute quotient and remainder of integer division.
*******************************************************************************/ *******************************************************************************/

View file

@ -17,7 +17,7 @@
You should have received a copy of the GNU Lesser General Public License You should have received a copy of the GNU Lesser General Public License
along with the Sortix C Library. If not, see <http://www.gnu.org/licenses/>. along with the Sortix C Library. If not, see <http://www.gnu.org/licenses/>.
env.cpp stdlib/env.cpp
Environmental variables utilities. Environmental variables utilities.
*******************************************************************************/ *******************************************************************************/

View file

@ -17,7 +17,7 @@
You should have received a copy of the GNU Lesser General Public License You should have received a copy of the GNU Lesser General Public License
along with the Sortix C Library. If not, see <http://www.gnu.org/licenses/>. along with the Sortix C Library. If not, see <http://www.gnu.org/licenses/>.
exit.cpp stdlib/exit.cpp
Terminates the current process. Terminates the current process.
*******************************************************************************/ *******************************************************************************/

View file

@ -17,7 +17,7 @@
You should have received a copy of the GNU Lesser General Public License You should have received a copy of the GNU Lesser General Public License
along with the Sortix C Library. If not, see <http://www.gnu.org/licenses/>. along with the Sortix C Library. If not, see <http://www.gnu.org/licenses/>.
heap.cpp stdlib/heap.cpp
Functions that allocate/free memory from a dynamic memory heap. Functions that allocate/free memory from a dynamic memory heap.
*******************************************************************************/ *******************************************************************************/

View file

@ -17,7 +17,7 @@
You should have received a copy of the GNU Lesser General Public License You should have received a copy of the GNU Lesser General Public License
along with the Sortix C Library. If not, see <http://www.gnu.org/licenses/>. along with the Sortix C Library. If not, see <http://www.gnu.org/licenses/>.
integer.cpp stdlib/integer.cpp
Converts integers represented as strings to binary representation. Converts integers represented as strings to binary representation.
*******************************************************************************/ *******************************************************************************/

View file

@ -17,7 +17,7 @@
You should have received a copy of the GNU Lesser General Public License You should have received a copy of the GNU Lesser General Public License
along with the Sortix C Library. If not, see <http://www.gnu.org/licenses/>. along with the Sortix C Library. If not, see <http://www.gnu.org/licenses/>.
ldiv.cpp stdlib/ldiv.cpp
Compute quotient and remainder of integer division. Compute quotient and remainder of integer division.
*******************************************************************************/ *******************************************************************************/

View file

@ -17,7 +17,7 @@
You should have received a copy of the GNU Lesser General Public License You should have received a copy of the GNU Lesser General Public License
along with the Sortix C Library. If not, see <http://www.gnu.org/licenses/>. along with the Sortix C Library. If not, see <http://www.gnu.org/licenses/>.
lldiv.cpp stdlib/lldiv.cpp
Compute quotient and remainder of integer division. Compute quotient and remainder of integer division.
*******************************************************************************/ *******************************************************************************/

View file

@ -17,7 +17,7 @@
You should have received a copy of the GNU Lesser General Public License You should have received a copy of the GNU Lesser General Public License
along with the Sortix C Library. If not, see <http://www.gnu.org/licenses/>. along with the Sortix C Library. If not, see <http://www.gnu.org/licenses/>.
mblen.cpp stdlib/mblen.cpp
Determine number of bytes in next multibyte character. Determine number of bytes in next multibyte character.
*******************************************************************************/ *******************************************************************************/

View file

@ -17,7 +17,7 @@
You should have received a copy of the GNU Lesser General Public License You should have received a copy of the GNU Lesser General Public License
along with the Sortix C Library. If not, see <http://www.gnu.org/licenses/>. along with the Sortix C Library. If not, see <http://www.gnu.org/licenses/>.
mbstowcs.cpp stdlib/mbstowcs.cpp
Convert a multibyte string to a wide-character string. Convert a multibyte string to a wide-character string.
*******************************************************************************/ *******************************************************************************/

View file

@ -17,7 +17,7 @@
You should have received a copy of the GNU Lesser General Public License You should have received a copy of the GNU Lesser General Public License
along with the Sortix C Library. If not, see <http://www.gnu.org/licenses/>. along with the Sortix C Library. If not, see <http://www.gnu.org/licenses/>.
mbtowc.cpp stdlib/mbtowc.cpp
Convert a multibyte sequence to a wide character. Convert a multibyte sequence to a wide character.
*******************************************************************************/ *******************************************************************************/

View file

@ -17,7 +17,7 @@
You should have received a copy of the GNU Lesser General Public License You should have received a copy of the GNU Lesser General Public License
along with the Sortix C Library. If not, see <http://www.gnu.org/licenses/>. along with the Sortix C Library. If not, see <http://www.gnu.org/licenses/>.
mktemp.cpp stdlib/mktemp.cpp
Make a unique temporary filename. Make a unique temporary filename.
*******************************************************************************/ *******************************************************************************/

View file

@ -17,7 +17,7 @@
You should have received a copy of the GNU Lesser General Public License You should have received a copy of the GNU Lesser General Public License
along with the Sortix C Library. If not, see <http://www.gnu.org/licenses/>. along with the Sortix C Library. If not, see <http://www.gnu.org/licenses/>.
on_exit.cpp stdlib/on_exit.cpp
Hooks that is called upon process exit. Hooks that is called upon process exit.
*******************************************************************************/ *******************************************************************************/

View file

@ -17,7 +17,7 @@
You should have received a copy of the GNU Lesser General Public License You should have received a copy of the GNU Lesser General Public License
along with the Sortix C Library. If not, see <http://www.gnu.org/licenses/>. along with the Sortix C Library. If not, see <http://www.gnu.org/licenses/>.
sort.cpp stdlib/qsort.cpp
Utility functions related to sorting and sorted data. Utility functions related to sorting and sorted data.
*******************************************************************************/ *******************************************************************************/

View file

@ -17,7 +17,7 @@
You should have received a copy of the GNU Lesser General Public License You should have received a copy of the GNU Lesser General Public License
along with the Sortix C Library. If not, see <http://www.gnu.org/licenses/>. along with the Sortix C Library. If not, see <http://www.gnu.org/licenses/>.
rand.cpp stdlib/rand.cpp
Returns a random value. Returns a random value.
*******************************************************************************/ *******************************************************************************/

View file

@ -17,7 +17,7 @@
You should have received a copy of the GNU Lesser General Public License You should have received a copy of the GNU Lesser General Public License
along with the Sortix C Library. If not, see <http://www.gnu.org/licenses/>. along with the Sortix C Library. If not, see <http://www.gnu.org/licenses/>.
realpath.cpp stdlib/realpath.cpp
Return the canonicalized filename. Return the canonicalized filename.
*******************************************************************************/ *******************************************************************************/

View file

@ -17,7 +17,7 @@
You should have received a copy of the GNU Lesser General Public License You should have received a copy of the GNU Lesser General Public License
along with the Sortix C Library. If not, see <http://www.gnu.org/licenses/>. along with the Sortix C Library. If not, see <http://www.gnu.org/licenses/>.
strtod.cpp stdlib/strtod.cpp
Converts floating numbers represented as strings to binary representation. Converts floating numbers represented as strings to binary representation.
*******************************************************************************/ *******************************************************************************/

View file

@ -17,7 +17,7 @@
You should have received a copy of the GNU Lesser General Public License You should have received a copy of the GNU Lesser General Public License
along with the Sortix C Library. If not, see <http://www.gnu.org/licenses/>. along with the Sortix C Library. If not, see <http://www.gnu.org/licenses/>.
strtof.cpp stdlib/strtof.cpp
Converts floating numbers represented as strings to binary representation. Converts floating numbers represented as strings to binary representation.
*******************************************************************************/ *******************************************************************************/

View file

@ -17,7 +17,7 @@
You should have received a copy of the GNU Lesser General Public License You should have received a copy of the GNU Lesser General Public License
along with the Sortix C Library. If not, see <http://www.gnu.org/licenses/>. along with the Sortix C Library. If not, see <http://www.gnu.org/licenses/>.
strtold.cpp stdlib/strtold.cpp
Converts floating numbers represented as strings to binary representation. Converts floating numbers represented as strings to binary representation.
*******************************************************************************/ *******************************************************************************/

View file

@ -17,7 +17,7 @@
You should have received a copy of the GNU Lesser General Public License You should have received a copy of the GNU Lesser General Public License
along with the Sortix C Library. If not, see <http://www.gnu.org/licenses/>. along with the Sortix C Library. If not, see <http://www.gnu.org/licenses/>.
system.cpp stdlib/system.cpp
Execute a shell command. Execute a shell command.
*******************************************************************************/ *******************************************************************************/

View file

@ -17,7 +17,7 @@
You should have received a copy of the GNU Lesser General Public License You should have received a copy of the GNU Lesser General Public License
along with the Sortix C Library. If not, see <http://www.gnu.org/licenses/>. along with the Sortix C Library. If not, see <http://www.gnu.org/licenses/>.
wcstombs.cpp stdlib/wcstombs.cpp
Convert a wide-character string to multibyte string. Convert a wide-character string to multibyte string.
*******************************************************************************/ *******************************************************************************/

View file

@ -17,7 +17,7 @@
You should have received a copy of the GNU Lesser General Public License You should have received a copy of the GNU Lesser General Public License
along with the Sortix C Library. If not, see <http://www.gnu.org/licenses/>. along with the Sortix C Library. If not, see <http://www.gnu.org/licenses/>.
wctomb.cpp stdlib/wctomb.cpp
Convert a wide character to a multibyte sequence. Convert a wide character to a multibyte sequence.
*******************************************************************************/ *******************************************************************************/