Search Results

Search: Posts Made By: konvalo
Forum: Solaris 01-22-2011
7,027
Posted By konvalo
frustrate with solaris network
I don't success configure solaris network,so I reinstall Solaris sol-10-u6-ga1-x86-dvd.iso,when installing,I configure following contents:

Networked: Yes
Use DHCP: No
Host name: universe
IP...
Forum: Programming 11-01-2010
1,638
Posted By konvalo
Syntax error before "va_mode_t"
I use Solaris,and I write following function,code is follows:
include <sys/varargs.h>
int Open(const char *pathname,int oflag,...){
int fd;
va_list ap;
mode_t mode;
if(oflag & O_CREAT){...
Forum: Programming 10-19-2010
3,685
Posted By konvalo
error:'MSG_R' undeclared (first use in this function) under Solaris
I read book Unix Network Programming written by Richard,and it define following code under unpipc.c
#define SVMSG_MODE (MSG_R | MSG_W | MSG_R>>3 | MSG_R>>6)

when I compile code,it raise following...
Forum: Red Hat 06-22-2010
1,884
Posted By konvalo
lilo question
I use redhat7.0, and I want to update kernel to 2.4.0,I make following steps:
#gzip -cd linux-2.4.0.tar.gz | tar xvf -
#cd linux
#make mrproper
#make config
#make dep
#make bzdisk
#make...
Forum: Programming 04-30-2010
6,248
Posted By konvalo
getaddrinfo error:service name not available for the specified socket type
I use Solaris 10,and I use getaddrinfo in my code,like follows:

struct addrinfo *ailist,hint;
if(argc!=2)
err_quit("usage: ruptime hostname");
hint.ai_flags=0;
hint.ai_family=0;...
Forum: Programming 01-05-2010
2,173
Posted By konvalo
Java can call C under Unix?
Under windows environment,I can compile C code into dll,then I can use Java to call this dll. I want to know whether Java can call C under Unix environment? How to do it? Where can I get example Java...
Forum: Programming 12-11-2009
8,053
Posted By konvalo
warning: passing arg 1 of `inet_addr' makes pointer from integer without a cast
I use solaris10,following is tcp client code:
#include "cliserv.h"
int main(int argc,char argv[]){
struct sockaddr_in serv;
char request[REQUEST],reply[REPLY];
int sockfd,n;
if(argc!=2)...
1,833
Posted By konvalo
Search linux which core version is 2.4.0
I want to use linux which core version is 2.4.0,so I want to know which version linux contains core 2.4.0? Where can I get this version linux?

Thanks
Forum: Red Hat 12-03-2009
1,809
Posted By konvalo
Where is core version 2.4.0?
I want to use linux which core version is 2.4.0,so I want to know which version redhat linux contains core 2.4.0? Where can I get this version redlinux?

Thanks
Forum: Solaris 11-18-2009
5,882
Posted By konvalo
Why gdb can't run?
My OS is Solaris10,I download gdb-7.0.tar.gz,and install it,I use following commands:
./configure
make

Then I enter gdb,but I can't run it!
$gdb
-bash: gdb: command not found

Where is...
Forum: Programming 11-12-2009
8,603
Posted By konvalo
I know there are two arguments in...
I know there are two arguments in sigwait(&mask,&signo),and there is single argument int sigwait(sigset_t *set) function, sigwait(&mask,&signo) can run under unix system,but can't run under solaris...
Forum: Programming 11-12-2009
8,603
Posted By konvalo
Error: too many arguments to function 'sigwait'
#include <pthread.h>
#include <signal.h>
...
sigset_t mask;
int err,signo;
err=sigwait(&mask,&signo);
switch(signo){
case SIGINT:
...
}

when I compile above code under solaris 10,it...
Forum: Programming 11-03-2009
7,911
Posted By konvalo
Where is nanosleep?
I use nanosleep under solaris10,like follows:

#include <pthread.h>
#include <time.h>
#include <sys/time.h>
struct to_info{
void (*to_fn)(void *);
void *to_arg;
struct timespec...
Forum: Programming 09-18-2009
15,144
Posted By konvalo
why printf don't work?
I use Solaris 10, I use following code:
#include <signal.h>
int main(void){
printf("----------testing-----------");
if(signal(SIGUSR1,sig_usr)==SIG_ERR)
err_sys("can't catch SIGUSR1");
...
Forum: Programming 09-02-2009
12,879
Posted By konvalo
'SIGHUP','SIGTSTP' undeclared
I compile following statement
signal(SIGHUP,sig_hup);
kill(getpid(),SIGTSTP);
$gcc test.c
it raise following error:
error:'SIGHUP' undeclared (first use in this function)
error:'SIGTSTP'...
Forum: Programming 06-29-2009
7,241
Posted By konvalo
warning: int format,pid_t arg (arg 2)
I try following code under Solaris10,like follows:

int glob = 6;
int main(void)
{
int var;
pid_t pid;
var = 88;
printf("before vfork\n");
if ((pid = vfork()) < 0) {
...
Forum: Programming 06-05-2009
16,738
Posted By konvalo
What's the meaning of gcc -lnsl
What's the meaning of gcc -lnsl ,which condition will it use -lnsl parameter?

Thanks
Forum: Programming 06-05-2009
3,008
Posted By konvalo
why daytime don't work?
Following code is detecting solaris daytime,when I run it,I can't get any result,code is follows:

#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>...
Forum: Programming 06-04-2009
3,969
Posted By konvalo
which head file define '_IO_*'
Under Solaris 10,I compile following file,

#include <sys/types.h>
#include <sys/stat.h>
#include <sys/termios.h>
#include <sys/ioctl.h>
#include <stdio.h>
#include <stdlib.h>
#include...
Forum: Programming 05-26-2009
7,656
Posted By konvalo
My OS is Solaris 10,which head file the major and...
My OS is Solaris 10,which head file the major and minor function defined?
Forum: Programming 05-25-2009
7,656
Posted By konvalo
which head file for major and minor function?
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/termios.h>
#include <stdio.h>
#include <stdlib.h>
#include <stddef.h>
#include <string.h>
#include <unistd.h>
#include...
2,515
Posted By konvalo
chmod question
I have two files,like follows:

$ls -l foo bar
-rw------- bar
-rw-rw-rw- foo

Then I execute follow code:

chmod("foo",(statbuf.st_mode & ~S_IXGRP) | S_ISGID)
chmod("bar",S_IRUSR |...
4,404
Posted By konvalo
I know when a umask of 0,the 'group' and 'other'...
I know when a umask of 0,the 'group' and 'other' permissions are stripped from 'RWRWRW',but I don't understand 'user' permission is still rw- ?

Thanks
4,404
Posted By konvalo
umask question
I use following code

#include <fcntl.h>
#define RWRWRW (S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP | S_IROTH | S_IWOTH)

int main(void){
umask(0);
create("foo",RWRWRW);
umask(S_IRGRP |...
Forum: Programming 01-05-2009
3,644
Posted By konvalo
why printf() function don't go work?
I use FreeBSD,and use signal,like follows:
signal(SIGHUP,sig_hup);
signal(SIGIO,sig_io);

when I run call following code,it can run,but I find a puzzled question,it should print some...
Showing results 1 to 25 of 29

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