explain_symlink_or_die(3) Library Functions Manual explain_symlink_or_die(3)NAME
explain_symlink_or_die - make a new name for a file and report errors
SYNOPSIS
#include <libexplain/symlink.h>
void explain_symlink_or_die(const char *oldpath, const char *newpath);
DESCRIPTION
The explain_symlink_or_die function is used to call the symlink(2) system call. On failure an explanation will be printed to stderr,
obtained from explain_symlink(3), and then the process terminates by calling exit(EXIT_FAILURE).
This function is intended to be used in a fashion similar to the following example:
explain_symlink_or_die(oldpath, newpath);
oldpath The oldpath, exactly as to be passed to the symlink(2) system call.
newpath The newpath, exactly as to be passed to the symlink(2) system call.
Returns:
This function only returns on success. On failure, prints an explanation and exits.
SEE ALSO symlink(2)
make a new name for a file
explain_symlink(3)
explain symlink(2) errors
exit(2) terminate the calling process
COPYRIGHT
libexplain version 0.52
Copyright (C) 2008 Peter Miller
explain_symlink_or_die(3)
Check Out this Related Man Page
explain_rename_or_die(3) Library Functions Manual explain_rename_or_die(3)NAME
explain_rename_or_die - change the name of a file and report errors
SYNOPSIS
#include <libexplain/rename.h>
void explain_rename_or_die(const char *oldpath, const char *newpath);
DESCRIPTION
The explain_rename_or_die function is used to call the rename(2) system call. On failure an explanation will be printed to stderr,
obtained from explain_rename(3), and then the process terminates by calling exit(EXIT_FAILURE).
This function is intended to be used in a fashion similar to the following example:
explain_rename_or_die(oldpath, newpath);
oldpath The oldpath, exactly as to be passed to the rename(2) system call.
newpath The newpath, exactly as to be passed to the rename(2) system call.
Returns:
This function only returns on success. On failure, prints an explanation and exits.
SEE ALSO rename(2)
change the name or location of a file
explain_rename(3)
explain rename(2) errors
exit(2) terminate the calling process
COPYRIGHT
libexplain version 0.52
Copyright (C) 2008 Peter Miller
explain_rename_or_die(3)
Hi,
I have created symlink under /.
It is /latest Pointing to /home/users/neel_prog_V1.0.
(Note: I have created this symlink so that when version get changed I will need to change only symlink instead of doing changes in /etc/exports.)
I have shared this symlink with NFS. in /etc/exports I... (0 Replies)
Hi friends,
Need your help. The question is:
1) We have directory '/SomeDirectory/SubDirectory'
2) And have symlink pointing to it like '/AnotherOneDirectory/symlink'
'/AnotherOneDirectory/symlink' -> '/SomeDirectory/SubDirectory'
3) Need to get real path without symlinks knowing only... (7 Replies)
Hi Forums,
I got a little problem, I made a few modifications to the code of the launch script of a testing server(minecraft) and now updating is broken aswell as the automatic directory creation.
These Lines somehow create an endless symlink that refers to itself and I don't know how to fix... (0 Replies)
Hi All,
Is there any way to create a symlink that will point to last 1000 line of a log file. My symlink will always point to "tail -1000 logfile".
This can be achieved by writing a script and scheduling with high frequency, but I am looking for some other alternatives.
Please let me know... (8 Replies)
Hello,
On Solaris 10, here are entries for logs in httpd.conf
ErrorLog "|/export/apache/apache-2.2.17/bin/rotatelogs -l -f /var/log/apache/error_log.%Y%m%d 86400"
It keeps creating daily logs with below names -
-rw-r--r-- 1 root root 1016747232 Apr 5 23:59... (16 Replies)