<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/git-compat-util.h, branch v1.6.4</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/git/git.git/
</subtitle>
<id>https://git.shady.money/git/atom?h=v1.6.4</id>
<link rel='self' href='https://git.shady.money/git/atom?h=v1.6.4'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/'/>
<updated>2009-07-23T04:57:41Z</updated>
<entry>
<title>janitor: add DIV_ROUND_UP and use it.</title>
<updated>2009-07-23T04:57:41Z</updated>
<author>
<name>Pierre Habouzit</name>
<email>madcoder@debian.org</email>
</author>
<published>2009-07-22T21:34:35Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=98cb6f30f708ef416572bf65bd26ac9f998ae0dc'/>
<id>urn:sha1:98cb6f30f708ef416572bf65bd26ac9f998ae0dc</id>
<content type='text'>
Signed-off-by: Pierre Habouzit &lt;madcoder@debian.org&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>refactor: use bitsizeof() instead of 8 * sizeof()</title>
<updated>2009-07-23T04:57:41Z</updated>
<author>
<name>Pierre Habouzit</name>
<email>madcoder@debian.org</email>
</author>
<published>2009-07-22T21:34:34Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=f630cfda8800aee03c7eb2fcd0f840730fbe43b9'/>
<id>urn:sha1:f630cfda8800aee03c7eb2fcd0f840730fbe43b9</id>
<content type='text'>
Signed-off-by: Pierre Habouzit &lt;madcoder@debian.org&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>git-compat-util.h: adjust for SGI IRIX 6.5</title>
<updated>2009-07-11T06:50:29Z</updated>
<author>
<name>Brandon Casey</name>
<email>casey@nrlssc.navy.mil</email>
</author>
<published>2009-07-10T17:10:44Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=9398b85994ee7d602e29e0b82de01b9605ee535f'/>
<id>urn:sha1:9398b85994ee7d602e29e0b82de01b9605ee535f</id>
<content type='text'>
Don't define _XOPEN_SOURCE
Do    define _SGI_SOURCE

Defining _XOPEN_SOURCE prevents many of the common functions and macros
from being defined. _Not_ setting _XOPEN_SOURCE, and instead setting
_SGI_SOURCE, provides all of the XPG4, XPG5, BSD, POSIX functions and
declarations, _BUT_ provides a horribly broken snprintf(). SGI does have
a working snprintf(), but it is only provided when _NO_XOPEN5 evaluates
to zero, and this only happens if _XOPEN_SOURCE is defined which, as
mentioned above, prevents many other common functions and defines.

The broken snprintf will be worked around with SNPRINTF_RETURNS_BOGUS in
the Makefile in a later patch.

Signed-off-by: Brandon Casey &lt;casey@nrlssc.navy.mil&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'tr/die_errno'</title>
<updated>2009-07-06T16:39:46Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2009-07-06T16:39:46Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=dd787c19c4f011cc3adb422ef856f2c58d989640'/>
<id>urn:sha1:dd787c19c4f011cc3adb422ef856f2c58d989640</id>
<content type='text'>
* tr/die_errno:
  Use die_errno() instead of die() when checking syscalls
  Convert existing die(..., strerror(errno)) to die_errno()
  die_errno(): double % in strerror() output just in case
  Introduce die_errno() that appends strerror(errno) to die()
</content>
</entry>
<entry>
<title>Introduce die_errno() that appends strerror(errno) to die()</title>
<updated>2009-06-27T18:14:53Z</updated>
<author>
<name>Thomas Rast</name>
<email>trast@student.ethz.ch</email>
</author>
<published>2009-06-27T15:58:44Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=b875036e5a2ab569a2123abe9ebfe25258227951'/>
<id>urn:sha1:b875036e5a2ab569a2123abe9ebfe25258227951</id>
<content type='text'>
There are many calls to die() that do, or should, report
strerror(errno) to indicate how the syscall they guard failed.
Introduce a small helper function for this case.

Note:

- POSIX says vsnprintf can modify errno in some unlikely cases, so we
  have to use errno early.

- We take some care to pass the original format to die_routine(), in
  case someone wants to call die_errno() with custom format
  characters.

Signed-off-by: Thomas Rast &lt;trast@student.ethz.ch&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'bc/solaris'</title>
<updated>2009-06-13T19:48:34Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2009-06-13T19:48:34Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=436f66b7e908d5ce2f292d1fd4e7f6f9de7c6fa1'/>
<id>urn:sha1:436f66b7e908d5ce2f292d1fd4e7f6f9de7c6fa1</id>
<content type='text'>
* bc/solaris:
  configure: test whether -lresolv is needed
  Makefile: insert SANE_TOOL_PATH to PATH before /bin or /usr/bin
  git-compat-util.h: avoid using c99 flex array feature with Sun compiler 5.8
  Makefile: add section for SunOS 5.7
  Makefile: introduce SANE_TOOL_PATH for prepending required elements to PATH
  Makefile: define __sun__ on SunOS
  git-compat-util.h: tweak the way _XOPEN_SOURCE is set on Solaris
  On Solaris choose the OLD_ICONV iconv() declaration based on the UNIX spec
  Makefile: add NEEDS_RESOLV to optionally add -lresolv to compile arguments
  Makefile: use /usr/ucb/install on SunOS platforms rather than ginstall

Conflicts:
	Makefile
</content>
</entry>
<entry>
<title>git-compat-util.h: avoid using c99 flex array feature with Sun compiler 5.8</title>
<updated>2009-06-09T04:16:18Z</updated>
<author>
<name>Brandon Casey</name>
<email>drafnel@gmail.com</email>
</author>
<published>2009-06-08T23:53:48Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=203ee91fd273ae424deeeee5ddcc7947a4c76ccd'/>
<id>urn:sha1:203ee91fd273ae424deeeee5ddcc7947a4c76ccd</id>
<content type='text'>
The Sun c99 compiler as recent as version 5.8 Patch 121016-06 2007/08/01
produces an error when compiling diff-delta.c.  This source file #includes
the delta.h header file which pre-declares a struct which is later defined
to contain a flex array member.  The Sun c99 compiler fails to compile
diff-delta.c and gives the following error:

  "diff-delta.c", line 314: identifier redeclared: create_delta
          current : function(pointer to const struct delta_index {unsigned long memsize, pointer to const void src_buf, unsigned long src_size, unsigned int hash_mask, array[-1] of pointer to struct index_entry {..} hash}, pointer to const void, unsigned long, pointer to unsigned long, unsigned long) returning pointer to void
          previous: function(pointer to const struct delta_index {unsigned long memsize, pointer to const void src_buf, unsigned long src_size, unsigned int hash_mask, array[-1] of pointer to struct index_entry {..} hash}, pointer to const void, unsigned long, pointer to unsigned long, unsigned long) returning pointer to void : "delta.h", line 44
  c99: acomp failed for diff-delta.c

So, avoid using this c99 feature when compiling with the Sun c compilers
version 5.8 and older (the most recent version tested).

Signed-off-by: Brandon Casey &lt;drafnel@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>git-compat-util.h: tweak the way _XOPEN_SOURCE is set on Solaris</title>
<updated>2009-06-06T20:21:10Z</updated>
<author>
<name>Brandon Casey</name>
<email>drafnel@gmail.com</email>
</author>
<published>2009-06-05T23:36:13Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=4cb18a49dfd37f9ecabad603d845382863513378'/>
<id>urn:sha1:4cb18a49dfd37f9ecabad603d845382863513378</id>
<content type='text'>
On Solaris, when _XOPEN_EXTENDED is set, its header file forces the
programs to be XPG4v2, defeating any _XOPEN_SOURCE setting to say we are
XPG5 or XPG6.  Also on Solaris, XPG6 programs must be compiled with a c99
compiler, while non XPG6 programs must be compiled with a pre-c99 compiler.

So when compiling on Solaris, always refrain from setting _XOPEN_EXTENDED,
and then set _XOPEN_SOURCE to 600 or 500 based on whether a c99 compiler
is being used or not.

Signed-off-by: Brandon Casey &lt;drafnel@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'da/pretty-tempname'</title>
<updated>2009-06-03T07:50:05Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2009-06-03T07:50:05Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=b11cf09043f18b368ec0d988f064ea21247c843d'/>
<id>urn:sha1:b11cf09043f18b368ec0d988f064ea21247c843d</id>
<content type='text'>
* da/pretty-tempname:
  diff: generate pretty filenames in prep_temp_blob()
  compat: add a basename() compatibility function
  compat: add a mkstemps() compatibility function

Conflicts:
	Makefile
</content>
</entry>
<entry>
<title>compat: add a basename() compatibility function</title>
<updated>2009-06-01T00:57:59Z</updated>
<author>
<name>David Aguilar</name>
<email>davvid@gmail.com</email>
</author>
<published>2009-05-31T08:35:51Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=e1c068869216c8c231c1585bbfa9fda42b4756f8'/>
<id>urn:sha1:e1c068869216c8c231c1585bbfa9fda42b4756f8</id>
<content type='text'>
Some systems such as Windows lack libgen.h so provide a
basename() implementation for cross-platform use.

This introduces the NO_LIBGEN_H construct to the Makefile
and autoconf scripts.

Signed-off-by: David Aguilar &lt;davvid@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
</feed>
