Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

xsavecontext(3x11) [osf1 man page]

XSaveContext(3X11)														XSaveContext(3X11)

NAME
XSaveContext, XFindContext, XDeleteContext, XUniqueContext - associative look-up routines SYNOPSIS
int XSaveContext(display, rid, context, data) Display *display; XID rid; XContext context; XPointer data; int XFindContext(display, rid, context, data_return) Display *display; XID rid; XContext context; XPointer *data_return; int XDeleteContext(display, rid, context) Display *display; XID rid; XContext context; XContext XUniqueContext() ARGUMENTS
Specifies the context type to which the data belongs. Specifies the data to be associated with the window and type. Returns the data. Specifies the connection to the X server. Specifies the resource ID with which the data is associated. DESCRIPTION
If an entry with the specified resource ID and type already exists, XSaveContext overrides it with the specified context. The XSaveContext function returns a nonzero error code if an error has occurred and zero otherwise. Possible errors are XCNOMEM (out of memory). Because it is a return value, the data is a pointer. The XFindContext function returns a nonzero error code if an error has occurred and zero otherwise. Possible errors are XCNOENT (context-not-found). The XDeleteContext function deletes the entry for the given resource ID and type from the data structure. This function returns the same error codes that XFindContext returns if called with the same arguments. XDeleteContext does not free the data whose address was saved. The XUniqueContext function creates a unique context type that may be used in subsequent calls to XSaveContext. SEE ALSO
Xlib -- C Language X Interface XSaveContext(3X11)

Check Out this Related Man Page

XSaveContext(3X11)						  XLIB FUNCTIONS						XSaveContext(3X11)

NAME
XSaveContext, XFindContext, XDeleteContext, XUniqueContext - associative look-up routines SYNTAX
int XSaveContext(display, rid, context, data) Display *display; XID rid; XContext context; XPointer data; int XFindContext(display, rid, context, data_return) Display *display; XID rid; XContext context; XPointer *data_return; int XDeleteContext(display, rid, context) Display *display; XID rid; XContext context; XContext XUniqueContext() ARGUMENTS
context Specifies the context type to which the data belongs. data Specifies the data to be associated with the window and type. data_return Returns the data. display Specifies the connection to the X server. rid Specifies the resource ID with which the data is associated. DESCRIPTION
If an entry with the specified resource ID and type already exists, XSaveContext overrides it with the specified context. The XSaveContext function returns a nonzero error code if an error has occurred and zero otherwise. Possible errors are XCNOMEM (out of memory). Because it is a return value, the data is a pointer. The XFindContext function returns a nonzero error code if an error has occurred and zero otherwise. Possible errors are XCNOENT (context-not-found). The XDeleteContext function deletes the entry for the given resource ID and type from the data structure. This function returns the same error codes that XFindContext returns if called with the same arguments. XDeleteContext does not free the data whose address was saved. The XUniqueContext function creates a unique context type that may be used in subsequent calls to XSaveContext. SEE ALSO
Xlib - C Language X Interface X Version 11 Release 6.6 XSaveContext(3X11)
Man Page

15 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

how to get rid of blank line in a flat text file

Hi, I have a flat text file which contains blank line between each text line. Is there any command to get rid of it? Thanks for your help (11 Replies)
Discussion started by: xfang
11 Replies

2. UNIX for Dummies Questions & Answers

does any bodys know how to ?

how do i get rid of tsr's in my system i think that it has hit my hdd and keeps messing up my root partion tell me if i'm wrong. (6 Replies)
Discussion started by: amicrawler2000
6 Replies

3. Shell Programming and Scripting

Get rid of repeated entries.

I have the following problem. The file contains many lines already sorted according to their first arguments. Some of these first arguments are repetitive. For each first argument value, I need to keep the first and the last line that contain it. For example, ... 1 234 1 348 ... ... 5 483... (2 Replies)
Discussion started by: jijibabawu
2 Replies

4. UNIX for Dummies Questions & Answers

what does this error mean

hi, i am not able to debug the error "dereferencing pointer to incomplete type".So can anyone help me in finding out, what does it mean n how do i get rid of it? thanks in advance sriram (1 Reply)
Discussion started by: sriram.ec
1 Replies

5. Post Here to Contact Site Administrators and Moderators

How to ged rid of "FeedBot" ?

Hi, how can I ged rid of "FeedBot" postings, put "FeedBot" on an ignore list or remove threads of the "News, Links, Events and Announcements" subforum from the "New Posts" option? Thanks in advance. (5 Replies)
Discussion started by: Ebbi
5 Replies

6. UNIX for Dummies Questions & Answers

sed help

I need to replace the first character of a variable but only if it is a 0. For example i have a variable called HOUR and when its value is 01, 02, etc i need to just get rid of the 0. however when HOUR has a value of 10+ i dont want to change anything. I know this is simple i just cant work it out.... (5 Replies)
Discussion started by: fwabbly
5 Replies

7. UNIX for Dummies Questions & Answers

get rid of certain tags with mailx or sendmail

Hello, So i want to get rid of "X-Authentication-Warning" when sending out mails with modified returnadress/senderadress ie. when executing "cat test.email | mailx -t -r me@www.tld" (in test.email theres given To, Subject and textmailcontent") - yet it says "UNIXUSER set sender to... (2 Replies)
Discussion started by: congo
2 Replies

8. UNIX for Advanced & Expert Users

Get rid of junk character in a file

I have a file with one of the following lines, when opened with vi 33560010686GPT£120600GBPGBP10082007DS In the above line, I want to get rid of the junk character before the £ (pound sysmbol). When I tried copying £ from windows and copy in unix vi, it prints as £ and I tried pattern replace... (2 Replies)
Discussion started by: nskworld
2 Replies

9. Shell Programming and Scripting

Using sed to substitute first occurrence

I am trying to get rid of some ending tags but I run into some problems. Ex. How are you?</EndTag><Begin>It is fine.</Begin><New> Just about I am trying to get rid of the ending tags, starts with </ and ending with >. (which is </EndTag> and </Begin>) I tried the following sed... (2 Replies)
Discussion started by: quixoticking11
2 Replies

10. Shell Programming and Scripting

how to get rid of ^M in the file

Hi I have a file wich contains ^M characters, looks like these are from DOS, Is there a way to get rid of them? Thanks -A (3 Replies)
Discussion started by: aoussenko
3 Replies

11. UNIX for Dummies Questions & Answers

How to get rid of ^[[D

Hi All, Im selecting a large record from a table and putting it in a file in the unix box. The file has a hidden character "^[[D " present in it. Can any one help me in getting rid of the character Thanks in advance, (4 Replies)
Discussion started by: madhan@29
4 Replies

12. Shell Programming and Scripting

Get rid of the 7th character of each line if this is a space

I have a text file like this ... B 16 1.340E+05 A 18 3.083E+02 Wu123 1.365E+02 ... I would like to get rid of the 7th character of each line if this is a space character. Thank you, Sarah (5 Replies)
Discussion started by: f_o_555
5 Replies

13. UNIX for Dummies Questions & Answers

awk to remove redundancy, with conditions

Hi Everyone, I've been using awk '!x++' to get rid of redundancy in a file, but it's getting rid of some extra lines I need (like the plus signs in the example below). So how would I go from this: @XYZ ABCD 345345 + @MNO EFGH 789789 + @XYZ ABCD 345345 + to: (2 Replies)
Discussion started by: sp24
2 Replies

14. Red Hat

How to get rid of zombie process?

Hi, How to get rid of Zombie Process, Kill -9 PID does not seem to be permanent solution, your help will be Appreciated. Thanks (11 Replies)
Discussion started by: szs
11 Replies

15. UNIX for Dummies Questions & Answers

Replacing part of filename

Hi guys! I have quite a lot of files like all_10001_ct1212307460308.alf* and I want to get rid of the first number for all at once like: all_ct1212307460308.alf* How can I do this in the shell? (12 Replies)
Discussion started by: TimmyTiz
12 Replies