/macosx-10.10/xnu-2782.1.97/bsd/sys/ |
H A D | sbuf.h | 28 * $FreeBSD: /repoman/r/ncvs/src/sys/sys/sbuf.h,v 1.14 2004/07/09 11:35:30 des Exp $ 40 struct sbuf { struct 50 #define SBUF_OVERFLOWED 0x00040000 /* sbuf overflowed */ 51 #define SBUF_DYNSTRUCT 0x00080000 /* sbuf must be freed */ 59 struct sbuf *sbuf_new(struct sbuf *, char *, int, int); 60 void sbuf_clear(struct sbuf *); 61 int sbuf_setpos(struct sbuf *, int); 62 int sbuf_bcat(struct sbuf *, const void *, size_t); 63 int sbuf_bcpy(struct sbuf *, cons [all...] |
/macosx-10.10/gnutar-453/gnutar/lib/ |
H A D | lstat.c | 39 `lstat ("symlink/", sbuf)' just like `lstat ("symlink/.", sbuf)', 48 rpl_lstat (const char *file, struct stat *sbuf) argument 51 int lstat_result = lstat (file, sbuf); 53 if (lstat_result != 0 || !S_ISLNK (sbuf->st_mode)) 64 if (stat (file, sbuf) != 0) 68 if (S_ISDIR (sbuf->st_mode))
|
/macosx-10.10/uucp-11/uucp/lib/ |
H A D | buffer.c | 39 struct sbuf struct 41 struct sbuf *qnext; 51 static struct sbuf *qBlist; 60 register struct sbuf *q; 64 q = (struct sbuf *) xmalloc (sizeof (struct sbuf) + c - 4); 73 q = (struct sbuf *) xrealloc ((pointer) q, 74 sizeof (struct sbuf) + c - 4); 87 struct sbuf *q; 94 ioff = offsetof (struct sbuf, [all...] |
/macosx-10.10/CPANInternal-159.1/File-ExtAttr-1.09/ |
H A D | extattr_linux.c | 270 attrlist2list (char *sbuf, const size_t slen, argument 285 pNS = &sbuf[spos]; 312 if (memstr(sbuf, pNS, sbuiltlen) != NULL) 317 * We build the results in sbuf. So sbuf will contain the list 322 memmove(&sbuf[sbuiltlen], psrc, src_len); 333 memcpy(buf, sbuf, sbuiltlen); 374 char *sbuf; local 376 sbuf = malloc(slen); 377 if (sbuf) { 427 char *sbuf; local 468 char *sbuf; local 509 char *sbuf; local [all...] |
/macosx-10.10/ntp-92/libntp/ |
H A D | findconfig.c | 21 struct stat sbuf; local 26 if (stat(result, &sbuf) == 0) { 27 if (S_ISDIR(sbuf.st_mode)) { 32 if (stat(result, &sbuf) == 0) { 43 if (stat(result, &sbuf) == 0) { 49 if (stat(result, &sbuf) == 0) {
|
/macosx-10.10/doc_cmds-49/makewhatis/ |
H A D | makewhatis.c | 80 struct sbuf { struct 87 * Removes the last amount characters from the sbuf. 89 #define sbuf_retract(sbuf, amount) \ 90 ((sbuf)->end -= (amount)) 92 * Returns the length of the sbuf content. 94 #define sbuf_length(sbuf) \ 95 ((sbuf)->end - (sbuf)->content) 119 static struct sbuf *whatis_proto; 120 static struct sbuf *whatis_fina 202 sbuf_clear(struct sbuf *sbuf) argument 213 struct sbuf *sbuf = (struct sbuf *) malloc(sizeof(struct sbuf)); local 224 sbuf_need(struct sbuf *sbuf, int nchars) argument 248 sbuf_append(struct sbuf *sbuf, const char *text, int length) argument 261 sbuf_append_str(struct sbuf *sbuf, char *text) argument 270 sbuf_append_edited(struct sbuf *sbuf, char *text, edited_copy copy) argument 283 sbuf_strip(struct sbuf *sbuf, const char *set) argument 293 sbuf_content(struct sbuf *sbuf) argument [all...] |
/macosx-10.10/lukemftp-14/tnftp/libnetbsd/ |
H A D | mkstemp.c | 39 struct stat sbuf; local 90 if (stat(path, &sbuf)) 92 if (!S_ISDIR(sbuf.st_mode)) {
|
/macosx-10.10/Libc-1044.1.2/stdlib/ |
H A D | grantpt.c | 68 struct stat sbuf; local 82 if (stat(ptsnamebuf, &sbuf) == 0) {
|
/macosx-10.10/xnu-2782.1.97/tools/tests/libMicro/apple/ |
H A D | lmbench_stat.c | 84 struct stat sbuf; local 99 if (stat(optf, &sbuf) == -1)
|
H A D | lmbench_fstat.c | 109 struct stat sbuf; local 126 if (fstat(ts->ts_fd, &sbuf) == -1)
|
/macosx-10.10/xnu-2782.1.97/tools/tests/libMicro/ |
H A D | stat.c | 76 struct stat sbuf; local 81 if (stat(optf, &sbuf) == -1)
|
/macosx-10.10/xnu-2782.1.97/osfmk/kperf/ |
H A D | action.c | 81 kperf_sample_internal( struct kperf_sample *sbuf, argument 98 sbuf->kcallstack.nframes = 0; 99 sbuf->kcallstack.flags = CALLSTACK_VALID; 100 sbuf->ucallstack.nframes = 0; 101 sbuf->ucallstack.flags = CALLSTACK_VALID; 109 kperf_threadinfo_sample( &sbuf->threadinfo, context ); 113 if (sbuf->threadinfo.runmode & 0x40) 118 kperf_kcallstack_sample( &sbuf->kcallstack, context ); 133 kperf_ucallstack_sample( &sbuf->ucallstack, context ); 136 kperf_threadinfo_extra_sample( &sbuf 207 kperf_sample( struct kperf_sample *sbuf, struct kperf_context *context, unsigned actionid, unsigned sample_flags ) argument 247 struct kperf_sample sbuf; local [all...] |
H A D | action.h | 48 /* Take a sample into "sbuf" using current thread "cur_thread" */ 49 extern kern_return_t kperf_sample( struct kperf_sample *sbuf,
|
/macosx-10.10/disklabel-6/ |
H A D | status.c | 40 struct stat sbuf; local 45 if (stat(dev, &sbuf) == -1) { 49 if (sbuf.st_nlink == 1) { // assume this is the real device 65 mine = sbuf.st_ino;
|
/macosx-10.10/Libc-1044.1.2/util/ |
H A D | mkpath_np.c | 48 struct stat sbuf; local 66 if (stat(path, &sbuf) == 0) { 67 if (S_ISDIR(sbuf.st_mode)) { 167 if (stat(apath, &sbuf) == 0 && 168 S_ISDIR(sbuf.st_mode)) { 210 stat(path, &sbuf) == 0 && 211 !S_ISDIR(sbuf.st_mode)) {
|
/macosx-10.10/uucp-11/uucp/unix/ |
H A D | cohtty.c | 193 struct stat sbuf; local 196 if (0 != (status = stat(path, &sbuf))) { 201 if (PE_DRIVER == major(sbuf.st_rdev)) { 202 sprintf(buff, "%d.%d", major(sbuf.st_rdev), 203 PE_DEVMASK & minor(sbuf.st_rdev)); 205 sprintf(buff, "%d.%d", major(sbuf.st_rdev), 206 DEVMASK & minor(sbuf.st_rdev));
|
/macosx-10.10/xnu-2782.1.97/bsd/kern/ |
H A D | subr_sbuf.c | 50 #include <sys/sbuf.h> 53 /* MALLOC_DEFINE(M_SBUF, "sbuf", "string buffers"); */ 90 _assert_sbuf_integrity(const char *fun, struct sbuf *s) 93 ("%s called with a NULL sbuf pointer", fun)); 95 ("%s called with uninitialized or corrupt sbuf", fun)); 97 ("wrote past end of sbuf (%d >= %d)", s->s_len, s->s_size)); 101 _assert_sbuf_state(const char *fun, struct sbuf *s, int state) 104 ("%s called with %sfinished or corrupt sbuf", fun, 132 * Extend an sbuf. 135 sbuf_extend(struct sbuf * [all...] |
/macosx-10.10/apr-32/apr/apr/misc/win32/ |
H A D | misc.c | 201 char *sbuf; local 209 sbuf = (TlsGetValue)(tlsid); 210 if (!fh || !sbuf) { 211 sbuf = (malloc)(1024); 212 (TlsSetValue)(tlsid, sbuf); 213 sbuf[1023] = '\0'; 215 (GetModuleFileNameA)(NULL, sbuf, 250); 216 sprintf(strchr(sbuf, '\0'), ".%u", 218 fh = (CreateFileA)(sbuf, GENERIC_WRITE, 0, NULL, 225 (sprintf)(sbuf, " [all...] |
/macosx-10.10/zsh-61/zsh/Src/Modules/ |
H A D | stat.c | 218 statlinkprint(struct stat *sbuf, char *outbuf, char *fname) argument 223 if (fname && S_ISLNK(sbuf->st_mode) && 233 statprint(struct stat *sbuf, char *outbuf, char *fname, int iwhich, int flags) argument 247 statulprint((unsigned long)sbuf->st_dev, optr); 252 convbase(optr, sbuf->st_ino, 0); 254 DPUTS(sizeof(sbuf->st_ino) > sizeof(unsigned long), 256 statulprint((unsigned long)sbuf->st_ino, optr); 261 statmodeprint(sbuf->st_mode, optr, flags); 265 statulprint((unsigned long)sbuf->st_nlink, optr); 269 statuidprint(sbuf [all...] |
/macosx-10.10/Heimdal-398.1.2/lib/roken/ |
H A D | iruserok.c | 221 struct stat sbuf; local 262 if (lstat(pbuf, &sbuf) < 0) 264 else if (!S_ISREG(sbuf.st_mode)) 266 else if (fstat(fileno(hostf), &sbuf) < 0) 268 else if (sbuf.st_uid && sbuf.st_uid != pwd->pw_uid) 270 else if (sbuf.st_mode & (S_IWGRP|S_IWOTH))
|
/macosx-10.10/apr-32/apr/apr/test/ |
H A D | testfmt.c | 122 char ebuf[150], sbuf[150], *s; local 127 apr_snprintf(sbuf, sizeof sbuf, "%pm", &rv); 128 ABTS_STR_EQUAL(tc, sbuf, ebuf); 134 apr_snprintf(sbuf, sizeof sbuf, "foo-%pm-bar", &rv); 135 ABTS_STR_EQUAL(tc, sbuf, s);
|
/macosx-10.10/zsh-61/zsh/Src/Zle/ |
H A D | zle_hist.c | 1030 * Save an isearch buffer from sbuf to sbuf+sbptr 1035 save_isearch_buffer(char *sbuf, int sbptr, argument 1041 memcpy(*search, sbuf, sbptr); 1067 char *sbuf = ibuf + FIRST_SEARCH_CHAR; local 1073 * sbptr: index into sbuf. 1202 if (sbptr == 1 && sbuf[0] == '^') { 1211 sbuf[sbptr] = '\0'; 1214 char *patbuf = ztrdup(sbuf); 1224 if (sbuf[ 1765 char *sbuf = zhalloc(80); local [all...] |
/macosx-10.10/Libc-1044.1.2/stdio/FreeBSD/ |
H A D | mktemp.c | 107 struct stat sbuf; local 148 rval = stat(path, &sbuf); 152 if (!S_ISDIR(sbuf.st_mode)) { 173 } else if (lstat(path, &sbuf))
|
/macosx-10.10/curl-83.1.2/curl/lib/ |
H A D | hostip4.c | 143 char sbuf[12]; local 150 snprintf(sbuf, sizeof(sbuf), "%d", port); 151 sbufptr = sbuf;
|
H A D | hostip6.c | 171 char sbuf[12]; local 209 snprintf(sbuf, sizeof(sbuf), "%d", port); 210 sbufptr=sbuf;
|