#include #include #include #include #include #include #include int main(int argc, char *argv[]) { int r; if (argc != 3) { fprintf(stderr, "usage: sylinkat: \n"); return EXIT_FAILURE; } r = symlinkat(argv[1], AT_FDCWD, argv[2]); if (r != 0) { fprintf(stderr, "symlinkat %s %s failed: %s (%i)\n", argv[1], argv[2], strerror(errno), errno); return EXIT_FAILURE; } return EXIT_SUCCESS; }