summaryrefslogtreecommitdiff
path: root/usr/src
diff options
context:
space:
mode:
Diffstat (limited to 'usr/src')
-rw-r--r--usr/src/boot/lib/libstand/stand.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/usr/src/boot/lib/libstand/stand.h b/usr/src/boot/lib/libstand/stand.h
index 9406d4f296..5f94a7fa58 100644
--- a/usr/src/boot/lib/libstand/stand.h
+++ b/usr/src/boot/lib/libstand/stand.h
@@ -238,6 +238,22 @@ static __inline int isalnum(int c)
return (isalpha(c) || isdigit(c));
}
+static __inline int iscntrl(int c)
+{
+ return ((c >= 0 && c < ' ') || c == 127);
+}
+
+static __inline int isgraph(int c)
+{
+ return (c >= '!' && c <= '~');
+}
+
+static __inline int ispunct(int c)
+{
+ return ((c >= '!' && c <= '/') || (c >= ':' && c <= '@') ||
+ (c >= '[' && c <= '`') || (c >= '{' && c <= '~'));
+}
+
static __inline int toupper(int c)
{
return (islower(c) ? c - 'a' + 'A' : c);