Searched refs:sbuf (Results 1 - 25 of 28) sorted by relevance

12

/darwin-on-arm/xnu/bsd/sys/
H A Dsbuf.h28 * $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...]
H A DMakefile28 sbuf.h posix_sem.h posix_shm.h sdt.h \
74 sbuf.h posix_sem.h posix_shm.h sem.h shm.h \
/darwin-on-arm/xnu/osfmk/kperf/
H A Daction.c75 kperf_sample_internal( struct kperf_sample *sbuf, argument
96 kperf_threadinfo_sample( &sbuf->threadinfo, context );
100 if (sbuf->threadinfo.runmode & 0x40)
105 kperf_kcallstack_sample( &sbuf->kcallstack, context );
120 kperf_ucallstack_sample( &sbuf->ucallstack, context );
123 kperf_threadinfo_extra_sample( &sbuf->tinfo_ex,
138 kperf_threadinfo_log( &sbuf->threadinfo );
142 kperf_kcallstack_log( &sbuf->kcallstack );
158 kperf_ucallstack_log( &sbuf->ucallstack );
161 kperf_threadinfo_extra_log( &sbuf
176 kperf_sample( struct kperf_sample *sbuf, struct kperf_context *context, unsigned actionid, boolean_t pend_user ) argument
214 struct kperf_sample *sbuf = kalloc( sizeof(*sbuf) ); local
[all...]
H A Daction.h40 /* Take a sample into "sbuf" using current thread "cur_thread" */
41 extern kern_return_t kperf_sample( struct kperf_sample *sbuf,
/darwin-on-arm/xnu/tools/tests/libMicro/apple/
H A Dlmbench_stat.c84 struct stat sbuf; local
99 if (stat(optf, &sbuf) == -1)
H A Dlmbench_fstat.c109 struct stat sbuf; local
126 if (fstat(ts->ts_fd, &sbuf) == -1)
/darwin-on-arm/xnu/tools/tests/libMicro/
H A Dstat.c76 struct stat sbuf; local
81 if (stat(optf, &sbuf) == -1)
/darwin-on-arm/xnu/bsd/kern/
H A Dsubr_sbuf.c50 #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...]
H A Dsysv_sem.c685 struct user_semid_ds sbuf; local
753 semid_ds_64tokernel(&ds64, &sbuf);
757 semid_ds_32tokernel(&ds32, &sbuf);
764 semakptr->u.sem_perm.uid = sbuf.sem_perm.uid;
765 semakptr->u.sem_perm.gid = sbuf.sem_perm.gid;
767 ~0777) | (sbuf.sem_perm.mode & 0777);
/darwin-on-arm/xnu/bsd/netinet6/
H A Desp_rijndael.c155 u_int8_t sbuf[MAX_SBUF_LEN] __attribute__((aligned(4))), *sp, *sp_unaligned; local
225 m_copydata(s, sn, AES_BLOCKLEN, (caddr_t) sbuf);
226 sp = sbuf;
227 len = AES_BLOCKLEN; // 1 block only in sbuf
280 sp = sbuf;
315 bzero(sbuf, sizeof(sbuf));
335 u_int8_t sbuf[MAX_SBUF_LEN] __attribute__((aligned(4))), *sp, *sp_unaligned; local
406 m_copydata(s, sn, AES_BLOCKLEN, (caddr_t) sbuf);
407 sp = sbuf;
[all...]
H A Desp_core.c546 u_int8_t *sbuf = NULL, *sp, *sp_unaligned; local
653 sbuf = (u_int8_t *)_MALLOC(blocklen, M_SECA, M_DONTWAIT);
654 if (sbuf == NULL)
663 m_copydata(s, sn, blocklen, (caddr_t) sbuf);
664 sp = sbuf;
710 sp = sbuf;
728 if (sp == sbuf) {
729 bcopy(sbuf, iv, blocklen);
751 bzero(sbuf, sizeof(sbuf));
773 u_int8_t *sbuf = NULL, *sp, *sp_unaligned; local
[all...]
/darwin-on-arm/xnu/security/
H A Dmac_posix_sem.c65 #include <sys/sbuf.h>
H A Dmac_sysv_sem.c65 #include <sys/sbuf.h>
H A Dmac_sysv_shm.c67 #include <sys/sbuf.h>
H A Dmac_posix_shm.c66 #include <sys/sbuf.h>
H A Dmac_policy.h102 struct sbuf;
455 struct sbuf *sb
477 struct sbuf *sb
1039 struct sbuf *sb
1395 struct sbuf *sb
1876 struct sbuf *sb
2164 struct sbuf *sb
3740 struct sbuf *sb
3881 struct sbuf *sb
4706 struct sbuf *s
[all...]
H A Dmac_file.c41 #include <sys/sbuf.h>
H A Dmac_pipe.c66 #include <sys/sbuf.h>
H A Dmac_sysv_msg.c66 #include <sys/sbuf.h>
H A Dmac_internal.h83 #include <sys/sbuf.h>
H A Dmac_process.c69 #include <sys/sbuf.h>
H A Dmac_socket.c74 #include <sys/sbuf.h>
/darwin-on-arm/xnu/bsd/nfs/
H A Dnfs4_subs.c1534 char sbuf[64], *s; local
1555 s = sbuf;
1556 slen = sizeof(sbuf);
1675 if (s != sbuf) {
1677 s = sbuf;
1678 slen = sizeof(sbuf);
2003 if (s != sbuf) {
2005 s = sbuf;
2006 slen = sizeof(sbuf);
2038 if (s != sbuf) {
2181 char sbuf[64], *s; local
[all...]
/darwin-on-arm/xnu/bsd/netat/
H A Dadsp_internal.h306 #define sbufPtr(y) (&sp->sbuf[((y) < sp->sbuflen) ? (y) : ((y) - sp->sbuflen)])
/darwin-on-arm/xnu/bsd/vfs/
H A Dvfs_subr.c2496 char sbuf[64]; local
2502 sbuf[0] = '\0';
2504 strlcat(sbuf, "|VROOT", sizeof(sbuf));
2506 strlcat(sbuf, "|VTEXT", sizeof(sbuf));
2508 strlcat(sbuf, "|VSYSTEM", sizeof(sbuf));
2510 strlcat(sbuf, "|VNOFLUSH", sizeof(sbuf));
[all...]

Completed in 199 milliseconds

12