newlib: stub sysconf()
This commit is contained in:
@ -8,7 +8,7 @@ if MAY_SUPPLY_SYSCALLS
|
|||||||
extra_objs = syscalls.o libposix_conf.o chown.o getrusage.o ids.o \
|
extra_objs = syscalls.o libposix_conf.o chown.o getrusage.o ids.o \
|
||||||
chmod.o sigsets.o sigaction.o sigsuspend.o sigwaitinfo.o \
|
chmod.o sigsets.o sigaction.o sigsuspend.o sigwaitinfo.o \
|
||||||
sigtimedwait.o sigwait.o alarm.o sigqueue.o siglongjmp.o \
|
sigtimedwait.o sigwait.o alarm.o sigqueue.o siglongjmp.o \
|
||||||
termios.o ioctl.o
|
termios.o ioctl.o sysconf.o
|
||||||
else
|
else
|
||||||
extra_objs =
|
extra_objs =
|
||||||
endif
|
endif
|
||||||
@ -21,7 +21,7 @@ lib_a_LIBADD = $(extra_objs)
|
|||||||
EXTRA_lib_a_SOURCES = libposix_conf.c syscalls.c chown.c getrusage.c \
|
EXTRA_lib_a_SOURCES = libposix_conf.c syscalls.c chown.c getrusage.c \
|
||||||
ids.c chmod.c sigsets.c sigaction.c sigsuspend.c sigwaitinfo.c \
|
ids.c chmod.c sigsets.c sigaction.c sigsuspend.c sigwaitinfo.c \
|
||||||
sigtimedwait.c sigwait.c alarm.c sigqueue.c siglongjmp.c \
|
sigtimedwait.c sigwait.c alarm.c sigqueue.c siglongjmp.c \
|
||||||
termios.c ioctl.c
|
termios.c ioctl.c sysconf.c
|
||||||
lib_a_DEPENDENCIES = $(extra_objs)
|
lib_a_DEPENDENCIES = $(extra_objs)
|
||||||
lib_a_CCASFLAGS = $(AM_CCASFLAGS)
|
lib_a_CCASFLAGS = $(AM_CCASFLAGS)
|
||||||
lib_a_CFLAGS = $(AM_CFLAGS)
|
lib_a_CFLAGS = $(AM_CFLAGS)
|
||||||
|
25
newlib/libc/sys/jehanne/sysconf.c
Normal file
25
newlib/libc/sys/jehanne/sysconf.c
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
/*
|
||||||
|
* This file is part of Jehanne.
|
||||||
|
*
|
||||||
|
* Copyright (C) 2019 Giacomo Tesio <giacomo@tesio.it>
|
||||||
|
*
|
||||||
|
* This is free software: you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU Affero General Public License as
|
||||||
|
* published by the Free Software Foundation, version 3 of the License.
|
||||||
|
*
|
||||||
|
* Jehanne is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
* GNU General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU Affero General Public License
|
||||||
|
* along with Jehanne. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
*/
|
||||||
|
#include <errno.h>
|
||||||
|
|
||||||
|
long sysconf(int name)
|
||||||
|
{
|
||||||
|
/* TODO: implement. */
|
||||||
|
errno = ENOSYS;
|
||||||
|
return -1;
|
||||||
|
}
|
Reference in New Issue
Block a user