Searched refs:new (Results 1 - 25 of 49) sorted by relevance

12

/xnu-2422.115.4/libsyscall/wrappers/
H A Drename.c25 int __rename(const char *old, const char *new);
28 rename(const char *old, const char *new) argument
30 int res = __rename(old, new);
/xnu-2422.115.4/SETUP/config/
H A Ddoconf20 # display the differences between it and the new file.
272 ' >$SYSCONF.new
273 if (-z $SYSCONF.new) then
275 rm -f $SYSCONF.new
302 echo 'builddir "."' >> $SYSCONF.new
303 echo 'objectdir "'$OBJDIR'"' >> $SYSCONF.new
305 echo 'sourcedir "'$SRCROOT'"' >> $SYSCONF.new
307 diff $SYSCONF $SYSCONF.new
312 mv $SYSCONF.new $SYSCONF
/xnu-2422.115.4/bsd/net/
H A Dif_utun_crypto_ipsec.c277 struct sadb_key *new; local
278 int len = sizeof(*new) + BITSTOBYTES(key_len);
281 new = utun_alloc(len);
282 if (new == NULL) {
286 bzero(new, len);
287 new->sadb_key_len = BITSTOBYTES(key_len);
288 new->sadb_key_exttype = type;
289 new->sadb_key_bits = key_len;
290 bcopy(key, &new[1], new
702 mbuf_t new; local
[all...]
/xnu-2422.115.4/osfmk/kern/
H A Dtimer.c97 uint64_t new, old = *save; local
99 *save = new = timer_grab(timer);
101 return (new - old);
139 * Update the timer and start a new one.
161 * start the new timer. Requires a current
162 * and new timer.
181 * Start new timer.
H A Dqueue.h306 * Tests whether a new entry is really the end of
336 * Insert a new element at the tail of the queue.
364 * Insert a new element at the head of the queue.
392 * Insert a new element before a given element.
434 * Insert a new element after a given element.
576 * rebase old queue to new queue head
578 * queue_new_head(old, new, type, field)
580 * queue_t new;
584 #define queue_new_head(old, new, type, field) \
587 *(new)
[all...]
H A Dkpc.h106 extern void kpc_switch_context( thread_t old, thread_t new );
H A Dkpc_thread.c159 kpc_switch_context( thread_t old, thread_t new __unused )
202 /* give the new thread a counterbuf */
/xnu-2422.115.4/osfmk/i386/
H A Dlock.h133 static inline char xchgb(volatile char * cp, char new);
151 static inline char xchgb(volatile char * cp, char new) argument
153 register char old = new;
157 "0" (new), "m" (*(volatile char *)cp) : "memory");
H A Dpcb_native.c115 act_machine_switch_pcb(__unused thread_t old, thread_t new) argument
117 pcb_t pcb = THREAD_TO_PCB(new);
122 assert(new->kernel_stack != 0);
171 cdp->cpu_task_map = new->map->pmap->pm_task_map;
189 if ((pcb->cthread_self != 0) || (new->task != kernel_task)) {
222 if (new->task == TASK_NULL || new->task->i386_ldt == 0) {
231 user_ldt_set(new);
332 * Initialize the machine-dependent state for a new thread.
H A Dpcb.c161 machine_pmc_cswitch(thread_t /* old */, thread_t /* new */);
164 pmc_swi(thread_t /* old */, thread_t /*new */);
167 pmc_swi(thread_t old, thread_t new) { argument
169 current_cpu_datap()->csw_new_thread = new;
174 machine_pmc_cswitch(thread_t old, thread_t new) { argument
175 if (pmc_thread_eligible(old) || pmc_thread_eligible(new)) {
176 pmc_swi(old, new);
180 void ml_get_csw_threads(thread_t *old, thread_t *new) { argument
182 *new = current_cpu_datap()->csw_new_thread;
189 ml_kpc_cswitch(thread_t old, thread_t new) argument
201 ml_kperf_cswitch(thread_t old, thread_t new) argument
446 machine_load_context( thread_t new) argument
463 machine_switch_context( thread_t old, thread_continue_t continuation, thread_t new) argument
1821 machine_stack_handoff(thread_t old, thread_t new) argument
[all...]
H A Drtclock_asm.h65 * Add time delta to old timer and start new.
68 #define TIMER_EVENT(old,new) \
74 leaq (new##_TIMER)(%rcx),%rcx /* point to new timer */ ; \
81 leaq (new##_STATE)(%rdx),%rcx /* point to new state */ ; \
H A Dmisc_protos.h149 extern void act_machine_switch_pcb(thread_t old, thread_t new);
/xnu-2422.115.4/osfmk/kperf/
H A Dkperf.h84 extern void kperf_switch_context( thread_t old, thread_t new );
H A Daction.c422 kperf_switch_context( __unused thread_t old, thread_t new )
424 task_t task = get_threadtask(new);
427 /* cut a tracepoint to tell us what the new thread's PID is
430 BUF_DATA2( PERF_TI_CSWITCH, thread_tid(new), pid );
549 /* create a new array */
/xnu-2422.115.4/bsd/netinet6/
H A Dnd6_rtr.c756 defrouter_addreq(struct nd_defrouter *new, boolean_t scoped) argument
764 NDDR_LOCK_ASSERT_NOTHELD(new);
770 NDDR_LOCK(new);
771 if (new->stateflags & NDDRF_INSTALLED)
774 if (new->ifp->if_eflags & IFEF_IPV6_ROUTER) {
776 "static=%d on advertising interface\n", if_name(new->ifp),
777 ip6_sprintf(&new->rtaddr), scoped,
778 (new->stateflags & NDDRF_STATIC) ? 1 : 0));
783 "static=%d\n", if_name(new->ifp), ip6_sprintf(&new
1118 defrtrlist_add_static(struct nd_defrouter *new) argument
1150 defrtrlist_del_static(struct nd_defrouter *new) argument
1717 defrtrlist_update_common(struct nd_defrouter *new, boolean_t scoped) argument
1881 defrtrlist_update(struct nd_defrouter *new) argument
1895 struct nd_defrouter *dr, new; local
1951 struct nd_pfxrouter *new; local
2075 struct nd_prefix *new = NULL; local
2271 prelist_update( struct nd_prefix *new, struct nd_defrouter *dr, struct mbuf *m, int mcast) argument
4157 in6_init_address_ltimes(struct nd_prefix *new, struct in6_addrlifetime *lt6) argument
[all...]
H A Din6_src.c871 * a new one. Note that we should check the address family of the
1120 * - ip6_output() would try to get another route with the "new"
1578 struct addrsel_policyent *new, *pol; local
1580 MALLOC(new, struct addrsel_policyent *, sizeof (*new), M_IFADDR,
1592 FREE(new, M_IFADDR);
1597 bzero(new, sizeof (*new));
1600 new->ape_policy = *newpolicy;
1602 TAILQ_INSERT_TAIL(&addrsel_policytab, new, ape_entr
[all...]
H A Dipsec.c1419 struct inpcbpolicy *new; local
1425 new = ipsec_newpcbpolicy();
1426 if (new == NULL) {
1430 bzero(new, sizeof(*new));
1437 new->priv = 1;
1439 new->priv = 0;
1441 if ((new->sp_in = key_newsp()) == NULL) {
1442 ipsec_delpcbpolicy(new);
1445 new
[all...]
/xnu-2422.115.4/libkern/net/
H A Dinet_pton.c87 u_int new = *tp * 10 + (pch - digits); local
91 if (new > 255)
93 *tp = new;
/xnu-2422.115.4/security/
H A Dmac_system.c192 user_addr_t old, user_addr_t oldlenp, int inkernel, user_addr_t new, size_t newlen)
204 inkernel, new, newlen);
191 mac_system_check_sysctl(kauth_cred_t cred, int *name, u_int namelen, user_addr_t old, user_addr_t oldlenp, int inkernel, user_addr_t new, size_t newlen) argument
/xnu-2422.115.4/libkern/libkern/c++/
H A DOSObject.h93 * You can create a new OSObject-derived instance
94 * with the <code>new</code> operator,
305 * @function operator new
315 static void * operator new(size_t size);
H A DOSMetaClass.h124 * <li><code>@link OSTypeAlloc OSTypeAlloc@/link</code> - allocation of new instances</li>
164 * A pointer to the new, uninitialized object on success;
178 * presented by the C++ <code>new</code> operator.
824 * as new functions are added. They may do so with these macros:
867 static void * operator new(size_t size);
1110 * for the creation of new metaclasses
1175 * then registers the new metaclasses under the kext ID
1745 { return new className; } \
1947 * Reserves vtable space for new virtual functions
1959 * that can be replaced with new function
[all...]
/xnu-2422.115.4/tools/tests/zero-to-n/
H A Dzero-to-n.c207 int32_t new; local
232 new = OSAtomicIncrement32(&g_done_threads);
234 debug_log("New value is %d\n", new);
239 if (new == g_numthreads) {
266 int32_t new; local
272 new = OSAtomicIncrement32(&g_done_threads);
273 if (new == g_numthreads) {
/xnu-2422.115.4/bsd/kern/
H A Dkern_descrip.c131 struct filedesc *fdp, int old, int new, int flags, int32_t *retval);
515 * *retval (modified) The new descriptor
522 int new, error; local
536 if ( (error = fdalloc(p, 0, &new)) ) {
541 error = finishdup(p, fdp, old, new, 0, retval);
562 * *retval (modified) The new descriptor
568 int old = uap->from, new = uap->to; local
585 if (new < 0 ||
586 (rlim_t)new >= p->p_rlimit[RLIMIT_NOFILE].rlim_cur ||
587 new >
2355 finishdup(proc_t p, struct filedesc *fdp, int old, int new, int fd_flags, int32_t *retval) argument
[all...]
/xnu-2422.115.4/osfmk/x86_64/
H A Dboot_pt.c63 #error Please update boot_pt.c to reflect the new value of NPGPTD
/xnu-2422.115.4/bsd/security/audit/
H A Daudit_session.c585 * Create a new audit record. The record will contain the subject
834 * Allocated a new audit_session entry and add it to the hash table. If the
852 * Alloc a new session entry now so we don't wait holding the lock.
879 * hash table. If so, update it with the new auditinfo.
912 * Populate the new session entry. Note that process masks are stored
930 * Generate an audit event to notify userland of the new session.
1069 auditinfo_addr_t *new)
1074 if (old->ai_auid != AU_DEFAUDITID && old->ai_auid != new->ai_auid)
1081 (old->ai_termid.at_port != new->ai_termid.at_port ||
1082 old->ai_termid.at_type != new
1068 audit_session_update_check(kauth_cred_t cred, auditinfo_addr_t *old, auditinfo_addr_t *new) argument
[all...]

Completed in 139 milliseconds

12