system call

  1. vigole

    Solved W++SF

    Hypothetically speaking, what do you think of WSF i.e. Windows Subsystem for FreeBSD? Any justification or possibility? Something similar to WSL 2, with full kernel, man -S 2 compatibility and BSD toolchain (not GPL licensed) especially Clang. P.S. There are two types of questions: questions and...
  2. pcoppock1

    Solved Can't `write` another logged in user

    root@host0:~ # who user1 pts/0 Sep 18 13:08 (1.2.3.4) user2 pts/1 Sep 18 13:09 (1.2.3.5) root@host0:~ # write user2 write: user2 is not logged in The truss follows: root@host0:~ # truss write user2 mmap(0x0,131072,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_ANON,-1,0x0)...
  3. S

    Add a new system call at FreeBSD-11 for calculating sum of two values

    Hello, I am a beginner in FreeBSD. I installed FreeBSD-11.0-RELEASE-amd64 on VM. I want to add first new system call that it is for calculating sum of two values. I read a sample in https://www.nostarch.com/rootkits.htm. struct sc_example_args { char *str; }; static int sc_example(struct thread...
  4. S

    A simple new system call in FreeBSD-11.0-RELEASE-amd64

    I am a newbie in FreeBSD. I installed FreeBSD-11.0-RELEASE-amd64 on VM. I want to add first new system call. I find this link. I Did: cd /usr/src/sys/kern ee mykern.c #include <sys/sysproto.h> #include <sys/proc.h> #include <sys/types.h> #include <sys/systm.h> #ifndef _SYS_SYSPROTO_H_...
  5. S

    A simple new system call

    Hello, I am a newbie in FreeBSD. I installed FreeBSD-11.0-RELEASE-amd64 on VMware. I want to add first new system call. I find this link: http://beefchunk.com/documentation/sys-programming/os-freebsd/addsystemcall.html and: http://crypto.ee.ntu.edu.tw/~thyeh/html/syscall.html They are a little...
  6. U

    Using signal in kill method

    0 down vote favorite I want to write a system call for FreeBSD kernel which get a PID and do depth-first-search on its child then return all of the PIDs. I'v read about load kernel module and I understand how to right them.(ref to this link) and I understand that kill method is the useful...
Top