summaryrefslogtreecommitdiffstats
path: root/sys/compat
Commit message (Collapse)AuthorAgeFilesLines
* Back out proc locking to protect p_ucred for obtaining additionaljhb2001-01-276-84/+18
| | | | references along with the actual obtaining of additional references.
* - Back out over-aggressive locking of p->p_cred.jhb2001-01-261-12/+3
| | | | - Back out locking ucred's and bumping refcounts for vnode operations.
* Use queue macros.jhb2001-01-241-1/+1
|
* - Proc locking.jhb2001-01-233-27/+73
| | | | | | | - Use queue macros. - Use NULL instead of 0 for pointers. Reviewed by: des
* Argh, atomic_store_rel -> atomic_store_rel_int.jhb2001-01-231-1/+1
|
* Woops, add in missing headers.jhb2001-01-231-1/+3
|
* Proc locking.jhb2001-01-235-17/+63
|
* Use queue macros.jhb2001-01-231-5/+4
|
* - Add proc locking.jhb2001-01-231-35/+104
| | | | | | | | - Fix several bugs in the wait syscall, including freeing the actual proc start, freeing the args, freeing the prison, and other minor nits. - Use appropriate queue(3) macros. - Use zpfind() instead of walking zombproc ourselves.
* - Use proper atomic operations to make the run time initializationjhb2001-01-231-10/+20
| | | | controlled by svr_str_initialized be MP safe.
* FreeBSD doesn't have p_emuldata, and our stackgap_init() doesn't take anjhb2001-01-231-3/+3
| | | | argument.
* Use proc lock to safely obtain references to p_ucred before vnodejhb2001-01-231-3/+13
| | | | operations.
* Protect calcru() with sched_lock.jhb2001-01-231-0/+2
|
* Map BSS section in PECOFF executable.takawata2001-01-231-1/+1
| | | | Submitted by: KUROSAWA Takahiro <fwkg7679@mb.infoweb.ne.jp>
* Finish deprecating <sys/select.h> in favor of <sys/selinfo.h> in kernel code.wollman2001-01-201-1/+0
|
* Instead of hard coding the major numbers for IDE and SCSI disksjoe2001-01-141-10/+17
| | | | look in the device's cdevsw for the D_DISK flag.
* Protect proc.p_pptr with the proctree lock.jake2001-01-102-4/+20
|
* Take 10 seconds to actually fix the chgproccnt rather than just make itgreen2001-01-091-2/+1
| | | | | explicitly error. If the module is horribly broken, it should be temporarily removed from src/sys/modules.
* With some trepidation, add a `#error' directive to this module. It waswollman2001-01-091-0/+1
| | | | | broken and not fixed by whoever changed the interface of chgproccnt(); in the state it is in it could not possibly work (dereferencing an integer).
* Map FreeBSD character device hard disks to Linux block device hard disks.paul2000-12-291-0/+14
| | | | This fixes the problem with VMWARE not being able to use raw disks.
* Protect proc.p_pptr and proc.p_children/p_sibling with thejake2000-12-231-8/+16
| | | | | | | | proctree_lock. linprocfs not locked pending response from informal maintainer. Reviewed by: jhb, -smp@
* Add PECOFF (WIN32 Execution file format) support.takawata2000-12-202-0/+783
| | | | | | | | | To use it, some dll is needed. And currently, the dll is only for NetBSD. So one more kernel module is needed. For more infomation, http://chiharu.haun.org/peace/ . Reviewed by: bp
* translate the flags in recvfrom and recvmsg from linux to bsd onesassar2000-12-192-2/+121
| | | | Approved by: marcel
* Lock access to proc members.jhb2000-12-154-18/+51
| | | | Glanced over by: marcel
* Use kinfo_proc instead of eproc (which Kirk deep-sixed earlier this week)des2000-12-132-216/+260
| | | | | | | | | | Generate a version string that looks just like a real Linux one - almost :) Use sbufs everywhere instead of sprintf(). Note that this is still imperfect, as the code does not check whether the sbuf overflowed - but it'll still work better than before, since if the sbuf overflows, the code now simply copies out 0 bytes instead of causing a trap (or worse, corrupting kernel structures)
* Add dependency on linux, which is needed for proc/version.des2000-12-131-0/+1
|
* Lock the allproc list.jake2000-12-131-1/+4
| | | | Approved by: DES
* - Change the allproc_lock to use a macro, ALLPROC_LOCK(how), insteadjake2000-12-131-3/+8
| | | | | | | | of explicit calls to lockmgr. Also provides macros for the flags pased to specify shared, exclusive or release which map to the lockmgr flags. This is so that the use of lockmgr can be easily replaced with optimized reader-writer locks. - Add some locking that I missed the first time.
* Point #includes at compat/linprocfs instead of i386/linux/linprocfs.des2000-12-125-5/+5
|
* Add proc/<pid>/cmdline.des2000-12-093-1/+9
|
* Add a dependency on procfs.des2000-12-091-0/+1
|
* A bunch of fixes that have been rotting in my tree for a month or twodes2000-12-092-142/+182
| | | | | | | | | | | | | | | waiting for procfs to get fixed: - Use fill_eproc() to obtain correct VM stats. Attempt to compute VmLib. - Fill some more fields in proc/<pid>/stat, and add four (unimplemented) fields after studying a recent Linux kernel. - Compute CPU frequency only once instead of twice. - Fix some comments that were OBE. - Fix indentation except where it makes the code less readable.
* Remove call to bzero after MALLOC and instead add M_ZEROmarcel2000-12-051-2/+1
| | | | to MALLOC.
* Include machine/cpu.h for cpu_getstack().marcel2000-12-031-0/+2
| | | | Spotted by: jake
* Don't auto-generate the syscalls.marcel2000-12-037-28/+0
|
* Protect access to p_stat with sched_lock.jhb2000-12-012-0/+4
|
* Don't use p->p_sigstk.ss_flags to keep state of whether themarcel2000-11-301-1/+1
| | | | | | | | | | | | | | | process is on the alternate stack or not. For compatibility with sigstack(2) state is being updated if such is needed. We now determine whether the process is on the alternate stack by looking at its stack pointer. This allows a process to siglongjmp from a signal handler on the alternate stack to the place of the sigsetjmp on the normal stack. When maintaining state, this would have invalidated the state information and causing a subsequent signal to be delivered on the normal stack instead of the alternate stack. PR: 22286
* Use callout_reset instead of timeout(9). Most callouts are staticallyjake2000-11-271-2/+2
| | | | | | allocated, 2 have been added to struct proc for setitimer and sleep. Reviewed by: jhb, jlemon
* Add bogomips to cpuinfo (set it equal to the CPU frequency, which is bogusdes2000-11-272-14/+20
| | | | | | | but not more so than Linux' definition). This should get the IBM JDK 1.3 working again. Prompted by: sobomax
* Forgot to patch this file in file descriptor race fix commitdillon2000-11-231-7/+17
| | | | Submitted-by: "Danny J. Zerkel" <dzerkel@columbus.rr.com>
* Use the linux_connect() on alpha rather than passing directly throughgallatin2000-11-161-1/+9
| | | | | | | | | | to our native connect(). This is required to deal with the differences in the way linux handles connects on non-blocking sockets. This gets the private beta of the Compaq Linux/alpha JDK working on FreeBSD/alpha Approved by: marcel
* Fix F_SETOWN on pipes. Linux returns EINVAL while we send a SIGIOmarcel2000-11-131-5/+19
| | | | | | | | signal. There's at least 1 program that is known to break. Submitted patch has been edited to match current code. MFC: yes Submitted by: bde
* Revert auto-generation. The Alpha port is broken.marcel2000-11-107-0/+28
| | | | Syncing with it is wrong.
* Make MINSIGSTKSZ machine dependent, and have the sigaltstackmarcel2000-11-092-1/+5
| | | | | | | | | | | | | | | | | | | | | | syscall compare against a variable sv_minsigstksz in struct sysentvec as to properly take the size of the machine- and ABI dependent struct sigframe into account. The SVR4 and iBCS2 modules continue to have a minsigstksz of 8192 to preserve behavior. The real values (if different) are not known at this time. Other ABI modules use the real values. The native MINSIGSTKSZ is now defined as follows: Arch MINSIGSTKSZ ---- ----------- alpha 4096 i386 2048 ia64 12288 Reviewed by: mjacob Suggested by: bde
* Sync with Alpha:marcel2000-11-097-28/+0
| | | | | Do not use sysent.c, proto.h and syscall.h in source tree; use auto-generated versions.
* Check that p->p_pptr is not NULL - kernel processes have no parents!des2000-11-062-4/+4
|
* Fix getdents syscall.marcel2000-11-051-1/+4
| | | | | | | | | | The offset field in struct dirent was set to the offset of the next dirent in rev 1.36. The offset was calculated from the current offset and the record length. This offset does not necessarily match the real offset when we are using cookies. Therefore, also use the cookies to set the offset field in struct dirent if we're using cookies to iterate through the dirents.
* zap a stray include that snuck in with rev 1.56gallatin2000-11-021-1/+0
| | | | Submitted by: Clive Lin <clive@CirX.ORG>
* fix a comment that was inadvertantly changed by a cvs mergegallatin2000-11-021-1/+1
| | | | pointed out by: obrien
* Fix linux_ustat syscall. We only have cdevs now, so lookingmarcel2000-11-021-2/+2
| | | | | | | | for a block device isn't that useful anymore. Reported by: Wesley Morgan <morganw@chemicals.tacorp.com> Submitted by: gallatin Acknowledged by: phk
OpenPOWER on IntegriCloud