instruction
stringlengths
82
202
input
stringclasses
1 value
output
stringlengths
73
23.9M
Linux kernel'inin 'tools/sched_ext/scx_flatcg' alt sistemi için gerekli C kaynak kodunu implemente et.
```c /* SPDX-License-Identifier: GPL-2.0 */ /* * Copyright (c) 2023 Meta Platforms, Inc. and affiliates. * Copyright (c) 2023 Tejun Heo <tj@kernel.org> * Copyright (c) 2023 David Vernet <dvernet@meta.com> */ #include <stdio.h> #include <signal.h> #include <assert.h> #include <unistd.h> #include <libgen.h> #include ...
Linux kernel'inin 'tools/sched_ext/scx_flatcg.bpf' alt sistemi için gerekli C kaynak kodunu implemente et.
```c /* SPDX-License-Identifier: GPL-2.0 */ /* * A demo sched_ext flattened cgroup hierarchy scheduler. It implements * hierarchical weight-based cgroup CPU control by flattening the cgroup * hierarchy into a single layer by compounding the active weight share at each * level. Consider the following hierarchy with ...
Linux kernel'inin 'tools/sched_ext/scx_pair.bpf' alt sistemi için gerekli C kaynak kodunu implemente et.
```c /* SPDX-License-Identifier: GPL-2.0 */ /* * A demo sched_ext core-scheduler which always makes every sibling CPU pair * execute from the same CPU cgroup. * * This scheduler is a minimal implementation and would need some form of * priority handling both inside each cgroup and across the cgroups to be * pract...
Linux işletim sistemi çekirdeği için 'tools/sched_ext/scx_userland' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c // SPDX-License-Identifier: GPL-2.0 /* Copyright (c) 2022 Meta, Inc */ #ifndef __SCX_USERLAND_COMMON_H #define __SCX_USERLAND_COMMON_H /* * An instance of a task that has been enqueued by the kernel for consumption * by a user space global scheduler thread. */ struct scx_userland_enqueued_task { __s32 pid; ...
Linux işletim sistemi çekirdeği için 'tools/sched_ext/include/scx/compat.bpf' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ /* * Copyright (c) 2024 Meta Platforms, Inc. and affiliates. * Copyright (c) 2024 Tejun Heo <tj@kernel.org> * Copyright (c) 2024 David Vernet <dvernet@meta.com> */ #ifndef __SCX_COMPAT_BPF_H #define __SCX_COMPAT_BPF_H #define __COMPAT_ENUM_OR_ZERO(__type, __ent) \ ({...
Linux işletim sistemi çekirdeği için 'tools/sched_ext/include/scx/user_exit_info.bpf' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ /* * Define struct user_exit_info which is shared between BPF and userspace parts * to communicate exit status and other information. * * Copyright (c) 2022 Meta Platforms, Inc. and affiliates. * Copyright (c) 2022 Tejun Heo <tj@kernel.org> * Copyright (c) 2022 David Ve...
Linux işletim sistemi çekirdeği için 'tools/sched_ext/include/scx/enums' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ /* * Define struct scx_enums that stores the load-time values of enums * used by the BPF program. * * Copyright (c) 2024 Meta Platforms, Inc. and affiliates. */ #ifndef __SCX_ENUMS_H #define __SCX_ENUMS_H static inline void __ENUM_set(u64 *val, const char *type, const ...
Linux işletim sistemi çekirdeği için 'tools/sched_ext/include/scx/enums.autogen' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* * WARNING: This file is autogenerated from scripts/gen_enums.py. If you would * like to access an enum that is currently missing, add it to the script * and run it from the root directory to update this file. */ #define SCX_ENUM_INIT(skel) do { \ SCX_ENUM_SET(skel, scx_public_consts, SCX_OPS_NAME_LEN); \ ...
Linux işletim sistemi çekirdeği için 'tools/sched_ext/include/scx/user_exit_info_common' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ /* * Define struct user_exit_info which is shared between BPF and userspace parts * to communicate exit status and other information. * * Copyright (c) 2022 Meta Platforms, Inc. and affiliates. * Copyright (c) 2022 Tejun Heo <tj@kernel.org> * Copyright (c) 2022 David Ve...
Linux işletim sistemi çekirdeği için 'tools/sched_ext/include/scx/bpf_arena_common.bpf' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) */ /* Copyright (c) 2024 Meta Platforms, Inc. and affiliates. */ #pragma once #ifndef PAGE_SIZE #define PAGE_SIZE __PAGE_SIZE /* * for older kernels try sizeof(struct genradix_node) * or flexible: * static inline long __bpf_page_size(void) { * retur...
Linux işletim sistemi çekirdeği için 'tools/sched_ext/include/scx/user_exit_info' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ /* * Define struct user_exit_info which is shared between BPF and userspace parts * to communicate exit status and other information. * * Copyright (c) 2022 Meta Platforms, Inc. and affiliates. * Copyright (c) 2022 Tejun Heo <tj@kernel.org> * Copyright (c) 2022 David Ve...
Linux işletim sistemi çekirdeği için 'tools/sched_ext/include/scx/enum_defs.autogen' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* * WARNING: This file is autogenerated from gen_enum_defs.py [1]. * * [1] https://github.com/sched-ext/scx/blob/main/scripts/gen_enum_defs.py */ #ifndef __ENUM_DEFS_AUTOGEN_H__ #define __ENUM_DEFS_AUTOGEN_H__ #define HAVE_SCX_DSP_DFL_MAX_BATCH #define HAVE_SCX_DSP_MAX_LOOPS #define HAVE_SCX_WATCHDOG_MAX_TI...
Linux işletim sistemi çekirdeği için 'tools/sched_ext/include/scx/enums.bpf' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ /* * Convenience macros for getting/setting struct scx_enums instances. * * Copyright (c) 2024 Meta Platforms, Inc. and affiliates. */ #ifndef __SCX_ENUMS_BPF_H #define __SCX_ENUMS_BPF_H #include "enums.autogen.bpf.h" #endif /* __SCX_ENUMS_BPF_H */ ```
Linux işletim sistemi çekirdeği için 'tools/sched_ext/include/scx/common.bpf' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ /* * Copyright (c) 2022 Meta Platforms, Inc. and affiliates. * Copyright (c) 2022 Tejun Heo <tj@kernel.org> * Copyright (c) 2022 David Vernet <dvernet@meta.com> */ #ifndef __SCX_COMMON_BPF_H #define __SCX_COMMON_BPF_H /* * The generated kfunc prototypes in vmlinux.h are...
Linux işletim sistemi çekirdeği için 'tools/sched_ext/include/scx/bpf_arena_common' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) */ /* Copyright (c) 2024 Meta Platforms, Inc. and affiliates. */ #pragma once #ifndef arena_container_of #define arena_container_of(ptr, type, member) \ ({ \ void __arena *__mptr = (void __arena *)(ptr); \ ((type *)(__mptr - offsetof(type, me...
Linux işletim sistemi çekirdeği için 'tools/sched_ext/include/scx/compat' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ /* * Copyright (c) 2024 Meta Platforms, Inc. and affiliates. * Copyright (c) 2024 Tejun Heo <tj@kernel.org> * Copyright (c) 2024 David Vernet <dvernet@meta.com> */ #ifndef __SCX_COMPAT_H #define __SCX_COMPAT_H #include <bpf/btf.h> #include <bpf/libbpf.h> #include <fcntl....
Linux işletim sistemi çekirdeği için 'tools/sched_ext/include/scx/common' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ /* * Copyright (c) 2023 Meta Platforms, Inc. and affiliates. * Copyright (c) 2023 Tejun Heo <tj@kernel.org> * Copyright (c) 2023 David Vernet <dvernet@meta.com> */ #ifndef __SCHED_EXT_COMMON_H #define __SCHED_EXT_COMMON_H #ifdef __KERNEL__ #error "Should not be included ...
Linux işletim sistemi çekirdeği için 'tools/sched_ext/include/scx/enums.autogen.bpf' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* * WARNING: This file is autogenerated from scripts/gen_enums.py. If you would * like to access an enum that is currently missing, add it to the script * and run it from the root directory to update this file. */ const volatile u64 __SCX_OPS_NAME_LEN __weak; #define SCX_OPS_NAME_LEN __SCX_OPS_NAME_LEN cons...
Linux işletim sistemi çekirdeği için 'tools/sched_ext/include/bpf-compat/gnu/stubs' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* * Dummy gnu/stubs.h. clang can end up including /usr/include/gnu/stubs.h when * compiling BPF files although its content doesn't play any role. The file in * turn includes stubs-64.h or stubs-32.h depending on whether __x86_64__ is * defined. When compiling a BPF source, __x86_64__ isn't set and thus * stu...
Linux işletim sistemi çekirdeği için 'tools/include/vdso/bits' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ #ifndef __VDSO_BITS_H #define __VDSO_BITS_H #include <vdso/const.h> #define BIT(nr) (UL(1) << (nr)) #define BIT_ULL(nr) (ULL(1) << (nr)) #endif /* __VDSO_BITS_H */ ```
Linux işletim sistemi çekirdeği için 'tools/include/vdso/unaligned' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ #ifndef __VDSO_UNALIGNED_H #define __VDSO_UNALIGNED_H #include <linux/compiler_types.h> /** * __get_unaligned_t - read an unaligned value from memory. * @type: the type to load from the pointer. * @ptr: the pointer to load from. * * Use memcpy to affect an unaligned ty...
Linux işletim sistemi çekirdeği için 'tools/include/vdso/const' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ #ifndef __VDSO_CONST_H #define __VDSO_CONST_H #include <uapi/linux/const.h> #define UL(x) (_UL(x)) #define ULL(x) (_ULL(x)) #endif /* __VDSO_CONST_H */ ```
Linux işletim sistemi çekirdeği için 'tools/include/uapi/linux/btf' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ /* Copyright (c) 2018 Facebook */ #ifndef _UAPI__LINUX_BTF_H__ #define _UAPI__LINUX_BTF_H__ #include <linux/types.h> #define BTF_MAGIC 0xeB9F #define BTF_VERSION 1 /* * BTF layout section consists of a struct btf_layout for each known * kind at BT...
Linux işletim sistemi çekirdeği için 'tools/include/uapi/linux/taskstats' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: LGPL-2.1 WITH Linux-syscall-note */ /* taskstats.h - exporting per-task statistics * * Copyright (C) Shailabh Nagar, IBM Corp. 2006 * (C) Balbir Singh, IBM Corp. 2006 * (C) Jay Lan, SGI, 2006 * * This program is free software; you can redistribute it a...
Linux işletim sistemi çekirdeği için 'tools/include/uapi/linux/kcmp' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ #ifndef _UAPI_LINUX_KCMP_H #define _UAPI_LINUX_KCMP_H #include <linux/types.h> /* Comparison type */ enum kcmp_type { KCMP_FILE, KCMP_VM, KCMP_FILES, KCMP_FS, KCMP_SIGHAND, KCMP_IO, KCMP_SYSVSEM, KCMP_EPOLL_TFD, KCMP_TYPES, }; /* Slot for ...
Linux işletim sistemi çekirdeği için 'tools/include/uapi/linux/elf' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ #ifndef _LINUX_ELF_H #define _LINUX_ELF_H #include <linux/types.h> #include <linux/elf-em.h> /* 32-bit ELF base types. */ typedef __u32 Elf32_Addr; typedef __u16 Elf32_Half; typedef __u32 Elf32_Off; typedef __s32 Elf32_Sword; typedef __u32 Elf32_Word...
Linux işletim sistemi çekirdeği için 'tools/include/uapi/linux/stddef' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ #ifndef _LINUX_STDDEF_H #define _LINUX_STDDEF_H #ifndef __always_inline #define __always_inline __inline__ #endif /* Not all C++ standards support type declarations inside an anonymous union */ #ifndef __cplusplus #define __struct_group_tag(TAG) TA...
Linux işletim sistemi çekirdeği için 'tools/include/uapi/linux/fscrypt' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ /* * fscrypt user API * * These ioctls can be used on filesystems that support fscrypt. See the * "User API" section of Documentation/filesystems/fscrypt.rst. */ #ifndef _UAPI_LINUX_FSCRYPT_H #define _UAPI_LINUX_FSCRYPT_H #include <linux/ioctl.h...
Linux işletim sistemi çekirdeği için 'tools/include/uapi/linux/pkt_cls' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ #ifndef __LINUX_PKT_CLS_H #define __LINUX_PKT_CLS_H #include <linux/types.h> #include <linux/pkt_sched.h> #define TC_COOKIE_MAX_SIZE 16 /* Action attributes */ enum { TCA_ACT_UNSPEC, TCA_ACT_KIND, TCA_ACT_OPTIONS, TCA_ACT_INDEX, TCA_ACT_STATS, ...
Linux işletim sistemi çekirdeği için 'tools/include/uapi/linux/netfilter_arp' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-1.0+ WITH Linux-syscall-note */ #ifndef __LINUX_ARP_NETFILTER_H #define __LINUX_ARP_NETFILTER_H /* ARP-specific defines for netfilter. * (C)2002 Rusty Russell IBM -- This code is GPL. */ #include <linux/netfilter.h> /* There is no PF_ARP. */ #define NF_ARP 0 /* ARP Hooks */ #...
Linux işletim sistemi çekirdeği için 'tools/include/uapi/linux/seccomp' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ #ifndef _UAPI_LINUX_SECCOMP_H #define _UAPI_LINUX_SECCOMP_H #include <linux/compiler.h> #include <linux/types.h> /* Valid values for seccomp.mode and prctl(PR_SET_SECCOMP, <mode>) */ #define SECCOMP_MODE_DISABLED 0 /* seccomp is not in use. */ #defi...
Linux işletim sistemi çekirdeği için 'tools/include/uapi/linux/stat' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ #ifndef _UAPI_LINUX_STAT_H #define _UAPI_LINUX_STAT_H #include <linux/types.h> #if defined(__KERNEL__) || !defined(__GLIBC__) || (__GLIBC__ < 2) #define S_IFMT 00170000 #define S_IFSOCK 0140000 #define S_IFLNK 0120000 #define S_IFREG 0100000 #def...
Linux işletim sistemi çekirdeği için 'tools/include/uapi/linux/seg6_local' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* * SR-IPv6 implementation * * Author: * David Lebrun <david.lebrun@uclouvain.be> * * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version * 2 of the...
Linux işletim sistemi çekirdeği için 'tools/include/uapi/linux/erspan' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ /* * ERSPAN Tunnel Metadata * * Copyright (c) 2018 VMware * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 * as published by the Free Software Foundation. ...
Linux işletim sistemi çekirdeği için 'tools/include/uapi/linux/tcp' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0+ WITH Linux-syscall-note */ /* * INET An implementation of the TCP/IP protocol suite for the LINUX * operating system. INET is implemented using the BSD Socket * interface as the means of communication with the user level. * * Definitions for the TCP protocol. * * V...
Linux işletim sistemi çekirdeği için 'tools/include/uapi/linux/tls' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR Linux-OpenIB) */ /* * Copyright (c) 2016-2017, Mellanox Technologies. All rights reserved. * * This software is available to you under a choice of one of two * licenses. You may choose to be licensed under the terms of the GNU * General Public...
Linux işletim sistemi çekirdeği için 'tools/include/uapi/linux/kvm' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ #ifndef __LINUX_KVM_H #define __LINUX_KVM_H /* * Userspace interface for /dev/kvm - kernel based virtual machine * * Note: you must update KVM_API_VERSION if you change this interface. */ #include <linux/const.h> #include <linux/types.h> #include...
Linux işletim sistemi çekirdeği için 'tools/include/uapi/linux/netfilter' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ #ifndef _UAPI__LINUX_NETFILTER_H #define _UAPI__LINUX_NETFILTER_H #include <linux/types.h> #include <linux/compiler.h> #include <linux/in.h> #include <linux/in6.h> /* Responses from hook functions. */ #define NF_DROP 0 #define NF_ACCEPT 1 #define NF_...
Linux işletim sistemi çekirdeği için 'tools/include/uapi/linux/bits' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ /* bits.h: Macros for dealing with bitmasks. */ #ifndef _UAPI_LINUX_BITS_H #define _UAPI_LINUX_BITS_H #define __GENMASK(h, l) (((~_UL(0)) << (l)) & (~_UL(0) >> (__BITS_PER_LONG - 1 - (h)))) #define __GENMASK_ULL(h, l) (((~_ULL(0)) << (l)) & (~_ULL(...
Linux işletim sistemi çekirdeği için 'tools/include/uapi/linux/prctl' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ #ifndef _LINUX_PRCTL_H #define _LINUX_PRCTL_H #include <linux/types.h> /* Values to pass as first argument to prctl() */ #define PR_SET_PDEATHSIG 1 /* Second arg is a signal */ #define PR_GET_PDEATHSIG 2 /* Second arg is a ptr to return the sign...
Linux işletim sistemi çekirdeği için 'tools/include/uapi/linux/rtnetlink' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ #ifndef _UAPI__LINUX_RTNETLINK_H #define _UAPI__LINUX_RTNETLINK_H #include <linux/types.h> #include <linux/netlink.h> #include <linux/if_link.h> #include <linux/if_addr.h> #include <linux/neighbour.h> /* rtnetlink families. Values up to 127 are reser...
Linux işletim sistemi çekirdeği için 'tools/include/uapi/linux/mount' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c #ifndef _UAPI_LINUX_MOUNT_H #define _UAPI_LINUX_MOUNT_H #include <linux/types.h> /* * These are the fs-independent mount-flags: up to 32 flags are supported * * Usage of these is restricted within the kernel to core mount(2) code and * callers of sys_mount() only. Filesystems should be using the SB_* * equ...
Linux işletim sistemi çekirdeği için 'tools/include/uapi/linux/filter' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ /* * Linux Socket Filter Data Structures */ #ifndef __LINUX_FILTER_H__ #define __LINUX_FILTER_H__ #include <linux/types.h> #include <linux/bpf_common.h> /* * Current version of the filter code architecture. */ #define BPF_MAJOR_VERSION 1 #defin...
Linux işletim sistemi çekirdeği için 'tools/include/uapi/linux/mman' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ #ifndef _UAPI_LINUX_MMAN_H #define _UAPI_LINUX_MMAN_H #include <asm/mman.h> #include <asm-generic/hugetlb_encode.h> #include <linux/types.h> #define MREMAP_MAYMOVE 1 #define MREMAP_FIXED 2 #define MREMAP_DONTUNMAP 4 #define OVERCOMMIT_GUESS 0 #de...
Linux işletim sistemi çekirdeği için 'tools/include/uapi/linux/bpf_perf_event' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ /* Copyright (c) 2016 Facebook * * This program is free software; you can redistribute it and/or * modify it under the terms of version 2 of the GNU General Public * License as published by the Free Software Foundation. */ #ifndef _UAPI__LINUX_BPF...
Linux işletim sistemi çekirdeği için 'tools/include/uapi/linux/fs' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ #ifndef _UAPI_LINUX_FS_H #define _UAPI_LINUX_FS_H /* * This file has definitions for some important file table structures * and constants and structures used by various generic file system * ioctl's. Please do not make any changes in this file bef...
Linux işletim sistemi çekirdeği için 'tools/include/uapi/linux/memfd' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ #ifndef _LINUX_MEMFD_H #define _LINUX_MEMFD_H #include <asm-generic/hugetlb_encode.h> /* flags for memfd_create(2) (unsigned int) */ #define MFD_CLOEXEC 0x0001U #define MFD_ALLOW_SEALING 0x0002U #define MFD_HUGETLB 0x0004U /* not executable and sea...
Linux işletim sistemi çekirdeği için 'tools/include/uapi/linux/module_signature' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0+ WITH Linux-syscall-note */ /* * Module signature handling. * * Copyright (C) 2012 Red Hat, Inc. All Rights Reserved. * Written by David Howells (dhowells@redhat.com) */ #ifndef _UAPI_LINUX_MODULE_SIGNATURE_H #define _UAPI_LINUX_MODULE_SIGNATURE_H #include <linux/types.h>...
Linux işletim sistemi çekirdeği için 'tools/include/uapi/linux/coredump' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ #ifndef _UAPI_LINUX_COREDUMP_H #define _UAPI_LINUX_COREDUMP_H #include <linux/types.h> /** * coredump_{req,ack} flags * @COREDUMP_KERNEL: kernel writes coredump * @COREDUMP_USERSPACE: userspace writes coredump * @COREDUMP_REJECT: don't generate ...
Linux işletim sistemi çekirdeği için 'tools/include/uapi/linux/types' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ #ifndef _UAPI_LINUX_TYPES_H #define _UAPI_LINUX_TYPES_H #include <asm-generic/int-ll64.h> #ifndef __ASSEMBLER__ /* copied from linux:include/uapi/linux/types.h */ #define __bitwise typedef __u16 __bitwise __le16; typedef __u16 __bitwise __be16; typedef __u32 __bitwise __le...
Linux işletim sistemi çekirdeği için 'tools/include/uapi/linux/if_addr' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ #ifndef _UAPI__LINUX_IF_ADDR_H #define _UAPI__LINUX_IF_ADDR_H #include <linux/types.h> #include <linux/netlink.h> struct ifaddrmsg { __u8 ifa_family; __u8 ifa_prefixlen; /* The prefix length */ __u8 ifa_flags; /* Flags */ __u8 ifa_scope; /...
Linux işletim sistemi çekirdeği için 'tools/include/uapi/linux/io_uring' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: (GPL-2.0 WITH Linux-syscall-note) OR MIT */ /* * Header file for the io_uring interface. * * Copyright (C) 2019 Jens Axboe * Copyright (C) 2019 Christoph Hellwig */ #ifndef LINUX_IO_URING_H #define LINUX_IO_URING_H #include <linux/fs.h> #include <linux/types.h> /* * this file is ...
Linux işletim sistemi çekirdeği için 'tools/include/uapi/linux/if_tun' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0+ WITH Linux-syscall-note */ /* * Universal TUN/TAP device driver. * Copyright (C) 1999-2000 Maxim Krasnyansky <max_mk@yahoo.com> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published ...
Linux işletim sistemi çekirdeği için 'tools/include/uapi/linux/if_xdp' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ /* * if_xdp: XDP socket user-space interface * Copyright(c) 2018 Intel Corporation. * * Author(s): Björn Töpel <bjorn.topel@intel.com> * Magnus Karlsson <magnus.karlsson@intel.com> */ #ifndef _UAPI_LINUX_IF_XDP_H #define _UAPI_LINUX_IF_XDP...
Linux işletim sistemi çekirdeği için 'tools/include/uapi/linux/neighbour' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ #ifndef _UAPI__LINUX_NEIGHBOUR_H #define _UAPI__LINUX_NEIGHBOUR_H #include <linux/types.h> #include <linux/netlink.h> struct ndmsg { __u8 ndm_family; __u8 ndm_pad1; __u16 ndm_pad2; __s32 ndm_ifindex; __u16 ndm_state; __u8 ndm_flags; __u8...
Linux işletim sistemi çekirdeği için 'tools/include/uapi/linux/perf_event' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ /* * Performance events: * * Copyright (C) 2008-2009, Linutronix GmbH, Thomas Gleixner <tglx@kernel.org> * Copyright (C) 2008-2011, Red Hat, Inc., Ingo Molnar * Copyright (C) 2008-2011, Red Hat, Inc., Peter Zijlstra * * Data type defini...
Linux işletim sistemi çekirdeği için 'tools/include/uapi/linux/fanotify' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ #ifndef _UAPI_LINUX_FANOTIFY_H #define _UAPI_LINUX_FANOTIFY_H #include <linux/types.h> /* the following events that user-space can register for */ #define FAN_ACCESS 0x00000001 /* File was accessed */ #define FAN_MODIFY 0x00000002 /* File was modif...
Linux işletim sistemi çekirdeği için 'tools/include/uapi/linux/userfaultfd' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ /* * include/linux/userfaultfd.h * * Copyright (C) 2007 Davide Libenzi <davidel@xmailserver.org> * Copyright (C) 2015 Red Hat, Inc. * */ #ifndef _LINUX_USERFAULTFD_H #define _LINUX_USERFAULTFD_H #include <linux/types.h> /* ioctls for /dev...
Linux işletim sistemi çekirdeği için 'tools/include/uapi/linux/in' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0+ WITH Linux-syscall-note */ /* * INET An implementation of the TCP/IP protocol suite for the LINUX * operating system. INET is implemented using the BSD Socket * interface as the means of communication with the user level. * * Definitions of the Internet Protocol. * ...
Linux işletim sistemi çekirdeği için 'tools/include/uapi/linux/if_link' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ #ifndef _UAPI_LINUX_IF_LINK_H #define _UAPI_LINUX_IF_LINK_H #include <linux/types.h> #include <linux/netlink.h> /* This struct should be in sync with struct rtnl_link_stats64 */ struct rtnl_link_stats { __u32 rx_packets; __u32 tx_packets; __u32 rx...
Linux işletim sistemi çekirdeği için 'tools/include/uapi/linux/bpf_common' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ #ifndef _UAPI__LINUX_BPF_COMMON_H__ #define _UAPI__LINUX_BPF_COMMON_H__ /* Instruction classes */ #define BPF_CLASS(code) ((code) & 0x07) #define BPF_LD 0x00 #define BPF_LDX 0x01 #define BPF_ST 0x02 #define BPF_STX 0x03 #define BPF_ALU 0x04 ...
Linux işletim sistemi çekirdeği için 'tools/include/uapi/linux/bpf' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ /* Copyright (c) 2011-2014 PLUMgrid, http://plumgrid.com * * This program is free software; you can redistribute it and/or * modify it under the terms of version 2 of the GNU General Public * License as published by the Free Software Foundation. *...
Linux işletim sistemi çekirdeği için 'tools/include/uapi/linux/netlink' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ #ifndef _UAPI__LINUX_NETLINK_H #define _UAPI__LINUX_NETLINK_H #include <linux/kernel.h> #include <linux/socket.h> /* for __kernel_sa_family_t */ #include <linux/types.h> #define NETLINK_ROUTE 0 /* Routing/device hook */ #define NETLINK_UNUSED 1 ...
Linux işletim sistemi çekirdeği için 'tools/include/uapi/linux/genetlink' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ #ifndef _UAPI__LINUX_GENERIC_NETLINK_H #define _UAPI__LINUX_GENERIC_NETLINK_H #include <linux/types.h> #include <linux/netlink.h> #define GENL_NAMSIZ 16 /* length of family name */ #define GENL_MIN_ID NLMSG_MIN_TYPE #define GENL_MAX_ID 1023 struct ...
Linux işletim sistemi çekirdeği için 'tools/include/uapi/linux/nsfs' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ #ifndef __LINUX_NSFS_H #define __LINUX_NSFS_H #include <linux/ioctl.h> #include <linux/types.h> #define NSIO 0xb7 /* Returns a file descriptor that refers to an owning user namespace */ #define NS_GET_USERNS _IO(NSIO, 0x1) /* Returns a file descrip...
Linux işletim sistemi çekirdeği için 'tools/include/uapi/linux/const' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ /* const.h: Macros for dealing with constants. */ #ifndef _UAPI_LINUX_CONST_H #define _UAPI_LINUX_CONST_H /* Some constant macros are used in both assembler and * C code. Therefore we cannot annotate them always with * 'UL' and other type specifi...
Linux işletim sistemi çekirdeği için 'tools/include/uapi/linux/seg6' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0+ WITH Linux-syscall-note */ /* * SR-IPv6 implementation * * Author: * David Lebrun <david.lebrun@uclouvain.be> * * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published ...
Linux işletim sistemi çekirdeği için 'tools/include/uapi/linux/netdev' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause) */ /* Do not edit directly, auto-generated from: */ /* Documentation/netlink/specs/netdev.yaml */ /* YNL-GEN uapi header */ /* To regenerate run: tools/net/ynl/ynl-regen.sh */ #ifndef _UAPI_LINUX_NETDEV_H #define _UAPI_LINUX_NETDEV_H ...
Linux işletim sistemi çekirdeği için 'tools/include/uapi/linux/pkt_sched' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ #ifndef __LINUX_PKT_SCHED_H #define __LINUX_PKT_SCHED_H #include <linux/types.h> /* Logical priority bands not depending on specific packet scheduler. Every scheduler will map them to real traffic classes, if it has no more precise mechanism to...
Linux işletim sistemi çekirdeği için 'tools/include/uapi/linux/hw_breakpoint' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ #ifndef _UAPI_LINUX_HW_BREAKPOINT_H #define _UAPI_LINUX_HW_BREAKPOINT_H enum { HW_BREAKPOINT_LEN_1 = 1, HW_BREAKPOINT_LEN_2 = 2, HW_BREAKPOINT_LEN_3 = 3, HW_BREAKPOINT_LEN_4 = 4, HW_BREAKPOINT_LEN_5 = 5, HW_BREAKPOINT_LEN_6 = 6, HW_BREAKPOINT_L...
Linux işletim sistemi çekirdeği için 'tools/include/uapi/linux/tc_act/tc_bpf' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0+ WITH Linux-syscall-note */ /* * Copyright (c) 2015 Jiri Pirko <jiri@resnulli.us> */ #ifndef __LINUX_TC_BPF_H #define __LINUX_TC_BPF_H #include <linux/pkt_cls.h> struct tc_act_bpf { tc_gen; }; enum { TCA_ACT_BPF_UNSPEC, TCA_ACT_BPF_TM, TCA_ACT_BPF_PARMS, TCA_ACT_BPF_O...
Linux işletim sistemi çekirdeği için 'tools/include/uapi/asm/errno' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ #if defined(__i386__) || defined(__x86_64__) #include "../../../arch/x86/include/uapi/asm/errno.h" #elif defined(__powerpc__) #include "../../../arch/powerpc/include/uapi/asm/errno.h" #elif defined(__sparc__) #include "../../../arch/sparc/include/uapi/asm/errno.h" #elif defin...
Linux işletim sistemi çekirdeği için 'tools/include/uapi/asm/bpf_perf_event' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c #if defined(__aarch64__) #include "../../arch/arm64/include/uapi/asm/bpf_perf_event.h" #elif defined(__arc__) #include "../../arch/arc/include/uapi/asm/bpf_perf_event.h" #elif defined(__s390__) #include "../../arch/s390/include/uapi/asm/bpf_perf_event.h" #elif defined(__riscv) #include "../../arch/riscv/include/ua...
Linux işletim sistemi çekirdeği için 'tools/include/uapi/asm/bitsperlong' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ #if defined(__i386__) || defined(__x86_64__) #include "../../../arch/x86/include/uapi/asm/bitsperlong.h" #elif defined(__powerpc__) #include "../../../arch/powerpc/include/uapi/asm/bitsperlong.h" #elif defined(__s390__) #include "../../../arch/s390/include/uapi/asm/bitsperlon...
Linux işletim sistemi çekirdeği için 'tools/include/uapi/asm-generic/errno' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ #ifndef _ASM_GENERIC_ERRNO_H #define _ASM_GENERIC_ERRNO_H #include <asm-generic/errno-base.h> #define EDEADLK 35 /* Resource deadlock would occur */ #define ENAMETOOLONG 36 /* File name too long */ #define ENOLCK 37 /* No record locks available */ ...
Linux işletim sistemi çekirdeği için 'tools/include/uapi/asm-generic/mman-common' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ #ifndef __ASM_GENERIC_MMAN_COMMON_H #define __ASM_GENERIC_MMAN_COMMON_H /* Author: Michael S. Tsirkin <mst@mellanox.co.il>, Mellanox Technologies Ltd. Based on: asm-xxx/mman.h */ #define PROT_READ 0x1 /* page can be read */ #define PROT_WRITE 0x2 ...
Linux işletim sistemi çekirdeği için 'tools/include/uapi/asm-generic/errno-base' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ #ifndef _ASM_GENERIC_ERRNO_BASE_H #define _ASM_GENERIC_ERRNO_BASE_H #define EPERM 1 /* Operation not permitted */ #define ENOENT 2 /* No such file or directory */ #define ESRCH 3 /* No such process */ #define EINTR 4 /* Interrupted system call...
Linux işletim sistemi çekirdeği için 'tools/include/uapi/asm-generic/socket' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ #ifndef __ASM_GENERIC_SOCKET_H #define __ASM_GENERIC_SOCKET_H #include <linux/posix_types.h> #include <asm/sockios.h> /* For setsockopt(2) */ #define SOL_SOCKET 1 #define SO_DEBUG 1 #define SO_REUSEADDR 2 #define SO_TYPE 3 #define SO_ERROR 4 #defin...
Linux işletim sistemi çekirdeği için 'tools/include/uapi/asm-generic/ioctls' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ #ifndef __ASM_GENERIC_IOCTLS_H #define __ASM_GENERIC_IOCTLS_H #include <linux/ioctl.h> /* * These are the most common definitions for tty ioctl numbers. * Most of them do not use the recommended _IOC(), but there is * probably some source code out...
Linux işletim sistemi çekirdeği için 'tools/include/uapi/asm-generic/mman-common-tools' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ #ifndef __ASM_GENERIC_MMAN_COMMON_TOOLS_ONLY_H #define __ASM_GENERIC_MMAN_COMMON_TOOLS_ONLY_H #include <asm-generic/mman-common.h> /* We need this because we need to have tools/include/uapi/ included in the tools * header search path to get access t...
Linux işletim sistemi çekirdeği için 'tools/include/uapi/asm-generic/mman' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ #ifndef __ASM_GENERIC_MMAN_H #define __ASM_GENERIC_MMAN_H #include <asm-generic/mman-common-tools.h> #define MAP_GROWSDOWN 0x0100 /* stack-like segment */ #define MAP_DENYWRITE 0x0800 /* ETXTBSY */ #define MAP_EXECUTABLE 0x1000 /* mark it as an ex...
Linux işletim sistemi çekirdeği için 'tools/include/uapi/asm-generic/bpf_perf_event' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c #ifndef _UAPI__ASM_GENERIC_BPF_PERF_EVENT_H__ #define _UAPI__ASM_GENERIC_BPF_PERF_EVENT_H__ #include <linux/ptrace.h> /* Export kernel pt_regs structure */ typedef struct pt_regs bpf_user_pt_regs_t; #endif /* _UAPI__ASM_GENERIC_BPF_PERF_EVENT_H__ */ ```
Linux işletim sistemi çekirdeği için 'tools/include/uapi/asm-generic/bitsperlong' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ #ifndef _UAPI__ASM_GENERIC_BITS_PER_LONG #define _UAPI__ASM_GENERIC_BITS_PER_LONG #ifndef __BITS_PER_LONG /* * In order to keep safe and avoid regression, only unify uapi * bitsperlong.h for some archs which are using newer toolchains * that have t...
Linux işletim sistemi çekirdeği için 'tools/include/uapi/asm-generic/unistd' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ #include <asm/bitsperlong.h> /* * This file contains the system call numbers, based on the * layout of the x86-64 architecture, which embeds the * pointer to the syscall in the table. * * As a basic principle, no duplication of functionality * s...
Linux işletim sistemi çekirdeği için 'tools/include/nolibc/std' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: LGPL-2.1 OR MIT */ /* * Standard definitions and types for NOLIBC * Copyright (C) 2017-2021 Willy Tarreau <w@1wt.eu> */ #ifndef _NOLIBC_STD_H #define _NOLIBC_STD_H /* Declare a few quite common macros and types that usually are in stdlib.h, * stdint.h, ctype.h, unistd.h and a few ...
Linux işletim sistemi çekirdeği için 'tools/include/nolibc/elf' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: LGPL-2.1 OR MIT */ /* * Shim elf.h header for NOLIBC. * Copyright (C) 2025 Thomas Weißschuh <thomas.weissschuh@linutronix.de> */ /* make sure to include all global symbols */ #include "nolibc.h" #ifndef _NOLIBC_SYS_ELF_H #define _NOLIBC_SYS_ELF_H #include <linux/elf.h> #endif /* ...
Linux işletim sistemi çekirdeği için 'tools/include/nolibc/arch-sparc' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: LGPL-2.1 OR MIT */ /* * SPARC (32bit and 64bit) specific definitions for NOLIBC * Copyright (C) 2025 Thomas Weißschuh <linux@weissschuh.net> */ #ifndef _NOLIBC_ARCH_SPARC_H #define _NOLIBC_ARCH_SPARC_H #include <linux/unistd.h> #include "compiler.h" #include "crt.h" /* * Syscall...
Linux işletim sistemi çekirdeği için 'tools/include/nolibc/stddef' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: LGPL-2.1 OR MIT */ /* * Stddef definitions for NOLIBC * Copyright (C) 2017-2021 Willy Tarreau <w@1wt.eu> */ /* make sure to include all global symbols */ #include "nolibc.h" #ifndef _NOLIBC_STDDEF_H #define _NOLIBC_STDDEF_H #include "stdint.h" /* note: may already be defined */ #...
Linux işletim sistemi çekirdeği için 'tools/include/nolibc/errno' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: LGPL-2.1 OR MIT */ /* * Minimal errno definitions for NOLIBC * Copyright (C) 2017-2022 Willy Tarreau <w@1wt.eu> */ /* make sure to include all global symbols */ #include "nolibc.h" #ifndef _NOLIBC_ERRNO_H #define _NOLIBC_ERRNO_H #include <linux/errno.h> #ifndef NOLIBC_IGNORE_ERRN...
Linux işletim sistemi çekirdeği için 'tools/include/nolibc/signal' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: LGPL-2.1 OR MIT */ /* * signal function definitions for NOLIBC * Copyright (C) 2017-2022 Willy Tarreau <w@1wt.eu> */ /* make sure to include all global symbols */ #include "nolibc.h" #ifndef _NOLIBC_SIGNAL_H #define _NOLIBC_SIGNAL_H #include "std.h" #include "arch.h" #include "typ...
Linux işletim sistemi çekirdeği için 'tools/include/nolibc/arch' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: LGPL-2.1 OR MIT */ /* * Copyright (C) 2017-2022 Willy Tarreau <w@1wt.eu> */ #ifndef _NOLIBC_ARCH_H #define _NOLIBC_ARCH_H #if defined(__x86_64__) || defined(__i386__) || defined(__i486__) || defined(__i586__) || defined(__i686__) #include "arch-x86.h" #elif defined(__ARM_EABI__) #in...
Linux işletim sistemi çekirdeği için 'tools/include/nolibc/dirent' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: LGPL-2.1 OR MIT */ /* * Directory access for NOLIBC * Copyright (C) 2025 Thomas Weißschuh <linux@weissschuh.net> */ /* make sure to include all global symbols */ #include "nolibc.h" #ifndef _NOLIBC_DIRENT_H #define _NOLIBC_DIRENT_H #include "compiler.h" #include "stdint.h" #includ...
Linux işletim sistemi çekirdeği için 'tools/include/nolibc/arch-powerpc' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: LGPL-2.1 OR MIT */ /* * PowerPC specific definitions for NOLIBC * Copyright (C) 2023 Zhangjin Wu <falcon@tinylab.org> */ #ifndef _NOLIBC_ARCH_POWERPC_H #define _NOLIBC_ARCH_POWERPC_H #include "compiler.h" #include "crt.h" /* Syscalls for PowerPC : * - stack is 16-byte aligned ...
Linux işletim sistemi çekirdeği için 'tools/include/nolibc/stackprotector' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: LGPL-2.1 OR MIT */ /* * Stack protector support for NOLIBC * Copyright (C) 2023 Thomas Weißschuh <linux@weissschuh.net> */ #ifndef _NOLIBC_STACKPROTECTOR_H #define _NOLIBC_STACKPROTECTOR_H #include "compiler.h" #ifndef NOLIBC_NO_RUNTIME #if defined(_NOLIBC_STACKPROTECTOR) #includ...
Linux işletim sistemi çekirdeği için 'tools/include/nolibc/sys' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: LGPL-2.1 OR MIT */ /* * Syscall definitions for NOLIBC (those in man(2)) * Copyright (C) 2017-2021 Willy Tarreau <w@1wt.eu> */ /* make sure to include all global symbols */ #include "nolibc.h" #ifndef _NOLIBC_SYS_H #define _NOLIBC_SYS_H #include "std.h" /* system includes */ #inc...
Linux işletim sistemi çekirdeği için 'tools/include/nolibc/stdarg' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: LGPL-2.1 OR MIT */ /* * Variadic argument support for NOLIBC * Copyright (C) 2005-2020 Rich Felker, et al. */ #ifndef _NOLIBC_STDARG_H #define _NOLIBC_STDARG_H typedef __builtin_va_list va_list; #define va_start(v, l) __builtin_va_start(v, l) #define va_end(v) __builtin_va...
Linux işletim sistemi çekirdeği için 'tools/include/nolibc/time' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: LGPL-2.1 OR MIT */ /* * time function definitions for NOLIBC * Copyright (C) 2017-2022 Willy Tarreau <w@1wt.eu> */ /* make sure to include all global symbols */ #include "nolibc.h" #ifndef _NOLIBC_TIME_H #define _NOLIBC_TIME_H #include "std.h" #include "arch.h" #include "types.h" ...
Linux işletim sistemi çekirdeği için 'tools/include/nolibc/fcntl' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: LGPL-2.1 OR MIT */ /* * fcntl definition for NOLIBC * Copyright (C) 2017-2021 Willy Tarreau <w@1wt.eu> */ /* make sure to include all global symbols */ #include "nolibc.h" #ifndef _NOLIBC_FCNTL_H #define _NOLIBC_FCNTL_H #include "arch.h" #include "types.h" #include "sys.h" /* * ...
Linux işletim sistemi çekirdeği için 'tools/include/nolibc/getopt' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: LGPL-2.1 OR MIT */ /* * getopt function definitions for NOLIBC, adapted from musl libc * Copyright (C) 2005-2020 Rich Felker, et al. * Copyright (C) 2025 Thomas Weißschuh <linux@weissschuh.net> */ /* make sure to include all global symbols */ #include "nolibc.h" #ifndef _NOLIBC_GE...
Linux işletim sistemi çekirdeği için 'tools/include/nolibc/arch-sh' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: LGPL-2.1 OR MIT */ /* * SuperH specific definitions for NOLIBC * Copyright (C) 2025 Thomas Weißschuh <linux@weissschuh.net> */ #ifndef _NOLIBC_ARCH_SH_H #define _NOLIBC_ARCH_SH_H #include "compiler.h" #include "crt.h" /* * Syscalls for SuperH: * - registers are 32bit wide * ...