| 1 | /* |
| 2 | * Please do not edit this file. |
| 3 | * It was generated using rpcgen. |
| 4 | */ |
| 5 | |
| 6 | #ifndef _NFS_PROT_H_RPCGEN |
| 7 | #define _NFS_PROT_H_RPCGEN |
| 8 | |
| 9 | #define RPCGEN_VERSION 199506 |
| 10 | |
| 11 | #include <rpc/rpc.h> |
| 12 | |
| 13 | #define NFS_PORT 2049 |
| 14 | #define NFS_MAXDATA 8192 |
| 15 | #define NFS_MAXPATHLEN 1024 |
| 16 | #define NFS_MAXNAMLEN 255 |
| 17 | #define NFS_FHSIZE 32 |
| 18 | #define NFS_COOKIESIZE 4 |
| 19 | #define NFS_FIFO_DEV -1 |
| 20 | #define NFSMODE_FMT 0170000 |
| 21 | #define NFSMODE_DIR 0040000 |
| 22 | #define NFSMODE_CHR 0020000 |
| 23 | #define NFSMODE_BLK 0060000 |
| 24 | #define NFSMODE_REG 0100000 |
| 25 | #define NFSMODE_LNK 0120000 |
| 26 | #define NFSMODE_SOCK 0140000 |
| 27 | #define NFSMODE_FIFO 0010000 |
| 28 | |
| 29 | enum nfsstat { |
| 30 | NFS_OK = 0, |
| 31 | NFSERR_PERM = 1, |
| 32 | NFSERR_NOENT = 2, |
| 33 | NFSERR_IO = 5, |
| 34 | NFSERR_NXIO = 6, |
| 35 | NFSERR_ACCES = 13, |
| 36 | NFSERR_EXIST = 17, |
| 37 | NFSERR_NODEV = 19, |
| 38 | NFSERR_NOTDIR = 20, |
| 39 | NFSERR_ISDIR = 21, |
| 40 | NFSERR_FBIG = 27, |
| 41 | NFSERR_NOSPC = 28, |
| 42 | NFSERR_ROFS = 30, |
| 43 | NFSERR_NAMETOOLONG = 63, |
| 44 | NFSERR_NOTEMPTY = 66, |
| 45 | NFSERR_DQUOT = 69, |
| 46 | NFSERR_STALE = 70, |
| 47 | NFSERR_WFLUSH = 99 |
| 48 | }; |
| 49 | typedef enum nfsstat nfsstat; |
| 50 | |
| 51 | enum ftype { |
| 52 | NFNON = 0, |
| 53 | NFREG = 1, |
| 54 | NFDIR = 2, |
| 55 | NFBLK = 3, |
| 56 | NFCHR = 4, |
| 57 | NFLNK = 5, |
| 58 | NFSOCK = 6, |
| 59 | NFBAD = 7, |
| 60 | NFFIFO = 8 |
| 61 | }; |
| 62 | typedef enum ftype ftype; |
| 63 | |
| 64 | struct nfs_fh { |
| 65 | char data[NFS_FHSIZE]; |
| 66 | }; |
| 67 | typedef struct nfs_fh nfs_fh; |
| 68 | |
| 69 | struct nfstime { |
| 70 | u_int seconds; |
| 71 | u_int useconds; |
| 72 | }; |
| 73 | typedef struct nfstime nfstime; |
| 74 | |
| 75 | struct fattr { |
| 76 | ftype type; |
| 77 | u_int mode; |
| 78 | u_int nlink; |
| 79 | u_int uid; |
| 80 | u_int gid; |
| 81 | u_int size; |
| 82 | u_int blocksize; |
| 83 | u_int rdev; |
| 84 | u_int blocks; |
| 85 | u_int fsid; |
| 86 | u_int fileid; |
| 87 | nfstime atime; |
| 88 | nfstime mtime; |
| 89 | nfstime ctime; |
| 90 | }; |
| 91 | typedef struct fattr fattr; |
| 92 | |
| 93 | struct sattr { |
| 94 | u_int mode; |
| 95 | u_int uid; |
| 96 | u_int gid; |
| 97 | u_int size; |
| 98 | nfstime atime; |
| 99 | nfstime mtime; |
| 100 | }; |
| 101 | typedef struct sattr sattr; |
| 102 | |
| 103 | typedef char *filename; |
| 104 | |
| 105 | typedef char *nfspath; |
| 106 | |
| 107 | struct attrstat { |
| 108 | nfsstat status; |
| 109 | union { |
| 110 | fattr attributes; |
| 111 | } attrstat_u; |
| 112 | }; |
| 113 | typedef struct attrstat attrstat; |
| 114 | |
| 115 | struct sattrargs { |
| 116 | nfs_fh file; |
| 117 | sattr attributes; |
| 118 | }; |
| 119 | typedef struct sattrargs sattrargs; |
| 120 | |
| 121 | struct diropargs { |
| 122 | nfs_fh dir; |
| 123 | filename name; |
| 124 | }; |
| 125 | typedef struct diropargs diropargs; |
| 126 | |
| 127 | struct diropokres { |
| 128 | nfs_fh file; |
| 129 | fattr attributes; |
| 130 | }; |
| 131 | typedef struct diropokres diropokres; |
| 132 | |
| 133 | struct diropres { |
| 134 | nfsstat status; |
| 135 | union { |
| 136 | diropokres diropres; |
| 137 | } diropres_u; |
| 138 | }; |
| 139 | typedef struct diropres diropres; |
| 140 | |
| 141 | struct readlinkres { |
| 142 | nfsstat status; |
| 143 | union { |
| 144 | nfspath data; |
| 145 | } readlinkres_u; |
| 146 | }; |
| 147 | typedef struct readlinkres readlinkres; |
| 148 | |
| 149 | struct readargs { |
| 150 | nfs_fh file; |
| 151 | u_int offset; |
| 152 | u_int count; |
| 153 | u_int totalcount; |
| 154 | }; |
| 155 | typedef struct readargs readargs; |
| 156 | |
| 157 | struct readokres { |
| 158 | fattr attributes; |
| 159 | struct { |
| 160 | unsigned int data_len; |
| 161 | char *data_val; |
| 162 | } data; |
| 163 | }; |
| 164 | typedef struct readokres readokres; |
| 165 | |
| 166 | struct readres { |
| 167 | nfsstat status; |
| 168 | union { |
| 169 | readokres reply; |
| 170 | } readres_u; |
| 171 | }; |
| 172 | typedef struct readres readres; |
| 173 | |
| 174 | struct writeargs { |
| 175 | nfs_fh file; |
| 176 | u_int beginoffset; |
| 177 | u_int offset; |
| 178 | u_int totalcount; |
| 179 | struct { |
| 180 | unsigned int data_len; |
| 181 | char *data_val; |
| 182 | } data; |
| 183 | }; |
| 184 | typedef struct writeargs writeargs; |
| 185 | |
| 186 | struct createargs { |
| 187 | diropargs where; |
| 188 | sattr attributes; |
| 189 | }; |
| 190 | typedef struct createargs createargs; |
| 191 | |
| 192 | struct renameargs { |
| 193 | diropargs from; |
| 194 | diropargs to; |
| 195 | }; |
| 196 | typedef struct renameargs renameargs; |
| 197 | |
| 198 | struct linkargs { |
| 199 | nfs_fh from; |
| 200 | diropargs to; |
| 201 | }; |
| 202 | typedef struct linkargs linkargs; |
| 203 | |
| 204 | struct symlinkargs { |
| 205 | diropargs from; |
| 206 | nfspath to; |
| 207 | sattr attributes; |
| 208 | }; |
| 209 | typedef struct symlinkargs symlinkargs; |
| 210 | |
| 211 | typedef char nfscookie[NFS_COOKIESIZE]; |
| 212 | |
| 213 | struct readdirargs { |
| 214 | nfs_fh dir; |
| 215 | nfscookie cookie; |
| 216 | u_int count; |
| 217 | }; |
| 218 | typedef struct readdirargs readdirargs; |
| 219 | |
| 220 | struct entry { |
| 221 | u_int fileid; |
| 222 | filename name; |
| 223 | nfscookie cookie; |
| 224 | struct entry *nextentry; |
| 225 | }; |
| 226 | typedef struct entry entry; |
| 227 | |
| 228 | struct dirlist { |
| 229 | entry *entries; |
| 230 | bool_t eof; |
| 231 | }; |
| 232 | typedef struct dirlist dirlist; |
| 233 | |
| 234 | struct readdirres { |
| 235 | nfsstat status; |
| 236 | union { |
| 237 | dirlist reply; |
| 238 | } readdirres_u; |
| 239 | }; |
| 240 | typedef struct readdirres readdirres; |
| 241 | |
| 242 | struct statfsokres { |
| 243 | u_int tsize; |
| 244 | u_int bsize; |
| 245 | u_int blocks; |
| 246 | u_int bfree; |
| 247 | u_int bavail; |
| 248 | }; |
| 249 | typedef struct statfsokres statfsokres; |
| 250 | |
| 251 | struct statfsres { |
| 252 | nfsstat status; |
| 253 | union { |
| 254 | statfsokres reply; |
| 255 | } statfsres_u; |
| 256 | }; |
| 257 | typedef struct statfsres statfsres; |
| 258 | #define NFS3_FHSIZE 64 |
| 259 | #define NFS3_COOKIEVERFSIZE 8 |
| 260 | #define NFS3_CREATEVERFSIZE 8 |
| 261 | #define NFS3_WRITEVERFSIZE 8 |
| 262 | |
| 263 | typedef char *filename3; |
| 264 | |
| 265 | typedef char *nfspath3; |
| 266 | |
| 267 | typedef u_int64_t fileid3; |
| 268 | |
| 269 | typedef u_int64_t cookie3; |
| 270 | |
| 271 | typedef char cookieverf3[NFS3_COOKIEVERFSIZE]; |
| 272 | |
| 273 | typedef char createverf3[NFS3_CREATEVERFSIZE]; |
| 274 | |
| 275 | typedef char writeverf3[NFS3_WRITEVERFSIZE]; |
| 276 | |
| 277 | typedef u_int32_t uid3; |
| 278 | |
| 279 | typedef u_int32_t gid3; |
| 280 | |
| 281 | typedef u_int64_t size3; |
| 282 | |
| 283 | typedef u_int64_t offset3; |
| 284 | |
| 285 | typedef u_int32_t mode3; |
| 286 | |
| 287 | typedef u_int32_t count3; |
| 288 | |
| 289 | enum nfsstat3 { |
| 290 | NFS3_OK = 0, |
| 291 | NFS3ERR_PERM = 1, |
| 292 | NFS3ERR_NOENT = 2, |
| 293 | NFS3ERR_IO = 5, |
| 294 | NFS3ERR_NXIO = 6, |
| 295 | NFS3ERR_ACCES = 13, |
| 296 | NFS3ERR_EXIST = 17, |
| 297 | NFS3ERR_XDEV = 18, |
| 298 | NFS3ERR_NODEV = 19, |
| 299 | NFS3ERR_NOTDIR = 20, |
| 300 | NFS3ERR_ISDIR = 21, |
| 301 | NFS3ERR_INVAL = 22, |
| 302 | NFS3ERR_FBIG = 27, |
| 303 | NFS3ERR_NOSPC = 28, |
| 304 | NFS3ERR_ROFS = 30, |
| 305 | NFS3ERR_MLINK = 31, |
| 306 | NFS3ERR_NAMETOOLONG = 63, |
| 307 | NFS3ERR_NOTEMPTY = 66, |
| 308 | NFS3ERR_DQUOT = 69, |
| 309 | NFS3ERR_STALE = 70, |
| 310 | NFS3ERR_REMOTE = 71, |
| 311 | NFS3ERR_BADHANDLE = 10001, |
| 312 | NFS3ERR_NOT_SYNC = 10002, |
| 313 | NFS3ERR_BAD_COOKIE = 10003, |
| 314 | NFS3ERR_NOTSUPP = 10004, |
| 315 | NFS3ERR_TOOSMALL = 10005, |
| 316 | NFS3ERR_SERVERFAULT = 10006, |
| 317 | NFS3ERR_BADTYPE = 10007, |
| 318 | NFS3ERR_JUKEBOX = 10008 |
| 319 | }; |
| 320 | typedef enum nfsstat3 nfsstat3; |
| 321 | |
| 322 | enum ftype3 { |
| 323 | NF3REG = 1, |
| 324 | NF3DIR = 2, |
| 325 | NF3BLK = 3, |
| 326 | NF3CHR = 4, |
| 327 | NF3LNK = 5, |
| 328 | NF3SOCK = 6, |
| 329 | NF3FIFO = 7 |
| 330 | }; |
| 331 | typedef enum ftype3 ftype3; |
| 332 | |
| 333 | struct specdata3 { |
| 334 | u_int32_t specdata1; |
| 335 | u_int32_t specdata2; |
| 336 | }; |
| 337 | typedef struct specdata3 specdata3; |
| 338 | |
| 339 | struct nfs_fh3 { |
| 340 | struct { |
| 341 | unsigned int data_len; |
| 342 | char *data_val; |
| 343 | } data; |
| 344 | }; |
| 345 | typedef struct nfs_fh3 nfs_fh3; |
| 346 | |
| 347 | struct nfstime3 { |
| 348 | u_int32_t seconds; |
| 349 | u_int32_t nseconds; |
| 350 | }; |
| 351 | typedef struct nfstime3 nfstime3; |
| 352 | |
| 353 | struct fattr3 { |
| 354 | ftype3 type; |
| 355 | mode3 mode; |
| 356 | u_int32_t nlink; |
| 357 | uid3 uid; |
| 358 | gid3 gid; |
| 359 | size3 size; |
| 360 | size3 used; |
| 361 | specdata3 rdev; |
| 362 | u_int64_t fsid; |
| 363 | fileid3 fileid; |
| 364 | nfstime3 atime; |
| 365 | nfstime3 mtime; |
| 366 | nfstime3 ctime; |
| 367 | }; |
| 368 | typedef struct fattr3 fattr3; |
| 369 | |
| 370 | struct post_op_attr { |
| 371 | bool_t attributes_follow; |
| 372 | union { |
| 373 | fattr3 attributes; |
| 374 | } post_op_attr_u; |
| 375 | }; |
| 376 | typedef struct post_op_attr post_op_attr; |
| 377 | |
| 378 | struct wcc_attr { |
| 379 | size3 size; |
| 380 | nfstime3 mtime; |
| 381 | nfstime3 ctime; |
| 382 | }; |
| 383 | typedef struct wcc_attr wcc_attr; |
| 384 | |
| 385 | struct pre_op_attr { |
| 386 | bool_t attributes_follow; |
| 387 | union { |
| 388 | wcc_attr attributes; |
| 389 | } pre_op_attr_u; |
| 390 | }; |
| 391 | typedef struct pre_op_attr pre_op_attr; |
| 392 | |
| 393 | struct wcc_data { |
| 394 | pre_op_attr before; |
| 395 | post_op_attr after; |
| 396 | }; |
| 397 | typedef struct wcc_data wcc_data; |
| 398 | |
| 399 | struct post_op_fh3 { |
| 400 | bool_t handle_follows; |
| 401 | union { |
| 402 | nfs_fh3 handle; |
| 403 | } post_op_fh3_u; |
| 404 | }; |
| 405 | typedef struct post_op_fh3 post_op_fh3; |
| 406 | |
| 407 | enum time_how { |
| 408 | DONT_CHANGE = 0, |
| 409 | SET_TO_SERVER_TIME = 1, |
| 410 | SET_TO_CLIENT_TIME = 2 |
| 411 | }; |
| 412 | typedef enum time_how time_how; |
| 413 | |
| 414 | struct set_mode3 { |
| 415 | bool_t set_it; |
| 416 | union { |
| 417 | mode3 mode; |
| 418 | } set_mode3_u; |
| 419 | }; |
| 420 | typedef struct set_mode3 set_mode3; |
| 421 | |
| 422 | struct set_uid3 { |
| 423 | bool_t set_it; |
| 424 | union { |
| 425 | uid3 uid; |
| 426 | } set_uid3_u; |
| 427 | }; |
| 428 | typedef struct set_uid3 set_uid3; |
| 429 | |
| 430 | struct set_gid3 { |
| 431 | bool_t set_it; |
| 432 | union { |
| 433 | gid3 gid; |
| 434 | } set_gid3_u; |
| 435 | }; |
| 436 | typedef struct set_gid3 set_gid3; |
| 437 | |
| 438 | struct set_size3 { |
| 439 | bool_t set_it; |
| 440 | union { |
| 441 | size3 size; |
| 442 | } set_size3_u; |
| 443 | }; |
| 444 | typedef struct set_size3 set_size3; |
| 445 | |
| 446 | struct set_atime { |
| 447 | time_how set_it; |
| 448 | union { |
| 449 | nfstime3 atime; |
| 450 | } set_atime_u; |
| 451 | }; |
| 452 | typedef struct set_atime set_atime; |
| 453 | |
| 454 | struct set_mtime { |
| 455 | time_how set_it; |
| 456 | union { |
| 457 | nfstime3 mtime; |
| 458 | } set_mtime_u; |
| 459 | }; |
| 460 | typedef struct set_mtime set_mtime; |
| 461 | |
| 462 | struct sattr3 { |
| 463 | set_mode3 mode; |
| 464 | set_uid3 uid; |
| 465 | set_gid3 gid; |
| 466 | set_size3 size; |
| 467 | set_atime atime; |
| 468 | set_mtime mtime; |
| 469 | }; |
| 470 | typedef struct sattr3 sattr3; |
| 471 | |
| 472 | struct diropargs3 { |
| 473 | nfs_fh3 dir; |
| 474 | filename3 name; |
| 475 | }; |
| 476 | typedef struct diropargs3 diropargs3; |
| 477 | |
| 478 | struct GETATTR3args { |
| 479 | nfs_fh3 object; |
| 480 | }; |
| 481 | typedef struct GETATTR3args GETATTR3args; |
| 482 | |
| 483 | struct GETATTR3resok { |
| 484 | fattr3 obj_attributes; |
| 485 | }; |
| 486 | typedef struct GETATTR3resok GETATTR3resok; |
| 487 | |
| 488 | struct GETATTR3res { |
| 489 | nfsstat3 status; |
| 490 | union { |
| 491 | GETATTR3resok resok; |
| 492 | } GETATTR3res_u; |
| 493 | }; |
| 494 | typedef struct GETATTR3res GETATTR3res; |
| 495 | |
| 496 | struct sattrguard3 { |
| 497 | bool_t check; |
| 498 | union { |
| 499 | nfstime3 obj_ctime; |
| 500 | } sattrguard3_u; |
| 501 | }; |
| 502 | typedef struct sattrguard3 sattrguard3; |
| 503 | |
| 504 | struct SETATTR3args { |
| 505 | nfs_fh3 object; |
| 506 | sattr3 new_attributes; |
| 507 | sattrguard3 guard; |
| 508 | }; |
| 509 | typedef struct SETATTR3args SETATTR3args; |
| 510 | |
| 511 | struct SETATTR3resok { |
| 512 | wcc_data obj_wcc; |
| 513 | }; |
| 514 | typedef struct SETATTR3resok SETATTR3resok; |
| 515 | |
| 516 | struct SETATTR3resfail { |
| 517 | wcc_data obj_wcc; |
| 518 | }; |
| 519 | typedef struct SETATTR3resfail SETATTR3resfail; |
| 520 | |
| 521 | struct SETATTR3res { |
| 522 | nfsstat3 status; |
| 523 | union { |
| 524 | SETATTR3resok resok; |
| 525 | SETATTR3resfail resfail; |
| 526 | } SETATTR3res_u; |
| 527 | }; |
| 528 | typedef struct SETATTR3res SETATTR3res; |
| 529 | |
| 530 | struct LOOKUP3args { |
| 531 | diropargs3 what; |
| 532 | }; |
| 533 | typedef struct LOOKUP3args LOOKUP3args; |
| 534 | |
| 535 | struct LOOKUP3resok { |
| 536 | nfs_fh3 object; |
| 537 | post_op_attr obj_attributes; |
| 538 | post_op_attr dir_attributes; |
| 539 | }; |
| 540 | typedef struct LOOKUP3resok LOOKUP3resok; |
| 541 | |
| 542 | struct LOOKUP3resfail { |
| 543 | post_op_attr dir_attributes; |
| 544 | }; |
| 545 | typedef struct LOOKUP3resfail LOOKUP3resfail; |
| 546 | |
| 547 | struct LOOKUP3res { |
| 548 | nfsstat3 status; |
| 549 | union { |
| 550 | LOOKUP3resok resok; |
| 551 | LOOKUP3resfail resfail; |
| 552 | } LOOKUP3res_u; |
| 553 | }; |
| 554 | typedef struct LOOKUP3res LOOKUP3res; |
| 555 | #define ACCESS3_READ 0x0001 |
| 556 | #define ACCESS3_LOOKUP 0x0002 |
| 557 | #define ACCESS3_MODIFY 0x0004 |
| 558 | #define ACCESS3_EXTEND 0x0008 |
| 559 | #define ACCESS3_DELETE 0x0010 |
| 560 | #define ACCESS3_EXECUTE 0x0020 |
| 561 | |
| 562 | struct ACCESS3args { |
| 563 | nfs_fh3 object; |
| 564 | u_int32_t access; |
| 565 | }; |
| 566 | typedef struct ACCESS3args ACCESS3args; |
| 567 | |
| 568 | struct ACCESS3resok { |
| 569 | post_op_attr obj_attributes; |
| 570 | u_int32_t access; |
| 571 | }; |
| 572 | typedef struct ACCESS3resok ACCESS3resok; |
| 573 | |
| 574 | struct ACCESS3resfail { |
| 575 | post_op_attr obj_attributes; |
| 576 | }; |
| 577 | typedef struct ACCESS3resfail ACCESS3resfail; |
| 578 | |
| 579 | struct ACCESS3res { |
| 580 | nfsstat3 status; |
| 581 | union { |
| 582 | ACCESS3resok resok; |
| 583 | ACCESS3resfail resfail; |
| 584 | } ACCESS3res_u; |
| 585 | }; |
| 586 | typedef struct ACCESS3res ACCESS3res; |
| 587 | |
| 588 | struct READLINK3args { |
| 589 | nfs_fh3 symlink; |
| 590 | }; |
| 591 | typedef struct READLINK3args READLINK3args; |
| 592 | |
| 593 | struct READLINK3resok { |
| 594 | post_op_attr symlink_attributes; |
| 595 | nfspath3 data; |
| 596 | }; |
| 597 | typedef struct READLINK3resok READLINK3resok; |
| 598 | |
| 599 | struct READLINK3resfail { |
| 600 | post_op_attr symlink_attributes; |
| 601 | }; |
| 602 | typedef struct READLINK3resfail READLINK3resfail; |
| 603 | |
| 604 | struct READLINK3res { |
| 605 | nfsstat3 status; |
| 606 | union { |
| 607 | READLINK3resok resok; |
| 608 | READLINK3resfail resfail; |
| 609 | } READLINK3res_u; |
| 610 | }; |
| 611 | typedef struct READLINK3res READLINK3res; |
| 612 | |
| 613 | struct READ3args { |
| 614 | nfs_fh3 file; |
| 615 | offset3 offset; |
| 616 | count3 count; |
| 617 | }; |
| 618 | typedef struct READ3args READ3args; |
| 619 | |
| 620 | struct READ3resok { |
| 621 | post_op_attr file_attributes; |
| 622 | count3 count; |
| 623 | bool_t eof; |
| 624 | struct { |
| 625 | unsigned int data_len; |
| 626 | char *data_val; |
| 627 | } data; |
| 628 | }; |
| 629 | typedef struct READ3resok READ3resok; |
| 630 | |
| 631 | struct READ3resfail { |
| 632 | post_op_attr file_attributes; |
| 633 | }; |
| 634 | typedef struct READ3resfail READ3resfail; |
| 635 | |
| 636 | struct READ3res { |
| 637 | nfsstat3 status; |
| 638 | union { |
| 639 | READ3resok resok; |
| 640 | READ3resfail resfail; |
| 641 | } READ3res_u; |
| 642 | }; |
| 643 | typedef struct READ3res READ3res; |
| 644 | |
| 645 | enum stable_how { |
| 646 | UNSTABLE = 0, |
| 647 | DATA_SYNC = 1, |
| 648 | FILE_SYNC = 2 |
| 649 | }; |
| 650 | typedef enum stable_how stable_how; |
| 651 | |
| 652 | struct WRITE3args { |
| 653 | nfs_fh3 file; |
| 654 | offset3 offset; |
| 655 | count3 count; |
| 656 | stable_how stable; |
| 657 | struct { |
| 658 | unsigned int data_len; |
| 659 | char *data_val; |
| 660 | } data; |
| 661 | }; |
| 662 | typedef struct WRITE3args WRITE3args; |
| 663 | |
| 664 | struct WRITE3resok { |
| 665 | wcc_data file_wcc; |
| 666 | count3 count; |
| 667 | stable_how committed; |
| 668 | writeverf3 verf; |
| 669 | }; |
| 670 | typedef struct WRITE3resok WRITE3resok; |
| 671 | |
| 672 | struct WRITE3resfail { |
| 673 | wcc_data file_wcc; |
| 674 | }; |
| 675 | typedef struct WRITE3resfail WRITE3resfail; |
| 676 | |
| 677 | struct WRITE3res { |
| 678 | nfsstat3 status; |
| 679 | union { |
| 680 | WRITE3resok resok; |
| 681 | WRITE3resfail resfail; |
| 682 | } WRITE3res_u; |
| 683 | }; |
| 684 | typedef struct WRITE3res WRITE3res; |
| 685 | |
| 686 | enum createmode3 { |
| 687 | UNCHECKED = 0, |
| 688 | GUARDED = 1, |
| 689 | EXCLUSIVE = 2 |
| 690 | }; |
| 691 | typedef enum createmode3 createmode3; |
| 692 | |
| 693 | struct createhow3 { |
| 694 | createmode3 mode; |
| 695 | union { |
| 696 | sattr3 obj_attributes; |
| 697 | createverf3 verf; |
| 698 | } createhow3_u; |
| 699 | }; |
| 700 | typedef struct createhow3 createhow3; |
| 701 | |
| 702 | struct CREATE3args { |
| 703 | diropargs3 where; |
| 704 | createhow3 how; |
| 705 | }; |
| 706 | typedef struct CREATE3args CREATE3args; |
| 707 | |
| 708 | struct CREATE3resok { |
| 709 | post_op_fh3 obj; |
| 710 | post_op_attr obj_attributes; |
| 711 | wcc_data dir_wcc; |
| 712 | }; |
| 713 | typedef struct CREATE3resok CREATE3resok; |
| 714 | |
| 715 | struct CREATE3resfail { |
| 716 | wcc_data dir_wcc; |
| 717 | }; |
| 718 | typedef struct CREATE3resfail CREATE3resfail; |
| 719 | |
| 720 | struct CREATE3res { |
| 721 | nfsstat3 status; |
| 722 | union { |
| 723 | CREATE3resok resok; |
| 724 | CREATE3resfail resfail; |
| 725 | } CREATE3res_u; |
| 726 | }; |
| 727 | typedef struct CREATE3res CREATE3res; |
| 728 | |
| 729 | struct MKDIR3args { |
| 730 | diropargs3 where; |
| 731 | sattr3 attributes; |
| 732 | }; |
| 733 | typedef struct MKDIR3args MKDIR3args; |
| 734 | |
| 735 | struct MKDIR3resok { |
| 736 | post_op_fh3 obj; |
| 737 | post_op_attr obj_attributes; |
| 738 | wcc_data dir_wcc; |
| 739 | }; |
| 740 | typedef struct MKDIR3resok MKDIR3resok; |
| 741 | |
| 742 | struct MKDIR3resfail { |
| 743 | wcc_data dir_wcc; |
| 744 | }; |
| 745 | typedef struct MKDIR3resfail MKDIR3resfail; |
| 746 | |
| 747 | struct MKDIR3res { |
| 748 | nfsstat3 status; |
| 749 | union { |
| 750 | MKDIR3resok resok; |
| 751 | MKDIR3resfail resfail; |
| 752 | } MKDIR3res_u; |
| 753 | }; |
| 754 | typedef struct MKDIR3res MKDIR3res; |
| 755 | |
| 756 | struct symlinkdata3 { |
| 757 | sattr3 symlink_attributes; |
| 758 | nfspath3 symlink_data; |
| 759 | }; |
| 760 | typedef struct symlinkdata3 symlinkdata3; |
| 761 | |
| 762 | struct SYMLINK3args { |
| 763 | diropargs3 where; |
| 764 | symlinkdata3 symlink; |
| 765 | }; |
| 766 | typedef struct SYMLINK3args SYMLINK3args; |
| 767 | |
| 768 | struct SYMLINK3resok { |
| 769 | post_op_fh3 obj; |
| 770 | post_op_attr obj_attributes; |
| 771 | wcc_data dir_wcc; |
| 772 | }; |
| 773 | typedef struct SYMLINK3resok SYMLINK3resok; |
| 774 | |
| 775 | struct SYMLINK3resfail { |
| 776 | wcc_data dir_wcc; |
| 777 | }; |
| 778 | typedef struct SYMLINK3resfail SYMLINK3resfail; |
| 779 | |
| 780 | struct SYMLINK3res { |
| 781 | nfsstat3 status; |
| 782 | union { |
| 783 | SYMLINK3resok resok; |
| 784 | SYMLINK3resfail resfail; |
| 785 | } SYMLINK3res_u; |
| 786 | }; |
| 787 | typedef struct SYMLINK3res SYMLINK3res; |
| 788 | |
| 789 | struct devicedata3 { |
| 790 | sattr3 dev_attributes; |
| 791 | specdata3 spec; |
| 792 | }; |
| 793 | typedef struct devicedata3 devicedata3; |
| 794 | |
| 795 | struct mknoddata3 { |
| 796 | ftype3 type; |
| 797 | union { |
| 798 | devicedata3 device; |
| 799 | sattr3 pipe_attributes; |
| 800 | } mknoddata3_u; |
| 801 | }; |
| 802 | typedef struct mknoddata3 mknoddata3; |
| 803 | |
| 804 | struct MKNOD3args { |
| 805 | diropargs3 where; |
| 806 | mknoddata3 what; |
| 807 | }; |
| 808 | typedef struct MKNOD3args MKNOD3args; |
| 809 | |
| 810 | struct MKNOD3resok { |
| 811 | post_op_fh3 obj; |
| 812 | post_op_attr obj_attributes; |
| 813 | wcc_data dir_wcc; |
| 814 | }; |
| 815 | typedef struct MKNOD3resok MKNOD3resok; |
| 816 | |
| 817 | struct MKNOD3resfail { |
| 818 | wcc_data dir_wcc; |
| 819 | }; |
| 820 | typedef struct MKNOD3resfail MKNOD3resfail; |
| 821 | |
| 822 | struct MKNOD3res { |
| 823 | nfsstat3 status; |
| 824 | union { |
| 825 | MKNOD3resok resok; |
| 826 | MKNOD3resfail resfail; |
| 827 | } MKNOD3res_u; |
| 828 | }; |
| 829 | typedef struct MKNOD3res MKNOD3res; |
| 830 | |
| 831 | struct REMOVE3args { |
| 832 | diropargs3 object; |
| 833 | }; |
| 834 | typedef struct REMOVE3args REMOVE3args; |
| 835 | |
| 836 | struct REMOVE3resok { |
| 837 | wcc_data dir_wcc; |
| 838 | }; |
| 839 | typedef struct REMOVE3resok REMOVE3resok; |
| 840 | |
| 841 | struct REMOVE3resfail { |
| 842 | wcc_data dir_wcc; |
| 843 | }; |
| 844 | typedef struct REMOVE3resfail REMOVE3resfail; |
| 845 | |
| 846 | struct REMOVE3res { |
| 847 | nfsstat3 status; |
| 848 | union { |
| 849 | REMOVE3resok resok; |
| 850 | REMOVE3resfail resfail; |
| 851 | } REMOVE3res_u; |
| 852 | }; |
| 853 | typedef struct REMOVE3res REMOVE3res; |
| 854 | |
| 855 | struct RMDIR3args { |
| 856 | diropargs3 object; |
| 857 | }; |
| 858 | typedef struct RMDIR3args RMDIR3args; |
| 859 | |
| 860 | struct RMDIR3resok { |
| 861 | wcc_data dir_wcc; |
| 862 | }; |
| 863 | typedef struct RMDIR3resok RMDIR3resok; |
| 864 | |
| 865 | struct RMDIR3resfail { |
| 866 | wcc_data dir_wcc; |
| 867 | }; |
| 868 | typedef struct RMDIR3resfail RMDIR3resfail; |
| 869 | |
| 870 | struct RMDIR3res { |
| 871 | nfsstat3 status; |
| 872 | union { |
| 873 | RMDIR3resok resok; |
| 874 | RMDIR3resfail resfail; |
| 875 | } RMDIR3res_u; |
| 876 | }; |
| 877 | typedef struct RMDIR3res RMDIR3res; |
| 878 | |
| 879 | struct RENAME3args { |
| 880 | diropargs3 from; |
| 881 | diropargs3 to; |
| 882 | }; |
| 883 | typedef struct RENAME3args RENAME3args; |
| 884 | |
| 885 | struct RENAME3resok { |
| 886 | wcc_data fromdir_wcc; |
| 887 | wcc_data todir_wcc; |
| 888 | }; |
| 889 | typedef struct RENAME3resok RENAME3resok; |
| 890 | |
| 891 | struct RENAME3resfail { |
| 892 | wcc_data fromdir_wcc; |
| 893 | wcc_data todir_wcc; |
| 894 | }; |
| 895 | typedef struct RENAME3resfail RENAME3resfail; |
| 896 | |
| 897 | struct RENAME3res { |
| 898 | nfsstat3 status; |
| 899 | union { |
| 900 | RENAME3resok resok; |
| 901 | RENAME3resfail resfail; |
| 902 | } RENAME3res_u; |
| 903 | }; |
| 904 | typedef struct RENAME3res RENAME3res; |
| 905 | |
| 906 | struct LINK3args { |
| 907 | nfs_fh3 file; |
| 908 | diropargs3 link; |
| 909 | }; |
| 910 | typedef struct LINK3args LINK3args; |
| 911 | |
| 912 | struct LINK3resok { |
| 913 | post_op_attr file_attributes; |
| 914 | wcc_data linkdir_wcc; |
| 915 | }; |
| 916 | typedef struct LINK3resok LINK3resok; |
| 917 | |
| 918 | struct LINK3resfail { |
| 919 | post_op_attr file_attributes; |
| 920 | wcc_data linkdir_wcc; |
| 921 | }; |
| 922 | typedef struct LINK3resfail LINK3resfail; |
| 923 | |
| 924 | struct LINK3res { |
| 925 | nfsstat3 status; |
| 926 | union { |
| 927 | LINK3resok resok; |
| 928 | LINK3resfail resfail; |
| 929 | } LINK3res_u; |
| 930 | }; |
| 931 | typedef struct LINK3res LINK3res; |
| 932 | |
| 933 | struct READDIR3args { |
| 934 | nfs_fh3 dir; |
| 935 | cookie3 cookie; |
| 936 | cookieverf3 cookieverf; |
| 937 | count3 count; |
| 938 | }; |
| 939 | typedef struct READDIR3args READDIR3args; |
| 940 | |
| 941 | struct entry3 { |
| 942 | fileid3 fileid; |
| 943 | filename3 name; |
| 944 | cookie3 cookie; |
| 945 | struct entry3 *nextentry; |
| 946 | }; |
| 947 | typedef struct entry3 entry3; |
| 948 | |
| 949 | struct dirlist3 { |
| 950 | entry3 *entries; |
| 951 | bool_t eof; |
| 952 | }; |
| 953 | typedef struct dirlist3 dirlist3; |
| 954 | |
| 955 | struct READDIR3resok { |
| 956 | post_op_attr dir_attributes; |
| 957 | cookieverf3 cookieverf; |
| 958 | dirlist3 reply; |
| 959 | }; |
| 960 | typedef struct READDIR3resok READDIR3resok; |
| 961 | |
| 962 | struct READDIR3resfail { |
| 963 | post_op_attr dir_attributes; |
| 964 | }; |
| 965 | typedef struct READDIR3resfail READDIR3resfail; |
| 966 | |
| 967 | struct READDIR3res { |
| 968 | nfsstat3 status; |
| 969 | union { |
| 970 | READDIR3resok resok; |
| 971 | READDIR3resfail resfail; |
| 972 | } READDIR3res_u; |
| 973 | }; |
| 974 | typedef struct READDIR3res READDIR3res; |
| 975 | |
| 976 | struct READDIRPLUS3args { |
| 977 | nfs_fh3 dir; |
| 978 | cookie3 cookie; |
| 979 | cookieverf3 cookieverf; |
| 980 | count3 dircount; |
| 981 | count3 maxcount; |
| 982 | }; |
| 983 | typedef struct READDIRPLUS3args READDIRPLUS3args; |
| 984 | |
| 985 | struct entryplus3 { |
| 986 | fileid3 fileid; |
| 987 | filename3 name; |
| 988 | cookie3 cookie; |
| 989 | post_op_attr name_attributes; |
| 990 | post_op_fh3 name_handle; |
| 991 | struct entryplus3 *nextentry; |
| 992 | }; |
| 993 | typedef struct entryplus3 entryplus3; |
| 994 | |
| 995 | struct dirlistplus3 { |
| 996 | entryplus3 *entries; |
| 997 | bool_t eof; |
| 998 | }; |
| 999 | typedef struct dirlistplus3 dirlistplus3; |
| 1000 | |
| 1001 | struct READDIRPLUS3resok { |
| 1002 | post_op_attr dir_attributes; |
| 1003 | cookieverf3 cookieverf; |
| 1004 | dirlistplus3 reply; |
| 1005 | }; |
| 1006 | typedef struct READDIRPLUS3resok READDIRPLUS3resok; |
| 1007 | |
| 1008 | struct READDIRPLUS3resfail { |
| 1009 | post_op_attr dir_attributes; |
| 1010 | }; |
| 1011 | typedef struct READDIRPLUS3resfail READDIRPLUS3resfail; |
| 1012 | |
| 1013 | struct READDIRPLUS3res { |
| 1014 | nfsstat3 status; |
| 1015 | union { |
| 1016 | READDIRPLUS3resok resok; |
| 1017 | READDIRPLUS3resfail resfail; |
| 1018 | } READDIRPLUS3res_u; |
| 1019 | }; |
| 1020 | typedef struct READDIRPLUS3res READDIRPLUS3res; |
| 1021 | |
| 1022 | struct FSSTAT3args { |
| 1023 | nfs_fh3 fsroot; |
| 1024 | }; |
| 1025 | typedef struct FSSTAT3args FSSTAT3args; |
| 1026 | |
| 1027 | struct FSSTAT3resok { |
| 1028 | post_op_attr obj_attributes; |
| 1029 | size3 tbytes; |
| 1030 | size3 fbytes; |
| 1031 | size3 abytes; |
| 1032 | size3 tfiles; |
| 1033 | size3 ffiles; |
| 1034 | size3 afiles; |
| 1035 | u_int32_t invarsec; |
| 1036 | }; |
| 1037 | typedef struct FSSTAT3resok FSSTAT3resok; |
| 1038 | |
| 1039 | struct FSSTAT3resfail { |
| 1040 | post_op_attr obj_attributes; |
| 1041 | }; |
| 1042 | typedef struct FSSTAT3resfail FSSTAT3resfail; |
| 1043 | |
| 1044 | struct FSSTAT3res { |
| 1045 | nfsstat3 status; |
| 1046 | union { |
| 1047 | FSSTAT3resok resok; |
| 1048 | FSSTAT3resfail resfail; |
| 1049 | } FSSTAT3res_u; |
| 1050 | }; |
| 1051 | typedef struct FSSTAT3res FSSTAT3res; |
| 1052 | #define FSF3_LINK 0x0001 |
| 1053 | #define FSF3_SYMLINK 0x0002 |
| 1054 | #define FSF3_HOMOGENEOUS 0x0008 |
| 1055 | #define FSF3_CANSETTIME 0x0010 |
| 1056 | |
| 1057 | struct FSINFO3args { |
| 1058 | nfs_fh3 fsroot; |
| 1059 | }; |
| 1060 | typedef struct FSINFO3args FSINFO3args; |
| 1061 | |
| 1062 | struct FSINFO3resok { |
| 1063 | post_op_attr obj_attributes; |
| 1064 | u_int32_t rtmax; |
| 1065 | u_int32_t rtpref; |
| 1066 | u_int32_t rtmult; |
| 1067 | u_int32_t wtmax; |
| 1068 | u_int32_t wtpref; |
| 1069 | u_int32_t wtmult; |
| 1070 | u_int32_t dtpref; |
| 1071 | size3 maxfilesize; |
| 1072 | nfstime3 time_delta; |
| 1073 | u_int32_t properties; |
| 1074 | }; |
| 1075 | typedef struct FSINFO3resok FSINFO3resok; |
| 1076 | |
| 1077 | struct FSINFO3resfail { |
| 1078 | post_op_attr obj_attributes; |
| 1079 | }; |
| 1080 | typedef struct FSINFO3resfail FSINFO3resfail; |
| 1081 | |
| 1082 | struct FSINFO3res { |
| 1083 | nfsstat3 status; |
| 1084 | union { |
| 1085 | FSINFO3resok resok; |
| 1086 | FSINFO3resfail resfail; |
| 1087 | } FSINFO3res_u; |
| 1088 | }; |
| 1089 | typedef struct FSINFO3res FSINFO3res; |
| 1090 | |
| 1091 | struct PATHCONF3args { |
| 1092 | nfs_fh3 object; |
| 1093 | }; |
| 1094 | typedef struct PATHCONF3args PATHCONF3args; |
| 1095 | |
| 1096 | struct PATHCONF3resok { |
| 1097 | post_op_attr obj_attributes; |
| 1098 | u_int32_t linkmax; |
| 1099 | u_int32_t name_max; |
| 1100 | bool_t no_trunc; |
| 1101 | bool_t chown_restricted; |
| 1102 | bool_t case_insensitive; |
| 1103 | bool_t case_preserving; |
| 1104 | }; |
| 1105 | typedef struct PATHCONF3resok PATHCONF3resok; |
| 1106 | |
| 1107 | struct PATHCONF3resfail { |
| 1108 | post_op_attr obj_attributes; |
| 1109 | }; |
| 1110 | typedef struct PATHCONF3resfail PATHCONF3resfail; |
| 1111 | |
| 1112 | struct PATHCONF3res { |
| 1113 | nfsstat3 status; |
| 1114 | union { |
| 1115 | PATHCONF3resok resok; |
| 1116 | PATHCONF3resfail resfail; |
| 1117 | } PATHCONF3res_u; |
| 1118 | }; |
| 1119 | typedef struct PATHCONF3res PATHCONF3res; |
| 1120 | |
| 1121 | struct COMMIT3args { |
| 1122 | nfs_fh3 file; |
| 1123 | offset3 offset; |
| 1124 | count3 count; |
| 1125 | }; |
| 1126 | typedef struct COMMIT3args COMMIT3args; |
| 1127 | |
| 1128 | struct COMMIT3resok { |
| 1129 | wcc_data file_wcc; |
| 1130 | writeverf3 verf; |
| 1131 | }; |
| 1132 | typedef struct COMMIT3resok COMMIT3resok; |
| 1133 | |
| 1134 | struct COMMIT3resfail { |
| 1135 | wcc_data file_wcc; |
| 1136 | }; |
| 1137 | typedef struct COMMIT3resfail COMMIT3resfail; |
| 1138 | |
| 1139 | struct COMMIT3res { |
| 1140 | nfsstat3 status; |
| 1141 | union { |
| 1142 | COMMIT3resok resok; |
| 1143 | COMMIT3resfail resfail; |
| 1144 | } COMMIT3res_u; |
| 1145 | }; |
| 1146 | typedef struct COMMIT3res COMMIT3res; |
| 1147 | |
| 1148 | __BEGIN_DECLS |
| 1149 | bool_t xdr_nfsstat(XDR *, nfsstat *); |
| 1150 | bool_t xdr_ftype(XDR *, ftype *); |
| 1151 | bool_t xdr_nfs_fh(XDR *, nfs_fh *); |
| 1152 | bool_t xdr_nfstime(XDR *, nfstime *); |
| 1153 | bool_t xdr_fattr(XDR *, fattr *); |
| 1154 | bool_t xdr_sattr(XDR *, sattr *); |
| 1155 | bool_t xdr_filename(XDR *, filename *); |
| 1156 | bool_t xdr_nfspath(XDR *, nfspath *); |
| 1157 | bool_t xdr_attrstat(XDR *, attrstat *); |
| 1158 | bool_t xdr_sattrargs(XDR *, sattrargs *); |
| 1159 | bool_t xdr_diropargs(XDR *, diropargs *); |
| 1160 | bool_t xdr_diropokres(XDR *, diropokres *); |
| 1161 | bool_t xdr_diropres(XDR *, diropres *); |
| 1162 | bool_t xdr_readlinkres(XDR *, readlinkres *); |
| 1163 | bool_t xdr_readargs(XDR *, readargs *); |
| 1164 | bool_t xdr_readokres(XDR *, readokres *); |
| 1165 | bool_t xdr_readres(XDR *, readres *); |
| 1166 | bool_t xdr_writeargs(XDR *, writeargs *); |
| 1167 | bool_t xdr_createargs(XDR *, createargs *); |
| 1168 | bool_t xdr_renameargs(XDR *, renameargs *); |
| 1169 | bool_t xdr_linkargs(XDR *, linkargs *); |
| 1170 | bool_t xdr_symlinkargs(XDR *, symlinkargs *); |
| 1171 | bool_t xdr_nfscookie(XDR *, nfscookie); |
| 1172 | bool_t xdr_readdirargs(XDR *, readdirargs *); |
| 1173 | bool_t xdr_entry(XDR *, entry *); |
| 1174 | bool_t xdr_dirlist(XDR *, dirlist *); |
| 1175 | bool_t xdr_readdirres(XDR *, readdirres *); |
| 1176 | bool_t xdr_statfsokres(XDR *, statfsokres *); |
| 1177 | bool_t xdr_statfsres(XDR *, statfsres *); |
| 1178 | bool_t xdr_filename3(XDR *, filename3 *); |
| 1179 | bool_t xdr_nfspath3(XDR *, nfspath3 *); |
| 1180 | bool_t xdr_fileid3(XDR *, fileid3 *); |
| 1181 | bool_t xdr_cookie3(XDR *, cookie3 *); |
| 1182 | bool_t xdr_cookieverf3(XDR *, cookieverf3); |
| 1183 | bool_t xdr_createverf3(XDR *, createverf3); |
| 1184 | bool_t xdr_writeverf3(XDR *, writeverf3); |
| 1185 | bool_t xdr_uid3(XDR *, uid3 *); |
| 1186 | bool_t xdr_gid3(XDR *, gid3 *); |
| 1187 | bool_t xdr_size3(XDR *, size3 *); |
| 1188 | bool_t xdr_offset3(XDR *, offset3 *); |
| 1189 | bool_t xdr_mode3(XDR *, mode3 *); |
| 1190 | bool_t xdr_count3(XDR *, count3 *); |
| 1191 | bool_t xdr_nfsstat3(XDR *, nfsstat3 *); |
| 1192 | bool_t xdr_ftype3(XDR *, ftype3 *); |
| 1193 | bool_t xdr_specdata3(XDR *, specdata3 *); |
| 1194 | bool_t xdr_nfs_fh3(XDR *, nfs_fh3 *); |
| 1195 | bool_t xdr_nfstime3(XDR *, nfstime3 *); |
| 1196 | bool_t xdr_fattr3(XDR *, fattr3 *); |
| 1197 | bool_t xdr_post_op_attr(XDR *, post_op_attr *); |
| 1198 | bool_t xdr_wcc_attr(XDR *, wcc_attr *); |
| 1199 | bool_t xdr_pre_op_attr(XDR *, pre_op_attr *); |
| 1200 | bool_t xdr_wcc_data(XDR *, wcc_data *); |
| 1201 | bool_t xdr_post_op_fh3(XDR *, post_op_fh3 *); |
| 1202 | bool_t xdr_time_how(XDR *, time_how *); |
| 1203 | bool_t xdr_set_mode3(XDR *, set_mode3 *); |
| 1204 | bool_t xdr_set_uid3(XDR *, set_uid3 *); |
| 1205 | bool_t xdr_set_gid3(XDR *, set_gid3 *); |
| 1206 | bool_t xdr_set_size3(XDR *, set_size3 *); |
| 1207 | bool_t xdr_set_atime(XDR *, set_atime *); |
| 1208 | bool_t xdr_set_mtime(XDR *, set_mtime *); |
| 1209 | bool_t xdr_sattr3(XDR *, sattr3 *); |
| 1210 | bool_t xdr_diropargs3(XDR *, diropargs3 *); |
| 1211 | bool_t xdr_GETATTR3args(XDR *, GETATTR3args *); |
| 1212 | bool_t xdr_GETATTR3resok(XDR *, GETATTR3resok *); |
| 1213 | bool_t xdr_GETATTR3res(XDR *, GETATTR3res *); |
| 1214 | bool_t xdr_sattrguard3(XDR *, sattrguard3 *); |
| 1215 | bool_t xdr_SETATTR3args(XDR *, SETATTR3args *); |
| 1216 | bool_t xdr_SETATTR3resok(XDR *, SETATTR3resok *); |
| 1217 | bool_t xdr_SETATTR3resfail(XDR *, SETATTR3resfail *); |
| 1218 | bool_t xdr_SETATTR3res(XDR *, SETATTR3res *); |
| 1219 | bool_t xdr_LOOKUP3args(XDR *, LOOKUP3args *); |
| 1220 | bool_t xdr_LOOKUP3resok(XDR *, LOOKUP3resok *); |
| 1221 | bool_t xdr_LOOKUP3resfail(XDR *, LOOKUP3resfail *); |
| 1222 | bool_t xdr_LOOKUP3res(XDR *, LOOKUP3res *); |
| 1223 | bool_t xdr_ACCESS3args(XDR *, ACCESS3args *); |
| 1224 | bool_t xdr_ACCESS3resok(XDR *, ACCESS3resok *); |
| 1225 | bool_t xdr_ACCESS3resfail(XDR *, ACCESS3resfail *); |
| 1226 | bool_t xdr_ACCESS3res(XDR *, ACCESS3res *); |
| 1227 | bool_t xdr_READLINK3args(XDR *, READLINK3args *); |
| 1228 | bool_t xdr_READLINK3resok(XDR *, READLINK3resok *); |
| 1229 | bool_t xdr_READLINK3resfail(XDR *, READLINK3resfail *); |
| 1230 | bool_t xdr_READLINK3res(XDR *, READLINK3res *); |
| 1231 | bool_t xdr_READ3args(XDR *, READ3args *); |
| 1232 | bool_t xdr_READ3resok(XDR *, READ3resok *); |
| 1233 | bool_t xdr_READ3resfail(XDR *, READ3resfail *); |
| 1234 | bool_t xdr_READ3res(XDR *, READ3res *); |
| 1235 | bool_t xdr_stable_how(XDR *, stable_how *); |
| 1236 | bool_t xdr_WRITE3args(XDR *, WRITE3args *); |
| 1237 | bool_t xdr_WRITE3resok(XDR *, WRITE3resok *); |
| 1238 | bool_t xdr_WRITE3resfail(XDR *, WRITE3resfail *); |
| 1239 | bool_t xdr_WRITE3res(XDR *, WRITE3res *); |
| 1240 | bool_t xdr_createmode3(XDR *, createmode3 *); |
| 1241 | bool_t xdr_createhow3(XDR *, createhow3 *); |
| 1242 | bool_t xdr_CREATE3args(XDR *, CREATE3args *); |
| 1243 | bool_t xdr_CREATE3resok(XDR *, CREATE3resok *); |
| 1244 | bool_t xdr_CREATE3resfail(XDR *, CREATE3resfail *); |
| 1245 | bool_t xdr_CREATE3res(XDR *, CREATE3res *); |
| 1246 | bool_t xdr_MKDIR3args(XDR *, MKDIR3args *); |
| 1247 | bool_t xdr_MKDIR3resok(XDR *, MKDIR3resok *); |
| 1248 | bool_t xdr_MKDIR3resfail(XDR *, MKDIR3resfail *); |
| 1249 | bool_t xdr_MKDIR3res(XDR *, MKDIR3res *); |
| 1250 | bool_t xdr_symlinkdata3(XDR *, symlinkdata3 *); |
| 1251 | bool_t xdr_SYMLINK3args(XDR *, SYMLINK3args *); |
| 1252 | bool_t xdr_SYMLINK3resok(XDR *, SYMLINK3resok *); |
| 1253 | bool_t xdr_SYMLINK3resfail(XDR *, SYMLINK3resfail *); |
| 1254 | bool_t xdr_SYMLINK3res(XDR *, SYMLINK3res *); |
| 1255 | bool_t xdr_devicedata3(XDR *, devicedata3 *); |
| 1256 | bool_t xdr_mknoddata3(XDR *, mknoddata3 *); |
| 1257 | bool_t xdr_MKNOD3args(XDR *, MKNOD3args *); |
| 1258 | bool_t xdr_MKNOD3resok(XDR *, MKNOD3resok *); |
| 1259 | bool_t xdr_MKNOD3resfail(XDR *, MKNOD3resfail *); |
| 1260 | bool_t xdr_MKNOD3res(XDR *, MKNOD3res *); |
| 1261 | bool_t xdr_REMOVE3args(XDR *, REMOVE3args *); |
| 1262 | bool_t xdr_REMOVE3resok(XDR *, REMOVE3resok *); |
| 1263 | bool_t xdr_REMOVE3resfail(XDR *, REMOVE3resfail *); |
| 1264 | bool_t xdr_REMOVE3res(XDR *, REMOVE3res *); |
| 1265 | bool_t xdr_RMDIR3args(XDR *, RMDIR3args *); |
| 1266 | bool_t xdr_RMDIR3resok(XDR *, RMDIR3resok *); |
| 1267 | bool_t xdr_RMDIR3resfail(XDR *, RMDIR3resfail *); |
| 1268 | bool_t xdr_RMDIR3res(XDR *, RMDIR3res *); |
| 1269 | bool_t xdr_RENAME3args(XDR *, RENAME3args *); |
| 1270 | bool_t xdr_RENAME3resok(XDR *, RENAME3resok *); |
| 1271 | bool_t xdr_RENAME3resfail(XDR *, RENAME3resfail *); |
| 1272 | bool_t xdr_RENAME3res(XDR *, RENAME3res *); |
| 1273 | bool_t xdr_LINK3args(XDR *, LINK3args *); |
| 1274 | bool_t xdr_LINK3resok(XDR *, LINK3resok *); |
| 1275 | bool_t xdr_LINK3resfail(XDR *, LINK3resfail *); |
| 1276 | bool_t xdr_LINK3res(XDR *, LINK3res *); |
| 1277 | bool_t xdr_READDIR3args(XDR *, READDIR3args *); |
| 1278 | bool_t xdr_entry3(XDR *, entry3 *); |
| 1279 | bool_t xdr_dirlist3(XDR *, dirlist3 *); |
| 1280 | bool_t xdr_READDIR3resok(XDR *, READDIR3resok *); |
| 1281 | bool_t xdr_READDIR3resfail(XDR *, READDIR3resfail *); |
| 1282 | bool_t xdr_READDIR3res(XDR *, READDIR3res *); |
| 1283 | bool_t xdr_READDIRPLUS3args(XDR *, READDIRPLUS3args *); |
| 1284 | bool_t xdr_entryplus3(XDR *, entryplus3 *); |
| 1285 | bool_t xdr_dirlistplus3(XDR *, dirlistplus3 *); |
| 1286 | bool_t xdr_READDIRPLUS3resok(XDR *, READDIRPLUS3resok *); |
| 1287 | bool_t xdr_READDIRPLUS3resfail(XDR *, READDIRPLUS3resfail *); |
| 1288 | bool_t xdr_READDIRPLUS3res(XDR *, READDIRPLUS3res *); |
| 1289 | bool_t xdr_FSSTAT3args(XDR *, FSSTAT3args *); |
| 1290 | bool_t xdr_FSSTAT3resok(XDR *, FSSTAT3resok *); |
| 1291 | bool_t xdr_FSSTAT3resfail(XDR *, FSSTAT3resfail *); |
| 1292 | bool_t xdr_FSSTAT3res(XDR *, FSSTAT3res *); |
| 1293 | bool_t xdr_FSINFO3args(XDR *, FSINFO3args *); |
| 1294 | bool_t xdr_FSINFO3resok(XDR *, FSINFO3resok *); |
| 1295 | bool_t xdr_FSINFO3resfail(XDR *, FSINFO3resfail *); |
| 1296 | bool_t xdr_FSINFO3res(XDR *, FSINFO3res *); |
| 1297 | bool_t xdr_PATHCONF3args(XDR *, PATHCONF3args *); |
| 1298 | bool_t xdr_PATHCONF3resok(XDR *, PATHCONF3resok *); |
| 1299 | bool_t xdr_PATHCONF3resfail(XDR *, PATHCONF3resfail *); |
| 1300 | bool_t xdr_PATHCONF3res(XDR *, PATHCONF3res *); |
| 1301 | bool_t xdr_COMMIT3args(XDR *, COMMIT3args *); |
| 1302 | bool_t xdr_COMMIT3resok(XDR *, COMMIT3resok *); |
| 1303 | bool_t xdr_COMMIT3resfail(XDR *, COMMIT3resfail *); |
| 1304 | bool_t xdr_COMMIT3res(XDR *, COMMIT3res *); |
| 1305 | __END_DECLS |
| 1306 | |
| 1307 | #define NFS_PROGRAM 100003 |
| 1308 | #define NFS_VERSION 2 |
| 1309 | #define NFSPROC_NULL 0 |
| 1310 | #define NFSPROC_GETATTR 1 |
| 1311 | #define NFSPROC_SETATTR 2 |
| 1312 | #define NFSPROC_ROOT 3 |
| 1313 | #define NFSPROC_LOOKUP 4 |
| 1314 | #define NFSPROC_READLINK 5 |
| 1315 | #define NFSPROC_READ 6 |
| 1316 | #define NFSPROC_WRITECACHE 7 |
| 1317 | #define NFSPROC_WRITE 8 |
| 1318 | #define NFSPROC_CREATE 9 |
| 1319 | #define NFSPROC_REMOVE 10 |
| 1320 | #define NFSPROC_RENAME 11 |
| 1321 | #define NFSPROC_LINK 12 |
| 1322 | #define NFSPROC_SYMLINK 13 |
| 1323 | #define NFSPROC_MKDIR 14 |
| 1324 | #define NFSPROC_RMDIR 15 |
| 1325 | #define NFSPROC_READDIR 16 |
| 1326 | #define NFSPROC_STATFS 17 |
| 1327 | #define NFS_V3 3 |
| 1328 | #define NFSPROC3_NULL 0 |
| 1329 | #define NFSPROC3_GETATTR 1 |
| 1330 | #define NFSPROC3_SETATTR 2 |
| 1331 | #define NFSPROC3_LOOKUP 3 |
| 1332 | #define NFSPROC3_ACCESS 4 |
| 1333 | #define NFSPROC3_READLINK 5 |
| 1334 | #define NFSPROC3_READ 6 |
| 1335 | #define NFSPROC3_WRITE 7 |
| 1336 | #define NFSPROC3_CREATE 8 |
| 1337 | #define NFSPROC3_MKDIR 9 |
| 1338 | #define NFSPROC3_SYMLINK 10 |
| 1339 | #define NFSPROC3_MKNOD 11 |
| 1340 | #define NFSPROC3_REMOVE 12 |
| 1341 | #define NFSPROC3_RMDIR 13 |
| 1342 | #define NFSPROC3_RENAME 14 |
| 1343 | #define NFSPROC3_LINK 15 |
| 1344 | #define NFSPROC3_READDIR 16 |
| 1345 | #define NFSPROC3_READDIRPLUS 17 |
| 1346 | #define NFSPROC3_FSSTAT 18 |
| 1347 | #define NFSPROC3_FSINFO 19 |
| 1348 | #define NFSPROC3_PATHCONF 20 |
| 1349 | #define NFSPROC3_COMMIT 21 |
| 1350 | |
| 1351 | __BEGIN_DECLS |
| 1352 | void *nfsproc_null_2(void *, CLIENT *); |
| 1353 | void *nfsproc_null_2_svc(void *, struct svc_req *); |
| 1354 | attrstat *nfsproc_getattr_2(nfs_fh *, CLIENT *); |
| 1355 | attrstat *nfsproc_getattr_2_svc(nfs_fh *, struct svc_req *); |
| 1356 | attrstat *nfsproc_setattr_2(sattrargs *, CLIENT *); |
| 1357 | attrstat *nfsproc_setattr_2_svc(sattrargs *, struct svc_req *); |
| 1358 | void *nfsproc_root_2(void *, CLIENT *); |
| 1359 | void *nfsproc_root_2_svc(void *, struct svc_req *); |
| 1360 | diropres *nfsproc_lookup_2(diropargs *, CLIENT *); |
| 1361 | diropres *nfsproc_lookup_2_svc(diropargs *, struct svc_req *); |
| 1362 | readlinkres *nfsproc_readlink_2(nfs_fh *, CLIENT *); |
| 1363 | readlinkres *nfsproc_readlink_2_svc(nfs_fh *, struct svc_req *); |
| 1364 | readres *nfsproc_read_2(readargs *, CLIENT *); |
| 1365 | readres *nfsproc_read_2_svc(readargs *, struct svc_req *); |
| 1366 | void *nfsproc_writecache_2(void *, CLIENT *); |
| 1367 | void *nfsproc_writecache_2_svc(void *, struct svc_req *); |
| 1368 | attrstat *nfsproc_write_2(writeargs *, CLIENT *); |
| 1369 | attrstat *nfsproc_write_2_svc(writeargs *, struct svc_req *); |
| 1370 | diropres *nfsproc_create_2(createargs *, CLIENT *); |
| 1371 | diropres *nfsproc_create_2_svc(createargs *, struct svc_req *); |
| 1372 | nfsstat *nfsproc_remove_2(diropargs *, CLIENT *); |
| 1373 | nfsstat *nfsproc_remove_2_svc(diropargs *, struct svc_req *); |
| 1374 | nfsstat *nfsproc_rename_2(renameargs *, CLIENT *); |
| 1375 | nfsstat *nfsproc_rename_2_svc(renameargs *, struct svc_req *); |
| 1376 | nfsstat *nfsproc_link_2(linkargs *, CLIENT *); |
| 1377 | nfsstat *nfsproc_link_2_svc(linkargs *, struct svc_req *); |
| 1378 | nfsstat *nfsproc_symlink_2(symlinkargs *, CLIENT *); |
| 1379 | nfsstat *nfsproc_symlink_2_svc(symlinkargs *, struct svc_req *); |
| 1380 | diropres *nfsproc_mkdir_2(createargs *, CLIENT *); |
| 1381 | diropres *nfsproc_mkdir_2_svc(createargs *, struct svc_req *); |
| 1382 | nfsstat *nfsproc_rmdir_2(diropargs *, CLIENT *); |
| 1383 | nfsstat *nfsproc_rmdir_2_svc(diropargs *, struct svc_req *); |
| 1384 | readdirres *nfsproc_readdir_2(readdirargs *, CLIENT *); |
| 1385 | readdirres *nfsproc_readdir_2_svc(readdirargs *, struct svc_req *); |
| 1386 | statfsres *nfsproc_statfs_2(nfs_fh *, CLIENT *); |
| 1387 | statfsres *nfsproc_statfs_2_svc(nfs_fh *, struct svc_req *); |
| 1388 | void *nfsproc3_null_3(void *, CLIENT *); |
| 1389 | void *nfsproc3_null_3_svc(void *, struct svc_req *); |
| 1390 | GETATTR3res *nfsproc3_getattr_3(GETATTR3args *, CLIENT *); |
| 1391 | GETATTR3res *nfsproc3_getattr_3_svc(GETATTR3args *, struct svc_req *); |
| 1392 | SETATTR3res *nfsproc3_setattr_3(SETATTR3args *, CLIENT *); |
| 1393 | SETATTR3res *nfsproc3_setattr_3_svc(SETATTR3args *, struct svc_req *); |
| 1394 | LOOKUP3res *nfsproc3_lookup_3(LOOKUP3args *, CLIENT *); |
| 1395 | LOOKUP3res *nfsproc3_lookup_3_svc(LOOKUP3args *, struct svc_req *); |
| 1396 | ACCESS3res *nfsproc3_access_3(ACCESS3args *, CLIENT *); |
| 1397 | ACCESS3res *nfsproc3_access_3_svc(ACCESS3args *, struct svc_req *); |
| 1398 | READLINK3res *nfsproc3_readlink_3(READLINK3args *, CLIENT *); |
| 1399 | READLINK3res *nfsproc3_readlink_3_svc(READLINK3args *, struct svc_req *); |
| 1400 | READ3res *nfsproc3_read_3(READ3args *, CLIENT *); |
| 1401 | READ3res *nfsproc3_read_3_svc(READ3args *, struct svc_req *); |
| 1402 | WRITE3res *nfsproc3_write_3(WRITE3args *, CLIENT *); |
| 1403 | WRITE3res *nfsproc3_write_3_svc(WRITE3args *, struct svc_req *); |
| 1404 | CREATE3res *nfsproc3_create_3(CREATE3args *, CLIENT *); |
| 1405 | CREATE3res *nfsproc3_create_3_svc(CREATE3args *, struct svc_req *); |
| 1406 | MKDIR3res *nfsproc3_mkdir_3(MKDIR3args *, CLIENT *); |
| 1407 | MKDIR3res *nfsproc3_mkdir_3_svc(MKDIR3args *, struct svc_req *); |
| 1408 | SYMLINK3res *nfsproc3_symlink_3(SYMLINK3args *, CLIENT *); |
| 1409 | SYMLINK3res *nfsproc3_symlink_3_svc(SYMLINK3args *, struct svc_req *); |
| 1410 | MKNOD3res *nfsproc3_mknod_3(MKNOD3args *, CLIENT *); |
| 1411 | MKNOD3res *nfsproc3_mknod_3_svc(MKNOD3args *, struct svc_req *); |
| 1412 | REMOVE3res *nfsproc3_remove_3(REMOVE3args *, CLIENT *); |
| 1413 | REMOVE3res *nfsproc3_remove_3_svc(REMOVE3args *, struct svc_req *); |
| 1414 | RMDIR3res *nfsproc3_rmdir_3(RMDIR3args *, CLIENT *); |
| 1415 | RMDIR3res *nfsproc3_rmdir_3_svc(RMDIR3args *, struct svc_req *); |
| 1416 | RENAME3res *nfsproc3_rename_3(RENAME3args *, CLIENT *); |
| 1417 | RENAME3res *nfsproc3_rename_3_svc(RENAME3args *, struct svc_req *); |
| 1418 | LINK3res *nfsproc3_link_3(LINK3args *, CLIENT *); |
| 1419 | LINK3res *nfsproc3_link_3_svc(LINK3args *, struct svc_req *); |
| 1420 | READDIR3res *nfsproc3_readdir_3(READDIR3args *, CLIENT *); |
| 1421 | READDIR3res *nfsproc3_readdir_3_svc(READDIR3args *, struct svc_req *); |
| 1422 | READDIRPLUS3res *nfsproc3_readdirplus_3(READDIRPLUS3args *, CLIENT *); |
| 1423 | READDIRPLUS3res *nfsproc3_readdirplus_3_svc(READDIRPLUS3args *, struct svc_req *); |
| 1424 | FSSTAT3res *nfsproc3_fsstat_3(FSSTAT3args *, CLIENT *); |
| 1425 | FSSTAT3res *nfsproc3_fsstat_3_svc(FSSTAT3args *, struct svc_req *); |
| 1426 | FSINFO3res *nfsproc3_fsinfo_3(FSINFO3args *, CLIENT *); |
| 1427 | FSINFO3res *nfsproc3_fsinfo_3_svc(FSINFO3args *, struct svc_req *); |
| 1428 | PATHCONF3res *nfsproc3_pathconf_3(PATHCONF3args *, CLIENT *); |
| 1429 | PATHCONF3res *nfsproc3_pathconf_3_svc(PATHCONF3args *, struct svc_req *); |
| 1430 | COMMIT3res *nfsproc3_commit_3(COMMIT3args *, CLIENT *); |
| 1431 | COMMIT3res *nfsproc3_commit_3_svc(COMMIT3args *, struct svc_req *); |
| 1432 | __END_DECLS |
| 1433 | |
| 1434 | #endif /* !_NFS_PROT_H_RPCGEN */ |
| 1435 | |