|
TacOS
0.2
|


Aller au code source de ce fichier.
Structures de données | |
| struct | stat |
| Informations sur un noeud. Plus de détails... | |
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_ISBLK(m) (((m) & S_IFMT) == S_IFBLK) |
| #define | S_ISCHR(m) (((m) & S_IFMT) == S_IFCHR) |
| #define | S_ISDIR(m) (((m) & S_IFMT) == S_IFDIR) |
| #define | S_ISFIFO(m) (((m) & S_IFMT) == S_IFIFO) |
| #define | S_ISLNK(m) (((m) & S_IFMT) == S_IFLNK) |
| #define | S_ISREG(m) (((m) & S_IFMT) == S_IFREG) |
| #define | S_ISSOCK(m) (((m) & S_IFMT) == S_IFSOCK) |
| #define | S_IXOTH 001 |
| #define | S_IWOTH 002 |
| #define | S_IROTH 004 |
| #define | S_IXGRP 0010 |
| #define | S_IWGRP 0020 |
| #define | S_IRGRP 0040 |
| #define | S_IXUSR 00100 |
| #define | S_IWUSR 00200 |
| #define | S_IRUSR 00400 |
Définitions de type | |
| typedef uint32_t | mode_t |
| typedef uint32_t | dev_t |
| typedef uint32_t | uid_t |
| typedef uint32_t | gid_t |
| typedef uint32_t | nlink_t |
| typedef uint32_t | blksize_t |
| typedef uint32_t | blkcnt_t |
| typedef uint32_t | ino_t |
Fonctions | |
| int | chmod (const char *path, mode_t mode) |
Copyright (C) 2010, 2011, 2012 - TacOS developers.
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details at http://www.gnu.org/copyleft/gpl.html
You should have received a copy of the GNU General Public License along with this program; if not, see http://www.gnu.org/licenses.
| #define S_IFBLK 0060000 |
Block device.
| #define S_IFCHR 0020000 |
Character device.
| #define S_IFDIR 0040000 |
Directory.
| #define S_IFIFO 0010000 |
FIFO.
| #define S_IFLNK 0120000 |
Symbolic link.
| #define S_IFMT 0170000 |
These bits determine file type.
| #define S_IFREG 0100000 |
Regular file.
| #define S_IFSOCK 0140000 |
Socket.
| #define S_IRGRP 0040 |
Read by group.
| #define S_IROTH 004 |
Read by other.
| #define S_IRUSR 00400 |
Read by user.
| #define S_IWGRP 0020 |
Write by group.
| #define S_IWOTH 002 |
Write by other.
| #define S_IWUSR 00200 |
Write by user.
| #define S_IXGRP 0010 |
Execute by group.
| #define S_IXOTH 001 |
Execute by other.
| #define S_IXUSR 00100 |
Execute by user.
1.8.7