07/17/2009 8:19 AM
RE: Alternate for registry-key system present in window OS
Photon has some PxConfig function. That's as close to a registry as you'll get ;-)
From: amit Pai [mailto:email@example.com]
Sent: Friday, July 17, 2009 7:45 AM
Subject: Alternate for registry-key system present in window OS
I am searching substitute for registry – key system present in windows OS which can be implemented in QNX.
So that at the time of initialization (booting process) of the OS this data repository can be accessed for further usage
Please help me out….
07/17/2009 11:32 AM
Re: Alternate for registry-key system present in window OS
> I am searching substitute for registry – key system present in
> windows OS which can be implemented in QNX. So that at the time of
> initialization (booting process) of the OS this data repository can be
> accessed for further usage.
I wrote a "registry" server 10 years or so ago that operates in exactly that manner. Basically:
* presents a tree of key/value pairs under "/dev/registry/"
* nodes have a .default item (like windows)
* tree can be seeded from a .ini file if desired (eg boot image); "registry -i"
* you can later mount disk-backed subtrees for persistent items (once a fsys running); "mount -Tregistry"
* there is a filesystem front-end (mkdir, touch, cat, ls) for manipulation from the shell that stringises all the data
* there is access via normal POSIX fd operations (open, read, write, select, mknod, unlink)
* there is a small library allowing raw data access (int, blob, string; basically as XTYPE reads/writes)
* select for OBAND on a key or directory will notify you of content change
I have not looked at this for many years, but it does appear to still compile, so I attached it if you want to try ...
# ./registry &
# echo "blue" >/dev/registry/window/colour
# echo "80x24" >/dev/registry/window/size
# ls -al /dev/registry/window
-rwxrwxrwx 1 root root 0 Jul 17 08:26 .default
-rwxrwxrwx 1 root root 5 Jul 17 08:26 colour
-rwxrwxrwx 1 root root 6 Jul 17 08:26 size
# cat /dev/registry/window/colour