summaryrefslogtreecommitdiff
path: root/source3/include
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2002-01-10 01:49:09 +0000
committerJeremy Allison <jra@samba.org>2002-01-10 01:49:09 +0000
commit09571aa76d8c1f4994abe48e5dad4746a04c288b (patch)
tree3391cbe74243ddbb69437abc88502ce0ce21eddd /source3/include
parent87db7c557b519b00ebdfd5d35cee038f2071db09 (diff)
downloadsamba-09571aa76d8c1f4994abe48e5dad4746a04c288b.tar.gz
samba-09571aa76d8c1f4994abe48e5dad4746a04c288b.tar.bz2
samba-09571aa76d8c1f4994abe48e5dad4746a04c288b.zip
We need to test for major/minor macros.
Jeremy. (This used to be commit ee8c8add7f83d7a794546769c59c85ef8bb5b89a)
Diffstat (limited to 'source3/include')
-rw-r--r--source3/include/config.h.in2
-rw-r--r--source3/include/trans2.h11
2 files changed, 13 insertions, 0 deletions
diff --git a/source3/include/config.h.in b/source3/include/config.h.in
index 164d2fb755..fe4ff0df38 100644
--- a/source3/include/config.h.in
+++ b/source3/include/config.h.in
@@ -254,6 +254,8 @@
#undef HAVE_LDAP
#undef HAVE_STAT_ST_BLOCKS
#undef STAT_ST_BLOCKSIZE
+#undef HAVE_DEVICE_MAJOR_FN
+#undef HAVE_DEVICE_MINOR_FN
/* The number of bytes in a int. */
#undef SIZEOF_INT
diff --git a/source3/include/trans2.h b/source3/include/trans2.h
index 55b1670aa7..53f351d5cf 100644
--- a/source3/include/trans2.h
+++ b/source3/include/trans2.h
@@ -316,11 +316,21 @@ Byte offset Type name description
#define MIN_UNIX_INFO_LEVEL 0x200
#define MAX_UNIX_INFO_LEVEL 0x2FF
+#define INFO_LEVEL_IS_UNIX(level) (((level) >= MIN_UNIX_INFO_LEVEL) && ((level) <= MAX_UNIX_INFO_LEVEL))
+
#define SMB_QUERY_FILE_UNIX_BASIC 0x200 /* UNIX File Info*/
#define SMB_SET_FILE_UNIX_BASIC 0x200
#define MODE_NO_CHANGE -1 /* file mode value which */
/* means "don't change it" */
+#define UNIX_TYPE_FILE 0
+#define UNIX_TYPE_DIR 1
+#define UNIX_TYPE_SYMLINK 2
+#define UNIX_TYPE_CHARDEV 3
+#define UNIX_TYPE_BLKDEV 4
+#define UNIX_TYPE_FIFO 5
+#define UNIX_TYPE_SOCKET 6
+#define UNIx_TYPE_UNKNOWN 0xFFFFFFFF
/*
LARGE_INTEGER EndOfFile File size
@@ -337,6 +347,7 @@ Byte offset Type name description
3 -- Character device
4 -- Block device
5 -- FIFO (named pipe)
+ 6 -- Unix domain socket
LARGE_INTEGER devmajor Major device number if type is device
LARGE_INTEGER devminor Minor device number if type is device