Skip to content

Commit

Permalink
finished rest of .yaml files for testing
Browse files Browse the repository at this point in the history
- only math.yaml left
  • Loading branch information
aaryanshukla committed Jul 8, 2024
1 parent d632f1c commit d359788
Show file tree
Hide file tree
Showing 6 changed files with 42 additions and 40 deletions.
7 changes: 3 additions & 4 deletions libc/newhdrgen/yaml/sys_mman.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
header: sys-mman.h
standards: POSIX
macros: []
types:
- type_name: mode_t
Expand Down Expand Up @@ -42,15 +41,14 @@ functions:
arguments:
- type: void *
- type: size_t
- name: POSIX_madvise
- name: posix_madvise
standards:
- POSIX
return_type: int
arguments:
- type: void *
- type: size_t
- type: int
# this is a linux function
- name: mincore
standards:
- Linux
Expand Down Expand Up @@ -90,7 +88,8 @@ functions:
standards:
- POSIX
return_type: int
arguments: []
arguments:
- type: void
- name: msync
standards:
- POSIX
Expand Down
7 changes: 7 additions & 0 deletions libc/newhdrgen/yaml/sys_syscall.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
header: sys-syscall.h
standards: Linux
macros: []
types: []
enums: []
functions: []
objects: []
1 change: 1 addition & 0 deletions libc/newhdrgen/yaml/sys_types.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ types:
- type_name: uid_t
- type_name: time_t
- type_name: pthread_t
- type_name: pthread_rwlock_t
- type_name: pthread_rwlockattr_t
- type_name: pthread_mutex_t
- type_name: blkcnt_t
Expand Down
13 changes: 13 additions & 0 deletions libc/newhdrgen/yaml/threads.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -146,3 +146,16 @@ functions:
return_type: int
arguments:
- type: tss_t
- name: tss_get
standards:
- stdc
return_type: void *
arguments:
- type: tss_t
- name: tss_set
standards:
- stdc
return_type: int
arguments:
- type: tss_t
- type: void *
3 changes: 2 additions & 1 deletion libc/newhdrgen/yaml/time.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@ functions:
standard:
- stdc
return_type: clock_t
arguments: []
arguments:
- type: void
- name: difftime
standard:
- stdc
Expand Down
51 changes: 16 additions & 35 deletions libc/newhdrgen/yaml/unistd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -100,22 +100,26 @@ functions:
standards:
- POSIX
return_type: uid_t
arguments: []
arguments:
- type: void
- name: getpid
standards:
- POSIX
return_type: int
arguments: []
arguments:
- type: void
- name: getppid
standards:
- POSIX
return_type: int
arguments: []
arguments:
- type: void
- name: getuid
standards:
- POSIX
return_type: uid_t
arguments: []
arguments:
- type: void
- name: isatty
standards:
- POSIX
Expand Down Expand Up @@ -186,16 +190,16 @@ functions:
- POSIX
return_type: ssize_t
arguments:
- type: const char * __restrict
- type: char * __restrict
- type: const char *__restrict
- type: char *__restrict
- type: size_t
- name: readlinkat
standards:
- POSIX
return_type: ssize_t
arguments:
- type: const char * __restrict
- type: char * __restrict
- type: const char *__restrict
- type: char *__restrict
- type: size_t
- name: rmdir
standards:
Expand Down Expand Up @@ -273,7 +277,8 @@ functions:
standards:
- POSIX
return_type: pid_t
arguments: []
arguments:
- type: void
- name: __llvm_libc_syscall
standards:
- POSIX
Expand All @@ -299,31 +304,7 @@ functions:
- POSIX
return_type: void
arguments:
- type: const void * __restrict
- type: const void *__restrict
- type: void *
- type: ssize_t
- name: enivron
standards:
- POSIX
return_type: extern char **
arguments: []
- name: optarg
standards:
- POSIX
return_type: extern char *
arguments: []
- name: optind
standards:
- POSIX
return_type: extern int
arguments: []
- name: optopt
standards:
- POSIX
return_type: extern int
arguments: []
- name: opterr
standards:
- POSIX
return_type: extern int
arguments: []

0 comments on commit d359788

Please sign in to comment.