xref: /aosp_15_r20/trusty/kernel/lib/libc-trusty/close.c (revision 344aa361028b423587d4ef3fa52a23d194628137)
1*344aa361SAndroid Build Coastguard Worker /*
2*344aa361SAndroid Build Coastguard Worker  * Copyright (C) 2022 The Android Open Source Project
3*344aa361SAndroid Build Coastguard Worker  *
4*344aa361SAndroid Build Coastguard Worker  * Licensed under the Apache License, Version 2.0 (the "License");
5*344aa361SAndroid Build Coastguard Worker  * you may not use this file except in compliance with the License.
6*344aa361SAndroid Build Coastguard Worker  * You may obtain a copy of the License at
7*344aa361SAndroid Build Coastguard Worker  *
8*344aa361SAndroid Build Coastguard Worker  *      http://www.apache.org/licenses/LICENSE-2.0
9*344aa361SAndroid Build Coastguard Worker  *
10*344aa361SAndroid Build Coastguard Worker  * Unless required by applicable law or agreed to in writing, software
11*344aa361SAndroid Build Coastguard Worker  * distributed under the License is distributed on an "AS IS" BASIS,
12*344aa361SAndroid Build Coastguard Worker  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13*344aa361SAndroid Build Coastguard Worker  * See the License for the specific language governing permissions and
14*344aa361SAndroid Build Coastguard Worker  * limitations under the License.
15*344aa361SAndroid Build Coastguard Worker  */
16*344aa361SAndroid Build Coastguard Worker #include <panic.h>
17*344aa361SAndroid Build Coastguard Worker 
close(int fd)18*344aa361SAndroid Build Coastguard Worker int close(int fd) {
19*344aa361SAndroid Build Coastguard Worker     panic("Close is not supported\n");
20*344aa361SAndroid Build Coastguard Worker }
21