8207744: Clean up inconsistent use of opendir/closedir versus opendir64/closedir64

Reviewed-by: bsrbnd, mbaesken, bchristi, simonis
This commit is contained in:
Brian Burkhalter 2018-08-30 12:39:26 -07:00
parent 091aff1178
commit 67b2c6fc66
7 changed files with 50 additions and 38 deletions

View file

@ -1,5 +1,5 @@
/*
* Copyright (c) 2014, 2017, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2014, 2018, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@ -58,6 +58,14 @@
#include <procfs.h>
#endif
#if defined(_AIX)
#define DIR DIR64
#define dirent dirent64
#define opendir opendir64
#define readdir readdir64
#define closedir closedir64
#endif
/**
* This file contains the implementation of the native ProcessHandleImpl
* functions which are common to all Unix variants.