2012-11-10 17:06:01 +01:00
|
|
|
############################################################################
|
2018-05-29 21:21:26 +02:00
|
|
|
# libs/libc/unistd/Make.defs
|
2012-11-10 17:06:01 +01:00
|
|
|
#
|
2021-03-02 15:54:21 +01:00
|
|
|
# Licensed to the Apache Software Foundation (ASF) under one or more
|
|
|
|
# contributor license agreements. See the NOTICE file distributed with
|
|
|
|
# this work for additional information regarding copyright ownership. The
|
|
|
|
# ASF licenses this file to you under the Apache License, Version 2.0 (the
|
|
|
|
# "License"); you may not use this file except in compliance with the
|
|
|
|
# License. You may obtain a copy of the License at
|
2012-11-10 17:06:01 +01:00
|
|
|
#
|
2021-03-02 15:54:21 +01:00
|
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
2012-11-10 17:06:01 +01:00
|
|
|
#
|
2021-03-02 15:54:21 +01:00
|
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
|
|
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
|
|
|
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
|
|
|
# License for the specific language governing permissions and limitations
|
|
|
|
# under the License.
|
2012-11-10 17:06:01 +01:00
|
|
|
#
|
|
|
|
############################################################################
|
|
|
|
|
|
|
|
# Add the unistd C files to the build
|
|
|
|
|
2020-06-22 08:34:59 +02:00
|
|
|
CSRCS += lib_access.c lib_daemon.c lib_swab.c lib_pathconf.c lib_sysconf.c
|
2022-03-25 04:26:09 +01:00
|
|
|
CSRCS += lib_getentropy.c lib_getopt_common.c lib_getopt.c lib_getopt_long.c
|
2021-04-01 16:40:30 +02:00
|
|
|
CSRCS += lib_getopt_longonly.c lib_getoptvars.c lib_getoptargp.c
|
2021-07-20 06:33:11 +02:00
|
|
|
CSRCS += lib_getopterrp.c lib_getoptindp.c lib_getoptoptp.c lib_times.c
|
2021-06-22 09:38:17 +02:00
|
|
|
CSRCS += lib_alarm.c lib_fstatvfs.c lib_statvfs.c lib_sleep.c lib_nice.c
|
2021-08-09 10:08:20 +02:00
|
|
|
CSRCS += lib_setreuid.c lib_setregid.c lib_getrusage.c lib_utime.c lib_utimes.c
|
2021-06-22 09:38:17 +02:00
|
|
|
CSRCS += lib_setrlimit.c lib_getrlimit.c lib_setpriority.c lib_getpriority.c
|
2021-08-09 10:08:20 +02:00
|
|
|
CSRCS += lib_futimes.c lib_lutimes.c lib_gethostname.c lib_sethostname.c
|
2023-02-04 02:00:49 +01:00
|
|
|
CSRCS += lib_fchownat.c lib_linkat.c lib_readlinkat.c lib_symlinkat.c
|
2023-04-15 08:47:19 +02:00
|
|
|
CSRCS += lib_unlinkat.c lib_usleep.c lib_getpgrp.c lib_getpgid.c
|
2019-08-06 22:13:43 +02:00
|
|
|
|
|
|
|
ifneq ($(CONFIG_SCHED_USER_IDENTITY),y)
|
2019-08-06 20:38:43 +02:00
|
|
|
CSRCS += lib_setuid.c lib_setgid.c lib_getuid.c lib_getgid.c
|
2023-04-15 08:47:19 +02:00
|
|
|
CSRCS += lib_seteuid.c lib_setegid.c lib_geteuid.c lib_getegid.c
|
2019-08-06 22:13:43 +02:00
|
|
|
endif
|
2012-11-10 17:06:01 +01:00
|
|
|
|
|
|
|
ifneq ($(CONFIG_DISABLE_ENVIRON),y)
|
2022-08-05 06:04:37 +02:00
|
|
|
CSRCS += lib_chdir.c lib_fchdir.c lib_getcwd.c lib_restoredir.c
|
2012-11-10 17:06:01 +01:00
|
|
|
endif
|
2013-01-08 17:25:30 +01:00
|
|
|
|
|
|
|
ifeq ($(CONFIG_LIBC_EXECFUNCS),y)
|
2022-04-20 14:53:05 +02:00
|
|
|
CSRCS += lib_execl.c lib_execle.c lib_execv.c
|
2013-01-08 17:25:30 +01:00
|
|
|
endif
|
2016-07-19 22:15:26 +02:00
|
|
|
|
2018-01-03 23:03:56 +01:00
|
|
|
ifneq ($(CONFIG_DISABLE_MOUNTPOINTS),y)
|
2020-12-14 03:56:23 +01:00
|
|
|
CSRCS += lib_truncate.c lib_posix_fallocate.c
|
2018-01-03 23:03:56 +01:00
|
|
|
endif
|
|
|
|
|
2023-07-05 15:43:50 +02:00
|
|
|
ifeq ($(CONFIG_ARCH_HAVE_FORK),y)
|
2023-07-16 05:34:17 +02:00
|
|
|
CSRCS += lib_fork.c
|
2023-07-05 15:43:50 +02:00
|
|
|
ifeq ($(CONFIG_SCHED_WAITPID),y)
|
|
|
|
CSRCS += lib_vfork.c
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
2012-11-10 17:06:01 +01:00
|
|
|
# Add the unistd directory to the build
|
|
|
|
|
|
|
|
DEPPATH += --dep-path unistd
|
|
|
|
VPATH += :unistd
|