ALT Linux Team development discussions
 help / color / mirror / Atom feed
From: "Дмитрий Ханжин" <dmitriy.khanzhin@gmail.com>
To: devel@lists.altlinux.org
Subject: Re: [devel] Что это? Переопределение функций?
Date: Mon, 31 Jul 2017 21:56:02 +0300
Message-ID: <382cf736-040a-ea18-4404-8835b2e26ec1@gmail.com> (raw)
In-Reply-To: <20170731105224.GA2854@altlinux.org>

31.07.2017 13:52, Dmitry V. Levin пишет:
> Hi,
> 
> 
> Текущее состояние по добавлению strlcpy и strlcat в glibc:
> https://sourceware.org/ml/libc-alpha/2017-06/msg00703.html
> На данный момент остался только один человек, препятствующий принятию
> этого патча.  Ну что же, подождём ещё немного.
>

Вот что мне ответили:

> Thanks for your comment!
> If we modify the prototype declaration will it then not conflict with other distributions?
> __THROW is a preprocesor symbol which not all compilers may have?
> Similar for __nonnull.
> The declarations we have now originate from OpenBSD/FreeBSD.
> ALT Linux wants to improve on them and so introduces differences?
> Does ALT Linux have a preprocessor symbol by which we can identify it?
> Is there a way we can avoid the ALT Linux declaration from string.h?
> Could you perhaps attach the output of g++ -E /usr/include/string.h ?
> What would be harmless is if you add a extern "C" linkage specification.
> Would that suffice? Probably not.
> What does the ALT Linux team say?
> Sorry for all the questions.

Прокомментируйте, пожалуйста, я так глубоко не интересовался.
Вывод g++ -E /usr/include/string.h на предмет strlcpy и strlcat:

extern size_t strlcpy (char *__restrict __dest,
          const char *__restrict __src, size_t __n)

# 585 "string.h" 3 4
  throw () __attribute__ ((__nonnull__
# 585 "string.h"
          (2)
# 585 "string.h" 3 4
          ))
# 585 "string.h"
                         ;



extern size_t strlcat (char *__restrict __dest,
          const char *__restrict __src, size_t __n)

# 591 "string.h" 3 4
  throw () __attribute__ ((__nonnull__
# 591 "string.h"
          (2)
# 591 "string.h" 3 4
          ))
# 591 "string.h"
                         ;
Ссылку выше прочитал, но тоже ничего не понял. :-(
Прошу прощения.


  reply	other threads:[~2017-07-31 18:56 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-07-30 16:56 Дмитрий Ханжин
2017-07-30 17:00 ` Pavel Vainerman
2017-07-30 18:12   ` Дмитрий Ханжин
2017-07-30 18:57     ` Pavel Vainerman
2017-07-31  5:13       ` Дмитрий Ханжин
2017-07-31  9:58         ` Michael Shigorin
2017-07-31 10:15           ` Konstantin Lepikhov
2017-07-31 10:52             ` Dmitry V. Levin
2017-07-31 18:56               ` Дмитрий Ханжин [this message]
2017-07-31 19:30                 ` Dmitry V. Levin
2017-08-01 17:42                   ` [devel] [thx] " Дмитрий Ханжин

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=382cf736-040a-ea18-4404-8835b2e26ec1@gmail.com \
    --to=dmitriy.khanzhin@gmail.com \
    --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