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

129 lines
2.5 KiB
YAML

header: time.h
header_template: time.h.def
macros:
- macro_name: NULL
macro_header: null-macro.h
types:
- type_name: struct_timeval
- type_name: clockid_t
- type_name: struct_timespec
- type_name: struct_tm
- type_name: time_t
- type_name: clock_t
- type_name: size_t
- type_name: locale_t
enums: []
objects: []
functions:
- name: asctime
standard:
- stdc
return_type: char *
arguments:
- type: const struct tm *
- name: asctime_r
standard:
- stdc
return_type: char *
arguments:
- type: struct tm *
- type: char *
- name: ctime
standard:
- stdc
return_type: char *
arguments:
- type: const time_t *
- name: ctime_r
standard:
- stdc
return_type: char *
arguments:
- type: const time_t *
- type: char *
- name: clock
standard:
- stdc
return_type: clock_t
arguments:
- type: void
- name: clock_gettime
standard:
- POSIX
return_type: int
arguments:
- type: clockid_t
- type: struct timespec *
- name: difftime
standard:
- stdc
return_type: double
arguments:
- type: time_t
- type: time_t
- name: gettimeofday
standard:
- POSIX
return_type: int
arguments:
- type: struct timeval *
- type: void *
- name: gmtime
standard:
- stdc
return_type: struct tm *
arguments:
- type: time_t *
- name: gmtime_r
standard:
- stdc
return_type: struct tm *
arguments:
- type: time_t *
- type: struct tm *
- name: mktime
standard:
- stdc
return_type: time_t
arguments:
- type: struct tm *
- name: nanosleep
standard:
- POSIX
return_type: int
arguments:
- type: const struct timespec *
- type: struct timespec *
- name: strftime
standard:
- stdc
return_type: size_t
arguments:
- type: char *__restrict
- type: size_t
- type: const char *__restrict
- type: const struct tm *__restrict
- name: strftime_l
standard:
- stdc
return_type: size_t
arguments:
- type: char *__restrict
- type: size_t
- type: const char *__restrict
- type: const struct tm *__restrict
- type: locale_t
- name: time
standard:
- stdc
return_type: time_t
arguments:
- type: time_t *
- name: timespec_get
standard:
- stdc
return_type: int
arguments:
- type: struct timespec *
- type: int