summaryrefslogtreecommitdiff
path: root/source3/include
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>1996-08-17 14:27:12 +0000
committerAndrew Tridgell <tridge@samba.org>1996-08-17 14:27:12 +0000
commitefb8113d00a4513c1115640004c0905465d3b673 (patch)
tree13823188f1f1b05a4861611a806109d2281e6479 /source3/include
parente351461e094a14caed31b7eae37e39d935d30561 (diff)
downloadsamba-efb8113d00a4513c1115640004c0905465d3b673.tar.gz
samba-efb8113d00a4513c1115640004c0905465d3b673.tar.bz2
samba-efb8113d00a4513c1115640004c0905465d3b673.zip
- made FAST_SHARE_MODES standard for Linux
- you can now press enter after a password prompt with "smbclient -L hostname" and it will use a blank username and password, the same as if you used -U% - changed the wins.dat store code to not go via a string variable (just use fprintf instead) - removed a "unsigned long" that luke put back in, changing it to uint32 to keep 64 bit machines happy. Naughtly luke! - allow guest non-connnected print queue listings so ms client 3 can work (This used to be commit 917160dee69bbc198985b6f3232ca2dcda809d8a)
Diffstat (limited to 'source3/include')
-rw-r--r--source3/include/includes.h9
-rw-r--r--source3/include/proto.h5
2 files changed, 5 insertions, 9 deletions
diff --git a/source3/include/includes.h b/source3/include/includes.h
index 79400683fe..35ef18055c 100644
--- a/source3/include/includes.h
+++ b/source3/include/includes.h
@@ -183,10 +183,6 @@
#endif
#endif
-#if defined(USE_MMAP) || defined(FAST_SHARE_MODES)
-#include <sys/mman.h>
-#endif
-
#if defined(GETPWANAM)
#include <sys/types.h>
#include <sys/label.h>
@@ -224,6 +220,7 @@ Here come some platform specific sections
#define HAVE_BZERO
#define HAVE_MEMMOVE
#define USE_SIGPROCMASK
+#define FAST_SHARE_MODES 1
#if 0
/* SETFS disabled until we can check on some bug reports */
#if _LINUX_C_LIB_VERSION_MAJOR >= 5
@@ -909,6 +906,10 @@ typedef int mode_t;
end of the platform specific sections
********************************************************************/
+#if defined(USE_MMAP) || FAST_SHARE_MODES
+#include <sys/mman.h>
+#endif
+
#ifdef SecureWare
#define NEED_AUTH_PARAMETERS
#endif
diff --git a/source3/include/proto.h b/source3/include/proto.h
index 87ad286df3..c1697dc641 100644
--- a/source3/include/proto.h
+++ b/source3/include/proto.h
@@ -796,11 +796,6 @@ BOOL become_user(int cnum, int uid);
BOOL unbecome_user(void );
int smbrun(char *cmd,char *outfile);
-/*The following definitions come from unxlog.c */
-
-void write_utmp(int dologin, int connection, int pid,
- char *from_addr, char *username);
-
/*The following definitions come from username.c */
char *get_home_dir(char *user);