diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2010-03-03 18:05:19 +0300 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2010-03-03 18:05:19 +0300 |
commit | 53c24915c4ee4e2b4460519e5a72ccc3702c5a0b (patch) | |
tree | a0cd1cd79d5693470926c1a787cfeff21e090dce /winsup/cygwin/cygxdr.cc | |
parent | 6fc25b2d1e77e48241219400fe840249697c6a56 (diff) |
Add XDR support.
* cygwin.din: Export xdr functions.
* include/cygwin/version.h: Bump version.
* cygxdr.cc: New.
* cygxdr.h: New.
* dcrt0.cc (dll_crt0_1): Print the (rare) xdr-related
error messages to stderr.
* Makefile.in: Add cygxdr.
* posix.sgml: Add new XDR functions to list of implemented Solaris
functions.
Diffstat (limited to 'winsup/cygwin/cygxdr.cc')
-rw-r--r-- | winsup/cygwin/cygxdr.cc | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/winsup/cygwin/cygxdr.cc b/winsup/cygwin/cygxdr.cc new file mode 100644 index 000000000..5b0e6ba3a --- /dev/null +++ b/winsup/cygwin/cygxdr.cc @@ -0,0 +1,24 @@ +/* cygxdr.cc: + + Copyright 2010 Red Hat, Inc. + +This file is part of Cygwin. + +This software is a copyrighted work licensed under the terms of the +Cygwin license. Please consult the file "CYGWIN_LICENSE" for +details. */ + +#include "winsup.h" +#include <stdarg.h> +#include <stdio.h> +#include "cygxdr.h" + +extern "C" void +cygxdr_vwarnx (const char * fmt, va_list ap) +{ + /* Imitate glibc behavior for xdr: messages are printed to stderr */ + (void) fputs ("xdr-routines: ", stderr); + (void) vfprintf (stderr, fmt, ap); + (void) fputs ("\n", stderr); +} + |