Commit Graph

32 Commits (master)

Author SHA1 Message Date
Damian 901d4a0040 sys/time.h include clean-up (PS3 PPU) 2020-08-17 21:14:30 -03:00
Damian 1bafddb264 Include clean-up 2020-08-15 11:28:04 -03:00
Damian c7ad0762d8 Porting library to PS3 (psl1ght) 2020-08-14 11:47:39 -03:00
Daniel Abrecht b3fd3ca7e4 Move win32/win32_compat.h to include/win32/win32_compat.h 2018-04-16 19:42:38 +00:00
Lukas Rusak 7969c78291
add cmake build system support 2017-10-02 13:00:33 -07:00
Max Kellermann 43feceea8d don't call rpc_free_pdu() after rpc_queue_pdu() failure
rpc_queue_pdu() already calls rpc_free_pdu() in its failure code
path.  Doing that again would constitute a double free bug.
2017-03-08 14:29:06 +01:00
Jean-Baptiste Kempf 3ca22dcfdd Win32: Add win32_compat.h include 2016-01-08 23:23:00 +01:00
MilhouseVH 7b853063c9 Remove unused variables from raw (generated) files 2015-03-12 05:15:55 +00:00
Ronnie Sahlberg bce63d849c types: remove the [u_]quad type and replace with [u]int64
All current platforms have a quad type that maps to a 64bit scalar.
But there are platforms where quad maps to a 64bit non-scalar.

Replace quad with int64 in the protocol definitions and the ZDR layer
so that these fields will map to a 64 bit scalar also on those platforms
where quad can not be used.

Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>
2014-08-16 14:51:53 -07:00
Ronnie Sahlberg ea283cd792 RPC: include libnfs-zdr.h from all raw libnfs-raw-*.h files
Include the zdr header from all raw lowlevel headers so that we don't have to
include it manually from apps.

Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>
2014-07-13 15:36:59 -07:00
Ronnie Sahlberg af8d37c8b7 RPC: get rid of bool_t
Signed-off-by: Ronnie Sahlberg <sahlberg@localhost>
2014-07-05 09:14:01 -07:00
Ronnie Sahlberg d663ff20d0 RPC: get rid of references to SCVXPRT
Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>
2014-07-05 09:13:55 -07:00
Ronnie Sahlberg ef1f869943 RPC: get rid of all references to CLIENT
Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>
2014-07-05 09:13:49 -07:00
Ronnie Sahlberg a0c4ea7d9f update copyright bilerplates also in generated files
Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>
2014-06-13 17:03:35 -07:00
Ronnie Sahlberg 2f5c161b44 proto files: add a simplified bsd licence to the dot-x files
Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>
2014-06-08 07:51:38 -07:00
Ronnie Sahlberg 5392b1cfbc New version : 1.9.0
- Use _stat64 on windows so file sizes become 64bit always.
 - Increase default marshalling buffer so we can marshall large PDUs.
 - RPC layer support for NFSv2
 - Win32 updates and fixes
 - Add URL parsing functions and URL argument support.
 - New utility: nfs-io
 - nfs-ls enhancements
 - RPC layer support for NSM
 - Add example FUSE filesystem.
 - Minor fixes.
2014-01-27 20:47:24 -08:00
Memphiz 4938ed42f3 [win32/nlm] - add missing typedef for u_quad_t and quad_t 2014-01-13 19:50:59 +01:00
Ronnie Sahlberg ec70621f42 Remove all remaining references to RPC 2012-12-04 18:55:32 -08:00
Ronnie Sahlberg e803ae5760 Rearrange the header files.
Move the headers we install to ./include/nfsc
and start including nfsc/libnfs-zdr.h  from all the other header files.
2012-11-28 20:21:53 -08:00
Cory Fields 252aa90dc8 [droid] Support building for android
These are the changes necessary to build for android. Working status is yet
untested.
2012-11-28 12:04:10 -05:00
Ronnie Sahlberg f816bf4c76 Merge branch 'zdr'
Manually fixyp some merge conflicts in :
	lib/init.c
	lib/pdu.c
	lib/socket.c
	nfs/Makefile.am
	nfs/nfs.x
	nlm/Makefile.am
2012-11-27 18:22:27 -08:00
Ronnie Sahlberg 6b93021bbf Use our own xdr_int64() for all 64 bit types.
Oh dear.  It is really difficult for rpc and tirpc implementors to get
64 bit types right. Sigh.

I am tired of fighting broken ti-rpc libraries under linux and others
that do random corruption on xdr_u_quad_t and friends
so lets just override that shit and replace it with our own, non-broken,
implementation of a 64 bit xdr accessor.
2012-11-17 10:14:43 -08:00
Ronnie Sahlberg 9c29b498f4 Update how the rpc files are generated so we dont get "unused variable" for *buf 2012-07-05 07:46:52 +10:00
Ronnie Sahlberg 763cd6e3e2 ZDR: New builtin replacement for RPC/XDR called ZDR
This patch switches libnfs over to use precompiled rpcgen files
and using ZDR.  ZDR is a trivial reimplementation of XDR that is built in
into libnfs.

This removes the dependencies of rpc/xdr completely and allow us to build on any
system, even systems where rpcgen and librpc/libxdr are not generally available.
2012-07-04 16:53:12 +10:00
Ronnie Sahlberg c33ce42cc5 NLM add NLM_GRANTED procedure to the rpc file 2012-03-10 22:56:56 +11:00
Ronnie Sahlberg a171d4dada NLM add helper functions to send async calls for the NLM functions 2012-03-10 22:50:10 +11:00
Ronnie Sahlberg 04ba56c460 NLM add NLM4 LOCK definition to the rpc file 2012-03-10 22:43:47 +11:00
Ronnie Sahlberg 8d3c1af0c9 NLM: add UNLOCK call 2012-03-10 22:36:26 +11:00
Ronnie Sahlberg c880fdacce NLM : add raw function for NLM4 CANCEL 2012-03-10 22:30:53 +11:00
Ronnie Sahlberg 2faefcac23 NLM the cookie is always present in NLM replies and it is the first blob 2012-03-10 22:19:06 +11:00
Ronnie Sahlberg e01ed6a239 NLM add TEST procedure 2012-03-10 21:38:29 +11:00
Ronnie Sahlberg 6916a66546 NLM: initial support for NLM 2012-03-10 20:46:03 +11:00