]> sourceware.org Git - newlib-cygwin.git/commitdiff
* common.din (sockatmark): Export.
authorCorinna Vinschen <corinna@vinschen.de>
Tue, 20 Jan 2015 18:23:20 +0000 (18:23 +0000)
committerCorinna Vinschen <corinna@vinschen.de>
Tue, 20 Jan 2015 18:23:20 +0000 (18:23 +0000)
* net.cc (sockatmark): New function.
* include/cygwin/version.h (CYGWIN_VERSION_API_MINOR): Bump.

winsup/cygwin/ChangeLog
winsup/cygwin/common.din
winsup/cygwin/include/cygwin/version.h
winsup/cygwin/net.cc
winsup/cygwin/release/1.7.34

index 7f94cc31ec3526861440b40603319b40e8a47bbc..4017e1d068866da27756f1d9933e0726f5653c15 100644 (file)
@@ -1,3 +1,9 @@
+2015-01-20  Corinna Vinschen  <corinna@vinschen.de>
+
+       * common.din (sockatmark): Export.
+       * net.cc (sockatmark): New function.
+       * include/cygwin/version.h (CYGWIN_VERSION_API_MINOR): Bump.
+
 2015-01-19  Corinna Vinschen  <corinna@vinschen.de>
 
        * cygserver_ipc.h (ipc_retval): Add default constructor.
index 67c30bb40bd6b43bb5dd97bee53d1f1aea171b2c..087e44d9af83c55ea8252522d0d769a56eec3830 100644 (file)
@@ -1118,6 +1118,7 @@ sinhf NOSIGFE
 siprintf SIGFE
 sleep SIGFE
 snprintf SIGFE
+sockatmark SIGFE
 socket = cygwin_socket SIGFE
 socketpair SIGFE
 spawnl SIGFE
index 9062e42fdba14404daaa193564d4024469de6a12..1e7a3b3283f6e1daf5ed2b167afaee4d75dd33bb 100644 (file)
@@ -1,7 +1,7 @@
 /* version.h -- Cygwin version numbers and accompanying documentation.
 
    Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006,
-   2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014 Red Hat, Inc.
+   2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015 Red Hat, Inc.
 
 This file is part of Cygwin.
 
@@ -465,12 +465,13 @@ details. */
            fputc_unlocked, fputs_unlocked, fputwc_unlocked, fputws_unlocked,
            fread_unlocked, fwrite_unlocked, getwc_unlocked, getwchar_unlocked,
            putwc_unlocked, putwchar_unlocked.
+      284: Export sockatmark.
      */
 
      /* Note that we forgot to bump the api for ualarm, strtoll, strtoull */
 
 #define CYGWIN_VERSION_API_MAJOR 0
-#define CYGWIN_VERSION_API_MINOR 283
+#define CYGWIN_VERSION_API_MINOR 284
 
      /* There is also a compatibity version number associated with the
        shared memory regions.  It is incremented when incompatible
index 5c4959bdf4fc1ff804903fb597f30ba290f7cd2e..3c485c1483a58e1070461c391cf502becb8fa7bb 100644 (file)
@@ -1,7 +1,7 @@
 /* net.cc: network-related routines.
 
    Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006,
-   2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014 Red Hat, Inc.
+   2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015 Red Hat, Inc.
 
 This file is part of Cygwin.
 
@@ -987,6 +987,19 @@ cygwin_getsockopt (int fd, int level, int optname, void *optval,
   return res;
 }
 
+/* POSIX.1-2001 */
+extern "C" int
+sockatmark (int fd)
+{
+  int ret;
+
+  fhandler_socket *fh = get (fd);
+  if (fh && fh->ioctl (SIOCATMARK, &ret) != -1)
+    return ret;
+  return -1;
+}
+
+/* BSD */
 extern "C" int
 getpeereid (int fd, uid_t *euid, gid_t *egid)
 {
index f64179379ffdb07df56df36d640f2e4983606ec1..f9a618c51844ac6955cb0d112e9abf5494fe374f 100644 (file)
@@ -30,6 +30,9 @@ What's new:
   fputws_unlocked, fread_unlocked, fwrite_unlocked, getwc_unlocked,
   getwchar_unlocked, putwc_unlocked, putwchar_unlocked.
 
+- New API: sockatmark.
+
+
 What changed:
 -------------
 
This page took 0.038853 seconds and 5 git commands to generate.