<feed xmlns='http://www.w3.org/2005/Atom'>
<title>wireguard-openbsd/lib/libc/time/localtime.c, branch jd/queueboosts</title>
<subtitle>WireGuard implementation for the OpenBSD kernel</subtitle>
<id>https://git.zx2c4.com/wireguard-openbsd/atom/lib/libc/time/localtime.c?h=jd%2Fqueueboosts</id>
<link rel='self' href='https://git.zx2c4.com/wireguard-openbsd/atom/lib/libc/time/localtime.c?h=jd%2Fqueueboosts'/>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/'/>
<updated>2019-06-28T13:32:41Z</updated>
<entry>
<title>When system calls indicate an error they return -1, not some arbitrary</title>
<updated>2019-06-28T13:32:41Z</updated>
<author>
<name>deraadt</name>
<email>deraadt@openbsd.org</email>
</author>
<published>2019-06-28T13:32:41Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=df69c215c7c66baf660f3f65414fd34796c96152'/>
<id>urn:sha1:df69c215c7c66baf660f3f65414fd34796c96152</id>
<content type='text'>
value &lt; 0.  errno is only updated in this case.  Change all (most?)
callers of syscalls to follow this better, and let's see if this strictness
helps us in the future.
</content>
</entry>
<entry>
<title>Unifdef TM_GMTOFF TM_ZONE USG_COMPAT ALTZONE to make the code more readable.</title>
<updated>2019-05-12T12:49:52Z</updated>
<author>
<name>schwarze</name>
<email>schwarze@openbsd.org</email>
</author>
<published>2019-05-12T12:49:52Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=bb5f5481f19635d142a1c2a56c775f73b38b4cef'/>
<id>urn:sha1:bb5f5481f19635d142a1c2a56c775f73b38b4cef</id>
<content type='text'>
No binary change when compiled with -g0.
Note that wcsftime.c did not even compile without TM_ZONE.
OK millert@
</content>
</entry>
<entry>
<title>gmtime_r() should return NULL on failure, not the struct tm * result</title>
<updated>2016-09-19T12:48:21Z</updated>
<author>
<name>millert</name>
<email>millert@openbsd.org</email>
</author>
<published>2016-09-19T12:48:21Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=2299c0912663914911c313392b54e124e9a552ac'/>
<id>urn:sha1:2299c0912663914911c313392b54e124e9a552ac</id>
<content type='text'>
parameter that was passed in.  From Carlin Bingham.
</content>
</entry>
<entry>
<title>Remove doaccess variable and access(2) call since this interfers with</title>
<updated>2016-03-14T15:26:52Z</updated>
<author>
<name>mestre</name>
<email>mestre@openbsd.org</email>
</author>
<published>2016-03-14T15:26:52Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=f4cd975ed2f6401c6381f96b8b1be735564a72dc'/>
<id>urn:sha1:f4cd975ed2f6401c6381f96b8b1be735564a72dc</id>
<content type='text'>
applications like zdump(8) because pledge(2) doesn't allow access(2) to
/usr/share/zoneinfo.

millert@ better described why this call can go away:

"This looks like an attempt to do access checks based on the real uid instead
of the effective uid.  Basically for setuid programs we don't want to allow a
user to set TZ to a path they should not be able to otherwise access.

However, we already have a check for issetugid() above so I think the doaccess
bits can just be removed and we can rely on open()."

After discussion with tb@, deraadt@ and millert@, this was also OK'ed by them
</content>
</entry>
<entry>
<title>Remove calloc cast, give sizeof parens. No functional change.</title>
<updated>2015-12-12T21:25:44Z</updated>
<author>
<name>mmcc</name>
<email>mmcc@openbsd.org</email>
</author>
<published>2015-12-12T21:25:44Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=be2603989fa6f6037e46fccf4a7275d594b08583'/>
<id>urn:sha1:be2603989fa6f6037e46fccf4a7275d594b08583</id>
<content type='text'>
</content>
</entry>
<entry>
<title>delete old lint ARGSUSED comments</title>
<updated>2015-11-01T03:45:28Z</updated>
<author>
<name>guenther</name>
<email>guenther@openbsd.org</email>
</author>
<published>2015-11-01T03:45:28Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=10632a79cc0d3f2730baa9fb977894fdccb4f611'/>
<id>urn:sha1:10632a79cc0d3f2730baa9fb977894fdccb4f611</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Move #includes from private.h to the .c files that need them, getting rid of</title>
<updated>2015-10-24T18:13:18Z</updated>
<author>
<name>guenther</name>
<email>guenther@openbsd.org</email>
</author>
<published>2015-10-24T18:13:18Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=dbd4bd2915052b1ba472fcf66df8233e6efa0ed7'/>
<id>urn:sha1:dbd4bd2915052b1ba472fcf66df8233e6efa0ed7</id>
<content type='text'>
several.  Switch from FILENAME_MAX to PATH_MAX (it's for open(), not fopen()).

ok deraadt@ tedu@ krw@
</content>
</entry>
<entry>
<title>Don't wrap initialized variables: binutils appears to be mishandling them</title>
<updated>2015-09-19T04:02:21Z</updated>
<author>
<name>guenther</name>
<email>guenther@openbsd.org</email>
</author>
<published>2015-09-19T04:02:21Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=14437dc7d7f86aaf2122120902dad7bca8962f63'/>
<id>urn:sha1:14437dc7d7f86aaf2122120902dad7bca8962f63</id>
<content type='text'>
on arm and m88k

problems with optind observed by jsg@
</content>
</entry>
<entry>
<title>Wrap &lt;time.h&gt; so that internal calls go direct and symbols not in C99 are weak</title>
<updated>2015-09-12T14:35:40Z</updated>
<author>
<name>guenther</name>
<email>guenther@openbsd.org</email>
</author>
<published>2015-09-12T14:35:40Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=d17652bce78af081b2a21cb7df22b93b80c698ce'/>
<id>urn:sha1:d17652bce78af081b2a21cb7df22b93b80c698ce</id>
<content type='text'>
Add prototypes to localtime.c for offtime(), time2posix(), posix2time() to
	reduce noise with -Wmissing-prototypes
Eliminate unnecessary #includes
</content>
</entry>
<entry>
<title>Remove obsolete timezone() function.</title>
<updated>2015-04-07T01:47:04Z</updated>
<author>
<name>millert</name>
<email>millert@openbsd.org</email>
</author>
<published>2015-04-07T01:47:04Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=c9da469ac9133c60159589ec32d42d777401961c'/>
<id>urn:sha1:c9da469ac9133c60159589ec32d42d777401961c</id>
<content type='text'>
Add timezone and daylight symbols for XSI compatibility.
</content>
</entry>
</feed>
