/* * Mausezahn - A fast versatile traffic generator * Copyright (C) 2008-2010 Herbert Haas * * This program is free software; you can redistribute it and/or modify it under * the terms of the GNU General Public License version 2 as published by the * Free Software Foundation. * * This program is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more * details. * * You should have received a copy of the GNU General Public License along with * this program; if not, see http://www.gnu.org/licenses/gpl-2.0.html * */ #include "mz.h" // Returns a nice string with default and current value of a given variable // // EXAMPLE: // // char mystring[256]; // mz_def16 ("20 seconds", pd->max_age, mystring) // int mz_def16 (char *def, u_int16_t val, char *str256) { str256[0]=0x00; sprintf(str256, "The default value is %s. The current value is %u (0x%04x).", def, val, val); return 0; } ='selected'>master net-next plumbingsTobias Klauser
summaryrefslogtreecommitdiff
path: root/.mailmap
diff options
context:
space:
mode:
authorJames Bottomley <James.Bottomley@HansenPartnership.com>2016-02-17 16:49:38 -0800
committerJames Bottomley <James.Bottomley@HansenPartnership.com>2016-03-30 14:12:22 -0700
commit9a08c352d05305ca7651540c3b107da1e4e1f40b (patch)
treed8b850a2330ab9f98c5a1c00fe54ac741e6e6c82 /.mailmap
parentf55532a0c0b8bb6148f4e07853b876ef73bc69ca (diff)
fs: add filp_clone_open API
I need an API that allows me to obtain a clone of the current file pointer to pass in to an exec handler. I've labelled this as an internal API because I can't see how it would be useful outside of the fs subsystem. The use case will be a persistent binfmt_misc handler. Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com> Acked-by: Serge Hallyn <serge.hallyn@canonical.com> Acked-by: Jan Kara <jack@suse.cz>
Diffstat (limited to '.mailmap')