Home | History | Annotate | Download | only in common
History log of /src/sys/compat/linux32/common/linux32_fcntl.c
RevisionDateAuthorComments
 1.11  25-Nov-2021  ryo - Use LINUX32_F_xxx instead of LINUX_F_xxx for compat_linux32.
aarch64 and arm have different values.
- Compile linux32_sys_fadvise64() only if the syscall is required.
 1.10  17-May-2014  njoly Fix fadvise64 syscalls. Unlike our, linux fadvise syscall do not
return error code; call do_posix_fadvise().
 1.9  30-May-2011  alnsn branches: 1.9.14; 1.9.18; 1.9.28;
Add fadvise64 and fadvise64_64 syscalls to compat_linux and compat_linux32.
 1.8  29-Dec-2008  njoly branches: 1.8.6; 1.8.8;
s/syscallcarg/syscallarg/ in comments.
 1.7  19-Nov-2008  ad Make the emulations, exec formats, coredump, NFS, and the NFS server
into modules. By and large this commit:

- shuffles header files and ifdefs
- splits code out where necessary to be modular
- adds module glue for each of the components
- adds/replaces hooks for things that can be installed at runtime
 1.6  04-Feb-2008  dsl branches: 1.6.6; 1.6.10; 1.6.12; 1.6.16; 1.6.18;
Use the same function to implement linux32_sys_fcntl() and linux_sys_fcntl64().
A rather excessive amount of 'appending 64' to names seems to have happened
when linux won support for files > 4G.
technically the linux32_sys_fcntl() function should error the 64bit file
locking requests - but life is too short.
 1.5  02-Feb-2008  dsl Fix the linux32 emulations of fcntl() locking.
The 64bit linux emulation versions can't be used because the lock structure
alignment and field sizes all differ.
Since there need to be 4 different versions of the linux struct flock, and
amd64 kernel needs 3 of them compiled in, rather than replicating the same
code block twice more, move the body of the code into a few #defines
that can be expanded with the correct types in the linux[32]_sys_fcntl[64]()
functions.
Should fix problems running progams like skype running under linux32
emulation on amd64.
 1.4  20-Dec-2007  dsl Convert all the system call entry points from:
int foo(struct lwp *l, void *v, register_t *retval)
to:
int foo(struct lwp *l, const struct foo_args *uap, register_t *retval)
Fixup compat code to not write into 'uap' and (in some cases) to actually
pass a correctly formatted 'uap' structure with the right name to the
next routine.
A few 'compat' routines that just call standard ones have been deleted.
All the 'compat' code compiles (along with the kernels required to test
build it).
98% done by automated scripts.
 1.3  08-Dec-2007  dsl branches: 1.3.4;
ANSIfy most of the function definitions in sys/compat (but not ndis).
All by the magic of sed ...
 1.2  09-Feb-2007  ad branches: 1.2.18; 1.2.20; 1.2.26; 1.2.28;
Merge newlock2 to head.
 1.1  09-Feb-2006  manu branches: 1.1.2; 1.1.10; 1.1.16; 1.1.20; 1.1.22;
Add initial (but unfinished) COMPAT_LINUX32 for amd64. This is good enough so
that the i386 license manager part of amd64 version of Fluent works.

While I'm here, add SysV IPC to COMPAT_LINUX/amd64
 1.1.22.2  09-Sep-2006  rpaulo sync with head
 1.1.22.1  09-Feb-2006  rpaulo file linux32_fcntl.c was added on branch rpaulo-netinet-merge-pcb on 2006-09-09 02:46:03 +0000
 1.1.20.1  30-Jan-2007  ad Remove support for SA. Ok core@.
 1.1.16.6  11-Feb-2008  yamt sync with head.
 1.1.16.5  04-Feb-2008  yamt sync with head.
 1.1.16.4  21-Jan-2008  yamt sync with head
 1.1.16.3  26-Feb-2007  yamt sync with head.
 1.1.16.2  21-Jun-2006  yamt sync with head.
 1.1.16.1  09-Feb-2006  yamt file linux32_fcntl.c was added on branch yamt-lazymbuf on 2006-06-21 14:59:27 +0000
 1.1.10.2  22-Apr-2006  simonb Sync with head.
 1.1.10.1  09-Feb-2006  simonb file linux32_fcntl.c was added on branch simonb-timecounters on 2006-04-22 11:38:14 +0000
 1.1.2.2  18-Feb-2006  yamt sync with head.
 1.1.2.1  09-Feb-2006  yamt file linux32_fcntl.c was added on branch yamt-uio_vmspace on 2006-02-18 15:39:02 +0000
 1.2.28.1  26-Dec-2007  ad Sync with head.
 1.2.26.1  18-Feb-2008  mjf Sync with HEAD.
 1.2.20.2  23-Mar-2008  matt sync with HEAD
 1.2.20.1  09-Jan-2008  matt sync with HEAD
 1.2.18.1  09-Dec-2007  jmcneill Sync with HEAD.
 1.3.4.1  02-Jan-2008  bouyer Sync with HEAD
 1.6.18.1  19-Jan-2009  skrll Sync with HEAD.
 1.6.16.1  13-Dec-2008  haad Update haad-dm branch to haad-dm-base2.
 1.6.12.2  14-May-2008  wrstuden Per discussion with ad, remove most of the #include <sys/sa.h> lines
as they were including sa.h just for the type(s) needed for syscallargs.h.

Instead, create a new file, sys/satypes.h, which contains just the
types needed for syscallargs.h. Yes, there's only one now, but that
may change and it's probably more likely to change if it'd be difficult
to handle. :-)

Per discussion with matt at n dot o, add an include of satypes.h to
sigtypes.h. Upcall handlers are kinda signal handlers, and signalling
is the header file that's already included for syscallargs.h that
closest matches SA.

This shaves about 3000 lines off of the diff of the branch relative
to the base. That also represents about 18% of the total before this
checkin.

I think this reduction is very good thing.
 1.6.12.1  10-May-2008  wrstuden Initial checkin of re-adding SA. Everything except kern_sa.c
compiles in GENERIC for i386. This is still a work-in-progress, but
this checkin covers most of the mechanical work (changing signalling
to be able to accomidate SA's process-wide signalling and re-adding
includes of sys/sa.h and savar.h). Subsequent changes will be much
more interesting.

Also, kern_sa.c has received partial cleanup. There's still more
to do, though.
 1.6.10.1  04-May-2009  yamt sync with head.
 1.6.6.1  17-Jan-2009  mjf Sync with HEAD.
 1.8.8.1  06-Jun-2011  jruoho Sync with HEAD.
 1.8.6.1  31-May-2011  rmind sync with head
 1.9.28.1  10-Aug-2014  tls Rebase.
 1.9.18.1  18-May-2014  rmind sync with head
 1.9.14.1  20-Aug-2014  tls Rebase to HEAD as of a few days ago.

RSS XML Feed