Fork me on GitHub

root/kernel/syscalls/getegid.c

/* [previous][next][first][last][top][bottom][index][help] */

DEFINITIONS

This source file includes following definitions.
  1. sys_getegid

   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 }

/* [previous][next][first][last][top][bottom][index][help] */