<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src/sys/i386/linux/linux_file.c, branch release/2.2.8_cvs</title>
<subtitle>FreeBSD source tree</subtitle>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/'/>
<entry>
<title>This commit was manufactured by cvs2svn to create tag</title>
<updated>1999-01-21T00:55:30+00:00</updated>
<author>
<name>cvs2svn</name>
<email>cvs2svn@FreeBSD.org</email>
</author>
<published>1999-01-21T00:55:30+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=a9e2dc176f709713f9565ed1711c958f0707eb36'/>
<id>a9e2dc176f709713f9565ed1711c958f0707eb36</id>
<content type='text'>
'RELENG_2_2_8_RELEASE'.

This commit was manufactured to restore the state of the 2.2.8-RELEASE image.
Releases prior to 5.3-RELEASE are omitting the secure/ and crypto/ subdirs.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
'RELENG_2_2_8_RELEASE'.

This commit was manufactured to restore the state of the 2.2.8-RELEASE image.
Releases prior to 5.3-RELEASE are omitting the secure/ and crypto/ subdirs.
</pre>
</div>
</content>
</entry>
<entry>
<title>MFC: catch up with a bunch of functions that have been implemented in</title>
<updated>1998-09-23T14:13:01+00:00</updated>
<author>
<name>Jordan K. Hubbard</name>
<email>jkh@FreeBSD.org</email>
</author>
<published>1998-09-23T14:13:01+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=53a87964af082091a53fe11dd8747fff866353d1'/>
<id>53a87964af082091a53fe11dd8747fff866353d1</id>
<content type='text'>
     the -current linuxulator but not merged for many months.

PR:			7792
Submitted-largely-by:	Avatar Liang &lt;avatar@www.mmlab.cse.yzu.edu.tw&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
     the -current linuxulator but not merged for many months.

PR:			7792
Submitted-largely-by:	Avatar Liang &lt;avatar@www.mmlab.cse.yzu.edu.tw&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>        length argument to  truncate() in linux emulation</title>
<updated>1998-01-05T04:03:42+00:00</updated>
<author>
<name>Jonathan M. Bresler</name>
<email>jmb@FreeBSD.org</email>
</author>
<published>1998-01-05T04:03:42+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=c84580aaa0ac15466f333f3df669d5de0a361564'/>
<id>c84580aaa0ac15466f333f3df669d5de0a361564</id>
<content type='text'>
        was not being set copied to the bsd arguments..
        frequently, resulting in files of over 100MB of NULs

Reviewed by:		jmb
Submitted by:		(Richard Winkel) rich@math.missouri.edu
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
        was not being set copied to the bsd arguments..
        frequently, resulting in files of over 100MB of NULs

Reviewed by:		jmb
Submitted by:		(Richard Winkel) rich@math.missouri.edu
</pre>
</div>
</content>
</entry>
<entry>
<title>YAMFC.  NFS fixes, make NFSv3 the default, some other fs fixes.</title>
<updated>1997-05-14T08:19:35+00:00</updated>
<author>
<name>Doug Rabson</name>
<email>dfr@FreeBSD.org</email>
</author>
<published>1997-05-14T08:19:35+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=7877839a2284d0e299b306b069ff12c2aaaad5fb'/>
<id>7877839a2284d0e299b306b069ff12c2aaaad5fb</id>
<content type='text'>
Reviewed by:	Hidetoshi Shimokawa &lt;simokawa@sat.t.u-tokyo.ac.jp&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Reviewed by:	Hidetoshi Shimokawa &lt;simokawa@sat.t.u-tokyo.ac.jp&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix the getdents() emulation, the Linux ELF libraries use this, and</title>
<updated>1996-03-10T22:27:51+00:00</updated>
<author>
<name>Peter Wemm</name>
<email>peter@FreeBSD.org</email>
</author>
<published>1996-03-10T22:27:51+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=6bc7cb8b3f1dbed3879fd062052123e695ba9f92'/>
<id>6bc7cb8b3f1dbed3879fd062052123e695ba9f92</id>
<content type='text'>
this code was not quite right (linux has a readdir and getdents syscall,
with the same args. readdir only returns one entry and uses a mutant
dirent structure.  This code was also returning the mutant form for
getdents as well.  My fault for missing this before.)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
this code was not quite right (linux has a readdir and getdents syscall,
with the same args. readdir only returns one entry and uses a mutant
dirent structure.  This code was also returning the mutant form for
getdents as well.  My fault for missing this before.)
</pre>
</div>
</content>
</entry>
<entry>
<title>Mega-commit for Linux emulator update..  This has been stress tested under</title>
<updated>1996-03-02T19:38:20+00:00</updated>
<author>
<name>Peter Wemm</name>
<email>peter@FreeBSD.org</email>
</author>
<published>1996-03-02T19:38:20+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=d66a506616078adf4d266a309f979ffd95fe634f'/>
<id>d66a506616078adf4d266a309f979ffd95fe634f</id>
<content type='text'>
netscape-2.0 for Linux running all the Java stuff.  The scrollbars are now
working, at least on my machine. (whew! :-)

I'm uncomfortable with the size of this commit, but it's too
inter-dependant to easily seperate out.

The main changes:

COMPAT_LINUX is *GONE*.  Most of the code has been moved out of the i386
machine dependent section into the linux emulator itself.  The int 0x80
syscall code was almost identical to the lcall 7,0 code and a minor tweak
allows them to both be used with the same C code.  All kernels can now
just modload the lkm and it'll DTRT without having to rebuild the kernel
first.  Like IBCS2, you can statically compile it in with "options LINUX".

A pile of new syscalls implemented, including getdents(), llseek(),
readv(), writev(), msync(), personality().  The Linux-ELF libraries want
to use some of these.

linux_select() now obeys Linux semantics, ie: returns the time remaining
of the timeout value rather than leaving it the original value.

Quite a few bugs removed, including incorrect arguments being used in
syscalls..  eg:  mixups between passing the sigset as an int, vs passing
it as a pointer and doing a copyin(), missing return values, unhandled
cases, SIOC* ioctls, etc.

The build for the code has changed.  i386/conf/files now knows how
to build linux_genassym and generate linux_assym.h on the fly.

Supporting changes elsewhere in the kernel:

The user-mode signal trampoline has moved from the U area to immediately
below the top of the stack (below PS_STRINGS).  This allows the different
binary emulations to have their own signal trampoline code (which gets rid
of the hardwired syscall 103 (sigreturn on BSD, syslog on Linux)) and so
that the emulator can provide the exact "struct sigcontext *" argument to
the program's signal handlers.

The sigstack's "ss_flags" now uses SS_DISABLE and SS_ONSTACK flags, which
have the same values as the re-used SA_DISABLE and SA_ONSTACK which are
intended for sigaction only.  This enables the support of a SA_RESETHAND
flag to sigaction to implement the gross SYSV and Linux SA_ONESHOT signal
semantics where the signal handler is reset when it's triggered.

makesyscalls.sh no longer appends the struct sysentvec on the end of the
generated init_sysent.c code.  It's a lot saner to have it in a seperate
file rather than trying to update the structure inside the awk script. :-)

At exec time, the dozen bytes or so of signal trampoline code are copied
to the top of the user's stack, rather than obtaining the trampoline code
the old way by getting a clone of the parent's user area.  This allows
Linux and native binaries to freely exec each other without getting
trampolines mixed up.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
netscape-2.0 for Linux running all the Java stuff.  The scrollbars are now
working, at least on my machine. (whew! :-)

I'm uncomfortable with the size of this commit, but it's too
inter-dependant to easily seperate out.

The main changes:

COMPAT_LINUX is *GONE*.  Most of the code has been moved out of the i386
machine dependent section into the linux emulator itself.  The int 0x80
syscall code was almost identical to the lcall 7,0 code and a minor tweak
allows them to both be used with the same C code.  All kernels can now
just modload the lkm and it'll DTRT without having to rebuild the kernel
first.  Like IBCS2, you can statically compile it in with "options LINUX".

A pile of new syscalls implemented, including getdents(), llseek(),
readv(), writev(), msync(), personality().  The Linux-ELF libraries want
to use some of these.

linux_select() now obeys Linux semantics, ie: returns the time remaining
of the timeout value rather than leaving it the original value.

Quite a few bugs removed, including incorrect arguments being used in
syscalls..  eg:  mixups between passing the sigset as an int, vs passing
it as a pointer and doing a copyin(), missing return values, unhandled
cases, SIOC* ioctls, etc.

The build for the code has changed.  i386/conf/files now knows how
to build linux_genassym and generate linux_assym.h on the fly.

Supporting changes elsewhere in the kernel:

The user-mode signal trampoline has moved from the U area to immediately
below the top of the stack (below PS_STRINGS).  This allows the different
binary emulations to have their own signal trampoline code (which gets rid
of the hardwired syscall 103 (sigreturn on BSD, syslog on Linux)) and so
that the emulator can provide the exact "struct sigcontext *" argument to
the program's signal handlers.

The sigstack's "ss_flags" now uses SS_DISABLE and SS_ONSTACK flags, which
have the same values as the re-used SA_DISABLE and SA_ONSTACK which are
intended for sigaction only.  This enables the support of a SA_RESETHAND
flag to sigaction to implement the gross SYSV and Linux SA_ONESHOT signal
semantics where the signal handler is reset when it's triggered.

makesyscalls.sh no longer appends the struct sysentvec on the end of the
generated init_sysent.c code.  It's a lot saner to have it in a seperate
file rather than trying to update the structure inside the awk script. :-)

At exec time, the dozen bytes or so of signal trampoline code are copied
to the top of the user's stack, rather than obtaining the trampoline code
the old way by getting a clone of the parent's user area.  This allows
Linux and native binaries to freely exec each other without getting
trampolines mixed up.
</pre>
</div>
</content>
</entry>
<entry>
<title>Clean up some warnings by using the generated structures in &lt;sys/sysproto.h&gt;</title>
<updated>1995-12-15T03:06:57+00:00</updated>
<author>
<name>Peter Wemm</name>
<email>peter@FreeBSD.org</email>
</author>
<published>1995-12-15T03:06:57+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=ef04503da854583b02fd0951daf0e9c71b882364'/>
<id>ef04503da854583b02fd0951daf0e9c71b882364</id>
<content type='text'>
for passing to the bsd system calls, rather than inveninting our own
equivalent structures.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
for passing to the bsd system calls, rather than inveninting our own
equivalent structures.
</pre>
</div>
</content>
</entry>
<entry>
<title>Completed function declarations and added prototypes.</title>
<updated>1995-11-22T07:43:53+00:00</updated>
<author>
<name>Bruce Evans</name>
<email>bde@FreeBSD.org</email>
</author>
<published>1995-11-22T07:43:53+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=1f3dad5a8dc1e0d17f6f7924552eaf718b255e44'/>
<id>1f3dad5a8dc1e0d17f6f7924552eaf718b255e44</id>
<content type='text'>
Removed some unnecessary #includes.

Fixed warnings about nested externs.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Removed some unnecessary #includes.

Fixed warnings about nested externs.
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix the getdirentries of ibcs2 to handle uneven DIRBLKSIZ offsets.</title>
<updated>1995-10-10T23:13:27+00:00</updated>
<author>
<name>Steven Wallace</name>
<email>swallace@FreeBSD.org</email>
</author>
<published>1995-10-10T23:13:27+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=d39fe2ffafb63f928c5509629bfcf403087b5c92'/>
<id>d39fe2ffafb63f928c5509629bfcf403087b5c92</id>
<content type='text'>
Slight modification from previous fix.

Also, fix problem where an entry would be skipped next call if not enough room
in buffer current call.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Slight modification from previous fix.

Also, fix problem where an entry would be skipped next call if not enough room
in buffer current call.
</pre>
</div>
</content>
</entry>
<entry>
<title>Modified linux_readdir() function to properly handle Linux readdir()</title>
<updated>1995-08-28T00:50:08+00:00</updated>
<author>
<name>Steven Wallace</name>
<email>swallace@FreeBSD.org</email>
</author>
<published>1995-08-28T00:50:08+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=fe89a532f18d81f8e76e48fc462f070e870d035d'/>
<id>fe89a532f18d81f8e76e48fc462f070e870d035d</id>
<content type='text'>
calls with a byte size of 1.  This special case was not
correctly emulated.  Now programs such as a simple 'ls' to a commercial
Macintosh emulator called 'executor' will work correctly.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
calls with a byte size of 1.  This special case was not
correctly emulated.  Now programs such as a simple 'ls' to a commercial
Macintosh emulator called 'executor' will work correctly.
</pre>
</div>
</content>
</entry>
</feed>
