Welcome to The Fiwix Project
A UNIX-like kernel for the i386 architecture
1 /* 2 * fiwix/kernel/syscalls/getegid.c 3 * 4 * Copyright 2018, Jordi Sanfeliu. All rights reserved. 5 * Distributed under the terms of the Fiwix License. 6 */ 7 8 #include <fiwix/process.h> 9 10 #ifdef __DEBUG__ 11 #include <fiwix/stdio.h> 12 #endif /*__DEBUG__ */ 13 14 int sys_getegid(void) 15 { 16 #ifdef __DEBUG__ 17 printk("(pid %d) sys_getegid() -> %d\n", current->pid, current->egid); 18 #endif /*__DEBUG__ */ 19 return current->egid; 20 }