/macosx-10.5.8/xnu-1228.15.4/libsa/ |
H A D | strstr.c | 7 * as defined in and that are subject to the Apple Public Source License 8 * Version 2.0 (the 'License'). You may not use this file except in 32 * Redistribution and use in source and binary forms, with or without 37 * 2. Redistributions in binary form must reproduce the above copyright 38 * notice, this list of conditions and the following disclaimer in the 69 strstr(const char *in, const char *str) argument 76 return (char *) in; // Trivial empty string case 83 sc = *in++; 87 } while (strncmp(in, str, len) != 0); 89 return (char *) (in [all...] |
/macosx-10.5.8/xnu-1228.15.4/bsd/crypto/blowfish/ |
H A D | bf_skey.c | 14 * apply to all code found in this distribution, be it the RC4, RSA, 19 * Copyright remains Eric Young's, and as such any Copyright notices in 21 * If this package is used in a product, Eric Young should be given attribution 23 * This can be in the form of a textual message at program startup or 24 * in documentation (online or textual) provided with the package. 26 * Redistribution and use in source and binary forms, with or without 31 * 2. Redistributions in binary form must reproduce the above copyright 32 * notice, this list of conditions and the following disclaimer in the 76 BF_LONG *p, ri, in[2]; local 106 in[ [all...] |
/macosx-10.5.8/xnu-1228.15.4/osfmk/ppc/ |
H A D | ppc_disasm.i | 10 in 01100000000000000000000000000000 nop 12 in 00111sddddd00000iiiiiiiiiiiiiiii li{|s}[$s] \ 15 in 011111dddddaaaaabbbbb0110111100r {or{|.}[$r] $reg($a),$reg($b),$reg($d)|\ 17 in 011111dddddaaaaabbbbb0100111100r xor{|.}[$r] $reg($a),$reg($b),$reg($d) 20 in 011111ddddd011111111000100100000 mtcr $reg($d) 22 in 00001Dcccccaaaaaiiiiiiiiiiiiiiii t{d|w}[$D]$tcond($c)i $reg($a),$simm16($i) 23 in 000111dddddaaaaaiiiiiiiiiiiiiiii mulli $reg($d),$reg($a),$simm16($i) 24 in 001000dddddaaaaaiiiiiiiiiiiiiiii subfic $reg($d),$reg($a),$simm16($i) 25 in 00101Uddd0laaaaaiiiiiiiiiiiiiiii cmp{l|}[$U]i \ 27 in 0011 [all...] |
H A D | skiplists.s | 7 * as defined in and that are subject to the Apple Public Source License 8 * Version 2.0 (the 'License'). You may not use this file except in 37 * in increasing order by virtual address. The number of lists a mapping is on is an 43 * Searching, adding, and deleting from a skip-list can all be done in O(ln(n)) time. 45 * efficient to purge a sparsely populated pmap of all the mappings in a large range, 55 * 64-bit link fields in every mapping. So we currently have two sizes of mappings: 56 * 64-byte nodes with 4 list links, and 128-byte nodes with 12. Only one in every 59 * contained in the allocate and free routines. 91 * cr6 is loaded with the corresponding feature flags (in particular, pf64Bit) 97 * We return the mapping ptr (or 0) in r [all...] |
H A D | cswtch.s | 7 * as defined in and that are subject to the Apple Public Source License 8 * Version 2.0 (the 'License'). You may not use this file except in 67 stw r0,saver3+4(r3) /* Make sure we pass in a 0 for the continuation */ 145 stw r12,ACT_PER_PROC(r5) ; Set per_proc in new activation 210 lwz r5,quickfret(r12) ; Get the first in quickfret list (top) 211 lwz r9,quickfret+4(r12) ; Get the first in quickfret list (bottom) 214 stw r5,SAVprev(r10) ; Link the old in (top) 215 stw r9,SAVprev+4(r10) ; Link the old in (bottom) 217 stw r7,quickfret(r12) ; Set the first in quickfret list (top) 218 stw r3,quickfret+4(r12) ; Set the first in quickfre [all...] |
H A D | vmachmon_asm.s | 7 * as defined in and that are subject to the Apple Public Source License 8 * Version 2.0 (the 'License'). You may not use this file except in 61 /* Don't change the order of these routines in the table. It's */ 65 .long 0 ; Not valid in Fam 67 .long 0 ; Not valid in Fam 69 .long 0 ; Not valid in Fam 71 .long 0 ; Not valid in Fam 73 .long 0 ; Not valid in Fam 75 .long 1 ; Valid in Fam 77 .long 1 ; Valid in Fa [all...] |
H A D | lowmem_vectors.s | 7 * as defined in and that are subject to the Apple Public Source License 8 * Version 2.0 (the 'License'). You may not use this file except in 131 mtsprg 3,r14 ; Set the UAW in sprg3 350 ; The syscall number is in r0. All we do here is munge the number into an 376 rlwimi r11,r0,1,0xE ; move in low 3 bits of syscall number 381 mfctr r13 ; save callers ctr in r13 384 bctr ; dispatch (r11 in sprg3, r13 in sprg2, ctr in r13, per_proc in r1 [all...] |
H A D | bcopy.s | 7 * as defined in and that are subject to the Apple Public Source License 8 * Version 2.0 (the 'License'). You may not use this file except in 37 ; Use CR5_lt to indicate non-cached (in bcopy and memcpy) 68 ; passed in value. This should be ok since we can not have any bigger than 32 bit addresses 93 ; to bcopy_physvir() on 32-bit machines, and will result in a panic. 118 beq- cr1,bcpvsame ; Source and sink are in same block 127 bl EXT(bcopy) ; BATs set up, args in r3-r5, so do the copy with DR on 144 ; Turns off data translation before the copy. This one will not work in user state. 149 ; passed in value. This should be ok since we can not have any bigger than 32 bit addresses 156 ; NOTE: when called, translation must be on, and we must be in 3 [all...] |
H A D | hw_exception.s | 7 * as defined in and that are subject to the Apple Public Source License 8 * Version 2.0 (the 'License'). You may not use this file except in 39 * The code for the FPU disabled handler (lazy fpu) is in cswtch.s 69 * Everything is saved in savearea 75 * leaving enough space for the 'red zone' in case the 76 * trapped thread was in the middle of saving state below 115 stw r8,SAVprev+4(r4) ; Queue the new save area in the front 197 rlwinm. r0,r0,0,runningVMbit,runningVMbit ; Are we in VM state? (cr0_eq == 0 if yes) 198 cmplwi cr2,r5,T_TRACE-T_DATA_ACCESS ; Are we still in range? (cr_gt if not) 202 crnor cr7_eq,cr0_eq,cr2_gt ; We should intercept if in V [all...] |
/macosx-10.5.8/xnu-1228.15.4/bsd/crypto/des/ |
H A D | des_ecb.c | 15 * Copyright remains Eric Young's, and as such any Copyright notices in 16 * the code are not to be removed. If this code is used in a product, 18 * This can be in the form of a textual message at program startup or 19 * in documentation (online or textual) provided with the package. 21 * Redistribution and use in source and binary forms, with or without 26 * 2. Redistributions in binary form must reproduce the above copyright 27 * notice, this list of conditions and the following disclaimer in the 103 const unsigned char *in=&(*input)[0]; local 106 c2l(in,l); ll[0]=l; 107 c2l(in, 120 const unsigned char *in = &(*input)[0]; local [all...] |
H A D | des_setkey.c | 15 * Copyright remains Eric Young's, and as such any Copyright notices in 16 * the code are not to be removed. If this code is used in a product, 18 * This can be in the form of a textual message at program startup or 19 * in documentation (online or textual) provided with the package. 21 * Redistribution and use in source and binary forms, with or without 26 * 2. Redistributions in binary form must reproduce the above copyright 27 * notice, this list of conditions and the following disclaimer in the 172 register const unsigned char *in; local 177 in = &(*key)[0]; 179 c2l(in, [all...] |
/macosx-10.5.8/xnu-1228.15.4/bsd/net/ |
H A D | if_arp.h | 7 * as defined in and that are subject to the Apple Public Source License 8 * Version 2.0 (the 'License'). You may not use this file except in 32 * Redistribution and use in source and binary forms, with or without 37 * 2. Redistributions in binary form must reproduce the above copyright 38 * notice, this list of conditions and the following disclaimer in the 67 #include <netinet/in.h> 73 * in size; the arphdr structure defines the fixed-length portion. 76 * arp_tha and arp_tpa in that order, according to the lengths 97 * The remaining fields are variable in size, 117 #define ATF_INUSE 0x01 /* entry in us [all...] |
H A D | if_gif.h | 7 * as defined in and that are subject to the Apple Public Source License 8 * Version 2.0 (the 'License'). You may not use this file except in 34 * Redistribution and use in source and binary forms, with or without 39 * 2. Redistributions in binary form must reproduce the above copyright 40 * notice, this list of conditions and the following disclaimer in the 67 #include <netinet/in.h>
|
/macosx-10.5.8/xnu-1228.15.4/bsd/dev/ppc/ |
H A D | unix_signal.c | 7 * as defined in and that are subject to the Apple Public Source License 8 * Version 2.0 (the 'License'). You may not use this file except in 55 /* XXX functions not in a Mach headers */ 122 ucontext_32to64(struct ucontext64 *in, struct user_ucontext64 *out) argument 124 out->uc_onstack = in->uc_onstack; 125 out->uc_sigmask = in->uc_sigmask; 128 out->uc_stack.ss_sp = CAST_USER_ADDR_T(in->uc_stack.ss_sp); 129 out->uc_stack.ss_size = in->uc_stack.ss_size; 130 out->uc_stack.ss_flags = in->uc_stack.ss_flags; 132 out->uc_link = CAST_USER_ADDR_T(in 144 ucontext_64to32(struct user_ucontext64 *in, struct ucontext64 *out) argument 163 siginfo_64to32(user_siginfo_t *in, siginfo_t *out) argument [all...] |
H A D | xsumas.s | 7 * as defined in and that are subject to the Apple Public Source License 8 * Version 2.0 (the 'License'). You may not use this file except in 40 * Note: If the "odd" flag is set, the address in r3 will be even. Nonetheless, we 46 * the adds can be done in parallel on 32-bit (or 64-bit) registers, as long as the 51 * because the kernel runs in 32-bit mode even on 64-bit machines (so the carry bit 64 rlwinm r2,r3,0,0x3 ; get byte offset in word 65 dcbt 0,r3 ; touch in 1st cache line 69 subfic r0,r2,4 ; get #bytes in partial word 81 sub r4,r4,r0 ; adjust length for bytes in partial word 83 srw r7,r7,r8 ; get mask for bytes to keep in partia [all...] |
/macosx-10.5.8/xnu-1228.15.4/libsa/libsa/ |
H A D | stdlib.h | 34 __private_extern__ char * strstr(const char *in, const char *str);
|
/macosx-10.5.8/xnu-1228.15.4/pexpert/pexpert/i386/ |
H A D | protos.h | 7 * as defined in and that are subject to the Apple Public Source License 8 * Version 2.0 (the 'License'). You may not use this file except in 44 in##s(i386_ioport_t port) \ 48 "in" #s " %1,%0" \
|
/macosx-10.5.8/xnu-1228.15.4/bsd/crypto/aes/ |
H A D | aes.h | 7 The free distribution and use of this software in both source and binary 13 2. distributions in binary form include the above copyright 15 in the documentation and/or other associated materials; 20 ALTERNATIVELY, provided that this notice is retained in full, this product 22 in which case the provisions of the GPL apply INSTEAD OF those given above. 27 in respect of its properties, including, but not limited to, correctness 32 This file contains the definitions required to use AES in C. See aesopt.h 51 /* The following must also be set in assembler files if being used */ 58 #define AES_BLOCK_SIZE 16 /* the AES block size in bytes */ 59 #define N_COLS 4 /* the number of columns in th [all...] |
/macosx-10.5.8/xnu-1228.15.4/libsyscall/ |
H A D | Makefile.inc | 47 .for _src in ${MISRCS}
|
/macosx-10.5.8/xnu-1228.15.4/osfmk/kdp/ml/ppc/ |
H A D | kdp_misc.s | 7 * as defined in and that are subject to the Apple Public Source License 8 * Version 2.0 (the 'License'). You may not use this file except in 57 rlwimi r3,r4,0,0,31 ; Copy bottom on in source 58 rlwimi r5,r6,0,0,31 ; Copy bottom on in dest
|
/macosx-10.5.8/xnu-1228.15.4/libkern/kmod/ |
H A D | Makefile.kmod | 53 @echo Installing $< in $@; 58 for onearch in $(INSTALL_ARCHS); do \ 70 for my_config in $(TARGET_CONFIGS_UC); do \
|
/macosx-10.5.8/xnu-1228.15.4/bsd/kern/ |
H A D | sysv_shm.c | 7 * as defined in and that are subject to the Apple Public Source License 8 * Version 2.0 (the 'License'). You may not use this file except in 33 * Redistribution and use in source and binary forms, with or without 38 * 2. Redistributions in binary form must reproduce the above copyright 39 * notice, this list of conditions and the following disclaimer in the 60 * NOTICE: This file was modified by McAfee Research in 2004 to introduce 62 * is included in support of clause 2.2 (b) of the Apple Public License, 124 static void shmid_ds_64to32(struct user_shmid_ds *in, struct shmid_ds *out); 125 static void shmid_ds_32to64(struct shmid_ds *in, struct user_shmid_ds *out); 189 shmid_ds_64to32(struct user_shmid_ds *in, struc argument 208 shmid_ds_32to64(struct shmid_ds *in, struct user_shmid_ds *out) argument [all...] |
/macosx-10.5.8/xnu-1228.15.4/libkern/ppc/ |
H A D | strlen.s | 7 * as defined in and that are subject to the Apple Public Source License 8 * Version 2.0 (the 'License'). You may not use this file except in 40 ; if ( y & z ) = 0 then all bytes in dataWord are non-zero 74 ; Now we know one of the bytes in r8 is zero, 80 ; counting leading zeroes to get the bytes in last word. 87 add r3,r3,r7 ; add in nonzero bytes in last word
|
/macosx-10.5.8/xnu-1228.15.4/libkern/uuid/ |
H A D | uuid.c | 5 * Redistribution and use in source and binary forms, with or without 9 * notice, and the entire permission notice in its entirety, 11 * 2. Redistributions in binary form must reproduce the above copyright 12 * notice, this list of conditions and the following disclaimer in the 147 uuid_parse(const char *in, uuid_t uu) argument 151 sscanf(in, 163 return (n != 36 || in[n] != '\0' ? -1 : 0);
|
/macosx-10.5.8/xnu-1228.15.4/bsd/netinet/ |
H A D | Makefile | 24 igmp.h igmp_var.h in.h in_pcb.h \
|