[flang] Use object before converts in fir.dispatch (#68589)
[llvm-project.git] / libc / include / llvm-libc-types / stack_t.h
blobf564d9134010bf2d40b50820f66f46f822257a39
1 //===-- Definition of stack_t type ----------------------------------------===//
2 //
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6 //
7 //===----------------------------------------------------------------------===//
9 #ifndef __LLVM_LIBC_TYPES_STACK_T_H__
10 #define __LLVM_LIBC_TYPES_STACK_T_H__
12 #include <llvm-libc-types/size_t.h>
14 typedef struct {
15 // The order of the fields declared here should match the kernel definition
16 // of stack_t in order for the SYS_sigaltstack syscall to work correctly.
17 void *ss_sp;
18 int ss_flags;
19 size_t ss_size;
20 } stack_t;
22 #endif // __LLVM_LIBC_TYPES_STACK_T_H__