diff options
author | patacongo <patacongo@7fd9a85b-ad96-42d3-883c-3090e2eb8679> | 2012-03-22 00:51:01 +0000 |
---|---|---|
committer | patacongo <patacongo@7fd9a85b-ad96-42d3-883c-3090e2eb8679> | 2012-03-22 00:51:01 +0000 |
commit | 1018c9e4410f651f9025fd28471ef99bae903e92 (patch) | |
tree | f1012156c3adfa9214f97d33ca5c8e0fea1402fd /nuttx/fs/nfs/rpc.h | |
parent | a58d4b265fbd75b37070dee1acb75b95bf1dbeda (diff) | |
download | px4-firmware-1018c9e4410f651f9025fd28471ef99bae903e92.tar.gz px4-firmware-1018c9e4410f651f9025fd28471ef99bae903e92.tar.bz2 px4-firmware-1018c9e4410f651f9025fd28471ef99bae903e92.zip |
NFS update + make some examples configurable as NSH built-ins
git-svn-id: https://nuttx.svn.sourceforge.net/svnroot/nuttx/trunk@4501 7fd9a85b-ad96-42d3-883c-3090e2eb8679
Diffstat (limited to 'nuttx/fs/nfs/rpc.h')
-rw-r--r-- | nuttx/fs/nfs/rpc.h | 53 |
1 files changed, 37 insertions, 16 deletions
diff --git a/nuttx/fs/nfs/rpc.h b/nuttx/fs/nfs/rpc.h index 0a907c126..f48a45b0f 100644 --- a/nuttx/fs/nfs/rpc.h +++ b/nuttx/fs/nfs/rpc.h @@ -1,7 +1,15 @@ -/* - * copyright (c) 2003 - * the regents of the university of michigan - * all rights reserved +/**************************************************************************** + * fs/nfs/rpc.h + * + * Copyright (C) 2012 Gregory Nutt. All rights reserved. + * Copyright (C) 2012 Jose Pablo Rojas Vargas. All rights reserved. + * Author: Jose Pablo Rojas Vargas <jrojas@nx-engineering.com> + * + * Leveraged from OpenBSD: + * + * copyright (c) 2003 + * the regents of the university of michigan + * all rights reserved * * permission is granted to use, copy, create derivative works and redistribute * this software and such derivative works for any purpose, so long as the name @@ -20,11 +28,9 @@ * consequential damages, with respect to any claim arising out of or in * connection with the use of the software, even if it has been or is hereafter * advised of the possibility of such damages. - */ - -/* - * Copyright (c) 1989, 1993 - * The Regents of the University of California. All rights reserved. + * + * Copyright (c) 1989, 1993 + * The Regents of the University of California. All rights reserved. * * This code is derived from software contributed to Berkeley by * Rick Macklem at The University of Guelph. @@ -57,13 +63,22 @@ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. - */ + * + ****************************************************************************/ -#ifndef _RPCCLNT_H_ -#define _RPCCLNT_H_ +#ifndef __FS_NFS_RPC_H +#define __FS_NFS_RPC_H + +/**************************************************************************** + * Included Files + ****************************************************************************/ #include <sys/types.h> +/**************************************************************************** + * Pre-processor Definitions + ****************************************************************************/ + /* for rpcclnt's rc_flags */ #define RPCCLNT_SOFT 0x001 /* soft mount (hard is details) */ @@ -78,6 +93,10 @@ #define RPCCLNT_RCVLOCK 0x400 #define RPCCLNT_WANTRCV 0x800 +/**************************************************************************** + * Public Types + ****************************************************************************/ + struct rpc_program { uint32_t prog_id; @@ -155,8 +174,7 @@ struct rpc_reply struct rpc_auth_info rpc_verfi; }; -/* - * RPC Client connection context. +/* RPC Client connection context. * One allocated on every NFS mount. * Holds RPC specific information for mount. */ @@ -202,19 +220,22 @@ struct rpcclnt struct rpc_program * rc_prog; - char *rc_servername; + //char *rc_servername; int rc_proctlen; /* if == 0 then rc_proct == NULL */ int * rc_proct; }; +/**************************************************************************** + * Public Function Prototypes + ****************************************************************************/ + /* void rpcclnt_create(struct rpcclnt ** rpc); void rpcclnt_destroy(struct rpcclnt * rpc); #define rpcclnt_get(X) rpcclnt_create(&(X)) #define rpcclnt_put(X) rpcclnt_destroy(X) - */ void rpcclnt_init(void); |