Rob Landley
3388f4c4de
xread() and xwrite() should take void *, not char *.
2007-01-08 04:26:01 -05:00
Rob Landley
d3e9d64b17
Add xaccess()
2007-01-08 03:25:47 -05:00
Rob Landley
f3e452a35a
Add rewrite(), writeall(),and xwrite() to match the read versions.
2007-01-08 02:49:39 -05:00
Rob Landley
1322beb384
xopen() wants 2 arguments unless you're creating a file, in which case you
...
need 3. Doing varargs for this doesn't really appeal to me (bugs in waiting)
so I made an xcreate() that takes 3 args, and had xopen() call it with 0 for
the third argument. That way, if we feed O_CREAT to xopen() the permission
000 result should be easy to spot.
2007-01-07 22:51:12 -05:00
Rob Landley
46968f75bb
Remove more warnings.
2006-12-31 19:10:24 -05:00
Rob Landley
c6f481c119
Comment tweak.
2006-12-30 22:01:47 -05:00
Rob Landley
28a0dec5dd
Trawling through the archives: a broken test, an unnecessary memset, and a
...
unrolling a small memmove.
2006-11-26 18:27:33 -05:00
Rob Landley
2de8f3e383
More whitespace/cowbell. (And change comment style to //.)
2006-11-26 17:19:18 -05:00
Rob Landley
6973a1d0e4
Add my old micro-bunzip library. Needs some cleanup...
2006-11-25 16:50:00 -05:00
Rob Landley
1521a9e969
Add cat -v.
2006-11-25 16:06:55 -05:00
Rob Landley
58c6c1be60
More work on option parsing. "df -t tmpfs" actually seems to work now.
2006-11-25 13:34:51 -05:00
Rob Landley
fdb667e1a4
Fix a half-dozen bugs in argument parsing. More seems to work than not now.
2006-11-24 00:15:21 -05:00
Rob Landley
54ebcce10b
Allocate a more sane amount of memory.
2006-11-19 20:35:19 -05:00
Rob Landley
2a813ffadf
Add one if() that has lots of whitespace fallout.
2006-11-19 17:29:35 -05:00
Rob Landley
8324b89598
New option parsing infrastructure (doesn't use getopt). Hook it up to
...
existing applets. Still a bit buggy, but bits of it work.
2006-11-19 02:49:22 -05:00
Rob Landley
0a04b3ef85
Implement which. Add hello world to menuconfig. Wrap the various applet main
...
functions in main.c with USE() macros so --gc-sections can strip them.
2006-11-03 00:05:52 -05:00
Rob Landley
3c49a45999
Thinko: the Config.in for the toys should be in ./toys, not ./lib.
2006-11-02 11:20:53 -05:00
Rob Landley
fa98d0193a
Add xabspath(), is_file_type(), which_in_path(), and find_in_path().
2006-11-02 02:57:27 -05:00
Rob Landley
15bdc11ec8
Linked list functions, forgot to add this to the repository.
2006-11-01 22:28:46 -05:00
Rob Landley
1f24e80808
The darn thing accidentally created a branch. I had to copy a half-dozen
...
files to temporary locations to get them out of the way of the merge, and
the next checkin will be putting them _back_. This commit is entirely to
humor mercurial, and if I could figure out how to avoid getting it in this
weird state, I would.
2006-11-01 22:19:34 -05:00
landley
6ccb1b7897
The Config files don't need the CONFIG_ prefix.
2006-11-01 21:12:20 -05:00
landley
5257cf54a5
Add menuconfig, plus some basic Config info, lots of which is just future
...
plans for toysh. Nothing's currently _using_ this config info, but at least
it's being generated now.
2006-10-31 23:30:06 -05:00
landley
64b2e23ff1
Add reread(), readall(), and xread() on the bus ride in to work...
2006-10-30 10:01:19 -05:00
landley
09ea7ac1a2
Implement df. Add -Wall to build and fix up warnings. Add copyright notices.
...
Add error_msg() and itoa() to library. Remove argc from globals (since argv is
null terminated), add optflags to globals.
2006-10-30 01:38:00 -05:00
landley
2f588f7f47
Rest of thinko fix.
2006-10-26 12:04:37 -04:00
landley
8ce06f2ed7
Thinko fix.
2006-10-26 12:04:17 -04:00
landley
00f87f150c
Add xmsprintf(), xgetcwd(), xgetcwd(), find_in_path().
2006-10-25 18:38:37 -04:00
landley
cd9dfc3b7b
Next drop of toysh, plus more infratructure.
2006-10-18 18:38:16 -04:00
landley
4f344e356d
Infrastructure, first drop of toy shell, and a bit of work on df.
2006-10-05 16:18:03 -04:00