From 4bc0a2ef2b7ba50a7a717e7ddbf31472ad28e358 Mon Sep 17 00:00:00 2001 From: casper Date: Wed, 9 Nov 2005 11:19:56 -0800 Subject: 6346636 expunge readdir_r uses from Solaris 6346809 S_IFxxx is not a bitmask but our programmers don't know --- usr/src/lib/libresolv2/common/bsd/writev.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'usr/src/lib/libresolv2/common/bsd/writev.c') diff --git a/usr/src/lib/libresolv2/common/bsd/writev.c b/usr/src/lib/libresolv2/common/bsd/writev.c index e3a97a0c39..6e348810ec 100644 --- a/usr/src/lib/libresolv2/common/bsd/writev.c +++ b/usr/src/lib/libresolv2/common/bsd/writev.c @@ -1,5 +1,5 @@ /* - * Copyright 2003 by Sun Microsystems, Inc. All rights reserved. + * Copyright 2005 Sun Microsystems, Inc. All rights reserved. * Use is subject to license terms. */ @@ -36,7 +36,7 @@ __writev(int fd, struct iovec *iov, int iovlen) /* * Allow for atomic writes to network. */ - if (statbuf.st_mode & S_IFSOCK) { + if (S_ISSOCK(statbuf.st_mode)) { struct msghdr mesg; memset(&mesg, 0, sizeof(mesg)); -- cgit v1.2.3