link.c (302B)
1 /* See LICENSE file for copyright and license details. */ 2 #include <errno.h> 3 #include <unistd.h> 4 5 #include "util.h" 6 7 int 8 main(int argc, char *argv[]) 9 { 10 argv0 = argv[0]; 11 12 if (argc != 3) 13 eprintf("usage: %s target linkname\n", argv0); 14 if (link(argv[1], argv[2]) < 0) 15 eprintf("link:"); 16 return 0; 17 }