X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=blobdiff_plain;f=libcfs%2Finclude%2Flibcfs%2Fdarwin%2Fkp30.h;h=7dc581e791af14465f6d1a5fc3bbcc24354036ed;hp=c8237876a1951a919990dc04d1616312e8531fdf;hb=f95393b0d0a59cf3dc2f29cffc35dcc4cc9d7728;hpb=70e80ade90af09300396706b8910e196a7928520 diff --git a/libcfs/include/libcfs/darwin/kp30.h b/libcfs/include/libcfs/darwin/kp30.h index c823787..7dc581e 100644 --- a/libcfs/include/libcfs/darwin/kp30.h +++ b/libcfs/include/libcfs/darwin/kp30.h @@ -16,8 +16,8 @@ * in the LICENSE file that accompanied this code). * * You should have received a copy of the GNU General Public License - * version 2 along with this program; If not, see [sun.com URL with a - * copy of GPLv2]. + * version 2 along with this program; If not, see + * http://www.sun.com/software/products/lustre/docs/GPLv2.pdf * * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara, * CA 95054 USA or visit www.sun.com if you need additional information or @@ -26,7 +26,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. */ /* @@ -37,10 +37,6 @@ #ifndef __LIBCFS_DARWIN_KP30__ #define __LIBCFS_DARWIN_KP30__ -#ifndef __LIBCFS_KP30_H__ -#error Do not #include this file directly. #include instead -#endif - #ifdef __KERNEL__ #include @@ -57,8 +53,6 @@ #include #include -#define our_cond_resched() cfs_schedule_timeout(CFS_TASK_INTERRUPTIBLE, 1) - #ifdef CONFIG_SMP #define LASSERT_SPIN_LOCKED(lock) do {} while(0) /* XXX */ #else @@ -125,10 +119,20 @@ typedef struct { #define LPU64 "%llu" #define LPD64 "%lld" #define LPX64 "%#llx" -#define LPSZ "%lu" -#define LPSSZ "%ld" # define LI_POISON ((int)0x5a5a5a5a) # define LL_POISON ((long)0x5a5a5a5a) # define LP_POISON ((void *)(long)0x5a5a5a5a) +/* + * long_ptr_t & ulong_ptr_t, same to "long" for gcc + */ +# define LPLU "%lu" +# define LPLD "%ld" +# define LPLX "%#lx" + +/* + * pid_t + */ +# define LPPID "%d" + #endif