From 0ecb606cb6cf65de1d9fc8a919bceb4be476c602 Mon Sep 17 00:00:00 2001 From: Jakub Jelinek Date: Thu, 12 Jul 2007 18:26:36 +0000 Subject: 2.5-18.1 --- sysdeps/unix/sockatmark.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'sysdeps/unix/sockatmark.c') diff --git a/sysdeps/unix/sockatmark.c b/sysdeps/unix/sockatmark.c index 306ab36..a247641 100644 --- a/sysdeps/unix/sockatmark.c +++ b/sysdeps/unix/sockatmark.c @@ -1,4 +1,4 @@ -/* Copyright (C) 2001 Free Software Foundation, Inc. +/* Copyright (C) 2001, 2005 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or @@ -24,5 +24,7 @@ int sockatmark (fd) int fd; { - return __ioctl (fd, SIOCATMARK); + int answ; + + return __ioctl (fd, SIOCATMARK, &answ) == -1 ? -1 : answ; } -- cgit v1.1