DescriptionOpenBSD patches for base and build, part 2
base/base.gyp:
- exclude test/test_file_util_linux.cc on OpenBSD because of
missing fdatasync()
base/base.gypi:
- include linux_util.cc on OpenBSD too
- exclude some linux specific files from the OpenBSD build
because the openbsd implementation is different
base/file_util_posix.cc:
- Use file_util::GetTempDir directly to get the shm dir
on !linux
base/sys_info_freebsd.cc:
- return 0 and do a NOTREACHED() in case sysctlbyname() fails
base/sys_info_openbsd.cc:
- cleanup includes
- use arraysize() in the sysctl() call
- implement SysInfo::MaxSharedMemorySize()
build/common.gypi:
- -Wno-deprecated is C++ only flag so move it to cflags_cc
- Do not exclude linux specific files, dirs on OpenBSD since
90% of it is sharable
base/sys_info_linux.cc:
- DCHECK if the read string is empty
- Use base::StringToInt64() to convert the string
to an int64
- DCHECK if the returned int64 is okay for a size_t
- call NOTREACHED() and return 0 if fails
BUG=
TEST=runs on linux?
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=106984
Patch Set 1 #
Total comments: 11
Patch Set 2 : fixes for previous patchset #
Total comments: 6
Patch Set 3 : fixes for previous patchset based on comments #Patch Set 4 : remove duplicate return #
Total comments: 6
Patch Set 5 : fixes for prev. #
Total comments: 6
Patch Set 6 : fix dcheck and comment #Patch Set 7 : include <limits> #Patch Set 8 : remove newline from string #
Messages
Total messages: 19 (0 generated)
|