mknod.c revision 12789:82cffaae72d5
175584Sru/* 275584Sru * CDDL HEADER START 375584Sru * 475584Sru * The contents of this file are subject to the terms of the 575584Sru * Common Development and Distribution License (the "License"). 675584Sru * You may not use this file except in compliance with the License. 775584Sru * 875584Sru * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 975584Sru * or http://www.opensolaris.org/os/licensing. 1075584Sru * See the License for the specific language governing permissions 1175584Sru * and limitations under the License. 1275584Sru * 1375584Sru * When distributing Covered Code, include this CDDL HEADER in each 1475584Sru * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 1575584Sru * If applicable, add the following below this CDDL HEADER, with the 1675584Sru * fields enclosed by brackets "[]" replaced with your own identifying 1775584Sru * information: Portions Copyright [yyyy] [name of copyright owner] 1875584Sru * 1975584Sru * CDDL HEADER END 2075584Sru */ 2175584Sru 2275584Sru/* 2375584Sru * Copyright (c) 1990, 2010, Oracle and/or its affiliates. All rights reserved. 2475584Sru */ 2575584Sru 2675584Sru#include "chkpath.h" 2775584Sru#include <sys/fcntl.h> 2875584Sru 2975584Sruint 3075584Srumknod(char *p, int m, int d) 3175584Sru{ 3275584Sru CHKNULL(p); 3375584Sru return (_syscall(SYS_mknodat, AT_FDCWD, p, m, d)); 3475584Sru} 3575584Sru