1*49cdfc7eSAndroid Build Coastguard Worker // SPDX-License-Identifier: GPL-2.0-or-later 2*49cdfc7eSAndroid Build Coastguard Worker /* Copyright (c) 2018 FUJITSU LIMITED. All rights reserved. 3*49cdfc7eSAndroid Build Coastguard Worker * Authors: Jinhui huang <[email protected]> 4*49cdfc7eSAndroid Build Coastguard Worker * Xiao Yang <[email protected]> 5*49cdfc7eSAndroid Build Coastguard Worker */ 6*49cdfc7eSAndroid Build Coastguard Worker check_execveat(void)7*49cdfc7eSAndroid Build Coastguard Workervoid check_execveat(void) 8*49cdfc7eSAndroid Build Coastguard Worker { 9*49cdfc7eSAndroid Build Coastguard Worker int ret; 10*49cdfc7eSAndroid Build Coastguard Worker 11*49cdfc7eSAndroid Build Coastguard Worker ret = execveat(-1, "", NULL, NULL, AT_EMPTY_PATH); 12*49cdfc7eSAndroid Build Coastguard Worker if (ret == -1 && errno == EINVAL) 13*49cdfc7eSAndroid Build Coastguard Worker tst_brk(TCONF, "execveat() not supported"); 14*49cdfc7eSAndroid Build Coastguard Worker } 15