nfs-ganesha 1.4

solaris_port.h

Go to the documentation of this file.
00001 /*
00002  * vim:expandtab:shiftwidth=8:tabstop=8:
00003  */
00004 
00012 #ifndef _SOLARIS_PORT_H
00013 #define _SOLARIS_PORT_H
00014 
00015 /* Do not use deprecated AUTH_DES */
00016 #define  _RPC_AUTH_DES_H
00017 
00018 /* Do not use RPCBIND by default */
00019 #define  _RPCB_PROT_H_RPCGEN
00020 
00021 #include <sys/select.h>
00022 #define __FDS_BITS(set) ((set)->fds_bits)
00023 
00024 /* #define       svc_getcaller(x) (&(x)->xp_rtaddr.buf) */
00025 #define       svc_getcaller(x) (&(x)->xp_raddr)
00026 
00027 #ifdef _USE_FUSE
00028 #include <sys/time_impl.h>
00029 #define INT_MAX 2147483647
00030 #define S_BLKSIZE      512      /* Block size for `st_blocks'.  */
00031 
00032 #endif                          /* _USE_FUSE */
00033 
00034 #ifdef _USE_POSIX
00035 #include <sys/time_impl.h>
00036 #define S_BLKSIZE      512      /* Block size for `st_blocks'.  */
00037 #define NAME_MAX  255
00038 #define HOST_NAME_MAX 64
00039 #define LOGIN_NAME_MAX 256
00040 #endif
00041 
00042 #ifdef _USE_SNMP
00043 #define HOST_NAME_MAX 64
00044 typedef unsigned long u_long;
00045 typedef unsigned char u_char;
00046 typedef unsigned short u_short;
00047 #endif
00048 
00049 #endif