AC_PREREQ(2.50)
-AC_INIT([libnfs], [1.3.0], [ronniesahlberg@gmail.com])
+AC_INIT([libnfs], [1.4.0], [ronniesahlberg@gmail.com])
AC_CONFIG_HEADERS([config.h])
AM_INIT_AUTOMAKE([foreign])
AC_CANONICAL_HOST
pdu.c \
socket.c
-libnfs_la_LDFLAGS = -version-info 1:3:0
+libnfs_la_LDFLAGS = -version-info 1:4:0
libnfs_la_LIBADD = \
../mount/libmount.la \
../nfs/libnfs.la \
assert(rpc->magic == RPC_CONTEXT_MAGIC);
+ assert(rpc->magic == RPC_CONTEXT_MAGIC);
+
#if defined(WIN32)
if (ioctlsocket(rpc->fd, FIONREAD, &available) != 0) {
#else
typedef opaque cookieverf3[NFS3_COOKIEVERFSIZE];
-
-/*unsigned hyper can be overridden by giving rpcgen -DU_INT64_PLATTFORM_TYPE="foo" - for plattforms
+/*unsigned hyper can be overridden by giving rpcgen -DU_INT64_PLATTFORM_TYPE="
where rpcgen doesn't know anything about hyper
default to unsigned hyper as of rfc 1813 */
#ifndef U_INT64_PLATTFORM_TYPE
#endif/*U_INT64_PLATTFORM_TYPE*/
typedef U_INT64_PLATTFORM_TYPE uint64;
+
typedef uint64 cookie3;
struct nfs_fh3 {
/* based on rfc1813 and wireshark */
+typedef unsigned hyper uint64;
struct nlm_fh4 {
opaque data<>;
bool exclusive;
unsigned int svid;
nlm4_oh oh;
- unsigned hyper l_offset;
- unsigned hyper l_len;
+ uint64 l_offset;
+ uint64 l_len;
};
const NLM_MAXNAME = 256;
struct nlm_fh4 fh;
nlm4_oh oh;
unsigned int svid;
- unsigned hyper l_offset;
- unsigned hyper l_len;
+ uint64 l_offset;
+ uint64 l_len;
};
struct nlm4_share {
%{_libdir}/pkgconfig/libnfs.pc
%changelog
+* Sun Nov 25 2012 : Version 1.4
+ - Add trackig of freed context and assert on using a context after it has been
+ freed.
+ - Windows x64 support and fixes.
+ - Switch to using our own version of xdr_int64() since the one in libtirpc
+ crashes on some platforms.
+ - Fix memory leak in an error path for addrinfo.
+ - Fix bug dereferencing a null pointer in the mount callback on error.
* Sat Mar 3 2012 : Version 1.3
- add set/unset to portmapper
- add mount v1