Searched defs:string (Results 201 - 225 of 374) sorted by relevance

1234567891011>>

/illumos-gate/usr/src/cmd/csplit/
H A Dcsplit.c37 #include <string.h>
261 fatal(char *string, char *arg) argument
268 /* gettext dynamically replaces string */
270 (void) fprintf(stderr, gettext(string), arg);
422 * line_arg takes as its argument a pointer to a character string
423 * (assumed to be a line number). If that character string can be
492 re_arg(char *string) argument
498 ch = *string;
499 ptr = string;
521 fatal("%s: illegal offset\n", string);
[all...]
/illumos-gate/usr/src/cmd/sed/
H A Dprocess.c46 #include <string.h>
390 /* Locate start of replaced string. */
392 /* Copy leading retained string. */
412 /* Copy trailing retained string. */
429 /* Locate start of replaced string. */
431 /* Copy leading retained string. */
435 /* Copy trailing retained string. */
644 regexec_e(regex_t *preg, const char *string, int eflags, int nomatch, argument
659 eval = regexec(defpreg, string,
676 regsub(SPACE *sp, char *string, cha argument
[all...]
/illumos-gate/usr/src/cmd/sgs/elfdump/common/
H A D_elfdump.h191 #define string string64 macro
215 #define string string32 macro
/illumos-gate/usr/src/cmd/sgs/error/common/
H A Derrorsubr.c32 #include <string.h>
97 * find the position of a given character in a string
101 position(char *string, char ch) argument
104 if (string)
105 for (i = 1; *string; string++, i++) {
106 if (*string == ch)
112 * clobber the first occurance of ch in string by the new character
115 substitute(char *string, char chold, char chnew) argument
117 char *cp = string;
131 lastchar(char *string) argument
145 firstchar(char *string) argument
154 next_lastchar(char *string) argument
168 clob_last(char *string, char newstuff) argument
182 persperdexplode(char *string, char **r_perd, char **r_pers) argument
284 wordvbuild(char *string, int *r_wordc, char ***r_wordv) argument
[all...]
/illumos-gate/usr/src/cmd/truss/
H A Dactions.c33 #include <string.h>
391 * Fetch and remember first argument if it's a string,
403 * image. We must fetch the string from the new image.
551 if (!cflag && istraced) { /* print exec() string now */
992 char *string; local
1033 string = fetchstring(pri, arg, PATH_MAX);
1034 if (string == NULL) {
1036 string = badaddr;
1038 if ((leng += strlen(string)) < 63) {
1046 leng += 2 + strlen(string);
[all...]
/illumos-gate/usr/src/tools/cscope-fast/
H A Dfind.c823 /* compress the string pattern for matching */
862 /* get the string prefix (if any) of the regular expression */
971 /* match the pattern to the string */
976 char string[PATLEN + 1]; local
981 getstring(string);
982 if (*string == '\0') {
985 s = string;
991 /* it is a string pattern */
1152 /* put the rest of the cross-reference line into the string */
1242 /* convert the string t
[all...]
/illumos-gate/usr/src/uts/common/io/
H A Dcpc.c581 char *string; local
690 if (nvpair_value_string(nvp, &string) == EINVAL)
694 string, CPC_MAX_EVENT_LEN);
H A Dsysevent.c64 * It is supposed that string points to an array with
69 sysevent_isstrend(char *string, size_t len) argument
71 /* Return 0 if string has length of zero */
73 return (string[len - 1] == '\0' ? 1 : 0);
318 /* If class string empty then class EC_ALL is assumed */
/illumos-gate/usr/src/uts/common/tnf/
H A Dtnf_writer.c42 #include <string.h>
726 tnf_string_1(tnf_ops_t *ops, const char *string, tnf_record_p reference, argument
736 if (!string)
739 string_size = strlen(string); /* excludes terminating NUL */
752 (void) bcopy((caddr_t)string, (char *)bufhdr + sizeof (*bufhdr),
755 (void) memcpy((char *)bufhdr + sizeof (*bufhdr), string, string_size);
/illumos-gate/usr/src/uts/common/io/ib/mgt/ibmf/
H A Dibmf_wqe.c529 char string[128]; local
579 bzero(string, 128);
580 (void) sprintf(string, "ibmf_%016" PRIx64 "_wqes", cip->ci_node_guid);
581 cip->ci_wqe_ib_vmem = vmem_create(string,
589 bzero(string, 128);
590 (void) sprintf(string, "ibmf_%016" PRIx64 "_swqe", cip->ci_node_guid);
592 cip->ci_send_wqes_cache = kmem_cache_create(string,
596 bzero(string, 128);
597 (void) sprintf(string, "ibmf_%016" PRIx64 "_rwqe", cip->ci_node_guid);
599 cip->ci_recv_wqes_cache = kmem_cache_create(string,
685 char string[128]; local
[all...]
/illumos-gate/usr/src/lib/libadm/common/
H A Dckdate.c32 #include <string.h>
82 p_ndigit(char *string, int *value, int n) argument
87 if (!string)
89 for (ptr = string; *ptr && n > 0; n--, ptr++) {
101 p_date(char *string, int llim, int ulim, int ndig) argument
106 if (!(ptr = p_ndigit(string, &begin, ndig)))
115 p_eday(char *string, int llim, int ulim) argument
124 if (*string == BLANK) {
125 string++;
128 copy = string;
156 p_month(char *string, char mnabr) argument
216 p_dlm(char *string, char dchoice) argument
[all...]
/illumos-gate/usr/src/uts/sun4u/lw8/sys/
H A Dlw8.h124 char string[MAX_EVENTS][MAX_EVENT_STR]; member in struct:__anon9819
/illumos-gate/usr/src/cmd/make/bin/
H A Dimplicit.cc801 String_rec string; local
856 if it matches, percent string will contain matched percent part of pattern */
871 INIT_STRING_FROM_STACK(string, string_buf);
872 construct_string_from_pattern(pat_depe, &percent, &string);
873 depe_to_check = getname_fn(string.buffer.start,
888 INIT_STRING_FROM_STACK(string, string_buf);
889 expand_value(depe_to_check, &string, false);
890 depe_to_check = getname_fn(string.buffer.start,
946 if (string.free_after_use) {
947 retmem(string
1183 String_rec string; local
1301 String_rec string; local
[all...]
/illumos-gate/usr/src/lib/pylibbe/common/
H A Dlibbe_py.c757 * map an error code to an error string.
760 * errCode - value to map to an error string.
762 * Returns: error string or NULL
794 * string - value to map to a string.
804 char *string = NULL; local
806 if (!PyArg_ParseTuple(args, "s", &string)) {
810 if (be_valid_be_name(string)) {
998 * Convert string arguments to nvlist attributes
1038 * error string
[all...]
/illumos-gate/usr/src/boot/sys/boot/i386/libi386/
H A Dcomconsole.c76 static uint32_t comc_parse_pcidev(const char *string);
459 comc_parse_pcidev(const char *string) argument
462 (void)string;
470 pres = strtol(string, &p, 0);
471 if (p == string || *p != ':' || pres < 0 )
477 if (p == string || *p != ':' || pres < 0 )
483 if (p == string || (*p != ':' && *p != '\0') || pres < 0 )
490 if (p == string || *p != '\0' || pres <= 0 )
/illumos-gate/usr/src/lib/print/libpapi-common/common/
H A Dattribute.c37 #include <string.h>
58 if (value->string != NULL)
59 free(value->string);
166 if (v->string == NULL) {
170 result->string = strdup(v->string);
301 char *name, char *string)
305 v.string = (char *)string;
489 *vptr = value->string;
300 papiAttributeListAddString(papi_attribute_t ***list, int flags, char *name, char *string) argument
631 regvalue(regmatch_t match, char *string) argument
642 _process_value(char *string, char ***parts) argument
799 _parse_attribute_list(papi_attribute_t ***list, int flags, char *string) argument
873 papiAttributeListFromString(papi_attribute_t ***attrs, int flags, char *string) argument
918 char string[24]; local
931 char string[24]; local
944 char string[24]; local
958 char string[64]; local
965 char *string = alloca(buflen); local
973 char string[32]; local
[all...]
/illumos-gate/usr/src/lib/libshell/common/bltins/
H A Dprint.c417 static char *fmthtml(const char *string) argument
419 register const char *cp = string;
453 static ssize_t fmtbase64(Sfio_t *iop, char *string, int alt) argument
455 static void *fmtbase64(char *string, ssize_t *sz, int alt)
461 Namval_t *np = nv_open(string, NiL, NV_VARNAME|NV_NOASSIGN|NV_NOADD);
466 errormsg(SH_DICT,ERROR_exit(1),e_notset,string);
930 * construct System V echo string out of <cp>
936 static int fmtvecho(const char *string, struct printf *pp) argument
938 register const char *cp = string, *cpmax;
959 c = --cp - string;
[all...]
/illumos-gate/usr/src/lib/libshell/common/sh/
H A Darray.c490 static void array_putval(Namval_t *np, const char *string, int flags, Namfun_t *dp) argument
499 mp = array_find(np,ap,string?ARRAY_ASSIGN:ARRAY_DELETE);
503 if(!is_associative(ap) && string && !(flags&NV_APPEND) && !nv_type(np) && nv_isvtree(mp))
513 nv_putval(mp, string, flags);
514 if(string)
524 if(!string)
557 /* prevent empty string from being deleted */
563 nv_putv(np,string,flags,&ap->hdr);
566 if(string)
572 if(string
[all...]
H A Dstreval.c71 const char *errstr; /* error string */
114 * set error message string and return(0)
812 Arith_t *arith_compile(const char *string,char **last,Sfdouble_t(*fun)(const char**,struct lval*,int,Sfdouble_t),int emode) argument
819 cur.expr = cur.nextchr = string;
828 string = cur.errstr;
829 (*fun)( &string , &cur.errmsg, MESSAGE, 0);
835 ep->expr = string;
836 ep->elen = strlen(string);
850 * (Sfdouble_t)(*convert)(char** end, struct lval* string, int type, Sfdouble_t value)
854 * point to the next non-converted character; if typ is MESSAGE then string
[all...]
/illumos-gate/usr/src/lib/libslp/javalib/com/sun/slp/
H A DSrvLocHeader.java390 // Parse string, bump byte count. Use UTF8 encoding.
402 // Parse a string with an initial length from the input stream.
426 // Convert to string and return.
434 // Parse out string, bump byte count. Use UTF8 encoding.
436 byte[] putString(String string, ByteArrayOutputStream baos) { argument
438 byte[] bytes = putStringField(string, baos, Defaults.UTF8);
446 // Put a string with an initial length into the byte stream, converting
450 putStringField(String string, argument
454 byte[] bytes = getStringBytes(string, encoding);
456 // Put out the string'
470 getStringBytes(String string, String encoding) argument
[all...]
/illumos-gate/usr/src/lib/libtecla/common/
H A Dcplmatch.c44 #include <string.h>
59 * Specify the number of strings to allocate when the string free-list
162 * Create a new string-completion object.
201 * efficiently by placing many of them in contiguous string segments.
233 * Delete a string-completion object.
262 * quoting must be included in the string.
274 * suffix const char * The appropriately quoted string that could
276 * it. A copy of this string will be allocated
279 * appends this string to the completion to indicate
281 * Otherwise pass a literal or static string
300 char *string; /* A newly allocated copy of the completion string */ local
[all...]
H A Dpcache.c46 #include <string.h>
177 * Read a username from string[] and record it in pc->usrnam[].
179 static int pca_read_username(PathCache *pc, const char *string, int slen,
223 * Return non-zero if the specified string appears to start with a pathname.
600 * Locate the end of the directory name in the pathname string, stopping
601 * when either the end of the string is reached, or an un-escaped colon
637 * Return the unprocessed tail of the path-list string.
645 * separator is seen, the end of the string is reached, or the username
650 * string char * The string wh
662 pca_read_username(PathCache *pc, const char *string, int slen, int literal, const char **nextp) argument
[all...]
/illumos-gate/usr/src/lib/libxcurses2/src/libc/xcurses/
H A Dm_cc.c51 #include <string.h>
71 * Convert a wint_t string into a multibyte string.
73 * The conversion stops at the end of string or the first WEOF.
80 t_string string = { 0 }; local
83 string.max = n;
84 string.mbs = mbs;
85 convert.object = (void *) &string;
89 /* In case of error, rewind string to the last character. */
90 last = string
219 static t_string string = { 0 }; local
[all...]
/illumos-gate/usr/src/lib/libpkg/common/
H A Ddstream.c33 #include <string.h>
268 ds_getinfo(char *string) argument
271 (void) sscanf(string, "%d %d %d %d %d %d %d %d %d %d %[ 0-9]",
339 * marker string.
/illumos-gate/usr/src/lib/libbsm/common/
H A Dadt_token.c39 #include <string.h>
56 /* 0x + Classification + Compartments + end of string */
200 * a string showing the whole command and no envp
207 char *string; local
209 string = ((union convert *)p_data)->tcharstar;
211 if (string == NULL) {
213 string = empty;
219 (void) au_write(event->ae_event_handle, au_to_cmd(1, &string,
617 * The format string, normally null, is sort of a wrapper around
619 * handles the format string
642 char *string; local
829 char *string; local
[all...]

Completed in 130 milliseconds

1234567891011>>