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
dictModifyValue(3) util/dict.h dictModifyValue(3)NAME
dictModifyValue - create/modify an item.
SYNOPSIS
#include <util/dict.h>
NEOERR *dictModifyValue(dictCtx dict, const char *id, dictNewValueCB new_cb,
dictUpdateValueCB update, void *rock);
ARGUMENTS
dict - dictionary to add pair to.
id - identifier of value
new - function to call to create new value (may be NULL)
update - function to call to modify value (if NULL, the old
value is freed, and <new> is used)
rock - context to pass to <new> or <update>.
DESCRIPTION
Finds <id>'s value and calls <update>. If <id> is not in <dict>, calls <new> to obtain a new value.
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 dictModifyValue(3)
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)
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)
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)
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)
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)
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)
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)
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)
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)