Changeset 73
- Timestamp:
- Jan 14, 2006, 11:32:17 PM (20 years ago)
- Location:
- GPL/trunk
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
GPL/trunk/alsa-kernel/core/memory.c
r32 r73 186 186 } 187 187 188 char *snd_hidden_kstrdup(const char *s, int flags)189 {190 int len;191 char *buf;192 193 if (!s) return NULL;194 195 len = strlen(s) + 1;196 buf = _snd_kmalloc(len, flags);197 if (buf)198 memcpy(buf, s, len);199 return buf;200 }201 202 188 static void snd_memory_info_read(snd_info_entry_t *entry, snd_info_buffer_t * buffer) 203 189 { … … 321 307 } 322 308 309 char *snd_hidden_kstrdup(const char *s, int flags) 310 { 311 int len; 312 char *buf; 313 314 if (!s) return NULL; 315 316 len = strlen(s) + 1; 317 buf = _snd_kmalloc(len, flags); 318 if (buf) 319 memcpy(buf, s, len); 320 return buf; 321 } 322 323 323 void *kzalloc(size_t size, unsigned int flags) 324 324 { -
GPL/trunk/alsa-kernel/include/sound/driver.h
r71 r73 532 532 #define kstrdup(s, flags) snd_hidden_kstrdup(s, flags) 533 533 #endif 534 535 char *snd_hidden_kstrdup(const char *s, int flags); 536 #define kstrdup(s, flags) snd_hidden_kstrdup(s, flags) 537 534 538 char *snd_kmalloc_strdup(const char *string, int flags); 535 539 int copy_to_user_fromio(void __user *dst, const volatile void __iomem *src, size_t count); … … 741 745 #endif 742 746 747 #define printk_ratelimit() 1 748 743 749 typedef unsigned gfp_t; 744 750 745 char *kstrdup(const char *s, gfp_t gfp_flags);746 747 751 #endif /* __DRIVER_H */ -
GPL/trunk/alsa-kernel/pci/ens1370.c
r70 r73 1134 1134 &snd_es1370_hw_constraints_rates); 1135 1135 #else 1136 snd_pcm_hw_constraint_ratdens(runtime, 0, SNDRV_PCM_HW_PARAM_RATE,1137 &snd_es1371_hw_constraints_dac_clock);1136 // snd_pcm_hw_constraint_ratdens(runtime, 0, SNDRV_PCM_HW_PARAM_RATE, 1137 // &snd_es1371_hw_constraints_dac_clock); 1138 1138 #endif 1139 1139 return 0; … … 1157 1157 &snd_es1370_hw_constraints_clock); 1158 1158 #else 1159 snd_pcm_hw_constraint_ratdens(runtime, 0, SNDRV_PCM_HW_PARAM_RATE,1160 &snd_es1371_hw_constraints_dac_clock);1159 // snd_pcm_hw_constraint_ratdens(runtime, 0, SNDRV_PCM_HW_PARAM_RATE, 1160 // &snd_es1371_hw_constraints_dac_clock); 1161 1161 #endif 1162 1162 return 0; -
GPL/trunk/drv32/makefile.os2
r63 r73 97 97 @for %f in ($(LIBS)) do @%append $^@ library %f 98 98 @%write $^@ library $(%WATCOM)\lib386\os2\clib3r.lib 99 @%write $^@ library $(%WATCOM)\lib386\cplx3r.lib 99 100 !else 100 101 $(LNKFILE): $(MAKEFILE) … … 104 105 @for %f in ($(LIBS)) do @%append $^@ %f 105 106 @%write $^@ $(%WATCOM)\lib386\os2\clib3r.lib 107 @%write $^@ $(%WATCOM)\lib386\cplx3r.lib 106 108 @%write $^@ $(DEFFILE) 107 109 !endif -
GPL/trunk/include/watcom32.mak
r68 r73 13 13 14 14 !if "$(DEBUG)" == "1" 15 CFLAGS = -dDEBUG -bt=os2v2 -e60 -hc -d2 -5r -omlinear -s -w4 -ze -zdp -zl -zq -nt=CODE32 -zff -zgf -zev15 CFLAGS = -dDEBUG -bt=os2v2 -e60 -hc -d2 -5r -omlinear -s -w4 -ze -zdp -zl -zq -nt=CODE32 -zff -zgf 16 16 CPPFLAGS= -xd 17 17 ASFLAGS = -Mb -Li -Sv:M510 18 18 !else 19 CFLAGS = -bt=os2v2 -e60 -5r -omlinear -s -w4 -ze -zdp -zl -zq -nt=CODE32 -zff -zgf -zev19 CFLAGS = -bt=os2v2 -e60 -5r -omlinear -s -w4 -ze -zdp -zl -zq -nt=CODE32 -zff -zgf 20 20 CPPFLAGS= -xd 21 21 ASFLAGS = -Mb -Li -Sv:M510 … … 38 38 !endif 39 39 40 CC = WCC386 $(CFLAGS) $(CDEFINES) -i$(CINCLUDES)40 CC = WCC386 $(CFLAGS) -zev $(CDEFINES) -i$(CINCLUDES) 41 41 CPP = WPP386 $(CFLAGS) $(CPPFLAGS) $(CDEFINES) -i$(CINCLUDES) 42 42 CPP16 = WPP386 $(CFLAGS16) $(CPPFLAGS) $(CDEFINES) -i$(CINCLUDES) -
GPL/trunk/lib32/malloc.cpp
r32 r73 655 655 //***************************************************************************** 656 656 //***************************************************************************** 657 -
GPL/trunk/lib32/misc.c
r61 r73 24 24 * 25 25 */ 26 26 #include <limits.h> 27 27 #include "linux.h" 28 28 #include <linux/init.h> … … 38 38 #include <dbgos2.h> 39 39 #include <printfos2.h> 40 #include <limits.h>41 40 42 41 struct new_utsname system_utsname = {0}; -
GPL/trunk/lib32/strstr.c
r61 r73 43 43 return strlen(src); 44 44 } 45 45 46 #endif
Note:
See TracChangeset
for help on using the changeset viewer.