pgoyette
a6cdaa71c9
Add crypto stuff on top of what we already have, rather than replacing!
2017-04-22 05:32:40 +00:00
christos
f067861335
fix conditional
2017-04-21 23:49:17 +00:00
christos
1b32fecb19
new libarchive need crypto.
2017-04-21 23:06:18 +00:00
sjg
63284db849
Str_Match: fix closure tests for [^] and add unit-test.
2017-04-21 22:15:44 +00:00
joerg
c57cca78b1
Use libarchive 3.x interface and not obsolete 2.x versions.
2017-04-20 13:11:35 +00:00
sjg
28591a203d
We cannot tollerate things like trailing /.. etc in .CURDIR
...
so only accept -C arg "as is" if it contains no relative components.
2017-04-20 03:57:27 +00:00
sjg
d5e210c750
We cannot use buf as both src and destination for snprintf.
2017-04-19 04:54:17 +00:00
maya
2d8e6e9f14
Use correct header for SIZE_MAX. from a.rin
2017-04-17 13:29:07 +00:00
riastradh
eeefcaaf18
Omit needless XXX comment.
2017-04-17 00:02:45 +00:00
riastradh
9719b6dc16
Justify the last unjustified assertion here.
...
Sprinkle a few more assertions to help along the way.
(Actually, it was justified; I just hadn't made explicit the relation
to the value of fdpos that all two callers specify.)
2017-04-16 23:50:40 +00:00
riastradh
9b8e93bfa9
Emphasize that MAX_WINDOW_SIZE is bounded by the maximum uint32_t.
...
Since we store window sizes in uint32_t, the maximum had better fit
in uint32_t!
2017-04-16 23:43:57 +00:00
riastradh
f4d0632c19
Plug memory leak.
...
CID 978372
2017-04-16 21:39:49 +00:00
riastradh
b682286be9
Plug memory leak in ParseTraditionalInclude.
2017-04-16 21:38:38 +00:00
riastradh
a882a64c0e
Plug memory leak.
...
CID 978370
2017-04-16 21:37:37 +00:00
riastradh
91528f07b9
Make it clearer that this is not a memory leak.
...
CID 978369
2017-04-16 21:35:08 +00:00
riastradh
ffc8790f33
Plug memory leak in JobPrintCommand.
...
CID 978366
2017-04-16 21:23:43 +00:00
riastradh
ea5fc7e0b0
Plug memory leaks in Dir_FindFile.
...
CID 978364
2017-04-16 21:14:47 +00:00
riastradh
eeadb7df8c
Clarify that assignment is for effect, not truth of value.
...
CID 977502
2017-04-16 21:04:44 +00:00
riastradh
0b16a13b06
Guarantee no arithmetic overflow.
2017-04-16 21:03:13 +00:00
riastradh
c2373570bc
Replace dead conditional by assert.
...
CID 975995
2017-04-16 20:59:04 +00:00
riastradh
76e0a5c432
Check fcntl return values out of paranoia.
...
CID 975277
CID 975278
2017-04-16 20:57:14 +00:00
riastradh
bef219d9d2
Check return value of fseek.
...
CID 975275
CID 975276
2017-04-16 20:49:09 +00:00
riastradh
73e03a372c
Assert archive member syntax. Cite who guarantees it.
2017-04-16 20:38:18 +00:00
dholland
3e81c5349d
nowadays function specifiers go in declaration_specifiers
...
(not after the declarator)
2017-04-16 20:20:24 +00:00
riastradh
dcafbc2650
Factor out parts of cached_realpath.
...
This wacky API confused Coverity (CID 1405167) and is no good for
human readers either.
2017-04-16 20:14:49 +00:00
maya
f79348a46a
Use bmake_malloc where we don't test the return value of malloc currently.
...
Appeases coverity.
2017-04-16 20:00:58 +00:00
riastradh
9660a1b334
Use, don't kludge, MAKE_ATTR_UNUSED.
...
CID 1300234
CID 1300237
CID 1300238
CID 1300245
CID 1300255
CID 1300267
CID 1300284
2017-04-16 19:53:58 +00:00
christos
62446aa148
Redo the statistics through an indirection array and put the definitions
...
of the arrays in pfkeyv2.h so that they are next to the index definitions.
Remove "bogus" comment about compressing the statistics which is now fixed.
2017-04-13 16:38:31 +00:00
sjg
66fdc11da2
Add test case for :M[^A-Z]
2017-04-13 16:23:39 +00:00
christos
b01bbcc712
PR/52159: Jamie Landeg-Jones: Don't try to expand $'s in paths or system
...
variables. Only expand them ${MAKE} variable values.
2017-04-13 13:55:23 +00:00
sjg
624bde60ca
Str_Match: allow [^a-z] to behave as expected.
2017-04-11 17:30:13 +00:00
christos
2e389fd691
switch to the OpenBSD dc
2017-04-10 16:38:19 +00:00
christos
fc8ee2f577
build fixes.
2017-04-10 16:37:48 +00:00
christos
7d0b3229b8
Import OpenBSD's dc.
2017-04-10 16:34:18 +00:00
kamil
5fd86a8275
Remove the BUGS section from gcore(1) - issues are no longer relevant
...
gcore(1) uses internally ptrace(2). PT_DUMPCORE is restricted to stopped
processes, therefore the bug about inconsistend core is no longer true.
2017-03-26 22:00:04 +00:00
sjg
c4a2b5e751
When we change .OBJDIR we should delete any cached realpath results
...
for relative paths.
Reviewed by: christos
2017-03-26 17:16:03 +00:00
maxv
68bac86bd0
Drop support for 586 PMCs; the detection is broken, and I'm not sure the
...
code even works. No one has ever cared about this anyway, and we won't
maintain it.
While here, fix the mask on the counter - K7 and F10H have 48bit counters.
2017-03-24 18:30:44 +00:00
riastradh
cab898d0ae
Simplify.
2017-03-21 13:56:38 +00:00
nat
cf3b979950
Renane ioctl AUDIO_SETPROC to AUDIO_SETCHAN.
...
Add an ioctl to return channel number (AUDIO_GETCHAN). This can be used
on audio/sound/audioctl devices.
Return EIO in read/write/ioctl/poll/stat if fp has been closed or is
invalid.
Update audio.4, audioio.h and audioctl(1) to reflect these changes.
2017-03-21 07:04:29 +00:00
scole
1c8dc2cc2e
Add most common thai length/area measurements of wah rai ngan
2017-03-21 01:21:59 +00:00
snj
df2789d5e6
add 7.1 release date
2017-03-15 05:05:04 +00:00
sjg
d998c40b6f
Do not consider using -C arg "as is" for .CURDIR unless it starts with '/'.
...
Reviewed by: christos
2017-03-11 23:59:02 +00:00
maxv
8e6373a0b2
Add the AMD 10h family, with additional events that I believe are useful,
...
the DTLB misses on large pages for example.
While here, remove a few K7 flags that do not actually exist on K7 (there
must have been a confusion between K7 and K8); and make the 'pmc list'
command a little more user-friendly.
2017-03-11 10:33:46 +00:00
wiz
2c8e0836c2
Sort sections. Remove unnecessary/incorrect macros.
2017-03-10 15:34:17 +00:00
maxv
92ee76edc0
PRIu64
2017-03-10 15:06:20 +00:00
maxv
65d7f88d0e
Switch to per-CPU PMC results, and completely rewrite the pmc(1) tool. Now
...
the PMCs are system-wide, fine-grained and more tunable by the user.
We don't do application tracking, since it would require to store the PMC
values in mdproc and starting/stopping the counters on each context switch.
While this doesn't seem to be particularly difficult to achieve, I don't
think it is really interesting; and if someone really wants to measure
the performance of an application, they can simply schedctl it to a cpu
and look at the PMC results for this cpu.
Note that several options are implemented but not yet used.
2017-03-10 13:09:11 +00:00
maxv
279ed0db08
Add a version argument, set to 1, and check it in usr.bin/pmc. Use uint32_t
...
instead uint8_t since we now need 12bit selectors (10h family). And while
here KNF.
2017-03-08 16:42:27 +00:00
maxv
0446600dd7
We don't use libi386 anymore.
2017-03-08 16:05:29 +00:00
christos
98fc723392
Accept PTR for addtype
2017-03-06 23:04:52 +00:00
christos
23620f03df
fix typeof, add __builtin_offsetof
2017-03-06 21:01:39 +00:00