Commit Graph

11575 Commits

Author SHA1 Message Date
christos
830d5efd84 Small script used when importing 3rd party programs. The code in this
script is used in many foo2netbsd scripts, but none of them has the
complete list of keywords. I will make all those scripts use this one
instead.
2011-10-08 19:16:08 +00:00
christos
1dcb02d8c7 remove casts 2011-10-07 16:30:17 +00:00
mbalmer
947c965b88 Refer to X11R7. 2011-10-07 10:52:31 +00:00
joerg
26c79d78b3 Simplify 2011-10-07 10:14:22 +00:00
mrg
92461b24a3 enable building/installing audiocfg(1). ok jmcneill. 2011-10-06 07:38:54 +00:00
roy
47e1ece0c2 Use terminfo and the non-standard ttytype rather than termcap. 2011-10-05 10:48:54 +00:00
shattered
8836963d2f PR/43968 -- add 'segqlen' of TCPCB to 'netstat -P'.
OK by wiz@
2011-10-04 21:12:40 +00:00
christos
c6a6b07331 Handle c99 declarations in the middle of blocks. 2011-10-04 16:19:59 +00:00
roy
26bd22ac44 Ensure we only pass cap names of one or two characters to tgetstr
and friends so we don't mistakenly try and convert a terminfo code to a
termcap code.
2011-10-04 12:23:14 +00:00
roy
9f4db5a1ea tput now uses longname(3) to derive the terminal description instead
of trying to parse it from termpcap.
Fixes PR/43386.
2011-10-04 11:02:32 +00:00
roy
4060cbcd0c Use tiparm instead of vtparm. 2011-10-03 12:32:15 +00:00
christos
0e4108c639 eat the last d in double constants. 2011-10-02 19:45:10 +00:00
dholland
81e8d7471a Describe the output more accurately, and in the correct order. Noted by
Snader_LB on freenode.
2011-10-02 01:51:00 +00:00
dholland
1e6da30b2e Fix ambiguous/confusing wording. 2011-10-02 01:47:27 +00:00
jym
afca4e3b49 Fix an implementation inconsistency with the prop_*_send_syscall() and
prop_*_recv_syscall() functions from proplib(3). They now share the
same logic as the one from prop_*_send_ioctl() functions:
- returns an int
- 0 indicates "no error", otherwise returns the error number (and
set errno)

Many consumers of the prop_*_{ioctl, syscall} expect errno to be set
on error and use err() to display the error message. As such, ensures that
errno gets set before returning from these functions.

prop_*_send_syscall() functions returned a boolean, and now return an int.
Fix all call sites to use the new paradigm (only quota2 is affected in src).

As the prop_*_{send,recv}_syscall() API appeared in -current and is only
used by the recent quota2 code, I am not bumping the lib. The API change
only affects the prop_*_send_syscall() function (recv_syscall()s were
already used correctly), so ensure you are not mixing "old" -current
quota binaries with a new proplib(3) (or the other way around). This
change will be announced via a HEADS-UP and UPDATING.

Does not affect the kernel part of proplib.

Document the correct API in prop_array(3) and prop_dictionary(3).

Thanks to Francois Tigeot for noticing the API inconsistency and
reporting it on tech-kern@.

ok bouyer@.
2011-09-30 22:08:18 +00:00
christos
22d49ff4f1 add copyright 2011-09-30 01:32:21 +00:00
sjg
123e6558cd Make sure .PHONY targets get .TARGET set.
This wasn't happening when a dependency of .END.
Set .PREFIX too and add a unit-test.

PR: 43534
2011-09-29 23:38:04 +00:00
christos
190c081319 don't limit sockets to sizeof(sizeof sockaddr_storage). We can create valid
sockaddr_un sockets that exceed that. Arguably either
sizeof(struct sockaddr_storage) should be amended, or we should disallow
unix domain sockaddrs that exceed that size.
2011-09-28 16:28:27 +00:00
apb
aaffb7873e Updates to the find(1) man page, based on PR 45381 from Greg Woods,
with additional changes by myself.
2011-09-24 13:45:43 +00:00
mrg
81a1075469 apply some (uintptr_t) so that printing printers works on i386 (likely
all 32 bit.)
2011-09-23 07:31:39 +00:00
apb
64d2b8e0ba Use vis(3) encoding when a string format is modified by the '#' flag.
Also bump copyright years.
2011-09-22 20:23:55 +00:00
christos
a0af16e360 - factor out common code in the inet and inet6 printing.
- add appletalk (ddp) support.
2011-09-22 17:27:50 +00:00
christos
8624929e77 Fix unchecked malloc, check for overflow (Maksymilian Arciemowicz)
While here, remove unused casts, fix types.
2011-09-22 12:49:57 +00:00
christos
17c41f8e0c Symbolic printing of some known MISC records. 2011-09-21 17:48:51 +00:00
christos
618434e41f PR/45385: Henning Petersen: Swapped arguments in lseek 2011-09-21 14:33:35 +00:00
christos
48adc0d0fe PR/45384: Henning Petersen: Swapped arguments in lseek 2011-09-21 14:32:14 +00:00
christos
6f2c981e29 PR/45383: Henning Petersen: Swapped lseek args 2011-09-21 14:30:47 +00:00
jym
37232010ea Use __arraycount(), as done above. 2011-09-21 12:08:02 +00:00
njoly
7d41567535 Fix lseek(2) swapped arguments. 2011-09-18 09:07:35 +00:00
christos
45afe09801 ansify, const, knf 2011-09-17 15:15:46 +00:00
minskim
05d81a59ae Add back a line accidentally deleted in the previous commit. 2011-09-17 03:09:51 +00:00
joerg
6818646ac8 Use __dead 2011-09-16 15:39:25 +00:00
joerg
84700a0331 Use __dead consistently. If it doesn't exist, define it away. 2011-09-16 15:38:03 +00:00
apb
9438a85a85 More corrections to format compatibility between stat(1), find(1) -ls,
and ls(1) -lT.
2011-09-16 14:32:53 +00:00
wiz
8438689645 Remove unnecessary Ns. 2011-09-16 13:33:13 +00:00
apb
229948abdb Anothe difference in output format: stat -f "%Z" does not add any
space in "major,minor" for device nodes, whereas both "ls -l" and
"find -ls" add at least one space.
2011-09-16 11:06:27 +00:00
apb
7f5f7e4b90 Add examples of formats for stat(1) to simulate "find -ls" and "ls -lTd". 2011-09-15 19:56:35 +00:00
plunky
1803dc4bc8 when printing URL strings, don't use VIS_HTTPSTYLE, it does
not quite work as I expected.. just use VIS_CSTYLE
2011-09-15 17:52:53 +00:00
wiz
4285677d6b Add argument in options table. Resize to fit. 2011-09-15 09:40:57 +00:00
wiz
826f78a987 Mark file argument(s) as being optional (as does the usage message
from fold.c, which is correct); minor spelling correction; note
`width' as being an argument to `-w'; reference fmt(1) in `SEE
ALSO' section.

From Snader_LB.
2011-09-15 09:39:57 +00:00
christos
2ba0028160 - remove bogus casts
- print recycled vnode flags
2011-09-10 18:35:28 +00:00
christos
ebb6dc2ee4 add libutil. 2011-09-10 18:34:54 +00:00
christos
48bd4d9cb5 add all the possible fileops here, and if there is one we know about
print that instead of the passed name.
2011-09-10 18:34:40 +00:00
christos
6438f483a9 revert previous; don't change the logic. 2011-09-08 12:00:26 +00:00
christos
90932ffc48 don't forget to 0 init the rest of the array since now we removed the memset 2011-09-08 01:19:52 +00:00
christos
47ecf56863 a little more KNF, plus add \e (from the previous commit) 2011-09-08 01:18:44 +00:00
christos
0ffd30a090 It is pointless to assign to the CLASS.set member and never use it again.
Perhaps the author meant to check if it is already set and not allocated it
again to avoid memory leaks? Anyway make everything const back and delete
the unused code. Yes, this leaks the same way as before but it is
insignificant. If we want to save memory we could use bytes or even bits
instead of ints, and not allocate/initialize the same thing multiple times.
2011-09-08 01:18:05 +00:00
joerg
91a068001c Add comment to explain the const issue to avoid future trouble. 2011-09-07 22:59:19 +00:00
riz
958c749ae4 Remove newly-introduced const qualifier from static CLASS classes[],
as CLASS->set gets changed in genclass().  Fixes a segfault doing:

tr '[:lower:]' '[:upper:]'

on (at least) amd64.
2011-09-07 18:21:41 +00:00
jmcneill
a123dfbe30 recognize AUDIO_ENCODING_AC3 2011-09-06 22:41:53 +00:00
wiz
2a5f867d29 Remove trailing whitespace and use Sx for section crossreference. 2011-09-06 19:22:05 +00:00
joerg
7d5aba78d7 Use static and __dead. 2011-09-06 18:50:32 +00:00
joerg
48ed0846d6 static + __dead 2011-09-06 18:46:35 +00:00
joerg
8751fcdadd Use __printflike and __dead. 2011-09-06 18:46:21 +00:00
joerg
78eefffb5d static + __dead 2011-09-06 18:46:03 +00:00
joerg
abb50018a2 ANSIfy, static + __dead 2011-09-06 18:45:49 +00:00
joerg
b47a64d89e static + __dead 2011-09-06 18:45:21 +00:00
joerg
505c5e5515 Use static and __dead 2011-09-06 18:45:04 +00:00
joerg
a12e209ee8 Mark usage as static and __dead. 2011-09-06 18:44:46 +00:00
joerg
4d7311244b static + __dead 2011-09-06 18:44:26 +00:00
joerg
60bd81b021 error_count is unsigned, so use %ju 2011-09-06 18:43:41 +00:00
joerg
8f7d1f2721 Use __dead and __printflike. Fix one format string and one error()
argument as hinted by the new format string checking.
2011-09-06 18:42:13 +00:00
joerg
1ed141bb41 ANSIfy, static + __dead 2011-09-06 18:35:41 +00:00
joerg
424d701a2a ANSIfy + __dead 2011-09-06 18:34:57 +00:00
joerg
4a9db21a64 ANSIfy, static + __dead 2011-09-06 18:34:37 +00:00
joerg
be0c033d10 ANSIfy. Sprinkle static and __dead. 2011-09-06 18:34:12 +00:00
joerg
1d57801981 ANSIfy. Sprinkle const and __dead. 2011-09-06 18:33:46 +00:00
joerg
cd57b1ce2a ANSIfy, static + __dead 2011-09-06 18:33:18 +00:00
joerg
f20d1d233d Use __dead. Make a bunch of local functions static. 2011-09-06 18:33:01 +00:00
joerg
c8b60166de ANSIfy + static + __dead 2011-09-06 18:32:26 +00:00
joerg
68168df687 ANSIfy + __dead 2011-09-06 18:32:03 +00:00
joerg
96c339267b Consistently use __dead and __printflike. 2011-09-06 18:31:44 +00:00
joerg
fb1e3f6f7d static + __dead 2011-09-06 18:31:22 +00:00
joerg
b480aed3ce Use static and __dead. 2011-09-06 18:30:56 +00:00
joerg
3500df6f19 Use pid_t directly. Apply static and __dead. 2011-09-06 18:30:38 +00:00
joerg
4d72fc9046 static + __dead 2011-09-06 18:29:35 +00:00
joerg
cfac3cac2b ANSIfy, static + __dead 2011-09-06 18:28:58 +00:00
joerg
3e796e7d89 static + __dead 2011-09-06 18:28:35 +00:00
joerg
75acfabd7f Use __dead and __printflike. 2011-09-06 18:28:18 +00:00
joerg
0b82381295 static + __dead 2011-09-06 18:26:55 +00:00
joerg
e7997c0db8 ANSIfy, static + __dead 2011-09-06 18:26:06 +00:00
joerg
d5bd94639a Consistently use __dead and __printflike. 2011-09-06 18:25:14 +00:00
joerg
f085baab1a static + __dead 2011-09-06 18:24:43 +00:00
joerg
0487dc01d5 ANSIfy + __dead 2011-09-06 18:24:15 +00:00
joerg
a2f897e7fe ANSIfy, static + __dead. 2011-09-06 18:19:58 +00:00
joerg
2eacf5d5a2 Mark __menu_initerror as dead in the output. 2011-09-06 18:16:38 +00:00
joerg
f0f23e661a Move usage and onintr to make them static. Add __dead as needed. 2011-09-06 18:16:01 +00:00
christos
f5cf37944f move UNIX socket mention in the BUGS section. 2011-09-06 11:31:47 +00:00
wiz
ba45f45512 Remove duplicate RCS Id and split file system. 2011-09-05 18:27:31 +00:00
joerg
170bc8c273 Moved to src/external/bsd/byacc. 2011-09-05 18:25:23 +00:00
joerg
7654d36ad8 Sprinkle const. Use __dead. 2011-09-05 18:11:53 +00:00
joerg
6d5539de9c static + __dead 2011-09-04 20:55:43 +00:00
joerg
08af8338c6 Sprinkle one more static and a bunch of consts. 2011-09-04 20:35:07 +00:00
joerg
81249d1a2f static + __dead 2011-09-04 20:31:00 +00:00
joerg
4e46e5935f ANSIfy + static + __dead 2011-09-04 20:29:12 +00:00
joerg
924863260a static + __dead 2011-09-04 20:28:59 +00:00
joerg
cb377560e8 ANSIfy + static + __dead 2011-09-04 20:28:09 +00:00
joerg
d6555585cf static + __dead 2011-09-04 20:27:05 +00:00
joerg
8f81f2eef9 Use static, change deep if / else if / ... chains to switch(), apply
__dead, ANSIfy.
2011-09-04 20:26:17 +00:00
joerg
60dc5170cc static + __dead 2011-09-04 20:24:59 +00:00