Files
RedBear-OS/local/recipes/dev/libclc/source/libc/include/sched.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

90 lines
1.8 KiB
YAML

header: sched.h
header_template: sched.h.def
macros: []
types:
- type_name: struct_timespec
- type_name: time_t
- type_name: struct_sched_param
- type_name: size_t
- type_name: cpu_set_t
- type_name: pid_t
enums: []
objects: []
functions:
- name: __sched_getcpucount
standards:
- llvm_libc_ext
return_type: int
arguments:
- type: size_t
- type: const cpu_set_t *
- name: sched_get_priority_max
standards:
- POSIX
return_type: int
arguments:
- type: int
- name: sched_get_priority_min
standards:
- POSIX
return_type: int
arguments:
- type: int
- name: sched_getaffinity
standards:
- GNUExtensions
return_type: int
arguments:
- type: pid_t
- type: size_t
- type: cpu_set_t *
- name: sched_getparam
standards:
- POSIX
return_type: int
arguments:
- type: pid_t
- type: struct sched_param *
- name: sched_getscheduler
standards:
- POSIX
return_type: int
arguments:
- type: pid_t
- type: int
- type: const struct sched_param *
- name: sched_rr_get_interval
standards:
- POSIX
return_type: int
arguments:
- type: pid_t
- type: struct timespec *
- name: sched_setaffinity
standards:
- GNUExtensions
return_type: int
arguments:
- type: pid_t
- type: size_t
- type: const cpu_set_t *
- name: sched_setparam
standards:
- POSIX
return_type: int
arguments:
- type: pid_t
- type: const struct sched_param *
- name: sched_setscheduler
standards:
- POSIX
return_type: int
arguments:
- type: pid_t
- name: sched_yield
standards:
- POSIX
return_type: int
arguments:
- type: void