source: vendor/emx/current/src/doc/emxbsd.src

Last change on this file was 18, checked in by bird, 23 years ago

Initial revision

  • Property cvs2svn:cvs-rev set to 1.1
  • Property svn:eol-style set to native
  • Property svn:executable set to *
File size: 4.6 KB
Line 
1þtext
2===============================================================================
3emxbsd.doc emx 0.9d BSD LIBRARIES INFORMATION 21-Dec-1998
4===============================================================================
5þendtext
6
7þtitle BSD Libraries Information
8
9þformat bold emx
10
11þformat tty bsd.a bsd.lib curses.a curses.lib termcap.a termcap.lib
12þformat tty db.a db.lib btermcap.a btermcap.lib
13þformat tty -lbsd -lcurses -ltermcap -lbtermcap -ldb
14þformat tty heapsort() random() strsep() dbopen()
15
16þif text
17þh= Table of Contents
18þtoc
19þendif
20
21
22þh1 Introduction to BSD Libraries Information
23þipf
24:font facename=Helv size=24x14.:hp2.BSD Libraries Information
25:ehp2.
26:font facename=default size=0x0.
27:p.
28þendipf
29
30 BSD curses has been ported to emx by Kai Uwe Rommel.
31
32 As BSD curses has a few bugs, you might want to use PD curses
33 instead:
34
35þexample
36ftp-os2.cdrom.com: /pub/os2/dev16/pdcurs21.zip
37ftp.leo.org: /pub/comp/os/os2/libraries/pdcurs21.zip
38þendexample
39
40 The BSD database library provides B-tree and hashing access methods
41 for files.
42
43 The emx C library is complemented by the BSD C library: The
44 heapsort(), random() and strsep() functions are in the libraries
45 bsd.a and bsd.lib.
46
47þipfminitoc
48
49þh1 bsd.a and bsd.lib
50þindex bsd.a
51þindex bsd.lib
52þindex heapsort()
53þindex initstate()
54þindex random()
55þindex setstate()
56þindex srandom()
57þindex strsep()
58þkeyword bsd.a
59þkeyword bsd.lib
60þkeyword heapsort()
61þkeyword initstate()
62þkeyword random()
63þkeyword setstate()
64þkeyword srandom()
65þkeyword strsep()
66
67 bsd.a and bsd.lib contain the following functions:
68
69þexample
70heapsort()
71initstate()
72random()
73setstate()
74srandom()
75strsep()
76þendexample
77
78 Use -lbsd to link with this library. You have to obey the BSD
79 license, see þtt{/emx/doc/COPYING.BSD}.
80
81 You'll find manual pages in þtt{/emx/bsd/man}.
82
83
84þh1 btermcap.a and btermcap.lib
85þindex btermcap.a
86þindex btermcap.lib
87þkeyword btermcap.a
88þkeyword btermcap.lib
89
90 The BSD termcap library provides functions for using display
91 terminals in a terminal-independent manner. You have to obey the
92 BSD license, see þtt{/emx/doc/COPYING.BSD}.
93
94 See þtt{/emx/bsd/man/termcap.3} and þtt{/emx/bsd/man/termcap.5} for
95 more information on BSD termcap.
96
97 emx comes with both the GNU and the BSD termcap libraries. By
98 default, the GNU termcap library is used. To switch to the BSD
99 termcap library, replace `þtt{gnu}' in þtt{/emx/include/termcap.h}
100 with `þtt{bsd}' and use -lbtermcap instead of -ltermcap.
101
102þh1 curses.a and curses.lib
103þindex curses.a
104þindex curses.lib
105þkeyword curses.a
106þkeyword curses.lib
107
108 The BSD curses library provides functions for updating screens. You
109 have to obey the BSD license, see þtt{/emx/doc/COPYING.BSD}. In
110 addition to curses.a or curses.lib (-lcurses), you have to link with
111 a termcap library. You can use either the BSD termcap library
112 (-lbtermcap) or the GNU termcap library (-ltermcap). If you use the
113 GNU termcap library, you have to obey the GNU General Public
114 License, see þtt{/emx/doc/COPYING}.
115
116 See þtt{/emx/bsd/man/curses.3} for a short list of library
117 functions. See the the files in þtt{/emx/bsd/curses/doc} for a
118 complete manual (you might want to use þtt{groff} for formatting).
119
120 Use `þtt{-lcurses -lbtermcap}' for linking programs that use BSD
121 curses.
122
123 Here's how to compile and run a sample program:
124
125þtypewriter
126cd \emx\samples þbreak
127copy \emx\bsd\curses\doc\twinkle1.c þbreak
128[þsl{use an editor to remove the first 33 lines of twinkle1.c}] þbreak
129gcc twinkle1.c -lcurses -lbtermcap
130twinkle1
131þendtypewriter
132
133 Note: þtt{twinkle1.c} is the only complete program in
134 þtt{/emx/bsd/curses/doc}.
135
136þh1 db.a and db.lib
137þindex db.a
138þindex db.lib
139þindex dbopen()
140
141 The BSD database library provides B-tree and hashing access methods
142 for files. Note that this version of that library is obsolete and
143 has some bugs which cannot be fixed without changing the file
144 formats.
145
146 Use the dbopen() function to open or create a database
147 file. See þtt{dbopen.3}, þtt{btree.3}, þtt{hash.3}, þtt{recno.3},
148 and þtt{mpool.3} in þtt{/emx/bsd/man} for details. Use the -ldb
149 option to link with the BSD database library. You have to obey the
150 BSD license, see þtt{/emx/doc/COPYING.BSD}.
151
152 Here's how to compile and run a sample program:
153
154þexample
155cd \emx\samples
156dmake wordref.exe
157wordref -- Show how to run the sample program
158wordref add \emx\doc\*.doc -- This will take quite a while and 6 MByte
159wordref find database
160þendexample
161
162 Type `þtt{wordref clear}' to delete the database.
163
164þtext
165
166--------------------------- END OF EMXBSD.DOC ------------------------------
167þendtext
Note: See TracBrowser for help on using the repository browser.