/osnet-11/usr/src/lib/libshell/common/sh/ |
H A D | suid_exec.c | 496 char buffer[BLKSIZE]; local 499 while((n = read(fdi,buffer,BLKSIZE)) > 0) 500 if(write(fdo,buffer,n) != n)
|
/osnet-11/usr/src/lib/libsmbns/common/ |
H A D | smbns_netbios_datagram.c | 323 char *buffer; local 336 if ((buffer = calloc(1, MAX_DATAGRAM_LENGTH * 4)) == NULL) { 341 buffer[0] = DATAGRAM_TYPE_DIRECT_UNIQUE; 344 buffer[1] = DATAGRAM_FLAGS_B_NODE | DATAGRAM_FLAGS_FIRST; 347 buffer[1] = DATAGRAM_FLAGS_P_NODE | DATAGRAM_FLAGS_FIRST; 350 buffer[1] = DATAGRAM_FLAGS_M_NODE | DATAGRAM_FLAGS_FIRST; 354 buffer[1] = DATAGRAM_FLAGS_H_NODE | DATAGRAM_FLAGS_FIRST; 359 BE_OUT16(&buffer[2], datagram_id); 360 (void) memcpy(&buffer[4], &src->addr_list.sin.sin_addr.s_addr, 362 (void) memcpy(&buffer[ 403 char *buffer; local [all...] |
H A D | smbns_netlogon.c | 54 unsigned char *buffer, int count); 275 unsigned char buffer[MAX_DATAGRAM_LENGTH]; local 292 offset = smb_browser_load_transact_header(buffer, 293 sizeof (buffer), data_length, ONE_WAY_TRANSACTION, 299 smb_msgbuf_init(&mb, buffer + offset, sizeof (buffer) - offset, 0); 316 smb_netlogon_send(server, domain, buffer, offset + announce_len); 354 unsigned char buffer[MAX_DATAGRAM_LENGTH]; local 392 offset = smb_browser_load_transact_header(buffer, 393 sizeof (buffer), data_lengt 433 smb_netlogon_send(struct name_entry *name, char *domain, unsigned char *buffer, int count) argument [all...] |
/osnet-11/usr/src/lib/libkmf/ber_der/common/ |
H A D | decode.c | 178 unsigned char buffer[sizeof (ber_int_t)]; local 186 if (len > sizeof (buffer)) 190 if (kmfber_read(ber, (char *)buffer, len) != len) 195 value = 0x80 & buffer[0] ? (-1) : 0; 201 value = (value << 8) | buffer[i]; 356 * Shift the buffer to the beginning of the allocated space 552 case 's': /* octet string - in a buffer */ 610 /* We'v overflowed our buffer */ 705 case 's': /* octet string - in a buffer */
|
/osnet-11/usr/src/lib/libldap4/ber/ |
H A D | decode.c | 167 unsigned char buffer[sizeof(int)]; local 179 if ( ber_read( ber, (char *) buffer, len ) != len ) 183 value = 0x80 & buffer[0] ? (-1) : 0; 186 value = (value << 8) | buffer[i]; 453 case 's': /* octet string - in a buffer */
|
/osnet-11/usr/src/lib/libldap5/sources/ldap/ber/ |
H A D | decode.c | 166 unsigned char buffer[sizeof(ber_int_t)]; local 178 if ( ber_read( ber, (char *) buffer, len ) != len ) 183 value = 0x80 & buffer[0] ? (LBER_FUNC_VALUE) : 0; 189 value = (value << 8) | buffer[i]; 482 case 's': /* octet string - in a buffer */ 530 /* We'v overflowed our buffer */ 628 case 's': /* octet string - in a buffer */
|
/osnet-11/usr/src/lib/libldap5/sources/ldap/prldap/ |
H A D | ldappr-dns.c | 48 LDAPHostEnt *result, char *buffer, int buflen, int *statusp, 51 int type, LDAPHostEnt *result, char *buffer, int buflen, 54 char *buffer, int buflen ); 61 char *buffer, int buflen, int *statusp, void *extradata); 63 str2hostent(const char *instr, int lenstr, void *ent, char *buffer, 94 char *buffer, int buflen, int *statusp, void *extradata ) 100 buffer, buflen, &prhent )) == PR_FAILURE ) { 110 LDAPHostEnt *result, char *buffer, int buflen, int *statusp, 122 if( !statusp || (*statusp = PR_GetHostByAddr(&iaddr, buffer, 130 prldap_getpeername( LDAP *ld, struct sockaddr *addr, char *buffer, in argument 93 prldap_gethostbyname( const char *name, LDAPHostEnt *result, char *buffer, int buflen, int *statusp, void *extradata ) argument 109 prldap_gethostbyaddr( const char *addr, int length, int type, LDAPHostEnt *result, char *buffer, int buflen, int *statusp, void *extradata ) argument 306 prldap_switch_gethostbyname_r(const char *name, struct hostent *result, char *buffer, int buflen, int *h_errnop) argument 344 prldap_gethostbyname1(const char *name, LDAPHostEnt *result, char *buffer, int buflen, int *statusp, void *extradata) argument [all...] |
/osnet-11/usr/src/lib/libntfs/common/libntfs/ |
H A D | logging.c | 354 char buffer[512]; local 362 if (ret < sizeof(buffer) && ntfs_log.flags & NTFS_LOG_FLAG_PREFIX) 363 ret += snprintf(buffer + ret, sizeof(buffer) - ret, "%s", 367 if (ret < sizeof(buffer) && ntfs_log.flags & NTFS_LOG_FLAG_FILENAME) 368 ret += snprintf(buffer + ret, sizeof(buffer) - ret, "%s ", 372 if (ret < sizeof(buffer) && ntfs_log.flags & NTFS_LOG_FLAG_LINE) 373 ret += snprintf(buffer + ret, sizeof(buffer) [all...] |
/osnet-11/usr/src/lib/libparted/common/libparted/cs/ |
H A D | geom.c | 277 * \p count sectors are read into \p buffer. 280 * ped_device_read (geom->disk->dev, buffer, geom->start + offset, count) 289 ped_geometry_read (const PedGeometry* geom, void* buffer, PedSector offset, argument 295 PED_ASSERT (buffer != NULL, return 0); 304 if (!ped_device_read (geom->dev, buffer, real_start, count)) 311 ped_geometry_read_alloc (const PedGeometry* geom, void** buffer, argument 323 *buffer = buf; 368 ped_geometry_write (PedGeometry* geom, const void* buffer, PedSector offset, argument 375 PED_ASSERT (buffer != NULL, return 0); 392 if (!ped_device_write (geom->dev, buffer, real_star 413 ped_geometry_check(PedGeometry* geom, void* buffer, PedSector buffer_size, PedSector offset, PedSector granularity, PedSector count, PedTimer* timer) argument [all...] |
/osnet-11/usr/src/lib/libparted/common/libparted/ |
H A D | device.c | 317 * \internal Read count sectors from dev into buffer, beginning with sector 323 ped_device_read (const PedDevice* dev, void* buffer, PedSector start, argument 327 PED_ASSERT (buffer != NULL, return 0); 331 return (ped_architecture->dev_ops->read) (dev, buffer, start, count); 335 * \internal Write count sectors from buffer to dev, starting at sector 344 ped_device_write (PedDevice* dev, const void* buffer, PedSector start, argument 348 PED_ASSERT (buffer != NULL, return 0); 352 return (ped_architecture->dev_ops->write) (dev, buffer, start, count); 356 ped_device_check (PedDevice* dev, void* buffer, PedSector start, argument 363 return (ped_architecture->dev_ops->check) (dev, buffer, star [all...] |
/osnet-11/usr/src/lib/libpkg/common/ |
H A D | runcmd.c | 57 /* Size of buffer increments when reading from pipe */ 224 char *buffer, *perrfile; local 249 buffer = (char *)calloc(len, sizeof (char)); 250 if (buffer == NULL) { 256 alen = snprintf(buffer, len, "(%s) 2>%s", cmd, errfile); 258 alen = snprintf(buffer, len, "%s 2>%s", cmd, errfile); 267 pp = popen(buffer, mode); 269 free(buffer); 329 char *buffer; local 339 /* reset return results buffer pointe [all...] |
/osnet-11/usr/src/lib/libcmdutils/common/ |
H A D | decompress.c | 54 char *buf; /* buffer used for i/o */ 55 size_t rsz; /* data size already put on the buffer */ 203 * write the first buffer contents which was used to check 285 char *buffer; local 290 if ((buffer = malloc(blksz)) == NULL) 294 decompressor = check_magic_header(readf, buffer, &rsz, fd); 297 free(buffer); 315 free(buffer); 319 free(buffer); 322 if (splice(out, readf, fd, buffer, rs [all...] |
/osnet-11/usr/src/lib/libcpc/sparc/ |
H A D | event_ultra.c | 386 char buffer[1024]; local 408 (void) snprintf(buffer, sizeof (buffer), "%s=%s,%s=%s", 415 (void) strcat(strcat(buffer, ","), tokens[D_nouser]); 417 (void) strcat(strcat(buffer, ","), tokens[D_sys]); 419 return (strdup(buffer));
|
/osnet-11/usr/src/lib/libcryptoutil/common/ |
H A D | config_parsing.c | 46 char buffer[BUFSIZ]; local 59 while (fgets(buffer, BUFSIZ, pfile) != NULL) { 60 if (buffer[0] == '#' || buffer[0] == ' ' || 61 buffer[0] == '\n'|| buffer[0] == '\t') { 65 len = strlen(buffer); 66 if (buffer[len-1] == '\n') { /* get rid of trailing '\n' */ 69 buffer[len] = '\0'; 71 if ((rc = uef_interpret(buffer, 605 char buffer[BUFSIZ]; local [all...] |
/osnet-11/usr/src/lib/libcurses/screen/ |
H A D | print.c | 139 char buffer[512]; /* Holds search pathname */ local 165 (void) sprintf(buffer, "%s%s%s", terminfo, tail, term); 167 (void) sprintf(buffer, "%s%s%s", _ULIBTI, tail, term); 172 if ((work_fp = fopen(buffer, "rF")) == NULL) { 177 if (strncmp(buffer, _ULIBTI, strlen(_ULIBTI)) == 0) { 189 (void) sprintf(buffer, "%s%s%s", _ULIBTI, tail, term); 191 if ((work_fp = fopen(buffer, "rF")) == NULL) { 208 "%s\n", buffer);
|
/osnet-11/usr/src/lib/libdhcpsvc/modules/util/ |
H A D | util.c | 82 * this end, we don't read into a temporary buffer, but rather read 96 * See if we need to grow the buffer; we always try to read 154 * Given a buffer `buf' of words separated by one or more of the characters 288 * `fd' into `buffer', or "read" none at all. Returns -1 if all `buflen' 292 pnread(int fd, void *buffer, size_t buflen, off_t off) argument 296 char *buf = buffer; 313 * Positioned n-byte write: write `buflen' bytes from `buffer' to offset 319 pnwrite(int fd, const void *buffer, size_t buflen, off_t off) argument 323 const char *buf = buffer; 366 * buffer a 401 unescape(char delimiter, const char *buffer, char *unescaped, size_t size) argument 420 escape(char delimiter, const char *buffer, char *escaped, size_t size) argument [all...] |
/osnet-11/usr/src/lib/libdns_sd/common/ |
H A D | dnssd_clientlib.c | 193 uint8_t *buffer; // Pointer to data member in struct:_TXTRecordRefRealType 194 uint16_t buflen; // Length of buffer 196 uint16_t malloced; // Non-zero if buffer was allocated via malloc() 212 void *buffer 215 txtRec->buffer = buffer; 216 txtRec->buflen = buffer ? bufferLen : (uint16_t)0; 223 if (txtRec->malloced) free(txtRec->buffer); 250 memcpy(newbuf, txtRec->buffer, txtRec->datalen); 251 if (txtRec->malloced) free(txtRec->buffer); [all...] |
/osnet-11/usr/src/lib/libdscfg/common/ |
H A D | cfg_cluster.c | 331 cfg_l_dgname(const char *pathname, char *buffer, size_t buflen) argument 340 bzero(buffer, buflen); 364 return (buffer); 384 return (buffer); 388 return (buffer); 396 return (buffer); 416 return (buffer); 425 (void) strncpy(buffer, start, len); 426 return (buffer); 441 cfg_dgname(const char *pathname, char *buffer, size_ argument [all...] |
/osnet-11/usr/src/lib/libfru/libnvfru/ |
H A D | nvfru.c | 78 /* buffer too small */ 381 rawfru_to_nvlist(uint8_t *buffer, size_t bufsize, char *cont_type, argument 389 fru_err = fru_open_data_source("raw", buffer, bufsize, cont_type,
|
/osnet-11/usr/src/lib/libfuse/common/ |
H A D | options.c | 168 fuse_opt_shift_arg(struct fuse_args *args, char *buffer, int bufsiz) argument 173 (void) strlcpy(buffer, args->argv[0], bufsiz); 176 return (buffer);
|
H A D | util.c | 121 * Append an option to a buffer containing a comma-separated list of 126 append_mount_opt(char *buffer, int bufsize, const char *opt) argument 128 if ((buffer[0] != '\0') && (strlcat(buffer, ",", bufsize) >= bufsize)) 131 if (strlcat(buffer, opt, bufsize) >= bufsize)
|
/osnet-11/usr/src/lib/libgss/ |
H A D | g_initialize.c | 713 char buffer[BUFSIZ], *oidStr, *oid, *sharedLib, *kernMod, *endp; local 727 (void) memset(buffer, 0, sizeof (buffer)); 728 while (fgets(buffer, BUFSIZ, confFile) != NULL) { 731 if (*buffer == '#') 738 oidStr = buffer; 739 for (oid = buffer; *oid && !isspace(*oid); oid++);
|
/osnet-11/usr/src/lib/libinstzones/common/ |
H A D | zones_exec.c | 143 char *buffer; local 160 /* reset return results buffer pointer */ 202 buffer = calloc(1, bufferSize); 203 if (buffer == (char *)NULL) { 252 perror(a_cmd); /* Emit error msg - ends up in callers buffer */ 268 * Spin reading data from the child into the buffer - when the read eofs 275 /* read as much child data as there is available buffer space */ 277 bytesRead = read(ipipe[0], buffer + bufferIndex, 305 /* at least 1 byte read: expand buffer if at end */ 309 buffer 677 char *buffer; local [all...] |
/osnet-11/usr/src/lib/libipadm/common/ |
H A D | ipadm_ndpd.c | 365 * Attempt to read `buflen' worth of bytes from `fd' into the buffer pointed 369 ipadm_ndpd_read(int fd, void *buffer, size_t buflen) argument 394 prbytes = read(fd, (caddr_t)buffer + nbytes, buflen - nbytes); 407 * Write `buflen' bytes from `buffer' to open file `fd'. Returns 0 411 ipadm_ndpd_write(int fd, const void *buffer, size_t buflen) argument 415 const char *buf = buffer;
|
/osnet-11/usr/src/lib/efcode/fcdriver/ |
H A D | get_req.c | 94 char buffer[BUFSIZ]; local 102 if (ioctl(cdp->fcode_fd, FC_GET_MY_ARGS, buffer) < 0) { 105 pkg_my_args = STRDUP(buffer);
|