/illumos-gate/usr/src/lib/libast/common/path/ |
H A D | pathcanon.c | 147 char buf[PATH_MAX]; local 151 dots = pathgetlink(phys, buf, sizeof(buf)); 156 strcpy(buf + dots, s - (*s != 0)); 157 if (*buf == '/') p = r = path; 159 strcpy(p, buf);
|
H A D | pathfind.c | 78 * path placed in <buf,size> 85 pathfind(const char* name, const char* lib, const char* type, char* buf, size_t size) argument 102 strncopy(buf, name, size); 103 return buf; 107 sfsprintf(buf, size, "%s.%s", name, type); 108 if (regular(buf, &st)) 109 return buf; 121 sfsprintf(buf, size, "%-.*s%s", s - error_info.file + 1, error_info.file, name); 122 if (regular(buf, &st)) 123 return buf; [all...] |
H A D | pathkey.c | 51 char buf[15]; local 60 key = buf; 167 s = buf; 184 for (; (c = *k) && s < &buf[sizeof(buf) - 1]; k++) 212 s = buf; 214 if ((s - buf) > 2 && k[0] == 'V' && k[1] == 'E' && k[2] == 'R' && k[3] == '=') 294 return key == buf ? strdup(key) : key;
|
/illumos-gate/usr/src/lib/libast/common/sfio/ |
H A D | sfrd.c | 61 ssize_t sfrd(Sfio_t* f, Void_t* buf, size_t n, Sfdisc_t* disc) argument 63 ssize_t sfrd(f,buf,n,disc) 65 Void_t* buf; 141 if((uchar*)buf >= f->data && (uchar*)buf <= f->endb) 143 buf = NIL(char*); 201 if(buf) 204 memcpy(buf,f->next,n); 221 if(!buf) 222 { buf [all...] |
/illumos-gate/usr/src/lib/libast/common/stdio/ |
H A D | stdio_c99.c | 61 fgets_unlocked(char* buf, int size, Sfio_t* sp) argument 63 return fgets(buf, size, sp); 79 fputs_unlocked(char* buf, Sfio_t* sp) argument 81 return fputs(buf, sp); 85 fread_unlocked(void* buf, size_t size, size_t n, Sfio_t* sp) argument 87 return fread(buf, size, n, sp); 91 fwrite_unlocked(void* buf, size_t size, size_t n, Sfio_t* sp) argument 93 return fwrite(buf, size, n, sp);
|
H A D | vfwscanf.c | 65 wideread(Sfio_t* f, Void_t* buf, size_t size, Sfdisc_t* dp) argument 74 return wcstombs(buf, wuf, size); 82 r = wcstombs(buf, wuf, size); 94 char buf[1024]; local 102 if (t = sfnew(NiL, buf, sizeof(buf), OPEN_MAX+1, SF_READ))
|
/illumos-gate/usr/src/lib/libast/common/string/ |
H A D | fmtip6.c | 41 static char buf[1024]; local 42 static char* p = buf; 44 if ((&buf[sizeof(buf)] - p) < n) 45 p = buf;
|
/illumos-gate/usr/src/uts/sun4v/os/ |
H A D | mach_ddi_impl.c | 61 check_status(int id, char *buf, dev_info_t *parent) argument
|
/illumos-gate/usr/src/uts/sun4u/opl/sys/scfd/ |
H A D | opcioif.h | 62 unsigned char buf[65536]; member in struct:scfsetphpinfo
|
/illumos-gate/usr/src/uts/sun4u/os/ |
H A D | mach_mp_startup.c | 180 char buf[CPU_IDSTRLEN]; local 186 (void) snprintf(buf, sizeof (buf), 190 cp->cpu_idstr = kmem_alloc(strlen(buf) + 1, KM_SLEEP); 191 (void) strcpy(cp->cpu_idstr, buf);
|
/illumos-gate/usr/src/cmd/lp/cmd/lpsched/ |
H A D | dowait.c | 501 char *buf = 0, local 518 if ((buf = Malloc(statbuf.st_size + 1))) 519 if ((n = Read(fd, buf, statbuf.st_size)) > 0) { 520 buf[n] = 0; 532 for (cp = buf; *cp && isspace(*cp); cp++) 535 Free (buf); 536 buf = 0; 539 Free (buf); 540 buf = 0; 548 return (buf); [all...] |
H A D | log.c | 114 char buf[BUFSIZ]; local 141 vsnprintf (buf, sizeof (buf), format, ap); 142 write(fd, buf, strlen(buf)); 162 char buf[BUFSIZ]; local 175 vsnprintf (buf, sizeof (buf), format, ap); 176 write(fd, buf, strlen(buf)); [all...] |
/illumos-gate/usr/src/cmd/lp/filter/postscript/common/ |
H A D | misc.c | 188 char buf[512]; /* buffer for reads and writes */ local 206 while ( (count = read(fd_in, buf, sizeof(buf))) > 0 ) 207 write(fd_out, buf, count);
|
/illumos-gate/usr/src/cmd/lp/lib/lp/ |
H A D | isterminfo.c | 208 char buf[2]; local 210 if (Read(fd, buf, 2) == 2 && buf[0] == 26 && buf[1] == 1)
|
/illumos-gate/usr/src/cmd/lp/lib/printers/ |
H A D | getprinter.c | 61 char buf[BUFSIZ]; local 154 while (fdgets(buf, BUFSIZ, fd) != NULL) { 156 buf[strlen(buf) - 1] = 0; 163 buf, 168 p = buf + prtrheadings[fld].len;
|
/illumos-gate/usr/src/cmd/lp/lib/users/ |
H A D | loadpri.c | 186 into buf). 197 char * next_user (int fd, char * buf, char ** pp ) argument 201 static int beg_line = 0; /* assumes a partial line is in buf to start */ 231 while (*pp = fdgets(buf, BUFSIZ, fd));
|
/illumos-gate/usr/src/cmd/lp/model/netpr/ |
H A D | bsd_misc.c | 258 char buf[BUFSIZ]; local 273 (void) snprintf(buf, sizeof (buf), "%c%s\n", option, value); 274 (void) strcat(job->np_cfAfile, buf); 275 syslog(LOG_DEBUG, "adding: %d %s", job->np_cfAfilesize, buf);
|
/illumos-gate/usr/src/uts/common/io/fibre-channel/fca/oce/ |
H A D | oce_fm.c | 142 char buf[FM_MAX_CLASS]; local 147 (void) snprintf(buf, FM_MAX_CLASS, "%s.%s", DDI_FM_DEVICE, detail); 150 ddi_fm_ereport_post(dev->dip, buf, ena, DDI_NOSLEEP,
|
/illumos-gate/usr/src/cmd/make/lib/mksh/ |
H A D | mksh.cc | 103 char buf[MAXPATHLEN]; local 114 (void) sprintf(buf, 120 strlen(buf); 125 buf);
|
/illumos-gate/usr/src/lib/libresolv/ |
H A D | res_init.c | 98 char buf[BUFSIZ]; local 115 char *buf; local 125 buf = (char *)malloc(bufsize); 126 if (buf == NULL) { 132 ifc.ifc_buf = buf; 136 free(buf); 150 free(buf); 159 free(buf); 170 (void) getdomainname(buf, BUFSIZ); 171 if (buf[ [all...] |
H A D | res_query.c | 79 char buf[MAXPACKET]; local 90 buf, sizeof (buf)); 100 n = res_send(buf, n, (char *)answer, anslen); 276 char buf[BUFSIZ]; local 282 buf[sizeof (buf) - 1] = '\0'; 283 while (fgets(buf, sizeof (buf), fp)) { 284 for (C1 = buf; *C [all...] |
/illumos-gate/usr/src/common/zfs/ |
H A D | zfs_fletcher.c | 139 fletcher_2_native(const void *buf, uint64_t size, argument 142 const uint64_t *ip = buf; 158 fletcher_2_byteswap(const void *buf, uint64_t size, argument 161 const uint64_t *ip = buf; 177 fletcher_4_native(const void *buf, uint64_t size, argument 180 const uint32_t *ip = buf; 196 fletcher_4_byteswap(const void *buf, uint64_t size, argument 199 const uint32_t *ip = buf; 214 fletcher_4_incremental_native(const void *buf, uint64_t size, argument 217 const uint32_t *ip = buf; 237 fletcher_4_incremental_byteswap(const void *buf, uint64_t size, zio_cksum_t *zcp) argument [all...] |
/illumos-gate/usr/src/lib/smbsrv/libfksmbsrv/common/ |
H A D | fksmb_sign_pkcs.c | 65 smb_md5_update(smb_sign_ctx_t ctx, void *buf, size_t len) argument 69 rv = C_DigestUpdate(ctx, buf, len);
|
/illumos-gate/usr/src/uts/common/fs/smbsrv/ |
H A D | smb_create.c | 153 char *buf; local 160 buf = smb_srm_zalloc(sr, MAXPATHLEN); 161 (void) snprintf(buf, MAXPATHLEN, "%s\\%s", 163 op->fqi.fq_path.pn_path = buf;
|
/illumos-gate/usr/src/cmd/mdb/common/modules/libumem/ |
H A D | misc.c | 87 umem_readvar(void *buf, const char *name) argument 94 if (mdb_vread(buf, sym.st_size, (uintptr_t)sym.st_value)
|