<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src-test2/sys/compat/linux/linux_misc.c, branch release/5.3.0_cvs</title>
<subtitle>FreeBSD source tree</subtitle>
<id>https://cgit-dev.freebsd.org/src-test2/atom?h=release%2F5.3.0_cvs</id>
<link rel='self' href='https://cgit-dev.freebsd.org/src-test2/atom?h=release%2F5.3.0_cvs'/>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/'/>
<updated>2004-11-04T19:12:42Z</updated>
<entry>
<title>This commit was manufactured by cvs2svn to create tag</title>
<updated>2004-11-04T19:12:42Z</updated>
<author>
<name>cvs2svn</name>
<email>cvs2svn@FreeBSD.org</email>
</author>
<published>2004-11-04T19:12:42Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=3f86d8a2ea3f3265afaa1fd263b0004c5c000e69'/>
<id>urn:sha1:3f86d8a2ea3f3265afaa1fd263b0004c5c000e69</id>
<content type='text'>
'RELENG_5_3_0_RELEASE'.

This commit was manufactured to restore the state of the 5.3-RELEASE image.
</content>
</entry>
<entry>
<title>Fix the 'DEBUG' argument code to unbreak the amd64 LINT build.</title>
<updated>2004-08-16T11:12:57Z</updated>
<author>
<name>David E. O'Brien</name>
<email>obrien@FreeBSD.org</email>
</author>
<published>2004-08-16T11:12:57Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=4a16b489ca9ae6c3c6d27db6ef6ab406366f7897'/>
<id>urn:sha1:4a16b489ca9ae6c3c6d27db6ef6ab406366f7897</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Fix the 'DEBUG' argument code to unbreak the LINT build.</title>
<updated>2004-08-16T10:36:12Z</updated>
<author>
<name>David E. O'Brien</name>
<email>obrien@FreeBSD.org</email>
</author>
<published>2004-08-16T10:36:12Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=3a2e3a4aa75ae5de1e4a92955f09e40efac51dcb'/>
<id>urn:sha1:3a2e3a4aa75ae5de1e4a92955f09e40efac51dcb</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Changes to MI Linux emulation code necessary to run 32-bit Linux binaries</title>
<updated>2004-08-16T07:28:16Z</updated>
<author>
<name>Tim J. Robbins</name>
<email>tjr@FreeBSD.org</email>
</author>
<published>2004-08-16T07:28:16Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=4af27623361335eef9a191f7d3a76047095d0f52'/>
<id>urn:sha1:4af27623361335eef9a191f7d3a76047095d0f52</id>
<content type='text'>
on AMD64, and the general case where the emulated platform has different
size pointers than we use natively:
- declare certain structure members as l_uintptr_t and use the new PTRIN
  and PTROUT macros to convert to and from native pointers.
- declare some structures __packed on amd64 when the layout would differ
  from that used on i386.
- include &lt;machine/../linux32/linux.h&gt; instead of &lt;machine/../linux/linux.h&gt;
  if compiling with COMPAT_LINUX32. This will need to be revisited before
  32-bit and 64-bit Linux emulation support can coexist in the same kernel.
- other small scattered changes.

This should be a no-op on i386 and Alpha.
</content>
</entry>
<entry>
<title>Replace linux_getitimer() and linux_setitimer() with implementations</title>
<updated>2004-08-15T12:34:15Z</updated>
<author>
<name>Tim J. Robbins</name>
<email>tjr@FreeBSD.org</email>
</author>
<published>2004-08-15T12:34:15Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=ae8e14a6ac1f0f27292e67e15613116bf7c6f89f'/>
<id>urn:sha1:ae8e14a6ac1f0f27292e67e15613116bf7c6f89f</id>
<content type='text'>
based on those in freebsd32_misc.c, removing the assumption that Linux
uses the same layout for struct itimerval as we use natively.
</content>
</entry>
<entry>
<title>Avoid assuming that l_timeval is the same as the native struct timeval</title>
<updated>2004-08-15T12:24:05Z</updated>
<author>
<name>Tim J. Robbins</name>
<email>tjr@FreeBSD.org</email>
</author>
<published>2004-08-15T12:24:05Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=d1d6dbf120d891d00573ba02384c54552deac887'/>
<id>urn:sha1:d1d6dbf120d891d00573ba02384c54552deac887</id>
<content type='text'>
in linux_select().
</content>
</entry>
<entry>
<title>Rename suser_cred()'s PRISON_ROOT flag to SUSER_ALLOWJAIL.  This is</title>
<updated>2004-07-26T07:24:04Z</updated>
<author>
<name>Colin Percival</name>
<email>cperciva@FreeBSD.org</email>
</author>
<published>2004-07-26T07:24:04Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=56f21b9d74a516a6c2f67d09e1b6c588bfa54c6a'/>
<id>urn:sha1:56f21b9d74a516a6c2f67d09e1b6c588bfa54c6a</id>
<content type='text'>
somewhat clearer, but more importantly allows for a consistent naming
scheme for suser_cred flags.

The old name is still defined, but will be removed in a few days (unless I
hear any complaints...)

Discussed with:	rwatson, scottl
Requested by:	jhb
</content>
</entry>
<entry>
<title>Deorbit COMPAT_SUNOS.</title>
<updated>2004-06-11T11:16:26Z</updated>
<author>
<name>Poul-Henning Kamp</name>
<email>phk@FreeBSD.org</email>
</author>
<published>2004-06-11T11:16:26Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=1930e303cfa1b9fe2c50fdad0d1ba6143311a53c'/>
<id>urn:sha1:1930e303cfa1b9fe2c50fdad0d1ba6143311a53c</id>
<content type='text'>
We inherited this from the sparc32 port of BSD4.4-Lite1.  We have neither
a sparc32 port nor a SunOS4.x compatibility desire these days.
</content>
</entry>
<entry>
<title>- Replace wait1() with a kern_wait() function that accepts the pid,</title>
<updated>2004-03-17T20:00:00Z</updated>
<author>
<name>John Baldwin</name>
<email>jhb@FreeBSD.org</email>
</author>
<published>2004-03-17T20:00:00Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=b7e23e826c650173f9175c42f1b03cd80fdb0a93'/>
<id>urn:sha1:b7e23e826c650173f9175c42f1b03cd80fdb0a93</id>
<content type='text'>
  options, status pointer and rusage pointer as arguments.  It is up to
  the caller to copyout the status and rusage to userland if needed.  This
  lets us axe the 'compat' argument and hide all that functionality in
  owait(), by the way.  This also cleans up some locking in kern_wait()
  since it no longer has to drop locks around copyout() since all the
  copyout()'s are deferred.
- Convert owait(), wait4(), and the various ABI compat wait() syscalls to
  use kern_wait() rather than wait1() or wait4().  This removes a bit
  more stackgap usage.

Tested on:	i386
Compiled on:	i386, alpha, amd64
</content>
</entry>
<entry>
<title>Locking for the per-process resource limits structure.</title>
<updated>2004-02-04T21:52:57Z</updated>
<author>
<name>John Baldwin</name>
<email>jhb@FreeBSD.org</email>
</author>
<published>2004-02-04T21:52:57Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=91d5354a2ce810d848eca6ecf9da1027aeb2be6d'/>
<id>urn:sha1:91d5354a2ce810d848eca6ecf9da1027aeb2be6d</id>
<content type='text'>
- struct plimit includes a mutex to protect a reference count.  The plimit
  structure is treated similarly to struct ucred in that is is always copy
  on write, so having a reference to a structure is sufficient to read from
  it without needing a further lock.
- The proc lock protects the p_limit pointer and must be held while reading
  limits from a process to keep the limit structure from changing out from
  under you while reading from it.
- Various global limits that are ints are not protected by a lock since
  int writes are atomic on all the archs we support and thus a lock
  wouldn't buy us anything.
- All accesses to individual resource limits from a process are abstracted
  behind a simple lim_rlimit(), lim_max(), and lim_cur() API that return
  either an rlimit, or the current or max individual limit of the specified
  resource from a process.
- dosetrlimit() was renamed to kern_setrlimit() to match existing style of
  other similar syscall helper functions.
- The alpha OSF/1 compat layer no longer calls getrlimit() and setrlimit()
  (it didn't used the stackgap when it should have) but uses lim_rlimit()
  and kern_setrlimit() instead.
- The svr4 compat no longer uses the stackgap for resource limits calls,
  but uses lim_rlimit() and kern_setrlimit() instead.
- The ibcs2 compat no longer uses the stackgap for resource limits.  It
  also no longer uses the stackgap for accessing sysctl's for the
  ibcs2_sysconf() syscall but uses kernel_sysctl() instead.  As a result,
  ibcs2_sysconf() no longer needs Giant.
- The p_rlimit macro no longer exists.

Submitted by:	mtm (mostly, I only did a few cleanups and catchups)
Tested on:	i386
Compiled on:	alpha, amd64
</content>
</entry>
</feed>
