Commit Graph

53 Commits

Author SHA1 Message Date
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
016bf8289e Two unrelated additions I'm working on cross over in this file. In theory I
can use mercurial branches to keep this sort of thing separate, but at
the moment I'm just going to check in some dangling config entries that
don't control anything yet.
2007-01-07 03:48:26 -05:00
Rob Landley
17afeba960 Blah. The sed filter's not right, I'll try again later. 2007-01-04 17:26:30 -05:00
Rob Landley
46968f75bb Remove more warnings. 2006-12-31 19:10:24 -05:00
Rob Landley
e2f796cb70 Make some of gcc 4.1's dumber warnings go away. 2006-12-31 19:09:42 -05:00
Rob Landley
c6f481c119 Comment tweak. 2006-12-30 22:01:47 -05:00
Rob Landley
04fa1e1861 Note the mailing list. 2006-12-14 15:19:34 -05:00
Rob Landley
78b47ff751 Teach clean and distclean to zap more files. 2006-11-26 18:54:03 -05:00
Rob Landley
cd2edfd6a1 Add bloat-o-meter, make bloatcheck, and scripts/showasm. 2006-11-26 18:47:14 -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
61a9cc57e7 Reduce flag duplication and make kconfig use HOST_CC. 2006-11-26 17:18:29 -05:00
Rob Landley
6973a1d0e4 Add my old micro-bunzip library. Needs some cleanup... 2006-11-25 16:50:00 -05:00
Rob Landley
65b7df5882 Leftover from when I cleaned this up for another project. 2006-11-25 16:23:47 -05:00
Rob Landley
1521a9e969 Add cat -v. 2006-11-25 16:06:55 -05:00
Rob Landley
b23d230ad5 Add oneit. 2006-11-25 13:48:02 -05:00
Rob Landley
1674e2ace4 Fix a warning. 2006-11-25 13:45:39 -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
f06af2bef5 Add another warning check and a missing dependency. 2006-11-25 13:32:01 -05:00
Rob Landley
8167fd5d54 I got the mercurial web browser thingy set up, note it on the web page. 2006-11-25 02:11:10 -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
4541e88156 Fix thinko (inverted test). 2006-11-19 20:35:05 -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
b29ceb8bd0 Web site updates, and a design document. 2006-11-09 19:19:37 -05:00
Rob Landley
3f920589e2 Redo the index page (flesh it out about halfway), and a couple tweaks to
the license page.
2006-11-05 01:01:34 -05:00
Rob Landley
5c63c92868 The web page should be in the repository, and while I'm at it let's see if I
can commit a file that lives under a symlink.
2006-11-04 23:57:18 -05:00
Rob Landley
f2311a42a0 Add pwd. Consolidate toy list information under toylist.h. 2006-11-04 17:45:18 -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
7fc43f7978 Better dependencies, and feed the linker --gc-sections. (Which is not an
substitute for building just the stuff we need, but is easy to do for now.)
2006-11-02 19:50:02 -05:00
Rob Landley
63d41686d8 Added tag 0.0.1 for changeset 8f8a8ac59c14 2006-11-02 11:59:25 -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
401ae8fe28 Make the config generate gen_config.h with CFG_ and USE() macros.
Add distclean.  Make clean have double colons so the kconfig makefile's
clean matches.
2006-11-01 22:26:25 -05:00
Rob Landley
9b3fc7d5e0 Add a hello world applet, partly as an example and partly for testing purposes. 2006-11-01 22:23:58 -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
52fb04274b Closer support for "pedantic" option for SUSv3. (Ok, it's %ld instead of the
%d the spec says, but same output.  And you can't actually select it until I
get menuconfig in.  But hey...)
2006-10-30 11:18:30 -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