1 // Copyright 2014 The Android Open Source Project 2 // 3 // This software is licensed under the terms of the GNU General Public 4 // License version 2, as published by the Free Software Foundation, and 5 // may be copied, distributed, and modified under those terms. 6 // 7 // This program is distributed in the hope that it will be useful, 8 // but WITHOUT ANY WARRANTY; without even the implied warranty of 9 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 10 // GNU General Public License for more details. 11 12 #include "android/utils/eintr_wrapper.h" 13 14 #include "android/utils/panic.h" 15 16 #ifndef _WIN32 17 void android_eintr_wrapper_fatal(const char* file, 18 long lineno, 19 const char* function, 20 const char* call) { 21 android_panic( 22 "%s:%ld:%s%s System call looped around EINTR %d times: %s\n", 23 file, 24 lineno, 25 function ? function : "", 26 function ? ":" : "", 27 MAX_EINTR_LOOP_COUNT, 28 call); 29 } 30 #endif // !_WIN32 31