Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion toys/pending/crontab.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
*
* Copyright 2014 Ranjan Kumar <ranjankumar.bth@gmail.com>
*
* http://pubs.opengroup.org/onlinepubs/9699919799/utilities/crontab.html
* See http://pubs.opengroup.org/onlinepubs/9699919799/utilities/crontab.html

USE_CRONTAB(NEWTOY(crontab, "c:u:elr[!elr]", TOYFLAG_USR|TOYFLAG_BIN|TOYFLAG_STAYROOT))

Expand Down
2 changes: 1 addition & 1 deletion toys/pending/dd.c
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Copyright 2013 Ashwini Kumar <ak.ashwini@gmail.com>
* Copyright 2013 Kyungwan Han <asura321@gmail.com>
*
* See http://opengroup.org/onlinepubs/9699919799/utilities/dd.html
* See http://pubs.opengroup.org/onlinepubs/9699919799/utilities/dd.html

USE_DD(NEWTOY(dd, 0, TOYFLAG_USR|TOYFLAG_BIN))

Expand Down
2 changes: 1 addition & 1 deletion toys/pending/expr.c
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Copyright 2016 Google Inc.
* Copyright 2013 Daniel Verkamp <daniel@drv.nu>
*
* http://pubs.opengroup.org/onlinepubs/9699919799/utilities/expr.html
* See http://pubs.opengroup.org/onlinepubs/9699919799/utilities/expr.html
*
* The web standard is incomplete (precedence grouping missing), see:
* http://permalink.gmane.org/gmane.comp.standards.posix.austin.general/10141
Expand Down
2 changes: 1 addition & 1 deletion toys/pending/more.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
*
* Copyright 2013 Bilal Qureshi <bilal.jmi@gmail.com>
*
* http://pubs.opengroup.org/onlinepubs/9699919799/utilities/more.html
* See http://pubs.opengroup.org/onlinepubs/9699919799/utilities/more.html

USE_MORE(NEWTOY(more, 0, TOYFLAG_USR|TOYFLAG_BIN))

Expand Down
4 changes: 2 additions & 2 deletions toys/pending/sh.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
* http://man7.org/linux/man-pages/man1/bash.1.html
*
* The POSIX-2008/SUSv4 shell spec is at:
* http://opengroup.org/onlinepubs/9699919799/utilities/V3_chap02.html
* and http://opengroup.org/onlinepubs/9699919799/utilities/sh.html
* http://pubs.opengroup.org/onlinepubs/9699919799/utilities/V3_chap02.html
* and http://pubs.opengroup.org/onlinepubs/9699919799/utilities/sh.html
*
* deviations from posix: don't care about $LANG or $LC_ALL

Expand Down
2 changes: 1 addition & 1 deletion toys/posix/basename.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
*
* Copyright 2012 Tryn Mirell <tryn@mirell.org>
*
* See http://opengroup.org/onlinepubs/9699919799/utilities/basename.html
* See http://pubs.opengroup.org/onlinepubs/9699919799/utilities/basename.html


USE_BASENAME(NEWTOY(basename, "^<1as:", TOYFLAG_USR|TOYFLAG_BIN))
Expand Down
2 changes: 1 addition & 1 deletion toys/posix/cal.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
*
* Copyright 2011 Rob Landley <rob@landley.net>
*
* See http://opengroup.org/onlinepubs/9699919799/utilities/cal.html
* See http://pubs.opengroup.org/onlinepubs/9699919799/utilities/cal.html

USE_CAL(NEWTOY(cal, ">2h", TOYFLAG_USR|TOYFLAG_BIN))

Expand Down
2 changes: 1 addition & 1 deletion toys/posix/cat.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
*
* Copyright 2006 Rob Landley <rob@landley.net>
*
* See http://opengroup.org/onlinepubs/9699919799/utilities/cat.html
* See http://pubs.opengroup.org/onlinepubs/9699919799/utilities/cat.html
*
* And "Cat -v considered harmful" at
* http://cm.bell-labs.com/cm/cs/doc/84/kp.ps.gz
Expand Down
4 changes: 2 additions & 2 deletions toys/posix/chgrp.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
*
* Copyright 2012 Georgi Chorbadzhiyski <georgi@unixsol.org>
*
* See http://opengroup.org/onlinepubs/9699919799/utilities/chown.html
* See http://opengroup.org/onlinepubs/9699919799/utilities/chgrp.html
* See http://pubs.opengroup.org/onlinepubs/9699919799/utilities/chown.html
* See http://pubs.opengroup.org/onlinepubs/9699919799/utilities/chgrp.html

USE_CHGRP(NEWTOY(chgrp, "<2h(no-dereference)PLHRfv[-HLP]", TOYFLAG_BIN))
USE_CHOWN(OLDTOY(chown, chgrp, TOYFLAG_BIN))
Expand Down
2 changes: 1 addition & 1 deletion toys/posix/chmod.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
*
* Copyright 2012 Rob Landley <rob@landley.net>
*
* See http://opengroup.org/onlinepubs/9699919799/utilities/chmod.html
* See http://pubs.opengroup.org/onlinepubs/9699919799/utilities/chmod.html

USE_CHMOD(NEWTOY(chmod, "<2?vfR[-vf]", TOYFLAG_BIN))

Expand Down
2 changes: 1 addition & 1 deletion toys/posix/cksum.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
*
* Copyright 2008 Rob Landley <rob@landley.net>
*
* See http://opengroup.org/onlinepubs/9699919799/utilities/cksum.html
* See http://pubs.opengroup.org/onlinepubs/9699919799/utilities/cksum.html

USE_CKSUM(NEWTOY(cksum, "HIPLN", TOYFLAG_BIN))
USE_CRC32(NEWTOY(crc32, 0, TOYFLAG_BIN))
Expand Down
2 changes: 1 addition & 1 deletion toys/posix/cmp.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
*
* Copyright 2012 Timothy Elliott <tle@holymonkey.com>
*
* See http://opengroup.org/onlinepubs/9699919799/utilities/cmp.html
* See http://pubs.opengroup.org/onlinepubs/9699919799/utilities/cmp.html

USE_CMP(NEWTOY(cmp, "<1>2ls(silent)(quiet)[!ls]", TOYFLAG_USR|TOYFLAG_BIN|TOYFLAG_ARGFAIL(2)))

Expand Down
2 changes: 1 addition & 1 deletion toys/posix/comm.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
*
* Copyright 2012 Ilya Kuzmich <ikv@safe-mail.net>
*
* See http://opengroup.org/onlinepubs/9699919799/utilities/comm.html
* See http://pubs.opengroup.org/onlinepubs/9699919799/utilities/comm.html

// <# and ># take single digit, so 321 define flags
USE_COMM(NEWTOY(comm, "<2>2321", TOYFLAG_USR|TOYFLAG_BIN))
Expand Down
4 changes: 2 additions & 2 deletions toys/posix/cp.c
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/* Copyright 2008 Rob Landley <rob@landley.net>
*
* See http://opengroup.org/onlinepubs/9699919799/utilities/cp.html
* And http://opengroup.org/onlinepubs/9699919799/utilities/mv.html
* See http://pubs.opengroup.org/onlinepubs/9699919799/utilities/cp.html
* And http://pubs.opengroup.org/onlinepubs/9699919799/utilities/mv.html
* And http://refspecs.linuxfoundation.org/LSB_5.0.0/LSB-Core-generic/LSB-Core-generic.html#INSTALL
*
* Posix says "cp -Rf dir file" shouldn't delete file, but our -f does.
Expand Down
2 changes: 1 addition & 1 deletion toys/posix/cut.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
*
* Copyright 2016 Rob Landley <rob@landley.net>
*
* http://pubs.opengroup.org/onlinepubs/9699919799/utilities/cut.html
* See http://pubs.opengroup.org/onlinepubs/9699919799/utilities/cut.html
*
* Deviations from posix: added -DF. We can only accept 512 selections, and
* "-" counts as start to end. Using spaces to separate a comma-separated list
Expand Down
2 changes: 1 addition & 1 deletion toys/posix/date.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
*
* Copyright 2012 Andre Renaud <andre@bluewatersys.com>
*
* See http://opengroup.org/onlinepubs/9699919799/utilities/date.html
* See http://pubs.opengroup.org/onlinepubs/9699919799/utilities/date.html
*
* Note: setting a 2 year date is 50 years back/forward from today,
* not posix's hardwired magic dates.
Expand Down
2 changes: 1 addition & 1 deletion toys/posix/df.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
*
* Copyright 2006 Rob Landley <rob@landley.net>
*
* See http://opengroup.org/onlinepubs/9699919799/utilities/df.html
* See http://pubs.opengroup.org/onlinepubs/9699919799/utilities/df.html

USE_DF(NEWTOY(df, "HPkhit*a[-HPkh]", TOYFLAG_SBIN))

Expand Down
2 changes: 1 addition & 1 deletion toys/posix/dirname.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
*
* Copyright 2011 Rob Landley <rob@landley.net>
*
* See http://opengroup.org/onlinepubs/9699919799/utilities/dirname.html
* See http://pubs.opengroup.org/onlinepubs/9699919799/utilities/dirname.html

USE_DIRNAME(NEWTOY(dirname, "<1", TOYFLAG_USR|TOYFLAG_BIN))

Expand Down
2 changes: 1 addition & 1 deletion toys/posix/du.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
*
* Copyright 2012 Ashwini Kumar <ak.ashwini@gmail.com>
*
* See http://opengroup.org/onlinepubs/9699919799/utilities/du.html
* See http://pubs.opengroup.org/onlinepubs/9699919799/utilities/du.html
*
* TODO: cleanup (should seen_inode be lib?)
* 32 bit du -b maxes out at 4 gigs (instead of 2 terabytes via *512 trick)
Expand Down
2 changes: 1 addition & 1 deletion toys/posix/echo.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
*
* Copyright 2007 Rob Landley <rob@landley.net>
*
* See http://opengroup.org/onlinepubs/9699919799/utilities/echo.html
* See http://pubs.opengroup.org/onlinepubs/9699919799/utilities/echo.html
*
* Deviations from posix: we parse command line options, as Linux has
* consistently done since 1992. Posix defaults -e to on, we require -e.
Expand Down
2 changes: 1 addition & 1 deletion toys/posix/env.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
*
* Copyright 2012 Tryn Mirell <tryn@mirell.org>
*
* http://opengroup.org/onlinepubs/9699919799/utilities/env.html
* See http://pubs.opengroup.org/onlinepubs/9699919799/utilities/env.html
*
* Deviations from posix: "-" argument and -0

Expand Down
2 changes: 1 addition & 1 deletion toys/posix/false.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
*
* Copyright 2007 Rob Landley <rob@landley.net>
*
* See http://opengroup.org/onlinepubs/9699919799/utilities/false.html
* See http://pubs.opengroup.org/onlinepubs/9699919799/utilities/false.html

USE_FALSE(NEWTOY(false, NULL, TOYFLAG_BIN|TOYFLAG_NOHELP|TOYFLAG_MAYFORK))

Expand Down
2 changes: 1 addition & 1 deletion toys/posix/find.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
*
* Copyright 2014 Rob Landley <rob@landley.net>
*
* See http://pubs.opengroup.org/onlinepubs/9699919799/utilities/find.c
* See http://pubs.opengroup.org/onlinepubs/9699919799/utilities/find.html
*
* Our "unspecified" behavior for no paths is to use "."
* Parentheses can only stack 4096 deep
Expand Down
2 changes: 1 addition & 1 deletion toys/posix/getconf.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
*
* Copyright 2017 Rob Landley <rob@landley.net>
*
* See http://pubs.opengroup.org/onlinepubs/9699919799/utilities/getconf.c
* See http://pubs.opengroup.org/onlinepubs/9699919799/utilities/getconf.html
*
* Deviations from posix: no -v because nothing says what it should DO.
* Added -l, what symbols should be included is a bit unclear.
Expand Down
2 changes: 1 addition & 1 deletion toys/posix/head.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
*
* Copyright 2006 Timothy Elliott <tle@holymonkey.com>
*
* See http://opengroup.org/onlinepubs/9699919799/utilities/head.html
* See http://pubs.opengroup.org/onlinepubs/9699919799/utilities/head.html
*
* Deviations from posix: -c

Expand Down
2 changes: 1 addition & 1 deletion toys/posix/id.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*
* by Tim Bird <tim.bird@am.sony.com>
*
* See http://opengroup.org/onlinepubs/9699919799/utilities/id.html
* See http://pubs.opengroup.org/onlinepubs/9699919799/utilities/id.html

USE_ID(NEWTOY(id, ">1"USE_ID_Z("Z")"nGgru[!"USE_ID_Z("Z")"Ggu]", TOYFLAG_USR|TOYFLAG_BIN))
USE_GROUPS(NEWTOY(groups, NULL, TOYFLAG_USR|TOYFLAG_BIN))
Expand Down
2 changes: 1 addition & 1 deletion toys/posix/kill.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
*
* Copyright 2012 Daniel Walter <d.walter@0x90.at>
*
* See http://opengroup.org/onlinepubs/9699919799/utilities/kill.html
* See http://pubs.opengroup.org/onlinepubs/9699919799/utilities/kill.html
*
* killall5.c - Send signal to all processes outside current session.
*
Expand Down
2 changes: 1 addition & 1 deletion toys/posix/link.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
*
* Copyright 2011 Rob Landley <rob@landley.net>
*
* See http://opengroup.org/onlinepubs/9699919799/utilities/link.html
* See http://pubs.opengroup.org/onlinepubs/9699919799/utilities/link.html

USE_LINK(NEWTOY(link, "<2>2", TOYFLAG_USR|TOYFLAG_BIN))

Expand Down
2 changes: 1 addition & 1 deletion toys/posix/ln.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
*
* Copyright 2012 Andre Renaud <andre@bluewatersys.com>
*
* See http://opengroup.org/onlinepubs/9699919799/utilities/ln.html
* See http://pubs.opengroup.org/onlinepubs/9699919799/utilities/ln.html

USE_LN(NEWTOY(ln, "<1rt:Tvnfs", TOYFLAG_BIN))

Expand Down
2 changes: 1 addition & 1 deletion toys/posix/ls.c
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Copyright 2012 Andre Renaud <andre@bluewatersys.com>
* Copyright 2012 Rob Landley <rob@landley.net>
*
* See http://opengroup.org/onlinepubs/9699919799/utilities/ls.html
* See http://pubs.opengroup.org/onlinepubs/9699919799/utilities/ls.html
*
* Deviations from posix:
* add -b (and default to it instead of -q for an unambiguous representation
Expand Down
2 changes: 1 addition & 1 deletion toys/posix/mkdir.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
*
* Copyright 2012 Georgi Chorbadzhiyski <georgi@unixsol.org>
*
* See http://opengroup.org/onlinepubs/9699919799/utilities/mkdir.html
* See http://pubs.opengroup.org/onlinepubs/9699919799/utilities/mkdir.html

USE_MKDIR(NEWTOY(mkdir, "<1"USE_MKDIR_Z("Z:")"vp(parent)(parents)m:", TOYFLAG_BIN|TOYFLAG_UMASK))

Expand Down
2 changes: 1 addition & 1 deletion toys/posix/mkfifo.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
*
* Copyright 2012 Georgi Chorbadzhiyski <georgi@unixsol.org>
*
* See http://opengroup.org/onlinepubs/9699919799/utilities/mkfifo.html
* See http://pubs.opengroup.org/onlinepubs/9699919799/utilities/mkfifo.html

USE_MKFIFO(NEWTOY(mkfifo, "<1"USE_MKFIFO_Z("Z:")"m:", TOYFLAG_USR|TOYFLAG_BIN))

Expand Down
2 changes: 1 addition & 1 deletion toys/posix/nice.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
*
* Copyright 2010 Rob Landley <rob@landley.net>
*
* See http://opengroup.org/onlinepubs/9699919799/utilities/nice.html
* See http://pubs.opengroup.org/onlinepubs/9699919799/utilities/nice.html

USE_NICE(NEWTOY(nice, "^<1n#", TOYFLAG_BIN))

Expand Down
2 changes: 1 addition & 1 deletion toys/posix/nohup.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
*
* Copyright 2011 Rob Landley <rob@landley.net>
*
* See http://opengroup.org/onlinepubs/9699919799/utilities/nohup.html
* See http://pubs.opengroup.org/onlinepubs/9699919799/utilities/nohup.html

USE_NOHUP(NEWTOY(nohup, "<1^", TOYFLAG_USR|TOYFLAG_BIN|TOYFLAG_ARGFAIL(125)))

Expand Down
2 changes: 1 addition & 1 deletion toys/posix/od.c
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Copyright 2012 Andre Renaud <andre@bluewatersys.com>
* Copyright 2012 Rob Landley <rob@landley.net>
*
* See http://opengroup.org/onlinepubs/9699919799/utilities/od.html
* See http://pubs.opengroup.org/onlinepubs/9699919799/utilities/od.html

USE_OD(NEWTOY(od, "j#vw#<1=16N#xsodcbA:t*", TOYFLAG_USR|TOYFLAG_BIN))

Expand Down
2 changes: 1 addition & 1 deletion toys/posix/paste.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
*
* Copyright 2012 Felix Janda <felix.janda@posteo.de>
*
* http://pubs.opengroup.org/onlinepubs/9699919799/utilities/paste.html
* See http://pubs.opengroup.org/onlinepubs/9699919799/utilities/paste.html
*
* Deviations from posix: the FILE argument isn't mandatory, none == '-'

Expand Down
2 changes: 1 addition & 1 deletion toys/posix/patch.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
*
* Copyright 2007 Rob Landley <rob@landley.net>
*
* see http://opengroup.org/onlinepubs/9699919799/utilities/patch.html
* see http://pubs.opengroup.org/onlinepubs/9699919799/utilities/patch.html
* (But only does -u, because who still cares about "ed"?)
*
* TODO:
Expand Down
2 changes: 1 addition & 1 deletion toys/posix/pwd.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
*
* Copyright 2006 Rob Landley <rob@landley.net>
*
* See http://opengroup.org/onlinepubs/9699919799/utilities/pwd.html
* See http://pubs.opengroup.org/onlinepubs/9699919799/utilities/pwd.html

USE_PWD(NEWTOY(pwd, ">0LP[-LP]", TOYFLAG_BIN|TOYFLAG_MAYFORK))

Expand Down
2 changes: 1 addition & 1 deletion toys/posix/rmdir.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
*
* Copyright 2008 Rob Landley <rob@landley.net>
*
* See http://opengroup.org/onlinepubs/9699919799/utilities/rmdir.html
* See http://pubs.opengroup.org/onlinepubs/9699919799/utilities/rmdir.html

USE_RMDIR(NEWTOY(rmdir, "<1(ignore-fail-on-non-empty)p(parents)", TOYFLAG_BIN))

Expand Down
2 changes: 1 addition & 1 deletion toys/posix/sleep.c
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Copyright 2007 Rob Landley <rob@landley.net>
* Copyright 2012 Georgi Chorbadzhiyski <georgi@unixsol.org>
*
* See http://opengroup.org/onlinepubs/9699919799/utilities/sleep.html
* See http://pubs.opengroup.org/onlinepubs/9699919799/utilities/sleep.html

USE_SLEEP(NEWTOY(sleep, "<1", TOYFLAG_BIN))

Expand Down
2 changes: 1 addition & 1 deletion toys/posix/tail.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
*
* Copyright 2012 Timothy Elliott <tle@holymonkey.com>
*
* See http://opengroup.org/onlinepubs/9699919799/utilities/tail.html
* See http://pubs.opengroup.org/onlinepubs/9699919799/utilities/tail.html
*
* Deviations from posix: -f waits for pipe/fifo on stdin (nonblock?).

Expand Down
2 changes: 1 addition & 1 deletion toys/posix/tee.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
*
* Copyright 2008 Rob Landley <rob@landley.net>
*
* See http://opengroup.org/onlinepubs/9699919799/utilities/tee.html
* See http://pubs.opengroup.org/onlinepubs/9699919799/utilities/tee.html

USE_TEE(NEWTOY(tee, "ia", TOYFLAG_USR|TOYFLAG_BIN))

Expand Down
2 changes: 1 addition & 1 deletion toys/posix/true.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
*
* Copyright 2007 Rob Landley <rob@landley.net>
*
* See http://opengroup.org/onlinepubs/9699919799/utilities/true.html
* See http://pubs.opengroup.org/onlinepubs/9699919799/utilities/true.html

USE_TRUE(NEWTOY(true, NULL, TOYFLAG_BIN|TOYFLAG_NOHELP|TOYFLAG_MAYFORK))
USE_TRUE(OLDTOY(:, true, TOYFLAG_NOFORK|TOYFLAG_NOHELP))
Expand Down
Loading