Google Groups Home
Help | Sign in
comp . unix . programmer
This is a Usenet group - learn more
Find or start a Google Group about programmer.
Related Groups
All issues about multithreaded programming.
Medium activity, Usenet
Writing Linux applications, porting to Linux.
Low activity, Usenet
Linux kernels, device drivers, modules.
Low activity, Usenet
Discussions
View:  Topic list, Topic summary Topics 1 - 10 of 57790  Older »
Description: Q&A for people programming under Unix.
 

Increment a number in compile time macro 
  switch(i) { case 1: break; case 2: break; [...] case N: break; ...Now, after some time I want to add a 'case 2' between case 1 and case 2, the result means every case number after case 2 need to be incremented by 1, it there a macro tricks to make life easier? Such as: switch(i) { case AUTO_INC_MACRO:... more »
By Bin Chen  - 2:27am - 2 new of 2 messages    

I need ideas on how to resume a stopped program... 
  Let's say that I have a program that downloads an unknown number of 2MB files from a remote server. Now after say the 500th file tranasfer, I want to stop the program via ctrl -c. Then say 6 hours later, I want to pick up where I left off. Ie, I want to start to download the 501st file. I clearly need to somehow save the state. What would be some sane... more »
By Chad  - Sep 6 - 10 new of 10 messages    

timout file lock request 
  Hi I would like to make a blocking request for a lock on a file, but have the request abort if unsuccessful after some specified timeout. What are the possible methods and what are the advantages/disadvantages? The only thing I can think of is to use alarm() or similar to interrupt a system call.... more »
By viza  - Sep 5 - 4 new of 4 messages    

Specifying a specific library should be linked statically instead of dynamic 
  Is there a way to specify that a specific library on the link line should be compiled into the application statically even if a dynamic library exists? The problem is "-static" will try to make everything static, including glibc. When it is ok for those types of shared libraries to be shared. Thanks,... more »
By Brian Cole  - Sep 5 - 5 new of 5 messages    

Wanted SVR4.2 i486 complete system 
  Sorry, perhaps a bit off topic, but I did not know where else to post. I'm looking for a complete distribution of AT&T System V Release 4.2 UNIX for the i486. I would really like it on 150MB QIC tape, but will take whatever I can get as long as it is a complete system. That means I need the development set, TCP/IP, man pages, SCSI drivers, and at... more »
By TommyTune  - Sep 4 - 6 new of 6 messages    

POSIX's send() on non blocking sockets may partially write? 
  Hello I am trying to determine by reading the POSIX specification if a conforming send() implementation on a non blocking socket is allowed to return on partial writes. From what I understand if the socket is non blocking and if there isn't enough space in the buffer for the data to send then send will fail with EAGAIN. If however there is... more »
By dizzy  - Sep 4 - 5 new of 5 messages    

CREDIT CARD DEPT 
  CREDIT CARD DEPT [link]
By rose...@gmail.com  - Sep 4 - 1 new of 1 message    

Various sigaction handler questions 
  1) When processing a SEGV signal from a handler set up via sigaction(SIGSEGV,..), what has to be done to allow a core dump to occur if that is what would have happened without the handler? Exiting from the handler via exit() seems to abort the dump from being taken. 2) Is there a way to intercept asserts()?... more »
By kenkahn  - Sep 3 - 7 new of 7 messages    

Catch error while loading (dynamically loaded) shared libraries in fork() / execv() 
  Hi folks, it has recently occurred to me that in some code I was using for spawning new processes there was no mechanism of catching and handling error conditions arising from missing shared libraries. In the following sample code I assume a certain binary program is located in "/usr/local/bin/binary" which needs a dynamically loaded... more »
By ralph.schlos...@googlemail.com  - Sep 3 - 3 new of 3 messages    

How do I get the status returned by pclose() 
  The following doesn't appear to work. ...static void sig_pipe(int signo) { printf("SIGPIPE caught\n"); exit(1); ...int main(void) { FILE *ptr; int status; char buf[BUFSIZ]; signal(SIGPIPE, sig_pipe); if ((ptr = popen("/home/cdalten/oakland/a m", "r")) == NULL) { fprintf(stderr, "popen error\n");... more »
By K-mart Cashier  - Sep 2 - 7 new of 7 messages    

1 - 10 of 57790   « Newer | Older »

XML      
Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2008 Google