OSDN Git Service

Merge branch 'master' of https://android.googlesource.com/platform/external/toybox...
authorSteve Kondik <steve@cyngn.com>
Tue, 9 Feb 2016 06:01:01 +0000 (22:01 -0800)
committerSteve Kondik <steve@cyngn.com>
Tue, 9 Feb 2016 06:01:01 +0000 (22:01 -0800)
1  2 
generated/flags.h
generated/globals.h
generated/help.h
generated/newtoys.h
lib/lib.c
lib/lib.h
toys.h
toys/other/blkid.c
toys/posix/cp.c

Simple merge
Simple merge
  
  #define help_oneit "usage: oneit [-p] [-c /dev/tty0] command [...]\n\nSimple init program that runs a single supplied command line with a\ncontrolling tty (so CTRL-C can kill it).\n\n-c     Which console device to use (/dev/console doesn't do CTRL-C, etc).\n-p  Power off instead of rebooting when command exits.\n-r  Restart child when it exits.\n-3        Write 32 bit PID of each exiting reparented process to fd 3 of child.\n (Blocking writes, child must read to avoid eventual deadlock.)\n\nSpawns a single child process (because PID 1 has signals blocked)\nin its own session, reaps zombies until the child exits, then\nreboots the system (or powers off with -p, or restarts the child with -r).\n\nResponds to SIGUSR1 by halting the system, SIGUSR2 by powering off,\nand SIGTERM or SIGINT reboot.\n\n"
  
- #define help_nsenter "usage: nsenter [-t pid] [-F] [-i] [-m] [-n] [-p] [-u] [-U] COMMAND...\n\nRun COMMAND in an existing (set of) namespace(s).\n\n-t  PID to take namespaces from    (--target)\n-F  don't fork, even if -p is used (--no-fork)\n\nThe namespaces to switch are:\n\n-i      SysV IPC: message queues, semaphores, shared memory (--ipc)\n-m Mount/unmount tree (--mnt)\n-n  Network address, sockets, routing, iptables (--net)\n-p Process IDs and init, will fork unless -F is used (--pid)\n-u   Host and domain names (--uts)\n-U       UIDs, GIDs, capabilities (--user)\n\nIf -t isn't specified, each namespace argument must provide a path\nto a namespace file, ala \"-i=/proc/$PID/ns/ipc\"\n\n"
+ #define help_nsenter "usage: nsenter [-t pid] [-F] [-i] [-m] [-n] [-p] [-u] [-U] COMMAND...\n\nRun COMMAND in an existing (set of) namespace(s).\n\n-t  PID to take namespaces from    (--target)\n-F  don't fork, even if -p is used (--no-fork)\n\nThe namespaces to switch are:\n\n-i      SysV IPC: message queues, semaphores, shared memory (--ipc)\n-m Mount/unmount tree (--mount)\n-n        Network address, sockets, routing, iptables (--net)\n-p Process IDs and init, will fork unless -F is used (--pid)\n-u   Host and domain names (--uts)\n-U       UIDs, GIDs, capabilities (--user)\n\nIf -t isn't specified, each namespace argument must provide a path\nto a namespace file, ala \"-i=/proc/$PID/ns/ipc\"\n\n"
  
- #define help_unshare "usage: unshare [-imnpuUr] COMMAND...\n\nCreate new container namespace(s) for this process and its children, so\nsome attribute is not shared with the parent process.\n\n-i    SysV IPC (message queues, semaphores, shared memory)\n-m        Mount/unmount tree\n-n  Network address, sockets, routing, iptables\n-p Process IDs and init\n-r        Become root (map current euid/egid to 0/0, implies -U)\n-u      Host and domain names\n-U       UIDs, GIDs, capabilities\n\nA namespace allows a set of processes to have a different view of the\nsystem than other sets of processes.\n\n"
+ #define help_unshare "usage: unshare [-imnpuUr] COMMAND...\n\nCreate new container namespace(s) for this process and its children, so\nsome attribute is not shared with the parent process.\n\n-f  Fork command in the background (--fork)\n-i       SysV IPC (message queues, semaphores, shared memory) (--ipc)\n-m        Mount/unmount tree (--mount)\n-n        Network address, sockets, routing, iptables (--net)\n-p Process IDs and init (--pid)\n-r        Become root (map current euid/egid to 0/0, implies -U) (--map-root-user)\n-u    Host and domain names (--uts)\n-U       UIDs, GIDs, capabilities (--user)\n\nA namespace allows a set of processes to have a different view of the\nsystem than other sets of processes.\n\n"
  
 -#define help_netcat_listen_tty "usage: netcat [-t]\n\n-t      allocate tty (must come before -l or -L)\n\n"
 -
 -#define help_netcat "usage: netcat [-lL COMMAND...] [-u] [-wpq #] [-s addr] {IPADDR PORTNUM|-f FILENAME}\n\n-L        listen for multiple incoming connections (server mode).\n-f     use FILENAME (ala /dev/ttyS0) instead of network\n-l    listen for one incoming connection.\n-p local port number\n-q   SECONDS quit this many seconds after EOF on stdin.\n-s  local ipv4 address\n-w  SECONDS timeout for connection\n\nUse \"stty 115200 -F /dev/ttyS0 && stty raw -echo -ctlecho\" with\nnetcat -f to connect to a serial port.\n\nThe command line after -l or -L is executed to handle each incoming\nconnection. If none, the connection is forwarded to stdin/stdout.\n\nFor a quick-and-dirty server, try something like:\nnetcat -s 127.0.0.1 -p 1234 -tL /bin/bash -l\n"
 +#define help_netcat "usage: netcat [-tu] [-lL COMMAND...] [-wpq #] [-s addr] {IPADDR PORTNUM|-f FILENAME}\n\n-L       listen for multiple incoming connections (server mode).\n-f     use FILENAME (ala /dev/ttyS0) instead of network\n-l    listen for one incoming connection.\n-p local port number\n-q   SECONDS quit this many seconds after EOF on stdin.\n-s  local ipv4 address\n-t  allocate tty (must come before -l or -L)\n-w    SECONDS timeout for connection\n\nUse \"stty 115200 -F /dev/ttyS0 && stty raw -echo -ctlecho\" with\nnetcat -f to connect to a serial port.\n\nThe command line after -l or -L is executed to handle each incoming\nconnection. If none, the connection is forwarded to stdin/stdout.\n\nFor a quick-and-dirty server, try something like:\nnetcat -s 127.0.0.1 -p 1234 -tL /bin/bash -l\n"
  
  #define help_nbd_client "usage: nbd-client [-ns] HOST PORT DEVICE\n\n-n       Do not fork into background\n-s nbd swap support (lock server into memory)\n\n"
  
Simple merge
diff --cc lib/lib.c
Simple merge
diff --cc lib/lib.h
Simple merge
diff --cc toys.h
Simple merge
Simple merge
diff --cc toys/posix/cp.c
Simple merge