X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=lib%2Fsymlinkat.c;h=c01b3228d9f3103b7ad22ad96dc432a365479a91;hb=4f73e86209f313dfc2b9dd649fa6bcdf8122310f;hp=6fe752f14aca86dbf6a57671553f5a67637486ed;hpb=d4356ced2b562ac55101ab23a5321114c41e0eda;p=gnulib.git diff --git a/lib/symlinkat.c b/lib/symlinkat.c index 6fe752f14..c01b3228d 100644 --- a/lib/symlinkat.c +++ b/lib/symlinkat.c @@ -1,5 +1,5 @@ /* Create a symlink relative to an open directory. - Copyright (C) 2009 Free Software Foundation, Inc. + Copyright (C) 2009-2010 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -20,19 +20,15 @@ #include -#include "dirname.h" /* solely for definition of IS_ABSOLUTE_FILE_NAME */ -#include "openat.h" -#include "openat-priv.h" -#include "save-cwd.h" - #if !HAVE_SYMLINK -/* Mingw lacks symlink, so this wrapper is trivial. */ +/* Mingw lacks symlink, and it is more efficient to provide a trivial + wrapper than to go through at-func.c to call rpl_symlink. */ # include int -symlinkat (char const *path1 _UNUSED_PARAMETER_, int fd _UNUSED_PARAMETER_, - char const *path2 _UNUSED_PARAMETER_) +symlinkat (char const *path1 _GL_UNUSED, int fd _GL_UNUSED, + char const *path2 _GL_UNUSED) { errno = ENOSYS; return -1;