<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/gitano/libgit2.git/src/posix.h, branch replace-luagit2</title>
<subtitle>git.gitano.org.uk: libgit2.git
</subtitle>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/gitano/libgit2.git/'/>
<entry>
<title>indexer: mmap fixes for Windows</title>
<updated>2014-05-16T23:39:43+00:00</updated>
<author>
<name>Carlos Martín Nieto</name>
<email>cmn@dwim.me</email>
</author>
<published>2014-05-14T17:12:48+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/gitano/libgit2.git/commit/?id=0731a5b4db086eefac1a842e37526ef7bdbaa7de'/>
<id>0731a5b4db086eefac1a842e37526ef7bdbaa7de</id>
<content type='text'>
Windows has its own ftruncate() called _chsize_s().

p_mkstemp() is changed to use p_open() so we can make sure we open for
writing; the addition of exclusive create is a good thing to do
regardless, as we want a temporary path for ourselves.

Lastly, MSVC doesn't quite know how to add two numbers if one of them is a
void pointer, so let's alias it to unsigned char.C
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Windows has its own ftruncate() called _chsize_s().

p_mkstemp() is changed to use p_open() so we can make sure we open for
writing; the addition of exclusive create is a good thing to do
regardless, as we want a temporary path for ourselves.

Lastly, MSVC doesn't quite know how to add two numbers if one of them is a
void pointer, so let's alias it to unsigned char.C
</pre>
</div>
</content>
</entry>
<entry>
<title>indexer: use mmap for writing</title>
<updated>2014-05-16T23:39:43+00:00</updated>
<author>
<name>Carlos Martín Nieto</name>
<email>cmn@dwim.me</email>
</author>
<published>2014-05-13T00:41:48+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/gitano/libgit2.git/commit/?id=f7310540ae888454f9ab69200cfcd8df07faf957'/>
<id>f7310540ae888454f9ab69200cfcd8df07faf957</id>
<content type='text'>
Some OSs cannot keep their ideas about file content straight when mixing
standard IO with file mapping. As we use mmap for reading from the
packfile, let's make writing to the pack file use mmap.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Some OSs cannot keep their ideas about file content straight when mixing
standard IO with file mapping. As we use mmap for reading from the
packfile, let's make writing to the pack file use mmap.
</pre>
</div>
</content>
</entry>
<entry>
<title>Check for EWOULDBLOCK as well as EAGAIN on write.</title>
<updated>2014-02-16T16:56:37+00:00</updated>
<author>
<name>brian m. carlson</name>
<email>sandals@crustytoothpaste.net</email>
</author>
<published>2014-02-15T23:09:01+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/gitano/libgit2.git/commit/?id=0197d4107a2996dc2ed4e98698e281c2d5fa44e1'/>
<id>0197d4107a2996dc2ed4e98698e281c2d5fa44e1</id>
<content type='text'>
On some systems, notably HP PA-RISC systems running Linux or HP-UX,
EWOULDBLOCK and EAGAIN are not the same value.  POSIX (and these OSes) allow
EWOULDBLOCK to occur on write(2) (and send(2), etc.), so check explicitly
for this case as well as EAGAIN by defining and using a macro GIT_ISBLOCKED
that considers both.

The macro is necessary because MSYS does not provide EWOULDBLOCK and
compilation fails if an attempt is made to use it unconditionally.  On most
systems, where the two values are the same, the compiler will simply
optimize this check out and it will have no effect.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
On some systems, notably HP PA-RISC systems running Linux or HP-UX,
EWOULDBLOCK and EAGAIN are not the same value.  POSIX (and these OSes) allow
EWOULDBLOCK to occur on write(2) (and send(2), etc.), so check explicitly
for this case as well as EAGAIN by defining and using a macro GIT_ISBLOCKED
that considers both.

The macro is necessary because MSYS does not provide EWOULDBLOCK and
compilation fails if an attempt is made to use it unconditionally.  On most
systems, where the two values are the same, the compiler will simply
optimize this check out and it will have no effect.
</pre>
</div>
</content>
</entry>
<entry>
<title>Split p_strlen into its own header</title>
<updated>2014-02-05T13:34:15+00:00</updated>
<author>
<name>Carlos Martín Nieto</name>
<email>cmn@dwim.me</email>
</author>
<published>2014-02-05T13:31:01+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/gitano/libgit2.git/commit/?id=24f3024f36ca44ca8bb32e1a80a048ac4301eaf7'/>
<id>24f3024f36ca44ca8bb32e1a80a048ac4301eaf7</id>
<content type='text'>
We need this from util.h and posix.h, but the latter includes common.h
which includes util.h, which means p_strlen is not defined by the time
we get to git__strndup().

Split the definition on p_strlen() off into its own header so we can use
it in util.h.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
We need this from util.h and posix.h, but the latter includes common.h
which includes util.h, which means p_strlen is not defined by the time
we get to git__strndup().

Split the definition on p_strlen() off into its own header so we can use
it in util.h.
</pre>
</div>
</content>
</entry>
<entry>
<title>Use our strnlen on MacOS for backward compat</title>
<updated>2014-01-03T19:37:23+00:00</updated>
<author>
<name>Russell Belfer</name>
<email>rb@github.com</email>
</author>
<published>2014-01-03T19:37:23+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/gitano/libgit2.git/commit/?id=b49985212a395b54dbaa50c7d39faaaf6f4c4f4b'/>
<id>b49985212a395b54dbaa50c7d39faaaf6f4c4f4b</id>
<content type='text'>
Apparently MacOS didn't have strnlen on 10.6 and earlier.  To
avoid having linking problems on older versions, we'll just use
our internal version.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Apparently MacOS didn't have strnlen on 10.6 and earlier.  To
avoid having linking problems on older versions, we'll just use
our internal version.
</pre>
</div>
</content>
</entry>
<entry>
<title>posix: Solaris doesn't have strnlen either</title>
<updated>2013-11-27T13:31:22+00:00</updated>
<author>
<name>Alessandro Ghedini</name>
<email>alessandro@ghedini.me</email>
</author>
<published>2013-11-27T13:17:40+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/gitano/libgit2.git/commit/?id=758f2f1022d09e1423f3cd8c5d52ca633e9fc317'/>
<id>758f2f1022d09e1423f3cd8c5d52ca633e9fc317</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix typo in documentation</title>
<updated>2013-09-22T01:38:51+00:00</updated>
<author>
<name>Linquize</name>
<email>linquize@yahoo.com.hk</email>
</author>
<published>2013-09-22T01:11:43+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/gitano/libgit2.git/commit/?id=1b57699a3a6245bce3b98f73286b7a904c4bbd66'/>
<id>1b57699a3a6245bce3b98f73286b7a904c4bbd66</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Use time(2) to get the time</title>
<updated>2013-08-19T21:44:17+00:00</updated>
<author>
<name>Edward Thomson</name>
<email>ethomson@microsoft.com</email>
</author>
<published>2013-08-19T21:44:17+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/gitano/libgit2.git/commit/?id=86967cc579ee9e8c1a209a76c12605dd24dcf6cf'/>
<id>86967cc579ee9e8c1a209a76c12605dd24dcf6cf</id>
<content type='text'>
We didn't use the added precision in gettimeofday, so remove it.
This prevents us from having an unnecessary reimplementation on
win32.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
We didn't use the added precision in gettimeofday, so remove it.
This prevents us from having an unnecessary reimplementation on
win32.
</pre>
</div>
</content>
</entry>
<entry>
<title>Fixes to safely reading the index</title>
<updated>2013-08-08T17:32:23+00:00</updated>
<author>
<name>Edward Thomson</name>
<email>ethomson@microsoft.com</email>
</author>
<published>2013-08-08T16:05:00+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/gitano/libgit2.git/commit/?id=57f31f058c29edfd7d6d810fcd4a964875e9d463'/>
<id>57f31f058c29edfd7d6d810fcd4a964875e9d463</id>
<content type='text'>
Avoid wrapping around extension size when reading, avoid walking off
the end of the buffer when reading names.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Avoid wrapping around extension size when reading, avoid walking off
the end of the buffer when reading names.
</pre>
</div>
</content>
</entry>
<entry>
<title>Add O_CLOEXEC to open calls</title>
<updated>2013-06-23T03:58:32+00:00</updated>
<author>
<name>Russell Belfer</name>
<email>rb@github.com</email>
</author>
<published>2013-06-23T03:58:32+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/gitano/libgit2.git/commit/?id=3d3ea4dc564922a3662298a7cfc2fc8b24149901'/>
<id>3d3ea4dc564922a3662298a7cfc2fc8b24149901</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
</feed>
