<br><br>
<div><span class="gmail_quote">On 9/26/06, <b class="gmail_sendername">Tzafrir Cohen</b> <<a href="mailto:tzafrir.cohen@xorcom.com">tzafrir.cohen@xorcom.com</a>> wrote:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">Next thing to do, I guess, is to run:<br><br>strace ztcfg<br><br>to see which device exactly is accessed . Though /dev/zap/ctl is the
<br>usual suspect.</blockquote>
<div> </div>
<div> </div>
<div>[root@mythtv zaptel-1.4.0-beta1]# strace ztcfg<br>execve("/sbin/ztcfg", ["ztcfg"], [/* 25 vars */]) = 0<br>uname({sys="Linux", node="mythtv", ...}) = 0<br>brk(0) = 0x8779000
<br>access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory)<br>open("/etc/ld.so.cache", O_RDONLY) = 3<br>fstat64(3, {st_mode=S_IFREG|0644, st_size=87164, ...}) = 0<br>old_mmap(NULL, 87164, PROT_READ, MAP_PRIVATE, 3, 0) = 0xf6fea000
<br>close(3) = 0<br>open("/lib/tls/libm.so.6", O_RDONLY) = 3<br>read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\0\363C"..., 512) = 512<br>fstat64(3, {st_mode=S_IFREG|0755, st_size=215248, ...}) = 0
<br>old_mmap(0x43c000, 139424, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x43c000<br>old_mmap(0x45d000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x20000) = 0x45d000<br>close(3) = 0
<br>open("/lib/tls/libc.so.6", O_RDONLY) = 3<br>read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0 \0372\000"..., 512) = 512<br>fstat64(3, {st_mode=S_IFREG|0755, st_size=1512400, ...}) = 0<br>
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xf6fe9000<br>old_mmap(0x30d000, 1207532, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x30d000<br>old_mmap(0x42e000, 16384, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x120000) = 0x42e000
<br>old_mmap(0x432000, 7404, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x432000<br>close(3) = 0<br>old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xf6fe8000
<br>mprotect(0x42e000, 8192, PROT_READ) = 0<br>mprotect(0x45d000, 4096, PROT_READ) = 0<br>mprotect(0x309000, 4096, PROT_READ) = 0<br>set_thread_area({entry_number:-1 -> 6, base_addr:0xf6fe86c0, limit:1048575, seg_32bit:1, contents:0, read_exec_only:0, limit_in_pages:1, seg_not_present:0, useable:1}) = 0
<br>munmap(0xf6fea000, 87164) = 0<br>open("/dev/zap/ctl", O_RDWR) = 3<br>brk(0) = 0x8779000<br>brk(0x879a000) = 0x879a000<br>open("/etc/zaptel.conf", O_RDONLY) = 4
<br>fstat64(4, {st_mode=S_IFREG|0644, st_size=9532, ...}) = 0<br>mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xf6fff000<br>read(4, "#\n# Zaptel Configuration File\n#\n"..., 4096) = 4096
<br>read(4, "he list remains idle\n# \"clear\" "..., 4096) = 4096<br>read(4, "le is a single tone DCS transmit"..., 4096) = 1340<br>read(4, "", 4096) = 0<br>close(4) = 0
<br>munmap(0xf6fff000, 4096) = 0<br>ioctl(3, 0x80844a05, 0xfef3aad0) = -1 EINVAL (Invalid argument)<br>ioctl(3, 0x404c4a13, 0x807a7cc) = -1 ENOTTY (Inappropriate ioctl for device)<br>write(2, "ZT_CHANCONFIG failed on channel "..., 71ZT_CHANCONFIG failed on channel 1: Inappropriate ioctl for device (25)
<br>) = 71<br>close(3) = 0<br>exit_group(1) = ?<br> </div>
<div>/Morten</div>
<div> </div>
<div> </div></div>