Unix and Linux Discussions Tagged with stat |
|
Thread / Thread Starter |
Last Post |
Replies |
Views |
Forum |
|
|
|
1 |
12,094 |
UNIX for Beginners Questions & Answers |
|
|
|
3 |
6,566 |
UNIX for Beginners Questions & Answers |
|
|
|
3 |
4,086 |
UNIX for Beginners Questions & Answers |
|
|
|
4 |
72,138 |
UNIX for Beginners Questions & Answers |
|
|
|
9 |
13,031 |
Red Hat |
|
|
|
5 |
1,171 |
Shell Programming and Scripting |
|
|
|
4 |
1,943 |
Programming |
|
|
|
5 |
2,019 |
Shell Programming and Scripting |
|
|
|
9 |
7,138 |
UNIX for Dummies Questions & Answers |
|
|
|
14 |
20,819 |
Solaris |
|
|
|
4 |
2,285 |
Shell Programming and Scripting |
|
|
|
2 |
4,885 |
UNIX for Advanced & Expert Users |
|
|
|
1 |
3,056 |
SCO |
|
|
|
3 |
63,723 |
Solaris |
|
|
|
3 |
5,700 |
IP Networking |
|
|
|
2 |
12,214 |
Programming |
|
|
|
1 |
4,752 |
Solaris |
|
|
|
3 |
18,393 |
Solaris |
|
|
|
8 |
5,597 |
UNIX for Advanced & Expert Users |
|
|
|
1 |
9,654 |
Shell Programming and Scripting |
|
|
|
1 |
6,240 |
UNIX for Advanced & Expert Users |
|
|
|
4 |
7,579 |
AIX |
|
|
|
2 |
8,309 |
Solaris |
|
|
|
0 |
5,006 |
Programming |
|
|
|
0 |
4,994 |
Shell Programming and Scripting |
|
|
|
3 |
2,905 |
Programming |
|
|
|
0 |
1,289 |
Software Releases - RSS News |
|
|
|
6 |
5,513 |
UNIX for Advanced & Expert Users |
|
|
|
3 |
24,104 |
IP Networking |
|
|
|
3 |
19,058 |
Shell Programming and Scripting |
|
|
|
0 |
842 |
Software Releases - RSS News |
|
|
|
0 |
829 |
Software Releases - RSS News |
|
|
|
2 |
6,405 |
UNIX for Dummies Questions & Answers |
|
|
|
0 |
982 |
Software Releases - RSS News |
|
|
|
0 |
815 |
Software Releases - RSS News |
|
|
|
3 |
9,395 |
UNIX for Advanced & Expert Users |
|
|
|
0 |
857 |
Software Releases - RSS News |
|
|
|
0 |
758 |
Software Releases - RSS News |
|
|
|
3 |
10,461 |
Shell Programming and Scripting |
|
|
|
3 |
4,171 |
Shell Programming and Scripting |
explain_stat_or_die(3) Library Functions Manual explain_stat_or_die(3)
NAME
explain_stat_or_die - get file status and report errors
SYNOPSIS
#include <libexplain/stat.h>
void explain_stat_or_die(const char *pathname, struct stat *buf);
DESCRIPTION
The explain_stat_or_die function is used to call the stat(2) system call. On failure an explanation will be printed to stderr, obtained
from explain_stat(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_stat_or_die(pathname, buf);
pathname
The pathname, exactly as to be passed to the stat(2) system call.
buf The buf, exactly as to be passed to the stat(2) system call.
Returns:
This function only returns on success. On failure, prints an explanation and exits.
SEE ALSO
stat(2) get file status
explain_stat(3)
explain stat(2) errors
exit(2) terminate the calling process
COPYRIGHT
libexplain version 0.52
Copyright (C) 2008 Peter Miller
explain_stat_or_die(3)