mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-18 10:04:42 +02:00
8218811: replace open by os::open in hotspot coding
Reviewed-by: dholmes, iklam, stuefe
This commit is contained in:
parent
1d5674ab33
commit
4de51069e4
8 changed files with 17 additions and 22 deletions
|
@ -1062,7 +1062,7 @@ int64_t NetworkPerformanceInterface::NetworkPerformance::read_counter(const char
|
|||
|
||||
snprintf(buf, sizeof(buf), "/sys/class/net/%s/statistics/%s", iface, counter);
|
||||
|
||||
int fd = open(buf, O_RDONLY);
|
||||
int fd = os::open(buf, O_RDONLY, 0);
|
||||
if (fd == -1) {
|
||||
return -1;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue