README 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. This library contains routines called both by client and drivers.
  2. The low level communication is in the xdr*.c files. The routines
  3. All the xdr*.c files create and destroy and XDRS structure.
  4. the xdr_destroy() calls fflush() on the FILE * which is necessary
  5. for the communication along both pipes to work properly.
  6. The client stubs are in c_*.c files.
  7. The driver implementation for any routine, say db_xxxx() is
  8. to be named db_driver_xxxx().
  9. The drivers must write the db_driver_xxxx()
  10. For example
  11. db_ls() /* client routine */
  12. db_driver_ls() /* driver routine */
  13. ----------------------------------------------------------
  14. The following variables need to be supplied by gmake
  15. XDRLIB:
  16. the library which contains the xdr_int(), et al routines
  17. sun: none, seems that these are in -lc
  18. dg aviion: none, seems that these are in -lc
  19. intergraph: XDRLIB = -lbsd
  20. linux0.99: XDRLIB = -lrpclib
  21. mips: XDRLIB = -lrpcsvc
  22. sgi: XDRLIB = -lsun
  23. USE_DIRECT:
  24. #define that says to use #include <sys/dir.h> and struct direct
  25. instead of #include <dirent.h> and struct dirent
  26. mips: USE_DIRECT = -DUSE_DIRECT
  27. USE_BUFFERED_IO:
  28. #define that says to not to call setbuf(fd, NULL) to force unbuffered io
  29. sun: USE_BUFFERED_IO = -DUSE_BUFFERED_IO
  30. mips: USE_BUFFERED_IO = -DUSE_BUFFERED_IO
  31. note:
  32. intergraph, sgi won't work unless io is unbuffered.
  33. sun, mips can use buffered io.
  34. CC:
  35. mips: CC = /bsd43/bin/cc
  36. ---------------
  37. The $DBMSCAP file should have the remote-shell full path in the
  38. command and not let $PATH handle it.
  39. sun: /usr/ucb/rsh
  40. mips: /bin/net/rsh
  41. intergraph: /usr/bin/rcmd
  42. sgi: /usr/bsd/rsh