PageRenderTime 45ms CodeModel.GetById 19ms RepoModel.GetById 0ms app.codeStats 0ms

/bash-4.0/include/posixtime.h

https://github.com/nubecoder/android_bash
C Header | 49 lines | 22 code | 5 blank | 22 comment | 4 complexity | 8c5f3b85028035de9ecde19c447edff5 MD5 | raw file
  1. /* posixtime.h -- wrapper for time.h, sys/times.h mess. */
  2. /* Copyright (C) 1999 Free Software Foundation, Inc.
  3. This file is part of GNU Bash, the Bourne Again SHell.
  4. Bash is free software: you can redistribute it and/or modify
  5. it under the terms of the GNU General Public License as published by
  6. the Free Software Foundation, either version 3 of the License, or
  7. (at your option) any later version.
  8. Bash is distributed in the hope that it will be useful,
  9. but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11. GNU General Public License for more details.
  12. You should have received a copy of the GNU General Public License
  13. along with Bash. If not, see <http://www.gnu.org/licenses/>.
  14. */
  15. #ifndef _POSIXTIME_H_
  16. #define _POSIXTIME_H_
  17. /* include this after config.h */
  18. /* Some systems require this, mostly for the definition of `struct timezone'.
  19. For example, Dynix/ptx has that definition in <time.h> rather than
  20. sys/time.h */
  21. #if defined (TIME_WITH_SYS_TIME)
  22. # include <sys/time.h>
  23. # include <time.h>
  24. #else
  25. # if defined (HAVE_SYS_TIME_H)
  26. # include <sys/time.h>
  27. # else
  28. # include <time.h>
  29. # endif
  30. #endif
  31. #if !defined (HAVE_SYSCONF) || !defined (_SC_CLK_TCK)
  32. # if !defined (CLK_TCK)
  33. # if defined (HZ)
  34. # define CLK_TCK HZ
  35. # else
  36. # define CLK_TCK 60 /* 60HZ */
  37. # endif
  38. # endif /* !CLK_TCK */
  39. #endif /* !HAVE_SYSCONF && !_SC_CLK_TCK */
  40. #endif /* _POSIXTIME_H_ */