[OpenIndiana-discuss] man pages to solaris cmds

Harry Putnam reader at newsguy.com
Mon Dec 20 20:15:20 UTC 2010


Albert Lee <trisk at opensolaris.org> writes:

[...]

Harry Wrote:
>>  Someone advised me to set LANG=en_US.ISO8859-1.  When I did that, it
>> does cure my on-going problem, .... but now wondering if when calling
>> `man /bin/ls' ... it may act differently with LANG set that way.
>>
>> Yup... I just tested that theory out.
>>
>> When I do a fresh login (to oi 148) $LANG is en_US.UTF-8.  On that
>> setting all man pages have goofy characters like this (from man ls)
>>
>>
>>  DESCRIPTION
>>       List  information  about the FILEs (the current directory by
>>       default).  Sort entries alphabetically if none of  ââctuvSUX
>>       nor ââsort.
>>
>> But I can call `man /bin/ls' and it opens the right page... with no
>> warnings about binary, but it does have the guff above in it.
>>
>> If I set LANG=en_US.ISO8859-1 then man pages open nice and clean but
>> it does cause the warnings about binary files (and fail) if I should
>> try `man /bin/ls'  with that setting.
>>
>> Another poster here or on openindiana explained it best he could to me
>> and seems a mismatch of some sort between my terminal program and
>> $LANG setting.  I can correct if I happen to be using putty from
>> windows, but logging in from linux or another solaris machine... I'm
>> not really sure what terminal program is involved... the TERM setting
>> when from linux is `TERM=linux', when from solaris TERM=sun-color.
>>
>> But what actual program is running the terminal... I don't know for sure.
>>

Albert Responded:

> The problem is probably not the terminal application itself, but TERM
> which tells applications which terminal definition to use to
> communicate with it. It's a relic of the days of physical terminals
> when every vendor had its own incompatible protocol.
>
> (That said, the standard terminal app is gnome-terminal and has a
> Help->About dialog which should be impossible to miss...)

That would not hold true if the connection is to console mode would
it?  I mean the oi install is not running an X desktop.

When I login from a linux desktop running X, my TERM becomes `xterm'.

When I login from a windows machine using putty, my TERM becomes
`xterm'.

When I login at the oi console my TERM becomes `sun-color'

I don't think gnome-terminal comes into play ...

I've already described the difference in behavior when LANG is set
differently.

Briefly:

  In order to see man pages without odd characters in them when man is
  called in the normal way ( man ls) I find it necessary to set the
  LANG variable to en_US.ISO8859-1

As to different behaviors according to LANG setting:

LANG set to en_US.UTF-8

   Calling man normally (man ls) reveals unusual char in the pages
   makeing it difficult to read them.

   There is no error when calling `man /bin/ls', however the manpage
   revealed has unusual characters in it:

  man /bin/ls  
  [...]
    SYNOPSIS
       /usr/bin/ls [ââabcCdeEfFghHiklLmnopqrRsStuUwvVx1@]
            [ââ/c | ââ/] [ââ%atime | crtime | ctime | mtime | all]
            [ââblockâsize size] [ââcolor[=when]] [ââfileâtype]
            [ââsi] [ââtimeâstyle style] [file]...
  [...]

-------        ---------       ---=---       ---------      -------- 

LANG set to en_US.ISO8859-1

   Now man pages called with the normal `ls man' are clean and
   readable, however calling `man /bin/ls' now provokes the error, and
   the page displayed if I answer `y' is even harder to read and seems
   to contain a different sort of mess ... looks like escape sequences
   I think.

   man /bin/ls
  "/usr/share/man/cat1/ls.1" may be a binary file.  See it anyway? y

   SYNOPSIS
        /usr/bin/ls [â<80><90>â<80><90>abcCdeEfFghHiklLmnopqrRsStuUwvVx1@]
             [â<80><90>â<80><90>/c | â<80><90>â<80><90>/] [â<80><90>â<80><90>%atime | crtime | ctime | mtime | all]
             [â<80><90>â<80><90>blockâ<80><90>size size] [â<80><90>â<80><90>color[=when]] [â<80><90>â<80><90>fileâ<80><90>type]
             [â<80><90>â<80><90>si] [â<80><90>â<80><90>timeâ<80><90>style style] [file]...

-------        ---------       ---=---       ---------      -------- 

> Anyway, I can't reproduce the problem here. What would help is to provide:
> The output of 'env', the error you're seeing from 'man /bin/ls' and
> the file contents from 'truss -f man /bin/ls 2>logfile'.

I've inlined env output below, but `truss -f man /bin/ls 2>logfile' has
been running for 13 minutes now with no evidence of returning the
command prompt, as can be seen from the following output.

  reader > ps wwaux|awk 'NR==1{firstline = $0}
  /truss.*man/{print}END{print firstline}';date

  reader    1622  0.0  0.2 2440 1876 pts/5    S 13:54:38  0:00 truss -f man /bin/ls
  reader    1625  0.0  0.2 2448 1612 pts/5    S 13:54:39  0:00 truss -f man /bin/ls
  USER       PID %CPU %MEM   SZ  RSS TT       S    START  TIME COMMAND
  Monday, December 20, 2010 02:07:15 PM CST

  Started at 1:54 and still running at 2:07

Is that the expected outcome?

When I kill the command, a file of 359 lines is produced and also 
inlined below:
-------        ---------       ---=---       ---------      -------- 

env:

MANPATH=/usr/gnu/share/man:/usr/share/man:/usr/X11/share/man
HOSTNAME=voi1
TERM=xterm
SHELL=/bin/bash
HISTSIZE=5000
SSH_CLIENT=127.0.0.1 33808 22
CVSROOT=/usr/local/cvsroot
SSH_TTY=/dev/pts/6
HISTFILESIZE=18000
USER=reader
LS_COLORS=no=00:fi=00:di=01;37:ln=01;36:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=01;05;37;41:mi=01;05;37;41:ex=01;32:*.cmd=01;32:*.exe=01;32:*.com=01;32:*.btm=01;32:*.bat=01;32:*.sh=01;32:*.csh=01;32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.gz=01;31:*.bz2=01;31:*.bz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.rar=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.jpg=01;35:*.jpeg=01;35:*.gif=01;35:*.bmp=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.mng=01;35:*.xcf=01;35:*.pcx=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.avi=01;35:*.mkv=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.mov=01;35:*.qt=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.fli=01;35:*.gl=01;35:*.dl=01;35:*.pdf=00;32:*.ps=00;32:*.txt=00;32:*.patch=00;32:*.diff=00;32:*.log=00;32:*.tex=00;32:*.doc=00;32:*.mp3=00;36:*.wav=00;36:*.mid=00;36:*.midi=00;36:*.au=00;36:*.ogg=00;36:*.flac=00;36:*.aac=00;36:
PAGER=/usr/bin/less -ins
MAIL=/var/mail/reader
PATH=/cvsb/voi1/export/home/reader/scripts:/cvsb/voi1/export/home/reader/scripts/perl:/usr/local/bin:/usr/local/sbin:/home/reader/bin:/opt/csw/bin:/usr/gnu/bin:/usr/bin:/usr/X11/bin:/usr/sbin:/sbin
PWD=/home/reader
EDITOR=/usr/bin/vim
LANG=en_US.UTF-8
TZ=US/Central
PS1=\[\033[01;31m\]HOST:\h \[\033[01;33m\]\w\n\u ${sign} \[\033[00m\]
HISTCONTROL=ignoreboth
SHLVL=1
PS4=$LINENO: 
HOME=/home/reader
LOGNAME=reader
SSH_CONNECTION=127.0.0.1 33808 127.0.0.1 22
HISTFILE=/home/reader/.bash_history
_=/usr/gnu/bin/env

-------        ---------       ---=---       ---------      -------- 

truss_out.txt

1623:	execve("/usr/bin/man", 0x08047580, 0x0804758C)  argc = 2
1623:	sysinfo(SI_MACHINE, "i86pc", 257)		= 6
1623:	mmap(0x00000000, 32, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_ANON, -1, 0) = 0xD13B0000
1623:	mmap(0x00000000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANON, -1, 0) = 0xD13A0000
1623:	mmap(0x00000000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANON, -1, 0) = 0xD1390000
1623:	mmap(0x00000000, 4096, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_ANON, -1, 0) = 0xD1380000
1623:	memcntl(0xD13B8000, 32064, MC_ADVISE, MADV_WILLNEED, 0, 0) = 0
1623:	memcntl(0x08050000, 6616, MC_ADVISE, MADV_WILLNEED, 0, 0) = 0
1623:	resolvepath("/usr/lib/ld.so.1", "/lib/ld.so.1", 1023) = 12
1623:	resolvepath("/usr/bin/man", "/usr/bin/man", 1023) = 12
1623:	sysconfig(_CONFIG_PAGESIZE)			= 4096
1623:	stat64("/usr/bin/man", 0x080471C4)		= 0
1623:	open("/var/ld/ld.config", O_RDONLY)		Err#2 ENOENT
1623:	stat64("/lib/libc.so.1", 0x08046974)		= 0
1623:	resolvepath("/lib/libc.so.1", "/lib/libc.so.1", 1023) = 14
1623:	open("/lib/libc.so.1", O_RDONLY)		= 3
1623:	mmapobj(3, MMOBJ_INTERPRET, 0xD1380A48, 0x080469E0, 0x00000000) = 0
1623:	close(3)					= 0
1623:	memcntl(0xD1230000, 187236, MC_ADVISE, MADV_WILLNEED, 0, 0) = 0
1623:	mmap(0x00000000, 4096, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_ANON, -1, 0) = 0xD1220000
1623:	mmap(0x00010000, 24576, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_ANON|MAP_ALIGN, -1, 0) = 0xD1210000
1623:	getcontext(0x08047024)
1623:	getrlimit(RLIMIT_STACK, 0x0804701C)		= 0
1623:	getpid()					= 1623 [1622]
1623:	lwp_private(0, 1, 0xD1212A40)			= 0x000001C3
1623:	setustack(0xD1212AA0)
1623:	sysi86(SI86FPSTART, 0xD1378CD4, 0x0000133F, 0x00001F80) = 0x00000001
1623:	access("/usr/lib/sgml/sgml2roff", X_OK)		= 0
1623:	brk(0x08069FD8)					= 0
1623:	brk(0x0806BFD8)					= 0
1623:	stat64("/usr/lib/locale/en_US.ISO8859-1/en_US.ISO8859-1.so.3", 0x08046460) Err#2 ENOENT
1623:	open("/usr/lib/locale/en_US.ISO8859-1/LC_MESSAGES/SUNW_OST_SGS.mo", O_RDONLY) Err#2 ENOENT
1623:	open("/usr/lib/locale/en_US.ISO8859-1/LC_MESSAGES/SUNW_OST_OSLIB.mo", O_RDONLY) Err#2 ENOENT
1623:	ioctl(1, TCGETA, 0x080474E0)			= 0
1623:	stat("/sbin", 0x08047480)			= 0
1623:	stat("/usr/sbin", 0x08047480)			= 0
1623:	stat("/usr/ucb", 0x08047480)			Err#2 ENOENT
1623:	stat("/usr/bin/X11", 0x08047480)		Err#2 ENOENT
1623:	stat("/usr/bin", 0x08047480)			= 0
1623:	stat("/usr/xpg4/bin", 0x08047480)		= 0
1623:	stat("/usr/xpg6/bin", 0x08047480)		Err#2 ENOENT
1623:	stat("/usr/gnu/share/man", 0x08047460)		= 0
1623:	access("/usr/gnu/share/man", R_OK|X_OK)		= 0
1623:	open("/usr/gnu/share/man/man.cf", O_RDONLY)	Err#2 ENOENT
1623:	open("/usr/gnu/share/man", O_RDONLY|O_NDELAY|O_LARGEFILE) = 3
1623:	fcntl(3, F_SETFD, 0x00000001)			= 0
1623:	fstat64(3, 0x08047300)				= 0
1623:	getdents64(3, 0xD1214000, 8192)			= 144
1623:	sysconfig(_CONFIG_PAGESIZE)			= 4096
1623:	getdents64(3, 0xD1214000, 8192)			= 0
1623:	close(3)					= 0
1623:	stat("/usr/gnu/share/man", 0x08047380)		= 0
1623:	stat("/usr/share/man", 0x08047460)		= 0
1623:	access("/usr/share/man", R_OK|X_OK)		= 0
1623:	open("/usr/share/man/man.cf", O_RDONLY)		= 3
1623:	fstat64(3, 0x08046AD0)				= 0
1623:	fstat64(3, 0x080469E0)				= 0
1623:	ioctl(3, TCGETA, 0x08046A80)			Err#25 ENOTTY
1623:	read(3, " #\n #   D e f a u l t  ".., 1024)	= 738
1623:	llseek(3, 0, SEEK_CUR)				= 738
1623:	close(3)					= 0
1623:	stat("/usr/share/man", 0x08047380)		= 0
1623:	brk(0x0806BFD8)					= 0
1623:	brk(0x0806DFD8)					= 0
1623:	stat("/usr/X11/share/man", 0x08047460)		Err#2 ENOENT
1623:	schedctl()					= 0xD1207000
1623:	sigaction(SIGINT, 0x08047450, 0x080474D0)	= 0
1623:	sigaction(SIGINT, 0x08047450, 0x080474D0)	= 0
1623:	sigaction(SIGQUIT, 0x08047450, 0x080474D0)	= 0
1623:	sigaction(SIGTERM, 0x08047450, 0x080474D0)	= 0
1623:	stat("/bin", 0x08047390)			= 0
1623:	stat("/usr/share/man", 0x08047390)		= 0
1623:	stat("/usr/share/man", 0x08047460)		= 0
1623:	access("/usr/share/man", R_OK|X_OK)		= 0
1623:	stat("/usr/share/man", 0x08047380)		= 0
1623:	open("/usr/share/man/windex", O_RDONLY)		Err#2 ENOENT
1623:	open("/usr/share/man", O_RDONLY|O_NDELAY|O_LARGEFILE) = 3
1623:	fcntl(3, F_SETFD, 0x00000001)			= 0
1623:	fstat64(3, 0x08047390)				= 0
1623:	getdents64(3, 0xD1214000, 8192)			= 6992
1623:	brk(0x0806DFD8)					= 0
1623:	brk(0x0806FFD8)					= 0
1623:	getdents64(3, 0xD1214000, 8192)			= 0
1623:	open("/usr/share/man/sman1", O_RDONLY|O_NDELAY|O_LARGEFILE) = 4
1623:	mmap(0x00010000, 65536, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_ANON|MAP_ALIGN, -1, 0) = 0xD11F0000
1623:	fcntl(4, F_SETFD, 0x00000001)			= 0
1623:	fstat64(4, 0x08046920)				= 0
1623:	getdents64(4, 0xD11F0000, 8192)			= 128
1623:	getdents64(4, 0xD11F0000, 8192)			= 0
1623:	close(4)					= 0
1623:	open("/usr/share/man/man1", O_RDONLY|O_NDELAY|O_LARGEFILE) = 4
1623:	fcntl(4, F_SETFD, 0x00000001)			= 0
1623:	fstat64(4, 0x08046920)				= 0
1623:	getdents64(4, 0xD11F0000, 8192)			= 8192
1623:	getdents64(4, 0xD11F0000, 8192)			= 8184
1623:	getdents64(4, 0xD11F0000, 8192)			= 8168
1623:	getdents64(4, 0xD11F0000, 8192)			= 7200
1623:	open("/usr/share/man/man1/ls.1", O_RDONLY)	= 5
1623:	fstat(5, 0x08044F70)				= 0
1623:	fstat64(5, 0x080439F0)				= 0
1623:	brk(0x0806FFD8)					= 0
1623:	brk(0x0807BFD8)					= 0
1623:	fstat64(5, 0x08043900)				= 0
1623:	ioctl(5, TCGETA, 0x080439A0)			Err#25 ENOTTY
1623:	read(5, " ' \ "   t e\n . \ "   C".., 54784)	= 54645
1623:	llseek(5, 0xFFFFFFFFFFFF2A92, SEEK_CUR)		= 7
1623:	close(5)					= 0
1623:	stat("/usr/share/man/man1/ls.1", 0x08045C10)	= 0
1623:	stat("/usr/share/man/cat1/ls.1", 0x08045CA0)	= 0
1623:	access("/usr/share/man/cat1/ls.1", R_OK)	= 0
1623:	close(4)					= 0
1623:	close(3)					= 0
1623:	sigfillset(0xD13783A8)				= 0
1623:	lwp_sigmask(SIG_SETMASK, 0x00020000, 0x00000000, 0x00000000, 0x00000000) = 0xFFBFFEFF [0xFFFFFFFF]
1623:	sigaction(SIGINT, 0x08046F30, 0xD13787F8)	= 0
1623:	sigaction(SIGQUIT, 0x08046F30, 0xD1378818)	= 0
1623:	lwp_sigmask(SIG_SETMASK, 0xFFBFFEFF, 0xFFFFFFFF, 0x000000FF, 0x00000000) = 0x00020000 [0x00000000]
1623:	vforkx(FORK_NOSIGCHLD|FORK_WAITPID)		= 1624
1624:	vforkx()	(returning as child ...)	= 1623
1624:	lwp_sigmask(SIG_SETMASK, 0x00020000, 0x00000000, 0x00000000, 0x00000000) = 0xFFBFFEFF [0xFFFFFFFF]
1624:	lwp_sigmask(SIG_SETMASK, 0x00000000, 0x00000000, 0x00000000, 0x00000000) = 0x00020000 [0x00000000]
1624:	sigaction(SIGINT, 0x08046EF0, 0x00000000)	= 0
1624:	sigaction(SIGQUIT, 0x08046EF0, 0x00000000)	= 0
1624:	execve("/bin/sh", 0x08047060, 0x0804758C)  argc = 3
1624:	sysinfo(SI_MACHINE, "i86pc", 257)		= 6
1624:	mmap(0x00000000, 32, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_ANON, -1, 0) = 0xD13B0000
1624:	sysconfig(_CONFIG_PAGESIZE)			= 4096
1624:	mmap(0x00000000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANON, -1, 0) = 0xD13A0000
1624:	mmap(0x00000000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANON, -1, 0) = 0xD1390000
1624:	mmap(0x00000000, 4096, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_ANON, -1, 0) = 0xD1380000
1624:	memcntl(0xD13B8000, 32064, MC_ADVISE, MADV_WILLNEED, 0, 0) = 0
1624:	memcntl(0x08050000, 2532, MC_ADVISE, MADV_WILLNEED, 0, 0) = 0
1624:	resolvepath("/usr/lib/ld.so.1", "/lib/ld.so.1", 1023) = 12
1624:	resolvepath("/usr/bin/i86/ksh93", "/usr/bin/i86/ksh93", 1023) = 18
1624:	stat64("/usr/bin/i86/ksh93", 0x08047194)	= 0
1624:	open("/var/ld/ld.config", O_RDONLY)		Err#2 ENOENT
1624:	stat64("/lib/libc.so.1", 0x08046944)		= 0
1624:	resolvepath("/lib/libc.so.1", "/lib/libc.so.1", 1023) = 14
1624:	open("/lib/libc.so.1", O_RDONLY)		= 3
1624:	mmapobj(3, MMOBJ_INTERPRET, 0xD1380A60, 0x080469B0, 0x00000000) = 0
1624:	close(3)					= 0
1624:	memcntl(0xD1230000, 187236, MC_ADVISE, MADV_WILLNEED, 0, 0) = 0
1624:	mmap(0x00000000, 4096, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_ANON, -1, 0) = 0xD1220000
1624:	mmap(0x00010000, 24576, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_ANON|MAP_ALIGN, -1, 0) = 0xD1210000
1624:	getcontext(0x08046FF4)
1624:	getrlimit(RLIMIT_STACK, 0x08046FEC)		= 0
1624:	getpid()					= 1624 [1623]
1624:	lwp_private(0, 1, 0xD1212A40)			= 0x000001C3
1624:	setustack(0xD1212AA0)
1624:	sysi86(SI86FPSTART, 0xD1378CD4, 0x0000133F, 0x00001F80) = 0x00000001
1624:	memcntl(0x00000000, 0, MC_HAT_ADVISE, 0x8047500, 0, 0) Err#22 EINVAL
1624:	stat64("/lib/libshell.so.1", 0x08046A78)	Err#2 ENOENT
1624:	stat64("/usr/lib/libshell.so.1", 0x08046A78)	= 0
1624:	resolvepath("/usr/lib/libshell.so.1", "/usr/lib/libshell.so.1", 1023) = 22
1624:	open("/usr/lib/libshell.so.1", O_RDONLY)	= 3
1624:	mmapobj(3, MMOBJ_INTERPRET, 0xD1220640, 0x08046AE4, 0x00000000) = 0
1624:	close(3)					= 0
1624:	memcntl(0xD1150000, 53408, MC_ADVISE, MADV_WILLNEED, 0, 0) = 0
1624:	stat64("/lib/libcmd.so.1", 0x080466C8)		Err#2 ENOENT
1624:	stat64("/usr/lib/libcmd.so.1", 0x080466C8)	= 0
1624:	resolvepath("/usr/lib/libcmd.so.1", "/usr/lib/libcmd.so.1", 1023) = 20
1624:	open("/usr/lib/libcmd.so.1", O_RDONLY)		= 3
1624:	mmapobj(3, MMOBJ_INTERPRET, 0xD1220D28, 0x08046734, 0x00000000) = 0
1624:	close(3)					= 0
1624:	mmap(0x00000000, 4096, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_ANON, -1, 0) = 0xD10F0000
1624:	memcntl(0xD1100000, 16832, MC_ADVISE, MADV_WILLNEED, 0, 0) = 0
1624:	stat64("/lib/libast.so.1", 0x08046318)		Err#2 ENOENT
1624:	stat64("/usr/lib/libast.so.1", 0x08046318)	= 0
1624:	resolvepath("/usr/lib/libast.so.1", "/usr/lib/libast.so.1", 1023) = 20
1624:	open("/usr/lib/libast.so.1", O_RDONLY)		= 3
1624:	mmapobj(3, MMOBJ_INTERPRET, 0xD10F0608, 0x08046384, 0x00000000) = 0
1624:	close(3)					= 0
1624:	memcntl(0xD0FF0000, 86100, MC_ADVISE, MADV_WILLNEED, 0, 0) = 0
1624:	stat64("/lib/libm.so.2", 0x080466C8)		= 0
1624:	resolvepath("/lib/libm.so.2", "/lib/libm.so.2", 1023) = 14
1624:	open("/lib/libm.so.2", O_RDONLY)		= 3
1624:	mmapobj(3, MMOBJ_INTERPRET, 0xD10F0D20, 0x08046734, 0x00000000) = 0
1624:	close(3)					= 0
1624:	mmap(0x00000000, 4096, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_ANON, -1, 0) = 0xD0F70000
1624:	memcntl(0xD0F80000, 39464, MC_ADVISE, MADV_WILLNEED, 0, 0) = 0
1624:	sysconfig(_CONFIG_PAGESIZE)			= 4096
1624:	brk(0x080611E8)					= 0
1624:	brk(0x080691E8)					= 0
1624:	schedctl()					= 0xD0F68000
1624:	sigaction(SIGSEGV, 0x08047140, 0x080471C0)	= 0
1624:	sigaction(SIGSEGV, 0x08047140, 0x080471C0)	= 0
1624:	sigfillset(0xD13783A8)				= 0
1624:	lwp_sigmask(SIG_SETMASK, 0x00000000, 0x00000000, 0x00000000, 0x00000000) = 0xFFBFFEFF [0xFFFFFFFF]
1624:	umask(0)					= 022
1624:	umask(022)					= 0
1624:	getuid()					= 101 [101]
1624:	getuid()					= 101 [101]
1624:	getgid()					= 10 [10]
1624:	getgid()					= 10 [10]
1624:	sysconfig(_CONFIG_CLK_TCK)			= 100
1624:	sysconfig(_CONFIG_OPEN_FILES)			= 256
1624:	sysconfig(_CONFIG_CHILD_MAX)			= 9765
1624:	sysconfig(_CONFIG_NGROUPS)			= 16
1624:	fcntl(0, F_GETFL)				= 8194
1624:	stat64("/dev/null", 0x08046E90)			= 0
1624:	ioctl(0, TCGETS, 0x08046E30)			= 0
1624:	llseek(0, 0, SEEK_CUR)				= 4107
1624:	fstat64(0, 0x08046E90)				= 0
1624:	fstat64(0, 0x08046E90)				= 0
1624:	ioctl(0, TCGETA, 0x08046E10)			= 0
1624:	fstat64(0, 0x08046E40)				= 0
1624:	fstat64(2, 0x08046ED0)				= 0
1624:	llseek(2, 0, SEEK_CUR)				= 11057
1624:	fstat64(1, 0x08046ED0)				= 0
1624:	ioctl(1, TCGETA, 0x08046E50)			= 0
1624:	lwp_sigmask(SIG_SETMASK, 0x00000000, 0x00000000, 0x00000000, 0x00000000) = 0xFFBFFEFF [0xFFFFFFFF]
1624:	sysconfig(_CONFIG_SIGRT_MIN)			= 41
1624:	sysconfig(_CONFIG_SIGRT_MAX)			= 72
1624:	brk(0x080691E8)					= 0
1624:	brk(0x080711E8)					= 0
1624:	sysconfig(_CONFIG_PAGESIZE)			= 4096
1624:	stat64("/home/reader", 0x08046E00)		= 0
1624:	stat64(".", 0x08046E90)				= 0
1624:	readlink("/proc/self/path/a.out", "/usr/bin/i86/ksh93", 1025) = 18
1624:	brk(0x080711E8)					= 0
1624:	brk(0x080731E8)					= 0
1624:	stat64("/usr/lib/locale/en_US.ISO8859-1/en_US.ISO8859-1.so.3", 0x08045810) Err#2 ENOENT
1624:	open("/usr/lib/locale/en_US.ISO8859-1/LC_MESSAGES/SUNW_OST_SGS.mo", O_RDONLY) Err#2 ENOENT
1624:	open("/usr/lib/locale/en_US.ISO8859-1/LC_MESSAGES/SUNW_OST_OSLIB.mo", O_RDONLY) Err#2 ENOENT
1624:	stat64("/usr/lib/locale/en_US/en_US.so.3", 0x08045810) Err#2 ENOENT
1624:	stat64("/usr/lib/locale/en/en.so.3", 0x08045810) Err#2 ENOENT
1624:	stat64("share/lib", 0x08045F10)			Err#2 ENOENT
1624:	stat64("/cvsb/voi1", 0x08045AB0)		= 0
1624:	stat64("/cvsb/voi1/export/home", 0x08045AB0)	= 0
1624:	stat64("/cvsb/voi1/export/home/reader/share", 0x08045AB0) Err#2 ENOENT
1624:	stat64("/cvsb/voi1/export/home/reader/scripts/share", 0x08045AB0) Err#2 ENOENT
1624:	stat64("/usr/local", 0x08045AB0)		= 0
1624:	stat64("/usr/local/share/lib", 0x08045AB0)	Err#2 ENOENT
1624:	stat64("/home/reader", 0x08045AB0)		= 0
1624:	stat64("/home/reader/share/lib", 0x08045AB0)	Err#2 ENOENT
1624:	stat64("/opt/csw", 0x08045AB0)			Err#2 ENOENT
1624:	stat64("/usr/gnu/share", 0x08045AB0)		= 0
1624:	stat64("/usr/gnu/share/lib/locale", 0x08045AB0)	Err#2 ENOENT
1624:	stat64("/usr/share/lib", 0x08045AB0)		= 0
1624:	stat64("/usr/share/lib/locale/en", 0x08045AB0)	Err#2 ENOENT
1624:	stat64("/usr/X11/share", 0x08045AB0)		Err#2 ENOENT
1624:	stat64("share/locale/en", 0x08045F10)		Err#2 ENOENT
1624:	stat64("/usr/local/share/locale/en", 0x08045AB0) Err#2 ENOENT
1624:	stat64("/home/reader/share/locale/en", 0x08045AB0) Err#2 ENOENT
1624:	stat64("/usr/gnu/share/locale/en", 0x08045AB0)	Err#2 ENOENT
1624:	stat64("/usr/share/locale/en", 0x08045AB0)	= 0
1624:	stat64("/usr/share/locale/en/LC_MESSAGES", 0x08045AB0) = 0
1624:	brk(0x080731E8)					= 0
1624:	brk(0x080731E8)					= 0
1624:	brk(0x0807B1E8)					= 0
1624:	sigaction(SIGSEGV, 0x080469C0, 0x08046A40)	= 0
1624:	sigaction(SIGSEGV, 0x080469C0, 0x08046A40)	= 0
1624:	lwp_sigmask(SIG_SETMASK, 0x00000000, 0x00000000, 0x00000000, 0x00000000) = 0xFFBFFEFF [0xFFFFFFFF]
1624:	time()						= 1292874879
1624:	getpid()					= 1624 [1623]
1624:	getpid()					= 1624 [1623]
1624:	sigaction(SIGCLD, 0x08047310, 0x08047390)	= 0
1624:	sigaction(SIGALRM, 0x08046B70, 0x08046BF0)	= 0
1624:	lwp_sigmask(SIG_SETMASK, 0x00000000, 0x00000000, 0x00000000, 0x00000000) = 0xFFBFFEFF [0xFFFFFFFF]
1624:	getpid()					= 1624 [1623]
1624:	execve("/usr/bin/less", 0x08067554, 0x08067568)  argc = 3
1624:	sysinfo(SI_MACHINE, "i86pc", 257)		= 6
1624:	mmap(0x00000000, 32, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_ANON, -1, 0) = 0xD13B0000
1624:	mmap(0x00000000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANON, -1, 0) = 0xD13A0000
1624:	mmap(0x00000000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANON, -1, 0) = 0xD1390000
1624:	mmap(0x00000000, 4096, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_ANON, -1, 0) = 0xD1380000
1624:	memcntl(0xD13B8000, 32064, MC_ADVISE, MADV_WILLNEED, 0, 0) = 0
1624:	memcntl(0x08050000, 26204, MC_ADVISE, MADV_WILLNEED, 0, 0) = 0
1624:	resolvepath("/usr/lib/ld.so.1", "/lib/ld.so.1", 1023) = 12
1624:	resolvepath("/usr/bin/less", "/usr/bin/less", 1023) = 13
1624:	sysconfig(_CONFIG_PAGESIZE)			= 4096
1624:	stat64("/usr/bin/less", 0x0804718C)		= 0
1624:	open("/var/ld/ld.config", O_RDONLY)		Err#2 ENOENT
1624:	stat64("/lib/libcurses.so.1", 0x0804693C)	= 0
1624:	resolvepath("/lib/libcurses.so.1", "/lib/libcurses.so.1", 1023) = 19
1624:	open("/lib/libcurses.so.1", O_RDONLY)		= 3
1624:	mmapobj(3, MMOBJ_INTERPRET, 0xD1380A38, 0x080469A8, 0x00000000) = 0
1624:	close(3)					= 0
1624:	memcntl(0xD1330000, 54252, MC_ADVISE, MADV_WILLNEED, 0, 0) = 0
1624:	mmap(0x00000000, 4096, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_ANON, -1, 0) = 0xD1320000
1624:	stat64("/lib/libc.so.1", 0x0804693C)		= 0
1624:	resolvepath("/lib/libc.so.1", "/lib/libc.so.1", 1023) = 14
1624:	open("/lib/libc.so.1", O_RDONLY)		= 3
1624:	mmapobj(3, MMOBJ_INTERPRET, 0xD1320080, 0x080469A8, 0x00000000) = 0
1624:	close(3)					= 0
1624:	memcntl(0xD11D0000, 187236, MC_ADVISE, MADV_WILLNEED, 0, 0) = 0
1624:	mmap(0x00010000, 24576, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_ANON|MAP_ALIGN, -1, 0) = 0xD11C0000
1624:	getcontext(0x08046FEC)
1624:	getrlimit(RLIMIT_STACK, 0x08046FE4)		= 0
1624:	getpid()					= 1624 [1623]
1624:	lwp_private(0, 1, 0xD11C2A40)			= 0x000001C3
1624:	setustack(0xD11C2AA0)
1624:	sysi86(SI86FPSTART, 0xD1318CD4, 0x0000133F, 0x00001F80) = 0x00000001
1624:	ioctl(1, TCGETA, 0x080474B0)			= 0
1624:	open("/usr/share/lib/terminfo//x/xterm", O_RDONLY) = 3
1624:	read(3, "1A01 $\0 %\0 !\08A01 >02".., 4096)	= 1514
1624:	close(3)					= 0
1624:	ioctl(1, TCGETA, 0x080459E0)			= 0
1624:	ioctl(1, TCGETS, 0xD1375674)			= 0
1624:	ioctl(1, TIOCGWINSZ, 0x08045A58)		= 0
1624:	ioctl(1, TCSETSW, 0xD1375698)			= 0
1624:	ioctl(1, TCSETSW, 0xD1375674)			= 0
1624:	ioctl(2, TIOCGWINSZ, 0x08046CA8)		Err#25 ENOTTY
1624:	brk(0x080848E0)					= 0
1624:	brk(0x080868E0)					= 0
1624:	open64("/usr/bin/.sysless", O_RDONLY)		Err#2 ENOENT
1624:	open64("/usr/etc/sysless", O_RDONLY)		Err#2 ENOENT
1624:	open64("/home/reader/.less", O_RDONLY)		Err#2 ENOENT
1624:	stat64("/usr/lib/locale/en_US.ISO8859-1/en_US.ISO8859-1.so.3", 0x08046420) Err#2 ENOENT
1624:	open("/usr/lib/locale/en_US.ISO8859-1/LC_MESSAGES/SUNW_OST_SGS.mo", O_RDONLY) Err#2 ENOENT
1624:	open("/usr/lib/locale/en_US.ISO8859-1/LC_MESSAGES/SUNW_OST_OSLIB.mo", O_RDONLY) Err#2 ENOENT
1624:	open64("/home/reader/.lesshst", O_RDONLY)	= 3
1624:	fstat64(3, 0x080471C0)				= 0
1624:	fstat64(3, 0x080470D0)				= 0
1624:	ioctl(3, TCGETA, 0x08047170)			Err#25 ENOTTY
1624:	read(3, " . l e s s - h i s t o r".., 512)	= 93
1624:	sysconfig(_CONFIG_PAGESIZE)			= 4096
1624:	read(3, 0x08085FD4, 512)			= 0
1624:	llseek(3, 0, SEEK_CUR)				= 93
1624:	close(3)					= 0
1624:	brk(0x080868E0)					= 0
1624:	brk(0x080888E0)					= 0
1624:	open64("/dev/tty", O_RDONLY)			= 3
1624:	ioctl(3, TCGETS, 0x080474A0)			= 0
1624:	fdsync(3, FSYNC)				= 0
1624:	ioctl(3, TCSETSW, 0x080474A0)			= 0
1624:	schedctl()					= 0xD11B8000
1624:	sigaction(SIGINT, 0x08047400, 0x08047480)	= 0
1624:	sigaction(SIGTSTP, 0x08047400, 0x08047480)	= 0
1624:	sigaction(SIGWINCH, 0x08047400, 0x08047480)	= 0
1624:	sigaction(SIGQUIT, 0x08047400, 0x08047480)	= 0
1624:	stat64("/usr/share/man/cat1/ls.1", 0x08047240)	= 0
1624:	stat64("/usr/share/man/cat1/ls.1", 0x080472F0)	= 0
1624:	open64("/usr/share/man/cat1/ls.1", O_RDONLY)	= 4
1624:	llseek(4, 1, SEEK_SET)				= 1
1624:	llseek(4, 0, SEEK_SET)				= 0
1624:	read(4, "\n\n\n U s e r   C o m m".., 256)	= 256
"/usr/share/man/cat1/ls.1" may be a binary file.  See it anyway? 1624:	write(2, " " / u s r / s h a r e /".., 65)	= 65
1623:	lwp_sigmask(SIG_SETMASK, 0x00020000, 0x00000000, 0x00000000, 0x00000000) = 0xFFBFFEFF [0xFFFFFFFF]
1624:	read(3, 0x0804736F, 1)		(sleeping...)
1623:	waitid(P_PID, 1624, 0x08046EF0, WEXITED|WTRAPPED) (sleeping...)
1623:	    Received signal #2, SIGINT, in waitid() [ignored]
1624:	    Received signal #2, SIGINT, in read() [caught]
1624:	read(3, 0x0804736F, 1)				Err#4 EINTR
1624:	lwp_sigmask(SIG_SETMASK, 0x00000000, 0x00000000, 0x00000000, 0x00000000) = 0xFFBFFEFF [0xFFFFFFFF]
1624:	sigaction(SIGINT, 0x08046F50, 0x08046FD0)	= 0
1624:	lwp_sigmask(SIG_SETMASK, 0x00000000, 0x00000000, 0x00000000, 0x00000000) = 0xFFBFFEFF [0xFFFFFFFF]
1624:	close(4)					= 0

1624:	write(2, "07\n", 2)				= 2
1624:	fdsync(3, FSYNC)				= 0
1624:	ioctl(3, TCSETSW, 0x08047480)			= 0
1624:	_exit(1)
1623:	waitid(P_PID, 1624, 0x08046EF0, WEXITED|WTRAPPED) = 0
1623:	schedctl()					= 0xD1207000
1623:	sigaction(SIGINT, 0x08046F10, 0x00000000)	= 0
1623:	sigaction(SIGQUIT, 0x08046F10, 0x00000000)	= 0
1623:	lwp_sigmask(SIG_SETMASK, 0x00000000, 0x00000000, 0x00000000, 0x00000000) = 0xFFBFFEFF [0xFFFFFFFF]
1623:	_exit(0)




More information about the OpenIndiana-discuss mailing list