Dear all,
In my code,i am planning to use memset function to re-initialise an array before populating it everytime. Will using memset function be an overload to the program? (3 Replies)
Hi All,
we have an application that is written in 'C' programming to connects to various servers in the organization.
The bellow code establish a TCP connection to connect to the remote servers. the application works perfectly ok, but, after some time the entire process get's crashed and... (2 Replies)
Hi guys,
my tool works fine in gentoo, ubuntu now im trying to port it to windows but bzero/bcopy I read aren't working on windows and for better portability I should of use memset() so im trying to translate
bzero(buffer,256);in
printf("MAIL TO");
strcpy(buffer, rcp);
... (4 Replies)
Hey all,
Thanks for all the help you have given me. Two more things I am trying to figure out.
I need to issue a command..example
ps -ef | grep <process>
This would return about 10-15 running processes. I need to verify that there are x amount of processes running. What is... (7 Replies)
1.) I am to write scripts that will be phasetest folder in the home directory.
2.) The folder should have a set-up,phase and display files
I have written a small script which i used to check for the existing users and their password.
What I need help with:
I have a set of questions in a... (19 Replies)
1) The lpr and sort utilities accept input either from a file named on the command line or from standard input.
a)Name two other utilities that function in a similar manner.
b)Name a utility that accepts its input only from standard input.
2) Explain the following error message. What... (10 Replies)
Hello,
I would like to know how we can highlight/select a section of a file in vi and delete that section if we don't want to use the dd command to delete one line at at time. There is one where we don't want to delete the whole line , but up to a certain word. (2 Replies)
Hi,
memset call is failing on solaris for me. I wrote below code and that also fails. Any hints?
void *memset(void *dst, int c, size_t n)
{
if (n) {
char *d = dst;
do {
*d++ = c;
} while (--n);
}
return dst;
} (2 Replies)
Discussion started by: skyineyes
2 Replies
LEARN ABOUT CENTOS
biowait
biowait(9F) Kernel Functions for Drivers biowait(9F)NAME
biowait - suspend processes pending completion of block I/O
SYNOPSIS
#include <sys/types.h>
#include <sys/buf.h>
int biowait(struct buf *bp);
INTERFACE LEVEL
Architecture independent level 1 (DDI/DKI).
PARAMETERS
bp Pointer to the buf structure describing the transfer.
DESCRIPTION
Drivers allocating their own buf structures with getrbuf(9F) can use the biowait() function to suspend the current thread and wait for
completion of the transfer.
Drivers must call biodone(9F) when the transfer is complete to notify the thread blocked by biowait(). biodone() is usually called in the
interrupt routine.
RETURN VALUES
0 Upon success
non-zero Upon I/O failure. biowait() calls geterror(9F) to retrieve the error number which it returns.
CONTEXT
biowait() can be called from user context only.
SEE ALSO biodone(9F), geterror(9F), getrbuf(9F), buf(9S)
Writing Device Drivers
SunOS 5.10 11 Apr 1991 biowait(9F)