summaryrefslogtreecommitdiffstats
path: root/sys/i386/ibcs2
Commit message (Collapse)AuthorAgeFilesLines
* Rename struct members sa_siginfo. POSIX reserves identifiers startingcracauer1999-07-062-11/+11
| | | | | | | with sa_ when <signal.h> is included. They would conflict with the upcoming SA_SIGINFO implementation. Reviewed by: BDE
* Fix a couple of warnings and some bitrot in comments.peter1999-05-091-4/+2
|
* Add sufficient braces to keep egcs happy about potentially ambiguouspeter1999-05-061-4/+4
| | | | if/else nesting.
* Suser() simplification:phk1999-04-273-5/+5
| | | | | | | | | | | | | | | | | | | 1: s/suser/suser_xxx/ 2: Add new function: suser(struct proc *), prototyped in <sys/proc.h>. 3: s/suser_xxx(\([a-zA-Z0-9_]*\)->p_ucred, \&\1->p_acflag)/suser(\1)/ The remaining suser_xxx() calls will be scrutinized and dealt with later. There may be some unneeded #include <sys/cred.h>, but they are left as an exercise for Bruce. More changes to the suser() API will come along with the "jail" code.
* Staticize.eivind1999-04-111-2/+2
|
* Add missing poatch for ibcs2_ipc.h as well.guido1999-02-091-4/+14
| | | | Sorry this took so long but there was a routing problem earlier today.
* 1) Fix our view of how ibcs2_semid_ds looks. There is no padding int thereguido1999-02-072-13/+46
| | | | | | | | | | | | (SVR4 does have it so that;s probably the cause of this bug) 2) Add a wrapper function for translation between ibcs2_ipc_perm and ipc_perm as I think we screwed up when defining the ipc_perm struct and mixed up 'normal' and creator [ug]id's 3) Fix IBCS2_IPC_STAT semctl. The FreeBSD version needs a union semun whereas the IBCS2 version gives a struct ibcs2_semid_ds. Apparently this is all fixed in the SVR4 compatibility code. PR: 7729
* Can't use elf_brand_inuse() here because iBCS2 doesn't use ELF. D'oh!newton1999-02-041-2/+14
| | | | Inlined the same logic elf_brand_inuse() utilizes instead.
* Fix warnings in preparation for adding -Wall -Wcast-qual to thedillon1999-01-288-61/+61
| | | | kernel compile
* Remove references to an LKM that isn't built any more.peter1999-01-172-6/+4
|
* Removed the cast to a pointer in the definition of PS_STRINGS andbde1998-12-161-1/+1
| | | | | | | adjusted related casts to match (only in the kernel in this commit). The pointer was only wanted in one place in kern_exec.c. Applications should use the kern.ps_strings sysctl instead of PS_STRINGS, so they shouldn't notice this change.
* Added 3 new errno values, requred by various standards: EOVERFLOW,dt1998-12-142-3/+7
| | | | | | | ECANCELED, EILSEQ. Fixed ibcs2 and especially linux EIDRM and ENOMSG errno mapping. Reviewed by: Dan Nelson <dnelson@emsphone.com>
* Examine all occurrences of sprintf(), strcat(), and str[n]cpy()archie1998-12-043-22/+29
| | | | | | | | | | | | | | for possible buffer overflow problems. Replaced most sprintf()'s with snprintf(); for others cases, added terminating NUL bytes where appropriate, replaced constants like "16" with sizeof(), etc. These changes include several bug fixes, but most changes are for maintainability's sake. Any instance where it wasn't "immediately obvious" that a buffer overflow could not occur was made safer. Reviewed by: Bruce Evans <bde@zeta.org.au> Reviewed by: Matthew Dillon <dillon@apollo.backplane.com> Reviewed by: Mike Spengler <mks@networkcs.com>
* Finished updating module event handlers to be compatible withbde1998-11-151-2/+2
| | | | modeventhand_t.
* Don't define the module glue if building as an LKM, this happens to havepeter1998-11-071-1/+3
| | | | a same symbol name as the LKM glue.
* Create an 'ibcs2' module so that scripts can tell if it's staticallypeter1998-11-061-1/+20
| | | | linked in or needs to be loaded.
* *gulp*. Jordan specifically OK'ed this..peter1998-10-161-2/+2
| | | | | | | | This is the bulk of the support for doing kld modules. Two linker_sets were replaced by SYSINIT()'s. VFS's and exec handlers are self registered. kld is now a superset of lkm. I have converted most of them, they will follow as a seperate commit as samples. This all still works as a static a.out kernel using LKM's.
* Fixed two potentially serious classes of bugs:dg1998-10-131-5/+5
| | | | | | | | | | | | | | | | 1) The vnode pager wasn't properly tracking the file size due to "size" being page rounded in some cases and not in others. This sometimes resulted in corrupted files. First noticed by Terry Lambert. Fixed by changing the "size" pager_alloc parameter to be a 64bit byte value (as opposed to a 32bit page index) and changing the pagers and their callers to deal with this properly. 2) Fixed a bogus type cast in round_page() and trunc_page() that caused some 64bit offsets and sizes to be scrambled. Removing the cast required adding casts at a few dozen callers. There may be problems with other bogus casts in close-by macros. A quick check seemed to indicate that those were okay, however.
* Silence a harmless warning.des1998-09-261-2/+2
|
* Add provisions for variant core dump file formats, depending on thejdp1998-09-141-2/+3
| | | | | | | | | | | object format of the executable being dumped. This is the first step toward producing ELF core dumps in the proper format. I will commit the code to generate the ELF core dumps Real Soon Now. In the meantime, ELF executables won't dump core at all. That is probably no less useful than dumping a.out-style core dumps as they have done until now. Submitted by: Alex <garbanzo@hooked.net> (with very minor changes by me)
* Removed unused includes. Fixed disordering of includes.bde1998-08-171-8/+6
|
* Backed out previous commit. The seconds part of microtime() isbde1998-08-171-2/+2
| | | | | | | not the necessarily the same as the seconds part of getmicrotime() yet, and anyway, we should have used `time_second' if we only wanted a sloppy value for the seconds part. There is no point in making ibcs2's time(2) more efficient than FreeBSD's time(3).
* Use [u]intptr_t instead of [u_]long for casts between pointers andbde1998-08-162-9/+12
| | | | integers. Don't forget to cast to (void *) as well.
* Updated generated files.bde1998-06-093-24/+0
|
* Updated generated files.bde1998-06-082-172/+172
|
* This commit fixes various 64bit portability problems required fordfr1998-06-079-175/+203
| | | | | | | | | | FreeBSD/alpha. The most significant item is to change the command argument to ioctl functions from int to u_long. This change brings us inline with various other BSD versions. Driver writers may like to use (__FreeBSD_version == 300003) to detect this change. The prototype FreeBSD/alpha machdep will follow in a couple of days time.
* Correct sleep priority.dyson1998-06-021-2/+2
|
* Translate T_PROTFLT to SIGSEGV instead of SIGBUS when running undereivind1998-04-281-1/+2
| | | | | | | | | Linux emulation. This make Allegro Common Lisp 4.3 work under FreeBSD! Submitted by: Fred Gilham <gilham@csl.sri.com> Commented on by: bde, dg, msmith, tg Hoping he got everything right: eivind
* Added EIDRM & ENOMSG errno in translation table.sos1998-04-131-0/+2
|
* Use getmicrotime insted of microtime, we only use the second part.phk1998-04-061-2/+2
|
* Make a kernel version of the timer* functions called timerval* to bephk1998-04-061-2/+2
| | | | | | more consistent. OK'ed by: bde
* De-staticize enough to make all the LKMs work again. Add comments whereeivind1998-02-111-3/+3
| | | | deemed relevant.
* Staticize.eivind1998-02-091-6/+6
|
* Back out DIAGNOSTIC changes.eivind1998-02-061-2/+0
|
* Turn DIAGNOSTIC into a new-style option.eivind1998-02-041-0/+2
|
* Make SPX_HACK a new-style option.eivind1998-02-042-2/+6
|
* Unspammed nested include of <vm/vm_zone.h>.bde1997-12-271-1/+2
|
* Don't include <sys/lock.h> in headers when only `struct simplelock' isbde1997-12-051-1/+2
| | | | required. Fixed everything that depended on the pollution.
* Move the "retval" (3rd) parameter from all syscall functions and putphk1997-11-0616-415/+341
| | | | | | | | | | | | it in struct proc instead. This fixes a boatload of compiler warning, and removes a lot of cruft from the sources. I have not removed the /*ARGSUSED*/, they will require some looking at. libkvm, ps and other userland struct proc frobbing programs will need recompiled.
* Change the M_NAMEI allocations to use the zone allocator. This changedyson1997-09-211-3/+3
| | | | | | | | plus the previous changes to use the zone allocator decrease the useage of malloc by half. The Zone allocator will be upgradeable to be able to use per CPU-pools, and has more intelligent usage of SPLs. Additionally, it has reasonable stats gathering capabilities, while making most calls inline.
* Fixed type mismatches for functions with args of type vm_prot_t and/orbde1997-08-251-8/+3
| | | | | | | | | vm_inherit_t. These types are smaller than ints, so the prototypes should have used the promoted type (int) to match the old-style function definitions. They use just vm_prot_t and/or vm_inherit_t. This depends on gcc features to work. I fixed the definitions since this is easiest. The correct fix may be to change the small types to u_int, to optimize for time instead of space.
* Added an XXX comment.bde1997-08-251-1/+4
|
* Removed an unused variable.bde1997-08-251-2/+1
|
* Fixed a pedantic syntax error (case labels without a statement).bde1997-08-251-1/+2
|
* Removed unused #includes.bde1997-07-2014-113/+9
|
* Do The Right Thing when an iBCS2 program does getgroups(0, whatever) -- wesef1997-06-251-2/+6
| | | | | | | | | | were returning EFAULT, when it is a completely acceptable thing to do. Also, at the same time, be a *bit* optimizing and don't allocate any "stackgrap" memory if we're not going to use it. This is another Oracle-discovered problem. Submitted by: Steven Wallace
* For the xenix_ftime() routine, don't use the native version of the struct --sef1997-06-221-3/+8
| | | | | | | | | | | | | the XENIX version is packed, and two bytes smaller than ours. So, define the structure, and have it packed. I used the __attribte__((packed)) modifier for this; I could also have surrounded the struct definition with #pragma pack(2) -- but that would have meant making ibcs2_timeb's definition outside the function. This may need to be revisited if we ever want to compile with a compiler other than gcc. (I also used 'unsigned long' instead of 'time_t' because I am writing to match an external specification -- and the definition of time_t could change.) Reviewed by: Steven Wallace
* md_regs is a struct trapframe * now, not int []peter1997-05-073-6/+6
|
* Fully implement vfork. Vfork is now much much faster than even ourdyson1997-04-131-2/+3
| | | | | | | | | | | | | | | | | fork. (On my machine, fork is about 240usecs, vfork is 78usecs.) Implement rfork(!RFPROC !RFMEM), which allows a thread to divorce its memory from the other threads of a group. Implement rfork(!RFPROC RFCFDG), which closes all file descriptors, eliminating possible existing shares with other threads/processes. Implement rfork(!RFPROC RFFDG), which divorces the file descriptors for a thread from the rest of the group. Fix the case where a thread does an exec. It is almost nonsense for a thread to modify the other threads address space by an exec, so we now automatically divorce the address space before modifying it.
* Removed unused or apparently-unused #includes, especially of thebde1997-04-101-25/+0
| | | | deprecated header <sys/dir.h>.
OpenPOWER on IntegriCloud