diff options
author | Jeremy Allison <jra@samba.org> | 2000-03-22 19:03:12 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2000-03-22 19:03:12 +0000 |
commit | f02999dbf7971b4ea05050d7206205d7737a78b2 (patch) | |
tree | 8e1e928b3a7b4b54186c1a6e535eb36742e090f1 /source/include | |
parent | 67d9b3733f7f3ffab0ff6e78de7638fb469195e6 (diff) | |
download | samba-f02999dbf7971b4ea05050d7206205d7737a78b2.tar.gz |
acconfig.h configure configure.in: Added check for UT_SYSLEN for utmp code.
include/byteorder.h: Added alignment macros.
include/nameserv.h: Added defines for msg_type field options - from rfc1002.
lib/time.c: Typo fix.
lib/util_unistr.c: Updates from UNICODE branch.
printing/nt_printing.c: bzero -> memset.
smbd/connection.c: Added check for UT_SYSLEN for utmp code.
Other fixes : Rollback of unapproved commit from Luke.
Please *ask* next time before doing large changes to HEAD.
Jeremy.
Diffstat (limited to 'source/include')
-rw-r--r-- | source/include/byteorder.h | 4 | ||||
-rw-r--r-- | source/include/config.h.in | 1 | ||||
-rw-r--r-- | source/include/nameserv.h | 9 |
3 files changed, 14 insertions, 0 deletions
diff --git a/source/include/byteorder.h b/source/include/byteorder.h index 59ae4979fde..b376a8964c4 100644 --- a/source/include/byteorder.h +++ b/source/include/byteorder.h @@ -262,4 +262,8 @@ it also defines lots of intermediate macros, just ignore those :-) DEBUG(5,("%s%04x %s: %08x\n", \ tab_depth(depth), base, string, outbuf)); } +/* Alignment macros. */ +#define ALIGN4(p,base) ((4 - (PTR_DIFF((q), (base)) % 4)) & ~3) +#define ALIGN2(p,base) ((2 - (PTR_DIFF((q), (base)) % 2)) & ~1) + #endif /* _BYTEORDER_H */ diff --git a/source/include/config.h.in b/source/include/config.h.in index d4d5a8c2134..69f586be9cf 100644 --- a/source/include/config.h.in +++ b/source/include/config.h.in @@ -184,6 +184,7 @@ #undef HAVE_LIBDL #undef NEED_SGI_SEMUN_HACK #undef SYSCONF_SC_NGROUPS_MAX +#undef HAVE_UX_UT_SYSLEN /* The number of bytes in a int. */ #undef SIZEOF_INT diff --git a/source/include/nameserv.h b/source/include/nameserv.h index 3473c74a56a..d9f830e0b36 100644 --- a/source/include/nameserv.h +++ b/source/include/nameserv.h @@ -453,6 +453,15 @@ struct nmb_packet struct res_rec *additional; }; +/* msg_type field options - from rfc1002. */ + +#define DGRAM_UNIQUE 0x10 +#define DGRAM_GROUP 0x11 +#define DGRAM_BROADCAST 0x12 +#define DGRAM_ERROR 0x13 +#define DGRAM_QUERY_REQUEST 0x14 +#define DGRAM_POSITIVE_QUERY_RESPONSE 0x15 +#define DGRAM_NEGATIVE_QUERT_RESPONSE 0x16 /* A datagram - this normally contains SMB data in the data[] array. */ |