new applets lpr,lpq (update)
Klaus.Hachmeister at l-3com.com
Klaus.Hachmeister at l-3com.com
Mon Jul 21 11:50:02 UTC 2008
Another example. (another postscriptfile)
----------------------------------------------------------------------
/etc/syslog
Jul 21 13:44:29 PC535li cups-lpd[11476]: Connection from blackfin (IPv4 192.168.70.120)
Jul 21 13:44:29 PC535li cups-lpd[11476]: Receive print job for psprint
Jul 21 13:44:29 PC535li cups-lpd[11476]: Error while reading file - Connection reset by peer
Jul 21 13:44:29 PC535li cups-lpd[11476]: Closing connection
Jul 21 13:44:57 PC535li cups-lpd[11479]: Connection from blackfin (IPv4 192.168.70.120)
Jul 21 13:44:57 PC535li cups-lpd[11479]: Receive print job for psprint
Jul 21 13:44:58 PC535li cups-lpd[11479]: Error while reading trailing nul - Connection reset by peer
Jul 21 13:44:58 PC535li cups-lpd[11479]: Closing connection
----------------------------------------------------------------------
/ # lpr -Ppsprint at lpdserver /mnt/nfs/testprint.ps
/ # strace -f -v -s 1024 lpr -Ppsprint at lpdserver /mnt/nfs/testprint.ps
ioctl(0, SNDCTL_TMR_TIMEBASE or TCGETS, {c_iflags=0x500, c_oflags=0x5, c_cflags=0x1cb1, c_lflags=0x8a3b, c_line=0, c_cc="\x03\x1c\x08\x15\x04\x00\x01\x00\x0
ioctl(1, SNDCTL_TMR_TIMEBASE or TCGETS, {c_iflags=0x500, c_oflags=0x5, c_cflags=0x1cb1, c_lflags=0x8a3b, c_line=0, c_cc="\x03\x1c\x08\x15\x04\x00\x01\x00\x0
getuid32() = 0
getuid32() = 0
open("/etc/passwd", O_RDONLY) = 3
ioctl(3, SNDCTL_TMR_TIMEBASE or TCGETS, 0x462c94) = -1 ENOTTY (Inappropriate ioctl for device)
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_SHARED|MAP_ANONYMOUS|0x4000000, 0, 0) = 0xe70000
read(3, "root:C7O0oWtNuGHNE:0:0:root:/root:/bin/sh\nnobody:x:99:99:Nobody::\n", 256) = 66
close(3) = 0
open("/etc/resolv.conf", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/etc/config/resolv.conf", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/etc/hosts", O_RDONLY) = 3
ioctl(3, SNDCTL_TMR_TIMEBASE or TCGETS, 0x4625dc) = -1 ENOTTY (Inappropriate ioctl for device)
read(3, "# Do not remove the following line, or various programs\n# that require network functionality will fail.\n127.0.0.1\tlocalhost.localdomain\tlocalh9
close(3) = 0
socket(PF_INET, SOCK_STREAM, IPPROTO_IP) = 3
setsockopt(3, SOL_SOCKET, SO_REUSEADDR, [1], 4) = 0
connect(3, {sa_family=AF_INET, sin_port=htons(515), sin_addr=inet_addr("192.168.70.12")}, 16) = 0
getpid() = 336
uname({sysname="Linux", nodename="blackfin", release="2.6.22.18-ADI-2008R1-svn", version="#60 Fri Jul 18 13:39:32 CEST 2008", machine="blackfin"}) = 0
write(3, "\2psprint\n", 9) = 9
read(3, "\0", 1) = 1
open("/mnt/nfs/testprint.ps", O_RDONLY) = 4
write(3, "\00255 cfA336blackfin\n", 19) = 19
write(3, "Hblackfin\nProot\nJ/mnt/nfs/testprint.ps\nldfA336blackfin\n", 55) = 55
write(3, "\0", 1) = 1
read(3, "\0", 1) = 1
fstat(4, {st_dev=makedev(0, 15), st_ino=696325, st_mode=S_IFREG|0444, st_nlink=1, st_uid=1000, st_gid=1000, st_blksize=8192, st_blocks=32, st_size=14778, s0
write(3, "\00314778 dfA336blackfin\n", 22) = 22
read(4, "%!PS-Adobe-3.0\n%%BoundingBox: 0 0 612 792\n%%Pages: 1\n%%LanguageLevel: 1\n%%DocumentData: Clean7Bit\n%%DocumentSuppliedResources: procset testpr6
write(3, "%!PS-Adobe-3.0\n%%BoundingBox: 0 0 612 792\n%%Pages: 1\n%%LanguageLevel: 1\n%%DocumentData: Clean7Bit\n%%DocumentSuppliedResources: procset testp6
read(4, " dup\t\t\t% loopval\n% 3 index\t\t% width\n% mul\t\t\t% loopval * width\n% 2 index\t\t% height\n% lineto\t\t% Next point\n%\n% 0\t\6
write(3, " dup\t\t\t% loopval\n% 3 index\t\t% width\n% mul\t\t\t% loopval * width\n% 2 index\t\t% height\n% lineto\t\t% Next point\n%\n% 0\t6
read(4, "ore\n stroke \t\t\t% Draw lines...\n\n grestore\n\n % Label the lines...\n pageWidth 54 mul\t\t\t% x = pageWidth * 3/4 * 72\n pageHeig6
write(3, "ore\n stroke \t\t\t% Draw lines...\n\n grestore\n\n % Label the lines...\n pageWidth 54 mul\t\t\t% x = pageWidth * 3/4 * 72\n pageHei6
read(4, " Font\n (Interpreter Information) show\t% Show the text\n\n smallFont setfont\t\t\t% Font\n pageWidth 49 mul\t\t\t% x = pageWidth * 11/16 * 72\0
write(3, " Font\n (Interpreter Information) show\t% Show the text\n\n smallFont setfont\t\t\t% Font\n pageWidth 49 mul\t\t\t% x = pageWidth * 11/16 * 720
write(3, "\0", 1) = 1
read(3, "\0", 1) = 1
close(3) = 0
_exit(0) = ?
Process 336 detached
/ #
----------------------------------------------------------------------
-
Mit freundlichen Gruessen / Best regards
Klaus Hachmeister
Research & Development
Am Montag, den 21.07.2008, 14:06 +0400 schrieb Vladimir Dronnikov:
> strace -f -v -s 1024
More information about the busybox
mailing list