Changeset 170 for trunk/src/sh_calls.c


Ignore:
Timestamp:
Apr 30, 2008, 11:56:45 PM (17 years ago)
Author:
katerina
Message:

Plenty of compiler warnings fixed, SQL query length fixed, doc update.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/sh_calls.c

    r169 r170  
    5959typedef struct cht_struct
    6060{
    61   char           * str;
     61  const char           * str;
    6262  unsigned long    val;
    6363} cht_type;
     
    109109/* Need to catch EINTR for these functions.
    110110 */
    111 long int retry_sigaction(char * file, int line,
     111long int retry_sigaction(const char * file, int line,
    112112                         int signum,  const  struct  sigaction  *act,
    113113                         struct sigaction *oldact)
     
    156156
    157157
    158 long int retry_connect(char * file, int line, int sockfd,
     158long int retry_connect(const char * file, int line, int sockfd,
    159159                       struct sockaddr *serv_addr, int addrlen)
    160160{
     
    209209}
    210210
    211 long int retry_accept(char * file, int line, int fd,
     211long int retry_accept(const char * file, int line, int fd,
    212212                      struct sockaddr *serv_addr, int * addrlen)
    213213{
     
    236236}
    237237
    238 long int retry_lstat(char * file, int line,
     238long int retry_lstat(const char * file, int line,
    239239                     const char *file_name, struct stat *buf)
    240240{
     
    259259}
    260260
    261 long int retry_stat(char * file, int line,
     261long int retry_stat(const char * file, int line,
    262262                    const char *file_name, struct stat *buf)
    263263{
     
    282282}
    283283
    284 long int retry_fstat(char * file, int line, int filed, struct stat *buf)
     284long int retry_fstat(const char * file, int line, int filed, struct stat *buf)
    285285{
    286286  int error;
     
    303303}
    304304
    305 long int retry_fcntl(char * file, int line, int fd, int cmd, long arg)
     305long int retry_fcntl(const char * file, int line, int fd, int cmd, long arg)
    306306{
    307307  int error;
     
    389389 ***************************************************/
    390390
    391 long int retry_aud_execve  (char * file, int line,
     391long int retry_aud_execve  (const char * file, int line,
    392392                            const  char *dateiname, char * argv[],
    393393                            char * envp[])
     
    419419
    420420
    421 long int retry_aud_utime (char * file, int line,
    422                            char * path, struct utimbuf *buf)
     421long int retry_aud_utime (const char * file, int line,
     422                          char * path, struct utimbuf *buf)
    423423{
    424424  long int val_return;
     
    450450}
    451451
    452 long int retry_aud_unlink (char * file, int line,
     452long int retry_aud_unlink (const char * file, int line,
    453453                           char * path)
    454454{
     
    477477}
    478478
    479 long int retry_aud_dup2 (char * file, int line,
     479long int retry_aud_dup2 (const char * file, int line,
    480480                         int fd, int fd2)
    481481{
     
    504504}
    505505
    506 long int retry_aud_dup (char * file, int line,
     506long int retry_aud_dup (const char * file, int line,
    507507                        int fd)
    508508{
     
    532532
    533533 
    534 long int retry_aud_chdir (char * file, int line,
     534long int retry_aud_chdir (const char * file, int line,
    535535                          const char *path)
    536536{
     
    560560
    561561
    562 long int aud_open_noatime (char * file, int line, int privs,
     562long int aud_open_noatime (const char * file, int line, int privs,
    563563                           const char *pathname, int flags, mode_t mode,
    564564                           int * o_noatime)
     
    601601}
    602602
    603 long int aud_open (char * file, int line, int privs,
     603long int aud_open (const char * file, int line, int privs,
    604604                   const char *pathname, int flags, mode_t mode)
    605605{
     
    635635}
    636636 
    637 long int aud_kill (char * file, int line, pid_t pid, int sig)
     637long int aud_kill (const char * file, int line, pid_t pid, int sig)
    638638{
    639639  int  myerror;
     
    657657 
    658658/*@noreturn@*/
    659 void aud_exit (char * file, int line, int fd)
     659void aud_exit (const char * file, int line, int fd)
    660660{
    661661  if (sh.flag.audit != 0 && (sh.flag.aud_mask & AUD_EXIT) != 0)
     
    670670
    671671/*@noreturn@*/
    672 void aud__exit (char * file, int line, int fd)
     672void aud__exit (const char * file, int line, int fd)
    673673{
    674674  if (sh.flag.audit != 0 && (sh.flag.aud_mask & AUD_EXIT) != 0)
     
    682682}
    683683
    684 pid_t aud_fork (char * file, int line)
     684pid_t aud_fork (const char * file, int line)
    685685{
    686686  int error;
     
    703703}
    704704
    705 int aud_setuid (char * file, int line, uid_t uid)
     705int aud_setuid (const char * file, int line, uid_t uid)
    706706{
    707707  int error = 0;
     
    731731}
    732732
    733 int aud_setgid (char * file, int line, gid_t gid)
     733int aud_setgid (const char * file, int line, gid_t gid)
    734734{
    735735  int error = 0;
     
    760760}
    761761
    762 int aud_pipe (char * file, int line, int * modus)
     762int aud_pipe (const char * file, int line, int * modus)
    763763{
    764764  int error;
Note: See TracChangeset for help on using the changeset viewer.