1*de572d98SGarrett D'Amore# 2*de572d98SGarrett D'Amore# This file and its contents are supplied under the terms of the 3*de572d98SGarrett D'Amore# Common Development and Distribution License ("CDDL"), version 1.0. 4*de572d98SGarrett D'Amore# You may only use this file in accordance with the terms of version 5*de572d98SGarrett D'Amore# 1.0 of the CDDL. 6*de572d98SGarrett D'Amore# 7*de572d98SGarrett D'Amore# A full copy of the text of the CDDL should have accompanied this 8*de572d98SGarrett D'Amore# source. A copy of the CDDL is also available via the Internet at 9*de572d98SGarrett D'Amore# http://www.illumos.org/license/CDDL. 10*de572d98SGarrett D'Amore# 11*de572d98SGarrett D'Amore 12*de572d98SGarrett D'Amore# 13*de572d98SGarrett D'Amore# Copyright 2015 Garrett D'Amore <garrett@damore.org> 14*de572d98SGarrett D'Amore# 15*de572d98SGarrett D'Amore 16*de572d98SGarrett D'Amore# 17*de572d98SGarrett D'Amore# Definitions found in sys/stat.h 18*de572d98SGarrett D'Amore# 19*de572d98SGarrett D'Amore 20*de572d98SGarrett D'Amore# 21*de572d98SGarrett D'Amore# Types. 22*de572d98SGarrett D'Amore# 23*de572d98SGarrett D'Amoretype | mode_t | sys/stat.h | ALL 24*de572d98SGarrett D'Amoretype | struct stat | sys/stat.h | ALL 25*de572d98SGarrett D'Amore 26*de572d98SGarrett D'Amore# 27*de572d98SGarrett D'Amore# Values. 28*de572d98SGarrett D'Amore# 29*de572d98SGarrett D'Amorevalue | S_IFMT | mode_t | sys/stat.h | ALL 30*de572d98SGarrett D'Amorevalue | S_IFBLK | mode_t | sys/stat.h | ALL 31*de572d98SGarrett D'Amore 32*de572d98SGarrett D'Amore# 33*de572d98SGarrett D'Amore# Functions 34*de572d98SGarrett D'Amore# 35*de572d98SGarrett D'Amorefunc | chmod |\ 36*de572d98SGarrett D'Amore int |\ 37*de572d98SGarrett D'Amore const char *; mode_t |\ 38*de572d98SGarrett D'Amore sys/stat.h | POSIX+ XPG3+ 39*de572d98SGarrett D'Amore 40*de572d98SGarrett D'Amorefunc | fchmod |\ 41*de572d98SGarrett D'Amore int |\ 42*de572d98SGarrett D'Amore int; mode_t |\ 43*de572d98SGarrett D'Amore sys/stat.h | -POSIX+ -XPG3+ POSIX-1993+ SUS+ 44*de572d98SGarrett D'Amore 45*de572d98SGarrett D'Amorefunc | fstat |\ 46*de572d98SGarrett D'Amore int |\ 47*de572d98SGarrett D'Amore int; struct stat * |\ 48*de572d98SGarrett D'Amore sys/stat.h | XPG3+ POSIX+ 49*de572d98SGarrett D'Amore 50*de572d98SGarrett D'Amorefunc | mkdir |\ 51*de572d98SGarrett D'Amore int |\ 52*de572d98SGarrett D'Amore const char *; mode_t |\ 53*de572d98SGarrett D'Amore sys/stat.h | XPG3+ POSIX+ 54*de572d98SGarrett D'Amore 55*de572d98SGarrett D'Amorefunc | mknod |\ 56*de572d98SGarrett D'Amore int |\ 57*de572d98SGarrett D'Amore const char *; mode_t; dev_t |\ 58*de572d98SGarrett D'Amore sys/stat.h | -XPG3+ -POSIX+ SUS+ 59