8 More Discussions You Might Find Interesting
1. AIX
Dear All
Please how can I create a user which would be only able to manage queue printer like creating, release, hold etc a printer queue. He would for example be able to enter commands like :
- lpstat -pprintqueue where printqueue is an existing queue on the server
- enable printqueue... (0 Replies)
Discussion started by: sobnc
0 Replies
2. Shell Programming and Scripting
Dear All,
I need to restrict the users in our server.
1.History & history -c command working all groups & others.So i need to restrict history -c option for groups & others .
2.Any option available to view user activity with all
Eg--->user1 Jul22 10:20:11 date
3.Any other Special... (7 Replies)
Discussion started by: kpoobathi
7 Replies
3. Solaris
hi frnds
I created sparse root zone, in that zone when i try to change the passwd it is giving permission denied.
what is the reason and how to chnage the root passwd in the zone. can u please explain the query. (4 Replies)
Discussion started by: sravan ega
4 Replies
4. Solaris
unable to run smgroup / smadd command to create or modify the users and directories. (1 Reply)
Discussion started by: sendhils13
1 Replies
5. Solaris
Hi All.....
How many maximum no of users can be created in solaris 10.0
Waiting for the reply ..... (2 Replies)
Discussion started by: sendhils13
2 Replies
6. Solaris
hi '
i am creating a primary group and a secondary group for a user.
#groupadd -g 101 test
#groupadd -g 102 test1
#useradd -d /export/home/user1 -m -s /bin/ksh -g test -G test user1
in /etc/passwd i can find the username as user1 and group name as test
and where can i find the... (4 Replies)
Discussion started by: madhudeepan
4 Replies
7. UNIX for Dummies Questions & Answers
Hey guys how do you check if an account is locked in tru64, and how do you unlock it? (1 Reply)
Discussion started by: sbn
1 Replies
8. Solaris
Hello, I inhearited several solaris machines (read that about 30 of them) and have a need to be able to manage the user accounts remotely.... Currently the machines all have the same users but not exactly the same spelling (each machine was locally managed before and thus every single passwd/shadow... (2 Replies)
Discussion started by: wgriffin
2 Replies
LEARN ABOUT OSX
tcl_createfilehandler
Tcl_CreateFileHandler(3) Tcl Library Procedures Tcl_CreateFileHandler(3)
__________________________________________________________________________________________________________________________________________________
NAME
Tcl_CreateFileHandler, Tcl_DeleteFileHandler - associate procedure callbacks with files or devices (Unix only)
SYNOPSIS
#include <tcl.h>
Tcl_CreateFileHandler(fd, mask, proc, clientData)
Tcl_DeleteFileHandler(fd)
ARGUMENTS
int fd (in) Unix file descriptor for an open file or device.
int mask (in) Conditions under which proc should be called: OR-ed combination of TCL_READABLE, TCL_WRITABLE, and
TCL_EXCEPTION. May be set to 0 to temporarily disable a handler.
Tcl_FileProc *proc (in) Procedure to invoke whenever the file or device indicated by file meets the conditions specified by
mask.
ClientData clientData (in) Arbitrary one-word value to pass to proc.
_________________________________________________________________
DESCRIPTION
Tcl_CreateFileHandler arranges for proc to be invoked in the future whenever I/O becomes possible on a file or an exceptional condition
exists for the file. The file is indicated by fd, and the conditions of interest are indicated by mask. For example, if mask is TCL_READ-
ABLE, proc will be called when the file is readable. The callback to proc is made by Tcl_DoOneEvent, so Tcl_CreateFileHandler is only use-
ful in programs that dispatch events through Tcl_DoOneEvent or through Tcl commands such as vwait.
Proc should have arguments and result that match the type Tcl_FileProc:
typedef void Tcl_FileProc(
ClientData clientData,
int mask);
The clientData parameter to proc is a copy of the clientData argument given to Tcl_CreateFileHandler when the callback was created. Typi-
cally, clientData points to a data structure containing application-specific information about the file. Mask is an integer mask indicat-
ing which of the requested conditions actually exists for the file; it will contain a subset of the bits in the mask argument to Tcl_Cre-
ateFileHandler.
There may exist only one handler for a given file at a given time. If Tcl_CreateFileHandler is called when a handler already exists for
fd, then the new callback replaces the information that was previously recorded.
Tcl_DeleteFileHandler may be called to delete the file handler for fd; if no handler exists for the file given by fd then the procedure
has no effect.
The purpose of file handlers is to enable an application to respond to events while waiting for files to become ready for I/O. For this to
work correctly, the application may need to use non-blocking I/O operations on the files for which handlers are declared. Otherwise the
application may block if it reads or writes too much data; while waiting for the I/O to complete the application will not be able to ser-
vice other events. Use Tcl_SetChannelOption with -blocking to set the channel into blocking or nonblocking mode as required.
Note that these interfaces are only supported by the Unix implementation of the Tcl notifier.
KEYWORDS
callback, file, handler
Tcl 8.0 Tcl_CreateFileHandler(3)