David E. O'Brien
3a77dcde47
The brokenness in ix86_expand_clrstr is quite visible when you
...
compare the function with ix86_expand_movstr.
Submitted by: Tor Egge
2002-06-04 18:06:12 +00:00
David E. O'Brien
ec9ec8af6a
Gcc 3.1 (-O) now generates broken inline code for memset in some cases.
...
This broke newfs (newfs left some garbage in a bitmap).
The ASM for:
#include <string.h>
int x, foo[100];
main()
{
memset(&foo[0], 0, x);
}
is (at least if you have fixed function alignment):
.file "z.c"
.text
.p2align 2,,3
.globl main
.type main,@function
main:
pushl %ebp
movl %esp, %ebp
pushl %edi
pushl %eax
movl x, %ecx
xorl %eax, %eax
shrl $2, %ecx
movl $foo, %edi
cld
rep
stosl
andl $-16, %esp
<-- the lower bits of `len' should be loaded
near here
testl $2, %edi <-- this seems to be meant to test the 2^1
bit in `len' (not alignment of the pointer
like it actually does). %edi is the wrong
register for holding the bits, since it is
still needed for the pointer.
je .L2
stosw
.L2:
testl $1, %edi <-- similarly for the 2^0 bit.
je .L3
stosb
.L3:
movl -4(%ebp), %edi
leave
ret
.Lfe1:
.size main,.Lfe1-main
.comm foo,400,32
.comm x,4,4
.ident "GCC: (GNU) 3.1 [FreeBSD] 20020509 (prerelease)"
This seems to only result in (len % 3) bytes not being cleared, since gcc
doesn't seem to use the builtin memset unless it knows that the pointer is
aligned. If %edi could be misaligned, then too many bytes would be set.
Submitted by: BDE
2002-06-04 18:04:27 +00:00
Matt Jacob
20120272f2
Add REPORT LUNS basic infrastructure.
2002-06-04 17:41:47 +00:00
Maxim Sobolev
b513ac40e2
Move patches into the src/contrib/tar.
...
Requested by: ps
Reviewed by: md5(1)
2002-06-04 17:31:16 +00:00
Jake Burkholder
3671cacae1
Implement _Qp_sqrt. I've been unable to find a C program that gcc generates
...
a call to this for, but apparently somehing in libstdc++ does.
2002-06-04 17:02:27 +00:00
Tim J. Robbins
5b96a60711
Display job status correctly when a pipeline is suspended.
2002-06-04 15:26:00 +00:00
Dag-Erling Smørgrav
fc281c6159
Don't build perl if NO_PERL is defined.
2002-06-04 15:20:11 +00:00
Tim J. Robbins
5179c2f25f
Describe finished jobs as "Done", not "Exit" (SUSv3)
2002-06-04 14:40:33 +00:00
Tim J. Robbins
cb1a4fb419
Don't output state' and
current' fields for processes that aren't
...
leaders in -l option to jobs(1).
2002-06-04 14:37:13 +00:00
Tim J. Robbins
d982b3a5f6
Missing prototypes from previous commit.
2002-06-04 13:13:54 +00:00
Tim J. Robbins
41d09fe083
Correct minor spacing problem in output of jobs -l for pipelines.
2002-06-04 13:01:51 +00:00
Tim J. Robbins
e5341cbb17
Quote alias values in the output of the alias(1) builtin so they are
...
suitable for re-input to the shell (SUSv3)
2002-06-04 12:59:12 +00:00
Yoshihiro Takahashi
4ffc41abdd
Install MD documentations in ${TARGET} directory instead of ${TARGET_ARCH}.
2002-06-04 12:05:29 +00:00
Maxim Sobolev
41965b2932
Don't forget to include ../Makefile.inc.
2002-06-04 11:28:09 +00:00
Maxim Sobolev
0d041c5ae8
Add bmake bits for building GNU tar from src/contrib/tar.
2002-06-04 11:14:49 +00:00
Maxim Sobolev
bf15d27233
Send our ancienv GNU tar into Attic.
...
Suggested by: ps
2002-06-04 11:14:06 +00:00
Maxim Sobolev
0f4e165dc0
Add importing/upgrading instructions.
2002-06-04 11:08:12 +00:00
Maxim Sobolev
2eb8d11ba7
Add razor used for shaving out GNU Tar.
2002-06-04 10:40:50 +00:00
Tim J. Robbins
d1ccc822a5
Wrap lines correctly for the `l' command.
2002-06-04 10:40:14 +00:00
Maxim Sobolev
011b358aba
Virgin import (trimmed) of GNU Tar version 1.13.25.
2002-06-04 10:37:47 +00:00
Tim J. Robbins
4f18100d73
Respect setting of the COLUMNS environment variable (SUSv3)
2002-06-04 10:20:10 +00:00
Tim J. Robbins
a28edf9a4a
Ignore empty COLUMNS environment variable. COLUMNS should take precedence
...
over TTY width found via ioctl() (SUSv3)
2002-06-04 10:11:29 +00:00
Tim J. Robbins
30e9580eca
Document the fact that the `l' command uses the COLUMNS environment
...
variable (SUSv3)
2002-06-04 10:01:06 +00:00
Tim J. Robbins
3714ae1254
Ignore COLUMNS environment variable if it is empty (SUSv3)
2002-06-04 10:00:08 +00:00
Tim J. Robbins
8358edb6c7
Respect the setting of the COLUMNS environment variable, use it instead of
...
the TTY width obtained by ioctl() when set & non-null. (SUSv3)
2002-06-04 09:52:30 +00:00
Tim J. Robbins
a51b574c46
Sort options in Description section.
2002-06-04 09:17:30 +00:00
Tim J. Robbins
debb184261
Note SUSv2 conformance.
2002-06-04 09:16:09 +00:00
Tim J. Robbins
91b14bffac
confstr() returns (size_t)-1 on failure. Check for this explicitly instead
...
of trying to see if an unsigned number is less than zero.
2002-06-04 08:45:38 +00:00
Juli Mallett
6aab7a863f
Add support for non-numeric key lookup via the 'cmds' file, by using the key
...
base as the key number.
2002-06-04 06:14:11 +00:00
Juli Mallett
22ed0c9ade
NODEV is defined the same in _KERNEL and !_KERNEL case, so move it out from
...
the preprocessor conditional, and remove the now-empty #else.
Reviewed by: asmodai
2002-06-04 05:48:38 +00:00
Juli Mallett
51f7a48bf0
Err, duh, free(3) doesn't set its argument to NULL... Fix realloc of a freed
...
chunk.
2002-06-04 04:08:18 +00:00
Garance A Drosehn
5e127035e4
Change some "process id" variables from 'int' to 'pid_t', renaming some
...
of them to keep better track of which-is-which (multiple variables were
named 'pid'). Moved a global pid-variable into the only routine that
used it. Net result: fixes two compile-time warnings...
MFC after: 2 weeks
2002-06-04 03:40:24 +00:00
Garance A Drosehn
0dcfaee0af
Cosmetic improvements to some of the syslog() calls in here (in some cases
...
simply getting the indentation right when the statement wraps).
MFC after: 2 weeks
2002-06-04 02:48:12 +00:00
Garance A Drosehn
609614565f
Fix all the 'return' statements in here to follow style(9).
...
MFC after: 2 weeks
2002-06-04 01:28:15 +00:00
Garance A Drosehn
4a13c4d9ee
Avoid checking WIFEXITED and WTERMSIG in some error situations where the
...
value in wstatus is not related to the process that we care about.
MFC after: 2 weeks
2002-06-04 01:16:13 +00:00
Mike Barcroft
cb263c3594
Use POSIX macros for wait(2)-style status information instead of the
...
deprecated 4.2/4.3BSD wait union. Fix some nearby pid_t/int
confusion.
2002-06-03 23:13:11 +00:00
Jeff Roberson
494273bead
Add a comment describing a resource leak that occurs during a failure case
...
in obj_alloc.
2002-06-03 22:59:19 +00:00
John Baldwin
30c00e6c41
Backout revision 1.2 since it didn't work and replace it with a fix that
...
actually does work. Ignore errors from kldload(2) if the errno value is
EEXIST. It would help if this return value were documented in the
kldload(2) manual page.
2002-06-03 22:36:52 +00:00
Prafulla Deuskar
a7fabc2b60
Added support for 82545EM and 82546EB based adapters.
...
Added Vlan support.
MFC after: 1 week
2002-06-03 22:30:51 +00:00
Ian Dowse
5c97ca54e5
Use a per-device worker thread to avoid blocking in mdstrategy()
...
until the I/O completes. This fixes some easily reproducable deadlocks
that occur when using md(4) with GEOM.
Reviewed by: phk
2002-06-03 22:09:04 +00:00
Brian Somers
7b5e6f62fb
Add a missing ``a''.
2002-06-03 21:36:20 +00:00
Anton Berezin
9e1bfe0f3c
Recognize 0xbe as an uppercase character.
...
Approved by: ache
2002-06-03 21:30:28 +00:00
Garance A Drosehn
0760287064
Stop using the depreciated 'union wait' definitions, moving to a more
...
standard handling of wait()-related routines.
Submitted by: mike
MFC after: 2 weeks
2002-06-03 20:47:01 +00:00
Juli Mallett
ee3cbef6be
Make the manpage consistent with the code on the subject of comments, as to
...
not change the code to always do the "GNU" thing, as it's possible people
rely on BSD m4(1) traditionally resetting comment characters in case of no
arguments to the changecom function.
PR: bin/17480 (I think this satisfies the problem report)
2002-06-03 20:35:35 +00:00
John Baldwin
e364f0da42
Fix handling of the 'noError' variable. According to the code comments,
...
one can set the 'noError' variable to ignore any errors that occur for the
next command. However, the code was only unsetting 'noError' when an error
actually occurred, so if you set 'noError', the next command completed ok,
and the command after that failed, the second command's failure would be
ignored. This fixes this by performing the 'noError' check earlier and
then unsetting 'noError' after every command that is run.
Sponsored by: The Weather Channel
2002-06-03 19:42:49 +00:00
John Baldwin
77218da374
Add a 'mediaClose' script command to close the open media. An example use
...
would be to unmount the CD you installed from and prompt the user to
eject it before rebooting the machine.
Sponsored by: The Weather Channel
2002-06-03 19:39:28 +00:00
Maxim Sobolev
70225aabb7
Correct bswap64() prototype.
...
Submitted by: glewis
MFC after: 1 day
(assuming that there is re's approval)
2002-06-03 19:04:10 +00:00
Ruslan Ermilov
801a888ee3
Do not overwrite mm locale files.
2002-06-03 15:12:42 +00:00
Tim J. Robbins
1b2edc04ee
Correct History: cal(1) appeared in V5, not V6.
2002-06-03 15:02:02 +00:00
Tim J. Robbins
1be157dc3d
Correct history (again): V3 had a kill command, only it was in section 8,
...
not 1.
2002-06-03 14:59:49 +00:00