joerg
ffcaee0540
static + __dead
2011-08-30 21:27:00 +00:00
joerg
949eeab3f6
static + __dead + G/C
2011-08-30 21:26:11 +00:00
joerg
f4727fdfcf
static + __dead
2011-08-30 21:18:11 +00:00
joerg
c22bf27456
ANSIfy + static + __dead
2011-08-30 21:17:06 +00:00
joerg
6ede639fd6
__dead + __printflike
2011-08-30 21:14:06 +00:00
joerg
8583b49ce0
static + __dead
2011-08-30 21:03:31 +00:00
joerg
2d826702b5
ANSIfy + static + __dead
2011-08-30 20:54:18 +00:00
joerg
61a4a25cad
De-__P + __dead
2011-08-30 20:52:10 +00:00
joerg
30469ad85e
static + __dead
2011-08-30 20:51:29 +00:00
joerg
0cc6686eff
ANSIfy + __dead
2011-08-30 20:50:24 +00:00
joerg
58b3bed15d
static + __dead
2011-08-30 20:49:29 +00:00
joerg
36ae1097e8
static + ANSIfy + __dead
2011-08-30 20:45:31 +00:00
joerg
62c5413271
G/C
2011-08-30 20:43:43 +00:00
joerg
f796930c37
static + ANSIfy + __dead
2011-08-30 20:42:22 +00:00
joerg
2d6640c450
static + __dead
2011-08-30 20:33:30 +00:00
joerg
fedff36094
ANSIFy + static + __dead
2011-08-30 20:29:41 +00:00
joerg
76d8a55bb7
static + __printflike + __dead
2011-08-30 20:25:18 +00:00
joerg
9b838647dd
Fast backward code to 1989 and use ANSI C consistently. Use __dead.
2011-08-30 20:17:00 +00:00
joerg
7e8db9e768
static + __dead
2011-08-30 20:08:38 +00:00
joerg
8138b1d050
static + ANSIfy + __dead
2011-08-30 20:07:31 +00:00
joerg
e50af0f5ca
static + __printflike + __dead + format string fixes
2011-08-30 20:03:50 +00:00
joerg
428b619bde
ANSIfy. Use __dead.
2011-08-30 20:00:58 +00:00
joerg
732d96f1f0
ANSIfy + __printflike + __dead
2011-08-30 19:49:10 +00:00
joerg
257a846ab4
static, __printflike, __dead
2011-08-30 19:27:37 +00:00
joerg
2eb6527c5c
static + __dead
2011-08-30 19:20:20 +00:00
joerg
7cbacafc54
ANSIfy + __dead
2011-08-30 19:18:17 +00:00
joerg
5f1d0b022e
static + __dead
2011-08-30 19:06:06 +00:00
joerg
6bd0ed17f2
static + __dead
2011-08-30 18:57:38 +00:00
joerg
514310971d
Use __dead and __printflike
2011-08-30 18:53:41 +00:00
joerg
7a78feffac
static + __dead
2011-08-30 18:50:48 +00:00
joerg
d6ee580bf7
static + __dead
2011-08-30 18:30:13 +00:00
joerg
60f8231589
ANSIfy + static + __dead
2011-08-30 18:28:59 +00:00
joerg
68b3316c6c
static + __dead
2011-08-30 18:24:17 +00:00
plunky
87d4f6076b
Apply casts to cases where xdrproc_t is expected but is not
...
strictly passed, for example because the second argument is
a different kind of pointer.
2011-08-30 17:06:20 +00:00
joerg
5c1014c629
ANSIfy + static + dead.
2011-08-30 10:12:06 +00:00
christos
47a08534f0
in external now
2011-08-30 10:08:11 +00:00
joerg
3bb0bce39d
static openinfo. dead, not unused usage.
2011-08-30 10:04:50 +00:00
joerg
dccf569e0e
Use __dead.
2011-08-29 20:38:53 +00:00
joerg
a1de9c2dbb
Use __dead and __printflike
2011-08-29 20:37:43 +00:00
alnsn
e0e35e91bd
Typo.
2011-08-29 14:09:01 +00:00
wiz
4776eb0a7a
Use Cm to mark up command arguments. Use An -nosplit to avoid linebreak in sentence.
2011-08-28 17:10:37 +00:00
elric
95bd2d4a1e
Remove crypto/dist/heimdal and its associated build infrastructure as
...
it has been replaced by crypto/external/bsd/heimdal.
2011-08-28 16:21:57 +00:00
mbalmer
b6211abfc7
Initialize local variables that previously were global (user, group).
2011-08-28 08:32:47 +00:00
mbalmer
92ced822d1
Add a new ioctl, GPIOPULSE to gpio(4) to allow for pulsing a pin.
...
If a pin can pulse in hardware, that will be used, else it will
be pulsed in software. There is no way yet to set the pulse frequency
for pins that pulse in hardware. While here, make the code mpsafe and
allow more than one thread in the driver (access to ioctl is serialized).
2011-08-28 07:48:50 +00:00
joerg
52e7e4adca
ANSIfy
2011-08-27 22:41:35 +00:00
joerg
19f8b044c9
static + __dead
2011-08-27 22:38:48 +00:00
joerg
b71455acb5
Use __dead. Move global variables into function scope.
2011-08-27 22:32:44 +00:00
joerg
42286e2542
Sprinkle const
2011-08-27 22:30:44 +00:00
joerg
8756b97804
static + __dead
2011-08-27 22:22:01 +00:00
joerg
94b1bee225
Mark types as static and usage as dead.
2011-08-27 22:17:53 +00:00
jakllsch
3c644b8a5a
Bring mount_psshfs user/host/path argument processing in line with sftp(1).
2011-08-25 19:49:05 +00:00
joerg
1c874f86e1
Use of non-literal format string
2011-08-25 16:53:25 +00:00
joerg
9c4f17f60e
Use of non-literal format strings
2011-08-25 16:47:20 +00:00
joerg
21f7e41a91
Use of non-literal format string.
2011-08-25 16:22:43 +00:00
christos
91cc0e5629
more fixes from martin
2011-08-23 19:57:24 +00:00
christos
3e74546ba5
remove stray brace, minor knf
2011-08-23 19:17:07 +00:00
christos
1beaa2ceec
PR/45285: Martin Matuska: makefs does not properly convert ISO level 1 and 2
...
filenames (buffer overflow)
makefs does not properly verify the maximum filename length in the
special "." case for both ISO level 1 and ISO level 2 filename
conversion. This creates broken images or causes a buffer overflow
(ISO level 2).
ISO level 1:
If a filename contains only dots or up to 8 characters followed by
dots the 8+3 limit check doesn't work.
ISO level 2:
If a filename contains a dot in the first 30 characters and a dot
on the 30th character, the length limit check doesn't work and the
buffer is overflowed.
$ mkdir level1
$ touch level1/12345............
$ makefs -t cd9660 -o isolevel=1 test.iso level1
$ mkdir level2
$ touch level2/1234567890.2345678901234567.....34567890123456789012345
$ makefs -t cd9660 -o isolevel=2 test.iso level2
2011-08-23 17:09:11 +00:00
christos
93bbed154f
use const char [] for format
2011-08-21 08:59:50 +00:00
christos
21a5b878f0
gcc-4.5 is picky about potential negative indexes. appease it.
2011-08-16 16:45:20 +00:00
christos
23bcf1ad25
remove gcc-4.5 hacks
2011-08-16 16:37:07 +00:00
mbalmer
0813ba11d0
Fix some typos.
2011-08-16 14:29:16 +00:00
christos
0d33c75c01
use memcpy to avoid type punning.
2011-08-16 12:49:13 +00:00
christos
0f2de03a73
remove gcc-4.5 hack and check fileno instead.
2011-08-16 12:39:29 +00:00
christos
6d3347a9d8
Avoid non-literal format strings
2011-08-16 10:39:31 +00:00
christos
d5189d25a6
avoid non-literal format strings
2011-08-16 08:33:46 +00:00
christos
73de74d401
document non-literal format string (unsafe)
2011-08-16 08:18:19 +00:00
christos
a0ca34f556
document non-literal format
2011-08-16 08:04:17 +00:00
christos
6f0b276b18
fix non-literal strings
2011-08-16 08:02:18 +00:00
christos
982a21784c
- no need for gcc-4.5 hacks
...
- document non literal format
2011-08-16 07:52:32 +00:00
wiz
8e6d328065
Re-order `usage' alphabetically;
...
rename option arguments in the manpage's `SYNOPSIS' section to
match those from `usage' (not the other way around; the `usage'-line
(and other parts of makefs.c) contain the correct names);
minor punctuation improvements.
From Snader_LB.
2011-08-15 14:45:01 +00:00
wiz
4db9004657
Re-order and synchronize options listed in manpage (`SYNOPSIS' and
...
text) as well as `usage'-line; several punctuation improvements.
From Snader_LB.
2011-08-15 14:43:17 +00:00
wiz
d91834d02d
Sync usage with SYNOPSIS.
2011-08-15 14:31:58 +00:00
wiz
8579c851c4
Sort options in SYNOPSIS. From Snader_LB.
2011-08-15 14:31:24 +00:00
tnn
c908dc3b47
Use proper capitalization. Reported on IRC.
2011-08-15 14:20:08 +00:00
dholland
c1b04cb467
Add compile-time assertion to make sure the previous doesn't go off the
...
rails sometime in the future.
2011-08-14 23:13:43 +00:00
christos
0b147c5d2b
avoid type punned warnings
2011-08-14 17:57:44 +00:00
christos
5e788a3ae4
remove gcc type punned warnings
2011-08-14 17:54:55 +00:00
christos
7a3dc95e5c
fix various gcc-4.5 warnings
2011-08-14 17:50:16 +00:00
christos
ef977d1767
use memcpy to avoid type punned warnings
2011-08-14 17:42:23 +00:00
mbalmer
c9922bae5e
use my NetBSD email address
2011-08-12 08:06:23 +00:00
mbalmer
badcc9683d
Make some functions static, use getprogname() instead of
...
'extern char *__progname'.
2011-08-12 08:02:33 +00:00
riastradh
772f45cfc9
Cache vattr in psshfs's setattr.
...
This means within the cache window, a setattr that wouldn't change the
remote file's attributes from our current view of them will not be
relayed to the server and wait for the server to answer. Thus, e.g., a
process with a periodic timer interrupt that calls open(2) in a loop
can make progress with much higher probability than without caching.
XXX The test case doesn't work, so it's currently disabled. It needs
to stop the child of sshd that is handling an sftp session, not sshd
itself, and it's not obvious how to do that.
ok pooka
2011-08-12 04:14:00 +00:00
uch
7d18226237
newfs_v7fs(8)'s -v and -P options are obsolete. changed to newfs(8) compatible -V option.
2011-08-10 11:31:49 +00:00
jmmv
dcba4bad03
Check (and fix) that unprivileged-user has been changed from _atf to _tests
...
in /etc/atf/common.conf. Requested by martin@.
2011-08-09 18:24:46 +00:00
joerg
52dc944dae
Requires -Wno-array-bounds with clang now.
2011-08-09 13:06:10 +00:00
joerg
975a569b2d
Passes with the relaxed array boundary check in clang
2011-08-09 13:04:28 +00:00
manu
f8584de4e3
Fix warning
2011-08-09 07:00:13 +00:00
christos
b166834bb8
PR/45217: Martin Matuska: Use proper lengths to space pad fields and don't
...
overwrite them according to the spec.
2011-08-06 23:25:19 +00:00
jmmv
bbf950e188
Rename the _atf user to _tests. The _atf name will get obsoleted if/when
...
we migrate to Kyua (atf v2), so it's better to use a generic name that does
not depend on the specific implementation. Also, this user has not gone
out yet into any stable release, so we can easily rename it.
Suggested by jruoho@.
2011-08-05 14:43:41 +00:00
gdt
c623d1003e
Explain how to use -e -v without -o to see the current options.
...
Caution that installing a new primary bootstrap will reset options to
default values.
2011-08-03 14:47:28 +00:00
manu
fb0fa57f18
Fix creds passed to FUSE when requests are done on behalf of the kernel.
...
We previously sent uid/gid set to -1, we now set it to 0.
2011-08-02 14:53:38 +00:00
matt
d84c971f21
Break up list of directories by first letter.
2011-08-01 23:19:52 +00:00
mbalmer
631d5867a0
According to the Oxford Dictionary of Etymology, a wether is a male sheep
...
or ram.
2011-08-01 12:28:53 +00:00
uch
876775fb1a
regen
2011-07-24 09:00:06 +00:00
uch
7ce939b3e2
v7fs rump support
2011-07-24 08:55:28 +00:00
christos
63147c0e32
don't set flags in the wrong fields.
2011-07-24 01:35:15 +00:00
wiz
fc4d0f871a
Bump date for previous, fix typo.
2011-07-22 13:04:00 +00:00
joerg
29d01baadc
Allow cross-compiling from Linux
2011-07-19 18:29:41 +00:00
tron
12aec09384
Re-enable v7fs support in the tools version of "makefs" after the
...
issues have been fixed by Alan Barrett. Tested under Mac OS X.
2011-07-18 22:52:37 +00:00
tron
d341b47a1c
Define "USE_V7FS" in the makefile of the directory with the actual source.
2011-07-18 21:22:55 +00:00
tron
043cc21d99
Don't include v7fs support into tool version of "makefs" because it
...
breaks the build.
2011-07-18 17:15:51 +00:00
tron
2c0999f3fa
Fix broken error check found by GCC 4.5.
2011-07-18 17:15:07 +00:00
tron
b166bb160f
Don't include v7fs support into tool version of makefs because it
...
breaks the build.
2011-07-18 17:15:06 +00:00
uch
dd9e830956
v7fs(7th edition(V7) file system) support.
2011-07-18 08:58:38 +00:00
joerg
3eb244d801
Retire varargs.h support. Move machine/stdarg.h logic into MI
...
sys/stdarg.h and expect compiler to provide proper builtins, defaulting
to the GCC interface. lint still has a special fallback.
Reduce abuse of _BSD_VA_LIST_ by defining __va_list by default and
derive va_list as required by standards.
2011-07-17 20:54:30 +00:00
plunky
ee76f29c49
rcconf_is_set takes a tuple of <script> <variable>, so add
...
in a couple of missing script names
network ip6forwarding
sysctl defcorename
and remove the trailing "sysctl"
2011-07-14 09:35:24 +00:00
plunky
0067012e91
introduce rcvar_is_enabled to test if a rcvar is enabled
...
use this instead of rcconf_is_set to warn about superseded
rc.d scripts, to silence spurious warnings produced before
/etc/defaults/rc.conf script was updated.
(spurious warnings noted by Martin Husemann)
2011-07-14 09:31:19 +00:00
dholland
2a4f285a6d
Minor cosmetic fixes, no semantic changes. (object file diffs have been
...
checked)
2011-07-10 07:54:49 +00:00
dholland
edda69b9c3
tsort contents of file.
2011-07-10 07:31:48 +00:00
dholland
a958ceefc8
use __dead
2011-07-10 07:19:24 +00:00
kefren
e733a1c2f0
Mention that it doesn't support Path Vectors and Hop Counts
...
Mention RFC3037 and xref ldpd.conf
2011-07-07 05:20:16 +00:00
kefren
849a1cbddc
return EXIT_SUCCESS and EXIT_FAILURE instead on 0 and -1
2011-07-02 18:17:12 +00:00
joerg
7293bf2d37
Replace malloc + incorrect memset with calloc.
2011-07-01 03:09:29 +00:00
joerg
a6bdeabc26
Fix memset usage.
2011-07-01 03:07:21 +00:00
mrg
1c1ba33ca6
apply some -Wno-strict-overflow for GCC >= 4.5
2011-07-01 02:42:10 +00:00
wiz
4cbd24b23f
dependant -> dependent
2011-06-30 20:09:15 +00:00
mrg
b6d5d1aeec
fix previous / -Wno-enum-compare is only valid for GCC 4.5.
2011-06-29 06:34:31 +00:00
mrg
667b3f39be
-Wno-enum-compare is only valid for GCC 4.5.
2011-06-29 06:32:32 +00:00
mrg
90786c5ad2
apply some -Wno-enum-compare
2011-06-29 02:40:11 +00:00
plunky
976f402dd7
use appropriate types for uid/gid
2011-06-25 09:28:45 +00:00
enami
0b23c5aa3d
Move inclusion of sys/endian.h from cd9660_eltorito.c to cd9660.h
...
since actual user is not cd9660_eltorito.c but iso.h and
cd9660_eltorito.h.
Actually, include order/place of sys/endian.h doesn't matter on
netbsd since it is always included by sys/types.h but it's not
true on other system. This should fix cross build breakage on
freebsd introduced by rev. 1.16 of cd9660_eltorito.c.
Problem reported and fix suggested on twitter.
2011-06-23 02:35:56 +00:00
mrg
5ed322d90a
apply some -Wno-error/-Wno-enum-compare/-Wno-array-bounds.
...
this should be looked at more closely.
2011-06-22 05:23:53 +00:00
mrg
33c01d32fc
remove some always true if () checks GCC 4.5.3 picks up.
2011-06-22 04:03:23 +00:00
mrg
62f88af12a
fix the length argument to a memcpy() to refer to the size of the
...
destination, not the size of the pointer. real bug on 64 bit platforms.
2011-06-22 04:02:46 +00:00
mrg
c111245a78
apply some -Wno-error and/or -fno-strict-aliasing.
...
all of this should be looked at closer, but some of them are not
very trivial.
2011-06-22 02:49:41 +00:00
mrg
2c77b0841d
avoid code that looks like this:
...
x = x = y;
since GCC 4.5 complains about it having sequence point issues.
2011-06-21 09:36:46 +00:00
enami
7a059b3bd9
Now need to use own buffer for klog read due to previous change.
2011-06-20 08:27:15 +00:00
mrg
75e42fa7da
remove most of the remaining HAVE_GCC tests that are always true in
...
the modern world.
2011-06-20 07:43:56 +00:00
enami
9394c08bbe
Defer the processing of incomplete line at the end of buffer so that
...
kernel printf messages logged to /var/log/messages become always
easier to read.
2011-06-20 00:42:11 +00:00
wiz
d7b84b20f6
New sentence, new line. Fix some typos and an xref. Bump date.
2011-06-17 18:20:40 +00:00
manu
448e1c49b2
Add mount -o extattr option to enable extended attributs (corrently only
...
for UFS1).
Remove kernel option for EA backing store autocreation and do it by
default. Add a sysctl so that autocreated attriutr size can be modified.
2011-06-17 14:23:50 +00:00
kefren
d4ba594c90
Correct prefixlen->sockaddr calculation. Now ldpd may finally allow MPLS
...
forwarding for default route.
2011-06-16 20:42:15 +00:00
kefren
c2db1af7a2
obey RFC3036 3.5.2 regarding holdtimes
...
wire SIGINT
2011-06-16 14:48:30 +00:00
kefren
e043db3b96
Introduce 'show labels' command that reports about labels received from
...
unsolicited label-maps. Statify.
2011-06-16 08:27:28 +00:00
kefren
7102910ef8
shorten some execution paths related to check_route() and get_route()
...
statify a bit
don't assume AF_INET in a debug message
2011-06-16 07:11:51 +00:00
kefren
4671a6ac8d
clear the error condition
...
KNF a little bit
2011-06-16 06:05:47 +00:00
kefren
0c4a44d22f
we need to add mapping even if there is no route for the prefix
2011-06-15 18:16:48 +00:00
kefren
374dea10e0
simplify the rtsock read sequence
...
apply a little bit of KNF
2011-06-15 13:24:48 +00:00
kefren
9b733c1c9d
* add no-default-route option into configuration file and check it before
...
rejecting default-route
* exit process in case of error into the main loop
* complete FSM for RTM_CHANGE
* Check if we overflow pollfd array
2011-06-14 11:28:51 +00:00
kefren
298f340a61
Use IN_LOOPBACKNET where is the case
...
Don't forget to freeifaddrs() in case of error
Update a couple of debug messages
2011-06-14 11:23:02 +00:00
matt
b418df248c
A small bit of constification
2011-06-14 05:35:08 +00:00
joerg
d45d65aa1c
Input function is not used
2011-06-09 13:09:42 +00:00
pgoyette
eaed4c6e56
Instead of relying on the want-percent attribute, use the sensor
...
type to restrict value-based limits from Battery-capacity sensors.
2011-06-08 16:11:25 +00:00
wiz
8fb66db3ec
Sync usage with man page.
2011-06-08 12:49:45 +00:00
wiz
20e3a8d382
Sort options. New sentence, new line.
2011-06-08 12:47:51 +00:00
drochner
89c8725c96
add support for the interesting parts of ISO-2 and KOI8-R fonts
...
to the vga(4) driver
2011-06-08 10:25:21 +00:00
wiz
c8bcdb2bd2
Sort sections.
2011-06-07 17:47:24 +00:00
pgoyette
40470b7ff0
Add a BUGS section to point out that the statistic "average" is an
...
average only of the current, minimum, and maximum values, and not a
running average of all displayed current values.
2011-06-07 17:28:59 +00:00
pgoyette
83a2ecf6cc
Zero is a valid value for some sensors so update statistics code to
...
handle that.
2011-06-07 17:24:32 +00:00
bouyer
a3a7248ce7
Fix bad cut'n'paste in copyright. Pointed out by dyoung@
2011-06-07 14:56:12 +00:00
pgoyette
c84ec94ab0
1. Don't print blank for Integer sensors with value of zero
...
2. Properly print percentages in -T statistics mode
3. Always set Sensor Type (units) to a non-NULL value
4. Enable printing of percentages for Integer sensors
2011-06-06 20:48:56 +00:00
drochner
2125f0d5e4
make this work again after routing socket alignment changes
2011-06-06 16:50:46 +00:00
pgoyette
dec626b5e2
Since there is no longer a value-avg property, remove the code that
...
extracts it.
2011-06-04 13:29:02 +00:00
christos
c5cc5da37b
a little undocumented debugging.
2011-05-31 03:37:02 +00:00
manu
26381d518d
Use SOCK_SEQPACKET in perfuse if available. This fix file operations hangs
...
where the FUSE filesyste replied to an operation and got an ENOBUFS it did
not handle.
We now are also able to cleanly unmount
2011-05-30 14:50:08 +00:00
joerg
28050549eb
Ignore warnings when building with clang for now.
2011-05-30 14:41:26 +00:00
dyoung
4b2c4b100e
It's not necessary to #include both <machine/bus.h> and <sys/bus.h>,
...
because <sys/bus.h> will do: <sys/bus.h> #includes <machine/bus.h>.
2011-05-30 01:15:30 +00:00
tsutsui
79fcae9efc
Apply fixes for PR bin/44114 (makefs(8) -t cd9660 -o rockridge creates
...
corrupted cd9660fs):
- makefs/cd9660.c:
- cd9660_rrip_move_directory() should also update lenght[0] and
name_len[0] in dir->isoDirRecord
- makefs/cd9660/iso9660_rrip.c:
- cd9660_rrip_finalize_node() should check rr_real_parent in node->parent,
not in node itself in RRIP_PL case
- cd9660_rrip_initialize_node() should update only node passed as arg
so handle RRIP_PL in DOTDOT case
Fixes malformed dotdot entries in deep (more than 8 level) directories
moved into .rr_moved dir.
Should be pulled up to netbsd-5.
(no official ISO has such deep dirs, but cobalt restorecd is affected)
2011-05-29 17:07:57 +00:00
tsutsui
72050b117c
- remove unnecessary (pasto?) line on RRIP PL handling for moved dir
...
- RRIP RE length should be 4, not 0
2011-05-28 11:59:29 +00:00
plunky
b52bb12959
provide a new 'bluetooth' rc.d script, to handle Bluetooth configuration
...
in a simpler manner. This replaces btattach, btconfig, bthcid, btdevctl
and sdpd scripts, and also should not require any configuration settings
other than "bluetooth=YES", though the full range of configurations is
still possible.
2011-05-27 09:28:41 +00:00
joerg
a216da57a6
Default to -Wno-sign-compare -Wno-pointer-sign for clang.
...
Push -Wno-array-bounds down to the cases that depend on it.
Selectively disable warnings for 3rd party software or non-trivial
issues to be reviewed later to get clang -Werror to build most of the
tree.
2011-05-26 12:56:24 +00:00
dholland
0c53a1f2e4
Don't print uninitialized values off the stack, even as debug messages.
2011-05-25 04:59:22 +00:00
dholland
ef192e52d5
When checking if /var/yp/binding/foo.ypservers exists, use the domain
...
name of the domain being checked instead of the default domain name. Duh.
Necessary for PR 43900.
2011-05-25 04:33:52 +00:00
joerg
5b79cac715
No input needed
2011-05-24 13:41:53 +00:00
joerg
9d62088ad4
Properly use format strings
2011-05-24 13:26:41 +00:00
joerg
b7d3c3b035
Explicitly mark a NEWREF as unused
2011-05-24 13:26:04 +00:00
joerg
aeb74a68bf
Properly use format strings
2011-05-24 13:25:25 +00:00
joerg
ea580acd89
Use proper format string
2011-05-24 13:19:55 +00:00
joerg
77a6772536
Kill redundant ()
2011-05-24 13:08:16 +00:00
joerg
e4a1756060
Packed pointers are non-sense
2011-05-24 13:03:19 +00:00
joerg
0f19a96b11
Kill redundant externs
2011-05-24 13:02:37 +00:00
joerg
e2f3fd3f0c
Properly use format strings
2011-05-24 13:01:53 +00:00
dholland
8066ee6b9b
Remove two entirely unused members of struct domain (previously struct
...
_dom_binding). I guess these were there because it was cutpasted at
some point from struct dom_binding in <rpcsvc/yp_prot.h>.
2011-05-24 07:02:08 +00:00
dholland
cfb05cb343
Merge a couple more minor improvements from Wolfgang Stukenbrock's
...
patch in PR 43900.
2011-05-24 07:01:53 +00:00
dholland
9d84fe187a
The FILE* kept open for /var/yp/binding/foo.ypservers needs to be
...
per-domain. Also, use the file for the domain we're servicing instead
of always the file for the default domain.
Partly from Wolfgang Stukenbrock's patch in PR 43900.
2011-05-24 07:01:40 +00:00
dholland
6f997d891d
The been_ypset flag really needs to be per-domain also. Do that.
...
Partly from Wolfgang Stukenbrock's patch in PR 43900.
2011-05-24 07:01:24 +00:00
dholland
bb36c8993e
The ypbindmode really needs to be per-domain, so adjust accordingly.
...
Partly from Wolfgang Stukenbrock's patch in PR 43900.
2011-05-24 07:01:15 +00:00
dholland
0d20b396fd
Allowing ypset is a global permission flag, not an operating mode like
...
broadcast vs. configured/direct. Don't conflate the logic. As I proposed
in PR 43900.
2011-05-24 07:00:34 +00:00
dholland
e61f3e4872
Fix initialization of struct domain; initialize all fields in all
...
cases, merge duplicate code, make sure every domain gets an xid
assigned.
Partly from Wolfgang Stukenbrock's patch in PR 43900.
2011-05-24 07:00:07 +00:00
dholland
fec4c9631a
The name field of a domain should be dom->dom_name, not dom->dom_domain.
...
(This and the previous patch make the code far more readable.)
2011-05-24 06:59:53 +00:00
dholland
771940852d
The default name for a "domain" variable should be "dom", not "ypdb".
...
Change them all, and make a couple other related adjustments.
2011-05-24 06:59:35 +00:00
dholland
006489acb9
ypbindlist -> domains
2011-05-24 06:59:07 +00:00
dholland
c9b3b0763b
xid2ypdb() -> domain_find()
2011-05-24 06:58:54 +00:00
dholland
df3a50ea87
Rename struct _dom_binding -> struct domain.
2011-05-24 06:58:42 +00:00
dholland
1cb987c954
Move a bunch of messy sunrpc-related initialization stuff into its own
...
function instead of blatting it all into main().
2011-05-24 06:58:19 +00:00
dholland
fe8f2f2d61
Assimilate the open/flock combination used several times into its own
...
function.
2011-05-24 06:58:07 +00:00
dholland
2b880b64f4
Fix up calls to yp_log. They cannot use %m, because if the -d option
...
is used the messages are sent via printf instead of syslog(3).
Also, make sure that none of the calls include a trailing newline and
issue a trailing newline in the -d case so they actually print properly.
(This was noted by Wolfgang Stukenbrock in PR 43900.)
And finally, fix some cases that could in some circumstances print
uninitialized errnos.
2011-05-24 06:57:55 +00:00
dholland
15569646a4
Abstract out some of the handling of the ypservers file.
2011-05-24 06:57:30 +00:00
dholland
dfd8a41891
Check that the domain name is valid up front, instead of doing it
...
after opening sockets and registering services and whatnot.
2011-05-24 06:57:04 +00:00
dholland
cb269e446a
Remove now-unnecessary extra forward decls; sprinkle a little more static.
2011-05-24 06:56:48 +00:00
dholland
20f9d4037f
Sort contents of file.
2011-05-24 06:56:16 +00:00
dholland
58a3e249b1
sort includes
2011-05-23 02:54:53 +00:00
dholland
d2f44d281f
Don't use _t as an identifier suffix meaning "variable containing a time".
2011-05-23 02:43:10 +00:00
dholland
86a03218b2
Introduce DPRINTF() macro, remove most #ifdef DEBUG usages.
...
No change to compiler output.
2011-05-23 02:36:35 +00:00
dholland
41741c3c2a
u_int32_t -> uint32_t and similar
2011-05-23 02:06:41 +00:00
christos
c419ca3c2c
include system headers after config.h
2011-05-23 00:21:50 +00:00
christos
0477909eb4
From Nathan Whitehorn (nwhitehorn at freebsd dot org):
...
Add code to generate bootable ISOs on Powermac and CHRP systems.
Synthesize some partition maps (APM and MBR, respectively) pointing
to (a) the whole disk, and (b) relevant El Torito boot images that
have been added by other code. These partition maps are a little
bit funny looking, but they seem to work. FreeBSD has been using
this successfully in their release generation on powerpc, as well
as generating all non-SPARC install media. SPARC support could
probably be added as an extension of this patch.
2011-05-22 21:51:39 +00:00
riastradh
f4368f5168
Initialize psshfs root node's readdir waiters queue.
...
Every other node's readder waiters queue is initialized in makenode,
but the root node is created specially.
ok pooka
2011-05-19 15:07:16 +00:00
wiz
57309cc658
Sync usage with manpage.
2011-05-15 00:06:23 +00:00
wiz
103f698f94
Sort options. Remove unnecessary quotes and Bk/Ek.
2011-05-12 08:42:24 +00:00
christos
ce1401c437
use err(3) and warn(3) for error and warning printing, tiny knf.
2011-05-12 01:59:16 +00:00
christos
5e771eb510
Don't use a static buffer for ifaddrs (and not check for overflowing it!)
...
(speciallly if you are setuid!)
2011-05-11 00:38:28 +00:00
njoly
1199515b5b
Fix prologue macros order.
2011-05-10 12:16:18 +00:00
christos
0172147d4a
AS additions from Zafer Aydogan to print the AS path. Minor cleanups to compile
...
without WARNS=1 hackery.
2011-05-10 01:58:58 +00:00
christos
64b9d7212f
Add AS support for traceroute6. While here cleanup both traceroute programs
...
a bit.
XXX: Error printing on traceroute should be revisited.
2011-05-10 01:52:49 +00:00
manu
73963ae9de
Enable the build of perfused and libperfuse
2011-05-09 08:51:08 +00:00
manu
dfdc5ae18f
Display actual error from FUSE on failures
2011-05-06 13:45:35 +00:00
jruoho
7b594ad6a4
Identify AMD Family 11h. From PR bin/41188 by FUKAUMI Naoki.
2011-05-03 09:06:22 +00:00
christos
acc16d96d1
Share the amd64 and i386 files.
...
XXX: Is there a better way to get the cpu family?
2011-04-30 16:57:58 +00:00
wiz
613716bd88
Sort sections, SEE ALSO, and fix xref.
2011-04-29 10:31:02 +00:00
wiz
31ccbbf612
Fix a typo.
2011-04-28 16:23:41 +00:00
wiz
9505784535
Sort sections.
2011-04-28 12:12:47 +00:00
wiz
769b2ceb89
security(7), not (8).
2011-04-28 11:57:08 +00:00
wiz
85e4f3c354
security(7), not (8).
2011-04-28 11:23:57 +00:00
wiz
5989309eef
Add -f to usage, and make it match man page.
2011-04-25 22:54:05 +00:00
wiz
819b5392dd
New sentence, new line. Use more markup.
2011-04-25 22:53:09 +00:00
wiz
933a549c56
Make usage match manpage.
2011-04-25 22:51:26 +00:00
wiz
9ebf684514
Remove unimplemented -b option. From YOMURA Masanori.
2011-04-25 22:49:06 +00:00
wiz
d76f551343
Add option arguments to descriptions. From YOMURA Masanori.
2011-04-25 22:46:35 +00:00
wiz
f62c7cc384
Typo, and markup consistency. From YOMURA Masanori.
2011-04-25 22:45:31 +00:00
wiz
a3587e505a
Use Fl for flags, not Ar.
2011-04-25 22:34:46 +00:00
wiz
2da9b3e053
New sentence, new line.
2011-04-25 22:32:27 +00:00
wiz
2c1d99899f
New sentence, new line. Remove trailing whitespace.
2011-04-25 22:20:29 +00:00
wiz
9c28d8c767
Use more markup.
2011-04-25 22:12:05 +00:00
martin
0210de65a6
Use rsd0c instead of the (far less common) rwd0c as boot disk in the
...
sparc64 example.
2011-04-25 07:04:50 +00:00
manu
33c1bbe9da
- fix warnings
...
- try to handle ENOBUFS in a nicer way
- use errx() for usage message, not err(), as we do not waht strerror(errno)
2011-04-25 04:30:59 +00:00
martin
4b3298a1fe
Invert the chroot/tcpdump/etc test and make it remove the (not needed
...
anymore) directory.
2011-04-17 13:16:59 +00:00
elric
98fbe74f8c
Upgrade Heimdal to 1.5pre1 by switching the build from crypto/dist/heimdal
...
to crypto/external/bsd/heimdal. The latter was just imported as the head
of the Heimdal tree as of a few days ago.
2011-04-15 18:05:42 +00:00
mrg
e813220ee8
enable crash(8) for sparc64. it's still sort of minimal and segvs
...
on some commands, but it sort of works and isn't useless.
2011-04-14 08:21:06 +00:00
mrg
8ca46a05f4
replace a non-working make construct with a working one.
...
now crash only builds unsupported.c on non-x86 systems again.
2011-04-12 01:47:20 +00:00
martin
c98db97906
Add a new check to populate /var/chroot/tcpdump/etc
2011-04-11 20:29:50 +00:00
mrg
07a98cd33f
obsolete DB_AOUT_SYMBOLS. however, we need to leave most of the code
...
in db_sym.[ch] as it is used by the elf version of crash(8).
i will be cleaning up the db_sym.c code in a follow up commit to avoid
having dead code compiled.
2011-04-11 04:22:30 +00:00
pgoyette
4516c056be
Synchronize -N option name in Synopsis with that in the Description
2011-04-10 22:49:52 +00:00
christos
bee149d152
- amd64 support
...
- fix end of file handling
From: Vladimir Kirillov proger at wilab dot org dot ua
2011-04-10 20:39:42 +00:00
ahoka
76a36edbfd
fix one more flash_addr_t fallout
2011-04-04 18:30:07 +00:00
mbalmer
428c959348
Fix PR 42923, from Takahiro HAYASHI, thanks.
2011-04-02 10:19:27 +00:00
dholland
81f95bf6fa
Don't cast return value of malloc
2011-03-30 05:24:05 +00:00
dholland
b639c25325
use __printflike()
2011-03-30 05:20:59 +00:00
bouyer
e5fa3d981b
Make sure to not report quotas for a class if we didn't get valid datas
...
from kernel.
2011-03-27 17:15:17 +00:00
bouyer
c5e67c7b83
quota2_prop.c moved to libquota
2011-03-25 10:30:35 +00:00
bouyer
d9210c2405
Add a new libquota library, which contains some blocks to build and/or
...
parse quota plists; as well as a getfsquota() function to retrieve quotas
for a single id from a single filesystem (whatever filesystem this is:
a local quota-enabled fs or NFS). This is build on functions getufsquota()
(for local filesystems with UFS-like quotas) and getnfsquota();
which are also available to userland programs.
move functions from quota2_subr.c to libquota or libprop as appropriate,
and ajust in-tree quota tools.
move some declarations from kernel headers to either sys/quota.h or
quota/quota.h as appropriate. ufs/ufs/quota.h still installed because
it's needed by other installed ufs headers.
ufs/ufs/quota1.h still installed as a quick&dirty way to get a code
using the old quotactl() to compile (just include ufs/ufs/quota1.h instead of
ufs/ufs/quota.h - old code won't compile without this change and this is
on purpose).
Discussed on tech-kern@ and tech-net@ (long thread, but not much about
libquota itself ...)
2011-03-24 17:05:39 +00:00
jruoho
b0ced04988
As per request from the author, put non-standard PERFORMANCE back.
2011-03-24 05:48:54 +00:00
christos
8bd84b0401
Fix typos in character ranges from: Baptiste Daroussin bapt at freebsd dot org
2011-03-23 13:11:51 +00:00
jruoho
761da725b5
Use 'offset indent' for the list of commands. Emphasize valid commands.
...
Remove PERFORMANCE (too small paragraph to warrant a section).
2011-03-22 07:40:10 +00:00
jruoho
b9f2143d66
Use .Ss for non-standard subtitles in the DESCRIPTION.
2011-03-22 07:31:42 +00:00
jruoho
3ce23e1c1e
Use a better width for the list.
2011-03-21 15:35:21 +00:00
joerg
ff53df718a
Create vers.c with -r, there is no point in embedding an ever changing
...
token that isn't even used.
2011-03-21 05:09:33 +00:00
plunky
0e26bab8bd
provide more informative error messages
2011-03-20 19:46:13 +00:00
ahoka
ab7aeea36d
Fix markbad command
2011-03-20 06:10:27 +00:00
christos
ade14f59b9
don't decrement if children are 0
2011-03-17 19:43:34 +00:00