One last macro question. I keep getting errors when I reply
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Unix and Linux reviews > Free Unix support > Unix Programming > One last macro question. I keep getting errors when I reply




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    One last macro question. I keep getting errors when I reply  
K-mart Cashier


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
05-23-07 12:26 AM

I tried to reply to the original thread, but I keep getting messages
like server has encountered an internal error. Please try again later
on.

I have one last question on the macros below

> Here is what is copied and pasted from my terminal
>
> #ifdef LOCK_LOCKF
> #ifdef HAVE_SYS_FILE_H
> #include <sys/lockf.h>
> #endif
> #ifdef HAVE_SYS_FILE_H
> #include <sys/file.h>
> #endif
> #define LOCK(file)      fseek(file, 0L, 0), lockf(file, 1, 0L)
> #define UNLOCK(file)    fseek(file, 0L, 0), lockf(file, 0, 0L)
> #endif /* LOCK_LOCKF */
>
> #ifdef LOCK_LOCKING
> #ifdef HAVE_SYS_LOCKING_H
> #include <sys/locking.h>
> #endif
> #define LOCK(file)      fseek(file, 0L, 0), chk_lock(file, 1)
> #define UNLOCK(file)    fseek(file, 0L, 0), chk_lock(file, 0)
> #endif /* LOCK_LOCKING */
>
> #ifdef LOCK_NONE
> #define LOCK(file)
> #define UNLOCK(file)
> #endif /* LOCK_NONE */
>
> #ifdef SUID
> #define CHN_MODE 0644
> #define DEP_MODE 0600
> #define USR_MODE 0600

Are the names LOCK_LOCKF and LOCK_LOCKING chosen at random? Ie could
the author have just used LOCKF and LOCKING instead?






[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 03:40 AM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register