]>
git.proxmox.com Git - mirror_ovs.git/blob - lib/stdio.c
2 * Copyright (c) 2013 Nicira, Inc.
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at:
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
20 #include <sys/types.h>
27 ovs_snprintf(char *s
, size_t n
, const char *format
, ... )
32 va_start(args
, format
);
33 len
= ovs_vsnprintf(s
, n
, format
, args
);
40 ovs_vsnprintf(char *s
, size_t n
, const char *format
, va_list args
)
42 int needed
= _vscprintf(format
, args
);
44 vsnprintf(s
, n
, format
, args
);
51 fseeko(FILE *stream
, off_t offset
, int whence
)
54 error
= _fseeki64(stream
, offset
, whence
);