Brian Somers [Fri, 17 May 2002 13:38:36 +0000 (13:38 +0000)]
Change ``dmesg -a'' to ``dmesg''.
The change was introduced in src/etc/security 1.53 almost a year ago
in an attempt to see ipfw deny message logs.
However, ipfw deny/reject logs have been displayed since version 1.13
of the same file as a separate ``job'' and have since moved to
src/etc/periodic/security/500.ipfwdenied.
Juli Mallett [Fri, 17 May 2002 12:27:02 +0000 (12:27 +0000)]
Group the output chunks differently, to try to match BSD/OS output. Switch
to using arithmatic to determine buffer sizes to encode into.
Diane Bruce pointed out to me that BSD/OS did MIME too, so I want to match
their output, too, since my decision of 8 output groups was wholly arbitrary.
Fix the case:
cp file nonexistent/
which create nonextstent as file while trailing slash clearly indicates
that nonexistent must be a directory.
Also fix the case:
cp file1 file2/
which should produce error.
Juli Mallett [Fri, 17 May 2002 11:16:49 +0000 (11:16 +0000)]
Revert part of the previous revision. Changing exit() to return() in main()
is wrong, even though our C compiler doesn't understand that exit() eats
control of the program, and as such can sometimes complain that main() reaches
the bottom of its body without an explicit return().
Aside from that, the functional usefulness of changing it is effectively nil,
so back it out.
Peter Wemm [Fri, 17 May 2002 08:59:13 +0000 (08:59 +0000)]
Move LIB1ASMFUNCS from the SYMS variable and explicitly add it to OBJS
later. Otherwise make will try and build the supposedly assembler .o
files from libgcc2.c - which does not work too well (the .o's have no
content)
Juli Mallett [Fri, 17 May 2002 07:55:24 +0000 (07:55 +0000)]
Simplify prerun() in the case where there are no arguments. Can't do -I or -J
substitution if `utility' is not specified and we're using the buildin echo;
It has no arguments for us to abuse.
Peter Wemm [Fri, 17 May 2002 07:55:08 +0000 (07:55 +0000)]
Put on peril-sensitive sunglasses and risk touching gcc related build glue
again. Try and deal with platforms that provide their own crtbegin/end asm
files (ia64 for example). crtstuff.c does not actually work on ia64 since
libgcc.a doesn't have a few key support functions when built on ia64 so it
is compulsory to use crtbegin.asm and crtend.asm.
John Baldwin [Fri, 17 May 2002 05:45:39 +0000 (05:45 +0000)]
- Apparently, the Alpha ABI mandates that arguments be passed sign-extended
regardless of if they are signed or unsigned since it is easier to work
with sign-extended values. Thus, remove the disabled zapnot to
zero-extend the sign-extended value we read from *p in atomic_cmpset_32()
since the cmpval we are comparing against should already be
sign-extended.
- To ensure that the compiler knows to sign-extend the upper 32 bits of
cmpval rather than leaving garbage in there, cast the appropriately in
the constraints section.
Ruslan Ermilov [Fri, 17 May 2002 05:41:47 +0000 (05:41 +0000)]
Back out revision 1.30 change.
cc1plus can apparently be built if you happen to have
/usr/bin/gperf, or set CXX to point to a C++ compiler
that can build gperf(1) in the bootstrap-tools stage
of buildworld.
Juli Mallett [Fri, 17 May 2002 05:27:52 +0000 (05:27 +0000)]
Stop this program's abuse of malloc(3). Its return value doesn't need these
ugly explicit casts, and its argument doesn't need explicitly cast to u_int,
especially if sizeof() is being used.
Tim J. Robbins [Fri, 17 May 2002 05:20:30 +0000 (05:20 +0000)]
Un-deprecate od(1): rename the `deprecated' variable to `odmode', remove the
deprecation warning from the utility and manual page. Since this utility
is required by POSIX, it's not likely to be removed any time soon.
This is leading up to the addition of the P1003.1-2001 -s -A -j -N -t options.
Juli Mallett [Fri, 17 May 2002 05:11:07 +0000 (05:11 +0000)]
Clean up malloc(3)'s argument. Remove casts which do nothing when we're
using sizeof() anyway. Use slightly more consistent (per-file) error
reporting for malloc(3) returning NULL. If "malloc failed" was being printed,
don't use err(3). If a NULL format is being used, use err(3). In one case
errx(3) was being used with strerror(3), so just use err(3).
David E. O'Brien [Fri, 17 May 2002 03:43:47 +0000 (03:43 +0000)]
Update to Binutils 2.12.0 and stick to the native emulation for now.
This lets us get on the with the task at hand -- porting FreeBSD.
We can get fancy later on.
David E. O'Brien [Fri, 17 May 2002 03:10:33 +0000 (03:10 +0000)]
Update to Binutils 2.12.0 and stick to the native emulation for now.
This lets us get on the with the task at hand -- porting FreeBSD.
We can get fancy later on.
David E. O'Brien [Fri, 17 May 2002 03:08:15 +0000 (03:08 +0000)]
bsd.lib.mk now understands what to do with .asm files.
So we can refer to these files by their real name vs. playing tricks
renaming them during the build.
David E. O'Brien [Fri, 17 May 2002 03:00:33 +0000 (03:00 +0000)]
Do not cut `docs' out of the build with NO_CXX.
There are no longer GNU C++ specific info files, and it was a bug with Gcc
2.95 that NO_CXX would cause the C and CPP info files to not be installed.
Andrew R. Reiter [Fri, 17 May 2002 00:30:06 +0000 (00:30 +0000)]
- Further replacing of UM_* macros with the appropriate function call. I
am fairly certain that this should do it and that I may now remove the
UM_ macros from port.h. I will, however, wait a few days to ensure
that these can be safely removed.
Peter Wemm [Thu, 16 May 2002 21:58:57 +0000 (21:58 +0000)]
OOPS! rev 1.16 accidently changed the default outfile from stderr to
stdout. Unfortunately, DES mfc'ed this change in 1.15.2.1 (this
part probably should not have been) so it is broken there too.
truss is documented to use stderr, and other implementations use stderr.
Submitted by: Arne Dag Fidjestøl <adf@idi.ntnu.no>
Ian Dowse [Thu, 16 May 2002 19:08:03 +0000 (19:08 +0000)]
Complete the separation of ext2fs from ufs by copying the remaining
shared code and converting all ufs references. Originally it may
have made sense to share common features between the two filesystems,
but recently it has only caused problems, the UFS2 work being the
final straw.
All UFS_* indirect calls are now direct calls to ext2_* functions,
and ext2fs-specific mount and inode structures have been introduced.
Maxime Henrion [Thu, 16 May 2002 17:09:41 +0000 (17:09 +0000)]
o Fix vfs_copyopt(), the first argument to bcopy() is the source,
not the destination.
o Remove some code from vfs_getopt() which was making the interface
more complicated to use for a very slight gain.
Ruslan Ermilov [Thu, 16 May 2002 15:22:58 +0000 (15:22 +0000)]
MD_EXEC_PREFIX doesn't work for the cross-arch compiler.
The change also makes the `cc -print-search-dirs' output
sane (the pre-3.1 way) in the non-cross case.
Ruslan Ermilov [Thu, 16 May 2002 15:18:13 +0000 (15:18 +0000)]
Make it possible to build a cross compiler for alpha,
ia64 and sparc64 on systems that do not have atoll(3).
The "cross" here doesn't necessarily mean cross-arch.
Brian Somers [Thu, 16 May 2002 13:34:20 +0000 (13:34 +0000)]
Handle MS-CHAPv2 authentication correctly via the RADIUS server (if it's
configured).
Handle internal failures in radius_Authenticate() correctly.
Bump the ppp version number.
This doesn't yet work with MPPE. More will follow.
Maxim Sobolev [Thu, 16 May 2002 10:57:10 +0000 (10:57 +0000)]
Rename struct scr_size into struct _scr_size and struct scrmap into
struct _scrmap, so that it doesn't break C++ programs (name of element of
the structure is the same as the name of the scructure itself).
Warner Losh [Thu, 16 May 2002 06:32:37 +0000 (06:32 +0000)]
Use splnet() when we need to block timeouts rather than splimp() since
the former blocks software interrupts, while the latter blocks
hardware interrupts.
Avoid one place where I'm at splnet across a call to copyout. Leave
one in place to give bde something to complain about :-). Actaully,
I'll fix it in a subsequent commit.