X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;f=libcfs%2Finclude%2Flibcfs%2Fuser-time.h;h=ae8f8ea4f4411381ea340e3b089e143449548de8;hb=d7b4e63d6e15389ebd4b9841c4df1bbc9a1c72c3;hp=5a5cc3ee13a1053dd7845535733d76a70dfab7e2;hpb=c8616363809a73b3d4b6c736e6b55a84d7f137b4;p=fs%2Flustre-release.git diff --git a/libcfs/include/libcfs/user-time.h b/libcfs/include/libcfs/user-time.h index 5a5cc3e..ae8f8ea 100644 --- a/libcfs/include/libcfs/user-time.h +++ b/libcfs/include/libcfs/user-time.h @@ -1,6 +1,4 @@ -/* -*- mode: c; c-basic-offset: 8; indent-tabs-mode: nil; -*- - * vim:expandtab:shiftwidth=8:tabstop=8: - * +/* * GPL HEADER START * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. @@ -26,7 +24,7 @@ * GPL HEADER END */ /* - * Copyright 2008 Sun Microsystems, Inc. All rights reserved + * Copyright (c) 2008, 2010, Oracle and/or its affiliates. All rights reserved. * Use is subject to license terms. */ /* @@ -99,11 +97,8 @@ typedef time_t cfs_fs_time_t; typedef time_t cfs_time_t; typedef time_t cfs_duration_t; -/* looks like linux */ -#define time_after(a, b) ((long)(b) - (long)(a) < 0) -#define time_before(a, b) time_after(b,a) -#define time_after_eq(a,b) ((long)(a) - (long)(b) >= 0) -#define time_before_eq(a,b) time_after_eq(b,a) +#define cfs_time_before(a, b) ((long)(a) - (long)(b) < 0) +#define cfs_time_beforeq(a, b) ((long)(b) - (long)(a) >= 0) static inline cfs_time_t cfs_time_current(void) {