Search Results

Search: Posts Made By: gabam
Forum: Programming 11-04-2012
1,481
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
16,967
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,622
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
12,399
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,338
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
1,942
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-08-2012
2,117
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 01-09-2012
1,519
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 12-18-2011
9,191
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,191
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,191
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-19-2011
9,191
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,191
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,191
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,134
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-07-2011
4,475
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-07-2011
4,475
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-08-2011
4,475
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-08-2011
4,475
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-01-2011
1,369
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
4,804
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
4,854
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,531
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-06-2011
4,531
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-05-2011
30,488
Posted By DukeNuke2
make it something like this: $ cat /etc/hosts ...
make it something like this:
$ cat /etc/hosts
#
# Internet host table
#
::1 localhost
127.0.0.1 localhost
192.168.1.10 virtual-solaris virtual-solaris.mydomain.com loghost
Showing results 1 to 25 of 31

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