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) 2005, 2015, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2005, 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
@ -100,6 +100,14 @@
#include <dirent.h>
#endif /* Unix */
#if defined(_AIX)
#define DIR DIR64
#define dirent dirent64
#define opendir opendir64
#define readdir readdir64
#define closedir closedir64
#endif
static int
exists(const char* filename)
{