Fork me on GitHub

root/kernel/syscalls/personality.c

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

DEFINITIONS

This source file includes following definitions.
  1. sys_personality

   1 /*
   2  * fiwix/kernel/syscalls/personality.c
   3  *
   4  * Copyright 2018, Jordi Sanfeliu. All rights reserved.
   5  * Distributed under the terms of the Fiwix License.
   6  */
   7 
   8 #ifdef __DEBUG__
   9 #include <fiwix/stdio.h>
  10 #include <fiwix/process.h>
  11 #endif /*__DEBUG__ */
  12 
  13 int sys_personality(unsigned long int persona)
  14 {
  15 #ifdef __DEBUG__
  16         printk("(pid %d) sys_personality(%d) -> %d\n", current->pid, persona, persona);
  17 #endif /*__DEBUG__ */
  18         return persona;
  19 }

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