Age | Commit message (Collapse) | Author |
|
Convert the argument processing to make use of getopt().
Switch from using open()/write() to fopen()/fwrite().
Print errors and usage statements to stderr.
Add a verbose flag.
Signed-off-by: David Borman <david.borman@windriver.com>
|
|
This is a major performance improvement for the update_distro
program. The old code maintained an alpabetically
sorted list of file names, and eliminating duplicates as
it went. But every insertion required walking back and
forth down the linked list, making it very inefficient as
the list grew in length.
The new code just creates a simple linked list of all the
file names. It then puts that list into an array, and uses
qsort() to alpabatize them, and mark the duplicate names
during the sorting process. It can then recreate the simple
linked list in alphabetic order, dropping the duplicates
as it goes.
Signed-off-by: David Borman <david.borman@windriver.com>
|
|
Clean up whitespace issues and make the format closer to K&R.
Signed-off-by: David Borman <david.borman@windriver.com>
|
|
|
|
|
|
Adding missing packages.h
Better usage information for swabber.
Small changes to load_distro.c
|