003 File Manager
Current Path:
/usr/src/contrib/sendmail/src
usr
/
src
/
contrib
/
sendmail
/
src
/
📁
..
📄
Makefile
(347 B)
📄
Makefile.m4
(4.37 KB)
📄
README
(81.76 KB)
📄
SECURITY
(7.5 KB)
📄
TRACEFLAGS
(3.1 KB)
📄
TUNING
(10.22 KB)
📄
alias.c
(22.22 KB)
📄
aliases
(1.43 KB)
📄
aliases.5
(3.15 KB)
📄
arpadate.c
(4.01 KB)
📄
bf.c
(17.58 KB)
📄
bf.h
(1007 B)
📄
collect.c
(24.45 KB)
📄
conf.c
(152.23 KB)
📄
conf.h
(7.13 KB)
📄
control.c
(8.91 KB)
📄
convtime.c
(3.56 KB)
📄
daemon.c
(99.13 KB)
📄
daemon.h
(1.46 KB)
📄
deliver.c
(151.7 KB)
📄
domain.c
(36.74 KB)
📄
envelope.c
(31.71 KB)
📄
err.c
(26.52 KB)
📄
headers.c
(50.32 KB)
📄
helpfile
(5.53 KB)
📄
macro.c
(14.86 KB)
📄
mailq.1
(3.46 KB)
📄
main.c
(108.07 KB)
📄
map.c
(177.38 KB)
📄
map.h
(3.81 KB)
📄
mci.c
(35.37 KB)
📄
milter.c
(103.43 KB)
📄
mime.c
(30.7 KB)
📄
newaliases.1
(1.27 KB)
📄
parseaddr.c
(80.3 KB)
📄
queue.c
(206.08 KB)
📄
ratectrl.c
(13.01 KB)
📄
ratectrl.h
(3.94 KB)
📄
readcf.c
(119.73 KB)
📄
recipient.c
(48.48 KB)
📄
sasl.c
(5.7 KB)
📄
savemail.c
(43.3 KB)
📄
sendmail.8
(17.31 KB)
📄
sendmail.h
(103.76 KB)
📄
sfsasl.c
(21.01 KB)
📄
sfsasl.h
(644 B)
📄
shmticklib.c
(1.51 KB)
📄
sm_resolve.c
(33.24 KB)
📄
sm_resolve.h
(5.25 KB)
📄
srvrsmtp.c
(133.04 KB)
📄
stab.c
(8.73 KB)
📄
stats.c
(4.17 KB)
📄
statusd_shm.h
(945 B)
📄
sysexits.c
(3.61 KB)
📄
timers.c
(4.29 KB)
📄
timers.h
(800 B)
📄
tls.c
(62.13 KB)
📄
tls.h
(8.1 KB)
📄
tlsh.c
(4.73 KB)
📄
trace.c
(4.25 KB)
📄
udb.c
(28.98 KB)
📄
usersmtp.c
(76.98 KB)
📄
util.c
(56.62 KB)
📄
version.c
(539 B)
Editing: shmticklib.c
/* * Copyright (c) 1999-2000 Proofpoint, Inc. and its suppliers. * All rights reserved. * * By using this file, you agree to the terms and conditions set * forth in the LICENSE file which can be found at the top level of * the sendmail distribution. * * Contributed by Exactis.com, Inc. * */ #include <sm/gen.h> SM_RCSID("@(#)$Id: shmticklib.c,v 8.15 2013-11-22 20:51:56 ca Exp $") #if _FFR_SHM_STATUS # include <sys/types.h> # include <sys/ipc.h> # include <sys/shm.h> # include "statusd_shm.h" /* ** SHMTICK -- increment a shared memory variable ** ** Parameters: ** inc_me -- identity of shared memory segment ** what -- which variable to increment ** ** Returns: ** none */ void shmtick(inc_me, what) int inc_me; int what; { static int shmid = -1; static STATUSD_SHM *sp = (STATUSD_SHM *)-1; static unsigned int cookie = 0; if (shmid < 0) { int size = sizeof(STATUSD_SHM); shmid = shmget(STATUSD_SHM_KEY, size, 0); if (shmid < 0) return; } if ((unsigned long *) sp == (unsigned long *)-1) { sp = (STATUSD_SHM *) shmat(shmid, NULL, 0); if ((unsigned long *) sp == (unsigned long *) -1) return; } if (sp->magic != STATUSD_MAGIC) { /* ** possible race condition, wait for ** statusd to initialize. */ return; } if (what >= STATUSD_LONGS) what = STATUSD_LONGS - 1; if (inc_me >= STATUSD_LONGS) inc_me = STATUSD_LONGS - 1; if (sp->ul[STATUSD_COOKIE] != cookie) { cookie = sp->ul[STATUSD_COOKIE]; ++(sp->ul[inc_me]); } ++(sp->ul[what]); } #endif /* _FFR_SHM_STATUS */
Upload File
Create Folder