lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <f24d23310706120817m741b1cb4g9ac6f5469274f307@mail.gmail.com>
Date:	Tue, 12 Jun 2007 20:47:09 +0530
From:	"debian developer" <debiandev@...il.com>
To:	"Federico Paparoni" <federico.paparoni@...il.com>
Cc:	linux-kernel@...r.kernel.org
Subject: Re: Linux kernel 2.4 programming problem

Please look into http://kernelnewbies.org

On 6/12/07, Federico Paparoni <federico.paparoni@...il.com> wrote:
> Hi all,
> i'm trying to create a simple system call in a kernel 2.4 distribution.
> I read guide/articles like this
>
> http://irfanhabib.wordpress.com/2006/10/01/adding-a-system-call-linux-24x/
>
> All the articles say the same things, but the implementation of my new
> system call doesn't work.
> I create a new entry in arch/i386/kernel/entry.S
> I create a new entry in include/asm/unistd.h
> I create a new function with the asmlinkage prefix in a source file
> already defined (in ipc/sem.c for example)
>
> When i create my user program, it doesn't work. Firstly when i try to
> compile i receive a problem like this
>
> : undefined reference to 'errno'
>
> Then I include errno.h (also if i don't understand this step) and the
> compilation works, but the syscall neverworks, because the call always
> return -1.
>
> Any help?
> Any tutorial FOR DUMMY MAN that someone already used?
>
> Cheers
>
> Federico
> -
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@...r.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at  http://www.tux.org/lkml/
>
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ