#define _DEFAULT_SOURCE #define _XOPEN_SOURCE 700 #include #include int main(int argc, char **argv) { return symlinkat("foobar", AT_FDCWD, "tmp/new-symlink") + symlink("foo", "tmp/other-link"); }