02-27-2008
Within fileysystems mv may or may not be atomic. Across filesystems mv is not atomic.
9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
hi all,
i'm looking for a bash or tcsh script that will clone an empty dir tree 'over' another tree ...
specifically, i'd like to:
(1) specify a src directory
(2) list the directory tree/hiearchy beneath that src dir, w/o files -- just the dirs
(3) clone that same, empty dir hierarchy to... (2 Replies)
Discussion started by: OpenMacNews
2 Replies
2. Programming
Hello,
I need to implement a locking system in C. My problem is how to make the check if the lock file exist and locking it atomic operation.
I want to make something like this:
FILE* lock_fname;
lock_fname = fopen ( "file.lock", "r");
/*check if file exsists*/
if (lock_fname)
{
fclose... (7 Replies)
Discussion started by: tsurko
7 Replies
3. UNIX and Linux Applications
HI all, I got a CPIO archive that contains a unix filesystem that I try to extract, but it extract to the root dir / unstead of current dir, and happily it detects my file are newer otherwise it would have overwrited my system's file!
I tried all these commands
cpio -i --make-directories <... (2 Replies)
Discussion started by: nekkro-kvlt
2 Replies
4. Shell Programming and Scripting
Hello!!
I have directories from 2008, with files in them. I want to create a script that will find the directoried from 2008 (example directory:
drwxr-xr-x 2 isplan users 1024 Nov 21 2008 FILES_112108), delete the files within those directories and then delete the directories... (3 Replies)
Discussion started by: bigben1220
3 Replies
5. UNIX for Dummies Questions & Answers
I am very new to unix as well as shell scripting.
I have to write a script for the following requirement. In have to list all the files in directory and its sub directories along with file path and size of the file
Please help me in this regard and many thanks in advance. (3 Replies)
Discussion started by: nmakkena
3 Replies
6. UNIX for Dummies Questions & Answers
Are system calls atomic operations?
Is a system call can be interrupted? (2 Replies)
Discussion started by: vistastar
2 Replies
7. Shell Programming and Scripting
Dear Members,
I have a list of xml files like
abc.xml.table
prq.xml.table
...
..
.
in a txt file.
Now I have to search the file(s) in all directories and sub-directories and print the full path of file in a output txt file.
Please help me with the script or command to do so.
... (11 Replies)
Discussion started by: Yoodit
11 Replies
8. Linux
Hello
I am a newbie in linux.
Please tell me what are atomic operations in Linux.
IS i++ a atomic oparation??
Please help.. (3 Replies)
Discussion started by: aditya08
3 Replies
9. AIX
I have searched this quite a long time but couldn't find the right method for me to use. I need to assign read write permission to the user for specific directories and it's sub directories and files. I do not want to use ACL. I do not want to assign user the same group of that directories too.... (0 Replies)
Discussion started by: blinkingdan
0 Replies
LEARN ABOUT REDHAT
xmdirectiontostringdirection
XmDirectionToStringDirection(library call) XmDirectionToStringDirection(library call)
NAME
XmDirectionToStringDirection -- A function that converts an XmDirection value to an XmStringDirection value
SYNOPSIS
#include <Xm/Xm.h>
XmStringDirection XmDirectionToStringDirection (dir)
XmDirection dir;
(void)
DESCRIPTION
XmDirectionToStringDirection converts the specified XmDirection direction value to its equivalent XmStringDirection value. Basically, if
the XmDirection value has a horizontal direction specification, that horizontal element is used; otherwise, the XmStringDirection value is
interpreted as XmSTRING_DIRECTION_L_TO_R. This function provides backward compatibility with the XmStringDirection data type.
Note that the Motif toolkit also contains an XmStringDirectionToDirection routine to convert an XmStringDirection value to its XmDirection
equivalent.
dir Specifies the XmDirection value to be converted.
RETURN
Returns the following XmStringDirection values:
XmSTRING_DIRECTION_R_TO_L
If the dir argument has a right to left horizontal direction value in it, for example XmRIGHT_TO_LEFT_TOP_TO_BOTTOM.
XmSTRING_DIRECTION_L_TO_R
If the dir argument has a left to right horizontal direction in it, for example XmLEFT_TO_RIGHT_TOP_TO_BOTTOM, or if the horizon-
tal direction value in the dir argument is ambiguous, such as in the XmTOP_TO_BOTTOM value.
XmSTRING_DIRECTION_DEFAULT
If there was no horizontal direction specified.
RELATED INFORMATION
XmDirection(3), XmDirectionMatch(3), XmDirectionMatchPartial(3), XmDirectionToStringDirection(3), XmString(3), XmStringDirection(3), and
XmStringDirectionToDirection(3),
XmDirectionToStringDirection(library call)