From 5e1a84ab74d5e97582427f016f291a8c11e66f99 Mon Sep 17 00:00:00 2001 From: jutteau Date: Fri, 11 May 2007 18:10:19 +0000 Subject: Completion du script de mise à jour de la pc-104 : * Ajout des sources de busybox dans ./conf/busybox/ * Ajout d'un fichier réclamé par les script dans ./conf/busybox.links --- i/pc104/initrd/conf/busybox/libbb/wfopen.c | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 i/pc104/initrd/conf/busybox/libbb/wfopen.c (limited to 'i/pc104/initrd/conf/busybox/libbb/wfopen.c') diff --git a/i/pc104/initrd/conf/busybox/libbb/wfopen.c b/i/pc104/initrd/conf/busybox/libbb/wfopen.c new file mode 100644 index 0000000..26e6a13 --- /dev/null +++ b/i/pc104/initrd/conf/busybox/libbb/wfopen.c @@ -0,0 +1,20 @@ +/* vi: set sw=4 ts=4: */ +/* + * Utility routines. + * + * Copyright (C) 1999-2004 by Erik Andersen + * + * Licensed under GPLv2 or later, see file LICENSE in this tarball for details. + */ + +#include "libbb.h" + +FILE *fopen_or_warn(const char *path, const char *mode) +{ + FILE *fp = fopen(path, mode); + if (!fp) { + bb_perror_msg("%s", path); + errno = 0; + } + return fp; +} -- cgit v1.2.3