summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* MFp4: Pentium/Athlon-optimised implementation of wcslen().tjr2003-03-142-1/+69
|
* Properly mark "auto" as a keyword.ru2003-03-142-14/+14
|
* Use the canonical form of installing links.ru2003-03-141-3/+1
| | | | | | Also, make "ftp" and "ftpd" hard links. Not objected to by: des
* Merge vfprintf.c revision 1.52.tjr2003-03-141-2/+2
|
* Demangle the usage message at the source level.ru2003-03-141-15/+8
| | | | Submitted by: bde
* lock.h must be included before mutex.h.jake2003-03-141-0/+1
|
* - Add a forgotten BUF_LOCK()jeff2003-03-141-0/+1
| | | | Most sincere apologies to: jake
* Kludge around a bug that results from printf() assuming thatdas2003-03-141-1/+1
| | | | | | | | | dtoa() is buggy. The bug would cause incorrect output to be generated when format strings such as '%5.0f' were used with nonzero numbers whose magnitude is less than 1. Reported by: df(1) by way of periodic(8) Reviewed by: mike
* Unexpand RCS tag.tjr2003-03-141-1/+1
|
* Export current time when returning from never blocked syscall.davidxu2003-03-142-2/+16
|
* In src/lib/libz/gzio.c the function gzprintf does not check if thejmz2003-03-141-7/+6
| | | | | | | | | | amount of bytes (supposed to be) written by vsnprintf exceeds the size of the buffer. PR: bin/48844 Submitted by: Peter A Jonsson <pj@ludd.luth.se> Obtained from: OpenBSD MFC after: 1 month
* Fix a bug in rwlock. When a rwlock was locked by reader threads, adavidxu2003-03-142-2/+2
| | | | writter thread can block reader threads to get read lock.
* Allow the configuration to specify environment variables (passed ondes2003-03-141-2/+6
| | | | | | | | the command line to tinderbox.pl) Build Kerberos V in all setups (this was previously taken care of by tinderbox.pl). Tweak the 9ball configuration to make powerpc builds work (with a little help from a toolchain patch provided by grehan)
* Support multiple verbosity levels.des2003-03-141-5/+19
| | | | | | Allow the user to specify environment variables on the command line. Set the correct variables for cross-building. Don't arbitrarily define MAKE_KERBEROS5 and BOOT_UFS.
* Oops, add missing includes. Pass me the pointy hat.mux2003-03-142-0/+2
| | | | Reported by: jake
* - Align the function prototype of the external `crc' function withrobert2003-03-135-13/+11
| | | | | | | | | | | | | | how `crc' is actually defined. - Remove an unnecessary `extern' variable declaration. Data type corrections: - Define a variable which contains a file byte offset value as type off_t as required by the `crc' function. - Change the type of a variable carrying a CRC checksum from `u_long' to `uint32_t'. - Substitute the wrong `extern' variable declaration of `crc_total' by putting a correct one in the shared header extern.h. `crc_total' is defined as an `uint32_t', thus fixing incorrect mtree checksums on big-endian LP64 machines.
* - Align the function prototype of the external `crc' function withrobert2003-03-131-5/+10
| | | | | | | | | | | | | | how `crc' is actually defined. Data type corrections: - Define variables which contain file byte offset values as type off_t as required by the `crc' function. - Change the type of a variable carrying a CRC checksum from `u_long' to `uint32_t'. - Parse the length of a file with sscanf as `intmax_t' (as there is no conversion specifier for `off_t'). Style(9): - Put an empty line between #include directives for system and user header files.
* - For variables holding offset values, use off_t rather thanrobert2003-03-137-41/+57
| | | | | | | | | | | | | | | | int, long int or u_int32_t. This changes the interface of all the CRC calculation and output functions from cksum. - Print variables of type off_t as intmax_t using a cast and %jd. - Use the standardized uint32_t type instead of u_int32_t. To have uint32_t defined, include <stdint.h> where necessary. Style(9): - Move #include directives where they belong (esp. crc32.c). - Add empty lines between #include directives of system headers, standard library headers and local headers. - Test a pointer value against NULL. - Put a space after the return keyword. PR: bin/48424
* New release notes: GNOME 2.2, KDE 3.1, XFree86 4.3.0.bmah2003-03-132-0/+18
| | | | | | (This isn't a precedent for documenting every little change to all of our 8000+ ports, but these three are important to a lot of people, and we have some special support for them in sysinstall.)
* Trim some trailing whitespace.jhb2003-03-131-2/+2
|
* Break setfmac.8 into two actual man pages, and reword bits of thechris2003-03-133-66/+120
| | | | | | | setfsmac(8) documentation. Obtained from: TrustedBSD Project Sponsored by: DARPA, Network Associates Laboratories
* Now that bus_dmamem_alloc() handles its Giant mutex requirements itself,scottl2003-03-131-2/+0
| | | | don't bother doing the same in the code that calls it.
* - Change the linux_[gs]et_os{name, release, s_version}() functions tojhb2003-03-135-115/+109
| | | | | | | | | | | | | take a thread instead of a proc for their first argument. - Add a mutex to protect the system-wide Linux osname, osrelease, and oss_version variables. - Change linux_get_prison() to take a thread instead of a proc for its first argument and to use td_ucred rather than p_ucred. This is ok because a thread's prison does not change even though it's ucred might. - Also, change linux_get_prison() to return a struct prison * instead of a struct linux_prison * since it returns with the struct prison locked and this makes it easier to safely unlock the prison when we are done messing with it.
* Don't return with a value in a void function.dwmalone2003-03-131-4/+4
| | | | Pass a time_t rather than a long to time.
* Catch up to p_tracep -> p_tracevp rename to unbreak world.jhb2003-03-131-1/+1
| | | | Pointy hat to: jhb
* Add a default case that just outputs a new line for the case of anjhb2003-03-131-0/+3
| | | | unknown header type.
* Clean up the way gdtoa sources are found.obrien2003-03-132-8/+7
| | | | OK'ed by: das
* Teach kdump(8) to handle events marked with KTR_DROP. If a record hasjhb2003-03-131-0/+12
| | | | | | | | | | | | | | KTR_DROP set in its header, then we output an extra line to stdout to indicate that events were dropped between the previous record and this record. It is a bit trickier because we need to always notify the user if events are dropped even if KTR_DROP is set on a record of a type that we aren't interested in since kdump(8) doesn't know if the dropped events were of the types that the user has requested. To avoid outputting multiple events dropped notices in between actual event logs, a state variable is set whenever a drop is logged and cleared whenever an actual record is output. Requested by: phk
* Rework the wording of the comment for the security.bsd.see_other_uidsmux2003-03-131-2/+2
| | | | | | sysctl a bit. Approved by: jmallett
* Add a new userland-visible ktrace flag KTR_DROP and an internal ktrace flagjhb2003-03-132-1/+13
| | | | | | | | | | | | | | | | | | KTRFAC_DROP to track instances when ktrace events are dropped due to the request pool being exhausted. When a thread tries to post a ktrace event and is unable to due to no available ktrace request objects, it sets KTRFAC_DROP in its process' p_traceflag field. The next trace event to successfully post from that process will set the KTR_DROP flag in the header of the request going out and clear KTRFAC_DROP. The KTR_DROP flag is the high bit in the type field of the ktr_header structure. Older kdump binaries will simply complain about an unknown type when seeing an entry with KTR_DROP set. Note that KTR_DROP being set on a record in a ktrace file does not tell you anything except that at least one event from this process was dropped prior to this event. The user has no way of knowing what types of events were dropped nor how many were dropped. Requested by: phk
* - Cache a reference to the credential of the thread that starts a ktrace injhb2003-03-136-24/+60
| | | | | | | | | | | struct proc as p_tracecred alongside the current cache of the vnode in p_tracep. This credential is then used for all later ktrace operations on this file rather than using the credential of the current thread at the time of each ktrace event. - Now that we have multiple ktrace-related items in struct proc that are pointers, rename p_tracep to p_tracevp to make it less ambiguous. Requested by: rwatson (1)
* Grab Giant around calls to contigmalloc() and contigfree() somux2003-03-136-6/+44
| | | | that drivers converted to be MP safe don't have to deal with it.
* Memory allocated with contigmalloc() should be freed withmux2003-03-131-1/+4
| | | | contigfree(), not with free().
* Fix two minor mismatch reporting output errors.tobez2003-03-131-2/+2
| | | | | Reviewed by: phk MFC After: 3 weeks
* This corrects a longstanding endian bug in processing LLC/SNAP encodedharti2003-03-132-5/+5
| | | | | | | | | | | frames. A comment in if_atm.h suggests that both macros, that for extracting the ethertype and that for inserting it, handle their argument in host byte order. In fact, the inserting macro treated its argument as an opposite host order short and the calling code feeds it the result of htons(). This happens to work on i386, but fails on sparc. Make the macro use real host endianess. Reviewed by: kjc, atm@
* Complete the endianness support -- sparc64 can now do i386.ru2003-03-131-16/+10
| | | | | Tested on: sparc64 -> i386, i386 -> sparc64 Debugged by: elfdump(1)
* Greatly simplify the unlocking logic by holding the TCP protocol lock untilhsu2003-03-132-16/+4
| | | | | | after FIN_WAIT_2 processing. Helped with debugging: Doug Barton
* Document return type of wordfree() (void). Reduce the space betweentjr2003-03-131-3/+4
| | | | | struct member names and the corresponding comments so the lines don't wrap on 80-column terminals.
* o Partially revert rev. 1.103, fix 'ipfw show': dynamically adjust amaxim2003-03-131-11/+39
| | | | | | | | | | | | | | width of fields for packets and bytes counters. PR: bin/47196 Reviewed by: -audit Not objected by: luigi, des o Use %llu instead of deprecated %qu convert specification for ipfw packets and bytes counters. Noted by: des MFC after: 1 month
* Remove the check for more than one open if one is a write op.sos2003-03-131-5/+0
| | | | | | This allows using DVD+RW and DVD-RW as random storage, provided the 32K blocksize is honoured for DVD-RW (DVD+RW has built in read-modify-write).
* Dont free the stats struct, this has been changed by the new stat code.sos2003-03-131-2/+0
| | | | Spotted by: Ian Dowse <iedowse@maths.tcd.ie>
* Dont call dma->free unless dma is there.sos2003-03-131-1/+2
| | | | Spotted by: Ian Dowse <iedowse@maths.tcd.ie>
* In m_dup_pkthdr(), convert the supplied `how' argument into mallociedowse2003-03-131-1/+2
| | | | | flags when passing it into m_tag_copy_chain(), as m_tag* functions use malloc, not mbuf flags.
* Add pci id# for the sis648sos2003-03-132-0/+4
|
* - Add a lock for protecting against msleep(bp, ...) wakeup(bp) races.jeff2003-03-134-36/+46
| | | | | | | | | | - Create a new function bdone() which sets B_DONE and calls wakup(bp). This is suitable for use as b_iodone for buf consumers who are not going through the buf cache. - Create a new function bwait() which waits for the buf to be done at a set priority and with a specific wmesg. - Replace several cases where the above functionality was implemented without locking with the new functions.
* - Remove a dead check for bp->b_vp == vp in vtruncbuf(). This has not beenjeff2003-03-131-14/+17
| | | | | | | possible for some time. - Lock the buf before accessing fields. This should very rarely be locked. - Assert that B_DELWRI is set after we acquire the buf. This should always be the case now.
* - Remove a race between fsync like functions and flushbufqueues() byjeff2003-03-134-50/+34
| | | | | | | | | | | requiring locked bufs in vfs_bio_awrite(). Previously the buf could have been written out by fsync before we acquired the buf lock if it weren't for giant. The cluster_wbuild() handles this race properly but the single write at the end of vfs_bio_awrite() would not. - Modify flushbufqueues() so there is only one copy of the loop. Pass a parameter in that says whether or not we should sync bufs with deps. - Call flushbufqueues() a second time and then break if we couldn't find any bufs without deps.
* - Lock the buf before clearing flags.jeff2003-03-132-2/+2
|
* - Lock bufs before inspecting their flags.jeff2003-03-131-6/+9
|
* - Lock the buf before inspecting its contents.jeff2003-03-131-6/+4
|
OpenPOWER on IntegriCloud