Oh God ! I always thought that if a function in a file file1.c calls another function func2 in file file2.c, then we must include prototype of func2 in file2.h and include it in file1.c
Hi,
I have a function or script like this.
show()
{
echo "Hi"
} | tee -a log
show
This creates a logfile and prints Hi in it. Now when I try to do the same for sql like this:
show()
{
sqlplus -s scott/tiger<<!
select * from details;
!
} | tee -a log
show
Then it gives me a... (2 Replies)
Hi there, I'm having a bit of a strange problem which I would appreciate some help with.
The Problem:
I have two external hard drives, but I'm borrowing one off my parents to copy data too (one of mine, which is identical to theirs - WD MyBook 300g - is on its way out).
Fedora 9 recognizes... (3 Replies)
Hi,
I'm searching for an solution for the following problem.
I want fetch some mails via pop3 from a@a.com with fetchmail.
That works perfectly. Now any incoming mail should forwarded to b@b.com via smtp obv. But I don't know how to configure that. All online tutorials describe forwarding to... (0 Replies)
Why this is happening when both of them compiled together and run?
I am getting segmentation fault SIGSEGV.
File1.c:
int arr;
File2.c:
extern int *arr;
int main() {
arr = 100;
} (3 Replies)
Hi, im making a little script but need some help
Code i have so far is
read -p 'Bot Nickname:' ecnick
read -p 'Bot Username:' ecusername
read -p 'Bot Realname:' ecrealname
read -p 'Your Email:' ecemail
echo ''
echo Your bots nickname is set to $ecnick
echo Your bots username is set to... (2 Replies)
Hi All,
Can any one help me.
I am calling in a function2 with string as parameter from function1, the function1 gives 3 values. how i get the 3 values from funciton2 to function1. i have to give a return or something.
thanks in advance. (2 Replies)
I have 7 functions those need to be executed as command line inputs, I tried with below code it’s not executing function. If I run the ./script 2 then fun2 should execute , how to initiate that function I tried case and if else also, how to initiate function from command line
if
then... (8 Replies)
In the header file data.h i got:
const char ack_msg = "ack: received your msg\n";
In the code file server.c i got:
extern const char ack_msg;
And else it is only used in a function call:
user$ grep ack_msg *c *h
server.c:extern const char ack_msg;
server.c: n = write(clientsfd,... (5 Replies)
I saw a header (.h) file with mixture of "regular" function declarations and other extern function declarations. As I was told all function declarations are implicitly external and the extern on functions declarations is superfluous. Here my focus is on function declaration, not variable yet.
int... (2 Replies)
Discussion started by: yifangt
2 Replies
LEARN ABOUT DEBIAN
selinux_default_type_path
selinux_binary_policy_path(3) SELinux API Documentation selinux_binary_policy_path(3)NAME
selinux_path, selinux_policy_root, selinux_binary_policy_path, selinux_failsafe_context_path, selinux_removable_context_path,
selinux_default_context_path, selinux_user_contexts_path, selinux_file_context_path, selinux_media_context_path, selinux_contexts_path,
selinux_booleans_path - These functions return the paths to the active SELinux policy configuration directories and files.
SYNOPSIS
#include <selinux/selinux.h>
extern const char *selinux_path(void);
extern const char *selinux_policy_root(void);
extern const char *selinux_binary_policy_path(void);
extern const char *selinux_failsafe_context_path(void);
extern const char *selinux_removable_context_path(void);
extern const char *selinux_default_context_path(void);
extern const char *selinux_user_contexts_path(void);
extern const char *selinux_usersconf_path(void);
extern const char *selinux_x_context_path(void);
extern const char *selinux_sepgsql_context_path(void);
extern const char *selinux_file_context_path(void);
extern const char *selinux_media_context_path(void);
extern const char *selinux_securetty_types_path(void);
extern const char *selinux_contexts_path(void);
extern const char *selinux_booleans_path(void);
DESCRIPTION
These functions return the paths to the active policy configuration directories and files based on the settings in /etc/selinux/config.
selinux_path() - top-level SELinux configuration directory
selinux_policy_root() - top-level policy directory
selinux_binary_policy_path() - binary policy file loaded into kernel
selinux_default_type_path - context file mapping roles to default types.
selinux_failsafe_context_path() - failsafe context for emergency logins
selinux_removable_context_path() - filesystem context for removable media
selinux_default_context_path() - system-wide default contexts for user sessions
selinux_user_contexts_path() - directory containing per-user default contexts
selinux_usersconf_path() - file containing mapping between Linux Users and SELinux users
selinux_x_context_path() - file containing configuration for XSELinux extension
selinux_sepgsql_context_path() - file containing configuration for SE-PostgreSQL
selinux_netfilter_context_path - default netfilter context
selinux_file_context_path() - default system file contexts configuration
selinux_file_context_local_path() - local customization file contexts configuration
selinux_file_context_homedir_path() - home directory file contexts configuration
selinux_media_context_path() - file contexts for media device nodes
selinux_contexts_path() - directory containing all of the context configuration files
selinux_securetty_types_path() - defines tty types for newrole securettys
selinux_booleans_path() - initial policy boolean settings
AUTHOR
This manual page was written by Dan Walsh <dwalsh@redhat.com>.
SEE ALSO selinux(8)dwalsh@redhat.com 15 November 2004 selinux_binary_policy_path(3)