Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(626)

Issue 809153003: Cleanup: Use FOPEN_MAX instead of OPEN_MAX. (Closed)

Created:
6 years ago by tfarina
Modified:
6 years ago
Reviewers:
Mark Mentovai, scottmg
CC:
crashpad-dev_chromium.org
Base URL:
https://chromium.googlesource.com/crashpad/crashpad.git@master
Target Ref:
refs/heads/master
Project:
crashpad
Visibility:
Public.

Description

Cleanup: Use FOPEN_MAX instead of OPEN_MAX. http://stackoverflow.com/questions/14042824/where-is-open-max-defined-for-linux-systems Fixes the following error: ../../util/test/multiprocess_exec_test_child.cc:28:66: error: use of undeclared identifier 'OPEN_MAX' int max_fd = std::max(static_cast<int>(sysconf(_SC_OPEN_MAX)), OPEN_MAX); R=scottmg@chromium.org BUG=

Patch Set 1 #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+2 lines, -2 lines) Patch
M util/test/multiprocess_exec_test_child.cc View 1 chunk +2 lines, -2 lines 3 comments Download

Messages

Total messages: 7 (2 generated)
tfarina
Is this OK?
6 years ago (2014-12-18 01:58:35 UTC) #1
scottmg
https://codereview.chromium.org/809153003/diff/1/util/test/multiprocess_exec_test_child.cc File util/test/multiprocess_exec_test_child.cc (right): https://codereview.chromium.org/809153003/diff/1/util/test/multiprocess_exec_test_child.cc#newcode28 util/test/multiprocess_exec_test_child.cc:28: int max_fd = std::max(static_cast<int>(sysconf(_SC_OPEN_MAX)), FOPEN_MAX); These seems to be ...
6 years ago (2014-12-18 03:53:18 UTC) #2
Mark Mentovai
We’re just getting Windows support in Crashpad started now. We’re not ready for Linux support ...
6 years ago (2014-12-18 13:46:32 UTC) #5
Mark Mentovai
We’re just getting Windows support in Crashpad started now. We’re not ready for Linux support ...
6 years ago (2014-12-18 13:46:32 UTC) #6
tfarina
6 years ago (2014-12-18 14:49:09 UTC) #7
No worry. Will close this.

Powered by Google App Engine
This is Rietveld 408576698