Author: ed
Date: Sun Nov 6 08:18:05 2011
New Revision: 227192
URL: http://svn.freebsd.org/changeset/base/227192
Log:
Add missing static keywords to unexpand(1)
Modified:
head/usr.bin/unexpand/unexpand.c
Modified: head/usr.bin/unexpand/unexpand.c
=
Author: ed
Date: Sun Nov 6 08:17:59 2011
New Revision: 227191
URL: http://svn.freebsd.org/changeset/base/227191
Log:
Add missing static keywords to uname(1)
Modified:
head/usr.bin/uname/uname.c
Modified: head/usr.bin/uname/uname.c
Author: ed
Date: Sun Nov 6 08:17:42 2011
New Revision: 227188
URL: http://svn.freebsd.org/changeset/base/227188
Log:
Add missing static keywords to tr(1)
Modified:
head/usr.bin/tr/tr.c
Modified: head/usr.bin/tr/tr.c
===
Author: ed
Date: Sun Nov 6 08:17:29 2011
New Revision: 227186
URL: http://svn.freebsd.org/changeset/base/227186
Log:
Add missing static keywords to tcopy(1)
Modified:
head/usr.bin/tcopy/tcopy.c
Modified: head/usr.bin/tcopy/tcopy.c
Author: ed
Date: Sun Nov 6 08:17:11 2011
New Revision: 227183
URL: http://svn.freebsd.org/changeset/base/227183
Log:
Add missing static keywords to split(1)
Modified:
head/usr.bin/split/split.c
Modified: head/usr.bin/split/split.c
Author: ed
Date: Sun Nov 6 08:17:05 2011
New Revision: 227182
URL: http://svn.freebsd.org/changeset/base/227182
Log:
Add missing static keywords to seq(1)
Modified:
head/usr.bin/seq/seq.c
Modified: head/usr.bin/seq/seq.c
==
Author: ed
Date: Sun Nov 6 08:16:59 2011
New Revision: 227181
URL: http://svn.freebsd.org/changeset/base/227181
Log:
Add missing static keywords to rwho(1)
Modified:
head/usr.bin/rwho/rwho.c
Modified: head/usr.bin/rwho/rwho.c
=
Author: ed
Date: Sun Nov 6 08:16:53 2011
New Revision: 227180
URL: http://svn.freebsd.org/changeset/base/227180
Log:
Add missing static keywords to rwall(1)
Modified:
head/usr.bin/rwall/rwall.c
Modified: head/usr.bin/rwall/rwall.c
Author: ed
Date: Sun Nov 6 08:16:47 2011
New Revision: 227179
URL: http://svn.freebsd.org/changeset/base/227179
Log:
Add missing static keywords to rusers(1)
Modified:
head/usr.bin/rusers/rusers.c
Modified: head/usr.bin/rusers/rusers.c
===
Author: ed
Date: Sun Nov 6 08:16:41 2011
New Revision: 227178
URL: http://svn.freebsd.org/changeset/base/227178
Log:
Add missing static keywords to ruptime(1)
Modified:
head/usr.bin/ruptime/ruptime.c
Modified: head/usr.bin/ruptime/ruptime.c
==
Author: ed
Date: Sun Nov 6 08:16:35 2011
New Revision: 227177
URL: http://svn.freebsd.org/changeset/base/227177
Log:
Add missing static keywords to rs(1)
Modified:
head/usr.bin/rs/rs.c
Modified: head/usr.bin/rs/rs.c
===
Author: ed
Date: Sun Nov 6 08:16:29 2011
New Revision: 227176
URL: http://svn.freebsd.org/changeset/base/227176
Log:
Add missing static keywords to quota(1)
Modified:
head/usr.bin/quota/quota.c
Modified: head/usr.bin/quota/quota.c
Author: ed
Date: Sun Nov 6 08:19:07 2011
New Revision: 227202
URL: http://svn.freebsd.org/changeset/base/227202
Log:
Add missing static keywords to xinstall(1)
Modified:
head/usr.bin/xinstall/xinstall.c
Modified: head/usr.bin/xinstall/xinstall.c
=
Author: ed
Date: Sun Nov 6 08:17:53 2011
New Revision: 227190
URL: http://svn.freebsd.org/changeset/base/227190
Log:
Add missing static keywords to ul(1)
Modified:
head/usr.bin/ul/ul.c
Modified: head/usr.bin/ul/ul.c
===
Author: ed
Date: Sun Nov 6 08:17:47 2011
New Revision: 227189
URL: http://svn.freebsd.org/changeset/base/227189
Log:
Add missing static keywords to tsort(1)
Modified:
head/usr.bin/tsort/tsort.c
Modified: head/usr.bin/tsort/tsort.c
Author: ed
Date: Sun Nov 6 08:17:35 2011
New Revision: 227187
URL: http://svn.freebsd.org/changeset/base/227187
Log:
Add missing static keywords to tee(1)
Modified:
head/usr.bin/tee/tee.c
Modified: head/usr.bin/tee/tee.c
==
Author: ed
Date: Sun Nov 6 08:17:17 2011
New Revision: 227184
URL: http://svn.freebsd.org/changeset/base/227184
Log:
Add missing static keywords to tail(1)
Modified:
head/usr.bin/tail/forward.c
head/usr.bin/tail/tail.c
Modified: head/usr.bin/tail/forward.c
Author: ed
Date: Sun Nov 6 08:17:23 2011
New Revision: 227185
URL: http://svn.freebsd.org/changeset/base/227185
Log:
Add missing static keywords to talk(1)
Modified:
head/usr.bin/talk/ctl.c
head/usr.bin/talk/init_disp.c
head/usr.bin/talk/invite.c
head/usr.bin/talk/talk.h
Modified: hea
Author: ed
Date: Sun Nov 6 08:16:18 2011
New Revision: 227174
URL: http://svn.freebsd.org/changeset/base/227174
Log:
Add missing static keywords to mt(1)
Modified:
head/usr.bin/mt/mt.c
Modified: head/usr.bin/mt/mt.c
===
Author: ed
Date: Sun Nov 6 08:16:11 2011
New Revision: 227173
URL: http://svn.freebsd.org/changeset/base/227173
Log:
Add missing static keywords to ministat(1)
Modified:
head/usr.bin/ministat/ministat.c
Modified: head/usr.bin/ministat/ministat.c
=
Author: ed
Date: Sun Nov 6 08:16:06 2011
New Revision: 227172
URL: http://svn.freebsd.org/changeset/base/227172
Log:
Add missing static keywords to make(1)
Modified:
head/usr.bin/make/globals.h
Modified: head/usr.bin/make/globals.h
===
Author: ed
Date: Sun Nov 6 08:15:59 2011
New Revision: 227171
URL: http://svn.freebsd.org/changeset/base/227171
Log:
Add missing static keywords to look(1)
Modified:
head/usr.bin/look/look.c
Modified: head/usr.bin/look/look.c
=
Author: ed
Date: Sun Nov 6 08:15:53 2011
New Revision: 227170
URL: http://svn.freebsd.org/changeset/base/227170
Log:
Add missing static keywords to logger(1)
Modified:
head/usr.bin/logger/logger.c
Modified: head/usr.bin/logger/logger.c
===
Author: ed
Date: Sun Nov 6 08:15:48 2011
New Revision: 227169
URL: http://svn.freebsd.org/changeset/base/227169
Log:
Add missing static keywords to lock(1)
Modified:
head/usr.bin/lock/lock.c
Modified: head/usr.bin/lock/lock.c
=
Author: ed
Date: Sun Nov 6 08:15:41 2011
New Revision: 227168
URL: http://svn.freebsd.org/changeset/base/227168
Log:
Add missing static keywords to last(1)
Modified:
head/usr.bin/last/last.c
Modified: head/usr.bin/last/last.c
=
Author: ed
Date: Sun Nov 6 08:15:23 2011
New Revision: 227165
URL: http://svn.freebsd.org/changeset/base/227165
Log:
Add missing static keywords to fold(1)
Modified:
head/usr.bin/fold/fold.c
Modified: head/usr.bin/fold/fold.c
=
Author: ed
Date: Sun Nov 6 08:16:24 2011
New Revision: 227175
URL: http://svn.freebsd.org/changeset/base/227175
Log:
Add missing static keywords to pr(1)
Modified:
head/usr.bin/pr/extern.h
head/usr.bin/pr/pr.c
Modified: head/usr.bin/pr/extern.h
Author: ed
Date: Sun Nov 6 08:15:35 2011
New Revision: 227167
URL: http://svn.freebsd.org/changeset/base/227167
Log:
Add missing static keywords to join(1)
Modified:
head/usr.bin/join/join.c
Modified: head/usr.bin/join/join.c
=
Author: ed
Date: Sun Nov 6 08:15:30 2011
New Revision: 227166
URL: http://svn.freebsd.org/changeset/base/227166
Log:
Add missing static keywords to id(1)
Modified:
head/usr.bin/id/id.c
Modified: head/usr.bin/id/id.c
===
Author: ed
Date: Sun Nov 6 08:15:17 2011
New Revision: 227164
URL: http://svn.freebsd.org/changeset/base/227164
Log:
Add missing static keywords to du(1)
Modified:
head/usr.bin/du/du.c
Modified: head/usr.bin/du/du.c
===
Author: ed
Date: Sun Nov 6 08:14:57 2011
New Revision: 227163
URL: http://svn.freebsd.org/changeset/base/227163
Log:
Add missing static keywords to dc(1)
Modified:
head/usr.bin/dc/dc.c
Modified: head/usr.bin/dc/dc.c
===
Author: ed
Date: Sun Nov 6 08:14:51 2011
New Revision: 227162
URL: http://svn.freebsd.org/changeset/base/227162
Log:
Add missing static keywords to cut(1)
Modified:
head/usr.bin/cut/cut.c
Modified: head/usr.bin/cut/cut.c
==
Author: ed
Date: Sun Nov 6 08:14:40 2011
New Revision: 227160
URL: http://svn.freebsd.org/changeset/base/227160
Log:
Add missing static keywords to cpuset(1)
Modified:
head/usr.bin/cpuset/cpuset.c
Modified: head/usr.bin/cpuset/cpuset.c
===
Author: ed
Date: Sun Nov 6 08:14:16 2011
New Revision: 227156
URL: http://svn.freebsd.org/changeset/base/227156
Log:
Add missing static keywords to cmp(1)
Modified:
head/usr.bin/cmp/extern.h
Modified: head/usr.bin/cmp/extern.h
Author: ed
Date: Sun Nov 6 08:14:09 2011
New Revision: 227155
URL: http://svn.freebsd.org/changeset/base/227155
Log:
Add missing static keywords to catman(1)
Modified:
head/usr.bin/catman/catman.c
Modified: head/usr.bin/catman/catman.c
===
Author: ed
Date: Sun Nov 6 08:14:45 2011
New Revision: 227161
URL: http://svn.freebsd.org/changeset/base/227161
Log:
Add missing static keywords to csplit(1)
Modified:
head/usr.bin/csplit/csplit.c
Modified: head/usr.bin/csplit/csplit.c
===
Author: ed
Date: Sun Nov 6 08:14:34 2011
New Revision: 227159
URL: http://svn.freebsd.org/changeset/base/227159
Log:
Add missing static keywords to column(1)
Modified:
head/usr.bin/column/column.c
Modified: head/usr.bin/column/column.c
===
Author: ed
Date: Sun Nov 6 08:14:28 2011
New Revision: 227158
URL: http://svn.freebsd.org/changeset/base/227158
Log:
Add missing static keywords to colcrt(1)
Modified:
head/usr.bin/colcrt/colcrt.c
Modified: head/usr.bin/colcrt/colcrt.c
===
Author: ed
Date: Sun Nov 6 08:14:22 2011
New Revision: 227157
URL: http://svn.freebsd.org/changeset/base/227157
Log:
Add missing static keywords to col(1)
Modified:
head/usr.bin/col/col.c
Modified: head/usr.bin/col/col.c
==
Author: ed
Date: Sun Nov 6 08:14:03 2011
New Revision: 227154
URL: http://svn.freebsd.org/changeset/base/227154
Log:
Add missing static keywords to cap_mkdb(1)
Modified:
head/usr.bin/cap_mkdb/cap_mkdb.c
Modified: head/usr.bin/cap_mkdb/cap_mkdb.c
=
Author: ed
Date: Sun Nov 6 08:13:58 2011
New Revision: 227153
URL: http://svn.freebsd.org/changeset/base/227153
Log:
Add missing static keywords to c99(1)
Modified:
head/usr.bin/c99/c99.c
Modified: head/usr.bin/c99/c99.c
==
Author: ed
Date: Sun Nov 6 08:13:51 2011
New Revision: 227152
URL: http://svn.freebsd.org/changeset/base/227152
Log:
Add missing static keywords to banner(1)
Modified:
head/usr.bin/banner/banner.c
Modified: head/usr.bin/banner/banner.c
===
Author: ed
Date: Sun Nov 6 09:09:45 2011
New Revision: 227203
URL: http://svn.freebsd.org/changeset/base/227203
Log:
Correct the change made in r227166.
This function is only compiled in when building WITH_AUDIT.
Modified:
head/usr.bin/id/id.c
Modified: head/usr.bin/id/id.c
===
Author: ed
Date: Sat Nov 5 10:00:29 2011
New Revision: 227105
URL: http://svn.freebsd.org/changeset/base/227105
Log:
Remove an unused variable from pam_unix.
This variable was added in r82352 back in 2001, but even then it didn't
have any use. Because it's not marked static, the C compil
Author: ed
Date: Sat Nov 5 07:18:53 2011
New Revision: 227101
URL: http://svn.freebsd.org/changeset/base/227101
Log:
Add static keywords to variables and functions where possible in games/.
This allows us to detect unused functions and variables and allows the
compiler to do a better job
Author: ed
Date: Fri Nov 4 19:56:34 2011
New Revision: 227090
URL: http://svn.freebsd.org/changeset/base/227090
Log:
Fix a warning emitted by Clang.
The size passed to strlcat() must depend on the input length, not the
output length. Because the input and output buffers are equal in size
Author: ed
Date: Fri Nov 4 13:36:02 2011
New Revision: 227081
URL: http://svn.freebsd.org/changeset/base/227081
Log:
Add missing static keywords for global variables to tools in sbin/.
These tools declare global variables without using the static keyword,
even though their use is limited
Author: ed
Date: Mon Oct 31 08:59:17 2011
New Revision: 226961
URL: http://svn.freebsd.org/changeset/base/226961
Log:
Put some static keywords in the source code.
For these simple utilities, it doesn't harm to make all global variables
static. In fact, this allows the compiler to perform
Author: ed
Date: Thu Oct 27 17:21:41 2011
New Revision: 226847
URL: http://svn.freebsd.org/changeset/base/226847
Log:
Don't forget to kick the man page date.
Modified:
head/lib/libc/gen/getutxent.3
Modified: head/lib/libc/gen/getutxent.3
==
Author: ed
Date: Thu Oct 27 17:05:18 2011
New Revision: 226846
URL: http://svn.freebsd.org/changeset/base/226846
Log:
Make our utmpx more like System V.
When booting the system, truncate the utx.active file, but do write the
BOOT_TIME record into it afterwards. This allows one to obtain t
Author: ed
Date: Thu Oct 27 16:20:29 2011
New Revision: 226841
URL: http://svn.freebsd.org/changeset/base/226841
Log:
Print INIT_PROCESS and LOGIN_PROCESS entries as well.
Even though our implementation of utmpx never emits these types of
records, they are part of POSIX. Do print them whe
' bits from the atmconfig source code itself
and add something like this to the Makefile:
.if !defined(RESCUE) && ${MK_BNSMP} != "no"
CFLAGS+= -DWITH_BSNMP
.endif
That way you can simply use `#ifdef WITH_BSNMP' throughout the source
files.
Thanks,
--
Author: ed
Date: Wed Oct 26 07:49:47 2011
New Revision: 226785
URL: http://svn.freebsd.org/changeset/base/226785
Log:
Attempt to fix build logic for gensnmptree.
There are two problems with the existing logic. It builds gensnmptree
on <700018, even if WITHOUT_BSNMP is set, but more import
Author: ed
Date: Tue Oct 25 17:10:15 2011
New Revision: 226742
URL: http://svn.freebsd.org/changeset/base/226742
Log:
Build swapon with WARNS=6.
Don't use a variable called stat, because it collides with stat(2).
Modified:
head/sbin/swapon/Makefile
head/sbin/swapon/swapon.c
Modified:
Author: ed
Date: Fri Oct 21 12:58:34 2011
New Revision: 226610
URL: http://svn.freebsd.org/changeset/base/226610
Log:
Add missing #includes.
According to POSIX, these two header files should be able to be included
by themselves, not depending on other headers. The header
uses struct so
Author: ed
Date: Tue Oct 18 08:09:44 2011
New Revision: 226500
URL: http://svn.freebsd.org/changeset/base/226500
Log:
Get rid of D_PSEUDO.
It seems the D_PSEUDO flag was meant to allow make_dev() to return NULL.
Nowadays we have a different interface for that; make_dev_p(). There's
no n
Author: ed
Date: Mon Oct 17 19:40:26 2011
New Revision: 226477
URL: http://svn.freebsd.org/changeset/base/226477
Log:
Fix whitespace.
Modified:
head/sys/sys/conf.h
Modified: head/sys/sys/conf.h
==
--- head/sys/sys/co
Author: ed
Date: Mon Oct 17 13:54:55 2011
New Revision: 226468
URL: http://svn.freebsd.org/changeset/base/226468
Log:
Sort header file names.
Spotted by: des
Modified:
head/usr.bin/look/look.c
Modified: head/usr.bin/look/look.c
=
Author: ed
Date: Sun Oct 16 19:23:43 2011
New Revision: 226445
URL: http://svn.freebsd.org/changeset/base/226445
Log:
Add missing #include.
Note to myself: don't write patches while watching a movie.
Modified:
head/usr.bin/look/look.c
Modified: head/usr.bin/look/look.c
=
Author: ed
Date: Sun Oct 16 19:15:25 2011
New Revision: 226444
URL: http://svn.freebsd.org/changeset/base/226444
Log:
Don't cast SIZE_T_MAX to off_t.
I focused so much on the 32-bits case where we have to cast SIZE_T_MAX
up in size, that I forgot about the 64-bits case, where off_t and si
(off_t)SIZE_T_MAX)
+ if ((uintmax_t)sb.st_size > (uintmax_t)SIZE_T_MAX)
errx(2, "%s: %s", file, strerror(EFBIG));
if (sb.st_size == 0) {
close(fd);
%%%
--
Ed Schouten
WWW: http://80386.nl/
pgpDMtGuMMZXo.pgp
Description: PGP signature
Author: ed
Date: Sun Oct 16 10:58:00 2011
New Revision: 226431
URL: http://svn.freebsd.org/changeset/base/226431
Log:
Forward declare mbuf and inpcb.
This fixes a compiler warning at WARNS=6 when including the header files
as follows:
#include
#include
#includ
Author: ed
Date: Sun Oct 16 10:00:28 2011
New Revision: 226429
URL: http://svn.freebsd.org/changeset/base/226429
Log:
Fix ncplist to build with WARNS=6.
Add some const and static keywords to get it all to build. Also add
missing #includes.
Modified:
head/usr.bin/ncplist/Makefile
head
Author: ed
Date: Sun Oct 16 09:09:33 2011
New Revision: 226428
URL: http://svn.freebsd.org/changeset/base/226428
Log:
Undo r226423.
It seems su does build without warnings, but it requires a small fix to
libbsm headers, which I have not committed to SVN yet.
Modified:
head/usr.bin/su/M
Author: ed
Date: Sun Oct 16 08:54:41 2011
New Revision: 226427
URL: http://svn.freebsd.org/changeset/base/226427
Log:
Build rwho(1) with WARNS=6.
The only reason why it didn't build with WARNS=6, is because of some
simple to fix string formatting bugs.
MFC after:3 months
Modifie
Author: ed
Date: Sun Oct 16 08:45:16 2011
New Revision: 226426
URL: http://svn.freebsd.org/changeset/base/226426
Log:
Change the SDP_GET* macros to cast to a const buffer.
This fixes a compiler warning when passing a const buffer to them.
Modified:
head/lib/libsdp/sdp.h
Modified: head/l
Author: ed
Date: Sun Oct 16 08:44:03 2011
New Revision: 226425
URL: http://svn.freebsd.org/changeset/base/226425
Log:
Change ncp_scan_bindery_object() to pass a constant search string.
The ncp_scan_bindery_object() function does not modify search_string
internally, so there is no need to
Author: ed
Date: Sun Oct 16 08:36:10 2011
New Revision: 226424
URL: http://svn.freebsd.org/changeset/base/226424
Log:
Use integer to store the result of getch().
We need to use an integer to make the comparison against ERR work.
MFC after:3 months
Modified:
head/usr.bin/systat/k
Author: ed
Date: Sun Oct 16 08:14:12 2011
New Revision: 226423
URL: http://svn.freebsd.org/changeset/base/226423
Log:
Remove WARNS line. This tool builds with WARNS=6 properly.
Modified:
head/usr.bin/su/Makefile
Modified: head/usr.bin/su/Makefile
=
Author: ed
Date: Sun Oct 16 08:09:17 2011
New Revision: 226422
URL: http://svn.freebsd.org/changeset/base/226422
Log:
Fix build of m4 with WARNS=6.
Change the parser; rename `exp' to `exponent' not to collide with exp(3).
Modified:
head/usr.bin/m4/Makefile
head/usr.bin/m4/expr.c
head
Author: ed
Date: Sun Oct 16 08:04:43 2011
New Revision: 226421
URL: http://svn.freebsd.org/changeset/base/226421
Log:
Remove unneeded WARNS=3 lines.
It seems these two tools can be built properly with WARNS=6, even on
architectures that are stricter about alignment.
Modified:
head/usr.
Author: ed
Date: Sun Oct 16 07:57:01 2011
New Revision: 226420
URL: http://svn.freebsd.org/changeset/base/226420
Log:
Build at(1) with NO_WFORMAT instead of WARNS=1.
Modified:
head/usr.bin/at/Makefile
Modified: head/usr.bin/at/Makefile
Author: ed
Date: Sun Oct 16 07:36:27 2011
New Revision: 226419
URL: http://svn.freebsd.org/changeset/base/226419
Log:
Make some internal fixes to ruptime(1):
- Prevent possible unaligned access to struct whoent.
- Increase uptime column by one, to properly print hosts with an uptime
g
Author: ed
Date: Sat Oct 15 13:20:36 2011
New Revision: 226396
URL: http://svn.freebsd.org/changeset/base/226396
Log:
Fix whitespace inconsistencies in systat(1).
According to md5(1), the resulting binary is the same.
Modified:
head/usr.bin/systat/cmds.c
head/usr.bin/systat/cmdtab.c
Author: ed
Date: Fri Oct 14 10:43:55 2011
New Revision: 226363
URL: http://svn.freebsd.org/changeset/base/226363
Log:
Put parentheses in the right place.
Noted by: jilles@
Broken by:me. :-(
Modified:
head/usr.bin/tr/cset.c
Modified: head/usr.bin/tr/cset.c
=
Author: ed
Date: Fri Oct 14 07:28:39 2011
New Revision: 226362
URL: http://svn.freebsd.org/changeset/base/226362
Log:
Make nl(1) build with WARNS=6.
Obtained from:NetBSD
Modified:
head/usr.bin/nl/Makefile
head/usr.bin/nl/nl.c
Modified: head/usr.bin/nl/Makefile
Author: ed
Date: Fri Oct 14 07:26:20 2011
New Revision: 226361
URL: http://svn.freebsd.org/changeset/base/226361
Log:
Build last(1) and leave(1) with WARNS=6.
These ports were only built with WARNS=1, because they use certain
format extensions. We can use NO_WFORMAT for that instead.
Mod
Author: ed
Date: Fri Oct 14 07:25:20 2011
New Revision: 226360
URL: http://svn.freebsd.org/changeset/base/226360
Log:
Build tr(1) with WARNS=6.
Modified:
head/usr.bin/tr/Makefile
head/usr.bin/tr/cset.c
head/usr.bin/tr/str.c
Modified: head/usr.bin/tr/Makefile
=
Author: ed
Date: Fri Oct 14 07:24:48 2011
New Revision: 226359
URL: http://svn.freebsd.org/changeset/base/226359
Log:
Build look(1) with WARNS=6.
Modified:
head/usr.bin/look/Makefile
head/usr.bin/look/look.c
Modified: head/usr.bin/look/Makefile
=
Author: ed
Date: Fri Oct 14 07:24:23 2011
New Revision: 226358
URL: http://svn.freebsd.org/changeset/base/226358
Log:
Build finger(1) with WARNS=6.
Modified:
head/usr.bin/finger/Makefile
head/usr.bin/finger/lprint.c
Modified: head/usr.bin/finger/Makefile
===
Author: ed
Date: Thu Oct 13 14:20:27 2011
New Revision: 226341
URL: http://svn.freebsd.org/changeset/base/226341
Log:
Link the demo application against ncursesw to make Unicode work.
Modified:
head/sys/teken/demo/Makefile
Modified: head/sys/teken/demo/Makefile
===
Author: ed
Date: Mon Oct 10 06:13:27 2011
New Revision: 226183
URL: http://svn.freebsd.org/changeset/base/226183
Log:
Properly use the cursor to bound the position for CUP.
We must take the origin region into account when clamping the cursor
position.
MFC after:3 days
Modified:
* Alexander Best , 20111009 03:11:
> is this what you had in mind?
Yes, exactly. :-)
--
Ed Schouten
WWW: http://80386.nl/
pgpZPhIcb06Wi.pgp
Description: PGP signature
* Chris Rees , 20111008 20:25:
> Revert unapproved commit to bsd.port.mk.
You're very nice... :-)
--
Ed Schouten
WWW: http://80386.nl/
pgpFx0Q7LTiI2.pgp
Description: PGP signature
-e 's|freebsd\[123\]\*)|freebsd[123].*)|g' \
-e 's|freebsd\[\[12\]\]\*)|freebsd[[12]].*)|g' \
-e 's|freebsd\[\[123\]\]\*)|freebsd[[123]].*)|g' \
- {} + || /usr/bin/true
+ {} +
.ORDER: run-auto
Author: ed
Date: Sat Oct 8 07:20:12 2011
New Revision: 226141
URL: http://svn.freebsd.org/changeset/base/226141
Log:
Remove extraneous WARNS=7.
WARNS above 6 has no use. Also, all of usr.bin is also built with
WARNS=6 by default.
Discussed with: edwin
Modified:
head/usr.bin
Author: ed
Date: Fri Oct 7 15:05:24 2011
New Revision: 226111
URL: http://svn.freebsd.org/changeset/base/226111
Log:
Fix whitespace inconsistencies found in homegrown Symbol.maps.
Modified:
head/lib/libc/mips/Symbol.map
head/lib/libc/net/Symbol.map
head/lib/libc/sparc64/Symbol.map
head
Author: ed
Date: Fri Oct 7 12:42:03 2011
New Revision: 226100
URL: http://svn.freebsd.org/changeset/base/226100
Log:
Simply let teken_stress use arc4random.
This makes it run quite a bit faster, since it makes system calls less
often.
Modified:
head/sys/teken/stress/teken_stress.c
Mo
Author: ed
Date: Fri Oct 7 12:21:50 2011
New Revision: 226099
URL: http://svn.freebsd.org/changeset/base/226099
Log:
Tab should not blank cells.
It seems I was under the impression that a tab differs from a single
forward tabulation, namely that it blanks the underlying cells. This
see
* Alexander Best , 20111001 23:10:
> i'd like to propose the following patch. any objections?
Looks good!
Thanks,
--
Ed Schouten
WWW: http://80386.nl/
pgp1k01qTrnVJ.pgp
Description: PGP signature
* Garrett Cooper , 20111001 21:43:
> Why not use strlcpy, etc with dlen?
Well, I could, but it wouldn't change anything. In both cases, the size
of the buffer exceeds the size of _PATH_TTY.
--
Ed Schouten
WWW: http://80386.nl/
pgpI2Dg6pLMCm.pgp
Description: PGP signature
ve never seen the "TT" field
> contain an entry larger than 2 chars.
Also, it would be better if we replaced the "??" string with "-". When
we print "??", it actually means: this process has no controlling
terminal, not that we don't know which TTY it is.
--
Ed Schouten
WWW: http://80386.nl/
pgpg9Q2tEW5eh.pgp
Description: PGP signature
Sat Oct 1 11:59:45 2011(r225896)
+++ head/lib/libc/gen/ctermid.c Sat Oct 1 12:19:48 2011(r225897)
@@ -1,6 +1,6 @@
/*-
- * Copyright (c) 1990, 1993
- * The Regents of the University of California. All rights reserved.
+ * Copyright (c) 2011 Ed Schouten
+ *
Author: ed
Date: Sat Oct 1 09:16:07 2011
New Revision: 225893
URL: http://svn.freebsd.org/changeset/base/225893
Log:
Correct column with for device numbers made in previous change.
The device number should be displayed using only five columns -- not eight.
Modified:
head/usr.bin/fstat/f
Author: ed
Date: Wed Sep 28 18:53:36 2011
New Revision: 225847
URL: http://svn.freebsd.org/changeset/base/225847
Log:
Get rid of major/minor number distinction.
As of FreeBSD 6, devices can only be opened through devfs. These device
nodes don't have major and minor numbers anymore. The st
Author: ed
Date: Mon Sep 12 10:07:21 2011
New Revision: 225506
URL: http://svn.freebsd.org/changeset/base/225506
Log:
Fix error return codes for ioctls on init/lock state devices.
In revision 223722 we introduced support for driver ioctls on init/lock
state devices. Unfortunately the call
Author: ed
Date: Fri Aug 5 17:33:12 2011
New Revision: 224659
URL: http://svn.freebsd.org/changeset/base/224659
Log:
Remove NIS entries from /etc/nsswitch.conf for WITHOUT_NIS.
We already modify various configuration files in /etc based on build
configuration. This is not done for nsswit
Author: ed
Date: Sun Jul 17 08:19:19 2011
New Revision: 224126
URL: http://svn.freebsd.org/changeset/base/224126
Log:
Restore binary compatibility for GIO_KEYMAP and PIO_KEYMAP.
Back in 2009 I changed the ABI of the GIO_KEYMAP and PIO_KEYMAP ioctls
to support wide characters. I created a
(uint16_t x)
| {
|
| x = (x & 0x) + ((x >> 1) & 0x);
| x = (x & 0x) + ((x >> 2) & 0x);
| x *= 0x;
| return (x >> 12);
| }
But some testing revealed it works for all inputs, except 65536. d'oh!
--
Ed Schouten
WWW: htt
Author: ed
Date: Tue Jul 5 14:12:48 2011
New Revision: 223786
URL: http://svn.freebsd.org/changeset/base/223786
Log:
Only print entries for which ut_host points to a character device.
Now that we use utmpx, we more often have entries for which the ut_line
is left blank. To prevent us fro
801 - 900 of 1062 matches
Mail list logo