finish renaming __dup3110 to __dup3100

This commit is contained in:
christos 2024-05-20 01:33:39 +00:00
parent 679926ade6
commit 95f35978fa
2 changed files with 5 additions and 5 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: unistd.h,v 1.4 2024/05/19 22:25:47 christos Exp $ */
/* $NetBSD: unistd.h,v 1.5 2024/05/20 01:33:39 christos Exp $ */
/*-
* Copyright (c) 1998, 1999 The NetBSD Foundation, Inc.
@ -68,7 +68,7 @@ __BEGIN_DECLS
pid_t vfork(void) __returns_twice;
pid_t __vfork14(void) __returns_twice;
int dup3(int, int, int);
int __dup3110(int, int, int);
int __dup3100(int, int, int);
__END_DECLS

View File

@ -1,4 +1,4 @@
/* $NetBSD: compat_dup3.c,v 1.1 2024/05/19 22:25:48 christos Exp $ */
/* $NetBSD: compat_dup3.c,v 1.2 2024/05/20 01:33:40 christos Exp $ */
/*-
* Copyright (c) 2024 The NetBSD Foundation, Inc.
@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
#if defined(LIBC_SCCS) && !defined(lint)
__RCSID("$NetBSD: compat_dup3.c,v 1.1 2024/05/19 22:25:48 christos Exp $");
__RCSID("$NetBSD: compat_dup3.c,v 1.2 2024/05/20 01:33:40 christos Exp $");
#endif /* LIBC_SCCS and not lint */
#include "namespace.h"
@ -45,7 +45,7 @@ int
dup3(int oldfd, int newfd, int flags)
{
if (oldfd != newfd) {
return __dup3110(oldfd, newfd, flags);
return __dup3100(oldfd, newfd, flags);
}
if (flags & (O_NONBLOCK|O_NOSIGPIPE)) {
int e = fcntl(newfd, F_GETFL, 0);