Search Results

Search: Posts Made By: gabam
Forum: Programming 11-04-2012
1,587
Posted By amisubha
Firstly I personally not understanding the way u...
Firstly I personally not understanding the way u have stated the problem and what doubt you have. The prog works perfectly, when default statement executed the 'cont' value doesn't get changed,...
Forum: Programming 04-12-2012
17,888
Posted By neutronscott
NAME open, creat - open and possibly...
NAME
open, creat - open and possibly create a file or device

SYNOPSIS
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>

From the manual, it seems...
Forum: Programming 03-12-2012
3,883
Posted By radoulov
I believe the error you're seeing is related to...
I believe the error you're seeing is related to JDK version mismatch.
I suppose that the latest version on the SPARC machine is older than the one used for the compilation on Win 7.
So:

1....
Forum: Programming 02-15-2012
13,497
Posted By jlliagre
Beware not to stick to the micro-kernel code (the...
Beware not to stick to the micro-kernel code (the 6000 lines you were referring to). On Minix, there is more "kernel" code in userland than these 6k lines, essentially minix device drivers and the so...
Forum: Programming 02-03-2012
23,713
Posted By Corona688
It's nothing to do with putting it in a...
It's nothing to do with putting it in a structure. Why would your structure stop sem_init from being defined?

undefined symbol means you're using a function that it can't actually find. What...
Forum: Programming 01-11-2012
2,061
Posted By achenle
The code you implemented only ensures thread 2...
The code you implemented only ensures thread 2 writes to stdout after thread 1 has posted to the semaphore at least once. It doesn't restrict thread 1 from posting to the semaphore multiple times...
Forum: Programming 01-09-2012
1,700
Posted By Corona688
Glad to see that my solution in the other thread...
Glad to see that my solution in the other thread worked for you. You might want to post that it worked in that thread, so people who find your thread through google know the solution worked. This...
Forum: Programming 01-08-2012
2,301
Posted By Corona688
I think it needs to be Sum<T>, not Sum, because...
I think it needs to be Sum<T>, not Sum, because Sum is also a template
Forum: Programming 12-19-2011
9,557
Posted By jim mcnamara
pflynn is correct in suggesting using malloc. ...
pflynn is correct in suggesting using malloc.

However the base requirement is not reasonable. As far as I can see. You already have strings in **argv.

If you need to call them something useful...
Forum: Programming 12-18-2011
9,557
Posted By jlliagre
@Corona688: I don't get your comment unless I'm...
@Corona688: I don't get your comment unless I'm really misunderstanding the initial question.

The open poster is referring to argv so IMHO clearly asking about how parameters are split before...
Forum: Programming 12-18-2011
9,557
Posted By Corona688
That's only true when the program's being...
That's only true when the program's being launched by a shell. Even then, it's the shell that does the splitting, not the program.
Forum: Programming 12-18-2011
9,557
Posted By jlliagre
The separator is one of the characters in the IFS...
The separator is one of the characters in the IFS variable, which can be modified to suit your needs
Note that you can still pass arguments with embedded separators by single or double quoting them.
Forum: Programming 12-18-2011
9,557
Posted By pflynn
I think you had better dynamically allocate the...
I think you had better dynamically allocate the memory to hold the string copy. A fixed length buffer is subject to buffer overflows. strdup(3) would do the work for you. Alternatively, you can use...
Forum: Programming 12-18-2011
9,557
Posted By jim mcnamara
#include <string.h> int main(int argc, char...
#include <string.h>
int main(int argc, char **argv)
{
char arg[80]={0x0};
strcpy(arg, argv[3]);
printf("arg = %s\n", arg);
return 0;
}
Forum: Programming 12-18-2011
11,382
Posted By vistastar
define another two semaphore: sem_t zero,...
define another two semaphore:

sem_t zero, one;

a thread wait for zero and post one, while the other thread wait for one and post zero.
Forum: Programming 12-08-2011
4,957
Posted By Emily Henderson
Gabam ,that is a very good question you have come...
Gabam ,that is a very good question you have come up with.Many people think assembly language is no more used today.But their is lot more to it.It is used primarily for direct hardware...
Forum: Programming 12-08-2011
4,957
Posted By LMHmedchem
Am I making a correct assertion that the runtime...
Am I making a correct assertion that the runtime components of these languages (java, c#, python, etc) contain allot of assembler? What allows for allot of the interpretation in interpreted languages...
Forum: Programming 12-07-2011
4,957
Posted By Corona688
The most vital thing about assembly is that it's...
The most vital thing about assembly is that it's freestanding. It makes extremely few assumptions about the environment you're writing code for, and can create code which needs no operating system...
Forum: Programming 12-07-2011
4,957
Posted By frappa
Hi, have a look at Assembly language -...
Hi,

have a look at
Assembly language - Wikipedia, the free encyclopedia - Current Usage (http://en.wikipedia.org/wiki/Assembly_language#Current_usage)

see ya
fra
Forum: Programming 12-01-2011
1,561
Posted By Corona688
Yes, you see: char *argv[] int x; C is...
Yes, you see:

char *argv[]

int x; C is not a scripting language, you can't cavalierly assign a string into an integer and expect to get anything sensible. If you try and force it with...
Forum: Solaris 09-11-2011
5,231
Posted By incredible
p2 should be the whole disk (backup slice) and...
p2 should be the whole disk (backup slice) and not p0 right?
Forum: Solaris 09-08-2011
5,126
Posted By DukeNuke2
if i remember right, the minimum is 384mb ram to...
if i remember right, the minimum is 384mb ram to install solaris... maybe someone can confirm this.
Forum: Solaris 09-06-2011
4,866
Posted By Scott
That might not work with xargs, in which case use...
That might not work with xargs, in which case use -exec:


# find . -inum 4044889145 -exec rm -r {} \;


edit:

Actually, using -I it works :)


# find . -inum 4044889145 | xargs -I{} rm...
Forum: Solaris 09-06-2011
4,866
Posted By verdepollo
Try deleting it by inode: $ ls -id gabsf ...
Try deleting it by inode:

$ ls -id gabsf
493909 gabsf
$ find . -inum 493909 | xargs rm -r
Forum: Solaris 09-05-2011
31,575
Posted By solaris_user
enter in terminal as root svcadm disable...
enter in terminal as root

svcadm disable svc:/network/sendmail-client:default
Showing results 1 to 25 of 31

 
All times are GMT -4. The time now is 07:15 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy