Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

dictcleanup(3) [debian man page]

dictCleanup(3)							    util/dict.h 						    dictCleanup(3)

NAME
dictCleanup - cleanup dictionary SYNOPSIS
#include <util/dict.h> void dictCleanup(dictCtx dict, dictCleanupFunc cleanup, void *rock); ARGUMENTS
dict - dictionary to cleanup cleanup - cleanup callback rock - to pass to <cleanup> DESCRIPTION
Calls <cleanup> for every item in <dict>. If <cleanup> returns true, then item is removed from <dict>. MT-Level: Safe if <dict> thread-safe. RETURN VALUE
None. SEE ALSO
dictDestroy(3), dictCleanup(3), dictReleaseLock(3), dictRemove(3), dictNext(3), dictCreate(3), dictSetValue(3), dictModifyValue(3), dict- Search ClearSilver 12 July 2007 dictCleanup(3)

Check Out this Related Man Page

dictSearch(3)							    util/dict.h 						     dictSearch(3)

NAME
dictSearch - search for value in dictionary. SYNOPSIS
#include <util/dict.h> void *dictSearch(dictCtx dict, const char *id, void **plock); ARGUMENTS
dict - dictionary to search in. id - identifier of item to find. plock - place for value lock (or NULL). DESCRIPTION
Searches for <id> in <dict>, and returns value if found, or NULL if not. If <plock> is non-NULL, then the lock returned in <plock> will be associated with the returned value. Until this lock is passed to dictReleaseLock(), the value will not be passed to the dictCleanupFunc callback (see dictCleanup()). MT-Level: Safe if <dict> thread-safe. RETURN VALUE
plock - set to value lock. SEE ALSO
dictDestroy(3), dictCleanup(3), dictReleaseLock(3), dictRemove(3), dictNext(3), dictCreate(3), dictSetValue(3), dictModifyValue(3), dict- Search ClearSilver 12 July 2007 dictSearch(3)
Man Page

12 More Discussions You Might Find Interesting

1. Filesystems, Disks and Memory

pls hlp: making .sh files executable

I've got a file named jdictd.sh containing the following: --- begin file contents --- #! /bin/csh echo I\'m running! java -cp jdictd.jar org.dict.server.JDictd data/dict.ini # Use the following line instead if JRE 1.1 is used # jre -cp jdictd.jar org.dict.server.JDictd data/dict.ini ---end... (2 Replies)
Discussion started by: ropers
2 Replies

2. UNIX for Dummies Questions & Answers

unix dictionary location

ne1 know where unixs built in dictionary is??? is it in this place /usr/dict/words????? (1 Reply)
Discussion started by: sinner
1 Replies

3. AIX

Login ID cleanup

Hello I have many old IDs on my AIX and would like to know the simplest way of knowing the last time an ID was used. I am familiar with the "last" command. Thanks for any info :) (1 Reply)
Discussion started by: MILLERJ62
1 Replies

4. Shell Programming and Scripting

Help with cleanup

I am trying to add a unique string to a variable to prevent some name space collisions. DATAFILE=/u001/app/unica/affinium644/campaign/partitions/limited/tmp/ebf9aaah.t~# DATETIME=`date +%Y%m%d_%H%M%S` echo $DATAFILE > tmpnme.txt sed 's_/_ _g' tmpnme.txt > tmpnme2.txt DATA=$(cat tmpnme2.txt)... (2 Replies)
Discussion started by: whdr02
2 Replies

5. UNIX for Dummies Questions & Answers

Unix dictionary.

Hey, I am looking for an inbuilt unix dictionary.I tried to look at the path /usr/dict/word and I do not find anything any dict directory in the /usr folder. Can anyone please tell me how to find out this dictionary? Thanks Lee. (1 Reply)
Discussion started by: leepan2008
1 Replies

6. Programming

Application Cleanup during Linux Shutdown

I'm trying to do some cleanup (write open files) when Linux shuts down. I thought the right method would be to trap SIGTERM and do the necessary processing. Here's my sample code: #include <stdio.h> // for File I/O #include <signal.h> // for signals #include <unistd.h> // for sleep() void... (6 Replies)
Discussion started by: whatisron
6 Replies

7. AIX

Password Policy

I need help. I have set a password policy. But I want to dis allow setting user name as password. My policy is as below... min length =8 min diff=2 min alpha=2 max repeats=2 dictionary= /usr/share/dict/words Still user can set his username as password (i.e. Jackie1234). Code tags for... (11 Replies)
Discussion started by: powerAIX
11 Replies

8. Shell Programming and Scripting

Python Script Calculating Average

Can anyone explain what each line of the code does and how it works? I have no experience with python so I am not sure how the arrays and such work. I found this code while looking through the forums. f = open("exams","r") l = f.readline() while l: l = l.split(" ") values = l ... (22 Replies)
Discussion started by: totoro125
22 Replies

9. Shell Programming and Scripting

Timeout doesn't work, please help me

#!/bin/sh trap "cleanup" TERM timeout=5 mainpid=$$ cleanup() { echo "at $i interupt" kill -9 0 } watchdog() { sleep $1 } (watchdog $timeout && kill -TERM $mainpid) & run_test() (10 Replies)
Discussion started by: yanglei_fage
10 Replies

10. Shell Programming and Scripting

UNIX script for cleanup

Hello, I need some help from unix guru's here..I am looking for some advanced level script to cleanup the directories and files from specific directories under a file system.. The folders are created under /opt/modules And under modules, there are multiple subfolders with the application... (6 Replies)
Discussion started by: mb525
6 Replies

11. Shell Programming and Scripting

Shell to cleanup Linux logs

Hi,Looking for any generic shell scripts to cleanup systemlogs. Thanks (2 Replies)
Discussion started by: tommy812
2 Replies

12. UNIX for Beginners Questions & Answers

A quick help on python dict

Hi Team, I'm new to python and working on a project. I have an API call which returns a dict(got the dict.values() and converted to list) as shown below: dict_values() Any clue, how can I get only offset values, in deed I need a sum of those. I can write a "shell sed command" inside python... (2 Replies)
Discussion started by: panyam
2 Replies