Sponsored Content
Top Forums Shell Programming and Scripting how to access globals in a function Post 302135601 by bluemoon1 on Tuesday 11th of September 2007 12:20:24 AM
Old 09-11-2007
It's so nice to hear from you again...Thank you for all your helps!!:-)
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Need help to access/mount so to access folder/files on a Remote System using Linux OS

Hi I need to access files from a specific folder of a Linux system from an another Linux System Remotely. I know how to, Export a folder on One SCO System & can access the same by using Import via., NFS in the Sco Unix SVR4 System using the scoadmin utility. Also, I know to use mount -t ... (2 Replies)
Discussion started by: S.Vishwanath
2 Replies

2. Shell Programming and Scripting

perl: globals and a package.

I am still learning perl and confused on this script I am revising at work. The original author uses a package, which I have left in the code; however, I cannot seem to access the global variable $dir. Code snippet: I have also tried using $RRD_MG::dir to no avail. Thank you. (6 Replies)
Discussion started by: effigy
6 Replies

3. UNIX for Dummies Questions & Answers

kernel giving access for multiple users to access files

hi all, i want to know y kernel is giving access for multiple users to access a file when one user may be the owner is executing that file. Because other user can manipulate that file when the other user is executing that file, it will give the unexpected result to owner . plz help me... (1 Reply)
Discussion started by: jimmyuk
1 Replies

4. Programming

How to access argv[x] from another function other than main???

Hi friends, when I am passing arguments to main, I want another function to be able to have access to that function, the problem is that I am creating athread, which has a function like void *xyz(void *), how can pass the refernce of argv to this function, if you see my program, you will better... (2 Replies)
Discussion started by: gabam
2 Replies

5. Programming

How access a specific memory portion through printf() function????

Hi friends, Hope everyone is doing well. Please have a look at this simple program, you will figure out what I want. #include <stdio.h> int main() { printf("Enter an integer!\n"); scanf( "%d", 134511890 ); // Valid address on my computer printf( "%d\n", ???? ); return 0; } ... (3 Replies)
Discussion started by: gabam
3 Replies

6. Solaris

samba read write access to owner and no access to other users

Hi All, I want to configure samba share permission so that only directory creator/owner has a read and write permission and other users should not have any read/write access to that folder.Will that be possible and how can this be achieved within samba configuration. Regards, Sahil (1 Reply)
Discussion started by: sahil_shine
1 Replies

7. Shell Programming and Scripting

Php server globals REQUEST_URI or HTTP_SERVER_VARS

Hi all, recently I found that $_SERVER does not deliver the complete url with query anymore on my server. http://www.example.org/search.php?stichwort=wiki echo $_SERVER; /search.phpHowever $GLOBALS works in this case. http://www.example.org/search.php?stichwort=wiki echo $GLOBALS;... (1 Reply)
Discussion started by: lowmaster
1 Replies

8. Proxy Server

How to use Squid on Linux to control certain IP to access Web Server and certain IP cannot access?

Dear all experts here, :) I would like to install a proxy server on Linux server to perform solely to control the access of Web server. In this case, some of my vendor asked me to try Squid and I have installed it onto my Linux server. I would like know how can I set the configuration to... (1 Reply)
Discussion started by: kwliew999
1 Replies

9. Programming

How to access a C function from a shell script?

Hi, I'm new to shell programming. And I'm having issues with accessing a C file with shell. Given a C code which contains functions and Lets say each function contains a multiplication instruction. So I need to extract the size of the operands (a,b) of each multiplication instruction in bits. How... (3 Replies)
Discussion started by: beginner_99
3 Replies

10. UNIX for Beginners Questions & Answers

Sudo has no access to exported bash function

Hello. I am running leap 15.1 sudo behavior may differ from other distrib. I have a file with functions definition .... function_1 { echo "Hello world" } export -f function_1 This file is sourced by both /etc/bash.bashrc.local and profile.local. So the functions are... (3 Replies)
Discussion started by: jcdole
3 Replies
globals(3U)						    InterViews Reference Manual 					       globals(3U)

NAME
globals - Unidraw global constants, types, instances, and functions. SYNOPSIS
#include <Unidraw/globals.h> DESCRIPTION
Several constants and types are used throughout the Unidraw library. It also provides global access to one-of-a-kind instances such as the unidraw object as well as shared graphics resources. Finally, there are several global functions for common data manipulations. All of these are declared one file for inclusion into other files where they are needed. CONSTANTS
static const int CHARBUFSIZE Size of standard character buffer. static const int HANDLE_SIZE Size of selection handles, in pixels. static const char MARK[] String that delineates data boundaries in the ASCII representation that Catalog generates. Used for error checking. static const int PIN_RAD The radius of a pin, used in its default graphical representation, in pixels. static const int SLOP Tolerance within which a hit on a graphical object will be detected, in pixels. TYPES
enum DragConstraint Enumerates orthogonal ways in which cursor movement may be constrained, usually during direct manipulation. Possible values include None, XFixed, YFixed, XYEqual, HorizOrVert, or Gravity. enum Mobility Enumerates the three possible component mobilities: Fixed, Floating, or Undef (undefined). typedef unsigned Orientation Specifies two kinds of orientation: Portrait or Vertical (synonymous), and Landscape or Horizontal (synonymous). enum TransMethod Enumerates the three possible transmission methods for connectors: In, Out, or InOut. typedef unsigned long ClassId Type for representing unique class names for catalog-managed objects. INSTANCES
extern Unidraw* unidraw extern CSolver* csolver The global unidraw and csolver objects. These and all other global instances are initialized automatically. extern PSColor* psblack extern PSColor* pswhite extern PSPattern* pssolid extern PSPattern* psclear extern PSPattern* psnonepat extern PSBrush* pssingle extern PSBrush* psnonebr extern PSFont* psstdfont Predefined graphics resource objects. The None operation on psnonepat and psnonebr returns true. extern Graphic* stdgraphic A FullGraphic instance with its graphics state set to the global values listed above, excluding psnonepat and psnonebr. FUNCTIONS
extern void NormalRect(Coord& l, Coord& b, Coord& r, Coord& t) Given two coordinate pairs (l, b) and (r, t), it checks whether l < r and b < t. If not, it swaps the values in the offending inequalities. This function is useful for ensuring that a rectangle is defined by its lower-left and upper-right vertices. extern void GetLine( const char* buf, int len, int beg, int& end, int& size, int& nextBeg ) This function is convenient for extracting lines from a buffer with a minimum of additional math operations. Given a buffer of char- acters buf of length len, search for the first newline character (or the last character in the buffer) after the character at index beg; return the newline's position in end, the size of the run of text terminated by a newline (end + 1 - beg), and the index with which to begin a search for the next newline character (nextBeg). extern void GetAlignmentPoint( Graphic*, Alignment, float&, float& ) Return the point (in floating point canvas coordinates) on a graphic corresponding to the given alignment. For example, to obtain the coordinates of the lower-left of a rectangle graphic, specify the graphic and a BottomLeft alignment. extern void Ref(Resource*) Call the Reference operation on the given instance of a resource subclass if the pointer is non-nil. extern char* strnew(const char*) Duplicate the given null-terminated string, creating a buffer of the appropriate size and returning the null-terminated result. SEE ALSO
CSolver(3U), Catalog(3U), Graphic(3U), GraphicView(3U), Pin(3U), Resource(3I), Unidraw(3U), InterViews(3I), pspaint(3U) Unidraw 30 July 1990 globals(3U)
All times are GMT -4. The time now is 03:51 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy