Commit Graph

10952 Commits

Author SHA1 Message Date
njoly
e65e925989 Fix typo in date. 2010-11-02 12:10:13 +00:00
christos
710d230a43 simplify and modernize:
- make sysctl mibs static
- use warn/warnx for warnings
makes binary 4K smaller.
2010-10-18 19:39:32 +00:00
njoly
53f8ab79a9 Do use putenv(3) to handle the provided strings directly, instead of
setenv(3) which need string splitting and later reassembly.
2010-10-16 11:13:52 +00:00
skrll
e6cdac9c4b Implement dl_iterate_phdr.
Somewhat taken from FreeBSD. Manual page from OpenBSD.
2010-10-16 10:27:06 +00:00
jschauma
40df9f7982 remove duplicate 'was' in a comment 2010-10-15 19:35:08 +00:00
dholland
1657dadafa Per PR 19359 note that mkdep doesn't handle all make metacharacters
correctly; in particular, filenames containing '#' cause trouble,
although '$' seems to be ok. Bump date.
2010-10-15 05:46:48 +00:00
wiz
146c9ced7d Sync usage with man page. 2010-10-06 07:59:18 +00:00
dholland
d4471f4981 Allow -c with -d/-u. While uniq -cu isn't that useful, uniq -cd often is.
No objection on tech-userlevel, and the arbitrary restriction has been
irritating me for ages.
2010-10-06 06:43:26 +00:00
wiz
2724492d78 Print version string to stdout instead of stderr;
it is user-requested and not an error.
2010-10-02 19:31:14 +00:00
tron
c71ba331c0 Don't free memory that was succesfully passed to putenv(3) which takes
ownership of the memory.
2010-10-02 10:55:36 +00:00
gson
98bb28c039 putenv() no longer accepts a const string 2010-10-02 09:24:16 +00:00
wiz
218cd6edd9 Remove trailing spaces, add a few serial commas. 2010-09-14 11:57:03 +00:00
sjg
e7543dc43a tools/make/buildmake.sh compiles *.c, make sure meta.c does nothing
unless USE_META is defined.
2010-09-13 21:31:59 +00:00
sjg
796c4b0282 We do not need filemon(9) to have a .meta file 2010-09-13 20:34:21 +00:00
sjg
c0dfab6508 Bump date 2010-09-13 16:32:00 +00:00
sjg
4db43f7e0c Add meta.c which implements "meta" mode for make.
In this mode, a .meta file is created for each target, capturing
the expanded commands used, any command output, and if filemon(9)
is available, a record of system calls which are of interest.
Not enabled unless USE_META=yes is set when building make.
Also, if FILEMON_H exists, meta.c will be compiled to use filemon(9).
2010-09-13 15:36:57 +00:00
wiz
fcf318eda4 Fix typos found by Ryo HAYASAKA in PR 43857.
While here, split file systems that grew together.
2010-09-09 11:42:13 +00:00
christos
963d31a298 KNF, make error messages consistent. 2010-09-08 13:58:46 +00:00
christos
d049daf420 PR/43852: Wolfgang Stukenbrock: yp_passwd command may destroy NIS database
entries when used on a server that includes users via netgroups.
2010-09-08 13:44:44 +00:00
jmcneill
d148107cd6 return an error if testing fails, and dump the device info before running tests 2010-09-03 19:20:37 +00:00
jmcneill
e90b0e0082 at the request of mrg, print the parent of audioN's device name 2010-09-02 02:17:35 +00:00
jmcneill
59619cc632 print the version field from AUDIO_GETDEV if present 2010-09-02 02:08:30 +00:00
jmcneill
014a1e1b18 use htole16 to ensure that the pcm stream is slinear16_le on big endian hosts 2010-09-01 21:54:00 +00:00
wiz
7a2801201d Index argument is not optional, make it clearer in the usage. 2010-09-01 09:18:03 +00:00
wiz
600e381dfa Update for Jared's changes from a few minutes ago. 2010-09-01 09:17:31 +00:00
jmcneill
e405ac8d24 add support for testing audio devices. the usage of audiocfg changes:
audiocfg list
  audiocfg default [index]
  audiocfg test [index]

'list' shows the available audio devices, 'default' sets the default
audio device, and 'test' will play a tone for 2 seconds on each
channel. example:

  $ ./audiocfg list
  0: [*] audio0: ICH2 AC97 (2 playback channels)
  1: [ ] audio1: Pseudo Audio (2 playback channels)
  $ ./audiocfg test 0
  testing channel 0...
  testing channel 1...
  $
2010-09-01 09:04:16 +00:00
wiz
bd524aa578 Mention that audiocfg also controls /dev/audioctl, /dev/mixer, and /dev/sound.
Noted by mrg.
Bump date.
2010-09-01 07:50:33 +00:00
wiz
0b930dd75d Add man page. 2010-08-31 14:57:26 +00:00
mrg
172ca3ccec add a simple app to maintain the symlinks for audio devices in /dev, so
that it's easy to change the "default" audio device.  eg:

# audiocfg
0: [*] audio0: HD Audio
1: [ ] audio1: HD Audio
2: [ ] audio2: Pseudo Audio
# audiocfg 1
setting default audio device to audio1
# audiocfg
0: [ ] audio0: HD Audio
1: [*] audio1: HD Audio
2: [ ] audio2: Pseudo Audio

written by jared.  thanks!

(there's a separate patch in the works to give "HD Audio" a better name.)


this is not enabled yet, but will be soon.

it also needs a manual page.  any takers?
2010-08-30 02:19:47 +00:00
christos
d28b9cb610 unhook awk again 2010-08-27 16:50:10 +00:00
christos
75bfb16aca switch back to the old awk till I fixed the problem. 2010-08-27 16:38:27 +00:00
christos
74e4b96653 Unglue awk. 2010-08-26 14:57:47 +00:00
chs
692e1d3085 fix emul state tracking for exit vs exit_group on linux. 2010-08-08 18:31:50 +00:00
sjg
5bc2a55818 In jobs mode, if we cannot make a target we die without any further
clue.  Call PrintOnError() before DieHorribly().
2010-08-07 21:28:40 +00:00
sjg
55b9a99afa wait[pid]() is called in several places.
If we encounter an error and run the .ERROR target, we may
reap a pid which jobs is waiting for.  Ensure that we
cleanup so that make isn't left waiting for an already
deceased child.
2010-08-07 06:44:08 +00:00
cube
3f1dd008b1 Emit compatible struct devsw_conv when version is older than 20100430. 2010-07-30 16:23:49 +00:00
christos
703b8bafda PR/43643: David A. Holland: dash prefix broken with make -j
As the comment says in JobPrintJob set JOB_IGNERR with - commands. Fix
whitespace so that the output is consistent, although there are two separate
execution logic implementations (command.c, job.c)
2010-07-20 16:39:27 +00:00
tron
40771355a2 Fix argument handling of the "-b" option on 64bit platforms. Using
"-b 1024k" would previously fail with this error message:

progress: buffer size 1048576 is greater than -1.
2010-07-17 10:51:03 +00:00
mrg
52a4f7ac75 remove the remaining non-ELF code. 2010-07-11 12:07:31 +00:00
kiyohara
ee29569a43 Change '-e' to optional. Use load addr(-a), if '-e' not specify.
Just like u-boot's mkimage.
2010-07-10 07:48:25 +00:00
kiyohara
3b82565500 s/mkuboot/mkubootimage/ in usage(). 2010-07-09 11:36:42 +00:00
enami
4964ac468f Line up total numbers again. 2010-07-09 07:04:30 +00:00
rmind
d2bd4814d4 Add #include <sys/param.h> 2010-07-08 20:52:22 +00:00
christos
e2d47bd7fa get the value of the entry for the class not the key. 2010-07-07 21:24:34 +00:00
pooka
062d6d1f8d Make "i" unsigned to mirror change to struct uvm_history 2010-07-07 11:42:18 +00:00
mrg
4c92852a80 remove almost all the ability to build netbsd with an a.out target.
we're ELF now, and there are many missing checks against OBJECT_FMT.
if we ever consider switching, the we can figure out what new ones
we need but for now it's just clutter.

this doesn't remove any of the support for exec_aout or any actually
required-for-boot a.out support, only the ability to build a netbsd
release in a.out format.  ie, most of this code has been dead for
over a decade.

i've tested builds on vax, amd64, i386, mac68k, macppc, sparc, atari,
amiga, shark, cats, dreamcast, landisk, mmeye and x68k.  this covers
the 5 MACHINE_ARCH's affected, and all the other arch code touched.
it also includes some actual run-time testing of sparc, i386 and
shark, and i performed binary comparison upon amiga and x68k as well.


some minor details relevant:
- move shlib.[ch] from ld.aout_so into ldconfig proper, and cut them
  down to only the parts ldconfig needs
- remove various unused source files
- switch amiga bootblocks to using elf2bb.h instead of aout2bb.h
2010-07-06 05:59:50 +00:00
dholland
6b10e71eb2 Revert 1.80, which somehow manages to produce different (wrong)
behavior with -jN. Unfixes PR 43534. Need a different approach...
2010-07-06 03:56:59 +00:00
wiz
fbb846b2d3 Bump date for previous (mpls). 2010-06-30 07:30:16 +00:00
dholland
a472ed2f77 Document that suffix rules are not applied to PHONY targets, and also
document the .TARGETS builtin variable, which has existed since 4.4 days.
Bump date. Arises from discussion in PR 43502.
2010-06-30 01:03:54 +00:00
dholland
d6bfe606f5 Set .PREFIX early the same place .TARGET is set. This makes sure it's
defined even in cases where the suffix search logic is skipped, such
as .PHONY targets, and fixes PR 43534.

Note: because .PHONY targets do not get suffix searching, .PREFIX will
not have any suffixes removed. This seems vaguely logical, although
it's not the only reasonable interpretation.

We may also want to reconsider whether suffix rules are skipped for
phony targets, too. That behavior is somewhat counterintuitive.
2010-06-30 00:25:04 +00:00