cb424d7448
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).
90 lines
1.9 KiB
YAML
90 lines
1.9 KiB
YAML
header: signal.h
|
|
header_template: signal.h.def
|
|
macros: []
|
|
types:
|
|
- type_name: pid_t
|
|
- type_name: sig_atomic_t
|
|
- type_name: sighandler_t
|
|
- type_name: siginfo_t
|
|
- type_name: sigset_t
|
|
- type_name: stack_t
|
|
- type_name: struct_sigaction
|
|
- type_name: union_sigval
|
|
enums: []
|
|
objects: []
|
|
functions:
|
|
- name: kill
|
|
standards:
|
|
- POSIX
|
|
return_type: int
|
|
arguments:
|
|
- type: pid_t
|
|
- type: int
|
|
- name: raise
|
|
standards:
|
|
- stdc
|
|
return_type: int
|
|
arguments:
|
|
- type: int
|
|
- name: sigaction
|
|
standards:
|
|
- POSIX
|
|
return_type: int
|
|
arguments:
|
|
- type: int
|
|
- type: const struct sigaction *__restrict
|
|
- type: struct sigaction *__restrict
|
|
- name: sigaddset
|
|
standards:
|
|
- POSIX
|
|
return_type: int
|
|
arguments:
|
|
- type: sigset_t *
|
|
- type: int
|
|
- name: sigaltstack
|
|
standards:
|
|
- POSIX
|
|
return_type: int
|
|
arguments:
|
|
- type: const stack_t *__restrict
|
|
- type: stack_t *__restrict
|
|
- name: sigdelset
|
|
standards:
|
|
- POSIX
|
|
return_type: int
|
|
arguments:
|
|
- type: sigset_t *
|
|
- type: int
|
|
- name: sigemptyset
|
|
standards:
|
|
- POSIX
|
|
return_type: int
|
|
arguments:
|
|
- type: sigset_t *
|
|
- name: sigfillset
|
|
standards:
|
|
- POSIX
|
|
return_type: int
|
|
arguments:
|
|
- type: sigset_t *
|
|
- name: signal
|
|
standards:
|
|
- stdc
|
|
# May the Geneva Convention have mercy on my soul... Why this insanity?
|
|
# Well: signal returns a function pointer to a function with no return
|
|
# value and which accepts an int. The parameter list appears on the far
|
|
# right of the declaration. i.e.
|
|
# void (*signal(int, void (*)(int)))(int);
|
|
return_type: void (*
|
|
arguments:
|
|
- type: int
|
|
- type: void (*)(int)))(int
|
|
- name: sigprocmask
|
|
standards:
|
|
- POSIX
|
|
return_type: int
|
|
arguments:
|
|
- type: int
|
|
- type: const sigset_t *__restrict
|
|
- type: sigset_t *__restrict
|