summaryrefslogtreecommitdiff
path: root/source3/include/includes.h
diff options
context:
space:
mode:
authorTim Potter <tpot@samba.org>2000-02-03 04:47:50 +0000
committerTim Potter <tpot@samba.org>2000-02-03 04:47:50 +0000
commit04f7d80ac358520c0d6e351f790f59208853130a (patch)
treea069b1b38fbb74dc2290b89ae9e2f8e6b8078219 /source3/include/includes.h
parent18b31bce9710580355f7d3447f2f1849acb26c0c (diff)
downloadsamba-04f7d80ac358520c0d6e351f790f59208853130a.tar.gz
samba-04f7d80ac358520c0d6e351f790f59208853130a.tar.bz2
samba-04f7d80ac358520c0d6e351f790f59208853130a.zip
Busting up of source/include/smb.h into smaller pieces which can be
#included by VFS modules without bringing in too much other junk. (This used to be commit 13a2cf80f65156e725a5716e62a4c44e70f5340f)
Diffstat (limited to 'source3/include/includes.h')
-rw-r--r--source3/include/includes.h34
1 files changed, 9 insertions, 25 deletions
diff --git a/source3/include/includes.h b/source3/include/includes.h
index a049b725c4..5b3af75c04 100644
--- a/source3/include/includes.h
+++ b/source3/include/includes.h
@@ -686,31 +686,9 @@ typedef struct smb_wpasswd {
/***** automatically generated prototypes *****/
#include "proto.h"
-#ifdef strcpy
-#undef strcpy
-#endif /* strcpy */
-#define strcpy(dest,src) __ERROR__XX__NEVER_USE_STRCPY___;
-
-#ifdef strcat
-#undef strcat
-#endif /* strcat */
-#define strcat(dest,src) __ERROR__XX__NEVER_USE_STRCAT___;
-
-#ifdef sprintf
-#undef sprintf
-#endif /* sprintf */
-#define sprintf __ERROR__XX__NEVER_USE_SPRINTF__;
-
-#define pstrcpy(d,s) safe_strcpy((d),(s),sizeof(pstring)-1)
-#define pstrcat(d,s) safe_strcat((d),(s),sizeof(pstring)-1)
-#define fstrcpy(d,s) safe_strcpy((d),(s),sizeof(fstring)-1)
-#define fstrcat(d,s) safe_strcat((d),(s),sizeof(fstring)-1)
-
-/* smb_ucs2_t versions of the above. */
-#define wpstrcpy(d,s) safe_strcpy_w((d),(s),sizeof(wpstring))
-#define wpstrcat(d,s) safe_strcat_w((d),(s),sizeof(wpstring))
-#define wfstrcpy(d,s) safe_strcpy_w((d),(s),sizeof(wfstring))
-#define wfstrcat(d,s) safe_strcat_w((d),(s),sizeof(wfstring))
+/* String routines */
+
+#include "safe_string.h"
#ifdef __COMPAR_FN_T
#define QSORT_CAST (__compar_fn_t)
@@ -910,4 +888,10 @@ int setresgid(gid_t rgid, gid_t egid, gid_t sgid);
#define DEFAULT_SOCKET_OPTIONS ""
#endif
+/* Load header file for libdl stuff */
+
+#ifdef HAVE_LIBDL
+#include <dlfcn.h>
+#endif
+
#endif /* _INCLUDES_H */