Files
RedBear-OS/local/recipes/dev/libclc/source/libc/include/threads.yaml
T
vasilito cb424d7448 build: static patch-sanity linter (shift-left the malformed-patch class)
verify-patch-sanity.py validates every active recipe .patch has internally-
consistent hunk line counts — catching the 'malformed patch at line N' failure
at commit/CI/preflight time instead of hours into a cook. This cycle hit that
class three times (qtwaylandscanner, sddm, xwayland), each only discovered when
cookbook tried to apply the patch.

Running it across the repo found 29 latent malformed patches (validated against
GNU patch: e.g. relibc/P3-sysv-ipc reproduces 'malformed patch at line 22').
They were harmless only because they sit in vendored recipes (baked, not re-
applied) — but would fail on any version-bump re-derivation. --fix recounts the
hunk headers (body untouched) and repaired all 29.

Wired into build-preflight.sh (Phase 1.0D) and redbear-ci.yml, with a unit test
(test-patch-sanity.sh). Skips archived/legacy trees and unvalidatable formats
(empty placeholders, bare-@@ git hunks).
2026-08-01 05:13:02 +03:00

163 lines
2.9 KiB
YAML

header: threads.h
header_template: threads.h.def
macros:
- macro_name: ONCE_FLAG_INIT
macro_value: '{0}'
types:
- type_name: once_flag
- type_name: __call_once_func_t
- type_name: cnd_t
- type_name: mtx_t
- type_name: thrd_start_t
- type_name: thrd_t
- type_name: tss_t
- type_name: tss_dtor_t
enums:
- name: mtx_plain
value: null
- name: mtx_recursive
value: null
- name: mtx_timed
value: null
- name: thrd_timedout
value: null
- name: thrd_success
value: null
- name: thrd_busy
value: null
- name: thrd_error
value: null
- name: thrd_nomem
value: null
objects: []
functions:
- name: call_once
standards:
- stdc
return_type: void
arguments:
- type: once_flag *
- type: __call_once_func_t
- name: cnd_broadcast
standards:
- stdc
return_type: int
arguments:
- type: cnd_t *
- name: cnd_destroy
standards:
- stdc
return_type: void
arguments:
- type: cnd_t *
- name: cnd_init
standards:
- stdc
return_type: int
arguments:
- type: cnd_t *
- name: cnd_signal
standards:
- stdc
return_type: int
arguments:
- type: cnd_t *
- name: cnd_wait
standards:
- stdc
return_type: int
arguments:
- type: cnd_t *
- type: mtx_t *
- name: mtx_destroy
standards:
- stdc
return_type: int
arguments:
- type: void
- name: mtx_init
standards:
- stdc
return_type: int
arguments:
- type: mtx_t *
- type: int
- name: mtx_lock
standards:
- stdc
return_type: int
arguments:
- type: mtx_t *
- name: mtx_unlock
standards:
- stdc
return_type: int
arguments:
- type: mtx_t *
- name: thrd_create
standards:
- stdc
return_type: int
arguments:
- type: thrd_t *
- type: thrd_start_t
- type: void *
- name: thrd_current
standards:
- stdc
return_type: thrd_t
arguments:
- type: void
- name: thrd_detach
standards:
- stdc
return_type: int
arguments:
- type: thrd_t
- name: thrd_equal
standards:
- stdc
return_type: int
arguments:
- type: thrd_t
- type: thrd_t
- name: thrd_exit
standards:
- stdc
return_type: void
arguments:
- type: int
- name: thrd_join
standards:
- stdc
return_type: int
arguments:
- type: thrd_t
- type: int *
- name: tss_create
standards:
- stdc
return_type: int
arguments:
- type: tss_t *
- type: tss_dtor_t
- name: tss_delete
standards:
- stdc
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 *