aboutsummaryrefslogtreecommitdiff
path: root/util-linux/mdev.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* small fixes:vda2006-11-261-2/+2
| | | | | | | | | fix xstrdup to not grossly overallocate memory use xopen instean of xopen3 in several places etc. git-svn-id: svn://busybox.net/trunk/busybox@16673 69ca8d6d-28ef-0310-b511-8ec308f3f277
* mdev: reduce excessive indentationvda2006-10-161-105/+112
| | | | git-svn-id: svn://busybox.net/trunk/busybox@16397 69ca8d6d-28ef-0310-b511-8ec308f3f277
* add open_read_close() and similar stuffvda2006-10-141-3/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@16377 69ca8d6d-28ef-0310-b511-8ec308f3f277
* lots of silly indent fixesvda2006-10-031-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@16302 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Yet another silly little byte saving. couldn't -> cannotvda2006-09-291-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@16263 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Change license statements (and clean up headers) on some of the files thatlandley2006-09-221-1/+1
| | | | | | | Erik or I are primary copyright holders on. git-svn-id: svn://busybox.net/trunk/busybox@16175 69ca8d6d-28ef-0310-b511-8ec308f3f277
* whitespace cleanupvda2006-09-171-3/+3
| | | | git-svn-id: svn://busybox.net/trunk/busybox@16142 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Patch from Chris Steel to fix mdev deleting device nodes.landley2006-08-101-7/+9
| | | | git-svn-id: svn://busybox.net/trunk/busybox@15795 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Remove bb_ prefixes from xfuncs.c (and a few other places), consolidatelandley2006-08-031-7/+3
| | | | | | | | | | | | | things like xasprintf() into xfuncs.c, remove xprint_file_by_name() (it only had one user), clean up lots of #includes... General cleanup pass. What I've been doing for the last couple days. And it conflicts! I've removed httpd.c from this checkin due to somebody else touching that file. It builds for me. I have to catch a bus. (Now you know why I'm looking forward to Mercurial.) git-svn-id: svn://busybox.net/trunk/busybox@15767 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Standardize on the vi editing directives being on the first line.rpjday2006-07-021-1/+2
| | | | git-svn-id: svn://busybox.net/trunk/busybox@15581 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Upgrade mdev to allow commands to be run on create/delete.landley2006-06-261-91/+95
| | | | | | | | | | | | | | Both Jason Schoon and Giuseppe Ciotta deserve credit for this, I used elements of both.  It's been upgraded so that you can specify that a given command should run at create, at delete, or at both using different special characters (@, $, and * respectively).  It uses the system() method of running command lines which means you can use environment variables on the command line (it sets $MDEV to the name of the current device being created/deleted, which is useful if you matched it via regex), and the documentation warns that you need a /bin/sh to make that work, so you probably want to pick a default shell. git-svn-id: svn://busybox.net/trunk/busybox@15515 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Work around a persistent uClibc bug, since 0.9.29 still hasn't shipped.landley2006-06-131-5/+6
| | | | | | | Poked to do this by Jason Schoon. git-svn-id: svn://busybox.net/trunk/busybox@15374 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Convert to a global struct, the way sed was. Now I have two, I can work outlandley2006-05-211-4/+9
| | | | | | | the infrastructure to merge global structs into a union... git-svn-id: svn://busybox.net/trunk/busybox@15157 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Shrink the code about 50 bytes, allocate less run-time memory, and add alandley2006-05-081-20/+19
| | | | | | | | comment that null terminating the string we sscanf() shouldn't be required since the kernel adds \n to the end of it and sscanf will stop there. git-svn-id: svn://busybox.net/trunk/busybox@15030 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Create /dev/root symlink pointing to real root device, if any.landley2006-02-211-0/+11
| | | | git-svn-id: svn://busybox.net/trunk/busybox@14159 69ca8d6d-28ef-0310-b511-8ec308f3f277
* add back in path nulling after calling find_dev() since it is needed for now ...vapier2006-02-071-0/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@13870 69ca8d6d-28ef-0310-b511-8ec308f3f277
* cleanup style ... just because you use less spaces doesnt mean the resulting ↵vapier2006-02-031-50/+63
| | | | | | code is smaller git-svn-id: svn://busybox.net/trunk/busybox@13802 69ca8d6d-28ef-0310-b511-8ec308f3f277
* shrink the code a bitvapier2006-02-031-8/+5
| | | | git-svn-id: svn://busybox.net/trunk/busybox@13801 69ca8d6d-28ef-0310-b511-8ec308f3f277
* gavinl writes in Bug 661:vapier2006-02-031-1/+1
| | | | | | | if read() file return less than 1, we should close the fd and then goto end. git-svn-id: svn://busybox.net/trunk/busybox@13800 69ca8d6d-28ef-0310-b511-8ec308f3f277
* just whitespacetimr2006-01-251-16/+16
| | | | git-svn-id: svn://busybox.net/trunk/busybox@13584 69ca8d6d-28ef-0310-b511-8ec308f3f277
* There was a missing ! on strcmp (despite the fact it worked in my testing,landley2006-01-221-12/+2
| | | | | | | | I have no idea _how_), and a simpler fix for the extra \n problem. I tested this and it worked for me, for what that's worth... git-svn-id: svn://busybox.net/trunk/busybox@13495 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Frank Sorenson added hotplug support to mdev. (I tweaked it a bit. Needlandley2006-01-121-14/+29
| | | | | | | | to come up with a test suite for all the stuff that requires root access. Something involving User Mode Linux or QEMU, probably...) git-svn-id: svn://busybox.net/trunk/busybox@13254 69ca8d6d-28ef-0310-b511-8ec308f3f277
* The major:minor read from dev ends with \n, need to trim that.landley2006-01-121-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@13253 69ca8d6d-28ef-0310-b511-8ec308f3f277
* use MAP_PRIVATE instead of MAP_SHARED for uClinux systems (see Bug 550)vapier2006-01-041-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@13077 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Sigh. Left the debug path in. Fixed.landley2005-12-171-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@12946 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Added /etc/mdev.conf support. Adds about 1.9k to mdev.landley2005-12-171-15/+122
| | | | git-svn-id: svn://busybox.net/trunk/busybox@12945 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Nothing to see here. Move along.landley2005-12-131-0/+121
Not buying it, eh? I know I said new features before 1.1, but, well... (I was weak!) The config file and hotplug modes aren't implemented yet. Might take a stab at those tomorrow. (I _should_ go back to focusing on the bug triage list.) git-svn-id: svn://busybox.net/trunk/busybox@12856 69ca8d6d-28ef-0310-b511-8ec308f3f277