1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-22 11:17:19 +00:00
freebsd/usr.bin
Marcel Moolenaar 4e92419dcd Do not ignore any possible errors that fseeko() may have. The fact
is that fseeko() fails in very predictable and frequent ways on ia64.
This is because the offset is actually an address in the process'
address space, which on ia64 can be larger than long (for lseek) or
off_t (for fseeko). The crux is the signedness. The register stack
and memory stack are in region 4 on ia64. This means that the sign bit
is 1. The large positive virtual address is wrongly interpreted as
a negative file offset.

There's no quick fix. Even if you get around the API by using a
SEEK_SET up to LONG_MAX and follow it up with a SEEK_CUR for the
remainder, the kernel simply cannot deal with it. and the second
seek will just fail.

Therefore, this change does not actually fix the root cause. It just
makes sure we're not spitting out all kinds of garbage or that the
get_struct() function in particular does not cause truss(1) to exit.
This, I might add, invariably happened way too soon for truss(1) to
be of any use on ia64...
2003-11-13 09:04:24 +00:00
..
alias
apply
asa
at
atm Build the NgATM user space SSCOP tool (unless NOATM is defined). 2003-10-29 10:30:54 +00:00
awk
banner
basename
biff
bluetooth Include <nlist.h> for nlist-related declarations instead of depending on 2003-10-13 05:30:20 +00:00
brandelf Remove MAINTAINER lines. 2003-06-14 19:32:52 +00:00
bzip2 Remove MAINTAINER lines. 2003-06-14 19:32:52 +00:00
bzip2recover Remove MAINTAINER lines. 2003-06-14 19:32:52 +00:00
c89
c99
calendar Add coup d'état in Chile, 1973. 2003-10-26 01:18:08 +00:00
cap_mkdb
catman Add (unsigned char) cast to ctype macros 2003-06-10 02:18:00 +00:00
chat Rename logf --> chat_logf to avoid naming conflicts 2003-10-31 06:22:03 +00:00
checknr
chkey
chpass Do not compare unsigned int values with ULONG_MAX. The comparison is 2003-07-11 05:47:05 +00:00
cksum
cmp phk added the -x option in May 2000, but only for regular files; for 2003-06-19 07:24:26 +00:00
col
colcrt
colldef Get rid of duplicates. 2003-09-14 13:41:59 +00:00
colrm
column
comm
compile_et
compress Don't truncate the output file before making sure that we can 2003-06-14 13:41:31 +00:00
csplit
ctags
cut
dig
dirname
dnskeygen
dnsquery
doscmd Get rid of duplicates. 2003-09-14 13:41:59 +00:00
du
ee o Fix identation. 2003-06-30 11:51:21 +00:00
elf2aout
elfdump Removed another spurious semicolon forgotten in the previous commit. 2003-09-06 11:55:05 +00:00
enigma Call crypt() directly instead of taking a detour through makekey. 2003-10-09 10:00:53 +00:00
env Removed (after the env(1)/printenv(1) split) extraneous arguments 2003-11-02 21:46:11 +00:00
expand
false
fetch Finish the reversion of rev. 1.52. 2003-09-08 18:58:47 +00:00
file mdoc(7): Use the new feature of the .In macro. 2003-09-08 19:57:22 +00:00
file2c
find State that in -exec ... ; the semicolon should be quoted if invoked from 2003-07-25 17:32:43 +00:00
finger Add code to keep going if you're really intent on fingering someone, but 2003-06-28 23:11:41 +00:00
fmt
fold
from
fstat Do not cache and correctly free() dosmount entry in case of errors. 2003-09-23 16:44:17 +00:00
fsync
ftp Restore INET6 option from config.h. 2003-06-25 15:53:25 +00:00
gcore
gencat
getconf mdoc(7): Use the new feature of the .In macro. 2003-09-08 19:57:22 +00:00
getopt
gprof Remove MD bits for unsupported architectures. 2003-10-30 12:21:31 +00:00
head
hesinfo
hexdump
host
id
indent err() on allocation failure. WARNS=9 compliant 2003-06-15 09:28:17 +00:00
ipcrm
ipcs Cosmetic fix on some TIME related columns. 2003-10-30 16:52:14 +00:00
join
jot Fix jot so that 'jot -r -w %d 1 1 4' never prints 4. Previously, it 2003-08-01 16:23:24 +00:00
kdump
keylogin
keylogout
killall Use the 3-component version of the KERN_PROC_PROC sysctl. 2003-09-27 08:14:37 +00:00
ktrace
ktrdump
lam
last Tidy up synopsis. 2003-08-17 10:24:53 +00:00
lastcomm
ldd
leave
less
lessecho
lesskey
lex Point to the new C++ include files location. 2003-07-11 05:30:58 +00:00
limits
locale Move scmp() to more appropriate location 2003-06-26 11:05:56 +00:00
locate
lock Eliminate last three uses of varargs.h in the tree. These three files 2003-09-01 04:12:18 +00:00
lockf
logger
login Remove utmp references, no longer done by login(1) in 5.x. 2003-07-08 13:01:28 +00:00
logname
look
lorder
lsvfs
m4
mail
make Fix a bug in variable parsing code that could cause a segfault. 2003-10-06 17:37:20 +00:00
makewhatis
mesg
minigzip
ministat Attached is a small patch to ministat that separates the 2003-10-31 13:25:43 +00:00
mkdep
mkfifo
mklocale Add GB2312 to the list of supported encodings. Cross-reference gb2312(5). 2003-11-08 03:19:26 +00:00
mkstr - Document gencat(1) 2003-08-22 17:55:56 +00:00
mktemp
msgs
mt Change /dev/rsa0 and /dev/rwt0 references to sa0 and wt0. 2003-09-05 15:28:09 +00:00
ncal
ncplist
ncplogin
netstat Replace the if_name and if_unit members of struct ifnet with new members 2003-10-31 18:32:15 +00:00
newgrp Use (char *)NULL to terminated to argument list for execl(). 2003-10-30 15:14:34 +00:00
newkey
nfsstat
nice
nl Tidy up usage message. 2003-08-17 10:33:54 +00:00
nohup
objformat
opieinfo
opiekey
opiepasswd
pagesize
passwd
paste
pathchk
pr
printenv
printf
quota Remove redundant declarations. 2003-08-05 06:50:28 +00:00
renice
rev
rlogin Use the POSIX tty interface instead of the old interface. This makes 2003-09-28 08:54:56 +00:00
rpcgen Fix broken -a functionality. 2003-06-19 09:19:51 +00:00
rpcinfo Add FBSDID. Use errx() instead of fprintf()/exit(). Call exit() at the end 2003-09-07 15:26:44 +00:00
rs
rsh Remove duplicate #include. Do not \n terminate errx() arg. 2003-09-07 15:30:42 +00:00
rup More xdrproc_t warnings. 2003-10-26 04:57:32 +00:00
ruptime
rusers More xdrproc_t warnings. 2003-10-26 04:57:32 +00:00
rwall More xdrproc_t warnings. 2003-10-26 04:57:32 +00:00
rwho
sasc
script Introduce arguments the standard way. In .Ar command ..., ... is not an 2003-09-07 15:43:50 +00:00
sed Fix the case where the file is not in the current directory. 2003-11-04 22:39:25 +00:00
shar
showmount More xdrproc_t issues. 2003-10-26 04:58:44 +00:00
smbutil
sockstat make sockstat not print wierd addresses on not connected unix domain sockets 2003-07-19 06:23:56 +00:00
split
stat Resolve conflicts 2003-10-06 01:55:17 +00:00
su Be sure to restore foreground group to parent su before parent su 2003-11-04 14:51:34 +00:00
systat Copy cur's snap_time to last when refreshing statistics. Fixes problem 2003-11-01 02:06:02 +00:00
tabs
tail Removed check of st_rdev changing in the -F support. st_rdev for regular 2003-08-14 11:02:03 +00:00
talk Use the new style struct sockaddr instead of osockaddr in system calls 2003-09-28 09:45:56 +00:00
tcopy Change /dev/rsa0 and /dev/rwt0 references to sa0 and wt0. 2003-09-05 15:28:09 +00:00
tee
telnet Make sure that a "make release" (more accurately the bit that makes 2003-07-24 17:19:15 +00:00
tftp Fix BSS buffer overflow in makeargv(). 2003-10-12 00:27:55 +00:00
time Uses wait4() instead of wait3() when waiting for a child process to exit. 2003-10-17 07:53:30 +00:00
tip Baud rate capability is br', not ba'. 2003-09-06 18:36:51 +00:00
top Changes to allow top to decide whether or not to show multiple threads per 2003-07-17 23:56:40 +00:00
touch
tput
tr Back out [:upper:] and [:lower:] classes sorting, it is not required 2003-08-05 07:59:46 +00:00
true
truncate
truss Do not ignore any possible errors that fseeko() may have. The fact 2003-11-13 09:04:24 +00:00
tset
tsort Removed unused macro definition 2003-09-04 20:05:46 +00:00
tty
uac
ul
uname Make the sysctlbyname stuff look like the 2-level MIB stuff. This 2003-07-01 20:15:28 +00:00
unexpand
unifdef Improve expression evaluation debugging output, tidy up the handling of 2003-07-01 15:30:43 +00:00
uniq
units Add r_earth, r_moon, r_sun, representing the terrestrial, lunar, and 2003-11-05 22:29:48 +00:00
unvis
usbhidaction
usbhidctl
users
uudecode
uuencode
uuidgen
vacation Remove MAINTAINER= lines from individual Makefiles in favor of the 2003-07-07 03:54:04 +00:00
vgrind Fix warning about cgetent() argument. 2003-10-26 05:03:11 +00:00
vi FIx catalog name I overlook in prev. obsolete locales removing 2003-06-23 13:08:22 +00:00
vis
vmstat make minimum column size for interrupt name be the heading (depends upon 2003-11-09 20:39:56 +00:00
w Do not print the result of strftime() in case of failure, the content is 2003-09-07 16:31:32 +00:00
wall
wc
what
whereis
which
who Fix a warning that showed up on 64 bit systems. It was actually a real 2003-10-26 05:05:48 +00:00
whois Back out .SU workaround - people at whois-servers.net set up 2003-06-29 23:56:31 +00:00
window Fix a `cast to pointer from integer of different size' warning. 2003-09-17 03:58:52 +00:00
write
xargs - Use _PATH_TTY and _PATH_DEVNULL macros. 2003-06-13 17:05:41 +00:00
xinstall Since (x)install is pretty unhelpfull and just spits out a Usage 2003-07-11 20:51:16 +00:00
xlint The size of a long double is 16 bytes, not 12 bytes. 2003-11-03 05:09:57 +00:00
xstr
yacc
yes
ypcat Stop gcc warnings 2003-10-26 05:28:01 +00:00
ypmatch Stop gcc warnings 2003-10-26 05:28:01 +00:00
ypwhich Fix up warnings. There were some biggies here. There seems to be two 2003-10-26 05:30:40 +00:00
Makefile Build lint(1) on ia64. 2003-11-03 05:14:47 +00:00
Makefile.inc