Searched refs:NULL (Results 26 - 50 of 625) sorted by relevance

1234567891011>>

/macosx-10.5.8/xnu-1228.15.4/tools/tests/xnu_quick_test/
H A Dmemory_tests.c24 char * my_pathp = NULL;
25 char * my_bufp = NULL;
26 char * my_addr = NULL;
27 char * my_test_page_p = NULL;
32 if ( my_pathp == NULL ) {
48 if ( my_test_page_p == NULL ) {
80 if ( my_bufp == NULL ) {
102 my_addr = (char *) mmap( NULL, (my_page_size * 2), (PROT_READ | PROT_WRITE), (MAP_FILE | MAP_SHARED), my_fd, 0 );
183 my_addr = NULL;
186 my_addr = (char *) mmap( NULL, (my_page_siz
[all...]
H A Dmisc.c84 char * my_pathp = NULL;
89 if ( my_pathp == NULL ) {
146 if ( my_pathp != NULL ) {
173 printf("CWD= %s\n", getwd(NULL));
211 my_wait_pid = wait4( my_pid, &my_status, 0, NULL );
248 char * args[] = {"helpers/arch", NULL};
264 my_err = posix_spawn(&my_pid, args[0], NULL, &attr, args, NULL);
278 my_err = wait4(my_pid, &my_status, 0, NULL);
308 char *errmsg = NULL;
[all...]
/macosx-10.5.8/xnu-1228.15.4/bsd/kern/
H A Duipc_mbuf2.c121 * if offp == NULL, the target will start at <retval, 0> on resulting chain.
122 * if offp != NULL, the target will start at <retval, *offp> on resulting chain.
124 * on error return (NULL return value), original "m" will be freed.
135 static struct mbuf *prev = NULL;
140 if (m == NULL)
141 panic("m == NULL in m_pulldown()");
144 return NULL; /* impossible */
223 while (n != NULL && off > 0) {
230 while (n != NULL && n->m_len == 0)
234 return NULL; /* mbu
[all...]
H A Dkpi_mbuf.c90 /* Must set *mbuf to NULL in failure case */
93 return (*mbuf == NULL) ? ENOMEM : 0;
98 /* Must set *mbuf to NULL in failure case */
101 return (*mbuf == NULL) ? ENOMEM : 0;
109 if (extbuf == NULL || extfree == NULL || extsize == 0)
112 if ((*mbuf = m_clattach(mbuf != NULL ? *mbuf : NULL, type, extbuf,
113 extfree, extsize, extarg, how)) == NULL)
122 if (size == NULL || *siz
[all...]
H A Dkpi_socketfilter.c74 if (TAILQ_FIRST(&proto->pr_filter_head) != NULL) {
94 so->so_filt = NULL;
164 if (filtered == NULL)
191 * Assumptions: If filter is not NULL, socket_filter_lock is held.
201 struct socket_filter_entry *entry = NULL;
205 if (filter == NULL) {
216 if (filter == NULL)
222 if (entry == NULL) {
231 entry->sfe_cookie = NULL;
247 entry = NULL;
[all...]
H A Dkpi_socket.c76 if (sock == NULL || new_sock == NULL) return EINVAL;
87 sock->so_comp.tqh_first == NULL) {
92 if (sock->so_proto->pr_getlock != NULL) {
106 error = msleep((caddr_t)&sock->so_timeo, mutex_held, PSOCK | PCATCH, "sock_accept", NULL);
127 if (new_so->so_filt != NULL) {
150 new_so->so_head = NULL;
195 if (sock == NULL || to == NULL) return EINVAL;
209 if (sock == NULL || t
[all...]
H A Dnetboot.c144 if (i < 3 && p == NULL)
173 if (colon == NULL) {
184 if (colon == NULL) {
194 if (colon == NULL) {
195 *image_path = NULL;
219 while ((colon = strchr(start, ':')) != NULL) {
266 if (colon == NULL) {
278 if (colon == NULL) {
279 *image_path = NULL;
313 if (entry == NULL) {
[all...]
H A Dkern_control.c116 NULL, NULL, NULL, ctl_ctloutput,
117 NULL, NULL,
118 NULL, NULL, NULL, NULL, &ctl_usrreqs,
126 NULL, NUL
[all...]
H A Duipc_mbuf.c500 { MC_MBUF, NULL, TAILQ_HEAD_INITIALIZER(m_slablist(MC_MBUF)),
501 NULL, NULL, 0, 0, 0, 0 },
502 { MC_CL, NULL, TAILQ_HEAD_INITIALIZER(m_slablist(MC_CL)),
503 NULL, NULL, 0, 0, 0, 0 },
504 { MC_BIGCL, NULL, TAILQ_HEAD_INITIALIZER(m_slablist(MC_BIGCL)),
505 NULL, NULL, 0, 0, 0, 0 },
506 { MC_16KCL, NULL, TAILQ_HEAD_INITIALIZE
[all...]
/macosx-10.5.8/xnu-1228.15.4/tools/
H A Dcred_dump_backtraces.c40 char *my_bufferp = NULL;
46 err = sysctlbyname( "kern.cred_bt", NULL, &len, NULL, 0 );
55 if ( my_bufferp == NULL ) {
59 err = sysctlbyname( "kern.cred_bt", my_bufferp, &len, NULL, 0 );
/macosx-10.5.8/xnu-1228.15.4/bsd/net/
H A Dkext_net.c63 if (nfp == NULL)
87 { if (nfp1 == NULL)
93 { if (nfp1 == NULL)
128 return(NULL);
141 struct NFDescriptor *nf1, *nf2 = NULL;
143 if (np->nke_where != NULL)
144 { if ((nf2 = find_nke(np->nke_where)) == NULL)
150 if ((nf1 = find_nke(np->nke_handle)) == NULL)
156 kp1 = NULL;
165 if (kp == NULL)
[all...]
H A Ddevtimer.c99 return (timer->dt_callout != NULL);
113 timer->dt_arg0 = NULL;
114 if (timer->dt_callout != NULL) {
116 timer->dt_callout = NULL;
151 if (process_func != NULL) {
155 if (timeout_func != NULL) {
156 timer->dt_timeout_func = NULL;
162 if (process_func != NULL) {
180 if (timer == NULL) {
186 if (timer->dt_callout == NULL) {
[all...]
/macosx-10.5.8/xnu-1228.15.4/pexpert/gen/
H A Ddevice_tree.c43 #ifndef NULL
44 #define NULL ((void *) 0) macro
88 if (entry == NULL || entry->nProperties == 0) {
89 return NULL;
106 if (entry == NULL) {
107 return NULL;
150 return NULL;
167 return NULL;
216 if (propValue == NULL || strcmp( (char *)(propP + 1), propValue) == 0)
243 if (searchPoint == NULL) {
[all...]
/macosx-10.5.8/xnu-1228.15.4/bsd/dev/random/YarrowCoreLib/src/
H A Dprngpriv.h105 if(p==NULL) {return PRNG_ERR_NOT_READY;} /* Does the state exist? */ \
107 /* To make sure that a pointer isn't NULL */
108 #define PCHECK(ptr) if(ptr==NULL) {return PRNG_ERR_NULL_POINTER;}
110 #define MCHECK(ptr) if(ptr==NULL) {return PRNG_ERR_LOW_MEMORY;}
/macosx-10.5.8/xnu-1228.15.4/libsa/libsa/
H A Dstdlib.h12 #ifndef NULL
14 #define NULL 0 macro
16 #define NULL ((void *)0) macro
/macosx-10.5.8/xnu-1228.15.4/osfmk/kern/
H A Dpage_decrypt.c51 while (dsmos_hook == NULL || dsmos_hook == _dsmos_wait_for_callback)
70 if (dsmos_hook == NULL)
76 text_crypter_create_hook_t text_crypter_create=NULL;
/macosx-10.5.8/xnu-1228.15.4/osfmk/libsa/
H A Dstring.h51 #ifndef NULL
53 #define NULL 0 macro
55 #define NULL ((void *)0) macro
/macosx-10.5.8/xnu-1228.15.4/security/
H A Dmac_label.c62 if (l == NULL)
63 return (NULL);
74 if (l == NULL)
75 panic("Free of NULL MAC label\n");
/macosx-10.5.8/xnu-1228.15.4/bsd/dev/dtrace/
H A Dfbt.c94 last = NULL;
98 ASSERT(hash != NULL);
103 if (last != NULL) {
113 } while (fbt != NULL);
125 dtrace_casptr(&tempDTraceIntHook, NULL, fbt_perfIntCallback);
136 dtrace_casptr(&tempDTraceTrapHook, NULL, fbt_perfCallback);
146 for (; fbt != NULL; fbt = fbt->fbtp_next)
160 for (; fbt != NULL; fbt = fbt->fbtp_next)
174 for (; fbt != NULL; fbt = fbt->fbtp_next)
190 dtrace_casptr(&tempDTraceIntHook, NULL, fbt_perfIntCallbac
[all...]
/macosx-10.5.8/xnu-1228.15.4/osfmk/sys/
H A Dtypes.h146 #ifndef NULL
147 #define NULL ((void *) 0) /* the null pointer */ macro
/macosx-10.5.8/xnu-1228.15.4/bsd/netkey/
H A Dkey.c303 (!((elm)->chain.le_next == NULL && (elm)->chain.le_prev == NULL))
307 if (curelm == NULL) {\
549 if ((sadb_mutex = lck_mtx_alloc_init(sadb_mutex_grp, sadb_mutex_attr)) == NULL) {
558 if ((pfkey_stat_mutex = lck_mtx_alloc_init(pfkey_stat_mutex_grp, pfkey_stat_mutex_attr)) == NULL) {
578 * OUT: NULL: not found
591 if (spidx == NULL)
592 panic("key_allocsp: NULL pointer is passed.\n");
620 return NULL;
656 return NULL;
[all...]
H A Dkeysock.c100 panic("key_output: NULL pointer was passed.\n");
148 m = NULL;
195 m, NULL, &error)) {
208 /* so can be NULL if target != KEY_SENDUP_ONE */
221 if (m == NULL)
222 panic("key_sendup_mbuf: NULL pointer was passed.\n");
223 if (so == NULL && target == KEY_SENDUP_ONE)
224 panic("key_sendup_mbuf: NULL pointer was passed.\n");
233 if (m == NULL) {
266 if ((n = m_copy(m, 0, (int)M_COPYALL)) != NULL) {
[all...]
/macosx-10.5.8/xnu-1228.15.4/bsd/dev/i386/
H A Dinstr_size.c96 x.d86_check_func = NULL;
106 if (rmindex != NULL)
121 NULL));
136 curproc->p_model, NULL));
/macosx-10.5.8/xnu-1228.15.4/bsd/libkern/
H A Drindex.c78 for (save = NULL;; ++p) {
/macosx-10.5.8/xnu-1228.15.4/libkern/libkern/
H A DOSCrossEndian.h72 if (sysctlbyname("sysctl.proc_native", &val, &size, NULL, 0) == -1)

Completed in 144 milliseconds

1234567891011>>