matt
3c2ba04fe8
If MAKE_NATIVE, use sysctl to get MACHINE_ARCH from hw.machine_arch.
2013-09-14 15:09:34 +00:00
joerg
73c26f5d13
Remove copyright, use __RCSID.
2013-09-13 20:51:20 +00:00
wiz
2aa10166ef
Update standards conformance. From jmc@openbsd.
2013-09-12 07:26:13 +00:00
pooka
d5e9a0d652
Not all systems sport err.h, so redo those bits using the die() routine
...
we need to have hanging around anyway for proper error reporting from
a daemonizing server. le sigh
2013-09-10 20:36:08 +00:00
pooka
7066c11a5f
<sys/cdefs.h> comes from rumpuser_port.h
2013-09-10 19:42:32 +00:00
pooka
22882349e0
Need bsd.own.mk for mk.conf, include it at an opportune place.
2013-09-10 18:28:46 +00:00
pooka
ff8534b0b9
Make it possible to omit libutil from the link. It's used only for
...
disklabel stuff, and is only harmful on platforms that don't currently
provide user namespace disklabel interfaces.
2013-09-10 18:22:55 +00:00
pooka
4e5f4292e3
Make this work on platforms without disklabels, modules, etc.
2013-09-10 17:59:52 +00:00
pooka
56651ceb36
Do like the comment suggests and don't sanity-check the -c parameter here,
...
since we can't do it properly.
2013-09-10 17:13:29 +00:00
christos
f812b4b441
Expand ep->host to contain the final string that we are going to print
...
before computing the width of the host column.
2013-09-09 19:20:38 +00:00
wiz
be79f6c038
Improvements from jmc@openbsd.
2013-09-09 09:02:25 +00:00
prlw1
2f73dfb288
Fix
...
/var/log/httpd/access.log 644 52 * $W0D23 ZBP /var/run/httpd.pid 30
newsyslog: config line 16: bad signal type
(strtol: **endptr is '\0' on success rather than *endptr)
2013-09-05 11:34:40 +00:00
sjg
cde1c40e1b
Add VAR_INTERNAL as a context for variables set by make itself,
...
which should not override those set by makefiles.
Currently MAKEFILE is the only variable affected.
Reviewed by: christos
2013-09-04 15:38:26 +00:00
sjg
be3c37de45
Do not apply shellErrFlag unless errCheck is true.
2013-09-02 19:26:42 +00:00
jnemeth
571c39977c
use spaces, not tabs
2013-09-01 10:17:58 +00:00
jnemeth
50fa456661
add NetBSD 6.1.1 release
2013-09-01 10:16:19 +00:00
mrg
0c2e06460b
move most of the header writing code from record.c into wav.c and sun.c.
...
introduce a struct write_info for communication between front ends and
backends.
libaudio API is still pretty ugly, and needs to stay local here for now,
but it is a little more usable for other tools now.
2013-08-30 20:57:26 +00:00
sjg
ec98624792
Fix parsing of SUNSHCMD style :sh = assigments.
...
Submitted by: Will Andrews at freebsd.org
2013-08-28 21:56:49 +00:00
dholland
98ce70f09e
passes WARNS=5, don't set it to 4.
2013-08-21 21:05:29 +00:00
joerg
d9a44d716d
Use more static and __dead.
2013-08-15 20:48:56 +00:00
christos
17168f5ab4
CID 1062241: simplify free for coverity
2013-08-12 20:36:30 +00:00
joerg
2c7fa37363
Add more __dead.
2013-08-12 14:03:18 +00:00
pooka
26b4d3d169
ioconf/pseudo-root have been in here unchanged for 3+ years and their use
...
has spread from rump kernels into dozens of kernel modules. Let's pretend
we don't want to see config yell about them being experimental every time.
2013-08-11 10:37:08 +00:00
apb
480a3064b0
Use Va markup to show that the "suffix" part of ".PATH.suffix"
...
is a placeholder, not a literal string.
Also bump date.
2013-08-11 09:53:49 +00:00
dholland
e9067f113d
WARNS=5
2013-08-11 08:03:10 +00:00
dholland
99934b2d0c
Passes WARNS=5, so don't set WARNS=4.
2013-08-11 06:48:46 +00:00
dholland
65910359bc
Passes WARNS=5, so don't set WARNS=3.
2013-08-11 06:47:38 +00:00
dholland
06eef6894d
add more static
2013-08-11 06:45:23 +00:00
dholland
043c758bea
add more const
2013-08-11 06:43:10 +00:00
dholland
beced5ea78
WARNS=5
2013-08-11 06:39:47 +00:00
dholland
7899f1dc15
Remove redundant WARNS=5.
2013-08-11 06:32:13 +00:00
dholland
1a91378aae
Pass WARNS=5.
2013-08-11 06:31:00 +00:00
dholland
524e377411
Passes WARNS=5; don't set WARNS=4.
2013-08-11 06:09:29 +00:00
dholland
f02a6c3b94
Document .PATH.suffix:. Noted by apb back in December of 2008
...
(that's how long my queue is...)
2013-08-11 04:40:58 +00:00
dholland
7c248df2ae
Whitespace.
2013-08-11 01:54:35 +00:00
dholland
8d0b47d1c9
Fix another bug, relating to parsing the [=x=] syntax.
2013-08-11 01:49:40 +00:00
dholland
aba78f7512
Tidy up more. This is pretty ratty code.
2013-08-11 01:42:35 +00:00
dholland
5e8eff378e
Tidy up.
2013-08-11 01:29:28 +00:00
dholland
9f2ae0ea3d
Pass -Wpointer-sign.
2013-08-11 01:00:13 +00:00
dholland
d506ddf6f7
avoid undefined behavior.
2013-08-11 00:52:17 +00:00
dholland
8a7a973b90
Don't explicitly zero bss variables that are already zeroed.
2013-08-11 00:49:15 +00:00
dholland
c47da08424
Add comments explaining how this works.
2013-08-11 00:48:37 +00:00
dholland
8b42fe334c
Simplify the parser handling.
2013-08-11 00:39:22 +00:00
dholland
e141bc4323
Remove silly written-out initialization of string1.
2013-08-11 00:34:09 +00:00
dholland
848d757378
Make tr -c work. Fixes PR 48113.
...
When -c is in effect, scan string1 first, complement it, and then
iterate over the results while scanning string2. Otherwise, scan
string1 and string2 together as before.
2013-08-11 00:28:46 +00:00
dholland
567ab40d47
apply some CSE
2013-08-11 00:12:47 +00:00
dholland
9dd74a9973
Restore preexisting wrong behavior of tr -c (translates all characters
...
to the last letter in string2) instead of a different wrong behavior
(translates all characters to 0xff) accidentally just introduced.
2013-08-11 00:11:46 +00:00
dholland
48dbbc109e
sprinkle const
2013-08-11 00:05:49 +00:00
dholland
7f7f549599
Make the parser state opaque. While here, fix a memory leak when using
...
the [:foo:] syntax.
2013-08-11 00:04:14 +00:00
dholland
d05d2aa5a7
Expose less of the parser state outside str.c.
2013-08-10 23:54:41 +00:00
sjg
7f708505a0
ParseGetLine: don't treat a zero byte as end of buffer if P_end says it isn't.
...
Consume up to next newline, and issue a parse warning.
If no newline found before P_end, carry on as before.
2013-08-10 21:20:03 +00:00
dholland
3c77b25ade
punctuation usage
2013-08-10 20:59:27 +00:00
sjg
ac8c620987
Move the call to Job_SetPrefix() to Job_Init() so that
...
makefiles have had a chance to set .MAKE.JOB.PREFIX
2013-08-04 16:48:15 +00:00
sjg
bd8f3e806f
Allow an empty .MAKE.JOB.PREFIX to supress output of --- job --- tokens
2013-07-30 19:09:57 +00:00
joerg
349a581e92
Mark the dead.
2013-07-30 15:10:04 +00:00
pgoyette
d96eb15780
fferentiate zegrep and zfgrep by their basename only, so they can be
...
invoked with a pathname (ie, /usr/bin/z{e,f}grep).
OK wiz@
2013-07-25 12:25:23 +00:00
wiz
a5684d07dd
Use Mt for email addresses.
2013-07-20 21:39:55 +00:00
uwe
2a44517182
Constify some more.
2013-07-19 05:05:59 +00:00
uwe
4e29a793cc
Spell "keywords" without space. Fix couple of typos.
2013-07-19 04:59:46 +00:00
uwe
6a118683e9
manual_find_buildkeyword() - now that we control the format string, we
...
may use asterisk precision specification instead of temporary
modifying the _build string itself.
2013-07-19 04:55:05 +00:00
uwe
6fed3e8105
Fix manual_find_buildkeyword() to not use non-literal printf format.
2013-07-19 04:18:10 +00:00
uwe
fd25be260e
Use -Wno-format-nonliteral instead of blanket -Wno-format.
2013-07-19 04:17:02 +00:00
matt
c9855651f8
Add stub port for evbcf which has enough to do a distribution build.
2013-07-18 22:08:59 +00:00
matt
105794b79c
Use ${MACHINE_CPU} == "m68k"
2013-07-18 21:11:47 +00:00
matt
611b1a73a0
Make sure fdformat is on m68k (even sun2)
2013-07-18 21:03:07 +00:00
uwe
887d84a8cf
Don't access memory outside the array if tmpdirlen == 0.
2013-07-18 16:33:31 +00:00
christos
f75400a6b8
use -Wno-format and revert "fixstring"
2013-07-18 16:28:52 +00:00
christos
532207c739
Set the string to NUL instread of providing an new empty string (from uwe)
2013-07-18 16:01:25 +00:00
christos
ef965bff9b
WARNS=6
...
- fix cast qual issues
- don't use snprintf on a user-provided buffer
2013-07-18 15:39:08 +00:00
sjg
11a6c9d08b
From bmake: move decl of pwd nearer to where it is used so the whole
...
thing can be ifdef'd out without causing unused variable errors.
2013-07-18 15:31:49 +00:00
uwe
a2ec5e5863
Revert previous; other errors from WARNS=3 obscured the error in jump().
2013-07-18 04:05:32 +00:00
uwe
d7a42acd68
Constify jump() arguments appropriately.
2013-07-18 04:02:31 +00:00
uwe
e0d6c9b51f
Move manstate::pagerlen so that its "length of the above" comment makes sense.
2013-07-18 03:48:22 +00:00
uwe
3403b722b4
whatis.db is no more, so don't mention its location in FILES.
2013-07-18 03:40:31 +00:00
uwe
db23d137fa
Remove unnecessary line wrap.
2013-07-18 03:38:25 +00:00
sjg
af0aba95fb
When a var is set in the CMD context, it prevents the same name
...
being set in GLOBAL context. We should also delete any such
variable in GLOBAL context, else make -V will show the wrong value.
2013-07-16 20:00:56 +00:00
sjg
7217d3f346
Fix unit-tests to cope with recent change to progname
2013-07-16 19:59:28 +00:00
christos
b294e9655c
WARNS=6
2013-07-16 17:48:22 +00:00
christos
17cdc7e70d
use bmake_foo instead of efoo()
2013-07-16 14:22:13 +00:00
christos
4f413ffa5d
More gmake compatibility:
...
1. add -w flag to print Entering and Leaving directory name the the beginning
and the end of processing.
2. export MAKELEVEL=$((MAKELEVEL + 1)) only in the child environment.
3. when printing error messages, prefix them with the program name [$MAKELEVEL]
for $MAKELEVEL > 0
4. if $MAKEFLAGS consists only of letters assume it is a set of flags (as
allowed by posix), convert them to -f -l -a -g -s, so that they get parsed
properly.
With those fixes gmake -> bmake -> gmake -> bmake etc. works as expected.
2013-07-16 14:00:53 +00:00
christos
76db28c1cd
Make this work again like gmake. sjg: see the test program.
2013-07-15 20:33:11 +00:00
joerg
2a9957221e
Fix description of hex encoding.
2013-07-15 18:46:47 +00:00
sjg
3eb72d30de
For .MAKE.LEVEL.ENV use VAR_CMD so updates are ignored
2013-07-09 18:44:41 +00:00
sjg
b834173368
Set .MAKE.LEVEL.ENV to the name of the env variable used to communicate
...
the recursion level to sub-makes.
2013-07-09 18:13:14 +00:00
sjg
58ba636624
If using gmake's MAKELEVEL; use it the same way
2013-07-06 18:19:17 +00:00
sjg
db7ba27731
If commandShell hasErrCtl is true, set shellErrFlag for use by
...
CompatRunCommand() so that behavior in jobs and compat mode
remains consistent.
2013-07-05 22:14:56 +00:00
joerg
c664b621d8
Swap order of _CITRUS_LC_MONETARY_SYM_INT_N_CS_PRECEDES and
...
_CITRUS_LC_MONETARY_SYM_INT_P_SEP_BY_SPACE to match data files.
2013-07-04 11:36:17 +00:00
riastradh
a7f90b2fd2
Fix races in /dev/u?random initialization and accounting.
...
- Push /dev/random `information-theoretic' accounting into cprng(9).
- Use percpu(9) for the per-CPU CPRNGs.
- Use atomics with correct memory barriers for lazy CPRNG creation.
- Remove /dev/random file kmem grovelling from fstat(1).
2013-07-01 15:22:00 +00:00
christos
865e3e8f40
PR/47973: Justin Cormack: build uses <sys/signal.h> not in POSIX
2013-06-29 15:19:32 +00:00
mlelstv
9adb142f7d
Change to home directory only after setting the full user context
...
to avoid issues with NFS or other user-mapped mounts that don't
give root the privilege to chdir there.
2013-06-29 05:08:35 +00:00
christos
8e33b891d8
prevent re-entry race and crash
2013-06-28 17:36:18 +00:00
joerg
9e69720425
Fix violations of the sequence point rule.
2013-06-28 15:04:35 +00:00
wiz
a87a4e005d
Prefer Aq to \*[Lt] etc.
2013-06-28 10:13:18 +00:00
jdf
eb2a9790dd
* adjust indentation of list block
...
* fix capitalization
* remove superfluous word ('The')
Patch supplied by Bug Hunting.
2013-06-27 21:55:10 +00:00
agc
6a34c4426f
fix a typo
2013-06-26 20:20:36 +00:00
wiz
46ad464f12
Remove trailing whitespace.
2013-06-25 07:08:10 +00:00
sjg
adfd644b2f
Add .MAKE.META.IGNORE_PATHS to facilitate local additions to the paths
...
which should be ignored by meta_oodate().
2013-06-25 00:20:54 +00:00
sjg
8d830c54ea
Ignore any files in /proc/
2013-06-24 21:16:02 +00:00
riastradh
6290b0987e
Rework rndsink(9) abstraction and adapt arc4random(9) and cprng(9).
...
rndsink(9):
- Simplify API.
- Simplify locking scheme.
- Add a man page.
- Avoid races in destruction.
- Avoid races in requesting entropy now and scheduling entropy later.
Periodic distribution of entropy to sinks reduces the need for the
last one, but this way we don't need to rely on periodic distribution
(e.g., in a future tickless NetBSD).
rndsinks_lock should probably eventually merge with the rndpool lock,
but we'll put that off for now.
cprng(9):
- Make struct cprng_strong opaque.
- Move rndpseudo.c parts that futz with cprng guts to subr_cprng.c.
- Fix kevent locking. (Is kevent locking documented anywhere?)
- Stub out rump cprng further until we can rumpify rndsink instead.
- Strip code to grovel through struct cprng_strong in fstat.
2013-06-23 02:35:23 +00:00
christos
f9bc1aff9f
- don't re-use the va list twice, leads to coredumps.
...
- introduce and use a "safe" version of pam_strerror(3) that does not return
NULL
2013-06-20 20:54:02 +00:00
martin
a4110c4cbe
Not all pointers are 64bit - use uintptr_t instead of uint64_t.
2013-06-20 10:43:18 +00:00
christos
08c3d981c5
Don't use -P as a kmem printer, verify that the address points to a pcb first!
2013-06-19 21:12:03 +00:00
sjg
8ae5585417
Use a #define for the variable name we put in environment to pass .MAKE.LEVEL
...
in case we don't want to use gmake's MAKELEVEL in a different way.
2013-06-18 20:06:09 +00:00
sjg
339d4acb06
Fix use after free bug.
...
Parse_SetInput:
curFile->fname was using the buffer passed to it - which ReadMakefile frees.
This change makes the comment in ParseEOF about leaking curFile->fname true.
2013-06-18 19:31:27 +00:00
christos
263238eca4
put back previous change
2013-06-10 20:24:58 +00:00
joerg
f43bb6a704
Document section stripping.
2013-06-10 19:40:53 +00:00
joerg
e2a82ef2e5
Revert last, it doesn't even build.
2013-06-10 19:07:09 +00:00
joerg
4619e36982
Strip .eh_frame and .eh_frame_hdr from crunched binaries.
2013-06-10 18:27:30 +00:00
christos
8e6bfe4b71
1. Don't export .MAKE.LEVEL, because this is an illegal variable name for
...
some shells; export MAKELEVEL like gmake(1) does.
2. It is absurd for the environment variable to be one greater than the
make variable!?!?! To wit...
printf 'all:\n\t@echo ${.MAKE.LEVEL}; printenv .MAKE.LEVEL' | make -f -
2013-06-10 16:46:19 +00:00
joerg
8ca7e152f2
If /usr/bin/cpp is not executable and RPCGEN_CPP was not set, try
...
/usr/bin/clang-cpp. This allows rpcgen to work in a clang-only release
build. Document hack to be resolved when the final decision about
/usr/bin/cpp and friends is made.
2013-06-05 13:54:26 +00:00
sjg
c2bb7dcfaf
JobCreatePipe: do fcntl() *after* any fiddling of fd's
...
to avoid leaking descriptors.
Job_ServerStart: set closed on exec for jp_0 and jp_1.
2013-06-05 03:59:43 +00:00
wiz
d9f4f0b529
Formatting fix.
2013-06-03 21:59:41 +00:00
dholland
5cb2af665c
prenice (like pgrep and pkill) won't match itself. Also fix nearby typo.
...
Bump date. From Ted Unangst in PR 47880.
2013-06-03 20:44:01 +00:00
christos
39b77304e7
PR/47877: Michael van Elst: Disable and enable software flow control properly
2013-06-02 13:18:12 +00:00
wiz
72c9578c5d
Expand "it's", and fix fix convention notation.
...
From Bug Hunting.
2013-05-29 15:08:30 +00:00
wiz
d1e02d4ffe
- Reference tr(1) in `SEE ALSO' section;
...
- bump date.
From Bug Hunting.
2013-05-29 15:05:43 +00:00
wiz
8e553084e0
- Improve wording and punctuation;
...
- use `.Ex' macro for `EXIT STATUS' section;
- add `SEE ALSO' section, referencing (back) dd(1) and sed(1);
- bump date.
From Bug Hunting.
2013-05-29 15:04:37 +00:00
wiz
2767d6c8a8
- Remove redundant argument to non-first `.Nm' macro;
...
- reference `-u' at `-c', to make more clear that the former can
be used with the latter;
- bump date.
From Bug Hunting.
While here, use Aq.
2013-05-29 15:00:35 +00:00
sjg
f30350f125
Clean up some left overs
2013-05-29 00:23:31 +00:00
christos
00ce62b685
0 == local
2013-05-24 23:09:45 +00:00
christos
e2bd819f6a
improve wording
2013-05-22 19:35:11 +00:00
christos
689b483c53
put a note on what FRC means.
2013-05-22 19:30:35 +00:00
jnemeth
d294950c6a
add release dates for 6.0.1 and 6.1
2013-05-22 01:29:59 +00:00
sjg
2987902a0c
We cannot skip all Suff processing for .PHONY targets,
...
else, srcs which are wildcards do not get expanded as needed.
2013-05-18 13:13:34 +00:00
sjg
aea6f93e2d
Var_Delete: expand name if needed.
2013-05-18 13:12:45 +00:00
sjg
5410a37e87
New compiler doesn't like foo()
2013-05-16 21:56:56 +00:00
rodent
24964ef3d1
conform -> conforms - this is the file that was supposed to be changed.
...
apb@ was right about iconv(3).
2013-05-12 12:25:12 +00:00
christos
05f0356f93
commit test
2013-05-10 15:41:44 +00:00
christos
386c53c1fd
cvs test
2013-05-10 15:40:21 +00:00
christos
913c2b066a
sort
2013-05-10 15:31:22 +00:00
christos
d5f24c2bef
Simplify previous: instead of polluting the whole code with extra arguments
...
and dealing with byteorder, do the whole thing in where we need it.
2013-05-08 00:34:50 +00:00
christos
16c1b372e4
print the port where the server is listening when displaying status.
2013-05-07 21:41:51 +00:00
christos
28ad8d2d4f
include symver.c
2013-05-07 13:00:35 +00:00
riastradh
31eb87b9b9
Make partial read/write error messages more consistent in vndcompress.
2013-05-06 22:53:24 +00:00
jdf
c21f9d1234
Fix capitalisation (again, last time the wrong sentence).
2013-05-06 13:44:17 +00:00
jdf
65965ffb43
* Remove OPTIONS section (uncommon) and put options to the DESCRIPTION.
...
* Fix capitalisation.
Patch supplied by Bug Hunting.
2013-05-06 11:00:16 +00:00
lukem
fc12eae8b6
Version 20130220: restart fix, SYST response parsing improvement
2013-05-05 10:40:19 +00:00
riastradh
4b4929c1fa
Add __printflike to vsnprintf_ss.
2013-05-04 15:37:39 +00:00
riz
e3748ff50d
'unsigned long' prints with %lu, not %zu.
2013-05-04 15:27:39 +00:00
riastradh
2552c7f866
Add -l option to synopsis for vndcompress(1) man page.
2013-05-04 14:34:13 +00:00
riastradh
2f16fbbee5
Fix sign-compare in compress_blocks.
...
Not sure why my builds didn't reveal this one -- they revealed
several others during development.
2013-05-04 14:29:48 +00:00
joerg
72bd42b73b
__printflike for vwarnx_ss, __dead for err_ss and errx_ss.
2013-05-04 10:21:27 +00:00
wiz
5d2fa123b0
Sort. Add EXIT STATUS section.
2013-05-04 07:13:23 +00:00
uebayasi
1a3fcd0b6a
find(1): Compare timestamp in nsec scale in -anewer/-cnewer/-newer.
2013-05-04 06:29:32 +00:00
riastradh
85bbc49a09
Rewrite vndcompress to support SIGINFO and restart after interrupt.
...
Make it generally more robust in the process.
No objection (or comment) on tech-userlevel.
ok christos
2013-05-03 23:28:15 +00:00
christos
f675af4a4b
PR/47789: Eitan Adler: small nits
2013-05-01 20:53:59 +00:00
wiz
066e923046
Add EXIT STATUS section. From Ryan Kavanagh via jmc@openbsd.
...
Bump date. Remove unnecessary quotes.
XXX: The behaviour is now documented as-is, but it is weird.
"biff n; biff y" has an exit status of 1 because biff reports the
notification status when it was started, not after it has finished.
{Free,Open}BSD's biff behave the same, but it's unclear if it's intended
or a bug.
2013-04-28 12:43:51 +00:00
njoly
6808baeb15
Move .Op macro to its own line. Fix SYNOPSIS rendering with mandoc.
2013-04-26 17:12:10 +00:00
matt
1c3095e278
If earm, include from lib/libexecinfo for unwind.h
2013-04-25 07:12:46 +00:00
christos
ba8c9169d1
make NOSTRICT behave the same a LINTED; use the new format.
2013-04-19 18:51:14 +00:00