Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libc/gen Reverse arguments to fcntl(2).
details: https://anonhg.NetBSD.org/src/rev/26e8a3e45b6d
branches: trunk
changeset: 567595:26e8a3e45b6d
user: atatat <atatat%NetBSD.org@localhost>
date: Tue Jun 22 13:49:43 2004 +0000
description:
Reverse arguments to fcntl(2).
diffstat:
lib/libc/gen/closefrom.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (25 lines):
diff -r e8f15c417783 -r 26e8a3e45b6d lib/libc/gen/closefrom.c
--- a/lib/libc/gen/closefrom.c Tue Jun 22 12:50:41 2004 +0000
+++ b/lib/libc/gen/closefrom.c Tue Jun 22 13:49:43 2004 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: closefrom.c,v 1.1 2004/05/31 05:06:51 itojun Exp $ */
+/* $NetBSD: closefrom.c,v 1.2 2004/06/22 13:49:43 atatat Exp $ */
/*
* Copyright (C) 2004 WIDE Project.
@@ -31,7 +31,7 @@
#include <sys/cdefs.h>
#if defined(LIBC_SCCS) && !defined(lint)
-__RCSID("$NetBSD: closefrom.c,v 1.1 2004/05/31 05:06:51 itojun Exp $");
+__RCSID("$NetBSD: closefrom.c,v 1.2 2004/06/22 13:49:43 atatat Exp $");
#endif /* LIBC_SCCS and not lint */
#include <fcntl.h>
@@ -41,5 +41,5 @@
closefrom(int fd)
{
- return (fcntl(F_CLOSEM, fd));
+ return (fcntl(fd, F_CLOSEM));
}
Home |
Main Index |
Thread Index |
Old Index