aboutsummaryrefslogtreecommitdiff
path: root/toys/pending
AgeCommit message (Collapse)Author
2016-03-01Use the correct types for recvfrom.George Burgess IV
The clang FORITFY implementation doesn't like pointer signedness mismatch. "What mismatch?", you say. "The historical bug in LP32 Android that left it with a signed socklen_t".
2016-02-29do_regular_file() prints output line, don't fall through to print default.Rob Landley
2016-02-29Fix inverted test.Rob Landley
2016-02-29pending/file: add cpio, tar, zip formats.Isaac Dunham
2016-02-29Fix a typo from last time, and Isaac Dunham's todo list:Rob Landley
- per POSIX, 'cannot open' must be in the 'type' string if open() fails (both EPERM and ENOENT); we only do that if open() succeeds and fstat(fd) fails. - symlink detection (as per POSIX) won't work: opening them O_RDONLY results in following the link, then we fstat() the fd. - file 'FIFO' causes a hang; open() won't return till there's a writer.
2016-02-29Second pass at the ELF type table.Rob Landley
2016-02-22implement simple 'wget' and port name can be specified in URL if defaultLipi C. H. Lee
port 80 is not used.
2016-02-21lsof cleanupRob Landley
Accept multiple -p, inline filter_matches, convert misleading "char* a, b" to "char *a, b", use readfile() to read a file, use DIRTREE_SHUTUP, don't need { } around a single line, don't modify command line environment space (which changes what ps/pgrep sees).
2016-02-17Add dynamic/static checking to file (printing dynamic linker if found).Rob Landley
2016-02-15Cleanup pass on file.c, and add detection of different ELF architectures.Rob Landley
2016-02-14Implement file(1).Elliott Hughes
Unlike the POSIX file(1), there's no magic file here, just hard-coded common (non-obsolete) file formats. Personally most of my use of file(1) is as a one-line readelf(1) summarizer, so although I assume a full POSIX file(1) is out of scope (because just the database would likely be larger than all the rest of toybox), a subset that only supports in-use file types actually covers most of the use cases I encounter personally. Also fix peek_be/peek_le.
2016-02-10toybox: tar: Fix support for long namesTom Marshall
Pathnames may be longer than the name field in the header, so use strncpy() instead of xstrncpy() to avoid bailing out. Also add unit tests to ensure proper handling of short and long pathnames. Change-Id: Id025891993746889564b479e5185cf9721b54a55
2016-02-08Add xpipe() to lib.Rob Landley
2016-01-25Fix compiler warnings in traceroute.Elliott Hughes
If we're fixing warnings in pending...
2016-01-21I cleaned up the code in 'netstat.c' as belows.Lipi Lee
- Adjust to 80 columns - remove a useless function(strchr_nul), variable, type casting and compile warnings(fgets) - clean up netstat command option condition - change useless double pointer to single point and dynamic memory allocation to static one - fix a ambiguous return type and typo
2016-01-20Add basic top support to ps.c, delete toys/pending/top.c.Rob Landley
While I'm there, pack the ps help text, break out TOP_COMMON (todo: update config2help to collate that properly), add -o CPU showing which processor this pid is running on, implement -o C (it's %cpu without the fractional part), add -o %MEM, fix header padding.
2016-01-16Move create_uuid() to lib and xpoll() to lib/net.c.Rob Landley
2016-01-14Implement most of pgrep and pkill.Rob Landley
Needs testing and a few more options connected up.
2015-12-23Factor out draw_str() and friends.Rob Landley
2015-12-19Redo linestack to handle embedded NULs.Rob Landley
2015-12-19Start of vi.Rob Landley
2015-11-08Route cleanup: whitespace and curly bracket changes.Rob Landley
2015-11-08Bugfix for route flags.Rob Landley
2015-11-08Remove TEST_ARGV() and logic to adjust irtt by "clock ticks/100" when clock ↵Rob Landley
ticks _is_ 100...
2015-11-07More route cleanup.Rob Landley
2015-11-07Let's start the route cleanup.Rob Landley
Collate some repeated increments, remove some useless coments.
2015-11-03dhcp leanup: remove flag_get() and flag_chk()Rob Landley
2015-11-03New dhcp6 command from Sameer Pradhan.Rob Landley
2015-11-02Add ps -Z.Elliott Hughes
As with ls, it doesn't seem like -Z should be guarded behind LSM availability. On a non-SELinux system, the label is always "unconfined".
2015-10-28Promote ps to posix.Rob Landley
2015-10-28Free more stuff in debug cleanup.Rob Landley
Tempted to convert the struct arg_list and ptr_len stuff to arrays and make the parsing table driven, but there's enough direct usages of each field it's not a net win.
2015-10-28Implement -suUgG and -o majfl,minfl, move uid/ruid/gid/rgid into slots[31-34]Rob Landley
and vmlck into slot[18], pass error message to comma_args(), collate -stuUgG callbacks into parse_rest().
2015-10-25Add comma_args() and factor out parse_o(), parse_t(), and parse_p() to use it.Rob Landley
Fix FLAG_w.
2015-10-25Factor out parse_o() and make -l -f and default output work on stringsRob Landley
rather than bitfields.
2015-10-25More ps work, and fill out remaining help text.Rob Landley
Fix more l/r justification, implement uname vsz vsize and stat.
2015-10-25Fix netstat build warnings.Elliott Hughes
Fixes two instances of "warning: use of logical '&&' with constant operand". Change-Id: I2bb1ba4e389f8a9e54af8ee3ab23d8849fc329f0
2015-10-23More ps work: move l/r justification to widths[], add RUID/RGID, implement PGID,Rob Landley
plus tty detection fix from Elliott Hughes.
2015-10-23fix dhcpd warningYeongdeok Suh
2015-10-21Make ps.c whitespace consistent.Rob Landley
(Assignment has spaces around operator, comparison doesn't.)
2015-10-21ps: implement -t, remove leading 0 from ETIME days, implement -o GROUP,GID,PCPURob Landley
2015-10-17More ps work, tested up through etime now.Rob Landley
2015-10-16Fix ps display padding (truncation) and adjust -o pri by one.Rob Landley
2015-10-15More ps work, implement -p, correct several -o fields and general alignment.Rob Landley
2015-10-11Cleanup pass on pgrep: remove flag_twiddle macros, use 0 constants,Rob Landley
unify some TT.signame tests checking constant value variable initialized to.
2015-10-06Decode netlink sockets in lsof.Elliott Hughes
Refactor the /proc/net parsing so this only adds 7 lines overall. Also clear the DEVICE field for sockets and fix alignment for long usernames (until someone implements the two-pass output that measures columns).
2015-10-04Minor cleanup and add "MODALIAS" handler (suggested by Isaac Dunham).Rob Landley
2015-10-03Back to chipping away at ps...Rob Landley
2015-09-29xvfork went away.Rob Landley
2015-09-29Make defconfig build for nommu.Rob Landley
Adds XVFORK() macro, teaches xpopen_both() to call /proc/self/exe with NULL argv (and converts cpio -p to use that), adds TOYBOX_FORK guards to some unconverted commands.
2015-09-23Add xvfork() as a static inline and use it from various places.Rob Landley
Note: vfork(), like fork(), can return -1 if too many processes, and we should notice and fail loudly.