~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/include/uapi/linux/acct.h

Version: ~ [ linux-6.12-rc7 ] ~ [ linux-6.11.7 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.60 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.116 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.171 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.229 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.285 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.323 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.12 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

Diff markup

Differences between /include/uapi/linux/acct.h (Version linux-6.12-rc7) and /include/uapi/linux/acct.h (Version linux-4.19.322)


** Warning: Cannot open xref database.

  1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux      1 
  2 /*                                                
  3  *  BSD Process Accounting for Linux - Definit    
  4  *                                                
  5  *  Author: Marco van Wieringen (mvw@planets.e    
  6  *                                                
  7  *  This header file contains the definitions     
  8  *  BSD-style process accounting. The kernel a    
  9  *  user-level programs that try to do somethi    
 10  *  process accounting log must include this f    
 11  *                                                
 12  *  Copyright (C) 1995 - 1997 Marco van Wierin    
 13  *                                                
 14  */                                               
 15                                                   
 16 #ifndef _UAPI_LINUX_ACCT_H                        
 17 #define _UAPI_LINUX_ACCT_H                        
 18                                                   
 19 #include <linux/types.h>                          
 20                                                   
 21 #include <asm/param.h>                            
 22 #include <asm/byteorder.h>                        
 23                                                   
 24 /*                                                
 25  *  comp_t is a 16-bit "floating" point number    
 26  *  exponent and a 13-bit fraction.               
 27  *  comp2_t is 24-bit with 5-bit base 2 expone    
 28  *  (leading 1 not stored).                       
 29  *  See linux/kernel/acct.c for the specific e    
 30  */                                               
 31                                                   
 32 typedef __u16   comp_t;                           
 33 typedef __u32   comp2_t;                          
 34                                                   
 35 /*                                                
 36  *   accounting file record                       
 37  *                                                
 38  *   This structure contains all of the inform    
 39  *   process accounting file whenever a proces    
 40  */                                               
 41                                                   
 42 #define ACCT_COMM       16                        
 43                                                   
 44 struct acct                                       
 45 {                                                 
 46         char            ac_flag;                  
 47         char            ac_version;               
 48         /* for binary compatibility back until    
 49         __u16           ac_uid16;                 
 50         __u16           ac_gid16;                 
 51         __u16           ac_tty;                   
 52         /* __u32 range means times from 1970 t    
 53         __u32           ac_btime;                 
 54         comp_t          ac_utime;                 
 55         comp_t          ac_stime;                 
 56         comp_t          ac_etime;                 
 57         comp_t          ac_mem;                   
 58         comp_t          ac_io;                    
 59         comp_t          ac_rw;                    
 60         comp_t          ac_minflt;                
 61         comp_t          ac_majflt;                
 62         comp_t          ac_swaps;                 
 63 /* m68k had no padding here. */                   
 64 #if !defined(CONFIG_M68K) || !defined(__KERNEL    
 65         __u16           ac_ahz;                   
 66 #endif                                            
 67         __u32           ac_exitcode;              
 68         char            ac_comm[ACCT_COMM + 1]    
 69         __u8            ac_etime_hi;              
 70         __u16           ac_etime_lo;              
 71         __u32           ac_uid;                   
 72         __u32           ac_gid;                   
 73 };                                                
 74                                                   
 75 struct acct_v3                                    
 76 {                                                 
 77         char            ac_flag;                  
 78         char            ac_version;               
 79         __u16           ac_tty;                   
 80         __u32           ac_exitcode;              
 81         __u32           ac_uid;                   
 82         __u32           ac_gid;                   
 83         __u32           ac_pid;                   
 84         __u32           ac_ppid;                  
 85         /* __u32 range means times from 1970 t    
 86         __u32           ac_btime;                 
 87 #ifdef __KERNEL__                                 
 88         __u32           ac_etime;                 
 89 #else                                             
 90         float           ac_etime;                 
 91 #endif                                            
 92         comp_t          ac_utime;                 
 93         comp_t          ac_stime;                 
 94         comp_t          ac_mem;                   
 95         comp_t          ac_io;                    
 96         comp_t          ac_rw;                    
 97         comp_t          ac_minflt;                
 98         comp_t          ac_majflt;                
 99         comp_t          ac_swaps;                 
100         char            ac_comm[ACCT_COMM];       
101 };                                                
102                                                   
103 /*                                                
104  *  accounting flags                              
105  */                                               
106                                 /* bit set whe    
107 #define AFORK           0x01    /* ... execute    
108 #define ASU             0x02    /* ... used su    
109 #define ACOMPAT         0x04    /* ... used co    
110 #define ACORE           0x08    /* ... dumped     
111 #define AXSIG           0x10    /* ... was kil    
112 #define AGROUP          0x20    /* ... was the    
113                                                   
114 #if defined(__BYTE_ORDER) ? __BYTE_ORDER == __    
115 #define ACCT_BYTEORDER  0x80    /* accounting     
116 #elif defined(__BYTE_ORDER) ? __BYTE_ORDER ==     
117 #define ACCT_BYTEORDER  0x00    /* accounting     
118 #else                                             
119 #error unspecified endianness                     
120 #endif                                            
121                                                   
122 #ifndef __KERNEL__                                
123 #define ACCT_VERSION    2                         
124 #define AHZ             (HZ)                      
125 #endif  /* __KERNEL */                            
126                                                   
127                                                   
128 #endif /* _UAPI_LINUX_ACCT_H */                   
129                                                   

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php