aboutsummaryrefslogtreecommitdiff
path: root/utility.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Fix creation of /linuxrcerik2000-04-181-4/+6
| | | | | | | -Erik git-svn-id: svn://busybox.net/trunk/busybox@480 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Really fix the killall segfault this time.erik2000-04-181-4/+5
| | | | | | | -Erik git-svn-id: svn://busybox.net/trunk/busybox@479 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix symlink following bug in chmod -R and friends. Allow SYSV styleerik2000-04-181-6/+11
| | | | | | | | | | 'chown foo:bar' in addition to 'chown foo.bar', and fix a bug in the busybox globbing routine such that 'find /dir -name [i]' no longer segfaults. -Erik git-svn-id: svn://busybox.net/trunk/busybox@478 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix stupid bug (wrong variable)erik2000-04-181-5/+9
| | | | | | | -Erik git-svn-id: svn://busybox.net/trunk/busybox@477 69ca8d6d-28ef-0310-b511-8ec308f3f277
* More little stuff.erik2000-04-181-5/+25
| | | | | | | -Erik git-svn-id: svn://busybox.net/trunk/busybox@475 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix killallerik2000-04-181-1/+3
| | | | | | | -Erik git-svn-id: svn://busybox.net/trunk/busybox@474 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Updateserik2000-04-181-1/+2
| | | | | | | -Erik git-svn-id: svn://busybox.net/trunk/busybox@472 69ca8d6d-28ef-0310-b511-8ec308f3f277
* + in the interest of robustness, I addedbeppu2000-04-171-0/+51
| | | | | | | | | | | utility.c :: cstring_alloc() utility.c :: cstring_lineFromFile() /* they're at the bottom */ so that I could read in lines of arbitrary length from FILE*s (instead of using fgets(huge_ass_buffer,...)). + I tested it out on sort, and it seems to be fine. git-svn-id: svn://busybox.net/trunk/busybox@463 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Patch to make killall actually kill all PIDs with the specified name,erik2000-04-071-17/+22
| | | | | | | | | | rather then busylooping trying to kill the first one until it dies. Should be more efficient now, and will only send one signal to each specified process. -Erik git-svn-id: svn://busybox.net/trunk/busybox@437 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Tar now works perfectly. It behaves much better now then iterik2000-04-051-2/+2
| | | | | | | | used to. Only thing left to do is add in exclude (-X) option. -Erik git-svn-id: svn://busybox.net/trunk/busybox@430 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Yet another installment in the ongoing tar sagaerik2000-03-281-21/+11
| | | | | | | -Erik git-svn-id: svn://busybox.net/trunk/busybox@424 69ca8d6d-28ef-0310-b511-8ec308f3f277
* The new tar for busybox is now done, and works just fineerik2000-03-241-3/+3
| | | | | | | | for extracting files. Creation of tarballs is next... -Erik git-svn-id: svn://busybox.net/trunk/busybox@421 69ca8d6d-28ef-0310-b511-8ec308f3f277
* My latest ramblings.erik2000-03-231-3/+3
| | | | | | | -Erik git-svn-id: svn://busybox.net/trunk/busybox@419 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Use the nice new find_real_root_device function to find theerik2000-03-221-10/+19
| | | | | | | | | name of the root device, instead of having libc read whatever lies happen to be in /etc/mtab. -Erik git-svn-id: svn://busybox.net/trunk/busybox@418 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Add in a nifty function for mount to use.erik2000-03-221-0/+36
| | | | | | | -Erik git-svn-id: svn://busybox.net/trunk/busybox@417 69ca8d6d-28ef-0310-b511-8ec308f3f277
* * all mallocs now use xmalloc (and so are OOM error safe), anderik2000-03-211-13/+5
| | | | | | | | | the common error handling saves a few bytes. Thanks to Bob Tinsley <bob@earthrise.demon.co.uk> for the patch. -Erik git-svn-id: svn://busybox.net/trunk/busybox@416 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Several fixes.erik2000-03-171-3/+2
| | | | | | | -Erik git-svn-id: svn://busybox.net/trunk/busybox@409 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Major build system updates...erik2000-03-161-2/+2
| | | | | | | -Erik git-svn-id: svn://busybox.net/trunk/busybox@406 69ca8d6d-28ef-0310-b511-8ec308f3f277
* First pass at writing a shell for busybox.erik2000-03-121-2/+2
| | | | | | | | | | | | | Works fine, full job control support, etc. No syntax yet (if, then, while, etc). Handles pipes and & processes fine. TODO: add command editing, add syntax suport. -Erik git-svn-id: svn://busybox.net/trunk/busybox@403 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Change BB_FEATURE_USE_DEVPS_N_DEVMTAB to the simplererik2000-03-081-7/+7
| | | | | | | | BB_FEATURE_USE_DEVPS_PATCH. -Erik git-svn-id: svn://busybox.net/trunk/busybox@401 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix bugs related to finding PIDs.erik2000-03-071-9/+19
| | | | | | | -Erik git-svn-id: svn://busybox.net/trunk/busybox@397 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix up some #define stuff to ensure the Right Thing(tm)erik2000-03-071-2/+2
| | | | | | | | | happens with all combinations of BB_KILL and BB_KILLALL being defined. -Erik git-svn-id: svn://busybox.net/trunk/busybox@396 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Wrote killall.erik2000-03-071-11/+90
| | | | | | | | | Adjusted mount, ps, utility.c, etc to handle my nifty new kernel patches the allow busybox to run perfectly without /proc. -Erik git-svn-id: svn://busybox.net/trunk/busybox@393 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Add in freeramdisk.c, which (duh) frees ramdisks. If you have anyerik2000-03-041-2/+0
| | | | | | | | | ramdisks lying about and want to free up the memory they have used, this baby is the answar you have been waiting for. -Erik git-svn-id: svn://busybox.net/trunk/busybox@387 69ca8d6d-28ef-0310-b511-8ec308f3f277
* A few updates (including the cp fix the Craig has been looking for)erik2000-03-041-3/+77
| | | | | | | -Erik git-svn-id: svn://busybox.net/trunk/busybox@386 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fixed rebooting when init runs as /linuxrcerik2000-02-231-2/+2
| | | | | | | -Erik git-svn-id: svn://busybox.net/trunk/busybox@383 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Removed proc dependancies for init and free (which maintaining exactlyerik2000-02-211-10/+5
| | | | | | | | | | the same functionality). /proc takes up 90k of kernel space, so it is nice to avoid using it at all costs. The only places where it is depended on is for cetain optional mount/umount features, and for ps and lsmod. -Erik git-svn-id: svn://busybox.net/trunk/busybox@377 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Updateserik2000-02-111-15/+44
| | | | | | | -Erik git-svn-id: svn://busybox.net/trunk/busybox@368 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fixed the init problem where it wouldn't unmount filesystemserik2000-02-091-0/+14
| | | | | | | | on reboot. Also fixed swapoff -a so it works. -Erik git-svn-id: svn://busybox.net/trunk/busybox@358 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Some formatting updates (ran the code through indent)erik2000-02-081-698/+696
| | | | | | | -Erik git-svn-id: svn://busybox.net/trunk/busybox@357 69ca8d6d-28ef-0310-b511-8ec308f3f277
* mkdir -p had gotten broken. Fixed now.erik2000-02-081-1/+2
| | | | | | | -Erik git-svn-id: svn://busybox.net/trunk/busybox@356 69ca8d6d-28ef-0310-b511-8ec308f3f277
* device_open is common code -- moved into utility.cerik2000-02-071-0/+22
| | | | | | | -Erik git-svn-id: svn://busybox.net/trunk/busybox@354 69ca8d6d-28ef-0310-b511-8ec308f3f277
* A few minor updates. ;-)erik2000-02-071-107/+148
| | | | | | | | | Seriously though, read the Changelog for busybox 0.42, which this is about to become... -Erik git-svn-id: svn://busybox.net/trunk/busybox@351 69ca8d6d-28ef-0310-b511-8ec308f3f277
* copy fixes to simplify link copying and always do the right thing.erik2000-01-291-10/+8
| | | | | | | | | ping could segfault because I'm an idiot, and tried to put a value in where I hadn't allocated storage. choke. -Erik git-svn-id: svn://busybox.net/trunk/busybox@346 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Forgot some debugging noise.erik2000-01-271-1/+1
| | | | | | | -Erik git-svn-id: svn://busybox.net/trunk/busybox@345 69ca8d6d-28ef-0310-b511-8ec308f3f277
* copyFile could call chmod on a symlink, changing the permserik2000-01-271-13/+13
| | | | | | | | of the pointed to file. Minor fix to tar for directory handling. -Erik git-svn-id: svn://busybox.net/trunk/busybox@344 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Shuffle location of generic code into utility.cerik2000-01-261-1/+69
| | | | | | | -Erik git-svn-id: svn://busybox.net/trunk/busybox@342 69ca8d6d-28ef-0310-b511-8ec308f3f277
* mount and umount could leak loop device allocations causing the system toerik2000-01-261-0/+25
| | | | | | | | quickly run out. Also disable init's SIGHUP handler during shutdown. -Erik git-svn-id: svn://busybox.net/trunk/busybox@341 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Some busybox updates. See the changelog for details if you care.erik2000-01-251-2/+19
| | | | | | | -Erik git-svn-id: svn://busybox.net/trunk/busybox@338 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix a bug where tar could change perms and ownership of dirs pointederik2000-01-231-2/+11
| | | | | | | | to by symlink within a tarball. -Erik git-svn-id: svn://busybox.net/trunk/busybox@329 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Sync up busybox with the latest and greatest. This is not stuff forerik2000-01-151-0/+2
| | | | | | | | the Embedix release. -Erik git-svn-id: svn://busybox.net/trunk/busybox@309 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Bug fixes.erik2000-01-131-2/+9
| | | | | | | -Erik git-svn-id: svn://busybox.net/trunk/busybox@303 69ca8d6d-28ef-0310-b511-8ec308f3f277
* The latest and greatest. init basically works, though needserik2000-01-051-10/+0
| | | | | | | | | a minor inittab design change to accomodate specifying the device to run each process on. -Erik git-svn-id: svn://busybox.net/trunk/busybox@279 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Bunches of fixes. Typos, bugs, etc.erik2000-01-041-3/+13
| | | | | | | | | Added 'gunzip -t'. inittab support _almost_ works (but it isn't ready for prime time useage yet). -Erik git-svn-id: svn://busybox.net/trunk/busybox@276 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Add the beginings of some regression testing. Add in the recentlyerik1999-12-291-1/+1
| | | | | | | | contributed loadacm utility (for dealing with unicode fonts) -Erik git-svn-id: svn://busybox.net/trunk/busybox@269 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fixed cp so it works as God intended it to.erik1999-12-291-2/+3
| | | | | | | -Erik git-svn-id: svn://busybox.net/trunk/busybox@267 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Sync to my local treeerik1999-12-211-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@253 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Reworked the source so it will compile and run under glibc 2.0.7erik1999-12-171-3/+5
| | | | | | | | | and linux kernel 2.0.36 (though the dubious reasons why someone would want to do that defy imagination ;) -Erik git-svn-id: svn://busybox.net/trunk/busybox@243 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Adjustments for Johns init stuff,andersen1999-12-091-2/+7
| | | | | | | -Erik git-svn-id: svn://busybox.net/trunk/busybox@188 69ca8d6d-28ef-0310-b511-8ec308f3f277
* findInitPid() has been implemented and it seems to work.beppu1999-12-091-9/+34
| | | | | | | reboot has been changed to take advantage of findInitPid(); git-svn-id: svn://busybox.net/trunk/busybox@184 69ca8d6d-28ef-0310-b511-8ec308f3f277