From: Bernhard Rosenkraenzer <bero@arklinux.org>
To: Evgeniy <shubin_evgeniy@mail.ru>
Cc: linux-kernel@vger.kernel.org
Subject: Re: bug in kernel
Date: Mon, 14 Mar 2005 16:22:57 +0100 [thread overview]
Message-ID: <200503141622.57572.bero@arklinux.org> (raw)
In-Reply-To: <200503141748.05661.shubin_evgeniy@mail.ru>
On Monday 14 March 2005 15:48, Evgeniy wrote:
> #include <stdio.h>
> #include <errno.h>
> main(){
> int err;
> err=read(0,NULL,6);
> printf("%d %d\n",err,errno);
> }
On my box (2.6.11), that does exactly what it is supposed to do -- "-1 14"
14 == EFAULT == "Bad Address", which is what NULL is...
Btw, printf("%d %d %s\n", err, errno, strerror(errno)); gives you a more
readable error, that would immediately show you did get the right error.
next prev parent reply other threads:[~2005-03-14 15:28 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-03-14 14:48 Evgeniy
2005-03-14 14:51 ` Arjan van de Ven
2005-03-14 14:55 ` Arjan van de Ven
2005-03-14 15:22 ` Bernhard Rosenkraenzer [this message]
2005-03-14 15:55 ` Martin Zwickel
2005-03-14 16:57 ` linux-os
2005-03-14 15:47 Pat Kane
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200503141622.57572.bero@arklinux.org \
--to=bero@arklinux.org \
--cc=linux-kernel@vger.kernel.org \
--cc=shubin_evgeniy@mail.ru \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®