1 | þtext
|
---|
2 | ===============================================================================
|
---|
3 | emxbsd.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
|
---|
36 | ftp-os2.cdrom.com: /pub/os2/dev16/pdcurs21.zip
|
---|
37 | ftp.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
|
---|
70 | heapsort()
|
---|
71 | initstate()
|
---|
72 | random()
|
---|
73 | setstate()
|
---|
74 | srandom()
|
---|
75 | strsep()
|
---|
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
|
---|
126 | cd \emx\samples þbreak
|
---|
127 | copy \emx\bsd\curses\doc\twinkle1.c þbreak
|
---|
128 | [þsl{use an editor to remove the first 33 lines of twinkle1.c}] þbreak
|
---|
129 | gcc twinkle1.c -lcurses -lbtermcap
|
---|
130 | twinkle1
|
---|
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
|
---|
155 | cd \emx\samples
|
---|
156 | dmake wordref.exe
|
---|
157 | wordref -- Show how to run the sample program
|
---|
158 | wordref add \emx\doc\*.doc -- This will take quite a while and 6 MByte
|
---|
159 | wordref 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
|
---|