Skip to content

Commit

Permalink
headers: delete all xdr related code
Browse files Browse the repository at this point in the history
  • Loading branch information
LER0ever committed Oct 15, 2018
1 parent 0127a02 commit 8d5806f
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 39 deletions.
6 changes: 0 additions & 6 deletions common/src/headers.h
Expand Up @@ -44,12 +44,6 @@
* Kludges to handle broken system includes and such...
*/

extern "C" {
typedef int (*xdr_rd_func)(void *, char *, int);
typedef int (*xdr_wr_func)(void *, char *, int);
}


#include "common/src/Types.h"

#if defined(os_linux) || defined(os_bgp) || defined(os_bg_ion) || defined(os_bgq_ion)
Expand Down
33 changes: 0 additions & 33 deletions common/src/linuxHeaders.h
Expand Up @@ -59,16 +59,8 @@
#include <sys/un.h>
#include <sys/syscall.h>

#if defined(HAVE_XDR_IN_GLIBC)
#include <rpc/types.h>
#include <rpc/xdr.h>
#endif

#define PDSOCKET_ERROR (-1)
typedef int PDSOCKET;
#if defined(HAVE_XDR_IN_GLIBC)
typedef int (*P_xdrproc_t)(XDR*, ...);
#endif
/* Not going to use on Linux Platform - already declared in /usr/include/errno.h
extern const char *sys_errlist[];
*/
Expand Down Expand Up @@ -268,31 +260,6 @@ extern void dedemangle( char * demangled, char * dedemangled );
extern COMMON_EXPORT char * P_cplus_demangle( const char * symbol, bool nativeCompiler,
bool includeTypes = false );

#if defined(HAVE_XDR_IN_GLIBC)
inline void P_xdr_destroy(XDR *x) { xdr_destroy(x);}
inline bool_t P_xdr_u_char(XDR *x, u_char *uc) { return (xdr_u_char(x, uc));}
inline bool_t P_xdr_int(XDR *x, int *i) { return (xdr_int(x, i));}
inline bool_t P_xdr_double(XDR *x, double *d) {
return (xdr_double(x, d));}
inline bool_t P_xdr_u_int(XDR *x, u_int *u){
return (xdr_u_int(x, u));}
inline bool_t P_xdr_float(XDR *x, float *f) {
return (xdr_float(x, f));}
inline bool_t P_xdr_char(XDR *x, char *c) {
return (xdr_char(x, c));}
inline bool_t P_xdr_string(XDR *x, char **h, const u_int maxsize) {
return (xdr_string(x, h, maxsize));}

inline void P_xdrrec_create(XDR *x, const u_int send_sz, const u_int rec_sz,
const caddr_t handle,
xdr_rd_func read_r, xdr_wr_func write_f) {
xdrrec_create(x, send_sz, rec_sz, handle, (int(*)(char*, char*, int))read_r, (int(*)(char*, char*, int))write_f);}
inline bool_t P_xdrrec_endofrecord(XDR *x, int now) {
return (xdrrec_endofrecord(x, now));}
inline bool_t P_xdrrec_skiprecord(XDR *x) { return (xdrrec_skiprecord(x));}
inline bool_t P_xdrrec_eof(XDR *x) { return (xdrrec_eof(x)); }
#endif

inline int P_mkdir(const char *pathname, mode_t mode) {
return mkdir(pathname, mode);
}
Expand Down

0 comments on commit 8d5806f

Please sign in to comment.