Project

General

Profile

Actions

Bug #5345

closed

ctype.h is missing tolower_l and toupper_l

Added by Richard PALO over 8 years ago. Updated over 8 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
lib - userland libraries
Start date:
2014-11-15
Due date:
% Done:

100%

Estimated time:
Difficulty:
Bite-size
Tags:
needs-triage
Gerrit CR:
External Bug:

Description

these are defined by posix
http://pubs.opengroup.org/onlinepubs/9699919799/functions/tolower.html
and
http://pubs.opengroup.org/onlinepubs/9699919799/functions/toupper.html

This patch seems to work:
diff --git a/usr/src/head/ctype.h b/usr/src/head/ctype.h
index 47e0d88..3e2d1fb 100644
--- a/usr/src/head/ctype.h
+++ b/usr/src/head/ctype.h
@ -107,6 +107,8 @ extern int ispunct_l(int, locale_t);
extern int isspace_l(int, locale_t);
extern int isupper_l(int, locale_t);
extern int isxdigit_l(int, locale_t);
+extern int tolower_l(int, locale_t);
+extern int toupper_l(int, locale_t);

#endif /* defined(_XPG7) || !defined(_STRICT_SYMBOLS) */
Actions #1

Updated by Electric Monk over 8 years ago

  • Status changed from New to Closed
  • % Done changed from 0 to 100

git commit 2ae3114cc2c67c8ccb4eecdad806614150ce34fd

commit  2ae3114cc2c67c8ccb4eecdad806614150ce34fd
Author: Richard PALO <richard@NetBSD.org>
Date:   2014-12-01T00:04:02.000Z

    5345 ctype.h is missing tolower_l and toupper_l
    Reviewed by: Garrett D'Amore <garrett@damore.org>
    Approved by: Richard Lowe <richlowe@richlowe.net>

Actions

Also available in: Atom PDF