summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* sprintf -> snprintf to avoid potential buffer overflow.steve1998-06-146-21/+27
| | | | | PR: 6907 Submitted by: Archie Cobbs <archie@whistle.com>
* Avoid an egcs pessimization for 64-bit signed division on i386's.bde1998-06-146-20/+20
| | | | | | | | | Pre-2.8 versions of gcc generate a call to __divdi3() for all 64-bit signed divisions, but egcs optimizes them to a shift and fixup when the divisor is a constant power of 2. Unfortunately, it generates a call to __cmpdi2() for the fixup, although all except possibly ancient versions of gcc and egcs do ordinary 64-bit comparisons inline.
* Added uoff_t.bde1998-06-141-1/+5
|
* Removed LOCORE ifdef. This header isn't used for locore stuff.bde1998-06-141-8/+5
| | | | | | Use uoff_t instead of `unsigned long long' for unsigned offsets. Fixed some style bugs.
* Define 64-bit types in terms of __int64_t and __uint64_t.bde1998-06-141-5/+9
| | | | | | | | | Define an unsigned version of off_t (uoff_t) if KERNEL is defined. This is useful for micro-optimizing expressions involving off_t's where you know that the values are non-negative but the compiler doesn't know it. Fixed a gratuitous ANSIism.
* Added typedefs for __int64_t and __uint64_t. These will be used to avoidbde1998-06-141-9/+24
| | | | | | | | explicit use of `[unsigned] long long' and `[u]quad_t'. Fixed disorder of and lack of comments for the types added in the previous two commits. Improved some comments. The comments should be elswhere (not duplicated in every MD file).
* Declare zs_cnattach.dfr1998-06-141-0/+29
|
* [Add missing files from previous commit]dfr1998-06-146-0/+527
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Major changes to the generic device framework for FreeBSD/alpha: * Eliminate bus_t and make it possible for all devices to have attached children. * Support dynamically extendable interfaces for drivers to replace both the function pointers in driver_t and bus_ops_t (which has been removed entirely. Two system defined interfaces have been defined, 'device' which is mandatory for all devices and 'bus' which is recommended for all devices which support attached children. * In addition, the alpha port defines two simple interfaces 'clock' for attaching various real time clocks to the system and 'mcclock' for the many different variations of mc146818 clocks which can be attached to different alpha platforms. This eliminates two more function pointer tables in favour of the generic method dispatch system provided by the device framework. Future device interfaces may include: * cdev and bdev interfaces for devfs to use in replacement for specfs and the fixed interfaces bdevsw and cdevsw. * scsi interface to replace struct scsi_adapter (not sure how this works in CAM but I imagine there is something similar there). * various tailored interfaces for different bus types such as pci, isa, pccard etc.
* Major changes to the generic device framework for FreeBSD/alpha:dfr1998-06-1432-754/+801
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Eliminate bus_t and make it possible for all devices to have attached children. * Support dynamically extendable interfaces for drivers to replace both the function pointers in driver_t and bus_ops_t (which has been removed entirely. Two system defined interfaces have been defined, 'device' which is mandatory for all devices and 'bus' which is recommended for all devices which support attached children. * In addition, the alpha port defines two simple interfaces 'clock' for attaching various real time clocks to the system and 'mcclock' for the many different variations of mc146818 clocks which can be attached to different alpha platforms. This eliminates two more function pointer tables in favour of the generic method dispatch system provided by the device framework. Future device interfaces may include: * cdev and bdev interfaces for devfs to use in replacement for specfs and the fixed interfaces bdevsw and cdevsw. * scsi interface to replace struct scsi_adapter (not sure how this works in CAM but I imagine there is something similar there). * various tailored interfaces for different bus types such as pci, isa, pccard etc.
* Don't define away __attribute__() for the non-gcc and old-gcc cases.bde1998-06-141-7/+7
| | | | | | | | | | | Using __attribute__() in non-ifdefed code is just wrong if it changes the semantics, and there is no way to ignore __attribute__() only in the benign cases. Don't use __attribute__ in non-ifdefed code here. It was a benign case, but we already have a macro (__unused) for this case. Expanded comment about gotchas for __CONCAT() in the non-ANSI case.
* Elf64_Shdr.sh_size should be Elf64_Size not Elf64_Word.dfr1998-06-141-2/+2
|
* Avoid a 64-bit division in procfs_readdir(). Fixed related overflows.bde1998-06-142-20/+12
| | | | | | | | | | | | Check args using the same expression as in fdesc and kernfs. The check was actually already correct, modulo overflow. It could be tightened up to either allow huge (aligned) offsets, treating them as EOF, or disallow all offsets beyond EOF. Didn't fix invalid address calculation &foo[i] where i may be out of bounds. Didn't fix shooting of foot using a private unportable dirent struct.
* Avoid a 64-bit division in kernfs_readdir(). Fixed related overflowsbde1998-06-141-3/+8
| | | | and arg checking.
* Don't compile in the use of poll() when building libc_r. This isn'tpeter1998-06-144-7/+21
| | | | | so much a "fix", rather a bandaid to buy time to fix it properly within the thread engine.
* Avoid 64-bit divisions and modulos. Fixed related overflows for weirdbde1998-06-141-9/+19
| | | | | | | args. This driver should not be used, since it calls uiomove() with interrupts disabled.
* If a short write, only loop if no error.jb1998-06-146-12/+12
|
* Avoid a 64-bit division in fdesc_readdir(). Fixed related overflowsbde1998-06-142-54/+28
| | | | | | | | and missing arg checking. Panic instead of returning bogus error codes or forgetting to check all cases if fdesc_readdir() gets called for a non-directory. This can't happen.
* Document EINVAL return value.bde1998-06-141-0/+7
|
* Deal with PROTO_IGMP and PROTO_IPIP packets correctly.brian1998-06-141-2/+28
| | | | | | | Submitted by: Mark Tinguely <tinguely@plains.NoDak.edu> This change will allow a PPP host enabled with the "-alias" option to run mrouted. This does not intend to forward the IGMP nor tunneled packets to another host on the far side if the tun0 interface.
* o Pass our negotiated number of VJ slots intobrian1998-06-143-10/+15
| | | | | | | | | | | | | | | | | | | | | sl_uncompress_tcp() and drop packets with slot numbers that are out of range. o Drop packets that want to use a slot that still has an IP header length of 0 (ie, the requested slot number is bogus again). Without this code, if the other side mis-behaves (and sends us garbage slot numbers), we happily ``adjust'' a memset(..., '\0', ...) TCP/IP header and promptly cr*p all over the stack before returning.... quickly followed by a SIGBUS. Dodgy ISP used by, and help locating the problem from: jmz Problem also seen by: Mourad de Riche <omnibus@image.dk> There's still a link lockup after this happens, but my bets are on the other side (who has already started sending rubbish) being to blame.
* Add a macro tweak.steve1998-06-134-8/+10
| | | | | PR: 6932 Submitted by: Nick Sayer <nsayer@quack.kfu.com>
* Mention all the environment variables that can be usedsteve1998-06-131-3/+7
| | | | | | | to specify the device. PR: 6927 Submitted by: Stefan Eggers <seggers@semyam.dinoco.de>
* Add doc/ja/FAQ and handbook, so that releases can build again.jhay1998-06-131-1/+7
|
* Correct the description of the last four fields.steve1998-06-132-5/+5
| | | | | PR: 6926 Submitted by: Josh Gilliam <josh@quick.net>
* miserable -> miserablysteve1998-06-132-4/+4
| | | | | PR: 6922 Submitted by: Sue Blake <sue@welearn.com.au>
* Minor tweaks in the AUTHORS section.steve1998-06-131-5/+4
| | | | | PR: 6921 Submitted by: Josh Gilliam <josh@quick.net>
* Add a symlink from /dev/vga to /dev/ttyv0 when using DEVFSsteve1998-06-133-3/+9
| | | | | | | for programs like doscmd. PR: 6920 Submitted by: Luoqi Chen <luoqi@chen.ml.org>
* Add a swissfrench keyboard mapping.steve1998-06-133-2/+125
| | | | | PR: 6916 Submitted by: tamone@eig.unige.ch
* Merge changes from vendor branch;peter1998-06-136-52/+98
| | | | | | | | - connector selection values (should fix aui/bnc), - non-shifting version of crc calculation using a table, - interrupt mask adjustments, - add some brackets where a #ifdef could break an if(), - don't reset the card unless it's up.
* Make -V expand it's arguments. This means that instead of 'make -V OBJS'peter1998-06-131-6/+8
| | | | | printing something useless (to a shell) like: ${SRCS:N*.h:R:S/$/.o/g} it will instead print the actual ${OBJS} value.
* Introduce std_pps_ioctl() to automagically DTRT.phk1998-06-134-51/+71
| | | | Add scaling capability to timex.offset, ntpd-4.0.73 will support this.
* Allow a protocol to specify that it does NOT want to be looped backjulian1998-06-131-3/+6
| | | | | even if it looks like it should (backwards compatibility with old broken code) should get rid of some annoying messags.
* join(1) is used by lorder, add it to build-tools. (otherwise, things getpeter1998-06-131-1/+2
| | | | | ugly when an a.out /usr/bin/join sees the elf LD_LIBRARY_PATH from a 'make world' and it's a.out ld.so tries to load the elf libc.so.)
* Update to draft-mogul-pps-api-02.txt as submitted to IETFphk1998-06-122-18/+54
|
* Note which version of Kirk's sources this corresponds to.julian1998-06-123-6/+6
|
* Fix the case when renaming to a file that you've just created and deleted,julian1998-06-123-66/+129
| | | | | | | | | | | | | | | that had an inode that has not yet been written to disk, when the inode of the new file is also not yet written to disk, and your old directory entry is not yet on disk but you need to remove it and the new name exists in memory but has been deleted but the transaction to write the deleted name to disk exists and has not yet been cancelled by the request to delete the non existant name. I don't know how kirk could have missed such a glaring problem for so long. :-) Especially since the inconsitency survived on the disk for a whole 4 second on average before being fixed by other code. This was not a crashing bug but just led to filesystem inconsitencies if you crashed. Submitted by: Kirk McKusick (mckusick@mckusick.com)
* Add the ``clear'' function.brian1998-06-125-6/+121
| | | | Mostly submitted by: "Stephane E. Potvin" <sepotvin@videotron.ca>
* Remove 3 occurances of __FUNCTION__julian1998-06-122-6/+5
|
* Fix stupid typo, I had only tested this in elf mode.peter1998-06-121-2/+2
|
* Remove '\n' from `show throughput'. ctime() already doesbrian1998-06-121-3/+3
| | | | a linefeed.
* Correct arg hackbrian1998-06-122-6/+6
| | | | Submitted by: David Leonard <leonard@csee.uq.edu.au>
* o Maintain a link-type mask for open datalinks as well asbrian1998-06-125-65/+92
| | | | | | | | | | | for all datalinks in a bundle. Ppp now deals correctly with link types that are changed while open o When changing the type of the last AUTO link, only clear the interface if we're not in PHASE_NETWORK. This allows us to switch to -ddial mode while we have a connection without suddenly unexpectedly throttling ourselves by clearing the interface configuration. Problem area noted by: Aaron Jeremias Luz <aaron@csh.rit.edu>
* Always support an elf kernel when given one.peter1998-06-121-2/+0
|
* #include <arpa/inet.h>peter1998-06-121-1/+2
|
* "./strip maybe_stripped" doesn't work too well if maybe_stripped is anpeter1998-06-121-1/+1
| | | | elf executable..
* The doscmd build process and doscmd.kernel loader is very a.out specificpeter1998-06-121-2/+5
| | | | and doesn't fly too well on in an elf enviroment yet.
* Only build rtld-aout if we're in an a.out build environment.peter1998-06-121-2/+5
|
* Understand elf library naming rules for libtermlib alias.peter1998-06-121-0/+9
| | | | Don't do the libtermcap un-bump hack for anything but a.out
* Add -DFREEBSD_AOUT to CFLAGS, to ensure that <link.h> gives us the correctpeter1998-06-121-2/+2
| | | | definitions, even when compiling the a.out ld under elf.
* Use the elf libalias name when compiled under elf.peter1998-06-121-1/+5
|
OpenPOWER on IntegriCloud