8218811: replace open by os::open in hotspot coding

Reviewed-by: dholmes, iklam, stuefe
This commit is contained in:
Matthias Baesken 2019-02-18 16:17:48 +01:00
parent 1d5674ab33
commit 4de51069e4
8 changed files with 17 additions and 22 deletions

View file

@ -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;
}