Use KDE::'s stat and chmod

wilder-portage
Kurt Hindenburg 15 years ago
parent 5cf21b4e2e
commit cacfb081bb
  1. 2
      src/Part.cpp
  2. 2
      src/ProcessInfo.cpp
  3. 6
      src/Pty.cpp

@ -293,7 +293,7 @@ bool Part::openUrl( const KUrl & _url )
if ( _url.isLocalFile() /*&& b_openUrls*/ ) {
KDE_struct_stat buff;
KDE_stat( QFile::encodeName( _url.path() ), &buff );
KDE::stat( QFile::encodeName( _url.path() ), &buff );
QString text = ( S_ISDIR( buff.st_mode ) ? _url.path() : _url.directory() );
showShellInDir( text );
} else {

@ -817,7 +817,7 @@ private:
QByteArray deviceName = fullDeviceName.toLatin1();
const char* ttyName = deviceName.data();
if (KDE_stat(ttyName, &statInfo) != 0)
if (KDE::stat(ttyName, &statInfo) != 0)
return false;
// Find all processes attached to ttyName

@ -221,11 +221,11 @@ int Pty::start(const QString& program,
void Pty::setWriteable(bool writeable)
{
KDE_struct_stat sbuf;
KDE_stat(pty()->ttyName(), &sbuf);
KDE::stat(pty()->ttyName(), &sbuf);
if (writeable)
chmod(pty()->ttyName(), sbuf.st_mode | S_IWGRP);
KDE::chmod(pty()->ttyName(), sbuf.st_mode | S_IWGRP);
else
chmod(pty()->ttyName(), sbuf.st_mode & ~(S_IWGRP|S_IWOTH));
KDE::chmod(pty()->ttyName(), sbuf.st_mode & ~(S_IWGRP|S_IWOTH));
}
Pty::Pty(int masterFd, QObject* parent)

Loading…
Cancel
Save