From: "Peter V. Saveliev" <peet@altlinux.ru>
To: ALT Linux Team development discussions <devel@lists.altlinux.org>
Subject: Re: [devel] extern inline function redifinition
Date: Wed, 24 Oct 2007 02:01:19 +0400
Message-ID: <200710240201.19867.peet@altlinux.ru> (raw)
In-Reply-To: <20071023211600.GA27773@lks.home>
В сообщении от Wednesday 24 October 2007 01:16:00 Konstantin A. Lepikhov
написал(а):
<skip />
> а что в коде? Помойму просто надо убрать inline декларирование из
> extern'ов, такое даже в ядре не используют.
сам вызов:
/* Now we have successfully converted the call into a recvmsg call */
ret = recvfrom(sock, data, len, flags,
msg->msg_name, &msg->msg_namelen);
что вызывает (в этом же файле):
ssize_t
recvfrom(int sock, void *buf, size_t len, int flags, struct sockaddr *from,
socklen_t *fromlen)
{
как оно прототипировано там же:
#define DECLARE(name, ret, args) static ret (*libc_##name) args
DECLARE(recvfrom, ssize_t, (int, void *, size_t, int, struct sockaddr *,
socklen_t *));
Можешь подсказать, _зачем_ оно так? :)
--
Peter V. Saveliev
next prev parent reply other threads:[~2007-10-23 22:01 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-10-23 21:05 Peter V. Saveliev
2007-10-23 21:16 ` Konstantin A. Lepikhov
2007-10-23 22:01 ` Peter V. Saveliev [this message]
2007-10-23 22:37 ` Konstantin A. Lepikhov
2007-10-24 16:35 ` Alexey I. Froloff
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=200710240201.19867.peet@altlinux.ru \
--to=peet@altlinux.ru \
--cc=devel@lists.altlinux.org \
/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
ALT Linux Team development discussions
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/devel/0 devel/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 devel devel/ http://lore.altlinux.org/devel \
devel@altlinux.org devel@altlinux.ru devel@lists.altlinux.org devel@lists.altlinux.ru devel@linux.iplabs.ru mandrake-russian@linuxteam.iplabs.ru sisyphus@linuxteam.iplabs.ru
public-inbox-index devel
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.devel
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git