1 /*! \file oscalls.h 2 * \brief slim wrapper for OS API calls. 3 * 4 * \author Rainer Gerhards <rgerhards@adiscon.com> 5 * \date 2003-09-02 6 * Coding begun. 7 * 8 * Copyright 2002-2014 9 * Rainer Gerhards and Adiscon GmbH. All Rights Reserved. 10 * 11 * Redistribution and use in source and binary forms, with or without 12 * modification, are permitted provided that the following conditions are 13 * met: 14 * 15 * * Redistributions of source code must retain the above copyright 16 * notice, this list of conditions and the following disclaimer. 17 * 18 * * Redistributions in binary form must reproduce the above copyright 19 * notice, this list of conditions and the following disclaimer in 20 * the documentation and/or other materials provided with the 21 * distribution. 22 * 23 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS 24 * IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED 25 * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A 26 * PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER 27 * OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, 28 * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, 29 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR 30 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF 31 * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING 32 * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 33 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 34 */ 35 #ifndef __LIB3195_OSCALLS_H_INCLUDED__ 36 #define __LIB3195_OSCALLS_H_INCLUDED__ 1 37 38 #include "settings.h" 39 40 /** 41 * Get the current date/time in the best resolution the operating 42 * system has to offer (well, actually at most down to the milli- 43 * second level. 44 * 45 * The date and time is returned in separate fields as this is 46 * most portable and removes the need for additional structures 47 * (but I have to admit it is somewhat "bulky";)). 48 * 49 * Obviously, all caller-provided pointers must not be NULL... 50 */ 51 srRetVal getCurrTime(int* year, int* month, int* day, int *hour, int* minute, int *second, 52 int* millisec, int *bHasMS, char* pcOffsetMode, int* pOffsetHour, 53 int* pOffsetMinute); 54 55 #endif 56