src/w32.c (careadlinkat, careadlinkatcwd): New always-fail stubs.
lib/makefile.w32-in ($(BLD)/careadlinkat.$(O), GNULIBOBJS):
Revert last change.
+2011-04-06 Eli Zaretskii <eliz@gnu.org>
+
+ * lib/makefile.w32-in ($(BLD)/careadlinkat.$(O), GNULIBOBJS):
+ Revert last change.
+
2011-04-06 Juanma Barranquero <lekktu@gmail.com>
* lib/makefile.w32-in (GNULIBOBJS): Add careadlinkat.$(O).
$(BLD)/strftime.$(O) \
$(BLD)/time_r.$(O) \
$(BLD)/md5.$(O) \
- $(BLD)/filemode.$(O) \
- $(BLD)/careadlinkat.$(O)
+ $(BLD)/filemode.$(O)
#
# Build the library
$(EMACS_ROOT)/src/m/intel386.h \
$(EMACS_ROOT)/src/config.h
-$(BLD)/careadlinkat.$(O) : \
- $(SRC)/careadlinkat.c \
- $(SRC)/careadlinkat.h \
- $(SRC)/allocator.h \
- $(EMACS_ROOT)/nt/inc/unistd.h \
- $(EMACS_ROOT)/nt/inc/sys/stat.h \
- $(EMACS_ROOT)/src/s/ms-w32.h \
- $(EMACS_ROOT)/src/m/intel386.h \
- $(EMACS_ROOT)/src/config.h
-
# The following dependencies are for supporting parallel builds, where
# we must make sure $(BLD) exists before any compilation starts.
#
$(BLD)/dtoastr.$(O) $(BLD)/getopt.$(O) $(BLD)/getopt1.$(O): stamp_BLD
$(BLD)/strftime.$(O) $(BLD)/time_r.$(O) $(BLD)/md5.$(O): stamp_BLD
-$(BLD)/filemode.$(O) $(BLD)/careadlinkat.$(O): stamp_BLD
+$(BLD)/filemode.$(O): stamp_BLD
#
# Headers we would preprocess if we could.
+2011-04-06 Eli Zaretskii <eliz@gnu.org>
+
+ * w32.c (careadlinkat, careadlinkatcwd): New always-fail stubs.
+
2011-04-06 Paul Eggert <eggert@cs.ucla.edu>
Fix more problems found by GCC 4.6.0's static checks.
#include "dispextern.h" /* for xstrcasecmp */
#include "coding.h" /* for Vlocale_coding_system */
+#include "careadlinkat.h"
+#include "allocator.h"
+
/* For serial_configure and serial_open. */
#include "process.h"
}
\f
-/* Symlink-related functions that always fail. Used in fileio.c to
- avoid #ifdef's. */
+/* Symlink-related functions that always fail. Used in fileio.c and in
+ sysdep.c to avoid #ifdef's. */
int
symlink (char const *dummy1, char const *dummy2)
{
return -1;
}
+char *
+careadlinkat (int fd, char const *filename,
+ char *buffer, size_t buffer_size,
+ struct allocator const *alloc,
+ ssize_t (*preadlinkat) (int, char const *, char *, size_t))
+{
+ errno = ENOSYS;
+ return NULL;
+}
+
+ssize_t
+careadlinkatcwd (int fd, char const *filename, char *buffer,
+ size_t buffer_size)
+{
+ (void) fd;
+ return readlink (filename, buffer, buffer_size);
+}
+
\f
/* Support for browsing other processes and their attributes. See
process.c for the Lisp bindings. */