Home
last modified time | relevance | path

Searched refs:cookie (Results 1 – 25 of 36) sorted by relevance

12

/llvm-project-15.0.7/flang/unittests/Runtime/
H A DRuntimeCrashTest.cpp99 IONAME(OutputCharacter)(cookie, "a", 1); in TEST()
110 IONAME(OutputLogical)(cookie, true); in TEST()
121 IONAME(OutputReal32)(cookie, 1.); in TEST()
122 EXPECT_DEATH(IONAME(OutputReal32)(cookie, 1.), in TEST()
126 cookie = IONAME(BeginInternalFormattedOutput)( in TEST()
128 IONAME(OutputReal64)(cookie, 1.); in TEST()
129 EXPECT_DEATH(IONAME(OutputReal64)(cookie, 1.), in TEST()
139 IONAME(OutputComplex32)(cookie, 1., 1.); in TEST()
144 cookie = IONAME(BeginInternalFormattedOutput)( in TEST()
146 IONAME(OutputComplex64)(cookie, 1., 1.); in TEST()
[all …]
H A DNumericalFormatTest.cpp72 IONAME(OutputAscii)(cookie, "WORLD", 5); in TEST()
73 IONAME(OutputInteger64)(cookie, 678); in TEST()
75 IONAME(OutputLogical)(cookie, true); in TEST()
130 IONAME(OutputAscii)(cookie, "WORLD", 5); in TEST()
131 IONAME(OutputAscii)(cookie, "HELLO", 5); in TEST()
132 IONAME(OutputInteger64)(cookie, 789); in TEST()
134 IONAME(OutputInteger64)(cookie, j); in TEST()
188 status = IONAME(EndIoStatement)(cookie); in TEST()
223 IONAME(OutputDescriptor)(cookie, desc); in TEST()
239 IONAME(OutputDescriptor)(cookie, desc); in TEST()
[all …]
H A DListInputTest.cpp49 auto *cookie{IONAME(BeginInternalArrayListInput)(whole)}; in TEST() local
58 const auto status{IONAME(EndIoStatement)(cookie)}; in TEST()
84 auto *cookie{IONAME(BeginInternalArrayListInput)(whole)}; in TEST() local
96 IONAME(InputInteger)(cookie, actualOutput[j]); in TEST()
99 const auto status{IONAME(EndIoStatement)(cookie)}; in TEST()
122 auto *cookie{IONAME(BeginInternalArrayListInput)(whole)}; in TEST() local
126 IONAME(InputInteger)(cookie, dummy); in TEST()
129 ASSERT_DEATH(IONAME(InputInteger)(cookie, dummy), in TEST()
150 ASSERT_DEATH(IONAME(InputInteger)(cookie, dummy), in TEST()
173 IONAME(InputInteger)(cookie, actualOutput[j]); in TEST_P()
[all …]
/llvm-project-15.0.7/flang/runtime/
H A Dio-api.cpp159 return cookie; in NoopUnit()
551 IoStatementState &io{*cookie}; in IONAME()
563 IoStatementState &io{*cookie}; in IONAME()
581 IoStatementState &io{*cookie}; in IONAME()
598 IoStatementState &io{*cookie}; in IONAME()
618 IoStatementState &io{*cookie}; in IONAME()
625 IoStatementState &io{*cookie}; in IONAME()
636 IoStatementState &io{*cookie}; in IONAME()
647 IoStatementState &io{*cookie}; in IONAME()
677 IoStatementState &io{*cookie}; in IONAME()
[all …]
H A Dextensions.cpp22 Cookie cookie{IONAME(BeginFlush)(unit, __FILE__, __LINE__)}; in FORTRAN_SUBROUTINE_NAME() local
23 IONAME(EndIoStatement)(cookie); in FORTRAN_SUBROUTINE_NAME()
H A Dnamelist.cpp28 bool IONAME(OutputNamelist)(Cookie cookie, const NamelistGroup &group) { in IONAME()
29 IoStatementState &io{*cookie}; in IONAME()
364 bool IONAME(InputNamelist)(Cookie cookie, const NamelistGroup &group) { in IONAME()
365 IoStatementState &io{*cookie}; in IONAME()
/llvm-project-15.0.7/compiler-rt/test/msan/Linux/
H A Dfopencookie.cpp16 static ssize_t cookie_read(void *cookie, char *buf, size_t size) { in cookie_read() argument
17 assert((uintptr_t)cookie == kMagicCookie); in cookie_read()
22 static ssize_t cookie_write(void *cookie, const char *buf, size_t size) { in cookie_write() argument
23 assert((uintptr_t)cookie == kMagicCookie); in cookie_write()
28 static int cookie_seek(void *cookie, off64_t *offset, int whence) { in cookie_seek() argument
29 assert((uintptr_t)cookie == kMagicCookie); in cookie_seek()
34 static int cookie_close(void *cookie) { in cookie_close() argument
35 assert((uintptr_t)cookie == kMagicCookie); in cookie_close()
49 void *cookie = (void *)kMagicCookie; in main() local
50 FILE *f = fopencookie(cookie, "rw", in main()
[all …]
/llvm-project-15.0.7/compiler-rt/test/sanitizer_common/TestCases/NetBSD/
H A Dfunopen2.cpp25 ssize_t f_read(void *cookie, void *buf, size_t len) { in f_read() argument
26 assert(cookie == &cookie_var); in f_read()
32 ssize_t f_write(void *cookie, const void *buf, size_t len) { in f_write() argument
33 assert(cookie == &cookie_var); in f_write()
41 off_t f_seek(void *cookie, off_t off, int whence) { in f_seek() argument
42 assert(cookie == &cookie_var); in f_seek()
48 int f_flush(void *cookie) { in f_flush() argument
49 assert(cookie == &cookie_var); in f_flush()
54 int f_close(void *cookie) { in f_close() argument
55 assert(cookie == &cookie_var); in f_close()
H A Dcdb.cpp88 static void cdbr_unmap(void *cookie, void *base, size_t sz) { in cdbr_unmap() argument
89 assert(cookie == COOKIE); in cdbr_unmap()
/llvm-project-15.0.7/libc/src/stdio/
H A Dfopencookie.cpp22 void *cookie; member in __llvm_libc::__anone424a9540111::CookieFile
30 return cookie_file->ops.write(cookie_file->cookie, in write_func()
38 return cookie_file->ops.read(cookie_file->cookie, in read_func()
49 return cookie_file->ops.seek(cookie_file->cookie, &offset64, whence); in seek_func()
56 return cookie_file->ops.close(cookie_file->cookie); in close_func()
64 (void *cookie, const char *mode,
77 file->cookie = cookie;
H A Dfopencookie.h16 ::FILE *fopencookie(void *cookie, const char *__restrict mode,
/llvm-project-15.0.7/compiler-rt/test/sanitizer_common/TestCases/Posix/
H A Dfunopen.cpp23 int f_read(void *cookie, char *buf, int len) { in f_read() argument
24 assert(cookie == &cookie_var); in f_read()
30 int f_write(void *cookie, const char *buf, int len) { in f_write() argument
31 assert(cookie == &cookie_var); in f_write()
39 off_t f_seek(void *cookie, off_t off, int whence) { in f_seek() argument
40 assert(cookie == &cookie_var); in f_seek()
46 int f_close(void *cookie) { in f_close() argument
47 assert(cookie == &cookie_var); in f_close()
/llvm-project-15.0.7/flang/lib/Lower/
H A DIO.cpp187 cookie, in genEndIO()
1058 mlir::Value cookie, in genIOOption() argument
1644 mlir::Value cookie = call.getResult(0); in genBasicIOStmt() local
1680 mlir::Value cookie, in genNewunitSpec() argument
1729 auto cookie = in genOpenStatement() local
1935 mlir::Value cookie = in genDataTransferStmt() local
1949 genNamelistIO(converter, cookie, in genDataTransferStmt()
1958 genNamelistIO(converter, cookie, in genDataTransferStmt()
2221 auto cookie = in genInquireStatement() local
2225 converter, cookie, in genInquireStatement()
[all …]
/llvm-project-15.0.7/libc/test/src/stdio/
H A Dfopencookie_test.cpp34 ssize_t write_ss(void *cookie, const char *buf, size_t size) { in write_ss() argument
35 auto *ss = reinterpret_cast<StringStream *>(cookie); in write_ss()
46 ssize_t read_ss(void *cookie, char *buf, size_t size) { in read_ss() argument
47 auto *ss = reinterpret_cast<StringStream *>(cookie); in read_ss()
60 int seek_ss(void *cookie, off64_t *offset, int whence) { in seek_ss() argument
61 auto *ss = reinterpret_cast<StringStream *>(cookie); in seek_ss()
80 int close_ss(void *cookie) { in close_ss() argument
81 auto *ss = reinterpret_cast<StringStream *>(cookie); in close_ss()
/llvm-project-15.0.7/compiler-rt/test/sanitizer_common/TestCases/Linux/
H A Dprctl.cpp35 uint64_t cookie = 0; in main() local
36 res = prctl(PR_SCHED_CORE, PR_SCHED_CORE_GET, 0, 0, &cookie); in main()
40 assert(cookie != 0); in main()
/llvm-project-15.0.7/lldb/test/API/commands/watchpoints/watchpoint_commands/command/
H A Dmain.cpp5 int32_t cookie = 0; variable
19 printf("cookie=%d\n", cookie); in main()
/llvm-project-15.0.7/llvm/test/tools/llvm-readobj/ELF/
H A Dnote-openbsd-core.test34 # GNU-NEXT: OpenBSD 0x00000000 NT_OPENBSD_WCOOKIE (window cookie)
56 # LLVM-NEXT: Type: NT_OPENBSD_WCOOKIE (window cookie)
/llvm-project-15.0.7/llvm/test/Transforms/LoopStrengthReduce/AArch64/
H A Dreq-regs.ll11 define void @do_integer_add(i64 %iterations, i8* nocapture readonly %cookie) {
13 %N = bitcast i8* %cookie to i32*
/llvm-project-15.0.7/compiler-rt/lib/sanitizer_common/
H A Dsanitizer_platform_limits_posix.h914 typedef uptr (*__sanitizer_cookie_io_read)(void *cookie, char *buf, uptr size);
915 typedef uptr (*__sanitizer_cookie_io_write)(void *cookie, const char *buf,
917 typedef int (*__sanitizer_cookie_io_seek)(void *cookie, u64 *offset,
919 typedef int (*__sanitizer_cookie_io_close)(void *cookie);
H A Dsanitizer_common_interceptors.inc6672 static int wrapped_close(void *cookie) {
6687 wrapped_cookie->real_cookie = cookie;
9587 cookie);
9893 typedef int (*funopen_closefn)(void *cookie);
9924 static int wrapped_funopen_close(void *cookie) {
9942 wrapped_cookie->real_cookie = cookie;
9967 typedef int (*funopen2_flushfn)(void *cookie);
9968 typedef int (*funopen2_closefn)(void *cookie);
10001 static int wrapped_funopen2_flush(void *cookie) {
10008 static int wrapped_funopen2_close(void *cookie) {
[all …]
/llvm-project-15.0.7/llvm/test/CodeGen/AArch64/
H A Dstack-protector-target.ll1 ; Test target-specific stack cookie location.
/llvm-project-15.0.7/llvm/test/CodeGen/X86/
H A Dstack-protector-target.ll1 ; Test target-specific stack cookie location.
H A Dstack-protector-strong-macho-win32-xor.ll6 ; This test checks that on Win32 MachO targets we don't xor the cookie with rbp before checking.
/llvm-project-15.0.7/clang/test/Analysis/
H A Darray-struct-region.cpp253 long cookie; member
/llvm-project-15.0.7/polly/test/GPGPU/
H A Dmanaged-memory-rewrite-malloc-free-inside-constexpr.ll11 ; pass, even inside `constantExpr`. This is necessary because a cookie cutter

12