this repo has no description
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Fixes for the Java 8 installer (#424)

os_log related stubs

+55 -1
+1 -1
src/libc/os/CMakeLists.txt
··· 3 3 cmake_minimum_required(VERSION 2.4.0) 4 4 5 5 include_directories(${CMAKE_CURRENT_SOURCE_DIR}/..) 6 - set(os_sources assumes.c debug_private.c) 6 + set(os_sources assumes.c debug_private.c log.c) 7 7 8 8 add_library(libc-os OBJECT ${os_sources})
+54
src/libc/os/log.c
··· 1 + #include <os/log.h> 2 + 3 + #include <stdio.h> 4 + 5 + bool os_log_type_enabled(os_log_t oslog, os_log_type_t type) 6 + { 7 + printf("os_log_enabled stub called\n"); 8 + return 1; 9 + } 10 + 11 + void _os_log_impl(void *dso, 12 + os_log_t log, 13 + os_log_type_t type, 14 + const char *format, 15 + uint8_t *buf, 16 + uint32_t size) 17 + { 18 + printf("_os_log_impl called: %s\n", format); 19 + } 20 + 21 + void _os_log_error_impl(void *dso, os_log_t log, os_log_type_t type, 22 + const char *format, uint8_t *buf, uint32_t size) 23 + { 24 + printf("_os_log_error_impl called: %s\n", format); 25 + } 26 + 27 + void _os_log_fault_impl(void *dso, os_log_t log, os_log_type_t type, 28 + const char *format, uint8_t *buf, uint32_t size) 29 + { 30 + printf("_os_log_fault_impl called: %s\n", format); 31 + } 32 + 33 + void _os_log_internal(void *dso, os_log_t log, os_log_type_t type, const char *message, ...) 34 + { 35 + printf("_os_log_internal called: %s\n", message); 36 + } 37 + 38 + os_log_t _os_log_create(void *dso, const char *subsystem, const char *category) 39 + { 40 + printf("_os_log_create called: %s, %s\n", subsystem, category); 41 + return NULL; 42 + } 43 + 44 + bool os_log_is_enabled(os_log_t log) 45 + { 46 + printf("os_log_is_enabled called"); 47 + return 1; 48 + } 49 + 50 + bool os_log_is_debug_enabled(os_log_t log) 51 + { 52 + printf("os_log_is_debug_enabled called"); 53 + return 1; 54 + }