summaryrefslogtreecommitdiffstats
path: root/lib/libc/stdtime
diff options
context:
space:
mode:
authorphantom <phantom@FreeBSD.org>2002-01-24 15:07:44 +0000
committerphantom <phantom@FreeBSD.org>2002-01-24 15:07:44 +0000
commit205d3c89825fa40880d67d4c9c2b89d21bcb8e7f (patch)
tree90dbe6de4ed3d0446984071d7ecfe19eae0eeeeb /lib/libc/stdtime
parent6dc8ab99b20a02d64773ff9ca6bd10092ee80bae (diff)
downloadFreeBSD-src-205d3c89825fa40880d67d4c9c2b89d21bcb8e7f.zip
FreeBSD-src-205d3c89825fa40880d67d4c9c2b89d21bcb8e7f.tar.gz
* style(9)'fy
* declare prototype for __time_load_locale() in timelocal.h
Diffstat (limited to 'lib/libc/stdtime')
-rw-r--r--lib/libc/stdtime/timelocal.c30
-rw-r--r--lib/libc/stdtime/timelocal.h37
2 files changed, 34 insertions, 33 deletions
diff --git a/lib/libc/stdtime/timelocal.c b/lib/libc/stdtime/timelocal.c
index 6b35aba..48c4b8a 100644
--- a/lib/libc/stdtime/timelocal.c
+++ b/lib/libc/stdtime/timelocal.c
@@ -34,7 +34,7 @@
static struct lc_time_T _time_locale;
static int _time_using_locale;
-static char * time_locale_buf;
+static char *time_locale_buf;
#define LCTIME_SIZE (sizeof(struct lc_time_T) / sizeof(char *))
@@ -57,17 +57,17 @@ static const struct lc_time_T _C_time_locale = {
"%H:%M:%S",
/*
- ** x_fmt
- ** Since the C language standard calls for
- ** "date, using locale's date format," anything goes.
- ** Using just numbers (as here) makes Quakers happier;
- ** it's also compatible with SVR4.
- */
+ * x_fmt
+ * Since the C language standard calls for
+ * "date, using locale's date format," anything goes.
+ * Using just numbers (as here) makes Quakers happier;
+ * it's also compatible with SVR4.
+ */
"%m/%d/%y",
/*
- ** c_fmt
- */
+ * c_fmt
+ */
"%a %b %e %H:%M:%S %Y",
/* am */
@@ -80,21 +80,21 @@ static const struct lc_time_T _C_time_locale = {
"%a %b %e %H:%M:%S %Z %Y",
/* alt_month
- ** Standalone months forms for %OB
- */
+ * Standalone months forms for %OB
+ */
{
"January", "February", "March", "April", "May", "June",
"July", "August", "September", "October", "November", "December"
},
/* md_order
- ** Month / day order in dates
- */
+ * Month / day order in dates
+ */
"md",
/* ampm_fmt
- ** To determine 12-hour clock format time (empty, if N/A)
- */
+ * To determine 12-hour clock format time (empty, if N/A)
+ */
"%I:%M:%S %p"
};
diff --git a/lib/libc/stdtime/timelocal.h b/lib/libc/stdtime/timelocal.h
index 843c42b..5d26bf9 100644
--- a/lib/libc/stdtime/timelocal.h
+++ b/lib/libc/stdtime/timelocal.h
@@ -1,5 +1,5 @@
/*-
- * Copyright (c) 1997 FreeBSD Inc.
+ * Copyright (c) 1997-2002 FreeBSD Project.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -26,29 +26,30 @@
* $FreeBSD$
*/
-#ifndef _TIMELOCAL_H
-#define _TIMELOCAL_H
+#ifndef _TIMELOCAL_H_
+#define _TIMELOCAL_H_
/*
* Private header file for the strftime and strptime localization
* stuff.
*/
struct lc_time_T {
- const char * mon[12];
- const char * month[12];
- const char * wday[7];
- const char * weekday[7];
- const char * X_fmt;
- const char * x_fmt;
- const char * c_fmt;
- const char * am;
- const char * pm;
- const char * date_fmt;
- const char * alt_month[12];
- const char * md_order;
- const char * ampm_fmt;
+ const char *mon[12];
+ const char *month[12];
+ const char *wday[7];
+ const char *weekday[7];
+ const char *X_fmt;
+ const char *x_fmt;
+ const char *c_fmt;
+ const char *am;
+ const char *pm;
+ const char *date_fmt;
+ const char *alt_month[12];
+ const char *md_order;
+ const char *ampm_fmt;
};
-struct lc_time_T * __get_current_time_locale(void);
+struct lc_time_T *__get_current_time_locale(void);
+int __time_load_locale(const char *);
-#endif /* _TIMELOCAL_H */
+#endif /* !_TIMELOCAL_H_ */
OpenPOWER on IntegriCloud