fixed lots of not-thread-safe things
Most of the things I fixed here were using libc functions that are
fundamentally not thread-safe.
diff --git a/aos/build/aos.gyp b/aos/build/aos.gyp
index 916db03..3aaaf10 100644
--- a/aos/build/aos.gyp
+++ b/aos/build/aos.gyp
@@ -25,10 +25,10 @@
],
'dependencies': [
'<(AOS)/common/common.gyp:die',
- '<(AOS)/common/util/util.gyp:aos_strerror',
+ '<(AOS)/common/libc/libc.gyp:aos_strerror',
],
'export_dependent_settings': [
- '<(AOS)/common/util/util.gyp:aos_strerror',
+ '<(AOS)/common/libc/libc.gyp:aos_strerror',
],
},
{
diff --git a/aos/build/aos_all.gyp b/aos/build/aos_all.gyp
index 8623d51..4f9e4ab 100644
--- a/aos/build/aos_all.gyp
+++ b/aos/build/aos_all.gyp
@@ -10,19 +10,23 @@
'no_rsync': 1,
},
'dependencies': [
- '../linux_code/linux_code.gyp:core',
- '../linux_code/logging/logging.gyp:binary_log_writer',
- '../linux_code/logging/logging.gyp:log_streamer',
- '../linux_code/logging/logging.gyp:log_displayer',
- '../linux_code/ipc_lib/ipc_lib.gyp:raw_queue_test',
- '../linux_code/ipc_lib/ipc_lib.gyp:ipc_stress_test',
- '../linux_code/starter/starter.gyp:starter_exe',
- '../linux_code/starter/starter.gyp:netconsole',
- '../common/common.gyp:queue_test',
- '../common/common.gyp:die_test',
- '../common/common.gyp:queue_types_test',
- '../common/util/util.gyp:trapezoid_profile_test',
- '../common/util/util.gyp:wrapping_counter_test',
+ '<(AOS)/linux_code/linux_code.gyp:core',
+ '<(AOS)/linux_code/logging/logging.gyp:binary_log_writer',
+ '<(AOS)/linux_code/logging/logging.gyp:log_streamer',
+ '<(AOS)/linux_code/logging/logging.gyp:log_displayer',
+ '<(AOS)/linux_code/ipc_lib/ipc_lib.gyp:raw_queue_test',
+ '<(AOS)/linux_code/ipc_lib/ipc_lib.gyp:ipc_stress_test',
+ '<(AOS)/linux_code/starter/starter.gyp:starter_exe',
+ '<(AOS)/linux_code/starter/starter.gyp:netconsole',
+ '<(AOS)/common/common.gyp:queue_test',
+ '<(AOS)/common/common.gyp:die_test',
+ '<(AOS)/common/common.gyp:queue_types_test',
+ '<(AOS)/common/util/util.gyp:trapezoid_profile_test',
+ '<(AOS)/common/util/util.gyp:wrapping_counter_test',
+ '<(AOS)/common/libc/libc.gyp:dirname_test',
+ '<(AOS)/common/libc/libc.gyp:aos_strerror_test',
+ '<(AOS)/common/libc/libc.gyp:aos_strsignal_test',
+ '<(AOS)/common/util/util.gyp:run_command_test',
'<(DEPTH)/bbb_cape/src/bbb/bbb.gyp:cows_test',
'<(DEPTH)/bbb_cape/src/bbb/bbb.gyp:packet_finder_test',
'Common',