ref: 64ffaa9478079576c0b5be8ab133cd013512588b
parent: fadbab49dc34508f835d31aaaa86135e51b3154e
author: grobe0ba <grobe0ba@tcp80.org>
date: Mon Oct 16 16:52:35 CDT 2023
remove old build files
--- a/filter.awk
+++ /dev/null
@@ -1,56 +1,0 @@
-#!/home/grobe0ba/opt/x86_64/bin/awk -f
-
-BEGIN { print "use rt;" }
-
-/^$/ { print; next }
-
-{
- rettype=""
- fn=""
- start=3
- noret=0
- nullable=0
- if($1 != "noret"){
- rettype=$1
- fn=$2
- }
- if($1 == "noret"){
- start=4
- rettype=$2
- fn=$3
- noret=1
- }
- if($1 == "nullable"){
- start=4
- rettype=$2
- fn=$3
- nullable=1
- }
- printf "export @symbol(\"pthread_%s\") ", fn
- if(noret == 1){
- printf "@noreturn "
- }
- printf "fn %s(", fn
- for(i = start; i <= NF; i++){
- printf "_: "
- if($i == "const"){
- i++
- printf "const "
- }
-
- if($i == "nullable"){
- i++
- printf "nullable "
- }
-
- printf "%s", $i
- if(i < NF){
- printf ", "
- }
- }
- printf ") "
- if(nullable == 1){
- printf "nullable "
- }
- printf "%s;\n", rettype
-}
--- a/fix.awk
+++ /dev/null
@@ -1,14 +1,0 @@
-#!/home/grobe0ba/opt/x86_64/bin/awk -f
-
-/^export (fn|@noreturn) (.*)\(/ {
- if ($3 == "fn") {
- split($4, line, "(")
- } else {
- split($3, line, "(")
- }
- fname=line[1]
- print "@symbol(\"pthread_" fname "\") " $0
- next
-}
-
-{ print }
--- a/fns
+++ /dev/null
@@ -1,118 +1,0 @@
-int atfork pthreadfn pthreadfn pthreadfn
-
-int attr_destroy *attr_t
-int attr_getstack *attr_t nullable **void *u64
-int attr_getstacksize const *attr_t *u64
-int attr_getstackaddr const *attr_t *u64
-int attr_getguardsize const *attr_t *u64
-int attr_getdetachstate const *attr_t *int
-int attr_init *attr_t
-int attr_setstacksize *attr_t u64
-int attr_setstack *attr_t nullable *void *u64
-int attr_setstackaddr *attr_t nullable *void
-int attr_setguardsize *attr_t u64
-int attr_setdetachstate *attr_t int
-
-void cleanup_pop int
-void cleanup_push pthreadfn nullable *void
-
-int condattr_destroy *condattr_t
-int condattr_init *condattr_t
-
-int cond_broadcast *cond_t
-int cond_destroy *cond_t
-int cond_init *cond_t const *condattr_t
-int cond_signal *cond_t
-int cond_timedwait *cond_t *mutex_t const *rt::timespec
-int cond_wait *cond_t *mutex_t
-
-int create *pthread_t const *attr_t pthreadfn nullable *void
-int detach pthread_t
-int equal pthread_t pthread_t
-noret void exit nullable *void
-nullable *void getspecific key_t
-int join pthread_t nullable **void
-
-int key_create *key_t pthreadfn
-int key_delete key_t
-
-int kill pthread_t int
-
-int mutexattr_init *mutexattr_t
-int mutexattr_destroy *mutexattr_t
-int mutexattr_gettype *mutexattr_t *int
-int mutexattr_settype *mutexattr_t int
-
-int mutex_destroy *mutex_t
-int mutex_init *mutex_t const *mutexattr_t
-int mutex_lock *mutex_t
-int mutex_timedlock *mutex_t const *rt::timespec
-int mutex_trylock *mutex_t
-int mutex_unlock *mutex_t
-
-int once *once_t pthreadfn
-
-int rwlock_destroy *rwlock_t
-int rwlock_init *rwlock_t const *rwlockattr_t
-int rwlock_rdlock *rwlock_t
-int rwlock_timedrdlock *rwlock_t const *rt::timespec
-int rwlock_timedwrlock *rwlock_t const *rt::timespec
-int rwlock_tryrdlock *rwlock_t
-int rwlock_trywrlock *rwlock_t
-int rwlock_unlock *rwlock_t
-int rwlock_wrlock *rwlock_t
-int rwlockattr_init *rwlockattr_t
-int rwlockattr_getpshared *rwlockattr_t *int
-int rwlockattr_setpshared *rwlockattr_t *int
-int rwlockattr_destroy *rwlockattr_t
-
-pthread_t self
-int setspecific key_t nullable *void
-int cancel pthread_t
-int setcancelstate int *int
-int setcanceltype int *int
-void testcancel
-int getprio pthread_t
-int setprio pthread_t int
-
-void pyield
-
-int mutexattr_getprioceiling *mutexattr_t *int
-int mutexattr_setprioceiling *mutexattr_t int
-
-int mutex_getprioceiling *mutex_t *int
-int mutex_setprioceiling *mutex_t int *int
-
-int mutexattr_getprotocol *mutexattr_t *int
-int mutexattr_setprotocol *mutexattr_t int
-
-int condattr_getclock *condattr_t *clockid_t
-int condattr_setclock *condattr_t clockid_t
-
-int attr_getinheritsched *attr_t *int
-int attr_getschedparam *attr_t *sched_param
-int attr_getschedpolicy *attr_t *int
-int attr_getscope *attr_t *int
-int attr_setinheritsched *attr_t int
-int attr_setschedparam *attr_t *sched_param
-int attr_setschedpolicy *attr_t int
-int attr_setscope *attr_t int
-
-int getschedparam *attr_t *int *sched_param
-int setschedparam *attr_t int *sched_param
-int getconcurrency
-int setconcurrency int
-
-int barrier_init *barrier_t *barrierattr_t uint
-int barrier_destroy *barrier_t
-int barrier_wait *barrier_t
-int barrierattr_init *barrierattr_t
-int barrierattr_destroy *barrierattr_t
-int barrierattr_getpshared *barrierattr_t *int
-int barrierattr_setpshared *barrierattr_t int
-
-int spin_init *spinlock_t int
-int spin_destroy *spinlock_t
-int spin_trylock *spinlock_t
-int spin_lock *spinlock_t
-int spin_unlock *spinlock_t