Sponsored Content
Full Discussion: Truss output interpretation
Top Forums UNIX for Advanced & Expert Users Truss output interpretation Post 302921508 by jim mcnamara on Friday 17th of October 2014 02:37:59 PM
Old 10-17-2014
Code:
From the read man page:

     When attempting to read from a regular file  with  mandatory
     file/record locking set (see chmod(2)), and there is a write
     lock owned by another process on the segment of the file  to
     be read:

         o    If O_NDELAY or O_NONBLOCK is set, read() returns -1
              and sets errno to EAGAIN.

pollsys then waits until the file can be read. The only possible cause is described above. This is POSIX compliant semantics for the read call. pollsys is a Solaris-ism (a system call entry point) for poll() and select(), I believe. Don Cragun would know definitely.
 

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

truss

I'm a DBA so no abuse please! I've for 5 Oracle Forms processes that are spinning and am trying to find out if they're doing anything: Running HPUX 11.11 CPU TTY PID USERNAME PRI NI SIZE RES STATE TIME %WCPU %CPU COMMAND 9 ? 2735 oracle 241 20 24228K 16668K run 2607:29 84.92... (2 Replies)
Discussion started by: fraze
2 Replies

2. UNIX for Advanced & Expert Users

truss output

Hi, We keep getting hanging Oracle process for our ETL. The dba's asked me to do o truss. All I see is pages and pages of the following,:cool: pollsys(0xFFFFFFFF7FFF38C8, 1, 0xFFFFFFFF7FFF3800, 0x00000000) = 0 pollsys(0xFFFFFFFF7FFF38C8, 1, 0xFFFFFFFF7FFF3800, 0x00000000) = 0... (0 Replies)
Discussion started by: happyadm
0 Replies

3. Shell Programming and Scripting

how to use truss?

Hi all, while trying to debug and figure out why a lofiadm command was not working on my script, i came across a cmd called "truss" all i know about it is that it executes the specified command and produces a trace of the system calls it performs, the signals it receives, and the machine faults... (5 Replies)
Discussion started by: wrapster
5 Replies

4. Shell Programming and Scripting

truss output

Hi I have to get redirect the truss ouput to file. I am doing truss -p 12121 >> output.txt But it still displays on the screen adn output.txt is empty Can some help how to do this? Thanks in advance Ammu (1 Reply)
Discussion started by: ammu
1 Replies

5. Shell Programming and Scripting

need help with truss !

i have to gather some info about a process and redirect it to a1.txt file. For this i m using truss command truss -po a1.txt $PID_Detail where $PID_Detail= 1482944 3362976 -------------------------------------------------------------------------- Below the script: #!/bin/ksh for i... (6 Replies)
Discussion started by: ali560045
6 Replies

6. AIX

lspath output interpretation

On my VIo I see the following for my disks: $ lspath | grep hdisk6 Enabled hdisk6 fscsi0 200600a0b82193f7,4000000000000 Enabled hdisk6 fscsi0 200700a0b82193f7,4000000000000 Enabled hdisk6 fscsi2 200600a0b82193f8,4000000000000 Failed hdisk6 fscsi2 200700a0b82193f8,4000000000000 $ lspath |... (8 Replies)
Discussion started by: petervg
8 Replies

7. AIX

Truss output

Hello, I'm using AIX 5.3.12.5 and trying to understand truss output. I'm running a job with real time of 16 minutes but only 4 minutes of CPU time. I'm trying to understand what the process is doing. I'm getting a lot of kread, kpread, kwrite, kpwrite... localhost:~ x$ grep... (1 Reply)
Discussion started by: Kovacs
1 Replies

8. UNIX for Dummies Questions & Answers

Truss output

Hi, I want to trace a background java program which runs in infinite loop. I have used truss command for this. But the program terminated after some hours with below truss output: Received signal #1, SIGHUP, in lwp_cond_wait() /1: siginfo: SIG#0 Please let me know what... (0 Replies)
Discussion started by: Hara Prasad
0 Replies

9. UNIX for Advanced & Expert Users

Truss output

Hi, I want to trace a background java program which runs in infinite loop. I have used truss command for this. But the program terminated after some hours with below truss output: Received signal #1, SIGHUP, in lwp_cond_wait() /1: siginfo: SIG#0 Please let me know what... (5 Replies)
Discussion started by: Hara Prasad
5 Replies

10. UNIX for Advanced & Expert Users

unable to understand the output of TRUSS command

Hi, I am trying to set ulimit for soft stack unlimited, but this is not taking effect, after tracing the ulimit -a unlimited command, the below output was generated, which i am unable to comprehend. Could any one help me with this? prcbap1-r10prod: truss -d ulimit -s unlimited Tue Dec 30... (2 Replies)
Discussion started by: NasirAbbasi
2 Replies
readdir(3UCB)					     SunOS/BSD Compatibility Library Functions					     readdir(3UCB)

NAME
readdir - read a directory entry SYNOPSIS
/usr/ucb/cc [ flag ... ] file ... #include <sys/types.h> #include <sys/dir.h> struct direct *readdir(dirp) DIR *dirp; DESCRIPTION
The readdir() function returns a pointer to a structure representing the directory entry at the current position in the directory stream to which dirp refers, and positions the directory stream at the next entry, except on read-only file systems. It returns a NULL pointer upon reaching the end of the directory stream, or upon detecting an invalid location in the directory. The readdir() function shall not return directory entries containing empty names. It is unspecified whether entries are returned for dot (.) or dot-dot (..). The pointer returned by readdir() points to data that may be overwritten by another call to readdir() on the same directory stream. This data shall not be overwritten by another call to readdir() on a different directory stream. The readdir() function may buffer several directory entries per actual read operation. The readdir() function marks for update the st_atime field of the directory each time the directory is actu- ally read. RETURN VALUES
The readdir() function returns NULL on failure and sets errno to indicate the error. ERRORS
The readdir() function will fail if one or more of the following are true: EAGAIN Mandatory file/record locking was set, O_NDELAY or O_NONBLOCK was set, and there was a blocking record lock. EAGAIN Total amount of system memory available when reading using raw I/O is temporarily insufficient. EAGAIN No data is waiting to be read on a file associated with a tty device and O_NONBLOCK was set. EAGAIN No message is waiting to be read on a stream and O_NDELAY or O_NONBLOCK was set. EBADF The file descriptor determined by the DIR stream is no longer valid. This results if the DIR stream has been closed. EBADMSG Message waiting to be read on a stream is not a data message. EDEADLK The read() was going to go to sleep and cause a deadlock to occur. EFAULT buf points to an illegal address. EINTR A signal was caught during the read() or readv() function. EINVAL Attempted to read from a stream linked to a multiplexor. EIO A physical I/O error has occurred, or the process is in a background process group and is attempting to read from its control- ling terminal, and either the process is ignoring or blocking the SIGTTIN signal or the process group of the process is orphaned. ENOENT The current file pointer for the directory is not located at a valid entry. ENOLCK The system record lock table was full, so the read() or readv() could not go to sleep until the blocking record lock was removed. ENOLINK fildes is on a remote machine and the link to that machine is no longer active. ENXIO The device associated with fildes is a block special or character special file and the value of the file pointer is out of range. EOVERFLOW The value of the direct structure member d_ino cannot be represented in an ino_t. USAGE
The readdir() function has a transitional interface for 64-bit file offsets. See lf64(5). SEE ALSO
cc(1B), getdents(2), readdir(3C), scandir(3UCB), lf64(5) NOTES
Use of these interfaces should be restricted to only applications written on BSD platforms. Use of these interfaces with any of the sys- tem libraries or in multi-thread applications is unsupported. SunOS 5.11 30 Oct 2007 readdir(3UCB)
All times are GMT -4. The time now is 11:37 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy