09-20-2001
why doesn't this work?????
i keep getting the following error with the code segment below when i try to compile the program.
parse error before '('
parse error before ')'
stray '\' in program
this is the code segment and the error is on the second line of the segment
#define DEBUG(fmt) if(traceflag) { \
fprintf(stderr, fmt, arg1); \
.
.
.
Thank you in advance to all who reply to this thread
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
for those who have read my earlier posts i have been trying for about a week and a half to get my internet connection working with no results...
my isp is ex-pressnet (in VA)...one-way cable internet service (dial-up for uploads, cable for downloads) using a com21 cable modem...this is extremly... (6 Replies)
Discussion started by: justchillin
6 Replies
2. Shell Programming and Scripting
I wonder how I shall read the result below, especially 'what'
shown below.
The result was shown when I entered 'w'.
E.g what is TOP? What is gosh ( what does selmgr mean?)?
login@ idle JCPU PCPU what
6:15am 7:04 39 39 TOP
6:34am 6:45 45 45 TOP
6:41am ... (1 Reply)
Discussion started by: Aelgen
1 Replies
3. Windows & DOS: Issues & Discussions
My system is combined by Win98 and sco opensever.......but when Win98 is starting .my computer doesn't respond........what can i do? (1 Reply)
Discussion started by: dingxf
1 Replies
4. UNIX for Dummies Questions & Answers
Hello:
I'm trying to run repquota -ag > /home/usersdir/repquota.txt as a daily cronjob at midnight, but the file always ends up blank.
I even tried writing a quick Perl script to e-mail me what running that command outputs, and it's nothing.
Can root run repquota as a cronjob? Do I have... (1 Reply)
Discussion started by: b416
1 Replies
5. Shell Programming and Scripting
I am trying to run the following code from a script file but it complains that syntax of (both instances of) grep is wrong.
When I copy and paste it to the terminal, it is OK. Any idea what the problem might be?
set i = `grep -c #define flags.h`
while ($i>20)
@ i--
my func (`cat... (4 Replies)
Discussion started by: barisgultekin
4 Replies
6. UNIX for Dummies Questions & Answers
As part of a NIS implementation, (I think) I want to create a group (in /etc/group) that has users that do not exist on the target machine.
What effect will this have? Will it cause any problems?
Thanks,
Gary Cooper (1 Reply)
Discussion started by: Gary Cooper
1 Replies
7. UNIX for Dummies Questions & Answers
Hi guys, I've been trying to unmount a floppy like this:
unmount /mnt/floppy
But then I get a "command not found" message."mount" works,but why not unmount? I've also tried "eject" but all it does is open up my cdrom drive and I tried "eject /mnt/floppy" but I get an error that says Invalid... (2 Replies)
Discussion started by: DISTURBED
2 Replies
8. UNIX for Dummies Questions & Answers
CO UNixware 7.1.1
Hi friends,
I have chopped my case statementt out of my .profile and put it in another script called setsid. The case statement works when run from my .profile but not from my setsid file.
All that the script does is set an environmental variable based on user input.... (7 Replies)
Discussion started by: sureshy
7 Replies
9. Windows & DOS: Issues & Discussions
Hello!
Will someone help me find a solution to my computer systems which as windows 98 and Windows 2000 professional running on it. After shutting down the system the system will prompt system shutdown but it will not power off the system( the system as an ATX power system) . Therefore it is as... (1 Reply)
Discussion started by: kayode
1 Replies
10. UNIX for Dummies Questions & Answers
Howdie everyone...
I have a shell script RemoveFiles.sh
Inside this file, it only has two commands as below:
rm -f ../../reportToday/temp/*
rm -f ../../report/*
My problem is that when i execute this script, nothing happened. Files remained unremoved. I don't see any error message as it... (2 Replies)
Discussion started by: cheongww
2 Replies
LEARN ABOUT SUNOS
rsm_memseg_release_pollfd
rsm_memseg_get_pollfd(3RSM) Remote Shared Memory Library Functions rsm_memseg_get_pollfd(3RSM)
NAME
rsm_memseg_get_pollfd, rsm_memseg_release_pollfd - get or release a poll descriptor
SYNOPSIS
cc [ flag... ] file... -lrsm [ library... ]
#include <rsmapi.h>
int rsm_memseg_get_pollfd(void *memseg, struct pollfd *fd);
int rsm_memseg_release_pollfd(void *memseg);
DESCRIPTION
The rsm_memseg_get_pollfd() and rsm_memseg_release_pollfd() functions provide an alternative to rsm_intr_signal_wait(3RSM). The waiting
process can multiplex event waiting using the poll(2) function after first obtaining a poll descriptor using rsm_memseg_get_pollfd(). The
descriptor can subsequently be released using rsm_memseg_release_pollfd().
As a result of a call rsm_memseg_get_pollfd(), the specified pollfd structure is initialized with a descriptor for the specified segment
(memseg) and the event generated by rsm_intr_signal_post(3RSM). Either an export segment handle or an import segment handle can be type
cast to a void pointer. The pollfd argument can subsequently be used with the rsm_intr_signal_wait_pollfd(3RSM) function to wait for the
event; it cannot be used with poll(). If memseg references an export segment, the segment must be currently published. If memseg refer-
ences an import segment, the segment must be connected.
The rsm_memseg_reslease_pollfd() function decrements the reference count of the pollfd structure associated with the specified segment. A
segment unpublish, destroy or unmap operation will fail if the reference count is non-zero.
RETURN VALUES
Upon successful completion, these functions return 0. Otherwise, an error value is returned to indicate the error.
ERRORS
The rsm_memseg_get_pollfd() and rsm_memseg_release_pollfd() function can return the following error:
RSMERR_BAD_SEG_HNDL Invalid segment handle.
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Interface Stability |Evolving |
+-----------------------------+-----------------------------+
|MT-Level |MT-Safe |
+-----------------------------+-----------------------------+
SEE ALSO
poll(2), rsm_intr_signal_post(3RSM), rsm_intr_signal_wait_pollfd(3RSM), attributes(5)
SunOS 5.10 1 Dec 2002 rsm_memseg_get_pollfd(3RSM)