Sponsored Content
Full Discussion: C questions
Top Forums Programming C questions Post 33751 by Perderabo on Friday 17th of January 2003 02:09:41 PM
Old 01-17-2003
You really need to read a book on C programming, but I will try a brief answer.

If I do "extern int errno" I am telling the compiler that errno is an integer. But it is really defined in some other module. So the compiler will not create a variable called errno, it will just reference it. Then when I run "ld" I better be including a module that defines errno without the extern.

Putting "static" on a function will make the function invisible to the outside world. It can only be called by other functions in the same source file.
 

8 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

i got some questions :)

Hi! Im new to all this but the computer club im in has unix i think. now my questions. 1.is it NTFS i need to partion the harddrive with to be able to use unix? 2.Unix and Linux whats the diffrense?yes im a noob got no idea been using crap windows for ages and hate it. 3.I got a win98... (2 Replies)
Discussion started by: Pierre
2 Replies

2. Solaris

2 Questions

Hello Everbody I hope you can give me a hand, I have some questions The first one itīs about some message that I donīt know what means, I was looking about it. but nothing. This is the message rsh: connection from bad port bsd-gw: Error reading from connection: Bad file number And my... (4 Replies)
Discussion started by: lo-lp-kl
4 Replies

3. UNIX for Dummies Questions & Answers

Just a few questions.

Hi everyone im new to this forums, i just wanted to get started by asking a few question(Im a Unix newbie) 1. How do i sort a file called "dirr" in a ascending order on the 3rd column 2. what does alias on=who do Thanks in advance!!! (1 Reply)
Discussion started by: Da Paper
1 Replies

4. UNIX for Advanced & Expert Users

can any one help me out this questions.....

How do you locate all nonblank lines that don't begin with #, /* ,or // ? (3 Replies)
Discussion started by: pulsar2587
3 Replies

5. Programming

two questions

hey all, I have question when am writing simple shell... in the child am calling execvp, i want the parent to know when execvp returns - 1. how can i let the parent know the result of execvp thanks in advance (9 Replies)
Discussion started by: joey
9 Replies

6. Homework & Coursework Questions

Print questions from a questions folder in a sequential order

1.) I am to write scripts that will be phasetest folder in the home directory. 2.) The folder should have a set-up,phase and display files I have written a small script which i used to check for the existing users and their password. What I need help with: I have a set of questions in a... (19 Replies)
Discussion started by: moraks007
19 Replies

7. UNIX for Dummies Questions & Answers

Just had a few questions

1) The lpr and sort utilities accept input either from a file named on the command line or from standard input. a)Name two other utilities that function in a similar manner. b)Name a utility that accepts its input only from standard input. 2) Explain the following error message. What... (10 Replies)
Discussion started by: youngyou
10 Replies

8. UNIX for Dummies Questions & Answers

Vi questions

Hello, I would like to know how we can highlight/select a section of a file in vi and delete that section if we don't want to use the dd command to delete one line at at time. There is one where we don't want to delete the whole line , but up to a certain word. (2 Replies)
Discussion started by: Pouchie1
2 Replies
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)
All times are GMT -4. The time now is 12:37 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy