sysv_shm.c (69449) | sysv_shm.c (71038) |
---|---|
1/* $FreeBSD: head/sys/kern/sysv_shm.c 69449 2000-12-01 08:57:47Z alfred $ */ | 1/* $FreeBSD: head/sys/kern/sysv_shm.c 71038 2001-01-14 18:04:30Z des $ */ |
2/* $NetBSD: sysv_shm.c,v 1.23 1994/07/04 23:25:12 glass Exp $ */ 3 4/* 5 * Copyright (c) 1994 Adam Glass and Charles Hannum. All rights reserved. 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions 9 * are met: --- 723 unchanged lines hidden (view full) --- 733 break; 734 default: 735 error = EINVAL; 736 break; 737 } 738 return (error); 739} 740 | 2/* $NetBSD: sysv_shm.c,v 1.23 1994/07/04 23:25:12 glass Exp $ */ 3 4/* 5 * Copyright (c) 1994 Adam Glass and Charles Hannum. All rights reserved. 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions 9 * are met: --- 723 unchanged lines hidden (view full) --- 733 break; 734 default: 735 error = EINVAL; 736 break; 737 } 738 return (error); 739} 740 |
741static moduledata_t sysvshm_moduledata = { 742 "sysvshm_mod", | 741static moduledata_t sysvshm_mod = { 742 "sysvshm", |
743 &sysvshm_modload, 744 NULL 745}; 746 747SYSCALL_MODULE_HELPER(shmsys, 4); 748SYSCALL_MODULE_HELPER(shmat, 3); 749SYSCALL_MODULE_HELPER(shmctl, 3); 750SYSCALL_MODULE_HELPER(shmdt, 1); 751SYSCALL_MODULE_HELPER(shmget, 3); 752 | 743 &sysvshm_modload, 744 NULL 745}; 746 747SYSCALL_MODULE_HELPER(shmsys, 4); 748SYSCALL_MODULE_HELPER(shmat, 3); 749SYSCALL_MODULE_HELPER(shmctl, 3); 750SYSCALL_MODULE_HELPER(shmdt, 1); 751SYSCALL_MODULE_HELPER(shmget, 3); 752 |
753DECLARE_MODULE(sysvshm_mod, sysvshm_moduledata, | 753DECLARE_MODULE(sysvshm, sysvshm_mod, |
754 SI_SUB_SYSV_SHM, SI_ORDER_FIRST); | 754 SI_SUB_SYSV_SHM, SI_ORDER_FIRST); |
755MODULE_VERSION(sysvshm, 1); |
|