01-28-2011
@Corona688: I also got the same doubt, so I tried removing O_CREATE with O_EXCL; but that also dint work
@DGPickett: Sorry I dint get you fully. Can you please elaborate a little more?
Once Again Thanks All
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Ok, I'm sure this is a total newbie question, but I think I'm in the right place, no?
I'm trying to call a perl module from a cgi script - Mail::Sendmail - and my web host installed the module in a directory that doesn't seem to be accessible, at least not the way I'm trying. But I thought you... (1 Reply)
Discussion started by: ftb
1 Replies
2. Shell Programming and Scripting
Hello !
Do you have any example of the utime command ?
I'm trying to change the time of last change of a file to a defined time.
Thanks. (3 Replies)
Discussion started by: margue
3 Replies
3. Programming
Hi,
Is there any system call which changes the time of symbolic link apart from utime? or if tere is no system call any other option of how to do it?
Thanks (4 Replies)
Discussion started by: naan
4 Replies
4. UNIX for Advanced & Expert Users
I need to write a script that can find a bad record (for example: there is date field colom but value provided in the file for this field is N/A) then script shoud searches this pattern and then insert the whole record into the bad file.
Example:
File1
Name designation dateOfJoining... (1 Reply)
Discussion started by: shilendrajadon
1 Replies
5. Shell Programming and Scripting
I need to write a script that can find a bad record (for example: there is date field colom but value provided in the file for this field is N/A) then script shoud searches this pattern and then insert the whole record into the bad file.
Example:
File1
Name designation dateOfJoining... (2 Replies)
Discussion started by: shilendrajadon
2 Replies
6. Ubuntu
Hi All
I have a dedicated backup server running ubuntu 10.04, which has recently been rebuilt (same OS, just different h/w)
This is used to receive ufsdump output from a number of Solaris servers, using the following syntax:
ufsdump 1uf :/path/to/backup/file /fs/to/be/backed/up
This has... (1 Reply)
Discussion started by: in2deep
1 Replies
7. UNIX for Dummies Questions & Answers
would like to remove the post (8 Replies)
Discussion started by: vk39221
8 Replies
8. Shell Programming and Scripting
grt=`sort -nr line_count.txt|head -1`
while read $dline
do
if $grt" -eq "`wc -l combo_operncount.$dline|awk '{print $1}'`" ]
then
awk -F, '{print $1}' combo_operncount.$dline > FULLD7
else
echo combo_operncount.$dline >> filecoll.txt
fname=`cat filecoll.txt|tr -s "\n" " "`
echo $fname... (6 Replies)
Discussion started by: nikhil jain
6 Replies
9. Solaris
Hi ,
One of my zone went down and when i booted it up i could see the pool in degraded state with some check sum errors . we have brought the pool online after scrubbing. But few files are showing this error
Bad exchange descriptor
Please let me know how to remove these files (2 Replies)
Discussion started by: chidori
2 Replies
10. UNIX for Beginners Questions & Answers
I'm learning SED command. And while doing that i got to this place where i'm taking a copy of my existing file. The code i used is -
sed -n '/Storm/ w Storm.txt' books.txt
As expected, the file 'books.txt' is read , and lines with 'Storm' is put in to the new file 'Storm.txt'. However, it also... (4 Replies)
Discussion started by: justo
4 Replies
LEARN ABOUT CENTOS
ibv_close_xrcd
IBV_OPEN_XRCD(3) Libibverbs Programmer's Manual IBV_OPEN_XRCD(3)
NAME
ibv_open_xrcd, ibv_close_xrcd - open or close an XRC protection domain (XRCDs)
SYNOPSIS
#include <infiniband/verbs.h>
struct ibv_xrcd *ibv_open_xrcd(struct ibv_context *context,
struct ibv_xrcd_init_attr *xrcd_init_attr);
int ibv_close_xrcd(struct ibv_xrcd *xrcd);
DESCRIPTION
ibv_open_xrcd() open an XRC domain for the RDMA device context context xrcd_init_attr is an ibv_xrcd_init_attr struct, as defined in
<infiniband/verbs.h>.
struct ibv_xrcd_init_attr {
uint32_t comp_mask; /* Identifies valid fields */
int fd;
int oflag;
fd is the file descriptor to associate with the XRCD. oflag describes the desired creation attributes. It is a bitwise OR of zero or more
of the following flags:
O_CREAT
Indicates that an XRCD should be created and associated with the inode referenced by the given fd. If the XRCD exists, this flag
has no effect except as noted under O_EXCL below.
O_EXCL If O_EXCL and O_CREAT are set, open will fail if an XRCD associated with the inode exists.
If fd equals -1, no inode is associated with the XRCD. To indicate that XRCD should be created, use oflag = O_CREAT.
ibv_close_xrcd() closes the XRCD xrcd. If this is the last reference, the XRCD will be destroyed.
RETURN VALUE
ibv_open_xrcd() returns a pointer to the opened XRCD, or NULL if the request fails.
ibv_close_xrcd() returns 0 on success, or the value of errno on failure (which indicates the failure reason).
NOTES
ibv_close_xrcd() may fail if any other resource is still associated with the XRCD being closed.
SEE ALSO
ibv_create_srq_ex(3), ibv_create_qp_ex(3),
AUTHORS
Sean Hefty <sean.hefty@intel.com>
libibverbs 2011-06-17 IBV_OPEN_XRCD(3)