.\" -*- nroff -*- .\" Copyright (C) 1995, Thomas K. Dyas .\" .\" 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. .\" .\" Created Wed Aug 9 1995 Thomas K. Dyas .\" .\" FIXME -- I can't find this in SVr4! .TH SYSFS 2 "9/08/1995" "Linux 1.3.16" "Manual do Programador Linux" .SH NOME sysfs \- obtém informações sobre o tipo do sistema de arquivo .SH SINOPSE .BI "int sysfs(int " option ", const char * " fsname ); .BI "int sysfs(int " option ", unsigned int " fs_index ", char * " buf ); .BI "int sysfs(int " option ); .SH DESCRIÇÃO .B sysfs retorna informações sobre os tipos de sistema de arquivo atualmente presente no kernel. A forma específica da chamada .B sysfs e a informação retornada depende da .I opção em ação: .TP .B 1 Traduz a cadeia de caracteres que identificadora do sistema de arquivo .I fsname dentro de um índice de tipos de sistemas de arquivos. .TP .B 2 Traduz o índice de tipo do sistema de arquivo Translate the file-system type index .I fs_index em uma cadeia de caracteres identificadora do sistema de arquivos terminada em zero. Esta cadeia será escrita para o buffer apontado por .IR buf . Tenha certeza que .I buf tenha suficiente espaço para receber a cadeia de caracteres. .TP .B 3 Retorna o número total de tipos de sistema de arquivo atualmente presentes no kernel. .PP O número do indices de tipos de sistemas de arquivos iniciados com zero. .SH "VALORES RETORNADOS" Em caso de sucesso, .B sysfs retorna o índice do sistema de arquivo para opção .BR 1 , zero para opção .BR 2 , e o número de sistemas de arquivo atualmente configurados para a opção .BR 3 . Caso contrário, \-1 é retornado, e .I errno é selecionado apropriadamente. .SH ERROS .TP .B EINVAL .I fsname não é um tipo de identificador de sistema de arquivo válido; .I fs_index é fora do limite; .I opção inválida. .TP .B EFAULT .RI "Either " fsname " or " buf está fora do seu espaço de endereço acessível. .PP .SH "DE ACORDO COM" SVr4. .SH TRADUZIDO POR LDP-BR em 21/08/2000. \&\fR\&\f(CWAndré L. Fassone Canova (tradução)\fR \&\fR\&\f(CWxxxxxxxxxxxxxxxxxxxxxxxxx (revisão)\fR