/illumos-gate/usr/src/lib/libbc/libc/sys/4.2/ |
H A D | write.c | 45 write(int fd, char *buf, int size) argument 47 return (bc_write(fd, buf, size)); 51 bc_write(int fd, char *buf, int size) argument 58 nsize = getmodsize(size, sizeof (struct compat_utmp), 68 ret = conv2utmpx(nbuf, buf, size); 85 if ((ret = _write(fd, buf, size)) == -1) {
|
/illumos-gate/usr/src/lib/libbc/libc/sys/sys5/ |
H A D | read.c | 43 read(int fd, char *buf, int size) argument 45 return (bc_read(fd, buf, size)); 49 bc_read(int fd, char *buf, int size) argument 55 size = getmodsize(size, sizeof (struct compat_utmp), 58 if ((nbuf = (void *)malloc(size)) == NULL) { 63 if ((ret = _read(fd, nbuf, size)) == -1) { 76 return (_read(fd, buf, size));
|
H A D | readv.c | 52 int i, size, total = 0; local 57 size = getmodsize(iov[i].iov_len, 61 if ((nbuf = (void *)malloc(size)) == NULL) { 66 if ((ret = _read(fd, nbuf, size)) == -1) {
|
H A D | write.c | 41 write(int fd, char *buf, int size) argument 43 return (bc_write(fd, buf, size)); 47 bc_write(int fd, char *buf, int size) argument 54 nsize = getmodsize(size, sizeof (struct compat_utmp), 64 ret = conv2utmpx(nbuf, buf, size); 78 return (_write(fd, buf, size));
|
/illumos-gate/usr/src/lib/libc/amd64/gen/ |
H A D | makectxt.c | 57 size_t size; local 64 size = sizeof (long) * (pusharg + 1); 73 ucp->uc_stack.ss_size - size) & ~(STACK_ENTRY_ALIGN - 1));
|
/illumos-gate/usr/src/lib/libc/port/gen/ |
H A D | tsdalloc.c | 41 size_t size; member in struct:__anon3001 59 lfree(p, loc[i].size); 67 tsdalloc(__tsd_item_t n, size_t size, pfrv_t destructor) argument 100 loc[n].buf = p = lmalloc(size); 101 loc[n].size = size;
|
/illumos-gate/usr/src/lib/libc/port/stdio/ |
H A D | __extensions.c | 115 * Returns the buffer size (in bytes) currently in use by the given stream. 120 size_t size; local 124 size = _bufend(stream) - stream->_base; 126 return (size);
|
H A D | getline.c | 47 size_t size; local 65 size = *n; 77 if (++cnt == size) { /* must reallocate */ 78 if ((ptr = realloc(*lineptr, 2 * size)) == NULL) { 80 ptr = *lineptr + size - 1; 86 ptr += size; 87 *n = size = 2 * size;
|
/illumos-gate/usr/src/lib/libidmap/common/ |
H A D | sidutil.c | 110 int size; local 119 size = sizeof (sid_t) + (NT_SID_SUBAUTH_MAX * sizeof (uint32_t)); 121 if ((sid = malloc(size)) == NULL) 124 bzero(sid, size);
|
/illumos-gate/usr/src/lib/libmail/common/ |
H A D | getdomain.c | 67 static char *look4domain(char *file, char *buf, int size) argument 75 while (fgets(buf, size, fp)) 92 static char *readdomain(char *buf, int size) argument 97 (void) strncpy(buf, ret, size); 101 if (((ret = look4domain("/etc/resolv.conf", buf, size)) != 0) || 102 ((ret = look4domain("/etc/inet/named.boot", buf, size)) != 0) || 103 ((ret = look4domain("/etc/named.boot", buf, size)) != 0)) 107 if (sysinfo(SI_SRPC_DOMAIN, buf, size) >= 0)
|
/illumos-gate/usr/src/cmd/vscan/vscand/ |
H A D | vs_door.c | 111 vs_door_scan_req(void *cookie, char *ptr, size_t size, door_desc_t *dp, argument
|
/illumos-gate/usr/src/cmd/zpool/ |
H A D | zpool_util.c | 39 safe_malloc(size_t size) argument 43 if ((data = calloc(1, size)) == NULL) {
|
/illumos-gate/usr/src/head/ |
H A D | macros.h | 52 #define size(str) (strlen(str) + 1) macro
|
/illumos-gate/usr/src/lib/cfgadm_plugins/ac/common/ |
H A D | mema_test_subr.c | 40 size_t size) 49 new_ent->buf = malloc(size); 38 mtest_allocate_buf( mtest_handle_t handle, size_t size) argument
|
/illumos-gate/usr/src/cmd/nscd/ |
H A D | nscd_biggest.c | 51 int size, guess, base, last; local 57 size = table[0].num; 58 if (table[size].num < n) /* biggest so far */ 59 guess = size; 62 last = size;
|
/illumos-gate/usr/src/cmd/pgrep/ |
H A D | idtab.c | 36 #define IDTAB_GROW 2 /* Table size multiplier on grow */ 37 #define IDTAB_DEFSIZE 16 /* Starting table size */ 58 size_t size; local 62 size = idt->id_size ? idt->id_size * IDTAB_GROW : IDTAB_DEFSIZE; 64 if (data = realloc(idt->id_data, sizeof (idkey_t) * size)) { 66 idt->id_size = size;
|
/illumos-gate/usr/src/cmd/picl/plugins/sun4u/grover/memcfg/ |
H A D | memcfg_impl.h | 53 #define OBP_PROP_SIZE_CELLS "#size-cells" 55 #define SUPPORTED_NUM_CELL_SIZE 2 /* #size-cells */ 62 uint64_t size; /* in bytes */ member in struct:memmod_info 71 uint64_t size; member in struct:regspec
|
/illumos-gate/usr/src/cmd/picl/plugins/sun4v/pri/ |
H A D | init.c | 36 static void pri_free(void *bufp, size_t size); 98 pri_free(void *bufp, size_t size) argument
|
/illumos-gate/usr/src/cmd/print/conv_fix/ |
H A D | conv_fix.c | 56 int size; local 58 size = sizeof (entry); 62 while (fgets(tmp, size, fp)) { 71 size -= strlen(tmp); 77 size -= 2;
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/telnet/ |
H A D | ring.h | 68 int size; /* size in bytes of buffer */ member in struct:__anon145
|
/illumos-gate/usr/src/cmd/dis/ |
H A D | dis_util.c | 83 safe_malloc(size_t size) argument 87 if ((ret = calloc(1, size)) == NULL) 108 static int size = BUFSIZE; local 124 demangled_name = safe_malloc(size); 135 * The function returns -1 when the buffer size is not sufficient. 137 while ((ret = (*demangle_func)(name, demangled_name, size)) == -1) { 139 size = size + BUFSIZE; 140 demangled_name = safe_malloc(size);
|
/illumos-gate/usr/src/cmd/mailx/ |
H A D | stralloc.c | 60 * Allocate size more bytes of space and return the address of the 63 * The string spaces are of exponentially increasing size, to satisfy 64 * the occasional user with enormous string size requests. 68 salloc(unsigned size) argument 75 s = size; 116 * Reallocate size bytes of space and return the address of the 121 srealloc(void *optr, unsigned size) argument 130 s = size; 147 nptr = salloc(size); 149 memcpy(nptr, optr, size); /* XX [all...] |
/illumos-gate/usr/src/cmd/mdb/common/mdb/ |
H A D | mdb_addrvec.c | 35 #define AD_INIT 16 /* initial size of addrvec array */ 55 size_t size = adp->ad_size ? adp->ad_size * AD_GROW : AD_INIT; local 56 void *data = mdb_alloc(sizeof (uintptr_t) * size, UM_SLEEP); 62 adp->ad_size = size;
|
H A D | mdb_memio.c | 102 mdb_memio_create(char *buf, size_t size) argument 108 mdp->md_size = size;
|
/illumos-gate/usr/src/cmd/msgfmt/ |
H A D | util.c | 68 Xmalloc(size_t size) argument 72 t = malloc(size); 94 Xrealloc(void *ptr, size_t size) argument 98 t = realloc(ptr, size);
|