diff options
author | Igor Pashev <pashev.igor@gmail.com> | 2012-06-24 22:28:35 +0000 |
---|---|---|
committer | Igor Pashev <pashev.igor@gmail.com> | 2012-06-24 22:28:35 +0000 |
commit | 3950ffe2a485479f6561c27364d3d7df5a21d124 (patch) | |
tree | 468c6e14449d1b1e279222ec32f676b0311917d2 /src/lib/libast/std | |
download | ksh-upstream.tar.gz |
Imported Upstream version 93u+upstream
Diffstat (limited to 'src/lib/libast/std')
-rw-r--r-- | src/lib/libast/std/bytesex.h | 43 | ||||
-rw-r--r-- | src/lib/libast/std/dirent.h | 22 | ||||
-rw-r--r-- | src/lib/libast/std/endian.h | 54 | ||||
-rw-r--r-- | src/lib/libast/std/iconv.h | 22 | ||||
-rw-r--r-- | src/lib/libast/std/nl_types.h | 22 | ||||
-rw-r--r-- | src/lib/libast/std/stdio.h | 22 | ||||
-rw-r--r-- | src/lib/libast/std/wchar.h | 22 | ||||
-rw-r--r-- | src/lib/libast/std/wctype.h | 22 |
8 files changed, 229 insertions, 0 deletions
diff --git a/src/lib/libast/std/bytesex.h b/src/lib/libast/std/bytesex.h new file mode 100644 index 0000000..d8a0783 --- /dev/null +++ b/src/lib/libast/std/bytesex.h @@ -0,0 +1,43 @@ +/*********************************************************************** +* * +* This software is part of the ast package * +* Copyright (c) 1985-2011 AT&T Intellectual Property * +* and is licensed under the * +* Eclipse Public License, Version 1.0 * +* by AT&T Intellectual Property * +* * +* A copy of the License is available at * +* http://www.eclipse.org/org/documents/epl-v10.html * +* (with md5 checksum b35adb5213ca9657e911e9befb180842) * +* * +* Information and Software Systems Research * +* AT&T Research * +* Florham Park NJ * +* * +* Glenn Fowler <gsf@research.att.com> * +* David Korn <dgk@research.att.com> * +* Phong Vo <kpv@research.att.com> * +* * +***********************************************************************/ +/* + * linux/gnu compatibility + */ + +#ifndef _BYTESEX_H +#define _BYTESEX_H + +#include <ast_common.h> + +#undef __BYTE_ORDER + +#if ( _ast_intswap & 3 ) == 3 +#define __BYTE_ORDER __LITTLE_ENDIAN +#else +#if ( _ast_intswap & 3 ) == 1 +#define __BYTE_ORDER __PDP_ENDIAN +#else +#define __BYTE_ORDER __BIG_ENDIAN +#endif +#endif + +#endif diff --git a/src/lib/libast/std/dirent.h b/src/lib/libast/std/dirent.h new file mode 100644 index 0000000..de52967 --- /dev/null +++ b/src/lib/libast/std/dirent.h @@ -0,0 +1,22 @@ +/*********************************************************************** +* * +* This software is part of the ast package * +* Copyright (c) 1985-2011 AT&T Intellectual Property * +* and is licensed under the * +* Eclipse Public License, Version 1.0 * +* by AT&T Intellectual Property * +* * +* A copy of the License is available at * +* http://www.eclipse.org/org/documents/epl-v10.html * +* (with md5 checksum b35adb5213ca9657e911e9befb180842) * +* * +* Information and Software Systems Research * +* AT&T Research * +* Florham Park NJ * +* * +* Glenn Fowler <gsf@research.att.com> * +* David Korn <dgk@research.att.com> * +* Phong Vo <kpv@research.att.com> * +* * +***********************************************************************/ +#include <ast_dirent.h> diff --git a/src/lib/libast/std/endian.h b/src/lib/libast/std/endian.h new file mode 100644 index 0000000..c54e213 --- /dev/null +++ b/src/lib/libast/std/endian.h @@ -0,0 +1,54 @@ +/*********************************************************************** +* * +* This software is part of the ast package * +* Copyright (c) 1985-2011 AT&T Intellectual Property * +* and is licensed under the * +* Eclipse Public License, Version 1.0 * +* by AT&T Intellectual Property * +* * +* A copy of the License is available at * +* http://www.eclipse.org/org/documents/epl-v10.html * +* (with md5 checksum b35adb5213ca9657e911e9befb180842) * +* * +* Information and Software Systems Research * +* AT&T Research * +* Florham Park NJ * +* * +* Glenn Fowler <gsf@research.att.com> * +* David Korn <dgk@research.att.com> * +* Phong Vo <kpv@research.att.com> * +* * +***********************************************************************/ +/* + * linux/gnu compatibility + */ + +#ifndef _ENDIAN_H +#define _ENDIAN_H + +#include <bytesex.h> + +#define __LITTLE_ENDIAN 1234 +#define __BIG_ENDIAN 4321 +#define __PDP_ENDIAN 3412 + +#if defined (__USE_BSD) && !defined(__STRICT_ANSI__) + +#ifndef LITTLE_ENDIAN +#define LITTLE_ENDIAN __LITTLE_ENDIAN +#endif + +#ifndef BIG_ENDIAN +#define BIG_ENDIAN __BIG_ENDIAN +#endif + +#ifndef PDP_ENDIAN +#define PDP_ENDIAN __PDP_ENDIAN +#endif + +#undef BYTE_ORDER +#define BYTE_ORDER __BYTE_ORDER + +#endif + +#endif diff --git a/src/lib/libast/std/iconv.h b/src/lib/libast/std/iconv.h new file mode 100644 index 0000000..fb82d62 --- /dev/null +++ b/src/lib/libast/std/iconv.h @@ -0,0 +1,22 @@ +/*********************************************************************** +* * +* This software is part of the ast package * +* Copyright (c) 1985-2011 AT&T Intellectual Property * +* and is licensed under the * +* Eclipse Public License, Version 1.0 * +* by AT&T Intellectual Property * +* * +* A copy of the License is available at * +* http://www.eclipse.org/org/documents/epl-v10.html * +* (with md5 checksum b35adb5213ca9657e911e9befb180842) * +* * +* Information and Software Systems Research * +* AT&T Research * +* Florham Park NJ * +* * +* Glenn Fowler <gsf@research.att.com> * +* David Korn <dgk@research.att.com> * +* Phong Vo <kpv@research.att.com> * +* * +***********************************************************************/ +#include <ast_iconv.h> diff --git a/src/lib/libast/std/nl_types.h b/src/lib/libast/std/nl_types.h new file mode 100644 index 0000000..99299a7 --- /dev/null +++ b/src/lib/libast/std/nl_types.h @@ -0,0 +1,22 @@ +/*********************************************************************** +* * +* This software is part of the ast package * +* Copyright (c) 1985-2011 AT&T Intellectual Property * +* and is licensed under the * +* Eclipse Public License, Version 1.0 * +* by AT&T Intellectual Property * +* * +* A copy of the License is available at * +* http://www.eclipse.org/org/documents/epl-v10.html * +* (with md5 checksum b35adb5213ca9657e911e9befb180842) * +* * +* Information and Software Systems Research * +* AT&T Research * +* Florham Park NJ * +* * +* Glenn Fowler <gsf@research.att.com> * +* David Korn <dgk@research.att.com> * +* Phong Vo <kpv@research.att.com> * +* * +***********************************************************************/ +#include <ast_nl_types.h> diff --git a/src/lib/libast/std/stdio.h b/src/lib/libast/std/stdio.h new file mode 100644 index 0000000..c3c09fe --- /dev/null +++ b/src/lib/libast/std/stdio.h @@ -0,0 +1,22 @@ +/*********************************************************************** +* * +* This software is part of the ast package * +* Copyright (c) 1985-2011 AT&T Intellectual Property * +* and is licensed under the * +* Eclipse Public License, Version 1.0 * +* by AT&T Intellectual Property * +* * +* A copy of the License is available at * +* http://www.eclipse.org/org/documents/epl-v10.html * +* (with md5 checksum b35adb5213ca9657e911e9befb180842) * +* * +* Information and Software Systems Research * +* AT&T Research * +* Florham Park NJ * +* * +* Glenn Fowler <gsf@research.att.com> * +* David Korn <dgk@research.att.com> * +* Phong Vo <kpv@research.att.com> * +* * +***********************************************************************/ +#include <ast_stdio.h> diff --git a/src/lib/libast/std/wchar.h b/src/lib/libast/std/wchar.h new file mode 100644 index 0000000..9737c2d --- /dev/null +++ b/src/lib/libast/std/wchar.h @@ -0,0 +1,22 @@ +/*********************************************************************** +* * +* This software is part of the ast package * +* Copyright (c) 1985-2011 AT&T Intellectual Property * +* and is licensed under the * +* Eclipse Public License, Version 1.0 * +* by AT&T Intellectual Property * +* * +* A copy of the License is available at * +* http://www.eclipse.org/org/documents/epl-v10.html * +* (with md5 checksum b35adb5213ca9657e911e9befb180842) * +* * +* Information and Software Systems Research * +* AT&T Research * +* Florham Park NJ * +* * +* Glenn Fowler <gsf@research.att.com> * +* David Korn <dgk@research.att.com> * +* Phong Vo <kpv@research.att.com> * +* * +***********************************************************************/ +#include <ast_wchar.h> diff --git a/src/lib/libast/std/wctype.h b/src/lib/libast/std/wctype.h new file mode 100644 index 0000000..1a3a94f --- /dev/null +++ b/src/lib/libast/std/wctype.h @@ -0,0 +1,22 @@ +/*********************************************************************** +* * +* This software is part of the ast package * +* Copyright (c) 1985-2011 AT&T Intellectual Property * +* and is licensed under the * +* Eclipse Public License, Version 1.0 * +* by AT&T Intellectual Property * +* * +* A copy of the License is available at * +* http://www.eclipse.org/org/documents/epl-v10.html * +* (with md5 checksum b35adb5213ca9657e911e9befb180842) * +* * +* Information and Software Systems Research * +* AT&T Research * +* Florham Park NJ * +* * +* Glenn Fowler <gsf@research.att.com> * +* David Korn <dgk@research.att.com> * +* Phong Vo <kpv@research.att.com> * +* * +***********************************************************************/ +#include <ast_wctype.h> |