a192d1c0eb1d05a03ead3c7f898e864e4bf0399cPatrick Mooney * This file and its contents are supplied under the terms of the
a192d1c0eb1d05a03ead3c7f898e864e4bf0399cPatrick Mooney * Common Development and Distribution License ("CDDL"), version 1.0.
a192d1c0eb1d05a03ead3c7f898e864e4bf0399cPatrick Mooney * You may only use this file in accordance with the terms of version
a192d1c0eb1d05a03ead3c7f898e864e4bf0399cPatrick Mooney * 1.0 of the CDDL.
a192d1c0eb1d05a03ead3c7f898e864e4bf0399cPatrick Mooney * A full copy of the text of the CDDL should have accompanied this
a192d1c0eb1d05a03ead3c7f898e864e4bf0399cPatrick Mooney * source. A copy of the CDDL is also available via the Internet at
a192d1c0eb1d05a03ead3c7f898e864e4bf0399cPatrick Mooney * Copyright 2016 Joyent, Inc.
a192d1c0eb1d05a03ead3c7f898e864e4bf0399cPatrick Mooney assert(flags != -1 && (flags & FD_CLOEXEC) == 0);
a192d1c0eb1d05a03ead3c7f898e864e4bf0399cPatrick Mooney assert(flags != -1 && (flags & FD_CLOEXEC) == FD_CLOEXEC);