History log of /src/sys/compat/freebsd/freebsd_file.c |
Revision | | Date | Author | Comments |
1.34 |
| 23-Oct-2015 |
maxv | Change do_sys_mount() so that it only takes as argument the type of the drive instead of its associated vfsops. Makes it more friendly, and allows compat binaries to autoload VFS modules if needed.
sent on tech-kern@, ok christos@
|
1.33 |
| 09-Nov-2014 |
maxv | branches: 1.33.2; Do not uselessly include <sys/malloc.h>.
|
1.32 |
| 02-Mar-2010 |
pooka | branches: 1.32.20; 1.32.36; regen: - remove nfssvc / fs_nfs.h / #ifdef NFS - make getfh unconditional
|
1.31 |
| 20-Dec-2007 |
dsl | branches: 1.31.10; 1.31.12; 1.31.30; 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.30 |
| 08-Dec-2007 |
dsl | branches: 1.30.4; ANSIfy most of the function definitions in sys/compat (but not ndis). All by the magic of sed ...
|
1.29 |
| 04-Dec-2007 |
dsl | Remove all the __P
|
1.28 |
| 17-Jul-2007 |
christos | branches: 1.28.6; 1.28.8; 1.28.14; 1.28.16; use the compat MFSNAMELEN
|
1.27 |
| 13-Jul-2007 |
dsl | Remove all the syscall stubs that were only there to get files lookup up in the alternate path.
|
1.26 |
| 12-Jul-2007 |
dsl | Change compat mount code to pass do_sys_mount() kernel resident buffers. Possibly the standard nfs code needs teaching how to set the length and address family in order to support non-netbsd sockaddr. There are now no active stackgap() calls in the compat tree.
|
1.25 |
| 22-Apr-2007 |
dsl | Change the way that emulations locate files within the emulation root to avoid having to allocate space in the 'stackgap' - which is very LWP unfriendly. The additional code for non-emulation namei() is trivial, the reduction for the emulations is massive. The vnode for a processes emulation root is saved in the cwdi structure during process exec. If the emulation root the TRYEMULROOT flag are set, namei() will do an initial search for absolute pathnames in the emulation root, if that fails it will retry from the normal root. ".." at the emulation root will always go to the real root, even in the middle of paths and when expanding symlinks. Absolute symlinks found using absolute paths in the emulation root will be relative to the emulation root (so /usr/lib/xxx.so -> /lib/xxx.so links inside the emulation root don't need changing). If the root of the emulation would be returned (for an emulation lookup), then the real root is returned instead (matching the behaviour of emul_lookup, but being a cheap comparison here) so that programs that scan "../.." looking for the root dircetory don't loop forever. The target for symbolic links is no longer mangled (it used to get the CHECK_ALT_xxx() treatment, so could get /emul/xxx prepended). CHECK_ALT_xxx() are no more. Most of the change is deleting them, and adding TRYEMULROOT to the flags to NDINIT(). A lot of the emulation system call stubs could now be deleted.
|
1.24 |
| 04-Mar-2007 |
christos | branches: 1.24.2; 1.24.4; Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.
|
1.23 |
| 09-Feb-2007 |
ad | branches: 1.23.2; Merge newlock2 to head.
|
1.22 |
| 13-Jul-2006 |
martin | branches: 1.22.4; Make freebsd_sys_getfh use compat_30_sys_getfh
|
1.21 |
| 11-Dec-2005 |
christos | branches: 1.21.4; 1.21.8; 1.21.16; merge ktrace-lwp.
|
1.20 |
| 21-Apr-2004 |
christos | branches: 1.20.12; Replace the statfs() family of system calls with statvfs(). Retain binary compatibility.
|
1.19 |
| 29-Jun-2003 |
fvdl | branches: 1.19.2; Back out the lwp/ktrace changes. They contained a lot of colateral damage, and need to be examined and discussed more.
|
1.18 |
| 28-Jun-2003 |
darrenr | Pass lwp pointers throughtout the kernel, as required, so that the lwpid can be inserted into ktrace records. The general change has been to replace "struct proc *" with "struct lwp *" in various function prototypes, pass the lwp through and use l_proc to get the process pointer when needed.
Bump the kernel rev up to 1.6V
|
1.17 |
| 18-Jan-2003 |
thorpej | Merge the nathanw_sa branch.
|
1.16 |
| 16-Mar-2002 |
christos | make the stackgap_{init,alloc} functions MP friendly (i.e. pass struct proc * in, instead of using curproc). While there add an optional size argument to stackgap_init.
|
1.15 |
| 13-Nov-2001 |
lukem | add RCSIDs (including regeneration of files as appropriate)
|
1.14 |
| 30-May-2001 |
mrg | branches: 1.14.2; use _KERNEL_OPT.
|
1.13 |
| 22-Jan-2001 |
jdolecek | branches: 1.13.2; Use CHECK_ALT_SYMLINK() instead CHECK_ALT_EXISTS() where appropriate. This addresses kern/11757.
|
1.12 |
| 18-Jan-2001 |
jdolecek | constify
|
1.11 |
| 01-Dec-2000 |
jdolecek | LKMify
|
1.10 |
| 01-Dec-2000 |
jdolecek | add e_path (emulation path) to struct emul, which replaces emulation-specific *_emul_path variables
change macros CHECK_ALT_{CREAT|EXIST} to use that, 'root' doesn't need to be passed explicitly any more and *_CHECK_ALT_{CREAT|EXIST} are removed change explicit emul_find() calls in probe functions to get the emulation path from the checked exec switch entry's emulation
remove no longer needed header files
add e_flags and e_syscall to struct emul; these are unsed and empty for now
|
1.9 |
| 19-Feb-1998 |
thorpej | branches: 1.9.14; Include the NFS option header.
|
1.8 |
| 18-Oct-1997 |
christos | Use stat12; from Enami Tsugutomo
|
1.7 |
| 16-Oct-1997 |
christos | ostat -> stat43
|
1.6 |
| 10-Oct-1997 |
enami | New function freebsd_sys_lchown() to emulate FreeBSD lchown(2).
|
1.5 |
| 31-Jan-1997 |
thorpej | branches: 1.5.8; NFSCLIENT -> NFS
|
1.4 |
| 03-Sep-1996 |
mycroft | branches: 1.4.2; Define execv() and execve() consistently across emulations. Do path name translation.
|
1.3 |
| 03-May-1996 |
christos | branches: 1.3.4; gcc -Wall fixes.
|
1.2 |
| 07-Nov-1995 |
gwr | ufs ==> ffs
|
1.1 |
| 10-Oct-1995 |
mycroft | branches: 1.1.2; FreeBSD binary compatibility module, from Noriyuki Soda.
|
1.1.2.1 |
| 07-Nov-1995 |
gwr | From Head: ufs ==> ffs
|
1.3.4.1 |
| 10-Dec-1996 |
mycroft | From trunk: Do execv() and execve() path name translation consistently across emulations.
|
1.4.2.1 |
| 14-Jan-1997 |
thorpej | Snapshot of work-in-progress, committed to private branch.
These changes implement machine-independent root device and file system selection. Notable features:
- All ports behave in a consistent manner regarding root device selection. - No more "options GENERIC"; all kernels have the ability to boot with RB_ASKNAME to select root device and file system type. - Root file system type can be wildcarded; a machine-independent function will try all possible file systems for the selected root device until one succeeds. - If the root file system fails to mount, the operator will be given the chance to select a new root device and file system type, rather than having the machine simply panic. - nfs_mountroot() no longer panics if any part of the NFS mount process fails; it now returns an error, giving the operator a chance to recover. - New, more consistent, config(8) grammar. The constructs:
config netbsd swap generic config netbsd root on nfs
have been replaced with:
config netbsd root on ? type ? config netbsd root on ? type nfs
Additionally, the operator may select or wildcard root file system type in the kernel configuration file:
config netbsd root on cd0a type cd9660
config(8) now requires that a "root" specification be made. "root" may be wired down or wildcarded. "swap" and "dump" specifications are optional, and follow previous semantics.
- config(8) has a new "file-system" keyword, used to configure file systems into the kernel. Eventually, this will be used to generate the default vfssw[].
- "options NFSCLIENT" is obsolete, and is replaced by "file-system NFS". "options NFSSERVER" still exists, since NFS server support is independent of the NFS file system client.
- sys/arch/<foo>/<foo>/swapgeneric.c is no longer used, and will be removed; all information is now generated by config(8).
As of this commit, all ports except arm32 have been updated to use the new setroot(). Only SPARC, i386, and Alpha ports have been tested at this time. Port masters should test these changes on their ports, and report any problems back to me.
More changes are on their way, including RB_ASKNAME support in nfs_mountroot() (to prompt for server address and path) and, potentially, the ability to select rarp/bootparam or bootp in nfs_mountroot().
|
1.5.8.1 |
| 14-Oct-1997 |
thorpej | Update marc-pcmcia branch from trunk.
|
1.9.14.2 |
| 11-Feb-2001 |
bouyer | Sync with HEAD.
|
1.9.14.1 |
| 08-Dec-2000 |
bouyer | Sync with HEAD.
|
1.13.2.6 |
| 12-Jul-2002 |
nathanw | No longer need to pull in lwp.h; proc.h pulls it in for us.
|
1.13.2.5 |
| 29-May-2002 |
nathanw | #include <sys/sa.h> before <sys/syscallargs.h>, to provide sa_upcall_t now that <sys/param.h> doesn't include <sys/sa.h>.
(Behold the Power of Ed)
|
1.13.2.4 |
| 01-Apr-2002 |
nathanw | Catch up to -current. (CVS: It's not just a program. It's an adventure!)
|
1.13.2.3 |
| 14-Nov-2001 |
nathanw | Catch up to -current.
|
1.13.2.2 |
| 21-Jun-2001 |
nathanw | Catch up to -current.
|
1.13.2.1 |
| 05-Mar-2001 |
nathanw | Initial commit of scheduler activations and lightweight process support.
|
1.14.2.2 |
| 23-Jun-2002 |
jdolecek | catch up with -current on kqueue branch
|
1.14.2.1 |
| 10-Jan-2002 |
thorpej | Sync kqueue branch with -current.
|
1.19.2.4 |
| 21-Sep-2004 |
skrll | Fix the sync with head I botched.
|
1.19.2.3 |
| 18-Sep-2004 |
skrll | Sync with HEAD.
|
1.19.2.2 |
| 03-Aug-2004 |
skrll | Sync with HEAD
|
1.19.2.1 |
| 02-Jul-2003 |
darrenr | Apply the aborted ktrace-lwp changes to a specific branch. This is just for others to review, I'm concerned that patch fuziness may have resulted in some errant code being generated but I'll look at that later by comparing the diff from the base to the branch with the file I attempt to apply to it. This will, at the very least, put the changes in a better context for others to review them and attempt to tinker with removing passing of 'struct lwp' through the kernel.
|
1.20.12.6 |
| 21-Jan-2008 |
yamt | sync with head
|
1.20.12.5 |
| 07-Dec-2007 |
yamt | sync with head
|
1.20.12.4 |
| 03-Sep-2007 |
yamt | sync with head.
|
1.20.12.3 |
| 26-Feb-2007 |
yamt | sync with head.
|
1.20.12.2 |
| 30-Dec-2006 |
yamt | sync with head.
|
1.20.12.1 |
| 21-Jun-2006 |
yamt | sync with head.
|
1.21.16.1 |
| 13-Jul-2006 |
gdamore | Merge from HEAD.
|
1.21.8.1 |
| 11-Aug-2006 |
yamt | sync with head
|
1.21.4.1 |
| 09-Sep-2006 |
rpaulo | sync with head
|
1.22.4.1 |
| 30-Jan-2007 |
ad | Remove support for SA. Ok core@.
|
1.23.2.2 |
| 07-May-2007 |
yamt | sync with head.
|
1.23.2.1 |
| 12-Mar-2007 |
rmind | Sync with HEAD.
|
1.24.4.1 |
| 11-Jul-2007 |
mjf | Sync with head.
|
1.24.2.3 |
| 20-Aug-2007 |
ad | Sync with HEAD.
|
1.24.2.2 |
| 15-Jul-2007 |
ad | Sync with head.
|
1.24.2.1 |
| 27-May-2007 |
ad | Sync with head.
|
1.28.16.2 |
| 26-Dec-2007 |
ad | Sync with head.
|
1.28.16.1 |
| 08-Dec-2007 |
ad | Sync with head.
|
1.28.14.2 |
| 27-Dec-2007 |
mjf | Sync with HEAD.
|
1.28.14.1 |
| 08-Dec-2007 |
mjf | Sync with HEAD.
|
1.28.8.1 |
| 09-Jan-2008 |
matt | sync with HEAD
|
1.28.6.1 |
| 09-Dec-2007 |
jmcneill | Sync with HEAD.
|
1.30.4.1 |
| 02-Jan-2008 |
bouyer | Sync with HEAD
|
1.31.30.1 |
| 30-Apr-2010 |
uebayasi | Sync with HEAD.
|
1.31.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.31.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.31.10.1 |
| 11-Mar-2010 |
yamt | sync with head
|
1.32.36.1 |
| 17-Jan-2015 |
martin | Pull up following revision(s) (requested by maxv in ticket #427): sys/compat/svr4/svr4_schedctl.c: revision 1.8 sys/netinet/tcp_timer.c: revision 1.88 sys/miscfs/genfs/layer_vfsops.c: revision 1.45 sys/compat/svr4/svr4_ioctl.c: revision 1.37 sys/ufs/chfs/chfs_vfsops.c: revision 1.14 sys/miscfs/fdesc/fdesc_vfsops.c: revision 1.91 sys/compat/linux/arch/i386/linux_ptrace.c: revision 1.30 sys/compat/common/kern_time_50.c: revision 1.28 sys/netinet6/ip6_forward.c: revision 1.74 sys/miscfs/umapfs/umap_vnops.c: revision 1.57 sys/compat/svr4/svr4_fcntl.c: revision 1.74 distrib/sets/lists/comp/mi: revision 1.1931 sys/netinet6/udp6_output.c: revision 1.46 sys/fs/puffs/puffs_compat.c: revision 1.3 sys/fs/udf/udf_rename.c: revision 1.11 sys/compat/svr4/svr4_filio.c: revision 1.24 sys/fs/udf/udf_rename.c: revision 1.12 sys/netinet/tcp_usrreq.c: revision 1.202 sys/miscfs/umapfs/umap_subr.c: revision 1.29 sys/compat/linux/common/linux_fadvise64.c: revision 1.3 sys/netinet/if_atm.c: revision 1.34 sys/miscfs/procfs/procfs_subr.c: revision 1.106 sys/miscfs/genfs/layer_subr.c: revision 1.37 sys/netinet/tcp_sack.c: revision 1.30 sys/compat/freebsd/freebsd_misc.c: revision 1.33 sys/compat/freebsd/freebsd_file.c: revision 1.33 sys/ufs/chfs/chfs_vnode.c: revision 1.12 sys/compat/svr4/svr4_ttold.c: revision 1.34 sys/compat/linux/common/linux_file.c: revision 1.114 sys/compat/linux/arch/mips/linux_machdep.c: revision 1.43 sys/compat/linux/common/linux_signal.c: revision 1.76 sys/compat/common/compat_util.c: revision 1.46 sys/compat/linux/arch/arm/linux_ptrace.c: revision 1.18 sys/compat/svr4/svr4_sockio.c: revision 1.36 sys/compat/linux/arch/arm/linux_machdep.c: revision 1.32 sys/compat/svr4/svr4_signal.c: revision 1.66 sys/kern/kern_exec.c: revision 1.410 sys/fs/puffs/puffs_vfsops.c: revision 1.115 sys/compat/svr4/svr4_exec_elf64.c: revision 1.15 sys/compat/linux/arch/i386/linux_machdep.c: revision 1.159 sys/compat/linux/arch/alpha/linux_machdep.c: revision 1.50 sys/compat/linux32/common/linux32_misc.c: revision 1.24 sys/netinet/in_pcb.c: revision 1.153 sys/sys/malloc.h: revision 1.116 sys/compat/common/if_43.c: revision 1.9 share/man/man9/Makefile: revision 1.380 sys/netinet/tcp_vtw.c: revision 1.12 sys/miscfs/umapfs/umap_vfsops.c: revision 1.95 sys/ufs/ext2fs/ext2fs_vfsops.c: revision 1.186 sys/compat/common/uipc_syscalls_43.c: revision 1.46 sys/ufs/ext2fs/ext2fs_vnops.c: revision 1.115 sys/fs/puffs/puffs_msgif.c: revision 1.97 sys/compat/svr4/svr4_ipc.c: revision 1.27 sys/compat/linux/common/linux_exec.c: revision 1.117 sys/ufs/ext2fs/ext2fs_readwrite.c: revision 1.66 sys/netinet/tcp_output.c: revision 1.179 sys/compat/svr4/svr4_termios.c: revision 1.28 sys/fs/udf/udf_strat_bootstrap.c: revision 1.4 sys/fs/puffs/puffs_subr.c: revision 1.67 sys/fs/puffs/puffs_node.c: revision 1.36 sys/miscfs/overlay/overlay_vnops.c: revision 1.21 sys/fs/cd9660/cd9660_node.c: revision 1.34 sys/netinet/raw_ip.c: revision 1.146 sys/sys/mallocvar.h: revision 1.13 sys/miscfs/overlay/overlay_vfsops.c: revision 1.63 share/man/man9/malloc.9: revision 1.50 sys/netinet6/dest6.c: revision 1.18 sys/compat/linux/common/linux_uselib.c: revision 1.33 sys/compat/linux/common/linux_socket.c: revision 1.120 share/man/man9/malloc.9: revision 1.51 sys/netinet/tcp_subr.c: revision 1.257 sys/compat/linux/common/linux_socketcall.c: revision 1.45 sys/compat/linux/common/linux_fadvise64_64.c: revision 1.3 sys/compat/freebsd/freebsd_ipc.c: revision 1.17 sys/compat/linux/common/linux_misc_notalpha.c: revision 1.109 sys/compat/linux/arch/alpha/linux_pipe.c: revision 1.17 sys/netinet6/in6_pcb.c: revision 1.132 sys/netinet6/in6_ifattach.c: revision 1.94 sys/compat/svr4/svr4_exec_elf32.c: revision 1.15 sys/miscfs/nullfs/null_vfsops.c: revision 1.90 sys/fs/cd9660/cd9660_util.c: revision 1.12 sys/compat/linux/arch/powerpc/linux_machdep.c: revision 1.48 sys/compat/freebsd/freebsd_exec_elf32.c: revision 1.20 sys/miscfs/procfs/procfs_vfsops.c: revision 1.94 sys/compat/linux/arch/powerpc/linux_ptrace.c: revision 1.28 sys/compat/linux/common/linux_sched.c: revision 1.67 sys/compat/linux/common/linux_exec_aout.c: revision 1.67 sys/compat/linux/common/linux_pipe.c: revision 1.67 sys/compat/linux/common/linux_llseek.c: revision 1.34 sys/compat/linux/arch/mips/linux_ptrace.c: revision 1.10 Do not uselessly include <sys/malloc.h>. Cleanup: - remove struct kmembuckets (dead) - correctly deadify MALLOC_XX - remove MALLOC_DEFINE_LIMIT and MALLOC_JUSTDEFINE_LIMIT (dead) - remove malloc_roundup(), malloc_type_setlimit(), MALLOC_DEFINE_LIMIT() and MALLOC_JUSTDEFINE_LIMIT() from man 9 malloc New sentence, new line. Bump date for previous. Obsolete malloc_roundup(9), malloc_type_setlimit(9) and MALLOC_DEFINE_LIMIT(9) man pages.
|
1.32.20.1 |
| 03-Dec-2017 |
jdolecek | update from HEAD
|
1.33.2.1 |
| 27-Dec-2015 |
skrll | Sync with HEAD (as of 26th Dec)
|