/illumos-gate/usr/src/cmd/lastcomm/ |
H A D | lastcomm.c | 43 char buf[PATH_MAX]; local 70 if (acctctl(AC_PROC | AC_FILE_GET, buf, PATH_MAX) < 0) { 76 return (lc_exacct(buf, argc, argv, optind)); 86 if (acctctl(AC_PROC | AC_FILE_GET, buf, PATH_MAX) < 0) 89 return (lc_exacct(buf, argc, argv, optind));
|
/illumos-gate/usr/src/test/zfs-tests/tests/functional/threadsappend/ |
H A D | threadsappend.c | 67 char buf[8192] = {0}; local 68 (void) memset(buf, n, sizeof (buf)); 71 (void) write(outfd, buf, sizeof (buf));
|
/illumos-gate/usr/src/uts/common/avs/ns/sdbc/ |
H A D | sd_iob.h | 35 typedef int (*dcb_t)(struct buf *); /* driver callback type */ 46 struct buf *chain; /* all the buffers for this iob */ 47 struct buf *tail; /* tail of buffer chain */ 54 int (* iob_hook_iodone)(struct buf *, struct iob_hook *); 93 IOB_DCBP(i)(struct buf *bp) \
|
/illumos-gate/usr/src/lib/sun_fc/common/ |
H A D | HBANPIVPort.cc | 74 char buf[MAXPATHLEN]; local 97 if ((count = readlink(node,buf,sizeof(buf)))) { 98 buf[count] = '\0'; 99 if (strstr(buf, path.c_str())) {
|
/illumos-gate/usr/src/psm/promif/ieee1275/common/ |
H A D | prom_fb.c | 136 char buf[MAXPATHLEN]; local 146 (void) prom_getprop(node, (caddr_t)name, (caddr_t)buf); 147 *height = prom_atol(buf, len); 152 (void) prom_getprop(node, (caddr_t)name, (caddr_t)buf); 153 *width = prom_atol(buf, len);
|
/illumos-gate/usr/src/uts/common/zmod/ |
H A D | crc32.c | 220 #define DO1 crc = crc_table[0][((int)crc ^ (*buf++)) & 0xff] ^ (crc >> 8) 224 unsigned long ZEXPORT crc32(crc, buf, len) 226 const unsigned char FAR *buf; 229 if (buf == Z_NULL) return 0UL; 242 return crc32_little(crc, buf, len); 244 return crc32_big(crc, buf, len); 267 local unsigned long crc32_little(crc, buf, len) 269 const unsigned char FAR *buf; 277 while (len && ((ptrdiff_t)buf & 3)) { 278 c = crc_table[0][(c ^ *buf [all...] |
/illumos-gate/usr/src/lib/libast/common/string/ |
H A D | fmtscale.c | 43 char* buf; local 72 buf = fmtbuf(z = 8); 86 sfsprintf(buf, z, "%I*u%c%d%s", sizeof(n), n, p->decimal >= 0 ? p->decimal : '.', r, suf); 91 sfsprintf(buf, z, "%I*u%s", sizeof(n), n, suf); 93 return buf;
|
H A D | tokline.c | 67 char* buf; local 81 if (!(buf = sfgetr(d->sp, '\n', 0)) && !(buf = sfgetr(d->sp, '\n', -1))) 87 if (n > 1 && buf[n - 2] == '\\') 105 e = (b = buf) + n; 116 else if (c == '#' && (b == (buf + 1) || (c = *(b - 2)) == ' ' || c == '\t')) 118 if (buf[n - 1] != '\n') 121 n = b - buf - 2; 123 else if (n = b - buf - 1) 124 buf[ [all...] |
/illumos-gate/usr/src/cmd/lp/lib/class/ |
H A D | getclass.c | 55 buf[BUFSIZ]; local 100 while (fdgets(buf, BUFSIZ, fd)) { 101 buf[strlen(buf) - 1] = 0; 102 addlist (&clsp->members, buf);
|
/illumos-gate/usr/src/boot/lib/libstand/ |
H A D | pager.c | 133 char buf[80]; local 144 hmuch = read(fd, buf, sizeof(buf) - 1); 153 buf[hmuch] = 0; 154 if (pager_output(buf)) {
|
/illumos-gate/usr/src/boot/sys/boot/i386/libfirewire/ |
H A D | dconsole.c | 89 char buf[16], *dbuf; local 99 sprintf(buf, "0x%08x", dcons_paddr); 100 setenv("dcons.addr", buf, 1); 103 sprintf(buf, "%d", size); 104 setenv("dcons.size", buf, 1);
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/rdist/ |
H A D | server.c | 44 char buf[RDIST_BUFSIZ]; /* general purpose buffer */ variable 95 (void) sprintf(buf, "V%d\n", VERSION); 96 (void) write(wrem, buf, strlen(buf)); 181 if (exptilde(buf, sizeof (buf), cp) == NULL) 183 cp = buf; 282 if (snprintf(buf, sizeof (buf), "%c%s\n", destdir ? 'T' : 't', dest) >= 283 sizeof (buf)) { 1661 static char buf[RDIST_BUFSIZ]; local [all...] |
/illumos-gate/usr/src/cmd/dcs/sparc/sun4u/ |
H A D | rdr_messages.c | 193 static int pack_ses_req_request(ses_req_params_t *params, char **buf, 195 static int unpack_ses_req_request(ses_req_params_t *params, const char *buf); 197 static int pack_ses_req_reply(ses_req_params_t *params, char **buf, 199 static int unpack_ses_req_reply(ses_req_params_t *params, const char *buf); 206 char **buf, int *buf_size); 208 const char *buf); 210 char **buf, int *buf_size); 212 const char *buf); 218 char **buf, int *buf_size); 220 const char *buf); 1545 char *buf = NULL; local 1731 pack_ses_req_request(ses_req_params_t *params, char **buf, int *buf_size) argument 1791 unpack_ses_req_request(ses_req_params_t *params, const char *buf) argument 1823 pack_ses_req_reply(ses_req_params_t *params, char **buf, int *buf_size) argument 1863 unpack_ses_req_reply(ses_req_params_t *params, const char *buf) argument 1890 pack_change_state_request(change_state_params_t *params, char **buf, int *buf_size) argument 2013 unpack_change_state_request(change_state_params_t *params, const char *buf) argument 2102 pack_change_state_reply(change_state_params_t *params, char **buf, int *buf_size) argument 2172 unpack_change_state_reply(change_state_params_t *params, const char *buf) argument 2209 pack_private_func_request(private_func_params_t *params, char **buf, int *buf_size) argument 2348 unpack_private_func_request(private_func_params_t *params, const char *buf) argument 2440 pack_private_func_reply(private_func_params_t *params, char **buf, int *buf_size) argument 2509 unpack_private_func_reply(private_func_params_t *params, const char *buf) argument 2546 pack_test_request(test_params_t *params, char **buf, int *buf_size) argument 2657 unpack_test_request(test_params_t *params, const char *buf) argument 2731 pack_test_reply(test_params_t *params, char **buf, int *buf_size) argument 2798 unpack_test_reply(test_params_t *params, const char *buf) argument 2835 pack_list_ext_request(list_ext_params_t *params, char **buf, int *buf_size) argument 2959 unpack_list_ext_request(list_ext_params_t *params, const char *buf) argument 3042 pack_list_ext_reply(list_ext_params_t *params, char **buf, int *buf_size) argument 3133 unpack_list_ext_reply(list_ext_params_t *params, const char *buf) argument 3195 pack_help_request(help_params_t *params, char **buf, int *buf_size) argument 3300 unpack_help_request(help_params_t *params, const char *buf) argument 3364 pack_ap_id_cmp_request(ap_id_cmp_params_t *params, char **buf, int *buf_size) argument 3459 unpack_ap_id_cmp_request(ap_id_cmp_params_t *params, const char *buf) argument 3498 pack_abort_cmd_request(abort_cmd_params_t *params, char **buf, int *buf_size) argument 3538 unpack_abort_cmd_request(abort_cmd_params_t *params, const char *buf) argument 3566 pack_confirm_request(confirm_callback_params_t *params, char **buf, int *buf_size) argument 3648 unpack_confirm_request(confirm_callback_params_t *params, const char *buf) argument 3699 pack_confirm_reply(confirm_callback_params_t *params, char **buf, int *buf_size) argument 3751 unpack_confirm_reply(confirm_callback_params_t *params, const char *buf) argument 3793 pack_message_request(msg_callback_params_t *params, char **buf, int *buf_size) argument 3873 unpack_message_request(msg_callback_params_t *params, const char *buf) argument 3918 pack_rsrc_info_request(rsrc_info_params_t *params, char **buf, int *buf_size) argument 3992 unpack_rsrc_info_request(rsrc_info_params_t *params, const char *buf) argument 4036 pack_rsrc_info_reply(rsrc_info_params_t *params, char **buf, int *buf_size, int encoding) argument 4100 unpack_rsrc_info_reply(rsrc_info_params_t *params, const char *buf) argument 4206 unpack_ap_ids(int num_ap_ids, char **ap_ids, const char *buf, rdr_variable_message_info_t *var_msg_info) argument 4357 get_ap_ids_from_buf(char ***ap_id_ptr, int num_ap_ids, rdr_variable_message_info_t *var_msg_info, const char *buf) argument 4392 get_string_from_buf(char **stringptr, int strsize, const char *buf) argument [all...] |
/illumos-gate/usr/src/lib/libast/common/comp/ |
H A D | omitted.c | 103 execrate(const char* path, char* buf, int size, int physical) argument 112 if (physical || strlen(path) >= size || !(s = pathcanon(strcpy(buf, path), PATH_PHYSICAL|PATH_DOTDOT|PATH_EXISTS))) 113 snprintf(buf, size, "%s.exe", path); 114 else if (!suffix(buf) && ((buf + size) - s) >= 4) 135 unsigned char buf[512]; local 137 unsigned char buf[2]; local 145 n = sizeof(buf); 149 r = (m = _read(fd, buf, n)) >= 2 && (buf[ 184 char buf[PATH_MAX]; local 226 char buf[PATH_MAX]; local 372 char buf[PATH_MAX]; local 627 char buf[PATH_MAX]; local 651 write(int fd, const void* buf, size_t n) argument 666 char buf[PATH_MAX]; local 744 char buf[PATH_MAX]; local 764 char buf[PATH_MAX]; local 789 char buf[PATH_MAX]; local 971 char buf[PATH_MAX]; local 989 char buf[PATH_MAX]; local [all...] |
/illumos-gate/usr/src/lib/print/libpapi-lpd/common/ |
H A D | lpd-port.c | 73 char buf[2]; /* send/recv 2 byte protocol */ 75 iov[0].iov_base = buf; 83 buf[1] = 0; 84 buf[0] = 0; 216 char buf[8]; local 220 (void) memset(buf, 0, sizeof (buf)); 221 if (read(fd, buf, sizeof (buf)) > 0) 222 result = atoi(buf); 287 add_args(int ac, char **av, char *buf, size_t len) argument 387 char buf[BUFSIZ]; local 416 char buf[32]; local 452 char buf[BUFSIZ]; local 505 char buf[BUFSIZ]; local 611 char buf[BUFSIZ]; local 632 char buf[BUFSIZ]; local 812 char buf[BUFSIZ]; local [all...] |
/illumos-gate/usr/src/lib/libnsl/rpc/ |
H A D | rpc_prot.c | 131 rpc_inline_t *buf; local 139 (buf = XDR_INLINE(xdrs, 6 * BYTES_PER_XDR_UNIT + (rndup = 141 IXDR_PUT_INT32(buf, rmsg->rm_xid); 142 IXDR_PUT_ENUM(buf, rmsg->rm_direction); 143 IXDR_PUT_ENUM(buf, rmsg->rm_reply.rp_stat); 146 IXDR_PUT_ENUM(buf, oa->oa_flavor); 147 IXDR_PUT_INT32(buf, oa->oa_length); 149 (void) memcpy(buf, oa->oa_base, oa->oa_length); 151 buf = (rpc_inline_t *)(((caddr_t)buf) [all...] |
/illumos-gate/usr/src/cmd/backup/lib/ |
H A D | rmtlib.c | 234 char buf[256]; local 237 (void) snprintf(buf, sizeof (buf), "O%s\n%d\n", tape, mode); 239 fd = rmtcall(tape, buf); 277 char *buf = (char *)mt; local 297 cc = read(rmtape, buf+i, n - i); 321 rmtread(char *buf, uint_t count) argument 341 cc = read(rmtape, buf+i, n - i); 350 rmtwrite(char *buf, uint_t count) argument 360 retval = rmtpush(buf, coun 368 rmtpush(char *buf, uint_t count) argument 393 char buf[256]; local 441 char buf[256]; local 448 rmtcall(char *cmd, char *buf) argument [all...] |
/illumos-gate/usr/src/cmd/devfsadm/ |
H A D | misc_link.c | 262 char l_path[PATH_MAX + 1], contents[PATH_MAX + 1], *buf; local 272 if (devfsadm_enumerate_int(l_path, 0, &buf, rules, 1)) { 277 (void) strcat(l_path, buf); 278 free(buf); 290 char path[PATH_MAX + 1], *buf; local 298 if (NULL == (buf = di_devfs_path(node))) { 303 buf, di_minor_name(minor)); 305 di_devfs_path_free(buf); 307 if (devfsadm_enumerate_int(path, 0, &buf, rules, 1)) { 310 (void) snprintf(path, sizeof (path), "mcpp%s", buf); 321 char *buf; local 415 char buf[256]; local 449 char *buf, path[PATH_MAX + 1]; local 483 char path[PATH_MAX + 1], *buf; local 520 char *buf, path[PATH_MAX + 1]; local 557 char l_path[PATH_MAX], p_path[PATH_MAX], *buf, *devfspath; local 608 char *buf; local 636 char buf[PATH_MAX + 1]; local [all...] |
/illumos-gate/usr/src/uts/intel/io/intel_nhm/ |
H A D | dimm_topo.c | 59 char buf[128]; local 61 (void) snprintf(buf, sizeof (buf), "dimm-rank-base-%d", num); 62 (void) nvlist_add_uint64(vrank, buf, dimm_base); 63 (void) snprintf(buf, sizeof (buf), "dimm-rank-limit-%d", num); 64 (void) nvlist_add_uint64(vrank, buf, dimm_base + limit); 66 (void) snprintf(buf, sizeof (buf), "dimm-socket-interleave-%d", 68 (void) nvlist_add_uint32(vrank, buf, sinterleav [all...] |
/illumos-gate/usr/src/lib/print/libipp-listener/common/ |
H A D | common.c | 56 static char buf[64]; local 68 snprintf(buf, sizeof (buf), "lpsched://localhost/printers/%s", result); 69 result = buf; 181 char buf[BUFSIZ]; local 185 snprintf(buf, sizeof (buf), "%s/%d", printer_uri, id); 187 "job-uri", buf); 204 char buf[BUFSIZ]; local 211 snprintf(buf, sizeo 245 char buf[1024]; local [all...] |
/illumos-gate/usr/src/lib/libdtrace_jni/java/src/org/opensolaris/os/dtrace/ |
H A D | Distribution.java | 513 StringBuilder buf = new StringBuilder(); 514 buf.append(Bucket.class.getName()); 515 buf.append("[min = "); 516 buf.append(min); 517 buf.append(", max = "); 518 buf.append(max); 519 buf.append(", frequency = "); 520 buf.append(frequency); 521 buf.append(']'); 522 return buf [all...] |
/illumos-gate/usr/src/lib/libnsl/nsl/ |
H A D | t_listen.c | 125 free(ctlbuf.buf); 127 tiptr->ti_ctlbuf = ctlbuf.buf; 173 pptr = (union T_primitives *)ctlbuf.buf; 206 (void) memcpy(call->addr.buf, ctlbuf.buf + 217 (void) memcpy(call->opt.buf, ctlbuf.buf + 227 (void) memcpy(call->udata.buf, databuf.buf, 233 free(ctlbuf.buf); [all...] |
/illumos-gate/usr/src/cmd/ndmpd/tlm/ |
H A D | tlm_buffers.c | 60 int buf; local 65 for (buf = 0; buf < TLM_TAPE_BUFFERS; buf++) { 66 buffers->tbs_buffer[buf].tb_buffer_data = 68 if (buffers->tbs_buffer[buf].tb_buffer_data == 0) { 72 for (i = 0; i < buf; i++) 78 buffers->tbs_buffer[buf].tb_buffer_size = (write) 80 buffers->tbs_buffer[buf].tb_full = FALSE; 81 buffers->tbs_buffer[buf] 136 tlm_buffer_mark_empty(tlm_buffer_t *buf) argument [all...] |
/illumos-gate/usr/src/cmd/fs.d/nfs/nfsref/ |
H A D | nfsref.c | 100 char buf[SYMLINK_MAX]; local 109 err = readlink(sl_path, buf, SYMLINK_MAX); 119 buf[err] = '\0'; 124 err = reparse_parse(buf, nvl); 131 * Accumulate multiple locations on the command line into 'buf' 136 bzero(buf, sizeof (buf)); 137 len += add_escape(argv[i], buf, SYMLINK_MAX) + 2; 141 strlcat(location, buf, len); 195 char buf[SYMLINK_MA local 260 char buf[1024]; local [all...] |
/illumos-gate/usr/src/cmd/isns/isnsd/ |
H A D | server.c | 82 char buf[INET6_ADDRSTRLEN]; local 88 buf, sizeof (buf)); 92 buf, sizeof (buf)); 94 ISNS_MSG_RECEIVED((uintptr_t)buf); 166 char buf[INET6_ADDRSTRLEN]; local 174 buf, sizeof (buf)); 178 buf, sizeo 233 char buf[INET6_ADDRSTRLEN]; local [all...] |