I have installed the locale package for en_GB and if i do a locale -a (after reboot) it will display:
en_GB
en_GB.ISO8859-1
en_GB.ISO8859-15
en_GB.ISO8859-15@euro
(short version)
and i get this when typing only 'locale':
# locale
LANG=en_GB
LC_CTYPE="C"
LC_NUMERIC=C
LC_TIME="C"... (2 Replies)
hi Guys,
relatively new to Unix. i have a list of Unix packages to install... how do i install only what is on that list? can someone help?
Kind regards
Brian (1 Reply)
Hi there
I'm having trouble with a remote Red Hat server. We are busy with an Oracle 11g installation on this box and going through the list of required packages, etc.
The installation required elfutils-libelf-devel-0.148. When I try to install that I get the following error;
rpm -i... (6 Replies)
Hi, I have mounted the Ubuntu server edition 10.10 ISO on my server under a directory media/servercd. I would like to install some services from this. I edited the sources.list file to say:
deb file:/media/servercd maverick main restricted
and it's properly mounted but when I try... (1 Reply)
Hi guys, I am trying to install some packages for my oracle 11g r2 installation, the below error shows up when I try below:
warning: glibc-devel-2.5-24.i386.rpm: Header V3 DSA signature: NOKEY, key ID 37017186
error: Failed dependencies:
glibc-headers is needed by... (8 Replies)
hi,
I wants to customize the Linux packages after installting the Linux OS...
I am not able to install the packages packages in GUI mode System-> Administration->add/remove software.i want to install some desktop and dabase related packages how do i install those packages...
I use RHEL6.2... (1 Reply)
Hello,
I am working in terminal on a Mac OS X 10.9.2. I need to install a series of bioinformatics tools and packages (currently I want to install fastq-tools but downstream I'll need other such as samtools, bwa etc etc.) and will eventually have to be able to do this not only on my mac but also... (3 Replies)
Hi all,
Does anyone know where you can get solaris 10 packages these days? It seems that sunfreeware have now started charging you to download them, which is good.
I have found opencsw, but that seems to rely on you hooking the machine into the interenet and at the moment I am trying to... (3 Replies)
Discussion started by: callmebob
3 Replies
LEARN ABOUT SUNOS
sysevent_get_pub_name
sysevent_get_vendor_name(3SYSEVENT) System Event Library Functions sysevent_get_vendor_name(3SYSEVENT)NAME
sysevent_get_vendor_name, sysevent_get_pub_name, sysevent_get_pid - get vendor name, publisher name or processor ID of event
SYNOPSIS
cc [flag ...] file ...-lsysevent [library ...]
#include <libsysevent.h>
char *sysevent_get_vendor_name(sysevent_t *ev);
char *sysevent_get_pub_name(sysevent_t *ev);
pid_t sysevent_get_pid(sysevent_t *ev);
PARAMETERS
ev handle to a system event object
DESCRIPTION
The sysevent_get_pub_name() function returns the publisher name for the sysevent handle, ev. The publisher name identifies the name of the
publishing application or kernel subsystem of the sysevent.
The sysevent_get_pid() function returns the process ID for the publishing application or SE_KERN_PID for sysevents originating in the ker-
nel. The publisher name and PID are useful for implementing event acknowledgement.
The sysevent_get_vendor_name() function returns the vendor string for the publishing application or kernel subsystem. A vendor string is
the company's stock symbol that provided the application or kernel subsystem that generated the system event. This information is useful
for filtering sysevents for one or more vendors.
The interface manages the allocation of the vendor and publisher name strings, but it is the caller's responsibility to free the strings
when they are no longer needed by calling free(3MALLOC). If the new vendor and publisher name strings cannot be created, sysevent_get_ven-
dor_name() and sysevent_get_pub_name() return a null pointer and may set errno to ENOMEM to indicate that the storage space available is
insufficient.
EXAMPLES
Example 1: Parse sysevent header information.
The following example parses sysevent header information from an application's event handler.
char *vendor;
char *pub;
void
event_handler(sysevent_t *ev)
{
if (strcmp(EC_PRIV, sysevent_get_class_name(ev)) != 0) {
return;
}
vendor = sysevent_get_vendor_name(ev);
if (strcmp("SUNW", vendor) != 0) {
free(vendor);
return;
}
pub = sysevent_get_pub_name(ev);
if (strcmp("test_daemon", pub) != 0) {
free(vendor);
free(pub);
return;
}
(void) kill(sysevent_get_pid(ev), SIGUSR1);
free(vendor);
free(pub);
}
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Interface Stability |Evolving |
+-----------------------------+-----------------------------+
|MT-Level |MT-Safe |
+-----------------------------+-----------------------------+
SEE ALSO malloc(3MALLOC), attributes(5)SunOS 5.10 17 Mar 2004 sysevent_get_vendor_name(3SYSEVENT)