Cleanup in elf.c with .bss section clean; adm command mounts cdrom instead of floppy...
[ZeXOS.git] / kernel / include / user.h
blob8e3a1bd45da0f4e9a20cecf3f43c2fff0b0be95a
1 /*
2 * ZeX/OS
3 * Copyright (C) 2007 Tomas 'ZeXx86' Jedrzejek (zexx86@zexos.org)
5 * This program is free software: you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation, either version 3 of the License, or
8 * (at your option) any later version.
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
15 * You should have received a copy of the GNU General Public License
16 * along with this program. If not, see <http://www.gnu.org/licenses/>.
20 #ifndef _USER_H
21 #define _USER_H
23 #include <mytypes.h>
25 #define DEFAULT_MAX_NAMELENGTH 12
26 #define DEFAULT_MAX_PWDLENGTH 32
28 #define USER_ATTR_FILE 0x1
29 #define USER_ATTR_DIR 0x2
30 #define USER_ATTR_HIDDEN 0x4
31 #define USER_ATTR_SYSTEM 0x8
32 #define USER_ATTR_BIN 0x10
33 #define USER_ATTR_READ 0x20
34 #define USER_ATTR_WRITE 0x40
36 #define USER_GROUP_ADMIN (USER_ATTR_FILE | USER_ATTR_DIR | USER_ATTR_HIDDEN | USER_ATTR_SYSTEM | \
37 USER_ATTR_BIN | USER_ATTR_READ | USER_ATTR_WRITE)
39 #define USER_GROUP_GUEST (USER_ATTR_FILE | USER_ATTR_DIR | USER_ATTR_READ | USER_ATTR_BIN)
41 /* Device structure */
42 typedef struct user_context {
43 struct user_context *next, *prev;
45 char *name;
46 char *pass;
47 unsigned attrib;
48 } user_t;
50 /* externs */
51 extern unsigned int init_user ();
52 extern bool getlogin (int i);
54 #endif