uint32_t s_addr;
};
-#ifndef UINT8_MAX
-#define UINT8_MAX 255
-#endif
-
-#ifndef UINT16_MAX
-#define UINT16_MAX 65535
-#endif
-
#ifndef MIN
#define MIN(a,b) ((a)<(b)?(a):(b))
#endif
#include <dlfcn.h>
#endif
+#ifdef HAVE_SYS_RESOURCE_H
+#include <sys/resource.h>
+#endif
+
+
+#ifdef HAVE_SYS_PARAM_H
+#include <sys/param.h>
+#endif
+
+#ifdef HAVE_LIMITS_H
+#include <limits.h>
+#endif
+
+
#ifndef RTLD_LAZY
#define RTLD_LAZY 0
#endif
#ifndef HAVE_RENAME
int rename(const char *zfrom, const char *zto);
#endif
+
+#ifndef UINT16_MAX
+#define UINT16_MAX 65535
+#endif
+
+++ /dev/null
-/*
- Unix SMB/CIFS implementation.
-
- resource system include wrappers
-
- Copyright (C) Andrew Tridgell 2004
-
- This program is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 2 of the License, or
- (at your option) any later version.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program; if not, write to the Free Software
- Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
-*/
-
-#ifdef HAVE_SYS_RESOURCE_H
-#include <sys/resource.h>
-#endif
-
-
-#ifdef HAVE_SYS_PARAM_H
-#include <sys/param.h>
-#endif
-
-#ifdef HAVE_LIMITS_H
-#include <limits.h>
-#endif
-
#include "includes.h"
#include "system/wait.h"
#include "system/time.h"
+#include "system/network.h"
void replace_dummy(void);
void replace_dummy(void) {}
#ifndef WITH_PTHREADS
/* REWRITE: not thread safe */
#ifdef REPLACE_INET_NTOA
-char *rep_inet_ntoa(struct ipv4_addr ip)
+ char *rep_inet_ntoa(struct in_addr ip)
{
uint8_t *p = (uint8_t *)&ip.s_addr;
static char buf[18];
#include "includes.h"
+#include "system/filesys.h"
/* this is the private structure used to keep the state of an open
ipc$ connection. It needs to keep information about all open
#include "include/includes.h"
#include "vfs_posix.h"
#include "system/time.h"
+#include "system/filesys.h"
/*
create file handles with convenient numbers for sniffers
#include "include/includes.h"
#include "vfs_posix.h"
+#include "system/filesys.h"
/*
read from a file
#include "include/includes.h"
#include "vfs_posix.h"
#include "system/time.h"
+#include "system/filesys.h"
/* the state of a search started with pvfs_search_first() */
*/
#include "includes.h"
+#include "system/filesys.h"
/****************************************************************************
init the tcon structures