Relicense Sortix to the ISC license.
I hereby relicense all my work on Sortix under the ISC license as below.
All Sortix contributions by other people are already under this license,
are not substantial enough to be copyrightable, or have been removed.
All imported code from other projects is compatible with this license.
All GPL licensed code from other projects had previously been removed.
Copyright 2011-2016 Jonas 'Sortie' Termansen and contributors.
Permission to use, copy, modify, and distribute this software for any
purpose with or without fee is hereby granted, provided that the above
copyright notice and this permission notice appear in all copies.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
2016-03-02 22:38:16 +00:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2011, 2014 Jonas 'Sortie' Termansen.
|
|
|
|
*
|
|
|
|
* Permission to use, copy, modify, and distribute this software for any
|
|
|
|
* purpose with or without fee is hereby granted, provided that the above
|
|
|
|
* copyright notice and this permission notice appear in all copies.
|
|
|
|
*
|
|
|
|
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
|
|
|
|
* WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
|
|
|
|
* MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
|
|
|
|
* ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
|
|
|
* WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
|
|
|
|
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
|
|
|
|
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
|
|
|
*
|
|
|
|
* ctype.h
|
|
|
|
* Character types.
|
|
|
|
*/
|
Added isalnum(3), isalpha(3), isblank(3), iscntrl(3), isdigit(3),
isgraph(3), islower(3), isprint(3), ispunct(3), isspace(3), isupper(3),
isxdigit(3), tolower(3), and toupper(3).
2012-01-08 14:35:35 +00:00
|
|
|
|
2014-04-02 15:56:48 +00:00
|
|
|
#ifndef INCLUDE_CTYPE_H
|
|
|
|
#define INCLUDE_CTYPE_H
|
Added isalnum(3), isalpha(3), isblank(3), iscntrl(3), isdigit(3),
isgraph(3), islower(3), isprint(3), ispunct(3), isspace(3), isupper(3),
isxdigit(3), tolower(3), and toupper(3).
2012-01-08 14:35:35 +00:00
|
|
|
|
2013-10-13 11:04:27 +00:00
|
|
|
#include <sys/cdefs.h>
|
Added isalnum(3), isalpha(3), isblank(3), iscntrl(3), isdigit(3),
isgraph(3), islower(3), isprint(3), ispunct(3), isspace(3), isupper(3),
isxdigit(3), tolower(3), and toupper(3).
2012-01-08 14:35:35 +00:00
|
|
|
|
2015-05-13 16:11:02 +00:00
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
Added isalnum(3), isalpha(3), isblank(3), iscntrl(3), isdigit(3),
isgraph(3), islower(3), isprint(3), ispunct(3), isspace(3), isupper(3),
isxdigit(3), tolower(3), and toupper(3).
2012-01-08 14:35:35 +00:00
|
|
|
|
2014-04-02 15:56:48 +00:00
|
|
|
#ifndef __locale_t_defined
|
|
|
|
#define __locale_t_defined
|
|
|
|
/* TODO: figure out what this does and typedef it properly. This is just a
|
|
|
|
temporary assignment. */
|
|
|
|
typedef int __locale_t;
|
|
|
|
typedef __locale_t locale_t;
|
|
|
|
#endif
|
|
|
|
|
Added isalnum(3), isalpha(3), isblank(3), iscntrl(3), isdigit(3),
isgraph(3), islower(3), isprint(3), ispunct(3), isspace(3), isupper(3),
isxdigit(3), tolower(3), and toupper(3).
2012-01-08 14:35:35 +00:00
|
|
|
int isalnum(int c);
|
2014-04-02 15:56:48 +00:00
|
|
|
/* TODO: isalnum_l */
|
Added isalnum(3), isalpha(3), isblank(3), iscntrl(3), isdigit(3),
isgraph(3), islower(3), isprint(3), ispunct(3), isspace(3), isupper(3),
isxdigit(3), tolower(3), and toupper(3).
2012-01-08 14:35:35 +00:00
|
|
|
int isalpha(int c);
|
2014-04-02 15:56:48 +00:00
|
|
|
/* TODO: isalpha_l */
|
|
|
|
int isascii(int c);
|
|
|
|
/* TODO: isascii_l */
|
Added isalnum(3), isalpha(3), isblank(3), iscntrl(3), isdigit(3),
isgraph(3), islower(3), isprint(3), ispunct(3), isspace(3), isupper(3),
isxdigit(3), tolower(3), and toupper(3).
2012-01-08 14:35:35 +00:00
|
|
|
int isblank(int c);
|
2014-04-02 15:56:48 +00:00
|
|
|
/* TODO: isblank_l */
|
Added isalnum(3), isalpha(3), isblank(3), iscntrl(3), isdigit(3),
isgraph(3), islower(3), isprint(3), ispunct(3), isspace(3), isupper(3),
isxdigit(3), tolower(3), and toupper(3).
2012-01-08 14:35:35 +00:00
|
|
|
int iscntrl(int c);
|
2014-04-02 15:56:48 +00:00
|
|
|
/* TODO: iscntrl_l */
|
Added isalnum(3), isalpha(3), isblank(3), iscntrl(3), isdigit(3),
isgraph(3), islower(3), isprint(3), ispunct(3), isspace(3), isupper(3),
isxdigit(3), tolower(3), and toupper(3).
2012-01-08 14:35:35 +00:00
|
|
|
int isdigit(int c);
|
2014-04-02 15:56:48 +00:00
|
|
|
/* TODO: isdigit_l */
|
Added isalnum(3), isalpha(3), isblank(3), iscntrl(3), isdigit(3),
isgraph(3), islower(3), isprint(3), ispunct(3), isspace(3), isupper(3),
isxdigit(3), tolower(3), and toupper(3).
2012-01-08 14:35:35 +00:00
|
|
|
int isgraph(int c);
|
2014-04-02 15:56:48 +00:00
|
|
|
/* TODO: isgraph_l */
|
Added isalnum(3), isalpha(3), isblank(3), iscntrl(3), isdigit(3),
isgraph(3), islower(3), isprint(3), ispunct(3), isspace(3), isupper(3),
isxdigit(3), tolower(3), and toupper(3).
2012-01-08 14:35:35 +00:00
|
|
|
int islower(int c);
|
2014-04-02 15:56:48 +00:00
|
|
|
/* TODO: islower_l */
|
Added isalnum(3), isalpha(3), isblank(3), iscntrl(3), isdigit(3),
isgraph(3), islower(3), isprint(3), ispunct(3), isspace(3), isupper(3),
isxdigit(3), tolower(3), and toupper(3).
2012-01-08 14:35:35 +00:00
|
|
|
int isprint(int c);
|
2014-04-02 15:56:48 +00:00
|
|
|
/* TODO: isprint_l */
|
Added isalnum(3), isalpha(3), isblank(3), iscntrl(3), isdigit(3),
isgraph(3), islower(3), isprint(3), ispunct(3), isspace(3), isupper(3),
isxdigit(3), tolower(3), and toupper(3).
2012-01-08 14:35:35 +00:00
|
|
|
int ispunct(int c);
|
2014-04-02 15:56:48 +00:00
|
|
|
/* TODO: ispunct_l */
|
Added isalnum(3), isalpha(3), isblank(3), iscntrl(3), isdigit(3),
isgraph(3), islower(3), isprint(3), ispunct(3), isspace(3), isupper(3),
isxdigit(3), tolower(3), and toupper(3).
2012-01-08 14:35:35 +00:00
|
|
|
int isspace(int c);
|
2014-04-02 15:56:48 +00:00
|
|
|
/* TODO: isspace_l */
|
Added isalnum(3), isalpha(3), isblank(3), iscntrl(3), isdigit(3),
isgraph(3), islower(3), isprint(3), ispunct(3), isspace(3), isupper(3),
isxdigit(3), tolower(3), and toupper(3).
2012-01-08 14:35:35 +00:00
|
|
|
int isupper(int c);
|
2014-04-02 15:56:48 +00:00
|
|
|
/* TODO: isupper_l */
|
Added isalnum(3), isalpha(3), isblank(3), iscntrl(3), isdigit(3),
isgraph(3), islower(3), isprint(3), ispunct(3), isspace(3), isupper(3),
isxdigit(3), tolower(3), and toupper(3).
2012-01-08 14:35:35 +00:00
|
|
|
int isxdigit(int c);
|
2014-04-02 15:56:48 +00:00
|
|
|
/* TODO: isxdigit_l */
|
Added isalnum(3), isalpha(3), isblank(3), iscntrl(3), isdigit(3),
isgraph(3), islower(3), isprint(3), ispunct(3), isspace(3), isupper(3),
isxdigit(3), tolower(3), and toupper(3).
2012-01-08 14:35:35 +00:00
|
|
|
int tolower(int c);
|
2014-04-02 15:56:48 +00:00
|
|
|
/* TODO: tolower_l */
|
Added isalnum(3), isalpha(3), isblank(3), iscntrl(3), isdigit(3),
isgraph(3), islower(3), isprint(3), ispunct(3), isspace(3), isupper(3),
isxdigit(3), tolower(3), and toupper(3).
2012-01-08 14:35:35 +00:00
|
|
|
int toupper(int c);
|
2014-04-02 15:56:48 +00:00
|
|
|
/* TODO: toupper_l */
|
Added isalnum(3), isalpha(3), isblank(3), iscntrl(3), isdigit(3),
isgraph(3), islower(3), isprint(3), ispunct(3), isspace(3), isupper(3),
isxdigit(3), tolower(3), and toupper(3).
2012-01-08 14:35:35 +00:00
|
|
|
|
2015-05-13 16:11:02 +00:00
|
|
|
#ifdef __cplusplus
|
|
|
|
} /* extern "C" */
|
|
|
|
#endif
|
Added isalnum(3), isalpha(3), isblank(3), iscntrl(3), isdigit(3),
isgraph(3), islower(3), isprint(3), ispunct(3), isspace(3), isupper(3),
isxdigit(3), tolower(3), and toupper(3).
2012-01-08 14:35:35 +00:00
|
|
|
|
|
|
|
#endif
|