Sponsored Content
Full Discussion: Is `mv dir dir2` atomic ?
Top Forums UNIX for Dummies Questions & Answers Is `mv dir dir2` atomic ? Post 302170842 by meili100 on Tuesday 26th of February 2008 11:28:30 PM
Old 02-27-2008
Thanks all.
Can I get an official link or resource for whether mv is atomic? I am writing a tech document of them. Thanks.
 

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

a script to clone a dir tree, & overwrite the dir struct elsewhere?

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

Atomic lock file creation

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

CPIO Problem, copy to the root dir / instead of current dir

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

A script to find dir, delete files in, and then del dir?

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

How to list all files in dir and sub-dir's recursively along with file size?

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

system calls and atomic operation

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

KSH - Find paths of multiple files in CC (dir and sub-dir))

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

Atomic Operations

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

Assign read write permission to the user for specific dir and it's sub dir and files in 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
std::atomic< _Tp >(3cxx)												  std::atomic< _Tp >(3cxx)

NAME
std::atomic< _Tp > - SYNOPSIS
Public Member Functions atomic (const atomic &) constexpr atomic (_Tp __i) bool compare_exchange_strong (_Tp &, _Tp, memory_order, memory_order) bool compare_exchange_strong (_Tp &, _Tp, memory_order, memory_order) volatile bool compare_exchange_strong (_Tp &, _Tp, memory_order=memory_order_seq_cst) bool compare_exchange_strong (_Tp &, _Tp, memory_order=memory_order_seq_cst) volatile bool compare_exchange_weak (_Tp &, _Tp, memory_order, memory_order) bool compare_exchange_weak (_Tp &, _Tp, memory_order, memory_order) volatile bool compare_exchange_weak (_Tp &, _Tp, memory_order=memory_order_seq_cst) bool compare_exchange_weak (_Tp &, _Tp, memory_order=memory_order_seq_cst) volatile _Tp exchange (_Tp __i, memory_order=memory_order_seq_cst) _Tp exchange (_Tp __i, memory_order=memory_order_seq_cst) volatile bool is_lock_free () const bool is_lock_free () const volatile _Tp load (memory_order=memory_order_seq_cst) const _Tp load (memory_order=memory_order_seq_cst) const volatile operator _Tp () const operator _Tp () const volatile atomic & operator= (const atomic &) atomic & operator= (const atomic &) volatile _Tp operator= (_Tp __i) _Tp operator= (_Tp __i) volatile void store (_Tp, memory_order=memory_order_seq_cst) void store (_Tp, memory_order=memory_order_seq_cst) volatile Detailed Description template<typename _Tp>struct std::atomic< _Tp > atomic 29.4.3, Generic atomic type, primary class template. Definition at line 155 of file atomic. Author Generated automatically by Doxygen for libstdc++ from the source code. libstdc++ Tue Nov 27 2012 std::atomic< _Tp >(3cxx)
All times are GMT -4. The time now is 08:50 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy