Sponsored Content
Contact Us Post Here to Contact Site Administrators and Moderators All threads closed after 3 months Post 302335369 by Perdy on Saturday 18th of July 2009 07:37:14 PM
Old 07-18-2009
I am now just a registered user. When I try to rate a closed thread I get "error on page".
 

9 More Discussions You Might Find Interesting

1. IP Networking

DNS Help - Been trying to do this for months

Ok someone has to be able to help me here. I have the latest webmin, and i have bind i have a domain name called thedigitaldream.co.uk i have one server, just one as im poor so the one server is gunna be the dns, email, web and ftp server. Its only for a small site anyway so it will... (16 Replies)
Discussion started by: matt2kjones
16 Replies

2. UNIX for Advanced & Expert Users

Comparing two months

Hi all, Using shell script and awk statements, I manage to get the month and year of the Patch Bundle installed on the system. Now I have to compare month and year of Patch Bundle installed to the Patch Bundle which is desired on the workstation. I am able to do easily comparison of year but not... (1 Reply)
Discussion started by: pankschawla
1 Replies

3. Shell Programming and Scripting

some months ego

Hi, how can I format date function to find n (n=1 to 11) months ego ? For exemple now we are in july and I want to have a variable presenting april. How should it be : month=`date +%b`????? Many thanks before. (8 Replies)
Discussion started by: big123456
8 Replies

4. UNIX for Advanced & Expert Users

Subtract 2 months from the date

I have the script which appends month and year to the name of the file. Now every time when I append the month-year combination I have to subtract 2 months from the current date and then append it, since we are sending our vendor 2 months prior worth of data eveytime. #! /usr/bin/ksh ... (5 Replies)
Discussion started by: mahekr2000
5 Replies

5. UNIX for Advanced & Expert Users

Threads and Threads Count ?

Hi all, How can I get the list of all Threads and the Total count of threads under a particular process ? Do suggest !! Awaiting for the replies !! Thanks Varun:b: (2 Replies)
Discussion started by: varungupta
2 Replies

6. UNIX for Dummies Questions & Answers

ssh_exchange_identification: Connection closed by remote host Connection closed

Hi Everyone, Good day. Scenario: 2 unix servers -- A (SunOS) and B (AIX) I have an ftp script to sftp 30 files from A to B which happen almost instantaneously i.e 30 sftp's happen at the same time. Some of these sftp's fail with the following error: ssh_exchange_identification: Connection... (1 Reply)
Discussion started by: jeevan_fimare
1 Replies

7. Shell Programming and Scripting

How to get date n months before in Unix?

Hi, I need the date n months before currrent date I need to store date in a varible say x and then get the date 6 month before and get the result in the format 25-Aug-2009 Please Advice (7 Replies)
Discussion started by: mad_man12
7 Replies

8. Shell Programming and Scripting

Naming number to months

Hi, I have many files of monthly means from model simulation such as 1,2,3,4.....12, corresponding to jan, feb, mar,....., dec. e.g. avg_1.nc, avg_2.nc, ............., avg_12.nc. i want to write a shell script such that it should conveet number into months and year such as..... (4 Replies)
Discussion started by: mahesh shinde
4 Replies

9. UNIX for Dummies Questions & Answers

Months difference between 2 dates

Hello, I would like to find out the number of months between two dates as below example. date 1 = 03-02-2016 date 2 = 15-11-2015 I need 04 as months difference. Any help on this is highly appreciated. Thanks, Keerti (3 Replies)
Discussion started by: keertis
3 Replies
iv_fd(3)						    ivykis programmer's manual							  iv_fd(3)

NAME
iv_fd_register, iv_fd_register_try, iv_fd_unregister, iv_fd_registered, iv_fd_set_handler_in, iv_fd_set_handler_err, iv_fd_set_handler_out - deal with ivykis file descriptors SYNOPSIS
#include <iv.h> struct iv_fd { int fd; void *cookie; void (*handler_in)(void *); void (*handler_out)(void *); void (*handler_err)(void *); }; void IV_FD_INIT(struct iv_fd *fd); void iv_fd_register(struct iv_fd *fd); int iv_fd_register_try(struct iv_fd *fd); void iv_fd_unregister(struct iv_fd *fd); int iv_fd_registered(struct iv_fd *fd); void iv_fd_set_handler_in(struct iv_fd *fd, void (*handler)(void *)); void iv_fd_set_handler_out(struct iv_fd *fd, void (*handler)(void *)); void iv_fd_set_handler_err(struct iv_fd *fd, void (*handler)(void *)); DESCRIPTION
The functions iv_fd_register and iv_fd_unregister register, respectively unregister, a file descriptor with the current thread's ivykis event loop. Calling iv_fd_registered on a file descriptor returns true if that file descriptor is currently registered with ivykis. When a file descriptor that is registered with ivykis becomes ready for input or output, or an error condition occurs on that file descrip- tor, and a callback function for that event has been specified, that callback function will be called in the thread that the file descrip- tor was registered in. And conversely, when a file descriptor that is already ready for input or output or already has an error condition set is registered with ivykis, and the corresponding callback function pointer is not NULL, the callback function will be called in the next iteration of the cur- rent thread's ivykis event loop. Before a file descriptor is registered, it must have been initialised by calling IV_FD_INIT on it, and must have had its ->fd member field set to a valid OS file descriptor. The ->handler_in, ->handler_out and ->handler_err member fields point to callback functions that are to be called when the specified file descriptor becomes ready for input or output or an error condition occurs. If any handler function is set to NULL, it indicates that the application is not interested in being notified of the corresponding event. An application is not allowed to change the ->fd member while a file descriptor is registered. iv_fd_set_handler_in changes the callback function to be called when descriptor fd becomes ready for input. An application is not allowed to directly change the ->handler_in member after the file descriptor has been registered, this function has to be used instead. Con- versely, it is not allowed to use this function before the file descriptor has been registered. iv_fd_set_handler_out is analogous to iv_fd_set_handler_in, only it deals with the callback function for output readiness (->handler_out). iv_fd_set_handler_err is analogous to iv_fd_set_handler_in and iv_fd_set_handler_out, only it deals with the callback function for error conditions (->handler_err). When a handler function was NULL, and was set to a non-NULL value by calling iv_fd_set_handler_in, iv_fd_set_handler_out or iv_fd_set_han- dler_err, and the file descriptor was already ready for input or output, or already had an error condition set, an event is generated, and the specified callback function will be called in the next iteration of the current thread's event loop. The application does not need to poll the file descriptor to see if a condition was already raised. Callback functions are passed a cookie value as their first and sole argument. If the application wishes to use this facility for trans- ferring data to the callback function, it should set the ->cookie member of a file descriptor to a value of type void *. This value can be modified directly by the application at any time without calling a helper function. When a file descriptor is registered with ivykis, it is transparently set to nonblocking mode, and configured to be closed on exit(3). An application is allowed to unregister a file descriptor from within any callback function, including callback functions triggered by that file descriptor itself, and even to free the memory corresponding to that file descriptor from any callback function, but a struct iv_fd can only be unregistered in the thread that it was registered from. It is allowed to register the same underlying OS file descriptor in multiple threads, but a given struct iv_fd can only be registered in one thread at a time. iv_fd_register does not return errors to the caller, and in case of an error while registering the file descriptor, for example if it isn't open or is unpollable, abort(3) will be invoked. If it is not known whether registering the file descriptor with the kernel will be suc- cessful or not, use iv_fd_register_try instead, which is a variant on iv_fd_register which returns a nonzero value in case of a registra- tion error. Since iv_fd_register_try disables various internal optimisations, it is recommended to use iv_fd_register whenever possible. See iv_examples(3) for programming examples. SEE ALSO
ivykis(3), iv_examples(3) ivykis 2010-08-15 iv_fd(3)
All times are GMT -4. The time now is 04:43 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy