chiark / gitweb /
16 years ago[PATCH] add replace test [Wed, 12 Nov 2003 15:32:29 +0000 (07:32 -0800)]
[PATCH] add replace test

16 years ago[PATCH] add more sysfs test tree files. [Wed, 12 Nov 2003 15:30:20 +0000 (07:30 -0800)]
[PATCH] add more sysfs test tree files.

16 years ago[PATCH] change UDEV_SYSFS_PATH environment variable due to libsysfs change. [Wed, 12 Nov 2003 15:23:39 +0000 (07:23 -0800)]
[PATCH] change UDEV_SYSFS_PATH environment variable due to libsysfs change.

16 years ago[PATCH] fix bug in klibc's isspace function. [Wed, 12 Nov 2003 15:17:33 +0000 (07:17 -0800)]
[PATCH] fix bug in klibc's isspace function.

16 years ago[PATCH] patch for libsysfs sysfs directory handling [Wed, 12 Nov 2003 13:37:24 +0000 (05:37 -0800)]
[PATCH] patch for libsysfs sysfs directory handling

Here's a quick patch to:

1) Add an environment variable "SYSFS_PATH" that libsysfs will check
for when getting mount point before searching system's sysfs mount

2) A quick fix to sysfs_get_link where the bug was.

I have tested this out with libsysfs and with udev. I couldn't test
with klibc because I haven't got the tree to build with klibc without
my changes either. I made the link but get an error finding
linux/linits.h. I will figure that out.

Please have a look at the patch. If it's agreeable, please test it. I
really want to add some generic path manipulation functions for the
sysfs_get_link error, rather than my patch's hack. But, I haven't had
time yet to do that. You really sounded like you needed this for
testing, so I'm sending it out to you. I should probably add a
function to set the env variable(?).

16 years ago[PATCH] fix udev-add.c to build properly with older versions of gcc. [Wed, 12 Nov 2003 11:50:33 +0000 (03:50 -0800)]
[PATCH] fix udev-add.c to build properly with older versions of gcc.

16 years ago[PATCH] more manpage tweaks [Wed, 12 Nov 2003 11:48:04 +0000 (03:48 -0800)]
[PATCH] more manpage tweaks

  man page style fixes
  present the tiny udev in bold font :)

16 years ago[PATCH] add support for subdirs [Wed, 12 Nov 2003 11:48:01 +0000 (03:48 -0800)]
[PATCH] add support for subdirs

  support subdirectory creation/removal for NAME="/devfs/is/crazy/video0"
  create parent subdirs for device node if needed
  remove subdirs when last node is removed

16 years ago[PATCH] add uid/gid to nodes [Wed, 12 Nov 2003 11:47:57 +0000 (03:47 -0800)]
[PATCH] add uid/gid to nodes

  set uid/gid of node specified in udev.permissions
  only numeric id's are supported cause we can't resolve with
  klibc or libc before real /etc is mounted

16 years ago[PATCH] add prototype for ftruncate to klibc [Wed, 12 Nov 2003 11:33:44 +0000 (03:33 -0800)]
[PATCH] add prototype for ftruncate to klibc

16 years ago[PATCH] Remove a few items from the TODO list that are already done. [Thu, 30 Oct 2003 08:59:16 +0000 (00:59 -0800)]
[PATCH] Remove a few items from the TODO list that are already done.

16 years ago[PATCH] DESTDIR for udev [Thu, 30 Oct 2003 06:26:35 +0000 (22:26 -0800)]
[PATCH] DESTDIR for udev

16 years ago[PATCH] version number to 005_bk [Thu, 30 Oct 2003 06:26:23 +0000 (22:26 -0800)]
[PATCH] version number to 005_bk

16 years ago[PATCH] udev init script [Thu, 30 Oct 2003 06:14:24 +0000 (22:14 -0800)]
[PATCH] udev init script

I integrated udev with Fedora Core.  The main piece is simply building
/udev on boot, since we don't have an initramfs yet. We should also
clear out /udev on shutdown, for /udev directories mounted on persistent

The attached script goes in /etc/init.d

Then do "chkconfig --add udev"

And the rest is handled automatically.  I made it for Fedora but it will
probably work, with little change, on any Linux system.

Right now it only does sysfs-based discovery of block and tty devices,
since those are the only types of devices I have on my system.  There is
a TODO in the script where we would add the other device types.

16 years ago[PATCH] pull some klibc stuff into the make Makefile to try to stay in sync. [Sat, 25 Oct 2003 07:21:18 +0000 (00:21 -0700)]
[PATCH] pull some klibc stuff into the make Makefile to try to stay in sync.

16 years ago[PATCH] klibc build fixes [Sat, 25 Oct 2003 07:20:51 +0000 (00:20 -0700)]
[PATCH] klibc build fixes

Still can't seem to build both klibc and glibc versions from same makefile :(

16 years ago[PATCH] Fixup path for kernel includes when building with klibc. [Sat, 25 Oct 2003 06:37:17 +0000 (23:37 -0700)]
[PATCH] Fixup path for kernel includes when building with klibc.

Fixup path for kernel includes when building with klibc.

klibc expects the symlink klibc/linux to point to a relatively up
to date tree, use -Iklibc/linux/include to make linux/ and asm/
includes resolve properly, as these won't exist in the regular
klibc/klibc/include location.

16 years ago[PATCH] 005 release 005 [Thu, 23 Oct 2003 08:08:58 +0000 (01:08 -0700)]
[PATCH] 005 release

16 years ago[PATCH] add klibc linux symlink info to the README [Thu, 23 Oct 2003 08:04:30 +0000 (01:04 -0700)]
[PATCH] add klibc linux symlink info to the README

16 years ago[PATCH] get 'make release' to work properly again. [Thu, 23 Oct 2003 08:04:09 +0000 (01:04 -0700)]
[PATCH] get 'make release' to work properly again.

16 years ago[PATCH] udev: sleep_for_dev() bits [Thu, 23 Oct 2003 07:50:27 +0000 (00:50 -0700)]
[PATCH] udev: sleep_for_dev() bits

OK, I fixed that bug you hinted at earlier in my previous
sleep_for_dev() patch.  I am sure you fixed it, but here we go
nonetheless, just in case.

I actually changed it up a bit.  It is probably faster to count down
from SECONDS_TO_WAIT_FOR_DEV than count up.

I also made the lone 'path' argument const, since it can be.

Some other misc. bits, too.

16 years ago[PATCH] added README info for how to build using klibc. [Thu, 23 Oct 2003 07:19:18 +0000 (00:19 -0700)]
[PATCH] added README info for how to build using klibc.

16 years ago[PATCH] turn off debugging if we are building with klibc [Thu, 23 Oct 2003 07:13:16 +0000 (00:13 -0700)]
[PATCH] turn off debugging if we are building with klibc

16 years ago[PATCH] turn off debugging in namedev [Thu, 23 Oct 2003 07:12:58 +0000 (00:12 -0700)]
[PATCH] turn off debugging in namedev

16 years ago[PATCH] added vsyslog support to klibc. [Thu, 23 Oct 2003 07:12:41 +0000 (00:12 -0700)]
[PATCH] added vsyslog support to klibc.

16 years ago[PATCH] add ftruncate to klibc. [Thu, 23 Oct 2003 06:59:44 +0000 (23:59 -0700)]
[PATCH] add ftruncate to klibc.

probably got it wrong too...

16 years ago[PATCH] klibc specific tweaks [Thu, 23 Oct 2003 06:48:55 +0000 (23:48 -0700)]
[PATCH] klibc specific tweaks

16 years ago[PATCH] libsysfs does not need mntent.h in it's header file. [Thu, 23 Oct 2003 06:46:19 +0000 (23:46 -0700)]
[PATCH] libsysfs does not need mntent.h in it's header file.

16 years ago[PATCH] klibc makefile changes. [Thu, 23 Oct 2003 05:30:50 +0000 (22:30 -0700)]
[PATCH] klibc makefile changes.

16 years ago[PATCH] build tdb and libsysfs from the same makefile as udev. [Thu, 23 Oct 2003 02:40:52 +0000 (19:40 -0700)]
[PATCH] build tdb and libsysfs from the same makefile as udev.

This fixes problem of libsysfs and tdb getting build with different gcc options
as the rest of udev.

16 years ago[PATCH] udev build tweaks to tdb's spinlock code [Thu, 23 Oct 2003 05:39:59 +0000 (22:39 -0700)]
[PATCH] udev build tweaks to tdb's spinlock code

16 years ago[PATCH] udev-add build cleanups for other libc versions. [Thu, 23 Oct 2003 02:39:54 +0000 (19:39 -0700)]
[PATCH] udev-add build cleanups for other libc versions.

16 years ago[PATCH] tweak tdb to build within udev better. [Thu, 23 Oct 2003 02:39:28 +0000 (19:39 -0700)]
[PATCH] tweak tdb to build within udev better.

16 years ago[PATCH] make libsysfs spit debug messages to the same place as the rest of udev. [Thu, 23 Oct 2003 02:38:59 +0000 (19:38 -0700)]
[PATCH] make libsysfs spit debug messages to the same place as the rest of udev.

16 years ago[PATCH] make libsysfs build cleanly [Thu, 23 Oct 2003 02:38:10 +0000 (19:38 -0700)]
[PATCH] make libsysfs build cleanly

16 years ago[PATCH] added klibc version 0.82 (cvs tree) to the udev tree. [Thu, 23 Oct 2003 01:37:40 +0000 (18:37 -0700)]
[PATCH] added klibc version 0.82 (cvs tree) to the udev tree.

Not hooked up to the build yet.

16 years ago[PATCH] makefile fix for now. [Wed, 22 Oct 2003 08:32:07 +0000 (01:32 -0700)]
[PATCH] makefile fix for now.

16 years ago[PATCH] hm, makefile bug with so many files... will fix later... [Wed, 22 Oct 2003 08:15:20 +0000 (01:15 -0700)]
[PATCH] hm, makefile bug with so many files... will fix later...

16 years ago[PATCH] regression tests starting to be added. [Wed, 22 Oct 2003 08:14:59 +0000 (01:14 -0700)]
[PATCH] regression tests starting to be added.

16 years ago[PATCH] fix LABEL bug for device files (not class files.) [Wed, 22 Oct 2003 08:12:40 +0000 (01:12 -0700)]
[PATCH] fix LABEL bug for device files (not class files.)

16 years ago[PATCH] got rid of struct device_attr [Wed, 22 Oct 2003 05:28:32 +0000 (22:28 -0700)]
[PATCH] got rid of struct device_attr

namedev.c is still a mess, that's up next after testing...

16 years ago[PATCH] rename namedev.permissions and namedev.config to udev.permissions and udev... [Wed, 22 Oct 2003 05:08:03 +0000 (22:08 -0700)]
[PATCH] rename namedev.permissions and namedev.config to udev.permissions and udev.config

the namedev name didn't really make much sense anymore...

16 years ago[PATCH] more warning flags to the build. [Wed, 22 Oct 2003 07:18:49 +0000 (00:18 -0700)]
[PATCH] more warning flags to the build.

16 years ago[PATCH] namedev.c comments + debug patch [Wed, 22 Oct 2003 04:48:11 +0000 (21:48 -0700)]
[PATCH] namedev.c comments + debug patch

and a patch for namdev.c comments + debug
o correct 'device device'
o correct permission file to config file

16 years ago[PATCH] fix dbg line in namedev.c [Wed, 22 Oct 2003 04:47:50 +0000 (21:47 -0700)]
[PATCH] fix dbg line in namedev.c

Thanks to Kay Sievers <> for pointing this out.

16 years ago[PATCH] man page update [Wed, 22 Oct 2003 04:46:00 +0000 (21:46 -0700)]
[PATCH] man page update

here a new patch for the man page:
o namdev.permissions added
o corrected a few typos
o corrected text for config line format.
  owner, group mode are only in namedev.permissions
  (don't know what i was dreaming, while i wrote this :))

16 years ago[PATCH] udev: another canidate for static [Wed, 22 Oct 2003 04:45:19 +0000 (21:45 -0700)]
[PATCH] udev: another canidate for static

Another one of those "trivial patches so everything must be good"

sleep_for_dev() isn't exported or defined in a header, so it can be
marked 'static'

16 years ago[PATCH] more overrides of config info with env variables if in test mode. [Wed, 22 Oct 2003 04:41:35 +0000 (21:41 -0700)]
[PATCH] more overrides of config info with env variables if in test mode.

16 years ago[PATCH] Fix bug causing udev to sleep forever waiting for dev file to show up. [Wed, 22 Oct 2003 04:40:53 +0000 (21:40 -0700)]
[PATCH] Fix bug causing udev to sleep forever waiting for dev file to show up.

Now we will timeout properly.

16 years ago[PATCH] change version to 004_bk [Wed, 22 Oct 2003 03:20:03 +0000 (20:20 -0700)]
[PATCH] change version to 004_bk

16 years ago[PATCH] make config files, sysfs root, and udev root configurable from config variables [Wed, 22 Oct 2003 03:19:09 +0000 (20:19 -0700)]
[PATCH] make config files, sysfs root, and udev root configurable from config variables

This will make running tests a lot simpler.

16 years ago[PATCH] 004 changelog entrys [Wed, 22 Oct 2003 00:09:52 +0000 (17:09 -0700)]
[PATCH] 004 changelog entrys

16 years ago[PATCH] 004 release 004 [Wed, 22 Oct 2003 00:08:45 +0000 (17:08 -0700)]
[PATCH] 004 release

16 years ago[PATCH] new version of libsysfs patch [Tue, 21 Oct 2003 08:19:14 +0000 (01:19 -0700)]
[PATCH] new version of libsysfs patch

Here's the patch applying the latest libsysfs.
- adds the latest libsysfs code to udev
* new code includes dlist implementation, a generic linked list
implementation. Needed our own because LGPL
* rearranged structures
* provided more functions for accessing directory and attributes
- gets rid of ->directory->path references in namedev.c
- replaces sysfs_get_value_from_attributes with sysfs_get_classdev_attr

16 years ago[PATCH] man file update [Tue, 21 Oct 2003 06:33:54 +0000 (23:33 -0700)]
[PATCH] man file update

o CALLOUT method included
o required keys for every match method listed
o keywords changed to uppercase in EXAMPLE

16 years ago[PATCH] major database cleanups [Tue, 21 Oct 2003 05:48:44 +0000 (22:48 -0700)]
[PATCH] major database cleanups

Now we standardise on a struct udevice to pass around, and store in the
database.  This cleaned up the database code a lot.

16 years ago[PATCH] Changed test.block and test.tty to take ACTION from the command line. [Tue, 21 Oct 2003 05:45:46 +0000 (22:45 -0700)]
[PATCH] Changed test.block and test.tty to take ACTION from the command line.

16 years ago[PATCH] don't sleep if 'dev' file is already present on device add. [Tue, 21 Oct 2003 04:03:15 +0000 (21:03 -0700)]
[PATCH] don't sleep if 'dev' file is already present on device add.

instead sleep for up to 10 seconds waiting for it to show up.

16 years ago[PATCH] fix comment about how the "dev" file is made up. [Tue, 21 Oct 2003 03:31:24 +0000 (20:31 -0700)]
[PATCH] fix comment about how the "dev" file is made up.

16 years ago[PATCH] more database work. Now we only store the info we really need right now. [Tue, 21 Oct 2003 03:28:42 +0000 (20:28 -0700)]
[PATCH] more database work. Now we only store the info we really need right now.

Also delete the record after the device is gone, and fix up a memory leak.

16 years ago[PATCH] add BUS= bug to TODO list so it will not get forgotten. [Tue, 21 Oct 2003 00:58:23 +0000 (17:58 -0700)]
[PATCH] add BUS= bug to TODO list so it will not get forgotten.

Thanks to for pointing this out to me.

16 years ago[PATCH] man page update [Mon, 20 Oct 2003 04:59:45 +0000 (21:59 -0700)]
[PATCH] man page update

16 years ago[PATCH] udev: mode should be mode_t [Mon, 20 Oct 2003 04:56:21 +0000 (21:56 -0700)]
[PATCH] udev: mode should be mode_t

Unix file modes should be stored in a mode_t, not a standard type.  At
the moment it is actually unsigned, in fact, not a signed integer.

Attached patch does an s/int mode/mode_t mode/ and cleans up the

16 years ago[PATCH] udev: trivial trivialities [Mon, 20 Oct 2003 04:55:43 +0000 (21:55 -0700)]
[PATCH] udev: trivial trivialities

Yah yah, really trivial stuff...

- get_class_device() doesn't need to be exported; it
  should be static

- white space cleanup

16 years ago[PATCH] udev: cool test scripts again [Sat, 18 Oct 2003 08:18:04 +0000 (01:18 -0700)]
[PATCH] udev: cool test scripts again

> But the test.block script doesn't catch any partitions on the block
> devices :)

Never happy!

        [19:07:52]root@phantasy:~/src/udev/udev# ./test.block
        [19:13:37]root@phantasy:~/src/udev/udev# ls /udev/hd*
        ls: /udev/hd*: No such file or directory
        [19:13:42]root@phantasy:~/src/udev/udev# ./test.block
        [19:13:53]root@phantasy:~/src/udev/udev# ls /udev/hd*
        /udev/hda   /udev/hda2  /udev/hda4  /udev/hda6  /udev/hdd
        /udev/hda1  /udev/hda3  /udev/hda5  /udev/hdc

test.block now recurses /sys/block, looking for partitions.  Should add
all drives and all partitions.

16 years ago[PATCH] udev spec file symlink support [Sat, 18 Oct 2003 07:12:16 +0000 (00:12 -0700)]
[PATCH] udev spec file symlink support

> Hm, I would also like to add the /etc/hotplug.d/default/udev.hotplug
> symlink, but rpm doesn't seem to like symlinks in the %files section.
> Anyone know how to do this properly?

The problem is that the symlink is left dangling to an absolute location
in the build root, which won't exist on the installer's system.  RPM 4.0
and on catches this.

Attached patch fixes it up and makes it work.

16 years ago[PATCH] spec file changes. [Sat, 18 Oct 2003 07:11:13 +0000 (00:11 -0700)]
[PATCH] spec file changes.

16 years ago[PATCH] udev: cool test scripts [Sat, 18 Oct 2003 06:54:14 +0000 (23:54 -0700)]
[PATCH] udev: cool test scripts

This patch changes test.tty and test.block to add/remove each tty and
block device, respectively, on the system.  Great way to
populate/unpopulate udev rapidly.

Its just a simple for loop over the sysfs entries.

16 years ago[PATCH] test.block changes. [Sat, 18 Oct 2003 06:54:07 +0000 (23:54 -0700)]
[PATCH] test.block changes.

16 years ago[PATCH] ok, rpm likes the "_" character instead of "-" better... [Sat, 18 Oct 2003 06:39:26 +0000 (23:39 -0700)]
[PATCH] ok, rpm likes the "_" character instead of "-" better...

16 years ago[PATCH] udev spec file bits [Sat, 18 Oct 2003 06:34:19 +0000 (23:34 -0700)]
[PATCH] udev spec file bits

Some spec file changes.  Primarily, this makes the thing build without a
build root if so desired (i.e. build right out of /usr/src/redhat and
the standard file system).  It should still build from a build root,


- Add some Prereqs
- Pass RPM_OPT_FLAGS to make so we build with the RPM build
  policy (i.e., optimizations, architecture, etc.)
- Specify the exact files in %files to make sure we install
  everything properly and avoid a warning

16 years ago[PATCH] change the version to 003-bk to keep things sane with people using the bk... [Sat, 18 Oct 2003 06:33:28 +0000 (23:33 -0700)]
[PATCH] change the version to 003-bk to keep things sane with people using the bk tree.

16 years ago[PATCH] got "remove of named devices" working. [Sat, 18 Oct 2003 06:32:17 +0000 (23:32 -0700)]
[PATCH] got "remove of named devices" working.

database code still needs some major cleanup.

16 years ago[PATCH] fix segfaults when dealing with partitions. [Sat, 18 Oct 2003 02:26:07 +0000 (19:26 -0700)]
[PATCH] fix segfaults when dealing with partitions.

16 years ago[PATCH] update changelog for 003 release 003 [Fri, 17 Oct 2003 13:32:01 +0000 (06:32 -0700)]
[PATCH] update changelog for 003 release

16 years ago[PATCH] update the spec file for the new version and install process. [Fri, 17 Oct 2003 13:14:02 +0000 (06:14 -0700)]
[PATCH] update the spec file for the new version and install process.

Spec file still does not install all of the proper files.

16 years ago[PATCH] fix makefile release rule to not drop tdb.h file. [Fri, 17 Oct 2003 13:12:52 +0000 (06:12 -0700)]
[PATCH] fix makefile release rule to not drop tdb.h file.

16 years ago[PATCH] Add FAQ for udev [Fri, 17 Oct 2003 12:55:24 +0000 (05:55 -0700)]
[PATCH] Add FAQ for udev

16 years ago[PATCH] removed AUTHORS and INSTALL files as they were pretty pointless. [Fri, 17 Oct 2003 12:05:04 +0000 (05:05 -0700)]
[PATCH] removed AUTHORS and INSTALL files as they were pretty pointless.

16 years ago[PATCH] copyright updates. [Fri, 17 Oct 2003 08:40:02 +0000 (01:40 -0700)]
[PATCH] copyright updates.

16 years ago[PATCH] Add AUTHORS and INSTALL files. [Fri, 17 Oct 2003 08:39:47 +0000 (01:39 -0700)]

16 years ago[PATCH] TODO updates [Fri, 17 Oct 2003 08:39:29 +0000 (01:39 -0700)]
[PATCH] TODO updates

16 years ago[PATCH] Updatd the README [Fri, 17 Oct 2003 08:39:19 +0000 (01:39 -0700)]
[PATCH] Updatd the README

16 years ago[PATCH] updated the TODO list. [Fri, 17 Oct 2003 07:44:14 +0000 (00:44 -0700)]
[PATCH] updated the TODO list.

16 years ago[PATCH] add udev man page (basically just a place holder for now.) [Fri, 17 Oct 2003 07:29:17 +0000 (00:29 -0700)]
[PATCH] add udev man page (basically just a place holder for now.)

16 years ago[PATCH] added uninstall support [Fri, 17 Oct 2003 07:19:04 +0000 (00:19 -0700)]
[PATCH] added uninstall support

16 years ago[PATCH] added install target for makefile so people don't have to do it by hand anymore. [Fri, 17 Oct 2003 04:18:40 +0000 (21:18 -0700)]
[PATCH] added install target for makefile so people don't have to do it by hand anymore.

16 years ago[PATCH] add version to debug log on startup. [Thu, 16 Oct 2003 06:51:27 +0000 (23:51 -0700)]
[PATCH] add version to debug log on startup.

16 years ago[PATCH] tell the user what mknod() we are trying to do. [Thu, 16 Oct 2003 06:51:11 +0000 (23:51 -0700)]
[PATCH] tell the user what mknod() we are trying to do.

16 years ago[PATCH] add dbg_parse() to cut down on parse file debugging statements [Thu, 16 Oct 2003 06:50:50 +0000 (23:50 -0700)]
[PATCH] add dbg_parse() to cut down on parse file debugging statements

Can be turned on by hand in the namedev.c file.

16 years ago[PATCH] put config files and database in /etc/udev by default [Thu, 16 Oct 2003 06:50:13 +0000 (23:50 -0700)]
[PATCH] put config files and database in /etc/udev by default

Can be overridden on the makefile line.

16 years ago[PATCH] add callout config type to udev [Wed, 15 Oct 2003 06:32:17 +0000 (23:32 -0700)]
[PATCH] add callout config type to udev

This patch adds a callout config type to udev, so external programs can be
called to get serial numbers or id's that are not available as a sysfs

16 years ago[PATCH] udevdb patch [Wed, 15 Oct 2003 06:20:53 +0000 (23:20 -0700)]
[PATCH] udevdb patch

This patch:

1) removes the three database files for just one udevdb.tdb file.
2) adds udevdb_init() and udevdb_exit() functions
3) initializes database now in main() in udev.c.

Please look it over.

16 years ago[PATCH] clean up some debugging stuff in namedev.c [Wed, 15 Oct 2003 06:20:18 +0000 (23:20 -0700)]
[PATCH] clean up some debugging stuff in namedev.c

16 years ago[PATCH] do not build the tdb binary programs, only the objects. [Wed, 8 Oct 2003 13:09:57 +0000 (06:09 -0700)]
[PATCH] do not build the tdb binary programs, only the objects.

Now it's not necessary to have gdbm to build properly.

16 years ago[PATCH] print udev pid [Thu, 25 Sep 2003 03:56:17 +0000 (20:56 -0700)]
[PATCH] print udev pid

makes debugging easier.

16 years ago[PATCH] Fix TDB cross compilation [Tue, 12 Aug 2003 04:28:08 +0000 (21:28 -0700)]
[PATCH] Fix TDB cross compilation

The merge of tdb ended up breaking the ability to cross compile again, here's
a bk patch that yanks CC out of the tdb Makefile, and in turn falls back on
the exported CC value from the top-level Makefile which correctly sets it
based off of the CROSS value.

16 years ago[PATCH] merge tdb into the build process. [Wed, 6 Aug 2003 07:03:30 +0000 (00:03 -0700)]
[PATCH] merge tdb into the build process.

16 years ago[PATCH] udevdb prototype [Wed, 6 Aug 2003 06:57:23 +0000 (23:57 -0700)]
[PATCH] udevdb prototype

Here's an "idea" of what I had in mind for udevdb. Let me preface the
code with a few remarks:

1) I was expecting to write this udevdb for udev to keep track of
devices. I was planning an external package that depends upon udev
to provide an external API to the udevdb database. The calls for the
interface would be read only access. Not sure how you want to do
packaging, if having a separate package is ok or having it included
in udev.

2) I created it as it is because udev isn't a daemon. So, the open
database call doesn't take any parameters. My plan was to create a
udevdb_init function that took arguments for initializing the db
to start, where you could specify in memory only or a file location.
This can all be filled in.

3) I hacked the Makefile to get it to work. Not sure how you'd want
that in the future.

4) This assumes TDB has been installed elsewhere, you would need to
edit your Makefile and point it to the header and library locations.
How do you want to do TDB in udev? Do you want to just reference it
and make udev dependent on that package being installed. Or should
we do what samba does and include a limited tdb version in udev?

5) Again, I hacked udev into your existing code. In the future, I'd
probably make a function around the filling out the udevice before
calling the store command. Didn't know if you wanted to change
your add device function to use struct udevice rather than having
everything separate.

6) Not sure what we should include in the udevice structure that's stored
by udev. I made a stab at a first shot - we can add and remove of course,
this was a first pass. I've come to realize - with you including libsysfs
in udev, the "external" interface that references udevdb could make
use of getting information from through libsysfs from sysfs and doesn't
need to be in udevdb.

7) I could write a namedevdb for namedev's device management if you

16 years ago[PATCH] Added tdb code from latest cvs version in the samba tree [Tue, 5 Aug 2003 08:26:59 +0000 (01:26 -0700)]
[PATCH] Added tdb code from latest cvs version in the samba tree