Add asctime(), asctime_r(), ctime(), and ctime_r().
This commit is contained in:
parent
f5f5a3766a
commit
3b5adf79dc
@ -308,6 +308,7 @@ config THTTPD_TILDE_MAP2
|
||||
config THTTPD_GENERATE_INDICES
|
||||
bool "Generate name indices"
|
||||
default n
|
||||
select TIME_EXTENDED
|
||||
---help---
|
||||
|
||||
config THTTPD_USE_URLPATTERN
|
||||
|
@ -154,7 +154,7 @@ void httpd_strdecode(char *to, char *from)
|
||||
/* Copies and encodes a string. */
|
||||
|
||||
#ifdef CONFIG_THTTPD_GENERATE_INDICES
|
||||
static void httpd_strencode(char *to, int tosize, char *from)
|
||||
void httpd_strencode(char *to, int tosize, char *from)
|
||||
{
|
||||
int tolen;
|
||||
|
||||
|
@ -2,7 +2,7 @@
|
||||
* netutils/thttpd/thttpd_strings.h
|
||||
* HTTP strings
|
||||
*
|
||||
* Copyright (C) 2009 Gregory Nutt. All rights reserved.
|
||||
* Copyright (C) 2009, 2015 Gregory Nutt. All rights reserved.
|
||||
* Author: Gregory Nutt <gnutt@nuttx.org>
|
||||
*
|
||||
* Derived from the file of the same name in the original THTTPD package:
|
||||
@ -111,12 +111,12 @@ extern const char html_endhdr2[];
|
||||
|
||||
/* Copies and decodes a string. It's ok for from and to to be the same string. */
|
||||
|
||||
extern void httpd_strdecode(char *to, char *from);
|
||||
void httpd_strdecode(char *to, char *from);
|
||||
|
||||
/* Copies and encodes a string. */
|
||||
|
||||
#ifdef CONFIG_THTTPD_GENERATE_INDICES
|
||||
extern void httpd_strencode(char *to, int tosize, char *from);
|
||||
void httpd_strencode(char *to, int tosize, char *from);
|
||||
#endif
|
||||
|
||||
#endif /* CONFIG_THTTPD */
|
||||
|
Loading…
Reference in New Issue
Block a user