proc.h (4e8872c8002a7c641a3f6a0809d428608e4cfbbc) | proc.h (26b6a67b98153462d8a708461c9479e7a9b3a16d) |
---|---|
1/*- 2 * SPDX-License-Identifier: BSD-4-Clause 3 * 4 * Copyright (C) 1995, 1996 Wolfgang Solfrank. 5 * Copyright (C) 1995, 1996 TooLs GmbH. 6 * All rights reserved. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 32 unchanged lines hidden (view full) --- 41 * Machine-dependent part of the proc structure 42 */ 43struct mdthread { 44 int md_spinlock_count; /* (k) */ 45 register_t md_saved_msr; /* (k) */ 46}; 47 48struct mdproc { | 1/*- 2 * SPDX-License-Identifier: BSD-4-Clause 3 * 4 * Copyright (C) 1995, 1996 Wolfgang Solfrank. 5 * Copyright (C) 1995, 1996 TooLs GmbH. 6 * All rights reserved. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 32 unchanged lines hidden (view full) --- 41 * Machine-dependent part of the proc structure 42 */ 43struct mdthread { 44 int md_spinlock_count; /* (k) */ 45 register_t md_saved_msr; /* (k) */ 46}; 47 48struct mdproc { |
49 /* Avoid empty structs, that have undefined behavior in C99 and 50 * make compilers complain about it 51 * (empty struct has size 0 in C, size 1 in C++). | 49 /* 50 * Avoid empty structs because they are undefined behavior. |
52 */ 53 long md_spare; 54}; 55 56#ifdef __powerpc64__ 57#define KINFO_PROC_SIZE 1088 58#define KINFO_PROC32_SIZE 816 59#else --- 25 unchanged lines hidden --- | 51 */ 52 long md_spare; 53}; 54 55#ifdef __powerpc64__ 56#define KINFO_PROC_SIZE 1088 57#define KINFO_PROC32_SIZE 816 58#else --- 25 unchanged lines hidden --- |