mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-20 02:54:35 +02:00
Merge
This commit is contained in:
commit
ab06fed6eb
1 changed files with 3 additions and 9 deletions
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2003, 2013, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 2003, 2016, Oracle and/or its affiliates. All rights reserved.
|
||||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
*
|
*
|
||||||
* This code is free software; you can redistribute it and/or modify it
|
* This code is free software; you can redistribute it and/or modify it
|
||||||
|
@ -697,14 +697,8 @@ err:
|
||||||
}
|
}
|
||||||
|
|
||||||
/**local function **/
|
/**local function **/
|
||||||
bool exists(const char *fname)
|
bool exists(const char *fname) {
|
||||||
{
|
return access(fname, F_OK) == 0;
|
||||||
int fd;
|
|
||||||
if ((fd = open(fname, O_RDONLY)) > 0) {
|
|
||||||
close(fd);
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
return false;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// we check: 1. lib
|
// we check: 1. lib
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue