Fix umpnpmgr build
[reactos.git] / rosapps / mc / slang / slsignal.c
index 7d4c19d..4596da7 100644 (file)
@@ -21,7 +21,7 @@ SLSig_Fun_Type *SLsignal (int sig, SLSig_Fun_Type *f)
 {
 #ifdef SLANG_POSIX_SIGNALS
    struct sigaction old_sa, new_sa;
-   
+
 # ifdef SIGALRM
    /* We want system calls to be interrupted by SIGALRM. */
    if (sig == SIGALRM) return SLsignal_intr (sig, f);
@@ -29,15 +29,15 @@ SLSig_Fun_Type *SLsignal (int sig, SLSig_Fun_Type *f)
 
    sigemptyset (&new_sa.sa_mask);
    new_sa.sa_handler = f;
-   
+
    new_sa.sa_flags = 0;
 # ifdef SA_RESTART
    new_sa.sa_flags |= SA_RESTART;
 # endif
-   
+
    if (-1 == sigaction (sig, &new_sa, &old_sa))
      return (SLSig_Fun_Type *) SIG_ERR;
-   
+
    return old_sa.sa_handler;
 #else
    /* Not POSIX. */
@@ -45,25 +45,25 @@ SLSig_Fun_Type *SLsignal (int sig, SLSig_Fun_Type *f)
 #endif
 }
 
-/* This function will NOT cause system calls to be restarted after 
- * signal if possible 
+/* This function will NOT cause system calls to be restarted after
+ * signal if possible
  */
 SLSig_Fun_Type *SLsignal_intr (int sig, SLSig_Fun_Type *f)
 {
 #ifdef SLANG_POSIX_SIGNALS
    struct sigaction old_sa, new_sa;
-   
+
    sigemptyset (&new_sa.sa_mask);
    new_sa.sa_handler = f;
-   
+
    new_sa.sa_flags = 0;
 # ifdef SA_INTERRUPT
    new_sa.sa_flags |= SA_INTERRUPT;
 # endif
-   
+
    if (-1 == sigaction (sig, &new_sa, &old_sa))
      return (SLSig_Fun_Type *) SIG_ERR;
-   
+
    return old_sa.sa_handler;
 #else
    /* Not POSIX. */
@@ -72,7 +72,7 @@ SLSig_Fun_Type *SLsignal_intr (int sig, SLSig_Fun_Type *f)
 }
 
 
-/* We are primarily interested in blocking signals that would cause the 
+/* We are primarily interested in blocking signals that would cause the
  * application to reset the tty.  These include suspend signals and
  * possibly interrupt signals.
  */
@@ -87,13 +87,13 @@ int SLsig_block_signals (void)
 #ifdef SLANG_POSIX_SIGNALS
    sigset_t new_mask;
 #endif
-   
+
    Blocked_Depth++;
    if (Blocked_Depth != 1)
      {
        return 0;
      }
-   
+
 #ifdef SLANG_POSIX_SIGNALS
    sigemptyset (&new_mask);
 # ifdef SIGQUIT
@@ -111,7 +111,7 @@ int SLsig_block_signals (void)
 # ifdef SIGTTOU
    sigaddset (&new_mask, SIGTTOU);
 # endif
-   
+
    (void) sigprocmask (SIG_BLOCK, &new_mask, &Old_Signal_Mask);
    return 0;
 #else
@@ -124,12 +124,12 @@ int SLsig_unblock_signals (void)
 {
    if (Blocked_Depth == 0)
      return -1;
-   
+
    Blocked_Depth--;
-   
+
    if (Blocked_Depth != 0)
      return 0;
-   
+
 #ifdef SLANG_POSIX_SIGNALS
    (void) sigprocmask (SIG_SETMASK, &Old_Signal_Mask, NULL);
    return 0;