libc: Add dup3() from FreeBSD.
authorSascha Wildner <saw@online.de>
Mon, 6 May 2019 16:53:26 +0000 (18:53 +0200)
committerSascha Wildner <saw@online.de>
Mon, 6 May 2019 16:54:08 +0000 (18:54 +0200)
commita0db5952c182198feb29dd55b977177dcf3822e3
treef58cf80605dd32d199c91d4bd823029e3d6ff306
parentad59fbcb40e659b98fd30956baa3a82c918171b6
libc: Add dup3() from FreeBSD.

As proposed in http://austingroupbugs.net/view.php?id=411

It seems to help with various ports.

Pointed-out-by: zrj
include/unistd.h
lib/libc/gen/Makefile.inc
lib/libc/gen/Symbol.map
lib/libc/gen/dup3.3 [new file with mode: 0644]
lib/libc/gen/dup3.c [new file with mode: 0644]
lib/libc/sys/dup.2