xref: /illumos-gate/usr/src/cmd/make/include/mksh/misc.h (revision 99ea293e719ac006d413e4fde6ac0d5cd4dd6c59)
1 #ifndef _MKSH_MISC_H
2 #define _MKSH_MISC_H
3 /*
4  * CDDL HEADER START
5  *
6  * The contents of this file are subject to the terms of the
7  * Common Development and Distribution License (the "License").
8  * You may not use this file except in compliance with the License.
9  *
10  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
11  * or http://www.opensolaris.org/os/licensing.
12  * See the License for the specific language governing permissions
13  * and limitations under the License.
14  *
15  * When distributing Covered Code, include this CDDL HEADER in each
16  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
17  * If applicable, add the following below this CDDL HEADER, with the
18  * fields enclosed by brackets "[]" replaced with your own identifying
19  * information: Portions Copyright [yyyy] [name of copyright owner]
20  *
21  * CDDL HEADER END
22  */
23 /*
24  * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
25  * Use is subject to license terms.
26  *
27  * Copyright 2019 RackTop Systems.
28  */
29 
30 #include <mksh/defs.h>
31 
32 extern void	append_char(wchar_t from, register String to);
33 extern Property	append_prop(register Name target, register Property_id type);
34 extern void	append_string(register wchar_t *from, register String to, register int length);
35 extern void	enable_interrupt(register void (*handler) (int));
36 extern char	*errmsg(int errnum);
37 extern void	fatal_mksh(const char *message, ...) __NORETURN;
38 extern void	fatal_reader_mksh(const char *pattern, ...) __NORETURN;
39 extern char	*get_current_path_mksh(void);
40 extern Property	get_prop(register Property start, register Property_id type);
41 extern char	*getmem(size_t size);
42 extern Name	getname_fn(wchar_t *name, register int len, register Boolean dont_enter, register Boolean * foundp = NULL);
43 extern void	store_name(Name name);
44 extern void	free_name(Name name);
45 extern void	handle_interrupt_mksh(int);
46 extern Property	maybe_append_prop(register Name target, register Property_id type);
47 extern void	retmem(wchar_t *p);
48 extern void	retmem_mb(caddr_t p);
49 extern void	setup_char_semantics(void);
50 extern void	setup_interrupt(register void (*handler) (int));
51 extern void	warning_mksh(char * message, ...);
52 
53 extern void	append_string(register char *from, register String to, register int length);
54 extern wchar_t	*get_wstring(char * from);
55 
56 
57 #endif
58