elks-enhanced
public
Read
Owner: themaster
Branch: master
Commits: 6893
Updated: 2026-04-19 00:15
Git CLI clone URL
git clone https://www.xt-emporium.com/git/elks-enhanced.git
Fullscreen desktop URL
Code
Commits
History
Branches
Bug Reports
Discussions
Compare
Settings
elks-enhanced
/
elks
/
include
/
linuxmt
/
kernel.h
File editor
#ifndef __LINUXMT_KERNEL_H #define __LINUXMT_KERNEL_H #include <linuxmt/types.h> #include <arch/cdefs.h> /* * 'kernel.h' contains some often-used function prototypes etc */ #ifdef __KERNEL__ #define INT_MAX ((int)(~0U>>1)) #define UINT_MAX (~0U) #define LONG_MAX ((long)(~0UL>>1)) #define ULONG_MAX (~0UL) #define structof(p,t,m) ((t *) ((char *) (p) - offsetof (t,m))) /* ordered arch_cpu values, used for feature selection */ #define CPU_8088 0 #define CPU_8086 1 #define CPU_NECV20 2 #define CPU_NECV30 3 #define CPU_80188 4 #define CPU_80186 5 #define CPU_80286 6 /* first PC/AT */ #define CPU_80386 7 /* 80386 or later, other CPUs not tested for */ extern unsigned char arch_cpu; extern char running_qemu; extern dev_t dev_console; extern int debug_level; extern void do_exit(int) noreturn; extern int kill_pg(pid_t,sig_t,int); extern int kill_sl(void); extern void halt(void) noreturn; extern void panic(const char *, ...) noreturn; extern void printk(const char *, ...); extern void kputchar(int); extern void early_putchar(int); extern int wait_for_keypress(void); extern int in_group_p(gid_t); extern int sys_execve(const char *,char *,size_t); /* * This is defined as a macro, but at some point this might become a * real subroutine that sets a flag if it returns true (to do * BSD-style accounting where the process is flagged if it uses root * privs). The implication of this is that you should do normal * permissions checks first, and check suser() last. * * "suser()" checks against the effective user id. */ #define suser() (current->euid == 0) #endif #endif
Commit message
This repository is read-only for this account.
Repository snapshot
Current branch
master
Visibility
public
Your access
Read
Remote
Configured
File activity
View file history