04-13-2009
If it's dynamically allocated (via malloc(3) in C or new in C++) you can free(3) it. But it's not garbage collection per se, as you'll have to do it yourself.
8 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
For some reason, I'm having a bit of a brain fart here and cannot think of a simple solution to this problem...
We have a samba server installed on one of our Darwin boxes. Someone is doing massive amounts of work through a samba share, and in turn in pegging samba and the box. I can see how... (1 Reply)
Discussion started by: fender177
1 Replies
2. UNIX for Dummies Questions & Answers
I currently access a remote Unix server which has an external modem connected to one of it's serial ports (/dev/cua/b). At times, this server undergoes a hard reset and for some reason this disallows us from making use of the modem any longer. A hard reset of the modem always seems to fix the... (0 Replies)
Discussion started by: ebender1
0 Replies
3. Solaris
Hi,
I got a solarsi 10 box with 9 zones and the cpu shares as following
ID NAME SHARES
0 global 1
1 FMW1 100
2 FMW2 100
3 OID1 100
4 OID2 100
5 OVD1 100
6 OID0 100
7 FMW5 100
8... (2 Replies)
Discussion started by: fugitive
2 Replies
4. UNIX for Dummies Questions & Answers
Hello,
I am trying to free memory allocation after EOF from keyboard is detected (ctrl+D) in a C program. I've written a small program to replicate my problem:
int main(int argc, char *argv) {
char *line;
line = (char*)malloc(sizeof(char)*(512));
line = fgets(line, 512,... (1 Reply)
Discussion started by: oddworld
1 Replies
5. Programming
Hello,
I am trying to free memory allocation after EOF from keyboard is detected (ctrl+D) in a C program. I've written a small program to replicate my problem:
int main(int argc, char *argv) {
char *line;
line = (char*)malloc(sizeof(char)*(512));
line = fgets(line, 512,... (10 Replies)
Discussion started by: oddworld
10 Replies
6. Boot Loaders
Here is a list of resources for Unix and GNU/Linux bootloaders:
GRUB Legacy: The original GRand Unified Bootloader. Now known as GRUB Legacy.
GRUB: The latest and greatest. More commonly known as GRUB2.
BRUG: Brand-new Universal loadeR from GRUB. Based on GRUB. Adds features like new object... (0 Replies)
Discussion started by: fpmurphy
0 Replies
7. Shell Programming and Scripting
Hi guys,
I wrote a basic inotifywait shell script on my CentOS 5.6 x86_64 test server that syncs any deleted files in a directory.
/usr/bin/script
#!/bin/sh
inotifywait -m -e delete /home/user/test | while read file; do
# log event here
done
The script alone works fine. However, the... (4 Replies)
Discussion started by: TECK
4 Replies
8. UNIX for Dummies Questions & Answers
:)Hi all,
Please advice me is it safer to use the following command to free up (truncate) space in HDD.
1) > /usr/adm/messages
2) > /usr/adm/sulog
3) > /usr/adm/ctlog
4) > /tmp
5) > /usr/adm/sa
6) > /var/spool
Thanks in advance
Rukshan (1 Reply)
Discussion started by: rukshan4u2c
1 Replies
LEARN ABOUT DEBIAN
xtgetapplicationresources
XtGetApplicationResources(3) XT FUNCTIONS XtGetApplicationResources(3)
NAME
XtGetApplicationResources, XtVaGetApplicationResources - obtain application resources
SYNTAX
void XtGetApplicationResources(Widget w, XtPointer base, XtResourceList resources, Cardinal num_resources, ArgList args, Cardinal
num_args);
void XtVaGetApplicationResources(Widget w, XtPointer base, XtResourceList resources, Cardinal num_resources, ...);
ARGUMENTS
args Specifies the argument list to override resources obtained from the resource database.
base Specifies the base address of the subpart data structure where the resources should be written.
num_args Specifies the number of arguments in the argument list.
num_resources
Specifies the number of resources in the resource list.
resources Specifies the resource list for the subpart.
w Specifies the widget that wants resources for a subpart or that identifies the resource database to search.
... Specifies the variable arguments to override resources obtained from the resource database.
DESCRIPTION
The XtGetApplicationResources function first uses the passed widget, which is usually an application shell, to construct a resource name
and class list, Then, it retrieves the resources from the argument list, the resource database, or the resource list default values. After
adding base to each address, XtGetApplicationResources copies the resources into the address given in the resource list. If args is NULL,
num_args must be zero. However, if num_args is zero, the argument list is not referenced. The portable way to specify application
resources is to declare them as members of a structure and pass the address of the structure as the base argument.
SEE ALSO
X Toolkit Intrinsics - C Language Interface
Xlib - C Language X Interface
X Version 11 libXt 1.1.3 XtGetApplicationResources(3)