summaryrefslogtreecommitdiff
path: root/sys/compat/hpux
AgeCommit message (Collapse)Author
2010-06-29Remove COMPAT_HPUX. No one wanted to support it and its fewmets werePhilip Guenthe
blocking other cleanups ok miod@
2010-06-26Don't #include <sys/user.h> into files that don't need the stuffPhilip Guenthe
it defines. In some cases, this means pulling in uvm.h or pcb.h instead, but most of the inclusions were just noise. Tested on alpha, amd64, armish, hppa, i386, macpcc, sgi, sparc64, and vax, mostly by krw and naddy. ok krw@
2010-01-28regenMiod Vallat
2010-01-28HP-UX getpgrp2() is documented as returning the same value than getpgid(),Miod Vallat
with the same error conditions. So reimplement it as the real thing. ok guenther@
2010-01-28Make sure the process tree is is loop-free by forbidding ptrace()Philip Guenthe
of a direct ancestor, closing a localhost DoS. As an exception, do permit ptrace() of pid 1 and have inferiors() stop climbing if it hits that. ok tedu@ hpux_compat suggestion from miod@
2009-12-09Add entries in compat signal mapping arrays for SIGTHR.Jonathan Gray
Prompted by parfait noticing overflows in ibcs2/svr4 which are now changed to being NSIG sized like the others as suggested by tedu. ok tedu@ miod@ guenther@
2009-03-05Make ELF platforms generate ELF core dumps. Somewhat based on code fromMark Kettenis
NetBSD. ok kurt@, drahn@, miod@
2008-11-01change all callers of enterpgrp() to pre-allocate a pgrp or session ifTheo de Raadt
it might be needed later -- before calling pfind(), so that enterpgrp() can operate without sleeping ok tedu
2008-09-19Fix a bunch of problems and races with posix file locking.Artur Grabowski
- file descriptor table becomes the owner of the lock instead of the proc. - When grabbing the lock, we check if the fd hasn't changed under our feet, this is more or less impossible to solve without a hack like this. I've banged my head against the wall, I figured out a solution, but implementing it correctly would cost me 12 gray hairs. Screw it, this is ugly, but it works. - Wait until usecount drains before releasing the posix lock in closef. - Add missing FREF/FRELE to sys_flock - keep the pid in the flock struct instead of abusing the fact that we used to use the proc as the lock owner. Pointed out by and discussed with Al Viro, big thanks. miod@ ok
2008-05-01spl0() is not your friend, use splx() instead.Miod Vallat
2007-11-27Missed those because they are in a weird place.Artur Grabowski
2007-11-02replace ctob/btoc with ptoa/atop (plus the usual round_page() where needed)Martin Reindl
2007-10-20enuf -> enoughMiod Vallat
2007-09-22replace even more ctob and btoc with ptoa and atop respectively plusMartin Reindl
uvm_extern.h where needed
2007-03-15Since p_flag is often manipulated in interrupts and without biglockArtur Grabowski
it's a good idea to use atomic.h operations on it. This mechanic change updates all bit operations on p_flag to atomic_{set,clear}bits_int. Only exception is that P_OWEUPC is set by MI code before calling need_proftick and it's automatically cleared by ADDUPC. There's no reason for MD handling of that flag since everyone handles it the same way. kettenis@ ok
2006-09-25Use S_IS* macros insted of masking with S_IF* flags. The latter mayOtto Moerbeek
have multiple bits set, which lead to surprising results. Spotted by from Paul Stoeber, more to come. ok miod@
2005-12-30Missing or incorrect header sizes bounds check; ``looks ok'' mickey@Miod Vallat
2005-03-12use own hpux_sigcodeMichael Shalayeff
2005-02-15Fix HPUX fcntl() F_GETLK compatibility. Broken since r1.10 by FREF/FRELEAaron Campbell
fixes. deraadt@ ok
2004-09-28This compiles better with the correct contents.Miod Vallat
2004-09-19regenMichael Shalayeff
2004-09-19proper sigsetreturn() argsMichael Shalayeff
2004-09-19another long that is really u_intMichael Shalayeff
2004-09-19const this speedtab tooMichael Shalayeff
2004-09-19ressurect hpux_sig.c and implement just the different parts in arch/hpux_sig2.cMichael Shalayeff
2004-07-15regenMichael Shalayeff
2004-07-15+setdomain,getdirentriesMichael Shalayeff
2004-07-14regenMichael Shalayeff
2004-07-14+set/getpriorityMichael Shalayeff
2004-07-13regenMichael Shalayeff
2004-07-13+madvise,msync,mlock,munlock,mlockall,munlockallMichael Shalayeff
2004-07-13regenMichael Shalayeff
2004-07-13+getdomainnameMichael Shalayeff
2004-07-11typedef hpux_stack_t kinda like stack_tMichael Shalayeff
2004-07-11get rid of [u]longs in hpux_stat that are really [u]ints and define stat64 ↵Michael Shalayeff
struct w/ [u]quad ino_t time_t and off_t; millert@ ok
2004-07-11move struct hpux_sigaltstack out into .h file as i just figured out it is ↵Michael Shalayeff
needed elsewhere too
2004-07-11regenMichael Shalayeff
2004-07-11sigaltstack wrapperMichael Shalayeff
2004-07-10regenMichael Shalayeff
2004-07-10enable stty/gtty on hppa as wellMichael Shalayeff
2004-07-10add back in piece required for m68kTheo de Raadt
2004-07-09regenMichael Shalayeff
2004-07-09feh. hppa part. some unfinished and untestedMichael Shalayeff
2004-07-09regenMichael Shalayeff
2004-07-09split off the m68k-specific partsMichael Shalayeff
2004-07-01add HPUX_SYSCONF_CPUPA20Michael Shalayeff
2004-06-30regenMichael Shalayeff
2004-06-30update from netbsd: use sys_poll() and label some other unimplemented ones; ↵Michael Shalayeff
millert@ ok
2004-06-24This moves access to wall and uptime variables in MI code,Thorsten Lockert
encapsulating all such access into wall-defined functions that makes sure locking is done as needed. It also cleans up some uses of wall time vs. uptime some places, but there is sure to be more of these needed as well, particularily in MD code. Also, many current calls to microtime() should probably be changed to getmicrotime(), or to the {,get}microuptime() versions. ok art@ deraadt@ aaron@ matthieu@ beck@ sturm@ millert@ others "Oh, that is not your problem!" from miod@
2004-06-22Replace a whole bunch of scary uses of strncpy() with strlcpy() andJean-Francois Brousseau
use compat-specific MAXNAMLEN values where appropriate ok millert@, pedro@