summaryrefslogtreecommitdiff
path: root/util-linux/mdev.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* suppress warnings about easch <applet>_main() havingDenis Vlasenko2007-02-031-0/+1
| | | | no preceding prototype
* preparatory patch for -Wwrite-strings #2Denis Vlasenko2007-01-291-1/+2
|
* small fixes:Denis Vlasenko2006-11-261-2/+2
| | | | | | fix xstrdup to not grossly overallocate memory use xopen instean of xopen3 in several places etc.
* mdev: reduce excessive indentationDenis Vlasenko2006-10-161-105/+112
|
* add open_read_close() and similar stuffDenis Vlasenko2006-10-141-3/+1
|
* lots of silly indent fixesDenis Vlasenko2006-10-031-1/+1
|
* Yet another silly little byte saving. couldn't -> cannotDenis Vlasenko2006-09-291-1/+1
|
* Change license statements (and clean up headers) on some of the files thatRob Landley2006-09-221-1/+1
| | | | Erik or I are primary copyright holders on.
* whitespace cleanupDenis Vlasenko2006-09-171-3/+3
|
* Patch from Chris Steel to fix mdev deleting device nodes.Rob Landley2006-08-101-7/+9
|
* Remove bb_ prefixes from xfuncs.c (and a few other places), consolidateRob Landley2006-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.)
* Standardize on the vi editing directives being on the first line."Robert P. J. Day"2006-07-021-1/+2
|
* Upgrade mdev to allow commands to be run on create/delete.Rob 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.
* Work around a persistent uClibc bug, since 0.9.29 still hasn't shipped.Rob Landley2006-06-131-5/+6
| | | | Poked to do this by Jason Schoon.
* Convert to a global struct, the way sed was. Now I have two, I can work outRob Landley2006-05-211-4/+9
| | | | the infrastructure to merge global structs into a union...
* Shrink the code about 50 bytes, allocate less run-time memory, and add aRob Landley2006-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.
* Create /dev/root symlink pointing to real root device, if any.Rob Landley2006-02-211-0/+11
|
* add back in path nulling after calling find_dev() since it is needed for now ...Mike Frysinger2006-02-071-0/+1
|
* cleanup style ... just because you use less spaces doesnt mean the resulting ↵Mike Frysinger2006-02-031-50/+63
| | | | code is smaller
* shrink the code a bitMike Frysinger2006-02-031-8/+5
|
* gavinl writes in Bug 661:Mike Frysinger2006-02-031-1/+1
| | | | if read() file return less than 1, we should close the fd and then goto end.
* just whitespaceTim Riker2006-01-251-16/+16
|
* There was a missing ! on strcmp (despite the fact it worked in my testing,Rob 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...
* Frank Sorenson added hotplug support to mdev. (I tweaked it a bit. NeedRob Landley2006-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...)
* The major:minor read from dev ends with \n, need to trim that.Rob Landley2006-01-121-1/+1
|
* use MAP_PRIVATE instead of MAP_SHARED for uClinux systems (see Bug 550)Mike Frysinger2006-01-041-1/+1
|
* Sigh. Left the debug path in. Fixed.Rob Landley2005-12-171-1/+1
|
* Added /etc/mdev.conf support. Adds about 1.9k to mdev.Rob Landley2005-12-171-15/+122
|
* Nothing to see here. Move along.Rob 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.)