git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] Rename warn() to warning() to fix symbol conflicts on BSD and Mac OS

From
Randal L. Schwartz <merlyn@stonehenge.com>
Date
Mar 31, 2007, 14:48 UTC
Message-ID
<863b3lfozg.fsf@blue.stonehenge.com>
In-Reply-To
<7vejn5ygkc.fsf@assigned-by-dhcp.cox.net>
>>>>> "Junio" == Junio C Hamano <junkio@cox.net> writes:

Junio> I'd take this for now, but I wonder where we should stop. If Junio> somebody exports error() or die(), would we end up renaming them Junio> to git_error() and git_die()?

I realize you may see it as a slippery slope, but I haven't heard anything else reported yet, and git has already been ported quite a bit. But since C has a flat namespace, this will always be a problem.

Picking a name like warn(3) was probably dumb on bsd's part, but it *is* a generic call like perror(3).

-- 
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<merlyn@stonehenge.com> <URL:http://www.stonehenge.com/merlyn/>
Perl/Unix/security consulting, Technical writing, Comedy, etc. etc.
See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!
Previous: Johannes SchindelinNext: Alex Riesen
Message 4 of 5 in “Rename warn() to warning() to fix symbol conflicts on BSD and Mac OS”
  1. Rename warn() to warning() to fix symbol conflicts on BSD and Mac OSTheodore Ts'o, Mar 30, 2007
  2. Junio C HamanoMar 31, 2007
  3. Johannes SchindelinMar 31, 2007
  4. Randal L. SchwartzMar 31, 2007
  5. Alex RiesenApr 1, 2007

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.