summaryrefslogtreecommitdiff
path: root/lib
AgeCommit message (Collapse)Author
2007-11-24fix yacc/lex parallel file generationMarc Espie
2007-11-20make pthread vfork() not call fork(), but actually call vfork(). ourTheo de Raadt
vfork() has only one semantic: "parent stalls until child does execve or exit" and no other semantic. it is unfair to act as if pthread vfork() suddenly lacks that semantic. ok kurt millert kettenis beck
2007-11-19copy in FILES from pw_lock.3 to vipw.8: as nick points out, it should atJason McIntyre
least document /etc/ptmp; while i'm at it, might as well tidy it up and make it consistent across these pages;
2007-11-19remove unused zero length file.Kurt Miller
2007-11-19fix misleading comment; the _MUTEX_LOCK/_MUTEX_UNLOCK macros work withKurt Miller
both static and non-static mutexs.
2007-11-17"arm" is not a valid .Dt arch; remove it, as this page is for bothJason McIntyre
armish and zaurus quote >9 args to .Nd
2007-11-13Put limits.h in front of stdlib.h as style(9) recommends.Tobias Stoeckmann
OK millert@
2007-11-12this is the recording source. rename 'source' to 'recsource' and beJacob Meuser
sure to only use 'record.source' instead of possibly 'inputs.source'.
2007-11-12implement SNDCTL_DSP_GETODELAYJacob Meuser
bump minor version ok deanna@
2007-11-11strtod may return HUGE_VAL on overflow, which is defined in math.h.Tobias Stoeckmann
Therefore added math.h to SYNPOSIS. OK millert@
2007-11-09Stash value of log_tag before calling closelog_r() and restore it after.Todd C. Miller
When closelog() was modified to clear log_tag it inadvertantly made syslog_r() (which calls closelog_r at the end) clear log_tag as well. OK miod@ dhartmei@
2007-11-06fix format stringCharles Longeau
ok ray@ gilles@
2007-11-06malloc/memset -> callocCharles Longeau
ok ray@
2007-11-06- when we need to do both AUDIO_SETINFO and AUDIO_GETINFO to emulateJacob Meuser
a single OSS ioctl, return the return value and errno from from AUDIO_SETINFO if there was an error, since it's more informative than the return value and errno from AUDIO_GETINFO. also, don't bail if AUDIO_SETINFO fails, because OSS ioctls should return the current value of the parameter they are setting, even if there was an error. - avoid a possible (though highly unlikely) divide by zero in SNDCTL_DSP_GET[IO]SPACE. ok ratchov@
2007-11-05sync the comments for struct stat w/ <sys/stat.h>;Jason McIntyre
2007-11-05- sync the error descriptions w/ those in errlistJason McIntyre
- escape "No" incase groff thinks it's a macro call
2007-11-02Simplify some of the logic in fts_close(). Initially based on aTodd C. Miller
diff from chl@. OK otto@ and chl@.
2007-11-01Fix waitpid() idiom. Noticed by deraadt@Todd C. Miller
2007-10-31Add parentheses to avoid warning:Charles Longeau
"suggest parentheses around && within ||" ok millert@
2007-10-30If we receive SIGTTOU when turning off echo, the process is alreadyTodd C. Miller
backgrounded. Do not print the password prompt in this case since the first read will result in the process receiving SIGTTIN. Fixes an issue where the password prompt would be displayed when readpassphrase() would not be able to read anything. OK deraadt@
2007-10-30avoid intermediate files with same name (ie. a.out) for parallel makeTheo de Raadt
ok miod
2007-10-27Repair FLT_ROUNDS operation. ok kettenis@Miod Vallat
2007-10-26add missing dependencyMarc Espie
2007-10-25Make sure to use unique target names so that make -j does not break;Miod Vallat
feedback and ok espie@
2007-10-24Change the syscall invocation sequences to no longer fetch the last fewMiod Vallat
arguments from the stack, since the kernel will now copyin() them when necessary. This makes all system calls (but mmap()) slightly faster. WARNING! After this commit, your binaries must run against a kernel featuring m88k/m88k/trap.c r1.34 or better - i.e. a 4.1 or later kernel.
2007-10-21Comment fix about time consumption of _gettemp.Tobias Stoeckmann
FreeBSD did this in revision 1.20. OK deraadt@, krw@
2007-10-19prettyTheo de Raadt
2007-10-19do not install them silentlyTheo de Raadt
2007-10-18synch expat major number with xenocara, and then some.Marc Espie
activate it in the build.
2007-10-18Get rid of the silly union for mips pte. No functional change exceptMiod Vallat
pmap.h now includes pte.h.
2007-10-17remove "unused variable" warningsCharles Longeau
tested by deraadt@ on a gcc2 arch looks ok ray@ ok deraadt@
2007-10-12fix typo in _telldir_unlocked function prototype, to avoid warning.Charles Longeau
while there, put all function prototypes in header file. ok kurt@
2007-10-11use RRSIG instead of SIG for DNSSEC. ok djm@Jakob Schlyter
2007-10-10add a proper test around allocsetCharles Longeau
use a simpler way to allocated memory in allocset, mostly done by replacing malloc/realloc dance, by only one realloc add comments about variables that are not used uninitialized, even if gcc told the contrary another malloc/realloc -> realloc change Work initially started by otto@, and then I joined him ok otto@ ray@
2007-10-10Replace use of strcpy(3) and other pointer goo inMoritz Jodeit
SSL_get_shared_ciphers() with strlcat(3). ok deraadt@ markus@
2007-10-10Make context switching much more MI:Artur Grabowski
- Move the functionality of choosing a process from cpu_switch into a much simpler function: cpu_switchto. Instead of having the locore code walk the run queues, let the MI code choose the process we want to run and only implement the context switching itself in MD code. - Let MD context switching run without worrying about spls or locks. - Instead of having the idle loop implemented with special contexts in MD code, implement one idle proc for each cpu. make the idle loop MI with MD hooks. - Change the proc lists from the old style vax queues to TAILQs. - Change the sleep queue from vax queues to TAILQs. This makes wakeup() go from O(n^2) to O(n) there will be some MD fallout, but it will be fixed shortly. There's also a few cleanups to be done after this. deraadt@, kettenis@ ok
2007-10-08add a RETURN VALUES section.Pierre-Yves Ritschard
ok jmc@
2007-10-08attribute packed -> __packedGilles Chehade
OK millert
2007-10-08- make SNDCTL_DSP_GETOSPACE much more efficient by using AUDIO_GETPRINOJacob Meuser
instead of AUDIO_GETINFO - make SNDCTL_DSP_GETISPACE return correct values by using AUDIO_GETRRINFO instead of AUDIO_GETINFO - remove calls to setblocksize() from SNDCTL_DSP_GET[IO]SPACE. changing the blocksize inside play or record loops, where these ioctls are most often used, can have serious negative consequences. the blocksize should be "fixed" to a power of 2 before these ioctls are called by using SNDCTL_DSP_SETFRAGMENT or SNDCTL_DSP_GETBLKSIZE. heavily tested by myself. no negative feedback from anyone else. ok ratchov
2007-10-04update to tzcode2007h from elsie.nci.nih.govTodd C. Miller
2007-10-02fix a libpthread PANIC in seekdir(3) caused by a recursive mutex lock.Kurt Miller
remove the recursive lock in __seekdir() and ensure all callers properly lock dd_lock prior to calling. reported and tested by bernd@ okay marc@ tedu@
2007-09-28implement SNDCTL_DSP_[G|S]ETTRIGGERJacob Meuser
SNDCTL_DSP_SETTRIGGER is used to pause and unpause recording and playback data transfers. SNDCTL_DSP_GETTRIGGER returns the paused states. this implementation of SNDCTL_DSP_SETTRIGGER also sets the audio(4) mode (AUMODE_[PLAY|RECORD]), depending on which direction (play, record or both) is to be triggered. this can be used allow OSS audio programs to work in full-duplex mode without changing the audio(4) layer itself. according to OSS docs, SNDCTL_DSP_SETTRIGGER is a fairly important ioctl, and should be used "when even the first read() cannot block." tested to not break any ports currently using SNDCTL_DSP_SETTRIGGER which has been a no-op for quite some time. ok ratchov
2007-09-27Fix off-by-one buffer overflow in SSL_get_shared_ciphers().Moritz Jodeit
From OpenSSL_0_9_8-stable branch. ok djm@
2007-09-27strtol -> strtonumBret Lambert
assign values to struct members directly remove now-unused variable ok otto@ ok & input millert@
2007-09-25tweak previous; ok claudio henningJason McIntyre
2007-09-24updatecomment and manpage toemtion optional seventh level (rtable id)Henning Brauer
From: Pierre Riteau <pierre.riteau@free.fr>
2007-09-21Add some more truncation checks for path construction in tmpnam(3).Moritz Jodeit
ok ray@
2007-09-19add HISTORY; shortened version of diff from Ilya A. KovalenkoJason McIntyre
ok millert
2007-09-17Fix comment typos; ok ray@, jmc@Bret Lambert
2007-09-17Prevent out-of-bounds memory access in tempnam(3), if the environmentMoritz Jodeit
variable TMPDIR or the argument `dir' is an empty string. With and ok millert@ ray@