aboutsummaryrefslogtreecommitdiff
path: root/libc/include
diff options
context:
space:
mode:
Diffstat (limited to 'libc/include')
-rw-r--r--libc/include/CMakeLists.txt3
-rw-r--r--libc/include/llvm-libc-macros/netinet-in-macros.h8
-rw-r--r--libc/include/stdio.yaml14
3 files changed, 24 insertions, 1 deletions
diff --git a/libc/include/CMakeLists.txt b/libc/include/CMakeLists.txt
index afa90e6..81360aa 100644
--- a/libc/include/CMakeLists.txt
+++ b/libc/include/CMakeLists.txt
@@ -632,8 +632,9 @@ add_header_macro(
sys/time.h
DEPENDS
.llvm_libc_common_h
- .llvm-libc-types.struct_timeval
.llvm-libc-macros.sys_time_macros
+ .llvm-libc-types.struct_itimerval
+ .llvm-libc-types.struct_timeval
)
add_header_macro(
diff --git a/libc/include/llvm-libc-macros/netinet-in-macros.h b/libc/include/llvm-libc-macros/netinet-in-macros.h
index c05e5e2..fb7564ce 100644
--- a/libc/include/llvm-libc-macros/netinet-in-macros.h
+++ b/libc/include/llvm-libc-macros/netinet-in-macros.h
@@ -16,4 +16,12 @@
#define IPPROTO_IPV6 41
#define IPPROTO_RAW 255
+#define IPV6_UNICAST_HOPS 16
+#define IPV6_MULTICAST_IF 17
+#define IPV6_MULTICAST_HOPS 18
+#define IPV6_MULTICAST_LOOP 19
+#define IPV6_JOIN_GROUP 20
+#define IPV6_LEAVE_GROUP 21
+#define IPV6_V6ONLY 26
+
#endif // LLVM_LIBC_MACROS_NETINET_IN_MACROS_H
diff --git a/libc/include/stdio.yaml b/libc/include/stdio.yaml
index 2a0c563..394437b 100644
--- a/libc/include/stdio.yaml
+++ b/libc/include/stdio.yaml
@@ -197,12 +197,26 @@ functions:
- type: FILE *
- type: long
- type: int
+ - name: fseeko
+ standards:
+ - POSIX
+ return_type: int
+ arguments:
+ - type: FILE *
+ - type: off_t
+ - type: int
- name: ftell
standards:
- stdc
return_type: long
arguments:
- type: FILE *
+ - name: ftello
+ standards:
+ - POSIX
+ return_type: off_t
+ arguments:
+ - type: FILE *
- name: funlockfile
standards:
- POSIX