Add asctime(), asctime_r(), ctime(), and ctime_r().

This commit is contained in:
Gregory Nutt 2015-06-12 11:52:49 -06:00
parent f5f5a3766a
commit 3b5adf79dc
3 changed files with 5 additions and 4 deletions

View File

@ -308,6 +308,7 @@ config THTTPD_TILDE_MAP2
config THTTPD_GENERATE_INDICES config THTTPD_GENERATE_INDICES
bool "Generate name indices" bool "Generate name indices"
default n default n
select TIME_EXTENDED
---help--- ---help---
config THTTPD_USE_URLPATTERN config THTTPD_USE_URLPATTERN

View File

@ -154,7 +154,7 @@ void httpd_strdecode(char *to, char *from)
/* Copies and encodes a string. */ /* Copies and encodes a string. */
#ifdef CONFIG_THTTPD_GENERATE_INDICES #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; int tolen;

View File

@ -2,7 +2,7 @@
* netutils/thttpd/thttpd_strings.h * netutils/thttpd/thttpd_strings.h
* HTTP strings * 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> * Author: Gregory Nutt <gnutt@nuttx.org>
* *
* Derived from the file of the same name in the original THTTPD package: * 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. */ /* 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. */ /* Copies and encodes a string. */
#ifdef CONFIG_THTTPD_GENERATE_INDICES #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
#endif /* CONFIG_THTTPD */ #endif /* CONFIG_THTTPD */