Print this page
4023 - Typo in file(1) manpage and various others
@@ -1,11 +1,11 @@
'\" te
.\" Copyright (c) 2007 Sun Microsystems, Inc. All Rights Reserved.
.\" The contents of this file are subject to the terms of the Common Development and Distribution License (the "License"). You may not use this file except in compliance with the License.
.\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing. See the License for the specific language governing permissions and limitations under the License.
.\" When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE. If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
-.TH POLL 7D "Mar 28, 2007"
+.TH POLL 7D "Sep 10, 2013"
.SH NAME
poll \- driver for fast poll on many file descriptors
.SH SYNOPSIS
.LP
.nf
@@ -246,34 +246,34 @@
dpfd.events = 0;
dpfd.revents = 0;
result = ioctl(wfd, DP_ISPOLLED, &dpfd);
if (result < 0) {
perror("/dev/poll ioctl DP_ISPOLLED failed");
- printf("errno = %d\n", errno);
+ printf("errno = %d\en", errno);
close (wfd);
free(pollfd);
error = 1;
goto out1;
}
if (result != 1) {
- printf("DP_ISPOLLED returned incorrect result: %d.\n",
+ printf("DP_ISPOLLED returned incorrect result: %d.\en",
result);
close (wfd);
free(pollfd);
error = 1;
goto out1;
}
if (dpfd.fd != fds[rn]) {
- printf("DP_ISPOLLED returned wrong fd %d, expect %d\n",
+ printf("DP_ISPOLLED returned wrong fd %d, expect %d\en",
dpfd.fd, fds[rn]);
close (wfd);
free(pollfd);
error = 1;
goto out1;
}
if (dpfd.revents != POLLIN) {
- printf("DP_ISPOLLED returned unexpected revents %d\n",
+ printf("DP_ISPOLLED returned unexpected revents %d\en",
dpfd.revents);
close (wfd);
free(pollfd);
error = 1;
goto out1;