csu-common.h revision 1.1
11.1Schristos/*-
21.1Schristos * Copyright (c) 2021 The NetBSD Foundation, Inc.
31.1Schristos * All rights reserved.
41.1Schristos *
51.1Schristos * Redistribution and use in source and binary forms, with or without
61.1Schristos * modification, are permitted provided that the following conditions
71.1Schristos * are met:
81.1Schristos * 1. Redistributions of source code must retain the above copyright
91.1Schristos *    notice, this list of conditions and the following disclaimer.
101.1Schristos * 2. Redistributions in binary form must reproduce the above copyright
111.1Schristos *    notice, this list of conditions and the following disclaimer in the
121.1Schristos *    documentation and/or other materials provided with the distribution.
131.1Schristos *
141.1Schristos * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
151.1Schristos * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
161.1Schristos * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
171.1Schristos * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
181.1Schristos * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
191.1Schristos * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
201.1Schristos * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
211.1Schristos * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
221.1Schristos * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
231.1Schristos * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
241.1Schristos * POSSIBILITY OF SUCH DAMAGE.
251.1Schristos */
261.1Schristos
271.1Schristos/*
281.1Schristos * For historical reasons the following symbols are defined both in libc
291.1Schristos * and csu and need to be common
301.1Schristos */
311.1Schristos#if __has_attribute(__common__)
321.1Schristos#define	__common	__attribute((__common__))
331.1Schristos#else
341.1Schristos#define	__common
351.1Schristos#endif
361.1Schristosextern char *__progname __common;
371.1Schristosextern char **environ __common;
381.1Schristosextern struct ps_strings *__ps_strings __common;
39