Commit Graph

10962 Commits

Author SHA1 Message Date
christos 4ef443d8ef - pass lint
- minor spacing nits
- check allocations
2010-11-24 13:17:56 +00:00
yamt 22304c0e72 C version of tpfmt.sh 2010-11-23 20:48:40 +00:00
wiz 78f9e33271 Fix Dd argument. 2010-11-16 23:59:02 +00:00
christos 06b55256bc minor KNF nits. 2010-11-16 02:53:49 +00:00
christos d6f06df46c add a safe alternative of the previous. 2010-11-10 01:44:04 +00:00
apb 4c73f7f041 Change the ironically unafe "find . -print | xargs pathchk -p" to
the safe "find . -exec pathchk -p \{\} +" in an example.
2010-11-09 20:34:55 +00:00
mrg 77a6c12f15 pull across a few changes from the freebsd folks:
http://svn.freebsd.org/changeset/base/213044
	- fixes gunzip issues
http://svn.freebsd.org/changeset/base/213927
	- fixes various typos and comments

and also an older change to add support for bzip2's "-k" option:
	don't delete the input file


thanks!
2010-11-06 21:42:32 +00:00
wiz 5140adc8f3 Sort sections. 2010-11-03 12:21:50 +00:00
plunky a4d969557b In server mode, relax the requirement to specify a channel number. If
one is not given, attempt to allocate the first unused one.
2010-11-03 08:27:27 +00:00
plunky ff185da4c9 -s can be used in server mode too 2010-11-02 19:44:09 +00:00
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