diff options
author | Aaron Plattner <aplattner@nvidia.com> | 2008-02-13 10:20:36 -0800 |
---|---|---|
committer | Aaron Plattner <aplattner@nvidia.com> | 2008-02-13 10:20:36 -0800 |
commit | 6d2a0069d419975ba01c2c423b18ef7cd2e76a6f (patch) | |
tree | 130e177fc9fa77d4c7d0788ba07c3b5af42dd84f /misc.h |
1.0-61061.0-6106
Diffstat (limited to 'misc.h')
-rw-r--r-- | misc.h | 68 |
1 files changed, 68 insertions, 0 deletions
@@ -0,0 +1,68 @@ +/* + * nvidia-installer: A tool for installing NVIDIA software packages on + * Unix and Linux systems. + * + * Copyright (C) 2003 NVIDIA Corporation + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License as + * published by the Free Software Foundation; either version 2 of the + * License, or (at your option) any later version. + * + * 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, write to the: + * + * Free Software Foundation, Inc. + * 59 Temple Place - Suite 330 + * Boston, MA 02111-1307, USA + * + * + * misc.h + */ + +#ifndef __NVIDIA_INSTALLER_MISC_H__ +#define __NVIDIA_INSTALLER_MISC_H__ + +#include <stdio.h> +#include <stdarg.h> + +#include "nvidia-installer.h" +#include "command-list.h" + +void *nvalloc(size_t size); +void *nvrealloc(void *ptr, size_t size); +char *nvstrdup(const char *s); +void nvfree(char *s); +char *nvstrtolower(char *s); +char *nvstrcat(const char *str, ...); +char *read_next_word (char *buf, char **e); +char *assemble_string(const char *fmt, va_list ap); + +int check_euid(Options *op); +int check_runlevel(Options *op); +int adjust_cwd(Options *op, const char *program_name); +char *fget_next_line(FILE *fp, int *eof); +char *get_next_line(char *buf, char **e); +int run_command(Options *op, const char *cmd, char **data, + int output, int status, int redirect); +int find_system_utils(Options *op); +int nvid_version (const char *str, int *major, int *minor, int *patch); +int continue_after_error(Options *op, const char *fmt, ...); +int do_install(Options *op, Package *p, CommandList *c); +void should_install_opengl_headers(Options *op, Package *p); +void check_installed_files_from_package(Options *op, Package *p); +unsigned int get_installable_file_mask(Options *op); +int tls_test(Options *op, int compat_32_libs); +Distribution get_distribution(Options *op); +int check_for_running_x(Options *op); + +TextRows *nv_format_text_rows(const char *prefix, const char *buf, + int width, int word_boundary); +void nv_free_text_rows(TextRows *t); + +#endif /* __NVIDIA_INSTALLER_MISC_H__ */ |