Relicense Sortix to the ISC license.
I hereby relicense all my work on Sortix under the ISC license as below.
All Sortix contributions by other people are already under this license,
are not substantial enough to be copyrightable, or have been removed.
All imported code from other projects is compatible with this license.
All GPL licensed code from other projects had previously been removed.
Copyright 2011-2016 Jonas 'Sortie' Termansen and contributors.
Permission to use, copy, modify, and distribute this software for any
purpose with or without fee is hereby granted, provided that the above
copyright notice and this permission notice appear in all copies.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
2016-03-02 17:38:16 -05:00
|
|
|
/*
|
2018-07-14 16:34:48 -04:00
|
|
|
* Copyright (c) 2012-2018 Jonas 'Sortie' Termansen.
|
Relicense Sortix to the ISC license.
I hereby relicense all my work on Sortix under the ISC license as below.
All Sortix contributions by other people are already under this license,
are not substantial enough to be copyrightable, or have been removed.
All imported code from other projects is compatible with this license.
All GPL licensed code from other projects had previously been removed.
Copyright 2011-2016 Jonas 'Sortie' Termansen and contributors.
Permission to use, copy, modify, and distribute this software for any
purpose with or without fee is hereby granted, provided that the above
copyright notice and this permission notice appear in all copies.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
2016-03-02 17:38:16 -05:00
|
|
|
*
|
|
|
|
* Permission to use, copy, modify, and distribute this software for any
|
|
|
|
* purpose with or without fee is hereby granted, provided that the above
|
|
|
|
* copyright notice and this permission notice appear in all copies.
|
|
|
|
*
|
|
|
|
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
|
|
|
|
* WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
|
|
|
|
* MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
|
|
|
|
* ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
|
|
|
* WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
|
|
|
|
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
|
|
|
|
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
|
|
|
*
|
|
|
|
* sortix/stat.h
|
|
|
|
* Defines the struct stat used for file meta-information and other useful
|
|
|
|
* macros and values relating to values stored in it.
|
|
|
|
*/
|
2012-02-21 18:30:34 -05:00
|
|
|
|
2022-07-07 19:09:15 -04:00
|
|
|
#ifndef _INCLUDE_SORTIX_STAT_H
|
|
|
|
#define _INCLUDE_SORTIX_STAT_H
|
2012-02-21 18:30:34 -05:00
|
|
|
|
2013-10-13 07:04:27 -04:00
|
|
|
#include <sys/cdefs.h>
|
2013-09-23 10:37:33 -04:00
|
|
|
|
2018-07-14 16:34:48 -04:00
|
|
|
#include <sys/__/types.h>
|
2014-01-03 16:20:52 -05:00
|
|
|
|
2018-07-14 16:34:48 -04:00
|
|
|
#include <sortix/mode.h>
|
2013-03-22 15:19:45 -04:00
|
|
|
#include <sortix/timespec.h>
|
2012-02-21 18:30:34 -05:00
|
|
|
|
2018-07-14 16:34:48 -04:00
|
|
|
#ifndef __dev_t_defined
|
|
|
|
#define __dev_t_defined
|
|
|
|
typedef __dev_t dev_t;
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef __ino_t_defined
|
|
|
|
#define __ino_t_defined
|
|
|
|
typedef __ino_t ino_t;
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef __mode_t_defined
|
|
|
|
#define __mode_t_defined
|
|
|
|
typedef __mode_t mode_t;
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef __nlink_t_defined
|
|
|
|
#define __nlink_t_defined
|
|
|
|
typedef __nlink_t nlink_t;
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef __uid_t_defined
|
|
|
|
#define __uid_t_defined
|
|
|
|
typedef __uid_t uid_t;
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef __gid_t_defined
|
|
|
|
#define __gid_t_defined
|
|
|
|
typedef __gid_t gid_t;
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef __off_t_defined
|
|
|
|
#define __off_t_defined
|
|
|
|
typedef __off_t off_t;
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef __blksize_t_defined
|
|
|
|
#define __blksize_t_defined
|
|
|
|
typedef __blksize_t blksize_t;
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef __blkcnt_t_defined
|
|
|
|
#define __blkcnt_t_defined
|
|
|
|
typedef __blkcnt_t blkcnt_t;
|
2015-05-13 12:11:02 -04:00
|
|
|
#endif
|
2012-02-21 18:30:34 -05:00
|
|
|
|
|
|
|
struct stat
|
|
|
|
{
|
2012-03-04 10:48:24 -05:00
|
|
|
dev_t st_dev;
|
2013-03-22 15:19:45 -04:00
|
|
|
dev_t st_rdev;
|
2012-02-21 18:30:34 -05:00
|
|
|
ino_t st_ino;
|
|
|
|
mode_t st_mode;
|
|
|
|
nlink_t st_nlink;
|
|
|
|
uid_t st_uid;
|
|
|
|
gid_t st_gid;
|
|
|
|
off_t st_size;
|
2013-03-22 15:19:45 -04:00
|
|
|
struct timespec st_atim;
|
|
|
|
struct timespec st_mtim;
|
|
|
|
struct timespec st_ctim;
|
2012-02-21 18:30:34 -05:00
|
|
|
blksize_t st_blksize;
|
|
|
|
blkcnt_t st_blocks;
|
|
|
|
};
|
|
|
|
|
2016-02-24 10:29:37 -05:00
|
|
|
#define UTIME_NOW 0x3FFFFFFF
|
|
|
|
#define UTIME_OMIT 0x3FFFFFFE
|
|
|
|
|
2012-02-21 18:30:34 -05:00
|
|
|
#endif
|