.\" -*- coding: UTF-8 -*- .\" Copyright (C) 2002 Andries Brouwer (aeb@cwi.nl) .\" .\" %%%LICENSE_START(VERBATIM) .\" Permission is granted to make and distribute verbatim copies of this .\" manual provided the copyright notice and this permission notice are .\" preserved on all copies. .\" .\" Permission is granted to copy and distribute modified versions of this .\" manual under the conditions for verbatim copying, provided that the .\" entire resulting derived work is distributed under the terms of a .\" permission notice identical to this one. .\" .\" Since the Linux kernel and libraries are constantly changing, this .\" manual page may be incorrect or out-of-date. The author(s) assume no .\" responsibility for errors or omissions, or for damages resulting from .\" the use of the information contained herein. The author(s) may not .\" have taken the same level of care in the production of this manual, .\" which is licensed free of charge, as they might when working .\" professionally. .\" .\" Formatted or processed versions of this manual, if unaccompanied by .\" the source, must acknowledge the copyright and authors of this work. .\" %%%LICENSE_END .\" .\" Inspired by a page written by Walter Harms. .\" .\"******************************************************************* .\" .\" This file was generated with po4a. Translate the source file. .\" .\"******************************************************************* .TH GETFSENT 3 "15 Septiembre 2017" GNU "Manual del Programador de Linux" .SH NOMBRE getfsent, getfsspec, getfsfile, setfsent, endfsent \- manejo de entradas de fstab .SH SINOPSIS \fB#include \fP .PP \fBvoid endfsent(void);\fP .PP \fBstruct fstab *getfsent(void);\fP .PP \fBstruct fstab *getfsfile(const char *\fP\fImount_point\fP\fB);\fP .PP \fBstruct fstab *getfsspec(const char *\fP\fIspecial_file\fP\fB);\fP .PP \fBint setfsent(void);\fP .SH DESCRIPCIÓN These functions read from the file \fI/etc/fstab\fP. The \fIstruct fstab\fP is defined by: .PP .in +4n .EX struct fstab { char *fs_spec; /* nombre del dispositivo de bloques */ char *fs_file; /* punto de montaje */ char *fs_vfstype; /* tipo de sistema de ficheros */ char *fs_mntops; /* opciones de montaje */ const char *fs_type; /* opción rw/rq/ro/sw/xx */ int fs_freq; /* frecuencia de volcado (dump), en días */ int fs_passno; /* número de paso en volcado paralelo */ }; .EE .in .PP El campo \fIfs_type\fP contiene (en un sistema *BSD) una de las cinco cadenas "rw", "rq", "ro", "sw", "xx" (lectura\-escritura, lectura\-escritura con cuotas, sólo\-lectura, intercambio (swap), ignorar). .PP La función \fBsetfsent\fP() abre el fichero cuando se le solicita y lo posiciona en la primera línea. .PP La función \fBgetfsent\fP() analiza la siguiente línea del fichero. (Después de abrirlo si era necesario.) .PP La función \fBendfsent\fP() cierra el fichero cuando se le solicita. .PP La función \fBgetfsspec\fP() busca en el fichero desde el principio y devuelve la primera entrada encontrada para la cual el campo \fIfs_spec\fP coincida con el argumento \fIspecial_file\fP. .PP La función \fBgetfsfile\fP() busca en el fichero desde el principio y devuelve la primera entrada encontrada para la cual el campo \fIfs_file\fP coincida con el argumento \fImount_point.\fP .SH "VALOR DEVUELTO" .\" .SH HISTORY .\" The .\" .BR getfsent () .\" function appeared in 4.0BSD; the other four functions appeared in 4.3BSD. Upon success, the functions \fBgetfsent\fP(), \fBgetfsfile\fP(), and \fBgetfsspec\fP() return a pointer to a \fIstruct fstab\fP, while \fBsetfsent\fP() returns 1. Upon failure or end\-of\-file, these functions return NULL and 0, respectively. .SH ATRIBUTOS Para obtener una explicación de los términos usados en esta sección, véase \fBattributes\fP(7). .TS allbox; lb lb lbw24 l l l. Interfaz Atributo Valor T{ \fBendfsent\fP(), .br \fBsetfsent\fP() T} Seguridad del hilo MT\-Unsafe race:fsent T{ \fBgetfsent\fP(), .br \fBgetfsspec\fP(), .br \fBgetfsfile\fP() T} Seguridad del hilo MT\-Unsafe race:fsent locale .TE .SH "CONFORME A" These functions are not in POSIX.1. Several operating systems have them, for example, *BSD, SunOS, Digital UNIX, AIX (which also has a \fBgetfstype\fP()). HP\-UX has functions of the same names, that however use a \fIstruct checklist\fP instead of a \fIstruct fstab\fP, and calls these functions obsolete, superseded by \fBgetmntent\fP(3). .SH NOTAS Estas funciones son hilo\-seguro. .PP Puesto que Linux permite montar un dispositivo especial de bloques en diferentes lugares, y puesto que varios dispositivos pueden tener el mismo punto de montaje, donde el último dispositivo con un punto de montaje dado es el que cuenta, dado que \fBgetfsfile\fP() y \fBgetfsspec\fP() sólo devuelven la primera ocurrencia, estas dos funciones no son adecuadas para ser usadas bajo Linux. .SH "VÉASE TAMBIÉN" \fBgetmntent\fP(3), \fBfstab\fP(5) .SH COLOFÓN Esta página es parte de la versión 5.10 del proyecto Linux \fIman\-pages\fP. Puede encontrar una descripción del proyecto, información sobre cómo informar errores y la última versión de esta página en \%https://www.kernel.org/doc/man\-pages/. .PP .SH TRADUCCIÓN La traducción al español de esta página del manual fue creada por Miguel Pérez Ibars . .PP Esta traducción es documentación libre; lea la .UR https://www.gnu.org/licenses/gpl-3.0.html GNU General Public License Version 3 .UE o posterior con respecto a las condiciones de copyright. No existe NINGUNA RESPONSABILIDAD. .PP Si encuentra algún error en la traducción de esta página del manual, envíe un correo electrónico a .MT debian-l10n-spanish@lists.debian.org .ME .