summaryrefslogtreecommitdiff
path: root/lib/libc/sys
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libc/sys')
-rw-r--r--lib/libc/sys/getdirentries.210
-rw-r--r--lib/libc/sys/sigaltstack.26
2 files changed, 8 insertions, 8 deletions
diff --git a/lib/libc/sys/getdirentries.2 b/lib/libc/sys/getdirentries.2
index 42833263080..80fc06da0dd 100644
--- a/lib/libc/sys/getdirentries.2
+++ b/lib/libc/sys/getdirentries.2
@@ -1,4 +1,4 @@
-.\" $OpenBSD: getdirentries.2,v 1.21 2007/05/31 19:19:32 jmc Exp $
+.\" $OpenBSD: getdirentries.2,v 1.22 2009/07/09 10:14:41 eric Exp $
.\" $NetBSD: getdirentries.2,v 1.7 1995/10/12 15:40:50 jtc Exp $
.\"
.\" Copyright (c) 1989, 1991, 1993
@@ -30,7 +30,7 @@
.\"
.\" @(#)getdirentries.2 8.1 (Berkeley) 6/9/93
.\"
-.Dd $Mdocdate: May 31 2007 $
+.Dd $Mdocdate: July 9 2009 $
.Dt GETDIRENTRIES 2
.Os
.Sh NAME
@@ -154,9 +154,9 @@ char *path;
struct stat sb;
struct dirent *dp;
-if ((fd = open(path, O_RDONLY)) < 0)
+if ((fd = open(path, O_RDONLY)) == -1)
err(2, "cannot open %s", path);
-if (fstat(fd, &sb) < 0)
+if (fstat(fd, &sb) == -1)
err(2, "fstat");
bufsize = sb.st_size;
if (bufsize < sb.st_blksize)
@@ -173,7 +173,7 @@ while ((nbytes = getdirentries(fd, buf, bufsize, &base)) > 0) {
cp += dp->d_reclen;
}
}
-if (nbytes < 0)
+if (nbytes == -1)
err(2, "getdirentries");
free(buf);
.Ed
diff --git a/lib/libc/sys/sigaltstack.2 b/lib/libc/sys/sigaltstack.2
index 032f7f9be31..f01e1c316aa 100644
--- a/lib/libc/sys/sigaltstack.2
+++ b/lib/libc/sys/sigaltstack.2
@@ -1,4 +1,4 @@
-.\" $OpenBSD: sigaltstack.2,v 1.13 2007/05/31 19:19:34 jmc Exp $
+.\" $OpenBSD: sigaltstack.2,v 1.14 2009/07/09 10:14:41 eric Exp $
.\" $NetBSD: sigaltstack.2,v 1.3 1995/02/27 10:41:52 cgd Exp $
.\"
.\" Copyright (c) 1983, 1991, 1992, 1993
@@ -30,7 +30,7 @@
.\"
.\" @(#)sigaltstack.2 8.1 (Berkeley) 6/4/93
.\"
-.Dd $Mdocdate: May 31 2007 $
+.Dd $Mdocdate: July 9 2009 $
.Dt SIGALTSTACK 2
.Os
.Sh NAME
@@ -110,7 +110,7 @@ if ((sigstk.ss_sp = malloc(SIGSTKSZ)) == NULL)
/* error return */
sigstk.ss_size = SIGSTKSZ;
sigstk.ss_flags = 0;
-if (sigaltstack(&sigstk,0) < 0)
+if (sigaltstack(&sigstk, 0) == -1)
perror("sigaltstack");
.Ed
.Pp