Add link(1)
This commit is contained in:
17
link.c
Normal file
17
link.c
Normal file
@@ -0,0 +1,17 @@
|
||||
/* See LICENSE file for copyright and license details. */
|
||||
#include <errno.h>
|
||||
#include <unistd.h>
|
||||
|
||||
#include "util.h"
|
||||
|
||||
int
|
||||
main(int argc, char *argv[])
|
||||
{
|
||||
argv0 = argv[0];
|
||||
|
||||
if(argc != 3)
|
||||
eprintf("usage: %s target linkname\n", argv0);
|
||||
if (0 != link(argv[1], argv[2]))
|
||||
eprintf("link:");
|
||||
return 0;
|
||||
}
|
Reference in New Issue
Block a user