home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Professional / OS2PRO194.ISO / os2 / prgramer / unix / emx / doc / bsddev.doc next >
Text File  |  1993-01-03  |  2KB  |  65 lines

  1. ===============================================================================
  2. bsddev.doc        emx 0.8f     BSD LIBRARIES INFORMATION            03-Jan-1993
  3. ===============================================================================
  4.  
  5. Table of Contents
  6. =================
  7.  
  8. 1   Introduction
  9. 2   libbsd
  10. 3   curses
  11.  
  12.  
  13. 1 Introduction
  14. --------------
  15.  
  16. BSD curses has been ported to emx by Kai Uwe Rommel.
  17.  
  18. The emx C library is complemented by the BSD C library: The random()
  19. function is in libbsd.a and libbsd.lib.
  20.  
  21.  
  22. 2 libbsd
  23. --------
  24.  
  25. libbsd.a and libbsd.lib contain the following functions:
  26.  
  27.   initstate()
  28.   random()
  29.   setstate()
  30.   srandom()
  31.  
  32. Use -lbsd to link with this library.  You have to obey the BSD
  33. copyright rules, see /emx/dos/copying.bsd.
  34.  
  35. You'll find manual pages in /emx/bsd/man.
  36.  
  37.  
  38. 3 curses
  39. --------
  40.  
  41. The BSD curses library provides functions for updating screens.  You
  42. have to obey the BSD copyright rules, see /emx/doc/copying.bsd.  In
  43. addition to libcurse.a or libcurse.lib, you have to link with
  44. libtermc.a or libtermc.lib.  For this library, you have to obey the
  45. GNU copyleft rules, see /emx/doc/copying.
  46.  
  47. See /emx/bsd/man/curses.man for a short list of library functions.
  48. See the the files in /emx/bsd/curses/doc for a complete manual (you
  49. might want to use groff for formatting).
  50.  
  51. Use `-lcurse -ltermc' for linking programs that use BSD curses.  (If
  52. the -t emx option is set, you can use -lcurses -ltermcap.)
  53.  
  54. Here's how to compile a sample program:
  55.  
  56.   cd \emx\test
  57.   copy \emx\bsd\curses\doc\twinkle1.c
  58.   [use an editor to remove the first 33 lines of twinkle1.c]
  59.   gcc -o twinkle1.exe twinkle1.c -lcurse -ltermc
  60.  
  61.  
  62. Note: twinkle1.c is the only complete program in /emx/bsd/curses/doc.
  63.  
  64. --------------------------- END OF BSDDEV.DOC ------------------------------
  65.