Plan 9 from Bell Labs’s /usr/web/sources/contrib/uriel/changes/2006/0312/5

Copyright © 2021 Plan 9 Foundation.
Distributed under the MIT License.
Download the Plan 9 distribution.


drawterm: add audio device on Linux, FreeBSD
 [rsc] --rw-rw-r-- M 467740 rsc drawterm 40 Mar 12 10:31 sys/src/cmd/unix/drawterm/Make.config
	/n/sourcesdump/2006/0312/plan9/sys/src/cmd/unix/drawterm/Make.config:1 - 
	/n/sourcesdump/2006/0313/plan9/sys/src/cmd/unix/drawterm/Make.config:1,2
	+ AUDIO=none
	  include $(ROOT)/Make.$(CONF)
 [rsc] --rw-rw-r-- M 467740 rsc drawterm 453 Mar 12 10:31 sys/src/cmd/unix/drawterm/Make.unix
	/n/sourcesdump/2006/0312/plan9/sys/src/cmd/unix/drawterm/Make.unix:13,18 - 
	/n/sourcesdump/2006/0313/plan9/sys/src/cmd/unix/drawterm/Make.unix:13,20
	  LDADD=-L$(X11)/lib -lX11 -ggdb
	  LDFLAGS=$(PTHREAD)
	  TARG=drawterm
	+ # AUDIO=none
	+ AUDIO=unix
	  
	  all: default
	  
 [rsc] --rw-rw-r-- M 467740 rsc drawterm 608 Mar 12 10:31 sys/src/cmd/unix/drawterm/kern/Makefile
	/n/sourcesdump/2006/0312/plan9/sys/src/cmd/unix/drawterm/kern/Makefile:8,13 - 
	/n/sourcesdump/2006/0313/plan9/sys/src/cmd/unix/drawterm/kern/Makefile:8,15
	  	chan.$O\
	  	data.$O\
	  	dev.$O\
	+ 	devaudio.$O\
	+ 	devaudio-$(AUDIO).$O\
	  	devcons.$O\
	  	devdraw.$O\
	  	devfs-$(OS).$O\
 [rsc] --rw-rw-r-- M 467740 rsc drawterm 471 Mar 12 10:31 sys/src/cmd/unix/drawterm/kern/devaudio-none.c
 [rsc] --rw-rw-r-- M 467740 rsc drawterm 3064 Mar 12 10:31 sys/src/cmd/unix/drawterm/kern/devaudio-unix.c
 [rsc] --rw-rw-r-- M 467740 rsc drawterm 6144 Mar 12 10:31 sys/src/cmd/unix/drawterm/kern/devaudio.c
 [rsc] --rw-rw-r-- M 467740 rsc drawterm 328 Mar 12 10:31 sys/src/cmd/unix/drawterm/kern/devaudio.h
 [rsc] --rw-rw-r-- M 467740 rsc drawterm 509 Mar 12 10:31 sys/src/cmd/unix/drawterm/kern/devtab.c
	/n/sourcesdump/2006/0312/plan9/sys/src/cmd/unix/drawterm/kern/devtab.c:14,19 - 
	/n/sourcesdump/2006/0313/plan9/sys/src/cmd/unix/drawterm/kern/devtab.c:14,20
	  extern Dev fsdevtab;
	  extern Dev mntdevtab;
	  extern Dev lfddevtab;
	+ extern Dev audiodevtab;
	  
	  Dev *devtab[] = {
	  	&rootdevtab,
	/n/sourcesdump/2006/0312/plan9/sys/src/cmd/unix/drawterm/kern/devtab.c:26,31 - 
	/n/sourcesdump/2006/0313/plan9/sys/src/cmd/unix/drawterm/kern/devtab.c:27,33
	  	&fsdevtab,
	  	&mntdevtab,
	  	&lfddevtab,
	+ 	&audiodevtab,
	  	0
	  };
	  
 [rsc] --rw-rw-r-- M 467740 rsc drawterm 2443 Mar 12 10:31 sys/src/cmd/unix/drawterm/main.c
	/n/sourcesdump/2006/0312/plan9/sys/src/cmd/unix/drawterm/main.c:56,61 - 
	/n/sourcesdump/2006/0313/plan9/sys/src/cmd/unix/drawterm/main.c:56,62
	  		panic("bind #I: %r");
	  	if(bind("#U", "/", MAFTER) < 0)
	  		panic("bind #U: %r");
	+ 	bind("#A", "/dev", MAFTER);
	  
	  	if(open("/dev/cons", OREAD) != 0)
	  		panic("open0: %r");


Bell Labs OSI certified Powered by Plan 9

(Return to Plan 9 Home Page)

Copyright © 2021 Plan 9 Foundation. All Rights Reserved.
Comments to [email protected].