Searched defs:label (Results 1 - 25 of 249) sorted by relevance

12345678910

/illumos-gate/usr/src/lib/libc/port/gen/
H A Dsetlabel.c42 setlabel(const char *label) argument
45 if (!label)
48 (void) strncpy(__pfmt_label, label, sizeof (__pfmt_label) - 1);
H A Dpfmt_print.c97 char label[MAXLABEL]; local
102 (void) strlcpy(label, __pfmt_label, MAXLABEL);
107 if (label[0] != '\0' && stream) {
108 if ((status = fputs(label, stream)) < 0)
/illumos-gate/usr/src/lib/libtsol/common/
H A Dgetlabel.c29 * String to binary label translations.
37 #include <tsol/label.h>
46 * getlabel(3TSOL) - get file label
52 getlabel(const char *path, bslabel_t *label) argument
54 return (syscall(SYS_labelsys, TSOL_GETLABEL, path, label));
58 * fgetlabel(3TSOL) - get file label
63 fgetlabel(int fd, bslabel_t *label) argument
65 return (syscall(SYS_labelsys, TSOL_FGETLABEL, fd, label));
H A Dhextob.c29 * hextob.c - Hexadecimal string to binary label conversion.
40 #include <tsol/label.h>
44 * htobsl - Convert a Hexadecimal label string to a Sensitivity Label.
46 * Entry s = Hexadecimal label string to be converted.
48 * Exit label = Sensitivity Label converted, if successful.
58 htobsl(const char *s, m_label_t *label) argument
66 *label = *l;
72 * htobclear - Convert a Hexadecimal label string to a Clearance.
74 * Entry s = Hexadecimal label string to be converted.
H A Dbtohex.c37 #include <tsol/label.h>
47 * h_alloc - Allocate data storage for a Hexadecimal label string.
49 * Entry id = Type of label to allocate storage for.
83 * h_free - Free a Hexadecimal label string.
85 * Entry hex = Hexadecimal label string.
104 * bsltoh_r - Convert a Sensitivity Label into a Hexadecimal label string.
106 * Entry label = Sensitivity Label to be translated.
107 * hex = Buffer to place converted label.
110 * Returns NULL, If invalid label type.
117 bsltoh_r(const m_label_t *label, cha argument
146 bsltoh(const m_label_t *label) argument
[all...]
H A Dstob.c29 * String to binary label translations.
38 #include <tsol/label.h>
71 * label = Address of Binary Sensitivity Label to be initialized or
75 * NEW_LABEL, Initialize the label to a valid empty
77 * NO_CORRECTION, Initialize the label to a valid
83 * Exit label = Translated (updated) Binary Sensitivity Label.
85 * -1, Unable to access label encodings file;
86 * 0, Invalid binary label passed;
102 stobsl(const char *string, bslabel_t *label, int flags, int *error) argument
120 if (htobsl(s, label)) {
[all...]
H A Dzone.c36 * Get label from zone name
51 * Get label from zone id
72 * Get zone id from label
76 getzoneidbylabel(const m_label_t *label) argument
90 if (blequal(label, &admin_low) || blequal(label, &admin_high))
133 if (blequal(label, &test_sl) != 0) {
176 * Get zoneroot for a label
180 getzonerootbylabel(const m_label_t *label) argument
184 if ((zoneid = getzoneidbylabel(label))
[all...]
/illumos-gate/usr/src/cmd/tsol/getzonepath/
H A Dgetzonepath.c32 * Description: Get the zone pathname associated with a label.
43 #include <tsol/label.h>
48 label_error(const char *label, const int err) argument
54 gettext("%s: bad string %s\n"), prog, label);
58 gettext("%s: bad previous label\n"), prog);
63 "\"%s\" at position %d\n"), prog, label, err);
76 m_label_t *label = NULL; local
92 "Usage: %s label\n"), prog);
96 if (str_to_label(argv[1], &label, MAC_LABEL, L_NO_CORRECTION,
101 if ((zone_root = getzonerootbylabel(label))
[all...]
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/dns-sd/
H A DClientCommon.c46 const char *GetNextLabel(const char *cstr, char label[64]) argument
48 char *ptr = label;
49 while (*cstr && *cstr != '.') // While we have characters in the label...
69 if (ptr >= label+64) { label[63] = 0; return(NULL); } // Illegal label more than 63 bytes
71 *ptr = 0; // Null-terminate label text
72 if (ptr == label) return(NULL); // Illegal empty label
/illumos-gate/usr/src/cmd/devmgmt/cmds/
H A Dgetvol.c47 char *label, *fsname; variable
110 if (label)
112 label = optarg;
120 if (label)
122 label = optarg;
142 switch (n = getvol(argv[optind], label, options, prompt)) {
163 (void) fprintf(stderr, "%s: ERROR: bad label on <%s>\n",
/illumos-gate/usr/src/cmd/tsol/atohexlabel/
H A Datohexlabel.c29 * atohexlabel - Convert a human readable label to its internal
44 #include <tsol/label.h>
61 gettext("atohexlabel: bad previous label\n"));
81 m_label_t *label = NULL; /* binary labels */ local
82 char ascii[PIPE_BUF]; /* human readable label */
83 char *hex = NULL; /* internal label to print */
84 int err = 0; /* label error */
108 gettext("usage: %s [-c] [human readable label]\n"),
115 /* use label on command line */
119 /* read label fro
[all...]
/illumos-gate/usr/src/cmd/tsol/getlabel/
H A Dgetlabel.c30 * getlabel - gets file label.
39 #include <tsol/label.h>
49 char *label; local
63 if (label_to_str(fl, &label, M_LABEL, LONG_NAMES) != 0) {
65 "Sensitivity label"));
71 if (label_to_str(fl, &label, M_LABEL, SHORT_NAMES) != 0) {
73 "Sensitivity label"));
79 if (label_to_str(fl, &label, M_LABEL, DEF_NAMES) != 0) {
81 "Sensitivity label"));
87 (void) printf("%s\n", label);
[all...]
/illumos-gate/usr/src/cmd/tsol/hextoalabel/
H A Dhextoalabel.c29 * hextoalabel - Convert an internal label to its human readable
44 #include <tsol/label.h>
61 gettext("hextoalabel: bad previous label\n"));
81 m_label_t *label = NULL; local
82 char hex[PIPE_BUF]; /* internal label */
83 char *ascii = NULL; /* human readable label to print */
84 int err = 0; /* label error */
107 gettext("usage: %s [-c] [hexadecimal label]\n"), argv[0]);
113 /* use label on command line */
117 /* read label fro
[all...]
/illumos-gate/usr/src/cmd/tsol/setlabel/
H A Dsetlabel.c30 * setlabel - sets a file label.
43 #include <tsol/label.h>
56 char *label; local
77 label = *argv;
81 if (set_label(*argv++, label) != 0)
89 set_label(char *filename, char *label) argument
108 gettext("%s: Current label is invalid\n"),
112 if (str_to_label(label, &blabel, MAC_LABEL, L_DEFAULT, &err) == -1) {
113 m_label_err(label, err);
123 setlabel(char *filename, bslabel_t *label) argument
[all...]
/illumos-gate/usr/src/uts/intel/io/intel_nhm/
H A Dnhm_log.h47 char label[64]; member in struct:nhm_dimm
/illumos-gate/usr/src/lib/fm/topo/libtopo/common/
H A Dtopo_protocol.c91 topo_node_label(tnode_t *node, char **label, int *err) argument
95 TOPO_PROP_LABEL, label, err));
155 topo_node_label_set(tnode_t *node, char *label, int *err) argument
161 if (label == NULL) {
168 TOPO_PROP_LABEL, TOPO_PROP_IMMUTABLE, label, err) < 0)
/illumos-gate/usr/src/cmd/vi/port/
H A Dex_set.c50 int k, label; local
125 label =0;
128 label = 2;
131 if (label > 0)
135 label = 1;
138 if (label > 0)
142 label = 1;
145 if (label > 0)
149 label = 1;
152 if (label >
[all...]
/illumos-gate/usr/src/cmd/print/printmgr/com/sun/admin/pm/client/
H A DpmFindFrame.java50 String label = pmUtility.getResource("Enter.name.of.printer.to.find"); field in class:pmFindFrame
80 l = new JLabel(label, SwingConstants.LEFT);
/illumos-gate/usr/src/cmd/fm/fminject/common/
H A Dinj_log.c108 const char *label = fmd_log_label(lp); local
111 if (strcmp(label, "error") != 0)
112 die("cannot use '%s' log as injector input\n", label);
/illumos-gate/usr/src/uts/sun/io/dada/impl/
H A Ddcd_subr.c124 dcd_log(dev_info_t *dev, char *label, uint_t level, const char *fmt, ...) argument
141 ddi_pathname(dev, dcd_log_buffer), label,
145 (void) sprintf(name, "%s%d:", label,
151 (void) sprintf(name, "%s:", label);
/illumos-gate/usr/src/cmd/lp/cmd/lpadmin/
H A Dlpadmin.c66 char *label = 0; variable
157 label = *S;
161 label = 0;
196 label = p;
215 label = 0;
/illumos-gate/usr/src/lib/fm/libdiskstatus/common/
H A Dds_util.c53 ddump(const char *label, const void *data, size_t length) argument
66 if (label != NULL)
67 dprintf("%s\n", label);
/illumos-gate/usr/src/lib/libshell/common/bltins/
H A Dulimit.c79 int label, unit, nosupport; local
122 label = (hit&(hit-1));
123 if(error_info.errors || (limit && label) || argc>opt_info.index+1)
185 if(label)
/illumos-gate/usr/src/common/tsol/
H A Dblabel.c29 * bl.c - Binary label operations for kernel and user.
35 #include <sys/tsol/label.h>
40 * bltype - Check the type of a label structure.
42 * Entry label = Address of the label to check.
53 * Returns True if the label is the type requested,
60 bltype(const void *label, uint8_t type) argument
63 return (BLTYPE(label, type));
71 * Entry label1, label2 = label levels to compare.
134 * blinrange - Compare a label'
149 blinrange(const m_label_t *label, const m_range_t *range) argument
160 _blinrange(const m_label_t *label, const brange_t *range) argument
180 blinlset(const m_label_t *label, const blset_t lset) argument
248 bsllow(bslabel_t *label) argument
268 bslhigh(bslabel_t *label) argument
326 bslundef(bslabel_t *label) argument
373 setbltype(void *label, uint8_t type) argument
383 bisinvalid(const void *label) argument
[all...]
/illumos-gate/usr/src/cmd/mdb/common/modules/genunix/
H A Ddist.c154 * Print the distribution header with the given bucket label. The header is
155 * printed on a single line, and the label is assumed to fit within the given
156 * width (number of characters). The default label width when unspecified (0)
157 * is eleven characters. Optionally, a label other than "count" may be specified
161 dist_print_header(const char *label, int width, const char *count) argument
177 mdb_printf("%*s %s%s%s %s\n", width, label, dashes, dist, dashes,
187 * one less than the first value of the next bucket range. The bucket label is

Completed in 73 milliseconds

12345678910