Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

geterror(9f) [v7 man page]

geterror(9F)						   Kernel Functions for Drivers 					      geterror(9F)

NAME
geterror - return I/O error SYNOPSIS
#include <sys/types.h> #include <sys/buf.h> #include <sys/ddi.h> int geterror(struct buf *bp); INTERFACE LEVEL
Architecture independent level 1 (DDI/DKI). PARAMETERS
bp Pointer to a buf(9S) structure. DESCRIPTION
geterror() returns the error number from the error field of the buffer header structure. RETURN VALUES
An error number indicating the error condition of the I/O request is returned. If the I/O request completes successfully, 0 is returned. CONTEXT
geterror() can be called from user or interrupt context. SEE ALSO
buf(9S) Writing Device Drivers SunOS 5.10 11 Apr 1991 geterror(9F)

Check Out this Related Man Page

bioerror(9F)						   Kernel Functions for Drivers 					      bioerror(9F)

NAME
bioerror - indicate error in buffer header SYNOPSIS
#include <sys/types.h> #include <sys/buf.h> #include <sys/ddi.h> void bioerror(struct buf *bp, int error); INTERFACE LEVEL
Solaris DDI specific (Solaris DDI) PARAMETERS
bp Pointer to the buf(9S) structure describing the transfer. error Error number to be set, or zero to clear an error indication. DESCRIPTION
If error is non-zero, bioerror() indicates an error has occured in the buf(9S) structure. A subsequent call to geterror(9F) will return error. If error is 0, the error indication is cleared and a subsequent call to geterror(9F) will return 0. CONTEXT
bioerror() can be called from any context. SEE ALSO
strategy(9E), geterror(9F), getrbuf(9F), buf(9S) SunOS 5.10 26 May 1994 bioerror(9F)
Man Page

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Java program calling a UNIX command

I was wondering if it was possible to call a unix command directly from a Java program during run-time. This command could very very basic e.g. "ps -ef" returned as a string, all I need is a starting place so if anyone has any suggestion or examples I would be very grateful (2 Replies)
Discussion started by: QUartz Ite
2 Replies

2. Programming

Expat install

I downloaded the expat zip from ftp://ftp.jclark.com/pub/xml/expat.zip. I put all the files in the zip on my solaris server, under an 'expat' directory and ran make -f Makefile. Everything seemed to compile fine. Now i have a .o in the xmlparse directory for instance. When i try to compile the... (1 Reply)
Discussion started by: handak9
1 Replies

3. Linux

How to mount/umount disk from a non-root account

Is it possible to mount a disk from a non-root account? I'm developing a Java application which executes commands in the shell using the java.lang.Runtime.exec api, which runs fine for commands ls, df, etc., but for commands mount and umount, i have problems as I need to be root to eecute these.... (8 Replies)
Discussion started by: brendan76
8 Replies

4. Programming

how to get result from exe file using java

hello i have problem getting result from exe file using java i have exe file (inducer.exe) when i open in command line it i have to put two inputs function name file name i had make bat file which work OK until opening the program bat file contain inducer.exe //OK with this it open... (1 Reply)
Discussion started by: vip_a1
1 Replies

5. UNIX for Advanced & Expert Users

Oracle (11gr2) calling unix commands (aix)

I have an Oracle database running on AIX, and I have a procedure that is calling OS commands from an oracle (and it's not working anymore)... so, there was an Java stored proc in Oracle CREATE OR REPLACE AND RESOLVE JAVA SOURCE NAMED COMMON."Host" as import java.io.*; public class Host {... (1 Reply)
Discussion started by: bongo
1 Replies

6. Programming

PLaying a sound file with SDL - C++

How do I play a sound file with SDL? I've downloaded the library files but SDL/SDL_mixer.h (that most of the tutorials include) doesn't exist. So, how do I install it? As I said mixer.h doesn't exist but, If it is helpful, the default code is this: #include "stdlib.h" #include "SDL/SDL.h"... (2 Replies)
Discussion started by: hakermania
2 Replies

7. Shell Programming and Scripting

how to execute a unix shell script from a java program

Hi All, well , i am facing this problem.. i have tried a few sample codes but there isn't any solution . could anyone please give a sample code as of how to do this... Please see the below details...and read the details carefully. I have written some code, logic is 1)from... (4 Replies)
Discussion started by: aish11
4 Replies

8. UNIX for Dummies Questions & Answers

running unix command from java

Hi All, I have been struggling for a week trying to run a unix command from my java program. the unix command is: ssh dmdev3@tsapid01-zt3d01 ':> /t3/envs/dmdev3/test/file_list.txt' when i try to run this command directly on my unix console, it works perfectly. but when i try it form... (12 Replies)
Discussion started by: madhu_sharan
12 Replies

9. Programming

Incompatiblity of the code due to CC compiler version mismatch.

Incompatiblity of the code due to CC compiler version mismatch. I have a machine with Machine A-- Operating System:SunOs 5.8 Generic_117350-45 sun4u sparc SUNW,Ultra-80(solaris 5.8) CC Compiler:CC: WorkShop Compilers 4.2 16 Jun 1998 C++ 4.2 patch 104631-07 we have compiled C++... (36 Replies)
Discussion started by: Revathi R
36 Replies

10. UNIX for Advanced & Expert Users

Change value for POSIX

Hi, I have a VM with following configration . 3.10.0-693.1.1.el7.x86_64 #1 SMP Thu Aug 3 08:15:31 EDT 2017 x86_64 x86_64 x86_64 GNU/Linux My current POSIX is :-- Your environment variables take up 2011 bytes POSIX upper limit on argument length (this system): 2093093 POSIX smallest... (15 Replies)
Discussion started by: Abhayman
15 Replies