<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src-test2/lib/libutil, branch release/8.4.0</title>
<subtitle>FreeBSD source tree</subtitle>
<id>https://cgit-dev.freebsd.org/src-test2/atom?h=release%2F8.4.0</id>
<link rel='self' href='https://cgit-dev.freebsd.org/src-test2/atom?h=release%2F8.4.0'/>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/'/>
<updated>2013-03-10T00:36:28Z</updated>
<entry>
<title>MFC r237268</title>
<updated>2013-03-10T00:36:28Z</updated>
<author>
<name>Baptiste Daroussin</name>
<email>bapt@FreeBSD.org</email>
</author>
<published>2013-03-10T00:36:28Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=1237ade7ad07a831bdc47b5214cb692e05642d07'/>
<id>urn:sha1:1237ade7ad07a831bdc47b5214cb692e05642d07</id>
<content type='text'>
Revert user comparison back to user names as some user can share uids
(root/toor for example)

get the username information from old_pw structures to still allow renaming
of a user.

Approved by:	re (jpaetzel)
</content>
</entry>
<entry>
<title>MFC: r240391</title>
<updated>2012-09-19T06:20:25Z</updated>
<author>
<name>Baptiste Daroussin</name>
<email>bapt@FreeBSD.org</email>
</author>
<published>2012-09-19T06:20:25Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=0056bf28aa71101ab30e007587ae7303e417d0b4'/>
<id>urn:sha1:0056bf28aa71101ab30e007587ae7303e417d0b4</id>
<content type='text'>
Fix IEC / SI binary prefixes (Ki, Mi, Gi, etc) production by humanize_number(3)

PR:		bin/171487
Submitted by:	matthew
</content>
</entry>
<entry>
<title>MFC: 228545,229572</title>
<updated>2012-06-02T15:14:12Z</updated>
<author>
<name>Baptiste Daroussin</name>
<email>bapt@FreeBSD.org</email>
</author>
<published>2012-06-02T15:14:12Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=c5da0fc8477af272901ad576da771b5638b8ee57'/>
<id>urn:sha1:c5da0fc8477af272901ad576da771b5638b8ee57</id>
<content type='text'>
Modify pw_copy:
- if pw is NULL and oldpw is not NULL then the oldpw is deleted
- if pw-&gt;pw_name != oldpw-&gt;pw_name but pw-&gt;pw_uid == oldpw-&gt;pw_uid
then it renames the user

add new gr_* functions so now gr_util API is similar to pw_util API,
this allow to manipulate groups in a safe way.

Add new pw_make_v7 to make a passwd line (in v7 format) out of a struct passwd

Approved by:	des (mentor)
</content>
</entry>
<entry>
<title>MFC r235337:</title>
<updated>2012-05-18T01:50:34Z</updated>
<author>
<name>Glen Barber</name>
<email>gjb@FreeBSD.org</email>
</author>
<published>2012-05-18T01:50:34Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=5b332935d65d1db9f3194055cd07dc22bef22164'/>
<id>urn:sha1:5b332935d65d1db9f3194055cd07dc22bef22164</id>
<content type='text'>
General mdoc(7) and typo fixes.

PR:		167804
</content>
</entry>
<entry>
<title>MFC r231306:</title>
<updated>2012-03-19T01:51:53Z</updated>
<author>
<name>Eitan Adler</name>
<email>eadler@FreeBSD.org</email>
</author>
<published>2012-03-19T01:51:53Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=02c1de3cff888959e302d425487cb435d6168c83'/>
<id>urn:sha1:02c1de3cff888959e302d425487cb435d6168c83</id>
<content type='text'>
	Fix NULL ptr dereference in setusercontext if pwd is null,
	LOGIN_SETPRIORITY is set, and setting the priority (rtprio or
	setpriority) fails.

PR:		kern/164238
Approved by:	cperciva
</content>
</entry>
<entry>
<title>MFC r220582:</title>
<updated>2011-04-29T00:40:00Z</updated>
<author>
<name>Xin LI</name>
<email>delphij@FreeBSD.org</email>
</author>
<published>2011-04-29T00:40:00Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=2686f8aeea85893d966e0bf8df560bd6aff483b5'/>
<id>urn:sha1:2686f8aeea85893d966e0bf8df560bd6aff483b5</id>
<content type='text'>
Add support for IEE/IEC (and now also SI) power of two notions of
prefixes (Ki, Mi, Gi...) for humanize_number(3).

Note that applications has to pass HN_IEC_PREFIXES to use this
feature for backward compatibility reasons.

Reviewed by:	arundel
</content>
</entry>
<entry>
<title>MFC r219939:</title>
<updated>2011-04-22T00:31:07Z</updated>
<author>
<name>Xin LI</name>
<email>delphij@FreeBSD.org</email>
</author>
<published>2011-04-22T00:31:07Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=3dc7eb7d0c61bd0f8c062d90c1d7df525ba5eb93'/>
<id>urn:sha1:3dc7eb7d0c61bd0f8c062d90c1d7df525ba5eb93</id>
<content type='text'>
humanize_number(3) multiply the input number by 100, which could cause an
integer overflow when the input is very large (for example, 100 Pi would
become about 10 Ei which exceeded signed int64_t).

Solve this issue by splitting the division into two parts and avoid the
multiplication.

PR:		bin/146205
Reviewed by:	arundel
</content>
</entry>
<entry>
<title>MFC 219850:</title>
<updated>2011-04-06T11:13:55Z</updated>
<author>
<name>Glen Barber</name>
<email>gjb@FreeBSD.org</email>
</author>
<published>2011-04-06T11:13:55Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=23b9768b3c308c9feeff45446acdcb6164a0063e'/>
<id>urn:sha1:23b9768b3c308c9feeff45446acdcb6164a0063e</id>
<content type='text'>
s/buffer/buf as is used in the code.
</content>
</entry>
<entry>
<title>MFC r219963:</title>
<updated>2011-03-31T08:55:00Z</updated>
<author>
<name>Sergey Kandaurov</name>
<email>pluknet@FreeBSD.org</email>
</author>
<published>2011-03-31T08:55:00Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=2efc80032e7d6ebd838d308b0f1c5b3c2cac6cc6'/>
<id>urn:sha1:2efc80032e7d6ebd838d308b0f1c5b3c2cac6cc6</id>
<content type='text'>
 Add missing resource limits:
 - RLIMIT_NPTS
 - RLIMIT_SWAP
</content>
</entry>
<entry>
<title>MFC r200035, r219344:</title>
<updated>2011-03-29T17:55:15Z</updated>
<author>
<name>Mikolaj Golub</name>
<email>trociny@FreeBSD.org</email>
</author>
<published>2011-03-29T17:55:15Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=2e2d3581698b2363ebcd8800152489d1157bc88b'/>
<id>urn:sha1:2e2d3581698b2363ebcd8800152489d1157bc88b</id>
<content type='text'>
Bring in missing headers and primitive type declarations into &lt;libutil.h&gt; to
make it work when included by itself.

r200035 (ed):

Make &lt;libutil.h&gt; work when included by itself.

There are several reasons why it didn't work:

- It was missing &lt;sys/cdefs.h&gt; for __BEGIN_DECLS.
- It uses various primitive types that were not declared.

r219344 (pjd):

expand_number() needs uint64_t, declare it here if not already declared.

Approved by:	kib (co-mentor), pjd (mentor)
</content>
</entry>
</feed>
