LLVM 22.0.0git
string.h
Go to the documentation of this file.
1//===- string.h - Common z/OS Include File ----------------------*- C++ -*-===//
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//===----------------------------------------------------------------------===//
8//
9// This file declares z/OS implementations for common functions.
10//
11//===----------------------------------------------------------------------===//
12
13#ifndef LLVM_SUPPORT_ZOSWRAPPERS_STRING_H
14#define LLVM_SUPPORT_ZOSWRAPPERS_STRING_H
15
16#include_next <string.h>
17
18#ifdef __cplusplus
19extern "C" {
20#endif
21
22// z/OS Unix System Services does not have support for:
23// - strsignal()
24// - strnlen()
25// Implementations are provided for z/OS.
26
27char *strsignal(int sig) asm("llvm_zos_strsignal");
28
29size_t strnlen(const char *S, size_t MaxLen) asm("llvm_zos_strnlen");
30
31#ifdef __cplusplus
32}
33#endif
34
35#endif
char * strsignal(int sig) asm("llvm_zos_strsignal")
size_t strnlen(const char *S, size_t MaxLen) asm("llvm_zos_strnlen")