Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

ttymsg(3) [netbsd man page]

TTYMSG(3)						   BSD Library Functions Manual 						 TTYMSG(3)

NAME
ttymsg -- ttymsg utility function LIBRARY
System Utilities Library (libutil, -lutil) SYNOPSIS
#include <util.h> char * ttymsg(struct iovec *iov, int iovlen, const char *tty, int tmout); DESCRIPTION
The ttymsg() function is used by programs such as talkd(8), syslogd(8), wall(1), etc., to display the contents of a uio structure on a termi- nal. ttymsg() forks and finishes in the child if the write would block after waiting up to tmout seconds. RETURN VALUES
ttymsg() returns a pointer to an error string on unexpected error; the string is not newline-terminated. Various "normal" errors are ignored (exclusive-use, lack of permission, etc.). SEE ALSO
writev(2) BSD
June 29, 1997 BSD

Check Out this Related Man Page

PROPERTIES(3)						   BSD Library Functions Manual 					     PROPERTIES(3)

NAME
properties_read, property_find, properties_free -- functions to allow creating simple property lists from ASCII file data LIBRARY
System Utilities Library (libutil, -lutil) SYNOPSIS
#include <libutil.h> properties properties_read(int fd); char * property_find(properties list, const char *name); void properties_free(properties list); DESCRIPTION
typedef struct _properties { struct _properties *next; char *name; char *value; } *properties; The function properties_read() reads name = value pairs from the file descriptor passed in fd and returns the head of a new property list, assuming that the file's contents have been parsed properly, or NULL in case of error. The property_find() function returns the associated value string for the property named name if found, otherwise NULL. The value returned may be up to PROPERTY_MAX_VALUE bytes in length. The properties_free() function is used to free the structure returned by properties_read() when it is no longer needed. FILE FORMAT
Each property in the file is assumed to have the format of name = value where name is an alphanumeric string (and any punctuation not includ- ing the `=' character) and value is an arbitrary string of text terminated by a newline character. If newlines are desired, the entire value should be enclosed in { } (curly-bracket) characters. Any line beginning with a # or ; character is assumed to be a comment and will be ignored. AUTHORS
Jordan Hubbard BUGS
Simplistic. BSD
October 7, 1998 BSD
Man Page