137f12739251d2637c9405c75951962b5e27bbceeAndrew Hsieh/* -*- c++ -*- */
237f12739251d2637c9405c75951962b5e27bbceeAndrew Hsieh/*
337f12739251d2637c9405c75951962b5e27bbceeAndrew Hsieh * Copyright (C) 2009 The Android Open Source Project
437f12739251d2637c9405c75951962b5e27bbceeAndrew Hsieh * All rights reserved.
537f12739251d2637c9405c75951962b5e27bbceeAndrew Hsieh *
637f12739251d2637c9405c75951962b5e27bbceeAndrew Hsieh * Redistribution and use in source and binary forms, with or without
737f12739251d2637c9405c75951962b5e27bbceeAndrew Hsieh * modification, are permitted provided that the following conditions
837f12739251d2637c9405c75951962b5e27bbceeAndrew Hsieh * are met:
937f12739251d2637c9405c75951962b5e27bbceeAndrew Hsieh *  * Redistributions of source code must retain the above copyright
1037f12739251d2637c9405c75951962b5e27bbceeAndrew Hsieh *    notice, this list of conditions and the following disclaimer.
1137f12739251d2637c9405c75951962b5e27bbceeAndrew Hsieh *  * Redistributions in binary form must reproduce the above copyright
1237f12739251d2637c9405c75951962b5e27bbceeAndrew Hsieh *    notice, this list of conditions and the following disclaimer in
1337f12739251d2637c9405c75951962b5e27bbceeAndrew Hsieh *    the documentation and/or other materials provided with the
1437f12739251d2637c9405c75951962b5e27bbceeAndrew Hsieh *    distribution.
1537f12739251d2637c9405c75951962b5e27bbceeAndrew Hsieh *
1637f12739251d2637c9405c75951962b5e27bbceeAndrew Hsieh * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
1737f12739251d2637c9405c75951962b5e27bbceeAndrew Hsieh * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
1837f12739251d2637c9405c75951962b5e27bbceeAndrew Hsieh * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
1937f12739251d2637c9405c75951962b5e27bbceeAndrew Hsieh * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
2037f12739251d2637c9405c75951962b5e27bbceeAndrew Hsieh * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
2137f12739251d2637c9405c75951962b5e27bbceeAndrew Hsieh * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
2237f12739251d2637c9405c75951962b5e27bbceeAndrew Hsieh * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
2337f12739251d2637c9405c75951962b5e27bbceeAndrew Hsieh * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
2437f12739251d2637c9405c75951962b5e27bbceeAndrew Hsieh * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
2537f12739251d2637c9405c75951962b5e27bbceeAndrew Hsieh * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
2637f12739251d2637c9405c75951962b5e27bbceeAndrew Hsieh * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
2737f12739251d2637c9405c75951962b5e27bbceeAndrew Hsieh * SUCH DAMAGE.
2837f12739251d2637c9405c75951962b5e27bbceeAndrew Hsieh */
2937f12739251d2637c9405c75951962b5e27bbceeAndrew Hsieh
3037f12739251d2637c9405c75951962b5e27bbceeAndrew Hsieh#ifndef BIONIC_LIBSTDCPP_INCLUDE_CTIME__
3137f12739251d2637c9405c75951962b5e27bbceeAndrew Hsieh#define BIONIC_LIBSTDCPP_INCLUDE_CTIME__
3237f12739251d2637c9405c75951962b5e27bbceeAndrew Hsieh
3337f12739251d2637c9405c75951962b5e27bbceeAndrew Hsieh/*
3437f12739251d2637c9405c75951962b5e27bbceeAndrew Hsieh * Standard C++ Library wrapper around the C time.h header file.
3537f12739251d2637c9405c75951962b5e27bbceeAndrew Hsieh */
3637f12739251d2637c9405c75951962b5e27bbceeAndrew Hsieh
3737f12739251d2637c9405c75951962b5e27bbceeAndrew Hsieh#include <cstddef>
3837f12739251d2637c9405c75951962b5e27bbceeAndrew Hsieh#include <time.h>
3937f12739251d2637c9405c75951962b5e27bbceeAndrew Hsieh
4037f12739251d2637c9405c75951962b5e27bbceeAndrew Hsiehextern "C++" {
4137f12739251d2637c9405c75951962b5e27bbceeAndrew Hsieh
4237f12739251d2637c9405c75951962b5e27bbceeAndrew Hsiehnamespace std
4337f12739251d2637c9405c75951962b5e27bbceeAndrew Hsieh{
4437f12739251d2637c9405c75951962b5e27bbceeAndrew Hsieh// Types.
4537f12739251d2637c9405c75951962b5e27bbceeAndrew Hsiehusing ::clock_t;
4637f12739251d2637c9405c75951962b5e27bbceeAndrew Hsiehusing ::time_t;
4737f12739251d2637c9405c75951962b5e27bbceeAndrew Hsiehusing ::tm;
4837f12739251d2637c9405c75951962b5e27bbceeAndrew Hsieh
4937f12739251d2637c9405c75951962b5e27bbceeAndrew Hsieh// Functions.
5037f12739251d2637c9405c75951962b5e27bbceeAndrew Hsiehusing ::clock;
5137f12739251d2637c9405c75951962b5e27bbceeAndrew Hsiehusing ::difftime;
5237f12739251d2637c9405c75951962b5e27bbceeAndrew Hsiehusing ::mktime;
5337f12739251d2637c9405c75951962b5e27bbceeAndrew Hsiehusing ::time;
5437f12739251d2637c9405c75951962b5e27bbceeAndrew Hsiehusing ::asctime;
5537f12739251d2637c9405c75951962b5e27bbceeAndrew Hsiehusing ::ctime;
5637f12739251d2637c9405c75951962b5e27bbceeAndrew Hsiehusing ::gmtime;
5737f12739251d2637c9405c75951962b5e27bbceeAndrew Hsiehusing ::localtime;
5837f12739251d2637c9405c75951962b5e27bbceeAndrew Hsiehusing ::strftime;
5937f12739251d2637c9405c75951962b5e27bbceeAndrew Hsieh}  // namespace std
6037f12739251d2637c9405c75951962b5e27bbceeAndrew Hsieh
6137f12739251d2637c9405c75951962b5e27bbceeAndrew Hsieh}  // extern C++
6237f12739251d2637c9405c75951962b5e27bbceeAndrew Hsieh
6337f12739251d2637c9405c75951962b5e27bbceeAndrew Hsieh#endif  // BIONIC_LIBSTDCPP_INCLUDE_CTIME__
64