EmbLogic's Blog

regarding execle and execvpe functions

how to use execle and execvpe functions and how can i change the value of environment variables using envp[]

Posted in Uncategorized | Leave a comment

E-10 MDC project status

compression and decompression done (1 to 7 bit)

Posted in Uncategorized | 1 Comment

Print Star Pattern using for loop.

#include<stdio.h>
int main ()
{
printf(“Program to print a pattern of stars.\n”);
int i1,i2,i3,val;
printf(“Enter a number:\n”);
scanf(“%d”,&val);
for(i1=0;i1<val*2;i1=i1+2)
{
for(i3=val*2;i3>i1;i3=i3-2)
{
printf(” “);
}
for(i2=0;i2<=i1;i2++)
{
printf(“*”);

}
printf(“\n”);
}
return 0;
}

Posted in Data Structures with C | Tagged , | Leave a comment

sir

how to install adobe flash player in fedora 10?????????

Posted in Uncategorized | 3 Comments

file read-write operation…unexpected output… plz explain…

here is the code:

i was writing a character whose ASCII value is 144 to a file transfer.txt, then i close the file and open it to read the character which i wrote and when i checked the ascii value of it it was showing -112…..why????

 

#include<stdio.h>
#include<fcntl.h>
#include<stdlib.h>

void main()
{
char ch=144,str;
int fd;
fd=open(“transfer.txt”,O_WRONLY|O_CREAT|O_TRUNC);
if(fd<0)
{
perror(“fault\n”);
exit(1);
}
write(fd,&ch,1);
close(fd);
fd=open(“transfer.txt”,O_RDONLY);
read(fd,&str,1);
printf(“%d\n”,str);
close(fd);
}

Posted in Uncategorized | 2 Comments

e11 report to sidarth sir

today I have completed assignment no.1

Posted in Uncategorized | Leave a comment

TO SIR ……..

I HAVE COMPLITE MY 1st ASSI .. AND 3QUESTION REMAING IN 2nd ASSI AND DISCUSS ON 3rd

Posted in Uncategorized | Leave a comment

E-12, Assignment 1

x=y=1; z=x++-1;
z+=-x++ + ++y;
printf(“%d\n”,x); here x=3; but
printf(“%d\n”,z); here z=?? and how??

Posted in Uncategorized | Tagged | 2 Comments

Problem in make

As i give ‘make ARCH=arm CROSS_COMPILE=arm-none-linux-gnueabi- menuconfig’ command after decompressing kernel, the below given error appers.

i tried with some other kernel version….but there is also the same problem…

the error have one line: /lib64/libncursesw.so.5 not found..bt as i checked this .so is present at that path…

 

/bin/ld: warning: libdl.so.2, needed by /lib/../lib64/libncursesw.so.5, not found (try using -rpath or -rpath-link)
/lib/../lib64/libncursesw.so.5: undefined reference to `dlopen@GLIBC_2.2.5′
/lib/../lib64/libncursesw.so.5: undefined reference to `dlclose@GLIBC_2.2.5′
/lib/../lib64/libncursesw.so.5: undefined reference to `dlsym@GLIBC_2.2.5′
collect2: ld returned 1 exit status
make[2]: *** [scripts/kconfig/conf] Error 1
make[1]: *** [silentoldconfig] Error 2
make: *** No rule to make target `include/config/auto.conf’, needed by `include/config/kernel.release’.  Stop.

Plz give me a solution as i am using x86_64 bit arch.

Posted in Embedded Linux | Tagged | Leave a comment

E14 Star Pattern Using for Loop.

#include<stdio.h>
int main ()
{
printf(“Program to print a pattern of stars.\n”);
int i1,i2,i3,val;
printf(“Enter a number:\n”);
scanf(“%d”,&val);
for(i1=0;i1<val;i1++)
{
/*for(i3=val;i3>i1;i3–)
{
printf(” “);
}*/
for(i2=0;i2<=i1;i2++)
{
printf(“*”);

}
printf(“\n”);
}
return 0;
}

I tried to print a pattern of stars using for loop. The problem i am facing with the logic is that i want to print the following pattern:

*

***

*****

******* /*i.e is odd number of stars to be printed in n number of lines ; Where n is specified by the user;*/ I wanted to print this pattern using for loop only.
anyone wid solution?

 

Posted in Data Structures with C | Tagged | 3 Comments

Assignment1 is completed and assignment 2 remaining only 6 question

Posted in Uncategorized | Leave a comment

assignment 1

i have complete my 1st assignment and 8 question remaning in assignment 2

Posted in Uncategorized | Leave a comment

error: “TLS support is required” regarding tool chain

while compiling glibc- 2.12.1 i faced following error…

from <stdin>:1:
/root/chain/build/glibc/glibc-ports-2.12.1/sysdeps/arm/nptl/tls.h:48:3: error: #error “TLS support is required.”
/usr/bin/install -c -m 644 elf.h /opt/arm/sysroot/usr/include/elf.h
/usr/bin/install -c -m 644 ../bits/elfclass.h /opt/arm/sysroot/usr/include/bits/elfclass.h
/usr/bin/install -c -m 644 link.h /opt/arm/sysroot/usr/include/link.h
/usr/bin/install -c -m 644 /root/chain/build/glibc/glibc-ports-2.12.1/sysdeps/arm/bits/link.h /opt/arm/sysroot/usr/include/bits/link.h
make[2]: Leaving directory `/root/chain/source/glibc-2.12.1/elf’
make[1]: Target `install-headers’ not remade because of errors.
make[1]: Leaving directory `/root/chain/source/glibc-2.12.1′
make: *** [install-headers] Error 2

thnx

 

 

Posted in Uncategorized | Leave a comment

E2&E4-Tool -chain Daily Report (17-8-2012)

Respected Sir
Today entire team worked on tool chain.
Please all members from E2 & E4 provide their today’s status on blog by comment

Thanks and Regards
Dharmendra Nath Shandilya
&
Purnendu

Posted in Embedded Linux | 1 Comment

E12: Shell Script Assignment

Dear E12 Trainees,

Update the status of shell script assignment and any issues regarding shell script has to be posted on this thread.

Posted in Uncategorized | 49 Comments