/* Shared between os_compat.c and os_win.c; not part of the public API. */ #ifndef CST_OS_INTERNAL_H #define CST_OS_INTERNAL_H #include /* CST_SHELL_TIMEOUT / os_set_run_timeout / 120 s */ int os_run_timeout_effective(void); /* Append to a capture buffer, keeping at most max_out bytes. */ int os_cap_append(char **buf, size_t *len, size_t *cap, size_t max_out, const char *data, size_t n, int *truncated); void os_cap_note(char **buf, size_t *len, size_t *cap, const char *note); #endif