diff --git a/nuttx/asm/posix_types.h b/nuttx/asm/posix_types.h new file mode 100644 index 000000000..4e9e14f3a --- /dev/null +++ b/nuttx/asm/posix_types.h @@ -0,0 +1,24 @@ +/* + * Copyright (C) 2024 Xiaomi Corporation + * + * Licensed 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 + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * 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. + */ + +/* asm/posix_types.h */ + +#ifndef _ASM_POSIX_TYPES_H +#define _ASM_POSIX_TYPES_H + +/* This is just a placeholder to simplify cross-compiling the LTP Linux Kernel cases */ + +#endif /* _ASM_POSIX_TYPES_H */ diff --git a/nuttx/asm/types.h b/nuttx/asm/types.h new file mode 100644 index 000000000..c6d0fa47a --- /dev/null +++ b/nuttx/asm/types.h @@ -0,0 +1,24 @@ +/* + * Copyright (C) 2024 Xiaomi Corporation + * + * Licensed 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 + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * 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. + */ + +/* asm/types.h */ + +#ifndef _ASM_TYPES_H +#define _ASM_TYPES_H + +#include + +#endif /* _ASM_TYPES_H */ diff --git a/nuttx/dummy.c b/nuttx/dummy.c new file mode 100644 index 000000000..296cd3e71 --- /dev/null +++ b/nuttx/dummy.c @@ -0,0 +1,125 @@ +/* + * Copyright (C) 2024 Xiaomi Corporation + * + * Licensed 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 + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * 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. + */ + +#include + +#include +#include +#include +#include +#include + +/* the following implementation build when CONFIG_SYSTEM_POPEN option is disabled.*/ + +#ifndef CONFIG_SYSTEM_POPEN + +FILE *popen(const char *command, const char *mode) +{ + return NULL; +} + +int pclose(FILE *stream) +{ + return OK; +} +#endif + +/* the following empty implementation using to compile the LTP Kernel case on nuttx */ +int chroot(const char *path) +{ + return -1; +} + +int setpgid(pid_t pid, pid_t pgid) +{ + return -1; +} + +FILE *setmntent(const char *filep, const char *type) +{ + return NULL; +} + +struct mntent *getmntent(FILE *filep) +{ + return NULL; +} + +struct mntent *getmntent_r(FILE *, struct mntent *, char *, int) +{ + return NULL; +} + +int endmntent(FILE *filep) +{ + return -1; +} + +char *hasmntopt(const struct mntent *mnt, const char *opt) +{ + return NULL; +} + +/* the following are dummy implementation using to compile fsgid related cased on nuttx */ + +int setfsgid(uid_t fsgid) +{ + return -1; +} + +int setfsuid(uid_t fsuid) +{ + return -1; +} + +/* the following syscalls are needed by: + * lib/tst_safe_macros.c + * lib/safe_macros.c + * lib/parse_opts.c + */ +int mincore(void *addr, size_t length, unsigned char *vec) +{ + return -1; +} + +pid_t setsid(void) +{ + return -1; +} + +int brk(void *addr) +{ + return -1; +} + +#ifndef CONFIG_BUILD_KERNEL + +void *sbrk(intptr_t increment) +{ + return NULL; +} + +#endif + +int getresuid(uid_t *ruid, uid_t *euid, uid_t *suid) +{ + return -1; +} + +int getresgid(gid_t *rgid, gid_t *egid, gid_t *sgid) +{ + return -1; +} diff --git a/nuttx/features.h b/nuttx/features.h new file mode 100644 index 000000000..2d4f6a29b --- /dev/null +++ b/nuttx/features.h @@ -0,0 +1,24 @@ +/* + * Copyright (C) 2024 Xiaomi Corporation + * + * Licensed 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 + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * 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. + */ + +/* features.h */ + +#ifndef _FEATURES_H +#define _FEATURES_H + +/* This is just a placeholder to simplify cross-compiling the LTP Linux Kernel cases */ + +#endif /* _FEATURES_H */ diff --git a/nuttx/lapi/posix_clocks.h b/nuttx/lapi/posix_clocks.h new file mode 100644 index 000000000..fb1f82eba --- /dev/null +++ b/nuttx/lapi/posix_clocks.h @@ -0,0 +1,38 @@ +/* + * Copyright (C) 2024 Xiaomi Corporation + * + * Licensed 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 + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * 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. + */ + +/* posix_clocks.h */ + +#ifndef _LAPI_POSIX_CLOCKS_H__ +#define _LAPI_POSIX_CLOCKS_H__ + +#include + +#define MAX_CLOCKS 16 + +#define CLOCK_MONOTONIC_RAW 5 + +#define CLOCK_REALTIME_COARSE 6 + +#define CLOCK_MONOTONIC_COARSE 7 + +#define CLOCK_REALTIME_ALARM 8 + +#define CLOCK_BOOTTIME_ALARM 9 + +#define CLOCK_TAI 11 + +#endif /* _LAPI_POSIX_CLOCKS_H__ */ diff --git a/nuttx/libaio.h b/nuttx/libaio.h new file mode 100644 index 000000000..211d49e99 --- /dev/null +++ b/nuttx/libaio.h @@ -0,0 +1,24 @@ +/* + * Copyright (C) 2024 Xiaomi Corporation + * + * Licensed 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 + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * 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. + */ + +/* libaio.h */ + +#ifndef _LIBAIO_H +#define _LIBAIO_H + +/* This is just a placeholder to simplify cross-compiling the LTP Linux Kernel cases */ + +#endif /* _LIBAIO_H */ diff --git a/nuttx/linux/errno.h b/nuttx/linux/errno.h new file mode 100644 index 000000000..17f9ac00b --- /dev/null +++ b/nuttx/linux/errno.h @@ -0,0 +1,24 @@ +/* + * Copyright (C) 2024 Xiaomi Corporation + * + * Licensed 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 + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * 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. + */ + +/* linux/errno.h */ + +#ifndef _LINUX_ERRNO_H +#define _LINUX_ERRNO_H + +#include + +#endif /* _LINUX_ERRNO_H */ diff --git a/nuttx/linux/fs.h b/nuttx/linux/fs.h new file mode 100644 index 000000000..4b002075b --- /dev/null +++ b/nuttx/linux/fs.h @@ -0,0 +1,24 @@ +/* + * Copyright (C) 2024 Xiaomi Corporation + * + * Licensed 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 + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * 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. + */ + +/* linux/fs.h */ + +#ifndef _LINUX_FS_H +#define _LINUX_FS_H + +#include + +#endif /* _LINUX_FS_H */ diff --git a/nuttx/linux/futex.h b/nuttx/linux/futex.h new file mode 100644 index 000000000..310dda1b4 --- /dev/null +++ b/nuttx/linux/futex.h @@ -0,0 +1,25 @@ +/* + * Copyright (C) 2024 Xiaomi Corporation + * + * Licensed 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 + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * 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. + */ + +/* linux/futex.h */ + +#ifndef _LINUX_FUTEX_H +#define _LINUX_FUTEX_H + +#define FUTEX_WAIT 1 +#define FUTEX_WAKE 2 + +#endif /* _LINUX_FUTEX_H */ diff --git a/nuttx/linux/if_tun.h b/nuttx/linux/if_tun.h new file mode 100644 index 000000000..1cddcbed3 --- /dev/null +++ b/nuttx/linux/if_tun.h @@ -0,0 +1,24 @@ +/* + * Copyright (C) 2024 Xiaomi Corporation + * + * Licensed 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 + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * 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. + */ + +/* linux/if_tun.h */ + +#ifndef _LINUX_IF_TUN_H +#define _LINUX_IF_TUN_H + +/* This is just a placeholder to simplify cross-compiling the LTP Linux Kernel cases */ + +#endif /* _LINUX_IF_TUN_H */ diff --git a/nuttx/linux/kernel.h b/nuttx/linux/kernel.h new file mode 100644 index 000000000..3d910d624 --- /dev/null +++ b/nuttx/linux/kernel.h @@ -0,0 +1,24 @@ +/* + * Copyright (C) 2024 Xiaomi Corporation + * + * Licensed 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 + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * 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. + */ + +/* linux/kernel.h */ + +#ifndef _LINUX_KERNEL_H +#define _LINUX_KERNEL_H + +#include + +#endif /* _LINUX_KERNEL_H */ diff --git a/nuttx/linux/limits.h b/nuttx/linux/limits.h new file mode 100644 index 000000000..34ca7964b --- /dev/null +++ b/nuttx/linux/limits.h @@ -0,0 +1,24 @@ +/* + * Copyright (C) 2024 Xiaomi Corporation + * + * Licensed 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 + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * 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. + */ + +/* linux/limits.h */ + +#ifndef _LINUX_LIMITS_H +#define _LINUX_LIMITS_H + +#include + +#endif /* _LINUX_LIMITS_H */ diff --git a/nuttx/linux/loop.h b/nuttx/linux/loop.h new file mode 100644 index 000000000..2d4b1e285 --- /dev/null +++ b/nuttx/linux/loop.h @@ -0,0 +1,24 @@ +/* + * Copyright (C) 2024 Xiaomi Corporation + * + * Licensed 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 + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * 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. + */ + +/* linux/loop.h */ + +#ifndef _LINUX_LOOP_H +#define _LINUX_LOOP_H + +#include + +#endif /* _LINUX_LOOP_H */ diff --git a/nuttx/linux/mman.h b/nuttx/linux/mman.h new file mode 100644 index 000000000..91e173b1b --- /dev/null +++ b/nuttx/linux/mman.h @@ -0,0 +1,24 @@ +/* + * Copyright (C) 2024 Xiaomi Corporation + * + * Licensed 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 + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * 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. + */ + +/* linux/mman.h */ + +#ifndef _LINUX_MMAN_H +#define _LINUX_MMAN_H + +#include + +#endif /* _LINUX_MMAN_H */ diff --git a/nuttx/linux/net.h b/nuttx/linux/net.h new file mode 100644 index 000000000..edaf73d3e --- /dev/null +++ b/nuttx/linux/net.h @@ -0,0 +1,24 @@ +/* + * Copyright (C) 2024 Xiaomi Corporation + * + * Licensed 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 + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * 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. + */ + +/* linux/net.h */ + +#ifndef _LINUX_NET_H +#define _LINUX_NET_H + +#include + +#endif /* _LINUX_NET_H */ diff --git a/nuttx/linux/random.h b/nuttx/linux/random.h new file mode 100644 index 000000000..5e0dcd140 --- /dev/null +++ b/nuttx/linux/random.h @@ -0,0 +1,24 @@ +/* + * Copyright (C) 2024 Xiaomi Corporation + * + * Licensed 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 + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * 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. + */ + +/* linux/random.h */ + +#ifndef _LINUX_RANDOM_H +#define _LINUX_RANDOM_H + +#include + +#endif /* _LINUX_RANDOM_H */ diff --git a/nuttx/linux/rtc.h b/nuttx/linux/rtc.h new file mode 100644 index 000000000..546b48967 --- /dev/null +++ b/nuttx/linux/rtc.h @@ -0,0 +1,24 @@ +/* + * Copyright (C) 2024 Xiaomi Corporation + * + * Licensed 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 + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * 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. + */ + +/* linux/rtc.h */ + +#ifndef _LINUX_RTC_H +#define _LINUX_RTC_H + +#include + +#endif /* _LINUX_RTC_H */ diff --git a/nuttx/linux/types.h b/nuttx/linux/types.h new file mode 100644 index 000000000..2851c00d1 --- /dev/null +++ b/nuttx/linux/types.h @@ -0,0 +1,24 @@ +/* + * Copyright (C) 2024 Xiaomi Corporation + * + * Licensed 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 + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * 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. + */ + +/* linux/types.h */ + +#ifndef _LINUX_TYPES_H +#define _LINUX_TYPES_H + +/* This is just a placeholder to simplify cross-compiling the LTP Linux Kernel cases */ + +#endif /* _LINUX_TYPES_H */ diff --git a/nuttx/linux/unistd.h b/nuttx/linux/unistd.h new file mode 100644 index 000000000..c5fb0fb30 --- /dev/null +++ b/nuttx/linux/unistd.h @@ -0,0 +1,24 @@ +/* + * Copyright (C) 2024 Xiaomi Corporation + * + * Licensed 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 + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * 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. + */ + +/* linux/unistd.h */ + +#ifndef _LINUX_UNISTD_H +#define _LINUX_UNISTD_H + +#include + +#endif /* _LINUX_UNISTD_H */ diff --git a/nuttx/mntent.h b/nuttx/mntent.h new file mode 100644 index 000000000..3de0385b1 --- /dev/null +++ b/nuttx/mntent.h @@ -0,0 +1,35 @@ +/* + * Copyright (C) 2024 Xiaomi Corporation + * + * Licensed 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 + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * 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. + */ + +/* mntent.h */ + +#ifndef _MNTENT_H +#define _MNTENT_H + +#include +#include + +struct mntent +{ + char *mnt_fsname; + char *mnt_dir; + char *mnt_type; + char *mnt_opts; + int mnt_freq; + int mnt_passno; +}; + +#endif /* _MNTENT_H */ diff --git a/nuttx/sys/fsuid.h b/nuttx/sys/fsuid.h new file mode 100644 index 000000000..3872c58cf --- /dev/null +++ b/nuttx/sys/fsuid.h @@ -0,0 +1,24 @@ +/* + * Copyright (C) 2024 Xiaomi Corporation + * + * Licensed 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 + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * 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. + */ + +/* sys/fsuid.h */ + +#ifndef _SYS_FSUID_H +#define _SYS_FSUID_H + +/* This is just a placeholder to simplify cross-compiling the LTP Linux Kernel cases */ + +#endif /* _SYS_FSUID_H */ diff --git a/nuttx/sys/personality.h b/nuttx/sys/personality.h new file mode 100644 index 000000000..d70af60b7 --- /dev/null +++ b/nuttx/sys/personality.h @@ -0,0 +1,24 @@ +/* + * Copyright (C) 2024 Xiaomi Corporation + * + * Licensed 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 + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * 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. + */ + +/* sys/personality.h */ + +#ifndef _SYS_PERSONALITY_H +#define _SYS_PERSONALITY_H + +/* This is just a placeholder to simplify cross-compiling the LTP Linux Kernel cases */ + +#endif /* _SYS_PERSONALITY_H */ diff --git a/nuttx/sys/ptrace.h b/nuttx/sys/ptrace.h new file mode 100644 index 000000000..dfad1303e --- /dev/null +++ b/nuttx/sys/ptrace.h @@ -0,0 +1,24 @@ +/* + * Copyright (C) 2024 Xiaomi Corporation + * + * Licensed 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 + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * 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. + */ + +/* sys/ptrace.h */ + +#ifndef _SYS_PTRACE_H +#define _SYS_PTRACE_H + +/* This is just a placeholder to simplify cross-compiling the LTP Linux Kernel cases */ + +#endif /* _SYS_PTRACE_H */ diff --git a/nuttx/sys/quota.h b/nuttx/sys/quota.h new file mode 100644 index 000000000..a79b0c41c --- /dev/null +++ b/nuttx/sys/quota.h @@ -0,0 +1,24 @@ +/* + * Copyright (C) 2024 Xiaomi Corporation + * + * Licensed 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 + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * 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. + */ + +/* sys/quota.h */ + +#ifndef _SYS_QUOTA_H +#define _SYS_QUOTA_H + +/* This is just a placeholder to simplify cross-compiling the LTP Linux Kernel cases */ + +#endif /* _SYS_QUOTA_H */ diff --git a/nuttx/sys/timex.h b/nuttx/sys/timex.h new file mode 100644 index 000000000..27570dc62 --- /dev/null +++ b/nuttx/sys/timex.h @@ -0,0 +1,24 @@ +/* + * Copyright (C) 2024 Xiaomi Corporation + * + * Licensed 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 + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * 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. + */ + +/* sys/timex.h */ + +#ifndef _SYS_TIMEX_H +#define _SYS_TIMEX_H + +/* This is just a placeholder to simplify cross-compiling the LTP Linux Kernel cases */ + +#endif /* _SYS_TIMEX_H */ diff --git a/nuttx/sys/ttydefaults.h b/nuttx/sys/ttydefaults.h new file mode 100644 index 000000000..63b171051 --- /dev/null +++ b/nuttx/sys/ttydefaults.h @@ -0,0 +1,24 @@ +/* + * Copyright (C) 2024 Xiaomi Corporation + * + * Licensed 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 + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * 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. + */ + +/* sys/ttydefaults.h */ + +#ifndef _SYS_TTYDEFAULTS_H +#define _SYS_TTYDEFAULTS_H + +/* This is just a placeholder to simplify cross-compiling the LTP Linux Kernel cases */ + +#endif /* _SYS_TTYDEFAULTS_H */ diff --git a/nuttx/sys/user.h b/nuttx/sys/user.h new file mode 100644 index 000000000..db9bdd58c --- /dev/null +++ b/nuttx/sys/user.h @@ -0,0 +1,24 @@ +/* + * Copyright (C) 2024 Xiaomi Corporation + * + * Licensed 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 + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * 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. + */ + +/* sys/user.h */ + +#ifndef _SYS_USER_H +#define _SYS_USER_H + +/* This is just a placeholder to simplify cross-compiling the LTP Linux Kernel cases */ + +#endif /* _SYS_USER_H */ diff --git a/nuttx/sys/xattr.h b/nuttx/sys/xattr.h new file mode 100644 index 000000000..f466f5f4f --- /dev/null +++ b/nuttx/sys/xattr.h @@ -0,0 +1,24 @@ +/* + * Copyright (C) 2024 Xiaomi Corporation + * + * Licensed 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 + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * 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. + */ + +/* sys/xattr.h */ + +#ifndef _SYS_XATTR_H +#define _SYS_XATTR_H + +/* This is just a placeholder to simplify cross-compiling the LTP Linux Kernel cases */ + +#endif /* _SYS_XATTR_H */ diff --git a/nuttx/ulimit.h b/nuttx/ulimit.h new file mode 100644 index 000000000..c10701c0b --- /dev/null +++ b/nuttx/ulimit.h @@ -0,0 +1,24 @@ +/* + * Copyright (C) 2024 Xiaomi Corporation + * + * Licensed 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 + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * 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. + */ + +/* ulimit.h */ + +#ifndef _ULIMIT_H +#define _ULIMIT_H + +/* This is just a placeholder to simplify cross-compiling the LTP Linux Kernel cases */ + +#endif /* _ULIMIT_H */ diff --git a/nuttx/values.h b/nuttx/values.h new file mode 100644 index 000000000..f488fc6be --- /dev/null +++ b/nuttx/values.h @@ -0,0 +1,24 @@ +/* + * Copyright (C) 2024 Xiaomi Corporation + * + * Licensed 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 + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * 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. + */ + +/* values.h */ + +#ifndef _VALUES_H +#define _VALUES_H + +/* This is just a placeholder to simplify cross-compiling the LTP Linux Kernel cases */ + +#endif /* _VALUES_H */