Intermec ck1 Reference Guide

Page of 390
Appendix A — 
µClinux System 
338 
CK1 SDK Programmer’s Reference Manual 
Fetch 
The function fetch gets the record that has the key pass to it. 
Count 
The function count gets the record count of the table. 
Example 
Please look at the sample code testgdbm.c as an example to use the 
database. 
Device Configuration Files 
The configuration files are placed in some folders. Most of the files are 
generated by driver APIs or system programs, PPP, Nano-X, scanner 
daemon, etc. 
/etc/config 
Files with mark (R/O) are read-only files; saying as this does not mean it is 
really read-only files. These files will be regenerated when the required 
program is running. The changes will be lost. 
The files started with default_ does not affect the system until the shell 
script es_set_config.sh runs except the files started with default_ru_. All of 
these files can be changed by using eslib APIs. 
Files in /etc/config 
File 
Description 
resolv.prev, resolv.conf(R/O) 
When the device connect to a PPP server. The 
resolv.conf will be updated for the resolve of 
hostnames. 
ppp-on(R/O) 
This is a script using by ppp_getty to run the 
pppd. That will use the ppp-on-dialer to call 
the chat program. 
ppp-on-dialer(R/O) 
This is a script of PPP connection. The chat 
program will be call to chat with the other 
side. 
chat-isp(R/O) 
This is a script of chat program. 
options(R/O) 
This is the options of PPP daemon. 
pap-secrets(R/O) 
The PAP secret file of PPP dial-up. 
ip-down, ip-up(R/O) 
Stop and Start PPP scripts. 
addremark(R/O) 
Add remarks to resolve.conf. 
pppconf.current 
Current PPP connect type. 
pppconf.nc, pppconf.ns, pppconf.mc, 
pppconf.ms 
PPP configuration files of null modem 
client/server and Modem client/server.