Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions | Variables
udftime.c File Reference
#include "udfdecl.h"
#include <linux/types.h>
#include <linux/kernel.h>

Go to the source code of this file.

Macros

#define EPOCH_YEAR   1970
 
#define __isleap(year)   ((year) % 4 == 0 && ((year) % 100 != 0 || (year) % 400 == 0))
 
#define MAX_YEAR_SECONDS   69
 
#define SPD   0x15180 /*3600*24 */
 
#define SPY(y, l, s)   (SPD * (365 * y + l) + s)
 
#define SECS_PER_HOUR   (60 * 60)
 
#define SECS_PER_DAY   (SECS_PER_HOUR * 24)
 
#define DIV(a, b)   ((a) / (b) - ((a) % (b) < 0))
 
#define LEAPS_THRU_END_OF(y)   (DIV (y, 4) - DIV (y, 100) + DIV (y, 400))
 

Functions

struct timespecudf_disk_stamp_to_time (struct timespec *dest, struct timestamp src)
 
struct timestampudf_time_to_disk_stamp (struct timestamp *dest, struct timespec ts)
 

Variables

struct timezone sys_tz
 

Macro Definition Documentation

#define __isleap (   year)    ((year) % 4 == 0 && ((year) % 100 != 0 || (year) % 400 == 0))

Definition at line 47 of file udftime.c.

#define DIV (   a,
  b 
)    ((a) / (b) - ((a) % (b) < 0))
#define EPOCH_YEAR   1970

Definition at line 42 of file udftime.c.

#define LEAPS_THRU_END_OF (   y)    (DIV (y, 4) - DIV (y, 100) + DIV (y, 400))
#define MAX_YEAR_SECONDS   69

Definition at line 59 of file udftime.c.

#define SECS_PER_DAY   (SECS_PER_HOUR * 24)

Definition at line 87 of file udftime.c.

#define SECS_PER_HOUR   (60 * 60)

Definition at line 86 of file udftime.c.

#define SPD   0x15180 /*3600*24 */

Definition at line 60 of file udftime.c.

#define SPY (   y,
  l,
  s 
)    (SPD * (365 * y + l) + s)

Definition at line 61 of file udftime.c.

Function Documentation

struct timespec* udf_disk_stamp_to_time ( struct timespec dest,
struct timestamp  src 
)
read

Definition at line 90 of file udftime.c.

struct timestamp* udf_time_to_disk_stamp ( struct timestamp dest,
struct timespec  ts 
)
read

Definition at line 122 of file udftime.c.

Variable Documentation

struct timezone sys_tz

Definition at line 50 of file time.c.