Print this page
2964 need POSIX 2008 locale object support
@@ -1,10 +1,14 @@
/*
* Copyright 2010 Nexenta Systems, Inc. All rights reserved.
* Copyright (c) 1997-2002 FreeBSD Project.
* All rights reserved.
*
+ * Copyright (c) 2011 The FreeBSD Foundation
+ * All rights reserved.
+ * Portions of this software were developed by David Chisnall
+ *
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
@@ -26,10 +30,12 @@
*/
#ifndef _TIMELOCAL_H_
#define _TIMELOCAL_H_
+#include "xlocale_private.h"
+
/*
* Private header file for the strftime and strptime localization
* stuff.
*/
struct lc_time_T {
@@ -44,9 +50,15 @@
const char *pm;
const char *date_fmt;
const char *ampm_fmt;
};
-struct lc_time_T *__get_current_time_locale(void);
+struct xlocale_time {
+ struct xlocale_component header;
+ char *buffer;
+ struct lc_time_T locale;
+};
+
+struct lc_time_T *__get_current_time_locale(locale_t);
int __time_load_locale(const char *);
#endif /* !_TIMELOCAL_H_ */