Files
2026-07-30 11:19:44 +05:30

123 lines
2.5 KiB
C

/* xdr_nfs_common.h - 'rpcgen' generated XDR routines for NFS v2 & v3 */
/*
* Copyright (c) 2001, 2012 Wind River Systems, Inc.
*
* The right to copy, distribute, modify or otherwise make use
* of this software may be licensed only pursuant to the terms
* of an applicable Wind River license agreement.
*/
/*
modification history
--------------------
01b,14sep12,yjl Fix WIND00376258, dosFs to be compatible with Windows FAT32
naming rules for file/directory name length
01a,21jun11,sjz Improve NFS performance for the requirement WIND00236547
*/
/*
* Please do not edit this file.
* It was generated using rpcgen.
*/
#ifndef _XDR_NFS_COMMON_H_RPCGEN
#define _XDR_NFS_COMMON_H_RPCGEN
#include <rpc/rpc.h>
#include <vsbConfig.h>
#ifdef __cplusplus
extern "C" {
#endif
#define NFS_PORT 2049
#ifdef _WRS_CONFIG_NFS3_BLKSIZE_FACTOR
#define NFS_MAXDATA (_WRS_CONFIG_NFS3_BLKSIZE_FACTOR * 8192)
#else
#define NFS_MAXDATA 8192
#endif
#ifndef _WRS_CONFIG_DOSFS_NAME_LENGTH_COMPAT
#define NFS_MAXPATHLEN 1024
#define NFS_MAXNAMELEN 255
#else
#define USE_FILE_PATHLENGTH
#define USE_CHECK_NAMELENGTH
#ifdef USE_FILE_PATHLENGTH
#define NFS_MAXPATHLEN 1036
#else
#define NFS_MAXPATHLEN 1024
#endif
#ifdef USE_CHECK_NAMELENGTH
#define NFS_MAXNAMELEN 1020
#else
#define NFS_MAXNAMELEN 255
#endif
#endif /* _WRS_CONFIG_DOSFS_NAME_LENGTH_COMPAT */
#define NFS_PROGRAM 100003
enum nfsstat {
NFS_OK = 0,
NFSERR_PERM = 1,
NFSERR_NOENT = 2,
NFSERR_IO = 5,
NFSERR_NXIO = 6,
NFSERR_ACCESS = 13,
NFSERR_EXIST = 17,
NFSERR_XDEV = 18,
NFSERR_NODEV = 19,
NFSERR_NOTDIR = 20,
NFSERR_ISDIR = 21,
NFSERR_INVAL = 22,
NFSERR_FBIG = 27,
NFSERR_NOSPC = 28,
NFSERR_ROFS = 30,
NFSERR_MLINK = 31,
NFSERR_NAMETOOLONG = 63,
NFSERR_NOTEMPTY = 66,
NFSERR_DQUOT = 69,
NFSERR_STALE = 70,
NFSERR_REMOTE = 71,
NFSERR_WFLUSH = 99,
NFSERR_BADHANDLE = 10001,
NFSERR_NOT_SYNC = 10002,
NFSERR_BAD_COOKIE = 10003,
NFSERR_NOTSUPP = 10004,
NFSERR_TOOSMALL = 10005,
NFSERR_SERVERFAULT = 10006,
NFSERR_BADTYPE = 10007,
NFSERR_JUKEBOX = 10008
};
typedef enum nfsstat nfsstat;
typedef char *filename;
typedef char *nfspath;
/* the xdr functions */
#if defined(__STDC__) || defined(__cplusplus)
extern bool_t xdr_nfsstat (XDR *, nfsstat*);
extern bool_t xdr_filename (XDR *, filename*);
extern bool_t xdr_nfspath (XDR *, nfspath*);
#else /* __STDC__ */
extern bool_t xdr_nfsstat();
extern bool_t xdr_filename();
extern bool_t xdr_nfspath();
#endif /* __STDC__ */
#ifdef __cplusplus
}
#endif
#endif /* !_XDR_NFS_COMMON_H_RPCGEN */