- Timestamp:
- Jul 3, 2005, 9:01:54 AM (20 years ago)
- Location:
- trunk/src/emx
- Files:
-
- 1 added
- 1 deleted
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/emx/src/lib/lgpl/crypt/crypt-entry.c
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.2
r2190 r2191 25 25 */ 26 26 27 #include "libc-alias-glibc.h" 27 28 #ifdef DEBUG 28 29 #include <stdio.h> … … 48 49 /* Prototypes for local functions. */ 49 50 #if __STDC__ - 0 50 #if ndef __GNU_LIBRARY__51 #if !defined __GNU_LIBRARY__ && !defined __INNOTEK_LIBC__ 51 52 void _ufc_clearmem (char *start, int cnt); 52 53 #else … … 80 81 ufc_long xx = 25; /* to cope with GCC long long compiler bugs */ 81 82 82 #if def _LIBC83 #if defined _LIBC || defined __INNOTEK_LIBC__ 83 84 /* Try to find out whether we have to use MD5 encryption replacement. */ 84 85 if (strncmp (md5_salt_prefix, salt, sizeof (md5_salt_prefix) - 1) == 0) … … 119 120 120 121 char * 121 crypt(key, salt)122 _STD(crypt) (key, salt) 122 123 const char *key; 123 124 const char *salt; 124 125 { 125 #if def _LIBC126 #if defined _LIBC || defined __INNOTEK_LIBC__ 126 127 /* Try to find out whether we have to use MD5 encryption replacement. */ 127 128 if (strncmp (md5_salt_prefix, salt, sizeof (md5_salt_prefix) - 1) == 0) … … 137 138 * They don't need to call init_des. 138 139 */ 139 #if def _LIBC140 #if defined _LIBC || defined __INNOTEK_LIBC__ 140 141 weak_alias (crypt, fcrypt) 141 142 #else -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/lgpl/crypt/crypt.c
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.2
r2190 r2191 25 25 */ 26 26 27 #include "libc-alias-glibc.h" 27 28 #include "ufc-crypt.h" 28 29 #include "crypt.h" -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/lgpl/crypt/crypt_util.c
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.2
r2190 r2191 25 25 */ 26 26 27 #include "libc-alias-glibc.h" 27 28 #ifdef DEBUG 28 29 #include <stdio.h> … … 49 50 /* Prototypes for local functions. */ 50 51 #if __STDC__ - 0 51 #if ndef __GNU_LIBRARY__52 #if !defined(__GNU_LIBRARY__) && !defined(__INNOTEK_LIBC__) 52 53 void _ufc_clearmem (char *start, int cnt); 53 54 void _ufc_copymem (char *from, char *to, int cnt); … … 260 261 * (crypt/encrypt/setkey) 261 262 */ 262 struct crypt_data _ufc_foobar ;263 struct crypt_data _ufc_foobar = {{0}}; 263 264 264 265 #ifdef __GNU_LIBRARY__ … … 267 268 __libc_lock_define_initialized (static, _ufc_tables_lock) 268 269 #endif 269 270 #ifdef DEBUG 270 #ifdef __INNOTEK_LIBC__ 271 #include <sys/smutex.h> 272 #endif 273 274 275 276 #if defined(DEBUG) && !defined(__INNOTEK_LIBC__) 271 277 272 278 void … … 303 309 #endif 304 310 305 #if ndef __GNU_LIBRARY__311 #if !defined(__GNU_LIBRARY__) && !defined(__INNOTEK_LIBC__) 306 312 /* 307 313 * Silly rewrites of 'bzero'/'memset'. I do so … … 369 375 goto small_tables_done; 370 376 #endif 377 #ifdef __INNOTEK_LIBC__ 378 static _smutex smtx; 379 _smutex_request(&smtx); 380 if(small_tables_initialized) 381 goto small_tables_done; 382 #endif 383 384 371 385 372 386 /* … … 474 488 __libc_lock_unlock(_ufc_tables_lock); 475 489 #endif 490 #ifdef __INNOTEK_LIBC__ 491 small_tables_done: 492 _smutex_release(&smtx); 493 #endif 476 494 } 477 495 … … 874 892 875 893 void 876 encrypt(__block, __edflag)894 _STD(encrypt)(__block, __edflag) 877 895 char *__block; 878 896 int __edflag; … … 908 926 909 927 void 910 setkey(__key)928 _STD(setkey)(__key) 911 929 __const char *__key; 912 930 { -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/lgpl/crypt/md5-crypt.c
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.2
r2190 r2191 21 21 02111-1307 USA. */ 22 22 23 #include "libc-alias-glibc.h" 23 24 #include <assert.h> 24 25 #include <errno.h> … … 214 215 if (buflen <= 0) 215 216 { 216 __set_errno (ERANGE);217 errno = ERANGE; 217 218 buffer = NULL; 218 219 } … … 263 264 } 264 265 265 #if ndef _LIBC266 #if !defined _LIBC && !defined __INNOTEK_LIBC__ 266 267 static void 267 268 __attribute__ ((__destructor__)) -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/lgpl/crypt/md5.c
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.2
r2190 r2191 22 22 /* Written by Ulrich Drepper <drepper@gnu.ai.mit.edu>, 1995. */ 23 23 24 #include "libc-alias-glibc.h" 24 25 #ifdef HAVE_CONFIG_H 25 26 # include <config.h> … … 28 29 #include <sys/types.h> 29 30 30 #if STDC_HEADERS || defined _LIBC 31 #if STDC_HEADERS || defined _LIBC || defined __INNOTEK_LIBC__ 31 32 # include <stdlib.h> 32 33 # include <string.h> … … 39 40 #include "md5.h" 40 41 41 #if def _LIBC42 #if defined _LIBC || defined __INNOTEK_LIBC__ 42 43 # include <endian.h> 43 44 # if __BYTE_ORDER == __BIG_ENDIAN … … 246 247 if (len >= 64) 247 248 { 248 #if !_STRING_ARCH_unaligned249 #if defined _STRING_ARCH_unaligned && !_STRING_ARCH_unaligned 249 250 /* To check alignment gcc has an appropriate operator. Other 250 251 compilers don't. */ -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/lgpl/crypt/md5.h
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.2
r2190 r2191 24 24 #include <stdio.h> 25 25 26 #if defined HAVE_LIMITS_H || _LIBC26 #if defined HAVE_LIMITS_H || (defined _LIBC && _LIBC) || defined(__INNOTEK_LIBC__) 27 27 # include <limits.h> 28 28 #endif … … 35 35 is usually not possible. */ 36 36 37 #if def _LIBC37 #if defined _LIBC || defined __INNOTEK_LIBC__ 38 38 # include <stdint.h> 39 39 typedef uint32_t md5_uint32; -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/lgpl/include/libc-alias-glibc.h
-
Property cvs2svn:cvs-rev
changed from
1.3
to1.4
r2190 r2191 43 43 44 44 #ifndef _LIBC_SYMBOLS_H /* hackityhack */ 45 #undef weak_alias 46 #define weak_alias(name, aliasname) 45 # undef weak_alias 46 # ifdef __WANT_WEAK__ 47 # define weak_alias(name, aliasname) \ 48 extern __typeof(name) aliasname __attribute__((weak, alias(#name))); 49 # else 50 # define weak_alias(name, aliasname) 51 # endif 47 52 #undef INTDEF 48 53 #define INTDEF(name) … … 566 571 #define __lgamma_r _STD(lgamma_r) 567 572 568 569 573 #endif -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/libc.def
-
Property cvs2svn:cvs-rev
changed from
1.129
to1.130
r2190 r2191 1892 1892 "__std_nftw" @1892 1893 1893 "___libc_FHSetFlags" @1893 1894 "___stpncpy" @1894 1895 ; crypt 1896 "___crypt_r" @1895 1897 "___encrypt_r" @1896 1898 "___init_des" @1897 1899 "___init_des_r" @1898 1900 "___md5_buffer" @1899 1901 "___md5_crypt" @1900 1902 "___md5_crypt_r" @1901 1903 "___md5_finish_ctx" @1902 1904 "___md5_init_ctx" @1903 1905 "___md5_process_block" @1904 1906 "___md5_process_bytes" @1905 1907 "___md5_read_ctx" @1906 1908 "___md5_stream" @1907 1909 "___setkey_r" @1908 1910 "__std_crypt" @1909 1911 "__std_encrypt" @1910 1912 "__std_setkey" @1911 1913 "__ufc_dofinalperm_r" @1912 1914 "__ufc_doit_r" @1913 1915 "__ufc_foobar" @1914 1916 "__ufc_mk_keytab_r" @1915 1917 "__ufc_output_conversion_r" @1916 1918 "__ufc_setup_salt_r" @1917 -
Property cvs2svn:cvs-rev
changed from
Note:
See TracChangeset
for help on using the changeset viewer.