update copyright bilerplates also in generated files
Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>libnfs-4.0.0-vitalif
parent
390ff38ad1
commit
a0c4ea7d9f
|
@ -17,6 +17,8 @@ mount-stamp : mount.x
|
||||||
rm -f $(mount_GENERATED)
|
rm -f $(mount_GENERATED)
|
||||||
touch mount-stamp
|
touch mount-stamp
|
||||||
|
|
||||||
compile_rpc:
|
compile_rpc:
|
||||||
rpcgen -h mount.x | sed -e "s/#include <rpc\/rpc.h>//" | sed -e "s/xdr/zdr/g" -e "s/XDR/ZDR/g" > libnfs-raw-mount.h
|
cat mount.x | head -29 >libnfs-raw-mount.h
|
||||||
rpcgen -c mount.x | sed -e "s/#include \".*mount.h\"/#include \"libnfs-xdr.h\"\n#include \"libnfs-raw-mount.h\"/" -e "s/xdr/zdr/g" -e "s/XDR/ZDR/g" -e "s/register int32_t \*buf;/register int32_t *buf;\n buf = NULL;/" > libnfs-raw-mount.c
|
rpcgen -h mount.x | sed -e "s/#include <rpc\/rpc.h>//" | sed -e "s/xdr/zdr/g" -e "s/XDR/ZDR/g" >> libnfs-raw-mount.h
|
||||||
|
cat mount.x | head -29 >libnfs-raw-mount.c
|
||||||
|
rpcgen -c mount.x | sed -e "s/#include \".*mount.h\"/#include \"libnfs-xdr.h\"\n#include \"libnfs-raw-mount.h\"/" -e "s/xdr/zdr/g" -e "s/XDR/ZDR/g" -e "s/register int32_t \*buf;/register int32_t *buf;\n buf = NULL;/" >> libnfs-raw-mount.c
|
||||||
|
|
|
@ -1,3 +1,32 @@
|
||||||
|
/*
|
||||||
|
Copyright (c) 2014, Ronnie Sahlberg
|
||||||
|
All rights reserved.
|
||||||
|
|
||||||
|
Redistribution and use in source and binary forms, with or without
|
||||||
|
modification, are permitted provided that the following conditions are met:
|
||||||
|
|
||||||
|
1. Redistributions of source code must retain the above copyright notice, this
|
||||||
|
list of conditions and the following disclaimer.
|
||||||
|
2. Redistributions in binary form must reproduce the above copyright notice,
|
||||||
|
this list of conditions and the following disclaimer in the documentation
|
||||||
|
and/or other materials provided with the distribution.
|
||||||
|
|
||||||
|
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
||||||
|
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
||||||
|
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
||||||
|
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
|
||||||
|
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
||||||
|
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
|
||||||
|
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
|
||||||
|
ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 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.
|
||||||
|
|
||||||
|
The views and conclusions contained in the software and documentation are those
|
||||||
|
of the authors and should not be interpreted as representing official policies,
|
||||||
|
either expressed or implied, of the FreeBSD Project.
|
||||||
|
*/
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Please do not edit this file.
|
* Please do not edit this file.
|
||||||
* It was generated using rpcgen.
|
* It was generated using rpcgen.
|
||||||
|
|
|
@ -1,3 +1,32 @@
|
||||||
|
/*
|
||||||
|
Copyright (c) 2014, Ronnie Sahlberg
|
||||||
|
All rights reserved.
|
||||||
|
|
||||||
|
Redistribution and use in source and binary forms, with or without
|
||||||
|
modification, are permitted provided that the following conditions are met:
|
||||||
|
|
||||||
|
1. Redistributions of source code must retain the above copyright notice, this
|
||||||
|
list of conditions and the following disclaimer.
|
||||||
|
2. Redistributions in binary form must reproduce the above copyright notice,
|
||||||
|
this list of conditions and the following disclaimer in the documentation
|
||||||
|
and/or other materials provided with the distribution.
|
||||||
|
|
||||||
|
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
||||||
|
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
||||||
|
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
||||||
|
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
|
||||||
|
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
||||||
|
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
|
||||||
|
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
|
||||||
|
ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 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.
|
||||||
|
|
||||||
|
The views and conclusions contained in the software and documentation are those
|
||||||
|
of the authors and should not be interpreted as representing official policies,
|
||||||
|
either expressed or implied, of the FreeBSD Project.
|
||||||
|
*/
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Please do not edit this file.
|
* Please do not edit this file.
|
||||||
* It was generated using rpcgen.
|
* It was generated using rpcgen.
|
||||||
|
@ -6,7 +35,8 @@
|
||||||
#ifndef _MOUNT_H_RPCGEN
|
#ifndef _MOUNT_H_RPCGEN
|
||||||
#define _MOUNT_H_RPCGEN
|
#define _MOUNT_H_RPCGEN
|
||||||
|
|
||||||
#include <nfsc/libnfs-zdr.h>
|
|
||||||
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
extern "C" {
|
extern "C" {
|
||||||
|
|
|
@ -18,5 +18,7 @@ nfs-stamp : nfs.x
|
||||||
touch nfs-stamp
|
touch nfs-stamp
|
||||||
|
|
||||||
compile_rpc:
|
compile_rpc:
|
||||||
rpcgen -h nfs.x | sed -e "s/#include <rpc\/rpc.h>//" -e "s/xdr/zdr/g" -e "s/XDR/ZDR/g" -e "s/#define _NFS_H_RPCGEN/#define _NFS_H_RPCGEN\n#include <nfsc\/libnfs-zdr.h>/g" -e "s/#define NFS3_COOKIEVERFSIZE 8/#define NFS3_COOKIEVERFSIZE 8\n\n#if defined(ANDROID)\ntypedef long long int quad_t;\ntypedef long long unsigned u_quad_t;\n#endif\n#if defined(WIN32)\ntypedef long long int quad_t;\ntypedef long long unsigned u_quad_t;\n#endif/g" > libnfs-raw-nfs.h
|
cat nfs.x | head -29 >libnfs-raw-nfs.h
|
||||||
rpcgen -c nfs.x | sed -e "s/#include \".*nfs.h\"/#include \"libnfs-xdr.h\"\n#include \"libnfs-raw-nfs.h\"/" -e "s/xdr/zdr/g" -e "s/XDR/ZDR/g" -e "s/register int32_t \*buf;/register int32_t *buf;\n buf = NULL;/" > libnfs-raw-nfs.c
|
rpcgen -h nfs.x | sed -e "s/#include <rpc\/rpc.h>//" -e "s/xdr/zdr/g" -e "s/XDR/ZDR/g" -e "s/#define _NFS_H_RPCGEN/#define _NFS_H_RPCGEN\n#include <nfsc\/libnfs-zdr.h>/g" -e "s/#define NFS3_COOKIEVERFSIZE 8/#define NFS3_COOKIEVERFSIZE 8\n\n#if defined(ANDROID)\ntypedef long long int quad_t;\ntypedef long long unsigned u_quad_t;\n#endif\n#if defined(WIN32)\ntypedef long long int quad_t;\ntypedef long long unsigned u_quad_t;\n#endif/g" >> libnfs-raw-nfs.h
|
||||||
|
cat nfs.x | head -29 >libnfs-raw-nfs.c
|
||||||
|
rpcgen -c nfs.x | sed -e "s/#include \".*nfs.h\"/#include \"libnfs-xdr.h\"\n#include \"libnfs-raw-nfs.h\"/" -e "s/xdr/zdr/g" -e "s/XDR/ZDR/g" -e "s/register int32_t \*buf;/register int32_t *buf;\n buf = NULL;/" >> libnfs-raw-nfs.c
|
||||||
|
|
|
@ -1,3 +1,32 @@
|
||||||
|
/*
|
||||||
|
Copyright (c) 2014, Ronnie Sahlberg
|
||||||
|
All rights reserved.
|
||||||
|
|
||||||
|
Redistribution and use in source and binary forms, with or without
|
||||||
|
modification, are permitted provided that the following conditions are met:
|
||||||
|
|
||||||
|
1. Redistributions of source code must retain the above copyright notice, this
|
||||||
|
list of conditions and the following disclaimer.
|
||||||
|
2. Redistributions in binary form must reproduce the above copyright notice,
|
||||||
|
this list of conditions and the following disclaimer in the documentation
|
||||||
|
and/or other materials provided with the distribution.
|
||||||
|
|
||||||
|
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
||||||
|
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
||||||
|
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
||||||
|
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
|
||||||
|
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
||||||
|
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
|
||||||
|
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
|
||||||
|
ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 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.
|
||||||
|
|
||||||
|
The views and conclusions contained in the software and documentation are those
|
||||||
|
of the authors and should not be interpreted as representing official policies,
|
||||||
|
either expressed or implied, of the FreeBSD Project.
|
||||||
|
*/
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Please do not edit this file.
|
* Please do not edit this file.
|
||||||
* It was generated using rpcgen.
|
* It was generated using rpcgen.
|
||||||
|
@ -17,24 +46,13 @@ zdr_cookieverf3 (ZDR *zdrs, cookieverf3 objp)
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool_t
|
|
||||||
zdr_uint64 (ZDR *zdrs, uint64 *objp)
|
|
||||||
{
|
|
||||||
register int32_t *buf;
|
|
||||||
buf = NULL;
|
|
||||||
|
|
||||||
if (!zdr_u_quad_t (zdrs, objp))
|
|
||||||
return FALSE;
|
|
||||||
return TRUE;
|
|
||||||
}
|
|
||||||
|
|
||||||
bool_t
|
bool_t
|
||||||
zdr_cookie3 (ZDR *zdrs, cookie3 *objp)
|
zdr_cookie3 (ZDR *zdrs, cookie3 *objp)
|
||||||
{
|
{
|
||||||
register int32_t *buf;
|
register int32_t *buf;
|
||||||
buf = NULL;
|
buf = NULL;
|
||||||
|
|
||||||
if (!zdr_uint64 (zdrs, objp))
|
if (!zdr_u_quad_t (zdrs, objp))
|
||||||
return FALSE;
|
return FALSE;
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
@ -124,7 +142,7 @@ zdr_size3 (ZDR *zdrs, size3 *objp)
|
||||||
register int32_t *buf;
|
register int32_t *buf;
|
||||||
buf = NULL;
|
buf = NULL;
|
||||||
|
|
||||||
if (!zdr_uint64 (zdrs, objp))
|
if (!zdr_u_quad_t (zdrs, objp))
|
||||||
return FALSE;
|
return FALSE;
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
@ -135,7 +153,7 @@ zdr_fileid3 (ZDR *zdrs, fileid3 *objp)
|
||||||
register int32_t *buf;
|
register int32_t *buf;
|
||||||
buf = NULL;
|
buf = NULL;
|
||||||
|
|
||||||
if (!zdr_uint64 (zdrs, objp))
|
if (!zdr_u_quad_t (zdrs, objp))
|
||||||
return FALSE;
|
return FALSE;
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
@ -188,7 +206,7 @@ zdr_fattr3 (ZDR *zdrs, fattr3 *objp)
|
||||||
return FALSE;
|
return FALSE;
|
||||||
if (!zdr_specdata3 (zdrs, &objp->rdev))
|
if (!zdr_specdata3 (zdrs, &objp->rdev))
|
||||||
return FALSE;
|
return FALSE;
|
||||||
if (!zdr_uint64 (zdrs, &objp->fsid))
|
if (!zdr_u_quad_t (zdrs, &objp->fsid))
|
||||||
return FALSE;
|
return FALSE;
|
||||||
if (!zdr_fileid3 (zdrs, &objp->fileid))
|
if (!zdr_fileid3 (zdrs, &objp->fileid))
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
@ -250,7 +268,7 @@ zdr_offset3 (ZDR *zdrs, offset3 *objp)
|
||||||
register int32_t *buf;
|
register int32_t *buf;
|
||||||
buf = NULL;
|
buf = NULL;
|
||||||
|
|
||||||
if (!zdr_uint64 (zdrs, objp))
|
if (!zdr_u_quad_t (zdrs, objp))
|
||||||
return FALSE;
|
return FALSE;
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,3 +1,32 @@
|
||||||
|
/*
|
||||||
|
Copyright (c) 2014, Ronnie Sahlberg
|
||||||
|
All rights reserved.
|
||||||
|
|
||||||
|
Redistribution and use in source and binary forms, with or without
|
||||||
|
modification, are permitted provided that the following conditions are met:
|
||||||
|
|
||||||
|
1. Redistributions of source code must retain the above copyright notice, this
|
||||||
|
list of conditions and the following disclaimer.
|
||||||
|
2. Redistributions in binary form must reproduce the above copyright notice,
|
||||||
|
this list of conditions and the following disclaimer in the documentation
|
||||||
|
and/or other materials provided with the distribution.
|
||||||
|
|
||||||
|
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
||||||
|
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
||||||
|
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
||||||
|
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
|
||||||
|
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
||||||
|
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
|
||||||
|
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
|
||||||
|
ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 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.
|
||||||
|
|
||||||
|
The views and conclusions contained in the software and documentation are those
|
||||||
|
of the authors and should not be interpreted as representing official policies,
|
||||||
|
either expressed or implied, of the FreeBSD Project.
|
||||||
|
*/
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Please do not edit this file.
|
* Please do not edit this file.
|
||||||
* It was generated using rpcgen.
|
* It was generated using rpcgen.
|
||||||
|
@ -30,9 +59,7 @@ typedef long long unsigned u_quad_t;
|
||||||
|
|
||||||
typedef char cookieverf3[NFS3_COOKIEVERFSIZE];
|
typedef char cookieverf3[NFS3_COOKIEVERFSIZE];
|
||||||
|
|
||||||
typedef u_quad_t uint64;
|
typedef u_quad_t cookie3;
|
||||||
|
|
||||||
typedef uint64 cookie3;
|
|
||||||
|
|
||||||
struct nfs_fh3 {
|
struct nfs_fh3 {
|
||||||
struct {
|
struct {
|
||||||
|
@ -67,9 +94,9 @@ typedef u_int uid3;
|
||||||
|
|
||||||
typedef u_int gid3;
|
typedef u_int gid3;
|
||||||
|
|
||||||
typedef uint64 size3;
|
typedef u_quad_t size3;
|
||||||
|
|
||||||
typedef uint64 fileid3;
|
typedef u_quad_t fileid3;
|
||||||
|
|
||||||
struct specdata3 {
|
struct specdata3 {
|
||||||
u_int specdata1;
|
u_int specdata1;
|
||||||
|
@ -92,7 +119,7 @@ struct fattr3 {
|
||||||
size3 size;
|
size3 size;
|
||||||
size3 used;
|
size3 used;
|
||||||
specdata3 rdev;
|
specdata3 rdev;
|
||||||
uint64 fsid;
|
u_quad_t fsid;
|
||||||
fileid3 fileid;
|
fileid3 fileid;
|
||||||
nfstime3 atime;
|
nfstime3 atime;
|
||||||
nfstime3 mtime;
|
nfstime3 mtime;
|
||||||
|
@ -148,7 +175,7 @@ enum stable_how {
|
||||||
};
|
};
|
||||||
typedef enum stable_how stable_how;
|
typedef enum stable_how stable_how;
|
||||||
|
|
||||||
typedef uint64 offset3;
|
typedef u_quad_t offset3;
|
||||||
|
|
||||||
typedef u_int count3;
|
typedef u_int count3;
|
||||||
|
|
||||||
|
@ -1611,7 +1638,6 @@ extern int nfsacl_program_3_freeresult ();
|
||||||
|
|
||||||
#if defined(__STDC__) || defined(__cplusplus)
|
#if defined(__STDC__) || defined(__cplusplus)
|
||||||
extern bool_t zdr_cookieverf3 (ZDR *, cookieverf3);
|
extern bool_t zdr_cookieverf3 (ZDR *, cookieverf3);
|
||||||
extern bool_t zdr_uint64 (ZDR *, uint64*);
|
|
||||||
extern bool_t zdr_cookie3 (ZDR *, cookie3*);
|
extern bool_t zdr_cookie3 (ZDR *, cookie3*);
|
||||||
extern bool_t zdr_nfs_fh3 (ZDR *, nfs_fh3*);
|
extern bool_t zdr_nfs_fh3 (ZDR *, nfs_fh3*);
|
||||||
extern bool_t zdr_filename3 (ZDR *, filename3*);
|
extern bool_t zdr_filename3 (ZDR *, filename3*);
|
||||||
|
@ -1799,7 +1825,6 @@ extern bool_t zdr_SETACL3res (ZDR *, SETACL3res*);
|
||||||
|
|
||||||
#else /* K&R C */
|
#else /* K&R C */
|
||||||
extern bool_t zdr_cookieverf3 ();
|
extern bool_t zdr_cookieverf3 ();
|
||||||
extern bool_t zdr_uint64 ();
|
|
||||||
extern bool_t zdr_cookie3 ();
|
extern bool_t zdr_cookie3 ();
|
||||||
extern bool_t zdr_nfs_fh3 ();
|
extern bool_t zdr_nfs_fh3 ();
|
||||||
extern bool_t zdr_filename3 ();
|
extern bool_t zdr_filename3 ();
|
||||||
|
|
19
nfs/nfs.x
19
nfs/nfs.x
|
@ -37,16 +37,7 @@ const NFS3_COOKIEVERFSIZE = 8;
|
||||||
|
|
||||||
typedef opaque cookieverf3[NFS3_COOKIEVERFSIZE];
|
typedef opaque cookieverf3[NFS3_COOKIEVERFSIZE];
|
||||||
|
|
||||||
/*unsigned hyper can be overridden by giving rpcgen -DU_INT64_PLATTFORM_TYPE="
|
typedef u_quad_t cookie3;
|
||||||
where rpcgen doesn't know anything about hyper
|
|
||||||
default to unsigned hyper as of rfc 1813 */
|
|
||||||
#ifndef U_INT64_PLATTFORM_TYPE
|
|
||||||
#define U_INT64_PLATTFORM_TYPE unsigned hyper
|
|
||||||
#endif/*U_INT64_PLATTFORM_TYPE*/
|
|
||||||
|
|
||||||
typedef U_INT64_PLATTFORM_TYPE uint64;
|
|
||||||
|
|
||||||
typedef uint64 cookie3;
|
|
||||||
|
|
||||||
struct nfs_fh3 {
|
struct nfs_fh3 {
|
||||||
opaque data<NFS3_FHSIZE>;
|
opaque data<NFS3_FHSIZE>;
|
||||||
|
@ -75,9 +66,9 @@ typedef unsigned int uid3;
|
||||||
|
|
||||||
typedef unsigned int gid3;
|
typedef unsigned int gid3;
|
||||||
|
|
||||||
typedef uint64 size3;
|
typedef u_quad_t size3;
|
||||||
|
|
||||||
typedef uint64 fileid3;
|
typedef u_quad_t fileid3;
|
||||||
|
|
||||||
struct specdata3 {
|
struct specdata3 {
|
||||||
unsigned int specdata1;
|
unsigned int specdata1;
|
||||||
|
@ -98,7 +89,7 @@ struct fattr3 {
|
||||||
size3 size;
|
size3 size;
|
||||||
size3 used;
|
size3 used;
|
||||||
specdata3 rdev;
|
specdata3 rdev;
|
||||||
uint64 fsid;
|
u_quad_t fsid;
|
||||||
fileid3 fileid;
|
fileid3 fileid;
|
||||||
nfstime3 atime;
|
nfstime3 atime;
|
||||||
nfstime3 mtime;
|
nfstime3 mtime;
|
||||||
|
@ -151,7 +142,7 @@ enum stable_how {
|
||||||
FILE_SYNC = 2
|
FILE_SYNC = 2
|
||||||
};
|
};
|
||||||
|
|
||||||
typedef uint64 offset3;
|
typedef u_quad_t offset3;
|
||||||
|
|
||||||
typedef unsigned int count3;
|
typedef unsigned int count3;
|
||||||
|
|
||||||
|
|
|
@ -18,5 +18,7 @@ nlm-stamp : nlm.x
|
||||||
touch nlm-stamp
|
touch nlm-stamp
|
||||||
|
|
||||||
compile_rpc:
|
compile_rpc:
|
||||||
rpcgen -h nlm.x | sed -e "s/#include <rpc\/rpc.h>//" | sed -e "s/xdr/zdr/g" -e "s/XDR/ZDR/g" > libnfs-raw-nlm.h
|
cat nlm.x | head -29 >libnfs-raw-nlm.h
|
||||||
rpcgen -c nlm.x | sed -e "s/#include \".*nlm.h\"/#include \"libnfs-xdr.h\"\n#include \"libnfs-raw-nlm.h\"/" -e "s/xdr/zdr/g" -e "s/XDR/ZDR/g" -e "s/register int32_t \*buf;/register int32_t *buf;\n buf = NULL;/" > libnfs-raw-nlm.c
|
rpcgen -h nlm.x | sed -e "s/#include <rpc\/rpc.h>//" | sed -e "s/xdr/zdr/g" -e "s/XDR/ZDR/g" >> libnfs-raw-nlm.h
|
||||||
|
cat nlm.x | head -29 >libnfs-raw-nlm.c
|
||||||
|
rpcgen -c nlm.x | sed -e "s/#include \".*nlm.h\"/#include \"libnfs-xdr.h\"\n#include \"libnfs-raw-nlm.h\"/" -e "s/xdr/zdr/g" -e "s/XDR/ZDR/g" -e "s/register int32_t \*buf;/register int32_t *buf;\n buf = NULL;/" >> libnfs-raw-nlm.c
|
||||||
|
|
|
@ -1,3 +1,32 @@
|
||||||
|
/*
|
||||||
|
Copyright (c) 2014, Ronnie Sahlberg
|
||||||
|
All rights reserved.
|
||||||
|
|
||||||
|
Redistribution and use in source and binary forms, with or without
|
||||||
|
modification, are permitted provided that the following conditions are met:
|
||||||
|
|
||||||
|
1. Redistributions of source code must retain the above copyright notice, this
|
||||||
|
list of conditions and the following disclaimer.
|
||||||
|
2. Redistributions in binary form must reproduce the above copyright notice,
|
||||||
|
this list of conditions and the following disclaimer in the documentation
|
||||||
|
and/or other materials provided with the distribution.
|
||||||
|
|
||||||
|
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
||||||
|
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
||||||
|
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
||||||
|
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
|
||||||
|
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
||||||
|
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
|
||||||
|
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
|
||||||
|
ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 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.
|
||||||
|
|
||||||
|
The views and conclusions contained in the software and documentation are those
|
||||||
|
of the authors and should not be interpreted as representing official policies,
|
||||||
|
either expressed or implied, of the FreeBSD Project.
|
||||||
|
*/
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Please do not edit this file.
|
* Please do not edit this file.
|
||||||
* It was generated using rpcgen.
|
* It was generated using rpcgen.
|
||||||
|
|
|
@ -1,3 +1,32 @@
|
||||||
|
/*
|
||||||
|
Copyright (c) 2014, Ronnie Sahlberg
|
||||||
|
All rights reserved.
|
||||||
|
|
||||||
|
Redistribution and use in source and binary forms, with or without
|
||||||
|
modification, are permitted provided that the following conditions are met:
|
||||||
|
|
||||||
|
1. Redistributions of source code must retain the above copyright notice, this
|
||||||
|
list of conditions and the following disclaimer.
|
||||||
|
2. Redistributions in binary form must reproduce the above copyright notice,
|
||||||
|
this list of conditions and the following disclaimer in the documentation
|
||||||
|
and/or other materials provided with the distribution.
|
||||||
|
|
||||||
|
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
||||||
|
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
||||||
|
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
||||||
|
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
|
||||||
|
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
||||||
|
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
|
||||||
|
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
|
||||||
|
ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 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.
|
||||||
|
|
||||||
|
The views and conclusions contained in the software and documentation are those
|
||||||
|
of the authors and should not be interpreted as representing official policies,
|
||||||
|
either expressed or implied, of the FreeBSD Project.
|
||||||
|
*/
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Please do not edit this file.
|
* Please do not edit this file.
|
||||||
* It was generated using rpcgen.
|
* It was generated using rpcgen.
|
||||||
|
@ -6,20 +35,13 @@
|
||||||
#ifndef _NLM_H_RPCGEN
|
#ifndef _NLM_H_RPCGEN
|
||||||
#define _NLM_H_RPCGEN
|
#define _NLM_H_RPCGEN
|
||||||
|
|
||||||
#include <nfsc/libnfs-zdr.h>
|
|
||||||
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(ANDROID)
|
|
||||||
typedef long long int quad_t;
|
|
||||||
typedef long long unsigned u_quad_t;
|
|
||||||
#endif
|
|
||||||
#if defined(WIN32)
|
|
||||||
typedef long long int quad_t;
|
|
||||||
typedef long long unsigned u_quad_t;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
struct nlm_fh4 {
|
struct nlm_fh4 {
|
||||||
struct {
|
struct {
|
||||||
|
|
10
nlm/nlm.x
10
nlm/nlm.x
|
@ -27,8 +27,6 @@ of the authors and should not be interpreted as representing official policies,
|
||||||
either expressed or implied, of the FreeBSD Project.
|
either expressed or implied, of the FreeBSD Project.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
typedef unsigned hyper uint64;
|
|
||||||
|
|
||||||
struct nlm_fh4 {
|
struct nlm_fh4 {
|
||||||
opaque data<>;
|
opaque data<>;
|
||||||
};
|
};
|
||||||
|
@ -56,8 +54,8 @@ struct nlm4_holder {
|
||||||
bool exclusive;
|
bool exclusive;
|
||||||
unsigned int svid;
|
unsigned int svid;
|
||||||
nlm4_oh oh;
|
nlm4_oh oh;
|
||||||
uint64 l_offset;
|
u_quad_t l_offset;
|
||||||
uint64 l_len;
|
u_quad_t l_len;
|
||||||
};
|
};
|
||||||
|
|
||||||
const NLM_MAXNAME = 256;
|
const NLM_MAXNAME = 256;
|
||||||
|
@ -66,8 +64,8 @@ struct nlm4_lock {
|
||||||
struct nlm_fh4 fh;
|
struct nlm_fh4 fh;
|
||||||
nlm4_oh oh;
|
nlm4_oh oh;
|
||||||
unsigned int svid;
|
unsigned int svid;
|
||||||
uint64 l_offset;
|
u_quad_t l_offset;
|
||||||
uint64 l_len;
|
u_quad_t l_len;
|
||||||
};
|
};
|
||||||
|
|
||||||
struct nlm4_share {
|
struct nlm4_share {
|
||||||
|
|
|
@ -18,5 +18,7 @@ nsm-stamp : nsm.x
|
||||||
touch nsm-stamp
|
touch nsm-stamp
|
||||||
|
|
||||||
compile_rpc:
|
compile_rpc:
|
||||||
rpcgen -h nsm.x | sed -e "s/#include <rpc\/rpc.h>//" | sed -e "s/xdr/zdr/g" -e "s/XDR/ZDR/g" > libnfs-raw-nsm.h
|
cat nsm.x | head -29 >libnfs-raw-nsm.h
|
||||||
rpcgen -c nsm.x | sed -e "s/#include \".*nsm.h\"/#include \"libnfs-xdr.h\"\n#include \"libnfs-raw-nsm.h\"/" -e "s/xdr/zdr/g" -e "s/XDR/ZDR/g" -e "s/register int32_t \*buf;/register int32_t *buf;\n buf = NULL;/" > libnfs-raw-nsm.c
|
rpcgen -h nsm.x | sed -e "s/#include <rpc\/rpc.h>//" | sed -e "s/xdr/zdr/g" -e "s/XDR/ZDR/g" >> libnfs-raw-nsm.h
|
||||||
|
cat nsm.x | head -29 >libnfs-raw-nsm.c
|
||||||
|
rpcgen -c nsm.x | sed -e "s/#include \".*nsm.h\"/#include \"libnfs-xdr.h\"\n#include \"libnfs-raw-nsm.h\"/" -e "s/xdr/zdr/g" -e "s/XDR/ZDR/g" -e "s/register int32_t \*buf;/register int32_t *buf;\n buf = NULL;/" >> libnfs-raw-nsm.c
|
||||||
|
|
|
@ -1,3 +1,32 @@
|
||||||
|
/*
|
||||||
|
Copyright (c) 2014, Ronnie Sahlberg
|
||||||
|
All rights reserved.
|
||||||
|
|
||||||
|
Redistribution and use in source and binary forms, with or without
|
||||||
|
modification, are permitted provided that the following conditions are met:
|
||||||
|
|
||||||
|
1. Redistributions of source code must retain the above copyright notice, this
|
||||||
|
list of conditions and the following disclaimer.
|
||||||
|
2. Redistributions in binary form must reproduce the above copyright notice,
|
||||||
|
this list of conditions and the following disclaimer in the documentation
|
||||||
|
and/or other materials provided with the distribution.
|
||||||
|
|
||||||
|
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
||||||
|
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
||||||
|
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
||||||
|
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
|
||||||
|
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
||||||
|
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
|
||||||
|
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
|
||||||
|
ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 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.
|
||||||
|
|
||||||
|
The views and conclusions contained in the software and documentation are those
|
||||||
|
of the authors and should not be interpreted as representing official policies,
|
||||||
|
either expressed or implied, of the FreeBSD Project.
|
||||||
|
*/
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Please do not edit this file.
|
* Please do not edit this file.
|
||||||
* It was generated using rpcgen.
|
* It was generated using rpcgen.
|
||||||
|
@ -90,6 +119,7 @@ zdr_NSM1_MONargs (ZDR *zdrs, NSM1_MONargs *objp)
|
||||||
register int32_t *buf;
|
register int32_t *buf;
|
||||||
buf = NULL;
|
buf = NULL;
|
||||||
|
|
||||||
|
int i;
|
||||||
if (!zdr_nsm_mon_id (zdrs, &objp->mon_id))
|
if (!zdr_nsm_mon_id (zdrs, &objp->mon_id))
|
||||||
return FALSE;
|
return FALSE;
|
||||||
if (!zdr_opaque (zdrs, objp->priv, 16))
|
if (!zdr_opaque (zdrs, objp->priv, 16))
|
||||||
|
|
|
@ -1,3 +1,32 @@
|
||||||
|
/*
|
||||||
|
Copyright (c) 2014, Ronnie Sahlberg
|
||||||
|
All rights reserved.
|
||||||
|
|
||||||
|
Redistribution and use in source and binary forms, with or without
|
||||||
|
modification, are permitted provided that the following conditions are met:
|
||||||
|
|
||||||
|
1. Redistributions of source code must retain the above copyright notice, this
|
||||||
|
list of conditions and the following disclaimer.
|
||||||
|
2. Redistributions in binary form must reproduce the above copyright notice,
|
||||||
|
this list of conditions and the following disclaimer in the documentation
|
||||||
|
and/or other materials provided with the distribution.
|
||||||
|
|
||||||
|
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
||||||
|
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
||||||
|
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
||||||
|
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
|
||||||
|
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
||||||
|
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
|
||||||
|
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
|
||||||
|
ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 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.
|
||||||
|
|
||||||
|
The views and conclusions contained in the software and documentation are those
|
||||||
|
of the authors and should not be interpreted as representing official policies,
|
||||||
|
either expressed or implied, of the FreeBSD Project.
|
||||||
|
*/
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Please do not edit this file.
|
* Please do not edit this file.
|
||||||
* It was generated using rpcgen.
|
* It was generated using rpcgen.
|
||||||
|
|
|
@ -18,5 +18,7 @@ portmap-stamp : portmap.x
|
||||||
touch portmap-stamp
|
touch portmap-stamp
|
||||||
|
|
||||||
compile_rpc:
|
compile_rpc:
|
||||||
rpcgen -h portmap.x | sed -e "s/#include <rpc\/rpc.h>//" | sed -e "s/xdr/zdr/g" -e "s/XDR/ZDR/g" > libnfs-raw-portmap.h
|
cat portmap.x | head -29 >libnfs-raw-portmap.h
|
||||||
rpcgen -c portmap.x | sed -e "s/#include \".*portmap.h\"/#include \"libnfs-zdr.h\"\n#include \"libnfs-raw-portmap.h\"/" -e "s/xdr/zdr/g" -e "s/XDR/ZDR/g" -e "s/register int32_t \*buf;/register int32_t *buf;\n buf = NULL;/" > libnfs-raw-portmap.c
|
rpcgen -h portmap.x | sed -e "s/#include <rpc\/rpc.h>//" | sed -e "s/xdr/zdr/g" -e "s/XDR/ZDR/g" >> libnfs-raw-portmap.h
|
||||||
|
cat portmap.x | head -29 >libnfs-raw-portmap.c
|
||||||
|
rpcgen -c portmap.x | sed -e "s/#include \".*portmap.h\"/#include \"libnfs-zdr.h\"\n#include \"libnfs-raw-portmap.h\"/" -e "s/xdr/zdr/g" -e "s/XDR/ZDR/g" -e "s/register int32_t \*buf;/register int32_t *buf;\n buf = NULL;/" >> libnfs-raw-portmap.c
|
||||||
|
|
|
@ -1,3 +1,32 @@
|
||||||
|
/*
|
||||||
|
Copyright (c) 2014, Ronnie Sahlberg
|
||||||
|
All rights reserved.
|
||||||
|
|
||||||
|
Redistribution and use in source and binary forms, with or without
|
||||||
|
modification, are permitted provided that the following conditions are met:
|
||||||
|
|
||||||
|
1. Redistributions of source code must retain the above copyright notice, this
|
||||||
|
list of conditions and the following disclaimer.
|
||||||
|
2. Redistributions in binary form must reproduce the above copyright notice,
|
||||||
|
this list of conditions and the following disclaimer in the documentation
|
||||||
|
and/or other materials provided with the distribution.
|
||||||
|
|
||||||
|
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
||||||
|
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
||||||
|
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
||||||
|
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
|
||||||
|
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
||||||
|
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
|
||||||
|
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
|
||||||
|
ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 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.
|
||||||
|
|
||||||
|
The views and conclusions contained in the software and documentation are those
|
||||||
|
of the authors and should not be interpreted as representing official policies,
|
||||||
|
either expressed or implied, of the FreeBSD Project.
|
||||||
|
*/
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Please do not edit this file.
|
* Please do not edit this file.
|
||||||
* It was generated using rpcgen.
|
* It was generated using rpcgen.
|
||||||
|
|
|
@ -1,3 +1,32 @@
|
||||||
|
/*
|
||||||
|
Copyright (c) 2014, Ronnie Sahlberg
|
||||||
|
All rights reserved.
|
||||||
|
|
||||||
|
Redistribution and use in source and binary forms, with or without
|
||||||
|
modification, are permitted provided that the following conditions are met:
|
||||||
|
|
||||||
|
1. Redistributions of source code must retain the above copyright notice, this
|
||||||
|
list of conditions and the following disclaimer.
|
||||||
|
2. Redistributions in binary form must reproduce the above copyright notice,
|
||||||
|
this list of conditions and the following disclaimer in the documentation
|
||||||
|
and/or other materials provided with the distribution.
|
||||||
|
|
||||||
|
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
||||||
|
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
||||||
|
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
||||||
|
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
|
||||||
|
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
||||||
|
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
|
||||||
|
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
|
||||||
|
ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 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.
|
||||||
|
|
||||||
|
The views and conclusions contained in the software and documentation are those
|
||||||
|
of the authors and should not be interpreted as representing official policies,
|
||||||
|
either expressed or implied, of the FreeBSD Project.
|
||||||
|
*/
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Please do not edit this file.
|
* Please do not edit this file.
|
||||||
* It was generated using rpcgen.
|
* It was generated using rpcgen.
|
||||||
|
|
|
@ -16,7 +16,9 @@ $(rquota_GENERATED) : rquota-stamp
|
||||||
rquota-stamp : rquota.x
|
rquota-stamp : rquota.x
|
||||||
rm -f $(rquota_GENERATED)
|
rm -f $(rquota_GENERATED)
|
||||||
touch rquota-stamp
|
touch rquota-stamp
|
||||||
|
|
||||||
compile_rpc:
|
compile_rpc:
|
||||||
rpcgen -h rquota.x | sed -e "s/#include <rpc\/rpc.h>//" | sed -e "s/xdr/zdr/g" -e "s/XDR/ZDR/g" > libnfs-raw-rquota.h
|
cat rquota.x | head -29 >libnfs-raw-rquota.h
|
||||||
rpcgen -c rquota.x | sed -e "s/#include \".*rquota.h\"/#include \"libnfs-xdr.h\"\n#include \"libnfs-raw-rquota.h\"/" -e "s/xdr/zdr/g" -e "s/XDR/ZDR/g" -e "s/register int32_t \*buf;/register int32_t *buf;\n buf = NULL;/" > libnfs-raw-rquota.c
|
rpcgen -h rquota.x | sed -e "s/#include <rpc\/rpc.h>//" | sed -e "s/xdr/zdr/g" -e "s/XDR/ZDR/g" >> libnfs-raw-rquota.h
|
||||||
|
cat rquota.x | head -29 >libnfs-raw-rquota.c
|
||||||
|
rpcgen -c rquota.x | sed -e "s/#include \".*rquota.h\"/#include \"libnfs-xdr.h\"\n#include \"libnfs-raw-rquota.h\"/" -e "s/xdr/zdr/g" -e "s/XDR/ZDR/g" -e "s/register int32_t \*buf;/register int32_t *buf;\n buf = NULL;/" >> libnfs-raw-rquota.c
|
||||||
|
|
|
@ -1,3 +1,32 @@
|
||||||
|
/*
|
||||||
|
Copyright (c) 2014, Ronnie Sahlberg
|
||||||
|
All rights reserved.
|
||||||
|
|
||||||
|
Redistribution and use in source and binary forms, with or without
|
||||||
|
modification, are permitted provided that the following conditions are met:
|
||||||
|
|
||||||
|
1. Redistributions of source code must retain the above copyright notice, this
|
||||||
|
list of conditions and the following disclaimer.
|
||||||
|
2. Redistributions in binary form must reproduce the above copyright notice,
|
||||||
|
this list of conditions and the following disclaimer in the documentation
|
||||||
|
and/or other materials provided with the distribution.
|
||||||
|
|
||||||
|
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
||||||
|
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
||||||
|
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
||||||
|
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
|
||||||
|
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
||||||
|
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
|
||||||
|
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
|
||||||
|
ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 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.
|
||||||
|
|
||||||
|
The views and conclusions contained in the software and documentation are those
|
||||||
|
of the authors and should not be interpreted as representing official policies,
|
||||||
|
either expressed or implied, of the FreeBSD Project.
|
||||||
|
*/
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Please do not edit this file.
|
* Please do not edit this file.
|
||||||
* It was generated using rpcgen.
|
* It was generated using rpcgen.
|
||||||
|
|
|
@ -1,3 +1,32 @@
|
||||||
|
/*
|
||||||
|
Copyright (c) 2014, Ronnie Sahlberg
|
||||||
|
All rights reserved.
|
||||||
|
|
||||||
|
Redistribution and use in source and binary forms, with or without
|
||||||
|
modification, are permitted provided that the following conditions are met:
|
||||||
|
|
||||||
|
1. Redistributions of source code must retain the above copyright notice, this
|
||||||
|
list of conditions and the following disclaimer.
|
||||||
|
2. Redistributions in binary form must reproduce the above copyright notice,
|
||||||
|
this list of conditions and the following disclaimer in the documentation
|
||||||
|
and/or other materials provided with the distribution.
|
||||||
|
|
||||||
|
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
||||||
|
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
||||||
|
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
||||||
|
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
|
||||||
|
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
||||||
|
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
|
||||||
|
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
|
||||||
|
ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 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.
|
||||||
|
|
||||||
|
The views and conclusions contained in the software and documentation are those
|
||||||
|
of the authors and should not be interpreted as representing official policies,
|
||||||
|
either expressed or implied, of the FreeBSD Project.
|
||||||
|
*/
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Please do not edit this file.
|
* Please do not edit this file.
|
||||||
* It was generated using rpcgen.
|
* It was generated using rpcgen.
|
||||||
|
@ -6,7 +35,8 @@
|
||||||
#ifndef _RQUOTA_H_RPCGEN
|
#ifndef _RQUOTA_H_RPCGEN
|
||||||
#define _RQUOTA_H_RPCGEN
|
#define _RQUOTA_H_RPCGEN
|
||||||
|
|
||||||
#include <nfsc/libnfs-zdr.h>
|
|
||||||
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
extern "C" {
|
extern "C" {
|
||||||
|
|
|
@ -1,4 +1,6 @@
|
||||||
/*
|
/*
|
||||||
|
Copyright (c) 2014, Ronnie Sahlberg
|
||||||
|
|
||||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
of this software and associated documentation files (the "Software"), to deal
|
of this software and associated documentation files (the "Software"), to deal
|
||||||
in the Software without restriction, including without limitation the rights
|
in the Software without restriction, including without limitation the rights
|
||||||
|
|
Loading…
Reference in New Issue