XenevaOS
Loading...
Searching...
No Matches
Classes | Macros | Functions
stat.h File Reference
#include <sys\types.h>
#include <time.h>
#include <_xeneva.h>
Include dependency graph for stat.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  stat
 

Macros

#define S_IFMT   0170000
 
#define S_IFSOCK   0140000
 
#define S_IFLNK   0120000
 
#define S_IFREG   0100000
 
#define S_IFBLK   0060000
 
#define S_IFDIR   0040000
 
#define S_IFCHR   0020000
 
#define S_IFIFO   0010000
 
#define S_ISUID   0004000
 
#define S_ISGID   0002000
 
#define S_ISVTX   0001000
 
#define S_ISREG(m)   (((m) & S_IFREG) == S_IFREG)
 
#define S_ISDIR(m)   (((m) & S_IFDIR) == S_IFDIR)
 
#define S_ISCHR(m)   (((m) & S_IFCHR) == S_IFCHR)
 
#define S_ISBLK(m)   (((m) & S_IFBLK) == S_IFBLK)
 
#define S_ISFIFO(m)   (((m) & S_IFIFO) == S_IFIFO)
 
#define S_ISLNK(m)   (((m) & S_IFLNK) == S_IFLNK)
 
#define S_ISSOCK(m)   (((m) & S_IFSOCK) == S_IFSOCK)
 

Functions

XE_LIB int mkdir (const char *, mode_t)
 
XE_LIB int stat (const char *, struct stat *)
 

Detailed Description

BSD 2-Clause License

Copyright (c) 2022-2023, Manas Kamal Choudhury All rights reserved.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

  1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
  2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

Macro Definition Documentation

◆ S_IFBLK

#define S_IFBLK   0060000

◆ S_IFCHR

#define S_IFCHR   0020000

◆ S_IFDIR

#define S_IFDIR   0040000

◆ S_IFIFO

#define S_IFIFO   0010000

◆ S_IFLNK

#define S_IFLNK   0120000

◆ S_IFMT

#define S_IFMT   0170000

◆ S_IFREG

#define S_IFREG   0100000

◆ S_IFSOCK

#define S_IFSOCK   0140000

◆ S_ISBLK

#define S_ISBLK (   m)    (((m) & S_IFBLK) == S_IFBLK)

◆ S_ISCHR

#define S_ISCHR (   m)    (((m) & S_IFCHR) == S_IFCHR)

◆ S_ISDIR

#define S_ISDIR (   m)    (((m) & S_IFDIR) == S_IFDIR)

◆ S_ISFIFO

#define S_ISFIFO (   m)    (((m) & S_IFIFO) == S_IFIFO)

◆ S_ISGID

#define S_ISGID   0002000

◆ S_ISLNK

#define S_ISLNK (   m)    (((m) & S_IFLNK) == S_IFLNK)

◆ S_ISREG

#define S_ISREG (   m)    (((m) & S_IFREG) == S_IFREG)

◆ S_ISSOCK

#define S_ISSOCK (   m)    (((m) & S_IFSOCK) == S_IFSOCK)

◆ S_ISUID

#define S_ISUID   0004000

◆ S_ISVTX

#define S_ISVTX   0001000

Function Documentation

◆ mkdir()

XE_LIB int mkdir ( const char *  filename,
mode_t  mode 
)

◆ stat()

XE_LIB int stat ( const char *  filename,
struct stat st 
)

BSD 2-Clause License

Copyright (c) 2022-2023, Manas Kamal Choudhury All rights reserved.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

  1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
  2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.