Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

dpns_rmdir(3) [debian man page]

DPNS_RMDIR(3)						      DPNS Library Functions						     DPNS_RMDIR(3)

NAME
dpns_rmdir - remove a DPNS directory in the name server SYNOPSIS
#include <sys/types.h> #include "dpns_api.h" int dpns_rmdir (const char *path) DESCRIPTION
dpns_rmdir removes a DPNS directory in the name server if it is empty. path specifies the logical pathname relative to the current DPNS directory or the full DPNS pathname. RETURN VALUE
This routine returns 0 if the operation was successful or -1 if the operation failed. In the latter case, serrno is set appropriately. ERRORS
ENOENT The named directory does not exist or is a null pathname. EACCES Search permission is denied on a component of the path prefix or write permission is denied on the parent directory or the parent has the sticky bit S_ISVTX set and the effective user ID of the requestor does not match the owner ID of the directory and the effective user ID of the requestor does not match the owner ID of the parent directory and the requestor does not have ADMIN privilege in the Cupv database. EFAULT path is a NULL pointer. EEXIST The named directory is not empty. ENOTDIR A component of path prefix is not a directory. EINVAL path is the current directory. ENAMETOOLONG The length of path exceeds CA_MAXPATHLEN or the length of a path component exceeds CA_MAXNAMELEN. SENOSHOST Host unknown. SENOSSERV Service unknown. SECOMERR Communication error. ENSNACT Name server is not running or is being shutdown. SEE ALSO
Castor_limits(4), dpns_chdir(3), dpns_mkdir(3), Cupvlist(1) AUTHOR
LCG Grid Deployment Team DPNS
$Date: 2002/10/16 06:25:40 $ DPNS_RMDIR(3)

Check Out this Related Man Page

DPNS_UNDELETE(3)					      DPNS Library Functions						  DPNS_UNDELETE(3)

NAME
dpns_undelete - recover a logically deleted DPNS file entry in the name server SYNOPSIS
#include <sys/types.h> #include "dpns_api.h" int dpns_undelete (const char *path) DESCRIPTION
dpns_undelete recovers a DPNS file entry logically deleted by dpns_delete. This can be done as long as a the reclaim utility has not been run on the corresponding tape volume. path specifies the logical pathname relative to the current DPNS directory or the full DPNS pathname. RETURN VALUE
This routine returns 0 if the operation was successful or -1 if the operation failed. In the latter case, serrno is set appropriately. ERRORS
EPERM path is a directory. ENOENT The named file does not exist or is a null pathname. EACCES Search permission is denied on a component of the path prefix or write permission is denied on the parent directory or the parent has the sticky bit S_ISVTX set and the effective user ID of the requestor does not match the owner ID of the file and the effective user ID of the requestor does not match the owner ID of the directory and the file is not writable by the requestor and the requestor does not have ADMIN privilege in the Cupv database. EFAULT path is a NULL pointer. ENOTDIR A component of path prefix is not a directory. ENAMETOOLONG The length of path exceeds CA_MAXPATHLEN or the length of a path component exceeds CA_MAXNAMELEN. SENOSHOST Host unknown. SENOSSERV Service unknown. SECOMERR Communication error. ENSNACT Name server is not running or is being shutdown. SEE ALSO
Castor_limits(4), dpns_chdir(3), dpns_delete(3), Cupvlist(1) AUTHOR
LCG Grid Deployment Team DPNS
$Date: 2002/10/16 06:25:40 $ DPNS_UNDELETE(3)
Man Page

8 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Name of path

I can't see the name of the directory path when i connect to server with telnet. What can i do? Thanks. Example: #cd directory1 #cd directory2 #cd directory3 #_ (current directory is directory3) but i want this #cd directory1 #directory1> cd directory2... (8 Replies)
Discussion started by: mehmetned
8 Replies

2. UNIX for Dummies Questions & Answers

Copy file command, why?, how?

scp /path/to/file <username>@<Other Server>:/path/to/newfile If my file is named "Bob" and it is in my user "Accountant" and in a directory named "Invoice_folder"... How would this look in the above? I can't seem to understand the logic of the above scp. MOVING FILE FROM LOCATION #1: /path... (1 Reply)
Discussion started by: woody62
1 Replies

3. Shell Programming and Scripting

Get parent directory of a file

In shell how would I get the parent directory of a file. E.g. I feed this in: /path/to/textfile.txt And get just: /path/to Thanks (2 Replies)
Discussion started by: pcwiz
2 Replies

4. Shell Programming and Scripting

write permission to a perticular user to a directory

Hi, The requirement is like, the program needs 2 argument one is user_id and second one is directory path. My script will check if that user_id has write access to the directory path. The directory path may be in any file system like AFS or NFS. Can any one please suggest some points to... (1 Reply)
Discussion started by: siba.s.nayak
1 Replies

5. Shell Programming and Scripting

How to list all Subdirectories and files with its full path in a parent directory?

How to list all Subdirectories and files with its full path in a parent directory? (1 Reply)
Discussion started by: johnveslin
1 Replies

6. Shell Programming and Scripting

Find if a directory exist from a list of the path

Hello, i want to script on sh to check from a path if the directory exist and isn't empty. I explain: path is : /aaa/bbb/ccc/ccc_name/ddd/ Where the cccc_name is in a list, so i think it's $1 My command find -name /aaa/bbb/ccc/$1/ddd/ didn't work because my $1 is the same and not... (5 Replies)
Discussion started by: steiner
5 Replies

7. UNIX for Beginners Questions & Answers

Asking about the permission inherit from the parent directory

Asking about the permission inherit from the parent directory I am running the web app with tomcat8, I did use umask 007 to set permission for folder which enable the sub files and folder inherit the permission from the parent directory, I was successful which some directories but the directories... (1 Reply)
Discussion started by: janecaongoc
1 Replies

8. UNIX for Beginners Questions & Answers

Asking about the permission inherit from the parent directory

Asking about the permission inherit from the parent directory I am running the web app with tomcat8, I did use umask 007 to set permission for folder which enable the sub files and folder inherit the permission from the parent directory, I was successful which some directories but the directories... (2 Replies)
Discussion started by: janecaongoc
2 Replies