< prev index next >

src/java.base/unix/native/libjava/io_util_md.h

Print this page
rev 54131 : imported patch 6307456-UnixFileSystem_md-c-use-of-chmod-and-access-should-handle-EINTR-signal-appropriately-unix

*** 1,7 **** /* ! * Copyright (c) 2003, 2017, 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 * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. Oracle designates this --- 1,7 ---- /* ! * Copyright (c) 2003, 2019, 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 * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. Oracle designates this
*** 91,105 **** #define SET_HANDLE(fd) return (jlong)-1 /* * Retry the operation if it is interrupted */ ! #define RESTARTABLE(_cmd, _result) do { \ do { \ _result = _cmd; \ ! } while((_result == -1) && (errno == EINTR)); \ ! } while(0) void fileDescriptorClose(JNIEnv *env, jobject this); #ifdef MACOSX jstring newStringPlatform(JNIEnv *env, const char* str); --- 91,104 ---- #define SET_HANDLE(fd) return (jlong)-1 /* * Retry the operation if it is interrupted */ ! #define RESTARTABLE(_cmd, _result) \ do { \ _result = _cmd; \ ! } while ((_result == -1) && (errno == EINTR)) void fileDescriptorClose(JNIEnv *env, jobject this); #ifdef MACOSX jstring newStringPlatform(JNIEnv *env, const char* str);
< prev index next >